]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert short updated entries for Dinbrief, Elsevier, Paper and Springer in Chapter...
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
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 no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
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_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
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 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Subsection
2871 Koma-Script
2872 \end_layout
2873
2874 \begin_layout Standard
2875 by 
2876 \noun on
2877 Bernd Rellermeyer
2878 \end_layout
2879
2880 \begin_layout Subsubsection
2881 Overview
2882 \end_layout
2883
2884 \begin_layout Standard
2885 The \SpecialChar LyX
2886  document classes 
2887 \emph on
2888 article (koma-script)
2889 \emph default
2890
2891 \emph on
2892 report (koma-script)
2893 \emph default
2894
2895 \emph on
2896 book
2897 \emph default
2898  
2899 \emph on
2900 (koma-script)
2901 \emph default
2902 , and 
2903 \emph on
2904 letter
2905 \emph default
2906  
2907 \emph on
2908 (koma-script)
2909 \emph default
2910  correspond to the \SpecialChar LaTeX
2911  document classes 
2912 \family typewriter
2913 scrartcl.cls
2914 \family default
2915
2916 \family typewriter
2917 scrreprt.cls
2918 \family default
2919
2920 \family typewriter
2921 scrbook.cls
2922 \family default
2923 , and 
2924 \family typewriter
2925 scrlettr.cls
2926 \family default
2927 , resp.
2928 \begin_inset space ~
2929 \end_inset
2930
2931 of the Koma-Script family.
2932  They are replacements for the standard document classes 
2933 \family typewriter
2934 article.cls
2935 \family default
2936
2937 \family typewriter
2938 report.cls
2939 \family default
2940
2941 \family typewriter
2942 book.cls
2943 \family default
2944  and 
2945 \family typewriter
2946 letter.cls
2947 \family default
2948 , resp., and fit better to European typography conventions in a number of
2949  points.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953 Standard character size is 11pt in 
2954 \emph on
2955 article (koma-script)
2956 \emph default
2957
2958 \emph on
2959 report (koma-script)
2960 \emph default
2961 , and 
2962 \emph on
2963 book (koma-script)
2964 \emph default
2965 , and 12pt in 
2966 \emph on
2967 letter (koma-script)
2968 \emph default
2969 .
2970 \end_layout
2971
2972 \begin_layout Itemize
2973 Headings, labels of the description environment, and a number of elements
2974  of the 
2975 \emph on
2976 letter (koma-script)
2977 \emph default
2978  document class are set in a bold sans serif font.
2979 \begin_inset Foot
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 There is a big difference between the bold sans serif old cm fonts and new
2984  ec fonts, especially in the appearance of headings.
2985  In comparison, the ec bold sans serif fonts look a bit thin.
2986  Here the \SpecialChar LaTeX
2987  package 
2988 \family typewriter
2989 cmsd.sty by
2990 \family default
2991  
2992 \shape smallcaps
2993 Walter Schmidt
2994 \shape default
2995  helps to produce the 
2996 \begin_inset Quotes eld
2997 \end_inset
2998
2999 usual
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003  appearance when using the ec fonts.
3004 \end_layout
3005
3006 \end_inset
3007
3008  The numbering of chapter headings is made in the same way as the numbering
3009  of section headings, that is without the extra line 
3010 \begin_inset Quotes eld
3011 \end_inset
3012
3013 Chapter\SpecialChar ldots
3014
3015 \begin_inset Quotes erd
3016 \end_inset
3017
3018 .
3019  In addition, the appearance of the headings can be modified by using a
3020  number of options (in \SpecialChar LyX
3021  to be entered in the field 
3022 \family sans
3023 Extra
3024 \begin_inset space ~
3025 \end_inset
3026
3027 Options
3028 \family default
3029  of the dialog 
3030 \family sans
3031 Layout\SpecialChar menuseparator
3032 Document
3033 \family default
3034 ).
3035  
3036 \end_layout
3037
3038 \begin_layout Itemize
3039 The main means in the Koma-Script document classes to design the type area
3040  are the options 
3041 \family sans
3042 BCOR
3043 \family default
3044  and 
3045 \family sans
3046 DIV
3047 \family default
3048  (in \SpecialChar LyX
3049  to be entered in the extra class options field in the dialog 
3050 \family sans
3051 Document\SpecialChar menuseparator
3052 Settings
3053 \family default
3054 ).
3055  They make a clearer modification of page margins possible as do the options
3056  of the dialog 
3057 \family sans
3058 Document\SpecialChar menuseparator
3059 Settings
3060 \family default
3061 .
3062  
3063 \end_layout
3064
3065 \begin_layout Itemize
3066 The \SpecialChar LaTeX
3067  document classes of the Koma-Script family define a number of additional
3068  commands.
3069  Those part of it which makes sense in \SpecialChar LyX
3070  is implemented in corresponding
3071  paragraph types.
3072 \end_layout
3073
3074 \begin_layout Standard
3075 Detailed descriptions of the \SpecialChar LaTeX
3076  document classes of the Koma-Script family
3077  can be found in the Koma-Script documentation 
3078 \emph on
3079 scrguide
3080 \emph default
3081  (German) and 
3082 \emph on
3083 scrguien
3084 \emph default
3085  (English).
3086 \end_layout
3087
3088 \begin_layout Subsubsection
3089 article (koma-script), report (koma-script), and book (koma-script)
3090 \end_layout
3091
3092 \begin_layout Standard
3093 The document classes 
3094 \emph on
3095 article (koma-script)
3096 \emph default
3097
3098 \emph on
3099 report (koma-script)
3100 \emph default
3101 , and 
3102 \emph on
3103 book
3104 \emph default
3105  
3106 \emph on
3107 (koma-script)
3108 \emph default
3109  are implemented in the layout files 
3110 \family typewriter
3111 scrartcl.layout
3112 \family default
3113
3114 \family typewriter
3115 scrreprt.layout
3116 \family default
3117 , and 
3118 \family typewriter
3119 scrbook.layout
3120 \family default
3121 , resp.
3122  They contain all the paragraph types of the corresponding standard document
3123  classes 
3124 \emph on
3125 article
3126 \emph default
3127
3128 \emph on
3129 report
3130 \emph default
3131 , and 
3132 \emph on
3133 book
3134 \emph default
3135 , resp., partly modified, with the exception of the \SpecialChar LyX
3136  specific 
3137 \family sans
3138 List
3139 \family default
3140 -type, which is replaced by the new 
3141 \family sans
3142 Labeling
3143 \family default
3144 -type having the same functionality.
3145  Beside the 
3146 \family sans
3147 Labeling
3148 \family default
3149 -Type there is a number of new paragraph types added.
3150  They are 
3151 \emph on
3152 not
3153 \emph default
3154  part of 
3155 \emph on
3156 letter (koma-script)
3157 \emph default
3158 .
3159 \end_layout
3160
3161 \begin_layout Itemize
3162
3163 \family sans
3164 Addpart, Addchap
3165 \family default
3166
3167 \family sans
3168 Addsec
3169 \family default
3170 : are equivalents to 
3171 \family sans
3172 Part*, Chapter*
3173 \family default
3174  and 
3175 \family sans
3176 Section*
3177 \family default
3178 , resp., additionally inserting an entry in the table of contents.
3179  
3180 \family sans
3181 Addpart
3182 \family default
3183  and 
3184 \family sans
3185 Addchap
3186 \family default
3187  are not contained in 
3188 \emph on
3189 article (koma-script)
3190 \emph default
3191 .
3192 \end_layout
3193
3194 \begin_layout Itemize
3195
3196 \family sans
3197 Addchap*
3198 \family default
3199
3200 \family sans
3201 Addsec*
3202 \family default
3203 : behave exactly as 
3204 \family sans
3205 Addchap
3206 \family default
3207  and 
3208 \family sans
3209 Addsec
3210 \family default
3211 , resp., additionally clearing running heads.
3212  
3213 \family sans
3214 Addchap*
3215 \family default
3216  is not contained in 
3217 \emph on
3218 article (koma-script)
3219 \emph default
3220 .
3221 \begin_inset Foot
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 There is also an 
3226 \family typewriter
3227
3228 \backslash
3229 addpart*
3230 \family default
3231  command in 
3232 \emph on
3233 book (koma-script)
3234 \emph default
3235  and in 
3236 \emph on
3237 report (koma-script)
3238 \emph default
3239 , but since this is identical to 
3240 \family sans
3241 Part*
3242 \family default
3243 , is has not been implemented in \SpecialChar LyX
3244 .
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Itemize
3253
3254 \family sans
3255 Minisec
3256 \family default
3257 : generates a heading directly above the following paragraph in the standard
3258  character size without affecting the structure of the document.
3259 \end_layout
3260
3261 \begin_layout Itemize
3262
3263 \family sans
3264 Captionabove
3265 \family default
3266  and 
3267 \family sans
3268 Captionbelow
3269 \family default
3270  are special captions which respect the different space settings needed
3271  for captions placed above or below an element (if you follow strict typographic
3272  rules, you might want to place table captions always above the table).
3273  You can also use the class option 
3274 \family typewriter
3275 tablecaptionsabove
3276 \family default
3277 , which will switch 
3278 \family sans
3279 caption
3280 \family default
3281  to 
3282 \family sans
3283 captionabove
3284 \family default
3285  for tables and 
3286 \family sans
3287 captionbelow
3288 \family default
3289  for figures.
3290  You need at least Koma-Script version 2.8q to use this.
3291 \end_layout
3292
3293 \begin_layout Itemize
3294
3295 \family sans
3296 Dictum
3297 \family default
3298 : can be used to set a bonmot, e.
3299 \begin_inset space \thinspace{}
3300 \end_inset
3301
3302 g.
3303 \begin_inset space \space{}
3304 \end_inset
3305
3306 at the beginning of a chapter.
3307  If you use the optional argument (
3308 \family sans
3309 Insert\SpecialChar menuseparator
3310 Dictum
3311 \begin_inset space ~
3312 \end_inset
3313
3314 Author
3315 \family default
3316 ), you can insert the dictum's author there.
3317  Dictum and author are separated by a line.
3318  You need at least Koma-Script version 2.8q to use this.
3319  
3320 \family sans
3321 Dictum
3322 \family default
3323  is not contained in 
3324 \emph on
3325 article (koma-script)
3326 \emph default
3327 .
3328 \end_layout
3329
3330 \begin_layout Standard
3331 The following types, together with the standard types 
3332 \family sans
3333 Title
3334 \family default
3335
3336 \family sans
3337 Author
3338 \family default
3339 , and 
3340 \family sans
3341 Date
3342 \family default
3343 , form the title area of the document.
3344  They must be entered ahead of the first 
3345 \begin_inset Quotes eld
3346 \end_inset
3347
3348 ordinary
3349 \begin_inset Quotes erd
3350 \end_inset
3351
3352  paragraph.
3353 \begin_inset Foot
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 The corresponding \SpecialChar LaTeX
3358  commands must appear before the 
3359 \family typewriter
3360
3361 \backslash
3362 maketitle
3363 \family default
3364  command.
3365 \end_layout
3366
3367 \end_inset
3368
3369  When such a type is used more than once, the latter usage overwrites the
3370  former one, that means, for every type only the latest usage is valid.
3371  The order of the different types however has, like 
3372 \family sans
3373 Title
3374 \family default
3375
3376 \family sans
3377 Author
3378 \family default
3379 , and 
3380 \family sans
3381 Date
3382 \family default
3383 , no effect on the appearance of the produced document.
3384 \end_layout
3385
3386 \begin_layout Itemize
3387
3388 \family sans
3389 Subject
3390 \family default
3391 : produces a centered paragraph above the ordinary title (
3392 \family sans
3393 Title
3394 \family default
3395
3396 \family sans
3397 Author
3398 \family default
3399
3400 \family sans
3401 Date
3402 \family default
3403 ) for the subject of the document.
3404 \end_layout
3405
3406 \begin_layout Itemize
3407
3408 \family sans
3409 Publishers
3410 \family default
3411 : produces a centered paragraph below the ordinary title (
3412 \family sans
3413 Title
3414 \family default
3415
3416 \family sans
3417 Author
3418 \family default
3419
3420 \family sans
3421 Date
3422 \family default
3423 ) for the publishers' name.
3424 \end_layout
3425
3426 \begin_layout Itemize
3427
3428 \family sans
3429 Dedication
3430 \family default
3431 : in 
3432 \emph on
3433 report (koma-script)
3434 \emph default
3435  and 
3436 \emph on
3437 book (koma-script)
3438 \emph default
3439  produces a centered paragraph on its own page behind the title page, or
3440  in 
3441 \emph on
3442 article (koma-script)
3443 \emph default
3444  produces a centered paragraph below the ordinary title (
3445 \family sans
3446 Title
3447 \family default
3448
3449 \family sans
3450 Author
3451 \family default
3452
3453 \family sans
3454 Date
3455 \family default
3456
3457 \family sans
3458 Publishers
3459 \family default
3460 ) for a dedication.
3461 \end_layout
3462
3463 \begin_layout Itemize
3464
3465 \family sans
3466 Titlehead
3467 \family default
3468 : produces a left aligned paragraph above the ordinary title (
3469 \family sans
3470 Title
3471 \family default
3472
3473 \family sans
3474 Author
3475 \family default
3476
3477 \family sans
3478 Date
3479 \family default
3480
3481 \family sans
3482 Subject
3483 \family default
3484 ) for a document`s head.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Uppertitleback
3491 \family default
3492 : produces in a double-sided print in 
3493 \emph on
3494 report (koma-script)
3495 \emph default
3496  and 
3497 \emph on
3498 book (koma-script)
3499 \emph default
3500  a left-aligned paragraph at the top of the title page`s back or has no
3501  effect in a single-sided print or in 
3502 \emph on
3503 article (koma-script)
3504 \emph default
3505 .
3506 \end_layout
3507
3508 \begin_layout Itemize
3509
3510 \family sans
3511 Lowertitleback
3512 \family default
3513 : produces in a double-sided print in 
3514 \emph on
3515 report (koma-script)
3516 \emph default
3517  and 
3518 \emph on
3519 book (koma-script)
3520 \emph default
3521  a left-aligned paragraph at the bottom of the title page`s back or has
3522  no effect in a single-sided print or in 
3523 \emph on
3524 article (koma-script)
3525 \emph default
3526 .
3527 \end_layout
3528
3529 \begin_layout Itemize
3530
3531 \family sans
3532 Extratitle
3533 \family default
3534 : produces a special 
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 dirty
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  page ahead of the actual document containing a paragraph without special
3543  formatting.
3544 \end_layout
3545
3546 \begin_layout Standard
3547 The layout files for the document classes 
3548 \emph on
3549 article (koma-script)
3550 \emph default
3551
3552 \emph on
3553 report (koma-script)
3554 \emph default
3555 , and 
3556 \emph on
3557 book (koma-script)
3558 \emph default
3559  do include the file 
3560 \family typewriter
3561 scrmacros.inc
3562 \family default
3563 .
3564  This is thought of as a place to define your own types.
3565  Copy scrmacros
3566 \family typewriter
3567 .inc
3568 \family default
3569  in your personal layout directory and edit the file!
3570 \end_layout
3571
3572 \begin_layout Subsubsection
3573 letter (koma-script)
3574 \end_layout
3575
3576 \begin_layout Description
3577 Note: This section discusses the obsolete 
3578 \family sans
3579 KOMA-Script-Letter (v.
3580 \begin_inset space ~
3581 \end_inset
3582
3583 1)
3584 \family default
3585 , which is not even included anymore in recent KOMA releases.
3586  Please refer to the next section for the current KOMA-Script-Letter class
3587  (v.
3588 \begin_inset space ~
3589 \end_inset
3590
3591 2)!
3592 \end_layout
3593
3594 \begin_layout Standard
3595 \noindent
3596 The document class 
3597 \emph on
3598 letter (koma-script)
3599 \emph default
3600  is implemented in the layout file 
3601 \family typewriter
3602 scrlettr.layout
3603 \family default
3604 .
3605  It contains all the paragraph types of the corresponding standard document
3606  class 
3607 \emph on
3608 letter
3609 \emph default
3610 , partly modified, with the exception of the \SpecialChar LyX
3611  specific types 
3612 \family sans
3613 \SpecialChar LyX
3614 -Code
3615 \family default
3616  and 
3617 \family sans
3618 Comment
3619 \family default
3620  and the 
3621 \family sans
3622 List
3623 \family default
3624  type, which is replaced by the new 
3625 \family sans
3626 Labeling
3627 \family default
3628  type.
3629  In addition, it contains, in contrast to the standard document class, the
3630  standard types 
3631 \family sans
3632 \SpecialChar LaTeX
3633
3634 \family default
3635
3636 \family sans
3637 Quotation
3638 \family default
3639
3640 \family sans
3641 Quote
3642 \family default
3643 , and 
3644 \family sans
3645 Verse
3646 \family default
3647 .
3648  Furthermore, there are a number of new letter specific types.
3649 \end_layout
3650
3651 \begin_layout Standard
3652 The appearance of the letter produced by this document class can be controlled
3653  by a number of \SpecialChar LaTeX
3654  commands, which you can put in the \SpecialChar LaTeX
3655  preamble.
3656 \begin_inset Foot
3657 status collapsed
3658
3659 \begin_layout Plain Layout
3660 For example, the standard appearance of the letter`s heading, consisting
3661  of name and address, is quite self-willed.
3662  An 
3663 \begin_inset Quotes eld
3664 \end_inset
3665
3666 ordinary
3667 \begin_inset Quotes erd
3668 \end_inset
3669
3670  heading is produced by the following \SpecialChar LaTeX
3671  commands in the preamble:
3672 \end_layout
3673
3674 \begin_layout LyX-Code
3675
3676 \backslash
3677 firsthead{
3678 \backslash
3679 parbox[b]{
3680 \backslash
3681 textwidth}
3682 \end_layout
3683
3684 \begin_layout LyX-Code
3685   {
3686 \backslash
3687 ignorespaces 
3688 \backslash
3689 fromname
3690 \backslash
3691
3692 \backslash
3693  
3694 \backslash
3695 ignorespaces 
3696 \backslash
3697 fromaddress}} 
3698 \end_layout
3699
3700 \begin_layout LyX-Code
3701
3702 \backslash
3703 nexthead{
3704 \backslash
3705 parbox[b]{
3706 \backslash
3707 textwidth}
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711   {
3712 \backslash
3713 ignorespaces 
3714 \backslash
3715 fromname 
3716 \backslash
3717 hfill 
3718 \backslash
3719 ignorespaces 
3720 \backslash
3721 pagename
3722 \backslash
3723  
3724 \backslash
3725 thepage}}
3726 \end_layout
3727
3728 \end_inset
3729
3730  A detailed German description of such \SpecialChar LaTeX
3731  commands can be found in the Koma-Script
3732  documentation 
3733 \emph on
3734 scrguide
3735 \emph default
3736 .
3737  With it, the letter's author can produce his personal letter layout.
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The types 
3742 \family sans
3743 Letter
3744 \family default
3745  and 
3746 \family sans
3747 Opening
3748 \family default
3749  define the beginning of the letter and must be used in every letter.
3750  To emphasize them in the \SpecialChar LyX
3751  document class, they are marked with the letter
3752  
3753 \shape italic
3754 L
3755 \shape default
3756  or 
3757 \shape italic
3758 O
3759 \shape default
3760 , resp.
3761 \begin_inset space ~
3762 \end_inset
3763
3764 in the left margin.
3765  It is possible to write any number of letters in one file.
3766  An 
3767 \family sans
3768 Opening
3769 \family default
3770  type produces a new letter using the same addressee and a 
3771 \family sans
3772 Letter
3773 \family default
3774  type produces a new addressee.
3775  The types 
3776 \family sans
3777 Closing
3778 \family default
3779
3780 \family sans
3781 PS
3782 \family default
3783
3784 \family sans
3785 CC
3786 \family default
3787 , and 
3788 \family sans
3789 Encl
3790 \family default
3791  are ordinary paragraph types and can also be used several times in one
3792  and the same letter.
3793 \end_layout
3794
3795 \begin_layout Itemize
3796
3797 \family sans
3798 Letter
3799 \family default
3800 : produces a paragraph for the addressee and implicitly defines the beginning
3801  of the letter.
3802 \end_layout
3803
3804 \begin_layout Itemize
3805
3806 \family sans
3807 Opening
3808 \family default
3809 : produces a paragraph for the form of address and implicitly produces a
3810  new letter.
3811 \end_layout
3812
3813 \begin_layout Itemize
3814
3815 \family sans
3816 Closing
3817 \family default
3818 : produces a paragraph for a close.
3819 \end_layout
3820
3821 \begin_layout Itemize
3822
3823 \family sans
3824 PS
3825 \family default
3826 : produces a paragraph for a postscript.
3827 \end_layout
3828
3829 \begin_layout Itemize
3830
3831 \family sans
3832 CC
3833 \family default
3834 : produces a paragraph for a distribution list.
3835 \end_layout
3836
3837 \begin_layout Itemize
3838
3839 \family sans
3840 Encl
3841 \family default
3842 : produces a paragraph for enclosures.
3843 \end_layout
3844
3845 \begin_layout Standard
3846 The types 
3847 \family sans
3848 Name
3849 \family default
3850
3851 \family sans
3852 Signature
3853 \family default
3854
3855 \family sans
3856 Address
3857 \family default
3858
3859 \family sans
3860 Telephone
3861 \family default
3862
3863 \family sans
3864 Place
3865 \family default
3866
3867 \family sans
3868 Backaddress
3869 \family default
3870
3871 \family sans
3872 Specialmail
3873 \family default
3874
3875 \family sans
3876 Location
3877 \family default
3878
3879 \family sans
3880 Title
3881 \family default
3882 , and 
3883 \family sans
3884 Subject
3885 \family default
3886  are input types provided with a label to enter information, which will
3887  be processed by the document class.
3888 \begin_inset Foot
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 It could be seen as a matter of inconsequence, that the types 
3893 \family sans
3894 Letter
3895 \family default
3896  and 
3897 \family sans
3898 Opening
3899 \family default
3900  described above are not such input types as well.
3901  Because of the special meaning of those types, however, I have implemented
3902  them as ordinary paragraph types with a one letter mark in the left margin.
3903  Moreover, it would affect my feeling of symmetry, if the 
3904 \family sans
3905 Opening
3906 \family default
3907  type and the 
3908 \family sans
3909 Closing
3910 \family default
3911  type had such a serious different appearance.
3912 \end_layout
3913
3914 \end_inset
3915
3916  The types must be used ahead of the corresponding 
3917 \family sans
3918 Opening
3919 \family default
3920  type.
3921 \end_layout
3922
3923 \begin_layout Standard
3924 An implementation of these types in a WYSIWYG fashion does not seem to make
3925  sense, because the real appearance of the produced letter does not only
3926  depend on the usage of the particular type, but also on other factors.
3927  For example, a signature entered in the 
3928 \family sans
3929 Signature
3930 \family default
3931  type will in the standard behavior appear in the produced letter only,
3932  when in the same letter also a 
3933 \family sans
3934 Closing
3935 \family default
3936  type is used.
3937  The entered value of the 
3938 \family sans
3939 Telephone
3940 \family default
3941  type will in the standard behavior not appear in the produced letter at
3942  all.
3943  The possibility to design the letter`s heading freely is already indicated
3944  in a footnote above.
3945 \end_layout
3946
3947 \begin_layout Standard
3948 The input types can also be used as empty paragraphs.
3949  This makes sense e.
3950 \begin_inset space \thinspace{}
3951 \end_inset
3952
3953 g.
3954 \begin_inset space \space{}
3955 \end_inset
3956
3957 for the 
3958 \family sans
3959 Signature
3960 \family default
3961  type.
3962  If the 
3963 \family sans
3964 Signature
3965 \family default
3966  type is not used at all, in the standard behavior the value of the 
3967 \family sans
3968 Name
3969 \family default
3970  type is used as signature, whereas if an empty 
3971 \family sans
3972 Signature
3973 \family default
3974  type is used, no signature value is defined.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 By using the input types it is possible to write a letter template, containing
3979  filled input types with your personal dates (name, address, etc.) and empty
3980  input types for other dates you want to enter.
3981 \end_layout
3982
3983 \begin_layout Itemize
3984
3985 \family sans
3986 Name
3987 \family default
3988 : sender's name, in the standard behavior appears as a centered paragraph
3989  in small caps in the letter`s heading.
3990 \end_layout
3991
3992 \begin_layout Itemize
3993
3994 \family sans
3995 Signature
3996 \family default
3997 : sender's signature, in the standard behavior appears below the 
3998 \family sans
3999 Closing
4000 \family default
4001  type.
4002  If no 
4003 \family sans
4004 Signature
4005 \family default
4006  type is used, the value of the 
4007 \family sans
4008 Name
4009 \family default
4010  type appears instead.
4011 \end_layout
4012
4013 \begin_layout Itemize
4014
4015 \family sans
4016 Address
4017 \family default
4018 : sender's address, in the standard behavior appears in a centered paragraph
4019  in the letter`s heading below the sender's name.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Telephone
4026 \family default
4027 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4028  variable
4029  
4030 \family typewriter
4031
4032 \backslash
4033 telephonenum
4034 \family default
4035 .
4036 \end_layout
4037
4038 \begin_layout Itemize
4039
4040 \family sans
4041 Place
4042 \family default
4043 : place of the letter`s making.
4044 \end_layout
4045
4046 \begin_layout Itemize
4047
4048 \family sans
4049 Date
4050 \family default
4051 : date of the letter`s making.
4052  
4053 \family sans
4054 Place
4055 \family default
4056  and 
4057 \family sans
4058 Date
4059 \family default
4060 , in the standard behavior, produce the place and the date in a right-aligned
4061  line below the addressee's field.
4062  If an empty 
4063 \family sans
4064 Date
4065 \family default
4066  type is used, neither place nor date appear, independent of the value of
4067  the 
4068 \family sans
4069 Place
4070 \family default
4071  type.
4072  If no 
4073 \family sans
4074 Date
4075 \family default
4076  type is used, the date of the letter `s production is used.
4077 \end_layout
4078
4079 \begin_layout Itemize
4080
4081 \family sans
4082 Backaddress
4083 \family default
4084 : sender`s back address, in the standard behavior appears above the addressee's
4085  field in a small sans serif font.
4086 \end_layout
4087
4088 \begin_layout Itemize
4089
4090 \family sans
4091 Specialmail
4092 \family default
4093 : special mail information, in the standard behavior appears underlined
4094  above the addressee's field below the back address.
4095 \end_layout
4096
4097 \begin_layout Itemize
4098
4099 \family sans
4100 Location
4101 \family default
4102 : additional information, in the standard behavior appears on right side
4103  below the addressee`s field.
4104 \end_layout
4105
4106 \begin_layout Itemize
4107
4108 \family sans
4109 Title
4110 \family default
4111 : the letter's title, in the standard behavior appears in a big, bold, sans
4112  serif font above the subject.
4113 \end_layout
4114
4115 \begin_layout Itemize
4116
4117 \family sans
4118 Subject
4119 \family default
4120 : the letter's subject, in the standard behavior appears in a bold font
4121  above the 
4122 \family sans
4123 Opening
4124 \family default
4125  paragraph.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 The types 
4130 \family sans
4131 Yourref
4132 \family default
4133
4134 \family sans
4135 Yourmail
4136 \family default
4137
4138 \family sans
4139 Myref
4140 \family default
4141
4142 \family sans
4143 Customer
4144 \family default
4145 , and 
4146 \family sans
4147 Invoice
4148 \family default
4149  produce a business letter like line above the 
4150 \family sans
4151 Title
4152 \family default
4153  line containing the fields 
4154 \begin_inset Quotes eld
4155 \end_inset
4156
4157 Your ref.
4158 \begin_inset Quotes erd
4159 \end_inset
4160
4161
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 Your letter of
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 Our ref.
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 Customer no.
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185
4186 \begin_inset Quotes eld
4187 \end_inset
4188
4189 Invoice no.
4190 \begin_inset Quotes erd
4191 \end_inset
4192
4193 , and 
4194 \begin_inset Quotes eld
4195 \end_inset
4196
4197 Date
4198 \begin_inset Quotes erd
4199 \end_inset
4200
4201 .
4202  For the date field, the value of the 
4203 \family sans
4204 Date
4205 \family default
4206  type is used.
4207  If one of these 
4208 \begin_inset Quotes eld
4209 \end_inset
4210
4211 business letter types
4212 \begin_inset Quotes erd
4213 \end_inset
4214
4215  is used, the value of the 
4216 \family sans
4217 Place
4218 \family default
4219  type however does not appear, but only the \SpecialChar LaTeX
4220  variable 
4221 \family typewriter
4222
4223 \backslash
4224 fromplace
4225 \family default
4226  is set.
4227  The ordinary output of place and date in a right-aligned line below the
4228  addressee`s field is suppressed.
4229  The types are implemented as input types provided with a label and must
4230  be used ahead of the corresponding 
4231 \family sans
4232 Opening
4233 \family default
4234  type.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Yourref
4241 \family default
4242 : Your ref.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Yourmail
4249 \family default
4250 : Your letter of.
4251 \end_layout
4252
4253 \begin_layout Itemize
4254
4255 \family sans
4256 Myref
4257 \family default
4258 : Our ref.
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Customer
4265 \family default
4266 : Customer no.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Invoice
4273 \family default
4274 : Invoice no.
4275 \end_layout
4276
4277 \begin_layout Subsubsection
4278 The new letter class: letter (koma-script v.2)
4279 \end_layout
4280
4281 \begin_layout Standard
4282 by 
4283 \noun on
4284 Jürgen Spitzmüller
4285 \end_layout
4286
4287 \begin_layout Standard
4288 \begin_inset VSpace medskip
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Standard
4295 \noindent
4296 Koma-Script version 2.8 has introduced a new letter class 
4297 \family typewriter
4298 scrlttr2
4299 \family default
4300  which supersedes the now unsupported 
4301 \family typewriter
4302 scrlettr
4303 \family default
4304 .
4305  It has — on the \SpecialChar LaTeX
4306  side — a completely new interface and is not compatible
4307  with the old class.
4308  Therefore, \SpecialChar LyX
4309  supports both, though it is recommended you use the new class.
4310 \end_layout
4311
4312 \begin_layout Standard
4313 This class covers the same functionality as 
4314 \emph on
4315 letter (koma-script),
4316 \emph default
4317  and a few more.
4318  The basic items are 
4319 \family sans
4320 Address
4321 \family default
4322  (receiver's address, same as 
4323 \family sans
4324 Letter
4325 \family default
4326  in the old layout), 
4327 \family sans
4328 Opening
4329 \family default
4330 , and 
4331 \family sans
4332 Closing
4333 \family default
4334 .
4335  
4336 \family sans
4337 NextAddress
4338 \family default
4339  will start a new letter (i.
4340 \begin_inset space \thinspace{}
4341 \end_inset
4342
4343 e.
4344 \begin_inset space \space{}
4345 \end_inset
4346
4347 you can write several letters per document).
4348  New elements are sender's 
4349 \family sans
4350 E-Mail
4351 \family default
4352
4353 \family sans
4354 URL
4355 \family default
4356
4357 \family sans
4358 Fax
4359 \family default
4360
4361 \family sans
4362 Bank
4363 \family default
4364  and the possibility to use a 
4365 \family sans
4366 Logo
4367 \family default
4368  (via 
4369 \family sans
4370 Insert\SpecialChar menuseparator
4371 Graphics
4372 \family default
4373 ) in the header.
4374 \end_layout
4375
4376 \begin_layout Standard
4377 The biggest improvement is, though, that the letter's layout is configurable
4378  to meet almost any needs.
4379  This can be done via the preamble or with a special style file (Letter
4380  Class Option, extension 
4381 \family typewriter
4382 *.lco
4383 \family default
4384 ), that will be read in as a class option.
4385 \begin_inset Foot
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389 The KOMA package comes with some default 
4390 \family typewriter
4391 *.lco
4392 \family default
4393  files.
4394  There is, for instance, a 
4395 \family typewriter
4396 DIN.lco
4397 \family default
4398  file that follows german typesetting rules, or a 
4399 \family typewriter
4400 KOMAold.lco
4401 \family default
4402  that provides the default layout of the old 
4403 \family typewriter
4404 scrlettr
4405 \family default
4406  class.
4407  The latter can be loaded with the class option 
4408 \family typewriter
4409 KOMAold
4410 \family default
4411 , inserted via the 
4412 \family sans
4413 Layout\SpecialChar menuseparator
4414 Document\SpecialChar menuseparator
4415 Extra Options
4416 \family default
4417  field.
4418 \end_layout
4419
4420 \end_inset
4421
4422  Have a look at the 
4423 \emph on
4424 koma-letter2
4425 \emph default
4426  template that is included in \SpecialChar LyX
4427  for examples.
4428  A detailed description is to be found in the Koma-Script documentation
4429  (
4430 \emph on
4431 scrguide
4432 \emph default
4433 ).
4434 \end_layout
4435
4436 \begin_layout Subsubsection
4437 Problems
4438 \end_layout
4439
4440 \begin_layout Standard
4441 Visualizing the Koma-Script document classes in \SpecialChar LyX
4442 , the \SpecialChar LyX
4443  internals cause some
4444  problems.
4445 \end_layout
4446
4447 \begin_layout Itemize
4448 The chapter number of a 
4449 \family sans
4450 Chapter
4451 \family default
4452  type appears on a line of its own above the chapter heading instead of
4453  appearing in the same line ahead of it.
4454  The cause for that is the \SpecialChar LyX
4455  internal behavior for the labeltype 
4456 \family sans
4457 Counter_Chapter
4458 \family default
4459  in the layout file.
4460 \end_layout
4461
4462 \begin_layout Itemize
4463 The headings of the types 
4464 \family sans
4465 Addchap
4466 \family default
4467  and 
4468 \family sans
4469 Addsec
4470 \family default
4471  are only put in the 
4472 \begin_inset Quotes eld
4473 \end_inset
4474
4475 true
4476 \begin_inset Quotes erd
4477 \end_inset
4478
4479  \SpecialChar LaTeX
4480  table of contents, but not in the \SpecialChar LyX
4481  table of contents (
4482 \family sans
4483 Document\SpecialChar menuseparator
4484 Table
4485 \begin_inset space ~
4486 \end_inset
4487
4488 of
4489 \begin_inset space ~
4490 \end_inset
4491
4492 Contents
4493 \family default
4494 ).
4495 \end_layout
4496
4497 \begin_layout Itemize
4498 The paragraphs in a 
4499 \emph on
4500 letter
4501 \emph default
4502  document class appear in a skip separation mode, not indented.
4503  This is the standard behavior, no special \SpecialChar LaTeX
4504  commands are needed for that.
4505  But in the 
4506 \family sans
4507 Document\SpecialChar menuseparator
4508 Settings
4509 \family default
4510  dialog the corresponding radio button indicates 
4511 \family sans
4512 Indent
4513 \family default
4514 .
4515  A 
4516 \family sans
4517 Skip
4518 \family default
4519  value always has the effect that extra \SpecialChar LaTeX
4520  commands are inserted in the document
4521  to produce the gap, which is not what is wanted in this case.
4522 \end_layout
4523
4524 \begin_layout Subsection
4525
4526 \change_inserted 564990737 1670924924
4527 Polish M.
4528 \begin_inset space \thinspace{}
4529 \end_inset
4530
4531 W.
4532 \begin_inset space \space{}
4533 \end_inset
4534
4535 collection
4536 \change_deleted 564990737 1670924933
4537 Article (mwart), book (mwbk) and report (mwrep)
4538 \begin_inset Argument status
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542 The 
4543 \family typewriter
4544 mw
4545 \family default
4546  Classes
4547 \end_layout
4548
4549 \end_inset
4550
4551
4552 \change_unchanged
4553
4554 \end_layout
4555
4556 \begin_layout Standard
4557 by 
4558 \noun on
4559 Tomasz Luczak
4560 \end_layout
4561
4562 \begin_layout Standard
4563 The \SpecialChar LyX
4564  document classes 
4565 \emph on
4566 article (mwart)
4567 \emph default
4568
4569 \emph on
4570 report (mwrep)
4571 \emph default
4572  and 
4573 \emph on
4574 book
4575 \emph default
4576  
4577 \emph on
4578 (mwbk)
4579 \emph default
4580  correspond to the \SpecialChar LaTeX
4581  document classes 
4582 \family typewriter
4583 mwart.cls
4584 \family default
4585
4586 \family typewriter
4587 mwrep.cls
4588 \family default
4589  and 
4590 \family typewriter
4591 mwbk.cls
4592 \family default
4593 , resp.
4594  They are replacements for the standard document classes 
4595 \family typewriter
4596 article.cls
4597 \family default
4598
4599 \family typewriter
4600 report.cls
4601 \family default
4602  and 
4603 \family typewriter
4604 book.cls
4605 \family default
4606 , resp., and fit better to Polish typography conventions in a number of points.
4607  
4608 \end_layout
4609
4610 \begin_layout Standard
4611 Basic differences:
4612 \end_layout
4613
4614 \begin_layout Itemize
4615 Unnumbered titles (with star, e.
4616 \begin_inset space \thinspace{}
4617 \end_inset
4618
4619 g.
4620 \begin_inset space \space{}
4621 \end_inset
4622
4623
4624 \family sans
4625 Section*
4626 \family default
4627 ) are added into table of contents,
4628 \end_layout
4629
4630 \begin_layout Itemize
4631 Additional page styles:
4632 \end_layout
4633
4634 \begin_deeper
4635 \begin_layout Description
4636 uheadings header with separated lines,
4637 \end_layout
4638
4639 \begin_layout Description
4640 myheadings custom header, contents headers via commands: 
4641 \family typewriter
4642
4643 \backslash
4644 markright
4645 \family default
4646  and 
4647 \family typewriter
4648
4649 \backslash
4650 markboth
4651 \family default
4652 ,
4653 \end_layout
4654
4655 \begin_layout Description
4656 myuheadings custom header with separated lines,
4657 \end_layout
4658
4659 \begin_layout Description
4660 outer page number is placed on outer side of page
4661 \end_layout
4662
4663 \end_deeper
4664 \begin_layout Itemize
4665 Options 
4666 \end_layout
4667
4668 \begin_deeper
4669 \begin_layout Description
4670 rmheadings serif titles — default,
4671 \end_layout
4672
4673 \begin_layout Description
4674 sfheadings sansserif titles,
4675 \end_layout
4676
4677 \begin_layout Description
4678 authortitle on title page first placed is author next title — default,
4679 \end_layout
4680
4681 \begin_layout Description
4682 titleauthor on title page first placed is title next author,
4683 \end_layout
4684
4685 \begin_layout Description
4686 withmarginpar reserve place on page for margins.
4687 \end_layout
4688
4689 \end_deeper
4690 \begin_layout Section
4691
4692 \change_inserted 564990737 1670439534
4693 Articles
4694 \end_layout
4695
4696 \begin_layout Standard
4697
4698 \change_inserted 564990737 1670794710
4699 See also the document classes in the Collections (section
4700 \begin_inset space ~
4701 \end_inset
4702
4703
4704 \begin_inset CommandInset ref
4705 LatexCommand ref
4706 reference "sec:Collections"
4707
4708 \end_inset
4709
4710 ).
4711 \end_layout
4712
4713 \begin_layout Subsection
4714
4715 \change_inserted 564990737 1670794716
4716
4717 \lang american
4718 A&A Paper
4719 \end_layout
4720
4721 \begin_layout Standard
4722
4723 \change_inserted 564990737 1670794716
4724
4725 \lang american
4726 Original by 
4727 \noun on
4728 Peter Sütterlin
4729 \noun default
4730 ; updated by the \SpecialChar LyX
4731  Team
4732 \end_layout
4733
4734 \begin_layout Subsubsection
4735
4736 \change_inserted 564990737 1670794716
4737
4738 \lang american
4739 Introduction
4740 \end_layout
4741
4742 \begin_layout Standard
4743
4744 \change_inserted 564990737 1670794716
4745
4746 \lang american
4747 This section describes how \SpecialChar LyX
4748  can be used to write articles for submission
4749  to the scientific journal 
4750 \emph on
4751 Astronomy and Astrophysics
4752 \emph default
4753  (
4754 \begin_inset CommandInset href
4755 LatexCommand href
4756 name "aa-package"
4757 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4758 literal "false"
4759
4760 \end_inset
4761
4762 ) using Version 9.1 of the document class 
4763 \family typewriter
4764 aa.cls
4765 \family default
4766 ; information about it is available at 
4767 \begin_inset Flex URL
4768 status collapsed
4769
4770 \begin_layout Plain Layout
4771
4772 \change_inserted 564990737 1670794716
4773
4774 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4775 \change_unchanged
4776
4777 \end_layout
4778
4779 \end_inset
4780
4781 .
4782 \end_layout
4783
4784 \begin_layout Standard
4785
4786 \change_inserted 564990737 1670794716
4787
4788 \lang american
4789 A manual comes together with the package and should be consulted before
4790  installing this document class as described in the 
4791 \emph on
4792 Installing New Document Classe
4793 \emph default
4794 s section of the 
4795 \emph on
4796 Customization
4797 \emph default
4798  manual.
4799  
4800 \end_layout
4801
4802 \begin_layout Standard
4803
4804 \change_inserted 564990737 1670794716
4805
4806 \lang american
4807 \begin_inset Note Greyedout
4808 status open
4809
4810 \begin_layout Plain Layout
4811
4812 \change_inserted 564990737 1670794716
4813
4814 \lang american
4815 Please note that the publisher of the journal was changed from Springer
4816  to EDP Sciences starting January 1, 2001.
4817  That change also involved some slight changes to the style files, namely
4818  the removal of the thesaurus command.
4819  If you have an older version installed, please upgrade.
4820  For information about compatibility with the old (version 4) layout, please
4821  refer to the comments in 
4822 \family typewriter
4823 \SpecialChar LyX
4824 Dir/layouts/aapaper.layout
4825 \family default
4826 .
4827 \end_layout
4828
4829 \end_inset
4830
4831
4832 \end_layout
4833
4834 \begin_layout Subsubsection
4835
4836 \change_inserted 564990737 1670794716
4837
4838 \lang american
4839 Getting started
4840 \end_layout
4841
4842 \begin_layout Standard
4843
4844 \change_inserted 564990737 1670794716
4845
4846 \lang american
4847 It is recommended you start from the template 
4848 \emph on
4849 aa.lyx
4850 \emph default
4851  in the menu 
4852 \family sans
4853 \bar under
4854 F
4855 \bar default
4856 ile\SpecialChar menuseparator
4857 New
4858 \begin_inset space ~
4859 \end_inset
4860
4861 fro
4862 \bar under
4863 m
4864 \bar default
4865
4866 \begin_inset space ~
4867 \end_inset
4868
4869 Template
4870 \family default
4871 .
4872  If you are not using the template, note the following settings:
4873 \end_layout
4874
4875 \begin_layout Itemize
4876
4877 \change_inserted 564990737 1670794716
4878
4879 \lang american
4880 Select 
4881 \family sans
4882 article (A&A)
4883 \family default
4884  in the 
4885 \family sans
4886 \bar under
4887 D
4888 \bar default
4889 ocument\SpecialChar menuseparator
4890
4891 \bar under
4892 S
4893 \bar default
4894 ettings\SpecialChar menuseparator
4895 Document
4896 \begin_inset space ~
4897 \end_inset
4898
4899 Class
4900 \family default
4901  dialog (OK, that one was obvious).
4902 \end_layout
4903
4904 \begin_layout Itemize
4905
4906 \change_inserted 564990737 1670794716
4907
4908 \lang american
4909 Don't change the 
4910 \family sans
4911 Headings
4912 \begin_inset space ~
4913 \end_inset
4914
4915
4916 \bar under
4917 s
4918 \bar default
4919 tyle
4920 \family default
4921  in the 
4922 \family sans
4923 Page
4924 \begin_inset space ~
4925 \end_inset
4926
4927 Layout
4928 \family default
4929  dialog: leave it set to 
4930 \family sans
4931 Default
4932 \family default
4933 .
4934  The whole layout is done by the macros, you shouldn't change anything.
4935 \end_layout
4936
4937 \begin_layout Subsubsection
4938
4939 \change_inserted 564990737 1670794716
4940
4941 \lang american
4942 The header block
4943 \end_layout
4944
4945 \begin_layout Standard
4946
4947 \change_inserted 564990737 1670794716
4948
4949 \lang american
4950 First thing to enter is the header information.
4951  It consists of five entries, of which one is optional.
4952  They are
4953 \end_layout
4954
4955 \begin_layout Itemize
4956
4957 \change_inserted 564990737 1670794716
4958
4959 \family sans
4960 \lang american
4961 Title
4962 \family default
4963 : [required] 
4964 \end_layout
4965
4966 \begin_layout Itemize
4967
4968 \change_inserted 564990737 1670794716
4969
4970 \family sans
4971 \lang american
4972 Subtitle
4973 \family default
4974 : [optional] 
4975 \end_layout
4976
4977 \begin_layout Itemize
4978
4979 \change_inserted 564990737 1670794716
4980
4981 \family sans
4982 \lang american
4983 Author
4984 \family default
4985 : [required]
4986 \end_layout
4987
4988 \begin_layout Itemize
4989
4990 \change_inserted 564990737 1670794716
4991
4992 \family typewriter
4993 \lang american
4994 Institute
4995 \family default
4996 : [required]
4997 \end_layout
4998
4999 \begin_layout Itemize
5000
5001 \change_inserted 564990737 1670794716
5002
5003 \family sans
5004 \lang american
5005 Date
5006 \family default
5007 : [required].
5008  Suggested format is 
5009 \family typewriter
5010 Received: <date>; Accepted <date> 
5011 \end_layout
5012
5013 \begin_layout Standard
5014
5015 \change_inserted 564990737 1670794716
5016
5017 \lang american
5018 Although the order of the single header entries doesn't matter it is advised
5019  to keep the above sequence, just to get the best optics and meets the layout
5020  of the real document.
5021 \end_layout
5022
5023 \begin_layout Standard
5024
5025 \change_inserted 564990737 1670794716
5026
5027 \lang american
5028 If you want to place footnotes in the header block, e.
5029 \begin_inset space \thinspace{}
5030 \end_inset
5031
5032 g.
5033 \begin_inset space \space{}
5034 \end_inset
5035
5036 to state your present address, just use the standard footnote via the menu
5037  
5038 \family sans
5039 \bar under
5040 I
5041 \bar default
5042 nsert\SpecialChar menuseparator
5043
5044 \bar under
5045 F
5046 \bar default
5047 ootnote.
5048
5049 \family default
5050  \SpecialChar LyX
5051  will automagically use the term 
5052 \family typewriter
5053
5054 \backslash
5055 thanks{}
5056 \family default
5057  in that case.
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5066  commands that
5067  have no counterpart in \SpecialChar LyX
5068 :
5069 \end_layout
5070
5071 \begin_layout Itemize
5072
5073 \change_inserted 564990737 1670794716
5074
5075 \family typewriter
5076 \lang american
5077
5078 \backslash
5079 and
5080 \family default
5081  to separate different names for more than one author and institute, respectivel
5082 y.
5083 \end_layout
5084
5085 \begin_layout Itemize
5086
5087 \change_inserted 564990737 1670794716
5088
5089 \family typewriter
5090 \lang american
5091
5092 \backslash
5093 inst{<nr>}
5094 \family default
5095  to mark corresponding author/institute pairs.
5096  The institutes are numbered sequentially as they appear in the 
5097 \family sans
5098 Institute
5099 \family default
5100  field, so you have to put a marker to each author.
5101 \end_layout
5102
5103 \begin_layout Itemize
5104
5105 \change_inserted 564990737 1670794716
5106
5107 \family typewriter
5108 \lang american
5109
5110 \backslash
5111 email{address}
5112 \family default
5113  to supply an email address for fast contact.
5114 \end_layout
5115
5116 \begin_layout Standard
5117
5118 \change_inserted 564990737 1670794716
5119
5120 \lang american
5121 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5122  code in \SpecialChar LyX
5123 .
5124  See the examples in the template and in the file 
5125 \emph on
5126 aa_sample.lyx
5127 \emph default
5128  in the 
5129 \family sans
5130 Examples
5131 \family default
5132  directory.
5133  
5134 \end_layout
5135
5136 \begin_layout Subsubsection
5137
5138 \change_inserted 564990737 1670794716
5139
5140 \lang american
5141 The abstract
5142 \end_layout
5143
5144 \begin_layout Standard
5145
5146 \change_inserted 564990737 1670794716
5147
5148 \lang american
5149 The abstract should immediately follow the header block and must contain
5150  five tokens: 
5151 \family typewriter
5152
5153 \backslash
5154 abstract{}{}{}{}{}
5155 \family default
5156  
5157 \end_layout
5158
5159 \begin_layout Enumerate
5160
5161 \change_inserted 564990737 1670794716
5162
5163 \family typewriter
5164 \lang american
5165 context heading
5166 \family default
5167  (optional) {} leave it empty if necessary 
5168 \end_layout
5169
5170 \begin_layout Enumerate
5171
5172 \change_inserted 564990737 1670794716
5173
5174 \family typewriter
5175 \lang american
5176 aims heading
5177 \family default
5178  (mandatory) {} 
5179 \end_layout
5180
5181 \begin_layout Enumerate
5182
5183 \change_inserted 564990737 1670794716
5184
5185 \family typewriter
5186 \lang american
5187 methods heading
5188 \family default
5189  (mandatory) {} 
5190 \end_layout
5191
5192 \begin_layout Enumerate
5193
5194 \change_inserted 564990737 1670794716
5195
5196 \family typewriter
5197 \lang american
5198 results heading
5199 \family default
5200  (mandatory) {} 
5201 \end_layout
5202
5203 \begin_layout Enumerate
5204
5205 \change_inserted 564990737 1670794716
5206
5207 \family typewriter
5208 \lang american
5209 conclusions heading
5210 \family default
5211  (optional) {} leave it empty if necessary 
5212 \end_layout
5213
5214 \begin_layout Standard
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \lang american
5219 (NB.
5220  This structure not shown in 
5221 \emph on
5222 aa_sample.lyx.
5223 \emph default
5224 )
5225 \end_layout
5226
5227 \begin_layout Subsubsection
5228
5229 \change_inserted 564990737 1670794716
5230
5231 \lang american
5232 Supported environments
5233 \end_layout
5234
5235 \begin_layout Standard
5236
5237 \change_inserted 564990737 1670794716
5238
5239 \lang american
5240 The A&A paper layout supports the following environments for structuring
5241  your text:
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \change_inserted 564990737 1670794716
5247
5248 \family sans
5249 \lang american
5250 Standard
5251 \end_layout
5252
5253 \begin_layout Itemize
5254
5255 \change_inserted 564990737 1670794716
5256
5257 \family sans
5258 \lang american
5259 Section
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Subsection
5269 \end_layout
5270
5271 \begin_layout Itemize
5272
5273 \change_inserted 564990737 1670794716
5274
5275 \family sans
5276 \lang american
5277 Subsubsection
5278 \end_layout
5279
5280 \begin_layout Itemize
5281
5282 \change_inserted 564990737 1670794716
5283
5284 \family sans
5285 \lang american
5286 Itemize
5287 \end_layout
5288
5289 \begin_layout Itemize
5290
5291 \change_inserted 564990737 1670794716
5292
5293 \family sans
5294 \lang american
5295 Enumerate
5296 \end_layout
5297
5298 \begin_layout Itemize
5299
5300 \change_inserted 564990737 1670794716
5301
5302 \family sans
5303 \lang american
5304 Description
5305 \end_layout
5306
5307 \begin_layout Itemize
5308
5309 \change_inserted 564990737 1670794716
5310
5311 \family sans
5312 \lang american
5313 Caption
5314 \end_layout
5315
5316 \begin_layout Itemize
5317
5318 \change_inserted 564990737 1670794716
5319
5320 \family sans
5321 \lang american
5322 Abstract
5323 \end_layout
5324
5325 \begin_layout Itemize
5326
5327 \change_inserted 564990737 1670794716
5328
5329 \family sans
5330 \lang american
5331 Acknowledgment
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family sans
5339 \lang american
5340 Bibliography
5341 \end_layout
5342
5343 \begin_layout Itemize
5344
5345 \change_inserted 564990737 1670794716
5346
5347 \family sans
5348 \lang american
5349 \SpecialChar LaTeX
5350
5351 \end_layout
5352
5353 \begin_layout Subsubsection
5354
5355 \change_inserted 564990737 1670794716
5356
5357 \lang american
5358 Commands not supported by \SpecialChar LyX
5359
5360 \end_layout
5361
5362 \begin_layout Standard
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \lang american
5367 Some commands are not yet supported by the 
5368 \family sans
5369 paper (A&A)
5370 \family default
5371  layout for \SpecialChar LyX
5372 .
5373  Some have already been mentioned.
5374  For the sake of completeness, they are listed all together here:
5375 \end_layout
5376
5377 \begin_layout Itemize
5378
5379 \change_inserted 564990737 1670794716
5380
5381 \family typewriter
5382 \lang american
5383
5384 \backslash
5385 and
5386 \end_layout
5387
5388 \begin_layout Itemize
5389
5390 \change_inserted 564990737 1670794716
5391
5392 \family typewriter
5393 \lang american
5394
5395 \backslash
5396 email
5397 \end_layout
5398
5399 \begin_layout Itemize
5400
5401 \change_inserted 564990737 1670794716
5402
5403 \family typewriter
5404 \lang american
5405
5406 \backslash
5407 inst{}
5408 \end_layout
5409
5410 \begin_layout Itemize
5411
5412 \change_inserted 564990737 1670794716
5413
5414 \family typewriter
5415 \lang american
5416
5417 \backslash
5418 keywords{}
5419 \end_layout
5420
5421 \begin_layout Itemize
5422
5423 \change_inserted 564990737 1670794716
5424
5425 \family typewriter
5426 \lang american
5427
5428 \backslash
5429 object{}
5430 \end_layout
5431
5432 \begin_layout Standard
5433
5434 \change_inserted 564990737 1670794716
5435
5436 \lang american
5437 If you want to use any of these commands, you have to enter them yourself.
5438  
5439 \family typewriter
5440 Do not forget to use
5441 \family sans
5442  
5443 \bar under
5444 I
5445 \bar default
5446 nsert\SpecialChar menuseparator
5447 \SpecialChar TeX
5448
5449 \begin_inset space ~
5450 \end_inset
5451
5452 Code
5453 \family default
5454 \series bold
5455 !
5456 \end_layout
5457
5458 \begin_layout Subsubsection
5459
5460 \change_inserted 564990737 1670794716
5461
5462 \lang american
5463 Figure and Table Floats
5464 \end_layout
5465
5466 \begin_layout Standard
5467
5468 \change_inserted 564990737 1670794716
5469
5470 \lang american
5471 \SpecialChar LyX
5472  provides support for the necessary float environments 
5473 \family sans
5474 figure, figure*, table
5475 \family default
5476  and 
5477 \family sans
5478 table*
5479 \family default
5480 , therefore we won't tell much about it here.
5481  Refer to the 
5482 \emph on
5483 User's
5484 \begin_inset space ~
5485 \end_inset
5486
5487 Guide
5488 \emph default
5489 .
5490  Just remember that tables should be left-aligned.
5491  For that, select the table and change the alignment in 
5492 \family sans
5493 \bar under
5494 E
5495 \bar default
5496 dit\SpecialChar menuseparator
5497
5498 \bar under
5499 P
5500 \bar default
5501 aragraph
5502 \begin_inset space ~
5503 \end_inset
5504
5505 Settings.
5506 \end_layout
5507
5508 \begin_layout Standard
5509
5510 \change_inserted 564990737 1670794716
5511
5512 \lang american
5513 There is only one special thing: the figures with a caption beside the figure.
5514  To create such a figure, you have to do the following:
5515 \end_layout
5516
5517 \begin_layout Enumerate
5518
5519 \change_inserted 564990737 1670794716
5520
5521 \lang american
5522 Create a wide figure float: 
5523 \family sans
5524 \bar under
5525 I
5526 \bar default
5527 nsert\SpecialChar menuseparator
5528 Flo
5529 \bar under
5530 a
5531 \bar default
5532 t\SpecialChar menuseparator
5533 Figure
5534 \family default
5535 , then, from within the float, use the menu 
5536 \family sans
5537 \bar under
5538 E
5539 \bar default
5540 dit\SpecialChar menuseparator
5541 Flo
5542 \bar under
5543 a
5544 \bar default
5545 t
5546 \begin_inset space ~
5547 \end_inset
5548
5549 Settings
5550 \family default
5551  and check 
5552 \family sans
5553 \bar under
5554 S
5555 \bar default
5556 pan
5557 \begin_inset space ~
5558 \end_inset
5559
5560 columns
5561 \family default
5562  in the 
5563 \family sans
5564 float
5565 \family default
5566  dialog.
5567 \end_layout
5568
5569 \begin_layout Enumerate
5570
5571 \change_inserted 564990737 1670794716
5572
5573 \lang american
5574 Enter your caption text.
5575 \end_layout
5576
5577 \begin_layout Enumerate
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \lang american
5582 Press 
5583 \family sans
5584 Return
5585 \family default
5586  to move the cursor above the caption.
5587 \end_layout
5588
5589 \begin_layout Enumerate
5590
5591 \change_inserted 564990737 1670794716
5592
5593 \lang american
5594 Insert your figure
5595 \end_layout
5596
5597 \begin_layout Enumerate
5598
5599 \change_inserted 564990737 1670794716
5600
5601 \lang american
5602 Position the cursor after the figure and insert a horizontal fill by using
5603  the menu: 
5604 \family sans
5605 \bar under
5606 I
5607 \bar default
5608 nsert\SpecialChar menuseparator
5609 F
5610 \bar under
5611 o
5612 \bar default
5613 rmatting\SpecialChar menuseparator
5614 H
5615 \bar under
5616 o
5617 \bar default
5618 rizontal
5619 \begin_inset space ~
5620 \end_inset
5621
5622 Space
5623 \family default
5624  to open the 
5625 \family sans
5626 space
5627 \family default
5628  dialog and select the 
5629 \family sans
5630 Horizontal fill
5631 \family default
5632  option from the 
5633 \family sans
5634 \bar under
5635 S
5636 \bar default
5637 pacing
5638 \family default
5639  pull-down menu.
5640 \end_layout
5641
5642 \begin_layout Enumerate
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \lang american
5647 Switch to \SpecialChar LaTeX
5648  mode: 
5649 \family sans
5650 M-c
5651 \begin_inset space ~
5652 \end_inset
5653
5654 t
5655 \family default
5656 .
5657 \end_layout
5658
5659 \begin_layout Enumerate
5660
5661 \change_inserted 564990737 1670794716
5662
5663 \lang american
5664 Enter 
5665 \family typewriter
5666
5667 \backslash
5668 parbox[b]{55mm}{
5669 \family default
5670  
5671 \emph on
5672 Do not close the brace!
5673 \end_layout
5674
5675 \begin_layout Enumerate
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \lang american
5680 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5681  mode and insert
5682  the closing brace: 
5683 \family sans
5684 M-c
5685 \begin_inset space ~
5686 \end_inset
5687
5688 t
5689 \family default
5690  
5691 \family typewriter
5692 }
5693 \family default
5694 .
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 Also, refer to the figures in the file 
5703 \emph on
5704 aa_sample.lyx
5705 \emph default
5706  in the 
5707 \family sans
5708 Examples
5709 \family default
5710  directory.
5711 \end_layout
5712
5713 \begin_layout Subsubsection
5714
5715 \change_inserted 564990737 1670794716
5716
5717 \lang american
5718 Referee layout
5719 \end_layout
5720
5721 \begin_layout Standard
5722
5723 \change_inserted 564990737 1670794716
5724
5725 \lang american
5726 For submission, the paper has to be formatted in a special double-spacing
5727  layout.
5728  For this purpose, you have to add the option 
5729 \family typewriter
5730 referee
5731 \family default
5732  to the 
5733 \family sans
5734 Cus
5735 \bar under
5736 t
5737 \bar default
5738 om Class
5739 \begin_inset space ~
5740 \end_inset
5741
5742 options
5743 \family default
5744  in the 
5745 \family sans
5746 \bar under
5747 D
5748 \bar default
5749 ocument\SpecialChar menuseparator
5750
5751 \bar under
5752 S
5753 \bar default
5754 ettings\SpecialChar menuseparator
5755 Document
5756 \begin_inset space ~
5757 \end_inset
5758
5759 Class
5760 \family default
5761  dialog.
5762  
5763 \end_layout
5764
5765 \begin_layout Subsubsection
5766
5767 \change_inserted 564990737 1670794716
5768
5769 \lang american
5770 The example paper
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 The example paper 
5779 \emph on
5780 aa_sample.lyx
5781 \emph default
5782  was written with \SpecialChar LyX
5783 .
5784  It is the example paper from the original macro package, 
5785 \family typewriter
5786 aa.dem
5787 \family default
5788  in the 
5789 \begin_inset CommandInset href
5790 LatexCommand href
5791 name "aa-package"
5792 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5793 literal "false"
5794
5795 \end_inset
5796
5797 , but translated to \SpecialChar LyX
5798  using the older unstructured abstract type.
5799  Use it for inspiration, and compare the \SpecialChar LaTeX
5800  code in 
5801 \family typewriter
5802 aa.dem
5803 \family default
5804  with the \SpecialChar LyX
5805  way of writing.
5806 \end_layout
5807
5808 \begin_layout Subsection
5809 AAS\SpecialChar TeX
5810
5811 \end_layout
5812
5813 \begin_layout Standard
5814 by 
5815 \noun on
5816 Mike Ressler
5817 \end_layout
5818
5819 \begin_layout Subsubsection
5820 Introduction
5821 \end_layout
5822
5823 \begin_layout Standard
5824 AAS\SpecialChar TeX
5825  is a set of macros produced by the American Astronomical Society to
5826  facilitate electronic manuscript submission to the three journals they
5827  publish: the Astrophysical Journal (including the Letters and Supplement),
5828  the Astronomical Journal, and the Publications of the Astronomical Society
5829  of the Pacific.
5830  \SpecialChar LyX
5831  has proven to be an excellent tool for generating these documents, especially
5832  given its equation, citation, and figure handling capabilities.
5833  \SpecialChar LyX
5834  requires version 5.0 (or higher) of these macros; preferably 6.0, which
5835  is the version described here, or higher.
5836  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
5837 2.09 and are fundamentally
5838  incompatible with \SpecialChar LyX
5839 .
5840  The AAS\SpecialChar TeX
5841  package may be downloaded from the AAS\SpecialChar TeX
5842  Web site
5843 \end_layout
5844
5845 \begin_layout Standard
5846 \begin_inset VSpace medskip
5847 \end_inset
5848
5849
5850 \end_layout
5851
5852 \begin_layout Standard
5853 \align center
5854 \begin_inset Flex URL
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858
5859 https://aas.org/aastex/aastex-downloads
5860 \end_layout
5861
5862 \end_inset
5863
5864
5865 \end_layout
5866
5867 \begin_layout Standard
5868 \begin_inset VSpace medskip
5869 \end_inset
5870
5871
5872 \end_layout
5873
5874 \begin_layout Standard
5875 A complete user guide is contained in that package and you should familiarize
5876  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
5877 .
5878  \SpecialChar LyX
5879  will not reduce the need to figure out all the AAS\SpecialChar TeX
5880  commands, it will only
5881  reduce the drudgery of typing everything in.
5882  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
5883  document conforms
5884  completely to the requirements of the journal to which you are submitting
5885  your paper.
5886 \end_layout
5887
5888 \begin_layout Subsubsection
5889 Starting a New Paper
5890 \end_layout
5891
5892 \begin_layout Standard
5893 I strongly suggest that you start with the AAS\SpecialChar TeX
5894  template file.
5895  Click on 
5896 \family sans
5897 File\SpecialChar menuseparator
5898 New from
5899 \family default
5900  
5901 \family sans
5902 Template
5903 \family default
5904 , enter the new file name, then choose the 
5905 \family typewriter
5906 aastex6.lyx
5907 \family default
5908  template.
5909  This will show the most common fields found in a manuscript.
5910  Simply overwrite the existing text (including the brackets, 
5911 \family typewriter
5912 <>
5913 \family default
5914 ) with the correct information.
5915  Many of the AAS\SpecialChar TeX
5916  commands and environments can be implemented directly in
5917  \SpecialChar LyX
5918 , but some cannot.
5919  For commands such as these, the \SpecialChar LaTeX
5920  code must be entered directly and marked
5921  as such.
5922  Such commands are referred to as \SpecialChar TeX
5923  code, or Evil Red Text.
5924  I tried to minimize the amount of \SpecialChar TeX
5925  code needed in an AAS\SpecialChar TeX
5926  document.
5927 \end_layout
5928
5929 \begin_layout Subsubsection
5930 Finishing Your Paper
5931 \end_layout
5932
5933 \begin_layout Standard
5934 When the paper is finished to your satisfaction and previews/prints correctly,
5935  there are a few 
5936 \begin_inset Quotes eld
5937 \end_inset
5938
5939 postprocessing
5940 \begin_inset Quotes erd
5941 \end_inset
5942
5943  actions which need to be done before you submit it to the journals.
5944  
5945 \end_layout
5946
5947 \begin_layout Enumerate
5948 Export your paper as a \SpecialChar LaTeX
5949  file (
5950 \family sans
5951 File\SpecialChar menuseparator
5952 Export\SpecialChar menuseparator
5953 \SpecialChar LaTeX
5954
5955 \family default
5956 ).
5957  
5958 \end_layout
5959
5960 \begin_layout Enumerate
5961 Edit the resulting 
5962 \family typewriter
5963 .tex
5964 \family default
5965  file with your favorite text editor
5966 \end_layout
5967
5968 \begin_deeper
5969 \begin_layout Enumerate
5970 remove the comment lines before the 
5971 \family typewriter
5972
5973 \backslash
5974 documentclass
5975 \family default
5976  command
5977 \end_layout
5978
5979 \begin_layout Enumerate
5980 remove the 
5981 \family typewriter
5982
5983 \backslash
5984 usepackage...{fontenc}
5985 \family default
5986  line if it appears (usually just after 
5987 \family typewriter
5988
5989 \backslash
5990 documentclass
5991 \family default
5992 }; also remove the 
5993 \family typewriter
5994
5995 \backslash
5996 secnumdepth
5997 \family default
5998  line if it appears.
5999 \end_layout
6000
6001 \begin_layout Enumerate
6002 remove everything between (and including) the 
6003 \family typewriter
6004
6005 \backslash
6006 makeatletter
6007 \family default
6008  and 
6009 \family typewriter
6010
6011 \backslash
6012 makeatother
6013 \family default
6014  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6015  preamble
6016  (which should appear immediately after the 
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 User specified \SpecialChar LaTeX
6021  commands
6022 \begin_inset Quotes erd
6023 \end_inset
6024
6025  comment in the 
6026 \family typewriter
6027 .tex
6028 \family default
6029  file).
6030 \end_layout
6031
6032 \end_deeper
6033 \begin_layout Enumerate
6034 Run the resulting file through \SpecialChar LaTeX
6035  to make sure it still processes correctly.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 Reread the journal requirements to make sure your filenames and formats
6040  are correct.
6041 \end_layout
6042
6043 \begin_layout Enumerate
6044 Submit it.
6045 \end_layout
6046
6047 \begin_layout Subsubsection
6048 Comments On Specific Commands
6049 \end_layout
6050
6051 \begin_layout Standard
6052 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6053  commands: the
6054  AAS\SpecialChar TeX
6055  User Guide (
6056 \family typewriter
6057 aasguide.tex
6058 \family default
6059 ) gives a good description of each.
6060  Thus it's probably easiest for me to go down the list as found in the guide
6061  and offer comments where necessary.
6062  So let's begin \SpecialChar ldots
6063
6064 \end_layout
6065
6066 \begin_layout Paragraph
6067 Things that work as expected
6068 \end_layout
6069
6070 \begin_layout Standard
6071 Because they work as you might expect, I simply list them and the section
6072  they are found in: 
6073 \family typewriter
6074
6075 \backslash
6076 documentclass
6077 \family default
6078  (2.1.1), 
6079 \family typewriter
6080
6081 \backslash
6082 begin{document}
6083 \family default
6084  (2.2), 
6085 \family typewriter
6086
6087 \backslash
6088 title
6089 \family default
6090  (2.3), 
6091 \family typewriter
6092
6093 \backslash
6094 author
6095 \family default
6096  (2.3), 
6097 \family typewriter
6098
6099 \backslash
6100 affil
6101 \family default
6102  (2.3), 
6103 \family typewriter
6104
6105 \backslash
6106 abstract
6107 \family default
6108  (2.4), 
6109 \family typewriter
6110
6111 \backslash
6112 keywords
6113 \family default
6114  (2.5), 
6115 \family typewriter
6116
6117 \backslash
6118 section
6119 \family default
6120  (2.7), 
6121 \family typewriter
6122
6123 \backslash
6124 subsection
6125 \family default
6126  (2.7), 
6127 \family typewriter
6128
6129 \backslash
6130 subsubsection
6131 \family default
6132  (2.7), 
6133 \family typewriter
6134
6135 \backslash
6136 paragraph
6137 \family default
6138  (2.7), 
6139 \family typewriter
6140
6141 \backslash
6142 facility
6143 \family default
6144  (2.10), 
6145 \family typewriter
6146
6147 \backslash
6148 begin{displaymath}
6149 \family default
6150  (2.12), 
6151 \family typewriter
6152
6153 \backslash
6154 begin{equation}
6155 \family default
6156  (2.12), 
6157 \family typewriter
6158
6159 \backslash
6160 begin{eqnarray}
6161 \family default
6162  (2.12), 
6163 \family typewriter
6164
6165 \backslash
6166 begin{mathletters}
6167 \family default
6168  (2.12), 
6169 \family typewriter
6170
6171 \backslash
6172 begin{thebibliography}
6173 \family default
6174  (2.13.1), 
6175 \family typewriter
6176
6177 \backslash
6178 bibitem
6179 \family default
6180  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6181  graphicx figure commands (2.14.1), 
6182 \family typewriter
6183
6184 \backslash
6185 begin{table}
6186 \family default
6187  (2.15.4), 
6188 \family typewriter
6189
6190 \backslash
6191 begin{tabular}
6192 \family default
6193  (2.15.4), 
6194 \family typewriter
6195
6196 \backslash
6197 caption
6198 \family default
6199  (2.15.4), 
6200 \family typewriter
6201
6202 \backslash
6203 label
6204 \family default
6205  (2.15.4, amongst other places), 
6206 \family typewriter
6207
6208 \backslash
6209 tablerefs
6210 \family default
6211  (2.15.5), 
6212 \family typewriter
6213
6214 \backslash
6215 tablecomments
6216 \family default
6217  (2.15.5), 
6218 \family typewriter
6219
6220 \backslash
6221 url
6222 \family default
6223  (2.17.4), 
6224 \family typewriter
6225
6226 \backslash
6227 end{document}
6228 \family default
6229  (2.18).
6230 \end_layout
6231
6232 \begin_layout Standard
6233 The following style options also work correctly: 
6234 \family typewriter
6235 longabstract
6236 \family default
6237  (2.4), 
6238 \family typewriter
6239 preprint
6240 \family default
6241  (3.2.1), 
6242 \family typewriter
6243 preprint2
6244 \family default
6245  (3.2.2), 
6246 \family typewriter
6247 eqsecnum
6248 \family default
6249  (3.3), 
6250 \family typewriter
6251 flushrt
6252 \family default
6253  (3.4).
6254  Simply put them in the 
6255 \family sans
6256 Options
6257 \family default
6258  box in 
6259 \family sans
6260 Layout\SpecialChar menuseparator
6261 Document
6262 \family default
6263 .
6264 \end_layout
6265
6266 \begin_layout Paragraph
6267 Things that work, but require more comment
6268 \end_layout
6269
6270 \begin_layout Standard
6271 The following items work, but require a little more discussion:
6272 \end_layout
6273
6274 \begin_layout Itemize
6275 These items are reserved for use by the journal editors, but you can put
6276  them into the \SpecialChar LaTeX
6277  preamble if you feel compelled to do so: 
6278 \family typewriter
6279
6280 \backslash
6281 received
6282 \family default
6283
6284 \family typewriter
6285
6286 \backslash
6287 revised
6288 \family default
6289
6290 \family typewriter
6291
6292 \backslash
6293 accepted
6294 \family default
6295
6296 \family typewriter
6297
6298 \backslash
6299 ccc
6300 \family default
6301
6302 \family typewriter
6303
6304 \backslash
6305 cpright
6306 \family default
6307  (all from 2.1.3)
6308 \end_layout
6309
6310 \begin_layout Itemize
6311 These items may be placed in the \SpecialChar LaTeX
6312  preamble, and are included as blanks in
6313  the template file: 
6314 \family typewriter
6315
6316 \backslash
6317 slugcomment
6318 \family default
6319  (2.1.4), 
6320 \family typewriter
6321
6322 \backslash
6323 shorttitle
6324 \family default
6325  (2.1.5), 
6326 \family typewriter
6327
6328 \backslash
6329 shortauthors
6330 \family default
6331  (2.1.5)
6332 \end_layout
6333
6334 \begin_layout Itemize
6335
6336 \family typewriter
6337
6338 \backslash
6339 email
6340 \family default
6341  (2.3) – can only be used 
6342 \begin_inset Quotes eld
6343 \end_inset
6344
6345 standalone
6346 \begin_inset Quotes erd
6347 \end_inset
6348
6349 , not in the middle of a paragraph.
6350  Use \SpecialChar TeX
6351  code if you need to embed it.
6352 \end_layout
6353
6354 \begin_layout Itemize
6355
6356 \family typewriter
6357
6358 \backslash
6359 and
6360 \family default
6361  (2.3) – will have extra {} after it.
6362  This should not cause an error.
6363 \end_layout
6364
6365 \begin_layout Itemize
6366
6367 \family typewriter
6368
6369 \backslash
6370 notetoeditor
6371 \family default
6372  (2.6) – can only be used 
6373 \begin_inset Quotes eld
6374 \end_inset
6375
6376 standalone
6377 \begin_inset Quotes erd
6378 \end_inset
6379
6380 , not in the middle of a paragraph.
6381  Use \SpecialChar TeX
6382  code if you need to embed it.
6383 \end_layout
6384
6385 \begin_layout Itemize
6386
6387 \family typewriter
6388
6389 \backslash
6390 placetable
6391 \family default
6392  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6393  hand
6394 \end_layout
6395
6396 \begin_layout Itemize
6397
6398 \family typewriter
6399
6400 \backslash
6401 placefigure
6402 \family default
6403  (2.8) – same as for 
6404 \family typewriter
6405
6406 \backslash
6407 placetable
6408 \end_layout
6409
6410 \begin_layout Itemize
6411
6412 \family typewriter
6413
6414 \backslash
6415 acknowledgements
6416 \family default
6417  (2.9) – will have extra {} after it.
6418  This should not cause an error.
6419 \end_layout
6420
6421 \begin_layout Itemize
6422
6423 \family typewriter
6424
6425 \backslash
6426 appendix
6427 \family default
6428  (2.11) – will have extra {} after it.
6429  This should not cause an error.
6430 \end_layout
6431
6432 \begin_layout Itemize
6433
6434 \family typewriter
6435
6436 \backslash
6437 figcaption
6438 \family default
6439  (2.14.2) – you can insert an optional filename argument by placing the cursor
6440  at the beginning of the text and selecting 
6441 \family sans
6442 Insert\SpecialChar menuseparator
6443 Short Title
6444 \family default
6445 .
6446  
6447 \begin_inset Quotes eld
6448 \end_inset
6449
6450 Short Title
6451 \begin_inset Quotes erd
6452 \end_inset
6453
6454  inserts an optional argument of the type needed by 
6455 \family typewriter
6456
6457 \backslash
6458 figcaption
6459 \family default
6460 .
6461  Hopefully it will be renamed someday.
6462 \end_layout
6463
6464 \begin_layout Itemize
6465
6466 \family typewriter
6467
6468 \backslash
6469 objectname
6470 \family default
6471  (2.17.1) – same as 
6472 \family typewriter
6473
6474 \backslash
6475 figcaption
6476 \family default
6477  for the catalog ID optional parameter
6478 \end_layout
6479
6480 \begin_layout Itemize
6481
6482 \family typewriter
6483
6484 \backslash
6485 dataset
6486 \family default
6487  (2.17.1) – same as 
6488 \family typewriter
6489
6490 \backslash
6491 figcaption
6492 \family default
6493  for the catalog ID optional parameter
6494 \end_layout
6495
6496 \begin_layout Paragraph
6497 Things not implemented, use \SpecialChar TeX
6498  code
6499 \end_layout
6500
6501 \begin_layout Standard
6502
6503 \family typewriter
6504
6505 \backslash
6506 eqnum
6507 \family default
6508  (2.12), 
6509 \family typewriter
6510
6511 \backslash
6512 setcounter{equation}
6513 \family default
6514  (2.12), Journal name abbreviations (2.13.4), 
6515 \family typewriter
6516
6517 \backslash
6518 figurenum
6519 \family default
6520  (2.14.1), 
6521 \family typewriter
6522
6523 \backslash
6524 epsscale
6525 \family default
6526  (2.14.1), 
6527 \family typewriter
6528
6529 \backslash
6530 plotone
6531 \family default
6532  (2.14.1), 
6533 \family typewriter
6534
6535 \backslash
6536 plottwo
6537 \family default
6538  (2.14.1), 
6539 \family typewriter
6540
6541 \backslash
6542 tablenum
6543 \family default
6544  (2.15.4), 
6545 \family typewriter
6546
6547 \backslash
6548 tableline
6549 \family default
6550  (2.15.4, insert it as the first element in the lefthand cell after where
6551  you want it.
6552  Don't use any of \SpecialChar LyX
6553 's rules in the table), 
6554 \family typewriter
6555
6556 \backslash
6557 tablenotemark
6558 \family default
6559  (2.15.5), 
6560 \family typewriter
6561
6562 \backslash
6563 tablenotetext
6564 \family default
6565  (2.15.5), much of Misc (2.17, except 
6566 \family typewriter
6567
6568 \backslash
6569 objectname
6570 \family default
6571
6572 \family typewriter
6573
6574 \backslash
6575 dataset
6576 \family default
6577
6578 \family typewriter
6579
6580 \backslash
6581 url
6582 \family default
6583 , and 
6584 \family typewriter
6585
6586 \backslash
6587 email
6588 \family default
6589 ; see above), 
6590 \family typewriter
6591
6592 \backslash
6593 singlespace
6594 \family default
6595  (3.1), 
6596 \family typewriter
6597
6598 \backslash
6599 doublespace
6600 \family default
6601  (3.1), 
6602 \family typewriter
6603
6604 \backslash
6605 onecolumn
6606 \family default
6607  (3.2), 
6608 \family typewriter
6609
6610 \backslash
6611 twocolumn
6612 \family default
6613  (3.2)
6614 \end_layout
6615
6616 \begin_layout Paragraph
6617 Things that cannot be implemented
6618 \end_layout
6619
6620 \begin_layout Standard
6621 \SpecialChar ldots
6622  at least in any meaningful sort of way, so I suggest ignoring them.
6623  They are the references environment (2.13.3), and the deluxetable environment
6624  (2.15).
6625  If you really, really need to use deluxetable, I suggest editing it in
6626  a separate file with a text editor, then using 
6627 \family sans
6628 Insert\SpecialChar menuseparator
6629 Child
6630 \begin_inset space ~
6631 \end_inset
6632
6633 Document
6634 \family default
6635  to include it in your \SpecialChar LyX
6636  document.
6637  See the 
6638 \family typewriter
6639 aas_sample.lyx
6640 \family default
6641  file to see an example of this.
6642 \end_layout
6643
6644 \begin_layout Subsubsection
6645 FAQs, Tips, Tricks, and Other Ruminations
6646 \end_layout
6647
6648 \begin_layout Paragraph
6649 Getting \SpecialChar LyX
6650  and AAS\SpecialChar TeX
6651  to cooperate
6652 \end_layout
6653
6654 \begin_layout Standard
6655 It can be a bit tricky to get \SpecialChar LyX
6656  to recognize a new layout and document class.
6657  When all else fails, do this:
6658 \end_layout
6659
6660 \begin_layout Enumerate
6661 Make certain that \SpecialChar LaTeX
6662  can find AAS\SpecialChar TeX
6663 .
6664  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6665  distribution into a
6666  directory completely unrelated to \SpecialChar LaTeX
6667  or AAS\SpecialChar TeX
6668  and run \SpecialChar LaTeX
6669  on 
6670 \family typewriter
6671 sample.tex
6672 \family default
6673 .
6674 \end_layout
6675
6676 \begin_layout Enumerate
6677 Make certain that 
6678 \family typewriter
6679 aastex.layout
6680 \family default
6681  appears in \SpecialChar LyX
6682 's 
6683 \family typewriter
6684 layouts
6685 \family default
6686  folder
6687 \end_layout
6688
6689 \begin_layout Enumerate
6690 Rerun 
6691 \family sans
6692 Tools\SpecialChar menuseparator
6693 Reconfigure
6694 \family default
6695  in \SpecialChar LyX
6696 , then restart \SpecialChar LyX
6697 .
6698 \end_layout
6699
6700 \begin_layout Enumerate
6701 Open a regular new file, not from a template.
6702  Does AAS\SpecialChar TeX
6703  appear in the class list in 
6704 \family sans
6705 Document\SpecialChar menuseparator
6706 Settings
6707 \family default
6708 ?
6709 \end_layout
6710
6711 \begin_layout Standard
6712 If you get a warning from an existing AAS\SpecialChar TeX
6713  document about not being able
6714  to find the AAS\SpecialChar TeX
6715  layout or a message about 
6716 \begin_inset Quotes eld
6717 \end_inset
6718
6719 You should not mix title layouts with normal ones
6720 \begin_inset Quotes erd
6721 \end_inset
6722
6723 , things haven't been installed correctly.
6724 \end_layout
6725
6726 \begin_layout Paragraph
6727 \SpecialChar LaTeX
6728  error processing a table 
6729 \end_layout
6730
6731 \begin_layout Standard
6732 \SpecialChar LyX
6733 , by default, attempts to center the table caption/title.
6734  This seems to produce a bad interaction in AAS\SpecialChar TeX
6735  so you should click somewhere
6736  in the caption/title, then select 
6737 \family sans
6738 Edit\SpecialChar menuseparator
6739 Paragraph
6740 \begin_inset space ~
6741 \end_inset
6742
6743 Settings
6744 \family default
6745 , then set the 
6746 \family sans
6747 Alignment
6748 \family default
6749  to 
6750 \family sans
6751 Block
6752 \family default
6753 .
6754  This took care of it for me.
6755 \end_layout
6756
6757 \begin_layout Paragraph
6758 References
6759 \end_layout
6760
6761 \begin_layout Standard
6762 A couple of things: 1) I have noticed some funny spacing in the reference
6763  entries in the text.
6764  When you enter the bibliography item data, make sure their is 
6765 \emph on
6766 no
6767 \emph default
6768  space between the last author and the parenthesis setting off the year;
6769  
6770 \emph on
6771 e.
6772 \begin_inset space \thinspace{}
6773 \end_inset
6774
6775 g.
6776 \begin_inset space \space{}
6777 \end_inset
6778
6779
6780 \emph default
6781 type 
6782 \family typewriter
6783 Ressler(1992)
6784 \family default
6785 , not 
6786 \family typewriter
6787 Ressler (1992)
6788 \family default
6789 .
6790  2) Entering the references at all is not obvious.
6791  The easiest thing is to start typing your first reference at the end of
6792  the document, then mark it as type 
6793 \family sans
6794 References
6795 \family default
6796 .
6797  That will put a small gray box in front of what you just typed.
6798  Click on the box to fill in the rest of the information.
6799  For new references, go to the end of an existing reference and press return.
6800  That will create a new line with its own box, etc.
6801 \end_layout
6802
6803 \begin_layout Paragraph
6804 Including EPS files
6805 \end_layout
6806
6807 \begin_layout Standard
6808 Even though AAS\SpecialChar TeX
6809  provides its own figure commands (
6810 \family typewriter
6811
6812 \backslash
6813 plotone
6814 \family default
6815 , for example), I much prefer \SpecialChar LaTeX
6816 's standard figure commands (with the default
6817  graphicx).
6818  You can insert the 
6819 \family typewriter
6820
6821 \backslash
6822 plotone
6823 \family default
6824 , etc.
6825 \begin_inset space ~
6826 \end_inset
6827
6828 commands as \SpecialChar TeX
6829  code into a Figure Float box if you desire, but I never have
6830  much luck getting the layout right.
6831  With the standard graphics, \SpecialChar LyX
6832  will insert a 
6833 \family typewriter
6834
6835 \backslash
6836 usepackage{graphicx}
6837 \family default
6838  command into the \SpecialChar LaTeX
6839  preamble and handle the figures in the standard \SpecialChar LaTeX2e
6840  way,
6841  interspersing the figures in the text.
6842  I believe ApJ accepts figures exactly this way now; AJ might still use
6843  the 
6844 \begin_inset Quotes eld
6845 \end_inset
6846
6847 stack everything at the end
6848 \begin_inset Quotes erd
6849 \end_inset
6850
6851  technique.
6852 \end_layout
6853
6854 \begin_layout Paragraph
6855 Things I could have done, but didn't
6856 \end_layout
6857
6858 \begin_layout Standard
6859 There are a few 
6860 \begin_inset Quotes eld
6861 \end_inset
6862
6863 pretty
6864 \begin_inset Quotes erd
6865 \end_inset
6866
6867  things I could have implemented, but chose not to.
6868  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
6869  window,
6870  even though it is double-spaced in the paper manuscript.
6871  Also, I chose not to make separate layouts for the preprint and preprint2
6872  styles.
6873  Since I assume you will spend most of your time in the plain manuscript
6874  mode anyway, I decided not to chew up more disk space with this.
6875  
6876 \end_layout
6877
6878 \begin_layout Subsubsection
6879 Final Caveat
6880 \end_layout
6881
6882 \begin_layout Standard
6883 Your mileage may vary.
6884  I've now had papers published by both ApJ and AJ that have had 98% of the
6885  effort done in \SpecialChar LyX
6886 ; the last 2% was the \SpecialChar LaTeX
6887  post-processing and a few cleanups.
6888  I have had no trouble with the submission process, and I'm sure the journals
6889  were never aware that there might be a difference.
6890  So, go forth and publish!
6891 \end_layout
6892
6893 \begin_layout Subsection
6894
6895 \change_inserted 564990737 1671042028
6896
6897 \lang american
6898 Elsevier
6899 \end_layout
6900
6901 \begin_layout Standard
6902
6903 \change_inserted 564990737 1671042028
6904
6905 \lang american
6906 The document class 
6907 \family sans
6908 article
6909 \begin_inset space \thinspace{}
6910 \end_inset
6911
6912 (Elsevier)
6913 \family default
6914  provides the 
6915 \family typewriter
6916 elsarticle.cls
6917 \family default
6918  document class.
6919  This provides the following additional environments: 
6920 \family sans
6921 Title
6922 \begin_inset space ~
6923 \end_inset
6924
6925 footnote
6926 \family default
6927
6928 \family sans
6929 Author
6930 \begin_inset space ~
6931 \end_inset
6932
6933 footnote
6934 \family default
6935
6936 \family sans
6937 Corresponding
6938 \begin_inset space ~
6939 \end_inset
6940
6941 author
6942 \family default
6943
6944 \family sans
6945 Address
6946 \family default
6947
6948 \family sans
6949 Email
6950 \family default
6951  and 
6952 \family sans
6953 Keywords
6954 \family default
6955 .
6956  A template 
6957 \family typewriter
6958 elsarticle.lyx
6959 \family default
6960 .
6961  is available in the menu 
6962 \family sans
6963 \bar under
6964 F
6965 \bar default
6966 ile\SpecialChar menuseparator
6967 New
6968 \begin_inset space ~
6969 \end_inset
6970
6971 fro
6972 \bar under
6973 m
6974 \bar default
6975
6976 \begin_inset space ~
6977 \end_inset
6978
6979 Template
6980 \family default
6981 .
6982  It has been customized with further environments and contains all the informati
6983 on you may need.
6984  However, the documentation is also available from 
6985 \begin_inset CommandInset href
6986 LatexCommand href
6987 name "CTAN"
6988 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
6989 literal "false"
6990
6991 \end_inset
6992
6993 .
6994 \end_layout
6995
6996 \begin_layout Subsection
6997
6998 \change_inserted 564990737 1671042046
6999
7000 \lang american
7001 Paper
7002 \end_layout
7003
7004 \begin_layout Standard
7005
7006 \change_inserted 564990737 1671042046
7007
7008 \lang american
7009 The document class 
7010 \family sans
7011 article
7012 \begin_inset space \thinspace{}
7013 \end_inset
7014
7015 (paper)
7016 \family default
7017  provides an alternative to the 
7018 \family typewriter
7019 article.cls
7020 \family default
7021  document class.
7022  It provides similar functionality, but you might prefer this layout with
7023  sans serif sections, headings, and more.
7024 \end_layout
7025
7026 \begin_layout Subsection
7027 Rev\SpecialChar TeX
7028 4
7029 \end_layout
7030
7031 \begin_layout Standard
7032 by 
7033 \noun on
7034 Amir Karger
7035 \end_layout
7036
7037 \begin_layout Standard
7038 \begin_inset VSpace bigskip
7039 \end_inset
7040
7041
7042 \end_layout
7043
7044 \begin_layout Standard
7045 \noindent
7046 The 
7047 \family sans
7048 Revtex
7049 \begin_inset space ~
7050 \end_inset
7051
7052 4
7053 \family default
7054  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7055  4.0 (the 
7056 \begin_inset Formula $\beta$
7057 \end_inset
7058
7059  release of May, 1999) class.
7060 \end_layout
7061
7062 \begin_layout Standard
7063 \SpecialChar LyX
7064  has a 
7065 \family sans
7066 Revtex
7067 \family default
7068  textclass, which works with Rev\SpecialChar TeX
7069  3.1.
7070  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7071  2.09.
7072  That means that it doesn't interact very well with \SpecialChar LyX
7073 , which requires \SpecialChar LaTeX2e
7074 , although
7075  it has been kludged to work.
7076  Since Rev\SpecialChar TeX
7077  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7078 , \SpecialChar LyX
7079  with the
7080  
7081 \family sans
7082 Rev\SpecialChar TeX
7083
7084 \begin_inset space ~
7085 \end_inset
7086
7087 4
7088 \family default
7089  textclass should also be pretty easy to use.
7090 \end_layout
7091
7092 \begin_layout Standard
7093 These documents are supposed to be used in 
7094 \emph on
7095 addition
7096 \emph default
7097  to the Rev\SpecialChar TeX
7098  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7099  macros,
7100  and assume you'll know what to put in the preamble if necessary.
7101 \end_layout
7102
7103 \begin_layout Subsection
7104
7105 \change_inserted 564990737 1671042072
7106
7107 \lang american
7108 Springer Journals
7109 \end_layout
7110
7111 \begin_layout Standard
7112
7113 \change_inserted 564990737 1671042072
7114
7115 \lang american
7116 All the 
7117 \family sans
7118 svj*
7119 \family default
7120  classes were replaced in 2013 with a completely new 
7121 \family sans
7122 sr-vorl.cls
7123 \family default
7124 .
7125  This package provides a \SpecialChar LaTeX
7126  class and templates for books to be published
7127  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7128  Research, Springer VS Research, or Springer VS Forschung.
7129  The documentation is available in German from 
7130 \begin_inset CommandInset href
7131 LatexCommand href
7132 name "CTAN"
7133 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7134 literal "false"
7135
7136 \end_inset
7137
7138 .
7139 \end_layout
7140
7141 \begin_layout Section
7142
7143 \change_inserted 564990737 1670439560
7144 Books
7145 \end_layout
7146
7147 \begin_layout Standard
7148
7149 \change_inserted 564990737 1670439581
7150 See also the document classes in the Collections (section
7151 \begin_inset space ~
7152 \end_inset
7153
7154
7155 \begin_inset CommandInset ref
7156 LatexCommand ref
7157 reference "sec:Collections"
7158
7159 \end_inset
7160
7161 ).
7162 \end_layout
7163
7164 \begin_layout Subsection
7165 Memoir
7166 \end_layout
7167
7168 \begin_layout Standard
7169 By 
7170 \noun on
7171 Jürgen Spitzmüller
7172 \end_layout
7173
7174 \begin_layout Subsubsection
7175 Overview
7176 \end_layout
7177
7178 \begin_layout Standard
7179 Memoir is a very powerful and constantly evolving class.
7180  It has been designed with regard to fictional and non-fictional literature.
7181  Its aim is to let the user have maximum control over the typesetting of
7182  his document.
7183  Memoir is based on the standard book class, but it can also emulate the
7184  article class (see below).
7185 \end_layout
7186
7187 \begin_layout Standard
7188 Peter Wilson, the developer of Memoir, is known as the author of lots of
7189  useful packages in the \SpecialChar LaTeX
7190  world.
7191  Most of them have been merged with Memoir.
7192  Therefore, it is much easier to layout the table of contents, appendices,
7193  chapter designs and such.
7194  \SpecialChar LyX
7195 , though, does not support all of these goodies natively.
7196  Some of them might be added to forthcoming releases
7197 \begin_inset Foot
7198 status collapsed
7199
7200 \begin_layout Plain Layout
7201 You are invited to send suggestions to 
7202 \begin_inset Flex URL
7203 status collapsed
7204
7205 \begin_layout Plain Layout
7206
7207 lyx-devel@lists.lyx.org
7208 \end_layout
7209
7210 \end_inset
7211
7212 .
7213 \end_layout
7214
7215 \end_inset
7216
7217 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7218 's framework.
7219  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7220
7221  commands (\SpecialChar TeX
7222  code
7223 \begin_inset Foot
7224 status collapsed
7225
7226 \begin_layout Plain Layout
7227 Cf.
7228 \begin_inset ERT
7229 status collapsed
7230
7231 \begin_layout Plain Layout
7232
7233
7234 \backslash
7235  
7236 \end_layout
7237
7238 \end_inset
7239
7240 section
7241 \begin_inset space ~
7242 \end_inset
7243
7244
7245 \begin_inset CommandInset ref
7246 LatexCommand ref
7247 reference "sec:Inserting-TeX-Code"
7248
7249 \end_inset
7250
7251  for details.
7252 \end_layout
7253
7254 \end_inset
7255
7256 ).
7257  In this section, we can only list those features that are natively supported
7258  by \SpecialChar LyX
7259 .
7260  For detailed descriptions (and for the rest of features) we recommend you
7261  have a look at the detailed manual of the Memoir class
7262 \begin_inset Foot
7263 status collapsed
7264
7265 \begin_layout Plain Layout
7266 Cf.
7267 \begin_inset ERT
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271
7272
7273 \backslash
7274  
7275 \end_layout
7276
7277 \end_inset
7278
7279
7280 \begin_inset Flex URL
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284
7285 CTAN:/macros/latex/memoir/memman.pdf
7286 \end_layout
7287
7288 \end_inset
7289
7290 .
7291 \end_layout
7292
7293 \end_inset
7294
7295 , which is not only a user guide for the class, but also both a comprehensive
7296  description on good typesetting and a superb example for good typesetting
7297  itself.
7298 \end_layout
7299
7300 \begin_layout Subsubsection
7301 Basic features and restrictions
7302 \end_layout
7303
7304 \begin_layout Standard
7305 Memoir supports basically all features of the standard book classes.
7306  There are, however, some differences, as follows:
7307 \end_layout
7308
7309 \begin_layout Description
7310 Font
7311 \begin_inset space ~
7312 \end_inset
7313
7314 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7315 \end_layout
7316
7317 \begin_layout Description
7318 Page
7319 \begin_inset space ~
7320 \end_inset
7321
7322 style: The fancy page style is not supported, due to a command clash between
7323  Memoir and the fancyhdr package (they both define a command with the same
7324  name, which confuses \SpecialChar LaTeX
7325 ).
7326  Instead, Memoir comes with a number of its own page styles (see 
7327 \family sans
7328 Document\SpecialChar menuseparator
7329 Settings\SpecialChar menuseparator
7330 Page
7331 \begin_inset space ~
7332 \end_inset
7333
7334 Style
7335 \family default
7336 ).
7337  If you want to use these for the chapter pages, you have to use the command
7338  
7339 \family typewriter
7340
7341 \backslash
7342 chapterstyle
7343 \family default
7344  in the main text or in preamble (e.
7345 \begin_inset space \thinspace{}
7346 \end_inset
7347
7348 g.
7349 \begin_inset space \space{}
7350 \end_inset
7351
7352
7353 \family typewriter
7354
7355 \backslash
7356 chapterstyle{companion}
7357 \family default
7358 ).
7359 \end_layout
7360
7361 \begin_layout Description
7362 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7363  optional argument in the standard classes.
7364  With this, you can specify an alternative version of the title for the
7365  table of contents and the headers (for instance, if the title is too long).
7366  In \SpecialChar LyX
7367 , you can do this via 
7368 \family sans
7369 Insert\SpecialChar menuseparator
7370 Short
7371 \begin_inset space ~
7372 \end_inset
7373
7374 Title
7375 \family default
7376  at the beginning of a chapter/section.
7377  Memoir features a second optional argument and thus separates the table
7378  of contents from the header.
7379  You can define three variants of a title with this: one for the main text,
7380  one for the table of contents, and one for the headers.
7381  \SpecialChar LyX
7382  makes these available in form of specific 
7383 \family sans
7384 Short Title
7385 \family default
7386  variants in the 
7387 \family sans
7388 Insert
7389 \family default
7390  menu.
7391 \end_layout
7392
7393 \begin_layout Description
7394 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7395  of contents, the list of figures and the list of table start a new page
7396  automatically.
7397  Memoir does not follow this route.
7398  You have to insert a page break yourself, if you want to have one.
7399 \end_layout
7400
7401 \begin_layout Description
7402 Titlepage: For some unknown reason, Memoir uses pagination on the title
7403  page (in the standard classes, title pages are 
7404 \begin_inset Quotes eld
7405 \end_inset
7406
7407 empty
7408 \begin_inset Quotes erd
7409 \end_inset
7410
7411 ).
7412  If you want an empty title page, type 
7413 \family typewriter
7414
7415 \backslash
7416 aliaspagestyle{title}{empty}
7417 \family default
7418  in the preamble.
7419 \end_layout
7420
7421 \begin_layout Description
7422 Article: With the class option 
7423 \emph on
7424 article
7425 \emph default
7426  (to be inserted in 
7427 \family sans
7428 Document\SpecialChar menuseparator
7429 Settings\SpecialChar menuseparator
7430 Class Settings\SpecialChar menuseparator
7431 Custom
7432 \begin_inset space ~
7433 \end_inset
7434
7435 Options
7436 \family default
7437 ), you can emulate article style.
7438  That is, counters (footnotes, figures, tables etc.) will not be reset on
7439  new chapters, chapters don't start a new page (but are—in contrary to 
7440 \begin_inset Quotes eld
7441 \end_inset
7442
7443 real
7444 \begin_inset Quotes erd
7445 \end_inset
7446
7447  article classes—still allowed), parts, though, use their own page, as in
7448  book.
7449 \end_layout
7450
7451 \begin_layout Description
7452 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7453  font commands, which have been used in the old \SpecialChar LaTeX
7454  version 2.09 (e.
7455 \begin_inset space \thinspace{}
7456 \end_inset
7457
7458 g.
7459 \begin_inset space \space{}
7460 \end_inset
7461
7462
7463 \family typewriter
7464
7465 \backslash
7466 rm
7467 \family default
7468
7469 \family typewriter
7470
7471 \backslash
7472 it
7473 \family default
7474 ).
7475  It produces an error and stops \SpecialChar LaTeX
7476  whenever such a command appears.
7477  The class option 
7478 \emph on
7479 oldfontcommands
7480 \emph default
7481  reallows the commands and spits out warnings instead (which does at least
7482  not stop \SpecialChar LaTeX
7483 ).
7484  Since a lot of packages and particularly Bib\SpecialChar TeX
7485  style files are still using
7486  those commands, we have decided to use this option by default.
7487 \end_layout
7488
7489 \begin_layout Subsubsection
7490 Extra features
7491 \end_layout
7492
7493 \begin_layout Standard
7494 We will only describe the features supported by \SpecialChar LyX
7495  (which is not much currently).
7496  Please consult the Memoir manual
7497 \begin_inset Foot
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 Cf.
7502 \begin_inset ERT
7503 status collapsed
7504
7505 \begin_layout Plain Layout
7506
7507
7508 \backslash
7509  
7510 \end_layout
7511
7512 \end_inset
7513
7514
7515 \begin_inset Flex URL
7516 status collapsed
7517
7518 \begin_layout Plain Layout
7519
7520 CTAN:/macros/latex/memoir/memman.pdf
7521 \end_layout
7522
7523 \end_inset
7524
7525 .
7526 \end_layout
7527
7528 \end_inset
7529
7530  for details.
7531 \end_layout
7532
7533 \begin_layout Description
7534 Abstract: You may wonder why an abstract is an extra feature.
7535  Well, it is in book class.
7536  Usually books don't have abstracts.
7537  Memoir, however, has.
7538  You can use it wherever and how often you like.
7539 \end_layout
7540
7541 \begin_layout Description
7542 Chapterprecis: You may know this older typesetting style: The contents of
7543  a chapter are summarized below the title and also in the table of contents
7544  (e.
7545 \begin_inset space \thinspace{}
7546 \end_inset
7547
7548 g.
7549 \begin_inset space \space{}
7550 \end_inset
7551
7552
7553 \emph on
7554 Our hero arrives in Troia; he loses some friends; he finds others
7555 \emph default
7556 ).
7557  Chapterprecis does exactly this.
7558  It is therefore only sensible below a chapter.
7559 \end_layout
7560
7561 \begin_layout Description
7562 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7563  The epigraph environment provides an elegant way of typesetting such a
7564  motto.
7565  The motto itself (text) and its (optional) author (source) are divided
7566  by a short line.
7567  The author (source) can be inserted via 
7568 \family sans
7569 Insert\SpecialChar menuseparator
7570 Epigraph Source
7571 \family default
7572 \emph on
7573 .
7574 \end_layout
7575
7576 \begin_layout Description
7577 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7578  complex figurative poems).
7579  \SpecialChar LyX
7580  can only support a few of them.
7581  One is poemtitle, which is a centered title for poems, which will also
7582  be added to the table of contents (verse is the standard environment for
7583  poems.
7584  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7585  code,
7586  because they have to be nested inside regular verse environments, which
7587  is not possible with \SpecialChar LyX
7588 ).
7589 \end_layout
7590
7591 \begin_layout Description
7592 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7593 \end_layout
7594
7595 \begin_layout Section
7596
7597 \change_inserted 564990737 1670439605
7598 Curricula vitarum
7599 \end_layout
7600
7601 \begin_layout Section
7602
7603 \change_inserted 564990737 1671041968
7604 Letters
7605 \end_layout
7606
7607 \begin_layout Subsection
7608
7609 \change_inserted 564990737 1671041970
7610
7611 \lang american
7612 Din-Brief
7613 \end_layout
7614
7615 \begin_layout Standard
7616
7617 \change_inserted 564990737 1671041970
7618
7619 \lang american
7620 The document class 
7621 \family sans
7622 Din-Brief
7623 \family default
7624  provides the 
7625 \family typewriter
7626 dinbrief.cls
7627 \family default
7628  document class for writing letters according to the 
7629 \emph on
7630 Deutsches Institut für Normung
7631 \emph default
7632  conventions.
7633  The file 
7634 \emph on
7635 dinbrief.lyx
7636 \emph default
7637  in the menu 
7638 \family sans
7639 \bar under
7640 F
7641 \bar default
7642 ile\SpecialChar menuseparator
7643 New
7644 \begin_inset space ~
7645 \end_inset
7646
7647 fro
7648 \bar under
7649 m
7650 \bar default
7651
7652 \begin_inset space ~
7653 \end_inset
7654
7655 Template
7656 \family default
7657  offers guidance on its use.
7658  The documentation is available from 
7659 \begin_inset CommandInset href
7660 LatexCommand href
7661 name "CTAN"
7662 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
7663 literal "false"
7664
7665 \end_inset
7666
7667 .
7668 \end_layout
7669
7670 \begin_layout Section
7671
7672 \change_inserted 564990737 1670439660
7673 Presentations
7674 \end_layout
7675
7676 \begin_layout Subsection
7677 Foils [aka 
7678 \family sans
7679 Foil\SpecialChar TeX
7680
7681 \family default
7682 ]
7683 \begin_inset CommandInset label
7684 LatexCommand label
7685 name "sec:foiltex"
7686
7687 \end_inset
7688
7689
7690 \end_layout
7691
7692 \begin_layout Standard
7693 by 
7694 \noun on
7695 Allan Rae
7696 \end_layout
7697
7698 \begin_layout Subsubsection
7699 Introduction
7700 \end_layout
7701
7702 \begin_layout Standard
7703 This section describes how to use \SpecialChar LyX
7704  to make slides for overhead projectors.
7705  There are two document classes that can do this: the default slides class
7706  and the 
7707 \family sans
7708 Foil\SpecialChar TeX
7709
7710 \family default
7711  slides class.
7712  This section documents the latter.
7713 \end_layout
7714
7715 \begin_layout Standard
7716 I'm going to say this again, nice and clear, so that there's no misunderstanding
7717 :
7718 \end_layout
7719
7720 \begin_layout Standard
7721 \begin_inset VSpace bigskip
7722 \end_inset
7723
7724
7725 \end_layout
7726
7727 \begin_layout Standard
7728 \align center
7729
7730 \size large
7731 This section documents the class 
7732 \begin_inset Quotes eld
7733 \end_inset
7734
7735
7736 \family sans
7737 FoilTeX
7738 \family default
7739
7740 \begin_inset Quotes erd
7741 \end_inset
7742
7743  
7744 \emph on
7745 only.
7746 \end_layout
7747
7748 \begin_layout Standard
7749 \begin_inset VSpace bigskip
7750 \end_inset
7751
7752
7753 \end_layout
7754
7755 \begin_layout Standard
7756 If you're looking for the documentation for 
7757 \begin_inset Quotes eld
7758 \end_inset
7759
7760
7761 \family sans
7762 slides (default)
7763 \family default
7764
7765 \begin_inset Quotes erd
7766 \end_inset
7767
7768 , check out section
7769 \begin_inset space ~
7770 \end_inset
7771
7772
7773 \begin_inset CommandInset ref
7774 LatexCommand ref
7775 reference "sec:slitex"
7776
7777 \end_inset
7778
7779 .
7780  If your machine doesn't have the 
7781 \family sans
7782 foils
7783 \family default
7784  class 
7785 \family sans
7786 FoilTeX
7787 \family default
7788  installed, you'll probably have to use the default 
7789 \family sans
7790 slides
7791 \family default
7792  class, which isn't quite as good as 
7793 \family sans
7794 foils.
7795 \end_layout
7796
7797 \begin_layout Standard
7798 The 
7799 \family sans
7800 foils
7801 \family default
7802  class is designed for use with version
7803 \begin_inset space ~
7804 \end_inset
7805
7806 2.1 of the 
7807 \family sans
7808 foils.cls
7809 \family default
7810  \SpecialChar LaTeX
7811  class file which is now an integral part of \SpecialChar LaTeX2e
7812 .
7813 \end_layout
7814
7815 \begin_layout Subsubsection
7816 Getting Started
7817 \end_layout
7818
7819 \begin_layout Standard
7820 Obviously, to use this document class, you need to select 
7821 \family sans
7822 FoilTeX
7823 \family default
7824  from the 
7825 \family sans
7826 Class
7827 \family default
7828  entry in the 
7829 \family sans
7830 Document
7831 \begin_inset space ~
7832 \end_inset
7833
7834 Layout
7835 \family default
7836  dialog.
7837  There are some settings in the 
7838 \family sans
7839 Document
7840 \begin_inset space ~
7841 \end_inset
7842
7843 Layout
7844 \family default
7845  dialog that you should know about that are specific to this class:
7846 \end_layout
7847
7848 \begin_layout Itemize
7849 Don't change the options 
7850 \family sans
7851 Sides
7852 \family default
7853  and 
7854 \family sans
7855 Columns
7856 \family default
7857  on the 
7858 \family sans
7859 Document
7860 \begin_inset space ~
7861 \end_inset
7862
7863 Layout
7864 \family default
7865  dialog.
7866  They're ignored by the 
7867 \family sans
7868 foils
7869 \family default
7870  class.
7871 \end_layout
7872
7873 \begin_layout Itemize
7874 The default font size is 20
7875 \begin_inset space \thinspace{}
7876 \end_inset
7877
7878 pt with the other options being 17
7879 \begin_inset space \thinspace{}
7880 \end_inset
7881
7882 pt, 25
7883 \begin_inset space \thinspace{}
7884 \end_inset
7885
7886 pt and 30
7887 \begin_inset space \thinspace{}
7888 \end_inset
7889
7890 pt.
7891 \end_layout
7892
7893 \begin_layout Itemize
7894 The default font is 
7895 \family sans
7896 sans
7897 \family default
7898  
7899 \family sans
7900 serif
7901 \family default
7902  but all math equations are still typeset in the usual roman font.
7903 \end_layout
7904
7905 \begin_layout Itemize
7906
7907 \family sans
7908 Foil\SpecialChar TeX
7909
7910 \family default
7911  supports A4 and Letter paper sizes as well as a special size for working
7912  with 35
7913 \begin_inset space \thinspace{}
7914 \end_inset
7915
7916 mm slides.
7917  It doesn't support A5, B5, legal or executive paper sizes.
7918 \end_layout
7919
7920 \begin_layout Itemize
7921 Don't bother changing the 
7922 \family sans
7923 Float Placement
7924 \family default
7925  settings because they are ignored anyway.
7926  All floats appear where they are defined in the text.
7927 \end_layout
7928
7929 \begin_layout Itemize
7930 The 
7931 \family sans
7932 Pagestyle
7933 \family default
7934  setting behaves a bit differently for this class.
7935  
7936 \family sans
7937 Foil\SpecialChar TeX
7938
7939 \family default
7940  provides extensive footer and header capabilities including a user-defined
7941  logo.
7942  See section
7943 \begin_inset space ~
7944 \end_inset
7945
7946
7947 \begin_inset CommandInset ref
7948 LatexCommand ref
7949 reference "sec:foilfoot"
7950
7951 \end_inset
7952
7953  for more details.
7954  The title page is treated differently to all other pages in the document
7955  and is 
7956 \emph on
7957 always
7958 \emph default
7959  unnumbered and 
7960 \emph on
7961 always
7962 \emph default
7963  has the logo centered at the bottom of the page (if one is defined).
7964  The possible page style choices and what they do are as follows:
7965 \end_layout
7966
7967 \begin_deeper
7968 \begin_layout Labeling
7969 \labelwidthstring MMMMMMM
7970
7971 \family sans
7972 \series bold
7973 empty
7974 \family default
7975 \series default
7976  The final output contains no page numbers, or other headers or footers
7977  (except footnotes of course).
7978  
7979 \end_layout
7980
7981 \begin_layout Labeling
7982 \labelwidthstring MMMMMMM
7983
7984 \family sans
7985 \series bold
7986 plain
7987 \family default
7988 \series default
7989  The final output contains page numbers centered at the bottom of the page.
7990  No other headings or footers (other than footnotes).
7991 \end_layout
7992
7993 \begin_layout Labeling
7994 \labelwidthstring MMMMMMM
7995
7996 \series bold
7997 foilheadings
7998 \series default
7999  Page numbers in lower right corner.
8000  Additional headers and footers are also shown.
8001  This is also the default.
8002 \end_layout
8003
8004 \begin_layout Labeling
8005 \labelwidthstring MMMMMMM
8006
8007 \series bold
8008 fancy
8009 \series default
8010  Gives you access to the 
8011 \family sans
8012 fancyheadings
8013 \family default
8014  package although its use with 
8015 \family sans
8016 Foil\SpecialChar TeX
8017
8018 \family default
8019  is discouraged by the writer of the 
8020 \family sans
8021 Foil\SpecialChar TeX
8022
8023 \family default
8024  package because of some potential page layout clashes.
8025 \end_layout
8026
8027 \end_deeper
8028 \begin_layout Paragraph
8029 Extra Options
8030 \end_layout
8031
8032 \begin_layout Standard
8033 The following options may be used in the extra class options in the 
8034 \family sans
8035 Document\SpecialChar menuseparator
8036 Settings
8037 \family default
8038  dialog.
8039 \end_layout
8040
8041 \begin_layout Labeling
8042 \labelwidthstring MMMMMMx
8043
8044 \series bold
8045 35mmSlide
8046 \series default
8047  This sets up the page layout for 7.33
8048 \begin_inset space \thinspace{}
8049 \end_inset
8050
8051 in by 11
8052 \begin_inset space \thinspace{}
8053 \end_inset
8054
8055 in paper, which is about the same aspect ratio as a 35
8056 \begin_inset space \thinspace{}
8057 \end_inset
8058
8059 mm slide, making it a bit easier to work with this medium.
8060 \end_layout
8061
8062 \begin_layout Labeling
8063 \labelwidthstring MMMMMMx
8064
8065 \series bold
8066 headrule
8067 \series default
8068  Places a rule across the page below the header on every page except the
8069  title page.
8070 \end_layout
8071
8072 \begin_layout Labeling
8073 \labelwidthstring MMMMMMx
8074
8075 \series bold
8076 footrule
8077 \series default
8078  Places a rule across the page above the footer on every page except the
8079  title page.
8080 \end_layout
8081
8082 \begin_layout Labeling
8083 \labelwidthstring MMMMMMx
8084
8085 \series bold
8086 dvips
8087 \series default
8088  This is automatically set each time you create a new 
8089 \family sans
8090 foils
8091 \family default
8092  document.
8093  This option tells 
8094 \family sans
8095 Foil\SpecialChar TeX
8096
8097 \family default
8098  to use the dvips driver to rotate those pages that are set as landscape
8099  foils.
8100 \end_layout
8101
8102 \begin_layout Labeling
8103 \labelwidthstring MMMMMMx
8104
8105 \series bold
8106 landscape
8107 \series default
8108  Simply changes the page dimensions to those of a landscape page but doesn't
8109  do any rotation.
8110  Thus if you use this option you need to use an external program to rotate
8111  each page or feed your paper through your printer as landscape.
8112  Note that this option effectively reverses the roles of the 
8113 \family sans
8114 Foilhead
8115 \family default
8116  and 
8117 \family sans
8118 Rotatefoilhead
8119 \family default
8120  environments (don't worry these are described in the next section).
8121 \end_layout
8122
8123 \begin_layout Labeling
8124 \labelwidthstring MMMMMMx
8125
8126 \series bold
8127 leqno
8128 \series default
8129  Equation numbers on the left.
8130 \end_layout
8131
8132 \begin_layout Labeling
8133 \labelwidthstring MMMMMMx
8134
8135 \series bold
8136 fleqn
8137 \series default
8138  Flush-left equations.
8139 \end_layout
8140
8141 \begin_layout Subsubsection
8142 Supported Environments
8143 \end_layout
8144
8145 \begin_layout Standard
8146 Most of the environments commonly supported in other classes are also supported
8147  by the 
8148 \family sans
8149 foils
8150 \family default
8151  class.
8152  There are several additional environments provided by 
8153 \family sans
8154 Foil\SpecialChar TeX
8155
8156 \family default
8157  as well as a couple added by \SpecialChar LyX
8158 .
8159  The following environments are shared with other classes:
8160 \end_layout
8161
8162 \begin_layout Standard
8163 \begin_inset Flex Multiple Columns
8164 status open
8165
8166 \begin_layout Itemize
8167
8168 \family sans
8169 Standard
8170 \end_layout
8171
8172 \begin_layout Itemize
8173
8174 \family sans
8175 Itemize
8176 \end_layout
8177
8178 \begin_layout Itemize
8179
8180 \family sans
8181 Enumerate
8182 \end_layout
8183
8184 \begin_layout Itemize
8185
8186 \family sans
8187 Description
8188 \end_layout
8189
8190 \begin_layout Itemize
8191
8192 \family sans
8193 List
8194 \end_layout
8195
8196 \begin_layout Itemize
8197
8198 \family sans
8199 \SpecialChar LyX
8200 -Code
8201 \end_layout
8202
8203 \begin_layout Itemize
8204
8205 \family sans
8206 Verse
8207 \end_layout
8208
8209 \begin_layout Itemize
8210
8211 \family sans
8212 Quote
8213 \end_layout
8214
8215 \begin_layout Itemize
8216
8217 \family sans
8218 Quotation
8219 \end_layout
8220
8221 \begin_layout Itemize
8222
8223 \family sans
8224 TitleAuthor
8225 \end_layout
8226
8227 \begin_layout Itemize
8228
8229 \family sans
8230 Date
8231 \end_layout
8232
8233 \begin_layout Itemize
8234
8235 \family sans
8236 Abstract
8237 \end_layout
8238
8239 \begin_layout Itemize
8240
8241 \family sans
8242 Bibliography
8243 \end_layout
8244
8245 \begin_layout Itemize
8246
8247 \family sans
8248 Address
8249 \end_layout
8250
8251 \begin_layout Itemize
8252
8253 \family sans
8254 RightAddress
8255 \end_layout
8256
8257 \end_inset
8258
8259
8260 \end_layout
8261
8262 \begin_layout Standard
8263 That is, all the major environments apart from the sectioning environments.
8264  Since foils are essentially self-contained sections, with a title and body,
8265  
8266 \family sans
8267 Foil\SpecialChar TeX
8268
8269 \family default
8270  provides specific commands for starting new foils and these are:
8271 \end_layout
8272
8273 \begin_layout Itemize
8274
8275 \family sans
8276 Foilhead
8277 \end_layout
8278
8279 \begin_layout Itemize
8280
8281 \family sans
8282 Rotatefoilhead
8283 \end_layout
8284
8285 \begin_layout Standard
8286 \SpecialChar LyX
8287  also provides slightly modified versions of these two environments called:
8288 \end_layout
8289
8290 \begin_layout Itemize
8291
8292 \family sans
8293 ShortFoilhead
8294 \end_layout
8295
8296 \begin_layout Itemize
8297
8298 \family sans
8299 ShortRotatefoilhead
8300 \end_layout
8301
8302 \begin_layout Standard
8303 and the differences will be explained in the next section.
8304 \end_layout
8305
8306 \begin_layout Standard
8307 Since foils are often used in presenting ideas or new theorems and such
8308  
8309 \family sans
8310 Foil\SpecialChar TeX
8311
8312 \family default
8313  also provides a comprehensive box of goodies for presenting them:
8314 \end_layout
8315
8316 \begin_layout Standard
8317 \begin_inset Flex Multiple Columns
8318 status open
8319
8320 \begin_layout Itemize
8321
8322 \family sans
8323 Theorem
8324 \end_layout
8325
8326 \begin_layout Itemize
8327
8328 \family sans
8329 Lemma
8330 \end_layout
8331
8332 \begin_layout Itemize
8333
8334 \family sans
8335 Corollary
8336 \end_layout
8337
8338 \begin_layout Itemize
8339
8340 \family sans
8341 Proposition
8342 \end_layout
8343
8344 \begin_layout Itemize
8345
8346 \family sans
8347 Definition
8348 \end_layout
8349
8350 \begin_layout Itemize
8351
8352 \family sans
8353 Proof
8354 \end_layout
8355
8356 \begin_layout Itemize
8357
8358 \family sans
8359 Theorem*
8360 \end_layout
8361
8362 \begin_layout Itemize
8363
8364 \family sans
8365 Lemma*
8366 \end_layout
8367
8368 \begin_layout Itemize
8369
8370 \family sans
8371 Corollary*
8372 \end_layout
8373
8374 \begin_layout Itemize
8375
8376 \family sans
8377 Proposition*
8378 \end_layout
8379
8380 \begin_layout Itemize
8381
8382 \family sans
8383 Definition*
8384 \end_layout
8385
8386 \end_inset
8387
8388
8389 \end_layout
8390
8391 \begin_layout Standard
8392 The starred versions are unnumbered while the unstarred versions are numbered.
8393  There are also two list environments added by \SpecialChar LyX
8394  and these are:
8395 \end_layout
8396
8397 \begin_layout Itemize
8398
8399 \family sans
8400 TickList
8401 \end_layout
8402
8403 \begin_layout Itemize
8404
8405 \family sans
8406 CrossList
8407 \end_layout
8408
8409 \begin_layout Standard
8410
8411 \family sans
8412 Foil\SpecialChar TeX
8413
8414 \family default
8415  provides some powerful header and footer capabilities that are best set
8416  in the preamble although they may be set at any point in a document.
8417  If you want to change these settings in your document the best place to
8418  do so is at the very top of a foil, i.
8419 \begin_inset space \thinspace{}
8420 \end_inset
8421
8422 e.
8423 \emph on
8424
8425 \begin_inset space \space{}
8426 \end_inset
8427
8428
8429 \emph default
8430 straight after the foilhead.
8431 \end_layout
8432
8433 \begin_layout Standard
8434 For this purpose, the following command styles are provided [
8435 \shape smallcaps
8436 Martin Vermeer
8437 \shape default
8438 ]:
8439 \end_layout
8440
8441 \begin_layout Standard
8442 \begin_inset Flex Multiple Columns
8443 status open
8444
8445 \begin_layout Itemize
8446
8447 \family sans
8448 My
8449 \begin_inset space ~
8450 \end_inset
8451
8452 Logo
8453 \end_layout
8454
8455 \begin_layout Itemize
8456
8457 \family sans
8458 Restriction
8459 \end_layout
8460
8461 \begin_layout Itemize
8462
8463 \family sans
8464 Right
8465 \begin_inset space ~
8466 \end_inset
8467
8468 Footer
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family sans
8474 Right
8475 \begin_inset space ~
8476 \end_inset
8477
8478 Header
8479 \end_layout
8480
8481 \begin_layout Itemize
8482
8483 \family sans
8484 Left
8485 \begin_inset space ~
8486 \end_inset
8487
8488 Header
8489 \end_layout
8490
8491 \begin_deeper
8492 \begin_layout Plain Layout
8493 \begin_inset space ~
8494 \end_inset
8495
8496
8497 \end_layout
8498
8499 \end_deeper
8500 \end_inset
8501
8502
8503 \end_layout
8504
8505 \begin_layout Standard
8506 There are also a few commands provided by 
8507 \family sans
8508 Foil\SpecialChar TeX
8509
8510 \family default
8511  that aren't directly supported by \SpecialChar LyX
8512  but I'll tell you what they do and how
8513  to use them in section
8514 \begin_inset space ~
8515 \end_inset
8516
8517
8518 \begin_inset CommandInset ref
8519 LatexCommand ref
8520 reference "sec:unsuppfoils"
8521
8522 \end_inset
8523
8524 .
8525 \end_layout
8526
8527 \begin_layout Subsubsection
8528 Building a Set of Foils
8529 \end_layout
8530
8531 \begin_layout Standard
8532 This section will give a simple introduction to using the different environments
8533  to build a set of foils.
8534  If you want to see an example set of foils, take a look at the 
8535 \family typewriter
8536 Foils.lyx
8537 \family default
8538  file you find in \SpecialChar LyX
8539 's 
8540 \family typewriter
8541 examples
8542 \family default
8543  folder.
8544 \end_layout
8545
8546 \begin_layout Paragraph
8547 Give It a Title Page
8548 \end_layout
8549
8550 \begin_layout Standard
8551 Unlike other classes that provide 
8552 \family sans
8553 Title
8554 \family default
8555
8556 \family sans
8557 Author
8558 \family default
8559
8560 \family sans
8561 Date
8562 \family default
8563  and 
8564 \family sans
8565 Abstract
8566 \family default
8567  environments, 
8568 \family sans
8569 foils
8570 \family default
8571  creates the title on a page of its own.
8572  If you leave out the 
8573 \family sans
8574 Date
8575 \family default
8576  environment \SpecialChar LaTeX
8577  will substitute the current date (every time you regenerate
8578  the output).
8579 \end_layout
8580
8581 \begin_layout Paragraph
8582 Start a New Foil
8583 \end_layout
8584
8585 \begin_layout Standard
8586 As I mentioned earlier, there are four ways of starting a new foil.
8587  For portrait foils you should use 
8588 \family sans
8589 Foilhead
8590 \family default
8591  or 
8592 \family sans
8593 ShortFoilhead.
8594
8595 \family default
8596  The difference between these two environments is the amount of space between
8597  the title of the foil (the foilhead) and the body of the foil.
8598 \end_layout
8599
8600 \begin_layout Standard
8601 Landscape foils are generated using the 
8602 \family sans
8603 Rotatefoilhead
8604 \family default
8605  and 
8606 \family sans
8607 ShortRotatefoilhead
8608 \family default
8609  environments.
8610  Again the only difference is the spacing between foilhead and body.
8611  Both of the short versions have 0.5
8612 \begin_inset space ~
8613 \end_inset
8614
8615 inches less separation between the foilhead and the body.
8616  
8617 \end_layout
8618
8619 \begin_layout Standard
8620 One problem with the support for landscape foils is the requirement that
8621  you have to use the 
8622 \family typewriter
8623 dvips
8624 \family default
8625  driver to generate the PostScript output otherwise the foils won't be rotated.
8626  It is possible to get landscape foils even if you haven't got the 
8627 \family typewriter
8628 dvips
8629 \family default
8630  driver provided you can feed your foils sideways through your printer ;-)
8631 \end_layout
8632
8633 \begin_layout Paragraph
8634 Theorems, Lemmas, Proofs and more
8635 \end_layout
8636
8637 \begin_layout Standard
8638 You can't have two of the same type of these environments directly following
8639  each other.
8640  If you use a normal paragraph break, , you will just be extending the previous
8641  environment as if you had merged the two environments together.
8642  Rather than that, you need to insert a so-called separator.
8643  Please refer to the section entitled 
8644 \emph on
8645 Separate Nestings
8646 \emph default
8647  in the 
8648 \emph on
8649 User's Guide
8650 \emph default
8651 .
8652 \end_layout
8653
8654 \begin_layout Paragraph
8655 Lists
8656 \end_layout
8657
8658 \begin_layout Standard
8659 You get all the commonly supported list styles found in other classes as
8660  well as two new ones.
8661  I'll only describe the new ones here.
8662  If you want to find out more about the other list environments check out
8663  the 
8664 \emph on
8665 User's Guide.
8666
8667 \emph default
8668  If you intend to use itemized lists you might also want to read about the
8669  
8670 \family sans
8671 Itemize
8672 \begin_inset space ~
8673 \end_inset
8674
8675 Bullet
8676 \begin_inset space ~
8677 \end_inset
8678
8679 Selection
8680 \family default
8681  dialog described above in section
8682 \begin_inset space ~
8683 \end_inset
8684
8685
8686 \begin_inset CommandInset ref
8687 LatexCommand ref
8688 reference "sec:bullet"
8689
8690 \end_inset
8691
8692 .
8693 \end_layout
8694
8695 \begin_layout Standard
8696 The two new list styles, 
8697 \family sans
8698 TickList
8699 \family default
8700  and 
8701 \family sans
8702 CrossList
8703 \family default
8704 , are designed to make it easier for you to create lists of do's and don'ts
8705  or right and wrong by providing dedicated environments that use a tick
8706  or a cross as the label of the list.
8707  These lists are in fact dedicated variants of the 
8708 \family sans
8709 Itemize
8710 \family default
8711  environment.
8712  They do however require that you have the 
8713 \family typewriter
8714 psnfss
8715 \family default
8716  packages installed.
8717 \end_layout
8718
8719 \begin_layout Paragraph
8720 Figures and Tables
8721 \end_layout
8722
8723 \begin_layout Standard
8724
8725 \family sans
8726 Foil\SpecialChar TeX
8727
8728 \family default
8729  redefines the floating tables and figures so that they appear exactly where
8730  they are in the text rather than pushing them to the top of the page or
8731  to some user specified location.
8732  In fact if you change the float placement settings they are simply ignored.
8733 \end_layout
8734
8735 \begin_layout Paragraph
8736 Page Headers and Footers
8737 \begin_inset CommandInset label
8738 LatexCommand label
8739 name "sec:foilfoot"
8740
8741 \end_inset
8742
8743
8744 \end_layout
8745
8746 \begin_layout Standard
8747
8748 \family sans
8749 My
8750 \begin_inset space ~
8751 \end_inset
8752
8753 Logo
8754 \family default
8755  and 
8756 \family sans
8757 Restriction
8758 \family default
8759  are two commands used to control the left-footer text string.
8760  The first is meant to allow you to include a graphic logo on your foils
8761  and defaults to 
8762 \begin_inset Quotes eld
8763 \end_inset
8764
8765 -Typeset by 
8766 \family sans
8767 Foil\SpecialChar TeX
8768
8769 \family default
8770 -
8771 \begin_inset Quotes erd
8772 \end_inset
8773
8774 .
8775  While the second is meant to provide a classification for the audience,
8776  
8777 \emph on
8778 e.
8779 \begin_inset space \thinspace{}
8780 \end_inset
8781
8782 g.
8783 \emph default
8784
8785 \begin_inset space \space{}
8786 \end_inset
8787
8788 Confidential.
8789  It is empty by default.
8790 \end_layout
8791
8792 \begin_layout Standard
8793 The remaining page corners can be filled by 
8794 \family sans
8795 Right
8796 \begin_inset space ~
8797 \end_inset
8798
8799 Footer
8800 \family default
8801  (which defaults to page numbers), 
8802 \family sans
8803 Right
8804 \begin_inset space ~
8805 \end_inset
8806
8807 Header
8808 \family default
8809  (top right) and 
8810 \family sans
8811 Left
8812 \begin_inset space ~
8813 \end_inset
8814
8815 Header
8816 \family default
8817  (top left).
8818 \end_layout
8819
8820 \begin_layout Subsubsection
8821 Unsupported 
8822 \family sans
8823 Foil\SpecialChar TeX
8824
8825 \family default
8826  Goodies
8827 \begin_inset CommandInset label
8828 LatexCommand label
8829 name "sec:unsuppfoils"
8830
8831 \end_inset
8832
8833
8834 \end_layout
8835
8836 \begin_layout Standard
8837 All the commands mentioned below need to be set in a 
8838 \family sans
8839 \SpecialChar LaTeX
8840
8841 \family default
8842  environment or as 
8843 \family sans
8844 \SpecialChar TeX
8845
8846 \family default
8847  within another environment.
8848 \end_layout
8849
8850 \begin_layout Paragraph
8851 Lengths
8852 \end_layout
8853
8854 \begin_layout Standard
8855 All lengths are adjusted using the 
8856 \family typewriter
8857
8858 \backslash
8859 setlength{
8860 \family default
8861 \emph on
8862 lengthname
8863 \family typewriter
8864 \emph default
8865 }{
8866 \family default
8867 \emph on
8868 newlength
8869 \family typewriter
8870 \emph default
8871 }
8872 \family default
8873  command.
8874  Where 
8875 \emph on
8876 lengthname
8877 \emph default
8878  should be replaced by the name given to the length you want to change and
8879  
8880 \emph on
8881 newlength
8882 \emph default
8883  is the length value.
8884  All lengths should be specified in units of length such as inches (
8885 \family typewriter
8886 in
8887 \family default
8888 ), millimeters (
8889 \family typewriter
8890 mm
8891 \family default
8892 ) or points (
8893 \family typewriter
8894 pt
8895 \family default
8896 ) or relative to some document or font-based length such as 
8897 \family typewriter
8898
8899 \backslash
8900 textwidth
8901 \family default
8902 .
8903  
8904 \end_layout
8905
8906 \begin_layout Standard
8907 It's possible to change the spacing between a foilhead and the body of the
8908  foil by adjusting the length specified by 
8909 \family typewriter
8910
8911 \backslash
8912 foilheadskip
8913 \family default
8914 .
8915  For example, to make 
8916 \emph on
8917 all
8918 \emph default
8919  foilheads 0.5
8920 \begin_inset space \space{}
8921 \end_inset
8922
8923 in closer to their bodies put the following in the preamble: 
8924 \family typewriter
8925
8926 \backslash
8927 setlength{
8928 \backslash
8929 foilheadskip}{-0.5in}
8930 \end_layout
8931
8932 \begin_layout Standard
8933 The spacings around floats can be adjusted by setting these lengths:
8934 \end_layout
8935
8936 \begin_layout Labeling
8937 \labelwidthstring MMMMMMMMMMM
8938
8939 \family typewriter
8940
8941 \backslash
8942 abovefloatskip
8943 \family default
8944  Separation between the text and the top of the float
8945 \end_layout
8946
8947 \begin_layout Labeling
8948 \labelwidthstring MMMMMMMMMMM
8949
8950 \family typewriter
8951
8952 \backslash
8953 abovecaptionskip
8954 \family default
8955  Separation between the float and the caption
8956 \end_layout
8957
8958 \begin_layout Labeling
8959 \labelwidthstring MMMMMMMMMMM
8960
8961 \family typewriter
8962
8963 \backslash
8964 belowcaptionskip
8965 \family default
8966  Separation between the caption and the following text
8967 \end_layout
8968
8969 \begin_layout Labeling
8970 \labelwidthstring MMMMMMMMMMM
8971
8972 \family typewriter
8973
8974 \backslash
8975 captionwidth
8976 \family default
8977  You can make the captions narrower than the surrounding text by adjusting
8978  this length.
8979  Best done relative to 
8980 \family typewriter
8981
8982 \backslash
8983 textwidth
8984 \family default
8985 .
8986 \end_layout
8987
8988 \begin_layout Standard
8989 There are also several title page related lengths that you may find useful
8990  if you have a long title or several authors:
8991 \end_layout
8992
8993 \begin_layout Labeling
8994 \labelwidthstring MMMMMMMMMMM
8995
8996 \family typewriter
8997
8998 \backslash
8999 abovetitleskip
9000 \family default
9001  Separation from headers to 
9002 \family sans
9003 Title
9004 \end_layout
9005
9006 \begin_layout Labeling
9007 \labelwidthstring MMMMMMMMMMM
9008
9009 \family typewriter
9010
9011 \backslash
9012 titleauthorskip
9013 \family default
9014  between 
9015 \family sans
9016 Title
9017 \family default
9018  and 
9019 \family sans
9020 Author
9021 \family default
9022  environments
9023 \end_layout
9024
9025 \begin_layout Labeling
9026 \labelwidthstring MMMMMMMMMMM
9027
9028 \family typewriter
9029
9030 \backslash
9031 authorauthorskip
9032 \family default
9033  between multiple 
9034 \family sans
9035 Author
9036 \family default
9037  lines
9038 \end_layout
9039
9040 \begin_layout Labeling
9041 \labelwidthstring MMMMMMMMMMM
9042
9043 \family typewriter
9044
9045 \backslash
9046 authordateskip
9047 \family default
9048  between the 
9049 \family sans
9050 Author
9051 \family default
9052  and the 
9053 \family sans
9054 Date
9055 \end_layout
9056
9057 \begin_layout Labeling
9058 \labelwidthstring MMMMMMMMMMM
9059
9060 \family typewriter
9061
9062 \backslash
9063 dateabstractskip
9064 \family default
9065  between the 
9066 \family sans
9067 Date
9068 \family default
9069  and the 
9070 \family sans
9071 Abstract
9072 \end_layout
9073
9074 \begin_layout Standard
9075 The last length related command affects all the list environments.
9076  If you place 
9077 \family typewriter
9078
9079 \backslash
9080 zerolistvertdimens
9081 \family default
9082  
9083 \emph on
9084 inside
9085 \emph default
9086  a list environment then all the vertical spacing between the list items
9087  is removed.
9088  Note that this is a command not a length so it doesn't require 
9089 \family typewriter
9090
9091 \backslash
9092 setlength
9093 \family default
9094  like the stuff mentioned above.
9095 \end_layout
9096
9097 \begin_layout Paragraph
9098 Headers and Footers
9099 \end_layout
9100
9101 \begin_layout Standard
9102 The 
9103 \family typewriter
9104
9105 \backslash
9106 LogoOn
9107 \family default
9108  and 
9109 \family typewriter
9110
9111 \backslash
9112 LogoOff
9113 \family default
9114  commands control whether the logo in the 
9115 \family sans
9116 MyLogo
9117 \family default
9118  definition appear on a given page.
9119  If you put 
9120 \family typewriter
9121
9122 \backslash
9123 LogoOff
9124 \family default
9125  in the preamble then none of the foils will have the logo on them.
9126  If you don't want the logo on a particular page place the 
9127 \family typewriter
9128
9129 \backslash
9130 LogoOff
9131 \family default
9132  directly after the foilhead of that page and the 
9133 \family typewriter
9134
9135 \backslash
9136 LogoOn
9137 \family default
9138  directly after the next foilhead.
9139 \end_layout
9140
9141 \begin_layout Standard
9142 If you decide to use the 
9143 \family sans
9144 fancy
9145 \family default
9146  page style setting in the 
9147 \family sans
9148 Document
9149 \begin_inset space ~
9150 \end_inset
9151
9152 Layout
9153 \family default
9154  dialog you should probably add 
9155 \family typewriter
9156
9157 \backslash
9158 let
9159 \backslash
9160 headwidth
9161 \backslash
9162 textwidth
9163 \family default
9164  to your preamble so headers and footers on landscape pages are correctly
9165  placed when rotated.
9166  This is due to some clashes between the page layouts provided by the 
9167 \family sans
9168 fancyheadings
9169 \family default
9170  package and the 
9171 \family sans
9172 foils
9173 \family default
9174  class.
9175 \end_layout
9176
9177 \begin_layout Subsection
9178 Slides [aka 
9179 \noun on
9180 Sli\SpecialChar TeX
9181
9182 \noun default
9183 ]
9184 \begin_inset CommandInset label
9185 LatexCommand label
9186 name "sec:slitex"
9187
9188 \end_inset
9189
9190
9191 \end_layout
9192
9193 \begin_layout Standard
9194 by 
9195 \noun on
9196 John Weiss
9197 \noun default
9198  
9199 \end_layout
9200
9201 \begin_layout Subsubsection
9202 Introduction
9203 \end_layout
9204
9205 \begin_layout Standard
9206 This section describes how to use \SpecialChar LyX
9207  to make slides for overhead projectors.
9208  There are two document classes that can do this: the default slides class
9209  and the 
9210 \family sans
9211 Foil\SpecialChar TeX
9212
9213 \family default
9214  slides class.
9215  This section documents the former.
9216 \end_layout
9217
9218 \begin_layout Standard
9219 I'm going to say this again, nice and clear, so that there's no misunderstanding
9220 :
9221 \end_layout
9222
9223 \begin_layout Standard
9224 \begin_inset VSpace bigskip
9225 \end_inset
9226
9227
9228 \end_layout
9229
9230 \begin_layout Standard
9231 \align center
9232
9233 \size large
9234 This section documents the class 
9235 \begin_inset Quotes eld
9236 \end_inset
9237
9238
9239 \family sans
9240 slides (default)
9241 \family default
9242
9243 \begin_inset Quotes erd
9244 \end_inset
9245
9246  
9247 \emph on
9248 only.
9249 \end_layout
9250
9251 \begin_layout Standard
9252 \begin_inset VSpace bigskip
9253 \end_inset
9254
9255
9256 \end_layout
9257
9258 \begin_layout Standard
9259 If you're looking for the documentation for 
9260 \begin_inset Quotes eld
9261 \end_inset
9262
9263
9264 \family sans
9265 slides (Foil\SpecialChar TeX
9266 )
9267 \family default
9268
9269 \begin_inset Quotes erd
9270 \end_inset
9271
9272 , check out section
9273 \begin_inset space ~
9274 \end_inset
9275
9276
9277 \begin_inset CommandInset ref
9278 LatexCommand ref
9279 reference "sec:foiltex"
9280
9281 \end_inset
9282
9283 .
9284  The 
9285 \family sans
9286 foils
9287 \family default
9288  class [
9289 \begin_inset Quotes eld
9290 \end_inset
9291
9292
9293 \family sans
9294 slides (Foil\SpecialChar TeX
9295 )
9296 \family default
9297
9298 \begin_inset Quotes erd
9299 \end_inset
9300
9301 ] is actually somewhat better than the default 
9302 \family sans
9303 slides
9304 \family default
9305  class,
9306 \begin_inset Foot
9307 status collapsed
9308
9309 \begin_layout Plain Layout
9310 \SpecialChar ldots
9311 or so I've been told repeatedly by its advocates.
9312  Having never used it, I have no idea if this claim is true or not.
9313 \end_layout
9314
9315 \end_inset
9316
9317  which this section documents.
9318 \end_layout
9319
9320 \begin_layout Standard
9321 This class is the \SpecialChar LaTeX2e
9322  improvement of the old 
9323 \noun on
9324 Sli\SpecialChar TeX
9325
9326 \noun default
9327  package.
9328  Every \SpecialChar LaTeX2e
9329  distribution includes this class [which I'll just refer to as 
9330 \begin_inset Quotes eld
9331 \end_inset
9332
9333
9334 \family sans
9335 slides
9336 \family default
9337
9338 \begin_inset Quotes erd
9339 \end_inset
9340
9341  from now on], so you're bound to have it.
9342  As I noted earlier, there are other classes, such as 
9343 \family sans
9344 foils
9345 \family default
9346 , which also produce slides for overhead projectors and do a better job
9347  at it.
9348  However, there are some things which 
9349 \family sans
9350 slides
9351 \family default
9352  can do which the others can't, such as generate overlays.
9353  Read on to learn more!
9354 \end_layout
9355
9356 \begin_layout Subsubsection
9357 Getting Started
9358 \begin_inset CommandInset label
9359 LatexCommand label
9360 name "sec:slidesetup"
9361
9362 \end_inset
9363
9364
9365 \end_layout
9366
9367 \begin_layout Standard
9368 Obviously, to use this document class, you need to select 
9369 \begin_inset Quotes eld
9370 \end_inset
9371
9372
9373 \family sans
9374 slides (default)
9375 \family default
9376
9377 \begin_inset Quotes erd
9378 \end_inset
9379
9380  from the class list in the 
9381 \family sans
9382 Document\SpecialChar menuseparator
9383 Settings
9384 \family default
9385  dialog.
9386  There are some other special things you should know about this class:
9387 \end_layout
9388
9389 \begin_layout Itemize
9390 Don't bother changing the options 
9391 \family sans
9392 Sides and Columns
9393 \family default
9394 .
9395  They're not supported by the 
9396 \family sans
9397 slides
9398 \family default
9399  class, anyways.
9400 \end_layout
9401
9402 \begin_layout Itemize
9403 The option 
9404 \family sans
9405 Page
9406 \begin_inset space ~
9407 \end_inset
9408
9409 style
9410 \family default
9411  behaves a bit differently for this class.
9412  The possible choices and what they do are as follows:
9413 \end_layout
9414
9415 \begin_deeper
9416 \begin_layout Description
9417
9418 \family sans
9419 plain
9420 \family default
9421  The final output contains page numbers in the lower right corner.
9422 \end_layout
9423
9424 \begin_layout Description
9425
9426 \family sans
9427 headings
9428 \family default
9429  Like 
9430 \family sans
9431 plain
9432 \family default
9433 , but also prints out any time markers you've put in.
9434  This is the default.
9435 \end_layout
9436
9437 \begin_layout Description
9438
9439 \family sans
9440 empty
9441 \family default
9442  The final output contains no page numbers, time markers, or alignment markers.
9443 \end_layout
9444
9445 \end_deeper
9446 \begin_layout Itemize
9447 The 
9448 \family sans
9449 slides
9450 \family default
9451  class has an extra option: 
9452 \family typewriter
9453 clock
9454 \family default
9455 .
9456  To use it, put 
9457 \begin_inset Quotes eld
9458 \end_inset
9459
9460
9461 \family typewriter
9462 clock
9463 \family default
9464
9465 \begin_inset Quotes erd
9466 \end_inset
9467
9468  in the extra class options.
9469 \end_layout
9470
9471 \begin_deeper
9472 \begin_layout Standard
9473 Using this options allows you to add time markers to 
9474 \family sans
9475 Note
9476 \family default
9477 s.
9478  See section
9479 \begin_inset space ~
9480 \end_inset
9481
9482
9483 \begin_inset CommandInset ref
9484 LatexCommand ref
9485 reference "sec:slideNote"
9486
9487 \end_inset
9488
9489  for more details.
9490 \end_layout
9491
9492 \end_deeper
9493 \begin_layout Standard
9494 You can also use the template file 
9495 \begin_inset Quotes eld
9496 \end_inset
9497
9498
9499 \family typewriter
9500 slides.lyx
9501 \family default
9502
9503 \begin_inset Quotes erd
9504 \end_inset
9505
9506  to automatically set up a document to use the 
9507 \family sans
9508 slides
9509 \family default
9510  class [using 
9511 \family sans
9512 File\SpecialChar menuseparator
9513 New
9514 \begin_inset space ~
9515 \end_inset
9516
9517 from
9518 \begin_inset space ~
9519 \end_inset
9520
9521 Template
9522 \family default
9523  to open your new document].
9524  The template file also contains some examples of the special paragraph
9525  environments used by this class.
9526  I'll describe those next.
9527 \end_layout
9528
9529 \begin_layout Subsubsection
9530 Paragraph Environments
9531 \end_layout
9532
9533 \begin_layout Paragraph
9534 Supported Environments
9535 \end_layout
9536
9537 \begin_layout Standard
9538 The first thing you'll notice when you start up a new 
9539 \family sans
9540 slides
9541 \family default
9542  document is the font size and type: it's the equivalent of the size 
9543 \begin_inset Quotes eld
9544 \end_inset
9545
9546
9547 \family sans
9548 Largest
9549 \family default
9550
9551 \begin_inset Quotes erd
9552 \end_inset
9553
9554  in the 
9555 \family sans
9556 Sans
9557 \begin_inset space ~
9558 \end_inset
9559
9560 Serif
9561 \family default
9562  font.
9563  This is also what's used in the output.
9564  Think of this as a 
9565 \begin_inset Quotes eld
9566 \end_inset
9567
9568 visual cue
9569 \begin_inset Quotes erd
9570 \end_inset
9571
9572  to remind you that this is a slide.
9573  Your final slides will use a larger font; ergo, you'll have less space.
9574  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9575 \end_layout
9576
9577 \begin_layout Standard
9578 The next thing that becomes obvious is the changes to the paragraph environment
9579  pull-down box [at the far-left end of the toolbar].
9580  Most of the paragraph environments you're used to seeing are missing.
9581  There are also five new ones.
9582  That's because the 
9583 \family sans
9584 slides
9585 \family default
9586  class itself only supports certain paragraph environments:
9587 \end_layout
9588
9589 \begin_layout Itemize
9590
9591 \family sans
9592 Standard
9593 \end_layout
9594
9595 \begin_layout Itemize
9596
9597 \family sans
9598 Itemize
9599 \end_layout
9600
9601 \begin_layout Itemize
9602
9603 \family sans
9604 Enumerate
9605 \end_layout
9606
9607 \begin_layout Itemize
9608
9609 \family sans
9610 Description
9611 \end_layout
9612
9613 \begin_layout Itemize
9614
9615 \family sans
9616 List
9617 \end_layout
9618
9619 \begin_layout Itemize
9620
9621 \family sans
9622 Quotation
9623 \end_layout
9624
9625 \begin_layout Itemize
9626
9627 \family sans
9628 Quote
9629 \end_layout
9630
9631 \begin_layout Itemize
9632
9633 \family sans
9634 Verse
9635 \end_layout
9636
9637 \begin_layout Itemize
9638
9639 \family sans
9640 Caption
9641 \end_layout
9642
9643 \begin_layout Itemize
9644
9645 \family sans
9646 \SpecialChar LyX
9647 -Code
9648 \end_layout
9649
9650 \begin_layout Standard
9651 All of the other standard environments, including the section-heading environmen
9652 ts, aren't used in the 
9653 \family sans
9654 slides
9655 \family default
9656  class.
9657 \end_layout
9658
9659 \begin_layout Standard
9660 On the other hand, you'll notice the following new environments:
9661 \end_layout
9662
9663 \begin_layout Itemize
9664
9665 \family sans
9666 Slide
9667 \end_layout
9668
9669 \begin_layout Itemize
9670
9671 \family sans
9672 Overlay
9673 \end_layout
9674
9675 \begin_layout Itemize
9676
9677 \family sans
9678 Note
9679 \end_layout
9680
9681 \begin_layout Itemize
9682
9683 \family sans
9684 InvisibleText
9685 \end_layout
9686
9687 \begin_layout Itemize
9688
9689 \family sans
9690 VisibleText
9691 \end_layout
9692
9693 \begin_layout Standard
9694 These five are kind of quirky, due to a 
9695 \begin_inset Quotes eld
9696 \end_inset
9697
9698 feature
9699 \begin_inset Quotes erd
9700 \end_inset
9701
9702  in \SpecialChar LyX
9703 .
9704  You see, \SpecialChar LyX
9705  doesn't permit you to nest any other paragraph environment into
9706  an empty environment.
9707  Now, that's fine and dandy, but it means that you wouldn't be able to start
9708  a slide with anything except plain text.
9709  To deal with this, I've performed a little 
9710 \begin_inset Quotes eld
9711 \end_inset
9712
9713 \SpecialChar LaTeX
9714  magic.
9715 \begin_inset Quotes erd
9716 \end_inset
9717
9718  
9719 \end_layout
9720
9721 \begin_layout Paragraph
9722 Quirks of the New Environments
9723 \begin_inset CommandInset label
9724 LatexCommand label
9725 name "sec:slideQuirk"
9726
9727 \end_inset
9728
9729
9730 \end_layout
9731
9732 \begin_layout Standard
9733 All five of the new paragraph environments are somewhat quirky due to inherent
9734  limitiations in the current version of \SpecialChar LyX
9735 .
9736  As I just mentioned, \SpecialChar LyX
9737  forbids environments that begin with another environment.
9738  To get around this, the 
9739 \family sans
9740 Slide
9741 \family default
9742  environment isn't a paragraph environment as described in the 
9743 \emph on
9744 User's Guide
9745 \emph default
9746 .
9747  
9748 \end_layout
9749
9750 \begin_layout Standard
9751 You should consider 
9752 \family sans
9753 Slide
9754 \family default
9755
9756 \family sans
9757 Overlay
9758 \family default
9759 , and 
9760 \family sans
9761 Note
9762 \family default
9763  to be 
9764 \begin_inset Quotes eld
9765 \end_inset
9766
9767 pseudo-environments.
9768 \begin_inset Quotes erd
9769 \end_inset
9770
9771  They look like a section heading or a 
9772 \begin_inset Quotes eld
9773 \end_inset
9774
9775
9776 \family sans
9777 Caption
9778 \family default
9779 ,
9780 \begin_inset Quotes erd
9781 \end_inset
9782
9783  but really begin a [and, if necessary, end the previous] paragraph environment.
9784  Likewise, treat 
9785 \family sans
9786 InvisibleText
9787 \family default
9788  and 
9789 \family sans
9790 VisibleText
9791 \family default
9792  as 
9793 \begin_inset Quotes eld
9794 \end_inset
9795
9796 pseudo-commands.
9797 \begin_inset Quotes erd
9798 \end_inset
9799
9800  These two perform some action.
9801 \end_layout
9802
9803 \begin_layout Standard
9804 A common feature of all five environments, 
9805 \family sans
9806 Slide
9807 \family default
9808
9809 \family sans
9810 Overlay
9811 \family default
9812
9813 \family sans
9814 Note
9815 \family default
9816
9817 \family sans
9818 InvisibleText
9819 \family default
9820  and 
9821 \family sans
9822 VisibleText
9823 \family default
9824 , is a rather long-ish label.
9825  The text following this label — ordinarily the contents of the paragraph
9826  environment — is utterly irrelevant for 
9827 \family sans
9828 Slide
9829 \family default
9830
9831 \family sans
9832 Overlay
9833 \family default
9834
9835 \family sans
9836 Note
9837 \family default
9838
9839 \family sans
9840 InvisibleText
9841 \family default
9842  and 
9843 \family sans
9844 VisibleText
9845 \family default
9846 .
9847  \SpecialChar LyX
9848  completely ignores it.
9849  In fact, you can leave these five environments completely empty.
9850  
9851 \end_layout
9852
9853 \begin_layout Standard
9854 While you don't 
9855 \emph on
9856 have
9857 \emph default
9858  to put any text after the rather long-ish label, you might want to.
9859  This could be a short description of the contents of the 
9860 \family sans
9861 Slide
9862 \family default
9863 , for example.
9864  In that case, enter your descriptive comment and hit 
9865 \family sans
9866 Return
9867 \family default
9868  as you normally would.
9869 \end_layout
9870
9871 \begin_layout Standard
9872 If, on the other hand, you don't want to enter any descriptive text, you'll
9873  hit another \SpecialChar LyX
9874  quirk.
9875  \SpecialChar LyX
9876 , like nature, abhors a vacuum, and will not let you start a new paragraph
9877  environment until you put something in the old one.
9878  So, do this:
9879 \end_layout
9880
9881 \begin_layout Itemize
9882 Start entering the text that will 
9883 \emph on
9884 follow
9885 \emph default
9886  the new 
9887 \family sans
9888 Slide
9889 \family default
9890
9891 \family sans
9892 Overlay
9893 \family default
9894
9895 \family sans
9896 Note
9897 \family default
9898
9899 \family sans
9900 InvisibleText
9901 \family default
9902  or 
9903 \family sans
9904 VisibleText
9905 \family default
9906 .
9907  
9908 \end_layout
9909
9910 \begin_layout Itemize
9911 Now move to the beginning of that paragraph.
9912  
9913 \end_layout
9914
9915 \begin_layout Itemize
9916 Next, hit 
9917 \family sans
9918 Return
9919 \family default
9920 .
9921  
9922 \end_layout
9923
9924 \begin_layout Itemize
9925 Finally, change this new, empty paragraph to a 
9926 \family sans
9927 Slide
9928 \family default
9929
9930 \family sans
9931 Overlay
9932 \family default
9933
9934 \family sans
9935 Note
9936 \family default
9937
9938 \family sans
9939 InvisibleText
9940 \family default
9941  or 
9942 \family sans
9943 VisibleText
9944 \family default
9945 .
9946  
9947 \end_layout
9948
9949 \begin_layout Standard
9950 Some future version of \SpecialChar LyX
9951  will, hopefully, resolve this quirkiness\SpecialChar ldots
9952
9953 \end_layout
9954
9955 \begin_layout Subsubsection
9956 Making a Presentation with 
9957 \family sans
9958 Slide
9959 \family default
9960
9961 \family sans
9962 Overlay
9963 \family default
9964  and 
9965 \family sans
9966 Note
9967 \end_layout
9968
9969 \begin_layout Paragraph
9970 Using the 
9971 \family sans
9972 Slide
9973 \family default
9974  Environment
9975 \end_layout
9976
9977 \begin_layout Standard
9978 If you're expecting this section to teach you how to actually make a presentatio
9979 n, you'll be sorely disappointed.
9980  Naturally, I'll describe all of the ways the 
9981 \family sans
9982 slides
9983 \family default
9984  class can assist you in preparing the materials for a presentation.
9985  Filling in the contents, however, is up to you.
9986  [Then again, that 
9987 \emph on
9988 is
9989 \emph default
9990  the \SpecialChar LyX
9991  philosophy.]
9992 \end_layout
9993
9994 \begin_layout Standard
9995 Choosing the 
9996 \family sans
9997 Slide
9998 \family default
9999  environment [in the manner described in section
10000 \begin_inset space ~
10001 \end_inset
10002
10003
10004 \begin_inset CommandInset ref
10005 LatexCommand ref
10006 reference "sec:slideQuirk"
10007
10008 \end_inset
10009
10010 ] tells \SpecialChar LyX
10011  to begin a new slide [duh].
10012  The label for this environment/
10013 \begin_inset Quotes erd
10014 \end_inset
10015
10016 pseudo-command
10017 \begin_inset Quotes erd
10018 \end_inset
10019
10020  is an 
10021 \begin_inset Quotes eld
10022 \end_inset
10023
10024 ASCII line,
10025 \begin_inset Quotes erd
10026 \end_inset
10027
10028  in cool blue, followed by the label, 
10029 \begin_inset Quotes eld
10030 \end_inset
10031
10032 NewSlide:
10033 \begin_inset Quotes erd
10034 \end_inset
10035
10036 .
10037  Any text or paragraph environments that follow this one go on the new slide.
10038  It's that simple.
10039 \end_layout
10040
10041 \begin_layout Standard
10042 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
10043
10044  (this can be specified in the 
10045 \family sans
10046 Paragraph Layout
10047 \family default
10048  dialog).
10049  In fact, you'll want to, once you finish entering the contents of one slide.
10050  If you've entered more text than can physically fit on a slide, the extra
10051  overflows onto a new slide.
10052  I don't recommend doing this, however, since the overflow slide won't have
10053  any page number on it.
10054  Furthermore, it may interfere with any 
10055 \family sans
10056 Overlay
10057 \family default
10058  you've made to accompany the oversized 
10059 \family sans
10060 Slide
10061 \family default
10062 .
10063 \end_layout
10064
10065 \begin_layout Standard
10066 The 
10067 \family sans
10068 Overlay
10069 \family default
10070  and 
10071 \family sans
10072 Note
10073 \family default
10074  environments work the same way as the 
10075 \family sans
10076 Slide
10077 \family default
10078  environment.
10079  They both create an 
10080 \begin_inset Quotes eld
10081 \end_inset
10082
10083 ASCII line
10084 \begin_inset Quotes erd
10085 \end_inset
10086
10087  followed by a label [
10088 \begin_inset Quotes eld
10089 \end_inset
10090
10091 NewOverlay:
10092 \begin_inset Quotes erd
10093 \end_inset
10094
10095  and 
10096 \begin_inset Quotes eld
10097 \end_inset
10098
10099 NewNote:
10100 \begin_inset Quotes erd
10101 \end_inset
10102
10103 , respectively].
10104  The color is a stunning magenta instead of blue, and the 
10105 \begin_inset Quotes eld
10106 \end_inset
10107
10108 ASCII line
10109 \begin_inset Quotes erd
10110 \end_inset
10111
10112  will look different, in style and in length.
10113  The label fonts of all three also differ from one another.
10114 \end_layout
10115
10116 \begin_layout Standard
10117 As with a 
10118 \family sans
10119 Slide
10120 \family default
10121 , if the contents of a 
10122 \family sans
10123 Note
10124 \family default
10125  or 
10126 \family sans
10127 Overlay
10128 \family default
10129  exceed the physical size of a slide or sheet of paper, the extra will overflow
10130  onto a new sheet.
10131  Again, you should avoid this.
10132  It defeats the whole purpose of 
10133 \family sans
10134 Note
10135 \family default
10136 s and 
10137 \family sans
10138 Overlay
10139 \family default
10140 s.
10141 \end_layout
10142
10143 \begin_layout Paragraph
10144 Using 
10145 \family sans
10146 Overlay
10147 \family default
10148  with 
10149 \family sans
10150 Slide
10151 \end_layout
10152
10153 \begin_layout Standard
10154 The idea behind an 
10155 \family sans
10156 Overlay
10157 \family default
10158  is a slide that sits atop another slide.
10159  Perhaps you wish to discuss a figure on the main 
10160 \family sans
10161 Slide
10162 \family default
10163  before displaying the text associated with it.
10164  One way to accomplish this is tape a flap of dark paper over the part of
10165  the 
10166 \family sans
10167 Slide
10168 \family default
10169  you want to display later.
10170  This method fails, however, if you wish to overlap one graph with another,
10171  for example.
10172  You would then have to fumble while speaking to align the two separate,
10173  overlapping 
10174 \family sans
10175 Slide
10176 \family default
10177 s to align the two graphs.
10178  The use of an 
10179 \family sans
10180 Overlay
10181 \family default
10182  environment in both cases makes life much easier.
10183 \end_layout
10184
10185 \begin_layout Standard
10186 Each 
10187 \family sans
10188 Overlay
10189 \family default
10190  receives the page number of its 
10191 \begin_inset Quotes eld
10192 \end_inset
10193
10194 parent
10195 \begin_inset Quotes erd
10196 \end_inset
10197
10198  
10199 \family sans
10200 Slide
10201 \family default
10202 , appended by 
10203 \begin_inset Quotes eld
10204 \end_inset
10205
10206
10207 \family typewriter
10208 -a
10209 \family default
10210
10211 \begin_inset Quotes erd
10212 \end_inset
10213
10214 .
10215 \begin_inset Foot
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219 Presumably, mutliple 
10220 \family sans
10221 Overlay
10222 \family default
10223 s would have 
10224 \begin_inset Quotes eld
10225 \end_inset
10226
10227
10228 \family typewriter
10229 -a
10230 \family default
10231
10232 \begin_inset Quotes erd
10233 \end_inset
10234
10235
10236 \begin_inset Quotes eld
10237 \end_inset
10238
10239
10240 \family typewriter
10241 -b
10242 \family default
10243
10244 \begin_inset Quotes erd
10245 \end_inset
10246
10247
10248 \begin_inset Quotes eld
10249 \end_inset
10250
10251
10252 \family typewriter
10253 -c
10254 \family default
10255
10256 \begin_inset Quotes erd
10257 \end_inset
10258
10259 , etc.
10260 \begin_inset space ~
10261 \end_inset
10262
10263 appended to the page number of the parent 
10264 \family sans
10265 Slide
10266 \family default
10267 .
10268  
10269 \end_layout
10270
10271 \end_inset
10272
10273  Clearly, you want the contents of both the 
10274 \family sans
10275 Slide
10276 \family default
10277  and the 
10278 \family sans
10279 Overlay
10280 \family default
10281  to each fit on a single physical slide! You should probably consider an
10282  
10283 \family sans
10284 Overlay
10285 \family default
10286  as 
10287 \begin_inset Quotes eld
10288 \end_inset
10289
10290 part of
10291 \begin_inset Quotes erd
10292 \end_inset
10293
10294  a 
10295 \family sans
10296 Slide
10297 \family default
10298 .
10299  Indeed, the \SpecialChar LyX
10300  
10301 \family sans
10302 slides
10303 \family default
10304  class provides a visual cue for this: the label at the start of an 
10305 \family sans
10306 Overlay
10307 \family default
10308  is shorter than that at the start of a 
10309 \family sans
10310 Slide
10311 \family default
10312 .
10313  Lastly, when you generate printable output, you'll find alignment markers
10314  in all four corners of both the 
10315 \family sans
10316 Overlay
10317 \family default
10318  page and its parent 
10319 \family sans
10320 Slide
10321 \family default
10322 .
10323  These will assist you in lining up the two physical slides.
10324 \end_layout
10325
10326 \begin_layout Standard
10327 The major problem in overlaying two slides is aligning the contents of the
10328  two transparencies.
10329  How much space should you leave for that graph on the second slide? Worse
10330  still, what if you want a graph and a sentence on second slide, but there
10331  is text on the main transparency that goes in between them? You could try
10332  and insert vertical space of the right size.
10333  The better way is to use 
10334 \family sans
10335 InvisibleText
10336 \family default
10337  and 
10338 \family sans
10339 VisibleText
10340 \family default
10341 .
10342 \end_layout
10343
10344 \begin_layout Standard
10345 As their names imply, 
10346 \family sans
10347 InvisibleText
10348 \family default
10349  and 
10350 \family sans
10351 VisibleText
10352 \family default
10353  are two command-like paragraph environments that make all subsequent text
10354  invisible and visible, respectively.
10355  Note from section
10356 \begin_inset space ~
10357 \end_inset
10358
10359
10360 \begin_inset CommandInset ref
10361 LatexCommand ref
10362 reference "sec:slideQuirk"
10363
10364 \end_inset
10365
10366  that you don't place anything 
10367 \emph on
10368 into
10369 \emph default
10370  these two environments, however.
10371  When you create an 
10372 \family sans
10373 InvisibleText
10374 \family default
10375 , it inserts a centered, sky-blue label into the page reading 
10376 \begin_inset Quotes eld
10377 \end_inset
10378
10379 <Invisible Text Follows>
10380 \begin_inset Quotes erd
10381 \end_inset
10382
10383 .
10384  For paragraphs following this label, the parts of the 
10385 \family sans
10386 Slide
10387 \family default
10388  [or 
10389 \family sans
10390 Overlay
10391 \family default
10392 ; it doesn't matter which] where they would be contain instead blank space.
10393  
10394 \end_layout
10395
10396 \begin_layout Standard
10397 For 
10398 \family sans
10399 VisibleText
10400 \family default
10401 , the corresponding centered label is 
10402 \begin_inset Quotes eld
10403 \end_inset
10404
10405 <Visible Text Follows>
10406 \begin_inset Quotes erd
10407 \end_inset
10408
10409  in blazing green.
10410  Paragraphs following this label behave normally.
10411  Note that the beginning of a new 
10412 \family sans
10413 Slide
10414 \family default
10415
10416 \family sans
10417 Overlay
10418 \family default
10419 , or 
10420 \family sans
10421 Note
10422 \family default
10423  automatically shuts off an 
10424 \family sans
10425 InvisibleText
10426 \family default
10427 .
10428  It's therefore not necessary to use 
10429 \family sans
10430 VisibleText
10431 \family default
10432  at the end of a 
10433 \family sans
10434 Slide
10435 \family default
10436 .
10437 \end_layout
10438
10439 \begin_layout Standard
10440 By now, it should be obvious how to create overlay transparencies using
10441  the proper combination of 
10442 \family sans
10443 InvisibleText
10444 \family default
10445  and 
10446 \family sans
10447 VisibleText
10448 \family default
10449  on a 
10450 \family sans
10451 Slide
10452 \family default
10453  and 
10454 \family sans
10455 Overlay
10456 \family default
10457 :
10458 \end_layout
10459
10460 \begin_layout Enumerate
10461 Create a 
10462 \family sans
10463 Slide
10464 \family default
10465 , including everything that will appear on it, whether on the main slide
10466  or on the 
10467 \family sans
10468 Overlay
10469 \family default
10470 .
10471 \end_layout
10472
10473 \begin_layout Enumerate
10474 Before each figure or paragraph that will appear only on the 
10475 \family sans
10476 Overlay
10477 \family default
10478 , insert an 
10479 \family sans
10480 InvisibleText
10481 \family default
10482  environment.
10483  If necessary, insert a 
10484 \family sans
10485 VisibleText
10486 \family default
10487  environment after the 
10488 \family sans
10489 Overlay
10490 \family default
10491 -only text.
10492 \end_layout
10493
10494 \begin_layout Enumerate
10495 Start an 
10496 \family sans
10497 Overlay
10498 \family default
10499  immediately following the 
10500 \family sans
10501 Slide
10502 \family default
10503 .
10504 \end_layout
10505
10506 \begin_layout Enumerate
10507 Copy the contents of this 
10508 \family sans
10509 Slide
10510 \family default
10511  into the 
10512 \family sans
10513 Overlay
10514 \family default
10515 .
10516 \end_layout
10517
10518 \begin_layout Enumerate
10519 Within the 
10520 \family sans
10521 Overlay
10522 \family default
10523 , change all of the 
10524 \family sans
10525 InvisibleText
10526 \family default
10527  lines to 
10528 \family sans
10529 VisibleText
10530 \family default
10531  and vice-versa.
10532 \end_layout
10533
10534 \begin_layout Standard
10535 That's it.
10536  You've just made an 
10537 \family sans
10538 Overlay
10539 \family default
10540 .
10541 \end_layout
10542
10543 \begin_layout Standard
10544 There's one problem with the way I've designed the \SpecialChar LyX
10545  
10546 \family sans
10547 slides
10548 \family default
10549  class: you can't make text in the middle of a paragraph invisible, nor
10550  make text in the middle of an invisible paragraph visible again.
10551  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
10552  codes.
10553 \begin_inset Foot
10554 status collapsed
10555
10556 \begin_layout Plain Layout
10557 The commands of interest are: 
10558 \end_layout
10559
10560 \begin_layout Itemize
10561
10562 \family typewriter
10563 {
10564 \backslash
10565 invisible \SpecialChar ldots
10566  }
10567 \end_layout
10568
10569 \begin_layout Itemize
10570
10571 \family typewriter
10572 {
10573 \backslash
10574 visible \SpecialChar ldots
10575  }
10576 \end_layout
10577
10578 \begin_layout Plain Layout
10579 \SpecialChar ldots
10580 and need to be marked as \SpecialChar TeX
10581 .
10582  The text whose 
10583 \begin_inset Quotes eld
10584 \end_inset
10585
10586 visibility
10587 \begin_inset Quotes erd
10588 \end_inset
10589
10590  you wish to change goes in between the brackets [and after the 
10591 \family typewriter
10592
10593 \backslash
10594 invisible
10595 \family default
10596  or 
10597 \family typewriter
10598
10599 \backslash
10600 visible
10601 \family default
10602  command].
10603  If you don't know how to mark text as \SpecialChar TeX
10604 , see the appropriate section of
10605  the 
10606 \emph on
10607 User's Guide
10608 \emph default
10609 .
10610 \end_layout
10611
10612 \end_inset
10613
10614
10615 \end_layout
10616
10617 \begin_layout Paragraph
10618 Using 
10619 \family sans
10620 Note
10621 \family default
10622  with 
10623 \family sans
10624 Slide
10625 \family default
10626
10627 \begin_inset CommandInset label
10628 LatexCommand label
10629 name "sec:slideNote"
10630
10631 \end_inset
10632
10633
10634 \end_layout
10635
10636 \begin_layout Standard
10637 Like an 
10638 \family sans
10639 Overlay
10640 \family default
10641 , a 
10642 \family sans
10643 Note
10644 \family default
10645  is associated with a 
10646 \begin_inset Quotes eld
10647 \end_inset
10648
10649 parent
10650 \begin_inset Quotes erd
10651 \end_inset
10652
10653  
10654 \family sans
10655 Slide
10656 \family default
10657 .
10658  Here, too, the \SpecialChar LyX
10659  
10660 \family sans
10661 slides
10662 \family default
10663  class provides visual cues.
10664  The label for a 
10665 \family sans
10666 Note
10667 \family default
10668  is shorter than that of a 
10669 \family sans
10670 Slide
10671 \family default
10672  [yet longer than that of an 
10673 \family sans
10674 Overlay
10675 \family default
10676 ] and, like the label of an 
10677 \family sans
10678 Overlay
10679 \family default
10680  is shockingly magenta.
10681  Additionally, the printed 
10682 \family sans
10683 Note
10684 \family default
10685  has the page number of its 
10686 \begin_inset Quotes eld
10687 \end_inset
10688
10689 parent
10690 \begin_inset Quotes erd
10691 \end_inset
10692
10693  
10694 \family sans
10695 Slide
10696 \family default
10697 , appended by 
10698 \begin_inset Quotes eld
10699 \end_inset
10700
10701
10702 \family typewriter
10703 -
10704 \family default
10705 1
10706 \begin_inset Quotes erd
10707 \end_inset
10708
10709
10710 \begin_inset Quotes eld
10711 \end_inset
10712
10713
10714 \family typewriter
10715 -
10716 \family default
10717 2
10718 \begin_inset Quotes erd
10719 \end_inset
10720
10721
10722 \begin_inset Quotes eld
10723 \end_inset
10724
10725
10726 \family typewriter
10727 -
10728 \family default
10729 3
10730 \begin_inset Quotes erd
10731 \end_inset
10732
10733 , etc.
10734  You can have multiple 
10735 \family sans
10736 Note
10737 \family default
10738 s associated with a single 
10739 \family sans
10740 Slide
10741 \family default
10742 , and, as with 
10743 \family sans
10744 Slide
10745 \family default
10746  and 
10747 \family sans
10748 Overlay
10749 \family default
10750 , you'll probably want to break up long 
10751 \family sans
10752 Note
10753 \family default
10754 s so that they fit on a single sheet of paper.
10755 \end_layout
10756
10757 \begin_layout Standard
10758 The purpose of a 
10759 \family sans
10760 Note
10761 \family default
10762  is obvious: it contains anything additional you might want to say about
10763  a 
10764 \family sans
10765 Slide
10766 \family default
10767 .
10768  It could also be used as a sheet of reminders for a particular 
10769 \family sans
10770 Slide
10771 \family default
10772 .
10773  In the case of the latter, you might want to make use of time markers.
10774  Currently, the \SpecialChar LyX
10775  
10776 \family sans
10777 slides
10778 \family default
10779  class has no 
10780 \begin_inset Quotes eld
10781 \end_inset
10782
10783 native
10784 \begin_inset Quotes erd
10785 \end_inset
10786
10787  support for time markers, a 
10788 \noun on
10789 Sli\SpecialChar TeX
10790
10791 \noun default
10792  feature.
10793  So, you'll have to resort to using the \SpecialChar LaTeX
10794  codes.
10795 \end_layout
10796
10797 \begin_layout Standard
10798 To use time markers, you'll need to specify the extra class option 
10799 \begin_inset Quotes eld
10800 \end_inset
10801
10802
10803 \family typewriter
10804 clock
10805 \family default
10806
10807 \begin_inset Quotes erd
10808 \end_inset
10809
10810  [see section
10811 \begin_inset space ~
10812 \end_inset
10813
10814
10815 \begin_inset CommandInset ref
10816 LatexCommand ref
10817 reference "sec:slidesetup"
10818
10819 \end_inset
10820
10821 ].
10822  This option turns on timing marks, which will appear in the lower-left-hand
10823  corner of every 
10824 \family sans
10825 Note
10826 \family default
10827  you generate.
10828  To set what appears in the time marker, you use the \SpecialChar LaTeX
10829  commands 
10830 \begin_inset Quotes eld
10831 \end_inset
10832
10833
10834 \family typewriter
10835
10836 \backslash
10837 settime{}
10838 \family default
10839
10840 \begin_inset Quotes erd
10841 \end_inset
10842
10843  and 
10844 \begin_inset Quotes eld
10845 \end_inset
10846
10847
10848 \family typewriter
10849
10850 \backslash
10851 addtime{}
10852 \family default
10853
10854 \begin_inset Quotes erd
10855 \end_inset
10856
10857 .
10858  The arguments of both commands are time measured in seconds.
10859  
10860 \begin_inset Quotes eld
10861 \end_inset
10862
10863
10864 \family typewriter
10865
10866 \backslash
10867 settime{}
10868 \family default
10869
10870 \begin_inset Quotes erd
10871 \end_inset
10872
10873  sets the time marker to a given time.
10874  
10875 \begin_inset Quotes eld
10876 \end_inset
10877
10878
10879 \family typewriter
10880
10881 \backslash
10882 addtime{}
10883 \family default
10884
10885 \begin_inset Quotes erd
10886 \end_inset
10887
10888  increments the time marker by the specified amount.
10889  Using time markers and 
10890 \family sans
10891 Note
10892 \family default
10893 s in this fashion, you can remind yourself how much time to spend on a particula
10894
10895 \family sans
10896 Slide
10897 \family default
10898 .
10899 \end_layout
10900
10901 \begin_layout Standard
10902 There's one last feature to describe.
10903  Clearly, you'd like to print out all of your 
10904 \family sans
10905 Slide
10906 \family default
10907 s and 
10908 \family sans
10909 Overlay
10910 \family default
10911 s on transparencies while printing all of your 
10912 \family sans
10913 Note
10914 \family default
10915 s on plain paper.
10916  However, a 
10917 \family sans
10918 Note
10919 \family default
10920  
10921 \emph on
10922 must
10923 \emph default
10924  follow the 
10925 \family sans
10926 Slide
10927 \family default
10928  with which it is associated.
10929  What's a person to do?
10930 \end_layout
10931
10932 \begin_layout Standard
10933 Luckily, there are two \SpecialChar LaTeX
10934  commands that allow you to select what to print
10935  out.
10936  Both must be placed into the preamble of your document.
10937  The command 
10938 \begin_inset Quotes eld
10939 \end_inset
10940
10941
10942 \family typewriter
10943
10944 \backslash
10945 onlyslides{
10946 \backslash
10947 slides}
10948 \family default
10949
10950 \begin_inset Quotes erd
10951 \end_inset
10952
10953  will cause the output to contain only the 
10954 \family sans
10955 Slide
10956 \family default
10957 s and 
10958 \family sans
10959 Overlay
10960 \family default
10961 s.
10962  Correspondingly, the command 
10963 \begin_inset Quotes eld
10964 \end_inset
10965
10966
10967 \family typewriter
10968
10969 \backslash
10970 onlynotes{
10971 \backslash
10972 notes}
10973 \family default
10974
10975 \begin_inset Quotes erd
10976 \end_inset
10977
10978  prevents the output of anything but 
10979 \family sans
10980 Note
10981 \family default
10982 s.
10983  I'd advise placing both commands in the preamble and initially comment
10984  both out.
10985  You can then preview your entire presentation as you write.
10986  When you're done writing, you can then uncomment one of the two to select
10987  what you want to print.
10988  I like to uncomment 
10989 \begin_inset Quotes eld
10990 \end_inset
10991
10992
10993 \family typewriter
10994
10995 \backslash
10996 onlyslides{
10997 \backslash
10998 slides}
10999 \family default
11000
11001 \begin_inset Quotes erd
11002 \end_inset
11003
11004  , print to a file with 
11005 \begin_inset Quotes eld
11006 \end_inset
11007
11008
11009 \family typewriter
11010 -slides
11011 \family default
11012
11013 \begin_inset Quotes erd
11014 \end_inset
11015
11016  in its name, comment it back out, then uncomment 
11017 \begin_inset Quotes eld
11018 \end_inset
11019
11020
11021 \family typewriter
11022
11023 \backslash
11024 onlynotes{
11025 \backslash
11026 notes}
11027 \family default
11028
11029 \begin_inset Quotes erd
11030 \end_inset
11031
11032  and print to a 
11033 \begin_inset Quotes eld
11034 \end_inset
11035
11036
11037 \family typewriter
11038 *-notes.ps
11039 \family default
11040
11041 \begin_inset Quotes erd
11042 \end_inset
11043
11044  file.
11045  I can then send either file to a printer, loading transparencies or plain
11046  paper as appropriate.
11047 \end_layout
11048
11049 \begin_layout Standard
11050 You can also provide other arguments to the 
11051 \begin_inset Quotes eld
11052 \end_inset
11053
11054
11055 \family typewriter
11056
11057 \backslash
11058 onlyslides{}
11059 \family default
11060
11061 \begin_inset Quotes erd
11062 \end_inset
11063
11064  and 
11065 \begin_inset Quotes eld
11066 \end_inset
11067
11068
11069 \family typewriter
11070
11071 \backslash
11072 onlynotes{}
11073 \family default
11074
11075 \begin_inset Quotes erd
11076 \end_inset
11077
11078  commands.
11079  See a good \SpecialChar LaTeX
11080  book for details.
11081 \end_layout
11082
11083 \begin_layout Subsubsection
11084 The 
11085 \family sans
11086 slides
11087 \family default
11088  Class Template File
11089 \end_layout
11090
11091 \begin_layout Standard
11092 I have also provided a template file, 
11093 \begin_inset Quotes eld
11094 \end_inset
11095
11096
11097 \family typewriter
11098 slides.lyx
11099 \family default
11100
11101 \begin_inset Quotes erd
11102 \end_inset
11103
11104 , with the 
11105 \family sans
11106 slides
11107 \family default
11108  class.
11109  To use it, begin your new presentation with 
11110 \family sans
11111 File\SpecialChar menuseparator
11112 New
11113 \begin_inset space ~
11114 \end_inset
11115
11116 from
11117 \begin_inset space ~
11118 \end_inset
11119
11120 Template
11121 \family default
11122 .
11123  Your new \SpecialChar LyX
11124  presentation file will contain an example 
11125 \family sans
11126 Slide
11127 \family default
11128  – 
11129 \family sans
11130 Overlay
11131 \family default
11132  – 
11133 \family sans
11134 Note
11135 \family default
11136  triplet.
11137  The 
11138 \family sans
11139 Slide
11140 \family default
11141  and 
11142 \family sans
11143 Overlay
11144 \family default
11145  additionally contain an example of the use of 
11146 \family sans
11147 InvisibleText
11148 \family default
11149  and 
11150 \family sans
11151 VisibleText
11152 \family default
11153 .
11154  Lastly, the preamble will contain:
11155 \end_layout
11156
11157 \begin_layout LyX-Code
11158 % Uncomment to print out only slides and overlays
11159 \end_layout
11160
11161 \begin_layout LyX-Code
11162 %
11163 \end_layout
11164
11165 \begin_layout LyX-Code
11166 %
11167 \backslash
11168 onlyslides{
11169 \backslash
11170 slides}
11171 \begin_inset Newline newline
11172 \end_inset
11173
11174  
11175 \end_layout
11176
11177 \begin_layout LyX-Code
11178 % Uncomment to print out only notes
11179 \end_layout
11180
11181 \begin_layout LyX-Code
11182 %
11183 \end_layout
11184
11185 \begin_layout LyX-Code
11186 %
11187 \backslash
11188 onlynotes{
11189 \backslash
11190 notes}
11191 \end_layout
11192
11193 \begin_layout Standard
11194 One final thing: I created this class to support the \SpecialChar LaTeX2e
11195  
11196 \begin_inset Quotes eld
11197 \end_inset
11198
11199
11200 \noun on
11201 Sli\SpecialChar TeX
11202
11203 \noun default
11204  emulation
11205 \begin_inset Quotes erd
11206 \end_inset
11207
11208  class, one of the built-in \SpecialChar LaTeX2e
11209  classes.
11210  Neither I nor the rest of the \SpecialChar LyX
11211  Team endorse or oppose the use of this built-in
11212  slide class.
11213  It's here if you want it or need it.
11214  There exist other \SpecialChar LaTeX2e
11215  classes for creating presentations, such as the 
11216 \family sans
11217 Foils
11218 \family default
11219  class [see section
11220 \begin_inset space ~
11221 \end_inset
11222
11223
11224 \begin_inset CommandInset ref
11225 LatexCommand ref
11226 reference "sec:foiltex"
11227
11228 \end_inset
11229
11230 ] or the 
11231 \begin_inset Quotes eld
11232 \end_inset
11233
11234
11235 \family typewriter
11236 seminar
11237 \family default
11238
11239 \begin_inset Quotes erd
11240 \end_inset
11241
11242  package [present on some \SpecialChar TeX
11243  distributions].
11244  The latter is not yet supported under \SpecialChar LyX
11245 .
11246 \begin_inset Foot
11247 status collapsed
11248
11249 \begin_layout Plain Layout
11250 Perhaps you can take on the task\SpecialChar ldots
11251
11252 \end_layout
11253
11254 \end_inset
11255
11256  I know nothing about these other classes.
11257  Try them out to see what sort of alternative they provide.
11258 \end_layout
11259
11260 \begin_layout Section
11261
11262 \change_inserted 564990737 1670439661
11263 Reports
11264 \end_layout
11265
11266 \begin_layout Subsection
11267
11268 \change_inserted 564990737 1670439661
11269 report
11270 \end_layout
11271
11272 \begin_layout Standard
11273
11274 \change_inserted 564990737 1670439661
11275 The document class 
11276 \family sans
11277 report
11278 \family default
11279  provides the 
11280 \family sans
11281 report.cls
11282 \family default
11283  document class for preparing reports.
11284  Like the 
11285 \family sans
11286 book
11287 \family default
11288  document class, this provides parts, chapters and sections but does not
11289  provide the paragraph styles needed for a book; like the 
11290 \family sans
11291 article
11292 \family default
11293  document class, it provides the abstract paragraph style.
11294  In two-sided mode, it does not start a new chapter on the right hand page.
11295 \end_layout
11296
11297 \begin_layout Standard
11298
11299 \change_inserted 564990737 1670439674
11300 The remaining 
11301 \family sans
11302 report
11303 \family default
11304  document classes are described in the Collections (section
11305 \begin_inset space ~
11306 \end_inset
11307
11308
11309 \begin_inset CommandInset ref
11310 LatexCommand ref
11311 reference "sec:Collections"
11312
11313 \end_inset
11314
11315 ).
11316 \end_layout
11317
11318 \begin_layout Section
11319
11320 \change_inserted 564990737 1670439674
11321 Scripts (drama)
11322 \end_layout
11323
11324 \begin_layout Subsection
11325 Broadway
11326 \end_layout
11327
11328 \begin_layout Standard
11329 by 
11330 \shape smallcaps
11331 Garst Reese
11332 \end_layout
11333
11334 \begin_layout Subsubsection
11335 Introduction
11336 \end_layout
11337
11338 \begin_layout Standard
11339 Broadway is for writing plays.
11340  The format is more decorative than Hollywood, and much less standardized.
11341  This format should be suitable for workshops.
11342 \end_layout
11343
11344 \begin_layout Subsubsection
11345 Special problems
11346 \end_layout
11347
11348 \begin_layout Standard
11349 The same as in Hollywood.
11350 \end_layout
11351
11352 \begin_layout Subsubsection
11353 Special features
11354 \end_layout
11355
11356 \begin_layout Standard
11357 Insert the 
11358 \family sans
11359 Speaker
11360 \family default
11361  names as labels then cross-reference the label to insert the name.
11362  The cross-reference dialog will show the current cast of characters.
11363 \end_layout
11364
11365 \begin_layout Subsubsection
11366 Paper size and Margins
11367 \end_layout
11368
11369 \begin_layout Standard
11370 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11371 \end_layout
11372
11373 \begin_layout Subsubsection
11374 Environments
11375 \end_layout
11376
11377 \begin_layout Standard
11378 The following environments are available.
11379  You can use broadway.bind to get the bind keys shown at the right.
11380 \end_layout
11381
11382 \begin_layout Itemize
11383
11384 \family sans
11385 Standard
11386 \begin_inset Newline newline
11387 \end_inset
11388
11389
11390 \family default
11391 You should not have to use this, but it is here for anything that does not
11392  fit otherwise.
11393 \end_layout
11394
11395 \begin_layout Itemize
11396
11397 \family sans
11398 Narrative
11399 \begin_inset space \hfill{}
11400 \end_inset
11401
11402 M-z n
11403 \begin_inset Newline newline
11404 \end_inset
11405
11406
11407 \family default
11408 Used to describe stage setting and the action.
11409  First use of speaker names in all CAPs.
11410 \end_layout
11411
11412 \begin_layout Itemize
11413
11414 \family sans
11415 ACT
11416 \begin_inset space \hfill{}
11417 \end_inset
11418
11419 M-z a
11420 \begin_inset Newline newline
11421 \end_inset
11422
11423
11424 \family default
11425 Automatically numbered.
11426  On screen it will be arabic, but will print as Roman.
11427 \end_layout
11428
11429 \begin_layout Itemize
11430
11431 \family sans
11432 ACT*
11433 \begin_inset space \hfill{}
11434 \end_inset
11435
11436 M-z S at
11437 \begin_inset Newline newline
11438 \end_inset
11439
11440
11441 \family default
11442 Subtitle for 
11443 \family sans
11444 ACT.
11445
11446 \family default
11447  It is just centered text.
11448 \end_layout
11449
11450 \begin_layout Itemize
11451
11452 \family sans
11453 SCENE
11454 \begin_inset space \hfill{}
11455 \end_inset
11456
11457 M-z S-S
11458 \begin_inset Newline newline
11459 \end_inset
11460
11461
11462 \family default
11463 Not automatically numbered.
11464  You supply the number.
11465  This is because I couldn't figure out how.
11466 \end_layout
11467
11468 \begin_layout Itemize
11469
11470 \family sans
11471 AT_RISE:
11472 \begin_inset space \hfill{}
11473 \end_inset
11474
11475 M-z S-R
11476 \begin_inset Newline newline
11477 \end_inset
11478
11479
11480 \family default
11481 A special case of Narrative to describe the setting and action as the curtain
11482  rises.
11483 \end_layout
11484
11485 \begin_layout Itemize
11486
11487 \family sans
11488 Speaker
11489 \begin_inset space \hfill{}
11490 \end_inset
11491
11492 M-z s
11493 \begin_inset Newline newline
11494 \end_inset
11495
11496
11497 \family default
11498 The speaker's (actor's) title, centered in all CAPS.
11499 \end_layout
11500
11501 \begin_layout Itemize
11502
11503 \family sans
11504 Parenthetical
11505 \begin_inset space \hfill{}
11506 \end_inset
11507
11508 M-z p
11509 \begin_inset Newline newline
11510 \end_inset
11511
11512
11513 \family default
11514 Instructions to the speaker.
11515  The parentheses are automatically inserted.
11516  The ( will appear on screen, but both will be in the printed play.
11517  This environment is only used within 
11518 \family sans
11519 Dialogue
11520 \family default
11521 .
11522 \end_layout
11523
11524 \begin_layout Itemize
11525
11526 \family sans
11527 Dialogue
11528 \begin_inset space \hfill{}
11529 \end_inset
11530
11531 M-z d
11532 \begin_inset Newline newline
11533 \end_inset
11534
11535
11536 \family default
11537 What the Speaker says.
11538 \end_layout
11539
11540 \begin_layout Itemize
11541
11542 \family sans
11543 CURTAIN
11544 \begin_inset space \hfill{}
11545 \end_inset
11546
11547 M-z S-C
11548 \begin_inset Newline newline
11549 \end_inset
11550
11551
11552 \family default
11553 The curtain comes down.
11554 \end_layout
11555
11556 \begin_layout Itemize
11557
11558 \family sans
11559 Title
11560 \begin_inset space \hfill{}
11561 \end_inset
11562
11563 M-z S-T
11564 \end_layout
11565
11566 \begin_layout Itemize
11567
11568 \family sans
11569 Author
11570 \begin_inset space \hfill{}
11571 \end_inset
11572
11573 M-z S-A
11574 \end_layout
11575
11576 \begin_layout Itemize
11577
11578 \family sans
11579 Right_Address
11580 \begin_inset space \hfill{}
11581 \end_inset
11582
11583 M-z r
11584 \end_layout
11585
11586 \begin_layout Standard
11587 Hello there.
11588 \end_layout
11589
11590 \begin_layout Subsection
11591 Hollywood (Hollywood spec scripts)
11592 \end_layout
11593
11594 \begin_layout Standard
11595 by 
11596 \shape smallcaps
11597 Garst Reese
11598 \end_layout
11599
11600 \begin_layout Subsubsection
11601 Introduction
11602 \end_layout
11603
11604 \begin_layout Standard
11605 Getting the format of a Hollywood script right is a 
11606 \begin_inset Quotes eld
11607 \end_inset
11608
11609 rite of passage.
11610 \begin_inset Quotes erd
11611 \end_inset
11612
11613  It is designed to make the readers focus on content and to be easy and
11614  familiar for the actors to read.
11615  Each page of a script should be one minute of film.
11616  Nothing goes in a script that you cannot see or hear on screen.
11617  The courier 12 pt font should be used throughout.
11618  No italics.
11619 \end_layout
11620
11621 \begin_layout Subsubsection
11622 Special problems
11623 \end_layout
11624
11625 \begin_layout Standard
11626 Speakers' lines should NEVER break in mid-sentence.
11627  If a speaker's lines continue over a page break, repeat the 
11628 \family sans
11629 Speaker
11630 \family default
11631  title followed by (Cont'd).
11632 \end_layout
11633
11634 \begin_layout Subsubsection
11635 Special features
11636 \end_layout
11637
11638 \begin_layout Standard
11639 Insert the 
11640 \family sans
11641 Speaker
11642 \family default
11643  names as labels then cross-reference the label to insert the name.
11644  The cross-reference dialog will show the current cast of characters.
11645  You can use this to insert the speaker name in narratives also.
11646 \end_layout
11647
11648 \begin_layout Subsubsection
11649 Paper size and Margins
11650 \end_layout
11651
11652 \begin_layout Standard
11653 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11654 \end_layout
11655
11656 \begin_layout Subsubsection
11657 Environments
11658 \end_layout
11659
11660 \begin_layout Standard
11661 The following environments are available.
11662  You can use hollywood.bind to get the bind keys shown at the right.
11663 \end_layout
11664
11665 \begin_layout Itemize
11666
11667 \family sans
11668 Standard
11669 \begin_inset Newline newline
11670 \end_inset
11671
11672
11673 \family default
11674 Used where nothing else works.
11675  Try to avoid it.
11676 \end_layout
11677
11678 \begin_layout Itemize
11679
11680 \family sans
11681 FADE_IN
11682 \family default
11683 :
11684 \begin_inset space \hfill{}
11685 \end_inset
11686
11687
11688 \family sans
11689 M-z S-I
11690 \family default
11691
11692 \begin_inset Newline newline
11693 \end_inset
11694
11695 Usually followed by something like 
11696 \begin_inset Quotes eld
11697 \end_inset
11698
11699 on Sally waking up.
11700 \begin_inset Quotes erd
11701 \end_inset
11702
11703
11704 \end_layout
11705
11706 \begin_layout Itemize
11707
11708 \family sans
11709 INT:
11710 \begin_inset space \hfill{}
11711 \end_inset
11712
11713 M-z i
11714 \begin_inset Newline newline
11715 \end_inset
11716
11717
11718 \family default
11719 Introduces a new INTERIOR camera set-up.
11720  Always followed by DAY or NIGHT, or something similar to define the lighting
11721  required.
11722  Everthing on this line in CAPS.
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 EXT:
11729 \begin_inset space \hfill{}
11730 \end_inset
11731
11732 M-z e
11733 \begin_inset Newline newline
11734 \end_inset
11735
11736
11737 \family default
11738 Introduces a new EXTERIOR camera set-up.
11739  Everthing on this line in CAPS.
11740 \end_layout
11741
11742 \begin_layout Itemize
11743
11744 \family sans
11745 Speaker
11746 \begin_inset space \hfill{}
11747 \end_inset
11748
11749 M-z s
11750 \begin_inset Newline newline
11751 \end_inset
11752
11753
11754 \family default
11755 The character speaking.
11756 \end_layout
11757
11758 \begin_layout Itemize
11759
11760 \family sans
11761 Parenthetical
11762 \begin_inset space \hfill{}
11763 \end_inset
11764
11765 M-z p
11766 \begin_inset Newline newline
11767 \end_inset
11768
11769
11770 \family default
11771 Instructions to the speaker.
11772  The () are automatically inserted.
11773 \end_layout
11774
11775 \begin_layout Itemize
11776
11777 \family sans
11778 Dialogue
11779 \begin_inset space \hfill{}
11780 \end_inset
11781
11782 M-z d
11783 \begin_inset Newline newline
11784 \end_inset
11785
11786
11787 \family default
11788 What the 
11789 \family sans
11790 Speaker
11791 \family default
11792  says.
11793 \end_layout
11794
11795 \begin_layout Itemize
11796
11797 \family sans
11798 Transition
11799 \begin_inset space \hfill{}
11800 \end_inset
11801
11802 M-z t
11803 \begin_inset Newline newline
11804 \end_inset
11805
11806
11807 \family default
11808 Camera movement instruction.
11809  e.
11810 \begin_inset space \thinspace{}
11811 \end_inset
11812
11813 g.
11814 \begin_inset space \space{}
11815 \end_inset
11816
11817 CUT TO:
11818 \end_layout
11819
11820 \begin_layout Itemize
11821
11822 \family sans
11823 FADE OUT:
11824 \begin_inset space \hfill{}
11825 \end_inset
11826
11827 M-z S-I
11828 \end_layout
11829
11830 \begin_layout Itemize
11831
11832 \family sans
11833 Author
11834 \begin_inset space \hfill{}
11835 \end_inset
11836
11837 M-z S-A
11838 \end_layout
11839
11840 \begin_layout Itemize
11841
11842 \family sans
11843 Title
11844 \begin_inset space \hfill{}
11845 \end_inset
11846
11847 M-z S-T
11848 \end_layout
11849
11850 \begin_layout Itemize
11851
11852 \family sans
11853 Right_Address
11854 \begin_inset space \hfill{}
11855 \end_inset
11856
11857 M-z r
11858 \end_layout
11859
11860 \begin_layout Subsubsection
11861 Script jargon
11862 \end_layout
11863
11864 \begin_layout Itemize
11865 (O.S) — off screen
11866 \end_layout
11867
11868 \begin_layout Itemize
11869 (V.0) — voice over
11870 \end_layout
11871
11872 \begin_layout Itemize
11873 b.
11874 \begin_inset space \thinspace{}
11875 \end_inset
11876
11877 g.
11878  — background
11879 \end_layout
11880
11881 \begin_layout Itemize
11882 C.U.
11883  — close-up
11884 \end_layout
11885
11886 \begin_layout Itemize
11887 PAN — camera movement
11888 \end_layout
11889
11890 \begin_layout Itemize
11891 INSERT — cut to close-up of
11892 \end_layout
11893
11894 \begin_layout Chapter
11895 Installation
11896 \end_layout
11897
11898 \begin_layout Standard
11899 All you need to do is install Rev\SpecialChar TeX
11900  4, as described in the package's README
11901  file.
11902  The package can be found at The Rev\SpecialChar TeX
11903  4 Web Site 
11904 \begin_inset Flex URL
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908
11909 http://publish.aps.org/revtex4/
11910 \end_layout
11911
11912 \end_inset
11913
11914 .
11915  Install it somewhere that \SpecialChar LaTeX
11916  can see it.
11917  Test it by trying to \SpecialChar LaTeX
11918  a short Rev\SpecialChar TeX
11919  4 document in some random directory (i.
11920 \begin_inset space \thinspace{}
11921 \end_inset
11922
11923 e.
11924 \begin_inset space \space{}
11925 \end_inset
11926
11927 not the directory where you installed the class file.) Then, if you reconfigure
11928  \SpecialChar LyX
11929 , it will find the class file and let you use the Rev\SpecialChar TeX
11930 4 textclass.
11931 \end_layout
11932
11933 \begin_layout Standard
11934 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
11935  4 document
11936  using 
11937 \family typewriter
11938 tex2lyx
11939 \family default
11940 , or to use the 
11941 \family sans
11942 Revtex
11943 \begin_inset space ~
11944 \end_inset
11945
11946 4
11947 \family default
11948  template, found in the templates directory.
11949 \end_layout
11950
11951 \begin_layout Chapter
11952 Preamble Matter
11953 \end_layout
11954
11955 \begin_layout Standard
11956 Optional arguments to 
11957 \family typewriter
11958
11959 \backslash
11960 documentclass
11961 \family default
11962 , like 
11963 \begin_inset Quotes eld
11964 \end_inset
11965
11966 preprint
11967 \begin_inset Quotes erd
11968 \end_inset
11969
11970  and 
11971 \begin_inset Quotes eld
11972 \end_inset
11973
11974 aps
11975 \begin_inset Quotes erd
11976 \end_inset
11977
11978 , go in the 
11979 \family sans
11980 Extra
11981 \begin_inset space ~
11982 \end_inset
11983
11984 Options
11985 \family default
11986  field in the 
11987 \family sans
11988 Document
11989 \begin_inset space ~
11990 \end_inset
11991
11992 Layout
11993 \family default
11994  dialog, as usual.
11995  Remember that in Rev\SpecialChar TeX
11996 , at least one optional argument is required! 
11997 \end_layout
11998
11999 \begin_layout Standard
12000 Other preamble matter, like 
12001 \family typewriter
12002
12003 \backslash
12004 draft
12005 \family default
12006  etc.
12007 \begin_inset space ~
12008 \end_inset
12009
12010 goes in the 
12011 \family sans
12012 \SpecialChar LaTeX
12013
12014 \begin_inset space ~
12015 \end_inset
12016
12017 Preamble
12018 \family default
12019  dialog, also as usual.
12020 \end_layout
12021
12022 \begin_layout Chapter
12023 Layouts
12024 \end_layout
12025
12026 \begin_layout Standard
12027 The layouts basically correspond to the commands in Rev\SpecialChar TeX
12028 4.0.
12029  For example, the Email layout corresponds to 
12030 \family typewriter
12031
12032 \backslash
12033 email{}
12034 \family default
12035 .
12036  Note that (at least as of Rev\SpecialChar TeX
12037  4.0 Beta), the 
12038 \family sans
12039 Address
12040 \family default
12041  and 
12042 \family sans
12043 Affiliation
12044 \family default
12045  layouts are exactly equivalent, so you shouldn't need to use both.
12046 \begin_inset Foot
12047 status collapsed
12048
12049 \begin_layout Plain Layout
12050 In case you're curious, both were included so that 
12051 \family typewriter
12052 tex2lyx
12053 \family default
12054  would be able to translate both 
12055 \family typewriter
12056
12057 \backslash
12058 address
12059 \family default
12060  and 
12061 \family typewriter
12062
12063 \backslash
12064 affiliation
12065 \family default
12066 .
12067 \end_layout
12068
12069 \end_inset
12070
12071
12072 \end_layout
12073
12074 \begin_layout Chapter
12075 Important Notes
12076 \end_layout
12077
12078 \begin_layout Standard
12079 There are a couple of important unique aspects of Rev\SpecialChar TeX
12080  4 which might cause
12081  bugs that will be even more confusing in \SpecialChar LyX
12082 .
12083 \end_layout
12084
12085 \begin_layout Standard
12086 In Rev\SpecialChar TeX
12087 , the 
12088 \family typewriter
12089
12090 \backslash
12091 thanks
12092 \family default
12093  command goes 
12094 \emph on
12095 outside
12096 \emph default
12097  the 
12098 \family typewriter
12099
12100 \backslash
12101 author
12102 \family default
12103  command.
12104  The \SpecialChar LyX
12105  equivalent is that there is a separate Thanks layout.
12106  Do 
12107 \emph on
12108 not
12109 \emph default
12110  write footnotes in the 
12111 \family sans
12112 Author
12113 \family default
12114  layout, or weird things may happen.
12115  See the Rev\SpecialChar TeX
12116  4 documentation for more details.
12117 \end_layout
12118
12119 \begin_layout Standard
12120 Also, the 
12121 \family sans
12122 Author
12123 \begin_inset space ~
12124 \end_inset
12125
12126 Email
12127 \family default
12128
12129 \family sans
12130 Author
12131 \begin_inset space ~
12132 \end_inset
12133
12134 URL
12135 \family default
12136 , and 
12137 \family sans
12138 Thanks
12139 \family default
12140  layouts must be placed 
12141 \emph on
12142 in between
12143 \emph default
12144  the 
12145 \family sans
12146 Author
12147 \family default
12148  layout and the corresponding 
12149 \family sans
12150 Address
12151 \family default
12152  (or equivalent 
12153 \family sans
12154 Affiliation
12155 \family default
12156 ) layout.
12157  If you put the 
12158 \family sans
12159 Thanks
12160 \family default
12161  after the 
12162 \family sans
12163 Address
12164 \family default
12165 , the \SpecialChar LaTeX
12166  won't compile.
12167 \end_layout
12168
12169 \begin_layout Chapter
12170 Supplemental Tools
12171 \end_layout
12172
12173 \begin_layout Section
12174 Customizing Bibliographies with Bib\SpecialChar TeX
12175  or Biblatex
12176 \end_layout
12177
12178 \begin_layout Standard
12179 The most basic information about how to use Bib\SpecialChar TeX
12180  or 
12181 \family sans
12182 Biblatex
12183 \family default
12184  with \SpecialChar LyX
12185  is contained in the section 
12186 \emph on
12187 Bibliography databases
12188 \emph default
12189  of the 
12190 \emph on
12191 User's Guide
12192 \emph default
12193 .
12194  The following subsections explain special bibliography features supported
12195  by \SpecialChar LyX
12196 .
12197 \end_layout
12198
12199 \begin_layout Subsection
12200 Alternative Citation Styles
12201 \end_layout
12202
12203 \begin_layout Standard
12204 Standard Bib\SpecialChar TeX
12205  uses numbers (e.
12206 \begin_inset space \thinspace{}
12207 \end_inset
12208
12209 g.
12210 \begin_inset space \space{}
12211 \end_inset
12212
12213
12214 \begin_inset Quotes eld
12215 \end_inset
12216
12217 [12]
12218 \begin_inset Quotes erd
12219 \end_inset
12220
12221 ) to refer to a cited work.
12222  However, in many scientific disciplines, other citation styles are in use.
12223  The most common one is the author-year style (e.
12224 \begin_inset space \thinspace{}
12225 \end_inset
12226
12227 g.
12228 \begin_inset space \space{}
12229 \end_inset
12230
12231
12232 \begin_inset Quotes eld
12233 \end_inset
12234
12235 Knuth 1984a
12236 \begin_inset Quotes erd
12237 \end_inset
12238
12239 ).
12240  \SpecialChar LyX
12241  supports three packages that provide this style, 
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 biblatex
12247 \end_layout
12248
12249 \end_inset
12250
12251
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 natbib
12257 \end_layout
12258
12259 \end_inset
12260
12261 , and 
12262 \begin_inset Flex Code
12263 status collapsed
12264
12265 \begin_layout Plain Layout
12266 jurabib
12267 \end_layout
12268
12269 \end_inset
12270
12271 .
12272  Each of these packages has their pros and cons, which cannot be listed
12273  in detail.
12274  If you only want to have simple author-year (or author-numerical) style,
12275  or if you want to use one of the countless style files for 
12276 \begin_inset Flex Code
12277 status collapsed
12278
12279 \begin_layout Plain Layout
12280 natbib
12281 \end_layout
12282
12283 \end_inset
12284
12285 , then the established 
12286 \begin_inset Flex Code
12287 status collapsed
12288
12289 \begin_layout Plain Layout
12290 natbib
12291 \end_layout
12292
12293 \end_inset
12294
12295  package is probably your choice.
12296  If you look for specific citation styles common in law studies, you might
12297  consider the 
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 jurabib
12303 \end_layout
12304
12305 \end_inset
12306
12307  package.
12308  If you want to have full control over the formatting or look for advanced
12309  features such as ibidem, footnote citations, full title citations, advanced
12310  date formats (such as 400 BC) or full localization to other languages than
12311  English, you should definitely consider 
12312 \begin_inset Flex Code
12313 status collapsed
12314
12315 \begin_layout Plain Layout
12316 biblatex
12317 \end_layout
12318
12319 \end_inset
12320
12321 , which exceeds all other packages in terms of features, but is also quite
12322  heavy and more resource-hungry.
12323 \end_layout
12324
12325 \begin_layout Standard
12326 The handling of these packages in \SpecialChar LyX
12327  is basically the same.
12328  Go to 
12329 \begin_inset Flex Noun
12330 status collapsed
12331
12332 \begin_layout Plain Layout
12333 Document\SpecialChar menuseparator
12334 Settings
12335 \end_layout
12336
12337 \end_inset
12338
12339  and select under 
12340 \begin_inset Flex Noun
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344 Bibliography
12345 \end_layout
12346
12347 \end_inset
12348
12349  the 
12350 \begin_inset Flex Noun
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 Style Format
12355 \end_layout
12356
12357 \end_inset
12358
12359  
12360 \begin_inset Flex Noun
12361 status collapsed
12362
12363 \begin_layout Plain Layout
12364 Basic (BibTeX)
12365 \end_layout
12366
12367 \end_inset
12368
12369
12370 \begin_inset Flex Noun
12371 status collapsed
12372
12373 \begin_layout Plain Layout
12374 Biblatex
12375 \end_layout
12376
12377 \end_inset
12378
12379
12380 \begin_inset Flex Noun
12381 status collapsed
12382
12383 \begin_layout Plain Layout
12384 Biblatex (Natbib mode)
12385 \end_layout
12386
12387 \end_inset
12388
12389
12390 \begin_inset Flex Noun
12391 status collapsed
12392
12393 \begin_layout Plain Layout
12394 Natbib (BibTeX)
12395 \end_layout
12396
12397 \end_inset
12398
12399  or 
12400 \begin_inset Flex Noun
12401 status collapsed
12402
12403 \begin_layout Plain Layout
12404 Jurabib (BibTeX)
12405 \end_layout
12406
12407 \end_inset
12408
12409  (see sec.
12410 \begin_inset space ~
12411 \end_inset
12412
12413 6.5.3 in the User's Guide for more information on these choices).
12414  With all these packages, you will get some extra features in the citation
12415  dialog and you can select the style of the reference (
12416 \begin_inset Quotes eld
12417 \end_inset
12418
12419 Knuth 1984
12420 \begin_inset Quotes erd
12421 \end_inset
12422
12423
12424 \begin_inset Quotes eld
12425 \end_inset
12426
12427 Knuth (1984)
12428 \begin_inset Quotes erd
12429 \end_inset
12430
12431
12432 \begin_inset Quotes eld
12433 \end_inset
12434
12435 Knuth, 1984
12436 \begin_inset Quotes erd
12437 \end_inset
12438
12439
12440 \begin_inset Quotes eld
12441 \end_inset
12442
12443 1984
12444 \begin_inset Quotes erd
12445 \end_inset
12446
12447  etc.).
12448  Note that either package needs specifically designed style files.
12449  They all ship their own, but there are lots of additional style files,
12450  and there is even an interactive style file builder
12451 \begin_inset Foot
12452 status collapsed
12453
12454 \begin_layout Plain Layout
12455 See 
12456 \begin_inset Flex URL
12457 status open
12458
12459 \begin_layout Plain Layout
12460
12461 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
12462 \end_layout
12463
12464 \end_inset
12465
12466
12467 \end_layout
12468
12469 \end_inset
12470
12471  for 
12472 \begin_inset Flex Code
12473 status collapsed
12474
12475 \begin_layout Plain Layout
12476 natbib
12477 \end_layout
12478
12479 \end_inset
12480
12481 .
12482 \end_layout
12483
12484 \begin_layout Subsection
12485 Subdivided Bibliographies
12486 \end_layout
12487
12488 \begin_layout Standard
12489 Sometimes you might need to divide your bibliography into several sections.
12490  If you are for instance a historian, the possibility to separate sources
12491  and scientific works is most likely a 
12492 \begin_inset Quotes eld
12493 \end_inset
12494
12495 must have
12496 \begin_inset Quotes erd
12497 \end_inset
12498
12499 .
12500  Unfortunately, Bib\SpecialChar TeX
12501  itself does not allow you to do this.
12502  But with the help of some \SpecialChar LaTeX
12503  packages, Bib\SpecialChar TeX
12504  can be extended to fit your needs.
12505 \end_layout
12506
12507 \begin_layout Standard
12508 \SpecialChar LyX
12509  provides native support for one of these packages, 
12510 \family typewriter
12511 bibtopic
12512 \family default
12513 .
12514 \begin_inset Foot
12515 status collapsed
12516
12517 \begin_layout Plain Layout
12518 Available from 
12519 \begin_inset Flex URL
12520 status open
12521
12522 \begin_layout Plain Layout
12523
12524 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
12525 \end_layout
12526
12527 \end_inset
12528
12529
12530 \end_layout
12531
12532 \end_inset
12533
12534  The advantage of this package (compared to other packages such as 
12535 \family typewriter
12536 multibib
12537 \family default
12538 ) is that you don't need to define new citation commands.
12539  Instead, you need to prepare different bibliographic databases which include
12540  the entries for the different sections of the bibliography.
12541  For example: If you want to divide your bibliography into the sections
12542  
12543 \begin_inset Quotes eld
12544 \end_inset
12545
12546 Sources
12547 \begin_inset Quotes erd
12548 \end_inset
12549
12550  and 
12551 \begin_inset Quotes eld
12552 \end_inset
12553
12554 Scientific works
12555 \begin_inset Quotes erd
12556 \end_inset
12557
12558 , you first need to create two bibliographic databases, e.
12559 \begin_inset space \thinspace{}
12560 \end_inset
12561
12562 g.
12563 \begin_inset space \space{}
12564 \end_inset
12565
12566
12567 \begin_inset Flex Code
12568 status collapsed
12569
12570 \begin_layout Plain Layout
12571 sources.bib
12572 \end_layout
12573
12574 \end_inset
12575
12576  and 
12577 \begin_inset Flex Code
12578 status collapsed
12579
12580 \begin_layout Plain Layout
12581 scientific.bib
12582 \end_layout
12583
12584 \end_inset
12585
12586 .
12587  
12588 \end_layout
12589
12590 \begin_layout Standard
12591 Go to 
12592 \begin_inset Flex Noun
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 Document\SpecialChar menuseparator
12597 Settings
12598 \end_layout
12599
12600 \end_inset
12601
12602  and check under 
12603 \begin_inset Flex Noun
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 Bibliography
12608 \end_layout
12609
12610 \end_inset
12611
12612  the option 
12613 \begin_inset Flex Noun
12614 status collapsed
12615
12616 \begin_layout Plain Layout
12617 Subdivided bibliography
12618 \end_layout
12619
12620 \end_inset
12621
12622 .
12623  Now you can insert multiple Bib\SpecialChar TeX
12624  bibliographies, one for each section of
12625  your bibliography.
12626  Returning to our example: Insert the Bib\SpecialChar TeX
12627  bibliography 
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 sources.bib
12633 \end_layout
12634
12635 \end_inset
12636
12637  and a second one for the database 
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 scientific.bib
12643 \end_layout
12644
12645 \end_inset
12646
12647 .
12648  You are free to use the same or different styles for each section.
12649  Additionally, you can choose if the bibliography section should contain
12650  
12651 \begin_inset Quotes eld
12652 \end_inset
12653
12654 all cited references
12655 \begin_inset Quotes erd
12656 \end_inset
12657
12658  of the specified database(s) (which is the default), 
12659 \begin_inset Quotes eld
12660 \end_inset
12661
12662 all uncited references
12663 \begin_inset Quotes erd
12664 \end_inset
12665
12666  or even 
12667 \begin_inset Quotes eld
12668 \end_inset
12669
12670 all references
12671 \begin_inset Quotes erd
12672 \end_inset
12673
12674 .
12675  This might be useful if you would like to separate your bibliography into
12676  three sections: 
12677 \begin_inset Quotes eld
12678 \end_inset
12679
12680 Cited sources
12681 \begin_inset Quotes erd
12682 \end_inset
12683
12684
12685 \begin_inset Quotes eld
12686 \end_inset
12687
12688 Uncited sources
12689 \begin_inset Quotes erd
12690 \end_inset
12691
12692 , and 
12693 \begin_inset Quotes eld
12694 \end_inset
12695
12696 Scientific works
12697 \begin_inset Quotes erd
12698 \end_inset
12699
12700 .
12701  The titles for the sections can be added as ordinary sections or subsections.
12702  Since 
12703 \begin_inset Flex Code
12704 status collapsed
12705
12706 \begin_layout Plain Layout
12707 bibtopic
12708 \end_layout
12709
12710 \end_inset
12711
12712  removes the bibliography title, you have to manually re-add that, too (as
12713  a chapter* or section*, for instance).
12714 \end_layout
12715
12716 \begin_layout Standard
12717 With 
12718 \family sans
12719 Biblatex
12720 \family default
12721 , the procedure is a bit different.
12722  Since 
12723 \family typewriter
12724 bibtopic
12725 \family default
12726  does not work with 
12727 \family sans
12728 Biblatex
12729 \family default
12730 , the aforementioned 
12731 \begin_inset Flex Noun
12732 status collapsed
12733
12734 \begin_layout Plain Layout
12735 Subdivided bibliography
12736 \end_layout
12737
12738 \end_inset
12739
12740  option is disabled if you use 
12741 \family sans
12742 Biblatex
12743 \family default
12744 .
12745  However, 
12746 \family sans
12747 Biblatex
12748 \family default
12749  provides its own means to generate subdivided bibliographies.
12750  You can either add keywords to bibliography entries via the 
12751 \begin_inset Flex Code
12752 status collapsed
12753
12754 \begin_layout Plain Layout
12755 keywords
12756 \end_layout
12757
12758 \end_inset
12759
12760  entry option and then filter bibliography sections by keyword (by adding
12761  
12762 \begin_inset Flex Code
12763 status collapsed
12764
12765 \begin_layout Plain Layout
12766 keyword=mykeyword
12767 \end_layout
12768
12769 \end_inset
12770
12771  to the 
12772 \begin_inset Flex Noun
12773 status collapsed
12774
12775 \begin_layout Plain Layout
12776 Options
12777 \end_layout
12778
12779 \end_inset
12780
12781  field of the dialog that opens if you left-click on the 
12782 \begin_inset Flex Noun
12783 status collapsed
12784
12785 \begin_layout Plain Layout
12786 Biblatex Generated Bibliography
12787 \end_layout
12788
12789 \end_inset
12790
12791  button), or you can filter by entry types (such as 
12792 \emph on
12793 book
12794 \emph default
12795  or 
12796 \emph on
12797 article
12798 \emph default
12799 ) by entering e.
12800 \begin_inset space \thinspace{}
12801 \end_inset
12802
12803 g.
12804  
12805 \begin_inset Flex Code
12806 status collapsed
12807
12808 \begin_layout Plain Layout
12809 type=book
12810 \end_layout
12811
12812 \end_inset
12813
12814  or 
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819 nottype=collection
12820 \end_layout
12821
12822 \end_inset
12823
12824  to the mentioned 
12825 \begin_inset Flex Noun
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 Options
12830 \end_layout
12831
12832 \end_inset
12833
12834  field, or you can create so-called 
12835 \begin_inset Quotes eld
12836 \end_inset
12837
12838 Bibliography Categories
12839 \begin_inset Quotes erd
12840 \end_inset
12841
12842  to which you can assign individual entries.
12843  Please refer to the Biblatex manual, section 
12844 \emph on
12845 Subdivided Bibliographies
12846 \emph default
12847 , for details.
12848 \end_layout
12849
12850 \begin_layout Subsection
12851 Multiple Bibliographies
12852 \begin_inset CommandInset label
12853 LatexCommand label
12854 name "subsec:Multiple-Bibliographies"
12855
12856 \end_inset
12857
12858
12859 \end_layout
12860
12861 \begin_layout Standard
12862 Multiple bibliographies, e.
12863 \begin_inset space \thinspace{}
12864 \end_inset
12865
12866 g.
12867 \begin_inset space \space{}
12868 \end_inset
12869
12870 a bibliography for each part, chapter, section, subsection or child (sub-documen
12871 t) of the document, are also supported by \SpecialChar LyX
12872 .
12873  In order to enable it, go to 
12874 \begin_inset Flex Noun
12875 status collapsed
12876
12877 \begin_layout Plain Layout
12878 Document\SpecialChar menuseparator
12879 Settings\SpecialChar menuseparator
12880 Bibliography
12881 \end_layout
12882
12883 \end_inset
12884
12885  and select the relevant unit (e.
12886 \begin_inset space \thinspace{}
12887 \end_inset
12888
12889 g., 
12890 \begin_inset Quotes eld
12891 \end_inset
12892
12893 per section
12894 \begin_inset Quotes erd
12895 \end_inset
12896
12897 ) in the 
12898 \begin_inset Flex Noun
12899 status collapsed
12900
12901 \begin_layout Plain Layout
12902 Multiple Bibliographies
12903 \end_layout
12904
12905 \end_inset
12906
12907  combo box.
12908  Then add a Bib(la)\SpecialChar TeX
12909  bibliography to each unit (e.
12910 \begin_inset space \thinspace{}
12911 \end_inset
12912
12913 g., section) of your document.
12914  In the output, a separate bibliography, containing only the references
12915  done in the current unit is generated.
12916 \end_layout
12917
12918 \begin_layout Standard
12919 If you use Bib\SpecialChar TeX
12920 , either the 
12921 \begin_inset Flex Code
12922 status collapsed
12923
12924 \begin_layout Plain Layout
12925 chapterbib
12926 \end_layout
12927
12928 \end_inset
12929
12930  or the 
12931 \begin_inset Flex Code
12932 status collapsed
12933
12934 \begin_layout Plain Layout
12935 bibtopic
12936 \end_layout
12937
12938 \end_inset
12939
12940  package is used to create multiple bibliographies.
12941  The former package is used if you select 
12942 \begin_inset Quotes eld
12943 \end_inset
12944
12945 per child document
12946 \begin_inset Quotes erd
12947 \end_inset
12948
12949  and do 
12950 \emph on
12951 not
12952 \emph default
12953  check 
12954 \begin_inset Flex Noun
12955 status collapsed
12956
12957 \begin_layout Plain Layout
12958 Sectioned Bibliography
12959 \end_layout
12960
12961 \end_inset
12962
12963 .
12964  In all other cases, 
12965 \begin_inset Flex Code
12966 status collapsed
12967
12968 \begin_layout Plain Layout
12969 bibtopic
12970 \end_layout
12971
12972 \end_inset
12973
12974  is used.
12975 \begin_inset Foot
12976 status collapsed
12977
12978 \begin_layout Plain Layout
12979 An alternative approach, if you are willing to use some 
12980 \begin_inset Flex Noun
12981 status collapsed
12982
12983 \begin_layout Plain Layout
12984 \SpecialChar TeX
12985  Code
12986 \end_layout
12987
12988 \end_inset
12989
12990  (see section
12991 \begin_inset space ~
12992 \end_inset
12993
12994
12995 \begin_inset CommandInset ref
12996 LatexCommand ref
12997 reference "sec:Inserting-TeX-Code"
12998
12999 \end_inset
13000
13001 ), is to use the 
13002 \begin_inset Flex Code
13003 status collapsed
13004
13005 \begin_layout Plain Layout
13006 bibunits
13007 \end_layout
13008
13009 \end_inset
13010
13011  package.
13012 \end_layout
13013
13014 \end_inset
13015
13016  If 
13017 \begin_inset Flex Code
13018 status collapsed
13019
13020 \begin_layout Plain Layout
13021 bibtopic
13022 \end_layout
13023
13024 \end_inset
13025
13026  is used, \SpecialChar LyX
13027  encloses the specified units in 
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 bibtopic
13033 \end_layout
13034
13035 \end_inset
13036
13037 's 
13038 \begin_inset Flex Code
13039 status collapsed
13040
13041 \begin_layout Plain Layout
13042
13043 \backslash
13044 begin{btUnit}
13045 \end_layout
13046
13047 \end_inset
13048
13049  and 
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054
13055 \backslash
13056 end{btUnit}
13057 \end_layout
13058
13059 \end_inset
13060
13061  in order to create the units.
13062  Note that this approach has some limitations.
13063  First, every citation reference has to be inside some 
13064 \begin_inset Flex Code
13065 status collapsed
13066
13067 \begin_layout Plain Layout
13068 btUnit
13069 \end_layout
13070
13071 \end_inset
13072
13073 .
13074  So citations outside a defined unit (e.
13075 \begin_inset space \thinspace{}
13076 \end_inset
13077
13078 g., before the first section if you use 
13079 \begin_inset Quotes eld
13080 \end_inset
13081
13082 by section
13083 \begin_inset Quotes erd
13084 \end_inset
13085
13086 ) will appear as 
13087 \begin_inset Quotes eld
13088 \end_inset
13089
13090 ???
13091 \begin_inset Quotes erd
13092 \end_inset
13093
13094 .
13095  You can also create your own units by entering 
13096 \begin_inset Flex Code
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100
13101 \backslash
13102 begin{btUnit}
13103 \end_layout
13104
13105 \end_inset
13106
13107  and 
13108 \begin_inset Flex Code
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112
13113 \backslash
13114 end{btUnit}
13115 \end_layout
13116
13117 \end_inset
13118
13119  as \SpecialChar TeX
13120  code (for instance to work around the mentioned limitation).
13121  Note, though, that 
13122 \begin_inset Flex Code
13123 status collapsed
13124
13125 \begin_layout Plain Layout
13126 btUnit
13127 \end_layout
13128
13129 \end_inset
13130
13131 s cannot be nested.
13132  A second limitation is that 
13133 \begin_inset Flex Code
13134 status collapsed
13135
13136 \begin_layout Plain Layout
13137 bibtopic
13138 \end_layout
13139
13140 \end_inset
13141
13142  always processes all references of a bibliography database, even if they
13143  are not cited.
13144  This can result in odd labels (e.
13145 \begin_inset space \thinspace{}
13146 \end_inset
13147
13148 g.
13149  
13150 \begin_inset Quotes eld
13151 \end_inset
13152
13153 Miller 2014b
13154 \begin_inset Quotes erd
13155 \end_inset
13156
13157  if two works of this author from 2014 are in the database, even if only
13158  one is cited).
13159 \end_layout
13160
13161 \begin_layout Standard
13162 If you use 
13163 \family sans
13164 Biblatex
13165 \family default
13166 , the 
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 refsection
13172 \end_layout
13173
13174 \end_inset
13175
13176  option is used instead.
13177  If you need specific units, you can start them with the \SpecialChar TeX
13178  code 
13179 \begin_inset Flex Code
13180 status collapsed
13181
13182 \begin_layout Plain Layout
13183
13184 \backslash
13185 newrefsection
13186 \end_layout
13187
13188 \end_inset
13189
13190  or 
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195
13196 \backslash
13197 newrefsegment
13198 \end_layout
13199
13200 \end_inset
13201
13202 , respectively.
13203  If you also want to control the end of the unit, use the environment 
13204 \begin_inset Flex Code
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208
13209 \backslash
13210 begin{refsection}
13211 \end_layout
13212
13213 \end_inset
13214
13215  \SpecialChar ldots
13216  
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221
13222 \backslash
13223 end{refsection}
13224 \end_layout
13225
13226 \end_inset
13227
13228  instead.
13229  Note, though, that 
13230 \begin_inset Flex Code
13231 status collapsed
13232
13233 \begin_layout Plain Layout
13234 refsection
13235 \end_layout
13236
13237 \end_inset
13238
13239 s cannot be nested.
13240  In addition to the individual bibliography of the current unit, 
13241 \family sans
13242 Biblatex
13243 \family default
13244  also provides an easy way to output all bibliographies, subsequently, at
13245  one place (e.
13246 \begin_inset space \thinspace{}
13247 \end_inset
13248
13249 g., at the end of the document).
13250  Select 
13251 \begin_inset Quotes eld
13252 \end_inset
13253
13254 all reference units
13255 \begin_inset Quotes erd
13256 \end_inset
13257
13258  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
13259  this.
13260  Please refer to the 
13261 \family sans
13262 Biblatex
13263 \family default
13264  manual for more information on this topic.
13265 \end_layout
13266
13267 \begin_layout Section
13268 Multipart Documents
13269 \end_layout
13270
13271 \begin_layout Subsection
13272 General Operation
13273 \end_layout
13274
13275 \begin_layout Standard
13276 When you are working on a large file with many sections, it is often convenient
13277  to break up the document into several files, or perhaps you have something
13278  where a table may change from time to time, but the preceding text does
13279  not.
13280  In these cases, you should seriously consider using multipart documents.
13281  For example, scientific papers often have five major sections: the introduction
13282 , observations, results, discussion, and conclusion.
13283  Each of these could be its own separate \SpecialChar LyX
13284  file, with one 
13285 \begin_inset Quotes eld
13286 \end_inset
13287
13288 master
13289 \begin_inset Quotes erd
13290 \end_inset
13291
13292  file which contains the title, authors, abstract, references, etc., plus
13293  the five included files.
13294  It is important to note that each of these files is a full \SpecialChar LyX
13295  file which
13296  can be formatted and printed on its own, as well as included in a master
13297  file.
13298  Each of these files must have the same document class, however—don't attempt
13299  to mix book classes with article classes.
13300  You may also include \SpecialChar LaTeX
13301  files; however, these files must not have their own
13302  preamble (i.
13303 \begin_inset space \thinspace{}
13304 \end_inset
13305
13306 e.
13307 \begin_inset space \space{}
13308 \end_inset
13309
13310 everything up to and including the 
13311 \begin_inset Flex Code
13312 status collapsed
13313
13314 \begin_layout Plain Layout
13315
13316 \backslash
13317 begin{document}
13318 \end_layout
13319
13320 \end_inset
13321
13322  line as well as the 
13323 \begin_inset Flex Code
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327
13328 \backslash
13329 end{document}
13330 \end_layout
13331
13332 \end_inset
13333
13334  line must be deleted) or else errors will be generated when you try to
13335  make a DVI file.
13336 \end_layout
13337
13338 \begin_layout Standard
13339 \SpecialChar LyX
13340  allows you to include files quite easily with 
13341 \begin_inset Flex Noun
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 Insert\SpecialChar menuseparator
13346 Child
13347 \begin_inset space ~
13348 \end_inset
13349
13350 Document
13351 \end_layout
13352
13353 \end_inset
13354
13355 .
13356  When you click on this selection a small box is inserted into the file
13357  at the current cursor location.
13358  Clicking on the box raises a dialog which allows you to select the file
13359  to be included, and the method of its inclusion.
13360  
13361 \end_layout
13362
13363 \begin_layout Standard
13364 The file selection box should by now be obvious.
13365  The three inclusion methods are 
13366 \begin_inset Quotes eld
13367 \end_inset
13368
13369 include
13370 \begin_inset Quotes erd
13371 \end_inset
13372
13373
13374 \begin_inset Quotes eld
13375 \end_inset
13376
13377 input
13378 \begin_inset Quotes erd
13379 \end_inset
13380
13381 , and 
13382 \begin_inset Quotes eld
13383 \end_inset
13384
13385 verbatim
13386 \begin_inset Quotes erd
13387 \end_inset
13388
13389 .
13390  The methods 
13391 \begin_inset Quotes eld
13392 \end_inset
13393
13394 include
13395 \begin_inset Quotes erd
13396 \end_inset
13397
13398  and 
13399 \begin_inset Quotes eld
13400 \end_inset
13401
13402 input
13403 \begin_inset Quotes erd
13404 \end_inset
13405
13406  are similar in many ways, but there are also some notable differences:
13407 \end_layout
13408
13409 \begin_layout Enumerate
13410 Files that are 
13411 \begin_inset Quotes eld
13412 \end_inset
13413
13414 included
13415 \begin_inset Quotes erd
13416 \end_inset
13417
13418  are typeset beginning on a new page, while files that are 
13419 \begin_inset Quotes eld
13420 \end_inset
13421
13422 inputted
13423 \begin_inset Quotes erd
13424 \end_inset
13425
13426  are typeset starting on the current page.
13427 \end_layout
13428
13429 \begin_layout Enumerate
13430 \begin_inset Quotes eld
13431 \end_inset
13432
13433 Included
13434 \begin_inset Quotes erd
13435 \end_inset
13436
13437  files cannot themselves 
13438 \begin_inset Quotes eld
13439 \end_inset
13440
13441 include
13442 \begin_inset Quotes erd
13443 \end_inset
13444
13445  further files (
13446 \begin_inset Quotes eld
13447 \end_inset
13448
13449 grandchilds
13450 \begin_inset Quotes erd
13451 \end_inset
13452
13453 ).
13454  With 
13455 \begin_inset Quotes eld
13456 \end_inset
13457
13458 input
13459 \begin_inset Quotes erd
13460 \end_inset
13461
13462 , on the other hand, infinite sub-inputting is possible.
13463 \end_layout
13464
13465 \begin_layout Enumerate
13466 \begin_inset Quotes eld
13467 \end_inset
13468
13469 Include
13470 \begin_inset Quotes erd
13471 \end_inset
13472
13473  allow for the output of only selected 
13474 \begin_inset Quotes eld
13475 \end_inset
13476
13477 included
13478 \begin_inset Quotes erd
13479 \end_inset
13480
13481  files, while maintaining the actual counters (pagination etc.) and references
13482  (please refer to the section 
13483 \emph on
13484 Child
13485 \begin_inset space ~
13486 \end_inset
13487
13488 Documents
13489 \emph default
13490  of the 
13491 \emph on
13492 Embedded
13493 \begin_inset space ~
13494 \end_inset
13495
13496 Objects
13497 \emph default
13498  manual for details).
13499 \end_layout
13500
13501 \begin_layout Standard
13502 Hence, 
13503 \begin_inset Quotes eld
13504 \end_inset
13505
13506 include
13507 \begin_inset Quotes erd
13508 \end_inset
13509
13510  is the preferred method for chapters that are outsourced to child documents,
13511  while 
13512 \begin_inset Quotes eld
13513 \end_inset
13514
13515 input
13516 \begin_inset Quotes erd
13517 \end_inset
13518
13519  is more suitable for arbitrary file inheritance.
13520 \end_layout
13521
13522 \begin_layout Standard
13523
13524 \begin_inset Quotes eld
13525 \end_inset
13526
13527 verbatim
13528 \begin_inset Quotes erd
13529 \end_inset
13530
13531  included file allows you to include a file typeset exactly as it appears
13532  in the file, i.
13533 \begin_inset space \thinspace{}
13534 \end_inset
13535
13536 e.
13537 \begin_inset space \space{}
13538 \end_inset
13539
13540 in 
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 verbatim
13546 \end_layout
13547
13548 \end_inset
13549
13550  mode, with the characters set in a fixed-width typewriter font.
13551  Normally, spaces in this file are invisible, though two consecutive spaces
13552  are conserved, unlike \SpecialChar LyX
13553 's normal treatment of spaces.
13554  However, setting the 
13555 \begin_inset Flex Noun
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559 Mark
13560 \begin_inset space ~
13561 \end_inset
13562
13563 spaces
13564 \begin_inset space ~
13565 \end_inset
13566
13567 in
13568 \begin_inset space ~
13569 \end_inset
13570
13571 output
13572 \end_layout
13573
13574 \end_inset
13575
13576  checkbox typesets a mark to unambiguously define the presence of a space.
13577  
13578 \end_layout
13579
13580 \begin_layout Standard
13581 Generally, the master file is converted into a full \SpecialChar LaTeX
13582  file before typesetting,
13583  while the included files are converted to \SpecialChar LaTeX
13584  files that do not have all the
13585  preamble information.
13586 \end_layout
13587
13588 \begin_layout Subsection
13589 Cross-References Between Files
13590 \end_layout
13591
13592 \begin_layout Standard
13593 \begin_inset Box Shadowbox
13594 position "t"
13595 hor_pos "c"
13596 has_inner_box 1
13597 inner_pos "t"
13598 use_parbox 0
13599 use_makebox 0
13600 width "100col%"
13601 special "none"
13602 height "1in"
13603 height_special "totalheight"
13604 thickness "0.4pt"
13605 separation "3pt"
13606 shadowsize "4pt"
13607 framecolor "black"
13608 backgroundcolor "none"
13609 status open
13610
13611 \begin_layout Plain Layout
13612 This section is somewhat out of date.
13613  Need to describe default master documents and how children are opened when
13614  the master is.
13615  [[FIXME]]
13616 \end_layout
13617
13618 \end_inset
13619
13620
13621 \end_layout
13622
13623 \begin_layout Standard
13624 It is possible to set up cross-references between the different files.
13625  First, open all the files in question: let's call them A and B in a two
13626  file example, where B is included in A.
13627  Let's say you insert a label in A, then want to reference it in B.
13628  Open the cross-reference dialog whilst in document B, and you can select
13629  the 
13630 \begin_inset Quotes eld
13631 \end_inset
13632
13633 buffer
13634 \begin_inset Quotes erd
13635 \end_inset
13636
13637  to use.
13638 \end_layout
13639
13640 \begin_layout Subsection
13641 Bibliography Lists in all Subdocuments
13642 \end_layout
13643
13644 \begin_layout Standard
13645 If you work with child documents, you might want to have only one main bibliogra
13646 phy at the end, but still be able to have a selected bibliography for the
13647  child if you output it on its own.
13648  Here is how to achieve this.
13649 \end_layout
13650
13651 \begin_layout Standard
13652 For the main document, you just insert a bibliography inset at the place
13653  where the main bibliography has to appear (within the master file or within
13654  a child).
13655  If the bibliography inset is in the master file, the references will be
13656  inherited by all children, so they are available in the citation dialog
13657  within each child.
13658 \end_layout
13659
13660 \begin_layout Standard
13661 For child-specific bibliographies, insert bibliography insets within the
13662  child documents, at the place where the bibliography should appear when
13663  the child is compiled separately.
13664  However, the trick is to insert them into a branch (
13665 \family sans
13666 Insert\SpecialChar menuseparator
13667 Branch\SpecialChar menuseparator
13668 Insert New Branch...
13669 \family default
13670 ), e.
13671 \begin_inset space \thinspace{}
13672 \end_inset
13673
13674 g.
13675  called 
13676 \begin_inset Quotes eld
13677 \end_inset
13678
13679 Childonly
13680 \begin_inset Quotes erd
13681 \end_inset
13682
13683 .
13684  Within the children, activate the branch (
13685 \family sans
13686 Document\SpecialChar menuseparator
13687 Settings...\SpecialChar menuseparator
13688 Branches
13689 \family default
13690 ).
13691  Within the master, deactivate the branch (
13692 \family sans
13693 Document\SpecialChar menuseparator
13694 Settings...\SpecialChar menuseparator
13695 Branches
13696 \family default
13697 ).
13698  Now the child's bibliography will be ignored by the master, but considered
13699  by the child.
13700 \end_layout
13701
13702 \begin_layout Standard
13703 If you need multiple bibliographies (e.
13704 \begin_inset space \thinspace{}
13705 \end_inset
13706
13707 g., one per child in the 
13708 \emph on
13709 main document
13710 \emph default
13711 ), please refer to sec.
13712 \begin_inset space ~
13713 \end_inset
13714
13715
13716 \begin_inset CommandInset ref
13717 LatexCommand ref
13718 reference "subsec:Multiple-Bibliographies"
13719
13720 \end_inset
13721
13722 .
13723 \end_layout
13724
13725 \begin_layout Section
13726 \SpecialChar LyX
13727  Archives
13728 \end_layout
13729
13730 \begin_layout Standard
13731 Users sometimes need to be able to 
13732 \begin_inset Quotes eld
13733 \end_inset
13734
13735 bundle
13736 \begin_inset Quotes erd
13737 \end_inset
13738
13739  a \SpecialChar LyX
13740  file together with all the images (and other files) on which it depends,
13741  either for sending to a publisher or for sharing with a co-author.
13742  \SpecialChar LyX
13743  includes a Python script (
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748 lyxpak.py
13749 \end_layout
13750
13751 \end_inset
13752
13753 ) that automates this process.
13754  To use it, you must have either the 
13755 \begin_inset Flex Code
13756 status collapsed
13757
13758 \begin_layout Plain Layout
13759 zipfile
13760 \end_layout
13761
13762 \end_inset
13763
13764  or 
13765 \begin_inset Flex Code
13766 status collapsed
13767
13768 \begin_layout Plain Layout
13769 tarfile
13770 \end_layout
13771
13772 \end_inset
13773
13774  python modules installed on your system.
13775  By default, the script prefers the 
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 gzip
13781 \end_layout
13782
13783 \end_inset
13784
13785 -compressed 
13786 \begin_inset Flex Code
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 tar
13791 \end_layout
13792
13793 \end_inset
13794
13795  format on Unix-like systems and the 
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 zip
13801 \end_layout
13802
13803 \end_inset
13804
13805  format on Windows.
13806 \end_layout
13807
13808 \begin_layout Standard
13809 \SpecialChar LyX
13810 's configuration process will set the script up to export a `\SpecialChar LyX
13811  Archive',
13812  and this format will then be available under 
13813 \begin_inset Flex Code
13814 status collapsed
13815
13816 \begin_layout Plain Layout
13817 File\SpecialChar menuseparator
13818 Export
13819 \end_layout
13820
13821 \end_inset
13822
13823 .
13824 \end_layout
13825
13826 \begin_layout Standard
13827 Independently of the platform, the generation of a particular archive format
13828  can be forced by adding either the 
13829 \begin_inset Flex Code
13830 status collapsed
13831
13832 \begin_layout Plain Layout
13833 -t
13834 \end_layout
13835
13836 \end_inset
13837
13838  (for the 
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 tar
13844 \end_layout
13845
13846 \end_inset
13847
13848  format) or 
13849 \begin_inset Flex Code
13850 status collapsed
13851
13852 \begin_layout Plain Layout
13853 -z
13854 \end_layout
13855
13856 \end_inset
13857
13858  (for the 
13859 \begin_inset Flex Code
13860 status collapsed
13861
13862 \begin_layout Plain Layout
13863 zip
13864 \end_layout
13865
13866 \end_inset
13867
13868  format) switch to the 
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 \SpecialChar LyX
13874 \SpecialChar menuseparator
13875 \SpecialChar LyX
13876  Archive
13877 \end_layout
13878
13879 \end_inset
13880
13881  converter in 
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 Tools\SpecialChar menuseparator
13887 Preferences\SpecialChar menuseparator
13888 File Handling\SpecialChar menuseparator
13889 Converters
13890 \end_layout
13891
13892 \end_inset
13893
13894 .
13895  (Make sure you add the switch after the script name, not before it.)
13896 \end_layout
13897
13898 \begin_layout Section
13899 Fancy Headers and Footers
13900 \end_layout
13901
13902 \begin_layout Standard
13903 The default page layout is rather plain; for an 
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908 article
13909 \end_layout
13910
13911 \end_inset
13912
13913  document class, all you get is a centered page number at the bottom of
13914  the page.
13915  This document uses KOMA-script's book class, so it appears to be a bit
13916  fancier.
13917  But to really put on a show, you need to set the document page style to
13918  
13919 \begin_inset Quotes eld
13920 \end_inset
13921
13922 fancy
13923 \begin_inset Quotes erd
13924 \end_inset
13925
13926 , as mentioned in the 
13927 \emph on
13928 User Guide
13929 \emph default
13930 .
13931  This section describes the \SpecialChar LaTeX
13932  code you need to insert in your \SpecialChar LaTeX
13933  preamble in
13934  order to get the desired effects.
13935 \end_layout
13936
13937 \begin_layout Standard
13938 For more information on fancy headers, see the 
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943 fancyhdr
13944 \end_layout
13945
13946 \end_inset
13947
13948  package documentation.
13949  (
13950 \begin_inset Flex URL
13951 status collapsed
13952
13953 \begin_layout Plain Layout
13954
13955 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
13956 \end_layout
13957
13958 \end_inset
13959
13960 )
13961 \end_layout
13962
13963 \begin_layout Standard
13964 The page header is divided into three fields, not surprisingly labeled 
13965 \begin_inset Quotes eld
13966 \end_inset
13967
13968 left
13969 \begin_inset Quotes erd
13970 \end_inset
13971
13972
13973 \begin_inset Quotes eld
13974 \end_inset
13975
13976 center
13977 \begin_inset Quotes erd
13978 \end_inset
13979
13980 , and 
13981 \begin_inset Quotes eld
13982 \end_inset
13983
13984 right
13985 \begin_inset Quotes erd
13986 \end_inset
13987
13988 .
13989  The footer is also divided into these three fields.
13990  The \SpecialChar LaTeX
13991  commands to set these fields in the simplest manner are 
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996
13997 \backslash
13998 lhead
13999 \end_layout
14000
14001 \end_inset
14002
14003
14004 \begin_inset Flex Code
14005 status collapsed
14006
14007 \begin_layout Plain Layout
14008
14009 \backslash
14010 chead
14011 \end_layout
14012
14013 \end_inset
14014
14015
14016 \begin_inset Flex Code
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020
14021 \backslash
14022 rhead
14023 \end_layout
14024
14025 \end_inset
14026
14027
14028 \begin_inset Flex Code
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032
14033 \backslash
14034 lfoot
14035 \end_layout
14036
14037 \end_inset
14038
14039 , etc.
14040  Suppose you wish to put your name in the upper left hand corner of each
14041  page.
14042  Simply insert the following command in the preamble: 
14043 \end_layout
14044
14045 \begin_layout Standard
14046
14047 \family typewriter
14048
14049 \backslash
14050 lhead{John Q.
14051  DocWriter}
14052 \end_layout
14053
14054 \begin_layout Standard
14055 You will now see your name in the upper left.
14056  If a field has a default entry that you would like to get rid of (often
14057  the page number appears in the central footer) simply include a command
14058  with a blank argument, e.
14059 \begin_inset space \thinspace{}
14060 \end_inset
14061
14062 g.:
14063 \end_layout
14064
14065 \begin_layout Standard
14066
14067 \family typewriter
14068
14069 \backslash
14070 cfoot{}
14071 \end_layout
14072
14073 \begin_layout Standard
14074 Let's get really fancy: lets put the section number with the word 
14075 \begin_inset Quotes eld
14076 \end_inset
14077
14078 Section
14079 \begin_inset Quotes erd
14080 \end_inset
14081
14082  (e.
14083 \begin_inset space \thinspace{}
14084 \end_inset
14085
14086 g.
14087 \begin_inset space \space{}
14088 \end_inset
14089
14090 Section 3) in the upper left, the page number (e.
14091 \begin_inset space \thinspace{}
14092 \end_inset
14093
14094 g.
14095 \begin_inset space \space{}
14096 \end_inset
14097
14098 Page 4) in the upper right, your name in the lower left, and the date in
14099  the lower right.
14100  The following commands should now appear in the preamble:
14101 \end_layout
14102
14103 \begin_layout Standard
14104
14105 \family typewriter
14106
14107 \backslash
14108 lhead{Section 
14109 \backslash
14110 thesection}
14111 \end_layout
14112
14113 \begin_layout Standard
14114
14115 \family typewriter
14116
14117 \backslash
14118 chead{}
14119 \end_layout
14120
14121 \begin_layout Standard
14122
14123 \family typewriter
14124
14125 \backslash
14126 rhead{Page 
14127 \backslash
14128 thepage}
14129 \end_layout
14130
14131 \begin_layout Standard
14132
14133 \family typewriter
14134
14135 \backslash
14136 lfoot{John Q.
14137  DocWriter}
14138 \end_layout
14139
14140 \begin_layout Standard
14141
14142 \family typewriter
14143
14144 \backslash
14145 cfoot{}
14146 \end_layout
14147
14148 \begin_layout Standard
14149
14150 \family typewriter
14151
14152 \backslash
14153 rfoot{
14154 \backslash
14155 today}
14156 \end_layout
14157
14158 \begin_layout Standard
14159 The commands 
14160 \begin_inset Flex Code
14161 status collapsed
14162
14163 \begin_layout Plain Layout
14164
14165 \backslash
14166 thesection
14167 \end_layout
14168
14169 \end_inset
14170
14171  and 
14172 \begin_inset Flex Code
14173 status collapsed
14174
14175 \begin_layout Plain Layout
14176
14177 \backslash
14178 thepage
14179 \end_layout
14180
14181 \end_inset
14182
14183  access \SpecialChar LaTeX
14184 's section and page counters, and so print out the current section
14185  and page number.
14186  
14187 \begin_inset Flex Code
14188 status collapsed
14189
14190 \begin_layout Plain Layout
14191
14192 \backslash
14193 today
14194 \end_layout
14195
14196 \end_inset
14197
14198  simply prints out today's date.
14199 \end_layout
14200
14201 \begin_layout Standard
14202 The thicknesses of the horizontal rules drawn beneath the header and above
14203  the footer can also be modified.
14204  If you don't want one of the rules, set its thickness to 0.
14205  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
14206  Use commands
14207 \family typewriter
14208  
14209 \family default
14210 like 
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215
14216 \backslash
14217 renewcommand{
14218 \backslash
14219 headrulewidth}{0.4pt}
14220 \end_layout
14221
14222 \end_inset
14223
14224  and 
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229
14230 \backslash
14231 renewcommand{
14232 \backslash
14233 footrulewidth}{0.4pt}
14234 \end_layout
14235
14236 \end_inset
14237
14238  to set the thicknesses.
14239 \end_layout
14240
14241 \begin_layout Standard
14242 You can switch the header/footer settings on and off for individual pages
14243  using commands like 
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248
14249 \backslash
14250 thispagestyle{empty}
14251 \end_layout
14252
14253 \end_inset
14254
14255
14256 \begin_inset Flex Code
14257 status collapsed
14258
14259 \begin_layout Plain Layout
14260
14261 \backslash
14262 thispagestyle{plain}
14263 \end_layout
14264
14265 \end_inset
14266
14267 , and 
14268 \begin_inset Flex Code
14269 status collapsed
14270
14271 \begin_layout Plain Layout
14272
14273 \backslash
14274 thispagestyle{fancy}
14275 \end_layout
14276
14277 \end_inset
14278
14279 .
14280  Simply insert them in the text on the page you want changed and mark them
14281  as \SpecialChar TeX
14282  code.
14283  In fact, title pages are marked as plain by default, while following pages
14284  are marked fancy when using the global fancy setting.
14285 \end_layout
14286
14287 \begin_layout Standard
14288 As a final example, it is possible to include an image in the header or
14289  footer.
14290  Suppose you want to put a company logo in the upper lefthand corner.
14291  You might try something like
14292 \end_layout
14293
14294 \begin_layout Standard
14295
14296 \family typewriter
14297
14298 \backslash
14299 lhead{
14300 \backslash
14301 resizebox{1in}{!}{
14302 \backslash
14303 includegraphics{logo.eps}}}
14304 \end_layout
14305
14306 \begin_layout Standard
14307 \noindent
14308 (you may need to preface this with 
14309 \begin_inset Flex Code
14310 status collapsed
14311
14312 \begin_layout Plain Layout
14313
14314 \backslash
14315 usepackage{graphics}
14316 \end_layout
14317
14318 \end_inset
14319
14320  if you don't include graphics elsewhere in your document).
14321 \end_layout
14322
14323 \begin_layout Section
14324 Itemize Bullet Selection
14325 \begin_inset CommandInset label
14326 LatexCommand label
14327 name "sec:bullet"
14328
14329 \end_inset
14330
14331
14332 \end_layout
14333
14334 \begin_layout Standard
14335 by
14336 \noun on
14337  Allan Rae
14338 \end_layout
14339
14340 \begin_layout Subsection
14341 Introduction
14342 \end_layout
14343
14344 \begin_layout Standard
14345 \SpecialChar LyX
14346  provides 216 bullet shapes that can be accessed from a simple dialog.
14347  Using this dialog you can easily specify what bullet shape to use at each
14348  level of an itemized list.
14349  These settings are document-wide so you won't be able to specify different
14350  sets of bullets for different paragraphs.
14351 \begin_inset Foot
14352 status collapsed
14353
14354 \begin_layout Plain Layout
14355 Well, actually you can but you'll have to do it by hand.
14356 \end_layout
14357
14358 \end_inset
14359
14360
14361 \end_layout
14362
14363 \begin_layout Subsection
14364 How it looks
14365 \end_layout
14366
14367 \begin_layout Standard
14368 Open the dialog by selecting the 
14369 \begin_inset Flex Noun
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 Document\SpecialChar menuseparator
14374 Settings
14375 \end_layout
14376
14377 \end_inset
14378
14379  menu item and then select the 
14380 \begin_inset Flex Noun
14381 status collapsed
14382
14383 \begin_layout Plain Layout
14384 Bullets
14385 \end_layout
14386
14387 \end_inset
14388
14389  tab.
14390 \end_layout
14391
14392 \begin_layout Standard
14393 The dialog provides you with a table of bullet shapes.
14394  A column of buttons on the left of the table provides access to the six
14395  different panels of bullet shapes.
14396  The row of buttons across the top is used to select which bullet depth
14397  you are changing.
14398
14399 \change_deleted 244031559 1603875981
14400  A text entry under the table shows the currently selected bullet shape's
14401  \SpecialChar LaTeX
14402  equivalent and this can be edited if desired.
14403  If you do modify the text you will also need to specify any needed packages
14404  in the \SpecialChar LaTeX
14405  preamble.
14406 \change_unchanged
14407
14408 \end_layout
14409
14410 \begin_layout Standard
14411 The six panels are divided up by the packages they require.
14412  The following table shows the mappings from button name to \SpecialChar LaTeX
14413  package.
14414 \end_layout
14415
14416 \begin_layout Standard
14417 \align center
14418 \begin_inset Tabular
14419 <lyxtabular version="3" rows="7" columns="2">
14420 <features tabularvalignment="middle">
14421 <column alignment="center" valignment="top" width="0pt">
14422 <column alignment="center" valignment="top" width="0pt">
14423 <row>
14424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14425 \begin_inset Text
14426
14427 \begin_layout Plain Layout
14428
14429 \family roman
14430 \series medium
14431 \shape up
14432 \size normal
14433 \emph off
14434 \bar no
14435 \noun off
14436 \color none
14437 Button
14438 \end_layout
14439
14440 \end_inset
14441 </cell>
14442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14443 \begin_inset Text
14444
14445 \begin_layout Plain Layout
14446
14447 \family roman
14448 \series medium
14449 \shape up
14450 \size normal
14451 \emph off
14452 \bar no
14453 \noun off
14454 \color none
14455 Packages Required
14456 \end_layout
14457
14458 \end_inset
14459 </cell>
14460 </row>
14461 <row>
14462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14463 \begin_inset Text
14464
14465 \begin_layout Plain Layout
14466
14467 \family sans
14468 \series medium
14469 \shape up
14470 \size normal
14471 \emph off
14472 \bar no
14473 \noun off
14474 \color none
14475 Standard
14476 \end_layout
14477
14478 \end_inset
14479 </cell>
14480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14481 \begin_inset Text
14482
14483 \begin_layout Plain Layout
14484
14485 \series medium
14486 \shape up
14487 \size normal
14488 \emph off
14489 \bar no
14490 \noun off
14491 \color none
14492 base \SpecialChar LaTeX
14493
14494 \end_layout
14495
14496 \end_inset
14497 </cell>
14498 </row>
14499 <row>
14500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14501 \begin_inset Text
14502
14503 \begin_layout Plain Layout
14504
14505 \family sans
14506 \series medium
14507 \shape up
14508 \size normal
14509 \emph off
14510 \bar no
14511 \noun off
14512 \color none
14513 Maths
14514 \end_layout
14515
14516 \end_inset
14517 </cell>
14518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14519 \begin_inset Text
14520
14521 \begin_layout Plain Layout
14522
14523 \family typewriter
14524 \series medium
14525 \shape up
14526 \size normal
14527 \emph off
14528 \bar no
14529 \noun off
14530 \color none
14531 amssymb.sty
14532 \end_layout
14533
14534 \end_inset
14535 </cell>
14536 </row>
14537 <row>
14538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14539 \begin_inset Text
14540
14541 \begin_layout Plain Layout
14542
14543 \family sans
14544 \series medium
14545 \shape up
14546 \size normal
14547 \emph off
14548 \bar no
14549 \noun off
14550 \color none
14551 Ding1
14552 \end_layout
14553
14554 \end_inset
14555 </cell>
14556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14557 \begin_inset Text
14558
14559 \begin_layout Plain Layout
14560
14561 \family typewriter
14562 \series medium
14563 \shape up
14564 \size normal
14565 \emph off
14566 \bar no
14567 \noun off
14568 \color none
14569 pifont.sty
14570 \end_layout
14571
14572 \end_inset
14573 </cell>
14574 </row>
14575 <row>
14576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14577 \begin_inset Text
14578
14579 \begin_layout Plain Layout
14580
14581 \family sans
14582 \series medium
14583 \shape up
14584 \size normal
14585 \emph off
14586 \bar no
14587 \noun off
14588 \color none
14589 Ding2
14590 \end_layout
14591
14592 \end_inset
14593 </cell>
14594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14595 \begin_inset Text
14596
14597 \begin_layout Plain Layout
14598
14599 \family typewriter
14600 \series medium
14601 \shape up
14602 \size normal
14603 \emph off
14604 \bar no
14605 \noun off
14606 \color none
14607 pifont.sty
14608 \end_layout
14609
14610 \end_inset
14611 </cell>
14612 </row>
14613 <row>
14614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14615 \begin_inset Text
14616
14617 \begin_layout Plain Layout
14618
14619 \family sans
14620 \series medium
14621 \shape up
14622 \size normal
14623 \emph off
14624 \bar no
14625 \noun off
14626 \color none
14627 Ding3
14628 \end_layout
14629
14630 \end_inset
14631 </cell>
14632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14633 \begin_inset Text
14634
14635 \begin_layout Plain Layout
14636
14637 \family typewriter
14638 \series medium
14639 \shape up
14640 \size normal
14641 \emph off
14642 \bar no
14643 \noun off
14644 \color none
14645 pifont.sty
14646 \end_layout
14647
14648 \end_inset
14649 </cell>
14650 </row>
14651 <row>
14652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14653 \begin_inset Text
14654
14655 \begin_layout Plain Layout
14656
14657 \family sans
14658 \series medium
14659 \shape up
14660 \size normal
14661 \emph off
14662 \bar no
14663 \noun off
14664 \color none
14665 Ding4
14666 \end_layout
14667
14668 \end_inset
14669 </cell>
14670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14671 \begin_inset Text
14672
14673 \begin_layout Plain Layout
14674
14675 \family typewriter
14676 \series medium
14677 \shape up
14678 \size normal
14679 \emph off
14680 \bar no
14681 \noun off
14682 \color none
14683 pifont.sty
14684 \end_layout
14685
14686 \end_inset
14687 </cell>
14688 </row>
14689 </lyxtabular>
14690
14691 \end_inset
14692
14693
14694 \end_layout
14695
14696 \begin_layout Standard
14697 \SpecialChar LyX
14698  doesn't stop you using bullets from packages you don't have.
14699  If you get errors from \SpecialChar LaTeX
14700  when you try to view or print the file, then it
14701  is likely you are missing a package.
14702 \begin_inset Foot
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706 \SpecialChar LyX
14707  doesn't restrict your use since you may be editing locally and exporting
14708  elsewhere.
14709 \end_layout
14710
14711 \end_inset
14712
14713
14714 \end_layout
14715
14716 \begin_layout Subsection
14717 How to use it
14718 \end_layout
14719
14720 \begin_layout Standard
14721 Select which bullet depth you want to change then select the bullet shape
14722  and size.
14723  Any changes will not be visible in \SpecialChar LyX
14724 , but are visible when viewing the document.
14725 \end_layout
14726
14727 \begin_layout Standard
14728 You can reset a bullet shape to the default simply by clicking your right
14729  mouse button on the appropriate bullet depth button.
14730 \begin_inset Foot
14731 status open
14732
14733 \begin_layout Plain Layout
14734 If you 
14735 \emph on
14736 really
14737 \emph default
14738  want to have multiple sets of paragraphs with different sets of bullets
14739  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
14740  code.
14741  The bullet selection dialog can help though because it provides you with
14742  the \SpecialChar LaTeX
14743  code for a wide range of bullet shapes.
14744  To make your own custom paragraphs you have the following options:
14745 \end_layout
14746
14747 \begin_layout Plain Layout
14748 \begin_inset ERT
14749 status open
14750
14751 \begin_layout Plain Layout
14752
14753
14754 \backslash
14755 let
14756 \backslash
14757 savelabelitemi=
14758 \backslash
14759 labelitemi
14760 \end_layout
14761
14762 \end_inset
14763
14764
14765 \end_layout
14766
14767 \begin_layout Plain Layout
14768 \begin_inset ERT
14769 status open
14770
14771 \begin_layout Plain Layout
14772
14773
14774 \backslash
14775 renewcommand
14776 \backslash
14777 labelitemi[0]{
14778 \backslash
14779 small
14780 \backslash
14781 (
14782 \backslash
14783 sharp
14784 \backslash
14785 )}
14786 \end_layout
14787
14788 \end_inset
14789
14790
14791 \end_layout
14792
14793 \begin_layout Itemize
14794 Use the \SpecialChar LaTeX
14795  command 
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800
14801 \backslash
14802 renewcommand{}{}
14803 \end_layout
14804
14805 \end_inset
14806
14807  to specify a new bullet shape for a given depth.
14808  You'll also need to save the current bullet shape so you can restore it
14809  again afterwards.
14810  In this itemized list the following \SpecialChar LaTeX
14811  code was used to change the bullet
14812  used for the first depth.
14813 \end_layout
14814
14815 \begin_deeper
14816 \begin_layout LyX-Code
14817
14818 \backslash
14819 let
14820 \backslash
14821 savelabelitemi=
14822 \backslash
14823 labelitemi 
14824 \end_layout
14825
14826 \begin_layout LyX-Code
14827
14828 \backslash
14829 renewcommand
14830 \backslash
14831 labelitemi[0]{
14832 \backslash
14833 small
14834 \backslash
14835 (
14836 \backslash
14837 sharp
14838 \backslash
14839 )}
14840 \end_layout
14841
14842 \end_deeper
14843 \begin_layout Itemize
14844 Note that the itemize depth is specified in Roman numerals as part of the
14845  
14846 \family typewriter
14847
14848 \backslash
14849 labelitem
14850 \family default
14851  command.
14852 \end_layout
14853
14854 \begin_layout Itemize
14855 \begin_inset Argument item:1
14856 status open
14857
14858 \begin_layout Plain Layout
14859 \begin_inset ERT
14860 status open
14861
14862 \begin_layout Plain Layout
14863
14864
14865 \backslash
14866 (
14867 \backslash
14868 star
14869 \backslash
14870 )
14871 \end_layout
14872
14873 \end_inset
14874
14875
14876 \end_layout
14877
14878 \end_inset
14879
14880  Specify each individual entry by starting each item with the bullet shape
14881  enclosed in a 
14882 \begin_inset Quotes eld
14883 \end_inset
14884
14885 Custom Item
14886 \begin_inset Quotes erd
14887 \end_inset
14888
14889  inset (available at 
14890 \family sans
14891 Insert\SpecialChar menuseparator
14892 Custom Item
14893 \family default
14894 ) and set as 
14895 \begin_inset Flex Noun
14896 status collapsed
14897
14898 \begin_layout Plain Layout
14899 \SpecialChar TeX
14900  Code
14901 \end_layout
14902
14903 \end_inset
14904
14905 .
14906  For example, this item was started with 
14907 \begin_inset Flex Code
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911
14912 \backslash
14913 (
14914 \backslash
14915 star
14916 \backslash
14917 )
14918 \end_layout
14919
14920 \end_inset
14921
14922 .
14923 \end_layout
14924
14925 \begin_layout Plain Layout
14926 \begin_inset ERT
14927 status open
14928
14929 \begin_layout Plain Layout
14930
14931
14932 \backslash
14933 renewcommand
14934 \backslash
14935 labelitemi[0]{
14936 \backslash
14937 savelabelitemi}
14938 \end_layout
14939
14940 \end_inset
14941
14942
14943 \end_layout
14944
14945 \begin_layout Plain Layout
14946 You'll also need to revert the labelitem back to its previous setting for
14947  the global bullet shape settings to remain in effect.
14948  The way used here was:
14949 \end_layout
14950
14951 \begin_layout LyX-Code
14952
14953 \backslash
14954 renewcommand
14955 \backslash
14956 labelitemi[0]{
14957 \backslash
14958 savelabelitemi}
14959 \end_layout
14960
14961 \end_inset
14962
14963
14964 \end_layout
14965
14966 \begin_layout Chapter
14967 \SpecialChar LyX
14968  and the World Wide Web
14969 \end_layout
14970
14971 \begin_layout Standard
14972 \SpecialChar LyX
14973  has long supported the export of documents to various web-friendly formats,
14974  such as HTML.
14975  Before version 2.0, however, HTML export was always accomplished by the
14976  use of external converters.
14977 \begin_inset Foot
14978 status collapsed
14979
14980 \begin_layout Plain Layout
14981 For details on the use of external converters with \SpecialChar LyX
14982 , see the 
14983 \emph on
14984 Converters
14985 \emph default
14986  section of the Customization manual.
14987 \end_layout
14988
14989 \end_inset
14990
14991  These fall into two large groups: there are converters that use \SpecialChar LaTeX
14992  as an
14993  intermediate format, such as 
14994 \begin_inset Flex Code
14995 status collapsed
14996
14997 \begin_layout Plain Layout
14998 htlatex
14999 \end_layout
15000
15001 \end_inset
15002
15003
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 html2latex
15009 \end_layout
15010
15011 \end_inset
15012
15013 , and 
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 plastex
15019 \end_layout
15020
15021 \end_inset
15022
15023 , relying upon \SpecialChar LyX
15024  to produce the \SpecialChar LaTeX
15025 ; and there is a converter that works directly
15026  on \SpecialChar LyX
15027  files, 
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032 e\SpecialChar LyX
15033 er
15034 \end_layout
15035
15036 \end_inset
15037
15038 .
15039  All of these have different advantages and disadvantages.
15040  
15041 \end_layout
15042
15043 \begin_layout Standard
15044 The \SpecialChar LaTeX
15045 -based converters have the advantage that, in principle, they know everythin
15046 g about the exported document that \SpecialChar LaTeX
15047  does.
15048  Such converters do not care, for example, if a certain block of code was
15049  produced by \SpecialChar LyX
15050  or was Evil Red Text.
15051  These converters know about 
15052 \begin_inset Flex Code
15053 status collapsed
15054
15055 \begin_layout Plain Layout
15056 aux
15057 \end_layout
15058
15059 \end_inset
15060
15061  files, counters, and references, and can often make use of the 
15062 \begin_inset Flex Code
15063 status collapsed
15064
15065 \begin_layout Plain Layout
15066 bbl
15067 \end_layout
15068
15069 \end_inset
15070
15071  files generated by Bib\SpecialChar TeX
15072 .
15073  On the other hand, \SpecialChar LaTeX
15074  is a very hard language to parse—it is sometimes said
15075  that only \SpecialChar TeX
15076  itself understands \SpecialChar TeX
15077 —and \SpecialChar LaTeX
15078 -based converters will often choke on
15079  what seem to be quite simple constructs; complex ones can throw them completely
15080 , and as of this writing, for example, the 
15081 \emph on
15082 Embedded Objects
15083 \emph default
15084  manual will not export with 
15085 \begin_inset Flex Code
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089 htlatex
15090 \end_layout
15091
15092 \end_inset
15093
15094 , though the others will.
15095  The other issue concerns how math is handled.
15096  These converters typically convert the formulae into little pictures that
15097  are then linked from the HTML document.
15098  Since these are actually generated by \SpecialChar LaTeX
15099 , they are accurate.
15100  But they do not scale well, and just getting them to look as if they are
15101  actually meant to be in your document—so that the font sizes seem to be
15102  roughly the same—can be a challenge.
15103 \end_layout
15104
15105 \begin_layout Standard
15106 Alex Fernandez's 
15107 \begin_inset Flex Code
15108 status collapsed
15109
15110 \begin_layout Plain Layout
15111 e\SpecialChar LyX
15112 er
15113 \end_layout
15114
15115 \end_inset
15116
15117  (
15118 \begin_inset CommandInset href
15119 LatexCommand href
15120 name "http://pinchito.es/elyxer/"
15121 target "http://pinchito.es/elyxer/"
15122 literal "false"
15123
15124 \end_inset
15125
15126 ) solves some of these problems.
15127  In particular, the formulae it produces scale perfectly, since it renders
15128  math using a combination of HTML and CSS rather than converting the formulae
15129  to images.
15130  But even moderately complex formula are rendered less well than with 
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135 htlatex
15136 \end_layout
15137
15138 \end_inset
15139
15140 ; this reflects the limitations of HTML.
15141 \begin_inset Foot
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 That said, 
15146 \begin_inset Flex Code
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150 e\SpecialChar LyX
15151 er
15152 \end_layout
15153
15154 \end_inset
15155
15156  can also use jsMath and MathJax for equations, but this setting is only
15157  available globally and requires one to have access to a server that runs
15158  the backend.
15159 \end_layout
15160
15161 \end_inset
15162
15163  More importantly (as of version 1.1.1, at least), 
15164 \begin_inset Flex Code
15165 status collapsed
15166
15167 \begin_layout Plain Layout
15168 e\SpecialChar LyX
15169 er
15170 \end_layout
15171
15172 \end_inset
15173
15174  has limited support for math macros and no support for user-defined paragraph
15175  or character styles.
15176  These limitations make 
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 e\SpecialChar LyX
15182 er
15183 \end_layout
15184
15185 \end_inset
15186
15187  unsuitable for many of the documents \SpecialChar LyX
15188  users produce.
15189  In principle, of course, these problems could be solved, but the \SpecialChar LyX
15190  developers
15191  have decided to follow a different path and have made \SpecialChar LyX
15192  itself capable of
15193  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
15194 , DocBook, and plaintext.
15195 \end_layout
15196
15197 \begin_layout Standard
15198 As of this writing, XHTML output remains under development and should probably
15199  be regarded as 
15200 \begin_inset Quotes eld
15201 \end_inset
15202
15203 experimental
15204 \begin_inset Quotes erd
15205 \end_inset
15206
15207 .
15208 \begin_inset Foot
15209 status collapsed
15210
15211 \begin_layout Plain Layout
15212 The file 
15213 \begin_inset Flex Code
15214 status collapsed
15215
15216 \begin_layout Plain Layout
15217 development/HTML/HTML.notes
15218 \end_layout
15219
15220 \end_inset
15221
15222 , which can be found in the \SpecialChar LyX
15223  source tree or 
15224 \begin_inset CommandInset href
15225 LatexCommand href
15226 name "accessed online"
15227 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
15228 literal "false"
15229
15230 \end_inset
15231
15232 , usually contains up-to-date information about the state of XHTML output.
15233  See also the list of XHTML bugs on 
15234 \begin_inset CommandInset href
15235 LatexCommand href
15236 name "the bug tracker"
15237 target "https://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"
15238 literal "false"
15239
15240 \end_inset
15241
15242 .
15243 \end_layout
15244
15245 \end_inset
15246
15247  Still, the developers have chosen this approach because it has several
15248  potential advantages over the other two.
15249 \end_layout
15250
15251 \begin_layout Standard
15252 These advantages are primarily due to the fact that the XHTML output routines,
15253  since they are part of \SpecialChar LyX
15254 , know everything \SpecialChar LyX
15255  knows about the document being
15256  exported.
15257 \begin_inset Foot
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 Another advantage is that, since these routines are internal to \SpecialChar LyX
15262 , they are
15263  immune to changes in \SpecialChar LyX
15264 's file format, or to changes in the semantics of
15265  existing insets.
15266 \end_layout
15267
15268 \end_inset
15269
15270  So they know about the table of contents (as displayed in the outline),
15271  about the counters associated with different paragraph styles, and about
15272  user-defined styles.
15273  The XHTML output routines know what \SpecialChar LyX
15274  knows about internationalization,
15275  too, so they will output 
15276 \begin_inset Quotes eld
15277 \end_inset
15278
15279 Chapter 1
15280 \begin_inset Quotes erd
15281 \end_inset
15282
15283  or 
15284 \begin_inset Quotes eld
15285 \end_inset
15286
15287
15288 \lang ngerman
15289 Kapitel
15290 \lang english
15291  1
15292 \begin_inset Quotes erd
15293 \end_inset
15294
15295 , depending upon the language in effect at the time.
15296  
15297 \end_layout
15298
15299 \begin_layout Standard
15300 Quite generally, the output routines know what \SpecialChar LyX
15301  knows about document layout,
15302  that is, about how the document is to be rendered on screen.
15303  We use this information when we output the document as XHTML.
15304  In particular, \SpecialChar LyX
15305  
15306 \emph on
15307 automatically
15308 \emph default
15309  generates CSS style information corresponding to the layout information
15310  it uses to render the document on screen: if section headings are supposed
15311  to be sans-serif and bold as seen in \SpecialChar LyX
15312 , then (by default) they will be sans-seri
15313 f and bold when viewed in a web browser, too.
15314  And this is true not just for pre-defined styles, like Section, but for
15315  any style, including user-defined styles.
15316  Indeed, the XHTML output routines make no distinction between user-defined
15317  paragraph and 
15318 \change_deleted 244031559 1603876931
15319 character
15320 \change_inserted 244031559 1603876940
15321 text
15322 \change_unchanged
15323  styles and \SpecialChar LyX
15324 's own pre-defined styles: in each case, everything \SpecialChar LyX
15325  knows about
15326  the styles is contained in the layout files.
15327  And much the same is true as regards pre-defined textual insets, such as
15328  footnotes, and various custom insets.
15329  
15330 \end_layout
15331
15332 \begin_layout Standard
15333 The result is that XHTML output can be customized and extended in exactly
15334  the same way \SpecialChar LaTeX
15335  output can be customized and extended: through layout files
15336  and modules.
15337  See chapter five of the 
15338 \emph on
15339 Customization 
15340 \emph default
15341 manual for the details.
15342 \end_layout
15343
15344 \begin_layout Standard
15345 The remainder of this chapter contains more detailed information on XHTML
15346  output, its limitations, and ways to work around those limitations.
15347 \end_layout
15348
15349 \begin_layout Section
15350 Math Output in XHTML
15351 \end_layout
15352
15353 \begin_layout Standard
15354 \SpecialChar LyX
15355  offers four choices for how math is rendered.
15356  These have various advantages and disadvantages:
15357 \end_layout
15358
15359 \begin_layout Itemize
15360 MathML
15361 \begin_inset Newline newline
15362 \end_inset
15363
15364 MathML is a dialect of XML designed specifically for mathematics on the
15365  web, and it typically renders very well in browsers that support it.
15366  The disadvantage is that not all browsers support MathML, and support is
15367  not complete even in the Gecko-based browsers, such as Firefox.
15368 \begin_inset Newline newline
15369 \end_inset
15370
15371 If \SpecialChar LyX
15372  is unable to render a formula as MathML—for example, if the formula
15373  uses the 
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 xymatrix
15379 \end_layout
15380
15381 \end_inset
15382
15383  package or ERT—then it will instead output the formula as an image.
15384  
15385 \end_layout
15386
15387 \begin_layout Itemize
15388 HTML
15389 \begin_inset Newline newline
15390 \end_inset
15391
15392 As mentioned above, 
15393 \begin_inset Flex Code
15394 status collapsed
15395
15396 \begin_layout Plain Layout
15397 elyxer
15398 \end_layout
15399
15400 \end_inset
15401
15402  outputs math as HTML, styled by CSS.
15403 \begin_inset Foot
15404 status collapsed
15405
15406 \begin_layout Plain Layout
15407 \SpecialChar LyX
15408  has borrowed some of the CSS for its HTML output from 
15409 \begin_inset Flex Code
15410 status collapsed
15411
15412 \begin_layout Plain Layout
15413 elyxer
15414 \end_layout
15415
15416 \end_inset
15417
15418 .
15419 \end_layout
15420
15421 \end_inset
15422
15423  For simple formulae, this can work quite well, though with more complicated
15424  formulae it tends to break down.
15425  Still, this method has the advantage that it is very widely supported and
15426  so it may be appropriate for documents that contain only a little, fairly
15427  simple math.
15428 \begin_inset Newline newline
15429 \end_inset
15430
15431 If Lyx is unable to render a formula as HTML—for example, if the formula
15432  uses the 
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 xymatrix
15438 \end_layout
15439
15440 \end_inset
15441
15442  package or ERT—then it will instead output the formula as an image.
15443  
15444 \end_layout
15445
15446 \begin_layout Itemize
15447 Images
15448 \begin_inset Newline newline
15449 \end_inset
15450
15451 Like 
15452 \begin_inset Flex Code
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 htlatex
15457 \end_layout
15458
15459 \end_inset
15460
15461 , \SpecialChar LyX
15462  will output formulae as images, the very same images, in fact, that are
15463  used for instant preview.
15464 \begin_inset Foot
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 Instant preview does 
15469 \emph on
15470 not 
15471 \emph default
15472 have to be on for images to be output, however.
15473 \end_layout
15474
15475 \end_inset
15476
15477  The advantage to this method is that the images are simply generated by
15478  \SpecialChar LaTeX
15479 , so they are very accurate.
15480  The disadvantage, as mentioned earlier, is that these are bitmapped images,
15481  so they do not scale terribly well, and one cannot copy them, etc.
15482 \begin_inset Newline newline
15483 \end_inset
15484
15485 The size of the images can be controlled by setting the 
15486 \begin_inset Quotes eld
15487 \end_inset
15488
15489 Math Images Scaling
15490 \begin_inset Quotes erd
15491 \end_inset
15492
15493  parameter under 
15494 \begin_inset Flex Noun
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 Document\SpecialChar menuseparator
15499 Settings\SpecialChar menuseparator
15500 Formats
15501 \end_layout
15502
15503 \end_inset
15504
15505 .
15506 \begin_inset Foot
15507 status collapsed
15508
15509 \begin_layout Plain Layout
15510 For those who want to know, this controls the resolution of the image in
15511  dots per inch and is based upon a default of 75 dpi.
15512 \end_layout
15513
15514 \end_inset
15515
15516
15517 \begin_inset Newline newline
15518 \end_inset
15519
15520 If \SpecialChar LyX
15521  for some reason fails to create an image for a formula (e.g., if a required
15522  \SpecialChar LaTeX
15523  package is not installed), then it will fall back to outputing the raw
15524  \SpecialChar LaTeX
15525 .
15526 \end_layout
15527
15528 \begin_layout Itemize
15529 \SpecialChar LaTeX
15530
15531 \begin_inset Newline newline
15532 \end_inset
15533
15534 Finally, \SpecialChar LyX
15535  will happily output math as \SpecialChar LaTeX
15536 .
15537  As well as being the output of last resort, this method can be used with
15538  such tools as 
15539 \begin_inset CommandInset href
15540 LatexCommand href
15541 name "jsMath"
15542 target "http://www.math.union.edu/~dpvc/jsMath/"
15543 literal "false"
15544
15545 \end_inset
15546
15547 , which uses JavaScript to render \SpecialChar LaTeX
15548  embedded in HTML documents.
15549  \SpecialChar LyX
15550  wraps the \SpecialChar LaTeX
15551  in either a 
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556 span
15557 \end_layout
15558
15559 \end_inset
15560
15561  (for inline formulas) or 
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 div
15567 \end_layout
15568
15569 \end_inset
15570
15571  (for displayed formulas) with 
15572 \begin_inset Flex Code
15573 status collapsed
15574
15575 \begin_layout Plain Layout
15576 class='math'
15577 \end_layout
15578
15579 \end_inset
15580
15581 , as is required for jsMath.
15582 \end_layout
15583
15584 \begin_layout Standard
15585 One of these output methods must be selected under 
15586 \begin_inset Flex Noun
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590 Document\SpecialChar menuseparator
15591 Settings\SpecialChar menuseparator
15592 Formats
15593 \end_layout
15594
15595 \end_inset
15596
15597 .
15598  By default, \SpecialChar LyX
15599  outputs MathML.
15600  This is a document-wide setting, therefore.
15601 \end_layout
15602
15603 \begin_layout Standard
15604 Eventually, \SpecialChar LyX
15605  will offer the user the option to select an alternate output
15606  method for a particular inset, say, one that isn't being rendered very
15607  well by MathML.
15608 \begin_inset Foot
15609 status collapsed
15610
15611 \begin_layout Plain Layout
15612 That said, since \SpecialChar LyX
15613  falls back to images if the inset contains ERT, then one
15614  can force output as an image by putting some harmless ERT into the math,
15615  for example: 
15616 \begin_inset Formula $a=b\relax$
15617 \end_inset
15618
15619 .
15620 \end_layout
15621
15622 \end_inset
15623
15624
15625 \end_layout
15626
15627 \begin_layout Section
15628 Bibliography and Citations
15629 \end_layout
15630
15631 \begin_layout Standard
15632 XHTML output fully supports bibliographies and citations.
15633  
15634 \end_layout
15635
15636 \begin_layout Standard
15637 Citation labels are generated by the same machinery that generates \SpecialChar LyX
15638 's on-screen
15639  labels, so the labels will look in the output much as they do in \SpecialChar LyX
15640 , though
15641  better.
15642  If you are using numerical citations, then \SpecialChar LyX
15643  will output numerical labels,
15644  such as [1] or [17], rather than simply showing the citation key in square
15645  brackets, as it does on-screen.
15646  If you are using author-year citations, then \SpecialChar LyX
15647  will add lowercase letters
15648  to the years, just as Bib\SpecialChar TeX
15649  does, if it finds more than one citation for
15650  a given author-year combination.
15651  The labels will be printed with the bibliography entries.
15652  Note that there is, at present, no way to customize the appearance of the
15653  labels, for example, to choose between square brackets and parentheses.
15654 \end_layout
15655
15656 \begin_layout Standard
15657 Bibliography output is handled by the same machinery that handles the presentati
15658 on of reference information in the citation dialog, so you will see in the
15659  XHTML output pretty much what you would see if you were to look at a given
15660  entry in the citation dialog.
15661  The formatting can be customized in your layout file or, preferably, in
15662  a module.
15663  See the 
15664 \emph on
15665 Customization
15666 \emph default
15667  manual for the details.
15668 \end_layout
15669
15670 \begin_layout Standard
15671 The main defect at present is that cross-referenced information is printed
15672  with every entry with which it is associated.
15673  So you can see things like this:
15674 \end_layout
15675
15676 \begin_layout Quote
15677 Jason Stanley, 
15678 \begin_inset Quotes eld
15679 \end_inset
15680
15681 Context and Logical Form
15682 \begin_inset Quotes erd
15683 \end_inset
15684
15685 , in 
15686 \emph on
15687 Language in Context: Selected Essays
15688 \emph default
15689  (Oxford: Oxford University Press, 2007), pp.
15690  30–68.
15691 \end_layout
15692
15693 \begin_layout Quote
15694 Jason Stanley, 
15695 \begin_inset Quotes eld
15696 \end_inset
15697
15698 Semantics in Context
15699 \begin_inset Quotes erd
15700 \end_inset
15701
15702 , in 
15703 \emph on
15704 Language in Context: Selected Essays
15705 \emph default
15706  (Oxford: Oxford University Press, 2007), pp.
15707  201–30.
15708 \end_layout
15709
15710 \begin_layout Standard
15711 This should be fixed before long.
15712 \end_layout
15713
15714 \begin_layout Standard
15715 There is no support at present for sectioned bibliographies.
15716  If you have multiple bibliographies, then \SpecialChar LyX
15717  will print the same bibliography
15718  over and over.
15719 \end_layout
15720
15721 \begin_layout Section
15722 Indexes
15723 \end_layout
15724
15725 \begin_layout Standard
15726 \SpecialChar LyX
15727  will happily export indexes as XHTML, but with certain limitations at the
15728  moment.
15729 \end_layout
15730
15731 \begin_layout Standard
15732 Index export will be most reliable when you do not attempt to use the fancy
15733  constructs that are described in the section on indexes in the 
15734 \emph on
15735 User's Guide
15736 \emph default
15737 .
15738 \begin_inset Foot
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 The main issue here is that \SpecialChar LyX
15743  itself does not really handle these.
15744  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
15745 .
15746 \end_layout
15747
15748 \end_inset
15749
15750  We'll describe how they are handled using the subsection headings from
15751  that section.
15752 \end_layout
15753
15754 \begin_layout Itemize
15755 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
15756  makes an effort to support these,
15757  but the entries must be separated by 
15758 \begin_inset Quotes eld
15759 \end_inset
15760
15761  ! 
15762 \begin_inset Quotes erd
15763 \end_inset
15764
15765 , that is, there must be spaces around the exclamation point.
15766  This is because it is otherwise too difficult to check for escaped exclamation
15767  points, ones in math, and so forth.
15768 \end_layout
15769
15770 \begin_layout Itemize
15771 Page Ranges: There is no support at all for page ranges, since these make
15772  no sense with XHMTL.
15773  Instead, you will just get two index entries, one at either end.
15774 \end_layout
15775
15776 \begin_layout Itemize
15777 Cross-referencing: There is no support for cross-referencing.
15778  If \SpecialChar LyX
15779  finds an entry containing the 
15780 \begin_inset Quotes eld
15781 \end_inset
15782
15783 |see\SpecialChar ldots
15784
15785 \begin_inset Quotes erd
15786 \end_inset
15787
15788  construct, it is just dropped, and the rest is treated as an ordinary index
15789  entry.
15790 \end_layout
15791
15792 \begin_layout Itemize
15793 Index Entry Order: \SpecialChar LyX
15794  does support attempts to fix the sorting order.
15795  It will take what is before the first `@' it finds and use that for sorting,
15796  taking what follows the first `@' to be the actual entry.
15797  At present, \SpecialChar LyX
15798  does not check for escaped `@', so do not try to index email
15799  addresses.
15800 \end_layout
15801
15802 \begin_layout Itemize
15803 Index Entry Layout: You can format entries by using the text style dialog,
15804  or by using any other method available within \SpecialChar LyX
15805  itself.
15806  There is no support for constructs like: 
15807 \begin_inset Quotes eld
15808 \end_inset
15809
15810 entry|textbf
15811 \begin_inset Quotes erd
15812 \end_inset
15813
15814 .
15815  Indeed, if \SpecialChar LyX
15816  finds a pipe symbol, `|', in an entry, it will delete it and
15817  everything that follows it.
15818 \end_layout
15819
15820 \begin_layout Itemize
15821 Multiple Indexes: There is no support for multiple indexes.
15822  Rather, all index entries will be printed as one large index.
15823  To avoid our printing several versions of the index, we print only the
15824  main index, so make sure you have one.
15825 \end_layout
15826
15827 \begin_layout Section
15828 Nomenclature and Glossary
15829 \end_layout
15830
15831 \begin_layout Standard
15832 There is at present no support for glossaries.
15833  Adding it would be fairly trivial, and welcome.
15834 \end_layout
15835
15836 \begin_layout Chapter
15837
15838 \change_inserted 1075283030 1616534180
15839 DocBook Output
15840 \end_layout
15841
15842 \begin_layout Standard
15843
15844 \change_inserted 1075283030 1616534386
15845 Apart from HTML, \SpecialChar LyX
15846  can generate documents in the DocBook XML vocabulary.
15847  With versions 2.3 and before, only select templates could be used to generate
15848  DocBook documents (only version 4).
15849  Starting with \SpecialChar LyX
15850  2.4, most \SpecialChar LyX
15851  layouts can generate valid DocBook documents (only
15852  version 5).
15853  This feature is built into \SpecialChar LyX
15854  and does not require the use of external tools.
15855 \end_layout
15856
15857 \begin_layout Standard
15858
15859 \change_inserted 1075283030 1616534437
15860 The result is that the DocBook output can be customized and extended in
15861  exactly the same way \SpecialChar LaTeX
15862  output can be customized and extended: through layout
15863  files and modules.
15864  See chapter five of the 
15865 \emph on
15866 Customization 
15867 \emph default
15868 manual for the details.
15869 \end_layout
15870
15871 \begin_layout Standard
15872
15873 \change_inserted 1075283030 1616534475
15874 Most \SpecialChar LyX
15875  features are supported with DocBook, like math output.
15876 \end_layout
15877
15878 \begin_layout Itemize
15879
15880 \change_inserted 1075283030 1616534741
15881 Math output is performed mostly in MathML (the major exception being constructio
15882 ns not supported by \SpecialChar LyX
15883 , i.e.
15884  ERTs).
15885  All formulae are also available in raw \SpecialChar TeX
15886  in the DocBook output for further
15887  processing.
15888 \end_layout
15889
15890 \begin_layout Itemize
15891
15892 \change_inserted 1075283030 1616534852
15893 Bibliographies and citations are implemented, including with an external
15894  BibTeX file.
15895  Bibliography entries are not prerendered when the detailed information
15896  are available, but rather output with the standard DocBook constructs.
15897  The external DocBook processor is expected to handle the rendering of entries.
15898 \end_layout
15899
15900 \begin_layout Itemize
15901
15902 \change_inserted 1075283030 1616534863
15903 Indexes are supported, including multiple indices.
15904  Grouping (with 
15905 \family typewriter
15906 !
15907 \family default
15908 ), page ranges, and cross-references (
15909 \family typewriter
15910 |see
15911 \family default
15912 ) are supported, with the exception of the same symbols escaped.
15913  Entry order (
15914 \family typewriter
15915 @
15916 \family default
15917 ) and layout (
15918 \family typewriter
15919 |mathbf
15920 \family default
15921 ) are not supported.
15922  There is no support for escaping of index entries.
15923 \end_layout
15924
15925 \begin_layout Itemize
15926
15927 \change_inserted 1075283030 1616534884
15928 Glossaries are implemented.
15929 \end_layout
15930
15931 \begin_layout Standard
15932
15933 \change_inserted 1075283030 1616534894
15934 Two major parameters can be set at the document level.
15935 \end_layout
15936
15937 \begin_layout Itemize
15938
15939 \change_inserted 1075283030 1616534948
15940 Format for tables: \SpecialChar LyX
15941  can generate tables either as HTML (default value) or
15942  CALS, depending on the user's requirements.
15943  Most DocBook processors accept both formats.
15944 \end_layout
15945
15946 \begin_layout Itemize
15947
15948 \change_inserted 1075283030 1616535006
15949 MathML prefix: in DocBook, MathML is included within its own name space,
15950  unlike HTML.
15951  The implication is that there must be an indication of the tags belonging
15952  to the MathML standard.
15953  Three choices are offered: 
15954 \end_layout
15955
15956 \begin_deeper
15957 \begin_layout Itemize
15958
15959 \change_inserted 1075283030 1616535044
15960 Inline: the MathML name space is defined for each formula (using the 
15961 \family typewriter
15962 xmlns
15963 \family default
15964  attribute on each formula)
15965 \end_layout
15966
15967 \begin_layout Itemize
15968
15969 \change_inserted 1075283030 1616535090
15970 With the 
15971 \family typewriter
15972 m
15973 \family default
15974  prefix (default): the MathML name space is defined at the document level
15975  (using the 
15976 \family typewriter
15977 xmlns:m
15978 \family default
15979  attribute on the root element).
15980  Each MathML is prefixed with 
15981 \family typewriter
15982 m
15983 \family default
15984 : for instance, 
15985 \family typewriter
15986 m:math
15987 \end_layout
15988
15989 \begin_layout Itemize
15990
15991 \change_inserted 1075283030 1616620405
15992 With the 
15993 \family typewriter
15994 mml
15995 \family default
15996  prefix: similar to the 
15997 \family typewriter
15998 m
15999 \family default
16000  option, but with 
16001 \family typewriter
16002 mml
16003 \end_layout
16004
16005 \begin_layout Standard
16006
16007 \change_inserted 1075283030 1616620470
16008 This option is especially useful if you want \SpecialChar LyX
16009  to match your personal style
16010  or to work with buggy software that only accepts one prefix for MathML.
16011 \change_unchanged
16012
16013 \end_layout
16014
16015 \end_deeper
16016 \begin_layout Chapter
16017 The \SpecialChar LyX
16018  Server
16019 \end_layout
16020
16021 \begin_layout Section
16022 Introduction
16023 \end_layout
16024
16025 \begin_layout Standard
16026 The `\SpecialChar LyX
16027  server' allows other programs to talk to \SpecialChar LyX
16028 , invoke \SpecialChar LyX
16029  commands, and retrieve
16030  information about the \SpecialChar LyX
16031  internal state.
16032  This is only intended for advanced users, but they should find it useful.
16033  It is by writing to the \SpecialChar LyX
16034  server, for example, that bibliography managers,
16035  such as JabRef, are able to 
16036 \begin_inset Quotes eld
16037 \end_inset
16038
16039 push
16040 \begin_inset Quotes erd
16041 \end_inset
16042
16043  citations to \SpecialChar LyX
16044 .
16045 \end_layout
16046
16047 \begin_layout Section
16048 Starting the \SpecialChar LyX
16049  Server
16050 \begin_inset CommandInset label
16051 LatexCommand label
16052 name "sec:Starting-the-Server"
16053
16054 \end_inset
16055
16056
16057 \end_layout
16058
16059 \begin_layout Standard
16060 The \SpecialChar LyX
16061  server works through the use of a pair of named pipes.
16062  These are usually located in 
16063 \begin_inset Flex Code
16064 status collapsed
16065
16066 \begin_layout Plain Layout
16067 UserDir
16068 \end_layout
16069
16070 \end_inset
16071
16072 , (except on Windows, where 
16073 \emph on
16074 local
16075 \emph default
16076  named pipes are special objects located in 
16077 \begin_inset Flex Code
16078 status collapsed
16079
16080 \begin_layout Plain Layout
16081
16082 \backslash
16083
16084 \backslash
16085 .
16086 \backslash
16087 pipe
16088 \end_layout
16089
16090 \end_inset
16091
16092 ) and have the names 
16093 \begin_inset Quotes eld
16094 \end_inset
16095
16096
16097 \begin_inset Flex Code
16098 status collapsed
16099
16100 \begin_layout Plain Layout
16101 lyxpipe.in
16102 \end_layout
16103
16104 \end_inset
16105
16106
16107 \begin_inset Quotes erd
16108 \end_inset
16109
16110  and 
16111 \begin_inset Quotes eld
16112 \end_inset
16113
16114
16115 \begin_inset Flex Code
16116 status collapsed
16117
16118 \begin_layout Plain Layout
16119 lyxpipe.out
16120 \end_layout
16121
16122 \end_inset
16123
16124
16125 \begin_inset Quotes erd
16126 \end_inset
16127
16128 .
16129  External programs write into 
16130 \begin_inset Flex Code
16131 status collapsed
16132
16133 \begin_layout Plain Layout
16134 lyxpipe.in
16135 \end_layout
16136
16137 \end_inset
16138
16139  and read back data from 
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 lyxpipe.out
16145 \end_layout
16146
16147 \end_inset
16148
16149 .
16150  The stem of the pipe names can be defined in the 
16151 \begin_inset Flex Noun
16152 status collapsed
16153
16154 \begin_layout Plain Layout
16155 Tools\SpecialChar menuseparator
16156 Preferences
16157 \end_layout
16158
16159 \end_inset
16160
16161  dialog, for example 
16162 \begin_inset Flex Code
16163 status collapsed
16164
16165 \begin_layout Plain Layout
16166 "/home/myhome/lyxpipe"
16167 \end_layout
16168
16169 \end_inset
16170
16171 , or 
16172 \begin_inset Flex Code
16173 status collapsed
16174
16175 \begin_layout Plain Layout
16176 "
16177 \backslash
16178
16179 \backslash
16180 .
16181 \backslash
16182 pipe
16183 \backslash
16184 lyxpipe"
16185 \end_layout
16186
16187 \end_inset
16188
16189  on Windows (where any working path instead of lyxpipe can be used, for
16190  example 
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 "
16196 \backslash
16197
16198 \backslash
16199 .
16200 \backslash
16201 pipe
16202 \backslash
16203 my
16204 \backslash
16205 lyx
16206 \backslash
16207 pipe"
16208 \end_layout
16209
16210 \end_inset
16211
16212  would also work).
16213  You 
16214 \emph on
16215 must
16216 \emph default
16217  configure this manually in order for the server to start.
16218 \end_layout
16219
16220 \begin_layout Standard
16221 \SpecialChar LyX
16222  will add the '
16223 \begin_inset Flex Code
16224 status collapsed
16225
16226 \begin_layout Plain Layout
16227 .in
16228 \end_layout
16229
16230 \end_inset
16231
16232 ' and '
16233 \begin_inset Flex Code
16234 status collapsed
16235
16236 \begin_layout Plain Layout
16237 .out
16238 \end_layout
16239
16240 \end_inset
16241
16242 ' to create the pipes.
16243  If one of the pipes already exists, \SpecialChar LyX
16244  will assume that another \SpecialChar LyX
16245  process
16246  is already running and will not start the server.
16247  On POSIX (Unix like) systems, if for some other reason, an unused 
16248 \begin_inset Quotes eld
16249 \end_inset
16250
16251 stale
16252 \begin_inset Quotes erd
16253 \end_inset
16254
16255  pipe is left in existence when \SpecialChar LyX
16256  closes, then \SpecialChar LyX
16257  will try to delete it.
16258  If this fails for some reason, you will need to delete the pipes manually
16259  and then restart \SpecialChar LyX
16260 .
16261  On Windows, pipes are deleted by the OS on program termination or crash,
16262  so 
16263 \begin_inset Quotes eld
16264 \end_inset
16265
16266 stale
16267 \begin_inset Quotes erd
16268 \end_inset
16269
16270  pipes should not be possible.
16271 \end_layout
16272
16273 \begin_layout Standard
16274 To have several \SpecialChar LyX
16275  processes with servers at the same time, you have to use
16276  different configurations, perhaps by using separate user directories, each
16277  with its own 
16278 \begin_inset Flex Code
16279 status collapsed
16280
16281 \begin_layout Plain Layout
16282 preferences
16283 \end_layout
16284
16285 \end_inset
16286
16287  file, for each process.
16288 \end_layout
16289
16290 \begin_layout Standard
16291 If you are developing a client program, you might find it useful to enable
16292  debugging information from the \SpecialChar LyX
16293  server.
16294  Do this by starting \SpecialChar LyX
16295  as 
16296 \begin_inset Flex Code
16297 status collapsed
16298
16299 \begin_layout Plain Layout
16300 lyx -dbg lyxserver
16301 \end_layout
16302
16303 \end_inset
16304
16305 .
16306 \end_layout
16307
16308 \begin_layout Standard
16309 You can find a complete example client written in C++ in the source distribution
16310  as 
16311 \begin_inset Flex Code
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315 development/lyxserver/server_monitor.cpp
16316 \end_layout
16317
16318 \end_inset
16319
16320 .
16321 \end_layout
16322
16323 \begin_layout Standard
16324 Another useful tool is the command-line based client found in 
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 src/client/lyxclient
16330 \end_layout
16331
16332 \end_inset
16333
16334 .
16335 \end_layout
16336
16337 \begin_layout Section
16338 Normal communication
16339 \end_layout
16340
16341 \begin_layout Standard
16342 To issue a \SpecialChar LyX
16343  call, the client writes a line of ASCII text into the input
16344  pipe.
16345  This line has the following format:
16346 \end_layout
16347
16348 \begin_layout Quote
16349 LYXCMD:
16350 \emph on
16351 clientname
16352 \emph default
16353 :
16354 \emph on
16355 function
16356 \emph default
16357 :
16358 \emph on
16359 argument
16360 \end_layout
16361
16362 \begin_layout Description
16363 clientname is a name that the client can choose arbitrarily.
16364  Its only use is that \SpecialChar LyX
16365  will echo it if it sends an answer—so a client can
16366  dispatch results from different requesters.
16367 \end_layout
16368
16369 \begin_layout Description
16370 function is the function you want \SpecialChar LyX
16371  to perform.
16372  It is the same as the commands you'd use in the minibuffer.
16373 \end_layout
16374
16375 \begin_layout Description
16376 argument is an optional argument which is meaningful only to some functions
16377  (for instance, the 
16378 \begin_inset Quotes eld
16379 \end_inset
16380
16381 self-insert
16382 \begin_inset Quotes erd
16383 \end_inset
16384
16385  LFUN will insert the argument as text at the cursor position).
16386 \end_layout
16387
16388 \begin_layout Standard
16389 The answer from \SpecialChar LyX
16390  will arrive in the output pipe and be of the form
16391 \end_layout
16392
16393 \begin_layout Quote
16394 INFO:
16395 \emph on
16396 clientname
16397 \emph default
16398 :
16399 \emph on
16400 function
16401 \emph default
16402 :
16403 \emph on
16404 data
16405 \end_layout
16406
16407 \begin_layout Standard
16408 where 
16409 \emph on
16410 clientname
16411 \emph default
16412  and 
16413 \emph on
16414 function
16415 \emph default
16416  are just echoed from the command request, while 
16417 \emph on
16418 data
16419 \emph default
16420  is more or less useful information filled according to how the command
16421  execution worked out.
16422  Some commands, such as 
16423 \begin_inset Quotes eld
16424 \end_inset
16425
16426 font-state
16427 \begin_inset Quotes erd
16428 \end_inset
16429
16430 , will return information about the internal state of \SpecialChar LyX
16431 , while other will
16432  return an empty data-response.
16433  This means that the command execution went fine.
16434 \end_layout
16435
16436 \begin_layout Standard
16437 In case of errors, the response from \SpecialChar LyX
16438  will have this form
16439 \end_layout
16440
16441 \begin_layout Quote
16442 ERROR:
16443 \emph on
16444 clientname
16445 \emph default
16446 :
16447 \emph on
16448 function
16449 \emph default
16450 :
16451 \emph on
16452 error message
16453 \end_layout
16454
16455 \begin_layout Standard
16456 where the 
16457 \emph on
16458 error message
16459 \emph default
16460  should contain an explanation of why the command failed.
16461 \end_layout
16462
16463 \begin_layout Standard
16464 Examples:
16465 \end_layout
16466
16467 \begin_layout LyX-Code
16468 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
16469 \begin_inset Newline newline
16470 \end_inset
16471
16472 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
16473 \begin_inset Newline newline
16474 \end_inset
16475
16476 read a <~/.lyxpipe.out
16477 \begin_inset Newline newline
16478 \end_inset
16479
16480 echo $a
16481 \end_layout
16482
16483 \begin_layout Subsection
16484 AppleScript (Mac OS X)
16485 \end_layout
16486
16487 \begin_layout Standard
16488 Since \SpecialChar LyX
16489  2.1, \SpecialChar LyX
16490  supports basic interactions with AppleScript for normal communicatio
16491 n through the command run.
16492  This command takes a direct argument (the 
16493 \series bold
16494 function
16495 \series default
16496  to perform) and an optional argument.
16497  It either returns the output of the function or triggers an error with
16498  the error message and code.
16499 \end_layout
16500
16501 \begin_layout Standard
16502 Example:
16503 \end_layout
16504
16505 \begin_layout LyX-Code
16506 tell application "\SpecialChar LyX
16507 "
16508 \end_layout
16509
16510 \begin_layout LyX-Code
16511   try
16512 \end_layout
16513
16514 \begin_layout LyX-Code
16515     -- Stores the current file name into f
16516 \end_layout
16517
16518 \begin_layout LyX-Code
16519     set f to (run "server-get-filename" with argument "")
16520 \end_layout
16521
16522 \begin_layout LyX-Code
16523     on error the error_message number the error_number
16524 \end_layout
16525
16526 \begin_layout LyX-Code
16527       display dialog "Error: " & the error_number & ".
16528  " ¬
16529 \end_layout
16530
16531 \begin_layout LyX-Code
16532               & the error_message buttons {"OK"} default button 1
16533 \end_layout
16534
16535 \begin_layout LyX-Code
16536   end try
16537 \end_layout
16538
16539 \begin_layout LyX-Code
16540 end tell
16541 \end_layout
16542
16543 \begin_layout Section
16544 Notification
16545 \end_layout
16546
16547 \begin_layout Standard
16548 \SpecialChar LyX
16549  can notify clients of events going on asynchronously.
16550  Currently it will only do this if the user binds a key sequence with the
16551  function 
16552 \begin_inset Quotes eld
16553 \end_inset
16554
16555 notify
16556 \begin_inset Quotes erd
16557 \end_inset
16558
16559 .
16560  The format of the string \SpecialChar LyX
16561  sends is as follows:
16562 \end_layout
16563
16564 \begin_layout Quote
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 NOTIFY:
16570 \end_layout
16571
16572 \end_inset
16573
16574
16575 \emph on
16576 key-sequence
16577 \end_layout
16578
16579 \begin_layout Standard
16580 where 
16581 \emph on
16582 key-sequence
16583 \emph default
16584  is the printed representation of the key sequence that was actually typed
16585  by the user.
16586 \end_layout
16587
16588 \begin_layout Standard
16589 This mechanism can be used to extend \SpecialChar LyX
16590 's command set and implement macros.
16591  Bind some key sequence to 
16592 \begin_inset Quotes eld
16593 \end_inset
16594
16595 notify
16596 \begin_inset Quotes erd
16597 \end_inset
16598
16599 .
16600  Then start a client that listens on the output pipe, dispatches the command
16601  according to the sequence, and starts a function that may use \SpecialChar LyX
16602  calls and
16603  \SpecialChar LyX
16604  requests to issue a command or a series of commands to \SpecialChar LyX
16605 .
16606 \end_layout
16607
16608 \begin_layout Section
16609 The simple \SpecialChar LyX
16610  Server Protocol
16611 \end_layout
16612
16613 \begin_layout Standard
16614 \SpecialChar LyX
16615  implements a simple protocol that can be used for session management.
16616  All messages are of the form
16617 \end_layout
16618
16619 \begin_layout Quote
16620 LYXSRV:
16621 \emph on
16622 clientname
16623 \emph default
16624 :
16625 \emph on
16626 protocol message
16627 \end_layout
16628
16629 \begin_layout Standard
16630 where 
16631 \emph on
16632 protocol message
16633 \emph default
16634  can be 
16635 \begin_inset Quotes eld
16636 \end_inset
16637
16638 hello
16639 \begin_inset Quotes erd
16640 \end_inset
16641
16642  or 
16643 \begin_inset Quotes eld
16644 \end_inset
16645
16646 bye
16647 \begin_inset Quotes erd
16648 \end_inset
16649
16650 .
16651  If 
16652 \begin_inset Quotes eld
16653 \end_inset
16654
16655 hello
16656 \begin_inset Quotes erd
16657 \end_inset
16658
16659  is received from a client, \SpecialChar LyX
16660  will report back to inform the client that
16661  it's listening to it's messages, while 
16662 \begin_inset Quotes eld
16663 \end_inset
16664
16665 bye
16666 \begin_inset Quotes erd
16667 \end_inset
16668
16669  sent from \SpecialChar LyX
16670  will inform clients that \SpecialChar LyX
16671  is closing.
16672 \end_layout
16673
16674 \begin_layout Section
16675 Reverse DVI/PDF search
16676 \end_layout
16677
16678 \begin_layout Standard
16679 Some DVI/PDF viewers
16680 \begin_inset Foot
16681 status collapsed
16682
16683 \begin_layout Plain Layout
16684 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
16685  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
16686 \end_layout
16687
16688 \end_inset
16689
16690  provide 
16691 \emph on
16692 reverse search
16693 \emph default
16694  facility (also called 
16695 \emph on
16696 inverse search
16697 \emph default
16698 ).
16699  This means that you can tell \SpecialChar LyX
16700  to put the cursor to a specific line in the
16701  document by clicking at the respective position in the DVI/PDF output.
16702  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
16703 .
16704  This is done via the \SpecialChar LyX
16705  server either by using the named pipe (
16706 \emph on
16707 lyxpipe
16708 \emph default
16709 ), or the UNIX domain socket (
16710 \emph on
16711 lyxsocket
16712 \emph default
16713 ) that \SpecialChar LyX
16714  creates in its temporary directory (this is the way the 
16715 \begin_inset Flex Code
16716 status collapsed
16717
16718 \begin_layout Plain Layout
16719 lyxclient
16720 \end_layout
16721
16722 \end_inset
16723
16724  program communicates with \SpecialChar LyX
16725 ).
16726  In some cases, you need a helper script that mediates between the viewer
16727  and \SpecialChar LyX
16728 , in others, the viewer can communicate with \SpecialChar LyX
16729  directly.
16730  This depends on the selected viewer and on your operating system.
16731  The same applies to the way viewers need to be configured and the way the
16732  reverse search is actually performed.
16733  In what follows, we will thus describe how to setup reverse search for
16734  specific viewers.
16735  Before we turn to this, though, we will explain what needs to be done generally
16736  to enable reverse search in the DVI/PDF output.
16737 \end_layout
16738
16739 \begin_layout Subsection
16740 Automatic setup
16741 \begin_inset CommandInset label
16742 LatexCommand label
16743 name "subsec:rev-search"
16744
16745 \end_inset
16746
16747
16748 \end_layout
16749
16750 \begin_layout Standard
16751 In most cases \SpecialChar LyX
16752  will do the work for you by pressing the following button
16753  in the toolbar: 
16754 \begin_inset Info
16755 type  "icon"
16756 arg   "buffer-toggle-output-sync"
16757 \end_inset
16758
16759 .
16760  Alternatively, you can also enable the feature by checking 
16761 \family sans
16762 Synchronize with Output
16763 \family default
16764  in 
16765 \begin_inset Flex Noun
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769 Document\SpecialChar menuseparator
16770 Settings\SpecialChar menuseparator
16771 Formats
16772 \end_layout
16773
16774 \end_inset
16775
16776 .
16777  In such a case \SpecialChar LyX
16778  will automatically insert the necessary Sync\SpecialChar TeX
16779  macro (for
16780  PDF) or load the srcltx package (for DVI) respectively.
16781  This option can be easily reached also on 
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 View/Update
16787 \end_layout
16788
16789 \end_inset
16790
16791  Toolbar.
16792 \end_layout
16793
16794 \begin_layout Standard
16795 If you need a different setting, you can select or input a custom macro
16796  from the drop down box just below 
16797 \begin_inset Flex Noun
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 Document\SpecialChar menuseparator
16802 Settings\SpecialChar menuseparator
16803 Output\SpecialChar menuseparator
16804 Synchronize with Output
16805 \end_layout
16806
16807 \end_inset
16808
16809 .
16810 \end_layout
16811
16812 \begin_layout Standard
16813 Note that the method 
16814 \begin_inset Flex Code
16815 status collapsed
16816
16817 \begin_layout Plain Layout
16818
16819 \backslash
16820 synctex=1
16821 \end_layout
16822
16823 \end_inset
16824
16825  enables gzip compression.
16826  If your viewer does not support it, you should instead use 
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831
16832 \backslash
16833 synctex=-1
16834 \end_layout
16835
16836 \end_inset
16837
16838 .
16839 \end_layout
16840
16841 \begin_layout Standard
16842 Please also note that including the 
16843 \begin_inset Flex Code
16844 status collapsed
16845
16846 \begin_layout Plain Layout
16847 srcltx
16848 \end_layout
16849
16850 \end_inset
16851
16852  package or 
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 src-specials
16858 \end_layout
16859
16860 \end_inset
16861
16862  sometimes has an undesired impact on the typesetting.
16863  Thus, you should switch output synchronization off for the final typesetting
16864  if you use the 
16865 \begin_inset Flex Code
16866 status collapsed
16867
16868 \begin_layout Plain Layout
16869 srcltx
16870 \end_layout
16871
16872 \end_inset
16873
16874  package or 
16875 \begin_inset Flex Code
16876 status collapsed
16877
16878 \begin_layout Plain Layout
16879 src-specials
16880 \end_layout
16881
16882 \end_inset
16883
16884 .
16885  
16886 \end_layout
16887
16888 \begin_layout Standard
16889 In case you need some more special settings that are not covered by the
16890  automatic settings, read the next section about how to set up output synchroniz
16891 ation manually.
16892  If the automatic setup suits your needs, you can readily jump to section
16893 \begin_inset space ~
16894 \end_inset
16895
16896
16897 \begin_inset CommandInset ref
16898 LatexCommand ref
16899 reference "subsec:configuring-viewers"
16900
16901 \end_inset
16902
16903 , where the necessary configuration steps in your viewer – needed both with
16904  the automatic and the manual setup – are described.
16905 \end_layout
16906
16907 \begin_layout Subsection
16908 Manual setup
16909 \end_layout
16910
16911 \begin_layout Standard
16912 \SpecialChar LaTeX
16913  provides several different methods for reverse search.
16914  Some are built-in in the 
16915 \begin_inset Flex Code
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919 latex/pdflatex
16920 \end_layout
16921
16922 \end_inset
16923
16924  program, some are provided by external packages.
16925  Your choice depends on whether your \SpecialChar LaTeX
16926  distribution already provides a given
16927  method (the built-in methods are rather new) and whether your viewer can
16928  cope with it.
16929  The available methods are described in the following.
16930 \end_layout
16931
16932 \begin_layout Subsubsection*
16933 Built-in DVI-search via src-specials (DVI only) 
16934 \end_layout
16935
16936 \begin_layout Standard
16937 This method provides the DVI file with the necessary information for reverse
16938  search.
16939  It is available in \SpecialChar LaTeX
16940  since quite some time (any somewhat recent \SpecialChar LaTeX
16941  distribution
16942  should include it), and it works reliably.
16943  To enable it, change the 
16944 \begin_inset Flex Noun
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 La
16949 \family sans
16950 TeX
16951 \family default
16952  (plain)->DVI
16953 \end_layout
16954
16955 \end_inset
16956
16957  or 
16958 \begin_inset Flex Noun
16959 status collapsed
16960
16961 \begin_layout Plain Layout
16962 La
16963 \family sans
16964 TeX
16965 \family default
16966  (plain)->DraftDVI
16967 \end_layout
16968
16969 \end_inset
16970
16971  converter in 
16972 \begin_inset Flex Noun
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 Preferences\SpecialChar menuseparator
16977 File Handling\SpecialChar menuseparator
16978 Converters
16979 \end_layout
16980
16981 \end_inset
16982
16983  to 
16984 \begin_inset Flex Code
16985 status collapsed
16986
16987 \begin_layout Plain Layout
16988 latex -src-specials $$i
16989 \end_layout
16990
16991 \end_inset
16992
16993 .
16994  If this doesn't work, check if your \SpecialChar TeX
16995  engine needs different options (the
16996  syntax might differ in some distributions).
16997 \end_layout
16998
16999 \begin_layout Subsubsection*
17000 External Packages (PDFSync and scrltx) 
17001 \end_layout
17002
17003 \begin_layout Standard
17004 The packages 
17005 \emph on
17006 pdfsync
17007 \emph default
17008  and 
17009 \emph on
17010 scrltx
17011 \emph default
17012  provide reverse search facility for PDF output (via pdflatex) and DVI output,
17013  respectively.
17014  In order to enable it, load the packages in the \SpecialChar LyX
17015  preamble: 
17016 \end_layout
17017
17018 \begin_layout Itemize
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023
17024 \backslash
17025 usepackage{pdfsync}
17026 \end_layout
17027
17028 \end_inset
17029
17030  for reverse PDF search,
17031 \end_layout
17032
17033 \begin_layout Itemize
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038
17039 \backslash
17040 usepackage[active]{srcltx}
17041 \end_layout
17042
17043 \end_inset
17044
17045  for reverse DVI search.
17046 \end_layout
17047
17048 \begin_layout Standard
17049 If you want to be able to perform both DVI and PDF reverse searches, you
17050  can also insert in the preamble the following lines
17051 \end_layout
17052
17053 \begin_layout LyX-Code
17054
17055 \backslash
17056 usepackage{ifpdf}
17057 \begin_inset Newline newline
17058 \end_inset
17059
17060
17061 \backslash
17062 ifpdf
17063 \begin_inset Newline newline
17064 \end_inset
17065
17066   
17067 \backslash
17068 usepackage{pdfsync}
17069 \begin_inset Newline newline
17070 \end_inset
17071
17072
17073 \backslash
17074 else
17075 \begin_inset Newline newline
17076 \end_inset
17077
17078   
17079 \backslash
17080 usepackage[active]{srcltx}
17081 \begin_inset Newline newline
17082 \end_inset
17083
17084
17085 \backslash
17086 fi
17087 \end_layout
17088
17089 \begin_layout Standard
17090 This way, you can preview the file as either DVI or PDF (pdflatex) and the
17091  right package will be used.
17092 \end_layout
17093
17094 \begin_layout Standard
17095 Note that PDFSync might affect the output layout of your document.
17096  It is therefore advised to disable PDFsync for final documents.
17097 \end_layout
17098
17099 \begin_layout Subsubsection*
17100 Built-in reverse search via Sync\SpecialChar TeX
17101  (DVI and PDF) 
17102 \end_layout
17103
17104 \begin_layout Standard
17105 Recent versions of 
17106 \begin_inset Flex Code
17107 status collapsed
17108
17109 \begin_layout Plain Layout
17110 (pdf)latex
17111 \end_layout
17112
17113 \end_inset
17114
17115  have built-in support for both PDF and DVI reverse search.
17116  This so-called 
17117 \emph on
17118 Sync\SpecialChar TeX
17119
17120 \emph default
17121  facility is basically the result of the integration of the PDFSync package
17122  to the pdftex program and its merge with the 
17123 \emph on
17124 scr-specials
17125 \emph default
17126  approach.
17127  You need at least \SpecialChar TeX
17128 Live 2008 or a recent Mik\SpecialChar TeX
17129  distribution in order to use
17130  it.
17131 \begin_inset Foot
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135 For some reason, Mik\SpecialChar TeX
17136  does not understand/obey the command \SpecialChar LyX
17137  inserts into
17138  the preamble when you check the "Enable Forward/Reverse Search" button
17139  in the toolbar and does not generate the necessary info.
17140 \end_layout
17141
17142 \begin_layout Plain Layout
17143 The generation of the required info can be forced by changing the converter
17144  "\SpecialChar LaTeX
17145  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
17146  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
17147  the -synctex=1 switch).
17148 \end_layout
17149
17150 \end_inset
17151
17152  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
17153  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
17154  already provide Sync\SpecialChar TeX
17155  support.
17156 \end_layout
17157
17158 \begin_layout Standard
17159 To enable Sync\SpecialChar TeX
17160  for DVI output, change the 
17161 \begin_inset Flex Noun
17162 status collapsed
17163
17164 \begin_layout Plain Layout
17165 La
17166 \family sans
17167 TeX
17168 \family default
17169  (plain) -> DVI
17170 \end_layout
17171
17172 \end_inset
17173
17174  or 
17175 \begin_inset Flex Noun
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 La
17180 \family sans
17181 TeX
17182 \family default
17183  (plain) -> DraftDVI
17184 \end_layout
17185
17186 \end_inset
17187
17188  converter in 
17189 \begin_inset Flex Noun
17190 status collapsed
17191
17192 \begin_layout Plain Layout
17193 Preferences\SpecialChar menuseparator
17194 File Handling\SpecialChar menuseparator
17195 Converters
17196 \end_layout
17197
17198 \end_inset
17199
17200  to 
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 latex -synctex=1 $$i
17206 \end_layout
17207
17208 \end_inset
17209
17210 , and for PDF output, change the 
17211 \begin_inset Flex Noun
17212 status collapsed
17213
17214 \begin_layout Plain Layout
17215 La
17216 \family sans
17217 TeX
17218 \family default
17219  (pdflatex) -> PDF (pdflatex)
17220 \end_layout
17221
17222 \end_inset
17223
17224  converter to 
17225 \begin_inset Flex Code
17226 status collapsed
17227
17228 \begin_layout Plain Layout
17229 pdflatex -synctex=1 $$i
17230 \end_layout
17231
17232 \end_inset
17233
17234 .
17235  Should your viewer not be considered in the following description, or in
17236  case of missing success, please check the documentation of your viewer
17237  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
17238 .
17239 \begin_inset Foot
17240 status collapsed
17241
17242 \begin_layout Plain Layout
17243 Note that the option 
17244 \begin_inset Flex Code
17245 status collapsed
17246
17247 \begin_layout Plain Layout
17248 -synctex=1
17249 \end_layout
17250
17251 \end_inset
17252
17253  option enables gzip compression.
17254  If your viewer does not support it, you should instead use 
17255 \begin_inset Flex Code
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259 -synctex=-1
17260 \end_layout
17261
17262 \end_inset
17263
17264 .
17265 \end_layout
17266
17267 \end_inset
17268
17269
17270 \end_layout
17271
17272 \begin_layout Subsection
17273 Configuring and using specific viewers
17274 \begin_inset CommandInset label
17275 LatexCommand label
17276 name "subsec:configuring-viewers"
17277
17278 \end_inset
17279
17280
17281 \end_layout
17282
17283 \begin_layout Subsubsection*
17284 Xdvi (all platforms)
17285 \end_layout
17286
17287 \begin_layout Standard
17288 If you use 
17289 \begin_inset Flex Code
17290 status collapsed
17291
17292 \begin_layout Plain Layout
17293 xdvi
17294 \end_layout
17295
17296 \end_inset
17297
17298 , you don't need to do anything else for performing a reverse DVI search,
17299  as \SpecialChar LyX
17300  already provides the necessary hooks for automatically using the 
17301 \begin_inset Flex Code
17302 status collapsed
17303
17304 \begin_layout Plain Layout
17305 lyxclient
17306 \end_layout
17307
17308 \end_inset
17309
17310  program.
17311  Just setup your document as described above (reverse search is triggered
17312  by Ctrl-click or Alt-click on Mac OSX, respectively).
17313 \end_layout
17314
17315 \begin_layout Standard
17316 However, if for whatever reason you want to use the named pipe instead of
17317  the socket for communicating with \SpecialChar LyX
17318 , simply change the DVI viewer in 
17319 \begin_inset Flex Noun
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323 Preferences\SpecialChar menuseparator
17324 File Handling\SpecialChar menuseparator
17325 File formats
17326 \end_layout
17327
17328 \end_inset
17329
17330  to
17331 \begin_inset Foot
17332 status collapsed
17333
17334 \begin_layout Plain Layout
17335 On Mac OSX you have to use 
17336 \begin_inset Flex Code
17337 status collapsed
17338
17339 \begin_layout Plain Layout
17340 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
17341 \end_layout
17342
17343 \end_inset
17344
17345
17346 \end_layout
17347
17348 \end_inset
17349
17350  
17351 \begin_inset Flex Code
17352 status collapsed
17353
17354 \begin_layout Plain Layout
17355 xdvi -editor "lyxeditor.sh %f %l"
17356 \end_layout
17357
17358 \end_inset
17359
17360 , where 
17361 \begin_inset Flex Code
17362 status collapsed
17363
17364 \begin_layout Plain Layout
17365 lyxeditor.sh
17366 \end_layout
17367
17368 \end_inset
17369
17370  is a suitable script.
17371  For example, a minimal shell script is the following one:
17372 \end_layout
17373
17374 \begin_layout LyX-Code
17375 #!/bin/sh
17376 \begin_inset Newline newline
17377 \end_inset
17378
17379 LYXPIPE="/path/to/lyxpipe"
17380 \begin_inset Newline newline
17381 \end_inset
17382
17383 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
17384 \begin_inset Newline newline
17385 \end_inset
17386
17387 echo "$COMMAND" > "${LYXPIPE}".in || exit
17388 \begin_inset Newline newline
17389 \end_inset
17390
17391 read TMP < "${LYXPIPE}".out || exit
17392 \end_layout
17393
17394 \begin_layout Standard
17395 where 
17396 \begin_inset Flex Code
17397 status collapsed
17398
17399 \begin_layout Plain Layout
17400 /path/to/lyxpipe
17401 \end_layout
17402
17403 \end_inset
17404
17405  is the LyXServer pipe path specified in 
17406 \begin_inset Flex Noun
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 Preferences\SpecialChar menuseparator
17411 Paths
17412 \end_layout
17413
17414 \end_inset
17415
17416 .
17417 \begin_inset Foot
17418 status collapsed
17419
17420 \begin_layout Plain Layout
17421 In the 
17422 \begin_inset Flex Code
17423 status collapsed
17424
17425 \begin_layout Plain Layout
17426 development/tools
17427 \end_layout
17428
17429 \end_inset
17430
17431  folder of a source distribution you can find a 
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 lyxeditor
17437 \end_layout
17438
17439 \end_inset
17440
17441  script which is able to locate the 
17442 \emph on
17443 lyxpipe
17444 \emph default
17445  based on your preferences.
17446 \end_layout
17447
17448 \end_inset
17449
17450
17451 \end_layout
17452
17453 \begin_layout Subsubsection*
17454 MacDviX (Mac OSX)
17455 \end_layout
17456
17457 \begin_layout Standard
17458 At the end of 
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 /Applications/MacDviX_Folder/calleditor.script
17464 \end_layout
17465
17466 \end_inset
17467
17468 , add the following lines:
17469 \end_layout
17470
17471 \begin_layout LyX-Code
17472 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
17473 \begin_inset Newline newline
17474 \end_inset
17475
17476 exit 1
17477 \end_layout
17478
17479 \begin_layout Standard
17480 Modify the lines accordingly if you install \SpecialChar LyX
17481  somewhere else than in the
17482  Applications folder.
17483 \end_layout
17484
17485 \begin_layout Standard
17486 Reverse search is triggered by Alt-click (OPTION-click).
17487 \end_layout
17488
17489 \begin_layout Subsubsection*
17490 Skim (Mac OSX)
17491 \end_layout
17492
17493 \begin_layout Standard
17494 Enter 
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499 open -a Skim.app $$i
17500 \end_layout
17501
17502 \end_inset
17503
17504  to the viewer setting in 
17505 \begin_inset Flex Noun
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 Preferences\SpecialChar menuseparator
17510 File Handling\SpecialChar menuseparator
17511 File formats\SpecialChar menuseparator
17512 PDF (pdflatex)
17513 \end_layout
17514
17515 \end_inset
17516
17517 , and then in 
17518 \begin_inset Flex Noun
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 Skim\SpecialChar menuseparator
17523 Preferences\SpecialChar menuseparator
17524 Sync
17525 \end_layout
17526
17527 \end_inset
17528
17529  choose 
17530 \begin_inset Flex Noun
17531 status collapsed
17532
17533 \begin_layout Plain Layout
17534 custom
17535 \end_layout
17536
17537 \end_inset
17538
17539  preset and enter command 
17540 \begin_inset Flex Noun
17541 status collapsed
17542
17543 \begin_layout Plain Layout
17544 /Applications/\SpecialChar LyX
17545 .app/Contents/MacOS/lyxeditor
17546 \end_layout
17547
17548 \end_inset
17549
17550 .
17551 \end_layout
17552
17553 \begin_layout Standard
17554 Reverse search is triggered by COMMAND-SHIFT-click
17555 \end_layout
17556
17557 \begin_layout Subsubsection*
17558 Evince (GNOME)
17559 \end_layout
17560
17561 \begin_layout Standard
17562 Reverse search with evince does not work out of the box, but it can be achieved
17563  by means of some third party helper scripts.
17564  Please refer to 
17565 \begin_inset CommandInset href
17566 LatexCommand href
17567 target "https://wiki.lyx.org/LyX/SyncTeX"
17568 literal "false"
17569
17570 \end_inset
17571
17572  for details.
17573 \end_layout
17574
17575 \begin_layout Subsubsection*
17576 Okular (KDE)
17577 \end_layout
17578
17579 \begin_layout Standard
17580 Go to 
17581 \begin_inset Flex Noun
17582 status collapsed
17583
17584 \begin_layout Plain Layout
17585 Settings\SpecialChar menuseparator
17586 Configure Okular\SpecialChar menuseparator
17587 Editor
17588 \end_layout
17589
17590 \end_inset
17591
17592  and select LyX
17593 \begin_inset Quotes erd
17594 \end_inset
17595
17596  as editor.
17597  This inserts the appropriate command (
17598 \begin_inset Flex Code
17599 status collapsed
17600
17601 \begin_layout Plain Layout
17602 lyxclient -g %f %l
17603 \end_layout
17604
17605 \end_inset
17606
17607 ).
17608 \end_layout
17609
17610 \begin_layout Standard
17611 Reverse search is triggered by SHIFT-click.
17612
17613 \change_inserted -712698321 1578211026
17614  Note that this only works if Okular is in 
17615 \begin_inset Quotes eld
17616 \end_inset
17617
17618 Browse
17619 \begin_inset Quotes erd
17620 \end_inset
17621
17622  mode (i.
17623 \begin_inset space \thinspace{}
17624 \end_inset
17625
17626 e., the hand symbol is clicked).
17627 \change_unchanged
17628
17629 \end_layout
17630
17631 \begin_layout Subsubsection*
17632 Qpdfview (Unix)
17633 \end_layout
17634
17635 \begin_layout Standard
17636 Qpdfview supports Sync\SpecialChar TeX
17637  since version 0.3.5.
17638  Go to 
17639 \begin_inset Flex Noun
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643 Edit\SpecialChar menuseparator
17644 Settings\SpecialChar menuseparator
17645 Behavior
17646 \end_layout
17647
17648 \end_inset
17649
17650 , click on the input field of the 
17651 \begin_inset Quotes eld
17652 \end_inset
17653
17654 Source editor
17655 \begin_inset Quotes erd
17656 \end_inset
17657
17658  item and add the command 
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 lyxclient -g %1 %2
17664 \end_layout
17665
17666 \end_inset
17667
17668 .
17669 \end_layout
17670
17671 \begin_layout Standard
17672 Reverse search is triggered by double-click or, in more recent versions,
17673  by context menu.
17674 \end_layout
17675
17676 \begin_layout Subsubsection*
17677 YAP (Windows)
17678 \end_layout
17679
17680 \begin_layout Standard
17681 Launch yap, choose its 
17682 \begin_inset Flex Noun
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 View\SpecialChar menuseparator
17687 Options
17688 \end_layout
17689
17690 \end_inset
17691
17692  menu and select the 
17693 \begin_inset Quotes eld
17694 \end_inset
17695
17696 Inverse DVI Search
17697 \begin_inset Quotes erd
17698 \end_inset
17699
17700  tab.
17701  Click on the 
17702 \begin_inset Quotes eld
17703 \end_inset
17704
17705 New\SpecialChar ldots
17706
17707 \begin_inset Quotes erd
17708 \end_inset
17709
17710  button and, in the window that opens, enter 
17711 \begin_inset Quotes eld
17712 \end_inset
17713
17714 \SpecialChar LyX
17715  Editor
17716 \begin_inset Quotes erd
17717 \end_inset
17718
17719  (or any other name you like) in the 
17720 \begin_inset Quotes eld
17721 \end_inset
17722
17723 Name:
17724 \begin_inset Quotes erd
17725 \end_inset
17726
17727  field.
17728  Now click on the button labeled 
17729 \begin_inset Quotes eld
17730 \end_inset
17731
17732 \SpecialChar ldots
17733
17734 \begin_inset Quotes erd
17735 \end_inset
17736
17737  to open a file dialog and navigate to the directory containing the batch
17738  file 
17739 \begin_inset Flex Code
17740 status collapsed
17741
17742 \begin_layout Plain Layout
17743 lyxeditor.bat
17744 \end_layout
17745
17746 \end_inset
17747
17748  (see below).
17749  Select 
17750 \begin_inset Flex Code
17751 status collapsed
17752
17753 \begin_layout Plain Layout
17754 lyxeditor.bat
17755 \end_layout
17756
17757 \end_inset
17758
17759  and then specify the program arguments as 
17760 \begin_inset Flex Code
17761 status collapsed
17762
17763 \begin_layout Plain Layout
17764 %f %l
17765 \end_layout
17766
17767 \end_inset
17768
17769 .
17770  The 
17771 \begin_inset Flex Code
17772 status collapsed
17773
17774 \begin_layout Plain Layout
17775 lyxeditor.bat
17776 \end_layout
17777
17778 \end_inset
17779
17780  wrapper is used for communicating with \SpecialChar LyX
17781  through the 
17782 \emph on
17783 lyxpipe
17784 \emph default
17785  and is as follows:
17786 \end_layout
17787
17788 \begin_layout LyX-Code
17789 @echo off
17790 \begin_inset Newline newline
17791 \end_inset
17792
17793 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
17794 \backslash
17795
17796 \backslash
17797 .
17798 \backslash
17799 pipe
17800 \backslash
17801 lyxpipe.in
17802 \begin_inset Newline newline
17803 \end_inset
17804
17805 type 
17806 \backslash
17807
17808 \backslash
17809 .
17810 \backslash
17811 pipe
17812 \backslash
17813 lyxpipe.out
17814 \end_layout
17815
17816 \begin_layout Standard
17817 Make sure that the \SpecialChar LyX
17818 Server pipe path you specified in \SpecialChar LyX
17819  is 
17820 \begin_inset Flex Code
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824
17825 \backslash
17826
17827 \backslash
17828 .
17829 \backslash
17830 pipe
17831 \backslash
17832 lyxpipe
17833 \end_layout
17834
17835 \end_inset
17836
17837 , otherwise change the 
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 lyxeditor.bat
17843 \end_layout
17844
17845 \end_inset
17846
17847  wrapper accordingly.
17848 \end_layout
17849
17850 \begin_layout Standard
17851 In yap, reverse search is triggered by double-click.
17852 \end_layout
17853
17854 \begin_layout Subsubsection*
17855 SumatraPDF (Windows)
17856 \end_layout
17857
17858 \begin_layout Standard
17859 In order to use SumatraPDF for inverse search, enter 
17860 \begin_inset Flex Code
17861 status collapsed
17862
17863 \begin_layout Plain Layout
17864 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
17865 \end_layout
17866
17867 \end_inset
17868
17869  in the viewer setting in 
17870 \begin_inset Flex Noun
17871 status collapsed
17872
17873 \begin_layout Plain Layout
17874 Preferences\SpecialChar menuseparator
17875 File Handling\SpecialChar menuseparator
17876 File formats\SpecialChar menuseparator
17877 PDF (pdflatex)
17878 \end_layout
17879
17880 \end_inset
17881
17882 , where 
17883 \begin_inset Flex Code
17884 status collapsed
17885
17886 \begin_layout Plain Layout
17887 lyxeditor.bat
17888 \end_layout
17889
17890 \end_inset
17891
17892  is the previous wrapper.
17893  If SumatraPDF.exe is not in your command PATH, use its full file name.
17894 \end_layout
17895
17896 \begin_layout Standard
17897 Reverse search is triggered by double-click.
17898 \end_layout
17899
17900 \begin_layout Subsubsection*
17901 YAP (Cygwin)
17902 \end_layout
17903
17904 \begin_layout Standard
17905 First of all, make sure that yap is your default DVI viewer in the Windows
17906  environment, then launch it, choose its 
17907 \begin_inset Flex Noun
17908 status collapsed
17909
17910 \begin_layout Plain Layout
17911 View\SpecialChar menuseparator
17912 Options
17913 \end_layout
17914
17915 \end_inset
17916
17917  menu and select the 
17918 \begin_inset Quotes eld
17919 \end_inset
17920
17921 Inverse DVI Search
17922 \begin_inset Quotes erd
17923 \end_inset
17924
17925  tab.
17926  Click on the 
17927 \begin_inset Quotes eld
17928 \end_inset
17929
17930 New\SpecialChar ldots
17931
17932 \begin_inset Quotes erd
17933 \end_inset
17934
17935  button and, in the window that opens, enter 
17936 \begin_inset Quotes eld
17937 \end_inset
17938
17939 \SpecialChar LyX
17940  Editor
17941 \begin_inset Quotes erd
17942 \end_inset
17943
17944  (or any other name you like) in the 
17945 \begin_inset Quotes eld
17946 \end_inset
17947
17948 Name:
17949 \begin_inset Quotes erd
17950 \end_inset
17951
17952  field.
17953  Now click on the button labeled 
17954 \begin_inset Quotes eld
17955 \end_inset
17956
17957 \SpecialChar ldots
17958
17959 \begin_inset Quotes erd
17960 \end_inset
17961
17962  to open a file dialog and navigate to the directory containing the 
17963 \begin_inset Flex Code
17964 status collapsed
17965
17966 \begin_layout Plain Layout
17967 lyxeditor.exe
17968 \end_layout
17969
17970 \end_inset
17971
17972  program (which is installed by default on Cygwin along with the \SpecialChar LyX
17973  executable).
17974  Select 
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 lyxeditor.exe
17980 \end_layout
17981
17982 \end_inset
17983
17984  and then specify the program arguments as 
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989 -g %f %l
17990 \end_layout
17991
17992 \end_inset
17993
17994 .
17995  In this way, you will be using the 
17996 \emph on
17997 lyxsocket
17998 \emph default
17999  for communicating with \SpecialChar LyX
18000 .
18001  If, for whatever reason, you want to use the 
18002 \emph on
18003 lyxpipe
18004 \emph default
18005 , omit the 
18006 \begin_inset Flex Code
18007 status collapsed
18008
18009 \begin_layout Plain Layout
18010 -g
18011 \end_layout
18012
18013 \end_inset
18014
18015  option and be sure to specify the \SpecialChar LyX
18016 Server pipe path in the \SpecialChar LyX
18017  preferences.
18018 \end_layout
18019
18020 \begin_layout Standard
18021 In yap, reverse search is triggered by double-click.
18022 \end_layout
18023
18024 \begin_layout Subsubsection*
18025 SumatraPDF (Cygwin)
18026 \end_layout
18027
18028 \begin_layout Standard
18029 In order to use SumatraPDF for inverse search, enter 
18030 \begin_inset Flex Code
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034 SumatraPDF -inverse-search "lyxeditor -g %f %l"
18035 \end_layout
18036
18037 \end_inset
18038
18039  in the viewer setting in 
18040 \begin_inset Flex Noun
18041 status collapsed
18042
18043 \begin_layout Plain Layout
18044 Preferences\SpecialChar menuseparator
18045 File Handling\SpecialChar menuseparator
18046 File formats\SpecialChar menuseparator
18047 PDF (pdflatex)
18048 \end_layout
18049
18050 \end_inset
18051
18052 .
18053  If SumatraPDF.exe is not in your command PATH, use its full posix path.
18054  The 
18055 \begin_inset Flex Code
18056 status collapsed
18057
18058 \begin_layout Plain Layout
18059 -g
18060 \end_layout
18061
18062 \end_inset
18063
18064  enables communication via the 
18065 \emph on
18066 lyxsocket
18067 \emph default
18068 .
18069  Again, omit the 
18070 \begin_inset Flex Code
18071 status collapsed
18072
18073 \begin_layout Plain Layout
18074 -g
18075 \end_layout
18076
18077 \end_inset
18078
18079  option if you want to use the 
18080 \emph on
18081 lyxpipe
18082 \emph default
18083 , and be sure to specify the \SpecialChar LyX
18084 Server pipe path in the \SpecialChar LyX
18085  preferences.
18086 \end_layout
18087
18088 \begin_layout Standard
18089 Reverse search is triggered by double-click.
18090 \end_layout
18091
18092 \begin_layout Section
18093 Forward search
18094 \end_layout
18095
18096 \begin_layout Standard
18097 Forward search is, as the name implies, in a sense the 
18098 \begin_inset Quotes eld
18099 \end_inset
18100
18101 opposite
18102 \begin_inset Quotes erd
18103 \end_inset
18104
18105  of reverse search.
18106  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
18107 .
18108  If forward search is set up (as described in what follows), you can put
18109  the cursor anywhere in your \SpecialChar LyX
18110  document, and hit 
18111 \begin_inset Flex Noun
18112 status collapsed
18113
18114 \begin_layout Plain Layout
18115 Navigate\SpecialChar menuseparator
18116 Forward search
18117 \end_layout
18118
18119 \end_inset
18120
18121  (or select 
18122 \begin_inset Flex Noun
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 Forward search
18127 \end_layout
18128
18129 \end_inset
18130
18131  in the context menu via right mouse click), and then the viewer will jump
18132  to that position as well.
18133  This implies, of course, that your viewer supports this function.
18134 \end_layout
18135
18136 \begin_layout Standard
18137 To make forward search possible, you first need to provide the generated
18138  output PDF/DVI file with additional information about the \SpecialChar TeX
18139  sources.
18140  This can be done via the methods described in the section 
18141 \begin_inset CommandInset ref
18142 LatexCommand ref
18143 reference "subsec:rev-search"
18144
18145 \end_inset
18146
18147 .
18148 \end_layout
18149
18150 \begin_layout Standard
18151 Additionally, you need to configure \SpecialChar LyX
18152  for using your viewers in 
18153 \begin_inset Flex Noun
18154 status collapsed
18155
18156 \begin_layout Plain Layout
18157 Tools\SpecialChar menuseparator
18158 Preferences\SpecialChar menuseparator
18159 Output\SpecialChar menuseparator
18160 General
18161 \end_layout
18162
18163 \end_inset
18164
18165 .
18166  We provide a range of tested configurations for some viewers, which you
18167  can select from the drop down list.
18168  If none of these configurations suits you, you have to find out and enter
18169  a suitable configuration yourself.
18170  The definition syntax uses the following placeholders:
18171 \end_layout
18172
18173 \begin_layout Itemize
18174 \noindent
18175 \begin_inset Flex Code
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 $$n
18180 \end_layout
18181
18182 \end_inset
18183
18184 : row number
18185 \end_layout
18186
18187 \begin_layout Itemize
18188 \noindent
18189 \begin_inset Flex Code
18190 status collapsed
18191
18192 \begin_layout Plain Layout
18193 $$t
18194 \end_layout
18195
18196 \end_inset
18197
18198 : name of the (temporary) exported .tex file (without path)
18199 \end_layout
18200
18201 \begin_layout Itemize
18202 \noindent
18203 \begin_inset Flex Code
18204 status collapsed
18205
18206 \begin_layout Plain Layout
18207 $$f
18208 \end_layout
18209
18210 \end_inset
18211
18212 : name of the (temporary) exported .tex file (including path)
18213 \end_layout
18214
18215 \begin_layout Itemize
18216 \noindent
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 $$o
18222 \end_layout
18223
18224 \end_inset
18225
18226 : name of the exported output file (either dvi or pdf, depending on which
18227  one exists in the temporary directory)
18228 \end_layout
18229
18230 \begin_layout Standard
18231 Note that only some of the viewers provide full and usable forward search
18232  functionality out of the box, among them yap, xdvi, okular
18233 \begin_inset Foot
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237 You might want to set 
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 okular --unique
18243 \end_layout
18244
18245 \end_inset
18246
18247  in 
18248 \begin_inset Flex Noun
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 Tools\SpecialChar menuseparator
18253 Preferences\SpecialChar menuseparator
18254 File Handling\SpecialChar menuseparator
18255 File
18256 \begin_inset space ~
18257 \end_inset
18258
18259 Formats
18260 \end_layout
18261
18262 \end_inset
18263
18264
18265 \end_layout
18266
18267 \end_inset
18268
18269 , qpdfview, and SumatraPDF
18270 \begin_inset Foot
18271 status collapsed
18272
18273 \begin_layout Plain Layout
18274 SumatraPDF can also use DDE commands through the external program CMCDDE
18275  — downloadable from 
18276 \begin_inset CommandInset href
18277 LatexCommand href
18278 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
18279 literal "false"
18280
18281 \end_inset
18282
18283
18284 \end_layout
18285
18286 \end_inset
18287
18288 .
18289  Others, such as evince
18290 \begin_inset Foot
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 Forward search with evince can be achieved by means of third party helper
18295  scripts.
18296  Please refer to 
18297 \begin_inset CommandInset href
18298 LatexCommand href
18299 target "https://wiki.lyx.org/LyX/SyncTeX"
18300 literal "false"
18301
18302 \end_inset
18303
18304  for details.
18305 \end_layout
18306
18307 \end_inset
18308
18309 , require some extra tools in order to use forward search.
18310  While many of the widespread PDF viewers (most notably Adobe Reader) do
18311  not support forward search at all, some other viewers – e.
18312 \begin_inset space \thinspace{}
18313 \end_inset
18314
18315 g.
18316  xpdf – allow at least to reload the document and jump to a specific page
18317  of the file, so you can at least navigate 
18318 \begin_inset Quotes eld
18319 \end_inset
18320
18321 near
18322 \begin_inset Quotes erd
18323 \end_inset
18324
18325 .
18326  This latter functionality is provided by an external call of synctex (see
18327  the predefined example configurations).
18328  
18329 \end_layout
18330
18331 \begin_layout Standard
18332 Forward search works both with DVI and PDF output.
18333  \SpecialChar LyX
18334  simply checks which preview format you have used before (i.
18335 \begin_inset space \thinspace{}
18336 \end_inset
18337
18338 e., which format is already there in the temporary directory) and chooses
18339  the appropriate configuration for the respective format.
18340 \end_layout
18341
18342 \begin_layout Chapter
18343 Special Document Classes
18344 \end_layout
18345
18346 \begin_layout Section
18347
18348 \change_deleted 564990737 1669742044
18349 A&A Paper
18350 \end_layout
18351
18352 \begin_layout Standard
18353
18354 \change_deleted 564990737 1669742044
18355 by 
18356 \noun on
18357 Peter Sütterlin
18358 \end_layout
18359
18360 \begin_layout Subsection
18361
18362 \change_deleted 564990737 1669742044
18363 Introduction
18364 \end_layout
18365
18366 \begin_layout Standard
18367
18368 \change_deleted 564990737 1669742044
18369 This section describes how \SpecialChar LyX
18370  can be used to write articles for submission
18371  to the scientific journal 
18372 \emph on
18373 Astronomy and Astrophysics
18374 \emph default
18375  (
18376 \begin_inset Flex URL
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380
18381 https://www.aanda.org/
18382 \end_layout
18383
18384 \end_inset
18385
18386 ) using Version 5.01 of the document class 
18387 \family typewriter
18388 aa.cls
18389 \family default
18390 .
18391  This package can be downloaded from the ftp site
18392 \end_layout
18393
18394 \begin_layout Standard
18395
18396 \change_deleted 564990737 1669742044
18397 \begin_inset VSpace medskip
18398 \end_inset
18399
18400
18401 \end_layout
18402
18403 \begin_layout Standard
18404 \align center
18405
18406 \change_deleted 564990737 1669742044
18407 \begin_inset Flex URL
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411
18412 ftp://ftp.edpsciences.org/pub/aa/readme.html
18413 \end_layout
18414
18415 \end_inset
18416
18417
18418 \end_layout
18419
18420 \begin_layout Standard
18421
18422 \change_deleted 564990737 1669742044
18423 \begin_inset VSpace medskip
18424 \end_inset
18425
18426
18427 \end_layout
18428
18429 \begin_layout Standard
18430
18431 \change_deleted 564990737 1669742044
18432 A manual comes together with that package, and this text is not meant to
18433  replace the original manual but is merely a short guide in how to realize
18434  the correct form of your paper.
18435  
18436 \end_layout
18437
18438 \begin_layout Standard
18439
18440 \change_deleted 564990737 1669742044
18441 Please note that the publisher of the journal was changed from Springer
18442  to EDP Sciences starting January 1, 2001.
18443  That change involved also some slight changes to the style files, namely
18444  the removal of the thesaurus command.
18445  The \SpecialChar LyX
18446  class aa supports the newest version of these style files, V 5.01.
18447  If you have an older version installed, please upgrade.
18448  For compatibility, the old (version 4) layout has been kept as 
18449 \family sans
18450 article (A&A V4)
18451 \family default
18452 .
18453  Please refer to the comments in 
18454 \family typewriter
18455 \SpecialChar LyX
18456 Dir/layouts/aapaper.layout
18457 \family default
18458 .
18459 \end_layout
18460
18461 \begin_layout Subsection
18462
18463 \change_deleted 564990737 1669742044
18464 Getting started
18465 \end_layout
18466
18467 \begin_layout Standard
18468
18469 \change_deleted 564990737 1669742044
18470 It is recommended you start from the example template distributed with \SpecialChar LyX
18471 .
18472  If you are not using a template, note the following settings:
18473 \end_layout
18474
18475 \begin_layout Itemize
18476
18477 \change_deleted 564990737 1669742044
18478 Select 
18479 \family sans
18480 article (A&A)
18481 \family default
18482  in the 
18483 \family sans
18484 Document\SpecialChar menuseparator
18485 Settings
18486 \family default
18487  dialog (OK, that one was obvious).
18488 \end_layout
18489
18490 \begin_layout Itemize
18491
18492 \change_deleted 564990737 1669742044
18493 Don't change the option 
18494 \family sans
18495 Page
18496 \begin_inset space ~
18497 \end_inset
18498
18499 style
18500 \family default
18501 : Leave it set to 
18502 \family sans
18503 default
18504 \family default
18505 .
18506  The whole layout is done by the macros, you shouldn't change anything.
18507 \end_layout
18508
18509 \begin_layout Subsection
18510
18511 \change_deleted 564990737 1669742044
18512 The header block
18513 \end_layout
18514
18515 \begin_layout Standard
18516
18517 \change_deleted 564990737 1669742044
18518 First thing to enter is the header information.
18519  It consists of seven entries, of which some are optional.
18520  They are
18521 \end_layout
18522
18523 \begin_layout Itemize
18524
18525 \change_deleted 564990737 1669742044
18526
18527 \family sans
18528 Title
18529 \family default
18530 : [required] 
18531 \end_layout
18532
18533 \begin_layout Itemize
18534
18535 \change_deleted 564990737 1669742044
18536
18537 \family sans
18538 Subtitle
18539 \family default
18540 : [optional] 
18541 \end_layout
18542
18543 \begin_layout Itemize
18544
18545 \change_deleted 564990737 1669742044
18546
18547 \family sans
18548 Author
18549 \family default
18550 : [required]
18551 \end_layout
18552
18553 \begin_layout Itemize
18554
18555 \change_deleted 564990737 1669742044
18556
18557 \family sans
18558 Address
18559 \family default
18560 : [required]
18561 \end_layout
18562
18563 \begin_layout Itemize
18564
18565 \change_deleted 564990737 1669742044
18566
18567 \family sans
18568 Offprints
18569 \family default
18570 : [optional] if more than one author: whom to contact for offprint requests.
18571 \end_layout
18572
18573 \begin_layout Itemize
18574
18575 \change_deleted 564990737 1669742044
18576
18577 \family sans
18578 Mail
18579 \family default
18580 : [optional] mail address for contacts.
18581 \end_layout
18582
18583 \begin_layout Itemize
18584
18585 \change_deleted 564990737 1669742044
18586
18587 \family sans
18588 Date
18589 \family default
18590 : [required].
18591  Suggested format is 
18592 \family typewriter
18593 Received: <date>; Accepted <date> 
18594 \end_layout
18595
18596 \begin_layout Standard
18597
18598 \change_deleted 564990737 1669742044
18599 There is no need to issue the 
18600 \family typewriter
18601
18602 \backslash
18603 maketitle
18604 \family default
18605  command, this is done automatically by \SpecialChar LyX
18606  when the header is finished.
18607  Although the order of the single header entries doesn't matter it is advised
18608  to keep the above sequence, just to get the best optics and meets the layout
18609  of the real document.
18610 \end_layout
18611
18612 \begin_layout Standard
18613
18614 \change_deleted 564990737 1669742044
18615 If you want to place footnotes in the header block, e.
18616 \begin_inset space \thinspace{}
18617 \end_inset
18618
18619 g.
18620 \begin_inset space \space{}
18621 \end_inset
18622
18623 to state your present address, just use the standard footnote via the menu
18624  
18625 \family sans
18626 Insert\SpecialChar menuseparator
18627 Footnote.
18628
18629 \family default
18630  \SpecialChar LyX
18631  will automagically use the term 
18632 \family typewriter
18633
18634 \backslash
18635 thanks{}
18636 \family default
18637  in that case.
18638 \end_layout
18639
18640 \begin_layout Standard
18641
18642 \change_deleted 564990737 1669742044
18643 Under 
18644 \family sans
18645 Edit\SpecialChar menuseparator
18646 Text Style
18647 \family default
18648 , you'll find two insets which are relevant for the titling:
18649 \end_layout
18650
18651 \begin_layout Itemize
18652
18653 \change_deleted 564990737 1669742044
18654
18655 \family sans
18656 Institute
18657 \family typewriter
18658  
18659 \family default
18660 to mark corresponding author\SpecialChar breakableslash
18661 institute pairs.
18662  The institutes are numbered sequentially as they appear in the 
18663 \family sans
18664 Address
18665 \family default
18666  field, so you have to put a marker to each author.
18667 \end_layout
18668
18669 \begin_layout Itemize
18670
18671 \change_deleted 564990737 1669742044
18672
18673 \family sans
18674 Email
18675 \family default
18676  to supply an email address for fast contact.
18677 \end_layout
18678
18679 \begin_layout Standard
18680
18681 \change_deleted 564990737 1669742044
18682 In addition to these topics, the macros use one additional \SpecialChar LaTeX
18683  command that
18684  has no counterpart in \SpecialChar LyX
18685 :
18686 \end_layout
18687
18688 \begin_layout Itemize
18689
18690 \change_deleted 564990737 1669742044
18691
18692 \family typewriter
18693
18694 \backslash
18695 and
18696 \family default
18697  to separate different names for more than one author and institute, respectivel
18698 y.
18699 \end_layout
18700
18701 \begin_layout Standard
18702
18703 \change_deleted 564990737 1669742044
18704 The appropriate command has to be entered in \SpecialChar LyX
18705  and marked as \SpecialChar LaTeX
18706  code.
18707  See the examples.
18708  
18709 \end_layout
18710
18711 \begin_layout Subsection
18712
18713 \change_deleted 564990737 1669742044
18714 The abstract
18715 \end_layout
18716
18717 \begin_layout Standard
18718
18719 \change_deleted 564990737 1669742044
18720 The abstract should immediately follow the header block.
18721  With version 5 the abstract environment was changed to a command, and there
18722  is now a restriction to only one paragraph.
18723  In addition, it should contain an entry with the keywords.
18724  This is done via the paragraph style 
18725 \family sans
18726 Keywords
18727 \family default
18728 .
18729  Refer to the example paper.
18730 \end_layout
18731
18732 \begin_layout Subsection
18733
18734 \change_deleted 564990737 1669742044
18735 Supported environments
18736 \end_layout
18737
18738 \begin_layout Standard
18739
18740 \change_deleted 564990737 1669742044
18741 The A&A paper layout supports the following environments for structuring
18742  your text:
18743 \end_layout
18744
18745 \begin_layout Itemize
18746
18747 \change_deleted 564990737 1669742044
18748
18749 \family sans
18750 Standard
18751 \end_layout
18752
18753 \begin_layout Itemize
18754
18755 \change_deleted 564990737 1669742044
18756
18757 \family sans
18758 Section
18759 \end_layout
18760
18761 \begin_layout Itemize
18762
18763 \change_deleted 564990737 1669742044
18764
18765 \family sans
18766 Subsection
18767 \end_layout
18768
18769 \begin_layout Itemize
18770
18771 \change_deleted 564990737 1669742044
18772
18773 \family sans
18774 Subsubsection
18775 \end_layout
18776
18777 \begin_layout Itemize
18778
18779 \change_deleted 564990737 1669742044
18780
18781 \family sans
18782 Itemize
18783 \end_layout
18784
18785 \begin_layout Itemize
18786
18787 \change_deleted 564990737 1669742044
18788
18789 \family sans
18790 Enumerate
18791 \end_layout
18792
18793 \begin_layout Itemize
18794
18795 \change_deleted 564990737 1669742044
18796
18797 \family sans
18798 Description
18799 \end_layout
18800
18801 \begin_layout Itemize
18802
18803 \change_deleted 564990737 1669742044
18804
18805 \family sans
18806 Caption
18807 \end_layout
18808
18809 \begin_layout Itemize
18810
18811 \change_deleted 564990737 1669742044
18812
18813 \family sans
18814 Abstract
18815 \end_layout
18816
18817 \begin_layout Itemize
18818
18819 \change_deleted 564990737 1669742044
18820
18821 \family sans
18822 Acknowledgment
18823 \end_layout
18824
18825 \begin_layout Itemize
18826
18827 \change_deleted 564990737 1669742044
18828
18829 \family sans
18830 Bibliography
18831 \end_layout
18832
18833 \begin_layout Itemize
18834
18835 \change_deleted 564990737 1669742044
18836
18837 \family sans
18838 \SpecialChar LaTeX
18839
18840 \end_layout
18841
18842 \begin_layout Subsection
18843
18844 \change_deleted 564990737 1669742044
18845 Commands not supported by \SpecialChar LyX
18846
18847 \end_layout
18848
18849 \begin_layout Standard
18850
18851 \change_deleted 564990737 1669742044
18852 Some commands are not yet supported by the 
18853 \family sans
18854 paper (A&A)
18855 \family default
18856  layout for \SpecialChar LyX
18857 .
18858  Some have already been mentioned.
18859  For the sake of completeness, they are listed all together here:
18860 \end_layout
18861
18862 \begin_layout Itemize
18863
18864 \change_deleted 564990737 1669742044
18865
18866 \family typewriter
18867
18868 \backslash
18869 and
18870 \end_layout
18871
18872 \begin_layout Itemize
18873
18874 \change_deleted 564990737 1669742044
18875
18876 \family typewriter
18877
18878 \backslash
18879 authorrunning
18880 \end_layout
18881
18882 \begin_layout Itemize
18883
18884 \change_deleted 564990737 1669742044
18885
18886 \family typewriter
18887
18888 \backslash
18889 object{}
18890 \end_layout
18891
18892 \begin_layout Itemize
18893
18894 \change_deleted 564990737 1669742044
18895
18896 \family typewriter
18897
18898 \backslash
18899 titlerunning{}
18900 \end_layout
18901
18902 \begin_layout Standard
18903
18904 \change_deleted 564990737 1669742044
18905 If you want to use any of these commands, you have to enter them yourself.
18906  
18907 \series bold
18908 Do not forget to mark them as \SpecialChar LaTeX
18909  code!
18910 \end_layout
18911
18912 \begin_layout Subsection
18913
18914 \change_deleted 564990737 1669742044
18915 Figure and Table Floats
18916 \end_layout
18917
18918 \begin_layout Standard
18919
18920 \change_deleted 564990737 1669742044
18921 \SpecialChar LyX
18922  provides support for the necessary float environments 
18923 \family sans
18924 figure, figure*, table
18925 \family default
18926  and 
18927 \family sans
18928 table*
18929 \family default
18930 , therefore we won't tell much about it here.
18931  Refer to the 
18932 \emph on
18933 User's
18934 \begin_inset space ~
18935 \end_inset
18936
18937 Guide
18938 \emph default
18939 .
18940  Just remember that tables should be left-aligned.
18941  For that, select the table and change the alignment in 
18942 \family sans
18943 Edit\SpecialChar menuseparator
18944 Paragraph
18945 \begin_inset space ~
18946 \end_inset
18947
18948 Settings.
18949 \end_layout
18950
18951 \begin_layout Standard
18952
18953 \change_deleted 564990737 1669742044
18954 There is only one special thing: the figures with caption besides the figure.
18955  To create such a figure, you have to do the following:
18956 \end_layout
18957
18958 \begin_layout Enumerate
18959
18960 \change_deleted 564990737 1669742044
18961 Create a wide figure float: 
18962 \family sans
18963 Insert\SpecialChar menuseparator
18964 Float\SpecialChar menuseparator
18965 Figure
18966 \family default
18967 , then right click in the figure and select 
18968 \family sans
18969 Span
18970 \begin_inset space ~
18971 \end_inset
18972
18973 columns
18974 \family default
18975 .
18976 \end_layout
18977
18978 \begin_layout Enumerate
18979
18980 \change_deleted 564990737 1669742044
18981 Enter your caption text.
18982 \end_layout
18983
18984 \begin_layout Enumerate
18985
18986 \change_deleted 564990737 1669742044
18987 Press 
18988 \family sans
18989 Return
18990 \family default
18991  to move the cursor above the caption.
18992 \end_layout
18993
18994 \begin_layout Enumerate
18995
18996 \change_deleted 564990737 1669742044
18997 Insert your figure
18998 \end_layout
18999
19000 \begin_layout Enumerate
19001
19002 \change_deleted 564990737 1669742044
19003 Position the cursor behind the figure and insert a horizontal fill: 
19004 \family sans
19005 Insert\SpecialChar menuseparator
19006 Special
19007 \begin_inset space ~
19008 \end_inset
19009
19010 Character\SpecialChar menuseparator
19011 Horizontal
19012 \begin_inset space ~
19013 \end_inset
19014
19015 Fill
19016 \family default
19017 .
19018 \end_layout
19019
19020 \begin_layout Enumerate
19021
19022 \change_deleted 564990737 1669742044
19023 Switch to \SpecialChar LaTeX
19024  mode: 
19025 \family sans
19026 M-c
19027 \begin_inset space ~
19028 \end_inset
19029
19030 t
19031 \family default
19032 .
19033 \end_layout
19034
19035 \begin_layout Enumerate
19036
19037 \change_deleted 564990737 1669742044
19038 Enter 
19039 \family typewriter
19040
19041 \backslash
19042 parbox[b]{55mm}{
19043 \family default
19044 .
19045  
19046 \series bold
19047 Do not close the brace!
19048 \end_layout
19049
19050 \begin_layout Enumerate
19051
19052 \change_deleted 564990737 1669742044
19053 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
19054  mode and insert
19055  the closing brace: 
19056 \family sans
19057 M-c
19058 \begin_inset space ~
19059 \end_inset
19060
19061 t
19062 \family default
19063  
19064 \family typewriter
19065 }
19066 \family default
19067 .
19068 \end_layout
19069
19070 \begin_layout Standard
19071
19072 \change_deleted 564990737 1669742044
19073 Also, refer to the figures in the example paper.
19074 \end_layout
19075
19076 \begin_layout Subsection
19077
19078 \change_deleted 564990737 1669742044
19079 Referee layout
19080 \end_layout
19081
19082 \begin_layout Standard
19083
19084 \change_deleted 564990737 1669742044
19085 For submission, the paper has to be formated in a special double-spacing
19086  layout.
19087  For this purpose, you have to give the option 
19088 \family typewriter
19089 referee
19090 \family default
19091  to the document class.
19092  This must be done using the custom class options field in the 
19093 \family sans
19094 Document\SpecialChar menuseparator
19095 Settings
19096 \family default
19097  dialog.
19098  Just enter the string 
19099 \family typewriter
19100 referee
19101 \family default
19102  there.
19103 \end_layout
19104
19105 \begin_layout Subsection
19106
19107 \change_deleted 564990737 1669742044
19108 The example paper
19109 \end_layout
19110
19111 \begin_layout Standard
19112
19113 \change_deleted 564990737 1669742044
19114 The 
19115 \family sans
19116 Examples
19117 \family default
19118  directory contains an example paper written with \SpecialChar LyX
19119 .
19120  It is the example paper from the original macro package, translated to
19121  \SpecialChar LyX
19122 .
19123  Use it for inspiration, and compare the original \SpecialChar LaTeX
19124  code with \SpecialChar LyX
19125  way of writing.
19126 \end_layout
19127
19128 \begin_layout Section
19129 Dinbrief
19130 \end_layout
19131
19132 \begin_layout Standard
19133 The document class 
19134 \family sans
19135 dinbrief
19136 \family default
19137  can be used to type letters according to German conventions.
19138  A template file is included in 
19139 \family typewriter
19140 .../lyx/share/templates
19141 \family default
19142  for you to use as a starting point.
19143 \end_layout
19144
19145 \begin_layout Section
19146 Elsevier Journals
19147 \end_layout
19148
19149 \begin_layout Standard
19150 See the \SpecialChar LyX
19151  template file 
19152 \family typewriter
19153 elsarticle.lyx
19154 \family default
19155 .
19156  It contains all infos you need.
19157 \end_layout
19158
19159 \begin_layout Section
19160
19161 \change_deleted 564990737 1669755802
19162 ijmpc and ijmpd
19163 \end_layout
19164
19165 \begin_layout Standard
19166
19167 \change_deleted 564990737 1669755802
19168 by 
19169 \noun on
19170 Panayotis Papasotiriou
19171 \end_layout
19172
19173 \begin_layout Subsection
19174
19175 \change_deleted 564990737 1669755802
19176 Overview
19177 \end_layout
19178
19179 \begin_layout Standard
19180
19181 \change_deleted 564990737 1669755802
19182 The ijmpc package is a set of macros that facilitates electronic manuscript
19183  submission to the 
19184 \emph on
19185 International Journal of Modern Physics C
19186 \emph default
19187 .
19188  Similarly, the ijmpd package is for creating manuscripts to be submitted
19189  to the 
19190 \emph on
19191 International Journal of Modern Physics D
19192 \emph default
19193 .
19194  Both journals are published by World Scientific.
19195  The corresponding document classes are named 
19196 \family typewriter
19197 ws-ijmpc.cls
19198 \family default
19199  and 
19200 \family typewriter
19201 ws-ijmpd.cls
19202 \family default
19203 , respectively.
19204  These files, together with instructions for the authors, can be downloaded
19205  from the sites 
19206 \begin_inset Flex URL
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210
19211 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
19212 \end_layout
19213
19214 \end_inset
19215
19216  and 
19217 \begin_inset Flex URL
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221
19222 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
19223 \end_layout
19224
19225 \end_inset
19226
19227 .
19228  Both packages are modified versions of the standard 
19229 \begin_inset Quotes eld
19230 \end_inset
19231
19232 article
19233 \begin_inset Quotes erd
19234 \end_inset
19235
19236  package, and they are almost (but not exactly) identical.
19237  Most of their features are supported by \SpecialChar LyX
19238 .
19239  I have used \SpecialChar LyX
19240  successfully to write articles submitted to both journals
19241  without any problem.
19242 \end_layout
19243
19244 \begin_layout Subsection
19245
19246 \change_deleted 564990737 1669755802
19247 Writing a paper
19248 \end_layout
19249
19250 \begin_layout Standard
19251
19252 \change_deleted 564990737 1669755802
19253 As usual, the easiest way to write a paper is to start with a template.
19254  Click on 
19255 \family sans
19256 File\SpecialChar menuseparator
19257 New from
19258 \family default
19259  
19260 \family sans
19261 Template
19262 \family default
19263 , then choose the 
19264 \family typewriter
19265 ijmpc.lyx
19266 \family default
19267  or 
19268 \family typewriter
19269 ijmpd.lyx
19270 \family default
19271  template.
19272  This will give an (almost) empty document that includes the most common
19273  fields found in a manuscript.
19274  Simply overwrite the existing text (including the brackets, 
19275 \family typewriter
19276 <>
19277 \family default
19278 ) with your text.
19279  You should keep in mind the following remarks.
19280 \end_layout
19281
19282 \begin_layout Enumerate
19283
19284 \change_deleted 564990737 1669755802
19285 \SpecialChar LyX
19286  won't let you change the font size and the page style of the document,
19287  because such modifications are not allowed by both packages.
19288 \end_layout
19289
19290 \begin_layout Enumerate
19291
19292 \change_deleted 564990737 1669755802
19293 The language of the document should not be changed.
19294  Before previewing your paper, be sure that the babel package is not used.
19295  To do this, click on 
19296 \begin_inset Info
19297 type  "menu"
19298 arg   "dialog-show document"
19299 \end_inset
19300
19301  
19302 \family sans
19303 \SpecialChar menuseparator
19304 Language
19305 \family default
19306 , and select 
19307 \begin_inset Quotes eld
19308 \end_inset
19309
19310 None
19311 \begin_inset Quotes erd
19312 \end_inset
19313
19314  as 
19315 \family sans
19316 Language Package
19317 \family default
19318 .
19319 \end_layout
19320
19321 \begin_layout Enumerate
19322
19323 \change_deleted 564990737 1669755802
19324 The 
19325 \begin_inset Quotes eld
19326 \end_inset
19327
19328 Keywords
19329 \begin_inset Quotes erd
19330 \end_inset
19331
19332  style must be used to define keywords.
19333 \end_layout
19334
19335 \begin_layout Enumerate
19336
19337 \change_deleted 564990737 1669755802
19338 The ijmpc package provides a style named 
19339 \begin_inset Quotes eld
19340 \end_inset
19341
19342 Classification Codes
19343 \begin_inset Quotes erd
19344 \end_inset
19345
19346 , which can be used to define classification codes, such as PACS numbers.
19347  Note that this facility is not supported by the ijmpd package.
19348 \end_layout
19349
19350 \begin_layout Enumerate
19351
19352 \change_deleted 564990737 1669755802
19353 Several new environments are available: 
19354 \begin_inset Quotes eld
19355 \end_inset
19356
19357 Definition
19358 \begin_inset Quotes erd
19359 \end_inset
19360
19361
19362 \begin_inset Quotes eld
19363 \end_inset
19364
19365 Step
19366 \begin_inset Quotes erd
19367 \end_inset
19368
19369
19370 \begin_inset Quotes eld
19371 \end_inset
19372
19373 Example
19374 \begin_inset Quotes erd
19375 \end_inset
19376
19377
19378 \begin_inset Quotes eld
19379 \end_inset
19380
19381 Remark
19382 \begin_inset Quotes erd
19383 \end_inset
19384
19385
19386 \begin_inset Quotes eld
19387 \end_inset
19388
19389 Notation
19390 \begin_inset Quotes erd
19391 \end_inset
19392
19393
19394 \begin_inset Quotes eld
19395 \end_inset
19396
19397 Theorem
19398 \begin_inset Quotes erd
19399 \end_inset
19400
19401
19402 \begin_inset Quotes eld
19403 \end_inset
19404
19405 Proof
19406 \begin_inset Quotes erd
19407 \end_inset
19408
19409
19410 \begin_inset Quotes eld
19411 \end_inset
19412
19413 Corollary
19414 \begin_inset Quotes erd
19415 \end_inset
19416
19417
19418 \begin_inset Quotes eld
19419 \end_inset
19420
19421 Lemma
19422 \begin_inset Quotes erd
19423 \end_inset
19424
19425
19426 \begin_inset Quotes eld
19427 \end_inset
19428
19429 Proposition
19430 \begin_inset Quotes erd
19431 \end_inset
19432
19433
19434 \begin_inset Quotes eld
19435 \end_inset
19436
19437 Prop
19438 \begin_inset Quotes erd
19439 \end_inset
19440
19441
19442 \begin_inset Quotes eld
19443 \end_inset
19444
19445 Question
19446 \begin_inset Quotes erd
19447 \end_inset
19448
19449
19450 \begin_inset Quotes eld
19451 \end_inset
19452
19453 Claim
19454 \begin_inset Quotes erd
19455 \end_inset
19456
19457 , and 
19458 \begin_inset Quotes eld
19459 \end_inset
19460
19461 Conjecture
19462 \begin_inset Quotes erd
19463 \end_inset
19464
19465 .
19466  Their use is more or less obvious.
19467  \SpecialChar LyX
19468  supports all these environments; it will use the proper label, text style,
19469  and numbering scheme for each of them.
19470 \end_layout
19471
19472 \begin_layout Enumerate
19473
19474 \change_deleted 564990737 1669755802
19475 Both packages use basic citations; the natbib package should not be used.
19476  In \SpecialChar LyX
19477 , citation references are shown as usual; in the output, citations are
19478  shown as superscripts.
19479  If you want to use a citation as normal text, you should use the 
19480 \family typewriter
19481 refcite
19482 \family default
19483  command, e.
19484 \begin_inset space \thinspace{}
19485 \end_inset
19486
19487 g.
19488 \begin_inset space \space{}
19489 \end_inset
19490
19491
19492 \begin_inset Quotes eld
19493 \end_inset
19494
19495 See Ref.
19496 \begin_inset space \space{}
19497 \end_inset
19498
19499
19500 \family typewriter
19501
19502 \backslash
19503 refcite{key}
19504 \family default
19505
19506 \begin_inset Quotes erd
19507 \end_inset
19508
19509 .
19510 \end_layout
19511
19512 \begin_layout Enumerate
19513
19514 \change_deleted 564990737 1669755802
19515 There is no 
19516 \begin_inset Quotes eld
19517 \end_inset
19518
19519 Acknowledgments
19520 \begin_inset Quotes erd
19521 \end_inset
19522
19523  section in both packages.
19524  To put acknowledgments, just use the 
19525 \begin_inset Quotes eld
19526 \end_inset
19527
19528 Section*
19529 \begin_inset Quotes erd
19530 \end_inset
19531
19532  environment.
19533 \end_layout
19534
19535 \begin_layout Enumerate
19536
19537 \change_deleted 564990737 1669755802
19538 Appendices may be added to the paper, 
19539 \emph on
19540 after
19541 \emph default
19542  the Acknowledgments and 
19543 \shape italic
19544 before
19545 \shape default
19546  the References.
19547  \SpecialChar LyX
19548  provides a special environment, called 
19549 \begin_inset Quotes eld
19550 \end_inset
19551
19552 Appendices Section
19553 \begin_inset Quotes erd
19554 \end_inset
19555
19556  which marks the beginning of the appendices.
19557  This environment should be left blank; it just sends a \SpecialChar LaTeX
19558  command, but nothing
19559  is really printed.
19560  In \SpecialChar LyX
19561 , the word 
19562 \begin_inset Quotes eld
19563 \end_inset
19564
19565 Appendix
19566 \begin_inset Quotes erd
19567 \end_inset
19568
19569  is printed with blue letters, as a signal that all sections after that
19570  point are appendices.
19571  To write an appendix, use the 
19572 \begin_inset Quotes eld
19573 \end_inset
19574
19575 Appendix
19576 \begin_inset Quotes erd
19577 \end_inset
19578
19579  environment.
19580  \SpecialChar LyX
19581  will number each appendix with capital letters, as required by both journals.
19582  Note that 
19583 \begin_inset Quotes eld
19584 \end_inset
19585
19586 Appendices Section
19587 \begin_inset Quotes erd
19588 \end_inset
19589
19590  
19591 \emph on
19592 must
19593 \emph default
19594  be present before the first appendix; if not, all appendices will be numbered
19595  as normal sections in the output.
19596 \end_layout
19597
19598 \begin_layout Enumerate
19599
19600 \change_deleted 564990737 1669755802
19601 The ijmpc and the ijmpd packages use the 
19602 \family typewriter
19603 tbl
19604 \family default
19605  command to implement table captions.
19606  As a result, a table created by \SpecialChar LyX
19607  is printed correctly, but its caption
19608  is ignored.
19609  However, you can use some \SpecialChar TeX
19610  code to overcome this problem, so that captions
19611  are printed as expected.
19612  To do so, create a float table as usual, remove the caption, and replace
19613  it with the \SpecialChar TeX
19614  code 
19615 \family typewriter
19616
19617 \backslash
19618 tbl{
19619 \emph on
19620 your table caption
19621 \emph default
19622 }{
19623 \family default
19624  (sic); you must also the \SpecialChar TeX
19625  code 
19626 \family typewriter
19627 }
19628 \family default
19629  immediately after the tabular material.
19630  Study the example table included in the template files to see how this
19631  trick is implemented.
19632  Alternatively, If you need table captions, you should implement the whole
19633  table float in a 
19634 \family typewriter
19635 .tex
19636 \family default
19637  file, then include this file to the \SpecialChar LyX
19638  document (
19639 \family sans
19640 Insert\SpecialChar menuseparator
19641 File\SpecialChar menuseparator
19642 Child
19643 \begin_inset space ~
19644 \end_inset
19645
19646 Document
19647 \family default
19648 ).
19649  Details on how to create a table float can be found in the files 
19650 \family typewriter
19651 ws-ijmpc.tex
19652 \family default
19653  and 
19654 \family typewriter
19655 ws-ijmpd.tex
19656 \family default
19657 , included in the corresponding packages.
19658 \end_layout
19659
19660 \begin_layout Subsection
19661
19662 \change_deleted 564990737 1669755802
19663 Preparing a paper for submission
19664 \end_layout
19665
19666 \begin_layout Standard
19667
19668 \change_deleted 564990737 1669755802
19669 Before you submit your paper you must export the \SpecialChar LyX
19670  document as a \SpecialChar LaTeX
19671  file (
19672 \family sans
19673 File\SpecialChar menuseparator
19674 Export\SpecialChar menuseparator
19675 \SpecialChar LaTeX
19676
19677 \family default
19678 )
19679 \begin_inset Foot
19680 status open
19681
19682 \begin_layout Plain Layout
19683 Actually you have the choice between \SpecialChar LaTeX
19684  (plain) and pdflatex.
19685  If you intend to use pdflatex to prepare the paper, you should use the
19686  pdflatex option so that included graphics are converted to PDF format,
19687  ready for use by pdflatex.
19688 \end_layout
19689
19690 \end_inset
19691
19692 , then make the following changes to the resulting 
19693 \family typewriter
19694 .tex
19695 \family default
19696  file.
19697 \end_layout
19698
19699 \begin_layout Enumerate
19700
19701 \change_deleted 564990737 1669755802
19702 Remove the comment lines before the 
19703 \family typewriter
19704
19705 \backslash
19706 documentclass
19707 \family default
19708  command.
19709 \end_layout
19710
19711 \begin_layout Enumerate
19712
19713 \change_deleted 564990737 1669755802
19714 Remove everything between (and including) the 
19715 \family typewriter
19716
19717 \backslash
19718 makeatletter
19719 \family default
19720  and 
19721 \family typewriter
19722
19723 \backslash
19724 makeatother
19725 \family default
19726  commands, except for any commands you specifically put into the \SpecialChar LaTeX
19727  preamble.
19728 \end_layout
19729
19730 \begin_layout Standard
19731
19732 \change_deleted 564990737 1669755802
19733 The modified 
19734 \family typewriter
19735 .tex
19736 \family default
19737  file should be saved and processed through \SpecialChar LaTeX
19738  as many times as necessary.
19739  You may also want to check the resulting 
19740 \family typewriter
19741 .dvi
19742 \family default
19743  document.
19744 \change_unchanged
19745
19746 \end_layout
19747
19748 \begin_layout Section
19749
19750 \change_deleted 564990737 1669801478
19751 iopart
19752 \end_layout
19753
19754 \begin_layout Standard
19755
19756 \change_deleted 564990737 1669801478
19757 by 
19758 \noun on
19759 Uwe Stöhr
19760 \end_layout
19761
19762 \begin_layout Subsection
19763
19764 \change_deleted 564990737 1669801478
19765 Overview
19766 \end_layout
19767
19768 \begin_layout Standard
19769
19770 \change_deleted 564990737 1669801478
19771 The iopart package provides a document class to create electronic manuscript
19772  submission to the journals published by the Institute of Physics.
19773  Instructions for the authors how to create a paper using the iopart class
19774  can be downloaded together with the iopart package from the site 
19775 \begin_inset Flex URL
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779
19780 ftp://ftp.iop.org/pub/journals/latex2e
19781 \end_layout
19782
19783 \end_inset
19784
19785 .
19786 \end_layout
19787
19788 \begin_layout Subsection
19789
19790 \change_deleted 564990737 1669801478
19791 Writing a paper
19792 \end_layout
19793
19794 \begin_layout Standard
19795
19796 \change_deleted 564990737 1669801478
19797 The easiest way to write a paper is to start with the template 
19798 \emph on
19799 IOP-article.lyx
19800 \emph default
19801  that is available via 
19802 \family sans
19803 File\SpecialChar menuseparator
19804 New From Template
19805 \family default
19806  The template explains how to use the special text environments.
19807  Here are the most important advices:
19808 \end_layout
19809
19810 \begin_layout Itemize
19811
19812 \change_deleted 564990737 1669801478
19813 To be able to compile your document to a PDF, PS, or DVI, ensure that the
19814  no AMS packages are loaded in 
19815 \family sans
19816 Document\SpecialChar menuseparator
19817 Settings\SpecialChar menuseparator
19818 Math Options
19819 \family default
19820 !
19821 \end_layout
19822
19823 \begin_layout Itemize
19824
19825 \change_deleted 564990737 1669801478
19826
19827 \size normal
19828 The title environment defines the kind of your paper.
19829  So use one of the following environments for the title:
19830 \end_layout
19831
19832 \begin_deeper
19833 \begin_layout Itemize
19834
19835 \change_deleted 564990737 1669801478
19836
19837 \family sans
19838 \size normal
19839 Title
19840 \family default
19841  for a Paper
19842 \end_layout
19843
19844 \begin_layout Itemize
19845
19846 \change_deleted 564990737 1669801478
19847
19848 \family sans
19849 \size normal
19850 Review
19851 \family default
19852  for a Review
19853 \end_layout
19854
19855 \begin_layout Itemize
19856
19857 \change_deleted 564990737 1669801478
19858
19859 \family sans
19860 \size normal
19861 Topical
19862 \family default
19863  for a Topical review
19864 \end_layout
19865
19866 \begin_layout Itemize
19867
19868 \change_deleted 564990737 1669801478
19869
19870 \family sans
19871 \size normal
19872 Comment
19873 \family default
19874  for a Comment
19875 \end_layout
19876
19877 \begin_layout Itemize
19878
19879 \change_deleted 564990737 1669801478
19880
19881 \family sans
19882 \size normal
19883 Note
19884 \family default
19885  for a Note
19886 \end_layout
19887
19888 \begin_layout Itemize
19889
19890 \change_deleted 564990737 1669801478
19891
19892 \family sans
19893 \size normal
19894 Paper
19895 \family default
19896  for a Paper (same as Title)
19897 \end_layout
19898
19899 \begin_layout Itemize
19900
19901 \change_deleted 564990737 1669801478
19902
19903 \family sans
19904 \size normal
19905 Prelim
19906 \family default
19907  for a Preliminary communication
19908 \end_layout
19909
19910 \begin_layout Itemize
19911
19912 \change_deleted 564990737 1669801478
19913
19914 \family sans
19915 \size normal
19916 Rapid
19917 \family default
19918  for a Rapid communication
19919 \end_layout
19920
19921 \begin_layout Itemize
19922
19923 \change_deleted 564990737 1669801478
19924
19925 \family sans
19926 \size normal
19927 Letter
19928 \family default
19929  for a Letter to the editor
19930 \end_layout
19931
19932 \end_deeper
19933 \begin_layout Itemize
19934
19935 \change_deleted 564990737 1669801478
19936
19937 \size normal
19938 All title environments except of 
19939 \family sans
19940 Letter
19941 \family default
19942  can have an optional short title.
19943 \end_layout
19944
19945 \begin_layout Itemize
19946
19947 \change_deleted 564990737 1669801478
19948 There is a general title environment 
19949 \family sans
19950 Article
19951 \family default
19952  which is not directly supported by \SpecialChar LyX
19953 .
19954  This can be used as \SpecialChar TeX
19955  code when your document doesn't fit into one of the
19956  other title types.
19957 \end_layout
19958
19959 \begin_layout Standard
19960
19961 \change_deleted 564990737 1669801478
19962 For more informations like hints for special table and formula formatting,
19963  look at the IOP author guidelines.
19964 \change_unchanged
19965
19966 \end_layout
19967
19968 \begin_layout Section
19969
19970 \change_deleted 564990737 1670317155
19971 Kluwer
19972 \end_layout
19973
19974 \begin_layout Standard
19975
19976 \change_deleted 564990737 1670317155
19977 by 
19978 \noun on
19979 Panayotis Papasotiriou
19980 \end_layout
19981
19982 \begin_layout Subsection
19983
19984 \change_deleted 564990737 1670317155
19985 Overview
19986 \end_layout
19987
19988 \begin_layout Standard
19989
19990 \change_deleted 564990737 1670317155
19991 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
19992  that facilitates electronic manuscript submission to the journals they
19993  publish.
19994  Most known of them (at least in my domain of interest) are 
19995 \emph on
19996 Astrophysics and Space Science
19997 \emph default
19998  and 
19999 \emph on
20000 Solar Physics
20001 \emph default
20002 , but there are many others (see a complete list at 
20003 \begin_inset Flex URL
20004 status collapsed
20005
20006 \begin_layout Plain Layout
20007
20008 http://www.wkap.nl/jrnllist.htm/JRNLHOME
20009 \end_layout
20010
20011 \end_inset
20012
20013 ).
20014  The Kluwer package may be downloaded from the site 
20015 \begin_inset Flex URL
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019
20020 http://www.wkap.nl/kaphtml.htm/STYLEFILES
20021 \end_layout
20022
20023 \end_inset
20024
20025 .
20026  A complete user guide is contained in that package (but it can also be
20027  downloaded separately).
20028 \end_layout
20029
20030 \begin_layout Standard
20031
20032 \change_deleted 564990737 1670317155
20033 \SpecialChar LyX
20034  supports many features of the package but not everything.
20035  However, the \SpecialChar TeX
20036  code needed is reduced to some 
20037 \begin_inset Quotes eld
20038 \end_inset
20039
20040 peculiar
20041 \begin_inset Quotes erd
20042 \end_inset
20043
20044  commands of the package (see
20045 \begin_inset space ~
20046 \end_inset
20047
20048
20049 \begin_inset CommandInset ref
20050 LatexCommand ref
20051 reference "subsec:kluwer_peculiarities"
20052
20053 \end_inset
20054
20055 ).
20056  I have recently used \SpecialChar LyX
20057  to write an article submitted to the 
20058 \emph on
20059 Astrophysics and Space Science
20060 \emph default
20061  without any problem.
20062 \end_layout
20063
20064 \begin_layout Subsection
20065
20066 \change_deleted 564990737 1670317155
20067 Writing a paper
20068 \end_layout
20069
20070 \begin_layout Standard
20071
20072 \change_deleted 564990737 1670317155
20073 The easiest way to write a paper is to start with the Kluwer template file.
20074  Click on 
20075 \family sans
20076 File\SpecialChar menuseparator
20077 New from
20078 \family default
20079  
20080 \family sans
20081 Template
20082 \family default
20083 , then choose the 
20084 \family typewriter
20085 kluwer.lyx
20086 \family default
20087  template.
20088  This will give an (almost) empty document that includes the most common
20089  fields found in a manuscript and a short description of their use.
20090  As in most templates, simply overwrite the existing text (including the
20091  brackets, 
20092 \family typewriter
20093 <>
20094 \family default
20095 ) with the correct information.
20096 \end_layout
20097
20098 \begin_layout Subsection
20099
20100 \change_deleted 564990737 1670317155
20101 Preparing a paper for submission
20102 \end_layout
20103
20104 \begin_layout Standard
20105
20106 \change_deleted 564990737 1670317155
20107 As in the AAS\SpecialChar TeX
20108  package, before you submit your paper to a journal you must
20109  
20110 \begin_inset Quotes eld
20111 \end_inset
20112
20113 postprocess
20114 \begin_inset Quotes erd
20115 \end_inset
20116
20117  it as follows.
20118 \end_layout
20119
20120 \begin_layout Enumerate
20121
20122 \change_deleted 564990737 1670317155
20123 Export your paper as a \SpecialChar LaTeX
20124  file.
20125  To do this, click on 
20126 \family sans
20127 File\SpecialChar menuseparator
20128 Export\SpecialChar menuseparator
20129 \SpecialChar LaTeX
20130
20131 \family default
20132 .
20133  
20134 \end_layout
20135
20136 \begin_layout Enumerate
20137
20138 \change_deleted 564990737 1670317155
20139 Edit the resulting 
20140 \family typewriter
20141 .tex
20142 \family default
20143  file with a text editor and make the following changes
20144 \end_layout
20145
20146 \begin_deeper
20147 \begin_layout Enumerate
20148
20149 \change_deleted 564990737 1670317155
20150 remove the comment lines before the 
20151 \family typewriter
20152
20153 \backslash
20154 documentclass
20155 \family default
20156  command,
20157 \end_layout
20158
20159 \begin_layout Enumerate
20160
20161 \change_deleted 564990737 1670317155
20162 remove everything between (and including) the 
20163 \family typewriter
20164
20165 \backslash
20166 makeatletter
20167 \family default
20168  and 
20169 \family typewriter
20170
20171 \backslash
20172 makeatother
20173 \family default
20174  commands, except for any commands you specifically put into the \SpecialChar LaTeX
20175  preamble.
20176 \end_layout
20177
20178 \begin_layout Standard
20179
20180 \change_deleted 564990737 1670317155
20181 Save the resulting 
20182 \family typewriter
20183 .tex
20184 \family default
20185  file.
20186 \end_layout
20187
20188 \end_deeper
20189 \begin_layout Enumerate
20190
20191 \change_deleted 564990737 1670317155
20192 Run the 
20193 \family typewriter
20194 .tex
20195 \family default
20196  file through \SpecialChar LaTeX
20197  as many times as necessary (usually up to three).
20198 \end_layout
20199
20200 \begin_layout Enumerate
20201
20202 \change_deleted 564990737 1670317155
20203 View the resulting 
20204 \family typewriter
20205 .dvi
20206 \family default
20207  document using, e.
20208 \begin_inset space \thinspace{}
20209 \end_inset
20210
20211 g.
20212 \begin_inset space \space{}
20213 \end_inset
20214
20215
20216 \family sans
20217 xdvi
20218 \family default
20219 , and check if everything is OK (it should, if you didn't make any mistake).
20220 \end_layout
20221
20222 \begin_layout Subsection
20223
20224 \change_deleted 564990737 1670317155
20225 \begin_inset Quotes eld
20226 \end_inset
20227
20228 Peculiarities
20229 \begin_inset Quotes erd
20230 \end_inset
20231
20232  of the Kluwer package
20233 \begin_inset CommandInset label
20234 LatexCommand label
20235 name "subsec:kluwer_peculiarities"
20236
20237 \end_inset
20238
20239
20240 \end_layout
20241
20242 \begin_layout Standard
20243
20244 \change_deleted 564990737 1670317155
20245 The Kluwer package has the following 
20246 \begin_inset Quotes eld
20247 \end_inset
20248
20249 peculiarities
20250 \begin_inset Quotes erd
20251 \end_inset
20252
20253 .
20254 \end_layout
20255
20256 \begin_layout Enumerate
20257
20258 \change_deleted 564990737 1670317155
20259 It is possible to write multiple articles in the same \SpecialChar LaTeX
20260  file
20261 \begin_inset Foot
20262 status collapsed
20263
20264 \begin_layout Plain Layout
20265 I can't imagine any good reason to do this.
20266 \end_layout
20267
20268 \end_inset
20269
20270 .
20271  Each article must be included in the environment 
20272 \begin_inset Quotes eld
20273 \end_inset
20274
20275 article
20276 \begin_inset Quotes erd
20277 \end_inset
20278
20279 .
20280  Unfortunately, this environment cannot be omitted, even if you write just
20281  one article.
20282  Therefore, each article starts with the command 
20283 \family typewriter
20284
20285 \backslash
20286 begin{article}
20287 \family default
20288  and, obviously, ends with the command 
20289 \family typewriter
20290
20291 \backslash
20292 end{article}
20293 \family default
20294 .
20295  Although this can be implemented in \SpecialChar LyX
20296 , I didn't included it, since it looks
20297  ugly and can confuse the novice user.
20298  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
20299  code (the
20300  well-known 
20301 \begin_inset Quotes eld
20302 \end_inset
20303
20304 \SpecialChar TeX
20305  code
20306 \begin_inset Quotes erd
20307 \end_inset
20308
20309 ).
20310 \end_layout
20311
20312 \begin_layout Enumerate
20313
20314 \change_deleted 564990737 1670317155
20315 Information given at the beginning of the article (i.
20316 \begin_inset space \thinspace{}
20317 \end_inset
20318
20319 e.
20320 \begin_inset space \space{}
20321 \end_inset
20322
20323 title, subtitle, author, institution, running title, running author, abstract
20324  and keywords) must be included in an environment called 
20325 \begin_inset Quotes eld
20326 \end_inset
20327
20328 opening
20329 \begin_inset Quotes erd
20330 \end_inset
20331
20332 .
20333  This is not implemented in \SpecialChar LyX
20334 , so you must enter title, subtitle etc.
20335 \begin_inset space ~
20336 \end_inset
20337
20338 between two \SpecialChar TeX
20339  code lines (
20340 \family typewriter
20341
20342 \backslash
20343 begin{opening}
20344 \family default
20345  and 
20346 \family typewriter
20347
20348 \backslash
20349 end{opening}
20350 \family default
20351 ).
20352 \end_layout
20353
20354 \begin_layout Enumerate
20355
20356 \change_deleted 564990737 1670317155
20357 According to the user manual, the label of each bibliography item must be
20358  written as 
20359 \family typewriter
20360
20361 \backslash
20362 protect
20363 \backslash
20364 citeauthoryear{
20365 \family default
20366 \emph on
20367 author(s)
20368 \family typewriter
20369 \emph default
20370 }{
20371 \family default
20372 \emph on
20373 year
20374 \family typewriter
20375 \emph default
20376 }
20377 \family default
20378 .
20379 \end_layout
20380
20381 \begin_layout Standard
20382
20383 \change_deleted 564990737 1670317155
20384 The 
20385 \family typewriter
20386 kluwer.lyx
20387 \family default
20388  template takes care of all these 
20389 \begin_inset Quotes eld
20390 \end_inset
20391
20392 peculiarities
20393 \begin_inset Quotes erd
20394 \end_inset
20395
20396 .
20397  If you start a new paper using this template you don't need to do anything
20398  special.
20399  Just 
20400 \end_layout
20401
20402 \begin_layout Enumerate
20403
20404 \change_deleted 564990737 1670317155
20405 don't delete the \SpecialChar TeX
20406  code included in the template, and
20407 \end_layout
20408
20409 \begin_layout Enumerate
20410
20411 \change_deleted 564990737 1670317155
20412 copy the example bibliography item included in the template and modify it
20413  as necessary to enter new bibliography items.
20414 \end_layout
20415
20416 \begin_layout Section
20417 Paper
20418 \end_layout
20419
20420 \begin_layout Standard
20421 The document class 
20422 \family sans
20423 paper
20424 \family default
20425  provides an alternative to the standard 
20426 \family sans
20427 article
20428 \family default
20429  class.
20430  It provides similar functionality, but you might prefer this layout with
20431  sans serif sections, headings, and more.
20432 \end_layout
20433
20434 \begin_layout Section
20435 Springer Journals (
20436 \family sans
20437 svjour
20438 \family default
20439 )
20440 \end_layout
20441
20442 \begin_layout Standard
20443 by 
20444 \noun on
20445 Martin Vermeer
20446 \end_layout
20447
20448 \begin_layout Subsection
20449 Description
20450 \end_layout
20451
20452 \begin_layout Standard
20453 These are the layout files for some of the journal formats used by Springer
20454  Verlag and listed on 
20455 \begin_inset Flex URL
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459
20460 http://www.springer.de/author/tex/help-journals.html
20461 \end_layout
20462
20463 \end_inset
20464
20465 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
20466  now!).
20467  It is a modular system: the things common to all journals are implemented
20468  in 
20469 \family typewriter
20470 svjour.inc
20471 \family default
20472 , which journal-specific layout files (such as, e.
20473 \begin_inset space \thinspace{}
20474 \end_inset
20475
20476 g.
20477 \begin_inset space \space{}
20478 \end_inset
20479
20480
20481 \family typewriter
20482 svjog.layout
20483 \family default
20484  for Journal of Geodesy) can include.
20485 \end_layout
20486
20487 \begin_layout Standard
20488 This means that implementing support for any other Springer journal on this
20489  list is as simple as writing your own 
20490 \family typewriter
20491 sv
20492 \family default
20493 <myjournal>
20494 \family typewriter
20495 .layout
20496 \family default
20497  file following the outline given in 
20498 \family typewriter
20499 svjog.layout
20500 \family default
20501 .
20502  
20503 \end_layout
20504
20505 \begin_layout Standard
20506 It is reasonably well tested only for the Journal of Geodesy.
20507  
20508 \family typewriter
20509 svjour
20510 \family default
20511  and 
20512 \family typewriter
20513 svjog
20514 \family default
20515  come with the standard \SpecialChar LyX
20516  distribution.
20517  Install the relevant class file (downloaded from Springer) in a proper
20518  directory, reconfigure \SpecialChar LaTeX
20519  (in the te\SpecialChar TeX
20520  case by running 
20521 \family typewriter
20522 texhash
20523 \family default
20524 , as root if necessary — doesn't \SpecialChar LyX
20525  take care of this?), reconfigure \SpecialChar LyX
20526  and
20527  it should work.
20528 \end_layout
20529
20530 \begin_layout Subsection
20531 New styles
20532 \end_layout
20533
20534 \begin_layout Standard
20535 A large number of theorem-like styles — 
20536 \family sans
20537 Claim, Conjecture,
20538 \family default
20539  
20540 \family sans
20541 \SpecialChar ldots
20542 Theorem
20543 \family default
20544 .
20545 \end_layout
20546
20547 \begin_layout Standard
20548
20549 \family sans
20550 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
20551 _Title, Author_Running, Institute,
20552  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
20553 \family default
20554 .
20555  See the Springer class file documentation for details.
20556 \end_layout
20557
20558 \begin_layout Subsection
20559 Supported journals
20560 \end_layout
20561
20562 \begin_layout Itemize
20563
20564 \emph on
20565 Journal of Geodesy
20566 \emph default
20567
20568 \family typewriter
20569 svjog.layout
20570 \family default
20571  — Martin Vermeer
20572 \end_layout
20573
20574 \begin_layout Itemize
20575
20576 \emph on
20577 Probability Theory and Related Fields
20578 \emph default
20579
20580 \family typewriter
20581 svprobth.layout
20582 \family default
20583  — Jean-Marc Lasgouttes
20584 \end_layout
20585
20586 \begin_layout Standard
20587 Add your own, it isn't so hard!
20588 \end_layout
20589
20590 \begin_layout Subsection
20591 Credits
20592 \end_layout
20593
20594 \begin_layout Standard
20595 These files are partly based on the older 
20596 \family typewriter
20597 ejour2.layout
20598 \family default
20599 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
20600  2.09 style
20601  file from Springer.
20602  All this, and the 
20603 \family typewriter
20604 ejour2
20605 \family default
20606  layout, are now defunct.
20607  Jean-Marc Lasgouttes helped out big in making me find my way around the
20608  \SpecialChar LyX
20609  layout file mechanism.
20610 \end_layout
20611
20612 \begin_layout Subsection
20613 Bugs
20614 \end_layout
20615
20616 \begin_layout Standard
20617 Probably.
20618  But probably less than in the old hacked-\SpecialChar LaTeX
20619  
20620 \family typewriter
20621 ejour2
20622 \family default
20623 .
20624 \end_layout
20625
20626 \begin_layout Chapter
20627 \SpecialChar LyX
20628  Features needing Extra Software
20629 \end_layout
20630
20631 \begin_layout Section
20632 Checking \SpecialChar TeX
20633
20634 \end_layout
20635
20636 \begin_layout Standard
20637 by 
20638 \noun on
20639 Asger Alstrup
20640 \end_layout
20641
20642 \begin_layout Subsection
20643 Introduction
20644 \end_layout
20645
20646 \begin_layout Standard
20647 If you have the 
20648 \family typewriter
20649 chktex
20650 \family default
20651  program installed
20652 \begin_inset Foot
20653 status collapsed
20654
20655 \begin_layout Plain Layout
20656
20657 \family typewriter
20658 chktex
20659 \family default
20660  is not yet available when you are using the \SpecialChar LaTeX
20661  distribution MiK\SpecialChar TeX
20662 .
20663 \end_layout
20664
20665 \end_inset
20666
20667 , you'll find in the 
20668 \family sans
20669 Tools
20670 \family default
20671  menu the entry: 
20672 \family sans
20673 Check
20674 \begin_inset space ~
20675 \end_inset
20676
20677 TeX
20678 \family default
20679 .
20680  You can get 
20681 \family typewriter
20682 chktex
20683 \family default
20684  from CTAN,
20685 \begin_inset Newline newline
20686 \end_inset
20687
20688
20689 \begin_inset CommandInset href
20690 LatexCommand href
20691 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
20692 literal "false"
20693
20694 \end_inset
20695
20696 .
20697 \end_layout
20698
20699 \begin_layout Standard
20700 The 
20701 \family sans
20702 Chk\SpecialChar TeX
20703
20704 \family default
20705  package is a program that was written by 
20706 \begin_inset Flex Noun
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 Jens T.
20711 \begin_inset space ~
20712 \end_inset
20713
20714 Berger Thielemann
20715 \end_layout
20716
20717 \end_inset
20718
20719  in frustration because some constructs in \SpecialChar LaTeX
20720  are sometimes non-intuitive,
20721  and easy to forget.
20722  The program runs over your \SpecialChar LaTeX
20723  file, checks the integrity of the file, and
20724  flags some common errors.
20725  In other technical words, it is 
20726 \family typewriter
20727 lint
20728 \family default
20729  for \SpecialChar LaTeX
20730 .
20731 \end_layout
20732
20733 \begin_layout Standard
20734 Well, what is a syntax checker doing in \SpecialChar LyX
20735  which is supposed to produce correct
20736  \SpecialChar LaTeX
20737  anyways? The answer is simple: Just as 
20738 \family typewriter
20739 Lint
20740 \family default
20741  not only checks the 
20742 \emph on
20743 syntax
20744 \emph default
20745  of C programs, but also does 
20746 \emph on
20747 semantic
20748 \emph default
20749  checks for type-errors, 
20750 \family sans
20751 Chk\SpecialChar TeX
20752
20753 \family default
20754  catches some common 
20755 \emph on
20756 typographic
20757 \emph default
20758  errors, in addition to the syntactical ones.
20759  Specifically, 
20760 \family sans
20761 Chk\SpecialChar TeX
20762
20763 \family default
20764  is capable of detecting several common errors, such as
20765 \end_layout
20766
20767 \begin_layout Itemize
20768 Ellipsis detection:
20769 \begin_inset Newline newline
20770 \end_inset
20771
20772 Use \SpecialChar ldots
20773  instead of ...
20774 \end_layout
20775
20776 \begin_layout Itemize
20777 No space in front of/after parenthesis:
20778 \begin_inset Newline newline
20779 \end_inset
20780
20781 ( wrong spacing )
20782 \end_layout
20783
20784 \begin_layout Itemize
20785 Enforcement of normal space after common abbreviations:
20786 \begin_inset Newline newline
20787 \end_inset
20788
20789 e.
20790 \begin_inset space \thinspace{}
20791 \end_inset
20792
20793 g.
20794 \begin_inset space \space{}
20795 \end_inset
20796
20797 is too wide spacing.
20798 \end_layout
20799
20800 \begin_layout Itemize
20801 Enforcement of end-of-sentence space when the last sentence ends with a
20802  capital letter:
20803 \begin_inset Newline newline
20804 \end_inset
20805
20806 This is a TEST.
20807  And this is wrong spacing.
20808 \end_layout
20809
20810 \begin_layout Itemize
20811 Space in front of labels and similar commands:
20812 \begin_inset Newline newline
20813 \end_inset
20814
20815 The label should stick right up to the text to avoid falling to a wrong
20816  page.
20817  
20818 \begin_inset CommandInset label
20819 LatexCommand label
20820 name "sec:chktex"
20821
20822 \end_inset
20823
20824  
20825 \begin_inset Foot
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 This footnote is in danger of falling off to a wrong page
20830 \end_layout
20831
20832 \end_inset
20833
20834  The label is separated too much.
20835 \end_layout
20836
20837 \begin_layout Itemize
20838 Space in front of references, instead of hard spaces:
20839 \begin_inset Newline newline
20840 \end_inset
20841
20842 If you have bad luck, the text will break right between the referenced text
20843  and reference number, and that's a pity.
20844  See section 
20845 \begin_inset CommandInset ref
20846 LatexCommand ref
20847 reference "sec:chktex"
20848
20849 \end_inset
20850
20851 .
20852 \end_layout
20853
20854 \begin_layout Itemize
20855 Use of 
20856 \begin_inset Quotes eld
20857 \end_inset
20858
20859 x
20860 \begin_inset Quotes erd
20861 \end_inset
20862
20863  instead of 
20864 \begin_inset Formula $\times$
20865 \end_inset
20866
20867  between numbers:
20868 \begin_inset Newline newline
20869 \end_inset
20870
20871 2x2 looks cheap compared to 
20872 \begin_inset Formula $2\times2$
20873 \end_inset
20874
20875 .
20876 \end_layout
20877
20878 \begin_layout Standard
20879 and more \SpecialChar ldots
20880  It is an invaluable tool when you are 
20881 \begin_inset Quotes eld
20882 \end_inset
20883
20884 finishing up
20885 \begin_inset Quotes erd
20886 \end_inset
20887
20888  your document before printing, and you should run it right after the obligatory
20889  spelling check, and before you go fine tuning the typesetting.
20890 \end_layout
20891
20892 \begin_layout Subsection
20893 How to use it
20894 \end_layout
20895
20896 \begin_layout Standard
20897 If you have the program installed, usage is as simple as choosing 
20898 \family sans
20899 Tools\SpecialChar menuseparator
20900 Check
20901 \begin_inset space ~
20902 \end_inset
20903
20904 TeX
20905 \family default
20906 .
20907  This will make \SpecialChar LyX
20908  generate a \SpecialChar LaTeX
20909  file of your document, start 
20910 \family sans
20911 Chk\SpecialChar TeX
20912
20913 \family default
20914  to check it, and then make \SpecialChar LyX
20915  insert 
20916 \begin_inset Quotes eld
20917 \end_inset
20918
20919 error boxes
20920 \begin_inset Quotes erd
20921 \end_inset
20922
20923  with the warnings from 
20924 \family sans
20925 Chk\SpecialChar TeX
20926
20927 \family default
20928 , if there were any.
20929  The warnings will be placed close to the point of the mistake, and you
20930  can quickly find them by using the 
20931 \family sans
20932 Navigate\SpecialChar menuseparator
20933 Error
20934 \family default
20935  menu item, or the shortcut key 
20936 \family sans
20937 C-g
20938 \family default
20939  from the default 
20940 \family typewriter
20941 cua
20942 \family default
20943  bind file.
20944  Open the error boxes by clicking on them with the mouse, or use the shortcut
20945  key 
20946 \family sans
20947 C-i
20948 \family default
20949  from 
20950 \family typewriter
20951 cua
20952 \family default
20953  bindings, or the corresponding 
20954 \family sans
20955 C-o
20956 \family default
20957  for the alternate 
20958 \family typewriter
20959 emacs
20960 \family default
20961  bind file.
20962  Read the warning and correct the mistake, if it is a mistake.
20963  If you have trouble understanding what the warning is about, you can safely
20964  ignore it.
20965  Remember that there is a hidden layer between the document on screen and
20966  the technical details in invoking 
20967 \family sans
20968 Chk\SpecialChar TeX
20969
20970 \family default
20971 , and this gap can make some warnings seem arcane or just plain silly.
20972 \end_layout
20973
20974 \begin_layout Standard
20975 This document is an excellent testing bed for the feature, and it should
20976  provide quite a few warnings for you to fiddle with.
20977  Since computers are only so smart, expect most of the warnings to be false
20978  alarms, though.
20979 \end_layout
20980
20981 \begin_layout Subsection
20982 How to fine tune it
20983 \end_layout
20984
20985 \begin_layout Standard
20986 Sometimes, you'll find that 
20987 \family sans
20988 Chk\SpecialChar TeX
20989
20990 \family default
20991  makes more noise than suits your mood.
20992  Then you can choose not to use it, wait until your mood changes, or try
20993  to customize 
20994 \family sans
20995 Chk\SpecialChar TeX
20996
20997 \family default
20998  to get better along with you.
20999 \end_layout
21000
21001 \begin_layout Standard
21002 Although 
21003 \family sans
21004 Chk\SpecialChar TeX
21005
21006 \family default
21007  
21008 \emph on
21009 is
21010 \emph default
21011  very configurable and extensible, you should not expect to solve all problems
21012  with 
21013 \family sans
21014 Chk\SpecialChar TeX
21015
21016 \family default
21017  in \SpecialChar LyX
21018  this way.
21019  Since \SpecialChar LyX
21020  has to generate a somewhat special \SpecialChar LaTeX
21021  file to be able to match the
21022  line numbers from the 
21023 \family sans
21024 Chk\SpecialChar TeX
21025
21026 \family default
21027  output
21028 \begin_inset Foot
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 You can inspect the specific output from 
21033 \family sans
21034 chktex
21035 \family default
21036  by using 
21037 \family sans
21038 Document\SpecialChar menuseparator
21039 \SpecialChar LaTeX
21040
21041 \begin_inset space ~
21042 \end_inset
21043
21044 Log
21045 \family default
21046  right after a 
21047 \family sans
21048 chktex
21049 \family default
21050  run.
21051 \end_layout
21052
21053 \end_inset
21054
21055  to the internal document structure, some of the warnings will not appear
21056  correctly.
21057  There are two things you can do about this:
21058 \end_layout
21059
21060 \begin_layout Itemize
21061 Fine tune the 
21062 \family sans
21063 Chk\SpecialChar TeX
21064
21065 \family default
21066  invocation command line in 
21067 \begin_inset Flex Noun
21068 status collapsed
21069
21070 \begin_layout Plain Layout
21071 Tools\SpecialChar menuseparator
21072 Preferences\SpecialChar menuseparator
21073 Output\SpecialChar menuseparator
21074 LaTeX\SpecialChar menuseparator
21075 CheckTeX command
21076 \end_layout
21077
21078 \end_inset
21079
21080 , or the global 
21081 \family sans
21082 Chk\SpecialChar TeX
21083
21084 \family default
21085  installation configuration file (usually with the file 
21086 \family typewriter
21087 chktexrc
21088 \family default
21089 ).
21090  See below to learn what warnings can be enabled and disabled on the command
21091  line.
21092 \end_layout
21093
21094 \begin_layout Itemize
21095 Export your document as a raw \SpecialChar LaTeX
21096  file using 
21097 \family sans
21098 File\SpecialChar menuseparator
21099 Export\SpecialChar menuseparator
21100 \SpecialChar LaTeX
21101
21102 \family default
21103  and run 
21104 \family typewriter
21105 chktex
21106 \family default
21107  manually on that.
21108  Invoked in this way, it can be a hassle to find the corresponding place
21109  in the document inside \SpecialChar LyX
21110 , but with a little patience, you should be able
21111  to do it.
21112 \end_layout
21113
21114 \begin_layout Standard
21115 Here follows the warning messages that can be enabled and disabled in 
21116 \family sans
21117 Preferences
21118 \family default
21119 .
21120  Use 
21121 \family typewriter
21122 -n#
21123 \family default
21124  to disable a warning, and 
21125 \family typewriter
21126 -w#
21127 \family default
21128  to enable a warning.
21129  The emphasized entries are disabled by default, because the default is
21130  "
21131 \family typewriter
21132 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
21133 \family default
21134 ".
21135 \end_layout
21136
21137 \begin_layout Standard
21138 Notice that you should only use the options that enable and disable warnings,
21139  because \SpecialChar LyX
21140  relies on some of the other command line parameters to be set
21141  in a specific way to have a chance to communicate with 
21142 \family typewriter
21143 chktex
21144 \family default
21145 .
21146 \end_layout
21147
21148 \begin_layout Enumerate
21149
21150 \size small
21151 \emph on
21152 Command terminated with space.
21153 \end_layout
21154
21155 \begin_layout Enumerate
21156
21157 \size small
21158 Non-breaking space (
21159 \begin_inset Quotes eld
21160 \end_inset
21161
21162
21163 \family typewriter
21164 ~
21165 \family default
21166
21167 \begin_inset Quotes erd
21168 \end_inset
21169
21170 ) should have been used.
21171 \end_layout
21172
21173 \begin_layout Enumerate
21174
21175 \size small
21176 \emph on
21177 You should enclose the previous parenthesis with 
21178 \begin_inset Quotes eld
21179 \end_inset
21180
21181
21182 \family typewriter
21183 {}
21184 \family default
21185
21186 \begin_inset Quotes erd
21187 \end_inset
21188
21189 .
21190 \end_layout
21191
21192 \begin_layout Enumerate
21193
21194 \size small
21195 Italic correction (
21196 \begin_inset Quotes eld
21197 \end_inset
21198
21199
21200 \family typewriter
21201
21202 \backslash
21203 /
21204 \family default
21205
21206 \begin_inset Quotes erd
21207 \end_inset
21208
21209 ) found in non-italic buffer.
21210 \end_layout
21211
21212 \begin_layout Enumerate
21213
21214 \size small
21215 Italic correction (
21216 \begin_inset Quotes eld
21217 \end_inset
21218
21219
21220 \family typewriter
21221
21222 \backslash
21223 /
21224 \family default
21225
21226 \begin_inset Quotes erd
21227 \end_inset
21228
21229 ) found more than once.
21230 \end_layout
21231
21232 \begin_layout Enumerate
21233
21234 \size small
21235 \emph on
21236 No italic correction (
21237 \begin_inset Quotes eld
21238 \end_inset
21239
21240
21241 \family typewriter
21242
21243 \backslash
21244 /
21245 \family default
21246
21247 \begin_inset Quotes erd
21248 \end_inset
21249
21250 ) found.
21251 \end_layout
21252
21253 \begin_layout Enumerate
21254
21255 \size small
21256 Accent command 
21257 \begin_inset Quotes eld
21258 \end_inset
21259
21260
21261 \family typewriter
21262 cmd
21263 \family default
21264
21265 \begin_inset Quotes erd
21266 \end_inset
21267
21268  needs use of 
21269 \begin_inset Quotes eld
21270 \end_inset
21271
21272
21273 \family typewriter
21274 cmd
21275 \family default
21276
21277 \begin_inset Quotes erd
21278 \end_inset
21279
21280 .
21281 \end_layout
21282
21283 \begin_layout Enumerate
21284
21285 \size small
21286 Wrong length of dash may have been used.
21287 \end_layout
21288
21289 \begin_layout Enumerate
21290
21291 \size small
21292 \emph on
21293 \begin_inset Quotes eld
21294 \end_inset
21295
21296
21297 \family typewriter
21298 %s
21299 \family default
21300
21301 \begin_inset Quotes erd
21302 \end_inset
21303
21304  expected, found 
21305 \begin_inset Quotes eld
21306 \end_inset
21307
21308
21309 \family typewriter
21310 %s
21311 \family default
21312
21313 \begin_inset Quotes erd
21314 \end_inset
21315
21316 .
21317 \end_layout
21318
21319 \begin_layout Enumerate
21320
21321 \size small
21322 Solo 
21323 \begin_inset Quotes eld
21324 \end_inset
21325
21326
21327 \family typewriter
21328 %s
21329 \family default
21330
21331 \begin_inset Quotes erd
21332 \end_inset
21333
21334  found.
21335 \end_layout
21336
21337 \begin_layout Enumerate
21338
21339 \size small
21340 You should use 
21341 \begin_inset Quotes eld
21342 \end_inset
21343
21344
21345 \family typewriter
21346 %s
21347 \family default
21348
21349 \begin_inset Quotes erd
21350 \end_inset
21351
21352  to achieve an ellipsis.
21353 \end_layout
21354
21355 \begin_layout Enumerate
21356
21357 \size small
21358 Inter-word spacing (
21359 \begin_inset Quotes eld
21360 \end_inset
21361
21362
21363 \family typewriter
21364
21365 \backslash
21366
21367 \family default
21368  
21369 \begin_inset Quotes eld
21370 \end_inset
21371
21372 ) should perhaps be used.
21373 \end_layout
21374
21375 \begin_layout Enumerate
21376
21377 \size small
21378 Inter-sentence spacing (
21379 \begin_inset Quotes eld
21380 \end_inset
21381
21382
21383 \family typewriter
21384
21385 \backslash
21386 @
21387 \family default
21388
21389 \begin_inset Quotes erd
21390 \end_inset
21391
21392 ) should perhaps be used.
21393 \end_layout
21394
21395 \begin_layout Enumerate
21396
21397 \size small
21398 Could not find argument for command.
21399 \end_layout
21400
21401 \begin_layout Enumerate
21402
21403 \size small
21404 No match found for 
21405 \begin_inset Quotes eld
21406 \end_inset
21407
21408
21409 \family typewriter
21410 %s
21411 \family default
21412
21413 \begin_inset Quotes erd
21414 \end_inset
21415
21416 .
21417 \end_layout
21418
21419 \begin_layout Enumerate
21420
21421 \size small
21422 Math mode still on at end of \SpecialChar LaTeX
21423  file.
21424 \end_layout
21425
21426 \begin_layout Enumerate
21427
21428 \size small
21429 Number of 
21430 \begin_inset Quotes eld
21431 \end_inset
21432
21433
21434 \family typewriter
21435 char
21436 \family default
21437
21438 \begin_inset Quotes erd
21439 \end_inset
21440
21441  doesn't match the number of 
21442 \begin_inset Quotes eld
21443 \end_inset
21444
21445
21446 \family typewriter
21447 char
21448 \family default
21449
21450 \begin_inset Quotes erd
21451 \end_inset
21452
21453 .
21454 \end_layout
21455
21456 \begin_layout Enumerate
21457
21458 \size small
21459 You should use either 
21460 \family typewriter
21461
21462 \begin_inset Quotes eld
21463 \end_inset
21464
21465
21466 \family default
21467  or 
21468 \family typewriter
21469
21470 \begin_inset Quotes erd
21471 \end_inset
21472
21473
21474 \family default
21475  as an alternative to 
21476 \begin_inset Quotes eld
21477 \end_inset
21478
21479
21480 \family typewriter
21481 "
21482 \family default
21483
21484 \begin_inset Quotes erd
21485 \end_inset
21486
21487 .
21488 \end_layout
21489
21490 \begin_layout Enumerate
21491
21492 \size small
21493 You should use "
21494 \family typewriter
21495 '
21496 \family default
21497 " (ASCII 39) instead of "
21498 \family typewriter
21499 ´
21500 \family default
21501 " (ASCII 180).
21502 \end_layout
21503
21504 \begin_layout Enumerate
21505
21506 \size small
21507 User-specified pattern found.
21508 \end_layout
21509
21510 \begin_layout Enumerate
21511
21512 \size small
21513 This command might not be intended.
21514 \end_layout
21515
21516 \begin_layout Enumerate
21517
21518 \size small
21519 \emph on
21520 Comment displayed.
21521 \end_layout
21522
21523 \begin_layout Enumerate
21524
21525 \size small
21526 Either 
21527 \family typewriter
21528 ''
21529 \backslash
21530 ,'
21531 \family default
21532  or 
21533 \family typewriter
21534 '
21535 \backslash
21536 ,''
21537 \family default
21538  will look better.
21539 \end_layout
21540
21541 \begin_layout Enumerate
21542
21543 \size small
21544 Delete this space to maintain correct page references.
21545 \end_layout
21546
21547 \begin_layout Enumerate
21548
21549 \size small
21550 \emph on
21551 You might wish to put this between a pair of 
21552 \begin_inset Quotes eld
21553 \end_inset
21554
21555
21556 \family typewriter
21557 {}
21558 \family default
21559
21560 \begin_inset Quotes erd
21561 \end_inset
21562
21563 .
21564 \end_layout
21565
21566 \begin_layout Enumerate
21567
21568 \size small
21569 You ought to remove spaces in front of punctuation.
21570 \end_layout
21571
21572 \begin_layout Enumerate
21573
21574 \size small
21575 Could not execute \SpecialChar LaTeX
21576  command.
21577 \end_layout
21578
21579 \begin_layout Enumerate
21580
21581 \size small
21582 Don't use 
21583 \family typewriter
21584
21585 \backslash
21586 /
21587 \family default
21588  in front of small punctuation.
21589 \end_layout
21590
21591 \begin_layout Enumerate
21592
21593 \family typewriter
21594 \size small
21595 $
21596 \backslash
21597 times$
21598 \family default
21599  may look prettier here.
21600 \end_layout
21601
21602 \begin_layout Enumerate
21603
21604 \size small
21605 \emph on
21606 Multiple spaces detected in output.
21607 \end_layout
21608
21609 \begin_layout Enumerate
21610
21611 \size small
21612 This text may be ignored.
21613 \end_layout
21614
21615 \begin_layout Enumerate
21616
21617 \size small
21618 Use 
21619 \family typewriter
21620
21621 \begin_inset Quotes eld
21622 \end_inset
21623
21624
21625 \family default
21626  to begin quotation, not 
21627 \family typewriter
21628 '
21629 \family default
21630 .
21631 \end_layout
21632
21633 \begin_layout Enumerate
21634
21635 \size small
21636 Use 
21637 \family typewriter
21638 '
21639 \family default
21640  to end quotation, not 
21641 \family typewriter
21642
21643 \begin_inset Quotes eld
21644 \end_inset
21645
21646
21647 \family default
21648 .
21649 \end_layout
21650
21651 \begin_layout Enumerate
21652
21653 \size small
21654 Don't mix quotes.
21655 \end_layout
21656
21657 \begin_layout Enumerate
21658
21659 \size small
21660 You should perhaps use 
21661 \begin_inset Quotes eld
21662 \end_inset
21663
21664
21665 \family typewriter
21666 cmd
21667 \family default
21668
21669 \begin_inset Quotes erd
21670 \end_inset
21671
21672  instead.
21673 \end_layout
21674
21675 \begin_layout Enumerate
21676
21677 \size small
21678 You should put a space in front of/after parenthesis.
21679 \end_layout
21680
21681 \begin_layout Enumerate
21682
21683 \size small
21684 You should avoid spaces in front of/after parenthesis.
21685 \end_layout
21686
21687 \begin_layout Enumerate
21688
21689 \size small
21690 \emph on
21691 You should not use punctuation in front of/after quotes.
21692 \end_layout
21693
21694 \begin_layout Enumerate
21695
21696 \size small
21697 Double space found.
21698 \end_layout
21699
21700 \begin_layout Enumerate
21701
21702 \size small
21703 You should put punctuation outside inner/inside display math mode.
21704 \end_layout
21705
21706 \begin_layout Enumerate
21707
21708 \size small
21709 You ought to not use primitive \SpecialChar TeX
21710  in \SpecialChar LaTeX
21711  code.
21712 \end_layout
21713
21714 \begin_layout Enumerate
21715
21716 \size small
21717 You should remove spaces in front of 
21718 \begin_inset Quotes eld
21719 \end_inset
21720
21721
21722 \family typewriter
21723 %s
21724 \family default
21725
21726 \begin_inset Quotes erd
21727 \end_inset
21728
21729
21730 \end_layout
21731
21732 \begin_layout Enumerate
21733
21734 \size small
21735 \begin_inset Quotes eld
21736 \end_inset
21737
21738
21739 \family typewriter
21740 %s
21741 \family default
21742
21743 \begin_inset Quotes erd
21744 \end_inset
21745
21746  is normally not followed by 
21747 \begin_inset Quotes eld
21748 \end_inset
21749
21750
21751 \family typewriter
21752 %c
21753 \family default
21754
21755 \begin_inset Quotes erd
21756 \end_inset
21757
21758 .
21759 \end_layout
21760
21761 \begin_layout Standard
21762 In later versions of \SpecialChar LyX
21763 , we hope to provide a more complete interface to this
21764  tool (and it's smaller cousin 
21765 \family typewriter
21766 lacheck
21767 \family default
21768 ) to exploit the full power of it.
21769  But it's not exactly useless as it is now: go try it on one of your existing
21770  documents of a certain length and be surprised.
21771 \end_layout
21772
21773 \begin_layout Section
21774 Version Control in \SpecialChar LyX
21775
21776 \end_layout
21777
21778 \begin_layout Standard
21779 by
21780 \noun on
21781  Lars Gullik Bjønnes 
21782 \noun default
21783 and 
21784 \noun on
21785 Pavel Sanda
21786 \end_layout
21787
21788 \begin_layout Subsection
21789 Introduction
21790 \end_layout
21791
21792 \begin_layout Standard
21793 \SpecialChar LyX
21794  supports some of the most basic RCS/CVS/SVN/GIT commands.
21795  If you need something a bit more sophisticated you will have to do that
21796  manually in a terminal.
21797 \end_layout
21798
21799 \begin_layout Standard
21800 Also note that CVS support is not as good as subversion support, so we advise
21801  using SVN instead.
21802  A good place to start learning Subversion is the SVN Book
21803 \begin_inset Foot
21804 status collapsed
21805
21806 \begin_layout Plain Layout
21807 \begin_inset CommandInset href
21808 LatexCommand href
21809 target "http://svnbook.red-bean.com/"
21810 literal "false"
21811
21812 \end_inset
21813
21814
21815 \end_layout
21816
21817 \end_inset
21818
21819 .
21820  In the case of RCS you should read 
21821 \begin_inset Quotes eld
21822 \end_inset
21823
21824 rcsintro
21825 \begin_inset Quotes erd
21826 \end_inset
21827
21828  (a man file, read it with 
21829 \family typewriter
21830 man rcsintro
21831 \family default
21832 ).
21833  This file describes all the basic features of RCS.
21834  You should especially notice the comment about a RCS directory, and the
21835  notion of a master RCS file (the file ending in 
21836 \family typewriter
21837 ,v
21838 \family default
21839 ).
21840 \end_layout
21841
21842 \begin_layout Standard
21843 Before you begin to use the version control features in \SpecialChar LyX
21844 , you should be
21845  familiar with RCS/CVS/SVN/GIT usage.
21846  The implementation in \SpecialChar LyX
21847  assumes a recent version of the GNU RCS or CVS/SVN
21848  package — no guarantees are made for older versions.
21849  Most of the log messages are not currently displayed after operations —
21850  you can check them in the Messages pane if you are unsure.
21851  Regular users of version control will appreciate the VC toolbar, which
21852  can be enabled via 
21853 \family sans
21854 View\SpecialChar menuseparator
21855 Toolbars\SpecialChar menuseparator
21856 Version
21857 \begin_inset space ~
21858 \end_inset
21859
21860 Control
21861 \family default
21862 .
21863 \end_layout
21864
21865 \begin_layout Standard
21866 For introducing your own external commands consult 
21867 \begin_inset Flex Code
21868 status collapsed
21869
21870 \begin_layout Plain Layout
21871 vc-command
21872 \end_layout
21873
21874 \end_inset
21875
21876  in the manual 
21877 \emph on
21878 \SpecialChar LyX
21879  Functions
21880 \emph default
21881 .
21882 \end_layout
21883
21884 \begin_layout Standard
21885 It is strongly recommended to store documents in uncompressed format if
21886  using version control (uncheck 
21887 \family sans
21888 Document\SpecialChar menuseparator
21889 Compressed
21890 \family default
21891  if it is checked): Uncompressed LyX documents are text files and therefore
21892  for merging two different versions by version control systems.
21893  Compressed LyX documents are binary files, which cannot be merged by version
21894  control systems.
21895 \end_layout
21896
21897 \begin_layout Subsection
21898 RCS commands in \SpecialChar LyX
21899
21900 \end_layout
21901
21902 \begin_layout Standard
21903 The following sections describe the RCS commands supported by \SpecialChar LyX
21904 .
21905  You can find them in the 
21906 \family sans
21907 File\SpecialChar menuseparator
21908 Version
21909 \begin_inset space ~
21910 \end_inset
21911
21912 Control
21913 \family default
21914  submenu.
21915  \SpecialChar LyX
21916  was tested against RCS 5.7/5.8.
21917 \end_layout
21918
21919 \begin_layout Subsubsection
21920
21921 \family sans
21922 Register
21923 \end_layout
21924
21925 \begin_layout Standard
21926 If your document is not under revision control, this is the only item shown
21927  in the menu.
21928  And if it is under revision control, the 
21929 \family sans
21930 Register
21931 \family default
21932  item is not visible.
21933  
21934 \end_layout
21935
21936 \begin_layout Standard
21937 This command registers your document with RCS (unless you are under the
21938  directory managed by CVS)\SpecialChar endofsentence
21939  You are asked interactively to supply an initial
21940  description of the document.
21941  The document is now set in Read-Only mode and you have to 
21942 \family sans
21943 Check
21944 \begin_inset space ~
21945 \end_inset
21946
21947 Out
21948 \begin_inset space ~
21949 \end_inset
21950
21951 For
21952 \begin_inset space ~
21953 \end_inset
21954
21955 Edit
21956 \family default
21957 , before making any changes to it.
21958  A document under revision control has a 
21959 \begin_inset Quotes eld
21960 \end_inset
21961
21962 [RCS:<version> <locker>]
21963 \begin_inset Quotes erd
21964 \end_inset
21965
21966  item tagged to the filename in the minibuffer.
21967 \end_layout
21968
21969 \begin_layout Standard
21970 RCS command that is run:
21971 \end_layout
21972
21973 \begin_layout LyX-Code
21974
21975 \family typewriter
21976 ci -q -u -i -t-"<initial description>" <file-name>
21977 \end_layout
21978
21979 \begin_layout Standard
21980 Read 
21981 \family typewriter
21982 man ci
21983 \family default
21984  to understand the switches.
21985  
21986 \end_layout
21987
21988 \begin_layout Subsubsection
21989
21990 \family sans
21991 Check In Changes
21992 \end_layout
21993
21994 \begin_layout Standard
21995 When you are finished editing a file, you check in your changes.
21996  When you do this, you are asked for a description of the changes.
21997  This is stored in the history log.
21998  The version number is bumped, your changes are applied to the master RCS
21999  file, the document is unlocked and set to Read-Only mode.
22000 \end_layout
22001
22002 \begin_layout Itemize
22003 RCS command: 
22004 \family typewriter
22005 ci -q -u -m"<description>" <file-name>
22006 \end_layout
22007
22008 \begin_layout Subsubsection
22009
22010 \family sans
22011 Check Out For Edit
22012 \end_layout
22013
22014 \begin_layout Standard
22015 By doing this you lock the document so that only you can edit it.
22016  This will also make the document Read-Write only for you.
22017  You will usually continue editing for a while and when you are finished
22018  you check in your changes.
22019  The status line is changed to reflect that you have locked the file.
22020 \end_layout
22021
22022 \begin_layout Itemize
22023 RCS command: 
22024 \family typewriter
22025 co -q -l <file-name>
22026 \end_layout
22027
22028 \begin_layout Subsubsection
22029
22030 \family sans
22031 Revert To Repository Version
22032 \end_layout
22033
22034 \begin_layout Standard
22035 This will discard all changes made to the document since the last check
22036  in.
22037  You get a warning before changes are discarded.
22038 \end_layout
22039
22040 \begin_layout Itemize
22041 RCS command: 
22042 \family typewriter
22043 co -f -u<version> <file-name>
22044 \end_layout
22045
22046 \begin_layout Subsubsection
22047
22048 \family sans
22049 Copy
22050 \end_layout
22051
22052 \begin_layout Standard
22053 This will create a copy of the current document.
22054  Since RCS does not support copy operations natively, the version history
22055  is not preserved, and the copy is added as a new file.
22056  It requires a clean document without any changes since the last checkin.
22057  You are asked for a file name and a description of the copy operation.
22058  After that the copy is created, both locally and in the repository.
22059  If the parent directories of the copied and original document differ, all
22060  relative paths of included files of the copy are adjusted (like in 
22061 \family sans
22062 File\SpecialChar menuseparator
22063 Save As
22064 \family default
22065 \SpecialChar ldots
22066 ).
22067  Finally, the copy is loaded instead of the original document.
22068 \end_layout
22069
22070 \begin_layout Labeling
22071 \labelwidthstring 00.00.0000
22072 RCS
22073 \begin_inset space ~
22074 \end_inset
22075
22076 commands: 
22077 \begin_inset space ~
22078 \end_inset
22079
22080
22081 \begin_inset Newline newline
22082 \end_inset
22083
22084 Copy 
22085 \begin_inset Flex Code
22086 status collapsed
22087
22088 \begin_layout Plain Layout
22089
22090 \family typewriter
22091 \begin_inset Quotes qld
22092 \end_inset
22093
22094 <file-name>
22095 \begin_inset Quotes qld
22096 \end_inset
22097
22098
22099 \end_layout
22100
22101 \end_inset
22102
22103  to 
22104 \begin_inset Flex Code
22105 status collapsed
22106
22107 \begin_layout Plain Layout
22108
22109 \family typewriter
22110 \begin_inset Quotes qld
22111 \end_inset
22112
22113 <new-file-name>
22114 \begin_inset Quotes qld
22115 \end_inset
22116
22117
22118 \end_layout
22119
22120 \end_inset
22121
22122
22123 \begin_inset Newline newline
22124 \end_inset
22125
22126
22127 \begin_inset Flex Code
22128 status collapsed
22129
22130 \begin_layout Plain Layout
22131 ci -q -u 
22132 \family typewriter
22133 -i 
22134 \begin_inset Quotes qld
22135 \end_inset
22136
22137 <new-file-name>
22138 \begin_inset Quotes qld
22139 \end_inset
22140
22141
22142 \end_layout
22143
22144 \end_inset
22145
22146
22147 \end_layout
22148
22149 \begin_layout Subsubsection
22150
22151 \family sans
22152 Undo Last Checkin
22153 \end_layout
22154
22155 \begin_layout Standard
22156 This makes as if the last check in never happened.
22157  No changes are made to the document loaded into \SpecialChar LyX
22158 , but the last version
22159  is removed from the master RCS file.
22160 \end_layout
22161
22162 \begin_layout Itemize
22163 RCS command: 
22164 \family typewriter
22165 rcs -o<version> <file-name>
22166 \end_layout
22167
22168 \begin_layout Subsubsection
22169
22170 \family sans
22171 Show History
22172 \end_layout
22173
22174 \begin_layout Standard
22175 This shows the complete history of the RCS document.
22176  The output of 
22177 \family typewriter
22178 rlog <file-name>
22179 \family default
22180  is shown in a browser.
22181  See 
22182 \family typewriter
22183 man rlog
22184 \family default
22185  for more info.
22186 \end_layout
22187
22188 \begin_layout Subsubsection
22189 Revision info
22190 \end_layout
22191
22192 \begin_layout Standard
22193 \SpecialChar LyX
22194  supports RCS version number, author name, date and time of last commit.
22195  All those are extracted from 
22196 \family typewriter
22197 rlog -r <file-name>
22198 \family default
22199 .
22200  See 
22201 \begin_inset CommandInset ref
22202 LatexCommand ref
22203 reference "subsec:VCS-Revision-Information"
22204
22205 \end_inset
22206
22207  for details.
22208 \end_layout
22209
22210 \begin_layout Subsection
22211 CVS commands in \SpecialChar LyX
22212
22213 \end_layout
22214
22215 \begin_layout Standard
22216 A subset of CVS operations is supported by \SpecialChar LyX
22217 .
22218  You can find the commands in the 
22219 \family sans
22220 File\SpecialChar menuseparator
22221 Version
22222 \begin_inset space ~
22223 \end_inset
22224
22225 Control
22226 \family default
22227  submenu.
22228  The version control system SVN is more powerful, so please use it instead
22229  of CVS if possible.
22230 \end_layout
22231
22232 \begin_layout Subsubsection
22233
22234 \family sans
22235 General CVS usage
22236 \end_layout
22237
22238 \begin_layout Standard
22239 If you start from scratch with CVS you have to create your repository and
22240  checkout the working copy with external tools.
22241  If you're using a client-server setup you may need to login before doing
22242  the first repository checkout.
22243 \end_layout
22244
22245 \begin_layout Standard
22246 If your documents are under revision control and others are using the same
22247  repository problems arise when different changes to the same document at
22248  the same location happen.
22249  Standard CVS repositories don't operate with a file locking mechanism.
22250  This may be surprising, but conflicts only occur if people disagree on
22251  the proper content of the same part of a document.
22252  So, if co-workers are used to communicate regularly, these conflicts occur
22253  rarely.
22254  If they don't communicate they have a fundamental problem anyway.
22255  Nevertheless some people like to work with so called 
22256 \begin_inset Quotes eld
22257 \end_inset
22258
22259 reserved checkouts
22260 \begin_inset Quotes erd
22261 \end_inset
22262
22263 .
22264  If they do so the working copy of all files is readonly when checked out
22265  first and the user starts editing after using a special command to make
22266  the working copy writable.
22267  When the changes are checked in the working copy returns to readonly state.
22268  With \SpecialChar LyX
22269  one has to edit the 
22270 \begin_inset Flex Code
22271 status collapsed
22272
22273 \begin_layout Plain Layout
22274 .cvsrc
22275 \end_layout
22276
22277 \end_inset
22278
22279  file and add the line 
22280 \begin_inset Flex Code
22281 status collapsed
22282
22283 \begin_layout Plain Layout
22284 cvs -r
22285 \end_layout
22286
22287 \end_inset
22288
22289  to work with reserved checkouts.
22290  The benefit is the possibility to see who is using a writable copy of some
22291  document.
22292  It's not guaranteed only one user makes a copy writable.
22293 \end_layout
22294
22295 \begin_layout Standard
22296 \SpecialChar LyX
22297  tries to guess if you're using reserved or non-reserved checkouts.
22298  If your working copy is readonly or it is writable and an additional copy
22299  of your document exists in the CVS/Base sub-directory a reserved otherwise
22300  a non-reserved checkout is assumed.
22301  When a reserved checkout is detected you have to use 
22302 \begin_inset Flex Noun
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 Check Out
22307 \end_layout
22308
22309 \end_inset
22310
22311  to make your working copy writable if it's readonly.
22312  After doing so the 
22313 \begin_inset Flex Noun
22314 status collapsed
22315
22316 \begin_layout Plain Layout
22317 Check In
22318 \end_layout
22319
22320 \end_inset
22321
22322  operation is possible and that makes your working copy readonly again after
22323  transferring your changes to the repository.
22324 \end_layout
22325
22326 \begin_layout Standard
22327 More information about CVS can be found here 
22328 \begin_inset Flex URL
22329 status collapsed
22330
22331 \begin_layout Plain Layout
22332
22333 http://www.nongnu.org/cvs
22334 \end_layout
22335
22336 \end_inset
22337
22338  and here 
22339 \begin_inset Flex URL
22340 status collapsed
22341
22342 \begin_layout Plain Layout
22343
22344 http://ximbiot.com/cvs
22345 \end_layout
22346
22347 \end_inset
22348
22349 .
22350 \end_layout
22351
22352 \begin_layout Standard
22353 Read 
22354 \family typewriter
22355 man cvs
22356 \family default
22357  to understand the sub-commands and the switches mentioned below.
22358 \end_layout
22359
22360 \begin_layout Subsubsection
22361
22362 \family sans
22363 Register
22364 \end_layout
22365
22366 \begin_layout Standard
22367 If your document is not under revision control, this is the only item shown
22368  in the menu.
22369  And if it is under revision control, the 
22370 \family sans
22371 Register
22372 \family default
22373  item is not visible.
22374  
22375 \end_layout
22376
22377 \begin_layout Standard
22378 This command registers in CVS your document 
22379 \begin_inset Flex Strong
22380 status collapsed
22381
22382 \begin_layout Plain Layout
22383
22384 \emph on
22385 only
22386 \end_layout
22387
22388 \end_inset
22389
22390  in the case you have already the documents directory under CVS control
22391  (in particular 
22392 \family typewriter
22393 CVS/Entries
22394 \family default
22395  file exists).
22396  This means you have to create or checkout the archive by yourself using
22397  external tools.
22398  (In case you forget that step \SpecialChar LyX
22399  registers the document with RCS.)
22400 \end_layout
22401
22402 \begin_layout Standard
22403 Then you are asked interactively to supply an initial description of the
22404  document.
22405  Don't forget that registered file is not yet checked in.
22406 \end_layout
22407
22408 \begin_layout Standard
22409 CVS command that is run: 
22410 \family typewriter
22411 cvs -q add -m"<entered message>" "<file-name>"
22412 \end_layout
22413
22414 \begin_layout Standard
22415 The term 
22416 \family typewriter
22417 "<file-name>"
22418 \family default
22419  above and for all other CVS commands is an abbreviation for 
22420 \begin_inset Quotes eld
22421 \end_inset
22422
22423 change the current working directory to file location and use the file name
22424  without path component as argument
22425 \begin_inset Quotes erd
22426 \end_inset
22427
22428 .
22429 \end_layout
22430
22431 \begin_layout Subsubsection
22432
22433 \family sans
22434 Check In Changes
22435 \end_layout
22436
22437 \begin_layout Standard
22438 When you are finished editing a file, you commit your changes.
22439  When you do this and you had changed the document, you are asked for a
22440  description of the changes.
22441  After that changes are written to the repository.
22442  In case you didn't change the document and a reserved checkout is detected
22443  the reservation made on 
22444 \begin_inset Flex Noun
22445 status collapsed
22446
22447 \begin_layout Plain Layout
22448 Check Out
22449 \end_layout
22450
22451 \end_inset
22452
22453  is undone.
22454 \end_layout
22455
22456 \begin_layout Labeling
22457 \labelwidthstring 00.00.0000
22458 CVS
22459 \begin_inset space ~
22460 \end_inset
22461
22462 command: 
22463 \begin_inset space ~
22464 \end_inset
22465
22466
22467 \begin_inset Newline newline
22468 \end_inset
22469
22470
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 cvs 
22476 \family typewriter
22477 -q commit -m"<description>" "<file-name>"
22478 \end_layout
22479
22480 \end_inset
22481
22482  or
22483 \begin_inset Newline newline
22484 \end_inset
22485
22486
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 cvs -q unedit 
22492 \family typewriter
22493 "<file-name>"
22494 \end_layout
22495
22496 \end_inset
22497
22498
22499 \end_layout
22500
22501 \begin_layout Subsubsection
22502
22503 \family sans
22504 Check Out Changes
22505 \end_layout
22506
22507 \begin_layout Standard
22508 When you are sharing a repository with others, you may have to incorporate
22509  their changes into your working copy.
22510 \end_layout
22511
22512 \begin_layout Standard
22513 CVS command: 
22514 \family typewriter
22515 cvs -q update "<file-name>"
22516 \end_layout
22517
22518 \begin_layout Standard
22519 If a readonly checkout is detected the working copy is made writable and
22520  reserved.
22521 \end_layout
22522
22523 \begin_layout Standard
22524 CVS command: 
22525 \family typewriter
22526 cvs -q edit "<file-name>"
22527 \end_layout
22528
22529 \begin_layout Subsubsection
22530
22531 \family sans
22532 Revert To Repository Version
22533 \end_layout
22534
22535 \begin_layout Standard
22536 This will discard all changes made to the document since the last check
22537  in.
22538  You get a warning before changes are discarded.
22539  Firstly the file is deleted, secondly CVS update command is run.
22540 \end_layout
22541
22542 \begin_layout Standard
22543 CVS command: 
22544 \family typewriter
22545 cvs -q update "<file-name>"
22546 \end_layout
22547
22548 \begin_layout Standard
22549 If a reserved checkout is detected and the working copy has no changes only
22550  the reservation is undone.
22551 \end_layout
22552
22553 \begin_layout Standard
22554 CVS command: 
22555 \family typewriter
22556 cvs -q unedit "<file-name>"
22557 \end_layout
22558
22559 \begin_layout Subsubsection
22560
22561 \family sans
22562 Copy
22563 \end_layout
22564
22565 \begin_layout Standard
22566 This will create a copy of the current document.
22567  Since CVS does not support copy operations natively, the version history
22568  is not preserved, and the copy is added as a new file.
22569  It requires a clean document without any changes since the last checkin.
22570  You are asked for a file name and a description of the copy operation.
22571  After that the copy is created, both locally and in the repository.
22572  If the parent directories of the copied and original document differ, all
22573  relative paths of included files of the copy are adjusted (like in 
22574 \family sans
22575 File\SpecialChar menuseparator
22576 Save As
22577 \family default
22578 \SpecialChar ldots
22579 ).
22580  Finally, the copy is loaded instead of the original document.
22581 \end_layout
22582
22583 \begin_layout Labeling
22584 \labelwidthstring 00.00.0000
22585 CVS
22586 \begin_inset space ~
22587 \end_inset
22588
22589 commands: 
22590 \begin_inset space ~
22591 \end_inset
22592
22593
22594 \begin_inset Newline newline
22595 \end_inset
22596
22597 Copy 
22598 \begin_inset Flex Code
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602 "<file-name>"
22603 \end_layout
22604
22605 \end_inset
22606
22607  to 
22608 \begin_inset Flex Code
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 "<new-file-name>"
22613 \end_layout
22614
22615 \end_inset
22616
22617
22618 \begin_inset Newline newline
22619 \end_inset
22620
22621
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 cvs -q add "<new-file-name>"
22627 \end_layout
22628
22629 \end_inset
22630
22631
22632 \end_layout
22633
22634 \begin_layout Subsubsection
22635
22636 \family sans
22637 Rename
22638 \end_layout
22639
22640 \begin_layout Standard
22641 This will rename the current document.
22642  Since CVS does not support rename operations natively, the version history
22643  is not preserved, the renamed document is added as a new file, and the
22644  original document is deleted.
22645  It requires a clean document without any changes since the last checkin.
22646  You are asked for a file name and a description of the rename operation.
22647  After that the document is renamed, both locally and in the repository.
22648  If the parent directories of the new and old file names differ, all relative
22649  paths of included files are adjusted (like in 
22650 \family sans
22651 File\SpecialChar menuseparator
22652 Save As
22653 \family default
22654 \SpecialChar ldots
22655 ).
22656  Finally, the document is reloaded using the new name.
22657 \end_layout
22658
22659 \begin_layout Labeling
22660 \labelwidthstring 00.00.0000
22661 CVS
22662 \begin_inset space ~
22663 \end_inset
22664
22665 commands: 
22666 \begin_inset space ~
22667 \end_inset
22668
22669
22670 \begin_inset Newline newline
22671 \end_inset
22672
22673 Rename 
22674 \begin_inset Flex Code
22675 status collapsed
22676
22677 \begin_layout Plain Layout
22678 "<file-name>"
22679 \end_layout
22680
22681 \end_inset
22682
22683  to 
22684 \begin_inset Flex Code
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688 "<new-file-name>"
22689 \end_layout
22690
22691 \end_inset
22692
22693
22694 \begin_inset Newline newline
22695 \end_inset
22696
22697
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 cvs -q add "<new-file-name>"
22703 \end_layout
22704
22705 \end_inset
22706
22707
22708 \begin_inset Newline newline
22709 \end_inset
22710
22711
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 cvs -q remove "<file-name>"
22717 \end_layout
22718
22719 \end_inset
22720
22721
22722 \end_layout
22723
22724 \begin_layout Subsubsection
22725 Update of the local directory checkout from repository
22726 \end_layout
22727
22728 \begin_layout Standard
22729 Once your documents gets more complex, containing sub-documents and pictures,
22730  including external 
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735 .tex
22736 \end_layout
22737
22738 \end_inset
22739
22740  files and so on using version control becomes more complicated.
22741  \SpecialChar LyX
22742  supports updating the whole tree in which resides the document.
22743  This become especially useful once you cooperate with people which neither
22744  have detailed knowledge about CVS usage nor they have ambition to commit
22745  additional material to the repository.
22746  You have to organize the files structure so that all external files are
22747  in the same directory or subdirectories of the document.
22748  It's good practice anyway to store multipart documents in an extra directory.
22749 \end_layout
22750
22751 \begin_layout Standard
22752 The 
22753 \begin_inset Flex Code
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 Update local directory from repository
22758 \end_layout
22759
22760 \end_inset
22761
22762  command updates the whole directory.
22763  If local changes are detected user is warned before update starts.
22764  In case of merge conflicts both versions of the conflicting document parts
22765  are placed in the final document.
22766  You have to review and correct the result of the merge.
22767  You'll find the conflicts enclosed in pairs of 
22768 \begin_inset Flex Code
22769 status collapsed
22770
22771 \begin_layout Plain Layout
22772 <<<<<<<
22773 \end_layout
22774
22775 \end_inset
22776
22777  and 
22778 \begin_inset Flex Code
22779 status collapsed
22780
22781 \begin_layout Plain Layout
22782 >>>>>>>
22783 \end_layout
22784
22785 \end_inset
22786
22787  separated by 
22788 \begin_inset Flex Code
22789 status collapsed
22790
22791 \begin_layout Plain Layout
22792 =======
22793 \end_layout
22794
22795 \end_inset
22796
22797 .
22798  The first part is your version as before the update operation with the
22799  document name prepended.
22800  The second one is the repository version with the version number after
22801  the sequence of 
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806 >
22807 \end_layout
22808
22809 \end_inset
22810
22811  signs.
22812 \end_layout
22813
22814 \begin_layout Labeling
22815 \labelwidthstring 00.00.0000
22816 CVS
22817 \begin_inset space ~
22818 \end_inset
22819
22820 commands: 
22821 \begin_inset space ~
22822 \end_inset
22823
22824
22825 \begin_inset Newline newline
22826 \end_inset
22827
22828
22829 \begin_inset Flex Code
22830 status collapsed
22831
22832 \begin_layout Plain Layout
22833 cd $path; cvs diff 
22834 \family typewriter
22835 "."
22836 \end_layout
22837
22838 \end_inset
22839
22840  (Ask if changes are detected.)
22841 \begin_inset Newline newline
22842 \end_inset
22843
22844
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849 cd $path; cvs -q update 
22850 \family typewriter
22851 "."
22852 \end_layout
22853
22854 \end_inset
22855
22856
22857 \end_layout
22858
22859 \begin_layout Standard
22860 where 
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 $path
22866 \end_layout
22867
22868 \end_inset
22869
22870  stands for the path to the document.
22871 \end_layout
22872
22873 \begin_layout Subsubsection
22874
22875 \family sans
22876 Show History
22877 \end_layout
22878
22879 \begin_layout Standard
22880 This shows the complete history of the CVS document.
22881  The output of 
22882 \family typewriter
22883 cvs log "<file-name>"
22884 \family default
22885  is shown in a browser.
22886 \end_layout
22887
22888 \begin_layout Subsubsection
22889 Revision info
22890 \end_layout
22891
22892 \begin_layout Standard
22893 \SpecialChar LyX
22894  supports CVS version number, author name, date and time of last commit.
22895  All those are extracted from 
22896 \family typewriter
22897 cvs log -r <file-name>
22898 \family default
22899 .
22900  See 
22901 \begin_inset CommandInset ref
22902 LatexCommand ref
22903 reference "subsec:VCS-Revision-Information"
22904
22905 \end_inset
22906
22907  for details.
22908 \end_layout
22909
22910 \begin_layout Subsection
22911 SVN commands in \SpecialChar LyX
22912
22913 \end_layout
22914
22915 \begin_layout Standard
22916 SVN is now partially supported by \SpecialChar LyX
22917 .
22918  You can find the commands in the 
22919 \family sans
22920 File\SpecialChar menuseparator
22921 Version
22922 \begin_inset space ~
22923 \end_inset
22924
22925 Control
22926 \family default
22927  submenu.
22928  Please note that if you use password protected access to repository via
22929  ssh, you will be asked in terminal window.
22930  \SpecialChar LyX
22931  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22932 \begin_inset Foot
22933 status collapsed
22934
22935 \begin_layout Plain Layout
22936 Most of the commands will work with 1.4 too, see 
22937 \begin_inset CommandInset ref
22938 LatexCommand ref
22939 reference "subsec:SVN-Repo-Update"
22940
22941 \end_inset
22942
22943 .
22944  There seems to be currently unresolved permissions problem under SVN 1.8
22945  with reverting changes when file is locked.
22946 \end_layout
22947
22948 \end_inset
22949
22950
22951 \end_layout
22952
22953 \begin_layout Subsubsection
22954
22955 \family sans
22956 Register
22957 \end_layout
22958
22959 \begin_layout Standard
22960 If your document is not under revision control, this is the only item shown
22961  in the menu.
22962  And if it is under revision control, the 
22963 \family sans
22964 Register
22965 \family default
22966  item is not visible.
22967 \end_layout
22968
22969 \begin_layout Standard
22970 This command registers in SVN your document ONLY in case you have already
22971  the documents directory under SVN control (in particular 
22972 \family typewriter
22973 .svn/entries
22974 \family default
22975  file exists).
22976  This means you have to checkout the archive by yourself.
22977 \end_layout
22978
22979 \begin_layout Standard
22980 Then you are asked interactively to supply an initial description of the
22981  document.
22982  Don't forget that registered file is not yet commited.
22983 \end_layout
22984
22985 \begin_layout Standard
22986 SVN command that is run: 
22987 \family typewriter
22988 svn add -q 
22989 \begin_inset Quotes qld
22990 \end_inset
22991
22992 <file-name>
22993 \begin_inset Quotes qld
22994 \end_inset
22995
22996
22997 \end_layout
22998
22999 \begin_layout Standard
23000 Read 
23001 \family typewriter
23002 man svn
23003 \family default
23004  to understand the switches.
23005 \end_layout
23006
23007 \begin_layout Subsubsection
23008
23009 \family sans
23010 Check In Changes
23011 \end_layout
23012
23013 \begin_layout Standard
23014 When you are finished editing a file, you commit your changes.
23015  When you do this, you are asked for a description of the changes.
23016  After that changes are commited.
23017 \end_layout
23018
23019 \begin_layout Standard
23020 SVN command:
23021 \begin_inset Foot
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 In case locking is not enabled.
23026  See Section 
23027 \begin_inset CommandInset ref
23028 LatexCommand ref
23029 reference "subsec:SVN-File-Locking"
23030
23031 \end_inset
23032
23033 .
23034 \end_layout
23035
23036 \end_inset
23037
23038  
23039 \family typewriter
23040 svn commit -q -m"<description>" <file-name>
23041 \end_layout
23042
23043 \begin_layout Subsubsection
23044
23045 \family sans
23046 Check Out For Edit
23047 \end_layout
23048
23049 \begin_layout Standard
23050 Updates the changes of this file from the repository.
23051  Be sure you understand SVN merging and conflicts resolving before using
23052  this function, because all conflicts has to be resolved manually by you!
23053 \end_layout
23054
23055 \begin_layout Standard
23056 SVN command:
23057 \begin_inset Foot
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061 Ditto.
23062 \end_layout
23063
23064 \end_inset
23065
23066  
23067 \family typewriter
23068 svn update --non-interactive 
23069 \begin_inset Quotes qld
23070 \end_inset
23071
23072 <file-name>
23073 \begin_inset Quotes qld
23074 \end_inset
23075
23076
23077 \end_layout
23078
23079 \begin_layout Subsubsection
23080
23081 \family sans
23082 Revert To Repository Version
23083 \end_layout
23084
23085 \begin_layout Standard
23086 This will discard all changes made to the document since the last check
23087  in.
23088  You get a warning before changes are discarded.
23089 \end_layout
23090
23091 \begin_layout Standard
23092 SVN command: 
23093 \family typewriter
23094 svn revert -q 
23095 \begin_inset Quotes qld
23096 \end_inset
23097
23098 <file-name>
23099 \begin_inset Quotes qld
23100 \end_inset
23101
23102
23103 \end_layout
23104
23105 \begin_layout Subsubsection
23106
23107 \family sans
23108 Copy
23109 \end_layout
23110
23111 \begin_layout Standard
23112 This will create a copy of the current document including the version history.
23113  It requires a clean document without any changes since the last checkin.
23114  You are asked for a file name and a description of the copy operation.
23115  After that the copy is created, both locally and in the repository.
23116  If the parent directories of the copied and original document differ, all
23117  relative paths of included files of the copy are adjusted (like in 
23118 \family sans
23119 File\SpecialChar menuseparator
23120 Save As
23121 \family default
23122 \SpecialChar ldots
23123 ).
23124  Finally, the copy is loaded instead of the original document.
23125 \end_layout
23126
23127 \begin_layout Labeling
23128 \labelwidthstring 00.00.0000
23129 SVN
23130 \begin_inset space ~
23131 \end_inset
23132
23133 commands: 
23134 \begin_inset space ~
23135 \end_inset
23136
23137
23138 \begin_inset Newline newline
23139 \end_inset
23140
23141
23142 \begin_inset Flex Code
23143 status collapsed
23144
23145 \begin_layout Plain Layout
23146 svn copy -q 
23147 \family typewriter
23148
23149 \begin_inset Quotes qld
23150 \end_inset
23151
23152 <file-name>
23153 \begin_inset Quotes qld
23154 \end_inset
23155
23156  
23157 \begin_inset Quotes qld
23158 \end_inset
23159
23160 <new-file-name>
23161 \begin_inset Quotes qld
23162 \end_inset
23163
23164
23165 \end_layout
23166
23167 \end_inset
23168
23169
23170 \begin_inset Newline newline
23171 \end_inset
23172
23173
23174 \begin_inset Flex Code
23175 status collapsed
23176
23177 \begin_layout Plain Layout
23178 svn commit
23179 \end_layout
23180
23181 \end_inset
23182
23183
23184 \end_layout
23185
23186 \begin_layout Subsubsection
23187
23188 \family sans
23189 Rename
23190 \end_layout
23191
23192 \begin_layout Standard
23193 This will rename the current document including the version history.
23194  It requires a clean document without any changes since the last checkin.
23195  You are asked for a file name and a description of the rename operation.
23196  After that the document is renamed, both locally and in the repository.
23197  If the parent directories of the new and old file names differ, all relative
23198  paths of included files are adjusted (like in 
23199 \family sans
23200 File\SpecialChar menuseparator
23201 Save As
23202 \family default
23203 \SpecialChar ldots
23204 ).
23205  Finally, the document is reloaded using the new name.
23206 \end_layout
23207
23208 \begin_layout Labeling
23209 \labelwidthstring 00.00.0000
23210 SVN
23211 \begin_inset space ~
23212 \end_inset
23213
23214 commands: 
23215 \begin_inset space ~
23216 \end_inset
23217
23218
23219 \begin_inset Newline newline
23220 \end_inset
23221
23222
23223 \begin_inset Flex Code
23224 status collapsed
23225
23226 \begin_layout Plain Layout
23227 svn move -q 
23228 \family typewriter
23229
23230 \begin_inset Quotes qld
23231 \end_inset
23232
23233 <file-name>
23234 \begin_inset Quotes qld
23235 \end_inset
23236
23237  
23238 \begin_inset Quotes qld
23239 \end_inset
23240
23241 <new-file-name>
23242 \begin_inset Quotes qld
23243 \end_inset
23244
23245
23246 \end_layout
23247
23248 \end_inset
23249
23250
23251 \begin_inset Newline newline
23252 \end_inset
23253
23254
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 svn commit
23260 \end_layout
23261
23262 \end_inset
23263
23264
23265 \end_layout
23266
23267 \begin_layout Subsubsection
23268 \begin_inset CommandInset label
23269 LatexCommand label
23270 name "subsec:SVN-Repo-Update"
23271
23272 \end_inset
23273
23274 Update of the local directory checkout from repository
23275 \begin_inset Foot
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279 Note that this command will work only with subversion 
23280 \begin_inset Formula $\geqq1.5$
23281 \end_inset
23282
23283
23284 \end_layout
23285
23286 \end_inset
23287
23288
23289 \end_layout
23290
23291 \begin_layout Standard
23292 All the commands above have one shortcoming – they deal with the current
23293  document only.
23294  Once your document contains pictures, includes external 
23295 \begin_inset Flex Code
23296 status collapsed
23297
23298 \begin_layout Plain Layout
23299 .tex
23300 \end_layout
23301
23302 \end_inset
23303
23304  files and so on administration becomes more complicated.
23305  \SpecialChar LyX
23306  now supports updating the whole tree in which resides the document
23307 \begin_inset Foot
23308 status collapsed
23309
23310 \begin_layout Plain Layout
23311 One need to organize the files structure so that all external files are
23312  in the same directory or subdirectories of the document.
23313  
23314 \end_layout
23315
23316 \end_inset
23317
23318 .
23319  This become especially useful once you cooperate with people which neither
23320  know about subversion management nor they have ambition to commit additional
23321  material to the repository.
23322  
23323 \end_layout
23324
23325 \begin_layout Standard
23326 \begin_inset Flex Code
23327 status collapsed
23328
23329 \begin_layout Plain Layout
23330 Update local directory from repository
23331 \end_layout
23332
23333 \end_inset
23334
23335  command updates the whole directory and in case of merge conflicts local
23336  version of the files are left, so no unintended data loss occurs.
23337  If local changes are detected user is warned before update starts.
23338 \end_layout
23339
23340 \begin_layout Labeling
23341 \labelwidthstring 00.00.0000
23342 SVN
23343 \begin_inset space ~
23344 \end_inset
23345
23346 commands: 
23347 \begin_inset space ~
23348 \end_inset
23349
23350
23351 \begin_inset Newline newline
23352 \end_inset
23353
23354
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359 svn diff $path
23360 \end_layout
23361
23362 \end_inset
23363
23364  (Ask if changes are detected.)
23365 \begin_inset Newline newline
23366 \end_inset
23367
23368
23369 \begin_inset Flex Code
23370 status collapsed
23371
23372 \begin_layout Plain Layout
23373 svn update --accept mine-full $path
23374 \end_layout
23375
23376 \end_inset
23377
23378
23379 \end_layout
23380
23381 \begin_layout Standard
23382 where 
23383 \begin_inset Flex Code
23384 status collapsed
23385
23386 \begin_layout Plain Layout
23387 $path
23388 \end_layout
23389
23390 \end_inset
23391
23392  stands for the path to the document.
23393 \end_layout
23394
23395 \begin_layout Subsubsection
23396
23397 \family sans
23398 Show History
23399 \end_layout
23400
23401 \begin_layout Standard
23402 This shows the complete history of the SVN document.
23403  The output of 
23404 \family typewriter
23405 svn log 
23406 \begin_inset Quotes qld
23407 \end_inset
23408
23409 <file-name>
23410 \begin_inset Quotes qld
23411 \end_inset
23412
23413
23414 \family default
23415  is shown in a browser.
23416 \end_layout
23417
23418 \begin_layout Subsubsection
23419 File Locking
23420 \begin_inset CommandInset label
23421 LatexCommand label
23422 name "subsec:SVN-File-Locking"
23423
23424 \end_inset
23425
23426
23427 \end_layout
23428
23429 \begin_layout Standard
23430 The file exchange through various revision control systems brings the problem
23431  of merge conflicts in case two different users try to edit the same (parts
23432  of) document.
23433  When such a conflict happens it needs manual resolving and one reasonable
23434  alternative is to provide some kind of locking mechanism, which guarantees
23435  that only one user is allowed to edit file at the given time.
23436 \end_layout
23437
23438 \begin_layout Standard
23439 SVN has two such mechanisms to provide mutual exclusivity for file access
23440  – locks and automatic setting of write permissions (see sec.
23441  
23442 \begin_inset CommandInset ref
23443 LatexCommand ref
23444 reference "subsec:Automatical-Locking-Property"
23445
23446 \end_inset
23447
23448 ) based on 
23449 \begin_inset Flex Code
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453 svn:needs-lock
23454 \end_layout
23455
23456 \end_inset
23457
23458  file svn property
23459 \begin_inset Foot
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463 \begin_inset Flex URL
23464 status open
23465
23466 \begin_layout Plain Layout
23467
23468 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23469 \end_layout
23470
23471 \end_inset
23472
23473
23474 \end_layout
23475
23476 \end_inset
23477
23478 .
23479  If this property is detected for a given document \SpecialChar LyX
23480  starts to use SVN locks
23481  for document editing automatically and the whole check-in/out mechanism
23482  switches to the same regimen as for RCS.
23483  This in particular means there are two different modes of file use in \SpecialChar LyX
23484 :
23485 \end_layout
23486
23487 \begin_layout Itemize
23488 Unlocked state.
23489  The loaded file is in the read-only mode.
23490  For editing on needs to check-out.
23491  
23492 \emph on
23493 Check-out
23494 \emph default
23495  consists of updating from the repository and gaining write lock.
23496  If the lock is not possible to obtain, we remain in unlocked state.
23497 \end_layout
23498
23499 \begin_layout Itemize
23500 Locked state.
23501  The loaded file is in the 
23502 \begin_inset Quotes els
23503 \end_inset
23504
23505 normal
23506 \begin_inset Quotes ers
23507 \end_inset
23508
23509  edit mode.
23510  No other user is allowed to edit the file.
23511  
23512 \emph on
23513 Check-in
23514 \emph default
23515  consists of commiting changes and releasing write-lock.
23516  If no changes have been made to the document, no commit will be produced
23517 \begin_inset Foot
23518 status collapsed
23519
23520 \begin_layout Plain Layout
23521 Don't be puzzled by the fact that you will be asked for commit message anyway.
23522 \end_layout
23523
23524 \end_inset
23525
23526  and only the write-lock will be released.
23527 \end_layout
23528
23529 \begin_layout Standard
23530 SVN commands:
23531 \end_layout
23532
23533 \begin_layout Labeling
23534 \labelwidthstring 00.00.0000
23535 Check-in:
23536 \family typewriter
23537  svn commit -q -m"<description>" "<file-name>"
23538 \begin_inset Newline newline
23539 \end_inset
23540
23541 svn unlock "<file-name>"
23542 \end_layout
23543
23544 \begin_layout Labeling
23545 \labelwidthstring 00.00.0000
23546 Check-out: 
23547 \family typewriter
23548 svn update "<file-name>"
23549 \begin_inset Newline newline
23550 \end_inset
23551
23552 svn lock "<file-name>"
23553 \end_layout
23554
23555 \begin_layout Subsubsection
23556
23557 \family typewriter
23558 \begin_inset CommandInset label
23559 LatexCommand label
23560 name "subsec:Automatical-Locking-Property"
23561
23562 \end_inset
23563
23564
23565 \family default
23566 Automatic Locking Property
23567 \end_layout
23568
23569 \begin_layout Standard
23570 The above mentioned automatic setting of write permissions of the .lyx file
23571  can be set through
23572 \family sans
23573  File\SpecialChar menuseparator
23574 Version
23575 \begin_inset space ~
23576 \end_inset
23577
23578 Control\SpecialChar menuseparator
23579 Use Locking Property
23580 \family default
23581 .
23582  This command is active only when the file is not locked on the svn server
23583  (i.e.
23584  you need to check-out before proceeding).
23585 \end_layout
23586
23587 \begin_layout Labeling
23588 \labelwidthstring 00.00.0000
23589 SVN
23590 \begin_inset space ~
23591 \end_inset
23592
23593 commands:
23594 \end_layout
23595
23596 \begin_layout Labeling
23597 \labelwidthstring 00.00.0000
23598 Set:
23599 \family typewriter
23600  svn propset svn:needs-lock ON "<file-name>"
23601 \end_layout
23602
23603 \begin_layout Labeling
23604 \labelwidthstring 00.00.0000
23605 Unset: 
23606 \family typewriter
23607 svn propdel svn:needs-lock "<file-name>"
23608 \end_layout
23609
23610 \begin_layout Subsubsection
23611 \begin_inset CommandInset label
23612 LatexCommand label
23613 name "subsec:VCS-Revision-Information"
23614
23615 \end_inset
23616
23617 Revision Information in Documents
23618 \end_layout
23619
23620 \begin_layout Standard
23621 There are more possibilities how to activate revision information in our
23622  document.
23623 \end_layout
23624
23625 \begin_layout Itemize
23626 \SpecialChar LyX
23627  supports directly:
23628 \end_layout
23629
23630 \begin_deeper
23631 \begin_layout Itemize
23632 tree revision information (
23633 \begin_inset Flex Code
23634 status collapsed
23635
23636 \begin_layout Plain Layout
23637 vcs-tree-revision
23638 \end_layout
23639
23640 \end_inset
23641
23642 ).
23643  The result is the output of the 
23644 \begin_inset Flex Code
23645 status collapsed
23646
23647 \begin_layout Plain Layout
23648 svnversion
23649 \end_layout
23650
23651 \end_inset
23652
23653  command, the following table gives you an idea, how to read the results.
23654 \end_layout
23655
23656 \begin_layout Standard
23657 \align center
23658 \begin_inset Tabular
23659 <lyxtabular version="3" rows="6" columns="2">
23660 <features tabularvalignment="middle">
23661 <column alignment="left" valignment="top">
23662 <column alignment="left" valignment="top">
23663 <row>
23664 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23665 \begin_inset Text
23666
23667 \begin_layout Plain Layout
23668
23669 \series bold
23670 Output
23671 \end_layout
23672
23673 \end_inset
23674 </cell>
23675 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23676 \begin_inset Text
23677
23678 \begin_layout Plain Layout
23679
23680 \series bold
23681 Meaning
23682 \end_layout
23683
23684 \end_inset
23685 </cell>
23686 </row>
23687 <row>
23688 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23689 \begin_inset Text
23690
23691 \begin_layout Plain Layout
23692 4123:4168
23693 \end_layout
23694
23695 \end_inset
23696 </cell>
23697 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23698 \begin_inset Text
23699
23700 \begin_layout Plain Layout
23701 mixed revision working copy
23702 \end_layout
23703
23704 \end_inset
23705 </cell>
23706 </row>
23707 <row>
23708 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23709 \begin_inset Text
23710
23711 \begin_layout Plain Layout
23712 4168M
23713 \end_layout
23714
23715 \end_inset
23716 </cell>
23717 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23718 \begin_inset Text
23719
23720 \begin_layout Plain Layout
23721 modified working copy
23722 \end_layout
23723
23724 \end_inset
23725 </cell>
23726 </row>
23727 <row>
23728 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23729 \begin_inset Text
23730
23731 \begin_layout Plain Layout
23732 4123S
23733 \end_layout
23734
23735 \end_inset
23736 </cell>
23737 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23738 \begin_inset Text
23739
23740 \begin_layout Plain Layout
23741 switched working copy
23742 \end_layout
23743
23744 \end_inset
23745 </cell>
23746 </row>
23747 <row>
23748 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23749 \begin_inset Text
23750
23751 \begin_layout Plain Layout
23752 4123P
23753 \end_layout
23754
23755 \end_inset
23756 </cell>
23757 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23758 \begin_inset Text
23759
23760 \begin_layout Plain Layout
23761 partial working copy, from a sparse checkout
23762 \end_layout
23763
23764 \end_inset
23765 </cell>
23766 </row>
23767 <row>
23768 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23769 \begin_inset Text
23770
23771 \begin_layout Plain Layout
23772 4123:4168MS
23773 \end_layout
23774
23775 \end_inset
23776 </cell>
23777 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23778 \begin_inset Text
23779
23780 \begin_layout Plain Layout
23781 mixed revision, modified, switched working copy
23782 \end_layout
23783
23784 \end_inset
23785 </cell>
23786 </row>
23787 </lyxtabular>
23788
23789 \end_inset
23790
23791
23792 \end_layout
23793
23794 \begin_layout Itemize
23795 file revision information.
23796  The result comes from parsing the output of 
23797 \begin_inset Flex Code
23798 status collapsed
23799
23800 \begin_layout Plain Layout
23801 svn
23802 \begin_inset space ~
23803 \end_inset
23804
23805 info
23806 \begin_inset space ~
23807 \end_inset
23808
23809 --xml
23810 \begin_inset space ~
23811 \end_inset
23812
23813 file.lyx
23814 \end_layout
23815
23816 \end_inset
23817
23818 .
23819  Supported flags are:
23820 \end_layout
23821
23822 \begin_deeper
23823 \begin_layout Itemize
23824 version number of the last commit (
23825 \begin_inset Flex Code
23826 status collapsed
23827
23828 \begin_layout Plain Layout
23829 vcs-revision
23830 \end_layout
23831
23832 \end_inset
23833
23834 )
23835 \end_layout
23836
23837 \begin_layout Itemize
23838 author of the last commit (
23839 \begin_inset Flex Code
23840 status collapsed
23841
23842 \begin_layout Plain Layout
23843 vcs-author
23844 \end_layout
23845
23846 \end_inset
23847
23848 )
23849 \end_layout
23850
23851 \begin_layout Itemize
23852 date of the last commit (
23853 \begin_inset Flex Code
23854 status collapsed
23855
23856 \begin_layout Plain Layout
23857 vcs-date
23858 \end_layout
23859
23860 \end_inset
23861
23862 )
23863 \end_layout
23864
23865 \begin_layout Itemize
23866 time of the last commit (
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 vcs-time
23872 \end_layout
23873
23874 \end_inset
23875
23876 )
23877 \end_layout
23878
23879 \end_deeper
23880 \begin_layout Standard
23881 You can obtain this info via InsetInfo (
23882 \change_inserted 5863208 1564400022
23883
23884 \lang american
23885 Insert\SpecialChar menuseparator
23886 Field\SpecialChar menuseparator
23887 Version Control Revision
23888 \change_deleted 5863208 1564399852
23889
23890 \lang english
23891 e.g.
23892  
23893 \begin_inset Flex Code
23894 status collapsed
23895
23896 \begin_layout Plain Layout
23897 info-insert buffer vcs-date
23898 \end_layout
23899
23900 \end_inset
23901
23902
23903 \change_unchanged
23904 ).
23905  The information will be available only when you have the file stored under
23906  svn managment (i.e.
23907  the 
23908 \begin_inset Flex Code
23909 status collapsed
23910
23911 \begin_layout Plain Layout
23912 .svn
23913 \end_layout
23914
23915 \end_inset
23916
23917  directory is available with your document).
23918 \end_layout
23919
23920 \end_deeper
23921 \begin_layout Itemize
23922 Another—a hacking one—possibility is to use svn keywords
23923 \begin_inset Foot
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23928 \end_layout
23929
23930 \end_inset
23931
23932 .
23933  In short – you set file keywords property (e.g.
23934  
23935 \family sans
23936 svn propset svn:keywords 'Rev' file.lyx
23937 \family default
23938 ) and then paste keyword \SpecialChar TeX
23939  code
23940 \begin_inset Foot
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944 This is an easy way how to ensure that \SpecialChar LyX
23945  won't break the line in the middle
23946  of keyword tag.
23947 \end_layout
23948
23949 \end_inset
23950
23951  tag in your document (e.g.
23952  
23953 \begin_inset Flex Code
23954 status collapsed
23955
23956 \begin_layout Plain Layout
23957 $Rev$
23958 \end_layout
23959
23960 \end_inset
23961
23962 ).
23963  This way svn client will automatically substitute revision number (e.g.
23964  
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969 $Rev: 59 $
23970 \end_layout
23971
23972 \end_inset
23973
23974 ) after each update and commit.
23975  There are more problems with this approach.
23976  Firstly, the '$' character is used in \SpecialChar TeX
23977  world for math equations, so any
23978  occurence of math formula 
23979 \begin_inset Formula $Rev$
23980 \end_inset
23981
23982  become 
23983 \begin_inset Formula $Rev:59$
23984 \end_inset
23985
23986  in your \SpecialChar LyX
23987  document.
23988  Similarly for other keywords like Id, Date, Author, etc.
23989  Secondly svn output is dependent on your locales, so its very easy that
23990  svn would produce some problematic strings once Date is used.
23991  Thirdly you get the whole 'Rev: 59' string in your document instead of
23992  the plain number.
23993  Until subversion implements user's custom keywords it will be hard to use
23994  this approach reliably or let \SpecialChar LyX
23995  to support it directly.
23996 \end_layout
23997
23998 \begin_layout Subsection
23999 SVN and Windows Environment
24000 \end_layout
24001
24002 \begin_layout Quote
24003 My inclination is to say that if the user cannot figure out the command
24004  line operations on their own fairly quickly, they would be well advised
24005  to use TortoiseSVN.
24006  —P.
24007  A.
24008  Rubin
24009 \end_layout
24010
24011 \begin_layout Subsubsection
24012 Preparation
24013 \end_layout
24014
24015 \begin_layout Standard
24016 In addition to installing \SpecialChar LyX
24017 , and having access to a Subversion repository,
24018  the user will need to install the Subversion client program.
24019  A Windows installer for the client program is available from 
24020 \begin_inset CommandInset href
24021 LatexCommand href
24022 name "CollabNet"
24023 target "http://www.collab.net/nonav/downloads/subversion/"
24024 literal "false"
24025
24026 \end_inset
24027
24028 .
24029  The user may also want to install 
24030 \begin_inset CommandInset href
24031 LatexCommand href
24032 name "TortoiseSVN"
24033 target "http://tortoisesvn.tigris.org/"
24034 literal "false"
24035
24036 \end_inset
24037
24038 , which integrates Subversion operations into the context (rightclick) menu
24039  of Windows Explorer.
24040  Operations done outside \SpecialChar LyX
24041  will typically be more convenient using the Explorer
24042  context menu.
24043  Note that TortoiseSVN is not a replacement for the client program, which
24044  is what \SpecialChar LyX
24045  itself will use.
24046 \end_layout
24047
24048 \begin_layout Subsubsection
24049 Bringing a document under Subversion control
24050 \end_layout
24051
24052 \begin_layout Standard
24053 Before a \SpecialChar LyX
24054  document can be brought under version control in Subversion, its
24055  parent directory needs to be under version control.
24056  If the document is being added to a project already in the repository,
24057  this is accomplished by checking the project out to the directory where
24058  the new document will be placed.
24059  If the project itself is not yet under version control (for instance, if
24060  this document starts a new project), the directory must be imported into
24061  the repository.
24062  This is done outside \SpecialChar LyX
24063 .
24064  Both import and checkout are easily accomplished from the Explorer context
24065  menu using TortoiseSVN, or alternatively can be done using the command
24066  line client at a DOS prompt.
24067  The procedure for importing the project using TortoiseSVN is described
24068  below, assuming an existing repository and a new project being started
24069  in 
24070 \family typewriter
24071 C:
24072 \backslash
24073 new project
24074 \family default
24075 .
24076  For information on using the Subversion client program, run 
24077 \family typewriter
24078 svn --help 
24079 \family default
24080 in a DOS shell.
24081 \end_layout
24082
24083 \begin_layout Enumerate
24084 Locate 
24085 \family typewriter
24086 C:
24087 \backslash
24088 new project 
24089 \family default
24090 in Windows Explorer, right click it, and select 
24091 \family sans
24092 TortoiseSVN\SpecialChar menuseparator
24093 Repo-browser
24094 \family default
24095 .
24096  If necessary, adjust the URL for the repository, then click OK.
24097 \end_layout
24098
24099 \begin_layout Enumerate
24100 Right click the level of the repository under which you want to place the
24101  new project folder (typically the top level) and click 
24102 \family sans
24103 Create folder
24104 \family default
24105  Supply a name for the project folder and click OK.
24106  Add a message for the log file if desired, then click OK again.
24107  The new project folder should appear in the repository.
24108  Finally, click OK again to exit the repository browser.
24109 \end_layout
24110
24111 \begin_layout Enumerate
24112 Once again right click 
24113 \family typewriter
24114 C:
24115 \backslash
24116 new project
24117 \family default
24118 , this time selecting SVN Checkout\SpecialChar ldots
24119  Select the URL of the project folder
24120  you just created in the repository, and set the checkout directory to 
24121 \family typewriter
24122 C:
24123 \backslash
24124 new project.
24125
24126 \family default
24127  Click OK.
24128  You will be warned about a non-empty folder; click OK to proceed.
24129  You should now have a 
24130 \family typewriter
24131 .svn
24132 \family default
24133  directory under 
24134 \family typewriter
24135 C:
24136 \backslash
24137 new project.
24138 \end_layout
24139
24140 \begin_layout Enumerate
24141 Create or open your document in \SpecialChar LyX
24142  and click 
24143 \family sans
24144 File\SpecialChar menuseparator
24145 Version
24146 \begin_inset space ~
24147 \end_inset
24148
24149 Control\SpecialChar menuseparator
24150 Register.
24151  
24152 \family default
24153 Add a log message and click OK to commit the document to version control.
24154 \end_layout
24155
24156 \begin_layout Standard
24157 From this point onward, you should have full functionality in the 
24158 \family sans
24159 File\SpecialChar menuseparator
24160 Version
24161 \begin_inset space ~
24162 \end_inset
24163
24164 Control
24165 \family default
24166  menu.
24167  You also have the option of checking the document in and out, viewing its
24168  history, etc.
24169  using the TortoiseSVN context menu in Windows Explorer or the Subversion
24170  client program from a command prompt.
24171 \end_layout
24172
24173 \begin_layout Subsubsection
24174 SSH tunnel used with SVN under Windows
24175 \end_layout
24176
24177 \begin_layout Standard
24178 Compared with Linux setting up an svn client to communicate over ssh under
24179  Windows is a rather troublesome task.
24180  We will at least offer some hints how to setup the client side but prior
24181  knowledge about ssh and the Windows command line is needed, also be prepared
24182  for a great deal of frustration\SpecialChar ldots
24183
24184 \end_layout
24185
24186 \begin_layout Enumerate
24187 Get an svn client for windows, as described in the previous sections.
24188  When it is a fresh install run some svn command (e.g.
24189  
24190 \begin_inset Flex Code
24191 status collapsed
24192
24193 \begin_layout Plain Layout
24194 svn --version
24195 \end_layout
24196
24197 \end_inset
24198
24199 ) to create config files, which you will need to change later on.
24200 \end_layout
24201
24202 \begin_layout Enumerate
24203 Choose an ssh client for Windows.
24204  There are several possibilities, we will use the one from Putty tools
24205 \begin_inset Foot
24206 status collapsed
24207
24208 \begin_layout Plain Layout
24209 \begin_inset Flex URL
24210 status collapsed
24211
24212 \begin_layout Plain Layout
24213
24214 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
24215 \end_layout
24216
24217 \end_inset
24218
24219
24220 \end_layout
24221
24222 \end_inset
24223
24224 .
24225  You will need to set the connection up so that the client doesn't ask for
24226  any password from you.
24227  To keep things easy we will use only keys without any additional password
24228  protection etc.
24229 \end_layout
24230
24231 \begin_deeper
24232 \begin_layout Enumerate
24233 Generate keys by 
24234 \begin_inset Flex Code
24235 status collapsed
24236
24237 \begin_layout Plain Layout
24238 puttygen
24239 \end_layout
24240
24241 \end_inset
24242
24243 .
24244  Save your private .ppk key file and put the public one on the server side.
24245  If the SVN server runs on Linux, note that the format of the public key
24246  is not compatible with Linux openssh and you will need to direcly copy-paste
24247  the key from the 
24248 \begin_inset Quotes eld
24249 \end_inset
24250
24251
24252 \emph on
24253 Public key for pasting into OpenSSH authorized_keys file
24254 \emph default
24255 :
24256 \begin_inset Quotes erd
24257 \end_inset
24258
24259  edit field into the server's 
24260 \begin_inset Flex Code
24261 status collapsed
24262
24263 \begin_layout Plain Layout
24264 ~/.ssh/authorized_keys
24265 \end_layout
24266
24267 \end_inset
24268
24269  / 
24270 \begin_inset Flex Code
24271 status collapsed
24272
24273 \begin_layout Plain Layout
24274 authorized_keys2
24275 \end_layout
24276
24277 \end_inset
24278
24279  file.
24280 \end_layout
24281
24282 \begin_layout Enumerate
24283 Get the Putty's 
24284 \begin_inset Flex Code
24285 status collapsed
24286
24287 \begin_layout Plain Layout
24288 plink
24289 \end_layout
24290
24291 \end_inset
24292
24293 .
24294  In the SVN config file
24295 \begin_inset Foot
24296 status collapsed
24297
24298 \begin_layout Plain Layout
24299 Exact path depends on Windows version, usually somewhere around 
24300 \begin_inset Flex Code
24301 status collapsed
24302
24303 \begin_layout Plain Layout
24304 c:
24305 \backslash
24306 Documents and Settings
24307 \backslash
24308 user
24309 \backslash
24310 Application Data
24311 \backslash
24312 Subversion
24313 \backslash
24314 config
24315 \end_layout
24316
24317 \end_inset
24318
24319  / 
24320 \begin_inset Flex Code
24321 status collapsed
24322
24323 \begin_layout Plain Layout
24324 AppData
24325 \backslash
24326 Roaming
24327 \backslash
24328 Subversion
24329 \end_layout
24330
24331 \end_inset
24332
24333 .
24334 \end_layout
24335
24336 \end_inset
24337
24338 , section [tunnels], setup ssh command, e.g.
24339  
24340 \begin_inset Flex Code
24341 status collapsed
24342
24343 \begin_layout Plain Layout
24344 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24345 \end_layout
24346
24347 \end_inset
24348
24349 .
24350 \begin_inset Foot
24351 status collapsed
24352
24353 \begin_layout Plain Layout
24354 It will usually take a lot of time to get exact command right and it depends
24355  on many things.
24356  For example do not have some remote server saved as a default session in
24357  Putty etc.
24358  If things fail, try to connect via plink without SVN first.
24359 \end_layout
24360
24361 \end_inset
24362
24363
24364 \end_layout
24365
24366 \end_deeper
24367 \begin_layout Enumerate
24368 Checkout the SVN archive, e.
24369 \begin_inset space \thinspace{}
24370 \end_inset
24371
24372 g.
24373 \begin_inset Newline newline
24374 \end_inset
24375
24376
24377 \begin_inset Flex Code
24378 status collapsed
24379
24380 \begin_layout Plain Layout
24381 svn co svn+ssh://user@server/repository_path
24382 \end_layout
24383
24384 \end_inset
24385
24386 .
24387 \end_layout
24388
24389 \begin_layout Subsubsection
24390 End-of-Line Conversions
24391 \end_layout
24392
24393 \begin_layout Standard
24394 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24395  will
24396  use different line endings inside the .lyx files.
24397  This is not a problem as far as \SpecialChar LyX
24398  functionality is concerned, but the commit
24399  diffs will be huge and merge-conflicts prone.
24400  Fortunately SVN itself knows
24401 \begin_inset Foot
24402 status collapsed
24403
24404 \begin_layout Plain Layout
24405 \begin_inset Flex URL
24406 status collapsed
24407
24408 \begin_layout Plain Layout
24409
24410 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24411 \end_layout
24412
24413 \end_inset
24414
24415
24416 \end_layout
24417
24418 \end_inset
24419
24420  how to deal with CR/LF problems when switching .lyx files to the 
24421 \begin_inset Flex Code
24422 status collapsed
24423
24424 \begin_layout Plain Layout
24425 native
24426 \end_layout
24427
24428 \end_inset
24429
24430  mode.
24431 \begin_inset Foot
24432 status collapsed
24433
24434 \begin_layout Plain Layout
24435 For the lazy guys: 
24436 \begin_inset Flex Code
24437 status collapsed
24438
24439 \begin_layout Plain Layout
24440 svn propset svn:eol-style native FILE_NAME
24441 \end_layout
24442
24443 \end_inset
24444
24445
24446 \end_layout
24447
24448 \end_inset
24449
24450
24451 \end_layout
24452
24453 \begin_layout Subsection
24454 GIT commands in \SpecialChar LyX
24455
24456 \end_layout
24457
24458 \begin_layout Standard
24459 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24460 .
24461  You can find the commands in the 
24462 \family sans
24463 File\SpecialChar menuseparator
24464 Version
24465 \begin_inset space ~
24466 \end_inset
24467
24468 Control
24469 \family default
24470  submenu.
24471  Please note that if you use password protected access to repository via
24472  ssh, you will be asked in terminal window.
24473  \SpecialChar LyX
24474  was tested against GIT 1.7.
24475 \begin_inset Foot
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479 Windows users please note that you need to ensure that git is on the path.
24480  This can be set from within \SpecialChar LyX
24481  at 
24482 \family sans
24483 Tools\SpecialChar menuseparator
24484 Preferences\SpecialChar menuseparator
24485 Paths\SpecialChar menuseparator
24486 PATH prefix
24487 \family default
24488 .
24489 \end_layout
24490
24491 \end_inset
24492
24493
24494 \end_layout
24495
24496 \begin_layout Standard
24497 One big difference of GIT and the other supported version control systems
24498  is the distributed nature of GIT: With traditional version control systems
24499  there is one central server which hosts the repository.
24500  Users commit their changes to the server, and get updates made by other
24501  users from it.
24502  With GIT, users commit to a local repository.
24503  The local repository can be synchronized with one or more remote repositories
24504  using the 
24505 \begin_inset Flex Code
24506 status collapsed
24507
24508 \begin_layout Plain Layout
24509 pull
24510 \end_layout
24511
24512 \end_inset
24513
24514  and 
24515 \begin_inset Flex Code
24516 status collapsed
24517
24518 \begin_layout Plain Layout
24519 push
24520 \end_layout
24521
24522 \end_inset
24523
24524  GIT commands.
24525  \SpecialChar LyX
24526  does not interact in any way with remote GIT repositories.
24527  It works exclusively with the local repository in a very similar way as
24528  with a central CVS or SVN repository.
24529  If you use remote GIT repositories you need to do the 
24530 \begin_inset Flex Code
24531 status collapsed
24532
24533 \begin_layout Plain Layout
24534 pull
24535 \end_layout
24536
24537 \end_inset
24538
24539  and 
24540 \begin_inset Flex Code
24541 status collapsed
24542
24543 \begin_layout Plain Layout
24544 push
24545 \end_layout
24546
24547 \end_inset
24548
24549  operations with your favourite GIT client.
24550 \end_layout
24551
24552 \begin_layout Subsubsection
24553
24554 \family sans
24555 Register
24556 \end_layout
24557
24558 \begin_layout Standard
24559 If your document is not under revision control, this is the only item shown
24560  in the menu.
24561  And if it is under revision control, the 
24562 \family sans
24563 Register
24564 \family default
24565  item is not visible.
24566 \end_layout
24567
24568 \begin_layout Standard
24569 This command registers in GIT your document ONLY in case you have already
24570  the documents directory under GIT control (in particular 
24571 \family typewriter
24572 .git/index
24573 \family default
24574  file exists).
24575  This means you have to checkout the archive by yourself.
24576 \end_layout
24577
24578 \begin_layout Standard
24579 Then you are asked interactively to supply an initial description of the
24580  document.
24581  Don't forget that registered file is not yet committed.
24582 \end_layout
24583
24584 \begin_layout Standard
24585 GIT command that is run: 
24586 \family typewriter
24587 git add 
24588 \begin_inset Quotes qld
24589 \end_inset
24590
24591 <file-name>
24592 \begin_inset Quotes qld
24593 \end_inset
24594
24595
24596 \end_layout
24597
24598 \begin_layout Standard
24599 Read 
24600 \family typewriter
24601 man git
24602 \family default
24603  to understand the switches.
24604 \end_layout
24605
24606 \begin_layout Subsubsection
24607
24608 \family sans
24609 Check In Changes
24610 \end_layout
24611
24612 \begin_layout Standard
24613 When you are finished editing a file, you commit your changes.
24614  When you do this, you are asked for a description of the changes.
24615  After that changes are committed.
24616 \end_layout
24617
24618 \begin_layout Standard
24619 GIT command: 
24620 \family typewriter
24621 git commit -q -m"<description>" <file-name>
24622 \end_layout
24623
24624 \begin_layout Subsubsection
24625
24626 \family sans
24627 Revert To Repository Version
24628 \end_layout
24629
24630 \begin_layout Standard
24631 This will discard all changes made to the document since the last check
24632  in.
24633  You get a warning before changes are discarded.
24634 \end_layout
24635
24636 \begin_layout Standard
24637 GIT command: 
24638 \family typewriter
24639 git checkout -q 
24640 \begin_inset Quotes qld
24641 \end_inset
24642
24643 <file-name>
24644 \begin_inset Quotes qld
24645 \end_inset
24646
24647
24648 \end_layout
24649
24650 \begin_layout Subsubsection
24651
24652 \family sans
24653 Rename
24654 \end_layout
24655
24656 \begin_layout Standard
24657 This will rename the current document including the version history.
24658  It requires a clean document without any changes since the last checkin.
24659  You are asked for a file name and a description of the rename operation.
24660  After that the document is renamed, both locally and in the repository.
24661  If the parent directories of the new and old file names differ, all relative
24662  paths of included files are adjusted (like in 
24663 \family sans
24664 File\SpecialChar menuseparator
24665 Save As
24666 \family default
24667 \SpecialChar ldots
24668 ).
24669  Finally, the document is reloaded using the new name.
24670 \end_layout
24671
24672 \begin_layout Labeling
24673 \labelwidthstring 00.00.0000
24674 GIT
24675 \begin_inset space ~
24676 \end_inset
24677
24678 commands: 
24679 \begin_inset space ~
24680 \end_inset
24681
24682
24683 \begin_inset Newline newline
24684 \end_inset
24685
24686
24687 \begin_inset Flex Code
24688 status collapsed
24689
24690 \begin_layout Plain Layout
24691 git mv 
24692 \family typewriter
24693
24694 \begin_inset Quotes qld
24695 \end_inset
24696
24697 <file-name>
24698 \begin_inset Quotes qld
24699 \end_inset
24700
24701  
24702 \begin_inset Quotes qld
24703 \end_inset
24704
24705 <new-file-name>
24706 \begin_inset Quotes qld
24707 \end_inset
24708
24709
24710 \end_layout
24711
24712 \end_inset
24713
24714
24715 \begin_inset Newline newline
24716 \end_inset
24717
24718
24719 \begin_inset Flex Code
24720 status collapsed
24721
24722 \begin_layout Plain Layout
24723 git commit
24724 \end_layout
24725
24726 \end_inset
24727
24728
24729 \end_layout
24730
24731 \begin_layout Subsubsection
24732
24733 \family sans
24734 Show History
24735 \end_layout
24736
24737 \begin_layout Standard
24738 This shows the complete history of the GIT document.
24739  The output of 
24740 \family typewriter
24741 git log 
24742 \begin_inset Quotes qld
24743 \end_inset
24744
24745 <file-name>
24746 \begin_inset Quotes qld
24747 \end_inset
24748
24749
24750 \family default
24751  is shown in a browser.
24752 \end_layout
24753
24754 \begin_layout Subsubsection
24755 Version Info
24756 \end_layout
24757
24758 \begin_layout Standard
24759 \SpecialChar LyX
24760  supports GIT hash number of the last commit to the file, 
24761 \change_inserted 1119979965 1564297456
24762 its abbreviated form, 
24763 \change_unchanged
24764 author name, date and time of last commit.
24765  All those are extracted from 
24766 \family typewriter
24767 git log -n 1 --pretty=format:%H%n
24768 \change_inserted 1119979965 1564297427
24769 %h%n
24770 \change_unchanged
24771 %an%n%ai
24772 \family default
24773 .
24774  Tree version information is obtained via 
24775 \family typewriter
24776 git describe --abbrev --dirty --long
24777 \family default
24778 .
24779  See 
24780 \begin_inset CommandInset ref
24781 LatexCommand ref
24782 reference "subsec:VCS-Revision-Information"
24783
24784 \end_inset
24785
24786  for other details.
24787 \end_layout
24788
24789 \begin_layout Subsection
24790 Further tuning
24791 \end_layout
24792
24793 \begin_layout Standard
24794 With the recent addition of the 
24795 \begin_inset Flex Code
24796 status collapsed
24797
24798 \begin_layout Plain Layout
24799 vc-command
24800 \end_layout
24801
24802 \end_inset
24803
24804  function \SpecialChar LyX
24805  power users are allowed to create their own commands for revision
24806  control.
24807 \end_layout
24808
24809 \begin_layout Standard
24810 As an example you can see how two TortoiseSVN commands could be integrated
24811  directly:
24812 \end_layout
24813
24814 \begin_layout Description
24815 Commit: 
24816 \begin_inset Flex Code
24817 status collapsed
24818
24819 \begin_layout Plain Layout
24820 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24821 \end_layout
24822
24823 \end_inset
24824
24825
24826 \end_layout
24827
24828 \begin_layout Description
24829 Revert: 
24830 \begin_inset Flex Code
24831 status collapsed
24832
24833 \begin_layout Plain Layout
24834 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24835 \end_layout
24836
24837 \end_inset
24838
24839
24840 \end_layout
24841
24842 \begin_layout Subsection
24843 Version control and Document comparison
24844 \end_layout
24845
24846 \begin_layout Standard
24847 One of the typical uses of version control is to inspect the changes between
24848  revisions, usually by creating 
24849 \begin_inset Flex Code
24850 status collapsed
24851
24852 \begin_layout Plain Layout
24853 diff
24854 \end_layout
24855
24856 \end_inset
24857
24858  dumps.
24859  While this is useful for plain text files, it is much less useful in the
24860  case of \SpecialChar LyX
24861  files, which have more a complicated structure.
24862  Hence we provide binding to the Document comparison feature.
24863  There are two ways of calling this feature – either by direct call of 
24864 \begin_inset Flex Code
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868 vc-compare
24869 \end_layout
24870
24871 \end_inset
24872
24873  \SpecialChar LyX
24874  function (for details see \SpecialChar LyX
24875  functions manual) or by the toolbar icon 
24876 \begin_inset Info
24877 type  "icon"
24878 arg   "vc-compare"
24879 \end_inset
24880
24881  or the menu item 
24882 \begin_inset Info
24883 type  "menu"
24884 arg   "vc-compare"
24885 \end_inset
24886
24887 , respectively.
24888  One can either compare two chosen revisions of the document or he can simply
24889  compare the current version of edited text with older revisions (where
24890  '
24891 \begin_inset Flex Noun
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 0
24896 \end_layout
24897
24898 \end_inset
24899
24900 ' revisions back means comparison of the edited file with last commited
24901  revision).
24902  
24903 \end_layout
24904
24905 \begin_layout Standard
24906 This feature is supported for SVN and RCS though due to the more complicated
24907  versioning scheme of RCS there is a constraint – when addressing the revisions
24908  in dialog, numbers always point to the last number in RCS revision number,
24909  i.e.
24910  '35' in '1.2.35'.
24911  We don't currently support GIT addressing of revisions, one can just compare
24912  edited document with its revision X steps backs, where X is addressed as
24913  
24914 \begin_inset Flex Code
24915 status collapsed
24916
24917 \begin_layout Plain Layout
24918 HEAD~X
24919 \end_layout
24920
24921 \end_inset
24922
24923 .
24924 \end_layout
24925
24926 \begin_layout Section
24927 Literate Programming
24928 \end_layout
24929
24930 \begin_layout Standard
24931 Updated by 
24932 \noun on
24933 Kayvan Sylvan 
24934 \noun default
24935 (kayvan@sylvan.com)
24936 \noun on
24937
24938 \noun default
24939 original documentation written by 
24940 \noun on
24941 Edmar Wienskoski Jr.
24942
24943 \noun default
24944  (edmar-w-jr@technologist.com)
24945 \end_layout
24946
24947 \begin_layout Subsection
24948 Introduction
24949 \end_layout
24950
24951 \begin_layout Standard
24952 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24953  for literate
24954  programming, where it is assumed that you are familiar with this programming
24955  technique, and know what 
24956 \begin_inset Quotes eld
24957 \end_inset
24958
24959 tangling
24960 \begin_inset Quotes erd
24961 \end_inset
24962
24963  and 
24964 \begin_inset Quotes eld
24965 \end_inset
24966
24967 weaving
24968 \begin_inset Quotes erd
24969 \end_inset
24970
24971  means.
24972  If that is not the case, please follow the web links provided in the following
24973  sections.
24974  There is a lot of good documentation out there covering old development
24975  history to the latest tools tips.
24976 \end_layout
24977
24978 \begin_layout Standard
24979 It is also assumed that you are familiar with \SpecialChar LyX
24980  itself to a point that you
24981  are comfortable changing your \SpecialChar LyX
24982  preferences, and X resources file.
24983  If that is not the case please refer to other \SpecialChar LyX
24984  documentation to cover your
24985  specific needs.
24986 \end_layout
24987
24988 \begin_layout Subsection
24989 Literate Programming
24990 \end_layout
24991
24992 \begin_layout Standard
24993 From the Literate Programming FAQ: 
24994 \end_layout
24995
24996 \begin_layout Quotation
24997 Literate programming is the combination of documentation and source together
24998  in a fashion suited for reading by human beings.
24999  In fact, literate programs should be enjoyable reading, even inviting!
25000  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
25001  and documentation in a single file.
25002  Literate programming tools then parse the file to produce either readable
25003  documentation or compilable source.
25004  The WEB style of literate programming was created by D.
25005 \begin_inset space \thinspace{}
25006 \end_inset
25007
25008 E.
25009  Knuth during the development of his \SpecialChar TeX
25010  typesetting software.
25011  
25012 \end_layout
25013
25014 \begin_layout Standard
25015 Another excerpt says:
25016 \end_layout
25017
25018 \begin_layout Quotation
25019
25020 \emph on
25021 How is literate programming different from verbose commenting?
25022 \end_layout
25023
25024 \begin_layout Quotation
25025 There are three distinguishing characteristics.
25026  In order of importance, they are: 
25027 \end_layout
25028
25029 \begin_deeper
25030 \begin_layout Itemize
25031 flexible order of elaboration 
25032 \end_layout
25033
25034 \begin_layout Itemize
25035 automatic support for browsing 
25036 \end_layout
25037
25038 \begin_layout Itemize
25039 typeset documentation, especially diagrams and mathematics 
25040 \end_layout
25041
25042 \end_deeper
25043 \begin_layout Standard
25044 Now that I sparked your curiosity, take a look in the references.
25045 \end_layout
25046
25047 \begin_layout Subsubsection
25048 References
25049 \end_layout
25050
25051 \begin_layout Standard
25052 The complete Literate Programming FAQ can be found at:
25053 \end_layout
25054
25055 \begin_layout Quote
25056 Literate Programming FAQ 
25057 \begin_inset Flex URL
25058 status open
25059
25060 \begin_layout Plain Layout
25061
25062 http://www.literateprogramming.com/lpfaq.pdf
25063 \end_layout
25064
25065 \end_inset
25066
25067
25068 \end_layout
25069
25070 \begin_layout Standard
25071 The FAQ lists 23 (twenty three!) different literate programming tools.
25072  Where some are specialized or 
25073 \begin_inset Quotes eld
25074 \end_inset
25075
25076 tailored
25077 \begin_inset Quotes erd
25078 \end_inset
25079
25080  for particular programming languages, while other have general scope.
25081  I selected 
25082 \noun on
25083 Noweb
25084 \noun default
25085  for my own use for several reasons:
25086 \end_layout
25087
25088 \begin_layout Itemize
25089 It can generate the documentation either in \SpecialChar LaTeX
25090  or HTML.
25091 \end_layout
25092
25093 \begin_layout Itemize
25094 It has a open architecture, i.
25095 \begin_inset space \thinspace{}
25096 \end_inset
25097
25098 e.
25099 \begin_inset space \space{}
25100 \end_inset
25101
25102 it is easy to plug in new filters
25103 \begin_inset Foot
25104 status collapsed
25105
25106 \begin_layout Plain Layout
25107
25108 \emph on
25109 Filters 
25110 \emph default
25111 are programs that read a given data stream and output a manipulated data
25112  stream.
25113  That way, a WEB file (consisting of literate code) can be turned into a
25114  file consisting only of C program code or \SpecialChar LaTeX
25115  code.
25116 \end_layout
25117
25118 \end_inset
25119
25120  and to perform special processing that you may need.
25121  
25122 \end_layout
25123
25124 \begin_layout Itemize
25125 There is a good selection of filters available already (the HTML is one
25126  of them).
25127 \end_layout
25128
25129 \begin_layout Itemize
25130 It is free.
25131 \end_layout
25132
25133 \begin_layout Standard
25134 The Noweb web page can be found at: 
25135 \end_layout
25136
25137 \begin_layout Quote
25138 Noweb home page 
25139 \begin_inset Flex URL
25140 status collapsed
25141
25142 \begin_layout Plain Layout
25143
25144 https://www.cs.tufts.edu/~nr/noweb/
25145 \end_layout
25146
25147 \end_inset
25148
25149
25150 \end_layout
25151
25152 \begin_layout Standard
25153 Starting from there you can reach many other interesting links and even
25154  some literate program examples.
25155 \end_layout
25156
25157 \begin_layout Subsection
25158 \SpecialChar LyX
25159  and Literate Programming with Noweb
25160 \end_layout
25161
25162 \begin_layout Standard
25163 The \SpecialChar LyX
25164  support for Literate Programming is provided by using the generic \SpecialChar LyX
25165
25166  converters mechanism.
25167  This support is provided in a 
25168 \begin_inset Quotes eld
25169 \end_inset
25170
25171 Noweb independent
25172 \begin_inset Quotes erd
25173 \end_inset
25174
25175  way, i.
25176 \begin_inset space \thinspace{}
25177 \end_inset
25178
25179 e.
25180 \begin_inset space \space{}
25181 \end_inset
25182
25183 you will be able to use this new \SpecialChar LyX
25184  feature with some other literate programming
25185  tool of your choice by just changing your \SpecialChar LyX
25186  preferences.
25187 \end_layout
25188
25189 \begin_layout Subsubsection
25190 Generating documents and code (weaving and tangling)
25191 \end_layout
25192
25193 \begin_layout Paragraph
25194 Using the noweb module
25195 \end_layout
25196
25197 \begin_layout Standard
25198 If you have installed Noweb and \SpecialChar LyX
25199  successfully, whenever you open a new document,
25200  after you have chosen its document class, use the 
25201 \family sans
25202 Document\SpecialChar menuseparator
25203 Settings
25204 \family default
25205  menu to add the 
25206 \begin_inset Quotes eld
25207 \end_inset
25208
25209 noweb
25210 \begin_inset Quotes erd
25211 \end_inset
25212
25213  module.
25214  If Noweb is correctly installed, when you click on the 
25215 \begin_inset Quotes eld
25216 \end_inset
25217
25218 Modules
25219 \begin_inset Quotes erd
25220 \end_inset
25221
25222  link, you will see the 
25223 \begin_inset Quotes eld
25224 \end_inset
25225
25226 noweb
25227 \begin_inset Quotes erd
25228 \end_inset
25229
25230  module in the available list and you can add it to your document.
25231 \end_layout
25232
25233 \begin_layout Paragraph
25234 Typing code in
25235 \end_layout
25236
25237 \begin_layout Standard
25238 \SpecialChar LyX
25239  enables you to write code with a custom inset named 
25240 \begin_inset Flex Noun
25241 status collapsed
25242
25243 \begin_layout Plain Layout
25244 Chunk
25245 \end_layout
25246
25247 \end_inset
25248
25249 .
25250  Noweb delimits chunks like this:
25251 \end_layout
25252
25253 \begin_layout LyX-Code
25254 <<My code>>=
25255 \end_layout
25256
25257 \begin_layout LyX-Code
25258   code
25259 \end_layout
25260
25261 \begin_layout LyX-Code
25262   more code
25263 \end_layout
25264
25265 \begin_layout LyX-Code
25266   even more code
25267 \end_layout
25268
25269 \begin_layout LyX-Code
25270   @
25271 \end_layout
25272
25273 \begin_layout Standard
25274 The problem is that whatever is written in between the << and the 
25275 \family typewriter
25276 @
25277 \family default
25278  must be taken literally, i.
25279 \begin_inset space \thinspace{}
25280 \end_inset
25281
25282 e.
25283 \begin_inset space \space{}
25284 \end_inset
25285
25286 \SpecialChar LyX
25287  should be prevented from making any special interpretation of what has
25288  been written.
25289  This is also handled by 
25290 \begin_inset Flex Noun
25291 status collapsed
25292
25293 \begin_layout Plain Layout
25294 Chunk
25295 \end_layout
25296
25297 \end_inset
25298
25299 , that works like a normal text inset but has a free spacing capability.
25300 \end_layout
25301
25302 \begin_layout Standard
25303 As a special note, you can also use the 
25304 \begin_inset Quotes eld
25305 \end_inset
25306
25307 %def
25308 \begin_inset Quotes erd
25309 \end_inset
25310
25311  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25312 rence:
25313 \end_layout
25314
25315 \begin_layout LyX-Code
25316 <<My chunk>>=
25317 \end_layout
25318
25319 \begin_layout LyX-Code
25320 def some_function(args):
25321 \end_layout
25322
25323 \begin_layout LyX-Code
25324    "This is the doc string for this function."
25325 \end_layout
25326
25327 \begin_layout LyX-Code
25328    print "My args: ", args
25329 \end_layout
25330
25331 \begin_layout LyX-Code
25332 @ %def some_function
25333 \end_layout
25334
25335 \begin_layout Standard
25336 For an example of this usage and the resulting cross-reference output, look
25337  at the Literate python program in 
25338 \emph on
25339 LIBDIR/examples/listerrors.lyx
25340 \emph default
25341  which should make this all clear.
25342 \end_layout
25343
25344 \begin_layout Paragraph
25345 Generating the documentation
25346 \end_layout
25347
25348 \begin_layout Standard
25349 At this point you already have a new document file with a proper document
25350  class, and with some code and text on it.
25351  How do I print it? The answer is simple, you select 
25352 \family sans
25353 View\SpecialChar menuseparator
25354 DVI,
25355 \family default
25356  etc.
25357  Just like you would do for a plain document.
25358  No special procedure is required.
25359 \end_layout
25360
25361 \begin_layout Standard
25362 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25363 :
25364 \end_layout
25365
25366 \begin_layout Enumerate
25367 When the 
25368 \family sans
25369 Update\SpecialChar menuseparator
25370 DVI
25371 \family default
25372  menu option is chosen, a \SpecialChar LaTeX
25373  file is generated.
25374  
25375 \end_layout
25376
25377 \begin_deeper
25378 \begin_layout Standard
25379 If the document is of any literate class the generated file will be named
25380  with an extension name defined by the 
25381 \begin_inset Quotes eld
25382 \end_inset
25383
25384 literate
25385 \begin_inset Quotes erd
25386 \end_inset
25387
25388  format (defined in the Preferences panel), otherwise the file will have
25389  the usual 
25390 \family typewriter
25391 .tex
25392 \family default
25393  extension.
25394 \end_layout
25395
25396 \end_deeper
25397 \begin_layout Enumerate
25398 Note that the only difference so far is in the name of the file, no special
25399  processing is required by \SpecialChar LyX
25400 .
25401  Given that you formatted the code using the 
25402 \begin_inset Flex Noun
25403 status collapsed
25404
25405 \begin_layout Plain Layout
25406 Chunk
25407 \end_layout
25408
25409 \end_inset
25410
25411  inset that, by itself, takes care of the business.
25412 \end_layout
25413
25414 \begin_layout Enumerate
25415 If the document is of any literate class \SpecialChar LyX
25416  will then use the internal \SpecialChar LyX
25417  to
25418  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25419  converter
25420 \begin_inset Foot
25421 status collapsed
25422
25423 \begin_layout Plain Layout
25424 The converters are defined in the 
25425 \family sans
25426 Tools\SpecialChar menuseparator
25427 Preferences
25428 \family default
25429  panel, under the 
25430 \begin_inset Quotes eld
25431 \end_inset
25432
25433 Conversion
25434 \begin_inset Quotes erd
25435 \end_inset
25436
25437  tab.
25438  See section 
25439 \emph on
25440 Converters
25441 \emph default
25442  of the 
25443 \emph on
25444 Customization
25445 \emph default
25446  manual for general information about converters.
25447 \end_layout
25448
25449 \end_inset
25450
25451  to generate the \SpecialChar LaTeX
25452  file.
25453 \end_layout
25454
25455 \begin_deeper
25456 \begin_layout Standard
25457 Otherwise it will just skip this step.
25458 \end_layout
25459
25460 \end_deeper
25461 \begin_layout Enumerate
25462 Finally, \SpecialChar LaTeX
25463  is invoked and the regular post processing continues as in a plain
25464  document.
25465 \end_layout
25466
25467 \begin_layout Standard
25468 Independence from a particular 
25469 \begin_inset Quotes eld
25470 \end_inset
25471
25472 literate tool
25473 \begin_inset Quotes erd
25474 \end_inset
25475
25476  is easily achieved by changing the commands that are run by the various
25477  converters.
25478 \end_layout
25479
25480 \begin_layout Paragraph
25481 Generating the code
25482 \end_layout
25483
25484 \begin_layout Standard
25485 When the build menu option is chosen or the corresponding button in the
25486  toolbar is pressed, a \SpecialChar LaTeX
25487  file is generated just like step 1 above.
25488  Next, \SpecialChar LyX
25489  invokes the 
25490 \family typewriter
25491 Noweb->Program
25492 \family default
25493  converter.
25494  This converter needs to be defined by the user and is not installed by
25495  default, though the Program format is.
25496  This converter (like any other converter) will have two parts:
25497 \end_layout
25498
25499 \begin_layout Enumerate
25500 The converter program itself.
25501  This program performs the conversion from the one format to the other (in
25502  this case, from the Noweb format to the Program pseudo-format).
25503 \end_layout
25504
25505 \begin_layout Enumerate
25506 The error log parser.
25507  This is a program whose sole purpose is to rewrite error messages in a
25508  format that \SpecialChar LyX
25509  understands.
25510  This makes it possible for \SpecialChar LyX
25511  to place error boxes in the right places in
25512  the file buffer.
25513 \end_layout
25514
25515 \begin_layout Standard
25516 The first part, the 
25517 \begin_inset Quotes eld
25518 \end_inset
25519
25520 Converter
25521 \begin_inset Quotes erd
25522 \end_inset
25523
25524  setting, should be set to
25525 \end_layout
25526
25527 \begin_layout LyX-Code
25528
25529 \family typewriter
25530 build-script $$i
25531 \family default
25532  $$r
25533 \end_layout
25534
25535 \begin_layout Standard
25536 This basically means that \SpecialChar LyX
25537  will call 
25538 \begin_inset Quotes eld
25539 \end_inset
25540
25541 build-script
25542 \begin_inset Quotes erd
25543 \end_inset
25544
25545  (a program or script) with the name of the Noweb file (normally a file
25546  in the \SpecialChar LyX
25547  temp directory) and the directory path of the original \SpecialChar LyX
25548  file.
25549  
25550 \end_layout
25551
25552 \begin_layout Standard
25553 This is an implementation of 
25554 \begin_inset Quotes eld
25555 \end_inset
25556
25557 build-script
25558 \begin_inset Quotes erd
25559 \end_inset
25560
25561  that you can place in a directory on your path:
25562 \end_layout
25563
25564 \begin_layout LyX-Code
25565
25566 \family sans
25567 #!/bin/sh
25568 \end_layout
25569
25570 \begin_layout LyX-Code
25571
25572 \family sans
25573 #
25574 \end_layout
25575
25576 \begin_layout LyX-Code
25577
25578 \family sans
25579 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25580 \end_layout
25581
25582 \begin_layout Standard
25583 The next part of the converter setting is the 
25584 \begin_inset Quotes eld
25585 \end_inset
25586
25587 Flags
25588 \begin_inset Quotes erd
25589 \end_inset
25590
25591  which is to be set to
25592 \end_layout
25593
25594 \begin_layout LyX-Code
25595
25596 \family typewriter
25597 parselog=$$s/scripts/listerrors
25598 \end_layout
25599
25600 \begin_layout Standard
25601 This will run any errors that are generated by the 
25602 \begin_inset Quotes eld
25603 \end_inset
25604
25605 build-script
25606 \begin_inset Quotes erd
25607 \end_inset
25608
25609  process through the 
25610 \begin_inset Quotes eld
25611 \end_inset
25612
25613 listerrors
25614 \begin_inset Quotes erd
25615 \end_inset
25616
25617  program.
25618 \end_layout
25619
25620 \begin_layout Standard
25621 The build will normally take place in \SpecialChar LyX
25622 's temporary directory, so the files
25623  produced by the conversion will be in that directory.
25624  \SpecialChar LyX
25625  will copy out what it regards as the `main' file, but the 
25626 \family typewriter
25627 Noweb->Program
25628 \family default
25629  conversion may produce several files, and so most of these would then be
25630  deleted when \SpecialChar LyX
25631  was closed.
25632  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25633  the build-script chunk can place the generated files in that location.
25634 \end_layout
25635
25636 \begin_layout Paragraph
25637 Build instructions in the document
25638 \end_layout
25639
25640 \begin_layout Standard
25641 The last piece of the integration between \SpecialChar LyX
25642  and noweb is the 
25643 \begin_inset Quotes eld
25644 \end_inset
25645
25646 build-script
25647 \begin_inset Quotes erd
25648 \end_inset
25649
25650  chunk.
25651  Generally, the instructions for building your program should be embedded
25652  in a chunk of its own.
25653  The noweb-specific 
25654 \begin_inset Quotes eld
25655 \end_inset
25656
25657 build-script
25658 \begin_inset Quotes erd
25659 \end_inset
25660
25661  above uses the notangle command to look for this chunk (called 
25662 \begin_inset Quotes eld
25663 \end_inset
25664
25665 build-script
25666 \begin_inset Quotes erd
25667 \end_inset
25668
25669 ) and runs its contents through 
25670 \begin_inset Quotes eld
25671 \end_inset
25672
25673 sh
25674 \begin_inset Quotes erd
25675 \end_inset
25676
25677 .
25678 \end_layout
25679
25680 \begin_layout Standard
25681 Typically, such a chunk would look something like this:
25682 \end_layout
25683
25684 \begin_layout LyX-Code
25685 <<build-script>>=
25686 \end_layout
25687
25688 \begin_layout LyX-Code
25689 #!/bin/sh
25690 \begin_inset Newline newline
25691 \end_inset
25692
25693 if [ -z "${NOWEB_SOURCE}" ]
25694 \begin_inset Newline newline
25695 \end_inset
25696
25697 then
25698 \end_layout
25699
25700 \begin_layout LyX-Code
25701 NOWEB_SOURCE=myfile.nw
25702 \begin_inset Newline newline
25703 \end_inset
25704
25705 fi
25706 \begin_inset Newline newline
25707 \end_inset
25708
25709 [...
25710  code to extract files ...
25711  use NOWEB_OUTPUT_DIR here ...]
25712 \begin_inset Newline newline
25713 \end_inset
25714
25715 [...
25716  code to compile files ...]
25717 \begin_inset Newline newline
25718 \end_inset
25719
25720 @
25721 \end_layout
25722
25723 \begin_layout Standard
25724 Look in 
25725 \emph on
25726 LIBDIR/examples/listerrors.lyx
25727 \emph default
25728  or in 
25729 \emph on
25730 LIBDIR/examples/Literate.lyx
25731 \emph default
25732  which implement two versions of the 
25733 \begin_inset Quotes eld
25734 \end_inset
25735
25736 listerrors
25737 \begin_inset Quotes erd
25738 \end_inset
25739
25740  program for some illustrations of how all of these pieces go together or
25741  in 
25742 \emph on
25743 LIBDIR/examples/noweb2lyx.lyx.
25744
25745 \emph default
25746  Interestingly, these three files show off the language-indepence of the
25747  \SpecialChar LyX
25748  literate programming support since they are written in Python, C and Perl
25749  respectively.
25750 \end_layout
25751
25752 \begin_layout Subsubsection
25753 Configuring \SpecialChar LyX
25754
25755 \end_layout
25756
25757 \begin_layout Standard
25758 All the Literate Programming support is configured by the 
25759 \family sans
25760 Tools\SpecialChar menuseparator
25761 Preferences
25762 \family default
25763  panel in the 
25764 \begin_inset Quotes eld
25765 \end_inset
25766
25767 File Handling
25768 \begin_inset Quotes erd
25769 \end_inset
25770
25771  tab.
25772  The important parts are:
25773 \end_layout
25774
25775 \begin_layout Description
25776 the
25777 \begin_inset space ~
25778 \end_inset
25779
25780
25781 \begin_inset Quotes eld
25782 \end_inset
25783
25784 NoWeb
25785 \begin_inset Quotes erd
25786 \end_inset
25787
25788
25789 \begin_inset space ~
25790 \end_inset
25791
25792 format Set up via the File Formats tab, this is where the Noweb-specific
25793  pieces are set up.
25794  The 
25795 \family sans
25796 GUI Name
25797 \family default
25798  is set to 
25799 \family typewriter
25800 NoWeb
25801 \family default
25802 , the file extension is set to 
25803 \family typewriter
25804 .nw
25805 \family default
25806 .
25807  This tells \SpecialChar LyX
25808  to create a file with a 
25809 \family typewriter
25810 .nw
25811 \family default
25812  extension in the first step of the conversion process.
25813 \end_layout
25814
25815 \begin_layout Description
25816 the
25817 \begin_inset space ~
25818 \end_inset
25819
25820
25821 \family sans
25822 Program
25823 \family default
25824
25825 \begin_inset space ~
25826 \end_inset
25827
25828 format This is an empty format whose sole purpose is to be the endpoint
25829  of a conversion (which then allows us to set up a converter for it).
25830 \end_layout
25831
25832 \begin_layout Description
25833
25834 \family sans
25835 NoWeb
25836 \family default
25837 ->
25838 \family sans
25839 \SpecialChar LaTeX
25840
25841 \family default
25842  This converter performs the 
25843 \begin_inset Quotes eld
25844 \end_inset
25845
25846 weaving
25847 \begin_inset Quotes erd
25848 \end_inset
25849
25850  of the literate document.
25851  For Noweb, it is set to 
25852 \begin_inset Quotes eld
25853 \end_inset
25854
25855
25856 \family typewriter
25857 noweave -delay -index $$i > $$o
25858 \family default
25859
25860 \begin_inset Quotes erd
25861 \end_inset
25862
25863
25864 \end_layout
25865
25866 \begin_layout Description
25867
25868 \family sans
25869 NoWeb
25870 \family default
25871 ->
25872 \family sans
25873 Program
25874 \family default
25875  This performs the 
25876 \begin_inset Quotes eld
25877 \end_inset
25878
25879 tangling step
25880 \begin_inset Quotes erd
25881 \end_inset
25882
25883 .
25884  As stated above, the Converter is set to 
25885 \begin_inset Quotes eld
25886 \end_inset
25887
25888
25889 \family typewriter
25890 build-script $$i
25891 \family default
25892  $$r
25893 \begin_inset Quotes erd
25894 \end_inset
25895
25896 , with Flags set to
25897 \begin_inset Newline newline
25898 \end_inset
25899
25900
25901 \begin_inset Quotes eld
25902 \end_inset
25903
25904
25905 \family typewriter
25906 parselog=$$s/scripts/listerrors
25907 \family default
25908
25909 \begin_inset Quotes erd
25910 \end_inset
25911
25912 .
25913 \end_layout
25914
25915 \begin_layout Subsubsection
25916 Debug extensions
25917 \end_layout
25918
25919 \begin_layout Standard
25920 There is also a new function implemented in the \SpecialChar LyX
25921  server, the 
25922 \begin_inset Quotes eld
25923 \end_inset
25924
25925 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25926  
25927 \end_layout
25928
25929 \begin_layout Standard
25930 When debugging code with ddd/gdb, it is possible to invoke a text editor
25931  at the current execution position with a single key stroke.
25932  The default ddd configuration for that is shift-ctrl-V.
25933  It happens that you can define the editor command line invocation in ddd
25934  by accessing the 
25935 \family sans
25936 Edit\SpecialChar menuseparator
25937 Preferences\SpecialChar menuseparator
25938 Helpers
25939 \family default
25940  dialog and changing the "Edit Sources" entry.
25941 \end_layout
25942
25943 \begin_layout Standard
25944 I take advantage of the newly created \SpecialChar LyX
25945  server function and this ddd feature,
25946  and set 
25947 \begin_inset Quotes eld
25948 \end_inset
25949
25950 Edit Sources
25951 \begin_inset Quotes erd
25952 \end_inset
25953
25954  to:
25955 \end_layout
25956
25957 \begin_layout LyX-Code
25958 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25959 \end_layout
25960
25961 \begin_layout Standard
25962 With this, whenever you are using ddd and find a point in the program that
25963  you want to edit, you just press shift-ctrl-V (in the ddd window), and
25964  ddd will forward this information to \SpecialChar LyX
25965  through the \SpecialChar LyX
25966  server and then the
25967  \SpecialChar LyX
25968  window will show the same file with the cursor at the same position ddd
25969  was pointing to.
25970  No more guessing or long scrolling to locate a point in the program back
25971  from debugging !
25972 \end_layout
25973
25974 \begin_layout Standard
25975 Note however that you must enable the \SpecialChar LyX
25976  server to get this feature working
25977  (it is disabled by default).
25978  Sec.
25979 \begin_inset space ~
25980 \end_inset
25981
25982
25983 \begin_inset CommandInset ref
25984 LatexCommand ref
25985 reference "sec:Starting-the-Server"
25986
25987 \end_inset
25988
25989  explains how to do that.
25990 \end_layout
25991
25992 \begin_layout Subsubsection
25993 Toolbar extensions
25994 \end_layout
25995
25996 \begin_layout Standard
25997 There are six new buttons that can be added to your \SpecialChar LyX
25998  toolbar.
25999  Four of these buttons are short cuts to layout styles: 
26000 \family sans
26001 Standard
26002 \family default
26003
26004 \family sans
26005 Section
26006 \family default
26007
26008 \family sans
26009 \SpecialChar LaTeX
26010
26011 \family default
26012 , and 
26013 \family sans
26014 \SpecialChar LyX
26015 -Code
26016 \family default
26017 , one for the custom inset 
26018 \family sans
26019 Chunk
26020 \family default
26021 .
26022  The last one is a short cut to the 
26023 \begin_inset Quotes eld
26024 \end_inset
26025
26026 Build Program
26027 \begin_inset Quotes erd
26028 \end_inset
26029
26030  File menu entry.
26031  
26032 \end_layout
26033
26034 \begin_layout Standard
26035 \SpecialChar LyX
26036  has a range of buttons that are available for tool bar customization.
26037  In my toolbar I like to combine the six short cuts above with two more:
26038  One for 
26039 \family sans
26040 Document
26041 \family default
26042 \SpecialChar menuseparator
26043
26044 \family sans
26045 Update
26046 \family default
26047 \SpecialChar menuseparator
26048
26049 \family sans
26050 DVI
26051 \family default
26052  and the other for 
26053 \family sans
26054 Document\SpecialChar menuseparator
26055 View\SpecialChar menuseparator
26056 DVI
26057 \family default
26058  File menu entries.
26059  Here is how it looks like:
26060 \end_layout
26061
26062 \begin_layout LyX-Code
26063 Toolbar
26064 \end_layout
26065
26066 \begin_layout LyX-Code
26067   Layouts
26068 \end_layout
26069
26070 \begin_layout LyX-Code
26071   Icon "layout Standard"
26072 \end_layout
26073
26074 \begin_layout LyX-Code
26075   Icon "layout Section"
26076 \end_layout
26077
26078 \begin_layout LyX-Code
26079   Icon "layout \SpecialChar LaTeX
26080 "
26081 \end_layout
26082
26083 \begin_layout LyX-Code
26084   Icon "layout \SpecialChar LyX
26085 -Code"
26086 \end_layout
26087
26088 \begin_layout LyX-Code
26089   Icon "flex.insert Chunk"
26090 \end_layout
26091
26092 \begin_layout LyX-Code
26093   Separator
26094 \end_layout
26095
26096 \begin_layout LyX-Code
26097   Icon "buffer-view"
26098 \end_layout
26099
26100 \begin_layout LyX-Code
26101   Icon "buffer-typeset"
26102 \end_layout
26103
26104 \begin_layout LyX-Code
26105   Icon "build-program"
26106 \end_layout
26107
26108 \begin_layout LyX-Code
26109   Separator
26110 \end_layout
26111
26112 \begin_layout LyX-Code
26113 .
26114 \end_layout
26115
26116 \begin_layout LyX-Code
26117 .
26118 \end_layout
26119
26120 \begin_layout LyX-Code
26121 .
26122 \end_layout
26123
26124 \begin_layout LyX-Code
26125 End
26126 \end_layout
26127
26128 \begin_layout Subsubsection
26129 Colors customization
26130 \end_layout
26131
26132 \begin_layout Standard
26133 There are a number of colors in \SpecialChar LyX
26134  that can be customized in 
26135 \family sans
26136 Preferences
26137 \family default
26138 .
26139  One of the things that bothers people is the \SpecialChar LaTeX
26140  font color.
26141  The default color is red, since the chunks uses \SpecialChar LaTeX
26142  font, and there is a lot
26143  of chunks in literate documents, you may get tired of seeing everything
26144  in red.
26145  You can change it by going to the tabs 
26146 \family sans
26147 Look&Feel
26148 \family default
26149
26150 \family sans
26151 Colors.
26152 \end_layout
26153
26154 \begin_layout Standard
26155 The next thing is the visible presence of the newline character in the screen.
26156  You can choose the color of this particular character and make it blend
26157  in the background.
26158  I recommend you choosing a color that is close to the background but not
26159  equal, that way you still can see it is there, but it is not bothering
26160  you anymore.
26161 \end_layout
26162
26163 \begin_layout Subsection
26164 \SpecialChar LyX
26165  and knitr/Sweave
26166 \end_layout
26167
26168 \begin_layout Standard
26169 Support for 
26170 \family sans
26171 knitr
26172 \family default
26173  and 
26174 \family sans
26175 Sweave
26176 \family default
26177  is documented in the 
26178 \emph on
26179 knitr.lyx
26180 \emph default
26181  example file and in the Sweave manual (menu 
26182 \family sans
26183 Help\SpecialChar menuseparator
26184 Specific Manuals
26185 \family default
26186 ).
26187 \end_layout
26188
26189 \begin_layout Chapter
26190 Special features
26191 \end_layout
26192
26193 \begin_layout Standard
26194 You can do everything with \SpecialChar LyX
26195  that you can do with \SpecialChar LaTeX
26196 .
26197  However, \SpecialChar LyX
26198  cannot support every \SpecialChar LaTeX
26199  feature directly.
26200  But you can always use \SpecialChar TeX
26201  Code.
26202  This chapter shows you some more special things you might want to use.
26203  For other special things you can do with figures, tables, floats, boxes
26204  and notes, have a look at the 
26205 \emph on
26206 Embedded
26207 \begin_inset space ~
26208 \end_inset
26209
26210 Objects
26211 \emph default
26212  manual.
26213 \end_layout
26214
26215 \begin_layout Section
26216 Multiple Text Columns
26217 \end_layout
26218
26219 \begin_layout Standard
26220 This feature is independent of the option 
26221 \family sans
26222 Two-column document
26223 \family default
26224  in the document settings under 
26225 \family sans
26226 Text Layout
26227 \family default
26228 .
26229  If you want to have 2
26230 \begin_inset space ~
26231 \end_inset
26232
26233 columns for the whole document, it is recommended to use the 
26234 \family sans
26235 Two-column document
26236 \family default
26237  option.
26238  For all other cases use this feature.
26239 \end_layout
26240
26241 \begin_layout Standard
26242 To use multiple text columns in your document, you have to load the module
26243  
26244 \family sans
26245 Multiple Columns
26246 \family default
26247  (menu 
26248 \family sans
26249 Document\SpecialChar menuseparator
26250 Settings\SpecialChar menuseparator
26251 Modules
26252 \family default
26253 ) and must have the \SpecialChar LaTeX
26254 -package 
26255 \begin_inset Flex Code
26256 status collapsed
26257
26258 \begin_layout Plain Layout
26259 multicol
26260 \end_layout
26261
26262 \end_inset
26263
26264  installed.
26265 \end_layout
26266
26267 \begin_layout Standard
26268 Footnotes within multiple columns will be placed at the bottom of the page
26269  and not under each column.
26270  Within the different columns you can use everything, with the limitation
26271  that for floats you need to use the float option 
26272 \family sans
26273 Span columns
26274 \family default
26275 .
26276 \end_layout
26277
26278 \begin_layout Subsection
26279 Basics
26280 \end_layout
26281
26282 \begin_layout Standard
26283 If you want to have 2
26284 \begin_inset space ~
26285 \end_inset
26286
26287 columns in your text, insert a multicolumn inset via the menu 
26288 \family sans
26289 Insert\SpecialChar menuseparator
26290 Custom
26291 \begin_inset space ~
26292 \end_inset
26293
26294 Insets\SpecialChar menuseparator
26295 Multiple
26296 \begin_inset space ~
26297 \end_inset
26298
26299 Columns
26300 \family default
26301  where the columns should start.
26302  Write all text that should be printed in 2
26303 \begin_inset space ~
26304 \end_inset
26305
26306 columns into this inset.
26307 \end_layout
26308
26309 \begin_layout Standard
26310 Here is an example:
26311 \end_layout
26312
26313 \begin_layout Standard
26314 \noindent
26315 \begin_inset Flex Multiple Columns
26316 status open
26317
26318 \begin_layout Plain Layout
26319 \noindent
26320
26321 \series bold
26322 \size small
26323 The Adventure of the Empty House
26324 \series default
26325
26326 \begin_inset Newline newline
26327 \end_inset
26328
26329 by Sir Arthur Conan Doyle
26330 \end_layout
26331
26332 \begin_layout Plain Layout
26333
26334 \size small
26335 It was in the spring of the year 1894 that all London was interested, and
26336  the fashionable world dismayed, by the murder of the Honourable Ronald
26337  Adair under most unusual and inexplicable circumstances.
26338  The public has already learned those particulars of the crime which came
26339  out in the police investigation, but a good deal was suppressed upon that
26340  occasion, since the case for the prosecution was so overwhelmingly strong
26341  that it was not necessary to bring forward all the facts.
26342  Only now, at the end of nearly ten years, am I allowed to supply those
26343  missing links which make up the whole of that remarkable chain.
26344  The crime was of interest in itself, but that interest was as nothing to
26345  me compared to the inconceivable sequel, which afforded me the greatest
26346  shock and surprise of any event in my adventurous life.
26347  Even now, after this long interval, I find myself thrilling as I think
26348  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26349 ty which utterly submerged my mind.
26350  Let me say to that public, which has shown some interest in those glimpses
26351  which I have occasionally given them of the thoughts and actions of a very
26352  remarkable man, that they are not to blame me if I have not shared my knowledge
26353  with them, for I should have considered it my first duty to do so, had
26354  I not been barred by a positive prohibition from his own lips, which was
26355  only withdrawn upon the third of last month.
26356 \end_layout
26357
26358 \end_inset
26359
26360
26361 \end_layout
26362
26363 \begin_layout Standard
26364 To get 3 or more columns, set the cursor into the multicolumn inset and
26365  use the menu 
26366 \family sans
26367 Insert\SpecialChar menuseparator
26368 Number
26369 \begin_inset space ~
26370 \end_inset
26371
26372 of
26373 \begin_inset space ~
26374 \end_inset
26375
26376 Columns
26377 \family default
26378 .
26379  The number of the desired columns is written into that inset (for 3
26380 \begin_inset space ~
26381 \end_inset
26382
26383 columns write 
26384 \begin_inset Quotes eld
26385 \end_inset
26386
26387 3
26388 \begin_inset Quotes erd
26389 \end_inset
26390
26391 ).
26392 \begin_inset Newline newline
26393 \end_inset
26394
26395 Here is an example with 3
26396 \begin_inset space ~
26397 \end_inset
26398
26399 columns:
26400 \end_layout
26401
26402 \begin_layout Standard
26403 \begin_inset Flex Multiple Columns
26404 status open
26405
26406 \begin_layout Plain Layout
26407
26408 \size footnotesize
26409 \begin_inset Argument 1
26410 status open
26411
26412 \begin_layout Plain Layout
26413
26414 3
26415 \end_layout
26416
26417 \end_inset
26418
26419 It can be imagined that my close intimacy with Sherlock Holmes had interested
26420  me deeply in crime, and that after his disappearance I never failed to
26421  read with care the various problems which came before the public.
26422  And I even attempted, more than once, for my own private satisfaction,
26423  to employ his methods in their solution, though with indifferent success.
26424  There was none, however, which appealed to me like this tragedy of Ronald
26425  Adair.
26426  As I read the evidence at the inquest, which led up to a verdict of willful
26427  murder against some person or persons unknown, I realized more clearly
26428  than I had ever done the loss which the community had sustained by the
26429  death of Sherlock Holmes.
26430  There were points about this strange business which would, I was sure,
26431  have specially appealed to him, and the efforts of the police would have
26432  been supplemented, or more probably anticipated, by the trained observation
26433  and the alert mind of the first criminal agent in Europe.
26434  All day, as I drove upon my round, I turned over the case in my mind and
26435  found no explanation which appeared to me to be adequate.
26436  At the risk of telling a twice-told tale, I will recapitulate the facts
26437  as they were known to the public at the conclusion of the inquest.
26438 \end_layout
26439
26440 \end_inset
26441
26442
26443 \end_layout
26444
26445 \begin_layout Standard
26446 You can have up to 10
26447 \begin_inset space ~
26448 \end_inset
26449
26450 columns if you want to, but that might not be very pleasant for the readers
26451  of your document.
26452 \end_layout
26453
26454 \begin_layout Standard
26455 \begin_inset Newpage newpage
26456 \end_inset
26457
26458
26459 \end_layout
26460
26461 \begin_layout Subsection
26462 Columns inside Columns
26463 \end_layout
26464
26465 \begin_layout Standard
26466 You can also have columns inside columns:
26467 \end_layout
26468
26469 \begin_layout Standard
26470 \begin_inset Flex Multiple Columns
26471 status open
26472
26473 \begin_layout Plain Layout
26474
26475 \size footnotesize
26476 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26477  at that time governor of one of the Australian colonies.
26478  Adair's mother had returned from Australia to undergo the operation for
26479  cataract, and she, her son Ronald, and her daughter Hilda were living together
26480  at 427 Park Lane.
26481 \end_layout
26482
26483 \begin_layout Plain Layout
26484 \begin_inset Flex Multiple Columns
26485 status open
26486
26487 \begin_layout Plain Layout
26488
26489 \size footnotesize
26490 The youth moved in the best society
26491 \begin_inset space ~
26492 \end_inset
26493
26494 – had, so far as was known, no enemies and no particular vices.
26495  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26496  had been broken off by mutual consent some months before, and there was
26497  no sign that it had left any very profound feeling behind it.
26498  For the rest {sic} the man's life moved in a narrow and conventional circle,
26499  for his habits were quiet and his nature unemotional.
26500  Yet it was upon this easy-going young aristocrat that death came, in most
26501  strange and unexpected form, between the hours of ten and eleven-twenty
26502  on the night of March 30, 1894.
26503 \end_layout
26504
26505 \end_inset
26506
26507
26508 \end_layout
26509
26510 \begin_layout Plain Layout
26511
26512 \size footnotesize
26513 Ronald Adair was fond of cards
26514 \begin_inset space ~
26515 \end_inset
26516
26517 – playing continually, but never for such stakes as would hurt him.
26518  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26519  It was shown that, after dinner on the day of his death, he had played
26520  a rubber of whist at the latter club.
26521  He had also played there in the afternoon.
26522
26523 \size default
26524  
26525 \size footnotesize
26526 The evidence of those who had played with him
26527 \begin_inset space ~
26528 \end_inset
26529
26530 – Mr.
26531  Murray, Sir John Hardy, and Colonel Moran
26532 \begin_inset space ~
26533 \end_inset
26534
26535 – showed that the game was whist, and that there was a fairly equal fall
26536  of the cards.
26537  Adair might have lost five pounds, but not more.
26538  His fortune was a considerable one, and such a loss could not in any way
26539  affect him.
26540  He had played nearly every day at one club or other, but he was a cautious
26541  player, and usually rose a winner.
26542  It came out in evidence that, in partnership with Colonel Moran, he had
26543  actually won as much as four hundred and twenty pounds in a sitting, some
26544  weeks before, from Godfrey Milner and Lord Balmoral.
26545  So much for his recent history as it came out at the inquest.
26546 \end_layout
26547
26548 \end_inset
26549
26550
26551 \end_layout
26552
26553 \begin_layout Subsection
26554 Advanced Examples
26555 \end_layout
26556
26557 \begin_layout Standard
26558 The examples in this section show some more special features of multiple
26559  columns.
26560 \end_layout
26561
26562 \begin_layout Standard
26563 For more features of multiple columns, have a look at the 
26564 \begin_inset CommandInset href
26565 LatexCommand href
26566 name "documentation"
26567 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26568 literal "false"
26569
26570 \end_inset
26571
26572  of the \SpecialChar LaTeX
26573 -package 
26574 \begin_inset Flex Code
26575 status collapsed
26576
26577 \begin_layout Plain Layout
26578 multicol
26579 \end_layout
26580
26581 \end_inset
26582
26583 .
26584 \end_layout
26585
26586 \begin_layout Subsubsection
26587 Preface
26588 \end_layout
26589
26590 \begin_layout Standard
26591 To add a preface text for multiple columns, set the cursor into the multicolumn
26592  inset and use the menu 
26593 \family sans
26594 Insert\SpecialChar menuseparator
26595 Preface
26596 \family default
26597 .
26598  Write your preface text into that inset.
26599 \begin_inset Newline newline
26600 \end_inset
26601
26602 This is an example with some preface text:
26603 \end_layout
26604
26605 \begin_layout Standard
26606 \begin_inset VSpace bigskip
26607 \end_inset
26608
26609
26610 \end_layout
26611
26612 \begin_layout Standard
26613 \begin_inset Flex Multiple Columns
26614 status open
26615
26616 \begin_layout Plain Layout
26617 \begin_inset Argument 2
26618 status open
26619
26620 \begin_layout Plain Layout
26621 And the story continues and continues and continues and continues\SpecialChar ldots
26622
26623 \end_layout
26624
26625 \end_inset
26626
26627
26628 \size small
26629 On the evening of the crime, he returned from the club exactly at ten.
26630  His mother and sister were out spending the evening with a relation.
26631  The servant deposed that she heard him enter the front room on the second
26632  floor, generally used as his sitting-room.
26633  She had lit a fire there, and as it smoked she had opened the window.
26634  No sound was heard from the room until eleven-twenty, the hour of the return
26635  of Lady Maynooth and her daughter.
26636  Desiring to say good-night, she attempted to enter her son's room.
26637  The door was locked on the inside, and no answer could be got to their
26638  cries and knocking.
26639  Help was obtained, and the door forced.
26640  The unfortunate young man was found lying near the table.
26641  His head had been horribly mutilated by an expanding revolver bullet, but
26642  no weapon of any sort was to be found in the room.
26643 \end_layout
26644
26645 \end_inset
26646
26647
26648 \end_layout
26649
26650 \begin_layout Standard
26651 You can also use a section heading as the preface if you use a section command
26652  as \SpecialChar TeX
26653  Code.
26654  For example the command
26655 \end_layout
26656
26657 \begin_layout LyX-Code
26658
26659 \backslash
26660 subsection{subsection title}
26661 \end_layout
26662
26663 \begin_layout Standard
26664 creates a subsection.
26665  In this example the preface is a subsubsection:
26666 \end_layout
26667
26668 \begin_layout Standard
26669 \begin_inset Flex Multiple Columns
26670 status open
26671
26672 \begin_layout Plain Layout
26673 \begin_inset Argument 2
26674 status open
26675
26676 \begin_layout Plain Layout
26677 \begin_inset ERT
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681
26682
26683 \backslash
26684 subsubsection{
26685 \end_layout
26686
26687 \end_inset
26688
26689 This is a subsubsection heading as a preface
26690 \begin_inset ERT
26691 status collapsed
26692
26693 \begin_layout Plain Layout
26694
26695 }
26696 \end_layout
26697
26698 \end_inset
26699
26700
26701 \end_layout
26702
26703 \end_inset
26704
26705
26706 \size small
26707 A minute examination of the circumstances served only to make the case more
26708  complex.
26709  In the first place, no reason could be given why the young man should have
26710  fastened the door upon the inside.
26711  There was the possibility that the murderer had done this, and had afterwards
26712  escaped by the window.
26713  The drop was at least twenty feet, however, and a bed of crocuses in full
26714  bloom lay beneath.
26715  Neither the flowers nor the earth showed any sign of having been disturbed,
26716  nor were there any marks upon the narrow strip of grass which separated
26717  the house from the road.
26718  Apparently, therefore, it was the young man himself who had fastened the
26719  door.
26720  But how did he come by his death? No one could have climbed up to the window
26721  without leaving traces.
26722  Suppose a man had fired through the window, he would indeed be a remarkable
26723  shot who could with a revolver inflict so deadly a wound.
26724  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26725  a hundred yards of the house.
26726  No one had heard a shot.
26727 \end_layout
26728
26729 \end_inset
26730
26731
26732 \end_layout
26733
26734 \begin_layout Standard
26735 If there is less vertical space than 6
26736 \begin_inset space ~
26737 \end_inset
26738
26739 text lines is left on the page at the beginning of the multiple columns,
26740  a page break will be inserted before the multiple columns.
26741  Depending on the number of lines of the preface text, you might want to
26742  change this space.
26743  This is done by setting the cursor into the mulitcolumn inset behind the
26744  preface (if there is any) and using the menu 
26745 \family sans
26746 Insert\SpecialChar menuseparator
26747 Space
26748 \begin_inset space ~
26749 \end_inset
26750
26751 Before
26752 \begin_inset space ~
26753 \end_inset
26754
26755 Page
26756 \begin_inset space ~
26757 \end_inset
26758
26759 Break
26760 \family default
26761 .
26762  Insert into that inset the amount of space like e.
26763 \begin_inset space \thinspace{}
26764 \end_inset
26765
26766 g.
26767 \begin_inset space \space{}
26768 \end_inset
26769
26770
26771 \begin_inset Quotes eld
26772 \end_inset
26773
26774 5cm
26775 \begin_inset Quotes erd
26776 \end_inset
26777
26778 .
26779 \begin_inset Newline newline
26780 \end_inset
26781
26782 In this example the space is set to 7
26783 \begin_inset space ~
26784 \end_inset
26785
26786 text lines by using 
26787 \begin_inset Flex Code
26788 status collapsed
26789
26790 \begin_layout Plain Layout
26791 7
26792 \backslash
26793 baselineskip
26794 \end_layout
26795
26796 \end_inset
26797
26798  (where the command 
26799 \begin_inset Flex Code
26800 status collapsed
26801
26802 \begin_layout Plain Layout
26803
26804 \backslash
26805 baselineskip
26806 \end_layout
26807
26808 \end_inset
26809
26810  needs to be inserted as \SpecialChar TeX
26811  code):
26812 \end_layout
26813
26814 \begin_layout Standard
26815 \begin_inset Flex Multiple Columns
26816 status open
26817
26818 \begin_layout Plain Layout
26819 \begin_inset Argument 3
26820 status open
26821
26822 \begin_layout Plain Layout
26823 7
26824 \begin_inset ERT
26825 status collapsed
26826
26827 \begin_layout Plain Layout
26828
26829
26830 \backslash
26831 baselineskip
26832 \end_layout
26833
26834 \end_inset
26835
26836
26837 \end_layout
26838
26839 \end_inset
26840
26841
26842 \size small
26843 On the evening of the crime, he returned from the club exactly at ten.
26844  His mother and sister were out spending the evening with a relation.
26845  The servant deposed that she heard him enter the front room on the second
26846  floor, generally used as his sitting-room.
26847  She had lit a fire there, and as it smoked she had opened the window.
26848  No sound was heard from the room until eleven-twenty, the hour of the return
26849  of Lady Maynooth and her daughter.
26850  Desiring to say good-night, she attempted to enter her son's room.
26851  The door was locked on the inside, and no answer could be got to their
26852  cries and knocking.
26853  Help was obtained, and the door forced.
26854  The unfortunate young man was found lying near the table.
26855  His head had been horribly mutilated by an expanding revolver bullet, but
26856  no weapon of any sort was to be found in the room.
26857 \end_layout
26858
26859 \end_inset
26860
26861
26862 \end_layout
26863
26864 \begin_layout Subsubsection
26865 Surrounding Space
26866 \end_layout
26867
26868 \begin_layout Standard
26869 The amount of space before and after multiple columns can be changed by
26870  changing the length 
26871 \begin_inset Flex Code
26872 status collapsed
26873
26874 \begin_layout Plain Layout
26875
26876 \backslash
26877 multicolsep
26878 \end_layout
26879
26880 \end_inset
26881
26882 .
26883  For example the command
26884 \end_layout
26885
26886 \begin_layout LyX-Code
26887
26888 \backslash
26889 setlength{
26890 \backslash
26891 multicolsep}{3cm}
26892 \end_layout
26893
26894 \begin_layout Standard
26895 in \SpecialChar TeX
26896  Code changes its value to 3
26897 \begin_inset space \thinspace{}
26898 \end_inset
26899
26900 cm.
26901  The change must be made before the multiple columns' start.
26902  The predefined value is 13
26903 \begin_inset space \thinspace{}
26904 \end_inset
26905
26906 pt.
26907 \end_layout
26908
26909 \begin_layout Standard
26910 For this example 
26911 \begin_inset Flex Code
26912 status collapsed
26913
26914 \begin_layout Plain Layout
26915
26916 \backslash
26917 multicolsep
26918 \end_layout
26919
26920 \end_inset
26921
26922  was set to 2.5
26923 \begin_inset space \thinspace{}
26924 \end_inset
26925
26926 cm:
26927 \end_layout
26928
26929 \begin_layout Standard
26930 \begin_inset ERT
26931 status open
26932
26933 \begin_layout Plain Layout
26934
26935
26936 \backslash
26937 setlength{
26938 \backslash
26939 multicolsep}{2.5cm}
26940 \end_layout
26941
26942 \end_inset
26943
26944
26945 \end_layout
26946
26947 \begin_layout Standard
26948 \begin_inset Flex Multiple Columns
26949 status open
26950
26951 \begin_layout Plain Layout
26952
26953 \size small
26954 All day I turned these facts over in my mind, endeavouring to hit upon some
26955  theory which could reconcile them all, and to find that line of least resistanc
26956 e which my poor friend had declared to be the starting-point of every investigat
26957 ion.
26958  I confess that I made little progress.
26959  In the evening I strolled across the Park, and found myself about six o'clock
26960  at the Oxford Street end of Park Lane.
26961  A group of loafers upon the pavements, all staring up at a particular window,
26962  directed me to the house which I had come to see.
26963  A tall, thin man with coloured glasses, whom I strongly suspected of being
26964  a plain-clothes detective, was pointing out some theory of his own, while
26965  the others crowded round to listen to what he said.
26966  I got as near him as I could, but his observations seemed to me to be absurd,
26967  so I withdrew again in some disgust.
26968  As I did so I struck against an elderly, deformed man, who had been behind
26969  me, and I knocked down several books which he was carrying.
26970 \end_layout
26971
26972 \end_inset
26973
26974
26975 \end_layout
26976
26977 \begin_layout Standard
26978 \begin_inset Note Greyedout
26979 status open
26980
26981 \begin_layout Plain Layout
26982
26983 \series bold
26984 Note:
26985 \series default
26986  The values you set with 
26987 \begin_inset Flex Code
26988 status collapsed
26989
26990 \begin_layout Plain Layout
26991
26992 \backslash
26993 setlength
26994 \end_layout
26995
26996 \end_inset
26997
26998  will be used for all following multiple columns until you change them again.
26999 \end_layout
27000
27001 \end_inset
27002
27003
27004 \end_layout
27005
27006 \begin_layout Standard
27007 \begin_inset ERT
27008 status collapsed
27009
27010 \begin_layout Plain Layout
27011
27012
27013 \backslash
27014 setlength{
27015 \backslash
27016 multicolsep}{13pt}
27017 \end_layout
27018
27019 \end_inset
27020
27021
27022 \begin_inset Note Note
27023 status collapsed
27024
27025 \begin_layout Plain Layout
27026 go back to the default
27027 \end_layout
27028
27029 \end_inset
27030
27031
27032 \end_layout
27033
27034 \begin_layout Standard
27035 \begin_inset Newpage newpage
27036 \end_inset
27037
27038
27039 \end_layout
27040
27041 \begin_layout Subsubsection
27042 Column Breaks
27043 \end_layout
27044
27045 \begin_layout Standard
27046 A column break can be forced by inserting the command 
27047 \begin_inset Flex Code
27048 status collapsed
27049
27050 \begin_layout Plain Layout
27051
27052 \backslash
27053 columnbreak{}
27054 \end_layout
27055
27056 \end_inset
27057
27058  as \SpecialChar TeX
27059  Code to that position in the text where the column should be broken.
27060  Note that this leads in most cases to whitespace in the text.
27061 \begin_inset Newline newline
27062 \end_inset
27063
27064 Here is an example:
27065 \end_layout
27066
27067 \begin_layout Standard
27068 \begin_inset Flex Multiple Columns
27069 status open
27070
27071 \begin_layout Plain Layout
27072
27073 \size small
27074 \begin_inset Quotes eld
27075 \end_inset
27076
27077 You're surprised to see me, sir,
27078 \begin_inset Quotes erd
27079 \end_inset
27080
27081  said he, in a strange, croaking voice.
27082 \end_layout
27083
27084 \begin_layout Plain Layout
27085
27086 \size small
27087 I acknowledged that I was.
27088 \end_layout
27089
27090 \begin_layout Plain Layout
27091
27092 \size small
27093 \begin_inset Quotes eld
27094 \end_inset
27095
27096 Well, I've a conscience, sir, and when I chanced to see you go into this
27097  house, as I came hobbling after you, I thought to myself, I'll just step
27098  in and see that kind gentleman, and tell him that if I was a bit gruff
27099  in my manner there was not any harm meant, and that I am much obliged to
27100  him for picking up my books.
27101 \begin_inset Quotes erd
27102 \end_inset
27103
27104
27105 \end_layout
27106
27107 \begin_layout Plain Layout
27108
27109 \size small
27110 \begin_inset Quotes eld
27111 \end_inset
27112
27113 You make too much of a trifle,
27114 \begin_inset Quotes erd
27115 \end_inset
27116
27117  said I.
27118  
27119 \begin_inset Quotes eld
27120 \end_inset
27121
27122 May I ask how you knew who I was?
27123 \begin_inset Quotes erd
27124 \end_inset
27125
27126  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
27127 \begin_inset ERT
27128 status collapsed
27129
27130 \begin_layout Plain Layout
27131
27132
27133 \backslash
27134 columnbreak{}
27135 \end_layout
27136
27137 \end_inset
27138
27139
27140 \end_layout
27141
27142 \begin_layout Plain Layout
27143
27144 \size small
27145 \begin_inset Quotes eld
27146 \end_inset
27147
27148 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27149  you'll find my little bookshop at the corner of Church Street, and very
27150  happy to see you, I am sure.
27151  Maybe you collect yourself, sir.
27152  Here's 
27153 \noun on
27154 British
27155 \begin_inset space ~
27156 \end_inset
27157
27158 Birds
27159 \noun default
27160 , and 
27161 \noun on
27162 Catullus
27163 \noun default
27164 , and 
27165 \noun on
27166 The Holy War
27167 \noun default
27168
27169 \begin_inset space ~
27170 \end_inset
27171
27172 – a bargain, every one of them.
27173  With five volumes you could just fill that gap on that second shelf.
27174  It looks untidy, does it not, sir?
27175 \begin_inset Quotes erd
27176 \end_inset
27177
27178
27179 \end_layout
27180
27181 \end_inset
27182
27183
27184 \end_layout
27185
27186 \begin_layout Subsubsection
27187 Column Separation
27188 \end_layout
27189
27190 \begin_layout Standard
27191 The width of the columns is automatically calculated, but you can modify
27192  the space between the columns.
27193  This is done by changing the length 
27194 \begin_inset Flex Code
27195 status collapsed
27196
27197 \begin_layout Plain Layout
27198
27199 \backslash
27200 columnsep
27201 \end_layout
27202
27203 \end_inset
27204
27205 .
27206  Its predefined value is 10
27207 \begin_inset space \thinspace{}
27208 \end_inset
27209
27210 pt.
27211  Here is an example where 
27212 \begin_inset Flex Code
27213 status collapsed
27214
27215 \begin_layout Plain Layout
27216
27217 \backslash
27218 columnsep
27219 \end_layout
27220
27221 \end_inset
27222
27223  is set to 3
27224 \begin_inset space \thinspace{}
27225 \end_inset
27226
27227 cm:
27228 \end_layout
27229
27230 \begin_layout Standard
27231 \begin_inset ERT
27232 status open
27233
27234 \begin_layout Plain Layout
27235
27236
27237 \backslash
27238 setlength{
27239 \backslash
27240 columnsep}{3cm}
27241 \end_layout
27242
27243 \end_inset
27244
27245
27246 \end_layout
27247
27248 \begin_layout Standard
27249 \begin_inset Flex Multiple Columns
27250 status open
27251
27252 \begin_layout Plain Layout
27253
27254 \size small
27255 My observations of No.
27256 \begin_inset space \space{}
27257 \end_inset
27258
27259 427 Park Lane did little to clear up the problem in which I was interested.
27260  The house was separated from the street by a low wall and railing, the
27261  whole not more than five feet high.
27262  It was perfectly easy, therefore, for anyone to get into the garden, but
27263  the window was entirely inaccessible, since there was no water pipe or
27264  anything which could help the most active man to climb it.
27265  More puzzled than ever, I retraced my steps to Kensington.
27266  I had not been in my study five minutes when the maid entered to say that
27267  a person desired to see me.
27268  To my astonishment it was none other than my strange old book collector,
27269  his sharp, wizened face peering out from a frame of white hair, and his
27270  precious volumes, a dozen of them at least, wedged under his right arm.
27271 \end_layout
27272
27273 \end_inset
27274
27275
27276 \end_layout
27277
27278 \begin_layout Standard
27279 \begin_inset ERT
27280 status collapsed
27281
27282 \begin_layout Plain Layout
27283
27284
27285 \backslash
27286 setlength{
27287 \backslash
27288 columnsep}{10pt}
27289 \end_layout
27290
27291 \end_inset
27292
27293
27294 \begin_inset Note Note
27295 status collapsed
27296
27297 \begin_layout Plain Layout
27298 go back to the default
27299 \end_layout
27300
27301 \end_inset
27302
27303
27304 \end_layout
27305
27306 \begin_layout Subsubsection
27307 Vertical Lines
27308 \end_layout
27309
27310 \begin_layout Standard
27311 Between the columns a rule with a width of the length 
27312 \begin_inset Flex Code
27313 status collapsed
27314
27315 \begin_layout Plain Layout
27316
27317 \backslash
27318 columnseprule
27319 \end_layout
27320
27321 \end_inset
27322
27323  is placed.
27324  If this rule width is set to 0
27325 \begin_inset space \thinspace{}
27326 \end_inset
27327
27328 pt (this is the default), the rule is suppressed.
27329  In the following example the rule is 2
27330 \begin_inset space \thinspace{}
27331 \end_inset
27332
27333 pt wide:
27334 \end_layout
27335
27336 \begin_layout Standard
27337 \begin_inset ERT
27338 status open
27339
27340 \begin_layout Plain Layout
27341
27342
27343 \backslash
27344 setlength{
27345 \backslash
27346 columnseprule}{2pt}
27347 \end_layout
27348
27349 \end_inset
27350
27351
27352 \end_layout
27353
27354 \begin_layout Standard
27355 \begin_inset Flex Multiple Columns
27356 status open
27357
27358 \begin_layout Plain Layout
27359
27360 \size small
27361 \begin_inset Quotes eld
27362 \end_inset
27363
27364 You're surprised to see me, sir,
27365 \begin_inset Quotes erd
27366 \end_inset
27367
27368  said he, in a strange, croaking voice.
27369 \end_layout
27370
27371 \begin_layout Plain Layout
27372
27373 \size small
27374 I acknowledged that I was.
27375 \end_layout
27376
27377 \begin_layout Plain Layout
27378
27379 \size small
27380 \begin_inset Quotes eld
27381 \end_inset
27382
27383 Well, I've a conscience, sir, and when I chanced to see you go into this
27384  house, as I came hobbling after you, I thought to myself, I'll just step
27385  in and see that kind gentleman, and tell him that if I was a bit gruff
27386  in my manner there was not any harm meant, and that I am much obliged to
27387  him for picking up my books.
27388 \begin_inset Quotes erd
27389 \end_inset
27390
27391
27392 \end_layout
27393
27394 \begin_layout Plain Layout
27395
27396 \size small
27397 \begin_inset Quotes eld
27398 \end_inset
27399
27400 You make too much of a trifle,
27401 \begin_inset Quotes erd
27402 \end_inset
27403
27404  said I.
27405  
27406 \begin_inset Quotes eld
27407 \end_inset
27408
27409 May I ask how you knew who I was?
27410 \begin_inset Quotes erd
27411 \end_inset
27412
27413
27414 \end_layout
27415
27416 \begin_layout Plain Layout
27417
27418 \size small
27419 \begin_inset Quotes eld
27420 \end_inset
27421
27422 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27423  you'll find my little bookshop at the corner of Church Street, and very
27424  happy to see you, I am sure.
27425  Maybe you collect yourself, sir.
27426  Here's 
27427 \noun on
27428 British
27429 \begin_inset space ~
27430 \end_inset
27431
27432 Birds
27433 \noun default
27434 , and 
27435 \noun on
27436 Catullus
27437 \noun default
27438 , and 
27439 \noun on
27440 The Holy War
27441 \noun default
27442
27443 \begin_inset space ~
27444 \end_inset
27445
27446 – a bargain, every one of them.
27447  With five volumes you could just fill that gap on that second shelf.
27448  It looks untidy, does it not, sir?
27449 \begin_inset Quotes erd
27450 \end_inset
27451
27452
27453 \end_layout
27454
27455 \end_inset
27456
27457
27458 \end_layout
27459
27460 \begin_layout Standard
27461 \begin_inset VSpace defskip
27462 \end_inset
27463
27464
27465 \end_layout
27466
27467 \begin_layout Standard
27468 The rule can be colored by redefining the command 
27469 \begin_inset Flex Code
27470 status collapsed
27471
27472 \begin_layout Plain Layout
27473
27474 \backslash
27475 columnseprulecolor
27476 \end_layout
27477
27478 \end_inset
27479
27480 .
27481  This is done by inserting the command
27482 \end_layout
27483
27484 \begin_layout LyX-Code
27485
27486 \backslash
27487 renewcommand{
27488 \backslash
27489 columnseprulecolor}{
27490 \backslash
27491 color{red}}
27492 \end_layout
27493
27494 \begin_layout Standard
27495 as \SpecialChar TeX
27496  Code before the multicolumn inset.
27497  Replace 
27498 \begin_inset Flex Code
27499 status collapsed
27500
27501 \begin_layout Plain Layout
27502 red
27503 \end_layout
27504
27505 \end_inset
27506
27507  in this command by a color of your choice.
27508  You can use all pre- and self-defined colors.
27509  See the 
27510 \emph on
27511 EmbeddedObjects
27512 \emph default
27513  manual, section 
27514 \emph on
27515 Colored
27516 \begin_inset space ~
27517 \end_inset
27518
27519 Tables
27520 \emph default
27521  for more information about pre- and self-defined colors.
27522  To go back to the default color insert the command
27523 \end_layout
27524
27525 \begin_layout LyX-Code
27526
27527 \backslash
27528 renewcommand{
27529 \backslash
27530 columnseprulecolor}{
27531 \backslash
27532 normalcolor}
27533 \end_layout
27534
27535 \begin_layout Standard
27536 Here is the example with a cyan rule and 1
27537 \begin_inset space \thinspace{}
27538 \end_inset
27539
27540 cm column separation:
27541 \end_layout
27542
27543 \begin_layout Standard
27544 \begin_inset ERT
27545 status open
27546
27547 \begin_layout Plain Layout
27548
27549
27550 \backslash
27551 setlength{
27552 \backslash
27553 columnsep}{1cm}
27554 \end_layout
27555
27556 \begin_layout Plain Layout
27557
27558
27559 \backslash
27560 renewcommand{
27561 \backslash
27562 columnseprulecolor}{
27563 \backslash
27564 color{cyan}}
27565 \end_layout
27566
27567 \end_inset
27568
27569
27570 \end_layout
27571
27572 \begin_layout Standard
27573 \begin_inset Flex Multiple Columns
27574 status open
27575
27576 \begin_layout Plain Layout
27577
27578 \size small
27579 \begin_inset Quotes eld
27580 \end_inset
27581
27582 You're surprised to see me, sir,
27583 \begin_inset Quotes erd
27584 \end_inset
27585
27586  said he, in a strange, croaking voice.
27587 \end_layout
27588
27589 \begin_layout Plain Layout
27590
27591 \size small
27592 I acknowledged that I was.
27593 \end_layout
27594
27595 \begin_layout Plain Layout
27596
27597 \size small
27598 \begin_inset Quotes eld
27599 \end_inset
27600
27601 Well, I've a conscience, sir, and when I chanced to see you go into this
27602  house, as I came hobbling after you, I thought to myself, I'll just step
27603  in and see that kind gentleman, and tell him that if I was a bit gruff
27604  in my manner there was not any harm meant, and that I am much obliged to
27605  him for picking up my books.
27606 \begin_inset Quotes erd
27607 \end_inset
27608
27609
27610 \end_layout
27611
27612 \begin_layout Plain Layout
27613
27614 \size small
27615 \begin_inset Quotes eld
27616 \end_inset
27617
27618 You make too much of a trifle,
27619 \begin_inset Quotes erd
27620 \end_inset
27621
27622  said I.
27623  
27624 \begin_inset Quotes eld
27625 \end_inset
27626
27627 May I ask how you knew who I was?
27628 \begin_inset Quotes erd
27629 \end_inset
27630
27631
27632 \end_layout
27633
27634 \begin_layout Plain Layout
27635
27636 \size small
27637 \begin_inset Quotes eld
27638 \end_inset
27639
27640 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27641  you'll find my little bookshop at the corner of Church Street, and very
27642  happy to see you, I am sure.
27643  Maybe you collect yourself, sir.
27644  Here's 
27645 \noun on
27646 British
27647 \begin_inset space ~
27648 \end_inset
27649
27650 Birds
27651 \noun default
27652 , and 
27653 \noun on
27654 Catullus
27655 \noun default
27656 , and 
27657 \noun on
27658 The Holy War
27659 \noun default
27660
27661 \begin_inset space ~
27662 \end_inset
27663
27664 – a bargain, every one of them.
27665  With five volumes you could just fill that gap on that second shelf.
27666  It looks untidy, does it not, sir?
27667 \begin_inset Quotes erd
27668 \end_inset
27669
27670
27671 \end_layout
27672
27673 \end_inset
27674
27675
27676 \end_layout
27677
27678 \begin_layout Standard
27679 \begin_inset ERT
27680 status collapsed
27681
27682 \begin_layout Plain Layout
27683
27684
27685 \backslash
27686 setlength{
27687 \backslash
27688 columnseprule}{0pt}
27689 \end_layout
27690
27691 \begin_layout Plain Layout
27692
27693
27694 \backslash
27695 renewcommand{
27696 \backslash
27697 columnseprulecolor}{
27698 \backslash
27699 normalcolor}
27700 \end_layout
27701
27702 \end_inset
27703
27704
27705 \begin_inset Note Note
27706 status collapsed
27707
27708 \begin_layout Plain Layout
27709 go back to the default
27710 \end_layout
27711
27712 \end_inset
27713
27714
27715 \end_layout
27716
27717 \begin_layout Section
27718 Non-standard Paragraph Shapes
27719 \end_layout
27720
27721 \begin_layout Standard
27722 \noindent
27723 \SpecialChar LaTeX
27724  as well as any other text processor uses by default rectangular paragraphs.
27725  For special cases like for example posters, invitation cards or poems you
27726  can modify the paragraph shape to one of your choice.
27727  This can be done by using the \SpecialChar LaTeX
27728 -package 
27729 \begin_inset Flex Code
27730 status collapsed
27731
27732 \begin_layout Plain Layout
27733 shapepar
27734 \end_layout
27735
27736 \end_inset
27737
27738  which is loaded by using in the document settings the module 
27739 \family sans
27740 Custom paragraph shapes
27741 \family default
27742 .
27743 \end_layout
27744
27745 \begin_layout Subsection
27746 Predefined shapes
27747 \end_layout
27748
27749 \begin_layout Standard
27750
27751 \series bold
27752 shapepar
27753 \series default
27754  provides the following shapes:
27755 \end_layout
27756
27757 \begin_layout Standard
27758 \begin_inset Tabular
27759 <lyxtabular version="3" rows="13" columns="3">
27760 <features booktabs="true" islongtable="true" longtabularalignment="center">
27761 <column alignment="left" valignment="middle" width="16col%">
27762 <column alignment="left" valignment="middle" width="40col%">
27763 <column alignment="left" valignment="middle" width="35col%">
27764 <row endhead="true">
27765 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27766 \begin_inset Text
27767
27768 \begin_layout Plain Layout
27769
27770 \series bold
27771 \size small
27772 Name
27773 \end_layout
27774
27775 \end_inset
27776 </cell>
27777 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27778 \begin_inset Text
27779
27780 \begin_layout Plain Layout
27781
27782 \series bold
27783 \size small
27784 Description
27785 \end_layout
27786
27787 \end_inset
27788 </cell>
27789 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27790 \begin_inset Text
27791
27792 \begin_layout Plain Layout
27793
27794 \series bold
27795 \size small
27796 Annotation
27797 \end_layout
27798
27799 \end_inset
27800 </cell>
27801 </row>
27802 <row interlinespace="default">
27803 <cell alignment="left" valignment="top" usebox="none">
27804 \begin_inset Text
27805
27806 \begin_layout Plain Layout
27807
27808 \size small
27809 CDlabel
27810 \end_layout
27811
27812 \end_inset
27813 </cell>
27814 <cell alignment="left" valignment="top" usebox="none">
27815 \begin_inset Text
27816
27817 \begin_layout Plain Layout
27818
27819 \size small
27820 Circle with circular hole (in the size of a CD/DVD)
27821 \end_layout
27822
27823 \end_inset
27824 </cell>
27825 <cell alignment="left" valignment="top" usebox="none">
27826 \begin_inset Text
27827
27828 \begin_layout Plain Layout
27829
27830 \size small
27831 Cannot be scaled, take care there is not too much text
27832 \end_layout
27833
27834 \end_inset
27835 </cell>
27836 </row>
27837 <row interlinespace="default">
27838 <cell alignment="left" valignment="top" usebox="none">
27839 \begin_inset Text
27840
27841 \begin_layout Plain Layout
27842
27843 \size small
27844 Circle
27845 \end_layout
27846
27847 \end_inset
27848 </cell>
27849 <cell alignment="left" valignment="top" usebox="none">
27850 \begin_inset Text
27851
27852 \begin_layout Plain Layout
27853
27854 \size small
27855 Circle
27856 \end_layout
27857
27858 \end_inset
27859 </cell>
27860 <cell alignment="left" valignment="top" usebox="none">
27861 \begin_inset Text
27862
27863 \begin_layout Plain Layout
27864
27865 \size small
27866 Fragile, calculation might fail
27867 \end_layout
27868
27869 \end_inset
27870 </cell>
27871 </row>
27872 <row interlinespace="default">
27873 <cell alignment="left" valignment="top" usebox="none">
27874 \begin_inset Text
27875
27876 \begin_layout Plain Layout
27877
27878 \size small
27879 Diamond
27880 \end_layout
27881
27882 \end_inset
27883 </cell>
27884 <cell alignment="left" valignment="top" usebox="none">
27885 \begin_inset Text
27886
27887 \begin_layout Plain Layout
27888
27889 \size small
27890 Rhomboid (symbolizing a 
27891 \begin_inset Quotes eld
27892 \end_inset
27893
27894 diamond
27895 \begin_inset Quotes erd
27896 \end_inset
27897
27898 )
27899 \end_layout
27900
27901 \end_inset
27902 </cell>
27903 <cell alignment="left" valignment="top" usebox="none">
27904 \begin_inset Text
27905
27906 \begin_layout Plain Layout
27907
27908 \size small
27909 -
27910 \end_layout
27911
27912 \end_inset
27913 </cell>
27914 </row>
27915 <row interlinespace="default">
27916 <cell alignment="left" valignment="top" usebox="none">
27917 \begin_inset Text
27918
27919 \begin_layout Plain Layout
27920
27921 \size small
27922 Heart
27923 \end_layout
27924
27925 \end_inset
27926 </cell>
27927 <cell alignment="left" valignment="top" usebox="none">
27928 \begin_inset Text
27929
27930 \begin_layout Plain Layout
27931
27932 \size small
27933 Heart-like shape
27934 \end_layout
27935
27936 \end_inset
27937 </cell>
27938 <cell alignment="left" valignment="top" usebox="none">
27939 \begin_inset Text
27940
27941 \begin_layout Plain Layout
27942
27943 \size small
27944 -
27945 \end_layout
27946
27947 \end_inset
27948 </cell>
27949 </row>
27950 <row interlinespace="default">
27951 <cell alignment="left" valignment="top" usebox="none">
27952 \begin_inset Text
27953
27954 \begin_layout Plain Layout
27955
27956 \size small
27957 Hexagon
27958 \end_layout
27959
27960 \end_inset
27961 </cell>
27962 <cell alignment="left" valignment="top" usebox="none">
27963 \begin_inset Text
27964
27965 \begin_layout Plain Layout
27966
27967 \size small
27968 Hexagon
27969 \end_layout
27970
27971 \end_inset
27972 </cell>
27973 <cell alignment="left" valignment="top" usebox="none">
27974 \begin_inset Text
27975
27976 \begin_layout Plain Layout
27977
27978 \size small
27979 -
27980 \end_layout
27981
27982 \end_inset
27983 </cell>
27984 </row>
27985 <row interlinespace="default">
27986 <cell alignment="left" valignment="top" usebox="none">
27987 \begin_inset Text
27988
27989 \begin_layout Plain Layout
27990
27991 \size small
27992 Nut
27993 \end_layout
27994
27995 \end_inset
27996 </cell>
27997 <cell alignment="left" valignment="top" usebox="none">
27998 \begin_inset Text
27999
28000 \begin_layout Plain Layout
28001
28002 \size small
28003 Nut for bolt (hexagon with circular hole)
28004 \end_layout
28005
28006 \end_inset
28007 </cell>
28008 <cell alignment="left" valignment="top" usebox="none">
28009 \begin_inset Text
28010
28011 \begin_layout Plain Layout
28012
28013 \size small
28014 -
28015 \end_layout
28016
28017 \end_inset
28018 </cell>
28019 </row>
28020 <row interlinespace="default">
28021 <cell alignment="left" valignment="top" usebox="none">
28022 \begin_inset Text
28023
28024 \begin_layout Plain Layout
28025
28026 \size small
28027 Square
28028 \end_layout
28029
28030 \end_inset
28031 </cell>
28032 <cell alignment="left" valignment="top" usebox="none">
28033 \begin_inset Text
28034
28035 \begin_layout Plain Layout
28036
28037 \size small
28038 Square
28039 \end_layout
28040
28041 \end_inset
28042 </cell>
28043 <cell alignment="left" valignment="top" usebox="none">
28044 \begin_inset Text
28045
28046 \begin_layout Plain Layout
28047
28048 \size small
28049 -
28050 \end_layout
28051
28052 \end_inset
28053 </cell>
28054 </row>
28055 <row interlinespace="default">
28056 <cell alignment="left" valignment="top" usebox="none">
28057 \begin_inset Text
28058
28059 \begin_layout Plain Layout
28060
28061 \size small
28062 Star
28063 \end_layout
28064
28065 \end_inset
28066 </cell>
28067 <cell alignment="left" valignment="top" usebox="none">
28068 \begin_inset Text
28069
28070 \begin_layout Plain Layout
28071
28072 \size small
28073 Five-point star
28074 \end_layout
28075
28076 \end_inset
28077 </cell>
28078 <cell alignment="left" valignment="top" usebox="none">
28079 \begin_inset Text
28080
28081 \begin_layout Plain Layout
28082
28083 \size small
28084 -
28085 \end_layout
28086
28087 \end_inset
28088 </cell>
28089 </row>
28090 <row interlinespace="default">
28091 <cell alignment="left" valignment="top" usebox="none">
28092 \begin_inset Text
28093
28094 \begin_layout Plain Layout
28095
28096 \size small
28097 Candle
28098 \end_layout
28099
28100 \end_inset
28101 </cell>
28102 <cell alignment="left" valignment="top" usebox="none">
28103 \begin_inset Text
28104
28105 \begin_layout Plain Layout
28106
28107 \size small
28108 Burning candle
28109 \end_layout
28110
28111 \end_inset
28112 </cell>
28113 <cell alignment="left" valignment="top" usebox="none">
28114 \begin_inset Text
28115
28116 \begin_layout Plain Layout
28117
28118 \size small
28119 -
28120 \end_layout
28121
28122 \end_inset
28123 </cell>
28124 </row>
28125 <row interlinespace="default">
28126 <cell alignment="left" valignment="top" usebox="none">
28127 \begin_inset Text
28128
28129 \begin_layout Plain Layout
28130
28131 \size small
28132 Drop down/up
28133 \end_layout
28134
28135 \end_inset
28136 </cell>
28137 <cell alignment="left" valignment="top" usebox="none">
28138 \begin_inset Text
28139
28140 \begin_layout Plain Layout
28141
28142 \size small
28143 Normal/reversed rain drop
28144 \end_layout
28145
28146 \end_inset
28147 </cell>
28148 <cell alignment="left" valignment="top" usebox="none">
28149 \begin_inset Text
28150
28151 \begin_layout Plain Layout
28152
28153 \size small
28154 Fragile, calculation might fail
28155 \end_layout
28156
28157 \end_inset
28158 </cell>
28159 </row>
28160 <row interlinespace="default">
28161 <cell alignment="left" valignment="top" usebox="none">
28162 \begin_inset Text
28163
28164 \begin_layout Plain Layout
28165
28166 \size small
28167 \SpecialChar TeX
28168
28169 \end_layout
28170
28171 \end_inset
28172 </cell>
28173 <cell alignment="left" valignment="top" usebox="none">
28174 \begin_inset Text
28175
28176 \begin_layout Plain Layout
28177
28178 \size small
28179 The \SpecialChar TeX
28180  logo
28181 \end_layout
28182
28183 \end_inset
28184 </cell>
28185 <cell alignment="left" valignment="top" usebox="none">
28186 \begin_inset Text
28187
28188 \begin_layout Plain Layout
28189
28190 \size small
28191 -
28192 \end_layout
28193
28194 \end_inset
28195 </cell>
28196 </row>
28197 <row interlinespace="default">
28198 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28199 \begin_inset Text
28200
28201 \begin_layout Plain Layout
28202
28203 \size small
28204 Triangle up/down/
28205 \begin_inset Newline newline
28206 \end_inset
28207
28208 left/right
28209 \end_layout
28210
28211 \end_inset
28212 </cell>
28213 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28214 \begin_inset Text
28215
28216 \begin_layout Plain Layout
28217
28218 \size small
28219 Triangles in different orientations
28220 \end_layout
28221
28222 \end_inset
28223 </cell>
28224 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28225 \begin_inset Text
28226
28227 \begin_layout Plain Layout
28228
28229 \size small
28230 -
28231 \end_layout
28232
28233 \end_inset
28234 </cell>
28235 </row>
28236 </lyxtabular>
28237
28238 \end_inset
28239
28240
28241 \end_layout
28242
28243 \begin_layout Standard
28244 To use a shape for your paragraph, simply select it in \SpecialChar LyX
28245 's pull-down box
28246  for environments in the toolbar.
28247 \end_layout
28248
28249 \begin_layout Standard
28250 \begin_inset Newpage newpage
28251 \end_inset
28252
28253
28254 \end_layout
28255
28256 \begin_layout Standard
28257 Here is an example paragraph in the shape of a nut:
28258 \end_layout
28259
28260 \begin_layout Standard
28261 \begin_inset VSpace bigskip
28262 \end_inset
28263
28264
28265 \end_layout
28266
28267 \begin_layout Nut
28268
28269 \lang latin
28270 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28271  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28272  voluptua.
28273  At vero eos et accusam et justo duo dolores et ea rebum.
28274  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28275  sit amet.
28276  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28277  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28278  voluptua.
28279 \end_layout
28280
28281 \begin_layout Standard
28282 \begin_inset VSpace bigskip
28283 \end_inset
28284
28285
28286 \end_layout
28287
28288 \begin_layout Standard
28289 \begin_inset Note Greyedout
28290 status open
28291
28292 \begin_layout Plain Layout
28293
28294 \series bold
28295 Note
28296 \series default
28297
28298 \family sans
28299 shapepar
28300 \family default
28301  paragraphs cannot run over a page break.
28302 \end_layout
28303
28304 \end_inset
28305
28306
28307 \end_layout
28308
28309 \begin_layout Standard
28310 \begin_inset VSpace bigskip
28311 \end_inset
28312
28313
28314 \end_layout
28315
28316 \begin_layout Standard
28317 The package 
28318 \begin_inset Flex Code
28319 status collapsed
28320
28321 \begin_layout Plain Layout
28322 shapepar
28323 \end_layout
28324
28325 \end_inset
28326
28327  takes care that the shape will always be preserved, no matter how much
28328  text is in the paragraph.
28329  Therefore the paragraph size changes with the amount of contained text.
28330  This can lead to paragraph sizes exceeding the page margins.
28331  To demonstrate the size scaling, here is the same example paragraph but
28332  with twice as much text:
28333 \end_layout
28334
28335 \begin_layout Standard
28336 \begin_inset Newpage newpage
28337 \end_inset
28338
28339
28340 \end_layout
28341
28342 \begin_layout Nut
28343
28344 \lang latin
28345 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28346  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28347  voluptua.
28348  At vero eos et accusam et justo duo dolores et ea rebum.
28349  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28350  sit amet.
28351  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28352  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28353  voluptua.
28354  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28355  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28356  voluptua.
28357  At vero eos et accusam et justo duo dolores et ea rebum.
28358  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28359  sit amet.
28360  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28361  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28362  voluptua.
28363 \end_layout
28364
28365 \begin_layout Standard
28366 \begin_inset VSpace bigskip
28367 \end_inset
28368
28369
28370 \end_layout
28371
28372 \begin_layout Standard
28373 An exception is the shape 
28374 \family sans
28375 CDlabel
28376 \family default
28377 .
28378  It cannot be scaled because it must fit the size of a CD/DVD.
28379  Therefore the amount of text that fits into the shape is limited.
28380 \begin_inset Newline newline
28381 \end_inset
28382
28383 The 
28384 \family sans
28385 drop
28386 \family default
28387  shapes and the 
28388 \family sans
28389 circle
28390 \family default
28391  shape are fragile, meaning that the calculation of their size can fail,
28392  depending on the amount of text.
28393  You will then get the \SpecialChar LaTeX
28394  error 
28395 \begin_inset Quotes eld
28396 \end_inset
28397
28398 Arithmetic overflow
28399 \begin_inset Quotes erd
28400 \end_inset
28401
28402 .
28403  In this case one can try to remove or add some text; if nothing works one
28404  has to use another shape.
28405 \end_layout
28406
28407 \begin_layout Standard
28408 \begin_inset VSpace bigskip
28409 \end_inset
28410
28411
28412 \end_layout
28413
28414 \begin_layout Standard
28415 For shapes with tips you will maybe see that \SpecialChar LaTeX
28416 's hyphenation routine fails
28417  for text in the tips.
28418  Therefore it is often necessary to add hyphenation points 
28419 \family sans
28420 (
28421 \begin_inset Info
28422 type  "shortcut"
28423 arg   "specialchar-insert hyphenation"
28424 \end_inset
28425
28426
28427 \family default
28428 ) to the corresponding text parts.
28429 \end_layout
28430
28431 \begin_layout Standard
28432 \begin_inset VSpace bigskip
28433 \end_inset
28434
28435
28436 \end_layout
28437
28438 \begin_layout Standard
28439 Shapepar paragraphs are either always centered or placed on the page so
28440  that their left border touches the left page margin.
28441  You can therefore not use the paragraph dialog to align such paragraphs.
28442  A solution is to put the paragraph into a minipage or parbox and align
28443  the box.
28444  The problem is hereby to find the right width for the box.
28445  Because if it is too wide and you center the box, the paragraph is not
28446  centered too because it sticks at the left side of the box.
28447  So you might have to play a bit with the width until it fits.
28448  Here are two heart-shaped paragraphs, the first one is not aligned, the
28449  second one is right-aligned:
28450 \end_layout
28451
28452 \begin_layout Standard
28453 \begin_inset Newpage newpage
28454 \end_inset
28455
28456
28457 \end_layout
28458
28459 \begin_layout Heart
28460 \noindent
28461
28462 \lang latin
28463 Lo\SpecialChar softhyphen
28464 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28465  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28466  voluptua.
28467  At vero eos et accusam et justo duo dolores et ea rebum.
28468  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28469  sit amet.
28470 \end_layout
28471
28472 \begin_layout Standard
28473 \begin_inset VSpace bigskip
28474 \end_inset
28475
28476
28477 \end_layout
28478
28479 \begin_layout Standard
28480 \noindent
28481 \align right
28482 \begin_inset Box Frameless
28483 position "t"
28484 hor_pos "c"
28485 has_inner_box 1
28486 inner_pos "t"
28487 use_parbox 1
28488 use_makebox 0
28489 width "42col%"
28490 special "none"
28491 height "1in"
28492 height_special "totalheight"
28493 thickness "0.4pt"
28494 separation "3pt"
28495 shadowsize "4pt"
28496 framecolor "black"
28497 backgroundcolor "none"
28498 status open
28499
28500 \begin_layout Heart
28501 \noindent
28502
28503 \lang latin
28504 Lo\SpecialChar softhyphen
28505 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28506  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28507  voluptua.
28508  At vero eos et accusam et justo duo dolores et ea rebum.
28509  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28510  sit amet.
28511 \end_layout
28512
28513 \end_inset
28514
28515
28516 \end_layout
28517
28518 \begin_layout Subsection
28519 Custom shapes
28520 \end_layout
28521
28522 \begin_layout Standard
28523 You can define any shape you want.
28524  Doing this manually is a lot of work because every coordinate must be specified.
28525  But there is a way to let the computer calculate the coordinates:
28526 \end_layout
28527
28528 \begin_layout Enumerate
28529 Install the program 
28530 \begin_inset CommandInset href
28531 LatexCommand href
28532 name "Jpgfdraw"
28533 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
28534 literal "false"
28535
28536 \end_inset
28537
28538 .
28539 \end_layout
28540
28541 \begin_layout Enumerate
28542 In 
28543 \family sans
28544 Jpgfdraw
28545 \family default
28546  go to the menu 
28547 \family sans
28548 TeX/LaTeX\SpecialChar menuseparator
28549 Settings\SpecialChar menuseparator
28550 Set Normal Size
28551 \family default
28552  and select the font size you are using in your document.
28553  For example this document uses the size 12
28554 \begin_inset space \thinspace{}
28555 \end_inset
28556
28557 pt.
28558 \end_layout
28559
28560 \begin_layout Enumerate
28561 Draw a shape.
28562 \end_layout
28563
28564 \begin_layout Enumerate
28565 Use the menu 
28566 \family sans
28567 TeX/LaTeX\SpecialChar menuseparator
28568 Shapepar
28569 \family default
28570  to export the shape to coordinates.
28571  In the appearing dialog use either the outline of your shape for the coordinate
28572 s or the path itself.
28573 \begin_inset Foot
28574 status collapsed
28575
28576 \begin_layout Plain Layout
28577 For more information see 
28578 \begin_inset CommandInset href
28579 LatexCommand href
28580 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28581 literal "false"
28582
28583 \end_inset
28584
28585
28586 \end_layout
28587
28588 \end_inset
28589
28590
28591 \end_layout
28592
28593 \begin_layout Standard
28594 The coordinates are written into a \SpecialChar TeX
28595  file.
28596  To use it for your \SpecialChar LyX
28597  document
28598 \end_layout
28599
28600 \begin_layout Enumerate
28601 Place the cursor before the first character of your paragraph (or into a
28602  new empty one).
28603 \end_layout
28604
28605 \begin_layout Enumerate
28606 Open in \SpecialChar LyX
28607  the menu 
28608 \family sans
28609 Insert\SpecialChar menuseparator
28610 File\SpecialChar menuseparator
28611 Child
28612 \begin_inset space ~
28613 \end_inset
28614
28615 Document
28616 \family default
28617 , select the file and use 
28618 \family sans
28619 Input
28620 \family default
28621  as 
28622 \family sans
28623 Include Type.
28624 \end_layout
28625
28626 \begin_layout Standard
28627 \begin_inset VSpace defskip
28628 \end_inset
28629
28630
28631 \end_layout
28632
28633 \begin_layout Standard
28634 \begin_inset Note Greyedout
28635 status open
28636
28637 \begin_layout Plain Layout
28638
28639 \series bold
28640 Note
28641 \series default
28642 : The changed shape only applies to the current paragraph; everything is
28643  reset to normal for the next paragraph.
28644  Therefore the shape definition file must be input into every paragraph
28645  with the desired shape.
28646 \end_layout
28647
28648 \end_inset
28649
28650
28651 \end_layout
28652
28653 \begin_layout Standard
28654 \begin_inset VSpace bigskip
28655 \end_inset
28656
28657
28658 \end_layout
28659
28660 \begin_layout Standard
28661 Here is an example:
28662 \end_layout
28663
28664 \begin_layout Standard
28665 \begin_inset VSpace bigskip
28666 \end_inset
28667
28668
28669 \end_layout
28670
28671 \begin_layout Standard
28672 \begin_inset CommandInset include
28673 LatexCommand input
28674 filename "SpecialParagraphShape.tex"
28675 literal "true"
28676
28677 \end_inset
28678
28679
28680 \lang latin
28681 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28682  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28683  voluptua.
28684  At vero eos et accusam et justo duo dolores et ea rebum.
28685  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28686  sit amet.
28687  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28688  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28689  voluptua.
28690 \end_layout
28691
28692 \begin_layout Standard
28693 \begin_inset VSpace bigskip
28694 \end_inset
28695
28696
28697 \end_layout
28698
28699 \begin_layout Standard
28700
28701 \series bold
28702 A tip:
28703 \series default
28704  to draw complexer shapes in 
28705 \family sans
28706 Jpgfdraw
28707 \family default
28708  you can draw the shape in a program of your choice and import the resulting
28709  image to 
28710 \family sans
28711 Jpgfdraw
28712 \family default
28713 .
28714  Then you only need to draw a line or spline along the outline of the image.
28715 \end_layout
28716
28717 \begin_layout Standard
28718 \begin_inset VSpace bigskip
28719 \end_inset
28720
28721
28722 \end_layout
28723
28724 \begin_layout Standard
28725 The module 
28726 \family sans
28727 Custom paragraph shapes
28728 \family default
28729  also provides the two commands 
28730 \family sans
28731 shapepar
28732 \family default
28733  and 
28734 \family sans
28735 Shapepar
28736 \family default
28737  which can be used to define custom shapes coordinate by coordinate.
28738 \begin_inset Foot
28739 status collapsed
28740
28741 \begin_layout Plain Layout
28742 These commands are internally used for all shapes described here.
28743 \end_layout
28744
28745 \end_inset
28746
28747  For information how these styles are used and about further customization
28748  possibilities, have a look at the 
28749 \begin_inset CommandInset href
28750 LatexCommand href
28751 name "documentation"
28752 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
28753 literal "false"
28754
28755 \end_inset
28756
28757  of the package 
28758 \begin_inset Flex Code
28759 status collapsed
28760
28761 \begin_layout Plain Layout
28762 shapepar
28763 \end_layout
28764
28765 \end_inset
28766
28767 .
28768 \end_layout
28769
28770 \end_body
28771 \end_document