]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
9b8f741100d2890b4b8b510100064b6312bdc383
[lyx.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 false
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 Okular (KDE)
7265 \end_layout
7266
7267 \begin_layout Standard
7268 Go to 
7269 \begin_inset Flex Noun
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 Settings\SpecialChar menuseparator
7274 Configure Okular\SpecialChar menuseparator
7275 Editor
7276 \end_layout
7277
7278 \end_inset
7279
7280 , select 
7281 \begin_inset Quotes eld
7282 \end_inset
7283
7284 Custom Text Editor
7285 \begin_inset Quotes erd
7286 \end_inset
7287
7288  and add the command 
7289 \begin_inset Flex Code
7290 status collapsed
7291
7292 \begin_layout Plain Layout
7293 lyxclient -g %f %l
7294 \end_layout
7295
7296 \end_inset
7297
7298 .
7299 \end_layout
7300
7301 \begin_layout Standard
7302 Reverse search is triggered by SHIFT-click.
7303 \end_layout
7304
7305 \begin_layout Subsubsection*
7306 Qpdfview (Unix)
7307 \end_layout
7308
7309 \begin_layout Standard
7310 Qpdfview supports Sync\SpecialChar TeX
7311  since version 0.3.5.
7312  Go to 
7313 \begin_inset Flex Noun
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 Edit\SpecialChar menuseparator
7318 Settings\SpecialChar menuseparator
7319 Behavior
7320 \end_layout
7321
7322 \end_inset
7323
7324 , click on the input field of the 
7325 \begin_inset Quotes eld
7326 \end_inset
7327
7328 Source editor
7329 \begin_inset Quotes erd
7330 \end_inset
7331
7332  item and add the command 
7333 \begin_inset Flex Code
7334 status collapsed
7335
7336 \begin_layout Plain Layout
7337 lyxclient -g %1 %2
7338 \end_layout
7339
7340 \end_inset
7341
7342 .
7343 \end_layout
7344
7345 \begin_layout Standard
7346 Reverse search is triggered by double-click or, in more recent versions,
7347  by context menu.
7348 \end_layout
7349
7350 \begin_layout Subsubsection*
7351 YAP (Windows)
7352 \end_layout
7353
7354 \begin_layout Standard
7355 Launch yap, choose its 
7356 \begin_inset Flex Noun
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360 View\SpecialChar menuseparator
7361 Options
7362 \end_layout
7363
7364 \end_inset
7365
7366  menu and select the 
7367 \begin_inset Quotes eld
7368 \end_inset
7369
7370 Inverse DVI Search
7371 \begin_inset Quotes erd
7372 \end_inset
7373
7374  tab.
7375  Click on the 
7376 \begin_inset Quotes eld
7377 \end_inset
7378
7379 New\SpecialChar ldots
7380
7381 \begin_inset Quotes erd
7382 \end_inset
7383
7384  button and, in the window that opens, enter 
7385 \begin_inset Quotes eld
7386 \end_inset
7387
7388 \SpecialChar LyX
7389  Editor
7390 \begin_inset Quotes erd
7391 \end_inset
7392
7393  (or any other name you like) in the 
7394 \begin_inset Quotes eld
7395 \end_inset
7396
7397 Name:
7398 \begin_inset Quotes erd
7399 \end_inset
7400
7401  field.
7402  Now click on the button labeled 
7403 \begin_inset Quotes eld
7404 \end_inset
7405
7406 \SpecialChar ldots
7407
7408 \begin_inset Quotes erd
7409 \end_inset
7410
7411  to open a file dialog and navigate to the directory containing the batch
7412  file 
7413 \begin_inset Flex Code
7414 status collapsed
7415
7416 \begin_layout Plain Layout
7417 lyxeditor.bat
7418 \end_layout
7419
7420 \end_inset
7421
7422  (see below).
7423  Select 
7424 \begin_inset Flex Code
7425 status collapsed
7426
7427 \begin_layout Plain Layout
7428 lyxeditor.bat
7429 \end_layout
7430
7431 \end_inset
7432
7433  and then specify the program arguments as 
7434 \begin_inset Flex Code
7435 status collapsed
7436
7437 \begin_layout Plain Layout
7438 %f %l
7439 \end_layout
7440
7441 \end_inset
7442
7443 .
7444  The 
7445 \begin_inset Flex Code
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 lyxeditor.bat
7450 \end_layout
7451
7452 \end_inset
7453
7454  wrapper is used for communicating with \SpecialChar LyX
7455  through the 
7456 \emph on
7457 lyxpipe
7458 \emph default
7459  and is as follows:
7460 \end_layout
7461
7462 \begin_layout LyX-Code
7463 @echo off
7464 \begin_inset Newline newline
7465 \end_inset
7466
7467 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7468 \backslash
7469
7470 \backslash
7471 .
7472 \backslash
7473 pipe
7474 \backslash
7475 lyxpipe.in
7476 \begin_inset Newline newline
7477 \end_inset
7478
7479 type 
7480 \backslash
7481
7482 \backslash
7483 .
7484 \backslash
7485 pipe
7486 \backslash
7487 lyxpipe.out
7488 \end_layout
7489
7490 \begin_layout Standard
7491 Make sure that the \SpecialChar LyX
7492 Server pipe path you specified in \SpecialChar LyX
7493  is 
7494 \begin_inset Flex Code
7495 status collapsed
7496
7497 \begin_layout Plain Layout
7498
7499 \backslash
7500
7501 \backslash
7502 .
7503 \backslash
7504 pipe
7505 \backslash
7506 lyxpipe
7507 \end_layout
7508
7509 \end_inset
7510
7511 , otherwise change the 
7512 \begin_inset Flex Code
7513 status collapsed
7514
7515 \begin_layout Plain Layout
7516 lyxeditor.bat
7517 \end_layout
7518
7519 \end_inset
7520
7521  wrapper accordingly.
7522 \end_layout
7523
7524 \begin_layout Standard
7525 In yap, reverse search is triggered by double-click.
7526 \end_layout
7527
7528 \begin_layout Subsubsection*
7529 SumatraPDF (Windows)
7530 \end_layout
7531
7532 \begin_layout Standard
7533 In order to use SumatraPDF for inverse search, enter 
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7539 \end_layout
7540
7541 \end_inset
7542
7543  in the viewer setting in 
7544 \begin_inset Flex Noun
7545 status collapsed
7546
7547 \begin_layout Plain Layout
7548 Preferences\SpecialChar menuseparator
7549 File Handling\SpecialChar menuseparator
7550 File formats\SpecialChar menuseparator
7551 PDF (pdflatex)
7552 \end_layout
7553
7554 \end_inset
7555
7556 , where 
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 lyxeditor.bat
7562 \end_layout
7563
7564 \end_inset
7565
7566  is the previous wrapper.
7567  If SumatraPDF.exe is not in your command PATH, use its full file name.
7568 \end_layout
7569
7570 \begin_layout Standard
7571 Reverse search is triggered by double-click.
7572 \end_layout
7573
7574 \begin_layout Subsubsection*
7575 YAP (Cygwin)
7576 \end_layout
7577
7578 \begin_layout Standard
7579 First of all, make sure that yap is your default DVI viewer in the Windows
7580  environment, then launch it, choose its 
7581 \begin_inset Flex Noun
7582 status collapsed
7583
7584 \begin_layout Plain Layout
7585 View\SpecialChar menuseparator
7586 Options
7587 \end_layout
7588
7589 \end_inset
7590
7591  menu and select the 
7592 \begin_inset Quotes eld
7593 \end_inset
7594
7595 Inverse DVI Search
7596 \begin_inset Quotes erd
7597 \end_inset
7598
7599  tab.
7600  Click on the 
7601 \begin_inset Quotes eld
7602 \end_inset
7603
7604 New\SpecialChar ldots
7605
7606 \begin_inset Quotes erd
7607 \end_inset
7608
7609  button and, in the window that opens, enter 
7610 \begin_inset Quotes eld
7611 \end_inset
7612
7613 \SpecialChar LyX
7614  Editor
7615 \begin_inset Quotes erd
7616 \end_inset
7617
7618  (or any other name you like) in the 
7619 \begin_inset Quotes eld
7620 \end_inset
7621
7622 Name:
7623 \begin_inset Quotes erd
7624 \end_inset
7625
7626  field.
7627  Now click on the button labeled 
7628 \begin_inset Quotes eld
7629 \end_inset
7630
7631 \SpecialChar ldots
7632
7633 \begin_inset Quotes erd
7634 \end_inset
7635
7636  to open a file dialog and navigate to the directory containing the 
7637 \begin_inset Flex Code
7638 status collapsed
7639
7640 \begin_layout Plain Layout
7641 lyxeditor.exe
7642 \end_layout
7643
7644 \end_inset
7645
7646  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7647  executable).
7648  Select 
7649 \begin_inset Flex Code
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 lyxeditor.exe
7654 \end_layout
7655
7656 \end_inset
7657
7658  and then specify the program arguments as 
7659 \begin_inset Flex Code
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663 -g %f %l
7664 \end_layout
7665
7666 \end_inset
7667
7668 .
7669  In this way, you will be using the 
7670 \emph on
7671 lyxsocket
7672 \emph default
7673  for communicating with \SpecialChar LyX
7674 .
7675  If, for whatever reason, you want to use the 
7676 \emph on
7677 lyxpipe
7678 \emph default
7679 , omit the 
7680 \begin_inset Flex Code
7681 status collapsed
7682
7683 \begin_layout Plain Layout
7684 -g
7685 \end_layout
7686
7687 \end_inset
7688
7689  option and be sure to specify the \SpecialChar LyX
7690 Server pipe path in the \SpecialChar LyX
7691  preferences.
7692 \end_layout
7693
7694 \begin_layout Standard
7695 In yap, reverse search is triggered by double-click.
7696 \end_layout
7697
7698 \begin_layout Subsubsection*
7699 SumatraPDF (Cygwin)
7700 \end_layout
7701
7702 \begin_layout Standard
7703 In order to use SumatraPDF for inverse search, enter 
7704 \begin_inset Flex Code
7705 status collapsed
7706
7707 \begin_layout Plain Layout
7708 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7709 \end_layout
7710
7711 \end_inset
7712
7713  in the viewer setting in 
7714 \begin_inset Flex Noun
7715 status collapsed
7716
7717 \begin_layout Plain Layout
7718 Preferences\SpecialChar menuseparator
7719 File Handling\SpecialChar menuseparator
7720 File formats\SpecialChar menuseparator
7721 PDF (pdflatex)
7722 \end_layout
7723
7724 \end_inset
7725
7726 .
7727  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7728  The 
7729 \begin_inset Flex Code
7730 status collapsed
7731
7732 \begin_layout Plain Layout
7733 -g
7734 \end_layout
7735
7736 \end_inset
7737
7738  enables communication via the 
7739 \emph on
7740 lyxsocket
7741 \emph default
7742 .
7743  Again, omit the 
7744 \begin_inset Flex Code
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748 -g
7749 \end_layout
7750
7751 \end_inset
7752
7753  option if you want to use the 
7754 \emph on
7755 lyxpipe
7756 \emph default
7757 , and be sure to specify the \SpecialChar LyX
7758 Server pipe path in the \SpecialChar LyX
7759  preferences.
7760 \end_layout
7761
7762 \begin_layout Standard
7763 Reverse search is triggered by double-click.
7764 \end_layout
7765
7766 \begin_layout Section
7767 Forward search
7768 \end_layout
7769
7770 \begin_layout Standard
7771 Forward search is, as the name implies, in a sense the 
7772 \begin_inset Quotes eld
7773 \end_inset
7774
7775 opposite
7776 \begin_inset Quotes erd
7777 \end_inset
7778
7779  of reverse search.
7780  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7781 .
7782  If forward search is set up (as described in what follows), you can put
7783  the cursor anywhere in your \SpecialChar LyX
7784  document, and hit 
7785 \begin_inset Flex Noun
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 Navigate\SpecialChar menuseparator
7790 Forward search
7791 \end_layout
7792
7793 \end_inset
7794
7795  (or select 
7796 \begin_inset Flex Noun
7797 status collapsed
7798
7799 \begin_layout Plain Layout
7800 Forward search
7801 \end_layout
7802
7803 \end_inset
7804
7805  in the context menu via right mouse click), and then the viewer will jump
7806  to that position as well.
7807  This implies, of course, that your viewer supports this function.
7808 \end_layout
7809
7810 \begin_layout Standard
7811 To make forward search possible, you first need to provide the generated
7812  output PDF/DVI file with additional information about the \SpecialChar TeX
7813  sources.
7814  This can be done via the methods described in the section 
7815 \begin_inset CommandInset ref
7816 LatexCommand ref
7817 reference "subsec:rev-search"
7818
7819 \end_inset
7820
7821 .
7822 \end_layout
7823
7824 \begin_layout Standard
7825 Additionally, you need to configure \SpecialChar LyX
7826  for using your viewers in 
7827 \begin_inset Flex Noun
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 Tools\SpecialChar menuseparator
7832 Preferences\SpecialChar menuseparator
7833 Output\SpecialChar menuseparator
7834 General
7835 \end_layout
7836
7837 \end_inset
7838
7839 .
7840  We provide a range of tested configurations for some viewers, which you
7841  can select from the drop down list.
7842  If none of these configurations suits you, you have to find out and enter
7843  a suitable configuration yourself.
7844  The definition syntax uses the following placeholders:
7845 \end_layout
7846
7847 \begin_layout Itemize
7848 \noindent
7849 \begin_inset Flex Code
7850 status collapsed
7851
7852 \begin_layout Plain Layout
7853 $$n
7854 \end_layout
7855
7856 \end_inset
7857
7858 : row number
7859 \end_layout
7860
7861 \begin_layout Itemize
7862 \noindent
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 $$t
7868 \end_layout
7869
7870 \end_inset
7871
7872 : name of the (temporary) exported .tex file (without path)
7873 \end_layout
7874
7875 \begin_layout Itemize
7876 \noindent
7877 \begin_inset Flex Code
7878 status collapsed
7879
7880 \begin_layout Plain Layout
7881 $$f
7882 \end_layout
7883
7884 \end_inset
7885
7886 : name of the (temporary) exported .tex file (including path)
7887 \end_layout
7888
7889 \begin_layout Itemize
7890 \noindent
7891 \begin_inset Flex Code
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 $$o
7896 \end_layout
7897
7898 \end_inset
7899
7900 : name of the exported output file (either dvi or pdf, depending on which
7901  one exists in the temporary directory)
7902 \end_layout
7903
7904 \begin_layout Standard
7905 Note that only some of the viewers provide full forward search functionality,
7906  among them yap, xdvi, okular
7907 \begin_inset Foot
7908 status collapsed
7909
7910 \begin_layout Plain Layout
7911 You might want to set 
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 okular –unique
7917 \end_layout
7918
7919 \end_inset
7920
7921  in 
7922 \begin_inset Flex Noun
7923 status collapsed
7924
7925 \begin_layout Plain Layout
7926 Tools\SpecialChar menuseparator
7927 Preferences\SpecialChar menuseparator
7928 File Handling\SpecialChar menuseparator
7929 File
7930 \begin_inset space ~
7931 \end_inset
7932
7933 Formats
7934 \end_layout
7935
7936 \end_inset
7937
7938
7939 \end_layout
7940
7941 \end_inset
7942
7943 , qpdfview and SumatraPDF
7944 \begin_inset Foot
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 SumatraPDF can also use DDE commands through the external program CMCDDE
7949  — downloadable from 
7950 \begin_inset CommandInset href
7951 LatexCommand href
7952 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7953 literal "false"
7954
7955 \end_inset
7956
7957
7958 \end_layout
7959
7960 \end_inset
7961
7962 .
7963  While many of the widespread PDF viewers (most notably Adobe Reader) do
7964  not support forward search at all, some other viewers – e.
7965 \begin_inset space \thinspace{}
7966 \end_inset
7967
7968 g.
7969  evince and xpdf – allow at least to reload the document and jump to a specific
7970  page of the file, so you can at least navigate 
7971 \begin_inset Quotes eld
7972 \end_inset
7973
7974 near
7975 \begin_inset Quotes erd
7976 \end_inset
7977
7978 .
7979  This latter functionality is provided by an external call of synctex (see
7980  the predefined example configurations).
7981  
7982 \end_layout
7983
7984 \begin_layout Standard
7985 Forward search works both with DVI and PDF output.
7986  \SpecialChar LyX
7987  simply checks which preview format you have used before (i.
7988 \begin_inset space \thinspace{}
7989 \end_inset
7990
7991 e., which format is already there in the temporary directory) and chooses
7992  the appropriate configuration for the respective format.
7993 \end_layout
7994
7995 \begin_layout Chapter
7996 Special Document Classes
7997 \end_layout
7998
7999 \begin_layout Section
8000 A&A Paper
8001 \end_layout
8002
8003 \begin_layout Standard
8004 by 
8005 \noun on
8006 Peter Sütterlin
8007 \end_layout
8008
8009 \begin_layout Subsection
8010 Introduction
8011 \end_layout
8012
8013 \begin_layout Standard
8014 This section describes how \SpecialChar LyX
8015  can be used to write articles for submission
8016  to the scientific journal 
8017 \emph on
8018 Astronomy and Astrophysics
8019 \emph default
8020  (
8021 \begin_inset Flex URL
8022 status collapsed
8023
8024 \begin_layout Plain Layout
8025
8026 http://www.edpsciences.fr/aa/
8027 \end_layout
8028
8029 \end_inset
8030
8031 ) using Version 5.01 of the document class 
8032 \family typewriter
8033 aa.cls
8034 \family default
8035 .
8036  This package can be downloaded from the ftp site
8037 \end_layout
8038
8039 \begin_layout Standard
8040 \begin_inset VSpace medskip
8041 \end_inset
8042
8043
8044 \end_layout
8045
8046 \begin_layout Standard
8047 \align center
8048 \begin_inset Flex URL
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052
8053 ftp://ftp.edpsciences.org/pub/aa/readme.html
8054 \end_layout
8055
8056 \end_inset
8057
8058
8059 \end_layout
8060
8061 \begin_layout Standard
8062 \begin_inset VSpace medskip
8063 \end_inset
8064
8065
8066 \end_layout
8067
8068 \begin_layout Standard
8069 A manual comes together with that package, and this text is not meant to
8070  replace the original manual but is merely a short guide in how to realize
8071  the correct form of your paper.
8072  
8073 \end_layout
8074
8075 \begin_layout Standard
8076 Please note that the publisher of the journal was changed from Springer
8077  to EDP Sciences starting January 1, 2001.
8078  That change involved also some slight changes to the style files, namely
8079  the removal of the thesaurus command.
8080  The \SpecialChar LyX
8081  class aa supports the newest version of these style files, V 5.01.
8082  If you have an older version installed, please upgrade.
8083  For compatibility, the old (version 4) layout has been kept as 
8084 \family sans
8085 article (A&A V4)
8086 \family default
8087 .
8088  Please refer to the comments in 
8089 \family typewriter
8090 \SpecialChar LyX
8091 Dir/layouts/aapaper.layout
8092 \family default
8093 .
8094 \end_layout
8095
8096 \begin_layout Subsection
8097 Getting started
8098 \end_layout
8099
8100 \begin_layout Standard
8101 It is recommended you start from the example template distributed with \SpecialChar LyX
8102 .
8103  If you are not using a template, note the following settings:
8104 \end_layout
8105
8106 \begin_layout Itemize
8107 Select 
8108 \family sans
8109 article (A&A)
8110 \family default
8111  in the 
8112 \family sans
8113 Document\SpecialChar menuseparator
8114 Settings
8115 \family default
8116  dialog (OK, that one was obvious).
8117 \end_layout
8118
8119 \begin_layout Itemize
8120 Don't change the option 
8121 \family sans
8122 Page
8123 \begin_inset space ~
8124 \end_inset
8125
8126 style
8127 \family default
8128 : Leave it set to 
8129 \family sans
8130 default
8131 \family default
8132 .
8133  The whole layout is done by the macros, you shouldn't change anything.
8134 \end_layout
8135
8136 \begin_layout Subsection
8137 The header block
8138 \end_layout
8139
8140 \begin_layout Standard
8141 First thing to enter is the header information.
8142  It consists of seven entries, of which some are optional.
8143  They are
8144 \end_layout
8145
8146 \begin_layout Itemize
8147
8148 \family sans
8149 Title
8150 \family default
8151 : [required] 
8152 \end_layout
8153
8154 \begin_layout Itemize
8155
8156 \family sans
8157 Subtitle
8158 \family default
8159 : [optional] 
8160 \end_layout
8161
8162 \begin_layout Itemize
8163
8164 \family sans
8165 Author
8166 \family default
8167 : [required]
8168 \end_layout
8169
8170 \begin_layout Itemize
8171
8172 \family sans
8173 Address
8174 \family default
8175 : [required]
8176 \end_layout
8177
8178 \begin_layout Itemize
8179
8180 \family sans
8181 Offprints
8182 \family default
8183 : [optional] if more than one author: whom to contact for offprint requests.
8184 \end_layout
8185
8186 \begin_layout Itemize
8187
8188 \family sans
8189 Mail
8190 \family default
8191 : [optional] mail address for contacts.
8192 \end_layout
8193
8194 \begin_layout Itemize
8195
8196 \family sans
8197 Date
8198 \family default
8199 : [required].
8200  Suggested format is 
8201 \family typewriter
8202 Received: <date>; Accepted <date> 
8203 \end_layout
8204
8205 \begin_layout Standard
8206 There is no need to issue the 
8207 \family typewriter
8208
8209 \backslash
8210 maketitle
8211 \family default
8212  command, this is done automatically by \SpecialChar LyX
8213  when the header is finished.
8214  Although the order of the single header entries doesn't matter it is advised
8215  to keep the above sequence, just to get the best optics and meets the layout
8216  of the real document.
8217 \end_layout
8218
8219 \begin_layout Standard
8220 If you want to place footnotes in the header block, e.
8221 \begin_inset space \thinspace{}
8222 \end_inset
8223
8224 g.
8225 \begin_inset space \space{}
8226 \end_inset
8227
8228 to state your present address, just use the standard footnote via the menu
8229  
8230 \family sans
8231 Insert\SpecialChar menuseparator
8232 Footnote.
8233
8234 \family default
8235  \SpecialChar LyX
8236  will automagically use the term 
8237 \family typewriter
8238
8239 \backslash
8240 thanks{}
8241 \family default
8242  in that case.
8243 \end_layout
8244
8245 \begin_layout Standard
8246 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8247  commands that
8248  have no counterpart in \SpecialChar LyX
8249 :
8250 \end_layout
8251
8252 \begin_layout Itemize
8253
8254 \family typewriter
8255
8256 \backslash
8257 and
8258 \family default
8259  to separate different names for more than one author and institute, respectivel
8260 y.
8261 \end_layout
8262
8263 \begin_layout Itemize
8264
8265 \family typewriter
8266
8267 \backslash
8268 inst{<nr>}
8269 \family default
8270 to mark corresponding author/institute pairs.
8271  The institutes are numbered sequentially as they appear in the 
8272 \family sans
8273 Address
8274 \family default
8275  field, so you have to put a marker to each author.
8276 \end_layout
8277
8278 \begin_layout Itemize
8279
8280 \family typewriter
8281
8282 \backslash
8283 email{address}
8284 \family default
8285  to supply an email address for fast contact.
8286 \end_layout
8287
8288 \begin_layout Standard
8289 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8290  and marked as
8291  \SpecialChar LaTeX
8292  code.
8293  See the examples.
8294  
8295 \end_layout
8296
8297 \begin_layout Subsection
8298 The abstract
8299 \end_layout
8300
8301 \begin_layout Standard
8302 The abstract should immediately follow the header block.
8303  With version 5 the abstract environment was changed to a command, and there
8304  is now a resctriction to only one paragraph.
8305  In addition, it should contain an entry with the keywords.
8306  This is not yet implemented for \SpecialChar LyX
8307 , therefore you have to enter the \SpecialChar LaTeX
8308  command
8309  
8310 \family typewriter
8311
8312 \backslash
8313 keywords{}
8314 \family default
8315  by hand and mark it as \SpecialChar LaTeX
8316  code.
8317  Refer to the example paper.
8318 \end_layout
8319
8320 \begin_layout Subsection
8321 Supported environments
8322 \end_layout
8323
8324 \begin_layout Standard
8325 The A&A paper layout supports the following environments for structuring
8326  your text:
8327 \end_layout
8328
8329 \begin_layout Itemize
8330
8331 \family sans
8332 Standard
8333 \end_layout
8334
8335 \begin_layout Itemize
8336
8337 \family sans
8338 Section
8339 \end_layout
8340
8341 \begin_layout Itemize
8342
8343 \family sans
8344 Subsection
8345 \end_layout
8346
8347 \begin_layout Itemize
8348
8349 \family sans
8350 Subsubsection
8351 \end_layout
8352
8353 \begin_layout Itemize
8354
8355 \family sans
8356 Itemize
8357 \end_layout
8358
8359 \begin_layout Itemize
8360
8361 \family sans
8362 Enumerate
8363 \end_layout
8364
8365 \begin_layout Itemize
8366
8367 \family sans
8368 Description
8369 \end_layout
8370
8371 \begin_layout Itemize
8372
8373 \family sans
8374 Caption
8375 \end_layout
8376
8377 \begin_layout Itemize
8378
8379 \family sans
8380 Abstract
8381 \end_layout
8382
8383 \begin_layout Itemize
8384
8385 \family sans
8386 Acknowledgment
8387 \end_layout
8388
8389 \begin_layout Itemize
8390
8391 \family sans
8392 Bibliography
8393 \end_layout
8394
8395 \begin_layout Itemize
8396
8397 \family sans
8398 \SpecialChar LaTeX
8399
8400 \end_layout
8401
8402 \begin_layout Subsection
8403 Commands not supported by \SpecialChar LyX
8404
8405 \end_layout
8406
8407 \begin_layout Standard
8408 Some commands are not yet supported by the 
8409 \family sans
8410 paper (A&A)
8411 \family default
8412  layout for \SpecialChar LyX
8413 .
8414  Some have already been mentioned.
8415  For the sake of completeness, they are listed all together here:
8416 \end_layout
8417
8418 \begin_layout Itemize
8419
8420 \family typewriter
8421
8422 \backslash
8423 and
8424 \end_layout
8425
8426 \begin_layout Itemize
8427
8428 \family typewriter
8429
8430 \backslash
8431 email
8432 \end_layout
8433
8434 \begin_layout Itemize
8435
8436 \family typewriter
8437
8438 \backslash
8439 appendix
8440 \end_layout
8441
8442 \begin_layout Itemize
8443
8444 \family typewriter
8445
8446 \backslash
8447 authorrunning
8448 \end_layout
8449
8450 \begin_layout Itemize
8451
8452 \family typewriter
8453
8454 \backslash
8455 inst{}
8456 \end_layout
8457
8458 \begin_layout Itemize
8459
8460 \family typewriter
8461
8462 \backslash
8463 keywords{}
8464 \end_layout
8465
8466 \begin_layout Itemize
8467
8468 \family typewriter
8469
8470 \backslash
8471 object{}
8472 \end_layout
8473
8474 \begin_layout Itemize
8475
8476 \family typewriter
8477
8478 \backslash
8479 titlerunning{}
8480 \end_layout
8481
8482 \begin_layout Standard
8483 If you want to use any of these commands, you have to enter them yourself.
8484  
8485 \series bold
8486 Do not forget to mark them as \SpecialChar LaTeX
8487  code!
8488 \end_layout
8489
8490 \begin_layout Subsection
8491 Figure and Table Floats
8492 \end_layout
8493
8494 \begin_layout Standard
8495 \SpecialChar LyX
8496  provides support for the necessary float environments 
8497 \family sans
8498 figure, figure*, table
8499 \family default
8500  and 
8501 \family sans
8502 table*
8503 \family default
8504 , therefore we won't tell much about it here.
8505  Refer to the 
8506 \emph on
8507 User's
8508 \begin_inset space ~
8509 \end_inset
8510
8511 Guide
8512 \emph default
8513 .
8514  Just remember that tables should be left-aligned.
8515  For that, select the table and change the alignment in 
8516 \family sans
8517 Edit\SpecialChar menuseparator
8518 Paragraph
8519 \begin_inset space ~
8520 \end_inset
8521
8522 Settings.
8523 \end_layout
8524
8525 \begin_layout Standard
8526 There is only one special thing: the figures with caption besides the figure.
8527  To create such a figure, you have to do the following:
8528 \end_layout
8529
8530 \begin_layout Enumerate
8531 Create a wide figure float: 
8532 \family sans
8533 Insert\SpecialChar menuseparator
8534 Float\SpecialChar menuseparator
8535 Figure
8536 \family default
8537 , then right click in the figure and select 
8538 \family sans
8539 Span
8540 \begin_inset space ~
8541 \end_inset
8542
8543 columns
8544 \family default
8545 .
8546 \end_layout
8547
8548 \begin_layout Enumerate
8549 Enter your caption text.
8550 \end_layout
8551
8552 \begin_layout Enumerate
8553 Press 
8554 \family sans
8555 Return
8556 \family default
8557  to move the cursor above the caption.
8558 \end_layout
8559
8560 \begin_layout Enumerate
8561 Insert your figure
8562 \end_layout
8563
8564 \begin_layout Enumerate
8565 Position the cursor behind the figure and insert a horizontal fill: 
8566 \family sans
8567 Insert\SpecialChar menuseparator
8568 Special
8569 \begin_inset space ~
8570 \end_inset
8571
8572 Character\SpecialChar menuseparator
8573 Horizontal
8574 \begin_inset space ~
8575 \end_inset
8576
8577 Fill
8578 \family default
8579 .
8580 \end_layout
8581
8582 \begin_layout Enumerate
8583 Switch to \SpecialChar LaTeX
8584  mode: 
8585 \family sans
8586 M-c
8587 \begin_inset space ~
8588 \end_inset
8589
8590 t
8591 \family default
8592 .
8593 \end_layout
8594
8595 \begin_layout Enumerate
8596 Enter 
8597 \family typewriter
8598
8599 \backslash
8600 parbox[b]{55mm}{
8601 \family default
8602 .
8603  
8604 \series bold
8605 Do not close the brace!
8606 \end_layout
8607
8608 \begin_layout Enumerate
8609 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8610  mode and insert
8611  the closing brace: 
8612 \family sans
8613 M-c
8614 \begin_inset space ~
8615 \end_inset
8616
8617 t
8618 \family default
8619  
8620 \family typewriter
8621 }
8622 \family default
8623 .
8624 \end_layout
8625
8626 \begin_layout Standard
8627 Also, refer to the figures in the example paper.
8628 \end_layout
8629
8630 \begin_layout Subsection
8631 Referee layout
8632 \end_layout
8633
8634 \begin_layout Standard
8635 For submission, the paper has to be formated in a special double-spacing
8636  layout.
8637  For this purpose, you have to give the option 
8638 \family typewriter
8639 referee
8640 \family default
8641  to the documentclass.
8642  This must be done using the extra class options field in the 
8643 \family sans
8644 Document\SpecialChar menuseparator
8645 Settings
8646 \family default
8647  dialog.
8648  Just enter the string 
8649 \family typewriter
8650 referee
8651 \family default
8652  there.
8653 \end_layout
8654
8655 \begin_layout Subsection
8656 The example paper
8657 \end_layout
8658
8659 \begin_layout Standard
8660 The 
8661 \family sans
8662 Examples
8663 \family default
8664  directory contains an example paper written with \SpecialChar LyX
8665 .
8666  It is the example paper from the original macro package, translated to
8667  \SpecialChar LyX
8668 .
8669  Use it for inspiration, and compare the original \SpecialChar LaTeX
8670  code with \SpecialChar LyX
8671  way of writing.
8672 \end_layout
8673
8674 \begin_layout Section
8675 AAS\SpecialChar TeX
8676
8677 \end_layout
8678
8679 \begin_layout Standard
8680 by 
8681 \noun on
8682 Mike Ressler
8683 \end_layout
8684
8685 \begin_layout Subsection
8686 Introduction
8687 \end_layout
8688
8689 \begin_layout Standard
8690 AAS\SpecialChar TeX
8691  is a set of macros produced by the American Astronomical Society to
8692  facilitate electronic manuscript submission to the three journals they
8693  publish: the Astrophysical Journal (including the Letters and Supplement),
8694  the Astronomical Journal, and the Publications of the Astronomical Society
8695  of the Pacific.
8696  \SpecialChar LyX
8697  has proven to be an excellent tool for generating these documents, especially
8698  given its equation, citation, and figure handling capabilities.
8699  \SpecialChar LyX
8700  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8701  is the version described here, or higher.
8702  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8703 2.09 and are fundamentally
8704  incompatible with \SpecialChar LyX
8705 .
8706  The AAS\SpecialChar TeX
8707  package may be downloaded from the AAS\SpecialChar TeX
8708  Web site
8709 \end_layout
8710
8711 \begin_layout Standard
8712 \begin_inset VSpace medskip
8713 \end_inset
8714
8715
8716 \end_layout
8717
8718 \begin_layout Standard
8719 \align center
8720 \begin_inset Flex URL
8721 status collapsed
8722
8723 \begin_layout Plain Layout
8724
8725 https://aas.org/aastex/aastex-downloads
8726 \end_layout
8727
8728 \end_inset
8729
8730
8731 \end_layout
8732
8733 \begin_layout Standard
8734 \begin_inset VSpace medskip
8735 \end_inset
8736
8737
8738 \end_layout
8739
8740 \begin_layout Standard
8741 A complete user guide is contained in that package and you should familiarize
8742  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8743 .
8744  \SpecialChar LyX
8745  will not reduce the need to figure out all the AAS\SpecialChar TeX
8746  commands, it will only
8747  reduce the drudgery of typing everything in.
8748  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8749  document conforms
8750  completely to the requirements of the journal to which you are submitting
8751  your paper.
8752 \end_layout
8753
8754 \begin_layout Subsection
8755 Starting a New Paper
8756 \end_layout
8757
8758 \begin_layout Standard
8759 I strongly suggest that you start with the AAS\SpecialChar TeX
8760  template file.
8761  Click on 
8762 \family sans
8763 File\SpecialChar menuseparator
8764 New from
8765 \family default
8766  
8767 \family sans
8768 Template
8769 \family default
8770 , enter the new file name, then choose the 
8771 \family typewriter
8772 aastex.lyx
8773 \family default
8774  template.
8775  This will show the most common fields found in a manuscript.
8776  Simply overwrite the existing text (including the brackets, 
8777 \family typewriter
8778 <>
8779 \family default
8780 ) with the correct information.
8781  Many of the AAS\SpecialChar TeX
8782  commands and environments can be implemented directly in
8783  \SpecialChar LyX
8784 , but some cannot: most noticeably 
8785 \family typewriter
8786
8787 \backslash
8788 altaffilmark
8789 \family default
8790  and 
8791 \family typewriter
8792
8793 \backslash
8794 altaffiltext
8795 \family default
8796 , which should stick out like a sore thumb if you actually just opened the
8797  template file.
8798  For commands such as these, the \SpecialChar LaTeX
8799  code must be entered directly and marked
8800  as such.
8801  Such commands are referred to as \SpecialChar TeX
8802  code, or Evil Red Text.
8803  I tried to minimize the amount of \SpecialChar TeX
8804  code needed in an AAS\SpecialChar TeX
8805  document, but
8806  there is still a bit more required than any of us would like.
8807 \end_layout
8808
8809 \begin_layout Subsection
8810 Finishing Your Paper
8811 \end_layout
8812
8813 \begin_layout Standard
8814 When the paper is finished to your satisfaction and previews/prints correctly,
8815  there are a few 
8816 \begin_inset Quotes eld
8817 \end_inset
8818
8819 postprocessing
8820 \begin_inset Quotes erd
8821 \end_inset
8822
8823  actions which need to be done before you submit it to the journals.
8824  
8825 \end_layout
8826
8827 \begin_layout Enumerate
8828 Export your paper as a \SpecialChar LaTeX
8829  file (
8830 \family sans
8831 File\SpecialChar menuseparator
8832 Export\SpecialChar menuseparator
8833 \SpecialChar LaTeX
8834
8835 \family default
8836 ).
8837  
8838 \end_layout
8839
8840 \begin_layout Enumerate
8841 Edit the resulting 
8842 \family typewriter
8843 .tex
8844 \family default
8845  file with your favorite text editor
8846 \end_layout
8847
8848 \begin_deeper
8849 \begin_layout Enumerate
8850 remove the comment lines before the 
8851 \family typewriter
8852
8853 \backslash
8854 documentclass
8855 \family default
8856  command
8857 \end_layout
8858
8859 \begin_layout Enumerate
8860 remove the 
8861 \family typewriter
8862
8863 \backslash
8864 usepackage...{fontenc}
8865 \family default
8866  line if it appears (usually just after 
8867 \family typewriter
8868
8869 \backslash
8870 documentclass
8871 \family default
8872 }; also remove the 
8873 \family typewriter
8874
8875 \backslash
8876 secnumdepth
8877 \family default
8878  line if it appears.
8879 \end_layout
8880
8881 \begin_layout Enumerate
8882 remove everything between (and including) the 
8883 \family typewriter
8884
8885 \backslash
8886 makeatletter
8887 \family default
8888  and 
8889 \family typewriter
8890
8891 \backslash
8892 makeatother
8893 \family default
8894  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8895  preamble
8896  (which should appear immediately after the 
8897 \begin_inset Quotes eld
8898 \end_inset
8899
8900 User specified \SpecialChar LaTeX
8901  commands
8902 \begin_inset Quotes erd
8903 \end_inset
8904
8905  comment in the 
8906 \family typewriter
8907 .tex
8908 \family default
8909  file).
8910 \end_layout
8911
8912 \end_deeper
8913 \begin_layout Enumerate
8914 Run the resulting file through \SpecialChar LaTeX
8915  to make sure it still processes correctly.
8916 \end_layout
8917
8918 \begin_layout Enumerate
8919 Reread the journal requirements to make sure your filenames and formats
8920  are correct.
8921 \end_layout
8922
8923 \begin_layout Enumerate
8924 Submit it.
8925 \end_layout
8926
8927 \begin_layout Subsection
8928 Comments On Specific Commands
8929 \end_layout
8930
8931 \begin_layout Standard
8932 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8933  commands: the
8934  AAS\SpecialChar TeX
8935  User Guide (
8936 \family typewriter
8937 aasguide.tex
8938 \family default
8939 ) gives a good description of each.
8940  Thus it's probably easiest for me to go down the list as found in the guide
8941  and offer comments where necessary.
8942  So let's begin \SpecialChar ldots
8943
8944 \end_layout
8945
8946 \begin_layout Subsubsection
8947 Things that work as expected
8948 \end_layout
8949
8950 \begin_layout Standard
8951 Because they work as you might expect, I simply list them and the section
8952  they are found in: 
8953 \family typewriter
8954
8955 \backslash
8956 documentclass
8957 \family default
8958  (2.1.1), 
8959 \family typewriter
8960
8961 \backslash
8962 begin{document}
8963 \family default
8964  (2.2), 
8965 \family typewriter
8966
8967 \backslash
8968 title
8969 \family default
8970  (2.3), 
8971 \family typewriter
8972
8973 \backslash
8974 author
8975 \family default
8976  (2.3), 
8977 \family typewriter
8978
8979 \backslash
8980 affil
8981 \family default
8982  (2.3), 
8983 \family typewriter
8984
8985 \backslash
8986 abstract
8987 \family default
8988  (2.4), 
8989 \family typewriter
8990
8991 \backslash
8992 keywords
8993 \family default
8994  (2.5), 
8995 \family typewriter
8996
8997 \backslash
8998 section
8999 \family default
9000  (2.7), 
9001 \family typewriter
9002
9003 \backslash
9004 subsection
9005 \family default
9006  (2.7), 
9007 \family typewriter
9008
9009 \backslash
9010 subsubsection
9011 \family default
9012  (2.7), 
9013 \family typewriter
9014
9015 \backslash
9016 paragraph
9017 \family default
9018  (2.7), 
9019 \family typewriter
9020
9021 \backslash
9022 facility
9023 \family default
9024  (2.10), 
9025 \family typewriter
9026
9027 \backslash
9028 begin{displaymath}
9029 \family default
9030  (2.12), 
9031 \family typewriter
9032
9033 \backslash
9034 begin{equation}
9035 \family default
9036  (2.12), 
9037 \family typewriter
9038
9039 \backslash
9040 begin{eqnarray}
9041 \family default
9042  (2.12), 
9043 \family typewriter
9044
9045 \backslash
9046 begin{mathletters}
9047 \family default
9048  (2.12), 
9049 \family typewriter
9050
9051 \backslash
9052 begin{thebibliography}
9053 \family default
9054  (2.13.1), 
9055 \family typewriter
9056
9057 \backslash
9058 bibitem
9059 \family default
9060  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9061  graphicx figure commands (2.14.1), 
9062 \family typewriter
9063
9064 \backslash
9065 begin{table}
9066 \family default
9067  (2.15.4), 
9068 \family typewriter
9069
9070 \backslash
9071 begin{tabular}
9072 \family default
9073  (2.15.4), 
9074 \family typewriter
9075
9076 \backslash
9077 caption
9078 \family default
9079  (2.15.4), 
9080 \family typewriter
9081
9082 \backslash
9083 label
9084 \family default
9085  (2.15.4, amongst other places), 
9086 \family typewriter
9087
9088 \backslash
9089 tablerefs
9090 \family default
9091  (2.15.5), 
9092 \family typewriter
9093
9094 \backslash
9095 tablecomments
9096 \family default
9097  (2.15.5), 
9098 \family typewriter
9099
9100 \backslash
9101 url
9102 \family default
9103  (2.17.4), 
9104 \family typewriter
9105
9106 \backslash
9107 end{document}
9108 \family default
9109  (2.18).
9110 \end_layout
9111
9112 \begin_layout Standard
9113 The following style options also work correctly: 
9114 \family typewriter
9115 longabstract
9116 \family default
9117  (2.4), 
9118 \family typewriter
9119 preprint
9120 \family default
9121  (3.2.1), 
9122 \family typewriter
9123 preprint2
9124 \family default
9125  (3.2.2), 
9126 \family typewriter
9127 eqsecnum
9128 \family default
9129  (3.3), 
9130 \family typewriter
9131 flushrt
9132 \family default
9133  (3.4).
9134  Simply put them in the 
9135 \family sans
9136 Options
9137 \family default
9138  box in 
9139 \family sans
9140 Layout\SpecialChar menuseparator
9141 Document
9142 \family default
9143 .
9144 \end_layout
9145
9146 \begin_layout Subsubsection
9147 Things that work, but require more comment
9148 \end_layout
9149
9150 \begin_layout Standard
9151 The following items work, but require a little more discussion:
9152 \end_layout
9153
9154 \begin_layout Itemize
9155 These items are reserved for use by the journal editors, but you can put
9156  them into the \SpecialChar LaTeX
9157  preamble if you feel compelled to do so: 
9158 \family typewriter
9159
9160 \backslash
9161 received
9162 \family default
9163
9164 \family typewriter
9165
9166 \backslash
9167 revised
9168 \family default
9169
9170 \family typewriter
9171
9172 \backslash
9173 accepted
9174 \family default
9175
9176 \family typewriter
9177
9178 \backslash
9179 ccc
9180 \family default
9181
9182 \family typewriter
9183
9184 \backslash
9185 cpright
9186 \family default
9187  (all from 2.1.3)
9188 \end_layout
9189
9190 \begin_layout Itemize
9191 These items may be placed in the \SpecialChar LaTeX
9192  preamble, and are included as blanks in
9193  the template file: 
9194 \family typewriter
9195
9196 \backslash
9197 slugcomment
9198 \family default
9199  (2.1.4), 
9200 \family typewriter
9201
9202 \backslash
9203 shorttitle
9204 \family default
9205  (2.1.5), 
9206 \family typewriter
9207
9208 \backslash
9209 shortauthors
9210 \family default
9211  (2.1.5)
9212 \end_layout
9213
9214 \begin_layout Itemize
9215
9216 \family typewriter
9217
9218 \backslash
9219 email
9220 \family default
9221  (2.3) – can only be used 
9222 \begin_inset Quotes eld
9223 \end_inset
9224
9225 standalone
9226 \begin_inset Quotes erd
9227 \end_inset
9228
9229 , not in the middle of a paragraph.
9230  Use \SpecialChar TeX
9231  code if you need to embed it.
9232 \end_layout
9233
9234 \begin_layout Itemize
9235
9236 \family typewriter
9237
9238 \backslash
9239 and
9240 \family default
9241  (2.3) – will have extra {} after it.
9242  This should not cause an error.
9243 \end_layout
9244
9245 \begin_layout Itemize
9246
9247 \family typewriter
9248
9249 \backslash
9250 notetoeditor
9251 \family default
9252  (2.6) – can only be used 
9253 \begin_inset Quotes eld
9254 \end_inset
9255
9256 standalone
9257 \begin_inset Quotes erd
9258 \end_inset
9259
9260 , not in the middle of a paragraph.
9261  Use \SpecialChar TeX
9262  code if you need to embed it.
9263 \end_layout
9264
9265 \begin_layout Itemize
9266
9267 \family typewriter
9268
9269 \backslash
9270 placetable
9271 \family default
9272  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9273  hand
9274 \end_layout
9275
9276 \begin_layout Itemize
9277
9278 \family typewriter
9279
9280 \backslash
9281 placefigure
9282 \family default
9283  (2.8) – same as for 
9284 \family typewriter
9285
9286 \backslash
9287 placetable
9288 \end_layout
9289
9290 \begin_layout Itemize
9291
9292 \family typewriter
9293
9294 \backslash
9295 acknowledgements
9296 \family default
9297  (2.9) – will have extra {} after it.
9298  This should not cause an error.
9299 \end_layout
9300
9301 \begin_layout Itemize
9302
9303 \family typewriter
9304
9305 \backslash
9306 appendix
9307 \family default
9308  (2.11) – will have extra {} after it.
9309  This should not cause an error.
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family typewriter
9315
9316 \backslash
9317 figcaption
9318 \family default
9319  (2.14.2) – you can insert an optional filename argument by placing the cursor
9320  at the beginning of the text and selecting 
9321 \family sans
9322 Insert\SpecialChar menuseparator
9323 Short Title
9324 \family default
9325 .
9326  
9327 \begin_inset Quotes eld
9328 \end_inset
9329
9330 Short Title
9331 \begin_inset Quotes erd
9332 \end_inset
9333
9334  inserts an optional argument of the type needed by 
9335 \family typewriter
9336
9337 \backslash
9338 figcaption
9339 \family default
9340 .
9341  Hopefully it will be renamed someday.
9342 \end_layout
9343
9344 \begin_layout Itemize
9345
9346 \family typewriter
9347
9348 \backslash
9349 objectname
9350 \family default
9351  (2.17.1) – same as 
9352 \family typewriter
9353
9354 \backslash
9355 figcaption
9356 \family default
9357  for the catalog ID optional parameter
9358 \end_layout
9359
9360 \begin_layout Itemize
9361
9362 \family typewriter
9363
9364 \backslash
9365 dataset
9366 \family default
9367  (2.17.1) – same as 
9368 \family typewriter
9369
9370 \backslash
9371 figcaption
9372 \family default
9373  for the catalog ID optional parameter
9374 \end_layout
9375
9376 \begin_layout Subsubsection
9377 Things not implemented, use \SpecialChar TeX
9378  code
9379 \end_layout
9380
9381 \begin_layout Standard
9382
9383 \family typewriter
9384
9385 \backslash
9386 altaffilmark
9387 \family default
9388  (2.3), 
9389 \family typewriter
9390
9391 \backslash
9392 altaffiltext
9393 \family default
9394  (2.3), 
9395 \family typewriter
9396
9397 \backslash
9398 eqnum
9399 \family default
9400  (2.12), 
9401 \family typewriter
9402
9403 \backslash
9404 setcounter{equation}
9405 \family default
9406  (2.12), Journal name abbreviations (2.13.4), 
9407 \family typewriter
9408
9409 \backslash
9410 figurenum
9411 \family default
9412  (2.14.1), 
9413 \family typewriter
9414
9415 \backslash
9416 epsscale
9417 \family default
9418  (2.14.1), 
9419 \family typewriter
9420
9421 \backslash
9422 plotone
9423 \family default
9424  (2.14.1), 
9425 \family typewriter
9426
9427 \backslash
9428 plottwo
9429 \family default
9430  (2.14.1), 
9431 \family typewriter
9432
9433 \backslash
9434 tablenum
9435 \family default
9436  (2.15.4), 
9437 \family typewriter
9438
9439 \backslash
9440 tableline
9441 \family default
9442  (2.15.4, insert it as the first element in the lefthand cell after where
9443  you want it.
9444  Don't use any of \SpecialChar LyX
9445 's rules in the table), 
9446 \family typewriter
9447
9448 \backslash
9449 tablenotemark
9450 \family default
9451  (2.15.5), 
9452 \family typewriter
9453
9454 \backslash
9455 tablenotetext
9456 \family default
9457  (2.15.5), much of Misc (2.17, except 
9458 \family typewriter
9459
9460 \backslash
9461 objectname
9462 \family default
9463
9464 \family typewriter
9465
9466 \backslash
9467 dataset
9468 \family default
9469
9470 \family typewriter
9471
9472 \backslash
9473 url
9474 \family default
9475 , and 
9476 \family typewriter
9477
9478 \backslash
9479 email
9480 \family default
9481 ; see above), 
9482 \family typewriter
9483
9484 \backslash
9485 singlespace
9486 \family default
9487  (3.1), 
9488 \family typewriter
9489
9490 \backslash
9491 doublespace
9492 \family default
9493  (3.1), 
9494 \family typewriter
9495
9496 \backslash
9497 onecolumn
9498 \family default
9499  (3.2), 
9500 \family typewriter
9501
9502 \backslash
9503 twocolumn
9504 \family default
9505  (3.2)
9506 \end_layout
9507
9508 \begin_layout Subsubsection
9509 Things that cannot be implemented
9510 \end_layout
9511
9512 \begin_layout Standard
9513 \SpecialChar ldots
9514  at least in any meaningful sort of way, so I suggest ignoring them.
9515  They are the references environment (2.13.3), and the deluxetable environment
9516  (2.15).
9517  If you really, really need to use deluxetable, I suggest editing it in
9518  a separate file with a text editor, then using 
9519 \family sans
9520 Insert\SpecialChar menuseparator
9521 Child
9522 \begin_inset space ~
9523 \end_inset
9524
9525 Document
9526 \family default
9527  to include it in your \SpecialChar LyX
9528  document.
9529  See the 
9530 \family typewriter
9531 aas_sample.lyx
9532 \family default
9533  file to see an example of this.
9534 \end_layout
9535
9536 \begin_layout Subsection
9537 FAQs, Tips, Tricks, and Other Ruminations
9538 \end_layout
9539
9540 \begin_layout Subsubsection
9541 Getting \SpecialChar LyX
9542  and AAS\SpecialChar TeX
9543  to cooperate
9544 \end_layout
9545
9546 \begin_layout Standard
9547 It can be a bit tricky to get \SpecialChar LyX
9548  to recognize a new layout and document class.
9549  When all else fails, do this:
9550 \end_layout
9551
9552 \begin_layout Enumerate
9553 Make certain that \SpecialChar LaTeX
9554  can find AAS\SpecialChar TeX
9555 .
9556  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9557  distribution into a
9558  directory completely unrelated to \SpecialChar LaTeX
9559  or AAS\SpecialChar TeX
9560  and run \SpecialChar LaTeX
9561  on 
9562 \family typewriter
9563 sample.tex
9564 \family default
9565 .
9566 \end_layout
9567
9568 \begin_layout Enumerate
9569 Make certain that 
9570 \family typewriter
9571 aastex.layout
9572 \family default
9573  appears in \SpecialChar LyX
9574 's 
9575 \family typewriter
9576 layouts
9577 \family default
9578  folder
9579 \end_layout
9580
9581 \begin_layout Enumerate
9582 Rerun 
9583 \family sans
9584 Tools\SpecialChar menuseparator
9585 Reconfigure
9586 \family default
9587  in \SpecialChar LyX
9588 , then restart \SpecialChar LyX
9589 .
9590 \end_layout
9591
9592 \begin_layout Enumerate
9593 Open a regular new file, not from a template.
9594  Does AAS\SpecialChar TeX
9595  appear in the class list in 
9596 \family sans
9597 Document\SpecialChar menuseparator
9598 Settings
9599 \family default
9600 ?
9601 \end_layout
9602
9603 \begin_layout Standard
9604 If you get a warning from an existing AAS\SpecialChar TeX
9605  document about not being able
9606  to find the AAS\SpecialChar TeX
9607  layout or a message about 
9608 \begin_inset Quotes eld
9609 \end_inset
9610
9611 You should not mix title layouts with normal ones
9612 \begin_inset Quotes erd
9613 \end_inset
9614
9615 , things haven't been installed correctly.
9616 \end_layout
9617
9618 \begin_layout Subsubsection
9619 \SpecialChar LaTeX
9620  error processing a table 
9621 \end_layout
9622
9623 \begin_layout Standard
9624 \SpecialChar LyX
9625 , by default, attempts to center the table caption/title.
9626  This seems to produce a bad interaction in AAS\SpecialChar TeX
9627  so you should click somewhere
9628  in the caption/title, then select 
9629 \family sans
9630 Edit\SpecialChar menuseparator
9631 Paragraph
9632 \begin_inset space ~
9633 \end_inset
9634
9635 Settings
9636 \family default
9637 , then set the 
9638 \family sans
9639 Alignment
9640 \family default
9641  to 
9642 \family sans
9643 Block
9644 \family default
9645 .
9646  This took care of it for me.
9647 \end_layout
9648
9649 \begin_layout Subsubsection
9650 References
9651 \end_layout
9652
9653 \begin_layout Standard
9654 A couple of things: 1) I have noticed some funny spacing in the reference
9655  entries in the text.
9656  When you enter the bibliography item data, make sure their is 
9657 \emph on
9658 no
9659 \emph default
9660  space between the last author and the parenthesis setting off the year;
9661  
9662 \emph on
9663 e.
9664 \begin_inset space \thinspace{}
9665 \end_inset
9666
9667 g.
9668 \begin_inset space \space{}
9669 \end_inset
9670
9671
9672 \emph default
9673 type 
9674 \family typewriter
9675 Ressler(1992)
9676 \family default
9677 , not 
9678 \family typewriter
9679 Ressler (1992)
9680 \family default
9681 .
9682  2) Entering the references at all is not obvious.
9683  The easiest thing is to start typing your first reference at the end of
9684  the document, then mark it as type 
9685 \family sans
9686 References
9687 \family default
9688 .
9689  That will put a small gray box in front of what you just typed.
9690  Click on the box to fill in the rest of the information.
9691  For new references, go to the end of an existing reference and press return.
9692  That will create a new line with its own box, etc.
9693 \end_layout
9694
9695 \begin_layout Subsubsection
9696 Including EPS files
9697 \end_layout
9698
9699 \begin_layout Standard
9700 Even though AAS\SpecialChar TeX
9701  provides its own figure commands (
9702 \family typewriter
9703
9704 \backslash
9705 plotone
9706 \family default
9707 , for example), I much prefer \SpecialChar LaTeX
9708 's standard figure commands (with the default
9709  graphicx).
9710  You can insert the 
9711 \family typewriter
9712
9713 \backslash
9714 plotone
9715 \family default
9716 , etc.
9717 \begin_inset space ~
9718 \end_inset
9719
9720 commands as \SpecialChar TeX
9721  code into a Figure Float box if you desire, but I never have
9722  much luck getting the layout right.
9723  With the standard graphics, \SpecialChar LyX
9724  will insert a 
9725 \family typewriter
9726
9727 \backslash
9728 usepackage{graphicx}
9729 \family default
9730  command into the \SpecialChar LaTeX
9731  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9732  way,
9733  interspersing the figures in the text.
9734  I believe ApJ accepts figures exactly this way now; AJ might still use
9735  the 
9736 \begin_inset Quotes eld
9737 \end_inset
9738
9739 stack everything at the end
9740 \begin_inset Quotes erd
9741 \end_inset
9742
9743  technique.
9744 \end_layout
9745
9746 \begin_layout Subsubsection
9747 Things I could have done, but didn't
9748 \end_layout
9749
9750 \begin_layout Standard
9751 There are a few 
9752 \begin_inset Quotes eld
9753 \end_inset
9754
9755 pretty
9756 \begin_inset Quotes erd
9757 \end_inset
9758
9759  things I could have implemented, but chose not to.
9760  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9761  window,
9762  even though it is double-spaced in the paper manuscript.
9763  Also, I chose not to make separate layouts for the preprint and preprint2
9764  styles.
9765  Since I assume you will spend most of your time in the plain manuscript
9766  mode anyway, I decided not to chew up more disk space with this.
9767  
9768 \end_layout
9769
9770 \begin_layout Subsection
9771 Final Caveat
9772 \end_layout
9773
9774 \begin_layout Standard
9775 Your mileage may vary.
9776  I've now had papers published by both ApJ and AJ that have had 98% of the
9777  effort done in \SpecialChar LyX
9778 ; the last 2% was the \SpecialChar LaTeX
9779  post-processing and a few cleanups.
9780  I have had no trouble with the submission process, and I'm sure the journals
9781  were never aware that there might be a difference.
9782  So, go forth and publish!
9783 \end_layout
9784
9785 \begin_layout Section
9786 AMS \SpecialChar LaTeX
9787
9788 \end_layout
9789
9790 \begin_layout Standard
9791 by 
9792 \noun on
9793 David Johnson
9794 \noun default
9795 ; updated by 
9796 \noun on
9797 Richard Heck
9798 \end_layout
9799
9800 \begin_layout Standard
9801 \begin_inset VSpace bigskip
9802 \end_inset
9803
9804
9805 \end_layout
9806
9807 \begin_layout Standard
9808 \noindent
9809 The AMS \SpecialChar LaTeX
9810  layouts are set up to conform to suggested styles for mathematical
9811  papers to be submitted to American Mathematical Society publications.
9812  The layouts are not tailored to a specific journal, but easily can be.
9813  You should refer to the AMS documentation for specific instructions for
9814  each journal (usually it will entail only changing a single line in the
9815  \SpecialChar TeX
9816  output).
9817  That documentation is available on the Web at 
9818 \begin_inset Flex URL
9819 status open
9820
9821 \begin_layout Plain Layout
9822
9823 http://www.ams.org
9824 \end_layout
9825
9826 \end_inset
9827
9828  or by ftp at 
9829 \begin_inset Flex URL
9830 status open
9831
9832 \begin_layout Plain Layout
9833
9834 ftp://ftp.ams.org/pub/tex/amslatex/
9835 \end_layout
9836
9837 \end_inset
9838
9839 .
9840  These layouts are appropriate, and useful, for any mathematical writing.
9841  
9842 \end_layout
9843
9844 \begin_layout Standard
9845 There are two basic AMS \SpecialChar LaTeX
9846  layouts: 
9847 \end_layout
9848
9849 \begin_layout Itemize
9850 amsart: The standard AMS article format.
9851 \end_layout
9852
9853 \begin_layout Itemize
9854 amsbook: the standard AMS book (really, monograph) format.
9855  
9856 \end_layout
9857
9858 \begin_layout Standard
9859 The layouts themselves contain only the minimum necessary to use the AMS
9860  classes.
9861  They do not, in particular, contain any of the `theorem' environments used
9862  for setting theorems, lemmas, and the like.
9863  These are contained, instead, in the 
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 Theorems (AMS)
9869 \end_layout
9870
9871 \end_inset
9872
9873  module, which is loaded by default when you select one of the AMS classes.
9874  (It can also be used with other classes and can be removed, if you would
9875  rather use something else.) Less commonly used environments are in the 
9876 \begin_inset Flex Code
9877 status collapsed
9878
9879 \begin_layout Plain Layout
9880 Theorems (AMS-Extended)
9881 \end_layout
9882
9883 \end_inset
9884
9885  module, which must be loaded manually.
9886 \end_layout
9887
9888 \begin_layout Standard
9889 By default, theorems and the like are numbered consecutively throughout
9890  the document, but this may be modified by loading the module 
9891 \begin_inset Flex Code
9892 status collapsed
9893
9894 \begin_layout Plain Layout
9895 Theorems (Order by Section)
9896 \end_layout
9897
9898 \end_inset
9899
9900  or, if you are using 
9901 \begin_inset Flex Code
9902 status collapsed
9903
9904 \begin_layout Plain Layout
9905 book (AMS)
9906 \end_layout
9907
9908 \end_inset
9909
9910 , the module 
9911 \begin_inset Flex Code
9912 status collapsed
9913
9914 \begin_layout Plain Layout
9915 Theorems (Order by Chapter)
9916 \end_layout
9917
9918 \end_inset
9919
9920 .
9921  These will number the results as 
9922 \begin_inset Formula $n.m$
9923 \end_inset
9924
9925 , where the first number refers to the section (or chapter) and the second
9926  refers to the total number of results so far in that section (or chapter).
9927  Many environments are also available unnumbered.
9928  These are indicated by an asterisk at the end.
9929  If you happen to want 
9930 \emph on
9931 only
9932 \emph default
9933  unnumbered results, the module 
9934 \begin_inset Flex Code
9935 status collapsed
9936
9937 \begin_layout Plain Layout
9938 Theorems (Starred)
9939 \end_layout
9940
9941 \end_inset
9942
9943  provides that option.
9944 \end_layout
9945
9946 \begin_layout Standard
9947 Note that these modules do not 
9948 \emph on
9949 have
9950 \emph default
9951  to be used with the AMS classes.
9952  It is perfectly possible to use the 
9953 \begin_inset Flex Code
9954 status collapsed
9955
9956 \begin_layout Plain Layout
9957 Theorems (AMS)
9958 \end_layout
9959
9960 \end_inset
9961
9962  module, and the others mentioned, with other classes, such as 
9963 \begin_inset Flex Code
9964 status collapsed
9965
9966 \begin_layout Plain Layout
9967 article
9968 \end_layout
9969
9970 \end_inset
9971
9972
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977 report
9978 \end_layout
9979
9980 \end_inset
9981
9982
9983 \begin_inset Flex Code
9984 status collapsed
9985
9986 \begin_layout Plain Layout
9987 book (KOMA-script)
9988 \end_layout
9989
9990 \end_inset
9991
9992 , and so forth.
9993 \end_layout
9994
9995 \begin_layout Subsection
9996 What these layouts provide
9997 \end_layout
9998
9999 \begin_layout Standard
10000 There is a long list of included environments provided by these layouts.
10001  In AMS-\SpecialChar LaTeX
10002 , there is, in fact, an opportunity to define an unlimited variety
10003  of `theorem' environments.
10004  However, the AMS recommends the environments that are available in \SpecialChar LyX
10005 .
10006  
10007 \end_layout
10008
10009 \begin_layout Standard
10010 The following environments—as well as the standard environments, such as
10011  
10012 \begin_inset Flex Noun
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 section
10017 \end_layout
10018
10019 \end_inset
10020
10021
10022 \begin_inset Flex Noun
10023 status collapsed
10024
10025 \begin_layout Plain Layout
10026 bibliography
10027 \end_layout
10028
10029 \end_inset
10030
10031
10032 \begin_inset Flex Noun
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036 title
10037 \end_layout
10038
10039 \end_inset
10040
10041
10042 \begin_inset Flex Noun
10043 status collapsed
10044
10045 \begin_layout Plain Layout
10046 author
10047 \end_layout
10048
10049 \end_inset
10050
10051 , and 
10052 \begin_inset Flex Noun
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 date
10057 \end_layout
10058
10059 \end_inset
10060
10061 —are provided by 
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 article (AMS)
10067 \end_layout
10068
10069 \end_inset
10070
10071  and 
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 book (AMS)
10077 \end_layout
10078
10079 \end_inset
10080
10081 :
10082 \end_layout
10083
10084 \begin_layout Description
10085 Address This should be the author's permanent address.
10086 \end_layout
10087
10088 \begin_layout Description
10089 Current
10090 \begin_inset space ~
10091 \end_inset
10092
10093 Address This should be the author's temporary address at the time of submission,
10094  if different from the Address.
10095 \end_layout
10096
10097 \begin_layout Description
10098 Email Author's e-mail address
10099 \end_layout
10100
10101 \begin_layout Description
10102 URL Author's Web address, if desired.
10103 \end_layout
10104
10105 \begin_layout Description
10106 Keywords Key words or phrases used to identify specific topics discussed
10107  in the paper.
10108 \end_layout
10109
10110 \begin_layout Description
10111 Subjectclass These refer to the AMS Subject Classifications, published and
10112  described in 
10113 \emph on
10114 Mathematical Reviews
10115 \emph default
10116 .
10117  These are also available online at the AMS cites listed above.
10118 \end_layout
10119
10120 \begin_layout Description
10121 Thanks
10122 \end_layout
10123
10124 \begin_layout Description
10125 Dedicatory
10126 \end_layout
10127
10128 \begin_layout Description
10129 Translator
10130 \end_layout
10131
10132 \begin_layout Standard
10133 The following environments are provided by both the 
10134 \begin_inset Flex Code
10135 status collapsed
10136
10137 \begin_layout Plain Layout
10138 Theorems
10139 \end_layout
10140
10141 \end_inset
10142
10143  and 
10144 \begin_inset Flex Code
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 Theorems (AMS)
10149 \end_layout
10150
10151 \end_inset
10152
10153  modules, in the latter case in both starred (unnumbered) and unstarred
10154  (numbered) versions.
10155  These same environments are provided only in the starred versions by the
10156  
10157 \begin_inset Flex Code
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 Theorems (Starred)
10162 \end_layout
10163
10164 \end_inset
10165
10166  module:
10167 \end_layout
10168
10169 \begin_layout Theorem
10170 This is typically used for the statements of major results.
10171  
10172 \end_layout
10173
10174 \begin_layout Corollary*
10175 This is used for statements which follow fairly directly from previous statement
10176 s.
10177  Again, these can be major results.
10178  
10179 \end_layout
10180
10181 \begin_layout Lemma
10182 These are smaller results needed to prove other statements.
10183 \end_layout
10184
10185 \begin_layout Proposition
10186 These are less major results which (hopefully) add to the general theory
10187  being discussed.
10188 \end_layout
10189
10190 \begin_layout Conjecture
10191 These are statements provided without justification, which the author does
10192  not know how to prove, but which seem to be true (to the author, at least).
10193 \end_layout
10194
10195 \begin_layout Definition*
10196 Guess what this is for.
10197  The font is different for this environment than for the previous ones.
10198  
10199 \end_layout
10200
10201 \begin_layout Example*
10202 Used for examples illustrating proven results.
10203 \end_layout
10204
10205 \begin_layout Problem
10206 It's not really known what this is for.
10207  You should figure it out.
10208 \end_layout
10209
10210 \begin_layout Exercise*
10211 Write a description for this one.
10212 \end_layout
10213
10214 \begin_layout Remark
10215 This environment is also a type of theorem, usually a lesser sort of observation.
10216 \end_layout
10217
10218 \begin_layout Claim*
10219 Often used in the course of giving a proof of a larger result.
10220 \end_layout
10221
10222 \begin_layout Case
10223 Generally, these are used to break up long arguments, using specific instances
10224  of some condition.
10225  
10226 \end_layout
10227
10228 \begin_layout Case
10229 The numbering scheme for cases is on its own, not together with other numbered
10230  statements.
10231  
10232 \end_layout
10233
10234 \begin_layout Proof
10235 At the end of this environment, a QED symbol (usually a square, but it can
10236  vary with different styles) is placed.
10237  If you want to have other environments within this one—for example, Case
10238  environments—and have the QED symbol appear only after them, then the other
10239  environments need to be nested within the proof environment.
10240  See the section 
10241 \emph on
10242 Nesting Environments
10243 \emph default
10244  of the 
10245 \emph on
10246 User's Guide
10247 \emph default
10248  for information on nesting.
10249 \end_layout
10250
10251 \begin_layout Standard
10252 And these environments are provided by 
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257 Theorems (AMS-Extended)
10258 \end_layout
10259
10260 \end_inset
10261
10262 :
10263 \end_layout
10264
10265 \begin_layout Criterion*
10266 A required condition.
10267 \end_layout
10268
10269 \begin_layout Algorithm*
10270 A general procedure to be used.
10271 \end_layout
10272
10273 \begin_layout Axiom*
10274 This is a property or statement taken as true within the system being discussed.
10275 \end_layout
10276
10277 \begin_layout Condition*
10278 Sometimes used to state a condition assumed within the present context of
10279  discussion.
10280 \end_layout
10281
10282 \begin_layout Note*
10283 Similar to a Remark.
10284 \end_layout
10285
10286 \begin_layout Notation*
10287 Used for the explanation of, yes, notation.
10288 \end_layout
10289
10290 \begin_layout Summary
10291 Do we really need to tell you? 
10292 \end_layout
10293
10294 \begin_layout Acknowledgement*
10295 Acknowledgement.
10296 \end_layout
10297
10298 \begin_layout Conclusion*
10299 Sometimes used at the end of a long train of argument.
10300 \end_layout
10301
10302 \begin_layout Fact
10303 Used in a way similar to Proposition, though perhaps lower on the scale.
10304 \end_layout
10305
10306 \begin_layout Standard
10307 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10308  and AMS fonts
10309  packages.
10310  They need to be available on your system in order to use these environments.
10311 \end_layout
10312
10313 \begin_layout Section
10314 AGU journals (
10315 \family sans
10316 aguplus
10317 \family default
10318 )
10319 \end_layout
10320
10321 \begin_layout Standard
10322 by 
10323 \shape smallcaps
10324 Martin Vermeer
10325 \end_layout
10326
10327 \begin_layout Subsection
10328 Description
10329 \end_layout
10330
10331 \begin_layout Standard
10332 These are the layout files for some of the journals of the American Geophysical
10333  Society.
10334  It is assumed that you have both the AGU's own class files and AGUplus
10335  installed (everything to be found at
10336 \begin_inset Flex URL
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340
10341 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10342 \end_layout
10343
10344 \end_inset
10345
10346 ).
10347 \end_layout
10348
10349 \begin_layout Subsection
10350 New styles
10351 \end_layout
10352
10353 \begin_layout Standard
10354 Redefined are 
10355 \family sans
10356 Paragraph
10357 \family default
10358
10359 \family sans
10360 Paragraph*
10361 \family default
10362 .
10363  They are still called this in the \SpecialChar LyX
10364  GUI, though their \SpecialChar LaTeX
10365  equivalents in the
10366  AGU classes are 
10367 \family sans
10368 Subsubsubsection
10369 \family default
10370  and 
10371 \family sans
10372 Subsubsubsection*
10373 \family default
10374 .
10375 \end_layout
10376
10377 \begin_layout Standard
10378 Newly defined styles are 
10379 \family sans
10380 Left_Header
10381 \family default
10382
10383 \family sans
10384 Right_Header
10385 \family default
10386
10387 \family sans
10388 Received
10389 \family default
10390
10391 \family sans
10392 Revised
10393 \family default
10394
10395 \family sans
10396 Accepted
10397 \family default
10398
10399 \family sans
10400 CCC
10401 \family default
10402
10403 \family sans
10404 PaperId
10405 \family default
10406
10407 \family sans
10408 AuthorAddr
10409 \family default
10410
10411 \family sans
10412 SlugComment
10413 \family default
10414 .
10415  These are mostly manuscript attributes and defined in the AGU class documentati
10416 on.
10417 \end_layout
10418
10419 \begin_layout Standard
10420 I suspect this is still badly incomplete.
10421 \end_layout
10422
10423 \begin_layout Subsection
10424 New floats
10425 \end_layout
10426
10427 \begin_layout Standard
10428
10429 \family sans
10430 Planotable
10431 \family default
10432  and 
10433 \family sans
10434 Plate
10435 \family default
10436 .
10437  We also have a new 
10438 \family sans
10439 Table_Caption
10440 \family default
10441 .
10442 \end_layout
10443
10444 \begin_layout Subsection
10445 Supported journals
10446 \end_layout
10447
10448 \begin_layout Itemize
10449
10450 \emph on
10451 Journal of Geophysical Research
10452 \emph default
10453
10454 \family typewriter
10455 jgrga.layout
10456 \family default
10457  — Martin Vermeer
10458 \end_layout
10459
10460 \begin_layout Standard
10461 Add your own, it isn't so hard! Look at the 
10462 \family typewriter
10463 jgrga.layout
10464 \family default
10465  example and 
10466 \family typewriter
10467 aguplus.inc
10468 \family default
10469 .
10470 \end_layout
10471
10472 \begin_layout Subsection
10473 Bugs and things to remember
10474 \end_layout
10475
10476 \begin_layout Standard
10477 In order to use the new layouts, you must remember to do the following for
10478  a new document:
10479 \end_layout
10480
10481 \begin_layout Enumerate
10482
10483 \emph on
10484 Turn off babel
10485 \emph default
10486 .
10487  This can be done in the 
10488 \family sans
10489 Layout\SpecialChar menuseparator
10490 Document
10491 \family default
10492  or 
10493 \family sans
10494 Document\SpecialChar menuseparator
10495 Settings
10496 \family default
10497  menu item.
10498  (AGU articles are always in English, right? So 
10499 \emph on
10500 don't
10501 \emph default
10502  choose a language.)
10503 \end_layout
10504
10505 \begin_layout Enumerate
10506 Enter 
10507 \family typewriter
10508 jgrga
10509 \family default
10510  into the document's 
10511 \family sans
10512 Extra Options
10513 \family default
10514  field.
10515  (Yes, this is a bug.)
10516 \end_layout
10517
10518 \begin_layout Enumerate
10519 Make sure you use the 
10520 \family typewriter
10521 agu.bst
10522 \family default
10523  bibliography style, by entering 
10524 \family sans
10525 agu
10526 \family default
10527  into the second field of the Bib\SpecialChar TeX
10528  inset.
10529  None of the standard styles will do.
10530 \end_layout
10531
10532 \begin_layout Section
10533 Broadway
10534 \end_layout
10535
10536 \begin_layout Standard
10537 by 
10538 \shape smallcaps
10539 Garst Reese
10540 \end_layout
10541
10542 \begin_layout Subsection
10543 Introduction
10544 \end_layout
10545
10546 \begin_layout Standard
10547 Broadway is for writing plays.
10548  The format is more decorative than Hollywood, and much less standardized.
10549  This format should be suitable for workshops.
10550 \end_layout
10551
10552 \begin_layout Subsection
10553 Special problems
10554 \end_layout
10555
10556 \begin_layout Standard
10557 The same as in Hollywood.
10558 \end_layout
10559
10560 \begin_layout Subsection
10561 Special features
10562 \end_layout
10563
10564 \begin_layout Standard
10565 Insert the 
10566 \family sans
10567 Speaker
10568 \family default
10569  names as labels then cross-reference the label to insert the name.
10570  The cross-reference dialog will show the current cast of characters.
10571 \end_layout
10572
10573 \begin_layout Subsection
10574 Paper size and Margins
10575 \end_layout
10576
10577 \begin_layout Standard
10578 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10579 \end_layout
10580
10581 \begin_layout Subsection
10582 Environments
10583 \end_layout
10584
10585 \begin_layout Standard
10586 The following environments are available.
10587  You can use broadway.bind to get the bind keys shown at the right.
10588 \end_layout
10589
10590 \begin_layout Itemize
10591
10592 \family sans
10593 Standard
10594 \begin_inset Newline newline
10595 \end_inset
10596
10597
10598 \family default
10599 You should not have to use this, but it is here for anything that does not
10600  fit otherwise.
10601 \end_layout
10602
10603 \begin_layout Itemize
10604
10605 \family sans
10606 Narrative
10607 \begin_inset space \hfill{}
10608 \end_inset
10609
10610 M-z n
10611 \begin_inset Newline newline
10612 \end_inset
10613
10614
10615 \family default
10616 Used to describe stage setting and the action.
10617  First use of speaker names in all CAPs.
10618 \end_layout
10619
10620 \begin_layout Itemize
10621
10622 \family sans
10623 ACT
10624 \begin_inset space \hfill{}
10625 \end_inset
10626
10627 M-z a
10628 \begin_inset Newline newline
10629 \end_inset
10630
10631
10632 \family default
10633 Automatically numbered.
10634  On screen it will be arabic, but will print as Roman.
10635 \end_layout
10636
10637 \begin_layout Itemize
10638
10639 \family sans
10640 ACT*
10641 \begin_inset space \hfill{}
10642 \end_inset
10643
10644 M-z S at
10645 \begin_inset Newline newline
10646 \end_inset
10647
10648
10649 \family default
10650 Subtitle for 
10651 \family sans
10652 ACT.
10653
10654 \family default
10655  It is just centered text.
10656 \end_layout
10657
10658 \begin_layout Itemize
10659
10660 \family sans
10661 SCENE
10662 \begin_inset space \hfill{}
10663 \end_inset
10664
10665 M-z S-S
10666 \begin_inset Newline newline
10667 \end_inset
10668
10669
10670 \family default
10671 Not automatically numbered.
10672  You supply the number.
10673  This is because I couldn't figure out how.
10674 \end_layout
10675
10676 \begin_layout Itemize
10677
10678 \family sans
10679 AT_RISE:
10680 \begin_inset space \hfill{}
10681 \end_inset
10682
10683 M-z S-R
10684 \begin_inset Newline newline
10685 \end_inset
10686
10687
10688 \family default
10689 A special case of Narrative to describe the setting and action as the curtain
10690  rises.
10691 \end_layout
10692
10693 \begin_layout Itemize
10694
10695 \family sans
10696 Speaker
10697 \begin_inset space \hfill{}
10698 \end_inset
10699
10700 M-z s
10701 \begin_inset Newline newline
10702 \end_inset
10703
10704
10705 \family default
10706 The speaker's (actor's) title, centered in all CAPS.
10707 \end_layout
10708
10709 \begin_layout Itemize
10710
10711 \family sans
10712 Parenthetical
10713 \begin_inset space \hfill{}
10714 \end_inset
10715
10716 M-z p
10717 \begin_inset Newline newline
10718 \end_inset
10719
10720
10721 \family default
10722 Instructions to the speaker.
10723  The parentheses are automatically inserted.
10724  The ( will appear on screen, but both will be in the printed play.
10725  This environment is only used within 
10726 \family sans
10727 Dialogue
10728 \family default
10729 .
10730 \end_layout
10731
10732 \begin_layout Itemize
10733
10734 \family sans
10735 Dialogue
10736 \begin_inset space \hfill{}
10737 \end_inset
10738
10739 M-z d
10740 \begin_inset Newline newline
10741 \end_inset
10742
10743
10744 \family default
10745 What the Speaker says.
10746 \end_layout
10747
10748 \begin_layout Itemize
10749
10750 \family sans
10751 CURTAIN
10752 \begin_inset space \hfill{}
10753 \end_inset
10754
10755 M-z S-C
10756 \begin_inset Newline newline
10757 \end_inset
10758
10759
10760 \family default
10761 The curtain comes down.
10762 \end_layout
10763
10764 \begin_layout Itemize
10765
10766 \family sans
10767 Title
10768 \begin_inset space \hfill{}
10769 \end_inset
10770
10771 M-z S-T
10772 \end_layout
10773
10774 \begin_layout Itemize
10775
10776 \family sans
10777 Author
10778 \begin_inset space \hfill{}
10779 \end_inset
10780
10781 M-z S-A
10782 \end_layout
10783
10784 \begin_layout Itemize
10785
10786 \family sans
10787 Right_Address
10788 \begin_inset space \hfill{}
10789 \end_inset
10790
10791 M-z r
10792 \end_layout
10793
10794 \begin_layout Standard
10795 Hello there.
10796 \end_layout
10797
10798 \begin_layout Section
10799 Dinbrief
10800 \end_layout
10801
10802 \begin_layout Standard
10803 The document class 
10804 \family sans
10805 dinbrief
10806 \family default
10807  can be used to type letters according to German conventions.
10808  A template file is included in 
10809 \family typewriter
10810 .../lyx/share/templates
10811 \family default
10812  for you to use as a starting point.
10813 \end_layout
10814
10815 \begin_layout Section
10816 EGS journals (
10817 \family sans
10818 egs
10819 \family default
10820 )
10821 \end_layout
10822
10823 \begin_layout Standard
10824 by 
10825 \shape smallcaps
10826 Martin Vermeer
10827 \end_layout
10828
10829 \begin_layout Subsection
10830 Description
10831 \end_layout
10832
10833 \begin_layout Standard
10834 This is the layout file for the European Geophysical Society journals.
10835  The needed 
10836 \family typewriter
10837 egs.cls
10838 \family default
10839  can be downloaded from the web site of the EGS under 
10840 \begin_inset Flex URL
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844
10845 www.copernicus.org
10846 \end_layout
10847
10848 \end_inset
10849
10850 .
10851 \end_layout
10852
10853 \begin_layout Subsection
10854 New styles
10855 \end_layout
10856
10857 \begin_layout Standard
10858
10859 \family sans
10860 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10861  Accepted
10862 \family default
10863
10864 \family sans
10865 Offsets
10866 \family default
10867 .
10868  The current layout file is unfortunately very unmodular and would benefit
10869  from using the various 
10870 \family typewriter
10871 std*.inc
10872 \family default
10873  file inclusions.
10874 \end_layout
10875
10876 \begin_layout Section
10877 Elsevier Journals
10878 \end_layout
10879
10880 \begin_layout Standard
10881 See the \SpecialChar LyX
10882  template file 
10883 \family typewriter
10884 elsarticle.lyx
10885 \family default
10886 .
10887  It contains all infos you need.
10888 \end_layout
10889
10890 \begin_layout Section
10891 Foils [aka 
10892 \family sans
10893 Foil\SpecialChar TeX
10894
10895 \family default
10896 ]
10897 \begin_inset CommandInset label
10898 LatexCommand label
10899 name "sec:foiltex"
10900
10901 \end_inset
10902
10903
10904 \end_layout
10905
10906 \begin_layout Standard
10907 by 
10908 \noun on
10909 Allan Rae
10910 \end_layout
10911
10912 \begin_layout Subsection
10913 Introduction
10914 \end_layout
10915
10916 \begin_layout Standard
10917 This section describes how to use \SpecialChar LyX
10918  to make slides for overhead projectors.
10919  There are two document classes that can do this: the default slides class
10920  and the 
10921 \family sans
10922 Foil\SpecialChar TeX
10923
10924 \family default
10925  slides class.
10926  This section documents the latter.
10927 \end_layout
10928
10929 \begin_layout Standard
10930 I'm going to say this again, nice and clear, so that there's no misunderstanding
10931 :
10932 \end_layout
10933
10934 \begin_layout Standard
10935 \begin_inset VSpace bigskip
10936 \end_inset
10937
10938
10939 \end_layout
10940
10941 \begin_layout Standard
10942 \align center
10943
10944 \size large
10945 This section documents the class 
10946 \begin_inset Quotes eld
10947 \end_inset
10948
10949
10950 \family sans
10951 FoilTeX
10952 \family default
10953
10954 \begin_inset Quotes erd
10955 \end_inset
10956
10957  
10958 \emph on
10959 only.
10960 \end_layout
10961
10962 \begin_layout Standard
10963 \begin_inset VSpace bigskip
10964 \end_inset
10965
10966
10967 \end_layout
10968
10969 \begin_layout Standard
10970 If you're looking for the documentation for 
10971 \begin_inset Quotes eld
10972 \end_inset
10973
10974
10975 \family sans
10976 slides (default)
10977 \family default
10978
10979 \begin_inset Quotes erd
10980 \end_inset
10981
10982 , check out section
10983 \begin_inset space ~
10984 \end_inset
10985
10986
10987 \begin_inset CommandInset ref
10988 LatexCommand ref
10989 reference "sec:slitex"
10990
10991 \end_inset
10992
10993 .
10994  If your machine doesn't have the 
10995 \family sans
10996 foils
10997 \family default
10998  class 
10999 \family sans
11000 FoilTeX
11001 \family default
11002  installed, you'll probably have to use the default 
11003 \family sans
11004 slides
11005 \family default
11006  class, which isn't quite as good as 
11007 \family sans
11008 foils.
11009 \end_layout
11010
11011 \begin_layout Standard
11012 The 
11013 \family sans
11014 foils
11015 \family default
11016  class is designed for use with version
11017 \begin_inset space ~
11018 \end_inset
11019
11020 2.1 of the 
11021 \family sans
11022 foils.cls
11023 \family default
11024  \SpecialChar LaTeX
11025  class file which is now an integral part of \SpecialChar LaTeX2e
11026 .
11027 \end_layout
11028
11029 \begin_layout Subsection
11030 Getting Started
11031 \end_layout
11032
11033 \begin_layout Standard
11034 Obviously, to use this document class, you need to select 
11035 \family sans
11036 FoilTeX
11037 \family default
11038  from the 
11039 \family sans
11040 Class
11041 \family default
11042  entry in the 
11043 \family sans
11044 Document
11045 \begin_inset space ~
11046 \end_inset
11047
11048 Layout
11049 \family default
11050  dialog.
11051  There are some settings in the 
11052 \family sans
11053 Document
11054 \begin_inset space ~
11055 \end_inset
11056
11057 Layout
11058 \family default
11059  dialog that you should know about that are specific to this class:
11060 \end_layout
11061
11062 \begin_layout Itemize
11063 Don't change the options 
11064 \family sans
11065 Sides
11066 \family default
11067  and 
11068 \family sans
11069 Columns
11070 \family default
11071  on the 
11072 \family sans
11073 Document
11074 \begin_inset space ~
11075 \end_inset
11076
11077 Layout
11078 \family default
11079  dialog.
11080  They're ignored by the 
11081 \family sans
11082 foils
11083 \family default
11084  class.
11085 \end_layout
11086
11087 \begin_layout Itemize
11088 The default font size is 20
11089 \begin_inset space \thinspace{}
11090 \end_inset
11091
11092 pt with the other options being 17
11093 \begin_inset space \thinspace{}
11094 \end_inset
11095
11096 pt, 25
11097 \begin_inset space \thinspace{}
11098 \end_inset
11099
11100 pt and 30
11101 \begin_inset space \thinspace{}
11102 \end_inset
11103
11104 pt.
11105 \end_layout
11106
11107 \begin_layout Itemize
11108 The default font is 
11109 \family sans
11110 sans
11111 \family default
11112  
11113 \family sans
11114 serif
11115 \family default
11116  but all math equations are still typeset in the usual roman font.
11117 \end_layout
11118
11119 \begin_layout Itemize
11120
11121 \family sans
11122 Foil\SpecialChar TeX
11123
11124 \family default
11125  supports A4 and Letter paper sizes as well as a special size for working
11126  with 35
11127 \begin_inset space \thinspace{}
11128 \end_inset
11129
11130 mm slides.
11131  It doesn't support A5, B5, legal or executive paper sizes.
11132 \end_layout
11133
11134 \begin_layout Itemize
11135 Don't bother changing the 
11136 \family sans
11137 Float Placement
11138 \family default
11139  settings because they are ignored anyway.
11140  All floats appear where they are defined in the text.
11141 \end_layout
11142
11143 \begin_layout Itemize
11144 The 
11145 \family sans
11146 Pagestyle
11147 \family default
11148  setting behaves a bit differently for this class.
11149  
11150 \family sans
11151 Foil\SpecialChar TeX
11152
11153 \family default
11154  provides extensive footer and header capabilities including a user-defined
11155  logo.
11156  See section
11157 \begin_inset space ~
11158 \end_inset
11159
11160
11161 \begin_inset CommandInset ref
11162 LatexCommand ref
11163 reference "sec:foilfoot"
11164
11165 \end_inset
11166
11167  for more details.
11168  The title page is treated differently to all other pages in the document
11169  and is 
11170 \emph on
11171 always
11172 \emph default
11173  unnumbered and 
11174 \emph on
11175 always
11176 \emph default
11177  has the logo centered at the bottom of the page (if one is defined).
11178  The possible page style choices and what they do are as follows:
11179 \end_layout
11180
11181 \begin_deeper
11182 \begin_layout Labeling
11183 \labelwidthstring MMMMMMM
11184
11185 \family sans
11186 \series bold
11187 empty
11188 \family default
11189 \series default
11190  The final output contains no page numbers, or other headers or footers
11191  (except footnotes of course).
11192  
11193 \end_layout
11194
11195 \begin_layout Labeling
11196 \labelwidthstring MMMMMMM
11197
11198 \family sans
11199 \series bold
11200 plain
11201 \family default
11202 \series default
11203  The final output contains page numbers centered at the bottom of the page.
11204  No other headings or footers (other than footnotes).
11205 \end_layout
11206
11207 \begin_layout Labeling
11208 \labelwidthstring MMMMMMM
11209
11210 \series bold
11211 foilheadings
11212 \series default
11213  Page numbers in lower right corner.
11214  Additional headers and footers are also shown.
11215  This is also the default.
11216 \end_layout
11217
11218 \begin_layout Labeling
11219 \labelwidthstring MMMMMMM
11220
11221 \series bold
11222 fancy
11223 \series default
11224  Gives you access to the 
11225 \family sans
11226 fancyheadings
11227 \family default
11228  package although its use with 
11229 \family sans
11230 Foil\SpecialChar TeX
11231
11232 \family default
11233  is discouraged by the writer of the 
11234 \family sans
11235 Foil\SpecialChar TeX
11236
11237 \family default
11238  package because of some potential page layout clashes.
11239 \end_layout
11240
11241 \end_deeper
11242 \begin_layout Subsubsection
11243 Extra Options
11244 \end_layout
11245
11246 \begin_layout Standard
11247 The following options may be used in the extra class options in the 
11248 \family sans
11249 Document\SpecialChar menuseparator
11250 Settings
11251 \family default
11252  dialog.
11253 \end_layout
11254
11255 \begin_layout Labeling
11256 \labelwidthstring MMMMMMx
11257
11258 \series bold
11259 35mmSlide
11260 \series default
11261  This sets up the page layout for 7.33
11262 \begin_inset space \thinspace{}
11263 \end_inset
11264
11265 in by 11
11266 \begin_inset space \thinspace{}
11267 \end_inset
11268
11269 in paper, which is about the same aspect ratio as a 35
11270 \begin_inset space \thinspace{}
11271 \end_inset
11272
11273 mm slide, making it a bit easier to work with this medium.
11274 \end_layout
11275
11276 \begin_layout Labeling
11277 \labelwidthstring MMMMMMx
11278
11279 \series bold
11280 headrule
11281 \series default
11282  Places a rule across the page below the header on every page except the
11283  title page.
11284 \end_layout
11285
11286 \begin_layout Labeling
11287 \labelwidthstring MMMMMMx
11288
11289 \series bold
11290 footrule
11291 \series default
11292  Places a rule across the page above the footer on every page except the
11293  title page.
11294 \end_layout
11295
11296 \begin_layout Labeling
11297 \labelwidthstring MMMMMMx
11298
11299 \series bold
11300 dvips
11301 \series default
11302  This is automatically set each time you create a new 
11303 \family sans
11304 foils
11305 \family default
11306  document.
11307  This option tells 
11308 \family sans
11309 Foil\SpecialChar TeX
11310
11311 \family default
11312  to use the dvips driver to rotate those pages that are set as landscape
11313  foils.
11314 \end_layout
11315
11316 \begin_layout Labeling
11317 \labelwidthstring MMMMMMx
11318
11319 \series bold
11320 landscape
11321 \series default
11322  Simply changes the page dimensions to those of a landscape page but doesn't
11323  do any rotation.
11324  Thus if you use this option you need to use an external program to rotate
11325  each page or feed your paper through your printer as landscape.
11326  Note that this option effectively reverses the roles of the 
11327 \family sans
11328 Foilhead
11329 \family default
11330  and 
11331 \family sans
11332 Rotatefoilhead
11333 \family default
11334  environments (don't worry these are described in the next section).
11335 \end_layout
11336
11337 \begin_layout Labeling
11338 \labelwidthstring MMMMMMx
11339
11340 \series bold
11341 leqno
11342 \series default
11343  Equation numbers on the left.
11344 \end_layout
11345
11346 \begin_layout Labeling
11347 \labelwidthstring MMMMMMx
11348
11349 \series bold
11350 fleqn
11351 \series default
11352  Flush-left equations.
11353 \end_layout
11354
11355 \begin_layout Subsection
11356 Supported Environments
11357 \end_layout
11358
11359 \begin_layout Standard
11360 Most of the environments commonly supported in other classes are also supported
11361  by the 
11362 \family sans
11363 foils
11364 \family default
11365  class.
11366  There are several additional environments provided by 
11367 \family sans
11368 Foil\SpecialChar TeX
11369
11370 \family default
11371  as well as a couple added by \SpecialChar LyX
11372 .
11373  The following environments are shared with other classes:
11374 \end_layout
11375
11376 \begin_layout Standard
11377 \begin_inset Flex Multiple Columns
11378 status open
11379
11380 \begin_layout Itemize
11381
11382 \family sans
11383 Standard
11384 \end_layout
11385
11386 \begin_layout Itemize
11387
11388 \family sans
11389 Itemize
11390 \end_layout
11391
11392 \begin_layout Itemize
11393
11394 \family sans
11395 Enumerate
11396 \end_layout
11397
11398 \begin_layout Itemize
11399
11400 \family sans
11401 Description
11402 \end_layout
11403
11404 \begin_layout Itemize
11405
11406 \family sans
11407 List
11408 \end_layout
11409
11410 \begin_layout Itemize
11411
11412 \family sans
11413 \SpecialChar LyX
11414 -Code
11415 \end_layout
11416
11417 \begin_layout Itemize
11418
11419 \family sans
11420 Verse
11421 \end_layout
11422
11423 \begin_layout Itemize
11424
11425 \family sans
11426 Quote
11427 \end_layout
11428
11429 \begin_layout Itemize
11430
11431 \family sans
11432 Quotation
11433 \end_layout
11434
11435 \begin_layout Itemize
11436
11437 \family sans
11438 Title
11439 \end_layout
11440
11441 \begin_layout Itemize
11442
11443 \family sans
11444 Author
11445 \end_layout
11446
11447 \begin_layout Itemize
11448
11449 \family sans
11450 Date
11451 \end_layout
11452
11453 \begin_layout Itemize
11454
11455 \family sans
11456 Abstract
11457 \end_layout
11458
11459 \begin_layout Itemize
11460
11461 \family sans
11462 Bibliography
11463 \end_layout
11464
11465 \begin_layout Itemize
11466
11467 \family sans
11468 Address
11469 \end_layout
11470
11471 \begin_layout Itemize
11472
11473 \family sans
11474 RightAddress
11475 \end_layout
11476
11477 \begin_layout Itemize
11478
11479 \family sans
11480 Caption
11481 \end_layout
11482
11483 \begin_layout Itemize
11484
11485 \family sans
11486 Comment
11487 \end_layout
11488
11489 \end_inset
11490
11491
11492 \end_layout
11493
11494 \begin_layout Standard
11495 That is, all the major environments apart from the sectioning environments.
11496  Since foils are essentially self-contained sections, with a title and body,
11497  
11498 \family sans
11499 Foil\SpecialChar TeX
11500
11501 \family default
11502  provides specific commands for starting new foils and these are:
11503 \end_layout
11504
11505 \begin_layout Itemize
11506
11507 \family sans
11508 Foilhead
11509 \end_layout
11510
11511 \begin_layout Itemize
11512
11513 \family sans
11514 Rotatefoilhead
11515 \end_layout
11516
11517 \begin_layout Standard
11518 \SpecialChar LyX
11519  also provides slightly modified versions of these two environments called:
11520 \end_layout
11521
11522 \begin_layout Itemize
11523
11524 \family sans
11525 ShortFoilhead
11526 \end_layout
11527
11528 \begin_layout Itemize
11529
11530 \family sans
11531 ShortRotatefoilhead
11532 \end_layout
11533
11534 \begin_layout Standard
11535 and the differences will be explained in the next section.
11536 \end_layout
11537
11538 \begin_layout Standard
11539 Since foils are often used in presenting ideas or new theorems and such
11540  
11541 \family sans
11542 Foil\SpecialChar TeX
11543
11544 \family default
11545  also provides a comprehensive box of goodies for presenting them:
11546 \end_layout
11547
11548 \begin_layout Standard
11549 \begin_inset Flex Multiple Columns
11550 status open
11551
11552 \begin_layout Itemize
11553
11554 \family sans
11555 Theorem
11556 \end_layout
11557
11558 \begin_layout Itemize
11559
11560 \family sans
11561 Lemma
11562 \end_layout
11563
11564 \begin_layout Itemize
11565
11566 \family sans
11567 Corollary
11568 \end_layout
11569
11570 \begin_layout Itemize
11571
11572 \family sans
11573 Proposition
11574 \end_layout
11575
11576 \begin_layout Itemize
11577
11578 \family sans
11579 Definition
11580 \end_layout
11581
11582 \begin_layout Itemize
11583
11584 \family sans
11585 Proof
11586 \end_layout
11587
11588 \begin_layout Itemize
11589
11590 \family sans
11591 Theorem*
11592 \end_layout
11593
11594 \begin_layout Itemize
11595
11596 \family sans
11597 Lemma*
11598 \end_layout
11599
11600 \begin_layout Itemize
11601
11602 \family sans
11603 Corollary*
11604 \end_layout
11605
11606 \begin_layout Itemize
11607
11608 \family sans
11609 Proposition*
11610 \end_layout
11611
11612 \begin_layout Itemize
11613
11614 \family sans
11615 Definition*
11616 \end_layout
11617
11618 \end_inset
11619
11620
11621 \end_layout
11622
11623 \begin_layout Standard
11624 The starred versions are unnumbered while the unstarred versions are numbered.
11625  There are also two list environments added by \SpecialChar LyX
11626  and these are:
11627 \end_layout
11628
11629 \begin_layout Itemize
11630
11631 \family sans
11632 TickList
11633 \end_layout
11634
11635 \begin_layout Itemize
11636
11637 \family sans
11638 CrossList
11639 \end_layout
11640
11641 \begin_layout Standard
11642
11643 \family sans
11644 Foil\SpecialChar TeX
11645
11646 \family default
11647  provides some powerful header and footer capabilities that are best set
11648  in the preamble although they may be set at any point in a document.
11649  If you want to change these settings in your document the best place to
11650  do so is at the very top of a foil, i.
11651 \begin_inset space \thinspace{}
11652 \end_inset
11653
11654 e.
11655 \emph on
11656
11657 \begin_inset space \space{}
11658 \end_inset
11659
11660
11661 \emph default
11662 straight after the foilhead.
11663 \end_layout
11664
11665 \begin_layout Standard
11666 For this purpose, the following command styles are provided [
11667 \shape smallcaps
11668 Martin Vermeer
11669 \shape default
11670 ]:
11671 \end_layout
11672
11673 \begin_layout Standard
11674 \begin_inset Flex Multiple Columns
11675 status open
11676
11677 \begin_layout Itemize
11678
11679 \family sans
11680 My
11681 \begin_inset space ~
11682 \end_inset
11683
11684 Logo
11685 \end_layout
11686
11687 \begin_layout Itemize
11688
11689 \family sans
11690 Restriction
11691 \end_layout
11692
11693 \begin_layout Itemize
11694
11695 \family sans
11696 Right
11697 \begin_inset space ~
11698 \end_inset
11699
11700 Footer
11701 \end_layout
11702
11703 \begin_layout Itemize
11704
11705 \family sans
11706 Right
11707 \begin_inset space ~
11708 \end_inset
11709
11710 Header
11711 \end_layout
11712
11713 \begin_layout Itemize
11714
11715 \family sans
11716 Left
11717 \begin_inset space ~
11718 \end_inset
11719
11720 Header
11721 \end_layout
11722
11723 \begin_deeper
11724 \begin_layout Plain Layout
11725 \begin_inset space ~
11726 \end_inset
11727
11728
11729 \end_layout
11730
11731 \end_deeper
11732 \end_inset
11733
11734
11735 \end_layout
11736
11737 \begin_layout Standard
11738 There are also a few commands provided by 
11739 \family sans
11740 Foil\SpecialChar TeX
11741
11742 \family default
11743  that aren't directly supported by \SpecialChar LyX
11744  but I'll tell you what they do and how
11745  to use them in section
11746 \begin_inset space ~
11747 \end_inset
11748
11749
11750 \begin_inset CommandInset ref
11751 LatexCommand ref
11752 reference "sec:unsuppfoils"
11753
11754 \end_inset
11755
11756 .
11757 \end_layout
11758
11759 \begin_layout Subsection
11760 Building a Set of Foils
11761 \end_layout
11762
11763 \begin_layout Standard
11764 This section will give a simple introduction to using the different environments
11765  to build a set of foils.
11766  If you want to see an example set of foils, take a look at the 
11767 \family typewriter
11768 Foils.lyx
11769 \family default
11770  file you find in \SpecialChar LyX
11771 's 
11772 \family typewriter
11773 examples
11774 \family default
11775  folder.
11776 \end_layout
11777
11778 \begin_layout Subsubsection
11779 Give It a Title Page
11780 \end_layout
11781
11782 \begin_layout Standard
11783 Unlike other classes that provide 
11784 \family sans
11785 Title
11786 \family default
11787
11788 \family sans
11789 Author
11790 \family default
11791
11792 \family sans
11793 Date
11794 \family default
11795  and 
11796 \family sans
11797 Abstract
11798 \family default
11799  environments, 
11800 \family sans
11801 foils
11802 \family default
11803  creates the title on a page of its own.
11804  If you leave out the 
11805 \family sans
11806 Date
11807 \family default
11808  environment \SpecialChar LaTeX
11809  will substitute the current date (every time you regenerate
11810  the output).
11811 \end_layout
11812
11813 \begin_layout Subsubsection
11814 Start a New Foil
11815 \end_layout
11816
11817 \begin_layout Standard
11818 As I mentioned earlier, there are four ways of starting a new foil.
11819  For portrait foils you should use 
11820 \family sans
11821 Foilhead
11822 \family default
11823  or 
11824 \family sans
11825 ShortFoilhead.
11826
11827 \family default
11828  The difference between these two environments is the amount of space between
11829  the title of the foil (the foilhead) and the body of the foil.
11830 \end_layout
11831
11832 \begin_layout Standard
11833 Landscape foils are generated using the 
11834 \family sans
11835 Rotatefoilhead
11836 \family default
11837  and 
11838 \family sans
11839 ShortRotatefoilhead
11840 \family default
11841  environments.
11842  Again the only difference is the spacing between foilhead and body.
11843  Both of the short versions have 0.5
11844 \begin_inset space ~
11845 \end_inset
11846
11847 inches less separation between the foilhead and the body.
11848  
11849 \end_layout
11850
11851 \begin_layout Standard
11852 One problem with the support for landscape foils is the requirement that
11853  you have to use the 
11854 \family typewriter
11855 dvips
11856 \family default
11857  driver to generate the PostScript output otherwise the foils won't be rotated.
11858  It is possible to get landscape foils even if you haven't got the 
11859 \family typewriter
11860 dvips
11861 \family default
11862  driver provided you can feed your foils sideways through your printer ;-)
11863 \end_layout
11864
11865 \begin_layout Subsubsection
11866 Theorems, Lemmas, Proofs and more
11867 \end_layout
11868
11869 \begin_layout Standard
11870 Due to a small bug in \SpecialChar LyX
11871  you can't have two of the same type of these environments
11872  directly following each other.
11873  They must be separated by something.
11874  If you try, you will just be extending the previous environment as if you
11875  had merged the two environments together.
11876  So, how do you get around this problem? The simplest option is to insert
11877  some text between the two environments or add a 
11878 \family sans
11879 \SpecialChar LaTeX
11880
11881 \family default
11882  environment between the two with just a 
11883 \begin_inset Quotes eld
11884 \end_inset
11885
11886
11887 \family typewriter
11888 %
11889 \family default
11890
11891 \begin_inset Quotes erd
11892 \end_inset
11893
11894  in it.
11895  This will force \SpecialChar LyX
11896  to produce two separate environments and hence the correct
11897  \SpecialChar LaTeX
11898  output.
11899  An example is provided in the example file included with the \SpecialChar LyX
11900  distribution.
11901  Remember, this problem only occurs if you are trying to place two of the
11902  same type of theorem-like environments one directly after the other.
11903 \end_layout
11904
11905 \begin_layout Subsubsection
11906 Lists
11907 \end_layout
11908
11909 \begin_layout Standard
11910 You get all the commonly supported list styles found in other classes as
11911  well as two new ones.
11912  I'll only describe the new ones here.
11913  If you want to find out more about the other list environments check out
11914  the 
11915 \emph on
11916 User's Guide.
11917
11918 \emph default
11919  If you intend to use itemized lists you might also want to read about the
11920  
11921 \family sans
11922 Itemize
11923 \begin_inset space ~
11924 \end_inset
11925
11926 Bullet
11927 \begin_inset space ~
11928 \end_inset
11929
11930 Selection
11931 \family default
11932  dialog described above in section
11933 \begin_inset space ~
11934 \end_inset
11935
11936
11937 \begin_inset CommandInset ref
11938 LatexCommand ref
11939 reference "sec:bullet"
11940
11941 \end_inset
11942
11943 .
11944 \end_layout
11945
11946 \begin_layout Standard
11947 The two new list styles, 
11948 \family sans
11949 TickList
11950 \family default
11951  and 
11952 \family sans
11953 CrossList
11954 \family default
11955 , are designed to make it easier for you to create lists of do's and don'ts
11956  or right and wrong by providing dedicated environments that use a tick
11957  or a cross as the label of the list.
11958  These lists are in fact dedicated variants of the 
11959 \family sans
11960 Itemize
11961 \family default
11962  environment.
11963  They do however require that you have the 
11964 \family typewriter
11965 psnfss
11966 \family default
11967  packages installed.
11968 \end_layout
11969
11970 \begin_layout Subsubsection
11971 Figures and Tables
11972 \end_layout
11973
11974 \begin_layout Standard
11975
11976 \family sans
11977 Foil\SpecialChar TeX
11978
11979 \family default
11980  redefines the floating tables and figures so that they appear exactly where
11981  they are in the text rather than pushing them to the top of the page or
11982  to some user specified location.
11983  In fact if you change the float placement settings they are simply ignored.
11984 \end_layout
11985
11986 \begin_layout Subsubsection
11987 Page Headers and Footers
11988 \begin_inset CommandInset label
11989 LatexCommand label
11990 name "sec:foilfoot"
11991
11992 \end_inset
11993
11994
11995 \end_layout
11996
11997 \begin_layout Standard
11998
11999 \family sans
12000 My
12001 \begin_inset space ~
12002 \end_inset
12003
12004 Logo
12005 \family default
12006  and 
12007 \family sans
12008 Restriction
12009 \family default
12010  are two commands used to control the left-footer text string.
12011  The first is meant to allow you to include a graphic logo on your foils
12012  and defaults to 
12013 \begin_inset Quotes eld
12014 \end_inset
12015
12016 -Typeset by 
12017 \family sans
12018 Foil\SpecialChar TeX
12019
12020 \family default
12021 -
12022 \begin_inset Quotes erd
12023 \end_inset
12024
12025 .
12026  While the second is meant to provide a classification for the audience,
12027  
12028 \emph on
12029 e.
12030 \begin_inset space \thinspace{}
12031 \end_inset
12032
12033 g.
12034 \emph default
12035
12036 \begin_inset space \space{}
12037 \end_inset
12038
12039 Confidential.
12040  It is empty by default.
12041 \end_layout
12042
12043 \begin_layout Standard
12044 The remaining page corners can be filled by 
12045 \family sans
12046 Right
12047 \begin_inset space ~
12048 \end_inset
12049
12050 Footer
12051 \family default
12052  (which defaults to page numbers), 
12053 \family sans
12054 Right
12055 \begin_inset space ~
12056 \end_inset
12057
12058 Header
12059 \family default
12060  (top right) and 
12061 \family sans
12062 Left
12063 \begin_inset space ~
12064 \end_inset
12065
12066 Header
12067 \family default
12068  (top left).
12069 \end_layout
12070
12071 \begin_layout Subsection
12072 Unsupported 
12073 \family sans
12074 Foil\SpecialChar TeX
12075
12076 \family default
12077  Goodies
12078 \begin_inset CommandInset label
12079 LatexCommand label
12080 name "sec:unsuppfoils"
12081
12082 \end_inset
12083
12084
12085 \end_layout
12086
12087 \begin_layout Standard
12088 All the commands mentioned below need to be set in a 
12089 \family sans
12090 \SpecialChar LaTeX
12091
12092 \family default
12093  environment or as 
12094 \family sans
12095 \SpecialChar TeX
12096
12097 \family default
12098  within another environment.
12099 \end_layout
12100
12101 \begin_layout Subsubsection
12102 Lengths
12103 \end_layout
12104
12105 \begin_layout Standard
12106 All lengths are adjusted using the 
12107 \family typewriter
12108
12109 \backslash
12110 setlength{
12111 \family default
12112 \emph on
12113 lengthname
12114 \family typewriter
12115 \emph default
12116 }{
12117 \family default
12118 \emph on
12119 newlength
12120 \family typewriter
12121 \emph default
12122 }
12123 \family default
12124  command.
12125  Where 
12126 \emph on
12127 lengthname
12128 \emph default
12129  should be replaced by the name given to the length you want to change and
12130  
12131 \emph on
12132 newlength
12133 \emph default
12134  is the length value.
12135  All lengths should be specified in units of length such as inches (
12136 \family typewriter
12137 in
12138 \family default
12139 ), millimeters (
12140 \family typewriter
12141 mm
12142 \family default
12143 ) or points (
12144 \family typewriter
12145 pt
12146 \family default
12147 ) or relative to some document or font-based length such as 
12148 \family typewriter
12149
12150 \backslash
12151 textwidth
12152 \family default
12153 .
12154  
12155 \end_layout
12156
12157 \begin_layout Standard
12158 It's possible to change the spacing between a foilhead and the body of the
12159  foil by adjusting the length specified by 
12160 \family typewriter
12161
12162 \backslash
12163 foilheadskip
12164 \family default
12165 .
12166  For example, to make 
12167 \emph on
12168 all
12169 \emph default
12170  foilheads 0.5
12171 \begin_inset space \space{}
12172 \end_inset
12173
12174 in closer to their bodies put the following in the preamble: 
12175 \family typewriter
12176
12177 \backslash
12178 setlength{
12179 \backslash
12180 foilheadskip}{-0.5in}
12181 \end_layout
12182
12183 \begin_layout Standard
12184 The spacings around floats can be adjusted by setting these lengths:
12185 \end_layout
12186
12187 \begin_layout Labeling
12188 \labelwidthstring MMMMMMMMMMM
12189
12190 \family typewriter
12191
12192 \backslash
12193 abovefloatskip
12194 \family default
12195  Separation between the text and the top of the float
12196 \end_layout
12197
12198 \begin_layout Labeling
12199 \labelwidthstring MMMMMMMMMMM
12200
12201 \family typewriter
12202
12203 \backslash
12204 abovecaptionskip
12205 \family default
12206  Separation between the float and the caption
12207 \end_layout
12208
12209 \begin_layout Labeling
12210 \labelwidthstring MMMMMMMMMMM
12211
12212 \family typewriter
12213
12214 \backslash
12215 belowcaptionskip
12216 \family default
12217  Separation between the caption and the following text
12218 \end_layout
12219
12220 \begin_layout Labeling
12221 \labelwidthstring MMMMMMMMMMM
12222
12223 \family typewriter
12224
12225 \backslash
12226 captionwidth
12227 \family default
12228  You can make the captions narrower than the surrounding text by adjusting
12229  this length.
12230  Best done relative to 
12231 \family typewriter
12232
12233 \backslash
12234 textwidth
12235 \family default
12236 .
12237 \end_layout
12238
12239 \begin_layout Standard
12240 There are also several title page related lengths that you may find useful
12241  if you have a long title or several authors:
12242 \end_layout
12243
12244 \begin_layout Labeling
12245 \labelwidthstring MMMMMMMMMMM
12246
12247 \family typewriter
12248
12249 \backslash
12250 abovetitleskip
12251 \family default
12252  Separation from headers to 
12253 \family sans
12254 Title
12255 \end_layout
12256
12257 \begin_layout Labeling
12258 \labelwidthstring MMMMMMMMMMM
12259
12260 \family typewriter
12261
12262 \backslash
12263 titleauthorskip
12264 \family default
12265  between 
12266 \family sans
12267 Title
12268 \family default
12269  and 
12270 \family sans
12271 Author
12272 \family default
12273  environments
12274 \end_layout
12275
12276 \begin_layout Labeling
12277 \labelwidthstring MMMMMMMMMMM
12278
12279 \family typewriter
12280
12281 \backslash
12282 authorauthorskip
12283 \family default
12284  between multiple 
12285 \family sans
12286 Author
12287 \family default
12288  lines
12289 \end_layout
12290
12291 \begin_layout Labeling
12292 \labelwidthstring MMMMMMMMMMM
12293
12294 \family typewriter
12295
12296 \backslash
12297 authordateskip
12298 \family default
12299  between the 
12300 \family sans
12301 Author
12302 \family default
12303  and the 
12304 \family sans
12305 Date
12306 \end_layout
12307
12308 \begin_layout Labeling
12309 \labelwidthstring MMMMMMMMMMM
12310
12311 \family typewriter
12312
12313 \backslash
12314 dateabstractskip
12315 \family default
12316  between the 
12317 \family sans
12318 Date
12319 \family default
12320  and the 
12321 \family sans
12322 Abstract
12323 \end_layout
12324
12325 \begin_layout Standard
12326 The last length related command affects all the list environments.
12327  If you place 
12328 \family typewriter
12329
12330 \backslash
12331 zerolistvertdimens
12332 \family default
12333  
12334 \emph on
12335 inside
12336 \emph default
12337  a list environment then all the vertical spacing between the list items
12338  is removed.
12339  Note that this is a command not a length so it doesn't require 
12340 \family typewriter
12341
12342 \backslash
12343 setlength
12344 \family default
12345  like the stuff mentioned above.
12346 \end_layout
12347
12348 \begin_layout Subsubsection
12349 Headers and Footers
12350 \end_layout
12351
12352 \begin_layout Standard
12353 The 
12354 \family typewriter
12355
12356 \backslash
12357 LogoOn
12358 \family default
12359  and 
12360 \family typewriter
12361
12362 \backslash
12363 LogoOff
12364 \family default
12365  commands control whether the logo in the 
12366 \family sans
12367 MyLogo
12368 \family default
12369  definition appear on a given page.
12370  If you put 
12371 \family typewriter
12372
12373 \backslash
12374 LogoOff
12375 \family default
12376  in the preamble then none of the foils will have the logo on them.
12377  If you don't want the logo on a particular page place the 
12378 \family typewriter
12379
12380 \backslash
12381 LogoOff
12382 \family default
12383  directly after the foilhead of that page and the 
12384 \family typewriter
12385
12386 \backslash
12387 LogoOn
12388 \family default
12389  directly after the next foilhead.
12390 \end_layout
12391
12392 \begin_layout Standard
12393 If you decide to use the 
12394 \family sans
12395 fancy
12396 \family default
12397  page style setting in the 
12398 \family sans
12399 Document
12400 \begin_inset space ~
12401 \end_inset
12402
12403 Layout
12404 \family default
12405  dialog you should probably add 
12406 \family typewriter
12407
12408 \backslash
12409 let
12410 \backslash
12411 headwidth
12412 \backslash
12413 textwidth
12414 \family default
12415  to your preamble so headers and footers on landscape pages are correctly
12416  placed when rotated.
12417  This is due to some clashes between the page layouts provided by the 
12418 \family sans
12419 fancyheadings
12420 \family default
12421  package and the 
12422 \family sans
12423 foils
12424 \family default
12425  class.
12426 \end_layout
12427
12428 \begin_layout Section
12429 Hollywood (Hollywood spec scripts)
12430 \end_layout
12431
12432 \begin_layout Standard
12433 by 
12434 \shape smallcaps
12435 Garst Reese
12436 \end_layout
12437
12438 \begin_layout Subsection
12439 Introduction
12440 \end_layout
12441
12442 \begin_layout Standard
12443 Getting the format of a Hollywood script right is a 
12444 \begin_inset Quotes eld
12445 \end_inset
12446
12447 rite of passage.
12448 \begin_inset Quotes erd
12449 \end_inset
12450
12451  It is designed to make the readers focus on content and to be easy and
12452  familiar for the actors to read.
12453  Each page of a script should be one minute of film.
12454  Nothing goes in a script that you cannot see or hear on screen.
12455  The courier 12 pt font should be used throughout.
12456  No italics.
12457 \end_layout
12458
12459 \begin_layout Subsection
12460 Special problems
12461 \end_layout
12462
12463 \begin_layout Standard
12464 Speakers' lines should NEVER break in mid-sentence.
12465  If a speaker's lines continue over a page break, repeat the 
12466 \family sans
12467 Speaker
12468 \family default
12469  title followed by (Cont'd).
12470 \end_layout
12471
12472 \begin_layout Subsection
12473 Special features
12474 \end_layout
12475
12476 \begin_layout Standard
12477 Insert the 
12478 \family sans
12479 Speaker
12480 \family default
12481  names as labels then cross-reference the label to insert the name.
12482  The cross-reference dialog will show the current cast of characters.
12483  You can use this to insert the speaker name in narratives also.
12484 \end_layout
12485
12486 \begin_layout Subsection
12487 Paper size and Margins
12488 \end_layout
12489
12490 \begin_layout Standard
12491 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12492 \end_layout
12493
12494 \begin_layout Subsection
12495 Environments
12496 \end_layout
12497
12498 \begin_layout Standard
12499 The following environments are available.
12500  You can use hollywood.bind to get the bind keys shown at the right.
12501 \end_layout
12502
12503 \begin_layout Itemize
12504
12505 \family sans
12506 Standard
12507 \begin_inset Newline newline
12508 \end_inset
12509
12510
12511 \family default
12512 Used where nothing else works.
12513  Try to avoid it.
12514 \end_layout
12515
12516 \begin_layout Itemize
12517
12518 \family sans
12519 FADE_IN
12520 \family default
12521 :
12522 \begin_inset space \hfill{}
12523 \end_inset
12524
12525
12526 \family sans
12527 M-z S-I
12528 \family default
12529
12530 \begin_inset Newline newline
12531 \end_inset
12532
12533 Usually followed by something like 
12534 \begin_inset Quotes eld
12535 \end_inset
12536
12537 on Sally waking up.
12538 \begin_inset Quotes erd
12539 \end_inset
12540
12541
12542 \end_layout
12543
12544 \begin_layout Itemize
12545
12546 \family sans
12547 INT:
12548 \begin_inset space \hfill{}
12549 \end_inset
12550
12551 M-z i
12552 \begin_inset Newline newline
12553 \end_inset
12554
12555
12556 \family default
12557 Introduces a new INTERIOR camera set-up.
12558  Always followed by DAY or NIGHT, or something similar to define the lighting
12559  required.
12560  Everthing on this line in CAPS.
12561 \end_layout
12562
12563 \begin_layout Itemize
12564
12565 \family sans
12566 EXT:
12567 \begin_inset space \hfill{}
12568 \end_inset
12569
12570 M-z e
12571 \begin_inset Newline newline
12572 \end_inset
12573
12574
12575 \family default
12576 Introduces a new EXTERIOR camera set-up.
12577  Everthing on this line in CAPS.
12578 \end_layout
12579
12580 \begin_layout Itemize
12581
12582 \family sans
12583 Speaker
12584 \begin_inset space \hfill{}
12585 \end_inset
12586
12587 M-z s
12588 \begin_inset Newline newline
12589 \end_inset
12590
12591
12592 \family default
12593 The character speaking.
12594 \end_layout
12595
12596 \begin_layout Itemize
12597
12598 \family sans
12599 Parenthetical
12600 \begin_inset space \hfill{}
12601 \end_inset
12602
12603 M-z p
12604 \begin_inset Newline newline
12605 \end_inset
12606
12607
12608 \family default
12609 Instructions to the speaker.
12610  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12611 .
12612  Both will be printed.
12613 \end_layout
12614
12615 \begin_layout Itemize
12616
12617 \family sans
12618 Dialogue
12619 \begin_inset space \hfill{}
12620 \end_inset
12621
12622 M-z d
12623 \begin_inset Newline newline
12624 \end_inset
12625
12626
12627 \family default
12628 What the 
12629 \family sans
12630 Speaker
12631 \family default
12632  says.
12633 \end_layout
12634
12635 \begin_layout Itemize
12636
12637 \family sans
12638 Transition
12639 \begin_inset space \hfill{}
12640 \end_inset
12641
12642 M-z t
12643 \begin_inset Newline newline
12644 \end_inset
12645
12646
12647 \family default
12648 Camera movement instruction.
12649  e.
12650 \begin_inset space \thinspace{}
12651 \end_inset
12652
12653 g.
12654 \begin_inset space \space{}
12655 \end_inset
12656
12657 CUT TO:
12658 \end_layout
12659
12660 \begin_layout Itemize
12661
12662 \family sans
12663 FADE OUT:
12664 \begin_inset space \hfill{}
12665 \end_inset
12666
12667 M-z S-I
12668 \end_layout
12669
12670 \begin_layout Itemize
12671
12672 \family sans
12673 Author
12674 \begin_inset space \hfill{}
12675 \end_inset
12676
12677 M-z S-A
12678 \end_layout
12679
12680 \begin_layout Itemize
12681
12682 \family sans
12683 Title
12684 \begin_inset space \hfill{}
12685 \end_inset
12686
12687 M-z S-T
12688 \end_layout
12689
12690 \begin_layout Itemize
12691
12692 \family sans
12693 Right_Address
12694 \begin_inset space \hfill{}
12695 \end_inset
12696
12697 M-z r
12698 \end_layout
12699
12700 \begin_layout Subsection
12701 Script jargon
12702 \end_layout
12703
12704 \begin_layout Itemize
12705 (O.S) — off screen
12706 \end_layout
12707
12708 \begin_layout Itemize
12709 (V.0) — voice over
12710 \end_layout
12711
12712 \begin_layout Itemize
12713 b.
12714 \begin_inset space \thinspace{}
12715 \end_inset
12716
12717 g.
12718  — background
12719 \end_layout
12720
12721 \begin_layout Itemize
12722 C.U.
12723  — close-up
12724 \end_layout
12725
12726 \begin_layout Itemize
12727 PAN — camera movement
12728 \end_layout
12729
12730 \begin_layout Itemize
12731 INSERT — cut to close-up of
12732 \end_layout
12733
12734 \begin_layout Section
12735 ijmpc and ijmpd
12736 \end_layout
12737
12738 \begin_layout Standard
12739 by 
12740 \noun on
12741 Panayotis Papasotiriou
12742 \end_layout
12743
12744 \begin_layout Subsection
12745 Overview
12746 \end_layout
12747
12748 \begin_layout Standard
12749 The ijmpc package is a set of macros that facilitates electronic manuscript
12750  submission to the 
12751 \emph on
12752 International Journal of Modern Physics C
12753 \emph default
12754 .
12755  Similarly, the ijmpd package is for creating manuscripts to be submitted
12756  to the 
12757 \emph on
12758 International Journal of Modern Physics D
12759 \emph default
12760 .
12761  Both journals are published by World Scientific.
12762  The corresponding document classes are named 
12763 \family typewriter
12764 ws-ijmpc.cls
12765 \family default
12766  and 
12767 \family typewriter
12768 ws-ijmpd.cls
12769 \family default
12770 , respectively.
12771  These files, together with instructions for the authors, can be downloaded
12772  from the sites 
12773 \begin_inset Flex URL
12774 status collapsed
12775
12776 \begin_layout Plain Layout
12777
12778 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12779 \end_layout
12780
12781 \end_inset
12782
12783  and 
12784 \begin_inset Flex URL
12785 status collapsed
12786
12787 \begin_layout Plain Layout
12788
12789 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12790 \end_layout
12791
12792 \end_inset
12793
12794 .
12795  Both packages are modified versions of the standard 
12796 \begin_inset Quotes eld
12797 \end_inset
12798
12799 article
12800 \begin_inset Quotes erd
12801 \end_inset
12802
12803  package, and they are almost (but not exactly) identical.
12804  Most of their features are supported by \SpecialChar LyX
12805 .
12806  I have used \SpecialChar LyX
12807  successfully to write articles submitted to both journals
12808  without any problem.
12809 \end_layout
12810
12811 \begin_layout Subsection
12812 Writing a paper
12813 \end_layout
12814
12815 \begin_layout Standard
12816 As usual, the easiest way to write a paper is to start with a template.
12817  Click on 
12818 \family sans
12819 File\SpecialChar menuseparator
12820 New from
12821 \family default
12822  
12823 \family sans
12824 Template
12825 \family default
12826 , then choose the 
12827 \family typewriter
12828 ijmpc.lyx
12829 \family default
12830  or 
12831 \family typewriter
12832 ijmpd.lyx
12833 \family default
12834  template.
12835  This will give an (almost) empty document that includes the most common
12836  fields found in a manuscript.
12837  Simply overwrite the existing text (including the brackets, 
12838 \family typewriter
12839 <>
12840 \family default
12841 ) with your text.
12842  You should keep in mind the following remarks.
12843 \end_layout
12844
12845 \begin_layout Enumerate
12846 \SpecialChar LyX
12847  won't let you change the font size and the page style of the document,
12848  because such modifications are not allowed by both packages.
12849 \end_layout
12850
12851 \begin_layout Enumerate
12852 The language of the document should not be changed.
12853  Before previewing your paper, be sure that the babel package is not used.
12854  To do this, click on 
12855 \family sans
12856 Tools\SpecialChar menuseparator
12857 Preferences
12858 \family default
12859 , select the 
12860 \family sans
12861 Lang Opts
12862 \family default
12863  tab, deselect the 
12864 \family sans
12865 Use babel
12866 \family default
12867  checkbox in the language settings, and click on 
12868 \family sans
12869 Apply
12870 \family default
12871  (or 
12872 \family sans
12873 Save
12874 \family default
12875 , if you wish to make this change permanent).
12876 \end_layout
12877
12878 \begin_layout Enumerate
12879 The 
12880 \begin_inset Quotes eld
12881 \end_inset
12882
12883 Keywords
12884 \begin_inset Quotes erd
12885 \end_inset
12886
12887  style must be used to define keywords.
12888 \end_layout
12889
12890 \begin_layout Enumerate
12891 The ijmpc package provides a style named 
12892 \begin_inset Quotes eld
12893 \end_inset
12894
12895 Classification Codes
12896 \begin_inset Quotes erd
12897 \end_inset
12898
12899 , which can be used to define classification codes, such as PACS numbers.
12900  Note that this facility is not supported by the ijmpd package.
12901 \end_layout
12902
12903 \begin_layout Enumerate
12904 Several new environments are available: 
12905 \begin_inset Quotes eld
12906 \end_inset
12907
12908 Definition
12909 \begin_inset Quotes erd
12910 \end_inset
12911
12912
12913 \begin_inset Quotes eld
12914 \end_inset
12915
12916 Step
12917 \begin_inset Quotes erd
12918 \end_inset
12919
12920
12921 \begin_inset Quotes eld
12922 \end_inset
12923
12924 Example
12925 \begin_inset Quotes erd
12926 \end_inset
12927
12928
12929 \begin_inset Quotes eld
12930 \end_inset
12931
12932 Remark
12933 \begin_inset Quotes erd
12934 \end_inset
12935
12936
12937 \begin_inset Quotes eld
12938 \end_inset
12939
12940 Notation
12941 \begin_inset Quotes erd
12942 \end_inset
12943
12944
12945 \begin_inset Quotes eld
12946 \end_inset
12947
12948 Theorem
12949 \begin_inset Quotes erd
12950 \end_inset
12951
12952
12953 \begin_inset Quotes eld
12954 \end_inset
12955
12956 Proof
12957 \begin_inset Quotes erd
12958 \end_inset
12959
12960
12961 \begin_inset Quotes eld
12962 \end_inset
12963
12964 Corollary
12965 \begin_inset Quotes erd
12966 \end_inset
12967
12968
12969 \begin_inset Quotes eld
12970 \end_inset
12971
12972 Lemma
12973 \begin_inset Quotes erd
12974 \end_inset
12975
12976
12977 \begin_inset Quotes eld
12978 \end_inset
12979
12980 Proposition
12981 \begin_inset Quotes erd
12982 \end_inset
12983
12984
12985 \begin_inset Quotes eld
12986 \end_inset
12987
12988 Prop
12989 \begin_inset Quotes erd
12990 \end_inset
12991
12992
12993 \begin_inset Quotes eld
12994 \end_inset
12995
12996 Question
12997 \begin_inset Quotes erd
12998 \end_inset
12999
13000
13001 \begin_inset Quotes eld
13002 \end_inset
13003
13004 Claim
13005 \begin_inset Quotes erd
13006 \end_inset
13007
13008 , and 
13009 \begin_inset Quotes eld
13010 \end_inset
13011
13012 Conjecture
13013 \begin_inset Quotes erd
13014 \end_inset
13015
13016 .
13017  Their use is more or less obvious.
13018  \SpecialChar LyX
13019  supports all these environments; it will use the proper label, text style,
13020  and numbering scheme for each of them.
13021 \end_layout
13022
13023 \begin_layout Enumerate
13024 Both packages use basic citations; the natbib package should not be used.
13025  In \SpecialChar LyX
13026 , citation references are shown as usual; in the output, citations are
13027  shown as superscripts.
13028  If you want to use a citation as normal text, you should use the 
13029 \family typewriter
13030 refcite
13031 \family default
13032  command, e.
13033 \begin_inset space \thinspace{}
13034 \end_inset
13035
13036 g.
13037 \begin_inset space \space{}
13038 \end_inset
13039
13040
13041 \begin_inset Quotes eld
13042 \end_inset
13043
13044 See Ref.
13045 \begin_inset space \space{}
13046 \end_inset
13047
13048
13049 \family typewriter
13050
13051 \backslash
13052 refcite{key}
13053 \family default
13054
13055 \begin_inset Quotes erd
13056 \end_inset
13057
13058 .
13059 \end_layout
13060
13061 \begin_layout Enumerate
13062 There is no 
13063 \begin_inset Quotes eld
13064 \end_inset
13065
13066 Acknowledgments
13067 \begin_inset Quotes erd
13068 \end_inset
13069
13070  section in both packages.
13071  To put acknowledgments, just use the 
13072 \begin_inset Quotes eld
13073 \end_inset
13074
13075 Section*
13076 \begin_inset Quotes erd
13077 \end_inset
13078
13079  environment.
13080 \end_layout
13081
13082 \begin_layout Enumerate
13083 Appendices may be added to the paper, 
13084 \emph on
13085 after
13086 \emph default
13087  the Acknowledgments and 
13088 \shape italic
13089 before
13090 \shape default
13091  the References.
13092  \SpecialChar LyX
13093  provides a special environment, called 
13094 \begin_inset Quotes eld
13095 \end_inset
13096
13097 Appendices Section
13098 \begin_inset Quotes erd
13099 \end_inset
13100
13101  which marks the beginning of the appendices.
13102  This environment should be left blank; it just sends a \SpecialChar LaTeX
13103  command, but nothing
13104  is really printed.
13105  In \SpecialChar LyX
13106 , the word 
13107 \begin_inset Quotes eld
13108 \end_inset
13109
13110 Appendix
13111 \begin_inset Quotes erd
13112 \end_inset
13113
13114  is printed with blue letters, as a signal that all sections after that
13115  point are appendices.
13116  To write an appendix, use the 
13117 \begin_inset Quotes eld
13118 \end_inset
13119
13120 Appendix
13121 \begin_inset Quotes erd
13122 \end_inset
13123
13124  environment.
13125  \SpecialChar LyX
13126  will number each appendix with capital letters, as required by both journals.
13127  Note that 
13128 \begin_inset Quotes eld
13129 \end_inset
13130
13131 Appendices Section
13132 \begin_inset Quotes erd
13133 \end_inset
13134
13135  
13136 \emph on
13137 must
13138 \emph default
13139  be present before the first appendix; if not, all appendices will be numbered
13140  as normal sections in the output.
13141 \end_layout
13142
13143 \begin_layout Enumerate
13144 The ijmpc and the ijmpd packages use the 
13145 \family typewriter
13146 tbl
13147 \family default
13148  command to implement table captions.
13149  As a result, a table created by \SpecialChar LyX
13150  is printed correctly, but its caption
13151  is ignored.
13152  However, you can use some \SpecialChar TeX
13153  code to overcome this problem, so that captions
13154  are printed as expected.
13155  To do so, create a float table as usual, remove the caption, and replace
13156  it with the \SpecialChar TeX
13157  code 
13158 \family typewriter
13159
13160 \backslash
13161 tbl{
13162 \emph on
13163 your table caption
13164 \emph default
13165 }{
13166 \family default
13167  (sic); you must also the \SpecialChar TeX
13168  code 
13169 \family typewriter
13170 }
13171 \family default
13172  immediately after the tabular material.
13173  Study the example table included in the template files to see how this
13174  trick is implemented.
13175  Alternatively, If you need table captions, you should implement the whole
13176  table float in a 
13177 \family typewriter
13178 .tex
13179 \family default
13180  file, then include this file to the \SpecialChar LyX
13181  document (
13182 \family sans
13183 Insert\SpecialChar menuseparator
13184 File\SpecialChar menuseparator
13185 Child
13186 \begin_inset space ~
13187 \end_inset
13188
13189 Document
13190 \family default
13191 ).
13192  Details on how to create a table float can be found in the files 
13193 \family typewriter
13194 ws-ijmpc.tex
13195 \family default
13196  and 
13197 \family typewriter
13198 ws-ijmpd.tex
13199 \family default
13200 , included in the corresponding packages.
13201 \end_layout
13202
13203 \begin_layout Subsection
13204 Preparing a paper for submission
13205 \end_layout
13206
13207 \begin_layout Standard
13208 Before you submit your paper you must export the \SpecialChar LyX
13209  document as a \SpecialChar LaTeX
13210  file (
13211 \family sans
13212 File\SpecialChar menuseparator
13213 Export\SpecialChar menuseparator
13214 \SpecialChar LaTeX
13215
13216 \family default
13217 )
13218 \begin_inset Foot
13219 status open
13220
13221 \begin_layout Plain Layout
13222 Actually you have the choice between \SpecialChar LaTeX
13223  (plain) and pdflatex.
13224  If you intend to use pdflatex to prepare the paper, you should use the
13225  pdflatex option so that included graphics are converted to PDF format,
13226  ready for use by pdflatex.
13227 \end_layout
13228
13229 \end_inset
13230
13231 , then make the following changes to the resulting 
13232 \family typewriter
13233 .tex
13234 \family default
13235  file.
13236 \end_layout
13237
13238 \begin_layout Enumerate
13239 Remove the comment lines before the 
13240 \family typewriter
13241
13242 \backslash
13243 documentclass
13244 \family default
13245  command.
13246 \end_layout
13247
13248 \begin_layout Enumerate
13249 Remove everything between (and including) the 
13250 \family typewriter
13251
13252 \backslash
13253 makeatletter
13254 \family default
13255  and 
13256 \family typewriter
13257
13258 \backslash
13259 makeatother
13260 \family default
13261  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13262  preamble.
13263 \end_layout
13264
13265 \begin_layout Standard
13266 The modified 
13267 \family typewriter
13268 .tex
13269 \family default
13270  file should be saved and processed through \SpecialChar LaTeX
13271  as many times as necessary.
13272  You may also want to check the resulting 
13273 \family typewriter
13274 .dvi
13275 \family default
13276  document.
13277 \end_layout
13278
13279 \begin_layout Subsection
13280 Use of \SpecialChar TeX
13281  code
13282 \end_layout
13283
13284 \begin_layout Standard
13285 The use of \SpecialChar TeX
13286  code is reduced to two commands, which must be placed at the
13287  top of the document.
13288  If you started writing your paper by using the 
13289 \family typewriter
13290 ijmpc.lyx
13291 \family default
13292  or the 
13293 \family typewriter
13294 ijmpd.lyx
13295 \family default
13296  template, the \SpecialChar TeX
13297  code needed is already in its place; you usually don't need
13298  to delete it.
13299  You may only modify the first \SpecialChar TeX
13300  code to specify the information printed
13301  to the top of odd and even pages (authors' names and short paper's title,
13302  respectively).
13303  This \SpecialChar TeX
13304  code must have the form 
13305 \family typewriter
13306
13307 \backslash
13308 markboth{Authors' Names}{Short Paper's Title}
13309 \family default
13310 .
13311 \end_layout
13312
13313 \begin_layout Section
13314 iopart
13315 \end_layout
13316
13317 \begin_layout Standard
13318 by 
13319 \noun on
13320 Uwe Stöhr
13321 \end_layout
13322
13323 \begin_layout Subsection
13324 Overview
13325 \end_layout
13326
13327 \begin_layout Standard
13328 The iopart package provides a document class to create electronic manuscript
13329  submission to the journals published by the Institute of Physics.
13330  Instructions for the authors how to create a paper using the iopart class
13331  can be downloaded together with the iopart package from the site 
13332 \begin_inset Flex URL
13333 status collapsed
13334
13335 \begin_layout Plain Layout
13336
13337 ftp://ftp.iop.org/pub/journals/latex2e
13338 \end_layout
13339
13340 \end_inset
13341
13342 .
13343 \end_layout
13344
13345 \begin_layout Subsection
13346 Writing a paper
13347 \end_layout
13348
13349 \begin_layout Standard
13350 The easiest way to write a paper is to start with the file 
13351 \emph on
13352 IOP-article.lyx
13353 \emph default
13354  that is available in \SpecialChar LyX
13355 's examples files folder.
13356  Open this file, save it under a new name, and start writing.
13357  The example file explains how to use the special text environments.
13358  Here are the most important advices:
13359 \end_layout
13360
13361 \begin_layout Itemize
13362 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13363  two options 
13364 \family sans
13365 Use AMS math package
13366 \family default
13367  in the document settings under 
13368 \family sans
13369 Math Options
13370 \family default
13371  are not used!
13372 \end_layout
13373
13374 \begin_layout Itemize
13375
13376 \size normal
13377 The title environment defines the kind of your paper.
13378  So use one of the following environments for the title:
13379 \end_layout
13380
13381 \begin_deeper
13382 \begin_layout Itemize
13383
13384 \family sans
13385 \size normal
13386 Title
13387 \family default
13388  for a Paper
13389 \end_layout
13390
13391 \begin_layout Itemize
13392
13393 \family sans
13394 \size normal
13395 Review
13396 \family default
13397  for a Review
13398 \end_layout
13399
13400 \begin_layout Itemize
13401
13402 \family sans
13403 \size normal
13404 Topical
13405 \family default
13406  for a Topical review
13407 \end_layout
13408
13409 \begin_layout Itemize
13410
13411 \family sans
13412 \size normal
13413 Comment
13414 \family default
13415  for a Comment
13416 \end_layout
13417
13418 \begin_layout Itemize
13419
13420 \family sans
13421 \size normal
13422 Note
13423 \family default
13424  for a Note
13425 \end_layout
13426
13427 \begin_layout Itemize
13428
13429 \family sans
13430 \size normal
13431 Paper
13432 \family default
13433  for a Paper (same as Title)
13434 \end_layout
13435
13436 \begin_layout Itemize
13437
13438 \family sans
13439 \size normal
13440 Prelim
13441 \family default
13442  for a Preliminary communication
13443 \end_layout
13444
13445 \begin_layout Itemize
13446
13447 \family sans
13448 \size normal
13449 Rapid
13450 \family default
13451  for a Rapid communication
13452 \end_layout
13453
13454 \begin_layout Itemize
13455
13456 \family sans
13457 \size normal
13458 Letter
13459 \family default
13460  for a Letter to the editor
13461 \end_layout
13462
13463 \end_deeper
13464 \begin_layout Itemize
13465
13466 \size normal
13467 All title environments except of 
13468 \family sans
13469 Letter
13470 \family default
13471  can have an optional short title.
13472 \end_layout
13473
13474 \begin_layout Itemize
13475 There is a general title environment 
13476 \family sans
13477 Article
13478 \family default
13479  which is not directly supported by the \SpecialChar LyX
13480 .
13481  This can be used as \SpecialChar TeX
13482  code when your document doesn't fit into one of the
13483  other title types.
13484 \end_layout
13485
13486 \begin_layout Standard
13487 For more informations like hints for special table and formula formatting,
13488  look at the IOP author guidelines.
13489 \end_layout
13490
13491 \begin_layout Section
13492 Kluwer
13493 \end_layout
13494
13495 \begin_layout Standard
13496 by 
13497 \noun on
13498 Panayotis Papasotiriou
13499 \end_layout
13500
13501 \begin_layout Subsection
13502 Overview
13503 \end_layout
13504
13505 \begin_layout Standard
13506 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13507  that facilitates electronic manuscript submission to the journals they
13508  publish.
13509  Most known of them (at least in my domain of interest) are 
13510 \emph on
13511 Astrophysics and Space Science
13512 \emph default
13513  and 
13514 \emph on
13515 Solar Physics
13516 \emph default
13517 , but there are many others (see a complete list at 
13518 \begin_inset Flex URL
13519 status open
13520
13521 \begin_layout Plain Layout
13522
13523 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13524 \end_layout
13525
13526 \end_inset
13527
13528 ).
13529  The Kluwer package may be downloaded from the site 
13530 \begin_inset Flex URL
13531 status collapsed
13532
13533 \begin_layout Plain Layout
13534
13535 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13536 \end_layout
13537
13538 \end_inset
13539
13540 .
13541  A complete user guide is contained in that package (but it can also be
13542  downloaded separately).
13543 \end_layout
13544
13545 \begin_layout Standard
13546 \SpecialChar LyX
13547  supports many features of the package but not everything.
13548  However, the \SpecialChar TeX
13549  code needed is reduced to some 
13550 \begin_inset Quotes eld
13551 \end_inset
13552
13553 peculiar
13554 \begin_inset Quotes erd
13555 \end_inset
13556
13557  commands of the package (see
13558 \begin_inset space ~
13559 \end_inset
13560
13561
13562 \begin_inset CommandInset ref
13563 LatexCommand ref
13564 reference "subsec:kluwer_peculiarities"
13565
13566 \end_inset
13567
13568 ).
13569  I have recently used \SpecialChar LyX
13570  to write an article submitted to the 
13571 \emph on
13572 Astrophysics and Space Science
13573 \emph default
13574  without any problem.
13575 \end_layout
13576
13577 \begin_layout Subsection
13578 Writing a paper
13579 \end_layout
13580
13581 \begin_layout Standard
13582 The easiest way to write a paper is to start with the Kluwer template file.
13583  Click on 
13584 \family sans
13585 File\SpecialChar menuseparator
13586 New from
13587 \family default
13588  
13589 \family sans
13590 Template
13591 \family default
13592 , then choose the 
13593 \family typewriter
13594 kluwer.lyx
13595 \family default
13596  template.
13597  This will give an (almost) empty document that includes the most common
13598  fields found in a manuscript and a short description of their use.
13599  As in most templates, simply overwrite the existing text (including the
13600  brackets, 
13601 \family typewriter
13602 <>
13603 \family default
13604 ) with the correct information.
13605 \end_layout
13606
13607 \begin_layout Subsection
13608 Preparing a paper for submission
13609 \end_layout
13610
13611 \begin_layout Standard
13612 As in the AAS\SpecialChar TeX
13613  package, before you submit your paper to a journal you must
13614  
13615 \begin_inset Quotes eld
13616 \end_inset
13617
13618 postprocess
13619 \begin_inset Quotes erd
13620 \end_inset
13621
13622  it as follows.
13623 \end_layout
13624
13625 \begin_layout Enumerate
13626 Export your paper as a \SpecialChar LaTeX
13627  file.
13628  To do this, click on 
13629 \family sans
13630 File\SpecialChar menuseparator
13631 Export\SpecialChar menuseparator
13632 \SpecialChar LaTeX
13633
13634 \family default
13635 .
13636  
13637 \end_layout
13638
13639 \begin_layout Enumerate
13640 Edit the resulting 
13641 \family typewriter
13642 .tex
13643 \family default
13644  file with a text editor and make the following changes
13645 \end_layout
13646
13647 \begin_deeper
13648 \begin_layout Enumerate
13649 remove the comment lines before the 
13650 \family typewriter
13651
13652 \backslash
13653 documentclass
13654 \family default
13655  command,
13656 \end_layout
13657
13658 \begin_layout Enumerate
13659 remove everything between (and including) the 
13660 \family typewriter
13661
13662 \backslash
13663 makeatletter
13664 \family default
13665  and 
13666 \family typewriter
13667
13668 \backslash
13669 makeatother
13670 \family default
13671  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13672  preamble.
13673 \end_layout
13674
13675 \begin_layout Standard
13676 Save the resulting 
13677 \family typewriter
13678 .tex
13679 \family default
13680  file.
13681 \end_layout
13682
13683 \end_deeper
13684 \begin_layout Enumerate
13685 Run the 
13686 \family typewriter
13687 .tex
13688 \family default
13689  file through \SpecialChar LaTeX
13690  as many times as necessary (usually up to three).
13691 \end_layout
13692
13693 \begin_layout Enumerate
13694 View the resulting 
13695 \family typewriter
13696 .dvi
13697 \family default
13698  document using, e.
13699 \begin_inset space \thinspace{}
13700 \end_inset
13701
13702 g.
13703 \begin_inset space \space{}
13704 \end_inset
13705
13706
13707 \family sans
13708 xdvi
13709 \family default
13710 , and check if everything is OK (it should, if you didn't make any mistake).
13711 \end_layout
13712
13713 \begin_layout Subsection
13714 \begin_inset Quotes eld
13715 \end_inset
13716
13717 Peculiarities
13718 \begin_inset Quotes erd
13719 \end_inset
13720
13721  of the Kluwer package
13722 \begin_inset CommandInset label
13723 LatexCommand label
13724 name "subsec:kluwer_peculiarities"
13725
13726 \end_inset
13727
13728
13729 \end_layout
13730
13731 \begin_layout Standard
13732 The Kluwer package has the following 
13733 \begin_inset Quotes eld
13734 \end_inset
13735
13736 peculiarities
13737 \begin_inset Quotes erd
13738 \end_inset
13739
13740 .
13741 \end_layout
13742
13743 \begin_layout Enumerate
13744 It is possible to write multiple articles in the same \SpecialChar LaTeX
13745  file
13746 \begin_inset Foot
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 I can't imagine any good reason to do this.
13751 \end_layout
13752
13753 \end_inset
13754
13755 .
13756  Each article must be included in the environment 
13757 \begin_inset Quotes eld
13758 \end_inset
13759
13760 article
13761 \begin_inset Quotes erd
13762 \end_inset
13763
13764 .
13765  Unfortunately, this environment cannot be omitted, even if you write just
13766  one article.
13767  Therefore, each article starts with the command 
13768 \family typewriter
13769
13770 \backslash
13771 begin{article}
13772 \family default
13773  and, obviously, ends with the command 
13774 \family typewriter
13775
13776 \backslash
13777 end{article}
13778 \family default
13779 .
13780  Although this can be implemented in \SpecialChar LyX
13781 , I didn't included it, since it looks
13782  ugly and can confuse the novice user.
13783  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13784  code (the
13785  well-known 
13786 \begin_inset Quotes eld
13787 \end_inset
13788
13789 \SpecialChar TeX
13790  code
13791 \begin_inset Quotes erd
13792 \end_inset
13793
13794 ).
13795 \end_layout
13796
13797 \begin_layout Enumerate
13798 Information given at the beginning of the article (i.
13799 \begin_inset space \thinspace{}
13800 \end_inset
13801
13802 e.
13803 \begin_inset space \space{}
13804 \end_inset
13805
13806 title, subtitle, author, institution, running title, running author, abstract
13807  and keywords) must be included in an environment called 
13808 \begin_inset Quotes eld
13809 \end_inset
13810
13811 opening
13812 \begin_inset Quotes erd
13813 \end_inset
13814
13815 .
13816  This is not implemented in \SpecialChar LyX
13817 , so you must enter title, subtitle etc.
13818 \begin_inset space ~
13819 \end_inset
13820
13821 between two \SpecialChar TeX
13822  code lines (
13823 \family typewriter
13824
13825 \backslash
13826 begin{opening}
13827 \family default
13828  and 
13829 \family typewriter
13830
13831 \backslash
13832 end{opening}
13833 \family default
13834 ).
13835 \end_layout
13836
13837 \begin_layout Enumerate
13838 According to the user manual, the label of each bibliography item must be
13839  written as 
13840 \family typewriter
13841
13842 \backslash
13843 protect
13844 \backslash
13845 citeauthoryear{
13846 \family default
13847 \emph on
13848 author(s)
13849 \family typewriter
13850 \emph default
13851 }{
13852 \family default
13853 \emph on
13854 year
13855 \family typewriter
13856 \emph default
13857 }
13858 \family default
13859 .
13860 \end_layout
13861
13862 \begin_layout Standard
13863 The 
13864 \family typewriter
13865 kluwer.lyx
13866 \family default
13867  template takes care of all these 
13868 \begin_inset Quotes eld
13869 \end_inset
13870
13871 peculiarities
13872 \begin_inset Quotes erd
13873 \end_inset
13874
13875 .
13876  If you start a new paper using this template you don't need to do anything
13877  special.
13878  Just 
13879 \end_layout
13880
13881 \begin_layout Enumerate
13882 don't delete the \SpecialChar TeX
13883  code included in the template, and
13884 \end_layout
13885
13886 \begin_layout Enumerate
13887 copy the example bibliography item included in the template and modify it
13888  as necessary to enter new bibliography items.
13889 \end_layout
13890
13891 \begin_layout Section
13892 Koma-Script
13893 \end_layout
13894
13895 \begin_layout Standard
13896 by 
13897 \noun on
13898 Bernd Rellermeyer
13899 \end_layout
13900
13901 \begin_layout Subsection
13902 Overview
13903 \end_layout
13904
13905 \begin_layout Standard
13906 The \SpecialChar LyX
13907  document classes 
13908 \emph on
13909 article (koma-script)
13910 \emph default
13911
13912 \emph on
13913 report (koma-script)
13914 \emph default
13915
13916 \emph on
13917 book
13918 \emph default
13919  
13920 \emph on
13921 (koma-script)
13922 \emph default
13923 , and 
13924 \emph on
13925 letter
13926 \emph default
13927  
13928 \emph on
13929 (koma-script)
13930 \emph default
13931  correspond to the \SpecialChar LaTeX
13932  document classes 
13933 \family typewriter
13934 scrartcl.cls
13935 \family default
13936
13937 \family typewriter
13938 scrreprt.cls
13939 \family default
13940
13941 \family typewriter
13942 scrbook.cls
13943 \family default
13944 , and 
13945 \family typewriter
13946 scrlettr.cls
13947 \family default
13948 , resp.
13949 \begin_inset space ~
13950 \end_inset
13951
13952 of the Koma-Script family.
13953  They are replacements for the standard document classes 
13954 \family typewriter
13955 article.cls
13956 \family default
13957
13958 \family typewriter
13959 report.cls
13960 \family default
13961
13962 \family typewriter
13963 book.cls
13964 \family default
13965  and 
13966 \family typewriter
13967 letter.cls
13968 \family default
13969 , resp., and fit better to European typography conventions in a number of
13970  points.
13971 \end_layout
13972
13973 \begin_layout Itemize
13974 Standard character size is 11pt in 
13975 \emph on
13976 article (koma-script)
13977 \emph default
13978
13979 \emph on
13980 report (koma-script)
13981 \emph default
13982 , and 
13983 \emph on
13984 book (koma-script)
13985 \emph default
13986 , and 12pt in 
13987 \emph on
13988 letter (koma-script)
13989 \emph default
13990 .
13991 \end_layout
13992
13993 \begin_layout Itemize
13994 Headings, labels of the description environment, and a number of elements
13995  of the 
13996 \emph on
13997 letter (koma-script)
13998 \emph default
13999  document class are set in a bold sans serif font.
14000 \begin_inset Foot
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 There is a big difference between the bold sans serif old cm fonts and new
14005  ec fonts, especially in the appearance of headings.
14006  In comparison, the ec bold sans serif fonts look a bit thin.
14007  Here the \SpecialChar LaTeX
14008  package 
14009 \family typewriter
14010 cmsd.sty by
14011 \family default
14012  
14013 \shape smallcaps
14014 Walter Schmidt
14015 \shape default
14016  helps to produce the 
14017 \begin_inset Quotes eld
14018 \end_inset
14019
14020 usual
14021 \begin_inset Quotes erd
14022 \end_inset
14023
14024  appearance when using the ec fonts.
14025 \end_layout
14026
14027 \end_inset
14028
14029  The numbering of chapter headings is made in the same way as the numbering
14030  of section headings, that is without the extra line 
14031 \begin_inset Quotes eld
14032 \end_inset
14033
14034 Chapter\SpecialChar ldots
14035
14036 \begin_inset Quotes erd
14037 \end_inset
14038
14039 .
14040  In addition, the appearance of the headings can be modified by using a
14041  number of options (in \SpecialChar LyX
14042  to be entered in the field 
14043 \family sans
14044 Extra
14045 \begin_inset space ~
14046 \end_inset
14047
14048 Options
14049 \family default
14050  of the dialog 
14051 \family sans
14052 Layout\SpecialChar menuseparator
14053 Document
14054 \family default
14055 ).
14056  
14057 \end_layout
14058
14059 \begin_layout Itemize
14060 The main means in the Koma-Script document classes to design the type area
14061  are the options 
14062 \family sans
14063 BCOR
14064 \family default
14065  and 
14066 \family sans
14067 DIV
14068 \family default
14069  (in \SpecialChar LyX
14070  to be entered in the extra class options field in the dialog 
14071 \family sans
14072 Document\SpecialChar menuseparator
14073 Settings
14074 \family default
14075 ).
14076  They make a clearer modification of page margins possible as do the options
14077  of the dialog 
14078 \family sans
14079 Document\SpecialChar menuseparator
14080 Settings
14081 \family default
14082 .
14083  
14084 \end_layout
14085
14086 \begin_layout Itemize
14087 The \SpecialChar LaTeX
14088  document classes of the Koma-Script family define a number of additional
14089  commands.
14090  Those part of it which makes sense in \SpecialChar LyX
14091  is implemented in corresponding
14092  paragraph types.
14093 \end_layout
14094
14095 \begin_layout Standard
14096 Detailed descriptions of the \SpecialChar LaTeX
14097  document classes of the Koma-Script family
14098  can be found in the Koma-Script documentation 
14099 \emph on
14100 scrguide
14101 \emph default
14102  (German) and 
14103 \emph on
14104 scrguien
14105 \emph default
14106  (English).
14107 \end_layout
14108
14109 \begin_layout Subsection
14110 article (koma-script), report (koma-script), and book (koma-script)
14111 \end_layout
14112
14113 \begin_layout Standard
14114 The document classes 
14115 \emph on
14116 article (koma-script)
14117 \emph default
14118
14119 \emph on
14120 report (koma-script)
14121 \emph default
14122 , and 
14123 \emph on
14124 book
14125 \emph default
14126  
14127 \emph on
14128 (koma-script)
14129 \emph default
14130  are implemented in the layout files 
14131 \family typewriter
14132 scrartcl.layout
14133 \family default
14134
14135 \family typewriter
14136 scrreprt.layout
14137 \family default
14138 , and 
14139 \family typewriter
14140 scrbook.layout
14141 \family default
14142 , resp.
14143  They contain all the paragraph types of the corresponding standard document
14144  classes 
14145 \emph on
14146 article
14147 \emph default
14148
14149 \emph on
14150 report
14151 \emph default
14152 , and 
14153 \emph on
14154 book
14155 \emph default
14156 , resp., partly modified, with the exception of the \SpecialChar LyX
14157  specific 
14158 \family sans
14159 List
14160 \family default
14161 -type, which is replaced by the new 
14162 \family sans
14163 Labeling
14164 \family default
14165 -type having the same functionality.
14166  Beside the 
14167 \family sans
14168 Labeling
14169 \family default
14170 -Type there is a number of new paragraph types added.
14171  They are 
14172 \emph on
14173 not
14174 \emph default
14175  part of 
14176 \emph on
14177 letter (koma-script)
14178 \emph default
14179 .
14180 \end_layout
14181
14182 \begin_layout Itemize
14183
14184 \family sans
14185 Addpart, Addchap
14186 \family default
14187
14188 \family sans
14189 Addsec
14190 \family default
14191 : are equivalents to 
14192 \family sans
14193 Part*, Chapter*
14194 \family default
14195  and 
14196 \family sans
14197 Section*
14198 \family default
14199 , resp., additionally inserting an entry in the table of contents.
14200  
14201 \family sans
14202 Addpart
14203 \family default
14204  and 
14205 \family sans
14206 Addchap
14207 \family default
14208  are not contained in 
14209 \emph on
14210 article (koma-script)
14211 \emph default
14212 .
14213 \end_layout
14214
14215 \begin_layout Itemize
14216
14217 \family sans
14218 Addchap*
14219 \family default
14220
14221 \family sans
14222 Addsec*
14223 \family default
14224 : behave exactly as 
14225 \family sans
14226 Addchap
14227 \family default
14228  and 
14229 \family sans
14230 Addsec
14231 \family default
14232 , resp., additionally clearing running heads.
14233  
14234 \family sans
14235 Addchap*
14236 \family default
14237  is not contained in 
14238 \emph on
14239 article (koma-script)
14240 \emph default
14241 .
14242 \begin_inset Foot
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 There is also an 
14247 \family typewriter
14248
14249 \backslash
14250 addpart*
14251 \family default
14252  command in 
14253 \emph on
14254 book (koma-script)
14255 \emph default
14256  and in 
14257 \emph on
14258 report (koma-script)
14259 \emph default
14260 , but since this is identical to 
14261 \family sans
14262 Part*
14263 \family default
14264 , is has not been implemented in \SpecialChar LyX
14265 .
14266 \end_layout
14267
14268 \end_inset
14269
14270
14271 \end_layout
14272
14273 \begin_layout Itemize
14274
14275 \family sans
14276 Minisec
14277 \family default
14278 : generates a heading directly above the following paragraph in the standard
14279  character size without affecting the structure of the document.
14280 \end_layout
14281
14282 \begin_layout Itemize
14283
14284 \family sans
14285 Captionabove
14286 \family default
14287  and 
14288 \family sans
14289 Captionbelow
14290 \family default
14291  are special captions which respect the different space settings needed
14292  for captions placed above or below an element (if you follow strict typographic
14293  rules, you might want to place table captions always above the table).
14294  You can also use the class option 
14295 \family typewriter
14296 tablecaptionsabove
14297 \family default
14298 , which will switch 
14299 \family sans
14300 caption
14301 \family default
14302  to 
14303 \family sans
14304 captionabove
14305 \family default
14306  for tables and 
14307 \family sans
14308 captionbelow
14309 \family default
14310  for figures.
14311  You need at least Koma-Script version 2.8q to use this.
14312 \end_layout
14313
14314 \begin_layout Itemize
14315
14316 \family sans
14317 Dictum
14318 \family default
14319 : can be used to set a bonmot, e.
14320 \begin_inset space \thinspace{}
14321 \end_inset
14322
14323 g.
14324 \begin_inset space \space{}
14325 \end_inset
14326
14327 at the beginning of a chapter.
14328  If you use the optional argument (
14329 \family sans
14330 Insert\SpecialChar menuseparator
14331 Short
14332 \begin_inset space ~
14333 \end_inset
14334
14335 Title
14336 \family default
14337 ), you can insert the dictum's author there.
14338  Dictum and author are separated by a line.
14339  You need at least Koma-Script version 2.8q to use this.
14340  
14341 \family sans
14342 Dictum
14343 \family default
14344  is not contained in 
14345 \emph on
14346 article (koma-script)
14347 \emph default
14348 .
14349 \end_layout
14350
14351 \begin_layout Standard
14352 The following types, together with the standard types 
14353 \family sans
14354 Title
14355 \family default
14356
14357 \family sans
14358 Author
14359 \family default
14360 , and 
14361 \family sans
14362 Date
14363 \family default
14364 , form the title area of the document.
14365  They must be entered ahead of the first 
14366 \begin_inset Quotes eld
14367 \end_inset
14368
14369 ordinary
14370 \begin_inset Quotes erd
14371 \end_inset
14372
14373  paragraph.
14374 \begin_inset Foot
14375 status collapsed
14376
14377 \begin_layout Plain Layout
14378 The corresponding \SpecialChar LaTeX
14379  commands must appear before the 
14380 \family typewriter
14381
14382 \backslash
14383 maketitle
14384 \family default
14385  command.
14386 \end_layout
14387
14388 \end_inset
14389
14390  When such a type is used more than once, the latter usage overwrites the
14391  former one, that means, for every type only the latest usage is valid.
14392  The order of the different types however has, like 
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 , no effect on the appearance of the produced document.
14405 \end_layout
14406
14407 \begin_layout Itemize
14408
14409 \family sans
14410 Subject
14411 \family default
14412 : produces a centered paragraph above the ordinary title (
14413 \family sans
14414 Title
14415 \family default
14416
14417 \family sans
14418 Author
14419 \family default
14420
14421 \family sans
14422 Date
14423 \family default
14424 ) for the subject of the document.
14425 \end_layout
14426
14427 \begin_layout Itemize
14428
14429 \family sans
14430 Publishers
14431 \family default
14432 : produces a centered paragraph below the ordinary title (
14433 \family sans
14434 Title
14435 \family default
14436
14437 \family sans
14438 Author
14439 \family default
14440
14441 \family sans
14442 Date
14443 \family default
14444 ) for the publishers' name.
14445 \end_layout
14446
14447 \begin_layout Itemize
14448
14449 \family sans
14450 Dedication
14451 \family default
14452 : in 
14453 \emph on
14454 report (koma-script)
14455 \emph default
14456  and 
14457 \emph on
14458 book (koma-script)
14459 \emph default
14460  produces a centered paragraph on its own page behind the title page, or
14461  in 
14462 \emph on
14463 article (koma-script)
14464 \emph default
14465  produces a centered paragraph below the ordinary title (
14466 \family sans
14467 Title
14468 \family default
14469
14470 \family sans
14471 Author
14472 \family default
14473
14474 \family sans
14475 Date
14476 \family default
14477
14478 \family sans
14479 Publishers
14480 \family default
14481 ) for a dedication.
14482 \end_layout
14483
14484 \begin_layout Itemize
14485
14486 \family sans
14487 Titlehead
14488 \family default
14489 : produces a left aligned paragraph above the ordinary title (
14490 \family sans
14491 Title
14492 \family default
14493
14494 \family sans
14495 Author
14496 \family default
14497
14498 \family sans
14499 Date
14500 \family default
14501
14502 \family sans
14503 Subject
14504 \family default
14505 ) for a document`s head.
14506 \end_layout
14507
14508 \begin_layout Itemize
14509
14510 \family sans
14511 Uppertitleback
14512 \family default
14513 : produces in a double-sided print in 
14514 \emph on
14515 report (koma-script)
14516 \emph default
14517  and 
14518 \emph on
14519 book (koma-script)
14520 \emph default
14521  a left-aligned paragraph at the top of the title page`s back or has no
14522  effect in a single-sided print or in 
14523 \emph on
14524 article (koma-script)
14525 \emph default
14526 .
14527 \end_layout
14528
14529 \begin_layout Itemize
14530
14531 \family sans
14532 Lowertitleback
14533 \family default
14534 : produces in a double-sided print in 
14535 \emph on
14536 report (koma-script)
14537 \emph default
14538  and 
14539 \emph on
14540 book (koma-script)
14541 \emph default
14542  a left-aligned paragraph at the bottom of the title page`s back or has
14543  no effect in a single-sided print or in 
14544 \emph on
14545 article (koma-script)
14546 \emph default
14547 .
14548 \end_layout
14549
14550 \begin_layout Itemize
14551
14552 \family sans
14553 Extratitle
14554 \family default
14555 : produces a special 
14556 \begin_inset Quotes eld
14557 \end_inset
14558
14559 dirty
14560 \begin_inset Quotes erd
14561 \end_inset
14562
14563  page ahead of the actual document containing a paragraph without special
14564  formatting.
14565 \end_layout
14566
14567 \begin_layout Standard
14568 The layout files for the document classes 
14569 \emph on
14570 article (koma-script)
14571 \emph default
14572
14573 \emph on
14574 report (koma-script)
14575 \emph default
14576 , and 
14577 \emph on
14578 book (koma-script)
14579 \emph default
14580  do include the file 
14581 \family typewriter
14582 scrmacros.inc
14583 \family default
14584 .
14585  This is thought of as a place to define your own types.
14586  Copy scrmacros
14587 \family typewriter
14588 .inc
14589 \family default
14590  in your personal layout directory and edit the file!
14591 \end_layout
14592
14593 \begin_layout Subsection
14594 letter (koma-script)
14595 \end_layout
14596
14597 \begin_layout Standard
14598 \noindent
14599 The document class 
14600 \emph on
14601 letter (koma-script)
14602 \emph default
14603  is implemented in the layout file 
14604 \family typewriter
14605 scrlettr.layout
14606 \family default
14607 .
14608  It contains all the paragraph types of the corresponding standard document
14609  class 
14610 \emph on
14611 letter
14612 \emph default
14613 , partly modified, with the exception of the \SpecialChar LyX
14614  specific types 
14615 \family sans
14616 \SpecialChar LyX
14617 -Code
14618 \family default
14619  and 
14620 \family sans
14621 Comment
14622 \family default
14623  and the 
14624 \family sans
14625 List
14626 \family default
14627  type, which is replaced by the new 
14628 \family sans
14629 Labeling
14630 \family default
14631  type.
14632  In addition, it contains, in contrast to the standard document class, the
14633  standard types 
14634 \family sans
14635 \SpecialChar LaTeX
14636
14637 \family default
14638
14639 \family sans
14640 Quotation
14641 \family default
14642
14643 \family sans
14644 Quote
14645 \family default
14646 , and 
14647 \family sans
14648 Verse
14649 \family default
14650 .
14651  Furthermore, there are a number of new letter specific types.
14652 \end_layout
14653
14654 \begin_layout Standard
14655 The appearance of the letter produced by this document class can be controlled
14656  by a number of \SpecialChar LaTeX
14657  commands, which you can put in the \SpecialChar LaTeX
14658  preamble.
14659 \begin_inset Foot
14660 status collapsed
14661
14662 \begin_layout Plain Layout
14663 For example, the standard appearance of the letter`s heading, consisting
14664  of name and address, is quite self-willed.
14665  An 
14666 \begin_inset Quotes eld
14667 \end_inset
14668
14669 ordinary
14670 \begin_inset Quotes erd
14671 \end_inset
14672
14673  heading is produced by the following \SpecialChar LaTeX
14674  commands in the preamble:
14675 \end_layout
14676
14677 \begin_layout LyX-Code
14678
14679 \backslash
14680 firsthead{
14681 \backslash
14682 parbox[b]{
14683 \backslash
14684 textwidth}
14685 \end_layout
14686
14687 \begin_layout LyX-Code
14688   {
14689 \backslash
14690 ignorespaces 
14691 \backslash
14692 fromname
14693 \backslash
14694
14695 \backslash
14696  
14697 \backslash
14698 ignorespaces 
14699 \backslash
14700 fromaddress}} 
14701 \end_layout
14702
14703 \begin_layout LyX-Code
14704
14705 \backslash
14706 nexthead{
14707 \backslash
14708 parbox[b]{
14709 \backslash
14710 textwidth}
14711 \end_layout
14712
14713 \begin_layout LyX-Code
14714   {
14715 \backslash
14716 ignorespaces 
14717 \backslash
14718 fromname 
14719 \backslash
14720 hfill 
14721 \backslash
14722 ignorespaces 
14723 \backslash
14724 pagename
14725 \backslash
14726  
14727 \backslash
14728 thepage}}
14729 \end_layout
14730
14731 \end_inset
14732
14733  A detailed German description of such \SpecialChar LaTeX
14734  commands can be found in the Koma-Script
14735  documentation 
14736 \emph on
14737 scrguide
14738 \emph default
14739 .
14740  With it, the letter's author can produce his personal letter layout.
14741 \end_layout
14742
14743 \begin_layout Standard
14744 The types 
14745 \family sans
14746 Letter
14747 \family default
14748  and 
14749 \family sans
14750 Opening
14751 \family default
14752  define the beginning of the letter and must be used in every letter.
14753  To emphasize them in the \SpecialChar LyX
14754  document class, they are marked with the letter
14755  
14756 \shape italic
14757 L
14758 \shape default
14759  or 
14760 \shape italic
14761 O
14762 \shape default
14763 , resp.
14764 \begin_inset space ~
14765 \end_inset
14766
14767 in the left margin.
14768  It is possible to write any number of letters in one file.
14769  An 
14770 \family sans
14771 Opening
14772 \family default
14773  type produces a new letter using the same addressee and a 
14774 \family sans
14775 Letter
14776 \family default
14777  type produces a new addressee.
14778  The types 
14779 \family sans
14780 Closing
14781 \family default
14782
14783 \family sans
14784 PS
14785 \family default
14786
14787 \family sans
14788 CC
14789 \family default
14790 , and 
14791 \family sans
14792 Encl
14793 \family default
14794  are ordinary paragraph types and can also be used several times in one
14795  and the same letter.
14796 \end_layout
14797
14798 \begin_layout Itemize
14799
14800 \family sans
14801 Letter
14802 \family default
14803 : produces a paragraph for the addressee and implicitly defines the beginning
14804  of the letter.
14805 \end_layout
14806
14807 \begin_layout Itemize
14808
14809 \family sans
14810 Opening
14811 \family default
14812 : produces a paragraph for the form of address and implicitly produces a
14813  new letter.
14814 \end_layout
14815
14816 \begin_layout Itemize
14817
14818 \family sans
14819 Closing
14820 \family default
14821 : produces a paragraph for a close.
14822 \end_layout
14823
14824 \begin_layout Itemize
14825
14826 \family sans
14827 PS
14828 \family default
14829 : produces a paragraph for a postscript.
14830 \end_layout
14831
14832 \begin_layout Itemize
14833
14834 \family sans
14835 CC
14836 \family default
14837 : produces a paragraph for a distribution list.
14838 \end_layout
14839
14840 \begin_layout Itemize
14841
14842 \family sans
14843 Encl
14844 \family default
14845 : produces a paragraph for enclosures.
14846 \end_layout
14847
14848 \begin_layout Standard
14849 The types 
14850 \family sans
14851 Name
14852 \family default
14853
14854 \family sans
14855 Signature
14856 \family default
14857
14858 \family sans
14859 Address
14860 \family default
14861
14862 \family sans
14863 Telephone
14864 \family default
14865
14866 \family sans
14867 Place
14868 \family default
14869
14870 \family sans
14871 Backaddress
14872 \family default
14873
14874 \family sans
14875 Specialmail
14876 \family default
14877
14878 \family sans
14879 Location
14880 \family default
14881
14882 \family sans
14883 Title
14884 \family default
14885 , and 
14886 \family sans
14887 Subject
14888 \family default
14889  are input types provided with a label to enter information, which will
14890  be processed by the document class.
14891 \begin_inset Foot
14892 status open
14893
14894 \begin_layout Plain Layout
14895 It could be seen as a matter of inconsequence, that the types 
14896 \family sans
14897 Letter
14898 \family default
14899  and 
14900 \family sans
14901 Opening
14902 \family default
14903  described above are not such input types as well.
14904  Because of the special meaning of those types, however, I have implemented
14905  them as ordinary paragraph types with a one letter mark in the left margin.
14906  Moreover, it would affect my feeling of symmetry, if the 
14907 \family sans
14908 Opening
14909 \family default
14910  type and the 
14911 \family sans
14912 Closing
14913 \family default
14914  type had such a serious different appearance.
14915 \end_layout
14916
14917 \end_inset
14918
14919  The types must be used ahead of the corresponding 
14920 \family sans
14921 Opening
14922 \family default
14923  type.
14924 \end_layout
14925
14926 \begin_layout Standard
14927 An implementation of these types in a WYSIWYG fashion does not seem to make
14928  sense, because the real appearance of the produced letter does not only
14929  depend on the usage of the particular type, but also on other factors.
14930  For example, a signature entered in the 
14931 \family sans
14932 Signature
14933 \family default
14934  type will in the standard behavior appear in the produced letter only,
14935  when in the same letter also a 
14936 \family sans
14937 Closing
14938 \family default
14939  type is used.
14940  The entered value of the 
14941 \family sans
14942 Telephone
14943 \family default
14944  type will in the standard behavior not appear in the produced letter at
14945  all.
14946  The possibility to design the letter`s heading freely is already indicated
14947  in a footnote above.
14948 \end_layout
14949
14950 \begin_layout Standard
14951 The input types can also be used as empty paragraphs.
14952  This makes sense e.
14953 \begin_inset space \thinspace{}
14954 \end_inset
14955
14956 g.
14957 \begin_inset space \space{}
14958 \end_inset
14959
14960 for the 
14961 \family sans
14962 Signature
14963 \family default
14964  type.
14965  If the 
14966 \family sans
14967 Signature
14968 \family default
14969  type is not used at all, in the standard behavior the value of the 
14970 \family sans
14971 Name
14972 \family default
14973  type is used as signature, whereas if an empty 
14974 \family sans
14975 Signature
14976 \family default
14977  type is used, no signature value is defined.
14978 \end_layout
14979
14980 \begin_layout Standard
14981 By using the input types it is possible to write a letter template, containing
14982  filled input types with your personal dates (name, address, etc.) and empty
14983  input types for other dates you want to enter.
14984 \end_layout
14985
14986 \begin_layout Itemize
14987
14988 \family sans
14989 Name
14990 \family default
14991 : sender's name, in the standard behavior appears as a centered paragraph
14992  in small caps in the letter`s heading.
14993 \end_layout
14994
14995 \begin_layout Itemize
14996
14997 \family sans
14998 Signature
14999 \family default
15000 : sender's signature, in the standard behavior appears below the 
15001 \family sans
15002 Closing
15003 \family default
15004  type.
15005  If no 
15006 \family sans
15007 Signature
15008 \family default
15009  type is used, the value of the 
15010 \family sans
15011 Name
15012 \family default
15013  type appears instead.
15014 \end_layout
15015
15016 \begin_layout Itemize
15017
15018 \family sans
15019 Address
15020 \family default
15021 : sender's address, in the standard behavior appears in a centered paragraph
15022  in the letter`s heading below the sender's name.
15023 \end_layout
15024
15025 \begin_layout Itemize
15026
15027 \family sans
15028 Telephone
15029 \family default
15030 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15031  variable
15032  
15033 \family typewriter
15034
15035 \backslash
15036 telephonenum
15037 \family default
15038 .
15039 \end_layout
15040
15041 \begin_layout Itemize
15042
15043 \family sans
15044 Place
15045 \family default
15046 : place of the letter`s making.
15047 \end_layout
15048
15049 \begin_layout Itemize
15050
15051 \family sans
15052 Date
15053 \family default
15054 : date of the letter`s making.
15055  
15056 \family sans
15057 Place
15058 \family default
15059  and 
15060 \family sans
15061 Date
15062 \family default
15063 , in the standard behavior, produce the place and the date in a right-aligned
15064  line below the addressee's field.
15065  If an empty 
15066 \family sans
15067 Date
15068 \family default
15069  type is used, neither place nor date appear, independent of the value of
15070  the 
15071 \family sans
15072 Place
15073 \family default
15074  type.
15075  If no 
15076 \family sans
15077 Date
15078 \family default
15079  type is used, the date of the letter `s production is used.
15080 \end_layout
15081
15082 \begin_layout Itemize
15083
15084 \family sans
15085 Backaddress
15086 \family default
15087 : sender`s back address, in the standard behavior appears above the addressee's
15088  field in a small sans serif font.
15089 \end_layout
15090
15091 \begin_layout Itemize
15092
15093 \family sans
15094 Specialmail
15095 \family default
15096 : special mail information, in the standard behavior appears underlined
15097  above the addressee's field below the back address.
15098 \end_layout
15099
15100 \begin_layout Itemize
15101
15102 \family sans
15103 Location
15104 \family default
15105 : additional information, in the standard behavior appears on right side
15106  below the addressee`s field.
15107 \end_layout
15108
15109 \begin_layout Itemize
15110
15111 \family sans
15112 Title
15113 \family default
15114 : the letter's title, in the standard behavior appears in a big, bold, sans
15115  serif font above the subject.
15116 \end_layout
15117
15118 \begin_layout Itemize
15119
15120 \family sans
15121 Subject
15122 \family default
15123 : the letter's subject, in the standard behavior appears in a bold font
15124  above the 
15125 \family sans
15126 Opening
15127 \family default
15128  paragraph.
15129 \end_layout
15130
15131 \begin_layout Standard
15132 The types 
15133 \family sans
15134 Yourref
15135 \family default
15136
15137 \family sans
15138 Yourmail
15139 \family default
15140
15141 \family sans
15142 Myref
15143 \family default
15144
15145 \family sans
15146 Customer
15147 \family default
15148 , and 
15149 \family sans
15150 Invoice
15151 \family default
15152  produce a business letter like line above the 
15153 \family sans
15154 Title
15155 \family default
15156  line containing the fields 
15157 \begin_inset Quotes eld
15158 \end_inset
15159
15160 Your ref.
15161 \begin_inset Quotes erd
15162 \end_inset
15163
15164
15165 \begin_inset Quotes eld
15166 \end_inset
15167
15168 Your letter of
15169 \begin_inset Quotes erd
15170 \end_inset
15171
15172
15173 \begin_inset Quotes eld
15174 \end_inset
15175
15176 Our ref.
15177 \begin_inset Quotes erd
15178 \end_inset
15179
15180
15181 \begin_inset Quotes eld
15182 \end_inset
15183
15184 Customer no.
15185 \begin_inset Quotes erd
15186 \end_inset
15187
15188
15189 \begin_inset Quotes eld
15190 \end_inset
15191
15192 Invoice no.
15193 \begin_inset Quotes erd
15194 \end_inset
15195
15196 , and 
15197 \begin_inset Quotes eld
15198 \end_inset
15199
15200 Date
15201 \begin_inset Quotes erd
15202 \end_inset
15203
15204 .
15205  For the date field, the value of the 
15206 \family sans
15207 Date
15208 \family default
15209  type is used.
15210  If one of these 
15211 \begin_inset Quotes eld
15212 \end_inset
15213
15214 business letter types
15215 \begin_inset Quotes erd
15216 \end_inset
15217
15218  is used, the value of the 
15219 \family sans
15220 Place
15221 \family default
15222  type however does not appear, but only the \SpecialChar LaTeX
15223  variable 
15224 \family typewriter
15225
15226 \backslash
15227 fromplace
15228 \family default
15229  is set.
15230  The ordinary output of place and date in a right-aligned line below the
15231  addressee`s field is suppressed.
15232  The types are implemented as input types provided with a label and must
15233  be used ahead of the corresponding 
15234 \family sans
15235 Opening
15236 \family default
15237  type.
15238 \end_layout
15239
15240 \begin_layout Itemize
15241
15242 \family sans
15243 Yourref
15244 \family default
15245 : Your ref.
15246 \end_layout
15247
15248 \begin_layout Itemize
15249
15250 \family sans
15251 Yourmail
15252 \family default
15253 : Your letter of.
15254 \end_layout
15255
15256 \begin_layout Itemize
15257
15258 \family sans
15259 Myref
15260 \family default
15261 : Our ref.
15262 \end_layout
15263
15264 \begin_layout Itemize
15265
15266 \family sans
15267 Customer
15268 \family default
15269 : Customer no.
15270 \end_layout
15271
15272 \begin_layout Itemize
15273
15274 \family sans
15275 Invoice
15276 \family default
15277 : Invoice no.
15278 \end_layout
15279
15280 \begin_layout Subsection
15281 The new letter class: letter (koma-script v.2)
15282 \end_layout
15283
15284 \begin_layout Standard
15285 by 
15286 \noun on
15287 Jürgen Spitzmüller
15288 \end_layout
15289
15290 \begin_layout Standard
15291 \begin_inset VSpace medskip
15292 \end_inset
15293
15294
15295 \end_layout
15296
15297 \begin_layout Standard
15298 \noindent
15299 Koma-Script version 2.8 has introduced a new letter class 
15300 \family typewriter
15301 scrlttr2
15302 \family default
15303  which supersedes the now unsupported 
15304 \family typewriter
15305 scrlettr
15306 \family default
15307 .
15308  It has — on the \SpecialChar LaTeX
15309  side — a completely new interface and is not compatible
15310  with the old class.
15311  Therefore, \SpecialChar LyX
15312  supports both, though it is recommended you use the new class.
15313 \end_layout
15314
15315 \begin_layout Standard
15316 This class covers the same functionality as 
15317 \emph on
15318 letter (koma-script),
15319 \emph default
15320  and a few more.
15321  The basic items are 
15322 \family sans
15323 Address
15324 \family default
15325  (receiver's address, same as 
15326 \family sans
15327 Letter
15328 \family default
15329  in the old layout), 
15330 \family sans
15331 Opening
15332 \family default
15333 , and 
15334 \family sans
15335 Closing
15336 \family default
15337 .
15338  
15339 \family sans
15340 NextAddress
15341 \family default
15342  will start a new letter (i.
15343 \begin_inset space \thinspace{}
15344 \end_inset
15345
15346 e.
15347 \begin_inset space \space{}
15348 \end_inset
15349
15350 you can write several letters per document).
15351  New elements are sender's 
15352 \family sans
15353 E-Mail
15354 \family default
15355
15356 \family sans
15357 URL
15358 \family default
15359
15360 \family sans
15361 Fax
15362 \family default
15363
15364 \family sans
15365 Bank
15366 \family default
15367  and the possibility to use a 
15368 \family sans
15369 Logo
15370 \family default
15371  (via 
15372 \family sans
15373 Insert\SpecialChar menuseparator
15374 Graphics
15375 \family default
15376 ) in the header.
15377 \end_layout
15378
15379 \begin_layout Standard
15380 The biggest improvement is, though, that the letter's layout is configurable
15381  to meet almost any needs.
15382  This can be done via the preamble or with a special style file (Letter
15383  Class Option, extension 
15384 \family typewriter
15385 *.lco
15386 \family default
15387 ), that will be read in as a class option.
15388 \begin_inset Foot
15389 status collapsed
15390
15391 \begin_layout Plain Layout
15392 The KOMA package comes with some default 
15393 \family typewriter
15394 *.lco
15395 \family default
15396  files.
15397  There is, for instance, a 
15398 \family typewriter
15399 DIN.lco
15400 \family default
15401  file that follows german typesetting rules, or a 
15402 \family typewriter
15403 KOMAold.lco
15404 \family default
15405  that provides the default layout of the old 
15406 \family typewriter
15407 scrlettr
15408 \family default
15409  class.
15410  The latter can be loaded with the class option 
15411 \family typewriter
15412 KOMAold
15413 \family default
15414 , inserted via the 
15415 \family sans
15416 Layout\SpecialChar menuseparator
15417 Document\SpecialChar menuseparator
15418 Extra Options
15419 \family default
15420  field.
15421 \end_layout
15422
15423 \end_inset
15424
15425  Have a look at the 
15426 \emph on
15427 koma-letter2
15428 \emph default
15429  template that is included in \SpecialChar LyX
15430  for examples.
15431  A detailed description is to be found in the Koma-Script documentation
15432  (
15433 \emph on
15434 scrguide
15435 \emph default
15436 ).
15437 \end_layout
15438
15439 \begin_layout Subsection
15440 Problems
15441 \end_layout
15442
15443 \begin_layout Standard
15444 Visualizing the Koma-Script document classes in \SpecialChar LyX
15445 , the \SpecialChar LyX
15446  internals cause some
15447  problems.
15448 \end_layout
15449
15450 \begin_layout Itemize
15451 The chapter number of a 
15452 \family sans
15453 Chapter
15454 \family default
15455  type appears on a line of its own above the chapter heading instead of
15456  appearing in the same line ahead of it.
15457  The cause for that is the \SpecialChar LyX
15458  internal behavior for the labeltype 
15459 \family sans
15460 Counter_Chapter
15461 \family default
15462  in the layout file.
15463 \end_layout
15464
15465 \begin_layout Itemize
15466 The headings of the types 
15467 \family sans
15468 Addchap
15469 \family default
15470  and 
15471 \family sans
15472 Addsec
15473 \family default
15474  are only put in the 
15475 \begin_inset Quotes eld
15476 \end_inset
15477
15478 true
15479 \begin_inset Quotes erd
15480 \end_inset
15481
15482  \SpecialChar LaTeX
15483  table of contents, but not in the \SpecialChar LyX
15484  table of contents (
15485 \family sans
15486 Document\SpecialChar menuseparator
15487 Table
15488 \begin_inset space ~
15489 \end_inset
15490
15491 of
15492 \begin_inset space ~
15493 \end_inset
15494
15495 Contents
15496 \family default
15497 ).
15498 \end_layout
15499
15500 \begin_layout Itemize
15501 The paragraphs in a 
15502 \emph on
15503 letter
15504 \emph default
15505  document class appear in a skip separation mode, not indented.
15506  This is the standard behavior, no special \SpecialChar LaTeX
15507  commands are needed for that.
15508  But in the 
15509 \family sans
15510 Document\SpecialChar menuseparator
15511 Settings
15512 \family default
15513  dialog the corresponding radio button indicates 
15514 \family sans
15515 Indent
15516 \family default
15517 .
15518  A 
15519 \family sans
15520 Skip
15521 \family default
15522  value always has the effect that extra \SpecialChar LaTeX
15523  commands are inserted in the document
15524  to produce the gap, which is not what is wanted in this case.
15525 \end_layout
15526
15527 \begin_layout Section
15528 Memoir
15529 \end_layout
15530
15531 \begin_layout Standard
15532 By 
15533 \noun on
15534 Jürgen Spitzmüller
15535 \end_layout
15536
15537 \begin_layout Subsection
15538 Overview
15539 \end_layout
15540
15541 \begin_layout Standard
15542 Memoir is a very powerful and constantly evolving class.
15543  It has been designed with regard to fictional and non-fictional literature.
15544  Its aim is to let the user have maximum control over the typesetting of
15545  his document.
15546  Memoir is based on the standard book class, but it can also emulate the
15547  article class (see below).
15548 \end_layout
15549
15550 \begin_layout Standard
15551 Peter Wilson, the developer of Memoir, is known as the author of lots of
15552  useful packages in the \SpecialChar LaTeX
15553  world.
15554  Most of them have been merged with Memoir.
15555  Therefore, it is much easier to layout the table of contents, appendices,
15556  chapter designs and such.
15557  \SpecialChar LyX
15558 , though, does not support all of these goodies natively.
15559  Some of them might be added to forthcoming releases
15560 \begin_inset Foot
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 You are invited to send suggestions to 
15565 \begin_inset Flex URL
15566 status collapsed
15567
15568 \begin_layout Plain Layout
15569
15570 lyx-devel@lists.lyx.org
15571 \end_layout
15572
15573 \end_inset
15574
15575 .
15576 \end_layout
15577
15578 \end_inset
15579
15580 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15581 's framework.
15582  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15583
15584  commands (\SpecialChar TeX
15585  code
15586 \begin_inset Foot
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590 Cf.
15591 \begin_inset ERT
15592 status collapsed
15593
15594 \begin_layout Plain Layout
15595
15596
15597 \backslash
15598  
15599 \end_layout
15600
15601 \end_inset
15602
15603 section
15604 \begin_inset space ~
15605 \end_inset
15606
15607
15608 \begin_inset CommandInset ref
15609 LatexCommand ref
15610 reference "sec:Inserting-TeX-Code"
15611
15612 \end_inset
15613
15614  for details.
15615 \end_layout
15616
15617 \end_inset
15618
15619 ).
15620  In this section, we can only list those features that are natively supported
15621  by \SpecialChar LyX
15622 .
15623  For detailed descriptions (and for the rest of features) we recommend you
15624  have a look at the detailed manual of the Memoir class
15625 \begin_inset Foot
15626 status collapsed
15627
15628 \begin_layout Plain Layout
15629 Cf.
15630 \begin_inset ERT
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634
15635
15636 \backslash
15637  
15638 \end_layout
15639
15640 \end_inset
15641
15642
15643 \begin_inset Flex URL
15644 status collapsed
15645
15646 \begin_layout Plain Layout
15647
15648 CTAN:/macros/latex/memoir/memman.pdf
15649 \end_layout
15650
15651 \end_inset
15652
15653 .
15654 \end_layout
15655
15656 \end_inset
15657
15658 , which is not only a user guide for the class, but also both a comprehensive
15659  description on good typesetting and a superb example for good typesetting
15660  itself.
15661 \end_layout
15662
15663 \begin_layout Subsection
15664 Basic features and restrictions
15665 \end_layout
15666
15667 \begin_layout Standard
15668 Memoir supports basically all features of the standard book classes.
15669  There are, however, some differences, as follows:
15670 \end_layout
15671
15672 \begin_layout Description
15673 Font
15674 \begin_inset space ~
15675 \end_inset
15676
15677 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15678 \end_layout
15679
15680 \begin_layout Description
15681 Page
15682 \begin_inset space ~
15683 \end_inset
15684
15685 style: The fancy page style is not supported, due to a command clash between
15686  Memoir and the fancyhdr package (they both define a command with the same
15687  name, which confuses \SpecialChar LaTeX
15688 ).
15689  Instead, Memoir comes with a number of its own page styles (see 
15690 \family sans
15691 Layout\SpecialChar menuseparator
15692 Document\SpecialChar menuseparator
15693 Page
15694 \begin_inset space ~
15695 \end_inset
15696
15697 Style
15698 \family default
15699 ).
15700  If you want to use these for the chapter pages, you have to use the command
15701  
15702 \family typewriter
15703
15704 \backslash
15705 chapterstyle
15706 \family default
15707  in the main text or in preamble (e.
15708 \begin_inset space \thinspace{}
15709 \end_inset
15710
15711 g.
15712 \begin_inset space \space{}
15713 \end_inset
15714
15715
15716 \family typewriter
15717
15718 \backslash
15719 chapterstyle{companion}
15720 \family default
15721 ).
15722 \end_layout
15723
15724 \begin_layout Description
15725 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15726  optional argument in the standard classes.
15727  With this, you can specify an alternative version of the title for the
15728  table of contents and the headers (for instance, if the title is too long).
15729  In \SpecialChar LyX
15730 , you can do this via 
15731 \family sans
15732 Insert\SpecialChar menuseparator
15733 Short
15734 \begin_inset space ~
15735 \end_inset
15736
15737 Title
15738 \family default
15739  at the beginning of a chapter/section.
15740  Memoir features a second optional argument and thus separates the table
15741  of contents from the header.
15742  You can define three variants of a title with this: one for the main text,
15743  one for the table of contents, and one for the headers.
15744  Simply insert two optional arguments if you need this feature, the first
15745  one containing the short title for the Table of Contents, the second one
15746  containing an alternative short title for the headers.
15747 \end_layout
15748
15749 \begin_layout Description
15750 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15751  of contents, the list of figures and the list of table start a new page
15752  automatically.
15753  Memoir does not follow this route.
15754  You have to insert a page break yourself, if you want to have one.
15755 \end_layout
15756
15757 \begin_layout Description
15758 Titlepage: For some unknown reason, Memoir uses pagination on the title
15759  page (in the standard classes, title pages are 
15760 \begin_inset Quotes eld
15761 \end_inset
15762
15763 empty
15764 \begin_inset Quotes erd
15765 \end_inset
15766
15767 ).
15768  If you want an empty title page, type 
15769 \family typewriter
15770
15771 \backslash
15772 aliaspagestyle{title}{empty}
15773 \family default
15774  in the preamble.
15775 \end_layout
15776
15777 \begin_layout Description
15778 Article: With the class option 
15779 \emph on
15780 article
15781 \emph default
15782  (to be inserted in 
15783 \family sans
15784 Layout\SpecialChar menuseparator
15785 Document\SpecialChar menuseparator
15786 Extra
15787 \begin_inset space ~
15788 \end_inset
15789
15790 Options
15791 \family default
15792 ), you can emulate article style.
15793  That is, counters (footnotes, figures, tables etc.) will not be reset on
15794  new chapters, chapters don't start a new page (but are—in contrary to 
15795 \begin_inset Quotes eld
15796 \end_inset
15797
15798 real
15799 \begin_inset Quotes erd
15800 \end_inset
15801
15802  article classes—still allowed), parts, though, use their own page, as in
15803  book.
15804 \end_layout
15805
15806 \begin_layout Description
15807 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15808  font commands, which have been used in the old \SpecialChar LaTeX
15809  version 2.09 (e.
15810 \begin_inset space \thinspace{}
15811 \end_inset
15812
15813 g.
15814 \begin_inset space \space{}
15815 \end_inset
15816
15817
15818 \family typewriter
15819
15820 \backslash
15821 rm
15822 \family default
15823
15824 \family typewriter
15825
15826 \backslash
15827 it
15828 \family default
15829 ).
15830  It produces an error and stops \SpecialChar LaTeX
15831  whenever such a command appears.
15832  The class option 
15833 \emph on
15834 oldfontcommands
15835 \emph default
15836  reallows the commands and spits out warnings instead (which does at least
15837  not stop \SpecialChar LaTeX
15838 ).
15839  Since a lot of packages and particularly Bib\SpecialChar TeX
15840  style files are still using
15841  those commands, we have decided to use this option by default.
15842 \end_layout
15843
15844 \begin_layout Subsection
15845 Extra features
15846 \end_layout
15847
15848 \begin_layout Standard
15849 We will only describe the features supported by \SpecialChar LyX
15850  (which is not much currently).
15851  Please consult the Memoir manual
15852 \begin_inset Foot
15853 status collapsed
15854
15855 \begin_layout Plain Layout
15856 Cf.
15857 \begin_inset ERT
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861
15862
15863 \backslash
15864  
15865 \end_layout
15866
15867 \end_inset
15868
15869
15870 \begin_inset Flex URL
15871 status collapsed
15872
15873 \begin_layout Plain Layout
15874
15875 CTAN:/macros/latex/memoir/memman.pdf
15876 \end_layout
15877
15878 \end_inset
15879
15880 .
15881 \end_layout
15882
15883 \end_inset
15884
15885  for details.
15886 \end_layout
15887
15888 \begin_layout Description
15889 Abstract: You may wonder why an abstract is an extra feature.
15890  Well, it is in book class.
15891  Usually books don't have abstracts.
15892  Memoir, however, has.
15893  You can use it wherever and how often you like.
15894 \end_layout
15895
15896 \begin_layout Description
15897 Chapterprecis: You may know this older typesetting style: The contents of
15898  a chapter are summarized below the title and also in the table of contents
15899  (e.
15900 \begin_inset space \thinspace{}
15901 \end_inset
15902
15903 g.
15904 \begin_inset space \space{}
15905 \end_inset
15906
15907
15908 \emph on
15909 Our hero arrives in Troia; he loses some friends; he finds others
15910 \emph default
15911 ).
15912  Chapterprecis does exactly this.
15913  It is therefore only sensible below a chapter.
15914 \end_layout
15915
15916 \begin_layout Description
15917 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15918  The epigraph environment provides an elegant way of typesetting such a
15919  motto.
15920  The motto itself (text) and its author (source) are divided by a short
15921  line.
15922  Unfortunately, we have to fool \SpecialChar LyX
15923  a bit here again, since the environment
15924  needs two arguments (text and source).
15925  In this case, we have to use curly brackets (in \SpecialChar TeX
15926  mode) between the two
15927  arguments: 
15928 \emph on
15929 <smart slogan>
15930 \emph default
15931  
15932 \family typewriter
15933 }{
15934 \family default
15935  
15936 \emph on
15937 <author of the slogan>.
15938 \end_layout
15939
15940 \begin_layout Description
15941 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15942  complex figurative poems).
15943  \SpecialChar LyX
15944  can only support a few of them.
15945  One is poemtitle, which is a centered title for poems, which will also
15946  be added to the table of contents (verse is the standard environment for
15947  poems.
15948  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15949  code,
15950  because they have to be nested inside regular verse environments, which
15951  is not possible with \SpecialChar LyX
15952 ).
15953 \end_layout
15954
15955 \begin_layout Description
15956 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15957 \end_layout
15958
15959 \begin_layout Section
15960 Article (mwart), book (mwbk) and report (mwrep)
15961 \begin_inset Argument status
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965 The 
15966 \family typewriter
15967 mw
15968 \family default
15969  Classes
15970 \end_layout
15971
15972 \end_inset
15973
15974
15975 \end_layout
15976
15977 \begin_layout Standard
15978 by 
15979 \noun on
15980 Tomasz Luczak
15981 \end_layout
15982
15983 \begin_layout Standard
15984 The \SpecialChar LyX
15985  document classes 
15986 \emph on
15987 article (mwart)
15988 \emph default
15989
15990 \emph on
15991 report (mwrep)
15992 \emph default
15993  and 
15994 \emph on
15995 book
15996 \emph default
15997  
15998 \emph on
15999 (mwbk)
16000 \emph default
16001  correspond to the \SpecialChar LaTeX
16002  document classes 
16003 \family typewriter
16004 mwart.cls
16005 \family default
16006
16007 \family typewriter
16008 mwrep.cls
16009 \family default
16010  and 
16011 \family typewriter
16012 mwbk.cls
16013 \family default
16014 , resp.
16015  They are replacements for the standard document classes 
16016 \family typewriter
16017 article.cls
16018 \family default
16019
16020 \family typewriter
16021 report.cls
16022 \family default
16023  and 
16024 \family typewriter
16025 book.cls
16026 \family default
16027 , resp., and fit better to Polish typography conventions in a number of points.
16028  
16029 \end_layout
16030
16031 \begin_layout Standard
16032 Basic differences:
16033 \end_layout
16034
16035 \begin_layout Itemize
16036 Unnumbered titles (with star, e.
16037 \begin_inset space \thinspace{}
16038 \end_inset
16039
16040 g.
16041 \begin_inset space \space{}
16042 \end_inset
16043
16044
16045 \family sans
16046 Section*
16047 \family default
16048 ) are added into table of contents,
16049 \end_layout
16050
16051 \begin_layout Itemize
16052 Additional page styles:
16053 \end_layout
16054
16055 \begin_deeper
16056 \begin_layout Description
16057 uheadings header with separated lines,
16058 \end_layout
16059
16060 \begin_layout Description
16061 myheadings custom header, contents headers via commands: 
16062 \family typewriter
16063
16064 \backslash
16065 markright
16066 \family default
16067  and 
16068 \family typewriter
16069
16070 \backslash
16071 markboth
16072 \family default
16073 ,
16074 \end_layout
16075
16076 \begin_layout Description
16077 myuheadings custom header with separated lines,
16078 \end_layout
16079
16080 \begin_layout Description
16081 outer page number is placed on outer side of page
16082 \end_layout
16083
16084 \end_deeper
16085 \begin_layout Itemize
16086 Options 
16087 \end_layout
16088
16089 \begin_deeper
16090 \begin_layout Description
16091 rmheadings serif titles — default,
16092 \end_layout
16093
16094 \begin_layout Description
16095 sfheadings sansserif titles,
16096 \end_layout
16097
16098 \begin_layout Description
16099 authortitle on title page first placed is author next title — default,
16100 \end_layout
16101
16102 \begin_layout Description
16103 titleauthor on title page first placed is title next author,
16104 \end_layout
16105
16106 \begin_layout Description
16107 withmarginpar reserve place on page for margins.
16108 \end_layout
16109
16110 \end_deeper
16111 \begin_layout Section
16112 Paper
16113 \end_layout
16114
16115 \begin_layout Standard
16116 The document class 
16117 \family sans
16118 paper
16119 \family default
16120  provides an alternative to the standard 
16121 \family sans
16122 article
16123 \family default
16124  class.
16125  It provides similar functionality, but you might prefer this layout with
16126  sans serif sections, headings, and more.
16127 \end_layout
16128
16129 \begin_layout Section
16130 Rev\SpecialChar TeX
16131 4
16132 \end_layout
16133
16134 \begin_layout Standard
16135 by 
16136 \noun on
16137 Amir Karger
16138 \end_layout
16139
16140 \begin_layout Standard
16141 \begin_inset VSpace bigskip
16142 \end_inset
16143
16144
16145 \end_layout
16146
16147 \begin_layout Standard
16148 \noindent
16149 The 
16150 \family sans
16151 Revtex
16152 \begin_inset space ~
16153 \end_inset
16154
16155 4
16156 \family default
16157  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16158  4.0 (the 
16159 \begin_inset Formula $\beta$
16160 \end_inset
16161
16162  release of May, 1999) class.
16163 \end_layout
16164
16165 \begin_layout Standard
16166 \SpecialChar LyX
16167  has a 
16168 \family sans
16169 Revtex
16170 \family default
16171  textclass, which works with Rev\SpecialChar TeX
16172  3.1.
16173  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16174  2.09.
16175  That means that it doesn't interact very well with \SpecialChar LyX
16176 , which requires \SpecialChar LaTeX2e
16177 , although
16178  it has been kludged to work.
16179  Since Rev\SpecialChar TeX
16180  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16181 , \SpecialChar LyX
16182  with the
16183  
16184 \family sans
16185 Rev\SpecialChar TeX
16186
16187 \begin_inset space ~
16188 \end_inset
16189
16190 4
16191 \family default
16192  textclass should also be pretty easy to use.
16193 \end_layout
16194
16195 \begin_layout Standard
16196 These documents are supposed to be used in 
16197 \emph on
16198 addition
16199 \emph default
16200  to the Rev\SpecialChar TeX
16201  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16202  macros,
16203  and assume you'll know what to put in the preamble if necessary.
16204 \end_layout
16205
16206 \begin_layout Subsection
16207 Installation
16208 \end_layout
16209
16210 \begin_layout Standard
16211 All you need to do is install Rev\SpecialChar TeX
16212  4, as described in the package's README
16213  file.
16214  The package can be found at The Rev\SpecialChar TeX
16215  4 Web Site 
16216 \begin_inset Flex URL
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220
16221 http://publish.aps.org/revtex4/
16222 \end_layout
16223
16224 \end_inset
16225
16226 .
16227  Install it somewhere that \SpecialChar LaTeX
16228  can see it.
16229  Test it by trying to \SpecialChar LaTeX
16230  a short Rev\SpecialChar TeX
16231  4 document in some random directory (i.
16232 \begin_inset space \thinspace{}
16233 \end_inset
16234
16235 e.
16236 \begin_inset space \space{}
16237 \end_inset
16238
16239 not the directory where you installed the class file.) Then, if you reconfigure
16240  \SpecialChar LyX
16241 , it will find the class file and let you use the Rev\SpecialChar TeX
16242 4 textclass.
16243 \end_layout
16244
16245 \begin_layout Standard
16246 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16247  4 document
16248  using 
16249 \family typewriter
16250 tex2lyx
16251 \family default
16252 , or to use the 
16253 \family sans
16254 Revtex
16255 \begin_inset space ~
16256 \end_inset
16257
16258 4
16259 \family default
16260  template, found in the templates directory.
16261 \end_layout
16262
16263 \begin_layout Subsection
16264 Preamble Matter
16265 \end_layout
16266
16267 \begin_layout Standard
16268 Optional arguments to 
16269 \family typewriter
16270
16271 \backslash
16272 documentclass
16273 \family default
16274 , like 
16275 \begin_inset Quotes eld
16276 \end_inset
16277
16278 preprint
16279 \begin_inset Quotes erd
16280 \end_inset
16281
16282  and 
16283 \begin_inset Quotes eld
16284 \end_inset
16285
16286 aps
16287 \begin_inset Quotes erd
16288 \end_inset
16289
16290 , go in the 
16291 \family sans
16292 Extra
16293 \begin_inset space ~
16294 \end_inset
16295
16296 Options
16297 \family default
16298  field in the 
16299 \family sans
16300 Document
16301 \begin_inset space ~
16302 \end_inset
16303
16304 Layout
16305 \family default
16306  dialog, as usual.
16307  Remember that in Rev\SpecialChar TeX
16308 , at least one optional argument is required! 
16309 \end_layout
16310
16311 \begin_layout Standard
16312 Other preamble matter, like 
16313 \family typewriter
16314
16315 \backslash
16316 draft
16317 \family default
16318  etc.
16319 \begin_inset space ~
16320 \end_inset
16321
16322 goes in the 
16323 \family sans
16324 \SpecialChar LaTeX
16325
16326 \begin_inset space ~
16327 \end_inset
16328
16329 Preamble
16330 \family default
16331  dialog, also as usual.
16332 \end_layout
16333
16334 \begin_layout Subsection
16335 Layouts
16336 \end_layout
16337
16338 \begin_layout Standard
16339 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16340 4.0.
16341  For example, the Email layout corresponds to 
16342 \family typewriter
16343
16344 \backslash
16345 email{}
16346 \family default
16347 .
16348  Note that (at least as of Rev\SpecialChar TeX
16349  4.0 Beta), the 
16350 \family sans
16351 Address
16352 \family default
16353  and 
16354 \family sans
16355 Affiliation
16356 \family default
16357  layouts are exactly equivalent, so you shouldn't need to use both.
16358 \begin_inset Foot
16359 status collapsed
16360
16361 \begin_layout Plain Layout
16362 In case you're curious, both were included so that 
16363 \family typewriter
16364 tex2lyx
16365 \family default
16366  would be able to translate both 
16367 \family typewriter
16368
16369 \backslash
16370 address
16371 \family default
16372  and 
16373 \family typewriter
16374
16375 \backslash
16376 affiliation
16377 \family default
16378 .
16379 \end_layout
16380
16381 \end_inset
16382
16383
16384 \end_layout
16385
16386 \begin_layout Subsection
16387 Important Notes
16388 \end_layout
16389
16390 \begin_layout Standard
16391 There are a couple of important unique aspects of Rev\SpecialChar TeX
16392  4 which might cause
16393  bugs that will be even more confusing in \SpecialChar LyX
16394 .
16395 \end_layout
16396
16397 \begin_layout Standard
16398 In Rev\SpecialChar TeX
16399 , the 
16400 \family typewriter
16401
16402 \backslash
16403 thanks
16404 \family default
16405  command goes 
16406 \emph on
16407 outside
16408 \emph default
16409  the 
16410 \family typewriter
16411
16412 \backslash
16413 author
16414 \family default
16415  command.
16416  The \SpecialChar LyX
16417  equivalent is that there is a separate Thanks layout.
16418  Do 
16419 \emph on
16420 not
16421 \emph default
16422  write footnotes in the 
16423 \family sans
16424 Author
16425 \family default
16426  layout, or weird things may happen.
16427  See the Rev\SpecialChar TeX
16428  4 documentation for more details.
16429 \end_layout
16430
16431 \begin_layout Standard
16432 Also, the 
16433 \family sans
16434 Author
16435 \begin_inset space ~
16436 \end_inset
16437
16438 Email
16439 \family default
16440
16441 \family sans
16442 Author
16443 \begin_inset space ~
16444 \end_inset
16445
16446 URL
16447 \family default
16448 , and 
16449 \family sans
16450 Thanks
16451 \family default
16452  layouts must be placed 
16453 \emph on
16454 in between
16455 \emph default
16456  the 
16457 \family sans
16458 Author
16459 \family default
16460  layout and the corresponding 
16461 \family sans
16462 Address
16463 \family default
16464  (or equivalent 
16465 \family sans
16466 Affiliation
16467 \family default
16468 ) layout.
16469  If you put the 
16470 \family sans
16471 Thanks
16472 \family default
16473  after the 
16474 \family sans
16475 Address
16476 \family default
16477 , the \SpecialChar LaTeX
16478  won't compile.
16479 \end_layout
16480
16481 \begin_layout Subsection
16482 Drawbacks
16483 \end_layout
16484
16485 \begin_layout Standard
16486 The main problem with this layout is that you can't use the optional arguments
16487  to layouts like Email and Title.
16488  (The problem is not unique to this layout; you can't use optional arguments
16489  to the Section layouts either.) This means that after you export that file
16490  to \SpecialChar LaTeX
16491  (which you'll need to do eventually to send it in to APS), you'll need
16492  to edit the \SpecialChar LaTeX
16493  file with a text editor to add the optional arguments to set,
16494  e.
16495 \begin_inset space \thinspace{}
16496 \end_inset
16497
16498 g.
16499 \begin_inset space \space{}
16500 \end_inset
16501
16502 the running title for the page headers.
16503  Lacking these layouts makes the 
16504 \family typewriter
16505
16506 \backslash
16507 altaffiliation
16508 \family default
16509  (and the equivalent 
16510 \family typewriter
16511
16512 \backslash
16513 altaddress
16514 \family default
16515 ) useless, so the corresponding layouts don't exist, and will have to be
16516  added by hand.
16517 \begin_inset Foot
16518 status collapsed
16519
16520 \begin_layout Plain Layout
16521
16522 \emph on
16523 Note from JMarc:
16524 \emph default
16525  actually, \SpecialChar LyX
16526  1.3.0 supports some forms of optional arguments, but this layout
16527  has not been updated yet to take advantage of it.
16528 \end_layout
16529
16530 \end_inset
16531
16532  
16533 \end_layout
16534
16535 \begin_layout Section
16536 Springer Journals (
16537 \family sans
16538 svjour
16539 \family default
16540 )
16541 \end_layout
16542
16543 \begin_layout Standard
16544 by 
16545 \noun on
16546 Martin Vermeer
16547 \end_layout
16548
16549 \begin_layout Subsection
16550 Description
16551 \end_layout
16552
16553 \begin_layout Standard
16554 These are the layout files for some of the journal formats used by Springer
16555  Verlag and listed on 
16556 \begin_inset Flex URL
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560
16561 http://www.springer.de/author/tex/help-journals.html
16562 \end_layout
16563
16564 \end_inset
16565
16566 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16567  now!).
16568  It is a modular system: the things common to all journals are implemented
16569  in 
16570 \family typewriter
16571 svjour.inc
16572 \family default
16573 , which journal-specific layout files (such as, e.
16574 \begin_inset space \thinspace{}
16575 \end_inset
16576
16577 g.
16578 \begin_inset space \space{}
16579 \end_inset
16580
16581
16582 \family typewriter
16583 svjog.layout
16584 \family default
16585  for Journal of Geodesy) can include.
16586 \end_layout
16587
16588 \begin_layout Standard
16589 This means that implementing support for any other Springer journal on this
16590  list is as simple as writing your own 
16591 \family typewriter
16592 sv
16593 \family default
16594 <myjournal>
16595 \family typewriter
16596 .layout
16597 \family default
16598  file following the outline given in 
16599 \family typewriter
16600 svjog.layout
16601 \family default
16602 .
16603  
16604 \end_layout
16605
16606 \begin_layout Standard
16607 It is reasonably well tested only for the Journal of Geodesy.
16608  
16609 \family typewriter
16610 svjour
16611 \family default
16612  and 
16613 \family typewriter
16614 svjog
16615 \family default
16616  come with the standard \SpecialChar LyX
16617  distribution.
16618  Install the relevant class file (downloaded from Springer) in a proper
16619  directory, reconfigure \SpecialChar LaTeX
16620  (in the te\SpecialChar TeX
16621  case by running 
16622 \family typewriter
16623 texhash
16624 \family default
16625 , as root if necessary — doesn't \SpecialChar LyX
16626  take care of this?), reconfigure \SpecialChar LyX
16627  and
16628  it should work.
16629 \end_layout
16630
16631 \begin_layout Subsection
16632 New styles
16633 \end_layout
16634
16635 \begin_layout Standard
16636 A large number of theorem-like styles — 
16637 \family sans
16638 Claim, Conjecture,
16639 \family default
16640  
16641 \family sans
16642 \SpecialChar ldots
16643 Theorem
16644 \family default
16645 .
16646 \end_layout
16647
16648 \begin_layout Standard
16649
16650 \family sans
16651 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16652 _Title, Author_Running, Institute,
16653  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16654 \family default
16655 .
16656  See the Springer class file documentation for details.
16657 \end_layout
16658
16659 \begin_layout Subsection
16660 Supported journals
16661 \end_layout
16662
16663 \begin_layout Itemize
16664
16665 \emph on
16666 Journal of Geodesy
16667 \emph default
16668
16669 \family typewriter
16670 svjog.layout
16671 \family default
16672  — Martin Vermeer
16673 \end_layout
16674
16675 \begin_layout Itemize
16676
16677 \emph on
16678 Probability Theory and Related Fields
16679 \emph default
16680
16681 \family typewriter
16682 svprobth.layout
16683 \family default
16684  — Jean-Marc Lasgouttes
16685 \end_layout
16686
16687 \begin_layout Standard
16688 Add your own, it isn't so hard!
16689 \end_layout
16690
16691 \begin_layout Subsection
16692 Credits
16693 \end_layout
16694
16695 \begin_layout Standard
16696 These files are partly based on the older 
16697 \family typewriter
16698 ejour2.layout
16699 \family default
16700 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16701  2.09 style
16702  file from Springer.
16703  All this, and the 
16704 \family typewriter
16705 ejour2
16706 \family default
16707  layout, are now defunct.
16708  Jean-Marc Lasgouttes helped out big in making me find my way around the
16709  \SpecialChar LyX
16710  layout file mechanism.
16711 \end_layout
16712
16713 \begin_layout Subsection
16714 Bugs
16715 \end_layout
16716
16717 \begin_layout Standard
16718 Probably.
16719  But probably less than in the old hacked-\SpecialChar LaTeX
16720  
16721 \family typewriter
16722 ejour2
16723 \family default
16724 .
16725 \end_layout
16726
16727 \begin_layout Standard
16728 Limitations e.
16729 \begin_inset space \thinspace{}
16730 \end_inset
16731
16732 g.: does not display the number for theorem-like layouts, just #.
16733 \end_layout
16734
16735 \begin_layout Section
16736 Slides [aka 
16737 \noun on
16738 Sli\SpecialChar TeX
16739
16740 \noun default
16741 ]
16742 \begin_inset CommandInset label
16743 LatexCommand label
16744 name "sec:slitex"
16745
16746 \end_inset
16747
16748
16749 \end_layout
16750
16751 \begin_layout Standard
16752 by 
16753 \noun on
16754 John Weiss
16755 \noun default
16756  
16757 \end_layout
16758
16759 \begin_layout Subsection
16760 Introduction
16761 \end_layout
16762
16763 \begin_layout Standard
16764 This section describes how to use \SpecialChar LyX
16765  to make slides for overhead projectors.
16766  There are two document classes that can do this: the default slides class
16767  and the 
16768 \family sans
16769 Foil\SpecialChar TeX
16770
16771 \family default
16772  slides class.
16773  This section documents the former.
16774 \end_layout
16775
16776 \begin_layout Standard
16777 I'm going to say this again, nice and clear, so that there's no misunderstanding
16778 :
16779 \end_layout
16780
16781 \begin_layout Standard
16782 \begin_inset VSpace bigskip
16783 \end_inset
16784
16785
16786 \end_layout
16787
16788 \begin_layout Standard
16789 \align center
16790
16791 \size large
16792 This section documents the class 
16793 \begin_inset Quotes eld
16794 \end_inset
16795
16796
16797 \family sans
16798 slides (default)
16799 \family default
16800
16801 \begin_inset Quotes erd
16802 \end_inset
16803
16804  
16805 \emph on
16806 only.
16807 \end_layout
16808
16809 \begin_layout Standard
16810 \begin_inset VSpace bigskip
16811 \end_inset
16812
16813
16814 \end_layout
16815
16816 \begin_layout Standard
16817 If you're looking for the documentation for 
16818 \begin_inset Quotes eld
16819 \end_inset
16820
16821
16822 \family sans
16823 slides (Foil\SpecialChar TeX
16824 )
16825 \family default
16826
16827 \begin_inset Quotes erd
16828 \end_inset
16829
16830 , check out section
16831 \begin_inset space ~
16832 \end_inset
16833
16834
16835 \begin_inset CommandInset ref
16836 LatexCommand ref
16837 reference "sec:foiltex"
16838
16839 \end_inset
16840
16841 .
16842  The 
16843 \family sans
16844 foils
16845 \family default
16846  class [
16847 \begin_inset Quotes eld
16848 \end_inset
16849
16850
16851 \family sans
16852 slides (Foil\SpecialChar TeX
16853 )
16854 \family default
16855
16856 \begin_inset Quotes erd
16857 \end_inset
16858
16859 ] is actually somewhat better than the default 
16860 \family sans
16861 slides
16862 \family default
16863  class,
16864 \begin_inset Foot
16865 status collapsed
16866
16867 \begin_layout Plain Layout
16868 \SpecialChar ldots
16869 or so I've been told repeatedly by its advocates.
16870  Having never used it, I have no idea if this claim is true or not.
16871 \end_layout
16872
16873 \end_inset
16874
16875  which this section documents.
16876 \end_layout
16877
16878 \begin_layout Standard
16879 This class is the \SpecialChar LaTeX2e
16880  improvement of the old 
16881 \noun on
16882 Sli\SpecialChar TeX
16883
16884 \noun default
16885  package.
16886  Every \SpecialChar LaTeX2e
16887  distribution includes this class [which I'll just refer to as 
16888 \begin_inset Quotes eld
16889 \end_inset
16890
16891
16892 \family sans
16893 slides
16894 \family default
16895
16896 \begin_inset Quotes erd
16897 \end_inset
16898
16899  from now on], so you're bound to have it.
16900  As I noted earlier, there are other classes, such as 
16901 \family sans
16902 foils
16903 \family default
16904 , which also produce slides for overhead projectors and do a better job
16905  at it.
16906  However, there are some things which 
16907 \family sans
16908 slides
16909 \family default
16910  can do which the others can't, such as generate overlays.
16911  Read on to learn more!
16912 \end_layout
16913
16914 \begin_layout Subsection
16915 Getting Started
16916 \begin_inset CommandInset label
16917 LatexCommand label
16918 name "sec:slidesetup"
16919
16920 \end_inset
16921
16922
16923 \end_layout
16924
16925 \begin_layout Standard
16926 Obviously, to use this document class, you need to select 
16927 \begin_inset Quotes eld
16928 \end_inset
16929
16930
16931 \family sans
16932 slides (default)
16933 \family default
16934
16935 \begin_inset Quotes erd
16936 \end_inset
16937
16938  from the class list in the 
16939 \family sans
16940 Document\SpecialChar menuseparator
16941 Settings
16942 \family default
16943  dialog.
16944  There are some other special things you should know about this class:
16945 \end_layout
16946
16947 \begin_layout Itemize
16948 Don't bother changing the options 
16949 \family sans
16950 Sides and Columns
16951 \family default
16952 .
16953  They're not supported by the 
16954 \family sans
16955 slides
16956 \family default
16957  class, anyways.
16958 \end_layout
16959
16960 \begin_layout Itemize
16961 The option 
16962 \family sans
16963 Page
16964 \begin_inset space ~
16965 \end_inset
16966
16967 style
16968 \family default
16969  behaves a bit differently for this class.
16970  The possible choices and what they do are as follows:
16971 \end_layout
16972
16973 \begin_deeper
16974 \begin_layout Description
16975
16976 \family sans
16977 plain
16978 \family default
16979  The final output contains page numbers in the lower right corner.
16980 \end_layout
16981
16982 \begin_layout Description
16983
16984 \family sans
16985 headings
16986 \family default
16987  Like 
16988 \family sans
16989 plain
16990 \family default
16991 , but also prints out any time markers you've put in.
16992  This is the default.
16993 \end_layout
16994
16995 \begin_layout Description
16996
16997 \family sans
16998 empty
16999 \family default
17000  The final output contains no page numbers, time markers, or alignment markers.
17001 \end_layout
17002
17003 \end_deeper
17004 \begin_layout Itemize
17005 The 
17006 \family sans
17007 slides
17008 \family default
17009  class has an extra option: 
17010 \family typewriter
17011 clock
17012 \family default
17013 .
17014  To use it, put 
17015 \begin_inset Quotes eld
17016 \end_inset
17017
17018
17019 \family typewriter
17020 clock
17021 \family default
17022
17023 \begin_inset Quotes erd
17024 \end_inset
17025
17026  in the extra class options.
17027 \end_layout
17028
17029 \begin_deeper
17030 \begin_layout Standard
17031 Using this options allows you to add time markers to 
17032 \family sans
17033 Note
17034 \family default
17035 s.
17036  See section
17037 \begin_inset space ~
17038 \end_inset
17039
17040
17041 \begin_inset CommandInset ref
17042 LatexCommand ref
17043 reference "sec:slideNote"
17044
17045 \end_inset
17046
17047  for more details.
17048 \end_layout
17049
17050 \end_deeper
17051 \begin_layout Standard
17052 You can also use the template file 
17053 \begin_inset Quotes eld
17054 \end_inset
17055
17056
17057 \family typewriter
17058 slides.lyx
17059 \family default
17060
17061 \begin_inset Quotes erd
17062 \end_inset
17063
17064  to automatically set up a document to use the 
17065 \family sans
17066 slides
17067 \family default
17068  class [using 
17069 \family sans
17070 File\SpecialChar menuseparator
17071 New
17072 \begin_inset space ~
17073 \end_inset
17074
17075 from
17076 \begin_inset space ~
17077 \end_inset
17078
17079 Template
17080 \family default
17081  to open your new document].
17082  The template file also contains some examples of the special paragraph
17083  environments used by this class.
17084  I'll describe those next.
17085 \end_layout
17086
17087 \begin_layout Subsection
17088 Paragraph Environments
17089 \end_layout
17090
17091 \begin_layout Subsubsection
17092 Supported Environments
17093 \end_layout
17094
17095 \begin_layout Standard
17096 The first thing you'll notice when you start up a new 
17097 \family sans
17098 slides
17099 \family default
17100  document is the font size and type: it's the equivalent of the size 
17101 \begin_inset Quotes eld
17102 \end_inset
17103
17104
17105 \family sans
17106 Largest
17107 \family default
17108
17109 \begin_inset Quotes erd
17110 \end_inset
17111
17112  in the 
17113 \family sans
17114 Sans
17115 \begin_inset space ~
17116 \end_inset
17117
17118 Serif
17119 \family default
17120  font.
17121  This is also what's used in the output.
17122  Think of this as a 
17123 \begin_inset Quotes eld
17124 \end_inset
17125
17126 visual cue
17127 \begin_inset Quotes erd
17128 \end_inset
17129
17130  to remind you that this is a slide.
17131  Your final slides will use a larger font; ergo, you'll have less space.
17132  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17133 \end_layout
17134
17135 \begin_layout Standard
17136 The next thing that becomes obvious is the changes to the paragraph environment
17137  pull-down box [at the far-left end of the toolbar].
17138  Most of the paragraph environments you're used to seeing are missing.
17139  There are also five new ones.
17140  That's because the 
17141 \family sans
17142 slides
17143 \family default
17144  class itself only supports certain paragraph environments:
17145 \end_layout
17146
17147 \begin_layout Itemize
17148
17149 \family sans
17150 Standard
17151 \end_layout
17152
17153 \begin_layout Itemize
17154
17155 \family sans
17156 Itemize
17157 \end_layout
17158
17159 \begin_layout Itemize
17160
17161 \family sans
17162 Enumerate
17163 \end_layout
17164
17165 \begin_layout Itemize
17166
17167 \family sans
17168 Description
17169 \end_layout
17170
17171 \begin_layout Itemize
17172
17173 \family sans
17174 List
17175 \end_layout
17176
17177 \begin_layout Itemize
17178
17179 \family sans
17180 Quotation
17181 \end_layout
17182
17183 \begin_layout Itemize
17184
17185 \family sans
17186 Quote
17187 \end_layout
17188
17189 \begin_layout Itemize
17190
17191 \family sans
17192 Verse
17193 \end_layout
17194
17195 \begin_layout Itemize
17196
17197 \family sans
17198 Caption
17199 \end_layout
17200
17201 \begin_layout Itemize
17202
17203 \family sans
17204 \SpecialChar LyX
17205 -Code
17206 \end_layout
17207
17208 \begin_layout Itemize
17209
17210 \family sans
17211 Comment
17212 \end_layout
17213
17214 \begin_layout Standard
17215 All of the other standard environments, including the section-heading environmen
17216 ts, aren't used in the 
17217 \family sans
17218 slides
17219 \family default
17220  class.
17221 \end_layout
17222
17223 \begin_layout Standard
17224 On the other hand, you'll notice the following new environments:
17225 \end_layout
17226
17227 \begin_layout Itemize
17228
17229 \family sans
17230 Slide
17231 \end_layout
17232
17233 \begin_layout Itemize
17234
17235 \family sans
17236 Overlay
17237 \end_layout
17238
17239 \begin_layout Itemize
17240
17241 \family sans
17242 Note
17243 \end_layout
17244
17245 \begin_layout Itemize
17246
17247 \family sans
17248 InvisibleText
17249 \end_layout
17250
17251 \begin_layout Itemize
17252
17253 \family sans
17254 VisibleText
17255 \end_layout
17256
17257 \begin_layout Standard
17258 These five are kind of quirky, due to a 
17259 \begin_inset Quotes eld
17260 \end_inset
17261
17262 feature
17263 \begin_inset Quotes erd
17264 \end_inset
17265
17266  in \SpecialChar LyX
17267 .
17268  You see, \SpecialChar LyX
17269  doesn't permit you to nest any other paragraph environment into
17270  an empty environment.
17271  Now, that's fine and dandy, but it means that you wouldn't be able to start
17272  a slide with anything except plain text.
17273  To deal with this, I've performed a little 
17274 \begin_inset Quotes eld
17275 \end_inset
17276
17277 \SpecialChar LaTeX
17278  magic.
17279 \begin_inset Quotes erd
17280 \end_inset
17281
17282  
17283 \end_layout
17284
17285 \begin_layout Subsubsection
17286 Quirks of the New Environments
17287 \begin_inset CommandInset label
17288 LatexCommand label
17289 name "sec:slideQuirk"
17290
17291 \end_inset
17292
17293
17294 \end_layout
17295
17296 \begin_layout Standard
17297 All five of the new paragraph environments are somewhat quirky due to inherent
17298  limitiations in the current version of \SpecialChar LyX
17299 .
17300  As I just mentioned, \SpecialChar LyX
17301  forbids environments that begin with another environment.
17302  To get around this, the 
17303 \family sans
17304 Slide
17305 \family default
17306  environment isn't a paragraph environment as described in the 
17307 \emph on
17308 User's Guide
17309 \emph default
17310 .
17311  
17312 \end_layout
17313
17314 \begin_layout Standard
17315 You should consider 
17316 \family sans
17317 Slide
17318 \family default
17319
17320 \family sans
17321 Overlay
17322 \family default
17323 , and 
17324 \family sans
17325 Note
17326 \family default
17327  to be 
17328 \begin_inset Quotes eld
17329 \end_inset
17330
17331 pseudo-environments.
17332 \begin_inset Quotes erd
17333 \end_inset
17334
17335  They look like a section heading or a 
17336 \begin_inset Quotes eld
17337 \end_inset
17338
17339
17340 \family sans
17341 Caption
17342 \family default
17343 ,
17344 \begin_inset Quotes erd
17345 \end_inset
17346
17347  but really begin a [and, if necessary, end the previous] paragraph environment.
17348  Likewise, treat 
17349 \family sans
17350 InvisibleText
17351 \family default
17352  and 
17353 \family sans
17354 VisibleText
17355 \family default
17356  as 
17357 \begin_inset Quotes eld
17358 \end_inset
17359
17360 pseudo-commands.
17361 \begin_inset Quotes erd
17362 \end_inset
17363
17364  These two perform some action.
17365 \end_layout
17366
17367 \begin_layout Standard
17368 A common feature of all five environments, 
17369 \family sans
17370 Slide
17371 \family default
17372
17373 \family sans
17374 Overlay
17375 \family default
17376
17377 \family sans
17378 Note
17379 \family default
17380
17381 \family sans
17382 InvisibleText
17383 \family default
17384  and 
17385 \family sans
17386 VisibleText
17387 \family default
17388 , is a rather long-ish label.
17389  The text following this label — ordinarily the contents of the paragraph
17390  environment — is utterly irrelevant for 
17391 \family sans
17392 Slide
17393 \family default
17394
17395 \family sans
17396 Overlay
17397 \family default
17398
17399 \family sans
17400 Note
17401 \family default
17402
17403 \family sans
17404 InvisibleText
17405 \family default
17406  and 
17407 \family sans
17408 VisibleText
17409 \family default
17410 .
17411  \SpecialChar LyX
17412  completely ignores it.
17413  In fact, you can leave these five environments completely empty.
17414  
17415 \end_layout
17416
17417 \begin_layout Standard
17418 While you don't 
17419 \emph on
17420 have
17421 \emph default
17422  to put any text after the rather long-ish label, you might want to.
17423  This could be a short description of the contents of the 
17424 \family sans
17425 Slide
17426 \family default
17427 , for example.
17428  In that case, enter your descriptive comment and hit 
17429 \family sans
17430 Return
17431 \family default
17432  as you normally would.
17433 \end_layout
17434
17435 \begin_layout Standard
17436 If, on the other hand, you don't want to enter any descriptive text, you'll
17437  hit another \SpecialChar LyX
17438  quirk.
17439  \SpecialChar LyX
17440 , like nature, abhors a vacuum, and will not let you start a new paragraph
17441  environment until you put something in the old one.
17442  So, do this:
17443 \end_layout
17444
17445 \begin_layout Itemize
17446 Start entering the text that will 
17447 \emph on
17448 follow
17449 \emph default
17450  the new 
17451 \family sans
17452 Slide
17453 \family default
17454
17455 \family sans
17456 Overlay
17457 \family default
17458
17459 \family sans
17460 Note
17461 \family default
17462
17463 \family sans
17464 InvisibleText
17465 \family default
17466  or 
17467 \family sans
17468 VisibleText
17469 \family default
17470 .
17471  
17472 \end_layout
17473
17474 \begin_layout Itemize
17475 Now move to the beginning of that paragraph.
17476  
17477 \end_layout
17478
17479 \begin_layout Itemize
17480 Next, hit 
17481 \family sans
17482 Return
17483 \family default
17484 .
17485  
17486 \end_layout
17487
17488 \begin_layout Itemize
17489 Finally, change this new, empty paragraph to a 
17490 \family sans
17491 Slide
17492 \family default
17493
17494 \family sans
17495 Overlay
17496 \family default
17497
17498 \family sans
17499 Note
17500 \family default
17501
17502 \family sans
17503 InvisibleText
17504 \family default
17505  or 
17506 \family sans
17507 VisibleText
17508 \family default
17509 .
17510  
17511 \end_layout
17512
17513 \begin_layout Standard
17514 Some future version of \SpecialChar LyX
17515  will, hopefully, resolve this quirkiness\SpecialChar ldots
17516
17517 \end_layout
17518
17519 \begin_layout Subsection
17520 Making a Presentation with 
17521 \family sans
17522 Slide
17523 \family default
17524
17525 \family sans
17526 Overlay
17527 \family default
17528  and 
17529 \family sans
17530 Note
17531 \end_layout
17532
17533 \begin_layout Subsubsection
17534 Using the 
17535 \family sans
17536 Slide
17537 \family default
17538  Environment
17539 \end_layout
17540
17541 \begin_layout Standard
17542 If you're expecting this section to teach you how to actually make a presentatio
17543 n, you'll be sorely disappointed.
17544  Naturally, I'll describe all of the ways the 
17545 \family sans
17546 slides
17547 \family default
17548  class can assist you in preparing the materials for a presentation.
17549  Filling in the contents, however, is up to you.
17550  [Then again, that 
17551 \emph on
17552 is
17553 \emph default
17554  the \SpecialChar LyX
17555  philosophy.]
17556 \end_layout
17557
17558 \begin_layout Standard
17559 Choosing the 
17560 \family sans
17561 Slide
17562 \family default
17563  environment [in the manner described in section
17564 \begin_inset space ~
17565 \end_inset
17566
17567
17568 \begin_inset CommandInset ref
17569 LatexCommand ref
17570 reference "sec:slideQuirk"
17571
17572 \end_inset
17573
17574 ] tells \SpecialChar LyX
17575  to begin a new slide [duh].
17576  The label for this environment/
17577 \begin_inset Quotes erd
17578 \end_inset
17579
17580 pseudo-command
17581 \begin_inset Quotes erd
17582 \end_inset
17583
17584  is an 
17585 \begin_inset Quotes eld
17586 \end_inset
17587
17588 ASCII line,
17589 \begin_inset Quotes erd
17590 \end_inset
17591
17592  in cool blue, followed by the label, 
17593 \begin_inset Quotes eld
17594 \end_inset
17595
17596 NewSlide:
17597 \begin_inset Quotes erd
17598 \end_inset
17599
17600 .
17601  Any text or paragraph environments that follow this one go on the new slide.
17602  It's that simple.
17603 \end_layout
17604
17605 \begin_layout Standard
17606 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17607
17608  (this can be specified in the 
17609 \family sans
17610 Paragraph Layout
17611 \family default
17612  dialog).
17613  In fact, you'll want to, once you finish entering the contents of one slide.
17614  If you've entered more text than can physically fit on a slide, the extra
17615  overflows onto a new slide.
17616  I don't recommend doing this, however, since the overflow slide won't have
17617  any page number on it.
17618  Furthermore, it may interfere with any 
17619 \family sans
17620 Overlay
17621 \family default
17622  you've made to accompany the oversized 
17623 \family sans
17624 Slide
17625 \family default
17626 .
17627 \end_layout
17628
17629 \begin_layout Standard
17630 The 
17631 \family sans
17632 Overlay
17633 \family default
17634  and 
17635 \family sans
17636 Note
17637 \family default
17638  environments work the same way as the 
17639 \family sans
17640 Slide
17641 \family default
17642  environment.
17643  They both create an 
17644 \begin_inset Quotes eld
17645 \end_inset
17646
17647 ASCII line
17648 \begin_inset Quotes erd
17649 \end_inset
17650
17651  followed by a label [
17652 \begin_inset Quotes eld
17653 \end_inset
17654
17655 NewOverlay:
17656 \begin_inset Quotes erd
17657 \end_inset
17658
17659  and 
17660 \begin_inset Quotes eld
17661 \end_inset
17662
17663 NewNote:
17664 \begin_inset Quotes erd
17665 \end_inset
17666
17667 , respectively].
17668  The color is a stunning magenta instead of blue, and the 
17669 \begin_inset Quotes eld
17670 \end_inset
17671
17672 ASCII line
17673 \begin_inset Quotes erd
17674 \end_inset
17675
17676  will look different, in style and in length.
17677  The label fonts of all three also differ from one another.
17678 \end_layout
17679
17680 \begin_layout Standard
17681 As with a 
17682 \family sans
17683 Slide
17684 \family default
17685 , if the contents of a 
17686 \family sans
17687 Note
17688 \family default
17689  or 
17690 \family sans
17691 Overlay
17692 \family default
17693  exceed the physical size of a slide or sheet of paper, the extra will overflow
17694  onto a new sheet.
17695  Again, you should avoid this.
17696  It defeats the whole purpose of 
17697 \family sans
17698 Note
17699 \family default
17700 s and 
17701 \family sans
17702 Overlay
17703 \family default
17704 s.
17705 \end_layout
17706
17707 \begin_layout Subsubsection
17708 Using 
17709 \family sans
17710 Overlay
17711 \family default
17712  with 
17713 \family sans
17714 Slide
17715 \end_layout
17716
17717 \begin_layout Standard
17718 The idea behind an 
17719 \family sans
17720 Overlay
17721 \family default
17722  is a slide that sits atop another slide.
17723  Perhaps you wish to discuss a figure on the main 
17724 \family sans
17725 Slide
17726 \family default
17727  before displaying the text associated with it.
17728  One way to accomplish this is tape a flap of dark paper over the part of
17729  the 
17730 \family sans
17731 Slide
17732 \family default
17733  you want to display later.
17734  This method fails, however, if you wish to overlap one graph with another,
17735  for example.
17736  You would then have to fumble while speaking to align the two separate,
17737  overlapping 
17738 \family sans
17739 Slide
17740 \family default
17741 s to align the two graphs.
17742  The use of an 
17743 \family sans
17744 Overlay
17745 \family default
17746  environment in both cases makes life much easier.
17747 \end_layout
17748
17749 \begin_layout Standard
17750 Each 
17751 \family sans
17752 Overlay
17753 \family default
17754  receives the page number of its 
17755 \begin_inset Quotes eld
17756 \end_inset
17757
17758 parent
17759 \begin_inset Quotes erd
17760 \end_inset
17761
17762  
17763 \family sans
17764 Slide
17765 \family default
17766 , appended by 
17767 \begin_inset Quotes eld
17768 \end_inset
17769
17770
17771 \family typewriter
17772 -a
17773 \family default
17774
17775 \begin_inset Quotes erd
17776 \end_inset
17777
17778 .
17779 \begin_inset Foot
17780 status collapsed
17781
17782 \begin_layout Plain Layout
17783 Presumably, mutliple 
17784 \family sans
17785 Overlay
17786 \family default
17787 s would have 
17788 \begin_inset Quotes eld
17789 \end_inset
17790
17791
17792 \family typewriter
17793 -a
17794 \family default
17795
17796 \begin_inset Quotes erd
17797 \end_inset
17798
17799
17800 \begin_inset Quotes eld
17801 \end_inset
17802
17803
17804 \family typewriter
17805 -b
17806 \family default
17807
17808 \begin_inset Quotes erd
17809 \end_inset
17810
17811
17812 \begin_inset Quotes eld
17813 \end_inset
17814
17815
17816 \family typewriter
17817 -c
17818 \family default
17819
17820 \begin_inset Quotes erd
17821 \end_inset
17822
17823 , etc.
17824 \begin_inset space ~
17825 \end_inset
17826
17827 appended to the page number of the parent 
17828 \family sans
17829 Slide
17830 \family default
17831 .
17832  
17833 \end_layout
17834
17835 \end_inset
17836
17837  Clearly, you want the contents of both the 
17838 \family sans
17839 Slide
17840 \family default
17841  and the 
17842 \family sans
17843 Overlay
17844 \family default
17845  to each fit on a single physical slide! You should probably consider an
17846  
17847 \family sans
17848 Overlay
17849 \family default
17850  as 
17851 \begin_inset Quotes eld
17852 \end_inset
17853
17854 part of
17855 \begin_inset Quotes erd
17856 \end_inset
17857
17858  a 
17859 \family sans
17860 Slide
17861 \family default
17862 .
17863  Indeed, the \SpecialChar LyX
17864  
17865 \family sans
17866 slides
17867 \family default
17868  class provides a visual cue for this: the label at the start of an 
17869 \family sans
17870 Overlay
17871 \family default
17872  is shorter than that at the start of a 
17873 \family sans
17874 Slide
17875 \family default
17876 .
17877  Lastly, when you generate printable output, you'll find alignment markers
17878  in all four corners of both the 
17879 \family sans
17880 Overlay
17881 \family default
17882  page and its parent 
17883 \family sans
17884 Slide
17885 \family default
17886 .
17887  These will assist you in lining up the two physical slides.
17888 \end_layout
17889
17890 \begin_layout Standard
17891 The major problem in overlaying two slides is aligning the contents of the
17892  two transparencies.
17893  How much space should you leave for that graph on the second slide? Worse
17894  still, what if you want a graph and a sentence on second slide, but there
17895  is text on the main transparency that goes in between them? You could try
17896  and insert vertical space of the right size.
17897  The better way is to use 
17898 \family sans
17899 InvisibleText
17900 \family default
17901  and 
17902 \family sans
17903 VisibleText
17904 \family default
17905 .
17906 \end_layout
17907
17908 \begin_layout Standard
17909 As their names imply, 
17910 \family sans
17911 InvisibleText
17912 \family default
17913  and 
17914 \family sans
17915 VisibleText
17916 \family default
17917  are two command-like paragraph environments that make all subsequent text
17918  invisible and visible, respectively.
17919  Note from section
17920 \begin_inset space ~
17921 \end_inset
17922
17923
17924 \begin_inset CommandInset ref
17925 LatexCommand ref
17926 reference "sec:slideQuirk"
17927
17928 \end_inset
17929
17930  that you don't place anything 
17931 \emph on
17932 into
17933 \emph default
17934  these two environments, however.
17935  When you create an 
17936 \family sans
17937 InvisibleText
17938 \family default
17939 , it inserts a centered, sky-blue label into the page reading 
17940 \begin_inset Quotes eld
17941 \end_inset
17942
17943 <Invisible Text Follows>
17944 \begin_inset Quotes erd
17945 \end_inset
17946
17947 .
17948  For paragraphs following this label, the parts of the 
17949 \family sans
17950 Slide
17951 \family default
17952  [or 
17953 \family sans
17954 Overlay
17955 \family default
17956 ; it doesn't matter which] where they would be contain instead blank space.
17957  
17958 \end_layout
17959
17960 \begin_layout Standard
17961 For 
17962 \family sans
17963 VisibleText
17964 \family default
17965 , the corresponding centered label is 
17966 \begin_inset Quotes eld
17967 \end_inset
17968
17969 <Visible Text Follows>
17970 \begin_inset Quotes erd
17971 \end_inset
17972
17973  in blazing green.
17974  Paragraphs following this label behave normally.
17975  Note that the beginning of a new 
17976 \family sans
17977 Slide
17978 \family default
17979
17980 \family sans
17981 Overlay
17982 \family default
17983 , or 
17984 \family sans
17985 Note
17986 \family default
17987  automatically shuts off an 
17988 \family sans
17989 InvisibleText
17990 \family default
17991 .
17992  It's therefore not necessary to use 
17993 \family sans
17994 VisibleText
17995 \family default
17996  at the end of a 
17997 \family sans
17998 Slide
17999 \family default
18000 .
18001 \end_layout
18002
18003 \begin_layout Standard
18004 By now, it should be obvious how to create overlay transparencies using
18005  the proper combination of 
18006 \family sans
18007 InvisibleText
18008 \family default
18009  and 
18010 \family sans
18011 VisibleText
18012 \family default
18013  on a 
18014 \family sans
18015 Slide
18016 \family default
18017  and 
18018 \family sans
18019 Overlay
18020 \family default
18021 :
18022 \end_layout
18023
18024 \begin_layout Enumerate
18025 Create a 
18026 \family sans
18027 Slide
18028 \family default
18029 , including everything that will appear on it, whether on the main slide
18030  or on the 
18031 \family sans
18032 Overlay
18033 \family default
18034 .
18035 \end_layout
18036
18037 \begin_layout Enumerate
18038 Before each figure or paragraph that will appear only on the 
18039 \family sans
18040 Overlay
18041 \family default
18042 , insert an 
18043 \family sans
18044 InvisibleText
18045 \family default
18046  environment.
18047  If necessary, insert a 
18048 \family sans
18049 VisibleText
18050 \family default
18051  environment after the 
18052 \family sans
18053 Overlay
18054 \family default
18055 -only text.
18056 \end_layout
18057
18058 \begin_layout Enumerate
18059 Start an 
18060 \family sans
18061 Overlay
18062 \family default
18063  immediately following the 
18064 \family sans
18065 Slide
18066 \family default
18067 .
18068 \end_layout
18069
18070 \begin_layout Enumerate
18071 Copy the contents of this 
18072 \family sans
18073 Slide
18074 \family default
18075  into the 
18076 \family sans
18077 Overlay
18078 \family default
18079 .
18080 \end_layout
18081
18082 \begin_layout Enumerate
18083 Within the 
18084 \family sans
18085 Overlay
18086 \family default
18087 , change all of the 
18088 \family sans
18089 InvisibleText
18090 \family default
18091  lines to 
18092 \family sans
18093 VisibleText
18094 \family default
18095  and vice-versa.
18096 \end_layout
18097
18098 \begin_layout Standard
18099 That's it.
18100  You've just made an 
18101 \family sans
18102 Overlay
18103 \family default
18104 .
18105 \end_layout
18106
18107 \begin_layout Standard
18108 There's one problem with the way I've designed the \SpecialChar LyX
18109  
18110 \family sans
18111 slides
18112 \family default
18113  class: you can't make text in the middle of a paragraph invisible, nor
18114  make text in the middle of an invisible paragraph visible again.
18115  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18116  codes.
18117 \begin_inset Foot
18118 status collapsed
18119
18120 \begin_layout Plain Layout
18121 The commands of interest are: 
18122 \end_layout
18123
18124 \begin_layout Itemize
18125
18126 \family typewriter
18127 {
18128 \backslash
18129 invisible \SpecialChar ldots
18130  }
18131 \end_layout
18132
18133 \begin_layout Itemize
18134
18135 \family typewriter
18136 {
18137 \backslash
18138 visible \SpecialChar ldots
18139  }
18140 \end_layout
18141
18142 \begin_layout Plain Layout
18143 \SpecialChar ldots
18144 and need to be marked as \SpecialChar TeX
18145 .
18146  The text whose 
18147 \begin_inset Quotes eld
18148 \end_inset
18149
18150 visibility
18151 \begin_inset Quotes erd
18152 \end_inset
18153
18154  you wish to change goes in between the brackets [and after the 
18155 \family typewriter
18156
18157 \backslash
18158 invisible
18159 \family default
18160  or 
18161 \family typewriter
18162
18163 \backslash
18164 visible
18165 \family default
18166  command].
18167  If you don't know how to mark text as \SpecialChar TeX
18168 , see the appropriate section of
18169  the 
18170 \emph on
18171 User's Guide
18172 \emph default
18173 .
18174 \end_layout
18175
18176 \end_inset
18177
18178
18179 \end_layout
18180
18181 \begin_layout Subsubsection
18182 Using 
18183 \family sans
18184 Note
18185 \family default
18186  with 
18187 \family sans
18188 Slide
18189 \family default
18190
18191 \begin_inset CommandInset label
18192 LatexCommand label
18193 name "sec:slideNote"
18194
18195 \end_inset
18196
18197
18198 \end_layout
18199
18200 \begin_layout Standard
18201 Like an 
18202 \family sans
18203 Overlay
18204 \family default
18205 , a 
18206 \family sans
18207 Note
18208 \family default
18209  is associated with a 
18210 \begin_inset Quotes eld
18211 \end_inset
18212
18213 parent
18214 \begin_inset Quotes erd
18215 \end_inset
18216
18217  
18218 \family sans
18219 Slide
18220 \family default
18221 .
18222  Here, too, the \SpecialChar LyX
18223  
18224 \family sans
18225 slides
18226 \family default
18227  class provides visual cues.
18228  The label for a 
18229 \family sans
18230 Note
18231 \family default
18232  is shorter than that of a 
18233 \family sans
18234 Slide
18235 \family default
18236  [yet longer than that of an 
18237 \family sans
18238 Overlay
18239 \family default
18240 ] and, like the label of an 
18241 \family sans
18242 Overlay
18243 \family default
18244  is shockingly magenta.
18245  Additionally, the printed 
18246 \family sans
18247 Note
18248 \family default
18249  has the page number of its 
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 , appended by 
18262 \begin_inset Quotes eld
18263 \end_inset
18264
18265
18266 \family typewriter
18267 -
18268 \family default
18269 1
18270 \begin_inset Quotes erd
18271 \end_inset
18272
18273
18274 \begin_inset Quotes eld
18275 \end_inset
18276
18277
18278 \family typewriter
18279 -
18280 \family default
18281 2
18282 \begin_inset Quotes erd
18283 \end_inset
18284
18285
18286 \begin_inset Quotes eld
18287 \end_inset
18288
18289
18290 \family typewriter
18291 -
18292 \family default
18293 3
18294 \begin_inset Quotes erd
18295 \end_inset
18296
18297 , etc.
18298  You can have multiple 
18299 \family sans
18300 Note
18301 \family default
18302 s associated with a single 
18303 \family sans
18304 Slide
18305 \family default
18306 , and, as with 
18307 \family sans
18308 Slide
18309 \family default
18310  and 
18311 \family sans
18312 Overlay
18313 \family default
18314 , you'll probably want to break up long 
18315 \family sans
18316 Note
18317 \family default
18318 s so that they fit on a single sheet of paper.
18319 \end_layout
18320
18321 \begin_layout Standard
18322 The purpose of a 
18323 \family sans
18324 Note
18325 \family default
18326  is obvious: it contains anything additional you might want to say about
18327  a 
18328 \family sans
18329 Slide
18330 \family default
18331 .
18332  It could also be used as a sheet of reminders for a particular 
18333 \family sans
18334 Slide
18335 \family default
18336 .
18337  In the case of the latter, you might want to make use of time markers.
18338  Currently, the \SpecialChar LyX
18339  
18340 \family sans
18341 slides
18342 \family default
18343  class has no 
18344 \begin_inset Quotes eld
18345 \end_inset
18346
18347 native
18348 \begin_inset Quotes erd
18349 \end_inset
18350
18351  support for time markers, a 
18352 \noun on
18353 Sli\SpecialChar TeX
18354
18355 \noun default
18356  feature.
18357  So, you'll have to resort to using the \SpecialChar LaTeX
18358  codes.
18359 \end_layout
18360
18361 \begin_layout Standard
18362 To use time markers, you'll need to specify the extra class option 
18363 \begin_inset Quotes eld
18364 \end_inset
18365
18366
18367 \family typewriter
18368 clock
18369 \family default
18370
18371 \begin_inset Quotes erd
18372 \end_inset
18373
18374  [see section
18375 \begin_inset space ~
18376 \end_inset
18377
18378
18379 \begin_inset CommandInset ref
18380 LatexCommand ref
18381 reference "sec:slidesetup"
18382
18383 \end_inset
18384
18385 ].
18386  This option turns on timing marks, which will appear in the lower-left-hand
18387  corner of every 
18388 \family sans
18389 Note
18390 \family default
18391  you generate.
18392  To set what appears in the time marker, you use the \SpecialChar LaTeX
18393  commands 
18394 \begin_inset Quotes eld
18395 \end_inset
18396
18397
18398 \family typewriter
18399
18400 \backslash
18401 settime{}
18402 \family default
18403
18404 \begin_inset Quotes erd
18405 \end_inset
18406
18407  and 
18408 \begin_inset Quotes eld
18409 \end_inset
18410
18411
18412 \family typewriter
18413
18414 \backslash
18415 addtime{}
18416 \family default
18417
18418 \begin_inset Quotes erd
18419 \end_inset
18420
18421 .
18422  The arguments of both commands are time measured in seconds.
18423  
18424 \begin_inset Quotes eld
18425 \end_inset
18426
18427
18428 \family typewriter
18429
18430 \backslash
18431 settime{}
18432 \family default
18433
18434 \begin_inset Quotes erd
18435 \end_inset
18436
18437  sets the time marker to a given time.
18438  
18439 \begin_inset Quotes eld
18440 \end_inset
18441
18442
18443 \family typewriter
18444
18445 \backslash
18446 addtime{}
18447 \family default
18448
18449 \begin_inset Quotes erd
18450 \end_inset
18451
18452  increments the time marker by the specified amount.
18453  Using time markers and 
18454 \family sans
18455 Note
18456 \family default
18457 s in this fashion, you can remind yourself how much time to spend on a particula
18458
18459 \family sans
18460 Slide
18461 \family default
18462 .
18463 \end_layout
18464
18465 \begin_layout Standard
18466 There's one last feature to describe.
18467  Clearly, you'd like to print out all of your 
18468 \family sans
18469 Slide
18470 \family default
18471 s and 
18472 \family sans
18473 Overlay
18474 \family default
18475 s on transparencies while printing all of your 
18476 \family sans
18477 Note
18478 \family default
18479 s on plain paper.
18480  However, a 
18481 \family sans
18482 Note
18483 \family default
18484  
18485 \emph on
18486 must
18487 \emph default
18488  follow the 
18489 \family sans
18490 Slide
18491 \family default
18492  with which it is associated.
18493  What's a person to do?
18494 \end_layout
18495
18496 \begin_layout Standard
18497 Luckily, there are two \SpecialChar LaTeX
18498  commands that allow you to select what to print
18499  out.
18500  Both must be placed into the preamble of your document.
18501  The command 
18502 \begin_inset Quotes eld
18503 \end_inset
18504
18505
18506 \family typewriter
18507
18508 \backslash
18509 onlyslides{
18510 \backslash
18511 slides}
18512 \family default
18513
18514 \begin_inset Quotes erd
18515 \end_inset
18516
18517  will cause the output to contain only the 
18518 \family sans
18519 Slide
18520 \family default
18521 s and 
18522 \family sans
18523 Overlay
18524 \family default
18525 s.
18526  Correspondingly, the command 
18527 \begin_inset Quotes eld
18528 \end_inset
18529
18530
18531 \family typewriter
18532
18533 \backslash
18534 onlynotes{
18535 \backslash
18536 notes}
18537 \family default
18538
18539 \begin_inset Quotes erd
18540 \end_inset
18541
18542  prevents the output of anything but 
18543 \family sans
18544 Note
18545 \family default
18546 s.
18547  I'd advise placing both commands in the preamble and initially comment
18548  both out.
18549  You can then preview your entire presentation as you write.
18550  When you're done writing, you can then uncomment one of the two to select
18551  what you want to print.
18552  I like to uncomment 
18553 \begin_inset Quotes eld
18554 \end_inset
18555
18556
18557 \family typewriter
18558
18559 \backslash
18560 onlyslides{
18561 \backslash
18562 slides}
18563 \family default
18564
18565 \begin_inset Quotes erd
18566 \end_inset
18567
18568  , print to a file with 
18569 \begin_inset Quotes eld
18570 \end_inset
18571
18572
18573 \family typewriter
18574 -slides
18575 \family default
18576
18577 \begin_inset Quotes erd
18578 \end_inset
18579
18580  in its name, comment it back out, then uncomment 
18581 \begin_inset Quotes eld
18582 \end_inset
18583
18584
18585 \family typewriter
18586
18587 \backslash
18588 onlynotes{
18589 \backslash
18590 notes}
18591 \family default
18592
18593 \begin_inset Quotes erd
18594 \end_inset
18595
18596  and print to a 
18597 \begin_inset Quotes eld
18598 \end_inset
18599
18600
18601 \family typewriter
18602 *-notes.ps
18603 \family default
18604
18605 \begin_inset Quotes erd
18606 \end_inset
18607
18608  file.
18609  I can then send either file to a printer, loading transparencies or plain
18610  paper as appropriate.
18611 \end_layout
18612
18613 \begin_layout Standard
18614 You can also provide other arguments to the 
18615 \begin_inset Quotes eld
18616 \end_inset
18617
18618
18619 \family typewriter
18620
18621 \backslash
18622 onlyslides{}
18623 \family default
18624
18625 \begin_inset Quotes erd
18626 \end_inset
18627
18628  and 
18629 \begin_inset Quotes eld
18630 \end_inset
18631
18632
18633 \family typewriter
18634
18635 \backslash
18636 onlynotes{}
18637 \family default
18638
18639 \begin_inset Quotes erd
18640 \end_inset
18641
18642  commands.
18643  See a good \SpecialChar LaTeX
18644  book for details.
18645 \end_layout
18646
18647 \begin_layout Subsection
18648 The 
18649 \family sans
18650 slides
18651 \family default
18652  Class Template File
18653 \end_layout
18654
18655 \begin_layout Standard
18656 I have also provided a template file, 
18657 \begin_inset Quotes eld
18658 \end_inset
18659
18660
18661 \family typewriter
18662 slides.lyx
18663 \family default
18664
18665 \begin_inset Quotes erd
18666 \end_inset
18667
18668 , with the 
18669 \family sans
18670 slides
18671 \family default
18672  class.
18673  To use it, begin your new presentation with 
18674 \family sans
18675 File\SpecialChar menuseparator
18676 New
18677 \begin_inset space ~
18678 \end_inset
18679
18680 from
18681 \begin_inset space ~
18682 \end_inset
18683
18684 Template
18685 \family default
18686 .
18687  Your new \SpecialChar LyX
18688  presentation file will contain an example 
18689 \family sans
18690 Slide
18691 \family default
18692  – 
18693 \family sans
18694 Overlay
18695 \family default
18696  – 
18697 \family sans
18698 Note
18699 \family default
18700  triplet.
18701  The 
18702 \family sans
18703 Slide
18704 \family default
18705  and 
18706 \family sans
18707 Overlay
18708 \family default
18709  additionally contain an example of the use of 
18710 \family sans
18711 InvisibleText
18712 \family default
18713  and 
18714 \family sans
18715 VisibleText
18716 \family default
18717 .
18718  Lastly, the preamble will contain:
18719 \end_layout
18720
18721 \begin_layout LyX-Code
18722 % Uncomment to print out only slides and overlays
18723 \end_layout
18724
18725 \begin_layout LyX-Code
18726 %
18727 \end_layout
18728
18729 \begin_layout LyX-Code
18730 %
18731 \backslash
18732 onlyslides{
18733 \backslash
18734 slides}
18735 \begin_inset Newline newline
18736 \end_inset
18737
18738  
18739 \end_layout
18740
18741 \begin_layout LyX-Code
18742 % Uncomment to print out only notes
18743 \end_layout
18744
18745 \begin_layout LyX-Code
18746 %
18747 \end_layout
18748
18749 \begin_layout LyX-Code
18750 %
18751 \backslash
18752 onlynotes{
18753 \backslash
18754 notes}
18755 \end_layout
18756
18757 \begin_layout Standard
18758 One final thing: I created this class to support the \SpecialChar LaTeX2e
18759  
18760 \begin_inset Quotes eld
18761 \end_inset
18762
18763
18764 \noun on
18765 Sli\SpecialChar TeX
18766
18767 \noun default
18768  emulation
18769 \begin_inset Quotes erd
18770 \end_inset
18771
18772  class, one of the built-in \SpecialChar LaTeX2e
18773  classes.
18774  Neither I nor the rest of the \SpecialChar LyX
18775  Team endorse or oppose the use of this built-in
18776  slide class.
18777  It's here if you want it or need it.
18778  There exist other \SpecialChar LaTeX2e
18779  classes for creating presentations, such as the 
18780 \family sans
18781 Foils
18782 \family default
18783  class [see section
18784 \begin_inset space ~
18785 \end_inset
18786
18787
18788 \begin_inset CommandInset ref
18789 LatexCommand ref
18790 reference "sec:foiltex"
18791
18792 \end_inset
18793
18794 ] or the 
18795 \begin_inset Quotes eld
18796 \end_inset
18797
18798
18799 \family typewriter
18800 seminar
18801 \family default
18802
18803 \begin_inset Quotes erd
18804 \end_inset
18805
18806  package [present on some \SpecialChar TeX
18807  distributions].
18808  The latter is not yet supported under \SpecialChar LyX
18809 .
18810 \begin_inset Foot
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 Perhaps you can take on the task\SpecialChar ldots
18815
18816 \end_layout
18817
18818 \end_inset
18819
18820  I know nothing about these other classes.
18821  Try them out to see what sort of alternative they provide.
18822 \end_layout
18823
18824 \begin_layout Chapter
18825 \SpecialChar LyX
18826  Features needing Extra Software
18827 \end_layout
18828
18829 \begin_layout Section
18830 Checking \SpecialChar TeX
18831
18832 \end_layout
18833
18834 \begin_layout Standard
18835 by 
18836 \noun on
18837 Asger Alstrup
18838 \end_layout
18839
18840 \begin_layout Subsection
18841 Introduction
18842 \end_layout
18843
18844 \begin_layout Standard
18845 If you have the 
18846 \family typewriter
18847 chktex
18848 \family default
18849  program installed
18850 \begin_inset Foot
18851 status collapsed
18852
18853 \begin_layout Plain Layout
18854
18855 \family typewriter
18856 chktex
18857 \family default
18858  is not yet available when you are using the \SpecialChar LaTeX
18859  distribution MiK\SpecialChar TeX
18860 .
18861 \end_layout
18862
18863 \end_inset
18864
18865 , you'll find in the 
18866 \family sans
18867 Tools
18868 \family default
18869  menu the entry: 
18870 \family sans
18871 Check
18872 \begin_inset space ~
18873 \end_inset
18874
18875 TeX
18876 \family default
18877 .
18878  You can get 
18879 \family typewriter
18880 chktex
18881 \family default
18882  from CTAN,
18883 \begin_inset Newline newline
18884 \end_inset
18885
18886
18887 \begin_inset CommandInset href
18888 LatexCommand href
18889 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18890 literal "false"
18891
18892 \end_inset
18893
18894 .
18895 \end_layout
18896
18897 \begin_layout Standard
18898 The 
18899 \family sans
18900 Chk\SpecialChar TeX
18901
18902 \family default
18903  package is a program that was written by 
18904 \begin_inset Flex Noun
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 Jens T.
18909 \begin_inset space ~
18910 \end_inset
18911
18912 Berger Thielemann
18913 \end_layout
18914
18915 \end_inset
18916
18917  in frustration because some constructs in \SpecialChar LaTeX
18918  are sometimes non-intuitive,
18919  and easy to forget.
18920  The program runs over your \SpecialChar LaTeX
18921  file, checks the integrity of the file, and
18922  flags some common errors.
18923  In other technical words, it is 
18924 \family typewriter
18925 lint
18926 \family default
18927  for \SpecialChar LaTeX
18928 .
18929 \end_layout
18930
18931 \begin_layout Standard
18932 Well, what is a syntax checker doing in \SpecialChar LyX
18933  which is supposed to produce correct
18934  \SpecialChar LaTeX
18935  anyways? The answer is simple: Just as 
18936 \family typewriter
18937 Lint
18938 \family default
18939  not only checks the 
18940 \emph on
18941 syntax
18942 \emph default
18943  of C programs, but also does 
18944 \emph on
18945 semantic
18946 \emph default
18947  checks for type-errors, 
18948 \family sans
18949 Chk\SpecialChar TeX
18950
18951 \family default
18952  catches some common 
18953 \emph on
18954 typographic
18955 \emph default
18956  errors, in addition to the syntactical ones.
18957  Specifically, 
18958 \family sans
18959 Chk\SpecialChar TeX
18960
18961 \family default
18962  is capable of detecting several common errors, such as
18963 \end_layout
18964
18965 \begin_layout Itemize
18966 Ellipsis detection:
18967 \begin_inset Newline newline
18968 \end_inset
18969
18970 Use \SpecialChar ldots
18971  instead of ...
18972 \end_layout
18973
18974 \begin_layout Itemize
18975 No space in front of/after parenthesis:
18976 \begin_inset Newline newline
18977 \end_inset
18978
18979 ( wrong spacing )
18980 \end_layout
18981
18982 \begin_layout Itemize
18983 Enforcement of normal space after common abbreviations:
18984 \begin_inset Newline newline
18985 \end_inset
18986
18987 e.
18988 \begin_inset space \thinspace{}
18989 \end_inset
18990
18991 g.
18992 \begin_inset space \space{}
18993 \end_inset
18994
18995 is too wide spacing.
18996 \end_layout
18997
18998 \begin_layout Itemize
18999 Enforcement of end-of-sentence space when the last sentence ends with a
19000  capital letter:
19001 \begin_inset Newline newline
19002 \end_inset
19003
19004 This is a TEST.
19005  And this is wrong spacing.
19006 \end_layout
19007
19008 \begin_layout Itemize
19009 Space in front of labels and similar commands:
19010 \begin_inset Newline newline
19011 \end_inset
19012
19013 The label should stick right up to the text to avoid falling to a wrong
19014  page.
19015  
19016 \begin_inset CommandInset label
19017 LatexCommand label
19018 name "sec:chktex"
19019
19020 \end_inset
19021
19022  
19023 \begin_inset Foot
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 This footnote is in danger of falling off to a wrong page
19028 \end_layout
19029
19030 \end_inset
19031
19032  The label is separated too much.
19033 \end_layout
19034
19035 \begin_layout Itemize
19036 Space in front of references, instead of hard spaces:
19037 \begin_inset Newline newline
19038 \end_inset
19039
19040 If you have bad luck, the text will break right between the referenced text
19041  and reference number, and that's a pity.
19042  See section 
19043 \begin_inset CommandInset ref
19044 LatexCommand ref
19045 reference "sec:chktex"
19046
19047 \end_inset
19048
19049 .
19050 \end_layout
19051
19052 \begin_layout Itemize
19053 Use of 
19054 \begin_inset Quotes eld
19055 \end_inset
19056
19057 x
19058 \begin_inset Quotes erd
19059 \end_inset
19060
19061  instead of 
19062 \begin_inset Formula $\times$
19063 \end_inset
19064
19065  between numbers:
19066 \begin_inset Newline newline
19067 \end_inset
19068
19069 2x2 looks cheap compared to 
19070 \begin_inset Formula $2\times2$
19071 \end_inset
19072
19073 .
19074 \end_layout
19075
19076 \begin_layout Standard
19077 and more \SpecialChar ldots
19078  It is an invaluable tool when you are 
19079 \begin_inset Quotes eld
19080 \end_inset
19081
19082 finishing up
19083 \begin_inset Quotes erd
19084 \end_inset
19085
19086  your document before printing, and you should run it right after the obligatory
19087  spelling check, and before you go fine tuning the typesetting.
19088 \end_layout
19089
19090 \begin_layout Subsection
19091 How to use it
19092 \end_layout
19093
19094 \begin_layout Standard
19095 If you have the program installed, usage is as simple as choosing 
19096 \family sans
19097 Tools\SpecialChar menuseparator
19098 Check
19099 \begin_inset space ~
19100 \end_inset
19101
19102 TeX
19103 \family default
19104 .
19105  This will make \SpecialChar LyX
19106  generate a \SpecialChar LaTeX
19107  file of your document, start 
19108 \family sans
19109 Chk\SpecialChar TeX
19110
19111 \family default
19112  to check it, and then make \SpecialChar LyX
19113  insert 
19114 \begin_inset Quotes eld
19115 \end_inset
19116
19117 error boxes
19118 \begin_inset Quotes erd
19119 \end_inset
19120
19121  with the warnings from 
19122 \family sans
19123 Chk\SpecialChar TeX
19124
19125 \family default
19126 , if there were any.
19127  The warnings will be placed close to the point of the mistake, and you
19128  can quickly find them by using the 
19129 \family sans
19130 Navigate\SpecialChar menuseparator
19131 Error
19132 \family default
19133  menu item, or the shortcut key 
19134 \family sans
19135 C-g
19136 \family default
19137  from the default 
19138 \family typewriter
19139 cua
19140 \family default
19141  bind file.
19142  Open the error boxes by clicking on them with the mouse, or use the shortcut
19143  key 
19144 \family sans
19145 C-i
19146 \family default
19147  from 
19148 \family typewriter
19149 cua
19150 \family default
19151  bindings, or the corresponding 
19152 \family sans
19153 C-o
19154 \family default
19155  for the alternate 
19156 \family typewriter
19157 emacs
19158 \family default
19159  bind file.
19160  Read the warning and correct the mistake, if it is a mistake.
19161  If you have trouble understanding what the warning is about, you can safely
19162  ignore it.
19163  Remember that there is a hidden layer between the document on screen and
19164  the technical details in invoking 
19165 \family sans
19166 Chk\SpecialChar TeX
19167
19168 \family default
19169 , and this gap can make some warnings seem arcane or just plain silly.
19170 \end_layout
19171
19172 \begin_layout Standard
19173 This document is an excellent testing bed for the feature, and it should
19174  provide quite a few warnings for you to fiddle with.
19175  Since computers are only so smart, expect most of the warnings to be false
19176  alarms, though.
19177 \end_layout
19178
19179 \begin_layout Subsection
19180 How to fine tune it
19181 \end_layout
19182
19183 \begin_layout Standard
19184 Sometimes, you'll find that 
19185 \family sans
19186 Chk\SpecialChar TeX
19187
19188 \family default
19189  makes more noise than suits your mood.
19190  Then you can choose not to use it, wait until your mood changes, or try
19191  to customize 
19192 \family sans
19193 Chk\SpecialChar TeX
19194
19195 \family default
19196  to get better along with you.
19197 \end_layout
19198
19199 \begin_layout Standard
19200 Although 
19201 \family sans
19202 Chk\SpecialChar TeX
19203
19204 \family default
19205  
19206 \emph on
19207 is
19208 \emph default
19209  very configurable and extensible, you should not expect to solve all problems
19210  with 
19211 \family sans
19212 Chk\SpecialChar TeX
19213
19214 \family default
19215  in \SpecialChar LyX
19216  this way.
19217  Since \SpecialChar LyX
19218  has to generate a somewhat special \SpecialChar LaTeX
19219  file to be able to match the
19220  line numbers from the 
19221 \family sans
19222 Chk\SpecialChar TeX
19223
19224 \family default
19225  output
19226 \begin_inset Foot
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 You can inspect the specific output from 
19231 \family sans
19232 chktex
19233 \family default
19234  by using 
19235 \family sans
19236 Document\SpecialChar menuseparator
19237 \SpecialChar LaTeX
19238
19239 \begin_inset space ~
19240 \end_inset
19241
19242 Log
19243 \family default
19244  right after a 
19245 \family sans
19246 chktex
19247 \family default
19248  run.
19249 \end_layout
19250
19251 \end_inset
19252
19253  to the internal document structure, some of the warnings will not appear
19254  correctly.
19255  There are two things you can do about this:
19256 \end_layout
19257
19258 \begin_layout Itemize
19259 Fine tune the 
19260 \family sans
19261 Chk\SpecialChar TeX
19262
19263 \family default
19264  invocation command line in 
19265 \begin_inset Flex Noun
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 Tools\SpecialChar menuseparator
19270 Preferences\SpecialChar menuseparator
19271 Output\SpecialChar menuseparator
19272 LaTeX\SpecialChar menuseparator
19273 CheckTeX command
19274 \end_layout
19275
19276 \end_inset
19277
19278 , or the global 
19279 \family sans
19280 Chk\SpecialChar TeX
19281
19282 \family default
19283  installation configuration file (usually with the file 
19284 \family typewriter
19285 chktexrc
19286 \family default
19287 ).
19288  See below to learn what warnings can be enabled and disabled on the command
19289  line.
19290 \end_layout
19291
19292 \begin_layout Itemize
19293 Export your document as a raw \SpecialChar LaTeX
19294  file using 
19295 \family sans
19296 File\SpecialChar menuseparator
19297 Export\SpecialChar menuseparator
19298 \SpecialChar LaTeX
19299
19300 \family default
19301  and run 
19302 \family typewriter
19303 chktex
19304 \family default
19305  manually on that.
19306  Invoked in this way, it can be a hassle to find the corresponding place
19307  in the document inside \SpecialChar LyX
19308 , but with a little patience, you should be able
19309  to do it.
19310 \end_layout
19311
19312 \begin_layout Standard
19313 Here follows the warning messages that can be enabled and disabled in 
19314 \family sans
19315 Preferences
19316 \family default
19317 .
19318  Use 
19319 \family typewriter
19320 -n#
19321 \family default
19322  to disable a warning, and 
19323 \family typewriter
19324 -w#
19325 \family default
19326  to enable a warning.
19327  The emphasized entries are disabled by default, because the default is
19328  "
19329 \family typewriter
19330 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19331 \family default
19332 ".
19333 \end_layout
19334
19335 \begin_layout Standard
19336 Notice that you should only use the options that enable and disable warnings,
19337  because \SpecialChar LyX
19338  relies on some of the other command line parameters to be set
19339  in a specific way to have a chance to communicate with 
19340 \family typewriter
19341 chktex
19342 \family default
19343 .
19344 \end_layout
19345
19346 \begin_layout Enumerate
19347
19348 \size small
19349 \emph on
19350 Command terminated with space.
19351 \end_layout
19352
19353 \begin_layout Enumerate
19354
19355 \size small
19356 Non-breaking space (
19357 \begin_inset Quotes eld
19358 \end_inset
19359
19360
19361 \family typewriter
19362 ~
19363 \family default
19364
19365 \begin_inset Quotes erd
19366 \end_inset
19367
19368 ) should have been used.
19369 \end_layout
19370
19371 \begin_layout Enumerate
19372
19373 \size small
19374 \emph on
19375 You should enclose the previous parenthesis with 
19376 \begin_inset Quotes eld
19377 \end_inset
19378
19379
19380 \family typewriter
19381 {}
19382 \family default
19383
19384 \begin_inset Quotes erd
19385 \end_inset
19386
19387 .
19388 \end_layout
19389
19390 \begin_layout Enumerate
19391
19392 \size small
19393 Italic correction (
19394 \begin_inset Quotes eld
19395 \end_inset
19396
19397
19398 \family typewriter
19399
19400 \backslash
19401 /
19402 \family default
19403
19404 \begin_inset Quotes erd
19405 \end_inset
19406
19407 ) found in non-italic buffer.
19408 \end_layout
19409
19410 \begin_layout Enumerate
19411
19412 \size small
19413 Italic correction (
19414 \begin_inset Quotes eld
19415 \end_inset
19416
19417
19418 \family typewriter
19419
19420 \backslash
19421 /
19422 \family default
19423
19424 \begin_inset Quotes erd
19425 \end_inset
19426
19427 ) found more than once.
19428 \end_layout
19429
19430 \begin_layout Enumerate
19431
19432 \size small
19433 \emph on
19434 No italic correction (
19435 \begin_inset Quotes eld
19436 \end_inset
19437
19438
19439 \family typewriter
19440
19441 \backslash
19442 /
19443 \family default
19444
19445 \begin_inset Quotes erd
19446 \end_inset
19447
19448 ) found.
19449 \end_layout
19450
19451 \begin_layout Enumerate
19452
19453 \size small
19454 Accent command 
19455 \begin_inset Quotes eld
19456 \end_inset
19457
19458
19459 \family typewriter
19460 cmd
19461 \family default
19462
19463 \begin_inset Quotes erd
19464 \end_inset
19465
19466  needs use of 
19467 \begin_inset Quotes eld
19468 \end_inset
19469
19470
19471 \family typewriter
19472 cmd
19473 \family default
19474
19475 \begin_inset Quotes erd
19476 \end_inset
19477
19478 .
19479 \end_layout
19480
19481 \begin_layout Enumerate
19482
19483 \size small
19484 Wrong length of dash may have been used.
19485 \end_layout
19486
19487 \begin_layout Enumerate
19488
19489 \size small
19490 \emph on
19491 \begin_inset Quotes eld
19492 \end_inset
19493
19494
19495 \family typewriter
19496 %s
19497 \family default
19498
19499 \begin_inset Quotes erd
19500 \end_inset
19501
19502  expected, found 
19503 \begin_inset Quotes eld
19504 \end_inset
19505
19506
19507 \family typewriter
19508 %s
19509 \family default
19510
19511 \begin_inset Quotes erd
19512 \end_inset
19513
19514 .
19515 \end_layout
19516
19517 \begin_layout Enumerate
19518
19519 \size small
19520 Solo 
19521 \begin_inset Quotes eld
19522 \end_inset
19523
19524
19525 \family typewriter
19526 %s
19527 \family default
19528
19529 \begin_inset Quotes erd
19530 \end_inset
19531
19532  found.
19533 \end_layout
19534
19535 \begin_layout Enumerate
19536
19537 \size small
19538 You should use 
19539 \begin_inset Quotes eld
19540 \end_inset
19541
19542
19543 \family typewriter
19544 %s
19545 \family default
19546
19547 \begin_inset Quotes erd
19548 \end_inset
19549
19550  to achieve an ellipsis.
19551 \end_layout
19552
19553 \begin_layout Enumerate
19554
19555 \size small
19556 Inter-word spacing (
19557 \begin_inset Quotes eld
19558 \end_inset
19559
19560
19561 \family typewriter
19562
19563 \backslash
19564
19565 \family default
19566  
19567 \begin_inset Quotes eld
19568 \end_inset
19569
19570 ) should perhaps be used.
19571 \end_layout
19572
19573 \begin_layout Enumerate
19574
19575 \size small
19576 Inter-sentence spacing (
19577 \begin_inset Quotes eld
19578 \end_inset
19579
19580
19581 \family typewriter
19582
19583 \backslash
19584 @
19585 \family default
19586
19587 \begin_inset Quotes erd
19588 \end_inset
19589
19590 ) should perhaps be used.
19591 \end_layout
19592
19593 \begin_layout Enumerate
19594
19595 \size small
19596 Could not find argument for command.
19597 \end_layout
19598
19599 \begin_layout Enumerate
19600
19601 \size small
19602 No match found for 
19603 \begin_inset Quotes eld
19604 \end_inset
19605
19606
19607 \family typewriter
19608 %s
19609 \family default
19610
19611 \begin_inset Quotes erd
19612 \end_inset
19613
19614 .
19615 \end_layout
19616
19617 \begin_layout Enumerate
19618
19619 \size small
19620 Math mode still on at end of \SpecialChar LaTeX
19621  file.
19622 \end_layout
19623
19624 \begin_layout Enumerate
19625
19626 \size small
19627 Number of 
19628 \begin_inset Quotes eld
19629 \end_inset
19630
19631
19632 \family typewriter
19633 char
19634 \family default
19635
19636 \begin_inset Quotes erd
19637 \end_inset
19638
19639  doesn't match the number of 
19640 \begin_inset Quotes eld
19641 \end_inset
19642
19643
19644 \family typewriter
19645 char
19646 \family default
19647
19648 \begin_inset Quotes erd
19649 \end_inset
19650
19651 .
19652 \end_layout
19653
19654 \begin_layout Enumerate
19655
19656 \size small
19657 You should use either 
19658 \family typewriter
19659
19660 \begin_inset Quotes eld
19661 \end_inset
19662
19663
19664 \family default
19665  or 
19666 \family typewriter
19667
19668 \begin_inset Quotes erd
19669 \end_inset
19670
19671
19672 \family default
19673  as an alternative to 
19674 \begin_inset Quotes eld
19675 \end_inset
19676
19677
19678 \family typewriter
19679 "
19680 \family default
19681
19682 \begin_inset Quotes erd
19683 \end_inset
19684
19685 .
19686 \end_layout
19687
19688 \begin_layout Enumerate
19689
19690 \size small
19691 You should use "
19692 \family typewriter
19693 '
19694 \family default
19695 " (ASCII 39) instead of "
19696 \family typewriter
19697 ´
19698 \family default
19699 " (ASCII 180).
19700 \end_layout
19701
19702 \begin_layout Enumerate
19703
19704 \size small
19705 User-specified pattern found.
19706 \end_layout
19707
19708 \begin_layout Enumerate
19709
19710 \size small
19711 This command might not be intended.
19712 \end_layout
19713
19714 \begin_layout Enumerate
19715
19716 \size small
19717 \emph on
19718 Comment displayed.
19719 \end_layout
19720
19721 \begin_layout Enumerate
19722
19723 \size small
19724 Either 
19725 \family typewriter
19726 ''
19727 \backslash
19728 ,'
19729 \family default
19730  or 
19731 \family typewriter
19732 '
19733 \backslash
19734 ,''
19735 \family default
19736  will look better.
19737 \end_layout
19738
19739 \begin_layout Enumerate
19740
19741 \size small
19742 Delete this space to maintain correct page references.
19743 \end_layout
19744
19745 \begin_layout Enumerate
19746
19747 \size small
19748 \emph on
19749 You might wish to put this between a pair of 
19750 \begin_inset Quotes eld
19751 \end_inset
19752
19753
19754 \family typewriter
19755 {}
19756 \family default
19757
19758 \begin_inset Quotes erd
19759 \end_inset
19760
19761 .
19762 \end_layout
19763
19764 \begin_layout Enumerate
19765
19766 \size small
19767 You ought to remove spaces in front of punctuation.
19768 \end_layout
19769
19770 \begin_layout Enumerate
19771
19772 \size small
19773 Could not execute \SpecialChar LaTeX
19774  command.
19775 \end_layout
19776
19777 \begin_layout Enumerate
19778
19779 \size small
19780 Don't use 
19781 \family typewriter
19782
19783 \backslash
19784 /
19785 \family default
19786  in front of small punctuation.
19787 \end_layout
19788
19789 \begin_layout Enumerate
19790
19791 \family typewriter
19792 \size small
19793 $
19794 \backslash
19795 times$
19796 \family default
19797  may look prettier here.
19798 \end_layout
19799
19800 \begin_layout Enumerate
19801
19802 \size small
19803 \emph on
19804 Multiple spaces detected in output.
19805 \end_layout
19806
19807 \begin_layout Enumerate
19808
19809 \size small
19810 This text may be ignored.
19811 \end_layout
19812
19813 \begin_layout Enumerate
19814
19815 \size small
19816 Use 
19817 \family typewriter
19818
19819 \begin_inset Quotes eld
19820 \end_inset
19821
19822
19823 \family default
19824  to begin quotation, not 
19825 \family typewriter
19826 '
19827 \family default
19828 .
19829 \end_layout
19830
19831 \begin_layout Enumerate
19832
19833 \size small
19834 Use 
19835 \family typewriter
19836 '
19837 \family default
19838  to end quotation, not 
19839 \family typewriter
19840
19841 \begin_inset Quotes eld
19842 \end_inset
19843
19844
19845 \family default
19846 .
19847 \end_layout
19848
19849 \begin_layout Enumerate
19850
19851 \size small
19852 Don't mix quotes.
19853 \end_layout
19854
19855 \begin_layout Enumerate
19856
19857 \size small
19858 You should perhaps use 
19859 \begin_inset Quotes eld
19860 \end_inset
19861
19862
19863 \family typewriter
19864 cmd
19865 \family default
19866
19867 \begin_inset Quotes erd
19868 \end_inset
19869
19870  instead.
19871 \end_layout
19872
19873 \begin_layout Enumerate
19874
19875 \size small
19876 You should put a space in front of/after parenthesis.
19877 \end_layout
19878
19879 \begin_layout Enumerate
19880
19881 \size small
19882 You should avoid spaces in front of/after parenthesis.
19883 \end_layout
19884
19885 \begin_layout Enumerate
19886
19887 \size small
19888 \emph on
19889 You should not use punctuation in front of/after quotes.
19890 \end_layout
19891
19892 \begin_layout Enumerate
19893
19894 \size small
19895 Double space found.
19896 \end_layout
19897
19898 \begin_layout Enumerate
19899
19900 \size small
19901 You should put punctuation outside inner/inside display math mode.
19902 \end_layout
19903
19904 \begin_layout Enumerate
19905
19906 \size small
19907 You ought to not use primitive \SpecialChar TeX
19908  in \SpecialChar LaTeX
19909  code.
19910 \end_layout
19911
19912 \begin_layout Enumerate
19913
19914 \size small
19915 You should remove spaces in front of 
19916 \begin_inset Quotes eld
19917 \end_inset
19918
19919
19920 \family typewriter
19921 %s
19922 \family default
19923
19924 \begin_inset Quotes erd
19925 \end_inset
19926
19927
19928 \end_layout
19929
19930 \begin_layout Enumerate
19931
19932 \size small
19933 \begin_inset Quotes eld
19934 \end_inset
19935
19936
19937 \family typewriter
19938 %s
19939 \family default
19940
19941 \begin_inset Quotes erd
19942 \end_inset
19943
19944  is normally not followed by 
19945 \begin_inset Quotes eld
19946 \end_inset
19947
19948
19949 \family typewriter
19950 %c
19951 \family default
19952
19953 \begin_inset Quotes erd
19954 \end_inset
19955
19956 .
19957 \end_layout
19958
19959 \begin_layout Standard
19960 In later versions of \SpecialChar LyX
19961 , we hope to provide a more complete interface to this
19962  tool (and it's smaller cousin 
19963 \family typewriter
19964 lacheck
19965 \family default
19966 ) to exploit the full power of it.
19967  But it's not exactly useless as it is now: go try it on one of your existing
19968  documents of a certain length and be surprised.
19969 \end_layout
19970
19971 \begin_layout Section
19972 Version Control in \SpecialChar LyX
19973
19974 \end_layout
19975
19976 \begin_layout Standard
19977 by
19978 \noun on
19979  Lars Gullik Bjønnes 
19980 \noun default
19981 and 
19982 \noun on
19983 Pavel Sanda
19984 \end_layout
19985
19986 \begin_layout Subsection
19987 Introduction
19988 \end_layout
19989
19990 \begin_layout Standard
19991 \SpecialChar LyX
19992  supports some of the most basic RCS/CVS/SVN/GIT commands.
19993  If you need something a bit more sophisticated you will have to do that
19994  manually in a terminal.
19995 \end_layout
19996
19997 \begin_layout Standard
19998 Also note that CVS support is not as good as subversion support so we advise
19999  using SVN instead.
20000  A good place to start learning Subversion is SVN Book
20001 \begin_inset Foot
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005 \begin_inset CommandInset href
20006 LatexCommand href
20007 target "http://svnbook.red-bean.com/"
20008 literal "false"
20009
20010 \end_inset
20011
20012
20013 \end_layout
20014
20015 \end_inset
20016
20017 .
20018  In the case of RCS you should read 
20019 \begin_inset Quotes eld
20020 \end_inset
20021
20022 rcsintro
20023 \begin_inset Quotes erd
20024 \end_inset
20025
20026  (a man file, read it with 
20027 \family typewriter
20028 man rcsintro
20029 \family default
20030 ).
20031  This file describes all the basic features of RCS.
20032  You should especially notice the comment about a RCS directory, and the
20033  notion of a master RCS file (the file ending in 
20034 \family typewriter
20035 ,v
20036 \family default
20037 ).
20038 \end_layout
20039
20040 \begin_layout Standard
20041 Before you begin to use the version control features in \SpecialChar LyX
20042 , you should be
20043  familiar with RCS/CVS/SVN/GIT usage.
20044  The implementation in \SpecialChar LyX
20045  assumes a recent version of the GNU RCS or CVS/SVN
20046  package — no guarantees are made for older versions.
20047  Most of the log messages are not currently displayed after operations —
20048  you can check them in the Messages pane if unsure.
20049  Regular users of version control will appreciate VC toolbar, which can
20050  be enabled via 
20051 \family sans
20052 View\SpecialChar menuseparator
20053 Toolbars\SpecialChar menuseparator
20054 Version
20055 \begin_inset space ~
20056 \end_inset
20057
20058 Control
20059 \family default
20060 .
20061 \end_layout
20062
20063 \begin_layout Standard
20064 For introducing your own external commands consult vc-command in the manual
20065  of \SpecialChar LyX
20066  functions.
20067 \end_layout
20068
20069 \begin_layout Standard
20070 It is strongly recommended to store documents in uncompressed format if
20071  using version control (uncheck 
20072 \family sans
20073 Document\SpecialChar menuseparator
20074 Compressed
20075 \family default
20076  if it is checked): Uncompressed LyX documents are text files and therefore
20077  for merging two different versions by version control systems.
20078  Compressed LyX documents are binary files, which cannot be merged by version
20079  control systems.
20080 \end_layout
20081
20082 \begin_layout Subsection
20083 RCS commands in \SpecialChar LyX
20084
20085 \end_layout
20086
20087 \begin_layout Standard
20088 The following sections describe the RCS commands supported by \SpecialChar LyX
20089 .
20090  You can find them in the 
20091 \family sans
20092 File\SpecialChar menuseparator
20093 Version
20094 \begin_inset space ~
20095 \end_inset
20096
20097 Control
20098 \family default
20099  submenu.
20100  \SpecialChar LyX
20101  was tested against RCS 5.7/5.8.
20102 \end_layout
20103
20104 \begin_layout Subsubsection
20105
20106 \family sans
20107 Register
20108 \end_layout
20109
20110 \begin_layout Standard
20111 If your document is not under revision control, this is the only item shown
20112  in the menu.
20113  And if it is under revision control, the 
20114 \family sans
20115 Register
20116 \family default
20117  item is not visible.
20118  
20119 \end_layout
20120
20121 \begin_layout Standard
20122 This command registers your document with RCS (unless you are under the
20123  directory managed by CVS)\SpecialChar endofsentence
20124  You are asked interactively to supply an initial
20125  description of the document.
20126  The document is now set in Read-Only mode and you have to 
20127 \family sans
20128 Check
20129 \begin_inset space ~
20130 \end_inset
20131
20132 Out
20133 \begin_inset space ~
20134 \end_inset
20135
20136 For
20137 \begin_inset space ~
20138 \end_inset
20139
20140 Edit
20141 \family default
20142 , before making any changes to it.
20143  A document under revision control has a 
20144 \begin_inset Quotes eld
20145 \end_inset
20146
20147 [RCS:<version> <locker>]
20148 \begin_inset Quotes erd
20149 \end_inset
20150
20151  item tagged to the filename in the minibuffer.
20152 \end_layout
20153
20154 \begin_layout Standard
20155 RCS command that is run: 
20156 \family typewriter
20157 ci -q -u -i -t-"<initial description>" <file-name>
20158 \end_layout
20159
20160 \begin_layout Standard
20161 Read 
20162 \family typewriter
20163 man ci
20164 \family default
20165  to understand the switches.
20166  
20167 \end_layout
20168
20169 \begin_layout Subsubsection
20170
20171 \family sans
20172 Check In Changes
20173 \end_layout
20174
20175 \begin_layout Standard
20176 When you are finished editing a file, you check in your changes.
20177  When you do this, you are asked for a description of the changes.
20178  This is stored in the history log.
20179  The version number is bumped, your changes are applied to the master RCS
20180  file, the document is unlocked and set to Read-Only mode.
20181 \end_layout
20182
20183 \begin_layout Standard
20184 RCS command: 
20185 \family typewriter
20186 ci -q -u -m"<description>" <file-name>
20187 \end_layout
20188
20189 \begin_layout Subsubsection
20190
20191 \family sans
20192 Check Out For Edit
20193 \end_layout
20194
20195 \begin_layout Standard
20196 By doing this you lock the document so that only you can edit it.
20197  This will also make the document Read-Write only for you.
20198  You will usually continue editing for a while and when you are finished
20199  you check in your changes.
20200  The status line is changed to reflect that you have locked the file.
20201 \end_layout
20202
20203 \begin_layout Standard
20204 RCS command: 
20205 \family typewriter
20206 co -q -l <file-name>
20207 \end_layout
20208
20209 \begin_layout Subsubsection
20210
20211 \family sans
20212 Revert To Repository Version
20213 \end_layout
20214
20215 \begin_layout Standard
20216 This will discard all changes made to the document since the last check
20217  in.
20218  You get a warning before changes are discarded.
20219 \end_layout
20220
20221 \begin_layout Standard
20222 RCS command: 
20223 \family typewriter
20224 co -f -u<version> <file-name>
20225 \end_layout
20226
20227 \begin_layout Subsubsection
20228
20229 \family sans
20230 Copy
20231 \end_layout
20232
20233 \begin_layout Standard
20234 This will create a copy of the current document.
20235  Since RCS does not support copy operations natively, the version history
20236  is not preserved, and the copy is added as a new file.
20237  It requires a clean document without any changes since the last checkin.
20238  You are asked for a file name and a description of the copy operation.
20239  After that the copy is created, both locally and in the repository.
20240  If the parent directories of the copied and original document differ, all
20241  relative paths of included files of the copy are adjusted (like in 
20242 \family sans
20243 File\SpecialChar menuseparator
20244 Save As
20245 \family default
20246 \SpecialChar ldots
20247 ).
20248  Finally, the copy is loaded instead of the original document.
20249 \end_layout
20250
20251 \begin_layout Labeling
20252 \labelwidthstring 00.00.0000
20253 RCS
20254 \begin_inset space ~
20255 \end_inset
20256
20257 commands: 
20258 \begin_inset space ~
20259 \end_inset
20260
20261
20262 \begin_inset Newline newline
20263 \end_inset
20264
20265 Copy 
20266 \begin_inset Flex Code
20267 status collapsed
20268
20269 \begin_layout Plain Layout
20270
20271 \family typewriter
20272 \begin_inset Quotes eld
20273 \end_inset
20274
20275 <file-name>
20276 \begin_inset Quotes erd
20277 \end_inset
20278
20279
20280 \end_layout
20281
20282 \end_inset
20283
20284  to 
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289
20290 \family typewriter
20291 \begin_inset Quotes eld
20292 \end_inset
20293
20294 <new-file-name>
20295 \begin_inset Quotes erd
20296 \end_inset
20297
20298
20299 \end_layout
20300
20301 \end_inset
20302
20303
20304 \begin_inset Newline newline
20305 \end_inset
20306
20307
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 ci -q -u 
20313 \family typewriter
20314 -i 
20315 \begin_inset Quotes eld
20316 \end_inset
20317
20318 <new-file-name>
20319 \begin_inset Quotes erd
20320 \end_inset
20321
20322
20323 \end_layout
20324
20325 \end_inset
20326
20327
20328 \end_layout
20329
20330 \begin_layout Subsubsection
20331
20332 \family sans
20333 Undo Last Checkin
20334 \end_layout
20335
20336 \begin_layout Standard
20337 This makes as if the last check in never happened.
20338  No changes are made to the document loaded into \SpecialChar LyX
20339 , but the last version
20340  is removed from the master RCS file.
20341 \end_layout
20342
20343 \begin_layout Standard
20344 RCS command: 
20345 \family typewriter
20346 rcs -o<version> <file-name>
20347 \end_layout
20348
20349 \begin_layout Subsubsection
20350
20351 \family sans
20352 Show History
20353 \end_layout
20354
20355 \begin_layout Standard
20356 This shows the complete history of the RCS document.
20357  The output of 
20358 \family typewriter
20359 rlog <file-name>
20360 \family default
20361  is shown in a browser.
20362  See 
20363 \family typewriter
20364 man rlog
20365 \family default
20366  for more info.
20367 \end_layout
20368
20369 \begin_layout Subsubsection
20370 Revision info
20371 \end_layout
20372
20373 \begin_layout Standard
20374 \SpecialChar LyX
20375  supports RCS version number, author name, date and time of last commit.
20376  All those are extracted from 
20377 \family typewriter
20378 rlog -r <file-name>
20379 \family default
20380 .
20381  See 
20382 \begin_inset CommandInset ref
20383 LatexCommand ref
20384 reference "subsec:VCS-Revision-Information"
20385
20386 \end_inset
20387
20388  for details.
20389 \end_layout
20390
20391 \begin_layout Subsection
20392 CVS commands in \SpecialChar LyX
20393
20394 \end_layout
20395
20396 \begin_layout Standard
20397 A subset of CVS operations is supported by \SpecialChar LyX
20398 .
20399  You can find the commands in the 
20400 \family sans
20401 File\SpecialChar menuseparator
20402 Version
20403 \begin_inset space ~
20404 \end_inset
20405
20406 Control
20407 \family default
20408  submenu.
20409  The version control system SVN is more powerful, so please use it instead
20410  of CVS if possible.
20411 \end_layout
20412
20413 \begin_layout Subsubsection
20414
20415 \family sans
20416 General CVS usage
20417 \end_layout
20418
20419 \begin_layout Standard
20420 If you start from scratch with CVS you have to create your repository and
20421  checkout the working copy with external tools.
20422  If you're using a client-server setup you may need to login before doing
20423  the first repository checkout.
20424 \end_layout
20425
20426 \begin_layout Standard
20427 If your documents are under revision control and others are using the same
20428  repository problems arise when different changes to the same document at
20429  the same location happen.
20430  Standard CVS repositories don't operate with a file locking mechanism.
20431  This may be surprising, but conflicts only occur if people disagree on
20432  the proper content of the same part of a document.
20433  So, if co-workers are used to communicate regularly, these conflicts occur
20434  rarely.
20435  If they don't communicate they have a fundamental problem anyway.
20436  Nevertheless some people like to work with so called 
20437 \begin_inset Quotes eld
20438 \end_inset
20439
20440 reserved checkouts
20441 \begin_inset Quotes erd
20442 \end_inset
20443
20444 .
20445  If they do so the working copy of all files is readonly when checked out
20446  first and the user starts editing after using a special command to make
20447  the working copy writable.
20448  When the changes are checked in the working copy returns to readonly state.
20449  With \SpecialChar LyX
20450  one has to edit the 
20451 \begin_inset Flex Code
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455 .cvsrc
20456 \end_layout
20457
20458 \end_inset
20459
20460  file and add the line 
20461 \begin_inset Flex Code
20462 status collapsed
20463
20464 \begin_layout Plain Layout
20465 cvs -r
20466 \end_layout
20467
20468 \end_inset
20469
20470  to work with reserved checkouts.
20471  The benefit is the possibility to see who is using a writable copy of some
20472  document.
20473  It's not guaranteed only one user makes a copy writable.
20474 \end_layout
20475
20476 \begin_layout Standard
20477 \SpecialChar LyX
20478  tries to guess if you're using reserved or non-reserved checkouts.
20479  If your working copy is readonly or it is writable and an additional copy
20480  of your document exists in the CVS/Base sub-directory a reserved otherwise
20481  a non-reserved checkout is assumed.
20482  When a reserved checkout is detected you have to use 
20483 \begin_inset Flex Noun
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 Check Out
20488 \end_layout
20489
20490 \end_inset
20491
20492  to make your working copy writable if it's readonly.
20493  After doing so the 
20494 \begin_inset Flex Noun
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498 Check In
20499 \end_layout
20500
20501 \end_inset
20502
20503  operation is possible and that makes your working copy readonly again after
20504  transferring your changes to the repository.
20505 \end_layout
20506
20507 \begin_layout Standard
20508 More information about CVS can be found here 
20509 \begin_inset Flex URL
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513
20514 http://www.nongnu.org/cvs
20515 \end_layout
20516
20517 \end_inset
20518
20519  and here 
20520 \begin_inset Flex URL
20521 status collapsed
20522
20523 \begin_layout Plain Layout
20524
20525 http://ximbiot.com/cvs
20526 \end_layout
20527
20528 \end_inset
20529
20530 .
20531 \end_layout
20532
20533 \begin_layout Standard
20534 Read 
20535 \family typewriter
20536 man cvs
20537 \family default
20538  to understand the sub-commands and the switches mentioned below.
20539 \end_layout
20540
20541 \begin_layout Subsubsection
20542
20543 \family sans
20544 Register
20545 \end_layout
20546
20547 \begin_layout Standard
20548 If your document is not under revision control, this is the only item shown
20549  in the menu.
20550  And if it is under revision control, the 
20551 \family sans
20552 Register
20553 \family default
20554  item is not visible.
20555  
20556 \end_layout
20557
20558 \begin_layout Standard
20559 This command registers in CVS your document 
20560 \begin_inset Flex Strong
20561 status collapsed
20562
20563 \begin_layout Plain Layout
20564
20565 \emph on
20566 only
20567 \end_layout
20568
20569 \end_inset
20570
20571  in the case you have already the documents directory under CVS control
20572  (in particular 
20573 \family typewriter
20574 CVS/Entries
20575 \family default
20576  file exists).
20577  This means you have to create or checkout the archive by yourself using
20578  external tools.
20579  (In case you forget that step \SpecialChar LyX
20580  registers the document with RCS.)
20581 \end_layout
20582
20583 \begin_layout Standard
20584 Then you are asked interactively to supply an initial description of the
20585  document.
20586  Don't forget that registered file is not yet checked in.
20587 \end_layout
20588
20589 \begin_layout Standard
20590 CVS command that is run: 
20591 \family typewriter
20592 cvs -q add -m"<entered message>" "<file-name>"
20593 \end_layout
20594
20595 \begin_layout Standard
20596 The term 
20597 \family typewriter
20598 "<file-name>"
20599 \family default
20600  above and for all other CVS commands is an abbreviation for 
20601 \begin_inset Quotes eld
20602 \end_inset
20603
20604 change the current working directory to file location and use the file name
20605  without path component as argument
20606 \begin_inset Quotes erd
20607 \end_inset
20608
20609 .
20610 \end_layout
20611
20612 \begin_layout Subsubsection
20613
20614 \family sans
20615 Check In Changes
20616 \end_layout
20617
20618 \begin_layout Standard
20619 When you are finished editing a file, you commit your changes.
20620  When you do this and you had changed the document, you are asked for a
20621  description of the changes.
20622  After that changes are written to the repository.
20623  In case you didn't change the document and a reserved checkout is detected
20624  the reservation made on 
20625 \begin_inset Flex Noun
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 Check Out
20630 \end_layout
20631
20632 \end_inset
20633
20634  is undone.
20635 \end_layout
20636
20637 \begin_layout Labeling
20638 \labelwidthstring 00.00.0000
20639 CVS
20640 \begin_inset space ~
20641 \end_inset
20642
20643 command: 
20644 \begin_inset space ~
20645 \end_inset
20646
20647
20648 \begin_inset Newline newline
20649 \end_inset
20650
20651
20652 \begin_inset Flex Code
20653 status collapsed
20654
20655 \begin_layout Plain Layout
20656 cvs 
20657 \family typewriter
20658 -q commit -m"<description>" "<file-name>"
20659 \end_layout
20660
20661 \end_inset
20662
20663  or
20664 \begin_inset Newline newline
20665 \end_inset
20666
20667
20668 \begin_inset Flex Code
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672 cvs -q unedit 
20673 \family typewriter
20674 "<file-name>"
20675 \end_layout
20676
20677 \end_inset
20678
20679
20680 \end_layout
20681
20682 \begin_layout Subsubsection
20683
20684 \family sans
20685 Check Out Changes
20686 \end_layout
20687
20688 \begin_layout Standard
20689 When you are sharing a repository with others, you may have to incorporate
20690  their changes into your working copy.
20691 \end_layout
20692
20693 \begin_layout Standard
20694 CVS command: 
20695 \family typewriter
20696 cvs -q update "<file-name>"
20697 \end_layout
20698
20699 \begin_layout Standard
20700 If a readonly checkout is detected the working copy is made writable and
20701  reserved.
20702 \end_layout
20703
20704 \begin_layout Standard
20705 CVS command: 
20706 \family typewriter
20707 cvs -q edit "<file-name>"
20708 \end_layout
20709
20710 \begin_layout Subsubsection
20711
20712 \family sans
20713 Revert To Repository Version
20714 \end_layout
20715
20716 \begin_layout Standard
20717 This will discard all changes made to the document since the last check
20718  in.
20719  You get a warning before changes are discarded.
20720  Firstly the file is deleted, secondly CVS update command is run.
20721 \end_layout
20722
20723 \begin_layout Standard
20724 CVS command: 
20725 \family typewriter
20726 cvs -q update "<file-name>"
20727 \end_layout
20728
20729 \begin_layout Standard
20730 If a reserved checkout is detected and the working copy has no changes only
20731  the reservation is undone.
20732 \end_layout
20733
20734 \begin_layout Standard
20735 CVS command: 
20736 \family typewriter
20737 cvs -q unedit "<file-name>"
20738 \end_layout
20739
20740 \begin_layout Subsubsection
20741
20742 \family sans
20743 Copy
20744 \end_layout
20745
20746 \begin_layout Standard
20747 This will create a copy of the current document.
20748  Since CVS does not support copy operations natively, the version history
20749  is not preserved, and the copy is added as a new file.
20750  It requires a clean document without any changes since the last checkin.
20751  You are asked for a file name and a description of the copy operation.
20752  After that the copy is created, both locally and in the repository.
20753  If the parent directories of the copied and original document differ, all
20754  relative paths of included files of the copy are adjusted (like in 
20755 \family sans
20756 File\SpecialChar menuseparator
20757 Save As
20758 \family default
20759 \SpecialChar ldots
20760 ).
20761  Finally, the copy is loaded instead of the original document.
20762 \end_layout
20763
20764 \begin_layout Labeling
20765 \labelwidthstring 00.00.0000
20766 CVS
20767 \begin_inset space ~
20768 \end_inset
20769
20770 commands: 
20771 \begin_inset space ~
20772 \end_inset
20773
20774
20775 \begin_inset Newline newline
20776 \end_inset
20777
20778 Copy 
20779 \begin_inset Flex Code
20780 status collapsed
20781
20782 \begin_layout Plain Layout
20783
20784 \family typewriter
20785 \begin_inset Quotes eld
20786 \end_inset
20787
20788 <file-name>
20789 \begin_inset Quotes erd
20790 \end_inset
20791
20792
20793 \end_layout
20794
20795 \end_inset
20796
20797  to 
20798 \begin_inset Flex Code
20799 status collapsed
20800
20801 \begin_layout Plain Layout
20802
20803 \family typewriter
20804 \begin_inset Quotes eld
20805 \end_inset
20806
20807 <new-file-name>
20808 \begin_inset Quotes erd
20809 \end_inset
20810
20811
20812 \end_layout
20813
20814 \end_inset
20815
20816
20817 \begin_inset Newline newline
20818 \end_inset
20819
20820
20821 \begin_inset Flex Code
20822 status collapsed
20823
20824 \begin_layout Plain Layout
20825 cvs -q add 
20826 \family typewriter
20827
20828 \begin_inset Quotes eld
20829 \end_inset
20830
20831 <new-file-name>
20832 \begin_inset Quotes erd
20833 \end_inset
20834
20835
20836 \end_layout
20837
20838 \end_inset
20839
20840
20841 \end_layout
20842
20843 \begin_layout Subsubsection
20844
20845 \family sans
20846 Rename
20847 \end_layout
20848
20849 \begin_layout Standard
20850 This will rename the current document.
20851  Since CVS does not support rename operations natively, the version history
20852  is not preserved, the renamed document is added as a new file, and the
20853  original document is deleted.
20854  It requires a clean document without any changes since the last checkin.
20855  You are asked for a file name and a description of the rename operation.
20856  After that the document is renamed, both locally and in the repository.
20857  If the parent directories of the new and old file names differ, all relative
20858  paths of included files are adjusted (like in 
20859 \family sans
20860 File\SpecialChar menuseparator
20861 Save As
20862 \family default
20863 \SpecialChar ldots
20864 ).
20865  Finally, the document is reloaded using the new name.
20866 \end_layout
20867
20868 \begin_layout Labeling
20869 \labelwidthstring 00.00.0000
20870 CVS
20871 \begin_inset space ~
20872 \end_inset
20873
20874 commands: 
20875 \begin_inset space ~
20876 \end_inset
20877
20878
20879 \begin_inset Newline newline
20880 \end_inset
20881
20882 Rename 
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887
20888 \family typewriter
20889 \begin_inset Quotes eld
20890 \end_inset
20891
20892 <file-name>
20893 \begin_inset Quotes erd
20894 \end_inset
20895
20896
20897 \end_layout
20898
20899 \end_inset
20900
20901  to 
20902 \begin_inset Flex Code
20903 status collapsed
20904
20905 \begin_layout Plain Layout
20906
20907 \family typewriter
20908 \begin_inset Quotes eld
20909 \end_inset
20910
20911 <new-file-name>
20912 \begin_inset Quotes erd
20913 \end_inset
20914
20915
20916 \end_layout
20917
20918 \end_inset
20919
20920
20921 \begin_inset Newline newline
20922 \end_inset
20923
20924
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 cvs -q add 
20930 \family typewriter
20931
20932 \begin_inset Quotes eld
20933 \end_inset
20934
20935 <new-file-name>
20936 \begin_inset Quotes erd
20937 \end_inset
20938
20939
20940 \end_layout
20941
20942 \end_inset
20943
20944
20945 \begin_inset Newline newline
20946 \end_inset
20947
20948
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 cvs -q remove 
20954 \family typewriter
20955
20956 \begin_inset Quotes eld
20957 \end_inset
20958
20959 <file-name>
20960 \begin_inset Quotes erd
20961 \end_inset
20962
20963
20964 \end_layout
20965
20966 \end_inset
20967
20968
20969 \end_layout
20970
20971 \begin_layout Subsubsection
20972 Update of the local directory checkout from repository
20973 \end_layout
20974
20975 \begin_layout Standard
20976 Once your documents gets more complex, containing sub-documents and pictures,
20977  including external 
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 .tex
20983 \end_layout
20984
20985 \end_inset
20986
20987  files and so on using version control becomes more complicated.
20988  \SpecialChar LyX
20989  supports updating the whole tree in which resides the document.
20990  This become especially useful once you cooperate with people which neither
20991  have detailed knowledge about CVS usage nor they have ambition to commit
20992  additional material to the repository.
20993  You have to organize the files structure so that all external files are
20994  in the same directory or subdirectories of the document.
20995  It's good practice anyway to store multipart documents in an extra directory.
20996 \end_layout
20997
20998 \begin_layout Standard
20999 The 
21000 \begin_inset Flex Code
21001 status collapsed
21002
21003 \begin_layout Plain Layout
21004 Update local directory from repository
21005 \end_layout
21006
21007 \end_inset
21008
21009  command updates the whole directory.
21010  If local changes are detected user is warned before update starts.
21011  In case of merge conflicts both versions of the conflicting document parts
21012  are placed in the final document.
21013  You have to review and correct the result of the merge.
21014  You'll find the conflicts enclosed in pairs of 
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 <<<<<<<
21020 \end_layout
21021
21022 \end_inset
21023
21024  and 
21025 \begin_inset Flex Code
21026 status collapsed
21027
21028 \begin_layout Plain Layout
21029 >>>>>>>
21030 \end_layout
21031
21032 \end_inset
21033
21034  separated by 
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 =======
21040 \end_layout
21041
21042 \end_inset
21043
21044 .
21045  The first part is your version as before the update operation with the
21046  document name prepended.
21047  The second one is the repository version with the version number after
21048  the sequence of 
21049 \begin_inset Flex Code
21050 status collapsed
21051
21052 \begin_layout Plain Layout
21053 >
21054 \end_layout
21055
21056 \end_inset
21057
21058  signs.
21059 \end_layout
21060
21061 \begin_layout Labeling
21062 \labelwidthstring 00.00.0000
21063 CVS
21064 \begin_inset space ~
21065 \end_inset
21066
21067 commands: 
21068 \begin_inset space ~
21069 \end_inset
21070
21071
21072 \begin_inset Newline newline
21073 \end_inset
21074
21075
21076 \begin_inset Flex Code
21077 status collapsed
21078
21079 \begin_layout Plain Layout
21080 cd $path; cvs diff 
21081 \family typewriter
21082 "."
21083 \end_layout
21084
21085 \end_inset
21086
21087  (Ask if changes are detected.)
21088 \begin_inset Newline newline
21089 \end_inset
21090
21091
21092 \begin_inset Flex Code
21093 status collapsed
21094
21095 \begin_layout Plain Layout
21096 cd $path; cvs -q update 
21097 \family typewriter
21098 "."
21099 \end_layout
21100
21101 \end_inset
21102
21103
21104 \end_layout
21105
21106 \begin_layout Standard
21107 where 
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 $path
21113 \end_layout
21114
21115 \end_inset
21116
21117  stands for the path to the document.
21118 \end_layout
21119
21120 \begin_layout Subsubsection
21121
21122 \family sans
21123 Show History
21124 \end_layout
21125
21126 \begin_layout Standard
21127 This shows the complete history of the CVS document.
21128  The output of 
21129 \family typewriter
21130 cvs log "<file-name>"
21131 \family default
21132  is shown in a browser.
21133 \end_layout
21134
21135 \begin_layout Subsubsection
21136 Revision info
21137 \end_layout
21138
21139 \begin_layout Standard
21140 \SpecialChar LyX
21141  supports CVS version number, author name, date and time of last commit.
21142  All those are extracted from 
21143 \family typewriter
21144 cvs log -r <file-name>
21145 \family default
21146 .
21147  See 
21148 \begin_inset CommandInset ref
21149 LatexCommand ref
21150 reference "subsec:VCS-Revision-Information"
21151
21152 \end_inset
21153
21154  for details.
21155 \end_layout
21156
21157 \begin_layout Subsection
21158 SVN commands in \SpecialChar LyX
21159
21160 \end_layout
21161
21162 \begin_layout Standard
21163 SVN is now partially supported by \SpecialChar LyX
21164 .
21165  You can find the commands in the 
21166 \family sans
21167 File\SpecialChar menuseparator
21168 Version
21169 \begin_inset space ~
21170 \end_inset
21171
21172 Control
21173 \family default
21174  submenu.
21175  Please note that if you use password protected access to repository via
21176  ssh, you will be asked in terminal window.
21177  \SpecialChar LyX
21178  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21179 \begin_inset Foot
21180 status open
21181
21182 \begin_layout Plain Layout
21183 Most of the commands will work with 1.4 too, see 
21184 \begin_inset CommandInset ref
21185 LatexCommand ref
21186 reference "subsec:SVN-Repo-Update"
21187
21188 \end_inset
21189
21190 .
21191  There seems to be currently unresolved permissions problem under SVN 1.8
21192  with reverting changes when file is locked.
21193 \end_layout
21194
21195 \end_inset
21196
21197
21198 \end_layout
21199
21200 \begin_layout Subsubsection
21201
21202 \family sans
21203 Register
21204 \end_layout
21205
21206 \begin_layout Standard
21207 If your document is not under revision control, this is the only item shown
21208  in the menu.
21209  And if it is under revision control, the 
21210 \family sans
21211 Register
21212 \family default
21213  item is not visible.
21214 \end_layout
21215
21216 \begin_layout Standard
21217 This command registers in SVN your document ONLY in case you have already
21218  the documents directory under SVN control (in particular 
21219 \family typewriter
21220 .svn/entries
21221 \family default
21222  file exists).
21223  This means you have to checkout the archive by yourself.
21224 \end_layout
21225
21226 \begin_layout Standard
21227 Then you are asked interactively to supply an initial description of the
21228  document.
21229  Don't forget that registered file is not yet commited.
21230 \end_layout
21231
21232 \begin_layout Standard
21233 SVN command that is run: 
21234 \family typewriter
21235 svn add -q 
21236 \begin_inset Quotes eld
21237 \end_inset
21238
21239 <file-name>
21240 \begin_inset Quotes erd
21241 \end_inset
21242
21243
21244 \end_layout
21245
21246 \begin_layout Standard
21247 Read 
21248 \family typewriter
21249 man svn
21250 \family default
21251  to understand the switches.
21252 \end_layout
21253
21254 \begin_layout Subsubsection
21255
21256 \family sans
21257 Check In Changes
21258 \end_layout
21259
21260 \begin_layout Standard
21261 When you are finished editing a file, you commit your changes.
21262  When you do this, you are asked for a description of the changes.
21263  After that changes are commited.
21264 \end_layout
21265
21266 \begin_layout Standard
21267 SVN command:
21268 \begin_inset Foot
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 In case locking is not enabled.
21273  See Section 
21274 \begin_inset CommandInset ref
21275 LatexCommand ref
21276 reference "subsec:SVN-File-Locking"
21277
21278 \end_inset
21279
21280 .
21281 \end_layout
21282
21283 \end_inset
21284
21285  
21286 \family typewriter
21287 svn commit -q -m"<description>" <file-name>
21288 \end_layout
21289
21290 \begin_layout Subsubsection
21291
21292 \family sans
21293 Check Out For Edit
21294 \end_layout
21295
21296 \begin_layout Standard
21297 Updates the changes of this file from the repository.
21298  Be sure you understand SVN merging and conflicts resolving before using
21299  this function, because all conflicts has to be resolved manually by you!
21300 \end_layout
21301
21302 \begin_layout Standard
21303 SVN command:
21304 \begin_inset Foot
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 Ditto.
21309 \end_layout
21310
21311 \end_inset
21312
21313  
21314 \family typewriter
21315 svn update --non-interactive 
21316 \begin_inset Quotes eld
21317 \end_inset
21318
21319 <file-name>
21320 \begin_inset Quotes erd
21321 \end_inset
21322
21323
21324 \end_layout
21325
21326 \begin_layout Subsubsection
21327
21328 \family sans
21329 Revert To Repository Version
21330 \end_layout
21331
21332 \begin_layout Standard
21333 This will discard all changes made to the document since the last check
21334  in.
21335  You get a warning before changes are discarded.
21336 \end_layout
21337
21338 \begin_layout Standard
21339 SVN command: 
21340 \family typewriter
21341 svn revert -q 
21342 \begin_inset Quotes eld
21343 \end_inset
21344
21345 <file-name>
21346 \begin_inset Quotes erd
21347 \end_inset
21348
21349
21350 \end_layout
21351
21352 \begin_layout Subsubsection
21353
21354 \family sans
21355 Copy
21356 \end_layout
21357
21358 \begin_layout Standard
21359 This will create a copy of the current document including the version history.
21360  It requires a clean document without any changes since the last checkin.
21361  You are asked for a file name and a description of the copy operation.
21362  After that the copy is created, both locally and in the repository.
21363  If the parent directories of the copied and original document differ, all
21364  relative paths of included files of the copy are adjusted (like in 
21365 \family sans
21366 File\SpecialChar menuseparator
21367 Save As
21368 \family default
21369 \SpecialChar ldots
21370 ).
21371  Finally, the copy is loaded instead of the original document.
21372 \end_layout
21373
21374 \begin_layout Labeling
21375 \labelwidthstring 00.00.0000
21376 SVN
21377 \begin_inset space ~
21378 \end_inset
21379
21380 commands: 
21381 \begin_inset space ~
21382 \end_inset
21383
21384
21385 \begin_inset Newline newline
21386 \end_inset
21387
21388
21389 \begin_inset Flex Code
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 svn copy -q 
21394 \family typewriter
21395
21396 \begin_inset Quotes eld
21397 \end_inset
21398
21399 <file-name>
21400 \begin_inset Quotes erd
21401 \end_inset
21402
21403  
21404 \begin_inset Quotes eld
21405 \end_inset
21406
21407 <new-file-name>
21408 \begin_inset Quotes erd
21409 \end_inset
21410
21411
21412 \end_layout
21413
21414 \end_inset
21415
21416
21417 \begin_inset Newline newline
21418 \end_inset
21419
21420
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 svn commit
21426 \end_layout
21427
21428 \end_inset
21429
21430
21431 \end_layout
21432
21433 \begin_layout Subsubsection
21434
21435 \family sans
21436 Rename
21437 \end_layout
21438
21439 \begin_layout Standard
21440 This will rename the current document including the version history.
21441  It requires a clean document without any changes since the last checkin.
21442  You are asked for a file name and a description of the rename operation.
21443  After that the document is renamed, both locally and in the repository.
21444  If the parent directories of the new and old file names differ, all relative
21445  paths of included files are adjusted (like in 
21446 \family sans
21447 File\SpecialChar menuseparator
21448 Save As
21449 \family default
21450 \SpecialChar ldots
21451 ).
21452  Finally, the document is reloaded using the new name.
21453 \end_layout
21454
21455 \begin_layout Labeling
21456 \labelwidthstring 00.00.0000
21457 SVN
21458 \begin_inset space ~
21459 \end_inset
21460
21461 commands: 
21462 \begin_inset space ~
21463 \end_inset
21464
21465
21466 \begin_inset Newline newline
21467 \end_inset
21468
21469
21470 \begin_inset Flex Code
21471 status collapsed
21472
21473 \begin_layout Plain Layout
21474 svn move -q 
21475 \family typewriter
21476
21477 \begin_inset Quotes eld
21478 \end_inset
21479
21480 <file-name>
21481 \begin_inset Quotes erd
21482 \end_inset
21483
21484  
21485 \begin_inset Quotes eld
21486 \end_inset
21487
21488 <new-file-name>
21489 \begin_inset Quotes erd
21490 \end_inset
21491
21492
21493 \end_layout
21494
21495 \end_inset
21496
21497
21498 \begin_inset Newline newline
21499 \end_inset
21500
21501
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 svn commit
21507 \end_layout
21508
21509 \end_inset
21510
21511
21512 \end_layout
21513
21514 \begin_layout Subsubsection
21515 \begin_inset CommandInset label
21516 LatexCommand label
21517 name "subsec:SVN-Repo-Update"
21518
21519 \end_inset
21520
21521 Update of the local directory checkout from repository
21522 \begin_inset Foot
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 Note that this command will work only with subversion 
21527 \begin_inset Formula $\geqq1.5$
21528 \end_inset
21529
21530
21531 \end_layout
21532
21533 \end_inset
21534
21535
21536 \end_layout
21537
21538 \begin_layout Standard
21539 All the commands above have one shortcomming - they deal with the current
21540  document only.
21541  Once your document contains pictures, includes external 
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 .tex
21547 \end_layout
21548
21549 \end_inset
21550
21551  files and so on administration becomes more complicated.
21552  \SpecialChar LyX
21553  now supports updating the whole tree in which resides the document
21554 \begin_inset Foot
21555 status collapsed
21556
21557 \begin_layout Plain Layout
21558 One need to organize the files structure so that all external files are
21559  in the same directory or subdirectories of the document.
21560  
21561 \end_layout
21562
21563 \end_inset
21564
21565 .
21566  This become especially useful once you cooperate with people which neither
21567  know about subversion management nor they have ambition to commit additional
21568  material to the repository.
21569  
21570 \end_layout
21571
21572 \begin_layout Standard
21573 \begin_inset Flex Code
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577 Update local directory from repository
21578 \end_layout
21579
21580 \end_inset
21581
21582  command updates the whole directory and in case of merge conflicts local
21583  version of the files are left, so no unintended data loss occurs.
21584  If local changes are detected user is warned before update starts.
21585 \end_layout
21586
21587 \begin_layout Labeling
21588 \labelwidthstring 00.00.0000
21589 SVN
21590 \begin_inset space ~
21591 \end_inset
21592
21593 commands: 
21594 \begin_inset space ~
21595 \end_inset
21596
21597
21598 \begin_inset Newline newline
21599 \end_inset
21600
21601
21602 \begin_inset Flex Code
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606 svn diff $path
21607 \end_layout
21608
21609 \end_inset
21610
21611  (Ask if changes are detected.)
21612 \begin_inset Newline newline
21613 \end_inset
21614
21615
21616 \begin_inset Flex Code
21617 status collapsed
21618
21619 \begin_layout Plain Layout
21620 svn update –accept mine-full $path
21621 \end_layout
21622
21623 \end_inset
21624
21625
21626 \end_layout
21627
21628 \begin_layout Standard
21629 where 
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 $path
21635 \end_layout
21636
21637 \end_inset
21638
21639  stands for the path to the document.
21640 \end_layout
21641
21642 \begin_layout Subsubsection
21643
21644 \family sans
21645 Show History
21646 \end_layout
21647
21648 \begin_layout Standard
21649 This shows the complete history of the SVN document.
21650  The output of 
21651 \family typewriter
21652 svn log 
21653 \begin_inset Quotes eld
21654 \end_inset
21655
21656 <file-name>
21657 \begin_inset Quotes erd
21658 \end_inset
21659
21660
21661 \family default
21662  is shown in a browser.
21663 \end_layout
21664
21665 \begin_layout Subsubsection
21666 File Locking
21667 \begin_inset CommandInset label
21668 LatexCommand label
21669 name "subsec:SVN-File-Locking"
21670
21671 \end_inset
21672
21673
21674 \end_layout
21675
21676 \begin_layout Standard
21677 The file exchange through various revision control systems brings the problem
21678  of merge conflicts in case two different users try to edit the same (parts
21679  of) document.
21680  When such a conflict happens it needs manual resolving and one reasonable
21681  alternative is to provide some kind of locking mechanism, which guarantees
21682  that only one user is allowed to edit file at the given time.
21683 \end_layout
21684
21685 \begin_layout Standard
21686 SVN has two such mechanisms to provide mutual exclusivity for file access
21687  - locks and automatic setting of write permissions (see sec.
21688  
21689 \begin_inset CommandInset ref
21690 LatexCommand ref
21691 reference "subsec:Automatical-Locking-Property"
21692
21693 \end_inset
21694
21695 ) based on 
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 svn:needs-lock
21701 \end_layout
21702
21703 \end_inset
21704
21705  file svn property
21706 \begin_inset Foot
21707 status open
21708
21709 \begin_layout Plain Layout
21710 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21711 \end_layout
21712
21713 \end_inset
21714
21715 .
21716  If this property is detected for a given document \SpecialChar LyX
21717  starts to use SVN locks
21718  for document editing automatically and the whole check-in/out mechanism
21719  switches to the same regimen as for RCS.
21720  This in particular means there are two different modes of file use in \SpecialChar LyX
21721 :
21722 \end_layout
21723
21724 \begin_layout Itemize
21725 Unlocked state.
21726  The loaded file is in the read-only mode.
21727  For editing on needs to check-out.
21728  
21729 \emph on
21730 Check-out
21731 \emph default
21732  consists of updating from the repository and gaining write lock.
21733  If the lock is not possible to obtain, we remain in unlocked state.
21734 \end_layout
21735
21736 \begin_layout Itemize
21737 Locked state.
21738  The loaded file is in the 'normal' edit mode.
21739  No other user is allowed to edit the file.
21740  
21741 \emph on
21742 Check-in
21743 \emph default
21744  consists of commiting changes and releasing write-lock.
21745  If no changes have been made to the document, no commit will be produced
21746 \begin_inset Foot
21747 status collapsed
21748
21749 \begin_layout Plain Layout
21750 Don't be puzzled by the fact that you will be asked for commit message anyway.
21751 \end_layout
21752
21753 \end_inset
21754
21755  and only the write-lock will be released.
21756 \end_layout
21757
21758 \begin_layout Standard
21759 SVN commands:
21760 \end_layout
21761
21762 \begin_layout Labeling
21763 \labelwidthstring 00.00.0000
21764 Check-in:
21765 \family typewriter
21766  svn commit -q -m"<description>" "<file-name>"
21767 \begin_inset Newline newline
21768 \end_inset
21769
21770 svn unlock "<file-name>"
21771 \end_layout
21772
21773 \begin_layout Labeling
21774 \labelwidthstring 00.00.0000
21775 Check-out: 
21776 \family typewriter
21777 svn update "<file-name>"
21778 \begin_inset Newline newline
21779 \end_inset
21780
21781 svn lock "<file-name>"
21782 \end_layout
21783
21784 \begin_layout Subsubsection
21785
21786 \family typewriter
21787 \begin_inset CommandInset label
21788 LatexCommand label
21789 name "subsec:Automatical-Locking-Property"
21790
21791 \end_inset
21792
21793
21794 \family default
21795 Automatic Locking Property
21796 \end_layout
21797
21798 \begin_layout Standard
21799 The above mentioned automatic setting of write permissions of the .lyx file
21800  can be set through
21801 \family sans
21802  File\SpecialChar menuseparator
21803 Version
21804 \begin_inset space ~
21805 \end_inset
21806
21807 Control\SpecialChar menuseparator
21808 Toggle locking property
21809 \family default
21810 .
21811  This command is active only when the file is not locked on the svn server
21812  (i.e.
21813  you need to check-out before proceeding).
21814 \end_layout
21815
21816 \begin_layout Labeling
21817 \labelwidthstring 00.00.0000
21818 SVN
21819 \begin_inset space ~
21820 \end_inset
21821
21822 commands:
21823 \end_layout
21824
21825 \begin_layout Labeling
21826 \labelwidthstring 00.00.0000
21827 Set:
21828 \family typewriter
21829  svn propset svn:needs-lock ON "<file-name>"
21830 \end_layout
21831
21832 \begin_layout Labeling
21833 \labelwidthstring 00.00.0000
21834 Unset: 
21835 \family typewriter
21836 svn propdel svn:needs-lock "<file-name>"
21837 \end_layout
21838
21839 \begin_layout Subsubsection
21840 \begin_inset CommandInset label
21841 LatexCommand label
21842 name "subsec:VCS-Revision-Information"
21843
21844 \end_inset
21845
21846 Revision Information in Documents
21847 \end_layout
21848
21849 \begin_layout Standard
21850 There are more possibilities how to activate revision information in our
21851  document.
21852 \end_layout
21853
21854 \begin_layout Itemize
21855 \SpecialChar LyX
21856  supports directly:
21857 \end_layout
21858
21859 \begin_deeper
21860 \begin_layout Itemize
21861 tree revision information (
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866 vcs-tree-revision
21867 \end_layout
21868
21869 \end_inset
21870
21871 ).
21872  The result is the output of the 
21873 \begin_inset Flex Code
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877 svnversion
21878 \end_layout
21879
21880 \end_inset
21881
21882  command, the following table gives you an idea, how to read the results.
21883 \end_layout
21884
21885 \begin_layout Standard
21886 \align center
21887 \begin_inset Tabular
21888 <lyxtabular version="3" rows="6" columns="2">
21889 <features tabularvalignment="middle">
21890 <column alignment="center" valignment="top">
21891 <column alignment="center" valignment="top">
21892 <row>
21893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21894 \begin_inset Text
21895
21896 \begin_layout Plain Layout
21897 Output
21898 \end_layout
21899
21900 \end_inset
21901 </cell>
21902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21903 \begin_inset Text
21904
21905 \begin_layout Plain Layout
21906 Meaning
21907 \end_layout
21908
21909 \end_inset
21910 </cell>
21911 </row>
21912 <row>
21913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21914 \begin_inset Text
21915
21916 \begin_layout Plain Layout
21917 4123:4168
21918 \end_layout
21919
21920 \end_inset
21921 </cell>
21922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21923 \begin_inset Text
21924
21925 \begin_layout Plain Layout
21926 mixed revision working copy
21927 \end_layout
21928
21929 \end_inset
21930 </cell>
21931 </row>
21932 <row>
21933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21934 \begin_inset Text
21935
21936 \begin_layout Plain Layout
21937 4168M
21938 \end_layout
21939
21940 \end_inset
21941 </cell>
21942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21943 \begin_inset Text
21944
21945 \begin_layout Plain Layout
21946 modified working copy
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 4123S
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 switched 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 4123P
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 partial working copy, from a sparse checkout
21987 \end_layout
21988
21989 \end_inset
21990 </cell>
21991 </row>
21992 <row>
21993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21994 \begin_inset Text
21995
21996 \begin_layout Plain Layout
21997 4123:4168MS
21998 \end_layout
21999
22000 \end_inset
22001 </cell>
22002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22003 \begin_inset Text
22004
22005 \begin_layout Plain Layout
22006 mixed revision, modified, switched working copy
22007 \end_layout
22008
22009 \end_inset
22010 </cell>
22011 </row>
22012 </lyxtabular>
22013
22014 \end_inset
22015
22016
22017 \end_layout
22018
22019 \begin_layout Itemize
22020 file revision information.
22021  The result comes from parsing the output of 
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 svn
22027 \begin_inset space ~
22028 \end_inset
22029
22030 info
22031 \begin_inset space ~
22032 \end_inset
22033
22034 –xml
22035 \begin_inset space ~
22036 \end_inset
22037
22038 file.lyx
22039 \end_layout
22040
22041 \end_inset
22042
22043 .
22044  Supported flags are:
22045 \end_layout
22046
22047 \begin_deeper
22048 \begin_layout Itemize
22049 version number of the last commit (
22050 \begin_inset Flex Code
22051 status collapsed
22052
22053 \begin_layout Plain Layout
22054 vcs-revision
22055 \end_layout
22056
22057 \end_inset
22058
22059 )
22060 \end_layout
22061
22062 \begin_layout Itemize
22063 author of the last commit (
22064 \begin_inset Flex Code
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 vcs-author
22069 \end_layout
22070
22071 \end_inset
22072
22073 )
22074 \end_layout
22075
22076 \begin_layout Itemize
22077 date of the last commit (
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 vcs-date
22083 \end_layout
22084
22085 \end_inset
22086
22087 )
22088 \end_layout
22089
22090 \begin_layout Itemize
22091 time of the last commit (
22092 \begin_inset Flex Code
22093 status collapsed
22094
22095 \begin_layout Plain Layout
22096 vcs-time
22097 \end_layout
22098
22099 \end_inset
22100
22101 )
22102 \end_layout
22103
22104 \end_deeper
22105 \begin_layout Standard
22106 You can obtain this info via InsetInfo (e.g.
22107  
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 info-insert buffer vcs-date
22113 \end_layout
22114
22115 \end_inset
22116
22117 ).
22118  The information will be available only when you have the file stored under
22119  svn managment (i.e.
22120  the 
22121 \begin_inset Flex Code
22122 status collapsed
22123
22124 \begin_layout Plain Layout
22125 .svn
22126 \end_layout
22127
22128 \end_inset
22129
22130  directory is available with your document).
22131 \end_layout
22132
22133 \end_deeper
22134 \begin_layout Itemize
22135 Another—a hacking one—possibility is to use svn keywords
22136 \begin_inset Foot
22137 status collapsed
22138
22139 \begin_layout Plain Layout
22140 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22141 \end_layout
22142
22143 \end_inset
22144
22145 .
22146  In short – you set file keywords property (e.g.
22147  
22148 \family sans
22149 svn propset svn:keywords 'Rev' file.lyx
22150 \family default
22151 ) and then paste keyword \SpecialChar TeX
22152  code
22153 \begin_inset Foot
22154 status collapsed
22155
22156 \begin_layout Plain Layout
22157 This is an easy way how to ensure that \SpecialChar LyX
22158  won't break the line in the middle
22159  of keyword tag.
22160 \end_layout
22161
22162 \end_inset
22163
22164  tag in your document (e.g.
22165  
22166 \begin_inset ERT
22167 status open
22168
22169 \begin_layout Plain Layout
22170
22171 $Rev$
22172 \end_layout
22173
22174 \end_inset
22175
22176 ).
22177  This way svn client will automatically substitute revision number (e.g.
22178  
22179 \begin_inset ERT
22180 status open
22181
22182 \begin_layout Plain Layout
22183
22184 $Rev: 59 $
22185 \end_layout
22186
22187 \end_inset
22188
22189 ) after each update and commit.
22190  There are more problems with this approach.
22191  Firstly, the '$' character is used in \SpecialChar TeX
22192  world for math equations, so any
22193  occurence of math formula 
22194 \begin_inset Formula $Rev$
22195 \end_inset
22196
22197  become 
22198 \begin_inset Formula $Rev:59$
22199 \end_inset
22200
22201  in your \SpecialChar LyX
22202  document.
22203  Similarly for other keywords like Id, Date, Author, etc.
22204  Secondly svn output is dependent on your locales, so its very easy that
22205  svn would produce some problematic strings once Date is used.
22206  Thirdly you get the whole 'Rev: 59' string in your document instead of
22207  the plain number.
22208  Until subversion implements user's custom keywords it will be hard to use
22209  this approach reliably or let \SpecialChar LyX
22210  to support it directly.
22211 \end_layout
22212
22213 \begin_layout Subsection
22214 SVN and Windows Environment
22215 \end_layout
22216
22217 \begin_layout Quote
22218 My inclination is to say that if the user cannot figure out the command
22219  line operations on their own fairly quickly, they would be well advised
22220  to use TortoiseSVN.
22221  —P.
22222  A.
22223  Rubin
22224 \end_layout
22225
22226 \begin_layout Subsubsection
22227 Preparation
22228 \end_layout
22229
22230 \begin_layout Standard
22231 In addition to installing \SpecialChar LyX
22232 , and having access to a Subversion repository,
22233  the user will need to install the Subversion client program.
22234  A Windows installer for the client program is available from 
22235 \begin_inset CommandInset href
22236 LatexCommand href
22237 name "CollabNet"
22238 target "http://www.collab.net/nonav/downloads/subversion/"
22239 literal "false"
22240
22241 \end_inset
22242
22243 .
22244  The user may also want to install 
22245 \begin_inset CommandInset href
22246 LatexCommand href
22247 name "TortoiseSVN"
22248 target "http://tortoisesvn.tigris.org/"
22249 literal "false"
22250
22251 \end_inset
22252
22253 , which integrates Subversion operations into the context (rightclick) menu
22254  of Windows Explorer.
22255  Operations done outside \SpecialChar LyX
22256  will typically be more convenient using the Explorer
22257  context menu.
22258  Note that TortoiseSVN is not a replacement for the client program, which
22259  is what \SpecialChar LyX
22260  itself will use.
22261 \end_layout
22262
22263 \begin_layout Subsubsection
22264 Bringing a document under Subversion control
22265 \end_layout
22266
22267 \begin_layout Standard
22268 Before a \SpecialChar LyX
22269  document can be brought under version control in Subversion, its
22270  parent directory needs to be under version control.
22271  If the document is being added to a project already in the repository,
22272  this is accomplished by checking the project out to the directory where
22273  the new document will be placed.
22274  If the project itself is not yet under version control (for instance, if
22275  this document starts a new project), the directory must be imported into
22276  the repository.
22277  This is done outside \SpecialChar LyX
22278 .
22279  Both import and checkout are easily accomplished from the Explorer context
22280  menu using TortoiseSVN, or alternatively can be done using the command
22281  line client at a DOS prompt.
22282  The procedure for importing the project using TortoiseSVN is described
22283  below, assuming an existing repository and a new project being started
22284  in 
22285 \family typewriter
22286 C:
22287 \backslash
22288 new project
22289 \family default
22290 .
22291  For information on using the Subversion client program, run 
22292 \family typewriter
22293 svn --help 
22294 \family default
22295 in a DOS shell.
22296 \end_layout
22297
22298 \begin_layout Enumerate
22299 Locate 
22300 \family typewriter
22301 C:
22302 \backslash
22303 new project 
22304 \family default
22305 in Windows Explorer, right click it, and select 
22306 \family sans
22307 TortoiseSVN\SpecialChar menuseparator
22308 Repo-browser
22309 \family default
22310 .
22311  If necessary, adjust the URL for the repository, then click OK.
22312 \end_layout
22313
22314 \begin_layout Enumerate
22315 Right click the level of the repository under which you want to place the
22316  new project folder (typically the top level) and click 
22317 \family sans
22318 Create folder
22319 \family default
22320  Supply a name for the project folder and click OK.
22321  Add a message for the log file if desired, then click OK again.
22322  The new project folder should appear in the repository.
22323  Finally, click OK again to exit the repository browser.
22324 \end_layout
22325
22326 \begin_layout Enumerate
22327 Once again right click 
22328 \family typewriter
22329 C:
22330 \backslash
22331 new project
22332 \family default
22333 , this time selecting SVN Checkout\SpecialChar ldots
22334  Select the URL of the project folder
22335  you just created in the repository, and set the checkout directory to 
22336 \family typewriter
22337 C:
22338 \backslash
22339 new project.
22340
22341 \family default
22342  Click OK.
22343  You will be warned about a non-empty folder; click OK to proceed.
22344  You should now have a 
22345 \family typewriter
22346 .svn
22347 \family default
22348  directory under 
22349 \family typewriter
22350 C:
22351 \backslash
22352 new project.
22353 \end_layout
22354
22355 \begin_layout Enumerate
22356 Create or open your document in \SpecialChar LyX
22357  and click 
22358 \family sans
22359 File\SpecialChar menuseparator
22360 Version
22361 \begin_inset space ~
22362 \end_inset
22363
22364 Control\SpecialChar menuseparator
22365 Register.
22366  
22367 \family default
22368 Add a log message and click OK to commit the document to version control.
22369 \end_layout
22370
22371 \begin_layout Standard
22372 From this point onward, you should have full functionality in the 
22373 \family sans
22374 File\SpecialChar menuseparator
22375 Version
22376 \begin_inset space ~
22377 \end_inset
22378
22379 Control
22380 \family default
22381  menu.
22382  You also have the option of checking the document in and out, viewing its
22383  history, etc.
22384  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22385  client program from a command prompt.
22386 \end_layout
22387
22388 \begin_layout Subsubsection
22389 SSH tunnel used with SVN under Windows
22390 \end_layout
22391
22392 \begin_layout Standard
22393 Compared with Linux setting up an svn client to communicate over ssh under
22394  Windows is a rather troublesome task.
22395  We will at least offer some hints how to setup the client side but prior
22396  knowledge about ssh and the Windows command line is needed, also be prepared
22397  for a great deal of frustration\SpecialChar ldots
22398
22399 \end_layout
22400
22401 \begin_layout Enumerate
22402 Get an svn client for windows, as described in the previous sections.
22403  When it is a fresh install run some svn command (e.g.
22404  
22405 \begin_inset Flex Code
22406 status collapsed
22407
22408 \begin_layout Plain Layout
22409 svn –version
22410 \end_layout
22411
22412 \end_inset
22413
22414 ) to create config files, which you will need to change later on.
22415 \end_layout
22416
22417 \begin_layout Enumerate
22418 Choose an ssh client for Windows.
22419  There are several possibilities, we will use the one from Putty tools
22420 \begin_inset Foot
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 \begin_inset Flex URL
22425 status collapsed
22426
22427 \begin_layout Plain Layout
22428
22429 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22430 \end_layout
22431
22432 \end_inset
22433
22434
22435 \end_layout
22436
22437 \end_inset
22438
22439 .
22440  You will need to set the connection up so that the client doesn't ask for
22441  any password from you.
22442  To keep things easy we will use only keys without any additional password
22443  protection etc.
22444 \end_layout
22445
22446 \begin_deeper
22447 \begin_layout Enumerate
22448 Generate keys by 
22449 \begin_inset Flex Code
22450 status collapsed
22451
22452 \begin_layout Plain Layout
22453 puttygen
22454 \end_layout
22455
22456 \end_inset
22457
22458 .
22459  Save your private .ppk key file and put the public one on the server side.
22460  If the SVN server runs on Linux, note that the format of the public key
22461  is not compatible with Linux openssh and you will need to direcly copy-paste
22462  the key from the “
22463 \emph on
22464 Public key for pasting into OpenSSH authorized_keys file
22465 \emph default
22466 :” edit field into the server's 
22467 \begin_inset Flex Code
22468 status collapsed
22469
22470 \begin_layout Plain Layout
22471 ~/.ssh/authorized_keys
22472 \end_layout
22473
22474 \end_inset
22475
22476  / 
22477 \begin_inset Flex Code
22478 status collapsed
22479
22480 \begin_layout Plain Layout
22481 authorized_keys2
22482 \end_layout
22483
22484 \end_inset
22485
22486  file.
22487 \end_layout
22488
22489 \begin_layout Enumerate
22490 Get the Putty's 
22491 \begin_inset Flex Code
22492 status collapsed
22493
22494 \begin_layout Plain Layout
22495 plink
22496 \end_layout
22497
22498 \end_inset
22499
22500 .
22501  In the SVN config file
22502 \begin_inset Foot
22503 status collapsed
22504
22505 \begin_layout Plain Layout
22506 Exact path depends on Windows version, usually somewhere around 
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 c:
22512 \backslash
22513 Documents and Settings
22514 \backslash
22515 user
22516 \backslash
22517 Application Data
22518 \backslash
22519 Subversion
22520 \backslash
22521 config
22522 \end_layout
22523
22524 \end_inset
22525
22526  / 
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 AppData
22532 \backslash
22533 Roaming
22534 \backslash
22535 Subversion
22536 \end_layout
22537
22538 \end_inset
22539
22540 .
22541 \end_layout
22542
22543 \end_inset
22544
22545 , section [tunnels], setup ssh command, e.g.
22546  
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22552 \end_layout
22553
22554 \end_inset
22555
22556 .
22557 \begin_inset Foot
22558 status collapsed
22559
22560 \begin_layout Plain Layout
22561 It will usually take a lot of time to get exact command right and it depends
22562  on many things.
22563  For example do not have some remote server saved as a default session in
22564  Putty etc.
22565  If things fail, try to connect via plink without SVN first.
22566 \end_layout
22567
22568 \end_inset
22569
22570
22571 \end_layout
22572
22573 \end_deeper
22574 \begin_layout Enumerate
22575 Checkout the SVN archive, e.
22576 \begin_inset space \thinspace{}
22577 \end_inset
22578
22579 g.
22580 \begin_inset Newline newline
22581 \end_inset
22582
22583
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588 svn co svn+ssh://user@server/repository_path
22589 \end_layout
22590
22591 \end_inset
22592
22593 .
22594 \end_layout
22595
22596 \begin_layout Subsubsection
22597 End-of-Line Conversions
22598 \end_layout
22599
22600 \begin_layout Standard
22601 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22602  will
22603  use different line endings inside the .lyx files.
22604  This is not a problem as far as \SpecialChar LyX
22605  functionality is concerned, but the commit
22606  diffs will be huge and merge-conflicts prone.
22607  Fortunately SVN itself knows
22608 \begin_inset Foot
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 \begin_inset Flex URL
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616
22617 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22618 \end_layout
22619
22620 \end_inset
22621
22622
22623 \end_layout
22624
22625 \end_inset
22626
22627  how to deal with CR/LF problems when switching .lyx files to the 
22628 \begin_inset Flex Code
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632 native
22633 \end_layout
22634
22635 \end_inset
22636
22637  mode.
22638 \begin_inset Foot
22639 status collapsed
22640
22641 \begin_layout Plain Layout
22642 For the lazy guys: 
22643 \begin_inset Flex Code
22644 status collapsed
22645
22646 \begin_layout Plain Layout
22647 svn propset svn:eol-style native FILE_NAME
22648 \end_layout
22649
22650 \end_inset
22651
22652
22653 \end_layout
22654
22655 \end_inset
22656
22657
22658 \end_layout
22659
22660 \begin_layout Subsection
22661 GIT commands in \SpecialChar LyX
22662
22663 \end_layout
22664
22665 \begin_layout Standard
22666 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22667 .
22668  You can find the commands in the 
22669 \family sans
22670 File\SpecialChar menuseparator
22671 Version
22672 \begin_inset space ~
22673 \end_inset
22674
22675 Control
22676 \family default
22677  submenu.
22678  Please note that if you use password protected access to repository via
22679  ssh, you will be asked in terminal window.
22680  \SpecialChar LyX
22681  was tested against GIT 1.7.
22682 \begin_inset Foot
22683 status open
22684
22685 \begin_layout Plain Layout
22686 Windows users please note that you need to ensure that git is on the path.
22687  This can be set from within \SpecialChar LyX
22688  at 
22689 \family sans
22690 Tools\SpecialChar menuseparator
22691 Preferences\SpecialChar menuseparator
22692 Paths\SpecialChar menuseparator
22693 PATH prefix
22694 \family default
22695 .
22696 \end_layout
22697
22698 \end_inset
22699
22700
22701 \end_layout
22702
22703 \begin_layout Standard
22704 One big difference of GIT and the other supported version control systems
22705  is the distributed nature of GIT: With traditional version control systems
22706  there is one central server which hosts the repository.
22707  Users commit their changes to the server, and get updates made by other
22708  users from it.
22709  With GIT, users commit to a local repository.
22710  The local repository can be synchronized with one or more remote repositories
22711  using the 
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 pull
22717 \end_layout
22718
22719 \end_inset
22720
22721  and 
22722 \begin_inset Flex Code
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726 push
22727 \end_layout
22728
22729 \end_inset
22730
22731  GIT commands.
22732  \SpecialChar LyX
22733  does not interact in any way with remote GIT repositories.
22734  It works exclusively with the local repository in a very similar way as
22735  with a central CVS or SVN repository.
22736  If you use remote GIT repositories you need to do the 
22737 \begin_inset Flex Code
22738 status collapsed
22739
22740 \begin_layout Plain Layout
22741 pull
22742 \end_layout
22743
22744 \end_inset
22745
22746  and 
22747 \begin_inset Flex Code
22748 status collapsed
22749
22750 \begin_layout Plain Layout
22751 push
22752 \end_layout
22753
22754 \end_inset
22755
22756  operations with your favourite GIT client.
22757 \end_layout
22758
22759 \begin_layout Subsubsection
22760
22761 \family sans
22762 Register
22763 \end_layout
22764
22765 \begin_layout Standard
22766 If your document is not under revision control, this is the only item shown
22767  in the menu.
22768  And if it is under revision control, the 
22769 \family sans
22770 Register
22771 \family default
22772  item is not visible.
22773 \end_layout
22774
22775 \begin_layout Standard
22776 This command registers in GIT your document ONLY in case you have already
22777  the documents directory under GIT control (in particular 
22778 \family typewriter
22779 .git/index
22780 \family default
22781  file exists).
22782  This means you have to checkout the archive by yourself.
22783 \end_layout
22784
22785 \begin_layout Standard
22786 Then you are asked interactively to supply an initial description of the
22787  document.
22788  Don't forget that registered file is not yet commited.
22789 \end_layout
22790
22791 \begin_layout Standard
22792 GIT command that is run: 
22793 \family typewriter
22794 git add 
22795 \begin_inset Quotes eld
22796 \end_inset
22797
22798 <file-name>
22799 \begin_inset Quotes erd
22800 \end_inset
22801
22802
22803 \end_layout
22804
22805 \begin_layout Standard
22806 Read 
22807 \family typewriter
22808 man git
22809 \family default
22810  to understand the switches.
22811 \end_layout
22812
22813 \begin_layout Subsubsection
22814
22815 \family sans
22816 Check In Changes
22817 \end_layout
22818
22819 \begin_layout Standard
22820 When you are finished editing a file, you commit your changes.
22821  When you do this, you are asked for a description of the changes.
22822  After that changes are commited.
22823 \end_layout
22824
22825 \begin_layout Standard
22826 GIT command: 
22827 \family typewriter
22828 git commit -q -m"<description>" <file-name>
22829 \end_layout
22830
22831 \begin_layout Subsubsection
22832
22833 \family sans
22834 Revert To Repository Version
22835 \end_layout
22836
22837 \begin_layout Standard
22838 This will discard all changes made to the document since the last check
22839  in.
22840  You get a warning before changes are discarded.
22841 \end_layout
22842
22843 \begin_layout Standard
22844 GIT command: 
22845 \family typewriter
22846 git checkout -q 
22847 \begin_inset Quotes eld
22848 \end_inset
22849
22850 <file-name>
22851 \begin_inset Quotes erd
22852 \end_inset
22853
22854
22855 \end_layout
22856
22857 \begin_layout Subsubsection
22858
22859 \family sans
22860 Rename
22861 \end_layout
22862
22863 \begin_layout Standard
22864 This will rename the current document including the version history.
22865  It requires a clean document without any changes since the last checkin.
22866  You are asked for a file name and a description of the rename operation.
22867  After that the document is renamed, both locally and in the repository.
22868  If the parent directories of the new and old file names differ, all relative
22869  paths of included files are adjusted (like in 
22870 \family sans
22871 File\SpecialChar menuseparator
22872 Save As
22873 \family default
22874 \SpecialChar ldots
22875 ).
22876  Finally, the document is reloaded using the new name.
22877 \end_layout
22878
22879 \begin_layout Labeling
22880 \labelwidthstring 00.00.0000
22881 GIT
22882 \begin_inset space ~
22883 \end_inset
22884
22885 commands: 
22886 \begin_inset space ~
22887 \end_inset
22888
22889
22890 \begin_inset Newline newline
22891 \end_inset
22892
22893
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 git mv 
22899 \family typewriter
22900
22901 \begin_inset Quotes eld
22902 \end_inset
22903
22904 <file-name>
22905 \begin_inset Quotes erd
22906 \end_inset
22907
22908  
22909 \begin_inset Quotes eld
22910 \end_inset
22911
22912 <new-file-name>
22913 \begin_inset Quotes erd
22914 \end_inset
22915
22916
22917 \end_layout
22918
22919 \end_inset
22920
22921
22922 \begin_inset Newline newline
22923 \end_inset
22924
22925
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 git commit
22931 \end_layout
22932
22933 \end_inset
22934
22935
22936 \end_layout
22937
22938 \begin_layout Subsubsection
22939
22940 \family sans
22941 Show History
22942 \end_layout
22943
22944 \begin_layout Standard
22945 This shows the complete history of the GIT document.
22946  The output of 
22947 \family typewriter
22948 git log 
22949 \begin_inset Quotes eld
22950 \end_inset
22951
22952 <file-name>
22953 \begin_inset Quotes erd
22954 \end_inset
22955
22956
22957 \family default
22958  is shown in a browser.
22959 \end_layout
22960
22961 \begin_layout Subsubsection
22962 Version Info
22963 \end_layout
22964
22965 \begin_layout Standard
22966 \SpecialChar LyX
22967  supports GIT hash number of the last commit to the file, author name, date
22968  and time of last commit.
22969  All those are extracted from 
22970 \family typewriter
22971 git log -n 1 --pretty=format:%H%n%an%n%ai
22972 \family default
22973 .
22974  Tree version information is obtained via 
22975 \family typewriter
22976 git describe --abbrev --dirty --long
22977 \family default
22978 .
22979  See 
22980 \begin_inset CommandInset ref
22981 LatexCommand ref
22982 reference "subsec:VCS-Revision-Information"
22983
22984 \end_inset
22985
22986  for other details.
22987 \end_layout
22988
22989 \begin_layout Subsection
22990 Further tuning
22991 \end_layout
22992
22993 \begin_layout Standard
22994 With the recent addition of the vc-command function \SpecialChar LyX
22995  power users are allowed
22996  to create their own commands for revision control.
22997 \end_layout
22998
22999 \begin_layout Standard
23000 As an example you can see how two TortoiseSVN commands could be integrated
23001  directly:
23002 \end_layout
23003
23004 \begin_layout Description
23005 Commit: 
23006 \begin_inset Flex Code
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23011 \end_layout
23012
23013 \end_inset
23014
23015
23016 \end_layout
23017
23018 \begin_layout Description
23019 Revert: 
23020 \begin_inset Flex Code
23021 status collapsed
23022
23023 \begin_layout Plain Layout
23024 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23025 \end_layout
23026
23027 \end_inset
23028
23029
23030 \end_layout
23031
23032 \begin_layout Subsection
23033 Version control and Document comparison
23034 \end_layout
23035
23036 \begin_layout Standard
23037 One of the typical uses of version control is to inspect the changes between
23038  revisions, usually by creating 
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 diff
23044 \end_layout
23045
23046 \end_inset
23047
23048  dumps.
23049  While this is useful for plain text files, it is much less useful in the
23050  case of \SpecialChar LyX
23051  files, which have more a complicated structure.
23052  Hence we provide binding to the Document comparison feature.
23053  There are two ways of calling this feature - either by direct call of 
23054 \begin_inset Flex Code
23055 status collapsed
23056
23057 \begin_layout Plain Layout
23058 VC_COMPARE
23059 \end_layout
23060
23061 \end_inset
23062
23063  \SpecialChar LyX
23064  function (for details see \SpecialChar LyX
23065  functions manual) or by icon/menu item 
23066 \begin_inset Flex Noun
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 Compare with older revision...
23071 \end_layout
23072
23073 \end_inset
23074
23075 .
23076  One can either compare two chosen revisions of the document or he can simply
23077  compare the current version of edited text with older revisions (where
23078  '
23079 \begin_inset Flex Noun
23080 status collapsed
23081
23082 \begin_layout Plain Layout
23083 0
23084 \end_layout
23085
23086 \end_inset
23087
23088 ' revisions back means comparison of the edited file with last commited
23089  revision).
23090  
23091 \end_layout
23092
23093 \begin_layout Standard
23094 This feature is supported for SVN and RCS though due to the more complicated
23095  versioning scheme of RCS there is a constraint – when addressing the revisions
23096  in dialog, numbers always point to the last number in RCS revision number,
23097  i.e.
23098  '35' in '1.2.35'.
23099  We don't currently support GIT addressing of revisions, one can just compare
23100  edited document with its revision X steps backs, where X is addressed as
23101  HEAD~X.
23102 \end_layout
23103
23104 \begin_layout Section
23105 Literate Programming
23106 \end_layout
23107
23108 \begin_layout Standard
23109 Updated by 
23110 \noun on
23111 Kayvan Sylvan 
23112 \noun default
23113 (kayvan@sylvan.com)
23114 \noun on
23115
23116 \noun default
23117 original documentation written by 
23118 \noun on
23119 Edmar Wienskoski Jr.
23120
23121 \noun default
23122  (edmar-w-jr@technologist.com)
23123 \end_layout
23124
23125 \begin_layout Subsection
23126 Introduction
23127 \end_layout
23128
23129 \begin_layout Standard
23130 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23131  for literate
23132  programming, where it is assumed that you are familiar with this programming
23133  technique, and know what 
23134 \begin_inset Quotes eld
23135 \end_inset
23136
23137 tangling
23138 \begin_inset Quotes erd
23139 \end_inset
23140
23141  and 
23142 \begin_inset Quotes eld
23143 \end_inset
23144
23145 weaving
23146 \begin_inset Quotes erd
23147 \end_inset
23148
23149  means.
23150  If that is not the case, please follow the web links provided in the following
23151  sections.
23152  There is a lot of good documentation out there covering old development
23153  history to the latest tools tips.
23154 \end_layout
23155
23156 \begin_layout Standard
23157 It is also assumed that you are familiar with \SpecialChar LyX
23158  itself to a point that you
23159  are comfortable changing your \SpecialChar LyX
23160  preferences, and X resources file.
23161  If that is not the case please refer to other \SpecialChar LyX
23162  documentation to cover your
23163  specific needs.
23164 \end_layout
23165
23166 \begin_layout Subsection
23167 Literate Programming
23168 \end_layout
23169
23170 \begin_layout Standard
23171 From the Literate Programming FAQ: 
23172 \end_layout
23173
23174 \begin_layout Quotation
23175 Literate programming is the combination of documentation and source together
23176  in a fashion suited for reading by human beings.
23177  In fact, literate programs should be enjoyable reading, even inviting!
23178  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23179  and documentation in a single file.
23180  Literate programming tools then parse the file to produce either readable
23181  documentation or compilable source.
23182  The WEB style of literate programming was created by D.
23183 \begin_inset space \thinspace{}
23184 \end_inset
23185
23186 E.
23187  Knuth during the development of his \SpecialChar TeX
23188  typesetting software.
23189  
23190 \end_layout
23191
23192 \begin_layout Standard
23193 Another excerpt says:
23194 \end_layout
23195
23196 \begin_layout Quotation
23197
23198 \emph on
23199 How is literate programming different from verbose commenting?
23200 \end_layout
23201
23202 \begin_layout Quotation
23203 There are three distinguishing characteristics.
23204  In order of importance, they are: 
23205 \end_layout
23206
23207 \begin_deeper
23208 \begin_layout Itemize
23209 flexible order of elaboration 
23210 \end_layout
23211
23212 \begin_layout Itemize
23213 automatic support for browsing 
23214 \end_layout
23215
23216 \begin_layout Itemize
23217 typeset documentation, especially diagrams and mathematics 
23218 \end_layout
23219
23220 \end_deeper
23221 \begin_layout Standard
23222 Now that I sparked your curiosity, take a look in the references.
23223 \end_layout
23224
23225 \begin_layout Subsubsection
23226 References
23227 \end_layout
23228
23229 \begin_layout Standard
23230 The complete Literate Programming FAQ can be found at:
23231 \end_layout
23232
23233 \begin_layout Quote
23234 Literate Programming FAQ 
23235 \begin_inset Flex URL
23236 status collapsed
23237
23238 \begin_layout Plain Layout
23239
23240 http://www.literateprogramming.com/lpfaq.pdf
23241 \end_layout
23242
23243 \end_inset
23244
23245
23246 \end_layout
23247
23248 \begin_layout Standard
23249 The FAQ lists 23 (twenty three!) different literate programming tools.
23250  Where some are specialized or 
23251 \begin_inset Quotes eld
23252 \end_inset
23253
23254 tailored
23255 \begin_inset Quotes erd
23256 \end_inset
23257
23258  for particular programming languages, while other have general scope.
23259  I selected 
23260 \noun on
23261 Noweb
23262 \noun default
23263  for my own use for several reasons:
23264 \end_layout
23265
23266 \begin_layout Itemize
23267 It can generate the documentation either in \SpecialChar LaTeX
23268  or HTML.
23269 \end_layout
23270
23271 \begin_layout Itemize
23272 It has a open architecture, i.
23273 \begin_inset space \thinspace{}
23274 \end_inset
23275
23276 e.
23277 \begin_inset space \space{}
23278 \end_inset
23279
23280 it is easy to plug in new filters and to perform special processing that
23281  you may need.
23282  
23283 \end_layout
23284
23285 \begin_layout Itemize
23286 There is a good selection of filters available already (the HTML is one
23287  of them).
23288 \end_layout
23289
23290 \begin_layout Itemize
23291 It is free.
23292 \end_layout
23293
23294 \begin_layout Standard
23295 The Noweb web page can be found at: 
23296 \end_layout
23297
23298 \begin_layout Quote
23299 Noweb home page 
23300 \begin_inset Flex URL
23301 status collapsed
23302
23303 \begin_layout Plain Layout
23304
23305 http://www.cs.virginia.edu/~nr/noweb/
23306 \end_layout
23307
23308 \end_inset
23309
23310
23311 \end_layout
23312
23313 \begin_layout Standard
23314 Starting from there you can reach many other interesting links and even
23315  some literate program examples.
23316 \end_layout
23317
23318 \begin_layout Subsection
23319 \SpecialChar LyX
23320  and Literate Programming with Noweb
23321 \end_layout
23322
23323 \begin_layout Standard
23324 The \SpecialChar LyX
23325  support for Literate Programming is provided by using the generic \SpecialChar LyX
23326
23327  converters mechanism.
23328  This support is provided in a 
23329 \begin_inset Quotes eld
23330 \end_inset
23331
23332 Noweb independent
23333 \begin_inset Quotes erd
23334 \end_inset
23335
23336  way, i.
23337 \begin_inset space \thinspace{}
23338 \end_inset
23339
23340 e.
23341 \begin_inset space \space{}
23342 \end_inset
23343
23344 you will be able to use this new \SpecialChar LyX
23345  feature with some other literate programming
23346  tool of your choice by just changing your \SpecialChar LyX
23347  preferences.
23348 \end_layout
23349
23350 \begin_layout Subsubsection
23351 Generating documents and code (weaving and tangling)
23352 \end_layout
23353
23354 \begin_layout Paragraph
23355 Using the noweb module
23356 \end_layout
23357
23358 \begin_layout Standard
23359 If you have installed Noweb and \SpecialChar LyX
23360  successfully, whenever you open a new document,
23361  after you have chosen its document class, use the Document->Settings menu
23362  to add the 
23363 \begin_inset Quotes eld
23364 \end_inset
23365
23366 noweb
23367 \begin_inset Quotes erd
23368 \end_inset
23369
23370  module.
23371  If Noweb is correctly installed, when you click on the 
23372 \begin_inset Quotes eld
23373 \end_inset
23374
23375 Modules
23376 \begin_inset Quotes erd
23377 \end_inset
23378
23379  link, you will see the 
23380 \begin_inset Quotes eld
23381 \end_inset
23382
23383 noweb
23384 \begin_inset Quotes erd
23385 \end_inset
23386
23387  module in the available list and you can add it to your document.
23388 \end_layout
23389
23390 \begin_layout Paragraph
23391 Typing code in
23392 \end_layout
23393
23394 \begin_layout Standard
23395 \SpecialChar LyX
23396  enables you to write code with a layout named 
23397 \begin_inset Flex Noun
23398 status collapsed
23399
23400 \begin_layout Plain Layout
23401 Chunk
23402 \end_layout
23403
23404 \end_inset
23405
23406 .
23407  Noweb delimits chunks like this:
23408 \end_layout
23409
23410 \begin_layout LyX-Code
23411 <<My code>>=
23412 \end_layout
23413
23414 \begin_layout LyX-Code
23415   code
23416 \end_layout
23417
23418 \begin_layout LyX-Code
23419   more code
23420 \end_layout
23421
23422 \begin_layout LyX-Code
23423   even more code
23424 \end_layout
23425
23426 \begin_layout LyX-Code
23427   @
23428 \end_layout
23429
23430 \begin_layout Standard
23431 The problem is that whatever is written in between the << and the 
23432 \family typewriter
23433 @
23434 \family default
23435  must be taken literally, i.
23436 \begin_inset space \thinspace{}
23437 \end_inset
23438
23439 e.
23440 \begin_inset space \space{}
23441 \end_inset
23442
23443 \SpecialChar LyX
23444  should be prevented from making any special interpretation of what has
23445  been written.
23446  This is also handled by 
23447 \begin_inset Flex Noun
23448 status collapsed
23449
23450 \begin_layout Plain Layout
23451 Chunk
23452 \end_layout
23453
23454 \end_inset
23455
23456 , that works like a normal paragraph but has a free spacing capability.
23457 \end_layout
23458
23459 \begin_layout Standard
23460 As a special note, you can also use the 
23461 \begin_inset Quotes eld
23462 \end_inset
23463
23464 %def
23465 \begin_inset Quotes erd
23466 \end_inset
23467
23468  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23469 rence:
23470 \end_layout
23471
23472 \begin_layout LyX-Code
23473 <<My chunk>>=
23474 \end_layout
23475
23476 \begin_layout LyX-Code
23477 def some_function(args):
23478 \end_layout
23479
23480 \begin_layout LyX-Code
23481    "This is the doc string for this function."
23482 \end_layout
23483
23484 \begin_layout LyX-Code
23485    print "My args: ", args
23486 \end_layout
23487
23488 \begin_layout LyX-Code
23489 @ %def some_function
23490 \end_layout
23491
23492 \begin_layout Standard
23493 For an example of this usage and the resulting cross-reference output, look
23494  at the Literate python program in 
23495 \emph on
23496 LIBDIR/examples/listerrors.lyx
23497 \emph default
23498  which should make this all clear.
23499 \end_layout
23500
23501 \begin_layout Paragraph
23502 Generating the documentation
23503 \end_layout
23504
23505 \begin_layout Standard
23506 At this point you already have a new document file with a proper document
23507  class, and with some code and text on it.
23508  How do I print it? The answer is simple, you select 
23509 \family sans
23510 View\SpecialChar menuseparator
23511 DVI,
23512 \family default
23513  etc.
23514  Just like you would do for a plain document.
23515  No special procedure is required.
23516 \end_layout
23517
23518 \begin_layout Standard
23519 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23520 :
23521 \end_layout
23522
23523 \begin_layout Enumerate
23524 When the 
23525 \family sans
23526 Update\SpecialChar menuseparator
23527 DVI
23528 \family default
23529  menu option is chosen, a \SpecialChar LaTeX
23530  file is generated.
23531  
23532 \end_layout
23533
23534 \begin_deeper
23535 \begin_layout Standard
23536 If the document is of any literate class the generated file will be named
23537  with an extension name defined by the 
23538 \begin_inset Quotes eld
23539 \end_inset
23540
23541 literate
23542 \begin_inset Quotes erd
23543 \end_inset
23544
23545  format (defined in the Preferences panel), otherwise the file will have
23546  the usual 
23547 \family typewriter
23548 .tex
23549 \family default
23550  extension.
23551 \end_layout
23552
23553 \end_deeper
23554 \begin_layout Enumerate
23555 Note that the only difference so far is in the name of the file, no special
23556  processing is required by \SpecialChar LyX
23557 .
23558  Given that you formatted the code using the 
23559 \begin_inset Flex Noun
23560 status collapsed
23561
23562 \begin_layout Plain Layout
23563 Chunk
23564 \end_layout
23565
23566 \end_inset
23567
23568  layout that, by itself, takes care of the business.
23569 \end_layout
23570
23571 \begin_layout Enumerate
23572 If the document is of any literate class \SpecialChar LyX
23573  will then use the internal \SpecialChar LyX
23574  to
23575  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23576  converter
23577 \begin_inset Foot
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 The converters are defined in the 
23582 \family sans
23583 Tools\SpecialChar menuseparator
23584 Preferences
23585 \family default
23586  panel, under the 
23587 \begin_inset Quotes eld
23588 \end_inset
23589
23590 Conversion
23591 \begin_inset Quotes erd
23592 \end_inset
23593
23594  tab.
23595  See section 
23596 \emph on
23597 Converters
23598 \emph default
23599  of the 
23600 \emph on
23601 Customization
23602 \emph default
23603  manual for general information about converters.
23604 \end_layout
23605
23606 \end_inset
23607
23608  to generate the \SpecialChar LaTeX
23609  file.
23610 \end_layout
23611
23612 \begin_deeper
23613 \begin_layout Standard
23614 Otherwise it will just skip this step.
23615 \end_layout
23616
23617 \end_deeper
23618 \begin_layout Enumerate
23619 Finally, \SpecialChar LaTeX
23620  is invoked and the regular post processing continues as in a plain
23621  document.
23622 \end_layout
23623
23624 \begin_layout Standard
23625 Independence from a particular 
23626 \begin_inset Quotes eld
23627 \end_inset
23628
23629 literate tool
23630 \begin_inset Quotes erd
23631 \end_inset
23632
23633  is easily achieved by changing the commands that are run by the various
23634  converters.
23635 \end_layout
23636
23637 \begin_layout Paragraph
23638 Generating the code
23639 \end_layout
23640
23641 \begin_layout Standard
23642 When the build menu option is chosen or the corresponding button in the
23643  toolbar is pressed, a \SpecialChar LaTeX
23644  file is generated just like step 1 above.
23645  Next, \SpecialChar LyX
23646  invokes the 
23647 \family typewriter
23648 Noweb->Program
23649 \family default
23650  converter.
23651  This converter needs to be defined by the user and is not installed by
23652  default, though the Program format is.
23653  This converter (like any other converter) will have two parts:
23654 \end_layout
23655
23656 \begin_layout Enumerate
23657 The converter program itself.
23658  This program performs the conversion from the one format to the other (in
23659  this case, from the Noweb format to the Program pseudo-format).
23660 \end_layout
23661
23662 \begin_layout Enumerate
23663 The error log parser.
23664  This is a program whose sole purpose is to rewrite error messages in a
23665  format that \SpecialChar LyX
23666  understands.
23667  This makes it possible for \SpecialChar LyX
23668  to place error boxes in the right places in
23669  the file buffer.
23670 \end_layout
23671
23672 \begin_layout Standard
23673 The first part, the 
23674 \begin_inset Quotes eld
23675 \end_inset
23676
23677 Converter
23678 \begin_inset Quotes erd
23679 \end_inset
23680
23681  setting, should be set to
23682 \begin_inset Newline newline
23683 \end_inset
23684
23685
23686 \begin_inset Quotes eld
23687 \end_inset
23688
23689
23690 \family typewriter
23691 build-script $$i
23692 \family default
23693  $$r
23694 \begin_inset Quotes erd
23695 \end_inset
23696
23697 .
23698 \begin_inset Newline newline
23699 \end_inset
23700
23701 This basically means that \SpecialChar LyX
23702  will call 
23703 \begin_inset Quotes eld
23704 \end_inset
23705
23706 build-script
23707 \begin_inset Quotes erd
23708 \end_inset
23709
23710  (a program or script) with the name of the Noweb file (normally a file
23711  in the \SpecialChar LyX
23712  temp directory) and the directory path of the original \SpecialChar LyX
23713  file.
23714  
23715 \end_layout
23716
23717 \begin_layout Standard
23718 This is an implementation of 
23719 \begin_inset Quotes eld
23720 \end_inset
23721
23722 build-script
23723 \begin_inset Quotes erd
23724 \end_inset
23725
23726  that you can place in a directory on your path:
23727 \end_layout
23728
23729 \begin_layout Standard
23730 \begin_inset VSpace defskip
23731 \end_inset
23732
23733
23734 \end_layout
23735
23736 \begin_layout Standard
23737 \begin_inset Newpage pagebreak
23738 \end_inset
23739
23740
23741 \end_layout
23742
23743 \begin_layout Standard
23744
23745 \family sans
23746 #!/bin/sh
23747 \end_layout
23748
23749 \begin_layout Standard
23750
23751 \family sans
23752 #
23753 \end_layout
23754
23755 \begin_layout Standard
23756
23757 \family sans
23758 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23759 \end_layout
23760
23761 \begin_layout Standard
23762 \begin_inset VSpace defskip
23763 \end_inset
23764
23765
23766 \end_layout
23767
23768 \begin_layout Standard
23769 The next part of the converter setting is the 
23770 \begin_inset Quotes eld
23771 \end_inset
23772
23773 Flags
23774 \begin_inset Quotes erd
23775 \end_inset
23776
23777  which is to be set to
23778 \begin_inset Newline newline
23779 \end_inset
23780
23781
23782 \begin_inset Quotes eld
23783 \end_inset
23784
23785
23786 \family typewriter
23787 parselog=$$s/scripts/listerrors
23788 \family default
23789
23790 \begin_inset Quotes erd
23791 \end_inset
23792
23793 .
23794 \begin_inset Newline newline
23795 \end_inset
23796
23797 This will run any errors that are generated by the 
23798 \begin_inset Quotes eld
23799 \end_inset
23800
23801 build-script
23802 \begin_inset Quotes erd
23803 \end_inset
23804
23805  process through the 
23806 \begin_inset Quotes eld
23807 \end_inset
23808
23809 listerrors
23810 \begin_inset Quotes erd
23811 \end_inset
23812
23813  program.
23814 \end_layout
23815
23816 \begin_layout Standard
23817 The build will normally take place in \SpecialChar LyX
23818 's temporary directory, so the files
23819  produced by the conversion will be in that directory.
23820  \SpecialChar LyX
23821  will copy out what it regards as the `main' file, but the 
23822 \family typewriter
23823 Noweb->Program
23824 \family default
23825  conversion may produce several files, and so most of these would then be
23826  deleted when \SpecialChar LyX
23827  was closed.
23828  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23829  the build-script chunk can place the generated files in that location.
23830 \end_layout
23831
23832 \begin_layout Paragraph
23833 Build instructions in the document
23834 \end_layout
23835
23836 \begin_layout Standard
23837 The last piece of the integration between \SpecialChar LyX
23838  and noweb is the 
23839 \begin_inset Quotes eld
23840 \end_inset
23841
23842 build-script
23843 \begin_inset Quotes erd
23844 \end_inset
23845
23846  chunk.
23847  Generally, the instructions for building your program should be embedded
23848  in a chunk of its own.
23849  The noweb-specific 
23850 \begin_inset Quotes eld
23851 \end_inset
23852
23853 build-script
23854 \begin_inset Quotes erd
23855 \end_inset
23856
23857  above uses the notangle command to look for this chunk (called 
23858 \begin_inset Quotes eld
23859 \end_inset
23860
23861 build-script
23862 \begin_inset Quotes erd
23863 \end_inset
23864
23865 ) and runs its contents through 
23866 \begin_inset Quotes eld
23867 \end_inset
23868
23869 sh
23870 \begin_inset Quotes erd
23871 \end_inset
23872
23873 .
23874 \end_layout
23875
23876 \begin_layout Standard
23877 Typically, such a chunk would look something like this:
23878 \end_layout
23879
23880 \begin_layout LyX-Code
23881 <<build-script>>=
23882 \end_layout
23883
23884 \begin_layout LyX-Code
23885 #!/bin/sh
23886 \begin_inset Newline newline
23887 \end_inset
23888
23889 if [ -z "${NOWEB_SOURCE}" ]
23890 \begin_inset Newline newline
23891 \end_inset
23892
23893 then
23894 \end_layout
23895
23896 \begin_layout LyX-Code
23897 NOWEB_SOURCE=myfile.nw
23898 \begin_inset Newline newline
23899 \end_inset
23900
23901 fi
23902 \begin_inset Newline newline
23903 \end_inset
23904
23905 [...
23906  code to extract files ...
23907  use NOWEB_OUTPUT_DIR here ...]
23908 \begin_inset Newline newline
23909 \end_inset
23910
23911 [...
23912  code to compile files ...]
23913 \begin_inset Newline newline
23914 \end_inset
23915
23916 @
23917 \end_layout
23918
23919 \begin_layout Standard
23920 Look in 
23921 \emph on
23922 LIBDIR/examples/listerrors.lyx
23923 \emph default
23924  or in 
23925 \emph on
23926 LIBDIR/examples/Literate.lyx
23927 \emph default
23928  which implement two versions of the 
23929 \begin_inset Quotes eld
23930 \end_inset
23931
23932 listerrors
23933 \begin_inset Quotes erd
23934 \end_inset
23935
23936  program for some illustrations of how all of these pieces go together or
23937  in 
23938 \emph on
23939 LIBDIR/examples/noweb2lyx.lyx.
23940
23941 \emph default
23942  Interestingly, these three files show off the language-indepence of the
23943  \SpecialChar LyX
23944  literate programming support since they are written in Python, C and Perl
23945  respectively.
23946 \end_layout
23947
23948 \begin_layout Subsubsection
23949 Configuring \SpecialChar LyX
23950
23951 \end_layout
23952
23953 \begin_layout Standard
23954 All the Literate Programming support is configured by the 
23955 \family sans
23956 Tools\SpecialChar menuseparator
23957 Preferences
23958 \family default
23959  panel in the 
23960 \begin_inset Quotes eld
23961 \end_inset
23962
23963 File Handling
23964 \begin_inset Quotes erd
23965 \end_inset
23966
23967  tab.
23968  The important parts are:
23969 \end_layout
23970
23971 \begin_layout Description
23972 the
23973 \begin_inset space ~
23974 \end_inset
23975
23976
23977 \begin_inset Quotes eld
23978 \end_inset
23979
23980 NoWeb
23981 \begin_inset Quotes erd
23982 \end_inset
23983
23984
23985 \begin_inset space ~
23986 \end_inset
23987
23988 format Set up via the File Formats tab, this is where the Noweb-specific
23989  pieces are set up.
23990  The 
23991 \family sans
23992 GUI Name
23993 \family default
23994  is set to 
23995 \family typewriter
23996 NoWeb
23997 \family default
23998 , the file extension is set to 
23999 \family typewriter
24000 .nw
24001 \family default
24002 .
24003  This tells \SpecialChar LyX
24004  to create a file with a 
24005 \family typewriter
24006 .nw
24007 \family default
24008  extension in the first step of the conversion process.
24009 \end_layout
24010
24011 \begin_layout Description
24012 the
24013 \begin_inset space ~
24014 \end_inset
24015
24016
24017 \family sans
24018 Program
24019 \family default
24020
24021 \begin_inset space ~
24022 \end_inset
24023
24024 format This is an empty format whose sole purpose is to be the endpoint
24025  of a conversion (which then allows us to set up a converter for it).
24026 \end_layout
24027
24028 \begin_layout Description
24029
24030 \family sans
24031 NoWeb
24032 \family default
24033 ->
24034 \family sans
24035 \SpecialChar LaTeX
24036
24037 \family default
24038  This converter performs the 
24039 \begin_inset Quotes eld
24040 \end_inset
24041
24042 weaving
24043 \begin_inset Quotes erd
24044 \end_inset
24045
24046  of the literate document.
24047  For Noweb, it is set to 
24048 \begin_inset Quotes eld
24049 \end_inset
24050
24051
24052 \family typewriter
24053 noweave -delay -index $$i > $$o
24054 \family default
24055
24056 \begin_inset Quotes erd
24057 \end_inset
24058
24059
24060 \end_layout
24061
24062 \begin_layout Description
24063
24064 \family sans
24065 NoWeb
24066 \family default
24067 ->
24068 \family sans
24069 Program
24070 \family default
24071  This performs the 
24072 \begin_inset Quotes eld
24073 \end_inset
24074
24075 tangling step
24076 \begin_inset Quotes erd
24077 \end_inset
24078
24079 .
24080  As stated above, the Converter is set to 
24081 \begin_inset Quotes eld
24082 \end_inset
24083
24084
24085 \family typewriter
24086 build-script $$i
24087 \family default
24088  $$r
24089 \begin_inset Quotes erd
24090 \end_inset
24091
24092 , with Flags set to
24093 \begin_inset Newline newline
24094 \end_inset
24095
24096
24097 \begin_inset Quotes eld
24098 \end_inset
24099
24100
24101 \family typewriter
24102 parselog=$$s/scripts/listerrors
24103 \family default
24104
24105 \begin_inset Quotes erd
24106 \end_inset
24107
24108 .
24109 \end_layout
24110
24111 \begin_layout Subsubsection
24112 Debug extensions
24113 \end_layout
24114
24115 \begin_layout Standard
24116 There is also a new function implemented in the \SpecialChar LyX
24117  server, the 
24118 \begin_inset Quotes eld
24119 \end_inset
24120
24121 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24122  
24123 \end_layout
24124
24125 \begin_layout Standard
24126 When debugging code with ddd/gdb, it is possible to invoke a text editor
24127  at the current execution position with a single key stroke.
24128  The default ddd configuration for that is shift-ctrl-V.
24129  It happens that you can define the editor command line invocation in ddd
24130  by accessing the 
24131 \family sans
24132 Edit\SpecialChar menuseparator
24133 Preferences\SpecialChar menuseparator
24134 Helpers
24135 \family default
24136  dialog and changing the "Edit Sources" entry.
24137 \end_layout
24138
24139 \begin_layout Standard
24140 I take advantage of the newly created \SpecialChar LyX
24141  server function and this ddd feature,
24142  and set 
24143 \begin_inset Quotes eld
24144 \end_inset
24145
24146 Edit Sources
24147 \begin_inset Quotes erd
24148 \end_inset
24149
24150  to:
24151 \end_layout
24152
24153 \begin_layout Standard
24154 \begin_inset VSpace defskip
24155 \end_inset
24156
24157
24158 \end_layout
24159
24160 \begin_layout Standard
24161
24162 \family sans
24163 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24164 \end_layout
24165
24166 \begin_layout Standard
24167 \begin_inset VSpace defskip
24168 \end_inset
24169
24170
24171 \end_layout
24172
24173 \begin_layout Standard
24174 With this, whenever you are using ddd and find a point in the program that
24175  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24176  ddd will forward this information to \SpecialChar LyX
24177  through the \SpecialChar LyX
24178  server and then the
24179  \SpecialChar LyX
24180  window will show the same file with the cursor at the same position ddd
24181  was pointing to.
24182  No more guessing or long scrolling to locate a point in the program back
24183  from debugging !
24184 \end_layout
24185
24186 \begin_layout Standard
24187 Note however that you must enable the \SpecialChar LyX
24188  server to get this feature working
24189  (it is disabled by default).
24190  You can enable it in 
24191 \family sans
24192 Preferences
24193 \family default
24194  (tabs 
24195 \family sans
24196 Inputs
24197 \family default
24198
24199 \family sans
24200 Paths
24201 \family default
24202 ) by entering in the 
24203 \family sans
24204 \SpecialChar LyX
24205 server pipe
24206 \family default
24207  a path like 
24208 \begin_inset Quotes eld
24209 \end_inset
24210
24211
24212 \family typewriter
24213 /home/<your-home-directory>/.lyx/lyxpipe
24214 \family default
24215
24216 \begin_inset Quotes erd
24217 \end_inset
24218
24219
24220 \end_layout
24221
24222 \begin_layout Standard
24223 Read the \SpecialChar LyX
24224  server documentation in the 
24225 \emph on
24226 Customization Manual
24227 \emph default
24228  for further information.
24229 \end_layout
24230
24231 \begin_layout Subsubsection
24232 Toolbar extensions
24233 \end_layout
24234
24235 \begin_layout Standard
24236 There are six new buttons that can be added to your \SpecialChar LyX
24237  toolbar.
24238  Five of these buttons are short cuts to layout styles: 
24239 \family sans
24240 Standard
24241 \family default
24242
24243 \family sans
24244 Section
24245 \family default
24246
24247 \family sans
24248 \SpecialChar LaTeX
24249
24250 \family default
24251
24252 \family sans
24253 \SpecialChar LyX
24254 -Code
24255 \family default
24256 , and 
24257 \family sans
24258 Chunk
24259 \family default
24260 .
24261  The last one is a short cut to the 
24262 \begin_inset Quotes eld
24263 \end_inset
24264
24265 Build Program
24266 \begin_inset Quotes erd
24267 \end_inset
24268
24269  File menu entry.
24270  
24271 \end_layout
24272
24273 \begin_layout Standard
24274 \SpecialChar LyX
24275  has a range of buttons that are available for tool bar customization.
24276  In my toolbar I like to combine the six short cuts above with two more:
24277  One for 
24278 \family sans
24279 Document
24280 \family default
24281 \SpecialChar menuseparator
24282
24283 \family sans
24284 Update
24285 \family default
24286 \SpecialChar menuseparator
24287
24288 \family sans
24289 DVI
24290 \family default
24291  and the other for 
24292 \family sans
24293 Document\SpecialChar menuseparator
24294 View\SpecialChar menuseparator
24295 DVI
24296 \family default
24297  File menu entries.
24298  Here is how it looks like:
24299 \end_layout
24300
24301 \begin_layout LyX-Code
24302 Toolbar
24303 \end_layout
24304
24305 \begin_layout LyX-Code
24306   Layouts
24307 \end_layout
24308
24309 \begin_layout LyX-Code
24310   Icon "layout Standard"
24311 \end_layout
24312
24313 \begin_layout LyX-Code
24314   Icon "layout Section"
24315 \end_layout
24316
24317 \begin_layout LyX-Code
24318   Icon "layout \SpecialChar LaTeX
24319 "
24320 \end_layout
24321
24322 \begin_layout LyX-Code
24323   Icon "layout \SpecialChar LyX
24324 -Code"
24325 \end_layout
24326
24327 \begin_layout LyX-Code
24328   Icon "layout Chunk"
24329 \end_layout
24330
24331 \begin_layout LyX-Code
24332   Separator
24333 \end_layout
24334
24335 \begin_layout LyX-Code
24336   Icon "buffer-view"
24337 \end_layout
24338
24339 \begin_layout LyX-Code
24340   Icon "buffer-typeset"
24341 \end_layout
24342
24343 \begin_layout LyX-Code
24344   Icon "build-program"
24345 \end_layout
24346
24347 \begin_layout LyX-Code
24348   Separator
24349 \end_layout
24350
24351 \begin_layout LyX-Code
24352 .
24353 \end_layout
24354
24355 \begin_layout LyX-Code
24356 .
24357 \end_layout
24358
24359 \begin_layout LyX-Code
24360 .
24361 \end_layout
24362
24363 \begin_layout LyX-Code
24364 End
24365 \end_layout
24366
24367 \begin_layout Subsubsection
24368 Colors customization
24369 \end_layout
24370
24371 \begin_layout Standard
24372 There are a number of colors in \SpecialChar LyX
24373  that can be customized in 
24374 \family sans
24375 Preferences
24376 \family default
24377 .
24378  One of the things that bothers people is the \SpecialChar LaTeX
24379  font color.
24380  The default color is red, since the chunks uses \SpecialChar LaTeX
24381  font, and there is a lot
24382  of chunks in literate documents, you may get tired of seeing everything
24383  in red.
24384  You can change it by going to the tabs 
24385 \family sans
24386 Look&Feel
24387 \family default
24388
24389 \family sans
24390 Colors.
24391 \end_layout
24392
24393 \begin_layout Standard
24394 The next thing is the visible presence of the newline character in the screen.
24395  You can choose the color of this particular character and make it blend
24396  in the background.
24397  I recommend you choosing a color that is close to the background but not
24398  equal, that way you still can see it is there, but it is not bothering
24399  you anymore.
24400 \end_layout
24401
24402 \begin_layout Subsection
24403 \SpecialChar LyX
24404  and knitr/Sweave
24405 \end_layout
24406
24407 \begin_layout Standard
24408 Support for 
24409 \family sans
24410 knitr
24411 \family default
24412  and 
24413 \family sans
24414 Sweave
24415 \family default
24416  is documented in the 
24417 \emph on
24418 knitr.lyx
24419 \emph default
24420  example file and in the Sweave manual (menu 
24421 \family sans
24422 Help\SpecialChar menuseparator
24423 Specific Manuals
24424 \family default
24425 ).
24426 \end_layout
24427
24428 \begin_layout Chapter
24429 Special features
24430 \end_layout
24431
24432 \begin_layout Standard
24433 You can do everything with \SpecialChar LyX
24434  that you can do with \SpecialChar LaTeX
24435 .
24436  However, \SpecialChar LyX
24437  cannot support every \SpecialChar LaTeX
24438  feature directly.
24439  But you can always use \SpecialChar TeX
24440  Code.
24441  This chapter shows you some more special things you might want to use.
24442  For other special things you can do with figures, tables, floats, boxes
24443  and notes, have a look at the 
24444 \emph on
24445 Embedded
24446 \begin_inset space ~
24447 \end_inset
24448
24449 Objects
24450 \emph default
24451  manual.
24452 \end_layout
24453
24454 \begin_layout Section
24455 Multiple Text Columns
24456 \end_layout
24457
24458 \begin_layout Standard
24459 This feature is independent of the option 
24460 \family sans
24461 Two-column document
24462 \family default
24463  in the document settings under 
24464 \family sans
24465 Text Layout
24466 \family default
24467 .
24468  If you want to have 2
24469 \begin_inset space ~
24470 \end_inset
24471
24472 columns for the whole document, it is recommended to use the 
24473 \family sans
24474 Two-column document
24475 \family default
24476  option.
24477  For all other cases use this feature.
24478 \end_layout
24479
24480 \begin_layout Standard
24481 To use multiple text columns in your document, you have to load the module
24482  
24483 \family sans
24484 Multiple Columns
24485 \family default
24486  (menu 
24487 \family sans
24488 Document\SpecialChar menuseparator
24489 Settings\SpecialChar menuseparator
24490 Modules
24491 \family default
24492 ) and must have the \SpecialChar LaTeX
24493 -package 
24494 \series bold
24495 multicol
24496 \series default
24497  installed.
24498 \end_layout
24499
24500 \begin_layout Standard
24501 Footnotes within multiple columns will be placed at the bottom of the page
24502  and not under each column.
24503  Within the different columns you can use everything, with the limitation
24504  that for floats you need to use the float option 
24505 \family sans
24506 Span columns
24507 \family default
24508 .
24509 \end_layout
24510
24511 \begin_layout Subsection
24512 Basics
24513 \end_layout
24514
24515 \begin_layout Standard
24516 If you want to have 2
24517 \begin_inset space ~
24518 \end_inset
24519
24520 columns in your text, insert a multicolumn inset via the menu 
24521 \family sans
24522 Insert\SpecialChar menuseparator
24523 Custom
24524 \begin_inset space ~
24525 \end_inset
24526
24527 Insets\SpecialChar menuseparator
24528 Multiple
24529 \begin_inset space ~
24530 \end_inset
24531
24532 Columns
24533 \family default
24534  where the columns should start.
24535  Write all text that should be printed in 2
24536 \begin_inset space ~
24537 \end_inset
24538
24539 columns into this inset.
24540 \end_layout
24541
24542 \begin_layout Standard
24543 Here is an example:
24544 \end_layout
24545
24546 \begin_layout Standard
24547 \noindent
24548 \begin_inset Flex Multiple Columns
24549 status open
24550
24551 \begin_layout Plain Layout
24552 \noindent
24553
24554 \series bold
24555 \size small
24556 The Adventure of the Empty House
24557 \series default
24558
24559 \begin_inset Newline newline
24560 \end_inset
24561
24562 by Sir Arthur Conan Doyle
24563 \end_layout
24564
24565 \begin_layout Plain Layout
24566
24567 \size small
24568 It was in the spring of the year 1894 that all London was interested, and
24569  the fashionable world dismayed, by the murder of the Honourable Ronald
24570  Adair under most unusual and inexplicable circumstances.
24571  The public has already learned those particulars of the crime which came
24572  out in the police investigation, but a good deal was suppressed upon that
24573  occasion, since the case for the prosecution was so overwhelmingly strong
24574  that it was not necessary to bring forward all the facts.
24575  Only now, at the end of nearly ten years, am I allowed to supply those
24576  missing links which make up the whole of that remarkable chain.
24577  The crime was of interest in itself, but that interest was as nothing to
24578  me compared to the inconceivable sequel, which afforded me the greatest
24579  shock and surprise of any event in my adventurous life.
24580  Even now, after this long interval, I find myself thrilling as I think
24581  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24582 ty which utterly submerged my mind.
24583  Let me say to that public, which has shown some interest in those glimpses
24584  which I have occasionally given them of the thoughts and actions of a very
24585  remarkable man, that they are not to blame me if I have not shared my knowledge
24586  with them, for I should have considered it my first duty to do so, had
24587  I not been barred by a positive prohibition from his own lips, which was
24588  only withdrawn upon the third of last month.
24589 \end_layout
24590
24591 \end_inset
24592
24593
24594 \end_layout
24595
24596 \begin_layout Standard
24597 To get 3 or more columns, set the cursor into the multicolumn inset and
24598  use the menu 
24599 \family sans
24600 Insert\SpecialChar menuseparator
24601 Number
24602 \begin_inset space ~
24603 \end_inset
24604
24605 of
24606 \begin_inset space ~
24607 \end_inset
24608
24609 Columns
24610 \family default
24611 .
24612  The number of the desired columns is written into that inset (for 3
24613 \begin_inset space ~
24614 \end_inset
24615
24616 columns write 
24617 \begin_inset Quotes eld
24618 \end_inset
24619
24620 3
24621 \begin_inset Quotes erd
24622 \end_inset
24623
24624 ).
24625 \begin_inset Newline newline
24626 \end_inset
24627
24628 Here is an example with 3
24629 \begin_inset space ~
24630 \end_inset
24631
24632 columns:
24633 \end_layout
24634
24635 \begin_layout Standard
24636 \begin_inset Flex Multiple Columns
24637 status open
24638
24639 \begin_layout Plain Layout
24640
24641 \size footnotesize
24642 \begin_inset Argument 1
24643 status open
24644
24645 \begin_layout Plain Layout
24646 3
24647 \end_layout
24648
24649 \end_inset
24650
24651 It can be imagined that my close intimacy with Sherlock Holmes had interested
24652  me deeply in crime, and that after his disappearance I never failed to
24653  read with care the various problems which came before the public.
24654  And I even attempted, more than once, for my own private satisfaction,
24655  to employ his methods in their solution, though with indifferent success.
24656  There was none, however, which appealed to me like this tragedy of Ronald
24657  Adair.
24658  As I read the evidence at the inquest, which led up to a verdict of willful
24659  murder against some person or persons unknown, I realized more clearly
24660  than I had ever done the loss which the community had sustained by the
24661  death of Sherlock Holmes.
24662  There were points about this strange business which would, I was sure,
24663  have specially appealed to him, and the efforts of the police would have
24664  been supplemented, or more probably anticipated, by the trained observation
24665  and the alert mind of the first criminal agent in Europe.
24666  All day, as I drove upon my round, I turned over the case in my mind and
24667  found no explanation which appeared to me to be adequate.
24668  At the risk of telling a twice-told tale, I will recapitulate the facts
24669  as they were known to the public at the conclusion of the inquest.
24670 \end_layout
24671
24672 \end_inset
24673
24674
24675 \end_layout
24676
24677 \begin_layout Standard
24678 You can have up to 10
24679 \begin_inset space ~
24680 \end_inset
24681
24682 columns if you want to, but that might not be very pleasant for the readers
24683  of your document.
24684 \end_layout
24685
24686 \begin_layout Standard
24687 \begin_inset Newpage newpage
24688 \end_inset
24689
24690
24691 \end_layout
24692
24693 \begin_layout Subsection
24694 Columns inside Columns
24695 \end_layout
24696
24697 \begin_layout Standard
24698 You can also have columns inside columns:
24699 \end_layout
24700
24701 \begin_layout Standard
24702 \begin_inset Flex Multiple Columns
24703 status open
24704
24705 \begin_layout Plain Layout
24706
24707 \size footnotesize
24708 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24709  at that time governor of one of the Australian colonies.
24710  Adair's mother had returned from Australia to undergo the operation for
24711  cataract, and she, her son Ronald, and her daughter Hilda were living together
24712  at 427 Park Lane.
24713 \end_layout
24714
24715 \begin_layout Plain Layout
24716 \begin_inset Flex Multiple Columns
24717 status open
24718
24719 \begin_layout Plain Layout
24720
24721 \size footnotesize
24722 The youth moved in the best society–had, so far as was known, no enemies
24723  and no particular vices.
24724  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24725  had been broken off by mutual consent some months before, and there was
24726  no sign that it had left any very profound feeling behind it.
24727  For the rest {sic} the man's life moved in a narrow and conventional circle,
24728  for his habits were quiet and his nature unemotional.
24729  Yet it was upon this easy-going young aristocrat that death came, in most
24730  strange and unexpected form, between the hours of ten and eleven-twenty
24731  on the night of March 30, 1894.
24732 \end_layout
24733
24734 \end_inset
24735
24736
24737 \end_layout
24738
24739 \begin_layout Plain Layout
24740
24741 \size footnotesize
24742 Ronald Adair was fond of cards–playing continually, but never for such stakes
24743  as would hurt him.
24744  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24745  It was shown that, after dinner on the day of his death, he had played
24746  a rubber of whist at the latter club.
24747  He had also played there in the afternoon.
24748
24749 \size default
24750  
24751 \size footnotesize
24752 The evidence of those who had played with him– Mr.
24753  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24754  and that there was a fairly equal fall of the cards.
24755  Adair might have lost five pounds, but not more.
24756  His fortune was a considerable one, and such a loss could not in any way
24757  affect him.
24758  He had played nearly every day at one club or other, but he was a cautious
24759  player, and usually rose a winner.
24760  It came out in evidence that, in partnership with Colonel Moran, he had
24761  actually won as much as four hundred and twenty pounds in a sitting, some
24762  weeks before, from Godfrey Milner and Lord Balmoral.
24763  So much for his recent history as it came out at the inquest.
24764 \end_layout
24765
24766 \end_inset
24767
24768
24769 \end_layout
24770
24771 \begin_layout Subsection
24772 Advanced Examples
24773 \end_layout
24774
24775 \begin_layout Standard
24776 The examples in this section show some more special features of multiple
24777  columns.
24778 \end_layout
24779
24780 \begin_layout Standard
24781 For more features of multiple columns, have a look at the documentation
24782  of the \SpecialChar LaTeX
24783 -package 
24784 \series bold
24785 multicol
24786 \series default
24787
24788 \begin_inset CommandInset citation
24789 LatexCommand cite
24790 key "multicol"
24791 literal "true"
24792
24793 \end_inset
24794
24795 .
24796 \end_layout
24797
24798 \begin_layout Subsubsection
24799 Preface
24800 \end_layout
24801
24802 \begin_layout Standard
24803 To add a preface text for multiple columns, set the cursor into the multicolumn
24804  inset and use the menu 
24805 \family sans
24806 Insert\SpecialChar menuseparator
24807 Preface
24808 \family default
24809 .
24810  Write your preface text into that inset.
24811 \begin_inset Newline newline
24812 \end_inset
24813
24814 This is an example with some preface text:
24815 \end_layout
24816
24817 \begin_layout Standard
24818 \begin_inset VSpace bigskip
24819 \end_inset
24820
24821
24822 \end_layout
24823
24824 \begin_layout Standard
24825 \begin_inset Flex Multiple Columns
24826 status open
24827
24828 \begin_layout Plain Layout
24829 \begin_inset Argument 2
24830 status open
24831
24832 \begin_layout Plain Layout
24833 And the story continues and continues and continues and continues\SpecialChar ldots
24834
24835 \end_layout
24836
24837 \end_inset
24838
24839
24840 \size small
24841 On the evening of the crime, he returned from the club exactly at ten.
24842  His mother and sister were out spending the evening with a relation.
24843  The servant deposed that she heard him enter the front room on the second
24844  floor, generally used as his sitting-room.
24845  She had lit a fire there, and as it smoked she had opened the window.
24846  No sound was heard from the room until eleven-twenty, the hour of the return
24847  of Lady Maynooth and her daughter.
24848  Desiring to say good-night, she attempted to enter her son's room.
24849  The door was locked on the inside, and no answer could be got to their
24850  cries and knocking.
24851  Help was obtained, and the door forced.
24852  The unfortunate young man was found lying near the table.
24853  His head had been horribly mutilated by an expanding revolver bullet, but
24854  no weapon of any sort was to be found in the room.
24855 \end_layout
24856
24857 \end_inset
24858
24859
24860 \end_layout
24861
24862 \begin_layout Standard
24863 You can also use a section heading as the preface if you use a section command
24864  as \SpecialChar TeX
24865  Code.
24866  For example the command
24867 \end_layout
24868
24869 \begin_layout Standard
24870
24871 \series bold
24872
24873 \backslash
24874 subsection{subsection title}
24875 \end_layout
24876
24877 \begin_layout Standard
24878 creates a subsection.
24879  In this example the preface is a subsubsection:
24880 \end_layout
24881
24882 \begin_layout Standard
24883 \begin_inset Flex Multiple Columns
24884 status open
24885
24886 \begin_layout Plain Layout
24887 \begin_inset Argument 2
24888 status open
24889
24890 \begin_layout Plain Layout
24891 \begin_inset ERT
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895
24896
24897 \backslash
24898 subsubsection{
24899 \end_layout
24900
24901 \end_inset
24902
24903 This is a subsubsection heading as a preface
24904 \begin_inset ERT
24905 status collapsed
24906
24907 \begin_layout Plain Layout
24908
24909 }
24910 \end_layout
24911
24912 \end_inset
24913
24914
24915 \end_layout
24916
24917 \end_inset
24918
24919
24920 \size small
24921 A minute examination of the circumstances served only to make the case more
24922  complex.
24923  In the first place, no reason could be given why the young man should have
24924  fastened the door upon the inside.
24925  There was the possibility that the murderer had done this, and had afterwards
24926  escaped by the window.
24927  The drop was at least twenty feet, however, and a bed of crocuses in full
24928  bloom lay beneath.
24929  Neither the flowers nor the earth showed any sign of having been disturbed,
24930  nor were there any marks upon the narrow strip of grass which separated
24931  the house from the road.
24932  Apparently, therefore, it was the young man himself who had fastened the
24933  door.
24934  But how did he come by his death? No one could have climbed up to the window
24935  without leaving traces.
24936  Suppose a man had fired through the window, he would indeed be a remarkable
24937  shot who could with a revolver inflict so deadly a wound.
24938  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24939  a hundred yards of the house.
24940  No one had heard a shot.
24941 \end_layout
24942
24943 \end_inset
24944
24945
24946 \end_layout
24947
24948 \begin_layout Standard
24949 If there is less vertical space than 6
24950 \begin_inset space ~
24951 \end_inset
24952
24953 text lines is left on the page at the beginning of the multiple columns,
24954  a page break will be inserted before the multiple columns.
24955  Depending on the number of lines of the preface text, you might want to
24956  change this space.
24957  This is done by setting the cursor into the mulitcolumn inset behind the
24958  preface (if there is any) and using the menu 
24959 \family sans
24960 Insert\SpecialChar menuseparator
24961 Space
24962 \begin_inset space ~
24963 \end_inset
24964
24965 Before
24966 \begin_inset space ~
24967 \end_inset
24968
24969 Page
24970 \begin_inset space ~
24971 \end_inset
24972
24973 Break
24974 \family default
24975 .
24976  Insert into that inset the amount of space like e.
24977 \begin_inset space \thinspace{}
24978 \end_inset
24979
24980 g.
24981 \begin_inset space \space{}
24982 \end_inset
24983
24984
24985 \begin_inset Quotes eld
24986 \end_inset
24987
24988 5cm
24989 \begin_inset Quotes erd
24990 \end_inset
24991
24992 .
24993 \begin_inset Newline newline
24994 \end_inset
24995
24996 In this example the space is set to 7
24997 \begin_inset space ~
24998 \end_inset
24999
25000 text lines by using 
25001 \begin_inset Quotes eld
25002 \end_inset
25003
25004 7
25005 \backslash
25006 baselineskip
25007 \begin_inset Quotes erd
25008 \end_inset
25009
25010  (where the command 
25011 \series bold
25012
25013 \backslash
25014 baselineskip
25015 \series default
25016  needs to be inserted as \SpecialChar TeX
25017  code):
25018 \end_layout
25019
25020 \begin_layout Standard
25021 \begin_inset Flex Multiple Columns
25022 status open
25023
25024 \begin_layout Plain Layout
25025 \begin_inset Argument 3
25026 status open
25027
25028 \begin_layout Plain Layout
25029 7
25030 \begin_inset ERT
25031 status collapsed
25032
25033 \begin_layout Plain Layout
25034
25035
25036 \backslash
25037 baselineskip
25038 \end_layout
25039
25040 \end_inset
25041
25042
25043 \end_layout
25044
25045 \end_inset
25046
25047
25048 \size small
25049 On the evening of the crime, he returned from the club exactly at ten.
25050  His mother and sister were out spending the evening with a relation.
25051  The servant deposed that she heard him enter the front room on the second
25052  floor, generally used as his sitting-room.
25053  She had lit a fire there, and as it smoked she had opened the window.
25054  No sound was heard from the room until eleven-twenty, the hour of the return
25055  of Lady Maynooth and her daughter.
25056  Desiring to say good-night, she attempted to enter her son's room.
25057  The door was locked on the inside, and no answer could be got to their
25058  cries and knocking.
25059  Help was obtained, and the door forced.
25060  The unfortunate young man was found lying near the table.
25061  His head had been horribly mutilated by an expanding revolver bullet, but
25062  no weapon of any sort was to be found in the room.
25063 \end_layout
25064
25065 \end_inset
25066
25067
25068 \end_layout
25069
25070 \begin_layout Subsubsection
25071 Surrounding Space
25072 \end_layout
25073
25074 \begin_layout Standard
25075 The amount of space before and after multiple columns can be changed by
25076  changing the length 
25077 \series bold
25078
25079 \backslash
25080 multicolsep
25081 \series default
25082 .
25083  For example the command
25084 \end_layout
25085
25086 \begin_layout Standard
25087
25088 \series bold
25089
25090 \backslash
25091 setlength{
25092 \backslash
25093 multicolsep}{3cm}
25094 \end_layout
25095
25096 \begin_layout Standard
25097 in \SpecialChar TeX
25098  Code changes its value to 3
25099 \begin_inset space \thinspace{}
25100 \end_inset
25101
25102 cm.
25103  The change must be made before the multiple columns' start.
25104  The predefined value is 13
25105 \begin_inset space \thinspace{}
25106 \end_inset
25107
25108 pt.
25109 \end_layout
25110
25111 \begin_layout Standard
25112 For this example 
25113 \series bold
25114
25115 \backslash
25116 multicolsep
25117 \series default
25118  was set to 2.5
25119 \begin_inset space \thinspace{}
25120 \end_inset
25121
25122 cm:
25123 \end_layout
25124
25125 \begin_layout Standard
25126 \begin_inset ERT
25127 status open
25128
25129 \begin_layout Plain Layout
25130
25131
25132 \backslash
25133 setlength{
25134 \backslash
25135 multicolsep}{2.5cm}
25136 \end_layout
25137
25138 \end_inset
25139
25140
25141 \end_layout
25142
25143 \begin_layout Standard
25144 \begin_inset Flex Multiple Columns
25145 status open
25146
25147 \begin_layout Plain Layout
25148
25149 \size small
25150 All day I turned these facts over in my mind, endeavouring to hit upon some
25151  theory which could reconcile them all, and to find that line of least resistanc
25152 e which my poor friend had declared to be the starting-point of every investigat
25153 ion.
25154  I confess that I made little progress.
25155  In the evening I strolled across the Park, and found myself about six o'clock
25156  at the Oxford Street end of Park Lane.
25157  A group of loafers upon the pavements, all staring up at a particular window,
25158  directed me to the house which I had come to see.
25159  A tall, thin man with coloured glasses, whom I strongly suspected of being
25160  a plain-clothes detective, was pointing out some theory of his own, while
25161  the others crowded round to listen to what he said.
25162  I got as near him as I could, but his observations seemed to me to be absurd,
25163  so I withdrew again in some disgust.
25164  As I did so I struck against an elderly, deformed man, who had been behind
25165  me, and I knocked down several books which he was carrying.
25166 \end_layout
25167
25168 \end_inset
25169
25170
25171 \end_layout
25172
25173 \begin_layout Standard
25174 \begin_inset Note Greyedout
25175 status open
25176
25177 \begin_layout Plain Layout
25178
25179 \series bold
25180 Note:
25181 \series default
25182  The values you set with 
25183 \series bold
25184
25185 \backslash
25186 setlength
25187 \series default
25188  will be used for all following multiple columns until you change them again.
25189 \end_layout
25190
25191 \end_inset
25192
25193
25194 \end_layout
25195
25196 \begin_layout Standard
25197 \begin_inset ERT
25198 status collapsed
25199
25200 \begin_layout Plain Layout
25201
25202
25203 \backslash
25204 setlength{
25205 \backslash
25206 multicolsep}{13pt}
25207 \end_layout
25208
25209 \end_inset
25210
25211
25212 \begin_inset Note Note
25213 status collapsed
25214
25215 \begin_layout Plain Layout
25216 go back to the default
25217 \end_layout
25218
25219 \end_inset
25220
25221
25222 \end_layout
25223
25224 \begin_layout Standard
25225 \begin_inset Newpage newpage
25226 \end_inset
25227
25228
25229 \end_layout
25230
25231 \begin_layout Subsubsection
25232 Column Breaks
25233 \end_layout
25234
25235 \begin_layout Standard
25236 A column break can be forced by inserting the command 
25237 \series bold
25238
25239 \backslash
25240 columnbreak{}
25241 \series default
25242  as \SpecialChar TeX
25243  Code to that position in the text where the column should be broken.
25244  Note that this leads in most cases to whitespace in the text.
25245 \begin_inset Newline newline
25246 \end_inset
25247
25248 Here is an example:
25249 \end_layout
25250
25251 \begin_layout Standard
25252 \begin_inset Flex Multiple Columns
25253 status open
25254
25255 \begin_layout Plain Layout
25256
25257 \size small
25258 \begin_inset Quotes eld
25259 \end_inset
25260
25261 You're surprised to see me, sir,
25262 \begin_inset Quotes erd
25263 \end_inset
25264
25265  said he, in a strange, croaking voice.
25266 \end_layout
25267
25268 \begin_layout Plain Layout
25269
25270 \size small
25271 I acknowledged that I was.
25272 \end_layout
25273
25274 \begin_layout Plain Layout
25275
25276 \size small
25277 \begin_inset Quotes eld
25278 \end_inset
25279
25280 Well, I've a conscience, sir, and when I chanced to see you go into this
25281  house, as I came hobbling after you, I thought to myself, I'll just step
25282  in and see that kind gentleman, and tell him that if I was a bit gruff
25283  in my manner there was not any harm meant, and that I am much obliged to
25284  him for picking up my books.
25285 \begin_inset Quotes erd
25286 \end_inset
25287
25288
25289 \end_layout
25290
25291 \begin_layout Plain Layout
25292
25293 \size small
25294 \begin_inset Quotes eld
25295 \end_inset
25296
25297 You make too much of a trifle,
25298 \begin_inset Quotes erd
25299 \end_inset
25300
25301  said I.
25302  
25303 \begin_inset Quotes eld
25304 \end_inset
25305
25306 May I ask how you knew who I was?
25307 \begin_inset Quotes erd
25308 \end_inset
25309
25310  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25311 \begin_inset ERT
25312 status collapsed
25313
25314 \begin_layout Plain Layout
25315
25316
25317 \backslash
25318 columnbreak{}
25319 \end_layout
25320
25321 \end_inset
25322
25323
25324 \end_layout
25325
25326 \begin_layout Plain Layout
25327
25328 \size small
25329 \begin_inset Quotes eld
25330 \end_inset
25331
25332 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25333  you'll find my little bookshop at the corner of Church Street, and very
25334  happy to see you, I am sure.
25335  Maybe you collect yourself, sir.
25336  Here's 
25337 \noun on
25338 British
25339 \begin_inset space ~
25340 \end_inset
25341
25342 Birds
25343 \noun default
25344 , and 
25345 \noun on
25346 Catullus
25347 \noun default
25348 , and 
25349 \noun on
25350 The Holy War
25351 \noun default
25352 –a bargain, every one of them.
25353  With five volumes you could just fill that gap on that second shelf.
25354  It looks untidy, does it not, sir?
25355 \begin_inset Quotes erd
25356 \end_inset
25357
25358
25359 \end_layout
25360
25361 \end_inset
25362
25363
25364 \end_layout
25365
25366 \begin_layout Subsubsection
25367 Column Separation
25368 \end_layout
25369
25370 \begin_layout Standard
25371 The width of the columns is automatically calculated, but you can modify
25372  the space between the columns.
25373  This is done by changing the length 
25374 \series bold
25375
25376 \backslash
25377 columnsep
25378 \series default
25379 .
25380  Its predefined value is 10
25381 \begin_inset space \thinspace{}
25382 \end_inset
25383
25384 pt.
25385  Here is an example where 
25386 \series bold
25387
25388 \backslash
25389 columnsep
25390 \series default
25391  is set to 3
25392 \begin_inset space \thinspace{}
25393 \end_inset
25394
25395 cm:
25396 \end_layout
25397
25398 \begin_layout Standard
25399 \begin_inset ERT
25400 status open
25401
25402 \begin_layout Plain Layout
25403
25404
25405 \backslash
25406 setlength{
25407 \backslash
25408 columnsep}{3cm}
25409 \end_layout
25410
25411 \end_inset
25412
25413
25414 \end_layout
25415
25416 \begin_layout Standard
25417 \begin_inset Flex Multiple Columns
25418 status open
25419
25420 \begin_layout Plain Layout
25421
25422 \size small
25423 My observations of No.
25424 \begin_inset space \space{}
25425 \end_inset
25426
25427 427 Park Lane did little to clear up the problem in which I was interested.
25428  The house was separated from the street by a low wall and railing, the
25429  whole not more than five feet high.
25430  It was perfectly easy, therefore, for anyone to get into the garden, but
25431  the window was entirely inaccessible, since there was no water pipe or
25432  anything which could help the most active man to climb it.
25433  More puzzled than ever, I retraced my steps to Kensington.
25434  I had not been in my study five minutes when the maid entered to say that
25435  a person desired to see me.
25436  To my astonishment it was none other than my strange old book collector,
25437  his sharp, wizened face peering out from a frame of white hair, and his
25438  precious volumes, a dozen of them at least, wedged under his right arm.
25439 \end_layout
25440
25441 \end_inset
25442
25443
25444 \end_layout
25445
25446 \begin_layout Standard
25447 \begin_inset ERT
25448 status collapsed
25449
25450 \begin_layout Plain Layout
25451
25452
25453 \backslash
25454 setlength{
25455 \backslash
25456 columnsep}{10pt}
25457 \end_layout
25458
25459 \end_inset
25460
25461
25462 \begin_inset Note Note
25463 status collapsed
25464
25465 \begin_layout Plain Layout
25466 go back to the default
25467 \end_layout
25468
25469 \end_inset
25470
25471
25472 \end_layout
25473
25474 \begin_layout Subsubsection
25475 Vertical Lines
25476 \end_layout
25477
25478 \begin_layout Standard
25479 Between the columns a rule with a width of the length 
25480 \series bold
25481
25482 \backslash
25483 columnseprule
25484 \series default
25485  is placed.
25486  If this rule width is set to 0
25487 \begin_inset space \thinspace{}
25488 \end_inset
25489
25490 pt (this is the default), the rule is suppressed.
25491  In the following example the rule is 2
25492 \begin_inset space \thinspace{}
25493 \end_inset
25494
25495 pt wide:
25496 \end_layout
25497
25498 \begin_layout Standard
25499 \begin_inset ERT
25500 status open
25501
25502 \begin_layout Plain Layout
25503
25504
25505 \backslash
25506 setlength{
25507 \backslash
25508 columnseprule}{2pt}
25509 \end_layout
25510
25511 \end_inset
25512
25513
25514 \end_layout
25515
25516 \begin_layout Standard
25517 \begin_inset Flex Multiple Columns
25518 status open
25519
25520 \begin_layout Plain Layout
25521
25522 \size small
25523 \begin_inset Quotes eld
25524 \end_inset
25525
25526 You're surprised to see me, sir,
25527 \begin_inset Quotes erd
25528 \end_inset
25529
25530  said he, in a strange, croaking voice.
25531 \end_layout
25532
25533 \begin_layout Plain Layout
25534
25535 \size small
25536 I acknowledged that I was.
25537 \end_layout
25538
25539 \begin_layout Plain Layout
25540
25541 \size small
25542 \begin_inset Quotes eld
25543 \end_inset
25544
25545 Well, I've a conscience, sir, and when I chanced to see you go into this
25546  house, as I came hobbling after you, I thought to myself, I'll just step
25547  in and see that kind gentleman, and tell him that if I was a bit gruff
25548  in my manner there was not any harm meant, and that I am much obliged to
25549  him for picking up my books.
25550 \begin_inset Quotes erd
25551 \end_inset
25552
25553
25554 \end_layout
25555
25556 \begin_layout Plain Layout
25557
25558 \size small
25559 \begin_inset Quotes eld
25560 \end_inset
25561
25562 You make too much of a trifle,
25563 \begin_inset Quotes erd
25564 \end_inset
25565
25566  said I.
25567  
25568 \begin_inset Quotes eld
25569 \end_inset
25570
25571 May I ask how you knew who I was?
25572 \begin_inset Quotes erd
25573 \end_inset
25574
25575
25576 \end_layout
25577
25578 \begin_layout Plain Layout
25579
25580 \size small
25581 \begin_inset Quotes eld
25582 \end_inset
25583
25584 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25585  you'll find my little bookshop at the corner of Church Street, and very
25586  happy to see you, I am sure.
25587  Maybe you collect yourself, sir.
25588  Here's 
25589 \noun on
25590 British
25591 \begin_inset space ~
25592 \end_inset
25593
25594 Birds
25595 \noun default
25596 , and 
25597 \noun on
25598 Catullus
25599 \noun default
25600 , and 
25601 \noun on
25602 The Holy War
25603 \noun default
25604 –a bargain, every one of them.
25605  With five volumes you could just fill that gap on that second shelf.
25606  It looks untidy, does it not, sir?
25607 \begin_inset Quotes erd
25608 \end_inset
25609
25610
25611 \end_layout
25612
25613 \end_inset
25614
25615
25616 \end_layout
25617
25618 \begin_layout Standard
25619 \begin_inset VSpace defskip
25620 \end_inset
25621
25622
25623 \end_layout
25624
25625 \begin_layout Standard
25626 The rule can be colored by redefining the command 
25627 \series bold
25628
25629 \backslash
25630 columnseprulecolor
25631 \series default
25632 .
25633  This is done by inserting the command
25634 \begin_inset Newline newline
25635 \end_inset
25636
25637
25638 \series bold
25639
25640 \backslash
25641 renewcommand{
25642 \backslash
25643 columnseprulecolor}{
25644 \backslash
25645 color{red}}
25646 \series default
25647
25648 \begin_inset Newline newline
25649 \end_inset
25650
25651 as \SpecialChar TeX
25652  Code before the multicolumn inset.
25653  Replace 
25654 \series bold
25655 red
25656 \series default
25657  in this command by a color of your choice.
25658  You can use all pre- and self-defined colors.
25659  See the 
25660 \emph on
25661 EmbeddedObjects
25662 \emph default
25663  manual, section 
25664 \emph on
25665 Colored
25666 \begin_inset space ~
25667 \end_inset
25668
25669 Tables
25670 \emph default
25671  for more information about pre- and self-defined colors.
25672  To go back to the default color insert the command
25673 \begin_inset Newline newline
25674 \end_inset
25675
25676
25677 \series bold
25678
25679 \backslash
25680 renewcommand{
25681 \backslash
25682 columnseprulecolor}{
25683 \backslash
25684 normalcolor}
25685 \series default
25686
25687 \begin_inset Newline newline
25688 \end_inset
25689
25690 Here is the example with a cyan rule and 1
25691 \begin_inset space \thinspace{}
25692 \end_inset
25693
25694 cm column separation:
25695 \end_layout
25696
25697 \begin_layout Standard
25698 \begin_inset ERT
25699 status open
25700
25701 \begin_layout Plain Layout
25702
25703
25704 \backslash
25705 setlength{
25706 \backslash
25707 columnsep}{1cm}
25708 \end_layout
25709
25710 \begin_layout Plain Layout
25711
25712
25713 \backslash
25714 renewcommand{
25715 \backslash
25716 columnseprulecolor}{
25717 \backslash
25718 color{cyan}}
25719 \end_layout
25720
25721 \end_inset
25722
25723
25724 \end_layout
25725
25726 \begin_layout Standard
25727 \begin_inset Flex Multiple Columns
25728 status open
25729
25730 \begin_layout Plain Layout
25731
25732 \size small
25733 \begin_inset Quotes eld
25734 \end_inset
25735
25736 You're surprised to see me, sir,
25737 \begin_inset Quotes erd
25738 \end_inset
25739
25740  said he, in a strange, croaking voice.
25741 \end_layout
25742
25743 \begin_layout Plain Layout
25744
25745 \size small
25746 I acknowledged that I was.
25747 \end_layout
25748
25749 \begin_layout Plain Layout
25750
25751 \size small
25752 \begin_inset Quotes eld
25753 \end_inset
25754
25755 Well, I've a conscience, sir, and when I chanced to see you go into this
25756  house, as I came hobbling after you, I thought to myself, I'll just step
25757  in and see that kind gentleman, and tell him that if I was a bit gruff
25758  in my manner there was not any harm meant, and that I am much obliged to
25759  him for picking up my books.
25760 \begin_inset Quotes erd
25761 \end_inset
25762
25763
25764 \end_layout
25765
25766 \begin_layout Plain Layout
25767
25768 \size small
25769 \begin_inset Quotes eld
25770 \end_inset
25771
25772 You make too much of a trifle,
25773 \begin_inset Quotes erd
25774 \end_inset
25775
25776  said I.
25777  
25778 \begin_inset Quotes eld
25779 \end_inset
25780
25781 May I ask how you knew who I was?
25782 \begin_inset Quotes erd
25783 \end_inset
25784
25785
25786 \end_layout
25787
25788 \begin_layout Plain Layout
25789
25790 \size small
25791 \begin_inset Quotes eld
25792 \end_inset
25793
25794 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25795  you'll find my little bookshop at the corner of Church Street, and very
25796  happy to see you, I am sure.
25797  Maybe you collect yourself, sir.
25798  Here's 
25799 \noun on
25800 British
25801 \begin_inset space ~
25802 \end_inset
25803
25804 Birds
25805 \noun default
25806 , and 
25807 \noun on
25808 Catullus
25809 \noun default
25810 , and 
25811 \noun on
25812 The Holy War
25813 \noun default
25814 –a bargain, every one of them.
25815  With five volumes you could just fill that gap on that second shelf.
25816  It looks untidy, does it not, sir?
25817 \begin_inset Quotes erd
25818 \end_inset
25819
25820
25821 \end_layout
25822
25823 \end_inset
25824
25825
25826 \end_layout
25827
25828 \begin_layout Standard
25829 \begin_inset ERT
25830 status collapsed
25831
25832 \begin_layout Plain Layout
25833
25834
25835 \backslash
25836 setlength{
25837 \backslash
25838 columnseprule}{0pt}
25839 \end_layout
25840
25841 \begin_layout Plain Layout
25842
25843
25844 \backslash
25845 renewcommand{
25846 \backslash
25847 columnseprulecolor}{
25848 \backslash
25849 normalcolor}
25850 \end_layout
25851
25852 \end_inset
25853
25854
25855 \begin_inset Note Note
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 go back to the default
25860 \end_layout
25861
25862 \end_inset
25863
25864
25865 \end_layout
25866
25867 \begin_layout Section
25868 Non-standard Paragraph Shapes
25869 \end_layout
25870
25871 \begin_layout Standard
25872 \noindent
25873 \SpecialChar LaTeX
25874  as well as any other text processor uses by default rectangular paragraphs.
25875  For special cases like for example posters, invitation cards or poems you
25876  can modify the paragraph shape to one of your choice.
25877  This can be done by using the \SpecialChar LaTeX
25878 -package 
25879 \series bold
25880 shapepar
25881 \series default
25882  which is loaded by using in the document settings the module 
25883 \family sans
25884 Custom paragraph shapes
25885 \family default
25886 .
25887 \end_layout
25888
25889 \begin_layout Subsection
25890 Predefined shapes
25891 \end_layout
25892
25893 \begin_layout Standard
25894
25895 \series bold
25896 shapepar
25897 \series default
25898  provides the following shapes:
25899 \end_layout
25900
25901 \begin_layout Standard
25902 \begin_inset Tabular
25903 <lyxtabular version="3" rows="13" columns="3">
25904 <features booktabs="true" islongtable="true" longtabularalignment="center">
25905 <column alignment="center" valignment="middle" width="16col%">
25906 <column alignment="center" valignment="middle" width="40col%">
25907 <column alignment="center" valignment="middle" width="35col%">
25908 <row endhead="true">
25909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25910 \begin_inset Text
25911
25912 \begin_layout Plain Layout
25913 Name
25914 \end_layout
25915
25916 \end_inset
25917 </cell>
25918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25919 \begin_inset Text
25920
25921 \begin_layout Plain Layout
25922 Description
25923 \end_layout
25924
25925 \end_inset
25926 </cell>
25927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25928 \begin_inset Text
25929
25930 \begin_layout Plain Layout
25931 Annotation
25932 \end_layout
25933
25934 \end_inset
25935 </cell>
25936 </row>
25937 <row>
25938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25939 \begin_inset Text
25940
25941 \begin_layout Plain Layout
25942 CDlabel
25943 \end_layout
25944
25945 \end_inset
25946 </cell>
25947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25948 \begin_inset Text
25949
25950 \begin_layout Plain Layout
25951 Circle with circular hole (in the size of a CD/DVD)
25952 \end_layout
25953
25954 \end_inset
25955 </cell>
25956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25957 \begin_inset Text
25958
25959 \begin_layout Plain Layout
25960 Cannot be scaled, take care there is not too much text
25961 \end_layout
25962
25963 \end_inset
25964 </cell>
25965 </row>
25966 <row>
25967 <cell alignment="center" valignment="top" topline="true" usebox="none">
25968 \begin_inset Text
25969
25970 \begin_layout Plain Layout
25971 Circle
25972 \end_layout
25973
25974 \end_inset
25975 </cell>
25976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25977 \begin_inset Text
25978
25979 \begin_layout Plain Layout
25980 Circle
25981 \end_layout
25982
25983 \end_inset
25984 </cell>
25985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25986 \begin_inset Text
25987
25988 \begin_layout Plain Layout
25989 Fragile, calculation might fail
25990 \end_layout
25991
25992 \end_inset
25993 </cell>
25994 </row>
25995 <row>
25996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25997 \begin_inset Text
25998
25999 \begin_layout Plain Layout
26000 Diamond
26001 \end_layout
26002
26003 \end_inset
26004 </cell>
26005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26006 \begin_inset Text
26007
26008 \begin_layout Plain Layout
26009 Rhomboid (symbolizing a 
26010 \begin_inset Quotes eld
26011 \end_inset
26012
26013 diamond
26014 \begin_inset Quotes erd
26015 \end_inset
26016
26017 )
26018 \end_layout
26019
26020 \end_inset
26021 </cell>
26022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26023 \begin_inset Text
26024
26025 \begin_layout Plain Layout
26026 -
26027 \end_layout
26028
26029 \end_inset
26030 </cell>
26031 </row>
26032 <row>
26033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26034 \begin_inset Text
26035
26036 \begin_layout Plain Layout
26037 Heart
26038 \end_layout
26039
26040 \end_inset
26041 </cell>
26042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26043 \begin_inset Text
26044
26045 \begin_layout Plain Layout
26046 Heart-like shape
26047 \end_layout
26048
26049 \end_inset
26050 </cell>
26051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26052 \begin_inset Text
26053
26054 \begin_layout Plain Layout
26055 -
26056 \end_layout
26057
26058 \end_inset
26059 </cell>
26060 </row>
26061 <row>
26062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26063 \begin_inset Text
26064
26065 \begin_layout Plain Layout
26066 Hexagon
26067 \end_layout
26068
26069 \end_inset
26070 </cell>
26071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26072 \begin_inset Text
26073
26074 \begin_layout Plain Layout
26075 Hexagon
26076 \end_layout
26077
26078 \end_inset
26079 </cell>
26080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26081 \begin_inset Text
26082
26083 \begin_layout Plain Layout
26084 -
26085 \end_layout
26086
26087 \end_inset
26088 </cell>
26089 </row>
26090 <row>
26091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26092 \begin_inset Text
26093
26094 \begin_layout Plain Layout
26095 Nut
26096 \end_layout
26097
26098 \end_inset
26099 </cell>
26100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26101 \begin_inset Text
26102
26103 \begin_layout Plain Layout
26104 Nut for bolt (hexagon with circular hole)
26105 \end_layout
26106
26107 \end_inset
26108 </cell>
26109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26110 \begin_inset Text
26111
26112 \begin_layout Plain Layout
26113 -
26114 \end_layout
26115
26116 \end_inset
26117 </cell>
26118 </row>
26119 <row>
26120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26121 \begin_inset Text
26122
26123 \begin_layout Plain Layout
26124 Square
26125 \end_layout
26126
26127 \end_inset
26128 </cell>
26129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26130 \begin_inset Text
26131
26132 \begin_layout Plain Layout
26133 Square
26134 \end_layout
26135
26136 \end_inset
26137 </cell>
26138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26139 \begin_inset Text
26140
26141 \begin_layout Plain Layout
26142 -
26143 \end_layout
26144
26145 \end_inset
26146 </cell>
26147 </row>
26148 <row>
26149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26150 \begin_inset Text
26151
26152 \begin_layout Plain Layout
26153 Star
26154 \end_layout
26155
26156 \end_inset
26157 </cell>
26158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26159 \begin_inset Text
26160
26161 \begin_layout Plain Layout
26162 Five-point star
26163 \end_layout
26164
26165 \end_inset
26166 </cell>
26167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26168 \begin_inset Text
26169
26170 \begin_layout Plain Layout
26171 -
26172 \end_layout
26173
26174 \end_inset
26175 </cell>
26176 </row>
26177 <row>
26178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26179 \begin_inset Text
26180
26181 \begin_layout Plain Layout
26182 Candle
26183 \end_layout
26184
26185 \end_inset
26186 </cell>
26187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26188 \begin_inset Text
26189
26190 \begin_layout Plain Layout
26191 Burning candle
26192 \end_layout
26193
26194 \end_inset
26195 </cell>
26196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26197 \begin_inset Text
26198
26199 \begin_layout Plain Layout
26200 -
26201 \end_layout
26202
26203 \end_inset
26204 </cell>
26205 </row>
26206 <row>
26207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26208 \begin_inset Text
26209
26210 \begin_layout Plain Layout
26211 Drop down/up
26212 \end_layout
26213
26214 \end_inset
26215 </cell>
26216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26217 \begin_inset Text
26218
26219 \begin_layout Plain Layout
26220 Normal/reversed rain drop
26221 \end_layout
26222
26223 \end_inset
26224 </cell>
26225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26226 \begin_inset Text
26227
26228 \begin_layout Plain Layout
26229 Fragile, calculation might fail
26230 \end_layout
26231
26232 \end_inset
26233 </cell>
26234 </row>
26235 <row>
26236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26237 \begin_inset Text
26238
26239 \begin_layout Plain Layout
26240 \SpecialChar TeX
26241
26242 \end_layout
26243
26244 \end_inset
26245 </cell>
26246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26247 \begin_inset Text
26248
26249 \begin_layout Plain Layout
26250 The \SpecialChar TeX
26251  logo
26252 \end_layout
26253
26254 \end_inset
26255 </cell>
26256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26257 \begin_inset Text
26258
26259 \begin_layout Plain Layout
26260 -
26261 \end_layout
26262
26263 \end_inset
26264 </cell>
26265 </row>
26266 <row>
26267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26268 \begin_inset Text
26269
26270 \begin_layout Plain Layout
26271 Triangle up/down/
26272 \begin_inset Newline newline
26273 \end_inset
26274
26275 left/right
26276 \end_layout
26277
26278 \end_inset
26279 </cell>
26280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26281 \begin_inset Text
26282
26283 \begin_layout Plain Layout
26284 Triangles in different orientations
26285 \end_layout
26286
26287 \end_inset
26288 </cell>
26289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26290 \begin_inset Text
26291
26292 \begin_layout Plain Layout
26293 -
26294 \end_layout
26295
26296 \end_inset
26297 </cell>
26298 </row>
26299 </lyxtabular>
26300
26301 \end_inset
26302
26303
26304 \end_layout
26305
26306 \begin_layout Standard
26307 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26308 's pull-down box
26309  for environments in the toolbar.
26310 \end_layout
26311
26312 \begin_layout Standard
26313 \begin_inset Newpage newpage
26314 \end_inset
26315
26316
26317 \end_layout
26318
26319 \begin_layout Standard
26320 Here is an example paragraph in the shape of a nut:
26321 \end_layout
26322
26323 \begin_layout Standard
26324 \begin_inset VSpace bigskip
26325 \end_inset
26326
26327
26328 \end_layout
26329
26330 \begin_layout Nut
26331
26332 \lang latin
26333 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26334  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26335  voluptua.
26336  At vero eos et accusam et justo duo dolores et ea rebum.
26337  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26338  sit amet.
26339  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26340  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26341  voluptua.
26342 \end_layout
26343
26344 \begin_layout Standard
26345 \begin_inset VSpace bigskip
26346 \end_inset
26347
26348
26349 \end_layout
26350
26351 \begin_layout Standard
26352 \begin_inset Note Greyedout
26353 status open
26354
26355 \begin_layout Plain Layout
26356
26357 \series bold
26358 Note
26359 \series default
26360 : shapepar paragraphs cannot run over a page break.
26361 \end_layout
26362
26363 \end_inset
26364
26365
26366 \end_layout
26367
26368 \begin_layout Standard
26369 \begin_inset VSpace bigskip
26370 \end_inset
26371
26372
26373 \end_layout
26374
26375 \begin_layout Standard
26376
26377 \series bold
26378 shapepar
26379 \series default
26380  takes care that the shape will always be preserved, no matter how much
26381  text is in the paragraph.
26382  Therefore the paragraph size changes with the amount of contained text.
26383  This can lead to paragraph sizes exceeding the page margins.
26384  To demonstrate the size scaling, here is the same example paragraph but
26385  with twice as much text:
26386 \end_layout
26387
26388 \begin_layout Standard
26389 \begin_inset Newpage newpage
26390 \end_inset
26391
26392
26393 \end_layout
26394
26395 \begin_layout Nut
26396
26397 \lang latin
26398 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26399  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26400  voluptua.
26401  At vero eos et accusam et justo duo dolores et ea rebum.
26402  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26403  sit amet.
26404  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26405  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26406  voluptua.
26407  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26408  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26409  voluptua.
26410  At vero eos et accusam et justo duo dolores et ea rebum.
26411  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26412  sit amet.
26413  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26414  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26415  voluptua.
26416 \end_layout
26417
26418 \begin_layout Standard
26419 \begin_inset VSpace bigskip
26420 \end_inset
26421
26422
26423 \end_layout
26424
26425 \begin_layout Standard
26426 An exception is the shape 
26427 \family sans
26428 CDlabel
26429 \family default
26430 .
26431  It cannot be scaled because it must fit the size of a CD/DVD.
26432  Therefore the amount of text that fits into the shape is limited.
26433 \begin_inset Newline newline
26434 \end_inset
26435
26436 The 
26437 \family sans
26438 drop
26439 \family default
26440  shapes and the 
26441 \family sans
26442 circle
26443 \family default
26444  shape are fragile, meaning that the calculation of their size can fail,
26445  depending on the amount of text.
26446  You will then get the \SpecialChar LaTeX
26447  error 
26448 \begin_inset Quotes eld
26449 \end_inset
26450
26451 Arithmetic overflow
26452 \begin_inset Quotes erd
26453 \end_inset
26454
26455 .
26456  In this case one can try to remove or add some text; if nothing works one
26457  has to use another shape.
26458 \end_layout
26459
26460 \begin_layout Standard
26461 \begin_inset VSpace bigskip
26462 \end_inset
26463
26464
26465 \end_layout
26466
26467 \begin_layout Standard
26468 For shapes with tips you will maybe see that \SpecialChar LaTeX
26469 's hyphenation routine fails
26470  for text in the tips.
26471  Therefore it is often necessary to add hyphenation points 
26472 \family sans
26473 (
26474 \begin_inset Info
26475 type  "shortcut"
26476 arg   "specialchar-insert hyphenation"
26477 \end_inset
26478
26479
26480 \family default
26481 ) to the corresponding text parts.
26482 \end_layout
26483
26484 \begin_layout Standard
26485 \begin_inset VSpace bigskip
26486 \end_inset
26487
26488
26489 \end_layout
26490
26491 \begin_layout Standard
26492 Shapepar paragraphs are either always centered or placed on the page so
26493  that their left border touches the left page margin.
26494  You can therefore not use the paragraph dialog to align such paragraphs.
26495  A solution is to put the paragraph into a minipage or parbox and align
26496  the box.
26497  The problem is hereby to find the right width for the box.
26498  Because if it is too wide and you center the box, the paragraph is not
26499  centered too because it sticks at the left side of the box.
26500  So you might have to play a bit with the width until it fits.
26501  Here are two heart-shaped paragraphs, the first one is not aligned, the
26502  second one is right-aligned:
26503 \end_layout
26504
26505 \begin_layout Standard
26506 \begin_inset Newpage newpage
26507 \end_inset
26508
26509
26510 \end_layout
26511
26512 \begin_layout Heart
26513 \noindent
26514
26515 \lang latin
26516 Lo\SpecialChar softhyphen
26517 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26518  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26519  voluptua.
26520  At vero eos et accusam et justo duo dolores et ea rebum.
26521  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26522  sit amet.
26523 \end_layout
26524
26525 \begin_layout Standard
26526 \begin_inset VSpace bigskip
26527 \end_inset
26528
26529
26530 \end_layout
26531
26532 \begin_layout Standard
26533 \noindent
26534 \align right
26535 \begin_inset Box Frameless
26536 position "t"
26537 hor_pos "c"
26538 has_inner_box 1
26539 inner_pos "t"
26540 use_parbox 1
26541 use_makebox 0
26542 width "42col%"
26543 special "none"
26544 height "1in"
26545 height_special "totalheight"
26546 thickness "0.4pt"
26547 separation "3pt"
26548 shadowsize "4pt"
26549 framecolor "black"
26550 backgroundcolor "none"
26551 status open
26552
26553 \begin_layout Heart
26554 \noindent
26555
26556 \lang latin
26557 Lo\SpecialChar softhyphen
26558 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26559  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26560  voluptua.
26561  At vero eos et accusam et justo duo dolores et ea rebum.
26562  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26563  sit amet.
26564 \end_layout
26565
26566 \end_inset
26567
26568
26569 \end_layout
26570
26571 \begin_layout Subsection
26572 Custom shapes
26573 \end_layout
26574
26575 \begin_layout Standard
26576 You can define any shape you want.
26577  Doing this manually is a lot of work because every coordinate must be specified.
26578  But there is a way to let the computer calculate the coordinates:
26579 \end_layout
26580
26581 \begin_layout Enumerate
26582 Install the program 
26583 \begin_inset CommandInset href
26584 LatexCommand href
26585 name "Jpgfdraw"
26586 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26587 literal "false"
26588
26589 \end_inset
26590
26591 .
26592 \end_layout
26593
26594 \begin_layout Enumerate
26595 In 
26596 \family sans
26597 Jpgfdraw
26598 \family default
26599  go to the menu 
26600 \family sans
26601 TeX/LaTeX\SpecialChar menuseparator
26602 Settings\SpecialChar menuseparator
26603 Set Normal Size
26604 \family default
26605  and select the font size you are using in your document.
26606  For example this document uses the size 12
26607 \begin_inset space \thinspace{}
26608 \end_inset
26609
26610 pt.
26611 \end_layout
26612
26613 \begin_layout Enumerate
26614 Draw a shape.
26615 \end_layout
26616
26617 \begin_layout Enumerate
26618 Use the menu 
26619 \family sans
26620 TeX/LaTeX\SpecialChar menuseparator
26621 Shapepar
26622 \family default
26623  to export the shape to coordinates.
26624  In the appearing dialog use either the outline of your shape for the coordinate
26625 s or the path itself.
26626 \begin_inset Foot
26627 status collapsed
26628
26629 \begin_layout Plain Layout
26630 For more information see 
26631 \begin_inset CommandInset href
26632 LatexCommand href
26633 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26634 literal "false"
26635
26636 \end_inset
26637
26638
26639 \end_layout
26640
26641 \end_inset
26642
26643
26644 \end_layout
26645
26646 \begin_layout Standard
26647 The coordinates are written into a \SpecialChar TeX
26648  file.
26649  To use it for your \SpecialChar LyX
26650  document
26651 \end_layout
26652
26653 \begin_layout Enumerate
26654 Place the cursor before the first character of your paragraph (or into a
26655  new empty one).
26656 \end_layout
26657
26658 \begin_layout Enumerate
26659 Open in \SpecialChar LyX
26660  the menu 
26661 \family sans
26662 Insert\SpecialChar menuseparator
26663 File\SpecialChar menuseparator
26664 Child
26665 \begin_inset space ~
26666 \end_inset
26667
26668 Document
26669 \family default
26670 , select the file and use 
26671 \family sans
26672 Input
26673 \family default
26674  as 
26675 \family sans
26676 Include Type.
26677 \end_layout
26678
26679 \begin_layout Standard
26680 \begin_inset VSpace defskip
26681 \end_inset
26682
26683
26684 \end_layout
26685
26686 \begin_layout Standard
26687 \begin_inset Note Greyedout
26688 status open
26689
26690 \begin_layout Plain Layout
26691
26692 \series bold
26693 Note
26694 \series default
26695 : The changed shape only applies to the current paragraph; everything is
26696  reset to normal for the next paragraph.
26697  Therefore the shape definition file must be input into every paragraph
26698  with the desired shape.
26699 \end_layout
26700
26701 \end_inset
26702
26703
26704 \end_layout
26705
26706 \begin_layout Standard
26707 \begin_inset VSpace bigskip
26708 \end_inset
26709
26710
26711 \end_layout
26712
26713 \begin_layout Standard
26714 Here is an example:
26715 \end_layout
26716
26717 \begin_layout Standard
26718 \begin_inset VSpace bigskip
26719 \end_inset
26720
26721
26722 \end_layout
26723
26724 \begin_layout Standard
26725 \begin_inset CommandInset include
26726 LatexCommand input
26727 filename "SpecialParagraphShape.tex"
26728
26729 \end_inset
26730
26731
26732 \lang latin
26733 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26734  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26735  voluptua.
26736  At vero eos et accusam et justo duo dolores et ea rebum.
26737  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26738  sit amet.
26739  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26740  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26741  voluptua.
26742 \end_layout
26743
26744 \begin_layout Standard
26745 \begin_inset VSpace bigskip
26746 \end_inset
26747
26748
26749 \end_layout
26750
26751 \begin_layout Standard
26752
26753 \series bold
26754 A tip:
26755 \series default
26756  to draw complexer shapes in 
26757 \family sans
26758 Jpgfdraw
26759 \family default
26760  you can draw the shape in a program of your choice and import the resulting
26761  image to 
26762 \family sans
26763 Jpgfdraw
26764 \family default
26765 .
26766  Then you only need to draw a line or spline along the outline of the image.
26767 \end_layout
26768
26769 \begin_layout Standard
26770 \begin_inset VSpace bigskip
26771 \end_inset
26772
26773
26774 \end_layout
26775
26776 \begin_layout Standard
26777 The module 
26778 \family sans
26779 Custom paragraph shapes
26780 \family default
26781  also provides the two commands 
26782 \family sans
26783 shapepar
26784 \family default
26785  and 
26786 \family sans
26787 Shapepar
26788 \family default
26789  which can be used to define custom shapes coordinate by coordinate.
26790 \begin_inset Foot
26791 status collapsed
26792
26793 \begin_layout Plain Layout
26794 These commands are internally used for all shapes described here.
26795 \end_layout
26796
26797 \end_inset
26798
26799  For information how these styles are used and about further customization
26800  possibilities, have a look at the documentation of the package 
26801 \series bold
26802 shapepar
26803 \series default
26804
26805 \begin_inset CommandInset citation
26806 LatexCommand cite
26807 key "shapepar"
26808 literal "true"
26809
26810 \end_inset
26811
26812 .
26813 \end_layout
26814
26815 \begin_layout Bibliography
26816 \begin_inset CommandInset bibitem
26817 LatexCommand bibitem
26818 key "multicol"
26819 literal "true"
26820
26821 \end_inset
26822
26823 Documentation of the \SpecialChar LaTeX
26824 -package 
26825 \begin_inset CommandInset href
26826 LatexCommand href
26827 name "multicol"
26828 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26829 literal "false"
26830
26831 \end_inset
26832
26833
26834 \end_layout
26835
26836 \begin_layout Bibliography
26837 \begin_inset CommandInset bibitem
26838 LatexCommand bibitem
26839 key "shapepar"
26840 literal "true"
26841
26842 \end_inset
26843
26844 Documentation of the \SpecialChar LaTeX
26845 -package 
26846 \begin_inset CommandInset href
26847 LatexCommand href
26848 name "shapepar"
26849 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26850 literal "false"
26851
26852 \end_inset
26853
26854
26855 \end_layout
26856
26857 \end_body
26858 \end_document