]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
e3f0a51210e8198dd088e107117eee23fef46de7
[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 Subsubsection
7104 Installation
7105 \end_layout
7106
7107 \begin_layout Standard
7108 All you need to do is install Rev\SpecialChar TeX
7109  4, as described in the package's README
7110  file.
7111  The package can be found at The Rev\SpecialChar TeX
7112  4 Web Site 
7113 \begin_inset Flex URL
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117
7118 http://publish.aps.org/revtex4/
7119 \end_layout
7120
7121 \end_inset
7122
7123 .
7124  Install it somewhere that \SpecialChar LaTeX
7125  can see it.
7126  Test it by trying to \SpecialChar LaTeX
7127  a short Rev\SpecialChar TeX
7128  4 document in some random directory (i.
7129 \begin_inset space \thinspace{}
7130 \end_inset
7131
7132 e.
7133 \begin_inset space \space{}
7134 \end_inset
7135
7136 not the directory where you installed the class file.) Then, if you reconfigure
7137  \SpecialChar LyX
7138 , it will find the class file and let you use the Rev\SpecialChar TeX
7139 4 textclass.
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7144  4 document
7145  using 
7146 \family typewriter
7147 tex2lyx
7148 \family default
7149 , or to use the 
7150 \family sans
7151 Revtex
7152 \begin_inset space ~
7153 \end_inset
7154
7155 4
7156 \family default
7157  template, found in the templates directory.
7158 \end_layout
7159
7160 \begin_layout Subsubsection
7161 Preamble Matter
7162 \end_layout
7163
7164 \begin_layout Standard
7165 Optional arguments to 
7166 \family typewriter
7167
7168 \backslash
7169 documentclass
7170 \family default
7171 , like 
7172 \begin_inset Quotes eld
7173 \end_inset
7174
7175 preprint
7176 \begin_inset Quotes erd
7177 \end_inset
7178
7179  and 
7180 \begin_inset Quotes eld
7181 \end_inset
7182
7183 aps
7184 \begin_inset Quotes erd
7185 \end_inset
7186
7187 , go in the 
7188 \family sans
7189 Extra
7190 \begin_inset space ~
7191 \end_inset
7192
7193 Options
7194 \family default
7195  field in the 
7196 \family sans
7197 Document
7198 \begin_inset space ~
7199 \end_inset
7200
7201 Layout
7202 \family default
7203  dialog, as usual.
7204  Remember that in Rev\SpecialChar TeX
7205 , at least one optional argument is required! 
7206 \end_layout
7207
7208 \begin_layout Standard
7209 Other preamble matter, like 
7210 \family typewriter
7211
7212 \backslash
7213 draft
7214 \family default
7215  etc.
7216 \begin_inset space ~
7217 \end_inset
7218
7219 goes in the 
7220 \family sans
7221 \SpecialChar LaTeX
7222
7223 \begin_inset space ~
7224 \end_inset
7225
7226 Preamble
7227 \family default
7228  dialog, also as usual.
7229 \end_layout
7230
7231 \begin_layout Subsubsection
7232 Layouts
7233 \end_layout
7234
7235 \begin_layout Standard
7236 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7237 4.0.
7238  For example, the Email layout corresponds to 
7239 \family typewriter
7240
7241 \backslash
7242 email{}
7243 \family default
7244 .
7245  Note that (at least as of Rev\SpecialChar TeX
7246  4.0 Beta), the 
7247 \family sans
7248 Address
7249 \family default
7250  and 
7251 \family sans
7252 Affiliation
7253 \family default
7254  layouts are exactly equivalent, so you shouldn't need to use both.
7255 \begin_inset Foot
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 In case you're curious, both were included so that 
7260 \family typewriter
7261 tex2lyx
7262 \family default
7263  would be able to translate both 
7264 \family typewriter
7265
7266 \backslash
7267 address
7268 \family default
7269  and 
7270 \family typewriter
7271
7272 \backslash
7273 affiliation
7274 \family default
7275 .
7276 \end_layout
7277
7278 \end_inset
7279
7280
7281 \end_layout
7282
7283 \begin_layout Subsubsection
7284 Important Notes
7285 \end_layout
7286
7287 \begin_layout Standard
7288 There are a couple of important unique aspects of Rev\SpecialChar TeX
7289  4 which might cause
7290  bugs that will be even more confusing in \SpecialChar LyX
7291 .
7292 \end_layout
7293
7294 \begin_layout Standard
7295 In Rev\SpecialChar TeX
7296 , the 
7297 \family typewriter
7298
7299 \backslash
7300 thanks
7301 \family default
7302  command goes 
7303 \emph on
7304 outside
7305 \emph default
7306  the 
7307 \family typewriter
7308
7309 \backslash
7310 author
7311 \family default
7312  command.
7313  The \SpecialChar LyX
7314  equivalent is that there is a separate Thanks layout.
7315  Do 
7316 \emph on
7317 not
7318 \emph default
7319  write footnotes in the 
7320 \family sans
7321 Author
7322 \family default
7323  layout, or weird things may happen.
7324  See the Rev\SpecialChar TeX
7325  4 documentation for more details.
7326 \end_layout
7327
7328 \begin_layout Standard
7329 Also, the 
7330 \family sans
7331 Author
7332 \begin_inset space ~
7333 \end_inset
7334
7335 Email
7336 \family default
7337
7338 \family sans
7339 Author
7340 \begin_inset space ~
7341 \end_inset
7342
7343 URL
7344 \family default
7345 , and 
7346 \family sans
7347 Thanks
7348 \family default
7349  layouts must be placed 
7350 \emph on
7351 in between
7352 \emph default
7353  the 
7354 \family sans
7355 Author
7356 \family default
7357  layout and the corresponding 
7358 \family sans
7359 Address
7360 \family default
7361  (or equivalent 
7362 \family sans
7363 Affiliation
7364 \family default
7365 ) layout.
7366  If you put the 
7367 \family sans
7368 Thanks
7369 \family default
7370  after the 
7371 \family sans
7372 Address
7373 \family default
7374 , the \SpecialChar LaTeX
7375  won't compile.
7376 \end_layout
7377
7378 \begin_layout Subsection
7379
7380 \change_inserted 564990737 1671042072
7381
7382 \lang american
7383 Springer Journals
7384 \end_layout
7385
7386 \begin_layout Standard
7387
7388 \change_inserted 564990737 1671042072
7389
7390 \lang american
7391 All the 
7392 \family sans
7393 svj*
7394 \family default
7395  classes were replaced in 2013 with a completely new 
7396 \family sans
7397 sr-vorl.cls
7398 \family default
7399 .
7400  This package provides a \SpecialChar LaTeX
7401  class and templates for books to be published
7402  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7403  Research, Springer VS Research, or Springer VS Forschung.
7404  The documentation is available in German from 
7405 \begin_inset CommandInset href
7406 LatexCommand href
7407 name "CTAN"
7408 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7409 literal "false"
7410
7411 \end_inset
7412
7413 .
7414 \end_layout
7415
7416 \begin_layout Section
7417
7418 \change_inserted 564990737 1670439560
7419 Books
7420 \end_layout
7421
7422 \begin_layout Standard
7423
7424 \change_inserted 564990737 1670439581
7425 See also the document classes in the Collections (section
7426 \begin_inset space ~
7427 \end_inset
7428
7429
7430 \begin_inset CommandInset ref
7431 LatexCommand ref
7432 reference "sec:Collections"
7433
7434 \end_inset
7435
7436 ).
7437 \end_layout
7438
7439 \begin_layout Subsection
7440 Memoir
7441 \end_layout
7442
7443 \begin_layout Standard
7444 By 
7445 \noun on
7446 Jürgen Spitzmüller
7447 \end_layout
7448
7449 \begin_layout Subsubsection
7450 Overview
7451 \end_layout
7452
7453 \begin_layout Standard
7454 Memoir is a very powerful and constantly evolving class.
7455  It has been designed with regard to fictional and non-fictional literature.
7456  Its aim is to let the user have maximum control over the typesetting of
7457  his document.
7458  Memoir is based on the standard book class, but it can also emulate the
7459  article class (see below).
7460 \end_layout
7461
7462 \begin_layout Standard
7463 Peter Wilson, the developer of Memoir, is known as the author of lots of
7464  useful packages in the \SpecialChar LaTeX
7465  world.
7466  Most of them have been merged with Memoir.
7467  Therefore, it is much easier to layout the table of contents, appendices,
7468  chapter designs and such.
7469  \SpecialChar LyX
7470 , though, does not support all of these goodies natively.
7471  Some of them might be added to forthcoming releases
7472 \begin_inset Foot
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 You are invited to send suggestions to 
7477 \begin_inset Flex URL
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481
7482 lyx-devel@lists.lyx.org
7483 \end_layout
7484
7485 \end_inset
7486
7487 .
7488 \end_layout
7489
7490 \end_inset
7491
7492 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7493 's framework.
7494  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7495
7496  commands (\SpecialChar TeX
7497  code
7498 \begin_inset Foot
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 Cf.
7503 \begin_inset ERT
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507
7508
7509 \backslash
7510  
7511 \end_layout
7512
7513 \end_inset
7514
7515 section
7516 \begin_inset space ~
7517 \end_inset
7518
7519
7520 \begin_inset CommandInset ref
7521 LatexCommand ref
7522 reference "sec:Inserting-TeX-Code"
7523
7524 \end_inset
7525
7526  for details.
7527 \end_layout
7528
7529 \end_inset
7530
7531 ).
7532  In this section, we can only list those features that are natively supported
7533  by \SpecialChar LyX
7534 .
7535  For detailed descriptions (and for the rest of features) we recommend you
7536  have a look at the detailed manual of the Memoir class
7537 \begin_inset Foot
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 Cf.
7542 \begin_inset ERT
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546
7547
7548 \backslash
7549  
7550 \end_layout
7551
7552 \end_inset
7553
7554
7555 \begin_inset Flex URL
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559
7560 CTAN:/macros/latex/memoir/memman.pdf
7561 \end_layout
7562
7563 \end_inset
7564
7565 .
7566 \end_layout
7567
7568 \end_inset
7569
7570 , which is not only a user guide for the class, but also both a comprehensive
7571  description on good typesetting and a superb example for good typesetting
7572  itself.
7573 \end_layout
7574
7575 \begin_layout Subsubsection
7576 Basic features and restrictions
7577 \end_layout
7578
7579 \begin_layout Standard
7580 Memoir supports basically all features of the standard book classes.
7581  There are, however, some differences, as follows:
7582 \end_layout
7583
7584 \begin_layout Description
7585 Font
7586 \begin_inset space ~
7587 \end_inset
7588
7589 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7590 \end_layout
7591
7592 \begin_layout Description
7593 Page
7594 \begin_inset space ~
7595 \end_inset
7596
7597 style: The fancy page style is not supported, due to a command clash between
7598  Memoir and the fancyhdr package (they both define a command with the same
7599  name, which confuses \SpecialChar LaTeX
7600 ).
7601  Instead, Memoir comes with a number of its own page styles (see 
7602 \family sans
7603 Document\SpecialChar menuseparator
7604 Settings\SpecialChar menuseparator
7605 Page
7606 \begin_inset space ~
7607 \end_inset
7608
7609 Style
7610 \family default
7611 ).
7612  If you want to use these for the chapter pages, you have to use the command
7613  
7614 \family typewriter
7615
7616 \backslash
7617 chapterstyle
7618 \family default
7619  in the main text or in preamble (e.
7620 \begin_inset space \thinspace{}
7621 \end_inset
7622
7623 g.
7624 \begin_inset space \space{}
7625 \end_inset
7626
7627
7628 \family typewriter
7629
7630 \backslash
7631 chapterstyle{companion}
7632 \family default
7633 ).
7634 \end_layout
7635
7636 \begin_layout Description
7637 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7638  optional argument in the standard classes.
7639  With this, you can specify an alternative version of the title for the
7640  table of contents and the headers (for instance, if the title is too long).
7641  In \SpecialChar LyX
7642 , you can do this via 
7643 \family sans
7644 Insert\SpecialChar menuseparator
7645 Short
7646 \begin_inset space ~
7647 \end_inset
7648
7649 Title
7650 \family default
7651  at the beginning of a chapter/section.
7652  Memoir features a second optional argument and thus separates the table
7653  of contents from the header.
7654  You can define three variants of a title with this: one for the main text,
7655  one for the table of contents, and one for the headers.
7656  \SpecialChar LyX
7657  makes these available in form of specific 
7658 \family sans
7659 Short Title
7660 \family default
7661  variants in the 
7662 \family sans
7663 Insert
7664 \family default
7665  menu.
7666 \end_layout
7667
7668 \begin_layout Description
7669 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7670  of contents, the list of figures and the list of table start a new page
7671  automatically.
7672  Memoir does not follow this route.
7673  You have to insert a page break yourself, if you want to have one.
7674 \end_layout
7675
7676 \begin_layout Description
7677 Titlepage: For some unknown reason, Memoir uses pagination on the title
7678  page (in the standard classes, title pages are 
7679 \begin_inset Quotes eld
7680 \end_inset
7681
7682 empty
7683 \begin_inset Quotes erd
7684 \end_inset
7685
7686 ).
7687  If you want an empty title page, type 
7688 \family typewriter
7689
7690 \backslash
7691 aliaspagestyle{title}{empty}
7692 \family default
7693  in the preamble.
7694 \end_layout
7695
7696 \begin_layout Description
7697 Article: With the class option 
7698 \emph on
7699 article
7700 \emph default
7701  (to be inserted in 
7702 \family sans
7703 Document\SpecialChar menuseparator
7704 Settings\SpecialChar menuseparator
7705 Class Settings\SpecialChar menuseparator
7706 Custom
7707 \begin_inset space ~
7708 \end_inset
7709
7710 Options
7711 \family default
7712 ), you can emulate article style.
7713  That is, counters (footnotes, figures, tables etc.) will not be reset on
7714  new chapters, chapters don't start a new page (but are—in contrary to 
7715 \begin_inset Quotes eld
7716 \end_inset
7717
7718 real
7719 \begin_inset Quotes erd
7720 \end_inset
7721
7722  article classes—still allowed), parts, though, use their own page, as in
7723  book.
7724 \end_layout
7725
7726 \begin_layout Description
7727 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7728  font commands, which have been used in the old \SpecialChar LaTeX
7729  version 2.09 (e.
7730 \begin_inset space \thinspace{}
7731 \end_inset
7732
7733 g.
7734 \begin_inset space \space{}
7735 \end_inset
7736
7737
7738 \family typewriter
7739
7740 \backslash
7741 rm
7742 \family default
7743
7744 \family typewriter
7745
7746 \backslash
7747 it
7748 \family default
7749 ).
7750  It produces an error and stops \SpecialChar LaTeX
7751  whenever such a command appears.
7752  The class option 
7753 \emph on
7754 oldfontcommands
7755 \emph default
7756  reallows the commands and spits out warnings instead (which does at least
7757  not stop \SpecialChar LaTeX
7758 ).
7759  Since a lot of packages and particularly Bib\SpecialChar TeX
7760  style files are still using
7761  those commands, we have decided to use this option by default.
7762 \end_layout
7763
7764 \begin_layout Subsubsection
7765 Extra features
7766 \end_layout
7767
7768 \begin_layout Standard
7769 We will only describe the features supported by \SpecialChar LyX
7770  (which is not much currently).
7771  Please consult the Memoir manual
7772 \begin_inset Foot
7773 status collapsed
7774
7775 \begin_layout Plain Layout
7776 Cf.
7777 \begin_inset ERT
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781
7782
7783 \backslash
7784  
7785 \end_layout
7786
7787 \end_inset
7788
7789
7790 \begin_inset Flex URL
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794
7795 CTAN:/macros/latex/memoir/memman.pdf
7796 \end_layout
7797
7798 \end_inset
7799
7800 .
7801 \end_layout
7802
7803 \end_inset
7804
7805  for details.
7806 \end_layout
7807
7808 \begin_layout Description
7809 Abstract: You may wonder why an abstract is an extra feature.
7810  Well, it is in book class.
7811  Usually books don't have abstracts.
7812  Memoir, however, has.
7813  You can use it wherever and how often you like.
7814 \end_layout
7815
7816 \begin_layout Description
7817 Chapterprecis: You may know this older typesetting style: The contents of
7818  a chapter are summarized below the title and also in the table of contents
7819  (e.
7820 \begin_inset space \thinspace{}
7821 \end_inset
7822
7823 g.
7824 \begin_inset space \space{}
7825 \end_inset
7826
7827
7828 \emph on
7829 Our hero arrives in Troia; he loses some friends; he finds others
7830 \emph default
7831 ).
7832  Chapterprecis does exactly this.
7833  It is therefore only sensible below a chapter.
7834 \end_layout
7835
7836 \begin_layout Description
7837 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7838  The epigraph environment provides an elegant way of typesetting such a
7839  motto.
7840  The motto itself (text) and its (optional) author (source) are divided
7841  by a short line.
7842  The author (source) can be inserted via 
7843 \family sans
7844 Insert\SpecialChar menuseparator
7845 Epigraph Source
7846 \family default
7847 \emph on
7848 .
7849 \end_layout
7850
7851 \begin_layout Description
7852 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7853  complex figurative poems).
7854  \SpecialChar LyX
7855  can only support a few of them.
7856  One is poemtitle, which is a centered title for poems, which will also
7857  be added to the table of contents (verse is the standard environment for
7858  poems.
7859  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7860  code,
7861  because they have to be nested inside regular verse environments, which
7862  is not possible with \SpecialChar LyX
7863 ).
7864 \end_layout
7865
7866 \begin_layout Description
7867 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7868 \end_layout
7869
7870 \begin_layout Section
7871
7872 \change_inserted 564990737 1670439605
7873 Curricula vitarum
7874 \end_layout
7875
7876 \begin_layout Section
7877
7878 \change_inserted 564990737 1671041968
7879 Letters
7880 \end_layout
7881
7882 \begin_layout Subsection
7883
7884 \change_inserted 564990737 1671041970
7885
7886 \lang american
7887 Din-Brief
7888 \end_layout
7889
7890 \begin_layout Standard
7891
7892 \change_inserted 564990737 1671041970
7893
7894 \lang american
7895 The document class 
7896 \family sans
7897 Din-Brief
7898 \family default
7899  provides the 
7900 \family typewriter
7901 dinbrief.cls
7902 \family default
7903  document class for writing letters according to the 
7904 \emph on
7905 Deutsches Institut für Normung
7906 \emph default
7907  conventions.
7908  The file 
7909 \emph on
7910 dinbrief.lyx
7911 \emph default
7912  in the menu 
7913 \family sans
7914 \bar under
7915 F
7916 \bar default
7917 ile\SpecialChar menuseparator
7918 New
7919 \begin_inset space ~
7920 \end_inset
7921
7922 fro
7923 \bar under
7924 m
7925 \bar default
7926
7927 \begin_inset space ~
7928 \end_inset
7929
7930 Template
7931 \family default
7932  offers guidance on its use.
7933  The documentation is available from 
7934 \begin_inset CommandInset href
7935 LatexCommand href
7936 name "CTAN"
7937 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
7938 literal "false"
7939
7940 \end_inset
7941
7942 .
7943 \end_layout
7944
7945 \begin_layout Section
7946
7947 \change_inserted 564990737 1670439660
7948 Presentations
7949 \end_layout
7950
7951 \begin_layout Subsection
7952 Foils [aka 
7953 \family sans
7954 Foil\SpecialChar TeX
7955
7956 \family default
7957 ]
7958 \begin_inset CommandInset label
7959 LatexCommand label
7960 name "sec:foiltex"
7961
7962 \end_inset
7963
7964
7965 \end_layout
7966
7967 \begin_layout Standard
7968 by 
7969 \noun on
7970 Allan Rae
7971 \end_layout
7972
7973 \begin_layout Subsubsection
7974 Introduction
7975 \end_layout
7976
7977 \begin_layout Standard
7978 This section describes how to use \SpecialChar LyX
7979  to make slides for overhead projectors.
7980  There are two document classes that can do this: the default slides class
7981  and the 
7982 \family sans
7983 Foil\SpecialChar TeX
7984
7985 \family default
7986  slides class.
7987  This section documents the latter.
7988 \end_layout
7989
7990 \begin_layout Standard
7991 I'm going to say this again, nice and clear, so that there's no misunderstanding
7992 :
7993 \end_layout
7994
7995 \begin_layout Standard
7996 \begin_inset VSpace bigskip
7997 \end_inset
7998
7999
8000 \end_layout
8001
8002 \begin_layout Standard
8003 \align center
8004
8005 \size large
8006 This section documents the class 
8007 \begin_inset Quotes eld
8008 \end_inset
8009
8010
8011 \family sans
8012 FoilTeX
8013 \family default
8014
8015 \begin_inset Quotes erd
8016 \end_inset
8017
8018  
8019 \emph on
8020 only.
8021 \end_layout
8022
8023 \begin_layout Standard
8024 \begin_inset VSpace bigskip
8025 \end_inset
8026
8027
8028 \end_layout
8029
8030 \begin_layout Standard
8031 If you're looking for the documentation for 
8032 \begin_inset Quotes eld
8033 \end_inset
8034
8035
8036 \family sans
8037 slides (default)
8038 \family default
8039
8040 \begin_inset Quotes erd
8041 \end_inset
8042
8043 , check out section
8044 \begin_inset space ~
8045 \end_inset
8046
8047
8048 \begin_inset CommandInset ref
8049 LatexCommand ref
8050 reference "sec:slitex"
8051
8052 \end_inset
8053
8054 .
8055  If your machine doesn't have the 
8056 \family sans
8057 foils
8058 \family default
8059  class 
8060 \family sans
8061 FoilTeX
8062 \family default
8063  installed, you'll probably have to use the default 
8064 \family sans
8065 slides
8066 \family default
8067  class, which isn't quite as good as 
8068 \family sans
8069 foils.
8070 \end_layout
8071
8072 \begin_layout Standard
8073 The 
8074 \family sans
8075 foils
8076 \family default
8077  class is designed for use with version
8078 \begin_inset space ~
8079 \end_inset
8080
8081 2.1 of the 
8082 \family sans
8083 foils.cls
8084 \family default
8085  \SpecialChar LaTeX
8086  class file which is now an integral part of \SpecialChar LaTeX2e
8087 .
8088 \end_layout
8089
8090 \begin_layout Subsubsection
8091 Getting Started
8092 \end_layout
8093
8094 \begin_layout Standard
8095 Obviously, to use this document class, you need to select 
8096 \family sans
8097 FoilTeX
8098 \family default
8099  from the 
8100 \family sans
8101 Class
8102 \family default
8103  entry in the 
8104 \family sans
8105 Document
8106 \begin_inset space ~
8107 \end_inset
8108
8109 Layout
8110 \family default
8111  dialog.
8112  There are some settings in the 
8113 \family sans
8114 Document
8115 \begin_inset space ~
8116 \end_inset
8117
8118 Layout
8119 \family default
8120  dialog that you should know about that are specific to this class:
8121 \end_layout
8122
8123 \begin_layout Itemize
8124 Don't change the options 
8125 \family sans
8126 Sides
8127 \family default
8128  and 
8129 \family sans
8130 Columns
8131 \family default
8132  on the 
8133 \family sans
8134 Document
8135 \begin_inset space ~
8136 \end_inset
8137
8138 Layout
8139 \family default
8140  dialog.
8141  They're ignored by the 
8142 \family sans
8143 foils
8144 \family default
8145  class.
8146 \end_layout
8147
8148 \begin_layout Itemize
8149 The default font size is 20
8150 \begin_inset space \thinspace{}
8151 \end_inset
8152
8153 pt with the other options being 17
8154 \begin_inset space \thinspace{}
8155 \end_inset
8156
8157 pt, 25
8158 \begin_inset space \thinspace{}
8159 \end_inset
8160
8161 pt and 30
8162 \begin_inset space \thinspace{}
8163 \end_inset
8164
8165 pt.
8166 \end_layout
8167
8168 \begin_layout Itemize
8169 The default font is 
8170 \family sans
8171 sans
8172 \family default
8173  
8174 \family sans
8175 serif
8176 \family default
8177  but all math equations are still typeset in the usual roman font.
8178 \end_layout
8179
8180 \begin_layout Itemize
8181
8182 \family sans
8183 Foil\SpecialChar TeX
8184
8185 \family default
8186  supports A4 and Letter paper sizes as well as a special size for working
8187  with 35
8188 \begin_inset space \thinspace{}
8189 \end_inset
8190
8191 mm slides.
8192  It doesn't support A5, B5, legal or executive paper sizes.
8193 \end_layout
8194
8195 \begin_layout Itemize
8196 Don't bother changing the 
8197 \family sans
8198 Float Placement
8199 \family default
8200  settings because they are ignored anyway.
8201  All floats appear where they are defined in the text.
8202 \end_layout
8203
8204 \begin_layout Itemize
8205 The 
8206 \family sans
8207 Pagestyle
8208 \family default
8209  setting behaves a bit differently for this class.
8210  
8211 \family sans
8212 Foil\SpecialChar TeX
8213
8214 \family default
8215  provides extensive footer and header capabilities including a user-defined
8216  logo.
8217  See section
8218 \begin_inset space ~
8219 \end_inset
8220
8221
8222 \begin_inset CommandInset ref
8223 LatexCommand ref
8224 reference "sec:foilfoot"
8225
8226 \end_inset
8227
8228  for more details.
8229  The title page is treated differently to all other pages in the document
8230  and is 
8231 \emph on
8232 always
8233 \emph default
8234  unnumbered and 
8235 \emph on
8236 always
8237 \emph default
8238  has the logo centered at the bottom of the page (if one is defined).
8239  The possible page style choices and what they do are as follows:
8240 \end_layout
8241
8242 \begin_deeper
8243 \begin_layout Labeling
8244 \labelwidthstring MMMMMMM
8245
8246 \family sans
8247 \series bold
8248 empty
8249 \family default
8250 \series default
8251  The final output contains no page numbers, or other headers or footers
8252  (except footnotes of course).
8253  
8254 \end_layout
8255
8256 \begin_layout Labeling
8257 \labelwidthstring MMMMMMM
8258
8259 \family sans
8260 \series bold
8261 plain
8262 \family default
8263 \series default
8264  The final output contains page numbers centered at the bottom of the page.
8265  No other headings or footers (other than footnotes).
8266 \end_layout
8267
8268 \begin_layout Labeling
8269 \labelwidthstring MMMMMMM
8270
8271 \series bold
8272 foilheadings
8273 \series default
8274  Page numbers in lower right corner.
8275  Additional headers and footers are also shown.
8276  This is also the default.
8277 \end_layout
8278
8279 \begin_layout Labeling
8280 \labelwidthstring MMMMMMM
8281
8282 \series bold
8283 fancy
8284 \series default
8285  Gives you access to the 
8286 \family sans
8287 fancyheadings
8288 \family default
8289  package although its use with 
8290 \family sans
8291 Foil\SpecialChar TeX
8292
8293 \family default
8294  is discouraged by the writer of the 
8295 \family sans
8296 Foil\SpecialChar TeX
8297
8298 \family default
8299  package because of some potential page layout clashes.
8300 \end_layout
8301
8302 \end_deeper
8303 \begin_layout Paragraph
8304 Extra Options
8305 \end_layout
8306
8307 \begin_layout Standard
8308 The following options may be used in the extra class options in the 
8309 \family sans
8310 Document\SpecialChar menuseparator
8311 Settings
8312 \family default
8313  dialog.
8314 \end_layout
8315
8316 \begin_layout Labeling
8317 \labelwidthstring MMMMMMx
8318
8319 \series bold
8320 35mmSlide
8321 \series default
8322  This sets up the page layout for 7.33
8323 \begin_inset space \thinspace{}
8324 \end_inset
8325
8326 in by 11
8327 \begin_inset space \thinspace{}
8328 \end_inset
8329
8330 in paper, which is about the same aspect ratio as a 35
8331 \begin_inset space \thinspace{}
8332 \end_inset
8333
8334 mm slide, making it a bit easier to work with this medium.
8335 \end_layout
8336
8337 \begin_layout Labeling
8338 \labelwidthstring MMMMMMx
8339
8340 \series bold
8341 headrule
8342 \series default
8343  Places a rule across the page below the header on every page except the
8344  title page.
8345 \end_layout
8346
8347 \begin_layout Labeling
8348 \labelwidthstring MMMMMMx
8349
8350 \series bold
8351 footrule
8352 \series default
8353  Places a rule across the page above the footer on every page except the
8354  title page.
8355 \end_layout
8356
8357 \begin_layout Labeling
8358 \labelwidthstring MMMMMMx
8359
8360 \series bold
8361 dvips
8362 \series default
8363  This is automatically set each time you create a new 
8364 \family sans
8365 foils
8366 \family default
8367  document.
8368  This option tells 
8369 \family sans
8370 Foil\SpecialChar TeX
8371
8372 \family default
8373  to use the dvips driver to rotate those pages that are set as landscape
8374  foils.
8375 \end_layout
8376
8377 \begin_layout Labeling
8378 \labelwidthstring MMMMMMx
8379
8380 \series bold
8381 landscape
8382 \series default
8383  Simply changes the page dimensions to those of a landscape page but doesn't
8384  do any rotation.
8385  Thus if you use this option you need to use an external program to rotate
8386  each page or feed your paper through your printer as landscape.
8387  Note that this option effectively reverses the roles of the 
8388 \family sans
8389 Foilhead
8390 \family default
8391  and 
8392 \family sans
8393 Rotatefoilhead
8394 \family default
8395  environments (don't worry these are described in the next section).
8396 \end_layout
8397
8398 \begin_layout Labeling
8399 \labelwidthstring MMMMMMx
8400
8401 \series bold
8402 leqno
8403 \series default
8404  Equation numbers on the left.
8405 \end_layout
8406
8407 \begin_layout Labeling
8408 \labelwidthstring MMMMMMx
8409
8410 \series bold
8411 fleqn
8412 \series default
8413  Flush-left equations.
8414 \end_layout
8415
8416 \begin_layout Subsubsection
8417 Supported Environments
8418 \end_layout
8419
8420 \begin_layout Standard
8421 Most of the environments commonly supported in other classes are also supported
8422  by the 
8423 \family sans
8424 foils
8425 \family default
8426  class.
8427  There are several additional environments provided by 
8428 \family sans
8429 Foil\SpecialChar TeX
8430
8431 \family default
8432  as well as a couple added by \SpecialChar LyX
8433 .
8434  The following environments are shared with other classes:
8435 \end_layout
8436
8437 \begin_layout Standard
8438 \begin_inset Flex Multiple Columns
8439 status open
8440
8441 \begin_layout Itemize
8442
8443 \family sans
8444 Standard
8445 \end_layout
8446
8447 \begin_layout Itemize
8448
8449 \family sans
8450 Itemize
8451 \end_layout
8452
8453 \begin_layout Itemize
8454
8455 \family sans
8456 Enumerate
8457 \end_layout
8458
8459 \begin_layout Itemize
8460
8461 \family sans
8462 Description
8463 \end_layout
8464
8465 \begin_layout Itemize
8466
8467 \family sans
8468 List
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family sans
8474 \SpecialChar LyX
8475 -Code
8476 \end_layout
8477
8478 \begin_layout Itemize
8479
8480 \family sans
8481 Verse
8482 \end_layout
8483
8484 \begin_layout Itemize
8485
8486 \family sans
8487 Quote
8488 \end_layout
8489
8490 \begin_layout Itemize
8491
8492 \family sans
8493 Quotation
8494 \end_layout
8495
8496 \begin_layout Itemize
8497
8498 \family sans
8499 TitleAuthor
8500 \end_layout
8501
8502 \begin_layout Itemize
8503
8504 \family sans
8505 Date
8506 \end_layout
8507
8508 \begin_layout Itemize
8509
8510 \family sans
8511 Abstract
8512 \end_layout
8513
8514 \begin_layout Itemize
8515
8516 \family sans
8517 Bibliography
8518 \end_layout
8519
8520 \begin_layout Itemize
8521
8522 \family sans
8523 Address
8524 \end_layout
8525
8526 \begin_layout Itemize
8527
8528 \family sans
8529 RightAddress
8530 \end_layout
8531
8532 \end_inset
8533
8534
8535 \end_layout
8536
8537 \begin_layout Standard
8538 That is, all the major environments apart from the sectioning environments.
8539  Since foils are essentially self-contained sections, with a title and body,
8540  
8541 \family sans
8542 Foil\SpecialChar TeX
8543
8544 \family default
8545  provides specific commands for starting new foils and these are:
8546 \end_layout
8547
8548 \begin_layout Itemize
8549
8550 \family sans
8551 Foilhead
8552 \end_layout
8553
8554 \begin_layout Itemize
8555
8556 \family sans
8557 Rotatefoilhead
8558 \end_layout
8559
8560 \begin_layout Standard
8561 \SpecialChar LyX
8562  also provides slightly modified versions of these two environments called:
8563 \end_layout
8564
8565 \begin_layout Itemize
8566
8567 \family sans
8568 ShortFoilhead
8569 \end_layout
8570
8571 \begin_layout Itemize
8572
8573 \family sans
8574 ShortRotatefoilhead
8575 \end_layout
8576
8577 \begin_layout Standard
8578 and the differences will be explained in the next section.
8579 \end_layout
8580
8581 \begin_layout Standard
8582 Since foils are often used in presenting ideas or new theorems and such
8583  
8584 \family sans
8585 Foil\SpecialChar TeX
8586
8587 \family default
8588  also provides a comprehensive box of goodies for presenting them:
8589 \end_layout
8590
8591 \begin_layout Standard
8592 \begin_inset Flex Multiple Columns
8593 status open
8594
8595 \begin_layout Itemize
8596
8597 \family sans
8598 Theorem
8599 \end_layout
8600
8601 \begin_layout Itemize
8602
8603 \family sans
8604 Lemma
8605 \end_layout
8606
8607 \begin_layout Itemize
8608
8609 \family sans
8610 Corollary
8611 \end_layout
8612
8613 \begin_layout Itemize
8614
8615 \family sans
8616 Proposition
8617 \end_layout
8618
8619 \begin_layout Itemize
8620
8621 \family sans
8622 Definition
8623 \end_layout
8624
8625 \begin_layout Itemize
8626
8627 \family sans
8628 Proof
8629 \end_layout
8630
8631 \begin_layout Itemize
8632
8633 \family sans
8634 Theorem*
8635 \end_layout
8636
8637 \begin_layout Itemize
8638
8639 \family sans
8640 Lemma*
8641 \end_layout
8642
8643 \begin_layout Itemize
8644
8645 \family sans
8646 Corollary*
8647 \end_layout
8648
8649 \begin_layout Itemize
8650
8651 \family sans
8652 Proposition*
8653 \end_layout
8654
8655 \begin_layout Itemize
8656
8657 \family sans
8658 Definition*
8659 \end_layout
8660
8661 \end_inset
8662
8663
8664 \end_layout
8665
8666 \begin_layout Standard
8667 The starred versions are unnumbered while the unstarred versions are numbered.
8668  There are also two list environments added by \SpecialChar LyX
8669  and these are:
8670 \end_layout
8671
8672 \begin_layout Itemize
8673
8674 \family sans
8675 TickList
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \family sans
8681 CrossList
8682 \end_layout
8683
8684 \begin_layout Standard
8685
8686 \family sans
8687 Foil\SpecialChar TeX
8688
8689 \family default
8690  provides some powerful header and footer capabilities that are best set
8691  in the preamble although they may be set at any point in a document.
8692  If you want to change these settings in your document the best place to
8693  do so is at the very top of a foil, i.
8694 \begin_inset space \thinspace{}
8695 \end_inset
8696
8697 e.
8698 \emph on
8699
8700 \begin_inset space \space{}
8701 \end_inset
8702
8703
8704 \emph default
8705 straight after the foilhead.
8706 \end_layout
8707
8708 \begin_layout Standard
8709 For this purpose, the following command styles are provided [
8710 \shape smallcaps
8711 Martin Vermeer
8712 \shape default
8713 ]:
8714 \end_layout
8715
8716 \begin_layout Standard
8717 \begin_inset Flex Multiple Columns
8718 status open
8719
8720 \begin_layout Itemize
8721
8722 \family sans
8723 My
8724 \begin_inset space ~
8725 \end_inset
8726
8727 Logo
8728 \end_layout
8729
8730 \begin_layout Itemize
8731
8732 \family sans
8733 Restriction
8734 \end_layout
8735
8736 \begin_layout Itemize
8737
8738 \family sans
8739 Right
8740 \begin_inset space ~
8741 \end_inset
8742
8743 Footer
8744 \end_layout
8745
8746 \begin_layout Itemize
8747
8748 \family sans
8749 Right
8750 \begin_inset space ~
8751 \end_inset
8752
8753 Header
8754 \end_layout
8755
8756 \begin_layout Itemize
8757
8758 \family sans
8759 Left
8760 \begin_inset space ~
8761 \end_inset
8762
8763 Header
8764 \end_layout
8765
8766 \begin_deeper
8767 \begin_layout Plain Layout
8768 \begin_inset space ~
8769 \end_inset
8770
8771
8772 \end_layout
8773
8774 \end_deeper
8775 \end_inset
8776
8777
8778 \end_layout
8779
8780 \begin_layout Standard
8781 There are also a few commands provided by 
8782 \family sans
8783 Foil\SpecialChar TeX
8784
8785 \family default
8786  that aren't directly supported by \SpecialChar LyX
8787  but I'll tell you what they do and how
8788  to use them in section
8789 \begin_inset space ~
8790 \end_inset
8791
8792
8793 \begin_inset CommandInset ref
8794 LatexCommand ref
8795 reference "sec:unsuppfoils"
8796
8797 \end_inset
8798
8799 .
8800 \end_layout
8801
8802 \begin_layout Subsubsection
8803 Building a Set of Foils
8804 \end_layout
8805
8806 \begin_layout Standard
8807 This section will give a simple introduction to using the different environments
8808  to build a set of foils.
8809  If you want to see an example set of foils, take a look at the 
8810 \family typewriter
8811 Foils.lyx
8812 \family default
8813  file you find in \SpecialChar LyX
8814 's 
8815 \family typewriter
8816 examples
8817 \family default
8818  folder.
8819 \end_layout
8820
8821 \begin_layout Paragraph
8822 Give It a Title Page
8823 \end_layout
8824
8825 \begin_layout Standard
8826 Unlike other classes that provide 
8827 \family sans
8828 Title
8829 \family default
8830
8831 \family sans
8832 Author
8833 \family default
8834
8835 \family sans
8836 Date
8837 \family default
8838  and 
8839 \family sans
8840 Abstract
8841 \family default
8842  environments, 
8843 \family sans
8844 foils
8845 \family default
8846  creates the title on a page of its own.
8847  If you leave out the 
8848 \family sans
8849 Date
8850 \family default
8851  environment \SpecialChar LaTeX
8852  will substitute the current date (every time you regenerate
8853  the output).
8854 \end_layout
8855
8856 \begin_layout Paragraph
8857 Start a New Foil
8858 \end_layout
8859
8860 \begin_layout Standard
8861 As I mentioned earlier, there are four ways of starting a new foil.
8862  For portrait foils you should use 
8863 \family sans
8864 Foilhead
8865 \family default
8866  or 
8867 \family sans
8868 ShortFoilhead.
8869
8870 \family default
8871  The difference between these two environments is the amount of space between
8872  the title of the foil (the foilhead) and the body of the foil.
8873 \end_layout
8874
8875 \begin_layout Standard
8876 Landscape foils are generated using the 
8877 \family sans
8878 Rotatefoilhead
8879 \family default
8880  and 
8881 \family sans
8882 ShortRotatefoilhead
8883 \family default
8884  environments.
8885  Again the only difference is the spacing between foilhead and body.
8886  Both of the short versions have 0.5
8887 \begin_inset space ~
8888 \end_inset
8889
8890 inches less separation between the foilhead and the body.
8891  
8892 \end_layout
8893
8894 \begin_layout Standard
8895 One problem with the support for landscape foils is the requirement that
8896  you have to use the 
8897 \family typewriter
8898 dvips
8899 \family default
8900  driver to generate the PostScript output otherwise the foils won't be rotated.
8901  It is possible to get landscape foils even if you haven't got the 
8902 \family typewriter
8903 dvips
8904 \family default
8905  driver provided you can feed your foils sideways through your printer ;-)
8906 \end_layout
8907
8908 \begin_layout Paragraph
8909 Theorems, Lemmas, Proofs and more
8910 \end_layout
8911
8912 \begin_layout Standard
8913 You can't have two of the same type of these environments directly following
8914  each other.
8915  If you use a normal paragraph break, , you will just be extending the previous
8916  environment as if you had merged the two environments together.
8917  Rather than that, you need to insert a so-called separator.
8918  Please refer to the section entitled 
8919 \emph on
8920 Separate Nestings
8921 \emph default
8922  in the 
8923 \emph on
8924 User's Guide
8925 \emph default
8926 .
8927 \end_layout
8928
8929 \begin_layout Paragraph
8930 Lists
8931 \end_layout
8932
8933 \begin_layout Standard
8934 You get all the commonly supported list styles found in other classes as
8935  well as two new ones.
8936  I'll only describe the new ones here.
8937  If you want to find out more about the other list environments check out
8938  the 
8939 \emph on
8940 User's Guide.
8941
8942 \emph default
8943  If you intend to use itemized lists you might also want to read about the
8944  
8945 \family sans
8946 Itemize
8947 \begin_inset space ~
8948 \end_inset
8949
8950 Bullet
8951 \begin_inset space ~
8952 \end_inset
8953
8954 Selection
8955 \family default
8956  dialog described above in section
8957 \begin_inset space ~
8958 \end_inset
8959
8960
8961 \begin_inset CommandInset ref
8962 LatexCommand ref
8963 reference "sec:bullet"
8964
8965 \end_inset
8966
8967 .
8968 \end_layout
8969
8970 \begin_layout Standard
8971 The two new list styles, 
8972 \family sans
8973 TickList
8974 \family default
8975  and 
8976 \family sans
8977 CrossList
8978 \family default
8979 , are designed to make it easier for you to create lists of do's and don'ts
8980  or right and wrong by providing dedicated environments that use a tick
8981  or a cross as the label of the list.
8982  These lists are in fact dedicated variants of the 
8983 \family sans
8984 Itemize
8985 \family default
8986  environment.
8987  They do however require that you have the 
8988 \family typewriter
8989 psnfss
8990 \family default
8991  packages installed.
8992 \end_layout
8993
8994 \begin_layout Paragraph
8995 Figures and Tables
8996 \end_layout
8997
8998 \begin_layout Standard
8999
9000 \family sans
9001 Foil\SpecialChar TeX
9002
9003 \family default
9004  redefines the floating tables and figures so that they appear exactly where
9005  they are in the text rather than pushing them to the top of the page or
9006  to some user specified location.
9007  In fact if you change the float placement settings they are simply ignored.
9008 \end_layout
9009
9010 \begin_layout Paragraph
9011 Page Headers and Footers
9012 \begin_inset CommandInset label
9013 LatexCommand label
9014 name "sec:foilfoot"
9015
9016 \end_inset
9017
9018
9019 \end_layout
9020
9021 \begin_layout Standard
9022
9023 \family sans
9024 My
9025 \begin_inset space ~
9026 \end_inset
9027
9028 Logo
9029 \family default
9030  and 
9031 \family sans
9032 Restriction
9033 \family default
9034  are two commands used to control the left-footer text string.
9035  The first is meant to allow you to include a graphic logo on your foils
9036  and defaults to 
9037 \begin_inset Quotes eld
9038 \end_inset
9039
9040 -Typeset by 
9041 \family sans
9042 Foil\SpecialChar TeX
9043
9044 \family default
9045 -
9046 \begin_inset Quotes erd
9047 \end_inset
9048
9049 .
9050  While the second is meant to provide a classification for the audience,
9051  
9052 \emph on
9053 e.
9054 \begin_inset space \thinspace{}
9055 \end_inset
9056
9057 g.
9058 \emph default
9059
9060 \begin_inset space \space{}
9061 \end_inset
9062
9063 Confidential.
9064  It is empty by default.
9065 \end_layout
9066
9067 \begin_layout Standard
9068 The remaining page corners can be filled by 
9069 \family sans
9070 Right
9071 \begin_inset space ~
9072 \end_inset
9073
9074 Footer
9075 \family default
9076  (which defaults to page numbers), 
9077 \family sans
9078 Right
9079 \begin_inset space ~
9080 \end_inset
9081
9082 Header
9083 \family default
9084  (top right) and 
9085 \family sans
9086 Left
9087 \begin_inset space ~
9088 \end_inset
9089
9090 Header
9091 \family default
9092  (top left).
9093 \end_layout
9094
9095 \begin_layout Subsubsection
9096 Unsupported 
9097 \family sans
9098 Foil\SpecialChar TeX
9099
9100 \family default
9101  Goodies
9102 \begin_inset CommandInset label
9103 LatexCommand label
9104 name "sec:unsuppfoils"
9105
9106 \end_inset
9107
9108
9109 \end_layout
9110
9111 \begin_layout Standard
9112 All the commands mentioned below need to be set in a 
9113 \family sans
9114 \SpecialChar LaTeX
9115
9116 \family default
9117  environment or as 
9118 \family sans
9119 \SpecialChar TeX
9120
9121 \family default
9122  within another environment.
9123 \end_layout
9124
9125 \begin_layout Paragraph
9126 Lengths
9127 \end_layout
9128
9129 \begin_layout Standard
9130 All lengths are adjusted using the 
9131 \family typewriter
9132
9133 \backslash
9134 setlength{
9135 \family default
9136 \emph on
9137 lengthname
9138 \family typewriter
9139 \emph default
9140 }{
9141 \family default
9142 \emph on
9143 newlength
9144 \family typewriter
9145 \emph default
9146 }
9147 \family default
9148  command.
9149  Where 
9150 \emph on
9151 lengthname
9152 \emph default
9153  should be replaced by the name given to the length you want to change and
9154  
9155 \emph on
9156 newlength
9157 \emph default
9158  is the length value.
9159  All lengths should be specified in units of length such as inches (
9160 \family typewriter
9161 in
9162 \family default
9163 ), millimeters (
9164 \family typewriter
9165 mm
9166 \family default
9167 ) or points (
9168 \family typewriter
9169 pt
9170 \family default
9171 ) or relative to some document or font-based length such as 
9172 \family typewriter
9173
9174 \backslash
9175 textwidth
9176 \family default
9177 .
9178  
9179 \end_layout
9180
9181 \begin_layout Standard
9182 It's possible to change the spacing between a foilhead and the body of the
9183  foil by adjusting the length specified by 
9184 \family typewriter
9185
9186 \backslash
9187 foilheadskip
9188 \family default
9189 .
9190  For example, to make 
9191 \emph on
9192 all
9193 \emph default
9194  foilheads 0.5
9195 \begin_inset space \space{}
9196 \end_inset
9197
9198 in closer to their bodies put the following in the preamble: 
9199 \family typewriter
9200
9201 \backslash
9202 setlength{
9203 \backslash
9204 foilheadskip}{-0.5in}
9205 \end_layout
9206
9207 \begin_layout Standard
9208 The spacings around floats can be adjusted by setting these lengths:
9209 \end_layout
9210
9211 \begin_layout Labeling
9212 \labelwidthstring MMMMMMMMMMM
9213
9214 \family typewriter
9215
9216 \backslash
9217 abovefloatskip
9218 \family default
9219  Separation between the text and the top of the float
9220 \end_layout
9221
9222 \begin_layout Labeling
9223 \labelwidthstring MMMMMMMMMMM
9224
9225 \family typewriter
9226
9227 \backslash
9228 abovecaptionskip
9229 \family default
9230  Separation between the float and the caption
9231 \end_layout
9232
9233 \begin_layout Labeling
9234 \labelwidthstring MMMMMMMMMMM
9235
9236 \family typewriter
9237
9238 \backslash
9239 belowcaptionskip
9240 \family default
9241  Separation between the caption and the following text
9242 \end_layout
9243
9244 \begin_layout Labeling
9245 \labelwidthstring MMMMMMMMMMM
9246
9247 \family typewriter
9248
9249 \backslash
9250 captionwidth
9251 \family default
9252  You can make the captions narrower than the surrounding text by adjusting
9253  this length.
9254  Best done relative to 
9255 \family typewriter
9256
9257 \backslash
9258 textwidth
9259 \family default
9260 .
9261 \end_layout
9262
9263 \begin_layout Standard
9264 There are also several title page related lengths that you may find useful
9265  if you have a long title or several authors:
9266 \end_layout
9267
9268 \begin_layout Labeling
9269 \labelwidthstring MMMMMMMMMMM
9270
9271 \family typewriter
9272
9273 \backslash
9274 abovetitleskip
9275 \family default
9276  Separation from headers to 
9277 \family sans
9278 Title
9279 \end_layout
9280
9281 \begin_layout Labeling
9282 \labelwidthstring MMMMMMMMMMM
9283
9284 \family typewriter
9285
9286 \backslash
9287 titleauthorskip
9288 \family default
9289  between 
9290 \family sans
9291 Title
9292 \family default
9293  and 
9294 \family sans
9295 Author
9296 \family default
9297  environments
9298 \end_layout
9299
9300 \begin_layout Labeling
9301 \labelwidthstring MMMMMMMMMMM
9302
9303 \family typewriter
9304
9305 \backslash
9306 authorauthorskip
9307 \family default
9308  between multiple 
9309 \family sans
9310 Author
9311 \family default
9312  lines
9313 \end_layout
9314
9315 \begin_layout Labeling
9316 \labelwidthstring MMMMMMMMMMM
9317
9318 \family typewriter
9319
9320 \backslash
9321 authordateskip
9322 \family default
9323  between the 
9324 \family sans
9325 Author
9326 \family default
9327  and the 
9328 \family sans
9329 Date
9330 \end_layout
9331
9332 \begin_layout Labeling
9333 \labelwidthstring MMMMMMMMMMM
9334
9335 \family typewriter
9336
9337 \backslash
9338 dateabstractskip
9339 \family default
9340  between the 
9341 \family sans
9342 Date
9343 \family default
9344  and the 
9345 \family sans
9346 Abstract
9347 \end_layout
9348
9349 \begin_layout Standard
9350 The last length related command affects all the list environments.
9351  If you place 
9352 \family typewriter
9353
9354 \backslash
9355 zerolistvertdimens
9356 \family default
9357  
9358 \emph on
9359 inside
9360 \emph default
9361  a list environment then all the vertical spacing between the list items
9362  is removed.
9363  Note that this is a command not a length so it doesn't require 
9364 \family typewriter
9365
9366 \backslash
9367 setlength
9368 \family default
9369  like the stuff mentioned above.
9370 \end_layout
9371
9372 \begin_layout Paragraph
9373 Headers and Footers
9374 \end_layout
9375
9376 \begin_layout Standard
9377 The 
9378 \family typewriter
9379
9380 \backslash
9381 LogoOn
9382 \family default
9383  and 
9384 \family typewriter
9385
9386 \backslash
9387 LogoOff
9388 \family default
9389  commands control whether the logo in the 
9390 \family sans
9391 MyLogo
9392 \family default
9393  definition appear on a given page.
9394  If you put 
9395 \family typewriter
9396
9397 \backslash
9398 LogoOff
9399 \family default
9400  in the preamble then none of the foils will have the logo on them.
9401  If you don't want the logo on a particular page place the 
9402 \family typewriter
9403
9404 \backslash
9405 LogoOff
9406 \family default
9407  directly after the foilhead of that page and the 
9408 \family typewriter
9409
9410 \backslash
9411 LogoOn
9412 \family default
9413  directly after the next foilhead.
9414 \end_layout
9415
9416 \begin_layout Standard
9417 If you decide to use the 
9418 \family sans
9419 fancy
9420 \family default
9421  page style setting in the 
9422 \family sans
9423 Document
9424 \begin_inset space ~
9425 \end_inset
9426
9427 Layout
9428 \family default
9429  dialog you should probably add 
9430 \family typewriter
9431
9432 \backslash
9433 let
9434 \backslash
9435 headwidth
9436 \backslash
9437 textwidth
9438 \family default
9439  to your preamble so headers and footers on landscape pages are correctly
9440  placed when rotated.
9441  This is due to some clashes between the page layouts provided by the 
9442 \family sans
9443 fancyheadings
9444 \family default
9445  package and the 
9446 \family sans
9447 foils
9448 \family default
9449  class.
9450 \end_layout
9451
9452 \begin_layout Subsection
9453 Slides [aka 
9454 \noun on
9455 Sli\SpecialChar TeX
9456
9457 \noun default
9458 ]
9459 \begin_inset CommandInset label
9460 LatexCommand label
9461 name "sec:slitex"
9462
9463 \end_inset
9464
9465
9466 \end_layout
9467
9468 \begin_layout Standard
9469 by 
9470 \noun on
9471 John Weiss
9472 \noun default
9473  
9474 \end_layout
9475
9476 \begin_layout Subsubsection
9477 Introduction
9478 \end_layout
9479
9480 \begin_layout Standard
9481 This section describes how to use \SpecialChar LyX
9482  to make slides for overhead projectors.
9483  There are two document classes that can do this: the default slides class
9484  and the 
9485 \family sans
9486 Foil\SpecialChar TeX
9487
9488 \family default
9489  slides class.
9490  This section documents the former.
9491 \end_layout
9492
9493 \begin_layout Standard
9494 I'm going to say this again, nice and clear, so that there's no misunderstanding
9495 :
9496 \end_layout
9497
9498 \begin_layout Standard
9499 \begin_inset VSpace bigskip
9500 \end_inset
9501
9502
9503 \end_layout
9504
9505 \begin_layout Standard
9506 \align center
9507
9508 \size large
9509 This section documents the class 
9510 \begin_inset Quotes eld
9511 \end_inset
9512
9513
9514 \family sans
9515 slides (default)
9516 \family default
9517
9518 \begin_inset Quotes erd
9519 \end_inset
9520
9521  
9522 \emph on
9523 only.
9524 \end_layout
9525
9526 \begin_layout Standard
9527 \begin_inset VSpace bigskip
9528 \end_inset
9529
9530
9531 \end_layout
9532
9533 \begin_layout Standard
9534 If you're looking for the documentation for 
9535 \begin_inset Quotes eld
9536 \end_inset
9537
9538
9539 \family sans
9540 slides (Foil\SpecialChar TeX
9541 )
9542 \family default
9543
9544 \begin_inset Quotes erd
9545 \end_inset
9546
9547 , check out section
9548 \begin_inset space ~
9549 \end_inset
9550
9551
9552 \begin_inset CommandInset ref
9553 LatexCommand ref
9554 reference "sec:foiltex"
9555
9556 \end_inset
9557
9558 .
9559  The 
9560 \family sans
9561 foils
9562 \family default
9563  class [
9564 \begin_inset Quotes eld
9565 \end_inset
9566
9567
9568 \family sans
9569 slides (Foil\SpecialChar TeX
9570 )
9571 \family default
9572
9573 \begin_inset Quotes erd
9574 \end_inset
9575
9576 ] is actually somewhat better than the default 
9577 \family sans
9578 slides
9579 \family default
9580  class,
9581 \begin_inset Foot
9582 status collapsed
9583
9584 \begin_layout Plain Layout
9585 \SpecialChar ldots
9586 or so I've been told repeatedly by its advocates.
9587  Having never used it, I have no idea if this claim is true or not.
9588 \end_layout
9589
9590 \end_inset
9591
9592  which this section documents.
9593 \end_layout
9594
9595 \begin_layout Standard
9596 This class is the \SpecialChar LaTeX2e
9597  improvement of the old 
9598 \noun on
9599 Sli\SpecialChar TeX
9600
9601 \noun default
9602  package.
9603  Every \SpecialChar LaTeX2e
9604  distribution includes this class [which I'll just refer to as 
9605 \begin_inset Quotes eld
9606 \end_inset
9607
9608
9609 \family sans
9610 slides
9611 \family default
9612
9613 \begin_inset Quotes erd
9614 \end_inset
9615
9616  from now on], so you're bound to have it.
9617  As I noted earlier, there are other classes, such as 
9618 \family sans
9619 foils
9620 \family default
9621 , which also produce slides for overhead projectors and do a better job
9622  at it.
9623  However, there are some things which 
9624 \family sans
9625 slides
9626 \family default
9627  can do which the others can't, such as generate overlays.
9628  Read on to learn more!
9629 \end_layout
9630
9631 \begin_layout Subsubsection
9632 Getting Started
9633 \begin_inset CommandInset label
9634 LatexCommand label
9635 name "sec:slidesetup"
9636
9637 \end_inset
9638
9639
9640 \end_layout
9641
9642 \begin_layout Standard
9643 Obviously, to use this document class, you need to select 
9644 \begin_inset Quotes eld
9645 \end_inset
9646
9647
9648 \family sans
9649 slides (default)
9650 \family default
9651
9652 \begin_inset Quotes erd
9653 \end_inset
9654
9655  from the class list in the 
9656 \family sans
9657 Document\SpecialChar menuseparator
9658 Settings
9659 \family default
9660  dialog.
9661  There are some other special things you should know about this class:
9662 \end_layout
9663
9664 \begin_layout Itemize
9665 Don't bother changing the options 
9666 \family sans
9667 Sides and Columns
9668 \family default
9669 .
9670  They're not supported by the 
9671 \family sans
9672 slides
9673 \family default
9674  class, anyways.
9675 \end_layout
9676
9677 \begin_layout Itemize
9678 The option 
9679 \family sans
9680 Page
9681 \begin_inset space ~
9682 \end_inset
9683
9684 style
9685 \family default
9686  behaves a bit differently for this class.
9687  The possible choices and what they do are as follows:
9688 \end_layout
9689
9690 \begin_deeper
9691 \begin_layout Description
9692
9693 \family sans
9694 plain
9695 \family default
9696  The final output contains page numbers in the lower right corner.
9697 \end_layout
9698
9699 \begin_layout Description
9700
9701 \family sans
9702 headings
9703 \family default
9704  Like 
9705 \family sans
9706 plain
9707 \family default
9708 , but also prints out any time markers you've put in.
9709  This is the default.
9710 \end_layout
9711
9712 \begin_layout Description
9713
9714 \family sans
9715 empty
9716 \family default
9717  The final output contains no page numbers, time markers, or alignment markers.
9718 \end_layout
9719
9720 \end_deeper
9721 \begin_layout Itemize
9722 The 
9723 \family sans
9724 slides
9725 \family default
9726  class has an extra option: 
9727 \family typewriter
9728 clock
9729 \family default
9730 .
9731  To use it, put 
9732 \begin_inset Quotes eld
9733 \end_inset
9734
9735
9736 \family typewriter
9737 clock
9738 \family default
9739
9740 \begin_inset Quotes erd
9741 \end_inset
9742
9743  in the extra class options.
9744 \end_layout
9745
9746 \begin_deeper
9747 \begin_layout Standard
9748 Using this options allows you to add time markers to 
9749 \family sans
9750 Note
9751 \family default
9752 s.
9753  See section
9754 \begin_inset space ~
9755 \end_inset
9756
9757
9758 \begin_inset CommandInset ref
9759 LatexCommand ref
9760 reference "sec:slideNote"
9761
9762 \end_inset
9763
9764  for more details.
9765 \end_layout
9766
9767 \end_deeper
9768 \begin_layout Standard
9769 You can also use the template file 
9770 \begin_inset Quotes eld
9771 \end_inset
9772
9773
9774 \family typewriter
9775 slides.lyx
9776 \family default
9777
9778 \begin_inset Quotes erd
9779 \end_inset
9780
9781  to automatically set up a document to use the 
9782 \family sans
9783 slides
9784 \family default
9785  class [using 
9786 \family sans
9787 File\SpecialChar menuseparator
9788 New
9789 \begin_inset space ~
9790 \end_inset
9791
9792 from
9793 \begin_inset space ~
9794 \end_inset
9795
9796 Template
9797 \family default
9798  to open your new document].
9799  The template file also contains some examples of the special paragraph
9800  environments used by this class.
9801  I'll describe those next.
9802 \end_layout
9803
9804 \begin_layout Subsubsection
9805 Paragraph Environments
9806 \end_layout
9807
9808 \begin_layout Paragraph
9809 Supported Environments
9810 \end_layout
9811
9812 \begin_layout Standard
9813 The first thing you'll notice when you start up a new 
9814 \family sans
9815 slides
9816 \family default
9817  document is the font size and type: it's the equivalent of the size 
9818 \begin_inset Quotes eld
9819 \end_inset
9820
9821
9822 \family sans
9823 Largest
9824 \family default
9825
9826 \begin_inset Quotes erd
9827 \end_inset
9828
9829  in the 
9830 \family sans
9831 Sans
9832 \begin_inset space ~
9833 \end_inset
9834
9835 Serif
9836 \family default
9837  font.
9838  This is also what's used in the output.
9839  Think of this as a 
9840 \begin_inset Quotes eld
9841 \end_inset
9842
9843 visual cue
9844 \begin_inset Quotes erd
9845 \end_inset
9846
9847  to remind you that this is a slide.
9848  Your final slides will use a larger font; ergo, you'll have less space.
9849  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9850 \end_layout
9851
9852 \begin_layout Standard
9853 The next thing that becomes obvious is the changes to the paragraph environment
9854  pull-down box [at the far-left end of the toolbar].
9855  Most of the paragraph environments you're used to seeing are missing.
9856  There are also five new ones.
9857  That's because the 
9858 \family sans
9859 slides
9860 \family default
9861  class itself only supports certain paragraph environments:
9862 \end_layout
9863
9864 \begin_layout Itemize
9865
9866 \family sans
9867 Standard
9868 \end_layout
9869
9870 \begin_layout Itemize
9871
9872 \family sans
9873 Itemize
9874 \end_layout
9875
9876 \begin_layout Itemize
9877
9878 \family sans
9879 Enumerate
9880 \end_layout
9881
9882 \begin_layout Itemize
9883
9884 \family sans
9885 Description
9886 \end_layout
9887
9888 \begin_layout Itemize
9889
9890 \family sans
9891 List
9892 \end_layout
9893
9894 \begin_layout Itemize
9895
9896 \family sans
9897 Quotation
9898 \end_layout
9899
9900 \begin_layout Itemize
9901
9902 \family sans
9903 Quote
9904 \end_layout
9905
9906 \begin_layout Itemize
9907
9908 \family sans
9909 Verse
9910 \end_layout
9911
9912 \begin_layout Itemize
9913
9914 \family sans
9915 Caption
9916 \end_layout
9917
9918 \begin_layout Itemize
9919
9920 \family sans
9921 \SpecialChar LyX
9922 -Code
9923 \end_layout
9924
9925 \begin_layout Standard
9926 All of the other standard environments, including the section-heading environmen
9927 ts, aren't used in the 
9928 \family sans
9929 slides
9930 \family default
9931  class.
9932 \end_layout
9933
9934 \begin_layout Standard
9935 On the other hand, you'll notice the following new environments:
9936 \end_layout
9937
9938 \begin_layout Itemize
9939
9940 \family sans
9941 Slide
9942 \end_layout
9943
9944 \begin_layout Itemize
9945
9946 \family sans
9947 Overlay
9948 \end_layout
9949
9950 \begin_layout Itemize
9951
9952 \family sans
9953 Note
9954 \end_layout
9955
9956 \begin_layout Itemize
9957
9958 \family sans
9959 InvisibleText
9960 \end_layout
9961
9962 \begin_layout Itemize
9963
9964 \family sans
9965 VisibleText
9966 \end_layout
9967
9968 \begin_layout Standard
9969 These five are kind of quirky, due to a 
9970 \begin_inset Quotes eld
9971 \end_inset
9972
9973 feature
9974 \begin_inset Quotes erd
9975 \end_inset
9976
9977  in \SpecialChar LyX
9978 .
9979  You see, \SpecialChar LyX
9980  doesn't permit you to nest any other paragraph environment into
9981  an empty environment.
9982  Now, that's fine and dandy, but it means that you wouldn't be able to start
9983  a slide with anything except plain text.
9984  To deal with this, I've performed a little 
9985 \begin_inset Quotes eld
9986 \end_inset
9987
9988 \SpecialChar LaTeX
9989  magic.
9990 \begin_inset Quotes erd
9991 \end_inset
9992
9993  
9994 \end_layout
9995
9996 \begin_layout Paragraph
9997 Quirks of the New Environments
9998 \begin_inset CommandInset label
9999 LatexCommand label
10000 name "sec:slideQuirk"
10001
10002 \end_inset
10003
10004
10005 \end_layout
10006
10007 \begin_layout Standard
10008 All five of the new paragraph environments are somewhat quirky due to inherent
10009  limitiations in the current version of \SpecialChar LyX
10010 .
10011  As I just mentioned, \SpecialChar LyX
10012  forbids environments that begin with another environment.
10013  To get around this, the 
10014 \family sans
10015 Slide
10016 \family default
10017  environment isn't a paragraph environment as described in the 
10018 \emph on
10019 User's Guide
10020 \emph default
10021 .
10022  
10023 \end_layout
10024
10025 \begin_layout Standard
10026 You should consider 
10027 \family sans
10028 Slide
10029 \family default
10030
10031 \family sans
10032 Overlay
10033 \family default
10034 , and 
10035 \family sans
10036 Note
10037 \family default
10038  to be 
10039 \begin_inset Quotes eld
10040 \end_inset
10041
10042 pseudo-environments.
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046  They look like a section heading or a 
10047 \begin_inset Quotes eld
10048 \end_inset
10049
10050
10051 \family sans
10052 Caption
10053 \family default
10054 ,
10055 \begin_inset Quotes erd
10056 \end_inset
10057
10058  but really begin a [and, if necessary, end the previous] paragraph environment.
10059  Likewise, treat 
10060 \family sans
10061 InvisibleText
10062 \family default
10063  and 
10064 \family sans
10065 VisibleText
10066 \family default
10067  as 
10068 \begin_inset Quotes eld
10069 \end_inset
10070
10071 pseudo-commands.
10072 \begin_inset Quotes erd
10073 \end_inset
10074
10075  These two perform some action.
10076 \end_layout
10077
10078 \begin_layout Standard
10079 A common feature of all five environments, 
10080 \family sans
10081 Slide
10082 \family default
10083
10084 \family sans
10085 Overlay
10086 \family default
10087
10088 \family sans
10089 Note
10090 \family default
10091
10092 \family sans
10093 InvisibleText
10094 \family default
10095  and 
10096 \family sans
10097 VisibleText
10098 \family default
10099 , is a rather long-ish label.
10100  The text following this label — ordinarily the contents of the paragraph
10101  environment — is utterly irrelevant for 
10102 \family sans
10103 Slide
10104 \family default
10105
10106 \family sans
10107 Overlay
10108 \family default
10109
10110 \family sans
10111 Note
10112 \family default
10113
10114 \family sans
10115 InvisibleText
10116 \family default
10117  and 
10118 \family sans
10119 VisibleText
10120 \family default
10121 .
10122  \SpecialChar LyX
10123  completely ignores it.
10124  In fact, you can leave these five environments completely empty.
10125  
10126 \end_layout
10127
10128 \begin_layout Standard
10129 While you don't 
10130 \emph on
10131 have
10132 \emph default
10133  to put any text after the rather long-ish label, you might want to.
10134  This could be a short description of the contents of the 
10135 \family sans
10136 Slide
10137 \family default
10138 , for example.
10139  In that case, enter your descriptive comment and hit 
10140 \family sans
10141 Return
10142 \family default
10143  as you normally would.
10144 \end_layout
10145
10146 \begin_layout Standard
10147 If, on the other hand, you don't want to enter any descriptive text, you'll
10148  hit another \SpecialChar LyX
10149  quirk.
10150  \SpecialChar LyX
10151 , like nature, abhors a vacuum, and will not let you start a new paragraph
10152  environment until you put something in the old one.
10153  So, do this:
10154 \end_layout
10155
10156 \begin_layout Itemize
10157 Start entering the text that will 
10158 \emph on
10159 follow
10160 \emph default
10161  the new 
10162 \family sans
10163 Slide
10164 \family default
10165
10166 \family sans
10167 Overlay
10168 \family default
10169
10170 \family sans
10171 Note
10172 \family default
10173
10174 \family sans
10175 InvisibleText
10176 \family default
10177  or 
10178 \family sans
10179 VisibleText
10180 \family default
10181 .
10182  
10183 \end_layout
10184
10185 \begin_layout Itemize
10186 Now move to the beginning of that paragraph.
10187  
10188 \end_layout
10189
10190 \begin_layout Itemize
10191 Next, hit 
10192 \family sans
10193 Return
10194 \family default
10195 .
10196  
10197 \end_layout
10198
10199 \begin_layout Itemize
10200 Finally, change this new, empty paragraph to a 
10201 \family sans
10202 Slide
10203 \family default
10204
10205 \family sans
10206 Overlay
10207 \family default
10208
10209 \family sans
10210 Note
10211 \family default
10212
10213 \family sans
10214 InvisibleText
10215 \family default
10216  or 
10217 \family sans
10218 VisibleText
10219 \family default
10220 .
10221  
10222 \end_layout
10223
10224 \begin_layout Standard
10225 Some future version of \SpecialChar LyX
10226  will, hopefully, resolve this quirkiness\SpecialChar ldots
10227
10228 \end_layout
10229
10230 \begin_layout Subsubsection
10231 Making a Presentation with 
10232 \family sans
10233 Slide
10234 \family default
10235
10236 \family sans
10237 Overlay
10238 \family default
10239  and 
10240 \family sans
10241 Note
10242 \end_layout
10243
10244 \begin_layout Paragraph
10245 Using the 
10246 \family sans
10247 Slide
10248 \family default
10249  Environment
10250 \end_layout
10251
10252 \begin_layout Standard
10253 If you're expecting this section to teach you how to actually make a presentatio
10254 n, you'll be sorely disappointed.
10255  Naturally, I'll describe all of the ways the 
10256 \family sans
10257 slides
10258 \family default
10259  class can assist you in preparing the materials for a presentation.
10260  Filling in the contents, however, is up to you.
10261  [Then again, that 
10262 \emph on
10263 is
10264 \emph default
10265  the \SpecialChar LyX
10266  philosophy.]
10267 \end_layout
10268
10269 \begin_layout Standard
10270 Choosing the 
10271 \family sans
10272 Slide
10273 \family default
10274  environment [in the manner described in section
10275 \begin_inset space ~
10276 \end_inset
10277
10278
10279 \begin_inset CommandInset ref
10280 LatexCommand ref
10281 reference "sec:slideQuirk"
10282
10283 \end_inset
10284
10285 ] tells \SpecialChar LyX
10286  to begin a new slide [duh].
10287  The label for this environment/
10288 \begin_inset Quotes erd
10289 \end_inset
10290
10291 pseudo-command
10292 \begin_inset Quotes erd
10293 \end_inset
10294
10295  is an 
10296 \begin_inset Quotes eld
10297 \end_inset
10298
10299 ASCII line,
10300 \begin_inset Quotes erd
10301 \end_inset
10302
10303  in cool blue, followed by the label, 
10304 \begin_inset Quotes eld
10305 \end_inset
10306
10307 NewSlide:
10308 \begin_inset Quotes erd
10309 \end_inset
10310
10311 .
10312  Any text or paragraph environments that follow this one go on the new slide.
10313  It's that simple.
10314 \end_layout
10315
10316 \begin_layout Standard
10317 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
10318
10319  (this can be specified in the 
10320 \family sans
10321 Paragraph Layout
10322 \family default
10323  dialog).
10324  In fact, you'll want to, once you finish entering the contents of one slide.
10325  If you've entered more text than can physically fit on a slide, the extra
10326  overflows onto a new slide.
10327  I don't recommend doing this, however, since the overflow slide won't have
10328  any page number on it.
10329  Furthermore, it may interfere with any 
10330 \family sans
10331 Overlay
10332 \family default
10333  you've made to accompany the oversized 
10334 \family sans
10335 Slide
10336 \family default
10337 .
10338 \end_layout
10339
10340 \begin_layout Standard
10341 The 
10342 \family sans
10343 Overlay
10344 \family default
10345  and 
10346 \family sans
10347 Note
10348 \family default
10349  environments work the same way as the 
10350 \family sans
10351 Slide
10352 \family default
10353  environment.
10354  They both create an 
10355 \begin_inset Quotes eld
10356 \end_inset
10357
10358 ASCII line
10359 \begin_inset Quotes erd
10360 \end_inset
10361
10362  followed by a label [
10363 \begin_inset Quotes eld
10364 \end_inset
10365
10366 NewOverlay:
10367 \begin_inset Quotes erd
10368 \end_inset
10369
10370  and 
10371 \begin_inset Quotes eld
10372 \end_inset
10373
10374 NewNote:
10375 \begin_inset Quotes erd
10376 \end_inset
10377
10378 , respectively].
10379  The color is a stunning magenta instead of blue, and the 
10380 \begin_inset Quotes eld
10381 \end_inset
10382
10383 ASCII line
10384 \begin_inset Quotes erd
10385 \end_inset
10386
10387  will look different, in style and in length.
10388  The label fonts of all three also differ from one another.
10389 \end_layout
10390
10391 \begin_layout Standard
10392 As with a 
10393 \family sans
10394 Slide
10395 \family default
10396 , if the contents of a 
10397 \family sans
10398 Note
10399 \family default
10400  or 
10401 \family sans
10402 Overlay
10403 \family default
10404  exceed the physical size of a slide or sheet of paper, the extra will overflow
10405  onto a new sheet.
10406  Again, you should avoid this.
10407  It defeats the whole purpose of 
10408 \family sans
10409 Note
10410 \family default
10411 s and 
10412 \family sans
10413 Overlay
10414 \family default
10415 s.
10416 \end_layout
10417
10418 \begin_layout Paragraph
10419 Using 
10420 \family sans
10421 Overlay
10422 \family default
10423  with 
10424 \family sans
10425 Slide
10426 \end_layout
10427
10428 \begin_layout Standard
10429 The idea behind an 
10430 \family sans
10431 Overlay
10432 \family default
10433  is a slide that sits atop another slide.
10434  Perhaps you wish to discuss a figure on the main 
10435 \family sans
10436 Slide
10437 \family default
10438  before displaying the text associated with it.
10439  One way to accomplish this is tape a flap of dark paper over the part of
10440  the 
10441 \family sans
10442 Slide
10443 \family default
10444  you want to display later.
10445  This method fails, however, if you wish to overlap one graph with another,
10446  for example.
10447  You would then have to fumble while speaking to align the two separate,
10448  overlapping 
10449 \family sans
10450 Slide
10451 \family default
10452 s to align the two graphs.
10453  The use of an 
10454 \family sans
10455 Overlay
10456 \family default
10457  environment in both cases makes life much easier.
10458 \end_layout
10459
10460 \begin_layout Standard
10461 Each 
10462 \family sans
10463 Overlay
10464 \family default
10465  receives the page number of its 
10466 \begin_inset Quotes eld
10467 \end_inset
10468
10469 parent
10470 \begin_inset Quotes erd
10471 \end_inset
10472
10473  
10474 \family sans
10475 Slide
10476 \family default
10477 , appended by 
10478 \begin_inset Quotes eld
10479 \end_inset
10480
10481
10482 \family typewriter
10483 -a
10484 \family default
10485
10486 \begin_inset Quotes erd
10487 \end_inset
10488
10489 .
10490 \begin_inset Foot
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 Presumably, mutliple 
10495 \family sans
10496 Overlay
10497 \family default
10498 s would have 
10499 \begin_inset Quotes eld
10500 \end_inset
10501
10502
10503 \family typewriter
10504 -a
10505 \family default
10506
10507 \begin_inset Quotes erd
10508 \end_inset
10509
10510
10511 \begin_inset Quotes eld
10512 \end_inset
10513
10514
10515 \family typewriter
10516 -b
10517 \family default
10518
10519 \begin_inset Quotes erd
10520 \end_inset
10521
10522
10523 \begin_inset Quotes eld
10524 \end_inset
10525
10526
10527 \family typewriter
10528 -c
10529 \family default
10530
10531 \begin_inset Quotes erd
10532 \end_inset
10533
10534 , etc.
10535 \begin_inset space ~
10536 \end_inset
10537
10538 appended to the page number of the parent 
10539 \family sans
10540 Slide
10541 \family default
10542 .
10543  
10544 \end_layout
10545
10546 \end_inset
10547
10548  Clearly, you want the contents of both the 
10549 \family sans
10550 Slide
10551 \family default
10552  and the 
10553 \family sans
10554 Overlay
10555 \family default
10556  to each fit on a single physical slide! You should probably consider an
10557  
10558 \family sans
10559 Overlay
10560 \family default
10561  as 
10562 \begin_inset Quotes eld
10563 \end_inset
10564
10565 part of
10566 \begin_inset Quotes erd
10567 \end_inset
10568
10569  a 
10570 \family sans
10571 Slide
10572 \family default
10573 .
10574  Indeed, the \SpecialChar LyX
10575  
10576 \family sans
10577 slides
10578 \family default
10579  class provides a visual cue for this: the label at the start of an 
10580 \family sans
10581 Overlay
10582 \family default
10583  is shorter than that at the start of a 
10584 \family sans
10585 Slide
10586 \family default
10587 .
10588  Lastly, when you generate printable output, you'll find alignment markers
10589  in all four corners of both the 
10590 \family sans
10591 Overlay
10592 \family default
10593  page and its parent 
10594 \family sans
10595 Slide
10596 \family default
10597 .
10598  These will assist you in lining up the two physical slides.
10599 \end_layout
10600
10601 \begin_layout Standard
10602 The major problem in overlaying two slides is aligning the contents of the
10603  two transparencies.
10604  How much space should you leave for that graph on the second slide? Worse
10605  still, what if you want a graph and a sentence on second slide, but there
10606  is text on the main transparency that goes in between them? You could try
10607  and insert vertical space of the right size.
10608  The better way is to use 
10609 \family sans
10610 InvisibleText
10611 \family default
10612  and 
10613 \family sans
10614 VisibleText
10615 \family default
10616 .
10617 \end_layout
10618
10619 \begin_layout Standard
10620 As their names imply, 
10621 \family sans
10622 InvisibleText
10623 \family default
10624  and 
10625 \family sans
10626 VisibleText
10627 \family default
10628  are two command-like paragraph environments that make all subsequent text
10629  invisible and visible, respectively.
10630  Note from section
10631 \begin_inset space ~
10632 \end_inset
10633
10634
10635 \begin_inset CommandInset ref
10636 LatexCommand ref
10637 reference "sec:slideQuirk"
10638
10639 \end_inset
10640
10641  that you don't place anything 
10642 \emph on
10643 into
10644 \emph default
10645  these two environments, however.
10646  When you create an 
10647 \family sans
10648 InvisibleText
10649 \family default
10650 , it inserts a centered, sky-blue label into the page reading 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654 <Invisible Text Follows>
10655 \begin_inset Quotes erd
10656 \end_inset
10657
10658 .
10659  For paragraphs following this label, the parts of the 
10660 \family sans
10661 Slide
10662 \family default
10663  [or 
10664 \family sans
10665 Overlay
10666 \family default
10667 ; it doesn't matter which] where they would be contain instead blank space.
10668  
10669 \end_layout
10670
10671 \begin_layout Standard
10672 For 
10673 \family sans
10674 VisibleText
10675 \family default
10676 , the corresponding centered label is 
10677 \begin_inset Quotes eld
10678 \end_inset
10679
10680 <Visible Text Follows>
10681 \begin_inset Quotes erd
10682 \end_inset
10683
10684  in blazing green.
10685  Paragraphs following this label behave normally.
10686  Note that the beginning of a new 
10687 \family sans
10688 Slide
10689 \family default
10690
10691 \family sans
10692 Overlay
10693 \family default
10694 , or 
10695 \family sans
10696 Note
10697 \family default
10698  automatically shuts off an 
10699 \family sans
10700 InvisibleText
10701 \family default
10702 .
10703  It's therefore not necessary to use 
10704 \family sans
10705 VisibleText
10706 \family default
10707  at the end of a 
10708 \family sans
10709 Slide
10710 \family default
10711 .
10712 \end_layout
10713
10714 \begin_layout Standard
10715 By now, it should be obvious how to create overlay transparencies using
10716  the proper combination of 
10717 \family sans
10718 InvisibleText
10719 \family default
10720  and 
10721 \family sans
10722 VisibleText
10723 \family default
10724  on a 
10725 \family sans
10726 Slide
10727 \family default
10728  and 
10729 \family sans
10730 Overlay
10731 \family default
10732 :
10733 \end_layout
10734
10735 \begin_layout Enumerate
10736 Create a 
10737 \family sans
10738 Slide
10739 \family default
10740 , including everything that will appear on it, whether on the main slide
10741  or on the 
10742 \family sans
10743 Overlay
10744 \family default
10745 .
10746 \end_layout
10747
10748 \begin_layout Enumerate
10749 Before each figure or paragraph that will appear only on the 
10750 \family sans
10751 Overlay
10752 \family default
10753 , insert an 
10754 \family sans
10755 InvisibleText
10756 \family default
10757  environment.
10758  If necessary, insert a 
10759 \family sans
10760 VisibleText
10761 \family default
10762  environment after the 
10763 \family sans
10764 Overlay
10765 \family default
10766 -only text.
10767 \end_layout
10768
10769 \begin_layout Enumerate
10770 Start an 
10771 \family sans
10772 Overlay
10773 \family default
10774  immediately following the 
10775 \family sans
10776 Slide
10777 \family default
10778 .
10779 \end_layout
10780
10781 \begin_layout Enumerate
10782 Copy the contents of this 
10783 \family sans
10784 Slide
10785 \family default
10786  into the 
10787 \family sans
10788 Overlay
10789 \family default
10790 .
10791 \end_layout
10792
10793 \begin_layout Enumerate
10794 Within the 
10795 \family sans
10796 Overlay
10797 \family default
10798 , change all of the 
10799 \family sans
10800 InvisibleText
10801 \family default
10802  lines to 
10803 \family sans
10804 VisibleText
10805 \family default
10806  and vice-versa.
10807 \end_layout
10808
10809 \begin_layout Standard
10810 That's it.
10811  You've just made an 
10812 \family sans
10813 Overlay
10814 \family default
10815 .
10816 \end_layout
10817
10818 \begin_layout Standard
10819 There's one problem with the way I've designed the \SpecialChar LyX
10820  
10821 \family sans
10822 slides
10823 \family default
10824  class: you can't make text in the middle of a paragraph invisible, nor
10825  make text in the middle of an invisible paragraph visible again.
10826  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
10827  codes.
10828 \begin_inset Foot
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 The commands of interest are: 
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family typewriter
10838 {
10839 \backslash
10840 invisible \SpecialChar ldots
10841  }
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family typewriter
10847 {
10848 \backslash
10849 visible \SpecialChar ldots
10850  }
10851 \end_layout
10852
10853 \begin_layout Plain Layout
10854 \SpecialChar ldots
10855 and need to be marked as \SpecialChar TeX
10856 .
10857  The text whose 
10858 \begin_inset Quotes eld
10859 \end_inset
10860
10861 visibility
10862 \begin_inset Quotes erd
10863 \end_inset
10864
10865  you wish to change goes in between the brackets [and after the 
10866 \family typewriter
10867
10868 \backslash
10869 invisible
10870 \family default
10871  or 
10872 \family typewriter
10873
10874 \backslash
10875 visible
10876 \family default
10877  command].
10878  If you don't know how to mark text as \SpecialChar TeX
10879 , see the appropriate section of
10880  the 
10881 \emph on
10882 User's Guide
10883 \emph default
10884 .
10885 \end_layout
10886
10887 \end_inset
10888
10889
10890 \end_layout
10891
10892 \begin_layout Paragraph
10893 Using 
10894 \family sans
10895 Note
10896 \family default
10897  with 
10898 \family sans
10899 Slide
10900 \family default
10901
10902 \begin_inset CommandInset label
10903 LatexCommand label
10904 name "sec:slideNote"
10905
10906 \end_inset
10907
10908
10909 \end_layout
10910
10911 \begin_layout Standard
10912 Like an 
10913 \family sans
10914 Overlay
10915 \family default
10916 , a 
10917 \family sans
10918 Note
10919 \family default
10920  is associated with a 
10921 \begin_inset Quotes eld
10922 \end_inset
10923
10924 parent
10925 \begin_inset Quotes erd
10926 \end_inset
10927
10928  
10929 \family sans
10930 Slide
10931 \family default
10932 .
10933  Here, too, the \SpecialChar LyX
10934  
10935 \family sans
10936 slides
10937 \family default
10938  class provides visual cues.
10939  The label for a 
10940 \family sans
10941 Note
10942 \family default
10943  is shorter than that of a 
10944 \family sans
10945 Slide
10946 \family default
10947  [yet longer than that of an 
10948 \family sans
10949 Overlay
10950 \family default
10951 ] and, like the label of an 
10952 \family sans
10953 Overlay
10954 \family default
10955  is shockingly magenta.
10956  Additionally, the printed 
10957 \family sans
10958 Note
10959 \family default
10960  has the page number of its 
10961 \begin_inset Quotes eld
10962 \end_inset
10963
10964 parent
10965 \begin_inset Quotes erd
10966 \end_inset
10967
10968  
10969 \family sans
10970 Slide
10971 \family default
10972 , appended by 
10973 \begin_inset Quotes eld
10974 \end_inset
10975
10976
10977 \family typewriter
10978 -
10979 \family default
10980 1
10981 \begin_inset Quotes erd
10982 \end_inset
10983
10984
10985 \begin_inset Quotes eld
10986 \end_inset
10987
10988
10989 \family typewriter
10990 -
10991 \family default
10992 2
10993 \begin_inset Quotes erd
10994 \end_inset
10995
10996
10997 \begin_inset Quotes eld
10998 \end_inset
10999
11000
11001 \family typewriter
11002 -
11003 \family default
11004 3
11005 \begin_inset Quotes erd
11006 \end_inset
11007
11008 , etc.
11009  You can have multiple 
11010 \family sans
11011 Note
11012 \family default
11013 s associated with a single 
11014 \family sans
11015 Slide
11016 \family default
11017 , and, as with 
11018 \family sans
11019 Slide
11020 \family default
11021  and 
11022 \family sans
11023 Overlay
11024 \family default
11025 , you'll probably want to break up long 
11026 \family sans
11027 Note
11028 \family default
11029 s so that they fit on a single sheet of paper.
11030 \end_layout
11031
11032 \begin_layout Standard
11033 The purpose of a 
11034 \family sans
11035 Note
11036 \family default
11037  is obvious: it contains anything additional you might want to say about
11038  a 
11039 \family sans
11040 Slide
11041 \family default
11042 .
11043  It could also be used as a sheet of reminders for a particular 
11044 \family sans
11045 Slide
11046 \family default
11047 .
11048  In the case of the latter, you might want to make use of time markers.
11049  Currently, the \SpecialChar LyX
11050  
11051 \family sans
11052 slides
11053 \family default
11054  class has no 
11055 \begin_inset Quotes eld
11056 \end_inset
11057
11058 native
11059 \begin_inset Quotes erd
11060 \end_inset
11061
11062  support for time markers, a 
11063 \noun on
11064 Sli\SpecialChar TeX
11065
11066 \noun default
11067  feature.
11068  So, you'll have to resort to using the \SpecialChar LaTeX
11069  codes.
11070 \end_layout
11071
11072 \begin_layout Standard
11073 To use time markers, you'll need to specify the extra class option 
11074 \begin_inset Quotes eld
11075 \end_inset
11076
11077
11078 \family typewriter
11079 clock
11080 \family default
11081
11082 \begin_inset Quotes erd
11083 \end_inset
11084
11085  [see section
11086 \begin_inset space ~
11087 \end_inset
11088
11089
11090 \begin_inset CommandInset ref
11091 LatexCommand ref
11092 reference "sec:slidesetup"
11093
11094 \end_inset
11095
11096 ].
11097  This option turns on timing marks, which will appear in the lower-left-hand
11098  corner of every 
11099 \family sans
11100 Note
11101 \family default
11102  you generate.
11103  To set what appears in the time marker, you use the \SpecialChar LaTeX
11104  commands 
11105 \begin_inset Quotes eld
11106 \end_inset
11107
11108
11109 \family typewriter
11110
11111 \backslash
11112 settime{}
11113 \family default
11114
11115 \begin_inset Quotes erd
11116 \end_inset
11117
11118  and 
11119 \begin_inset Quotes eld
11120 \end_inset
11121
11122
11123 \family typewriter
11124
11125 \backslash
11126 addtime{}
11127 \family default
11128
11129 \begin_inset Quotes erd
11130 \end_inset
11131
11132 .
11133  The arguments of both commands are time measured in seconds.
11134  
11135 \begin_inset Quotes eld
11136 \end_inset
11137
11138
11139 \family typewriter
11140
11141 \backslash
11142 settime{}
11143 \family default
11144
11145 \begin_inset Quotes erd
11146 \end_inset
11147
11148  sets the time marker to a given time.
11149  
11150 \begin_inset Quotes eld
11151 \end_inset
11152
11153
11154 \family typewriter
11155
11156 \backslash
11157 addtime{}
11158 \family default
11159
11160 \begin_inset Quotes erd
11161 \end_inset
11162
11163  increments the time marker by the specified amount.
11164  Using time markers and 
11165 \family sans
11166 Note
11167 \family default
11168 s in this fashion, you can remind yourself how much time to spend on a particula
11169
11170 \family sans
11171 Slide
11172 \family default
11173 .
11174 \end_layout
11175
11176 \begin_layout Standard
11177 There's one last feature to describe.
11178  Clearly, you'd like to print out all of your 
11179 \family sans
11180 Slide
11181 \family default
11182 s and 
11183 \family sans
11184 Overlay
11185 \family default
11186 s on transparencies while printing all of your 
11187 \family sans
11188 Note
11189 \family default
11190 s on plain paper.
11191  However, a 
11192 \family sans
11193 Note
11194 \family default
11195  
11196 \emph on
11197 must
11198 \emph default
11199  follow the 
11200 \family sans
11201 Slide
11202 \family default
11203  with which it is associated.
11204  What's a person to do?
11205 \end_layout
11206
11207 \begin_layout Standard
11208 Luckily, there are two \SpecialChar LaTeX
11209  commands that allow you to select what to print
11210  out.
11211  Both must be placed into the preamble of your document.
11212  The command 
11213 \begin_inset Quotes eld
11214 \end_inset
11215
11216
11217 \family typewriter
11218
11219 \backslash
11220 onlyslides{
11221 \backslash
11222 slides}
11223 \family default
11224
11225 \begin_inset Quotes erd
11226 \end_inset
11227
11228  will cause the output to contain only the 
11229 \family sans
11230 Slide
11231 \family default
11232 s and 
11233 \family sans
11234 Overlay
11235 \family default
11236 s.
11237  Correspondingly, the command 
11238 \begin_inset Quotes eld
11239 \end_inset
11240
11241
11242 \family typewriter
11243
11244 \backslash
11245 onlynotes{
11246 \backslash
11247 notes}
11248 \family default
11249
11250 \begin_inset Quotes erd
11251 \end_inset
11252
11253  prevents the output of anything but 
11254 \family sans
11255 Note
11256 \family default
11257 s.
11258  I'd advise placing both commands in the preamble and initially comment
11259  both out.
11260  You can then preview your entire presentation as you write.
11261  When you're done writing, you can then uncomment one of the two to select
11262  what you want to print.
11263  I like to uncomment 
11264 \begin_inset Quotes eld
11265 \end_inset
11266
11267
11268 \family typewriter
11269
11270 \backslash
11271 onlyslides{
11272 \backslash
11273 slides}
11274 \family default
11275
11276 \begin_inset Quotes erd
11277 \end_inset
11278
11279  , print to a file with 
11280 \begin_inset Quotes eld
11281 \end_inset
11282
11283
11284 \family typewriter
11285 -slides
11286 \family default
11287
11288 \begin_inset Quotes erd
11289 \end_inset
11290
11291  in its name, comment it back out, then uncomment 
11292 \begin_inset Quotes eld
11293 \end_inset
11294
11295
11296 \family typewriter
11297
11298 \backslash
11299 onlynotes{
11300 \backslash
11301 notes}
11302 \family default
11303
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  and print to a 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311
11312 \family typewriter
11313 *-notes.ps
11314 \family default
11315
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319  file.
11320  I can then send either file to a printer, loading transparencies or plain
11321  paper as appropriate.
11322 \end_layout
11323
11324 \begin_layout Standard
11325 You can also provide other arguments to the 
11326 \begin_inset Quotes eld
11327 \end_inset
11328
11329
11330 \family typewriter
11331
11332 \backslash
11333 onlyslides{}
11334 \family default
11335
11336 \begin_inset Quotes erd
11337 \end_inset
11338
11339  and 
11340 \begin_inset Quotes eld
11341 \end_inset
11342
11343
11344 \family typewriter
11345
11346 \backslash
11347 onlynotes{}
11348 \family default
11349
11350 \begin_inset Quotes erd
11351 \end_inset
11352
11353  commands.
11354  See a good \SpecialChar LaTeX
11355  book for details.
11356 \end_layout
11357
11358 \begin_layout Subsubsection
11359 The 
11360 \family sans
11361 slides
11362 \family default
11363  Class Template File
11364 \end_layout
11365
11366 \begin_layout Standard
11367 I have also provided a template file, 
11368 \begin_inset Quotes eld
11369 \end_inset
11370
11371
11372 \family typewriter
11373 slides.lyx
11374 \family default
11375
11376 \begin_inset Quotes erd
11377 \end_inset
11378
11379 , with the 
11380 \family sans
11381 slides
11382 \family default
11383  class.
11384  To use it, begin your new presentation with 
11385 \family sans
11386 File\SpecialChar menuseparator
11387 New
11388 \begin_inset space ~
11389 \end_inset
11390
11391 from
11392 \begin_inset space ~
11393 \end_inset
11394
11395 Template
11396 \family default
11397 .
11398  Your new \SpecialChar LyX
11399  presentation file will contain an example 
11400 \family sans
11401 Slide
11402 \family default
11403  – 
11404 \family sans
11405 Overlay
11406 \family default
11407  – 
11408 \family sans
11409 Note
11410 \family default
11411  triplet.
11412  The 
11413 \family sans
11414 Slide
11415 \family default
11416  and 
11417 \family sans
11418 Overlay
11419 \family default
11420  additionally contain an example of the use of 
11421 \family sans
11422 InvisibleText
11423 \family default
11424  and 
11425 \family sans
11426 VisibleText
11427 \family default
11428 .
11429  Lastly, the preamble will contain:
11430 \end_layout
11431
11432 \begin_layout LyX-Code
11433 % Uncomment to print out only slides and overlays
11434 \end_layout
11435
11436 \begin_layout LyX-Code
11437 %
11438 \end_layout
11439
11440 \begin_layout LyX-Code
11441 %
11442 \backslash
11443 onlyslides{
11444 \backslash
11445 slides}
11446 \begin_inset Newline newline
11447 \end_inset
11448
11449  
11450 \end_layout
11451
11452 \begin_layout LyX-Code
11453 % Uncomment to print out only notes
11454 \end_layout
11455
11456 \begin_layout LyX-Code
11457 %
11458 \end_layout
11459
11460 \begin_layout LyX-Code
11461 %
11462 \backslash
11463 onlynotes{
11464 \backslash
11465 notes}
11466 \end_layout
11467
11468 \begin_layout Standard
11469 One final thing: I created this class to support the \SpecialChar LaTeX2e
11470  
11471 \begin_inset Quotes eld
11472 \end_inset
11473
11474
11475 \noun on
11476 Sli\SpecialChar TeX
11477
11478 \noun default
11479  emulation
11480 \begin_inset Quotes erd
11481 \end_inset
11482
11483  class, one of the built-in \SpecialChar LaTeX2e
11484  classes.
11485  Neither I nor the rest of the \SpecialChar LyX
11486  Team endorse or oppose the use of this built-in
11487  slide class.
11488  It's here if you want it or need it.
11489  There exist other \SpecialChar LaTeX2e
11490  classes for creating presentations, such as the 
11491 \family sans
11492 Foils
11493 \family default
11494  class [see section
11495 \begin_inset space ~
11496 \end_inset
11497
11498
11499 \begin_inset CommandInset ref
11500 LatexCommand ref
11501 reference "sec:foiltex"
11502
11503 \end_inset
11504
11505 ] or the 
11506 \begin_inset Quotes eld
11507 \end_inset
11508
11509
11510 \family typewriter
11511 seminar
11512 \family default
11513
11514 \begin_inset Quotes erd
11515 \end_inset
11516
11517  package [present on some \SpecialChar TeX
11518  distributions].
11519  The latter is not yet supported under \SpecialChar LyX
11520 .
11521 \begin_inset Foot
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 Perhaps you can take on the task\SpecialChar ldots
11526
11527 \end_layout
11528
11529 \end_inset
11530
11531  I know nothing about these other classes.
11532  Try them out to see what sort of alternative they provide.
11533 \end_layout
11534
11535 \begin_layout Section
11536
11537 \change_inserted 564990737 1670439661
11538 Reports
11539 \end_layout
11540
11541 \begin_layout Subsection
11542
11543 \change_inserted 564990737 1670439661
11544 report
11545 \end_layout
11546
11547 \begin_layout Standard
11548
11549 \change_inserted 564990737 1670439661
11550 The document class 
11551 \family sans
11552 report
11553 \family default
11554  provides the 
11555 \family sans
11556 report.cls
11557 \family default
11558  document class for preparing reports.
11559  Like the 
11560 \family sans
11561 book
11562 \family default
11563  document class, this provides parts, chapters and sections but does not
11564  provide the paragraph styles needed for a book; like the 
11565 \family sans
11566 article
11567 \family default
11568  document class, it provides the abstract paragraph style.
11569  In two-sided mode, it does not start a new chapter on the right hand page.
11570 \end_layout
11571
11572 \begin_layout Standard
11573
11574 \change_inserted 564990737 1670439674
11575 The remaining 
11576 \family sans
11577 report
11578 \family default
11579  document classes are described in the Collections (section
11580 \begin_inset space ~
11581 \end_inset
11582
11583
11584 \begin_inset CommandInset ref
11585 LatexCommand ref
11586 reference "sec:Collections"
11587
11588 \end_inset
11589
11590 ).
11591 \end_layout
11592
11593 \begin_layout Section
11594
11595 \change_inserted 564990737 1670439674
11596 Scripts (drama)
11597 \end_layout
11598
11599 \begin_layout Subsection
11600 Broadway
11601 \end_layout
11602
11603 \begin_layout Standard
11604 by 
11605 \shape smallcaps
11606 Garst Reese
11607 \end_layout
11608
11609 \begin_layout Subsubsection
11610 Introduction
11611 \end_layout
11612
11613 \begin_layout Standard
11614 Broadway is for writing plays.
11615  The format is more decorative than Hollywood, and much less standardized.
11616  This format should be suitable for workshops.
11617 \end_layout
11618
11619 \begin_layout Subsubsection
11620 Special problems
11621 \end_layout
11622
11623 \begin_layout Standard
11624 The same as in Hollywood.
11625 \end_layout
11626
11627 \begin_layout Subsubsection
11628 Special features
11629 \end_layout
11630
11631 \begin_layout Standard
11632 Insert the 
11633 \family sans
11634 Speaker
11635 \family default
11636  names as labels then cross-reference the label to insert the name.
11637  The cross-reference dialog will show the current cast of characters.
11638 \end_layout
11639
11640 \begin_layout Subsubsection
11641 Paper size and Margins
11642 \end_layout
11643
11644 \begin_layout Standard
11645 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11646 \end_layout
11647
11648 \begin_layout Subsubsection
11649 Environments
11650 \end_layout
11651
11652 \begin_layout Standard
11653 The following environments are available.
11654  You can use broadway.bind to get the bind keys shown at the right.
11655 \end_layout
11656
11657 \begin_layout Itemize
11658
11659 \family sans
11660 Standard
11661 \begin_inset Newline newline
11662 \end_inset
11663
11664
11665 \family default
11666 You should not have to use this, but it is here for anything that does not
11667  fit otherwise.
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 Narrative
11674 \begin_inset space \hfill{}
11675 \end_inset
11676
11677 M-z n
11678 \begin_inset Newline newline
11679 \end_inset
11680
11681
11682 \family default
11683 Used to describe stage setting and the action.
11684  First use of speaker names in all CAPs.
11685 \end_layout
11686
11687 \begin_layout Itemize
11688
11689 \family sans
11690 ACT
11691 \begin_inset space \hfill{}
11692 \end_inset
11693
11694 M-z a
11695 \begin_inset Newline newline
11696 \end_inset
11697
11698
11699 \family default
11700 Automatically numbered.
11701  On screen it will be arabic, but will print as Roman.
11702 \end_layout
11703
11704 \begin_layout Itemize
11705
11706 \family sans
11707 ACT*
11708 \begin_inset space \hfill{}
11709 \end_inset
11710
11711 M-z S at
11712 \begin_inset Newline newline
11713 \end_inset
11714
11715
11716 \family default
11717 Subtitle for 
11718 \family sans
11719 ACT.
11720
11721 \family default
11722  It is just centered text.
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 SCENE
11729 \begin_inset space \hfill{}
11730 \end_inset
11731
11732 M-z S-S
11733 \begin_inset Newline newline
11734 \end_inset
11735
11736
11737 \family default
11738 Not automatically numbered.
11739  You supply the number.
11740  This is because I couldn't figure out how.
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \family sans
11746 AT_RISE:
11747 \begin_inset space \hfill{}
11748 \end_inset
11749
11750 M-z S-R
11751 \begin_inset Newline newline
11752 \end_inset
11753
11754
11755 \family default
11756 A special case of Narrative to describe the setting and action as the curtain
11757  rises.
11758 \end_layout
11759
11760 \begin_layout Itemize
11761
11762 \family sans
11763 Speaker
11764 \begin_inset space \hfill{}
11765 \end_inset
11766
11767 M-z s
11768 \begin_inset Newline newline
11769 \end_inset
11770
11771
11772 \family default
11773 The speaker's (actor's) title, centered in all CAPS.
11774 \end_layout
11775
11776 \begin_layout Itemize
11777
11778 \family sans
11779 Parenthetical
11780 \begin_inset space \hfill{}
11781 \end_inset
11782
11783 M-z p
11784 \begin_inset Newline newline
11785 \end_inset
11786
11787
11788 \family default
11789 Instructions to the speaker.
11790  The parentheses are automatically inserted.
11791  The ( will appear on screen, but both will be in the printed play.
11792  This environment is only used within 
11793 \family sans
11794 Dialogue
11795 \family default
11796 .
11797 \end_layout
11798
11799 \begin_layout Itemize
11800
11801 \family sans
11802 Dialogue
11803 \begin_inset space \hfill{}
11804 \end_inset
11805
11806 M-z d
11807 \begin_inset Newline newline
11808 \end_inset
11809
11810
11811 \family default
11812 What the Speaker says.
11813 \end_layout
11814
11815 \begin_layout Itemize
11816
11817 \family sans
11818 CURTAIN
11819 \begin_inset space \hfill{}
11820 \end_inset
11821
11822 M-z S-C
11823 \begin_inset Newline newline
11824 \end_inset
11825
11826
11827 \family default
11828 The curtain comes down.
11829 \end_layout
11830
11831 \begin_layout Itemize
11832
11833 \family sans
11834 Title
11835 \begin_inset space \hfill{}
11836 \end_inset
11837
11838 M-z S-T
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 Author
11845 \begin_inset space \hfill{}
11846 \end_inset
11847
11848 M-z S-A
11849 \end_layout
11850
11851 \begin_layout Itemize
11852
11853 \family sans
11854 Right_Address
11855 \begin_inset space \hfill{}
11856 \end_inset
11857
11858 M-z r
11859 \end_layout
11860
11861 \begin_layout Standard
11862 Hello there.
11863 \end_layout
11864
11865 \begin_layout Subsection
11866 Hollywood (Hollywood spec scripts)
11867 \end_layout
11868
11869 \begin_layout Standard
11870 by 
11871 \shape smallcaps
11872 Garst Reese
11873 \end_layout
11874
11875 \begin_layout Subsubsection
11876 Introduction
11877 \end_layout
11878
11879 \begin_layout Standard
11880 Getting the format of a Hollywood script right is a 
11881 \begin_inset Quotes eld
11882 \end_inset
11883
11884 rite of passage.
11885 \begin_inset Quotes erd
11886 \end_inset
11887
11888  It is designed to make the readers focus on content and to be easy and
11889  familiar for the actors to read.
11890  Each page of a script should be one minute of film.
11891  Nothing goes in a script that you cannot see or hear on screen.
11892  The courier 12 pt font should be used throughout.
11893  No italics.
11894 \end_layout
11895
11896 \begin_layout Subsubsection
11897 Special problems
11898 \end_layout
11899
11900 \begin_layout Standard
11901 Speakers' lines should NEVER break in mid-sentence.
11902  If a speaker's lines continue over a page break, repeat the 
11903 \family sans
11904 Speaker
11905 \family default
11906  title followed by (Cont'd).
11907 \end_layout
11908
11909 \begin_layout Subsubsection
11910 Special features
11911 \end_layout
11912
11913 \begin_layout Standard
11914 Insert the 
11915 \family sans
11916 Speaker
11917 \family default
11918  names as labels then cross-reference the label to insert the name.
11919  The cross-reference dialog will show the current cast of characters.
11920  You can use this to insert the speaker name in narratives also.
11921 \end_layout
11922
11923 \begin_layout Subsubsection
11924 Paper size and Margins
11925 \end_layout
11926
11927 \begin_layout Standard
11928 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11929 \end_layout
11930
11931 \begin_layout Subsubsection
11932 Environments
11933 \end_layout
11934
11935 \begin_layout Standard
11936 The following environments are available.
11937  You can use hollywood.bind to get the bind keys shown at the right.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941
11942 \family sans
11943 Standard
11944 \begin_inset Newline newline
11945 \end_inset
11946
11947
11948 \family default
11949 Used where nothing else works.
11950  Try to avoid it.
11951 \end_layout
11952
11953 \begin_layout Itemize
11954
11955 \family sans
11956 FADE_IN
11957 \family default
11958 :
11959 \begin_inset space \hfill{}
11960 \end_inset
11961
11962
11963 \family sans
11964 M-z S-I
11965 \family default
11966
11967 \begin_inset Newline newline
11968 \end_inset
11969
11970 Usually followed by something like 
11971 \begin_inset Quotes eld
11972 \end_inset
11973
11974 on Sally waking up.
11975 \begin_inset Quotes erd
11976 \end_inset
11977
11978
11979 \end_layout
11980
11981 \begin_layout Itemize
11982
11983 \family sans
11984 INT:
11985 \begin_inset space \hfill{}
11986 \end_inset
11987
11988 M-z i
11989 \begin_inset Newline newline
11990 \end_inset
11991
11992
11993 \family default
11994 Introduces a new INTERIOR camera set-up.
11995  Always followed by DAY or NIGHT, or something similar to define the lighting
11996  required.
11997  Everthing on this line in CAPS.
11998 \end_layout
11999
12000 \begin_layout Itemize
12001
12002 \family sans
12003 EXT:
12004 \begin_inset space \hfill{}
12005 \end_inset
12006
12007 M-z e
12008 \begin_inset Newline newline
12009 \end_inset
12010
12011
12012 \family default
12013 Introduces a new EXTERIOR camera set-up.
12014  Everthing on this line in CAPS.
12015 \end_layout
12016
12017 \begin_layout Itemize
12018
12019 \family sans
12020 Speaker
12021 \begin_inset space \hfill{}
12022 \end_inset
12023
12024 M-z s
12025 \begin_inset Newline newline
12026 \end_inset
12027
12028
12029 \family default
12030 The character speaking.
12031 \end_layout
12032
12033 \begin_layout Itemize
12034
12035 \family sans
12036 Parenthetical
12037 \begin_inset space \hfill{}
12038 \end_inset
12039
12040 M-z p
12041 \begin_inset Newline newline
12042 \end_inset
12043
12044
12045 \family default
12046 Instructions to the speaker.
12047  The () are automatically inserted.
12048 \end_layout
12049
12050 \begin_layout Itemize
12051
12052 \family sans
12053 Dialogue
12054 \begin_inset space \hfill{}
12055 \end_inset
12056
12057 M-z d
12058 \begin_inset Newline newline
12059 \end_inset
12060
12061
12062 \family default
12063 What the 
12064 \family sans
12065 Speaker
12066 \family default
12067  says.
12068 \end_layout
12069
12070 \begin_layout Itemize
12071
12072 \family sans
12073 Transition
12074 \begin_inset space \hfill{}
12075 \end_inset
12076
12077 M-z t
12078 \begin_inset Newline newline
12079 \end_inset
12080
12081
12082 \family default
12083 Camera movement instruction.
12084  e.
12085 \begin_inset space \thinspace{}
12086 \end_inset
12087
12088 g.
12089 \begin_inset space \space{}
12090 \end_inset
12091
12092 CUT TO:
12093 \end_layout
12094
12095 \begin_layout Itemize
12096
12097 \family sans
12098 FADE OUT:
12099 \begin_inset space \hfill{}
12100 \end_inset
12101
12102 M-z S-I
12103 \end_layout
12104
12105 \begin_layout Itemize
12106
12107 \family sans
12108 Author
12109 \begin_inset space \hfill{}
12110 \end_inset
12111
12112 M-z S-A
12113 \end_layout
12114
12115 \begin_layout Itemize
12116
12117 \family sans
12118 Title
12119 \begin_inset space \hfill{}
12120 \end_inset
12121
12122 M-z S-T
12123 \end_layout
12124
12125 \begin_layout Itemize
12126
12127 \family sans
12128 Right_Address
12129 \begin_inset space \hfill{}
12130 \end_inset
12131
12132 M-z r
12133 \end_layout
12134
12135 \begin_layout Subsubsection
12136 Script jargon
12137 \end_layout
12138
12139 \begin_layout Itemize
12140 (O.S) — off screen
12141 \end_layout
12142
12143 \begin_layout Itemize
12144 (V.0) — voice over
12145 \end_layout
12146
12147 \begin_layout Itemize
12148 b.
12149 \begin_inset space \thinspace{}
12150 \end_inset
12151
12152 g.
12153  — background
12154 \end_layout
12155
12156 \begin_layout Itemize
12157 C.U.
12158  — close-up
12159 \end_layout
12160
12161 \begin_layout Itemize
12162 PAN — camera movement
12163 \end_layout
12164
12165 \begin_layout Itemize
12166 INSERT — cut to close-up of
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
18344 \change_deleted 564990737 1671097409
18345 Special Document Classes
18346 \change_unchanged
18347
18348 \end_layout
18349
18350 \begin_layout Section
18351
18352 \change_deleted 564990737 1669742044
18353 A&A Paper
18354 \end_layout
18355
18356 \begin_layout Standard
18357
18358 \change_deleted 564990737 1669742044
18359 by 
18360 \noun on
18361 Peter Sütterlin
18362 \end_layout
18363
18364 \begin_layout Subsection
18365
18366 \change_deleted 564990737 1669742044
18367 Introduction
18368 \end_layout
18369
18370 \begin_layout Standard
18371
18372 \change_deleted 564990737 1669742044
18373 This section describes how \SpecialChar LyX
18374  can be used to write articles for submission
18375  to the scientific journal 
18376 \emph on
18377 Astronomy and Astrophysics
18378 \emph default
18379  (
18380 \begin_inset Flex URL
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384
18385 https://www.aanda.org/
18386 \end_layout
18387
18388 \end_inset
18389
18390 ) using Version 5.01 of the document class 
18391 \family typewriter
18392 aa.cls
18393 \family default
18394 .
18395  This package can be downloaded from the ftp site
18396 \end_layout
18397
18398 \begin_layout Standard
18399
18400 \change_deleted 564990737 1669742044
18401 \begin_inset VSpace medskip
18402 \end_inset
18403
18404
18405 \end_layout
18406
18407 \begin_layout Standard
18408 \align center
18409
18410 \change_deleted 564990737 1669742044
18411 \begin_inset Flex URL
18412 status collapsed
18413
18414 \begin_layout Plain Layout
18415
18416 ftp://ftp.edpsciences.org/pub/aa/readme.html
18417 \end_layout
18418
18419 \end_inset
18420
18421
18422 \end_layout
18423
18424 \begin_layout Standard
18425
18426 \change_deleted 564990737 1669742044
18427 \begin_inset VSpace medskip
18428 \end_inset
18429
18430
18431 \end_layout
18432
18433 \begin_layout Standard
18434
18435 \change_deleted 564990737 1669742044
18436 A manual comes together with that package, and this text is not meant to
18437  replace the original manual but is merely a short guide in how to realize
18438  the correct form of your paper.
18439  
18440 \end_layout
18441
18442 \begin_layout Standard
18443
18444 \change_deleted 564990737 1669742044
18445 Please note that the publisher of the journal was changed from Springer
18446  to EDP Sciences starting January 1, 2001.
18447  That change involved also some slight changes to the style files, namely
18448  the removal of the thesaurus command.
18449  The \SpecialChar LyX
18450  class aa supports the newest version of these style files, V 5.01.
18451  If you have an older version installed, please upgrade.
18452  For compatibility, the old (version 4) layout has been kept as 
18453 \family sans
18454 article (A&A V4)
18455 \family default
18456 .
18457  Please refer to the comments in 
18458 \family typewriter
18459 \SpecialChar LyX
18460 Dir/layouts/aapaper.layout
18461 \family default
18462 .
18463 \end_layout
18464
18465 \begin_layout Subsection
18466
18467 \change_deleted 564990737 1669742044
18468 Getting started
18469 \end_layout
18470
18471 \begin_layout Standard
18472
18473 \change_deleted 564990737 1669742044
18474 It is recommended you start from the example template distributed with \SpecialChar LyX
18475 .
18476  If you are not using a template, note the following settings:
18477 \end_layout
18478
18479 \begin_layout Itemize
18480
18481 \change_deleted 564990737 1669742044
18482 Select 
18483 \family sans
18484 article (A&A)
18485 \family default
18486  in the 
18487 \family sans
18488 Document\SpecialChar menuseparator
18489 Settings
18490 \family default
18491  dialog (OK, that one was obvious).
18492 \end_layout
18493
18494 \begin_layout Itemize
18495
18496 \change_deleted 564990737 1669742044
18497 Don't change the option 
18498 \family sans
18499 Page
18500 \begin_inset space ~
18501 \end_inset
18502
18503 style
18504 \family default
18505 : Leave it set to 
18506 \family sans
18507 default
18508 \family default
18509 .
18510  The whole layout is done by the macros, you shouldn't change anything.
18511 \end_layout
18512
18513 \begin_layout Subsection
18514
18515 \change_deleted 564990737 1669742044
18516 The header block
18517 \end_layout
18518
18519 \begin_layout Standard
18520
18521 \change_deleted 564990737 1669742044
18522 First thing to enter is the header information.
18523  It consists of seven entries, of which some are optional.
18524  They are
18525 \end_layout
18526
18527 \begin_layout Itemize
18528
18529 \change_deleted 564990737 1669742044
18530
18531 \family sans
18532 Title
18533 \family default
18534 : [required] 
18535 \end_layout
18536
18537 \begin_layout Itemize
18538
18539 \change_deleted 564990737 1669742044
18540
18541 \family sans
18542 Subtitle
18543 \family default
18544 : [optional] 
18545 \end_layout
18546
18547 \begin_layout Itemize
18548
18549 \change_deleted 564990737 1669742044
18550
18551 \family sans
18552 Author
18553 \family default
18554 : [required]
18555 \end_layout
18556
18557 \begin_layout Itemize
18558
18559 \change_deleted 564990737 1669742044
18560
18561 \family sans
18562 Address
18563 \family default
18564 : [required]
18565 \end_layout
18566
18567 \begin_layout Itemize
18568
18569 \change_deleted 564990737 1669742044
18570
18571 \family sans
18572 Offprints
18573 \family default
18574 : [optional] if more than one author: whom to contact for offprint requests.
18575 \end_layout
18576
18577 \begin_layout Itemize
18578
18579 \change_deleted 564990737 1669742044
18580
18581 \family sans
18582 Mail
18583 \family default
18584 : [optional] mail address for contacts.
18585 \end_layout
18586
18587 \begin_layout Itemize
18588
18589 \change_deleted 564990737 1669742044
18590
18591 \family sans
18592 Date
18593 \family default
18594 : [required].
18595  Suggested format is 
18596 \family typewriter
18597 Received: <date>; Accepted <date> 
18598 \end_layout
18599
18600 \begin_layout Standard
18601
18602 \change_deleted 564990737 1669742044
18603 There is no need to issue the 
18604 \family typewriter
18605
18606 \backslash
18607 maketitle
18608 \family default
18609  command, this is done automatically by \SpecialChar LyX
18610  when the header is finished.
18611  Although the order of the single header entries doesn't matter it is advised
18612  to keep the above sequence, just to get the best optics and meets the layout
18613  of the real document.
18614 \end_layout
18615
18616 \begin_layout Standard
18617
18618 \change_deleted 564990737 1669742044
18619 If you want to place footnotes in the header block, e.
18620 \begin_inset space \thinspace{}
18621 \end_inset
18622
18623 g.
18624 \begin_inset space \space{}
18625 \end_inset
18626
18627 to state your present address, just use the standard footnote via the menu
18628  
18629 \family sans
18630 Insert\SpecialChar menuseparator
18631 Footnote.
18632
18633 \family default
18634  \SpecialChar LyX
18635  will automagically use the term 
18636 \family typewriter
18637
18638 \backslash
18639 thanks{}
18640 \family default
18641  in that case.
18642 \end_layout
18643
18644 \begin_layout Standard
18645
18646 \change_deleted 564990737 1669742044
18647 Under 
18648 \family sans
18649 Edit\SpecialChar menuseparator
18650 Text Style
18651 \family default
18652 , you'll find two insets which are relevant for the titling:
18653 \end_layout
18654
18655 \begin_layout Itemize
18656
18657 \change_deleted 564990737 1669742044
18658
18659 \family sans
18660 Institute
18661 \family typewriter
18662  
18663 \family default
18664 to mark corresponding author\SpecialChar breakableslash
18665 institute pairs.
18666  The institutes are numbered sequentially as they appear in the 
18667 \family sans
18668 Address
18669 \family default
18670  field, so you have to put a marker to each author.
18671 \end_layout
18672
18673 \begin_layout Itemize
18674
18675 \change_deleted 564990737 1669742044
18676
18677 \family sans
18678 Email
18679 \family default
18680  to supply an email address for fast contact.
18681 \end_layout
18682
18683 \begin_layout Standard
18684
18685 \change_deleted 564990737 1669742044
18686 In addition to these topics, the macros use one additional \SpecialChar LaTeX
18687  command that
18688  has no counterpart in \SpecialChar LyX
18689 :
18690 \end_layout
18691
18692 \begin_layout Itemize
18693
18694 \change_deleted 564990737 1669742044
18695
18696 \family typewriter
18697
18698 \backslash
18699 and
18700 \family default
18701  to separate different names for more than one author and institute, respectivel
18702 y.
18703 \end_layout
18704
18705 \begin_layout Standard
18706
18707 \change_deleted 564990737 1669742044
18708 The appropriate command has to be entered in \SpecialChar LyX
18709  and marked as \SpecialChar LaTeX
18710  code.
18711  See the examples.
18712  
18713 \end_layout
18714
18715 \begin_layout Subsection
18716
18717 \change_deleted 564990737 1669742044
18718 The abstract
18719 \end_layout
18720
18721 \begin_layout Standard
18722
18723 \change_deleted 564990737 1669742044
18724 The abstract should immediately follow the header block.
18725  With version 5 the abstract environment was changed to a command, and there
18726  is now a restriction to only one paragraph.
18727  In addition, it should contain an entry with the keywords.
18728  This is done via the paragraph style 
18729 \family sans
18730 Keywords
18731 \family default
18732 .
18733  Refer to the example paper.
18734 \end_layout
18735
18736 \begin_layout Subsection
18737
18738 \change_deleted 564990737 1669742044
18739 Supported environments
18740 \end_layout
18741
18742 \begin_layout Standard
18743
18744 \change_deleted 564990737 1669742044
18745 The A&A paper layout supports the following environments for structuring
18746  your text:
18747 \end_layout
18748
18749 \begin_layout Itemize
18750
18751 \change_deleted 564990737 1669742044
18752
18753 \family sans
18754 Standard
18755 \end_layout
18756
18757 \begin_layout Itemize
18758
18759 \change_deleted 564990737 1669742044
18760
18761 \family sans
18762 Section
18763 \end_layout
18764
18765 \begin_layout Itemize
18766
18767 \change_deleted 564990737 1669742044
18768
18769 \family sans
18770 Subsection
18771 \end_layout
18772
18773 \begin_layout Itemize
18774
18775 \change_deleted 564990737 1669742044
18776
18777 \family sans
18778 Subsubsection
18779 \end_layout
18780
18781 \begin_layout Itemize
18782
18783 \change_deleted 564990737 1669742044
18784
18785 \family sans
18786 Itemize
18787 \end_layout
18788
18789 \begin_layout Itemize
18790
18791 \change_deleted 564990737 1669742044
18792
18793 \family sans
18794 Enumerate
18795 \end_layout
18796
18797 \begin_layout Itemize
18798
18799 \change_deleted 564990737 1669742044
18800
18801 \family sans
18802 Description
18803 \end_layout
18804
18805 \begin_layout Itemize
18806
18807 \change_deleted 564990737 1669742044
18808
18809 \family sans
18810 Caption
18811 \end_layout
18812
18813 \begin_layout Itemize
18814
18815 \change_deleted 564990737 1669742044
18816
18817 \family sans
18818 Abstract
18819 \end_layout
18820
18821 \begin_layout Itemize
18822
18823 \change_deleted 564990737 1669742044
18824
18825 \family sans
18826 Acknowledgment
18827 \end_layout
18828
18829 \begin_layout Itemize
18830
18831 \change_deleted 564990737 1669742044
18832
18833 \family sans
18834 Bibliography
18835 \end_layout
18836
18837 \begin_layout Itemize
18838
18839 \change_deleted 564990737 1669742044
18840
18841 \family sans
18842 \SpecialChar LaTeX
18843
18844 \end_layout
18845
18846 \begin_layout Subsection
18847
18848 \change_deleted 564990737 1669742044
18849 Commands not supported by \SpecialChar LyX
18850
18851 \end_layout
18852
18853 \begin_layout Standard
18854
18855 \change_deleted 564990737 1669742044
18856 Some commands are not yet supported by the 
18857 \family sans
18858 paper (A&A)
18859 \family default
18860  layout for \SpecialChar LyX
18861 .
18862  Some have already been mentioned.
18863  For the sake of completeness, they are listed all together here:
18864 \end_layout
18865
18866 \begin_layout Itemize
18867
18868 \change_deleted 564990737 1669742044
18869
18870 \family typewriter
18871
18872 \backslash
18873 and
18874 \end_layout
18875
18876 \begin_layout Itemize
18877
18878 \change_deleted 564990737 1669742044
18879
18880 \family typewriter
18881
18882 \backslash
18883 authorrunning
18884 \end_layout
18885
18886 \begin_layout Itemize
18887
18888 \change_deleted 564990737 1669742044
18889
18890 \family typewriter
18891
18892 \backslash
18893 object{}
18894 \end_layout
18895
18896 \begin_layout Itemize
18897
18898 \change_deleted 564990737 1669742044
18899
18900 \family typewriter
18901
18902 \backslash
18903 titlerunning{}
18904 \end_layout
18905
18906 \begin_layout Standard
18907
18908 \change_deleted 564990737 1669742044
18909 If you want to use any of these commands, you have to enter them yourself.
18910  
18911 \series bold
18912 Do not forget to mark them as \SpecialChar LaTeX
18913  code!
18914 \end_layout
18915
18916 \begin_layout Subsection
18917
18918 \change_deleted 564990737 1669742044
18919 Figure and Table Floats
18920 \end_layout
18921
18922 \begin_layout Standard
18923
18924 \change_deleted 564990737 1669742044
18925 \SpecialChar LyX
18926  provides support for the necessary float environments 
18927 \family sans
18928 figure, figure*, table
18929 \family default
18930  and 
18931 \family sans
18932 table*
18933 \family default
18934 , therefore we won't tell much about it here.
18935  Refer to the 
18936 \emph on
18937 User's
18938 \begin_inset space ~
18939 \end_inset
18940
18941 Guide
18942 \emph default
18943 .
18944  Just remember that tables should be left-aligned.
18945  For that, select the table and change the alignment in 
18946 \family sans
18947 Edit\SpecialChar menuseparator
18948 Paragraph
18949 \begin_inset space ~
18950 \end_inset
18951
18952 Settings.
18953 \end_layout
18954
18955 \begin_layout Standard
18956
18957 \change_deleted 564990737 1669742044
18958 There is only one special thing: the figures with caption besides the figure.
18959  To create such a figure, you have to do the following:
18960 \end_layout
18961
18962 \begin_layout Enumerate
18963
18964 \change_deleted 564990737 1669742044
18965 Create a wide figure float: 
18966 \family sans
18967 Insert\SpecialChar menuseparator
18968 Float\SpecialChar menuseparator
18969 Figure
18970 \family default
18971 , then right click in the figure and select 
18972 \family sans
18973 Span
18974 \begin_inset space ~
18975 \end_inset
18976
18977 columns
18978 \family default
18979 .
18980 \end_layout
18981
18982 \begin_layout Enumerate
18983
18984 \change_deleted 564990737 1669742044
18985 Enter your caption text.
18986 \end_layout
18987
18988 \begin_layout Enumerate
18989
18990 \change_deleted 564990737 1669742044
18991 Press 
18992 \family sans
18993 Return
18994 \family default
18995  to move the cursor above the caption.
18996 \end_layout
18997
18998 \begin_layout Enumerate
18999
19000 \change_deleted 564990737 1669742044
19001 Insert your figure
19002 \end_layout
19003
19004 \begin_layout Enumerate
19005
19006 \change_deleted 564990737 1669742044
19007 Position the cursor behind the figure and insert a horizontal fill: 
19008 \family sans
19009 Insert\SpecialChar menuseparator
19010 Special
19011 \begin_inset space ~
19012 \end_inset
19013
19014 Character\SpecialChar menuseparator
19015 Horizontal
19016 \begin_inset space ~
19017 \end_inset
19018
19019 Fill
19020 \family default
19021 .
19022 \end_layout
19023
19024 \begin_layout Enumerate
19025
19026 \change_deleted 564990737 1669742044
19027 Switch to \SpecialChar LaTeX
19028  mode: 
19029 \family sans
19030 M-c
19031 \begin_inset space ~
19032 \end_inset
19033
19034 t
19035 \family default
19036 .
19037 \end_layout
19038
19039 \begin_layout Enumerate
19040
19041 \change_deleted 564990737 1669742044
19042 Enter 
19043 \family typewriter
19044
19045 \backslash
19046 parbox[b]{55mm}{
19047 \family default
19048 .
19049  
19050 \series bold
19051 Do not close the brace!
19052 \end_layout
19053
19054 \begin_layout Enumerate
19055
19056 \change_deleted 564990737 1669742044
19057 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
19058  mode and insert
19059  the closing brace: 
19060 \family sans
19061 M-c
19062 \begin_inset space ~
19063 \end_inset
19064
19065 t
19066 \family default
19067  
19068 \family typewriter
19069 }
19070 \family default
19071 .
19072 \end_layout
19073
19074 \begin_layout Standard
19075
19076 \change_deleted 564990737 1669742044
19077 Also, refer to the figures in the example paper.
19078 \end_layout
19079
19080 \begin_layout Subsection
19081
19082 \change_deleted 564990737 1669742044
19083 Referee layout
19084 \end_layout
19085
19086 \begin_layout Standard
19087
19088 \change_deleted 564990737 1669742044
19089 For submission, the paper has to be formated in a special double-spacing
19090  layout.
19091  For this purpose, you have to give the option 
19092 \family typewriter
19093 referee
19094 \family default
19095  to the document class.
19096  This must be done using the custom class options field in the 
19097 \family sans
19098 Document\SpecialChar menuseparator
19099 Settings
19100 \family default
19101  dialog.
19102  Just enter the string 
19103 \family typewriter
19104 referee
19105 \family default
19106  there.
19107 \end_layout
19108
19109 \begin_layout Subsection
19110
19111 \change_deleted 564990737 1669742044
19112 The example paper
19113 \end_layout
19114
19115 \begin_layout Standard
19116
19117 \change_deleted 564990737 1669742044
19118 The 
19119 \family sans
19120 Examples
19121 \family default
19122  directory contains an example paper written with \SpecialChar LyX
19123 .
19124  It is the example paper from the original macro package, translated to
19125  \SpecialChar LyX
19126 .
19127  Use it for inspiration, and compare the original \SpecialChar LaTeX
19128  code with \SpecialChar LyX
19129  way of writing.
19130 \end_layout
19131
19132 \begin_layout Section
19133
19134 \change_deleted 564990737 1671097429
19135 Dinbrief
19136 \end_layout
19137
19138 \begin_layout Standard
19139
19140 \change_deleted 564990737 1671097429
19141 The document class 
19142 \family sans
19143 dinbrief
19144 \family default
19145  can be used to type letters according to German conventions.
19146  A template file is included in 
19147 \family typewriter
19148 .../lyx/share/templates
19149 \family default
19150  for you to use as a starting point.
19151 \end_layout
19152
19153 \begin_layout Section
19154
19155 \change_deleted 564990737 1671097429
19156 Elsevier Journals
19157 \end_layout
19158
19159 \begin_layout Standard
19160
19161 \change_deleted 564990737 1671097429
19162 See the \SpecialChar LyX
19163  template file 
19164 \family typewriter
19165 elsarticle.lyx
19166 \family default
19167 .
19168  It contains all infos you need.
19169 \end_layout
19170
19171 \begin_layout Section
19172
19173 \change_deleted 564990737 1669755802
19174 ijmpc and ijmpd
19175 \end_layout
19176
19177 \begin_layout Standard
19178
19179 \change_deleted 564990737 1669755802
19180 by 
19181 \noun on
19182 Panayotis Papasotiriou
19183 \end_layout
19184
19185 \begin_layout Subsection
19186
19187 \change_deleted 564990737 1669755802
19188 Overview
19189 \end_layout
19190
19191 \begin_layout Standard
19192
19193 \change_deleted 564990737 1669755802
19194 The ijmpc package is a set of macros that facilitates electronic manuscript
19195  submission to the 
19196 \emph on
19197 International Journal of Modern Physics C
19198 \emph default
19199 .
19200  Similarly, the ijmpd package is for creating manuscripts to be submitted
19201  to the 
19202 \emph on
19203 International Journal of Modern Physics D
19204 \emph default
19205 .
19206  Both journals are published by World Scientific.
19207  The corresponding document classes are named 
19208 \family typewriter
19209 ws-ijmpc.cls
19210 \family default
19211  and 
19212 \family typewriter
19213 ws-ijmpd.cls
19214 \family default
19215 , respectively.
19216  These files, together with instructions for the authors, can be downloaded
19217  from the sites 
19218 \begin_inset Flex URL
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222
19223 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
19224 \end_layout
19225
19226 \end_inset
19227
19228  and 
19229 \begin_inset Flex URL
19230 status collapsed
19231
19232 \begin_layout Plain Layout
19233
19234 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
19235 \end_layout
19236
19237 \end_inset
19238
19239 .
19240  Both packages are modified versions of the standard 
19241 \begin_inset Quotes eld
19242 \end_inset
19243
19244 article
19245 \begin_inset Quotes erd
19246 \end_inset
19247
19248  package, and they are almost (but not exactly) identical.
19249  Most of their features are supported by \SpecialChar LyX
19250 .
19251  I have used \SpecialChar LyX
19252  successfully to write articles submitted to both journals
19253  without any problem.
19254 \end_layout
19255
19256 \begin_layout Subsection
19257
19258 \change_deleted 564990737 1669755802
19259 Writing a paper
19260 \end_layout
19261
19262 \begin_layout Standard
19263
19264 \change_deleted 564990737 1669755802
19265 As usual, the easiest way to write a paper is to start with a template.
19266  Click on 
19267 \family sans
19268 File\SpecialChar menuseparator
19269 New from
19270 \family default
19271  
19272 \family sans
19273 Template
19274 \family default
19275 , then choose the 
19276 \family typewriter
19277 ijmpc.lyx
19278 \family default
19279  or 
19280 \family typewriter
19281 ijmpd.lyx
19282 \family default
19283  template.
19284  This will give an (almost) empty document that includes the most common
19285  fields found in a manuscript.
19286  Simply overwrite the existing text (including the brackets, 
19287 \family typewriter
19288 <>
19289 \family default
19290 ) with your text.
19291  You should keep in mind the following remarks.
19292 \end_layout
19293
19294 \begin_layout Enumerate
19295
19296 \change_deleted 564990737 1669755802
19297 \SpecialChar LyX
19298  won't let you change the font size and the page style of the document,
19299  because such modifications are not allowed by both packages.
19300 \end_layout
19301
19302 \begin_layout Enumerate
19303
19304 \change_deleted 564990737 1669755802
19305 The language of the document should not be changed.
19306  Before previewing your paper, be sure that the babel package is not used.
19307  To do this, click on 
19308 \begin_inset Info
19309 type  "menu"
19310 arg   "dialog-show document"
19311 \end_inset
19312
19313  
19314 \family sans
19315 \SpecialChar menuseparator
19316 Language
19317 \family default
19318 , and select 
19319 \begin_inset Quotes eld
19320 \end_inset
19321
19322 None
19323 \begin_inset Quotes erd
19324 \end_inset
19325
19326  as 
19327 \family sans
19328 Language Package
19329 \family default
19330 .
19331 \end_layout
19332
19333 \begin_layout Enumerate
19334
19335 \change_deleted 564990737 1669755802
19336 The 
19337 \begin_inset Quotes eld
19338 \end_inset
19339
19340 Keywords
19341 \begin_inset Quotes erd
19342 \end_inset
19343
19344  style must be used to define keywords.
19345 \end_layout
19346
19347 \begin_layout Enumerate
19348
19349 \change_deleted 564990737 1669755802
19350 The ijmpc package provides a style named 
19351 \begin_inset Quotes eld
19352 \end_inset
19353
19354 Classification Codes
19355 \begin_inset Quotes erd
19356 \end_inset
19357
19358 , which can be used to define classification codes, such as PACS numbers.
19359  Note that this facility is not supported by the ijmpd package.
19360 \end_layout
19361
19362 \begin_layout Enumerate
19363
19364 \change_deleted 564990737 1669755802
19365 Several new environments are available: 
19366 \begin_inset Quotes eld
19367 \end_inset
19368
19369 Definition
19370 \begin_inset Quotes erd
19371 \end_inset
19372
19373
19374 \begin_inset Quotes eld
19375 \end_inset
19376
19377 Step
19378 \begin_inset Quotes erd
19379 \end_inset
19380
19381
19382 \begin_inset Quotes eld
19383 \end_inset
19384
19385 Example
19386 \begin_inset Quotes erd
19387 \end_inset
19388
19389
19390 \begin_inset Quotes eld
19391 \end_inset
19392
19393 Remark
19394 \begin_inset Quotes erd
19395 \end_inset
19396
19397
19398 \begin_inset Quotes eld
19399 \end_inset
19400
19401 Notation
19402 \begin_inset Quotes erd
19403 \end_inset
19404
19405
19406 \begin_inset Quotes eld
19407 \end_inset
19408
19409 Theorem
19410 \begin_inset Quotes erd
19411 \end_inset
19412
19413
19414 \begin_inset Quotes eld
19415 \end_inset
19416
19417 Proof
19418 \begin_inset Quotes erd
19419 \end_inset
19420
19421
19422 \begin_inset Quotes eld
19423 \end_inset
19424
19425 Corollary
19426 \begin_inset Quotes erd
19427 \end_inset
19428
19429
19430 \begin_inset Quotes eld
19431 \end_inset
19432
19433 Lemma
19434 \begin_inset Quotes erd
19435 \end_inset
19436
19437
19438 \begin_inset Quotes eld
19439 \end_inset
19440
19441 Proposition
19442 \begin_inset Quotes erd
19443 \end_inset
19444
19445
19446 \begin_inset Quotes eld
19447 \end_inset
19448
19449 Prop
19450 \begin_inset Quotes erd
19451 \end_inset
19452
19453
19454 \begin_inset Quotes eld
19455 \end_inset
19456
19457 Question
19458 \begin_inset Quotes erd
19459 \end_inset
19460
19461
19462 \begin_inset Quotes eld
19463 \end_inset
19464
19465 Claim
19466 \begin_inset Quotes erd
19467 \end_inset
19468
19469 , and 
19470 \begin_inset Quotes eld
19471 \end_inset
19472
19473 Conjecture
19474 \begin_inset Quotes erd
19475 \end_inset
19476
19477 .
19478  Their use is more or less obvious.
19479  \SpecialChar LyX
19480  supports all these environments; it will use the proper label, text style,
19481  and numbering scheme for each of them.
19482 \end_layout
19483
19484 \begin_layout Enumerate
19485
19486 \change_deleted 564990737 1669755802
19487 Both packages use basic citations; the natbib package should not be used.
19488  In \SpecialChar LyX
19489 , citation references are shown as usual; in the output, citations are
19490  shown as superscripts.
19491  If you want to use a citation as normal text, you should use the 
19492 \family typewriter
19493 refcite
19494 \family default
19495  command, e.
19496 \begin_inset space \thinspace{}
19497 \end_inset
19498
19499 g.
19500 \begin_inset space \space{}
19501 \end_inset
19502
19503
19504 \begin_inset Quotes eld
19505 \end_inset
19506
19507 See Ref.
19508 \begin_inset space \space{}
19509 \end_inset
19510
19511
19512 \family typewriter
19513
19514 \backslash
19515 refcite{key}
19516 \family default
19517
19518 \begin_inset Quotes erd
19519 \end_inset
19520
19521 .
19522 \end_layout
19523
19524 \begin_layout Enumerate
19525
19526 \change_deleted 564990737 1669755802
19527 There is no 
19528 \begin_inset Quotes eld
19529 \end_inset
19530
19531 Acknowledgments
19532 \begin_inset Quotes erd
19533 \end_inset
19534
19535  section in both packages.
19536  To put acknowledgments, just use the 
19537 \begin_inset Quotes eld
19538 \end_inset
19539
19540 Section*
19541 \begin_inset Quotes erd
19542 \end_inset
19543
19544  environment.
19545 \end_layout
19546
19547 \begin_layout Enumerate
19548
19549 \change_deleted 564990737 1669755802
19550 Appendices may be added to the paper, 
19551 \emph on
19552 after
19553 \emph default
19554  the Acknowledgments and 
19555 \shape italic
19556 before
19557 \shape default
19558  the References.
19559  \SpecialChar LyX
19560  provides a special environment, called 
19561 \begin_inset Quotes eld
19562 \end_inset
19563
19564 Appendices Section
19565 \begin_inset Quotes erd
19566 \end_inset
19567
19568  which marks the beginning of the appendices.
19569  This environment should be left blank; it just sends a \SpecialChar LaTeX
19570  command, but nothing
19571  is really printed.
19572  In \SpecialChar LyX
19573 , the word 
19574 \begin_inset Quotes eld
19575 \end_inset
19576
19577 Appendix
19578 \begin_inset Quotes erd
19579 \end_inset
19580
19581  is printed with blue letters, as a signal that all sections after that
19582  point are appendices.
19583  To write an appendix, use the 
19584 \begin_inset Quotes eld
19585 \end_inset
19586
19587 Appendix
19588 \begin_inset Quotes erd
19589 \end_inset
19590
19591  environment.
19592  \SpecialChar LyX
19593  will number each appendix with capital letters, as required by both journals.
19594  Note that 
19595 \begin_inset Quotes eld
19596 \end_inset
19597
19598 Appendices Section
19599 \begin_inset Quotes erd
19600 \end_inset
19601
19602  
19603 \emph on
19604 must
19605 \emph default
19606  be present before the first appendix; if not, all appendices will be numbered
19607  as normal sections in the output.
19608 \end_layout
19609
19610 \begin_layout Enumerate
19611
19612 \change_deleted 564990737 1669755802
19613 The ijmpc and the ijmpd packages use the 
19614 \family typewriter
19615 tbl
19616 \family default
19617  command to implement table captions.
19618  As a result, a table created by \SpecialChar LyX
19619  is printed correctly, but its caption
19620  is ignored.
19621  However, you can use some \SpecialChar TeX
19622  code to overcome this problem, so that captions
19623  are printed as expected.
19624  To do so, create a float table as usual, remove the caption, and replace
19625  it with the \SpecialChar TeX
19626  code 
19627 \family typewriter
19628
19629 \backslash
19630 tbl{
19631 \emph on
19632 your table caption
19633 \emph default
19634 }{
19635 \family default
19636  (sic); you must also the \SpecialChar TeX
19637  code 
19638 \family typewriter
19639 }
19640 \family default
19641  immediately after the tabular material.
19642  Study the example table included in the template files to see how this
19643  trick is implemented.
19644  Alternatively, If you need table captions, you should implement the whole
19645  table float in a 
19646 \family typewriter
19647 .tex
19648 \family default
19649  file, then include this file to the \SpecialChar LyX
19650  document (
19651 \family sans
19652 Insert\SpecialChar menuseparator
19653 File\SpecialChar menuseparator
19654 Child
19655 \begin_inset space ~
19656 \end_inset
19657
19658 Document
19659 \family default
19660 ).
19661  Details on how to create a table float can be found in the files 
19662 \family typewriter
19663 ws-ijmpc.tex
19664 \family default
19665  and 
19666 \family typewriter
19667 ws-ijmpd.tex
19668 \family default
19669 , included in the corresponding packages.
19670 \end_layout
19671
19672 \begin_layout Subsection
19673
19674 \change_deleted 564990737 1669755802
19675 Preparing a paper for submission
19676 \end_layout
19677
19678 \begin_layout Standard
19679
19680 \change_deleted 564990737 1669755802
19681 Before you submit your paper you must export the \SpecialChar LyX
19682  document as a \SpecialChar LaTeX
19683  file (
19684 \family sans
19685 File\SpecialChar menuseparator
19686 Export\SpecialChar menuseparator
19687 \SpecialChar LaTeX
19688
19689 \family default
19690 )
19691 \begin_inset Foot
19692 status open
19693
19694 \begin_layout Plain Layout
19695 Actually you have the choice between \SpecialChar LaTeX
19696  (plain) and pdflatex.
19697  If you intend to use pdflatex to prepare the paper, you should use the
19698  pdflatex option so that included graphics are converted to PDF format,
19699  ready for use by pdflatex.
19700 \end_layout
19701
19702 \end_inset
19703
19704 , then make the following changes to the resulting 
19705 \family typewriter
19706 .tex
19707 \family default
19708  file.
19709 \end_layout
19710
19711 \begin_layout Enumerate
19712
19713 \change_deleted 564990737 1669755802
19714 Remove the comment lines before the 
19715 \family typewriter
19716
19717 \backslash
19718 documentclass
19719 \family default
19720  command.
19721 \end_layout
19722
19723 \begin_layout Enumerate
19724
19725 \change_deleted 564990737 1669755802
19726 Remove everything between (and including) the 
19727 \family typewriter
19728
19729 \backslash
19730 makeatletter
19731 \family default
19732  and 
19733 \family typewriter
19734
19735 \backslash
19736 makeatother
19737 \family default
19738  commands, except for any commands you specifically put into the \SpecialChar LaTeX
19739  preamble.
19740 \end_layout
19741
19742 \begin_layout Standard
19743
19744 \change_deleted 564990737 1669755802
19745 The modified 
19746 \family typewriter
19747 .tex
19748 \family default
19749  file should be saved and processed through \SpecialChar LaTeX
19750  as many times as necessary.
19751  You may also want to check the resulting 
19752 \family typewriter
19753 .dvi
19754 \family default
19755  document.
19756 \change_unchanged
19757
19758 \end_layout
19759
19760 \begin_layout Section
19761
19762 \change_deleted 564990737 1669801478
19763 iopart
19764 \end_layout
19765
19766 \begin_layout Standard
19767
19768 \change_deleted 564990737 1669801478
19769 by 
19770 \noun on
19771 Uwe Stöhr
19772 \end_layout
19773
19774 \begin_layout Subsection
19775
19776 \change_deleted 564990737 1669801478
19777 Overview
19778 \end_layout
19779
19780 \begin_layout Standard
19781
19782 \change_deleted 564990737 1669801478
19783 The iopart package provides a document class to create electronic manuscript
19784  submission to the journals published by the Institute of Physics.
19785  Instructions for the authors how to create a paper using the iopart class
19786  can be downloaded together with the iopart package from the site 
19787 \begin_inset Flex URL
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791
19792 ftp://ftp.iop.org/pub/journals/latex2e
19793 \end_layout
19794
19795 \end_inset
19796
19797 .
19798 \end_layout
19799
19800 \begin_layout Subsection
19801
19802 \change_deleted 564990737 1669801478
19803 Writing a paper
19804 \end_layout
19805
19806 \begin_layout Standard
19807
19808 \change_deleted 564990737 1669801478
19809 The easiest way to write a paper is to start with the template 
19810 \emph on
19811 IOP-article.lyx
19812 \emph default
19813  that is available via 
19814 \family sans
19815 File\SpecialChar menuseparator
19816 New From Template
19817 \family default
19818  The template explains how to use the special text environments.
19819  Here are the most important advices:
19820 \end_layout
19821
19822 \begin_layout Itemize
19823
19824 \change_deleted 564990737 1669801478
19825 To be able to compile your document to a PDF, PS, or DVI, ensure that the
19826  no AMS packages are loaded in 
19827 \family sans
19828 Document\SpecialChar menuseparator
19829 Settings\SpecialChar menuseparator
19830 Math Options
19831 \family default
19832 !
19833 \end_layout
19834
19835 \begin_layout Itemize
19836
19837 \change_deleted 564990737 1669801478
19838
19839 \size normal
19840 The title environment defines the kind of your paper.
19841  So use one of the following environments for the title:
19842 \end_layout
19843
19844 \begin_deeper
19845 \begin_layout Itemize
19846
19847 \change_deleted 564990737 1669801478
19848
19849 \family sans
19850 \size normal
19851 Title
19852 \family default
19853  for a Paper
19854 \end_layout
19855
19856 \begin_layout Itemize
19857
19858 \change_deleted 564990737 1669801478
19859
19860 \family sans
19861 \size normal
19862 Review
19863 \family default
19864  for a Review
19865 \end_layout
19866
19867 \begin_layout Itemize
19868
19869 \change_deleted 564990737 1669801478
19870
19871 \family sans
19872 \size normal
19873 Topical
19874 \family default
19875  for a Topical review
19876 \end_layout
19877
19878 \begin_layout Itemize
19879
19880 \change_deleted 564990737 1669801478
19881
19882 \family sans
19883 \size normal
19884 Comment
19885 \family default
19886  for a Comment
19887 \end_layout
19888
19889 \begin_layout Itemize
19890
19891 \change_deleted 564990737 1669801478
19892
19893 \family sans
19894 \size normal
19895 Note
19896 \family default
19897  for a Note
19898 \end_layout
19899
19900 \begin_layout Itemize
19901
19902 \change_deleted 564990737 1669801478
19903
19904 \family sans
19905 \size normal
19906 Paper
19907 \family default
19908  for a Paper (same as Title)
19909 \end_layout
19910
19911 \begin_layout Itemize
19912
19913 \change_deleted 564990737 1669801478
19914
19915 \family sans
19916 \size normal
19917 Prelim
19918 \family default
19919  for a Preliminary communication
19920 \end_layout
19921
19922 \begin_layout Itemize
19923
19924 \change_deleted 564990737 1669801478
19925
19926 \family sans
19927 \size normal
19928 Rapid
19929 \family default
19930  for a Rapid communication
19931 \end_layout
19932
19933 \begin_layout Itemize
19934
19935 \change_deleted 564990737 1669801478
19936
19937 \family sans
19938 \size normal
19939 Letter
19940 \family default
19941  for a Letter to the editor
19942 \end_layout
19943
19944 \end_deeper
19945 \begin_layout Itemize
19946
19947 \change_deleted 564990737 1669801478
19948
19949 \size normal
19950 All title environments except of 
19951 \family sans
19952 Letter
19953 \family default
19954  can have an optional short title.
19955 \end_layout
19956
19957 \begin_layout Itemize
19958
19959 \change_deleted 564990737 1669801478
19960 There is a general title environment 
19961 \family sans
19962 Article
19963 \family default
19964  which is not directly supported by \SpecialChar LyX
19965 .
19966  This can be used as \SpecialChar TeX
19967  code when your document doesn't fit into one of the
19968  other title types.
19969 \end_layout
19970
19971 \begin_layout Standard
19972
19973 \change_deleted 564990737 1669801478
19974 For more informations like hints for special table and formula formatting,
19975  look at the IOP author guidelines.
19976 \change_unchanged
19977
19978 \end_layout
19979
19980 \begin_layout Section
19981
19982 \change_deleted 564990737 1670317155
19983 Kluwer
19984 \end_layout
19985
19986 \begin_layout Standard
19987
19988 \change_deleted 564990737 1670317155
19989 by 
19990 \noun on
19991 Panayotis Papasotiriou
19992 \end_layout
19993
19994 \begin_layout Subsection
19995
19996 \change_deleted 564990737 1670317155
19997 Overview
19998 \end_layout
19999
20000 \begin_layout Standard
20001
20002 \change_deleted 564990737 1670317155
20003 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
20004  that facilitates electronic manuscript submission to the journals they
20005  publish.
20006  Most known of them (at least in my domain of interest) are 
20007 \emph on
20008 Astrophysics and Space Science
20009 \emph default
20010  and 
20011 \emph on
20012 Solar Physics
20013 \emph default
20014 , but there are many others (see a complete list at 
20015 \begin_inset Flex URL
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019
20020 http://www.wkap.nl/jrnllist.htm/JRNLHOME
20021 \end_layout
20022
20023 \end_inset
20024
20025 ).
20026  The Kluwer package may be downloaded from the site 
20027 \begin_inset Flex URL
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031
20032 http://www.wkap.nl/kaphtml.htm/STYLEFILES
20033 \end_layout
20034
20035 \end_inset
20036
20037 .
20038  A complete user guide is contained in that package (but it can also be
20039  downloaded separately).
20040 \end_layout
20041
20042 \begin_layout Standard
20043
20044 \change_deleted 564990737 1670317155
20045 \SpecialChar LyX
20046  supports many features of the package but not everything.
20047  However, the \SpecialChar TeX
20048  code needed is reduced to some 
20049 \begin_inset Quotes eld
20050 \end_inset
20051
20052 peculiar
20053 \begin_inset Quotes erd
20054 \end_inset
20055
20056  commands of the package (see
20057 \begin_inset space ~
20058 \end_inset
20059
20060
20061 \begin_inset CommandInset ref
20062 LatexCommand ref
20063 reference "subsec:kluwer_peculiarities"
20064
20065 \end_inset
20066
20067 ).
20068  I have recently used \SpecialChar LyX
20069  to write an article submitted to the 
20070 \emph on
20071 Astrophysics and Space Science
20072 \emph default
20073  without any problem.
20074 \end_layout
20075
20076 \begin_layout Subsection
20077
20078 \change_deleted 564990737 1670317155
20079 Writing a paper
20080 \end_layout
20081
20082 \begin_layout Standard
20083
20084 \change_deleted 564990737 1670317155
20085 The easiest way to write a paper is to start with the Kluwer template file.
20086  Click on 
20087 \family sans
20088 File\SpecialChar menuseparator
20089 New from
20090 \family default
20091  
20092 \family sans
20093 Template
20094 \family default
20095 , then choose the 
20096 \family typewriter
20097 kluwer.lyx
20098 \family default
20099  template.
20100  This will give an (almost) empty document that includes the most common
20101  fields found in a manuscript and a short description of their use.
20102  As in most templates, simply overwrite the existing text (including the
20103  brackets, 
20104 \family typewriter
20105 <>
20106 \family default
20107 ) with the correct information.
20108 \end_layout
20109
20110 \begin_layout Subsection
20111
20112 \change_deleted 564990737 1670317155
20113 Preparing a paper for submission
20114 \end_layout
20115
20116 \begin_layout Standard
20117
20118 \change_deleted 564990737 1670317155
20119 As in the AAS\SpecialChar TeX
20120  package, before you submit your paper to a journal you must
20121  
20122 \begin_inset Quotes eld
20123 \end_inset
20124
20125 postprocess
20126 \begin_inset Quotes erd
20127 \end_inset
20128
20129  it as follows.
20130 \end_layout
20131
20132 \begin_layout Enumerate
20133
20134 \change_deleted 564990737 1670317155
20135 Export your paper as a \SpecialChar LaTeX
20136  file.
20137  To do this, click on 
20138 \family sans
20139 File\SpecialChar menuseparator
20140 Export\SpecialChar menuseparator
20141 \SpecialChar LaTeX
20142
20143 \family default
20144 .
20145  
20146 \end_layout
20147
20148 \begin_layout Enumerate
20149
20150 \change_deleted 564990737 1670317155
20151 Edit the resulting 
20152 \family typewriter
20153 .tex
20154 \family default
20155  file with a text editor and make the following changes
20156 \end_layout
20157
20158 \begin_deeper
20159 \begin_layout Enumerate
20160
20161 \change_deleted 564990737 1670317155
20162 remove the comment lines before the 
20163 \family typewriter
20164
20165 \backslash
20166 documentclass
20167 \family default
20168  command,
20169 \end_layout
20170
20171 \begin_layout Enumerate
20172
20173 \change_deleted 564990737 1670317155
20174 remove everything between (and including) the 
20175 \family typewriter
20176
20177 \backslash
20178 makeatletter
20179 \family default
20180  and 
20181 \family typewriter
20182
20183 \backslash
20184 makeatother
20185 \family default
20186  commands, except for any commands you specifically put into the \SpecialChar LaTeX
20187  preamble.
20188 \end_layout
20189
20190 \begin_layout Standard
20191
20192 \change_deleted 564990737 1670317155
20193 Save the resulting 
20194 \family typewriter
20195 .tex
20196 \family default
20197  file.
20198 \end_layout
20199
20200 \end_deeper
20201 \begin_layout Enumerate
20202
20203 \change_deleted 564990737 1670317155
20204 Run the 
20205 \family typewriter
20206 .tex
20207 \family default
20208  file through \SpecialChar LaTeX
20209  as many times as necessary (usually up to three).
20210 \end_layout
20211
20212 \begin_layout Enumerate
20213
20214 \change_deleted 564990737 1670317155
20215 View the resulting 
20216 \family typewriter
20217 .dvi
20218 \family default
20219  document using, e.
20220 \begin_inset space \thinspace{}
20221 \end_inset
20222
20223 g.
20224 \begin_inset space \space{}
20225 \end_inset
20226
20227
20228 \family sans
20229 xdvi
20230 \family default
20231 , and check if everything is OK (it should, if you didn't make any mistake).
20232 \end_layout
20233
20234 \begin_layout Subsection
20235
20236 \change_deleted 564990737 1670317155
20237 \begin_inset Quotes eld
20238 \end_inset
20239
20240 Peculiarities
20241 \begin_inset Quotes erd
20242 \end_inset
20243
20244  of the Kluwer package
20245 \begin_inset CommandInset label
20246 LatexCommand label
20247 name "subsec:kluwer_peculiarities"
20248
20249 \end_inset
20250
20251
20252 \end_layout
20253
20254 \begin_layout Standard
20255
20256 \change_deleted 564990737 1670317155
20257 The Kluwer package has the following 
20258 \begin_inset Quotes eld
20259 \end_inset
20260
20261 peculiarities
20262 \begin_inset Quotes erd
20263 \end_inset
20264
20265 .
20266 \end_layout
20267
20268 \begin_layout Enumerate
20269
20270 \change_deleted 564990737 1670317155
20271 It is possible to write multiple articles in the same \SpecialChar LaTeX
20272  file
20273 \begin_inset Foot
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 I can't imagine any good reason to do this.
20278 \end_layout
20279
20280 \end_inset
20281
20282 .
20283  Each article must be included in the environment 
20284 \begin_inset Quotes eld
20285 \end_inset
20286
20287 article
20288 \begin_inset Quotes erd
20289 \end_inset
20290
20291 .
20292  Unfortunately, this environment cannot be omitted, even if you write just
20293  one article.
20294  Therefore, each article starts with the command 
20295 \family typewriter
20296
20297 \backslash
20298 begin{article}
20299 \family default
20300  and, obviously, ends with the command 
20301 \family typewriter
20302
20303 \backslash
20304 end{article}
20305 \family default
20306 .
20307  Although this can be implemented in \SpecialChar LyX
20308 , I didn't included it, since it looks
20309  ugly and can confuse the novice user.
20310  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
20311  code (the
20312  well-known 
20313 \begin_inset Quotes eld
20314 \end_inset
20315
20316 \SpecialChar TeX
20317  code
20318 \begin_inset Quotes erd
20319 \end_inset
20320
20321 ).
20322 \end_layout
20323
20324 \begin_layout Enumerate
20325
20326 \change_deleted 564990737 1670317155
20327 Information given at the beginning of the article (i.
20328 \begin_inset space \thinspace{}
20329 \end_inset
20330
20331 e.
20332 \begin_inset space \space{}
20333 \end_inset
20334
20335 title, subtitle, author, institution, running title, running author, abstract
20336  and keywords) must be included in an environment called 
20337 \begin_inset Quotes eld
20338 \end_inset
20339
20340 opening
20341 \begin_inset Quotes erd
20342 \end_inset
20343
20344 .
20345  This is not implemented in \SpecialChar LyX
20346 , so you must enter title, subtitle etc.
20347 \begin_inset space ~
20348 \end_inset
20349
20350 between two \SpecialChar TeX
20351  code lines (
20352 \family typewriter
20353
20354 \backslash
20355 begin{opening}
20356 \family default
20357  and 
20358 \family typewriter
20359
20360 \backslash
20361 end{opening}
20362 \family default
20363 ).
20364 \end_layout
20365
20366 \begin_layout Enumerate
20367
20368 \change_deleted 564990737 1670317155
20369 According to the user manual, the label of each bibliography item must be
20370  written as 
20371 \family typewriter
20372
20373 \backslash
20374 protect
20375 \backslash
20376 citeauthoryear{
20377 \family default
20378 \emph on
20379 author(s)
20380 \family typewriter
20381 \emph default
20382 }{
20383 \family default
20384 \emph on
20385 year
20386 \family typewriter
20387 \emph default
20388 }
20389 \family default
20390 .
20391 \end_layout
20392
20393 \begin_layout Standard
20394
20395 \change_deleted 564990737 1670317155
20396 The 
20397 \family typewriter
20398 kluwer.lyx
20399 \family default
20400  template takes care of all these 
20401 \begin_inset Quotes eld
20402 \end_inset
20403
20404 peculiarities
20405 \begin_inset Quotes erd
20406 \end_inset
20407
20408 .
20409  If you start a new paper using this template you don't need to do anything
20410  special.
20411  Just 
20412 \end_layout
20413
20414 \begin_layout Enumerate
20415
20416 \change_deleted 564990737 1670317155
20417 don't delete the \SpecialChar TeX
20418  code included in the template, and
20419 \end_layout
20420
20421 \begin_layout Enumerate
20422
20423 \change_deleted 564990737 1670317155
20424 copy the example bibliography item included in the template and modify it
20425  as necessary to enter new bibliography items.
20426 \end_layout
20427
20428 \begin_layout Section
20429
20430 \change_deleted 564990737 1671097446
20431 Paper
20432 \end_layout
20433
20434 \begin_layout Standard
20435
20436 \change_deleted 564990737 1671097446
20437 The document class 
20438 \family sans
20439 paper
20440 \family default
20441  provides an alternative to the standard 
20442 \family sans
20443 article
20444 \family default
20445  class.
20446  It provides similar functionality, but you might prefer this layout with
20447  sans serif sections, headings, and more.
20448 \end_layout
20449
20450 \begin_layout Section
20451
20452 \change_deleted 564990737 1671097446
20453 Springer Journals (
20454 \family sans
20455 svjour
20456 \family default
20457 )
20458 \end_layout
20459
20460 \begin_layout Standard
20461
20462 \change_deleted 564990737 1671097446
20463 by 
20464 \noun on
20465 Martin Vermeer
20466 \end_layout
20467
20468 \begin_layout Subsection
20469
20470 \change_deleted 564990737 1671097446
20471 Description
20472 \end_layout
20473
20474 \begin_layout Standard
20475
20476 \change_deleted 564990737 1671097446
20477 These are the layout files for some of the journal formats used by Springer
20478  Verlag and listed on 
20479 \begin_inset Flex URL
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483
20484 http://www.springer.de/author/tex/help-journals.html
20485 \end_layout
20486
20487 \end_inset
20488
20489 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
20490  now!).
20491  It is a modular system: the things common to all journals are implemented
20492  in 
20493 \family typewriter
20494 svjour.inc
20495 \family default
20496 , which journal-specific layout files (such as, e.
20497 \begin_inset space \thinspace{}
20498 \end_inset
20499
20500 g.
20501 \begin_inset space \space{}
20502 \end_inset
20503
20504
20505 \family typewriter
20506 svjog.layout
20507 \family default
20508  for Journal of Geodesy) can include.
20509 \end_layout
20510
20511 \begin_layout Standard
20512
20513 \change_deleted 564990737 1671097446
20514 This means that implementing support for any other Springer journal on this
20515  list is as simple as writing your own 
20516 \family typewriter
20517 sv
20518 \family default
20519 <myjournal>
20520 \family typewriter
20521 .layout
20522 \family default
20523  file following the outline given in 
20524 \family typewriter
20525 svjog.layout
20526 \family default
20527 .
20528  
20529 \end_layout
20530
20531 \begin_layout Standard
20532
20533 \change_deleted 564990737 1671097446
20534 It is reasonably well tested only for the Journal of Geodesy.
20535  
20536 \family typewriter
20537 svjour
20538 \family default
20539  and 
20540 \family typewriter
20541 svjog
20542 \family default
20543  come with the standard \SpecialChar LyX
20544  distribution.
20545  Install the relevant class file (downloaded from Springer) in a proper
20546  directory, reconfigure \SpecialChar LaTeX
20547  (in the te\SpecialChar TeX
20548  case by running 
20549 \family typewriter
20550 texhash
20551 \family default
20552 , as root if necessary — doesn't \SpecialChar LyX
20553  take care of this?), reconfigure \SpecialChar LyX
20554  and
20555  it should work.
20556 \end_layout
20557
20558 \begin_layout Subsection
20559
20560 \change_deleted 564990737 1671097446
20561 New styles
20562 \end_layout
20563
20564 \begin_layout Standard
20565
20566 \change_deleted 564990737 1671097446
20567 A large number of theorem-like styles — 
20568 \family sans
20569 Claim, Conjecture,
20570 \family default
20571  
20572 \family sans
20573 \SpecialChar ldots
20574 Theorem
20575 \family default
20576 .
20577 \end_layout
20578
20579 \begin_layout Standard
20580
20581 \change_deleted 564990737 1671097446
20582
20583 \family sans
20584 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
20585 _Title, Author_Running, Institute,
20586  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
20587 \family default
20588 .
20589  See the Springer class file documentation for details.
20590 \end_layout
20591
20592 \begin_layout Subsection
20593
20594 \change_deleted 564990737 1671097446
20595 Supported journals
20596 \end_layout
20597
20598 \begin_layout Itemize
20599
20600 \change_deleted 564990737 1671097446
20601
20602 \emph on
20603 Journal of Geodesy
20604 \emph default
20605
20606 \family typewriter
20607 svjog.layout
20608 \family default
20609  — Martin Vermeer
20610 \end_layout
20611
20612 \begin_layout Itemize
20613
20614 \change_deleted 564990737 1671097446
20615
20616 \emph on
20617 Probability Theory and Related Fields
20618 \emph default
20619
20620 \family typewriter
20621 svprobth.layout
20622 \family default
20623  — Jean-Marc Lasgouttes
20624 \end_layout
20625
20626 \begin_layout Standard
20627
20628 \change_deleted 564990737 1671097446
20629 Add your own, it isn't so hard!
20630 \end_layout
20631
20632 \begin_layout Subsection
20633
20634 \change_deleted 564990737 1671097446
20635 Credits
20636 \end_layout
20637
20638 \begin_layout Standard
20639
20640 \change_deleted 564990737 1671097446
20641 These files are partly based on the older 
20642 \family typewriter
20643 ejour2.layout
20644 \family default
20645 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
20646  2.09 style
20647  file from Springer.
20648  All this, and the 
20649 \family typewriter
20650 ejour2
20651 \family default
20652  layout, are now defunct.
20653  Jean-Marc Lasgouttes helped out big in making me find my way around the
20654  \SpecialChar LyX
20655  layout file mechanism.
20656 \end_layout
20657
20658 \begin_layout Subsection
20659
20660 \change_deleted 564990737 1671097446
20661 Bugs
20662 \end_layout
20663
20664 \begin_layout Standard
20665
20666 \change_deleted 564990737 1671097446
20667 Probably.
20668  But probably less than in the old hacked-\SpecialChar LaTeX
20669  
20670 \family typewriter
20671 ejour2
20672 \family default
20673 .
20674 \end_layout
20675
20676 \begin_layout Chapter
20677 \SpecialChar LyX
20678  Features needing Extra Software
20679 \end_layout
20680
20681 \begin_layout Section
20682 Checking \SpecialChar TeX
20683
20684 \end_layout
20685
20686 \begin_layout Standard
20687 by 
20688 \noun on
20689 Asger Alstrup
20690 \end_layout
20691
20692 \begin_layout Subsection
20693 Introduction
20694 \end_layout
20695
20696 \begin_layout Standard
20697 If you have the 
20698 \family typewriter
20699 chktex
20700 \family default
20701  program installed
20702 \begin_inset Foot
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706
20707 \family typewriter
20708 chktex
20709 \family default
20710  is not yet available when you are using the \SpecialChar LaTeX
20711  distribution MiK\SpecialChar TeX
20712 .
20713 \end_layout
20714
20715 \end_inset
20716
20717 , you'll find in the 
20718 \family sans
20719 Tools
20720 \family default
20721  menu the entry: 
20722 \family sans
20723 Check
20724 \begin_inset space ~
20725 \end_inset
20726
20727 TeX
20728 \family default
20729 .
20730  You can get 
20731 \family typewriter
20732 chktex
20733 \family default
20734  from CTAN,
20735 \begin_inset Newline newline
20736 \end_inset
20737
20738
20739 \begin_inset CommandInset href
20740 LatexCommand href
20741 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
20742 literal "false"
20743
20744 \end_inset
20745
20746 .
20747 \end_layout
20748
20749 \begin_layout Standard
20750 The 
20751 \family sans
20752 Chk\SpecialChar TeX
20753
20754 \family default
20755  package is a program that was written by 
20756 \begin_inset Flex Noun
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760 Jens T.
20761 \begin_inset space ~
20762 \end_inset
20763
20764 Berger Thielemann
20765 \end_layout
20766
20767 \end_inset
20768
20769  in frustration because some constructs in \SpecialChar LaTeX
20770  are sometimes non-intuitive,
20771  and easy to forget.
20772  The program runs over your \SpecialChar LaTeX
20773  file, checks the integrity of the file, and
20774  flags some common errors.
20775  In other technical words, it is 
20776 \family typewriter
20777 lint
20778 \family default
20779  for \SpecialChar LaTeX
20780 .
20781 \end_layout
20782
20783 \begin_layout Standard
20784 Well, what is a syntax checker doing in \SpecialChar LyX
20785  which is supposed to produce correct
20786  \SpecialChar LaTeX
20787  anyways? The answer is simple: Just as 
20788 \family typewriter
20789 Lint
20790 \family default
20791  not only checks the 
20792 \emph on
20793 syntax
20794 \emph default
20795  of C programs, but also does 
20796 \emph on
20797 semantic
20798 \emph default
20799  checks for type-errors, 
20800 \family sans
20801 Chk\SpecialChar TeX
20802
20803 \family default
20804  catches some common 
20805 \emph on
20806 typographic
20807 \emph default
20808  errors, in addition to the syntactical ones.
20809  Specifically, 
20810 \family sans
20811 Chk\SpecialChar TeX
20812
20813 \family default
20814  is capable of detecting several common errors, such as
20815 \end_layout
20816
20817 \begin_layout Itemize
20818 Ellipsis detection:
20819 \begin_inset Newline newline
20820 \end_inset
20821
20822 Use \SpecialChar ldots
20823  instead of ...
20824 \end_layout
20825
20826 \begin_layout Itemize
20827 No space in front of/after parenthesis:
20828 \begin_inset Newline newline
20829 \end_inset
20830
20831 ( wrong spacing )
20832 \end_layout
20833
20834 \begin_layout Itemize
20835 Enforcement of normal space after common abbreviations:
20836 \begin_inset Newline newline
20837 \end_inset
20838
20839 e.
20840 \begin_inset space \thinspace{}
20841 \end_inset
20842
20843 g.
20844 \begin_inset space \space{}
20845 \end_inset
20846
20847 is too wide spacing.
20848 \end_layout
20849
20850 \begin_layout Itemize
20851 Enforcement of end-of-sentence space when the last sentence ends with a
20852  capital letter:
20853 \begin_inset Newline newline
20854 \end_inset
20855
20856 This is a TEST.
20857  And this is wrong spacing.
20858 \end_layout
20859
20860 \begin_layout Itemize
20861 Space in front of labels and similar commands:
20862 \begin_inset Newline newline
20863 \end_inset
20864
20865 The label should stick right up to the text to avoid falling to a wrong
20866  page.
20867  
20868 \begin_inset CommandInset label
20869 LatexCommand label
20870 name "sec:chktex"
20871
20872 \end_inset
20873
20874  
20875 \begin_inset Foot
20876 status collapsed
20877
20878 \begin_layout Plain Layout
20879 This footnote is in danger of falling off to a wrong page
20880 \end_layout
20881
20882 \end_inset
20883
20884  The label is separated too much.
20885 \end_layout
20886
20887 \begin_layout Itemize
20888 Space in front of references, instead of hard spaces:
20889 \begin_inset Newline newline
20890 \end_inset
20891
20892 If you have bad luck, the text will break right between the referenced text
20893  and reference number, and that's a pity.
20894  See section 
20895 \begin_inset CommandInset ref
20896 LatexCommand ref
20897 reference "sec:chktex"
20898
20899 \end_inset
20900
20901 .
20902 \end_layout
20903
20904 \begin_layout Itemize
20905 Use of 
20906 \begin_inset Quotes eld
20907 \end_inset
20908
20909 x
20910 \begin_inset Quotes erd
20911 \end_inset
20912
20913  instead of 
20914 \begin_inset Formula $\times$
20915 \end_inset
20916
20917  between numbers:
20918 \begin_inset Newline newline
20919 \end_inset
20920
20921 2x2 looks cheap compared to 
20922 \begin_inset Formula $2\times2$
20923 \end_inset
20924
20925 .
20926 \end_layout
20927
20928 \begin_layout Standard
20929 and more \SpecialChar ldots
20930  It is an invaluable tool when you are 
20931 \begin_inset Quotes eld
20932 \end_inset
20933
20934 finishing up
20935 \begin_inset Quotes erd
20936 \end_inset
20937
20938  your document before printing, and you should run it right after the obligatory
20939  spelling check, and before you go fine tuning the typesetting.
20940 \end_layout
20941
20942 \begin_layout Subsection
20943 How to use it
20944 \end_layout
20945
20946 \begin_layout Standard
20947 If you have the program installed, usage is as simple as choosing 
20948 \family sans
20949 Tools\SpecialChar menuseparator
20950 Check
20951 \begin_inset space ~
20952 \end_inset
20953
20954 TeX
20955 \family default
20956 .
20957  This will make \SpecialChar LyX
20958  generate a \SpecialChar LaTeX
20959  file of your document, start 
20960 \family sans
20961 Chk\SpecialChar TeX
20962
20963 \family default
20964  to check it, and then make \SpecialChar LyX
20965  insert 
20966 \begin_inset Quotes eld
20967 \end_inset
20968
20969 error boxes
20970 \begin_inset Quotes erd
20971 \end_inset
20972
20973  with the warnings from 
20974 \family sans
20975 Chk\SpecialChar TeX
20976
20977 \family default
20978 , if there were any.
20979  The warnings will be placed close to the point of the mistake, and you
20980  can quickly find them by using the 
20981 \family sans
20982 Navigate\SpecialChar menuseparator
20983 Error
20984 \family default
20985  menu item, or the shortcut key 
20986 \family sans
20987 C-g
20988 \family default
20989  from the default 
20990 \family typewriter
20991 cua
20992 \family default
20993  bind file.
20994  Open the error boxes by clicking on them with the mouse, or use the shortcut
20995  key 
20996 \family sans
20997 C-i
20998 \family default
20999  from 
21000 \family typewriter
21001 cua
21002 \family default
21003  bindings, or the corresponding 
21004 \family sans
21005 C-o
21006 \family default
21007  for the alternate 
21008 \family typewriter
21009 emacs
21010 \family default
21011  bind file.
21012  Read the warning and correct the mistake, if it is a mistake.
21013  If you have trouble understanding what the warning is about, you can safely
21014  ignore it.
21015  Remember that there is a hidden layer between the document on screen and
21016  the technical details in invoking 
21017 \family sans
21018 Chk\SpecialChar TeX
21019
21020 \family default
21021 , and this gap can make some warnings seem arcane or just plain silly.
21022 \end_layout
21023
21024 \begin_layout Standard
21025 This document is an excellent testing bed for the feature, and it should
21026  provide quite a few warnings for you to fiddle with.
21027  Since computers are only so smart, expect most of the warnings to be false
21028  alarms, though.
21029 \end_layout
21030
21031 \begin_layout Subsection
21032 How to fine tune it
21033 \end_layout
21034
21035 \begin_layout Standard
21036 Sometimes, you'll find that 
21037 \family sans
21038 Chk\SpecialChar TeX
21039
21040 \family default
21041  makes more noise than suits your mood.
21042  Then you can choose not to use it, wait until your mood changes, or try
21043  to customize 
21044 \family sans
21045 Chk\SpecialChar TeX
21046
21047 \family default
21048  to get better along with you.
21049 \end_layout
21050
21051 \begin_layout Standard
21052 Although 
21053 \family sans
21054 Chk\SpecialChar TeX
21055
21056 \family default
21057  
21058 \emph on
21059 is
21060 \emph default
21061  very configurable and extensible, you should not expect to solve all problems
21062  with 
21063 \family sans
21064 Chk\SpecialChar TeX
21065
21066 \family default
21067  in \SpecialChar LyX
21068  this way.
21069  Since \SpecialChar LyX
21070  has to generate a somewhat special \SpecialChar LaTeX
21071  file to be able to match the
21072  line numbers from the 
21073 \family sans
21074 Chk\SpecialChar TeX
21075
21076 \family default
21077  output
21078 \begin_inset Foot
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082 You can inspect the specific output from 
21083 \family sans
21084 chktex
21085 \family default
21086  by using 
21087 \family sans
21088 Document\SpecialChar menuseparator
21089 \SpecialChar LaTeX
21090
21091 \begin_inset space ~
21092 \end_inset
21093
21094 Log
21095 \family default
21096  right after a 
21097 \family sans
21098 chktex
21099 \family default
21100  run.
21101 \end_layout
21102
21103 \end_inset
21104
21105  to the internal document structure, some of the warnings will not appear
21106  correctly.
21107  There are two things you can do about this:
21108 \end_layout
21109
21110 \begin_layout Itemize
21111 Fine tune the 
21112 \family sans
21113 Chk\SpecialChar TeX
21114
21115 \family default
21116  invocation command line in 
21117 \begin_inset Flex Noun
21118 status collapsed
21119
21120 \begin_layout Plain Layout
21121 Tools\SpecialChar menuseparator
21122 Preferences\SpecialChar menuseparator
21123 Output\SpecialChar menuseparator
21124 LaTeX\SpecialChar menuseparator
21125 CheckTeX command
21126 \end_layout
21127
21128 \end_inset
21129
21130 , or the global 
21131 \family sans
21132 Chk\SpecialChar TeX
21133
21134 \family default
21135  installation configuration file (usually with the file 
21136 \family typewriter
21137 chktexrc
21138 \family default
21139 ).
21140  See below to learn what warnings can be enabled and disabled on the command
21141  line.
21142 \end_layout
21143
21144 \begin_layout Itemize
21145 Export your document as a raw \SpecialChar LaTeX
21146  file using 
21147 \family sans
21148 File\SpecialChar menuseparator
21149 Export\SpecialChar menuseparator
21150 \SpecialChar LaTeX
21151
21152 \family default
21153  and run 
21154 \family typewriter
21155 chktex
21156 \family default
21157  manually on that.
21158  Invoked in this way, it can be a hassle to find the corresponding place
21159  in the document inside \SpecialChar LyX
21160 , but with a little patience, you should be able
21161  to do it.
21162 \end_layout
21163
21164 \begin_layout Standard
21165 Here follows the warning messages that can be enabled and disabled in 
21166 \family sans
21167 Preferences
21168 \family default
21169 .
21170  Use 
21171 \family typewriter
21172 -n#
21173 \family default
21174  to disable a warning, and 
21175 \family typewriter
21176 -w#
21177 \family default
21178  to enable a warning.
21179  The emphasized entries are disabled by default, because the default is
21180  "
21181 \family typewriter
21182 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
21183 \family default
21184 ".
21185 \end_layout
21186
21187 \begin_layout Standard
21188 Notice that you should only use the options that enable and disable warnings,
21189  because \SpecialChar LyX
21190  relies on some of the other command line parameters to be set
21191  in a specific way to have a chance to communicate with 
21192 \family typewriter
21193 chktex
21194 \family default
21195 .
21196 \end_layout
21197
21198 \begin_layout Enumerate
21199
21200 \size small
21201 \emph on
21202 Command terminated with space.
21203 \end_layout
21204
21205 \begin_layout Enumerate
21206
21207 \size small
21208 Non-breaking space (
21209 \begin_inset Quotes eld
21210 \end_inset
21211
21212
21213 \family typewriter
21214 ~
21215 \family default
21216
21217 \begin_inset Quotes erd
21218 \end_inset
21219
21220 ) should have been used.
21221 \end_layout
21222
21223 \begin_layout Enumerate
21224
21225 \size small
21226 \emph on
21227 You should enclose the previous parenthesis with 
21228 \begin_inset Quotes eld
21229 \end_inset
21230
21231
21232 \family typewriter
21233 {}
21234 \family default
21235
21236 \begin_inset Quotes erd
21237 \end_inset
21238
21239 .
21240 \end_layout
21241
21242 \begin_layout Enumerate
21243
21244 \size small
21245 Italic correction (
21246 \begin_inset Quotes eld
21247 \end_inset
21248
21249
21250 \family typewriter
21251
21252 \backslash
21253 /
21254 \family default
21255
21256 \begin_inset Quotes erd
21257 \end_inset
21258
21259 ) found in non-italic buffer.
21260 \end_layout
21261
21262 \begin_layout Enumerate
21263
21264 \size small
21265 Italic correction (
21266 \begin_inset Quotes eld
21267 \end_inset
21268
21269
21270 \family typewriter
21271
21272 \backslash
21273 /
21274 \family default
21275
21276 \begin_inset Quotes erd
21277 \end_inset
21278
21279 ) found more than once.
21280 \end_layout
21281
21282 \begin_layout Enumerate
21283
21284 \size small
21285 \emph on
21286 No italic correction (
21287 \begin_inset Quotes eld
21288 \end_inset
21289
21290
21291 \family typewriter
21292
21293 \backslash
21294 /
21295 \family default
21296
21297 \begin_inset Quotes erd
21298 \end_inset
21299
21300 ) found.
21301 \end_layout
21302
21303 \begin_layout Enumerate
21304
21305 \size small
21306 Accent command 
21307 \begin_inset Quotes eld
21308 \end_inset
21309
21310
21311 \family typewriter
21312 cmd
21313 \family default
21314
21315 \begin_inset Quotes erd
21316 \end_inset
21317
21318  needs use of 
21319 \begin_inset Quotes eld
21320 \end_inset
21321
21322
21323 \family typewriter
21324 cmd
21325 \family default
21326
21327 \begin_inset Quotes erd
21328 \end_inset
21329
21330 .
21331 \end_layout
21332
21333 \begin_layout Enumerate
21334
21335 \size small
21336 Wrong length of dash may have been used.
21337 \end_layout
21338
21339 \begin_layout Enumerate
21340
21341 \size small
21342 \emph on
21343 \begin_inset Quotes eld
21344 \end_inset
21345
21346
21347 \family typewriter
21348 %s
21349 \family default
21350
21351 \begin_inset Quotes erd
21352 \end_inset
21353
21354  expected, found 
21355 \begin_inset Quotes eld
21356 \end_inset
21357
21358
21359 \family typewriter
21360 %s
21361 \family default
21362
21363 \begin_inset Quotes erd
21364 \end_inset
21365
21366 .
21367 \end_layout
21368
21369 \begin_layout Enumerate
21370
21371 \size small
21372 Solo 
21373 \begin_inset Quotes eld
21374 \end_inset
21375
21376
21377 \family typewriter
21378 %s
21379 \family default
21380
21381 \begin_inset Quotes erd
21382 \end_inset
21383
21384  found.
21385 \end_layout
21386
21387 \begin_layout Enumerate
21388
21389 \size small
21390 You should use 
21391 \begin_inset Quotes eld
21392 \end_inset
21393
21394
21395 \family typewriter
21396 %s
21397 \family default
21398
21399 \begin_inset Quotes erd
21400 \end_inset
21401
21402  to achieve an ellipsis.
21403 \end_layout
21404
21405 \begin_layout Enumerate
21406
21407 \size small
21408 Inter-word spacing (
21409 \begin_inset Quotes eld
21410 \end_inset
21411
21412
21413 \family typewriter
21414
21415 \backslash
21416
21417 \family default
21418  
21419 \begin_inset Quotes eld
21420 \end_inset
21421
21422 ) should perhaps be used.
21423 \end_layout
21424
21425 \begin_layout Enumerate
21426
21427 \size small
21428 Inter-sentence spacing (
21429 \begin_inset Quotes eld
21430 \end_inset
21431
21432
21433 \family typewriter
21434
21435 \backslash
21436 @
21437 \family default
21438
21439 \begin_inset Quotes erd
21440 \end_inset
21441
21442 ) should perhaps be used.
21443 \end_layout
21444
21445 \begin_layout Enumerate
21446
21447 \size small
21448 Could not find argument for command.
21449 \end_layout
21450
21451 \begin_layout Enumerate
21452
21453 \size small
21454 No match found for 
21455 \begin_inset Quotes eld
21456 \end_inset
21457
21458
21459 \family typewriter
21460 %s
21461 \family default
21462
21463 \begin_inset Quotes erd
21464 \end_inset
21465
21466 .
21467 \end_layout
21468
21469 \begin_layout Enumerate
21470
21471 \size small
21472 Math mode still on at end of \SpecialChar LaTeX
21473  file.
21474 \end_layout
21475
21476 \begin_layout Enumerate
21477
21478 \size small
21479 Number of 
21480 \begin_inset Quotes eld
21481 \end_inset
21482
21483
21484 \family typewriter
21485 char
21486 \family default
21487
21488 \begin_inset Quotes erd
21489 \end_inset
21490
21491  doesn't match the number of 
21492 \begin_inset Quotes eld
21493 \end_inset
21494
21495
21496 \family typewriter
21497 char
21498 \family default
21499
21500 \begin_inset Quotes erd
21501 \end_inset
21502
21503 .
21504 \end_layout
21505
21506 \begin_layout Enumerate
21507
21508 \size small
21509 You should use either 
21510 \family typewriter
21511
21512 \begin_inset Quotes eld
21513 \end_inset
21514
21515
21516 \family default
21517  or 
21518 \family typewriter
21519
21520 \begin_inset Quotes erd
21521 \end_inset
21522
21523
21524 \family default
21525  as an alternative to 
21526 \begin_inset Quotes eld
21527 \end_inset
21528
21529
21530 \family typewriter
21531 "
21532 \family default
21533
21534 \begin_inset Quotes erd
21535 \end_inset
21536
21537 .
21538 \end_layout
21539
21540 \begin_layout Enumerate
21541
21542 \size small
21543 You should use "
21544 \family typewriter
21545 '
21546 \family default
21547 " (ASCII 39) instead of "
21548 \family typewriter
21549 ´
21550 \family default
21551 " (ASCII 180).
21552 \end_layout
21553
21554 \begin_layout Enumerate
21555
21556 \size small
21557 User-specified pattern found.
21558 \end_layout
21559
21560 \begin_layout Enumerate
21561
21562 \size small
21563 This command might not be intended.
21564 \end_layout
21565
21566 \begin_layout Enumerate
21567
21568 \size small
21569 \emph on
21570 Comment displayed.
21571 \end_layout
21572
21573 \begin_layout Enumerate
21574
21575 \size small
21576 Either 
21577 \family typewriter
21578 ''
21579 \backslash
21580 ,'
21581 \family default
21582  or 
21583 \family typewriter
21584 '
21585 \backslash
21586 ,''
21587 \family default
21588  will look better.
21589 \end_layout
21590
21591 \begin_layout Enumerate
21592
21593 \size small
21594 Delete this space to maintain correct page references.
21595 \end_layout
21596
21597 \begin_layout Enumerate
21598
21599 \size small
21600 \emph on
21601 You might wish to put this between a pair of 
21602 \begin_inset Quotes eld
21603 \end_inset
21604
21605
21606 \family typewriter
21607 {}
21608 \family default
21609
21610 \begin_inset Quotes erd
21611 \end_inset
21612
21613 .
21614 \end_layout
21615
21616 \begin_layout Enumerate
21617
21618 \size small
21619 You ought to remove spaces in front of punctuation.
21620 \end_layout
21621
21622 \begin_layout Enumerate
21623
21624 \size small
21625 Could not execute \SpecialChar LaTeX
21626  command.
21627 \end_layout
21628
21629 \begin_layout Enumerate
21630
21631 \size small
21632 Don't use 
21633 \family typewriter
21634
21635 \backslash
21636 /
21637 \family default
21638  in front of small punctuation.
21639 \end_layout
21640
21641 \begin_layout Enumerate
21642
21643 \family typewriter
21644 \size small
21645 $
21646 \backslash
21647 times$
21648 \family default
21649  may look prettier here.
21650 \end_layout
21651
21652 \begin_layout Enumerate
21653
21654 \size small
21655 \emph on
21656 Multiple spaces detected in output.
21657 \end_layout
21658
21659 \begin_layout Enumerate
21660
21661 \size small
21662 This text may be ignored.
21663 \end_layout
21664
21665 \begin_layout Enumerate
21666
21667 \size small
21668 Use 
21669 \family typewriter
21670
21671 \begin_inset Quotes eld
21672 \end_inset
21673
21674
21675 \family default
21676  to begin quotation, not 
21677 \family typewriter
21678 '
21679 \family default
21680 .
21681 \end_layout
21682
21683 \begin_layout Enumerate
21684
21685 \size small
21686 Use 
21687 \family typewriter
21688 '
21689 \family default
21690  to end quotation, not 
21691 \family typewriter
21692
21693 \begin_inset Quotes eld
21694 \end_inset
21695
21696
21697 \family default
21698 .
21699 \end_layout
21700
21701 \begin_layout Enumerate
21702
21703 \size small
21704 Don't mix quotes.
21705 \end_layout
21706
21707 \begin_layout Enumerate
21708
21709 \size small
21710 You should perhaps use 
21711 \begin_inset Quotes eld
21712 \end_inset
21713
21714
21715 \family typewriter
21716 cmd
21717 \family default
21718
21719 \begin_inset Quotes erd
21720 \end_inset
21721
21722  instead.
21723 \end_layout
21724
21725 \begin_layout Enumerate
21726
21727 \size small
21728 You should put a space in front of/after parenthesis.
21729 \end_layout
21730
21731 \begin_layout Enumerate
21732
21733 \size small
21734 You should avoid spaces in front of/after parenthesis.
21735 \end_layout
21736
21737 \begin_layout Enumerate
21738
21739 \size small
21740 \emph on
21741 You should not use punctuation in front of/after quotes.
21742 \end_layout
21743
21744 \begin_layout Enumerate
21745
21746 \size small
21747 Double space found.
21748 \end_layout
21749
21750 \begin_layout Enumerate
21751
21752 \size small
21753 You should put punctuation outside inner/inside display math mode.
21754 \end_layout
21755
21756 \begin_layout Enumerate
21757
21758 \size small
21759 You ought to not use primitive \SpecialChar TeX
21760  in \SpecialChar LaTeX
21761  code.
21762 \end_layout
21763
21764 \begin_layout Enumerate
21765
21766 \size small
21767 You should remove spaces in front of 
21768 \begin_inset Quotes eld
21769 \end_inset
21770
21771
21772 \family typewriter
21773 %s
21774 \family default
21775
21776 \begin_inset Quotes erd
21777 \end_inset
21778
21779
21780 \end_layout
21781
21782 \begin_layout Enumerate
21783
21784 \size small
21785 \begin_inset Quotes eld
21786 \end_inset
21787
21788
21789 \family typewriter
21790 %s
21791 \family default
21792
21793 \begin_inset Quotes erd
21794 \end_inset
21795
21796  is normally not followed by 
21797 \begin_inset Quotes eld
21798 \end_inset
21799
21800
21801 \family typewriter
21802 %c
21803 \family default
21804
21805 \begin_inset Quotes erd
21806 \end_inset
21807
21808 .
21809 \end_layout
21810
21811 \begin_layout Standard
21812 In later versions of \SpecialChar LyX
21813 , we hope to provide a more complete interface to this
21814  tool (and it's smaller cousin 
21815 \family typewriter
21816 lacheck
21817 \family default
21818 ) to exploit the full power of it.
21819  But it's not exactly useless as it is now: go try it on one of your existing
21820  documents of a certain length and be surprised.
21821 \end_layout
21822
21823 \begin_layout Section
21824 Version Control in \SpecialChar LyX
21825
21826 \end_layout
21827
21828 \begin_layout Standard
21829 by
21830 \noun on
21831  Lars Gullik Bjønnes 
21832 \noun default
21833 and 
21834 \noun on
21835 Pavel Sanda
21836 \end_layout
21837
21838 \begin_layout Subsection
21839 Introduction
21840 \end_layout
21841
21842 \begin_layout Standard
21843 \SpecialChar LyX
21844  supports some of the most basic RCS/CVS/SVN/GIT commands.
21845  If you need something a bit more sophisticated you will have to do that
21846  manually in a terminal.
21847 \end_layout
21848
21849 \begin_layout Standard
21850 Also note that CVS support is not as good as subversion support, so we advise
21851  using SVN instead.
21852  A good place to start learning Subversion is the SVN Book
21853 \begin_inset Foot
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857 \begin_inset CommandInset href
21858 LatexCommand href
21859 target "http://svnbook.red-bean.com/"
21860 literal "false"
21861
21862 \end_inset
21863
21864
21865 \end_layout
21866
21867 \end_inset
21868
21869 .
21870  In the case of RCS you should read 
21871 \begin_inset Quotes eld
21872 \end_inset
21873
21874 rcsintro
21875 \begin_inset Quotes erd
21876 \end_inset
21877
21878  (a man file, read it with 
21879 \family typewriter
21880 man rcsintro
21881 \family default
21882 ).
21883  This file describes all the basic features of RCS.
21884  You should especially notice the comment about a RCS directory, and the
21885  notion of a master RCS file (the file ending in 
21886 \family typewriter
21887 ,v
21888 \family default
21889 ).
21890 \end_layout
21891
21892 \begin_layout Standard
21893 Before you begin to use the version control features in \SpecialChar LyX
21894 , you should be
21895  familiar with RCS/CVS/SVN/GIT usage.
21896  The implementation in \SpecialChar LyX
21897  assumes a recent version of the GNU RCS or CVS/SVN
21898  package — no guarantees are made for older versions.
21899  Most of the log messages are not currently displayed after operations —
21900  you can check them in the Messages pane if you are unsure.
21901  Regular users of version control will appreciate the VC toolbar, which
21902  can be enabled via 
21903 \family sans
21904 View\SpecialChar menuseparator
21905 Toolbars\SpecialChar menuseparator
21906 Version
21907 \begin_inset space ~
21908 \end_inset
21909
21910 Control
21911 \family default
21912 .
21913 \end_layout
21914
21915 \begin_layout Standard
21916 For introducing your own external commands consult 
21917 \begin_inset Flex Code
21918 status collapsed
21919
21920 \begin_layout Plain Layout
21921 vc-command
21922 \end_layout
21923
21924 \end_inset
21925
21926  in the manual 
21927 \emph on
21928 \SpecialChar LyX
21929  Functions
21930 \emph default
21931 .
21932 \end_layout
21933
21934 \begin_layout Standard
21935 It is strongly recommended to store documents in uncompressed format if
21936  using version control (uncheck 
21937 \family sans
21938 Document\SpecialChar menuseparator
21939 Compressed
21940 \family default
21941  if it is checked): Uncompressed LyX documents are text files and therefore
21942  for merging two different versions by version control systems.
21943  Compressed LyX documents are binary files, which cannot be merged by version
21944  control systems.
21945 \end_layout
21946
21947 \begin_layout Subsection
21948 RCS commands in \SpecialChar LyX
21949
21950 \end_layout
21951
21952 \begin_layout Standard
21953 The following sections describe the RCS commands supported by \SpecialChar LyX
21954 .
21955  You can find them in the 
21956 \family sans
21957 File\SpecialChar menuseparator
21958 Version
21959 \begin_inset space ~
21960 \end_inset
21961
21962 Control
21963 \family default
21964  submenu.
21965  \SpecialChar LyX
21966  was tested against RCS 5.7/5.8.
21967 \end_layout
21968
21969 \begin_layout Subsubsection
21970
21971 \family sans
21972 Register
21973 \end_layout
21974
21975 \begin_layout Standard
21976 If your document is not under revision control, this is the only item shown
21977  in the menu.
21978  And if it is under revision control, the 
21979 \family sans
21980 Register
21981 \family default
21982  item is not visible.
21983  
21984 \end_layout
21985
21986 \begin_layout Standard
21987 This command registers your document with RCS (unless you are under the
21988  directory managed by CVS)\SpecialChar endofsentence
21989  You are asked interactively to supply an initial
21990  description of the document.
21991  The document is now set in Read-Only mode and you have to 
21992 \family sans
21993 Check
21994 \begin_inset space ~
21995 \end_inset
21996
21997 Out
21998 \begin_inset space ~
21999 \end_inset
22000
22001 For
22002 \begin_inset space ~
22003 \end_inset
22004
22005 Edit
22006 \family default
22007 , before making any changes to it.
22008  A document under revision control has a 
22009 \begin_inset Quotes eld
22010 \end_inset
22011
22012 [RCS:<version> <locker>]
22013 \begin_inset Quotes erd
22014 \end_inset
22015
22016  item tagged to the filename in the minibuffer.
22017 \end_layout
22018
22019 \begin_layout Standard
22020 RCS command that is run:
22021 \end_layout
22022
22023 \begin_layout LyX-Code
22024
22025 \family typewriter
22026 ci -q -u -i -t-"<initial description>" <file-name>
22027 \end_layout
22028
22029 \begin_layout Standard
22030 Read 
22031 \family typewriter
22032 man ci
22033 \family default
22034  to understand the switches.
22035  
22036 \end_layout
22037
22038 \begin_layout Subsubsection
22039
22040 \family sans
22041 Check In Changes
22042 \end_layout
22043
22044 \begin_layout Standard
22045 When you are finished editing a file, you check in your changes.
22046  When you do this, you are asked for a description of the changes.
22047  This is stored in the history log.
22048  The version number is bumped, your changes are applied to the master RCS
22049  file, the document is unlocked and set to Read-Only mode.
22050 \end_layout
22051
22052 \begin_layout Itemize
22053 RCS command: 
22054 \family typewriter
22055 ci -q -u -m"<description>" <file-name>
22056 \end_layout
22057
22058 \begin_layout Subsubsection
22059
22060 \family sans
22061 Check Out For Edit
22062 \end_layout
22063
22064 \begin_layout Standard
22065 By doing this you lock the document so that only you can edit it.
22066  This will also make the document Read-Write only for you.
22067  You will usually continue editing for a while and when you are finished
22068  you check in your changes.
22069  The status line is changed to reflect that you have locked the file.
22070 \end_layout
22071
22072 \begin_layout Itemize
22073 RCS command: 
22074 \family typewriter
22075 co -q -l <file-name>
22076 \end_layout
22077
22078 \begin_layout Subsubsection
22079
22080 \family sans
22081 Revert To Repository Version
22082 \end_layout
22083
22084 \begin_layout Standard
22085 This will discard all changes made to the document since the last check
22086  in.
22087  You get a warning before changes are discarded.
22088 \end_layout
22089
22090 \begin_layout Itemize
22091 RCS command: 
22092 \family typewriter
22093 co -f -u<version> <file-name>
22094 \end_layout
22095
22096 \begin_layout Subsubsection
22097
22098 \family sans
22099 Copy
22100 \end_layout
22101
22102 \begin_layout Standard
22103 This will create a copy of the current document.
22104  Since RCS does not support copy operations natively, the version history
22105  is not preserved, and the copy is added as a new file.
22106  It requires a clean document without any changes since the last checkin.
22107  You are asked for a file name and a description of the copy operation.
22108  After that the copy is created, both locally and in the repository.
22109  If the parent directories of the copied and original document differ, all
22110  relative paths of included files of the copy are adjusted (like in 
22111 \family sans
22112 File\SpecialChar menuseparator
22113 Save As
22114 \family default
22115 \SpecialChar ldots
22116 ).
22117  Finally, the copy is loaded instead of the original document.
22118 \end_layout
22119
22120 \begin_layout Labeling
22121 \labelwidthstring 00.00.0000
22122 RCS
22123 \begin_inset space ~
22124 \end_inset
22125
22126 commands: 
22127 \begin_inset space ~
22128 \end_inset
22129
22130
22131 \begin_inset Newline newline
22132 \end_inset
22133
22134 Copy 
22135 \begin_inset Flex Code
22136 status collapsed
22137
22138 \begin_layout Plain Layout
22139
22140 \family typewriter
22141 \begin_inset Quotes qld
22142 \end_inset
22143
22144 <file-name>
22145 \begin_inset Quotes qld
22146 \end_inset
22147
22148
22149 \end_layout
22150
22151 \end_inset
22152
22153  to 
22154 \begin_inset Flex Code
22155 status collapsed
22156
22157 \begin_layout Plain Layout
22158
22159 \family typewriter
22160 \begin_inset Quotes qld
22161 \end_inset
22162
22163 <new-file-name>
22164 \begin_inset Quotes qld
22165 \end_inset
22166
22167
22168 \end_layout
22169
22170 \end_inset
22171
22172
22173 \begin_inset Newline newline
22174 \end_inset
22175
22176
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 ci -q -u 
22182 \family typewriter
22183 -i 
22184 \begin_inset Quotes qld
22185 \end_inset
22186
22187 <new-file-name>
22188 \begin_inset Quotes qld
22189 \end_inset
22190
22191
22192 \end_layout
22193
22194 \end_inset
22195
22196
22197 \end_layout
22198
22199 \begin_layout Subsubsection
22200
22201 \family sans
22202 Undo Last Checkin
22203 \end_layout
22204
22205 \begin_layout Standard
22206 This makes as if the last check in never happened.
22207  No changes are made to the document loaded into \SpecialChar LyX
22208 , but the last version
22209  is removed from the master RCS file.
22210 \end_layout
22211
22212 \begin_layout Itemize
22213 RCS command: 
22214 \family typewriter
22215 rcs -o<version> <file-name>
22216 \end_layout
22217
22218 \begin_layout Subsubsection
22219
22220 \family sans
22221 Show History
22222 \end_layout
22223
22224 \begin_layout Standard
22225 This shows the complete history of the RCS document.
22226  The output of 
22227 \family typewriter
22228 rlog <file-name>
22229 \family default
22230  is shown in a browser.
22231  See 
22232 \family typewriter
22233 man rlog
22234 \family default
22235  for more info.
22236 \end_layout
22237
22238 \begin_layout Subsubsection
22239 Revision info
22240 \end_layout
22241
22242 \begin_layout Standard
22243 \SpecialChar LyX
22244  supports RCS version number, author name, date and time of last commit.
22245  All those are extracted from 
22246 \family typewriter
22247 rlog -r <file-name>
22248 \family default
22249 .
22250  See 
22251 \begin_inset CommandInset ref
22252 LatexCommand ref
22253 reference "subsec:VCS-Revision-Information"
22254
22255 \end_inset
22256
22257  for details.
22258 \end_layout
22259
22260 \begin_layout Subsection
22261 CVS commands in \SpecialChar LyX
22262
22263 \end_layout
22264
22265 \begin_layout Standard
22266 A subset of CVS operations is supported by \SpecialChar LyX
22267 .
22268  You can find the commands in the 
22269 \family sans
22270 File\SpecialChar menuseparator
22271 Version
22272 \begin_inset space ~
22273 \end_inset
22274
22275 Control
22276 \family default
22277  submenu.
22278  The version control system SVN is more powerful, so please use it instead
22279  of CVS if possible.
22280 \end_layout
22281
22282 \begin_layout Subsubsection
22283
22284 \family sans
22285 General CVS usage
22286 \end_layout
22287
22288 \begin_layout Standard
22289 If you start from scratch with CVS you have to create your repository and
22290  checkout the working copy with external tools.
22291  If you're using a client-server setup you may need to login before doing
22292  the first repository checkout.
22293 \end_layout
22294
22295 \begin_layout Standard
22296 If your documents are under revision control and others are using the same
22297  repository problems arise when different changes to the same document at
22298  the same location happen.
22299  Standard CVS repositories don't operate with a file locking mechanism.
22300  This may be surprising, but conflicts only occur if people disagree on
22301  the proper content of the same part of a document.
22302  So, if co-workers are used to communicate regularly, these conflicts occur
22303  rarely.
22304  If they don't communicate they have a fundamental problem anyway.
22305  Nevertheless some people like to work with so called 
22306 \begin_inset Quotes eld
22307 \end_inset
22308
22309 reserved checkouts
22310 \begin_inset Quotes erd
22311 \end_inset
22312
22313 .
22314  If they do so the working copy of all files is readonly when checked out
22315  first and the user starts editing after using a special command to make
22316  the working copy writable.
22317  When the changes are checked in the working copy returns to readonly state.
22318  With \SpecialChar LyX
22319  one has to edit the 
22320 \begin_inset Flex Code
22321 status collapsed
22322
22323 \begin_layout Plain Layout
22324 .cvsrc
22325 \end_layout
22326
22327 \end_inset
22328
22329  file and add the line 
22330 \begin_inset Flex Code
22331 status collapsed
22332
22333 \begin_layout Plain Layout
22334 cvs -r
22335 \end_layout
22336
22337 \end_inset
22338
22339  to work with reserved checkouts.
22340  The benefit is the possibility to see who is using a writable copy of some
22341  document.
22342  It's not guaranteed only one user makes a copy writable.
22343 \end_layout
22344
22345 \begin_layout Standard
22346 \SpecialChar LyX
22347  tries to guess if you're using reserved or non-reserved checkouts.
22348  If your working copy is readonly or it is writable and an additional copy
22349  of your document exists in the CVS/Base sub-directory a reserved otherwise
22350  a non-reserved checkout is assumed.
22351  When a reserved checkout is detected you have to use 
22352 \begin_inset Flex Noun
22353 status collapsed
22354
22355 \begin_layout Plain Layout
22356 Check Out
22357 \end_layout
22358
22359 \end_inset
22360
22361  to make your working copy writable if it's readonly.
22362  After doing so the 
22363 \begin_inset Flex Noun
22364 status collapsed
22365
22366 \begin_layout Plain Layout
22367 Check In
22368 \end_layout
22369
22370 \end_inset
22371
22372  operation is possible and that makes your working copy readonly again after
22373  transferring your changes to the repository.
22374 \end_layout
22375
22376 \begin_layout Standard
22377 More information about CVS can be found here 
22378 \begin_inset Flex URL
22379 status collapsed
22380
22381 \begin_layout Plain Layout
22382
22383 http://www.nongnu.org/cvs
22384 \end_layout
22385
22386 \end_inset
22387
22388  and here 
22389 \begin_inset Flex URL
22390 status collapsed
22391
22392 \begin_layout Plain Layout
22393
22394 http://ximbiot.com/cvs
22395 \end_layout
22396
22397 \end_inset
22398
22399 .
22400 \end_layout
22401
22402 \begin_layout Standard
22403 Read 
22404 \family typewriter
22405 man cvs
22406 \family default
22407  to understand the sub-commands and the switches mentioned below.
22408 \end_layout
22409
22410 \begin_layout Subsubsection
22411
22412 \family sans
22413 Register
22414 \end_layout
22415
22416 \begin_layout Standard
22417 If your document is not under revision control, this is the only item shown
22418  in the menu.
22419  And if it is under revision control, the 
22420 \family sans
22421 Register
22422 \family default
22423  item is not visible.
22424  
22425 \end_layout
22426
22427 \begin_layout Standard
22428 This command registers in CVS your document 
22429 \begin_inset Flex Strong
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433
22434 \emph on
22435 only
22436 \end_layout
22437
22438 \end_inset
22439
22440  in the case you have already the documents directory under CVS control
22441  (in particular 
22442 \family typewriter
22443 CVS/Entries
22444 \family default
22445  file exists).
22446  This means you have to create or checkout the archive by yourself using
22447  external tools.
22448  (In case you forget that step \SpecialChar LyX
22449  registers the document with RCS.)
22450 \end_layout
22451
22452 \begin_layout Standard
22453 Then you are asked interactively to supply an initial description of the
22454  document.
22455  Don't forget that registered file is not yet checked in.
22456 \end_layout
22457
22458 \begin_layout Standard
22459 CVS command that is run: 
22460 \family typewriter
22461 cvs -q add -m"<entered message>" "<file-name>"
22462 \end_layout
22463
22464 \begin_layout Standard
22465 The term 
22466 \family typewriter
22467 "<file-name>"
22468 \family default
22469  above and for all other CVS commands is an abbreviation for 
22470 \begin_inset Quotes eld
22471 \end_inset
22472
22473 change the current working directory to file location and use the file name
22474  without path component as argument
22475 \begin_inset Quotes erd
22476 \end_inset
22477
22478 .
22479 \end_layout
22480
22481 \begin_layout Subsubsection
22482
22483 \family sans
22484 Check In Changes
22485 \end_layout
22486
22487 \begin_layout Standard
22488 When you are finished editing a file, you commit your changes.
22489  When you do this and you had changed the document, you are asked for a
22490  description of the changes.
22491  After that changes are written to the repository.
22492  In case you didn't change the document and a reserved checkout is detected
22493  the reservation made on 
22494 \begin_inset Flex Noun
22495 status collapsed
22496
22497 \begin_layout Plain Layout
22498 Check Out
22499 \end_layout
22500
22501 \end_inset
22502
22503  is undone.
22504 \end_layout
22505
22506 \begin_layout Labeling
22507 \labelwidthstring 00.00.0000
22508 CVS
22509 \begin_inset space ~
22510 \end_inset
22511
22512 command: 
22513 \begin_inset space ~
22514 \end_inset
22515
22516
22517 \begin_inset Newline newline
22518 \end_inset
22519
22520
22521 \begin_inset Flex Code
22522 status collapsed
22523
22524 \begin_layout Plain Layout
22525 cvs 
22526 \family typewriter
22527 -q commit -m"<description>" "<file-name>"
22528 \end_layout
22529
22530 \end_inset
22531
22532  or
22533 \begin_inset Newline newline
22534 \end_inset
22535
22536
22537 \begin_inset Flex Code
22538 status collapsed
22539
22540 \begin_layout Plain Layout
22541 cvs -q unedit 
22542 \family typewriter
22543 "<file-name>"
22544 \end_layout
22545
22546 \end_inset
22547
22548
22549 \end_layout
22550
22551 \begin_layout Subsubsection
22552
22553 \family sans
22554 Check Out Changes
22555 \end_layout
22556
22557 \begin_layout Standard
22558 When you are sharing a repository with others, you may have to incorporate
22559  their changes into your working copy.
22560 \end_layout
22561
22562 \begin_layout Standard
22563 CVS command: 
22564 \family typewriter
22565 cvs -q update "<file-name>"
22566 \end_layout
22567
22568 \begin_layout Standard
22569 If a readonly checkout is detected the working copy is made writable and
22570  reserved.
22571 \end_layout
22572
22573 \begin_layout Standard
22574 CVS command: 
22575 \family typewriter
22576 cvs -q edit "<file-name>"
22577 \end_layout
22578
22579 \begin_layout Subsubsection
22580
22581 \family sans
22582 Revert To Repository Version
22583 \end_layout
22584
22585 \begin_layout Standard
22586 This will discard all changes made to the document since the last check
22587  in.
22588  You get a warning before changes are discarded.
22589  Firstly the file is deleted, secondly CVS update command is run.
22590 \end_layout
22591
22592 \begin_layout Standard
22593 CVS command: 
22594 \family typewriter
22595 cvs -q update "<file-name>"
22596 \end_layout
22597
22598 \begin_layout Standard
22599 If a reserved checkout is detected and the working copy has no changes only
22600  the reservation is undone.
22601 \end_layout
22602
22603 \begin_layout Standard
22604 CVS command: 
22605 \family typewriter
22606 cvs -q unedit "<file-name>"
22607 \end_layout
22608
22609 \begin_layout Subsubsection
22610
22611 \family sans
22612 Copy
22613 \end_layout
22614
22615 \begin_layout Standard
22616 This will create a copy of the current document.
22617  Since CVS does not support copy operations natively, the version history
22618  is not preserved, and the copy is added as a new file.
22619  It requires a clean document without any changes since the last checkin.
22620  You are asked for a file name and a description of the copy operation.
22621  After that the copy is created, both locally and in the repository.
22622  If the parent directories of the copied and original document differ, all
22623  relative paths of included files of the copy are adjusted (like in 
22624 \family sans
22625 File\SpecialChar menuseparator
22626 Save As
22627 \family default
22628 \SpecialChar ldots
22629 ).
22630  Finally, the copy is loaded instead of the original document.
22631 \end_layout
22632
22633 \begin_layout Labeling
22634 \labelwidthstring 00.00.0000
22635 CVS
22636 \begin_inset space ~
22637 \end_inset
22638
22639 commands: 
22640 \begin_inset space ~
22641 \end_inset
22642
22643
22644 \begin_inset Newline newline
22645 \end_inset
22646
22647 Copy 
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 "<file-name>"
22653 \end_layout
22654
22655 \end_inset
22656
22657  to 
22658 \begin_inset Flex Code
22659 status collapsed
22660
22661 \begin_layout Plain Layout
22662 "<new-file-name>"
22663 \end_layout
22664
22665 \end_inset
22666
22667
22668 \begin_inset Newline newline
22669 \end_inset
22670
22671
22672 \begin_inset Flex Code
22673 status collapsed
22674
22675 \begin_layout Plain Layout
22676 cvs -q add "<new-file-name>"
22677 \end_layout
22678
22679 \end_inset
22680
22681
22682 \end_layout
22683
22684 \begin_layout Subsubsection
22685
22686 \family sans
22687 Rename
22688 \end_layout
22689
22690 \begin_layout Standard
22691 This will rename the current document.
22692  Since CVS does not support rename operations natively, the version history
22693  is not preserved, the renamed document is added as a new file, and the
22694  original document is deleted.
22695  It requires a clean document without any changes since the last checkin.
22696  You are asked for a file name and a description of the rename operation.
22697  After that the document is renamed, both locally and in the repository.
22698  If the parent directories of the new and old file names differ, all relative
22699  paths of included files are adjusted (like in 
22700 \family sans
22701 File\SpecialChar menuseparator
22702 Save As
22703 \family default
22704 \SpecialChar ldots
22705 ).
22706  Finally, the document is reloaded using the new name.
22707 \end_layout
22708
22709 \begin_layout Labeling
22710 \labelwidthstring 00.00.0000
22711 CVS
22712 \begin_inset space ~
22713 \end_inset
22714
22715 commands: 
22716 \begin_inset space ~
22717 \end_inset
22718
22719
22720 \begin_inset Newline newline
22721 \end_inset
22722
22723 Rename 
22724 \begin_inset Flex Code
22725 status collapsed
22726
22727 \begin_layout Plain Layout
22728 "<file-name>"
22729 \end_layout
22730
22731 \end_inset
22732
22733  to 
22734 \begin_inset Flex Code
22735 status collapsed
22736
22737 \begin_layout Plain Layout
22738 "<new-file-name>"
22739 \end_layout
22740
22741 \end_inset
22742
22743
22744 \begin_inset Newline newline
22745 \end_inset
22746
22747
22748 \begin_inset Flex Code
22749 status collapsed
22750
22751 \begin_layout Plain Layout
22752 cvs -q add "<new-file-name>"
22753 \end_layout
22754
22755 \end_inset
22756
22757
22758 \begin_inset Newline newline
22759 \end_inset
22760
22761
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 cvs -q remove "<file-name>"
22767 \end_layout
22768
22769 \end_inset
22770
22771
22772 \end_layout
22773
22774 \begin_layout Subsubsection
22775 Update of the local directory checkout from repository
22776 \end_layout
22777
22778 \begin_layout Standard
22779 Once your documents gets more complex, containing sub-documents and pictures,
22780  including external 
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785 .tex
22786 \end_layout
22787
22788 \end_inset
22789
22790  files and so on using version control becomes more complicated.
22791  \SpecialChar LyX
22792  supports updating the whole tree in which resides the document.
22793  This become especially useful once you cooperate with people which neither
22794  have detailed knowledge about CVS usage nor they have ambition to commit
22795  additional material to the repository.
22796  You have to organize the files structure so that all external files are
22797  in the same directory or subdirectories of the document.
22798  It's good practice anyway to store multipart documents in an extra directory.
22799 \end_layout
22800
22801 \begin_layout Standard
22802 The 
22803 \begin_inset Flex Code
22804 status collapsed
22805
22806 \begin_layout Plain Layout
22807 Update local directory from repository
22808 \end_layout
22809
22810 \end_inset
22811
22812  command updates the whole directory.
22813  If local changes are detected user is warned before update starts.
22814  In case of merge conflicts both versions of the conflicting document parts
22815  are placed in the final document.
22816  You have to review and correct the result of the merge.
22817  You'll find the conflicts enclosed in pairs of 
22818 \begin_inset Flex Code
22819 status collapsed
22820
22821 \begin_layout Plain Layout
22822 <<<<<<<
22823 \end_layout
22824
22825 \end_inset
22826
22827  and 
22828 \begin_inset Flex Code
22829 status collapsed
22830
22831 \begin_layout Plain Layout
22832 >>>>>>>
22833 \end_layout
22834
22835 \end_inset
22836
22837  separated by 
22838 \begin_inset Flex Code
22839 status collapsed
22840
22841 \begin_layout Plain Layout
22842 =======
22843 \end_layout
22844
22845 \end_inset
22846
22847 .
22848  The first part is your version as before the update operation with the
22849  document name prepended.
22850  The second one is the repository version with the version number after
22851  the sequence of 
22852 \begin_inset Flex Code
22853 status collapsed
22854
22855 \begin_layout Plain Layout
22856 >
22857 \end_layout
22858
22859 \end_inset
22860
22861  signs.
22862 \end_layout
22863
22864 \begin_layout Labeling
22865 \labelwidthstring 00.00.0000
22866 CVS
22867 \begin_inset space ~
22868 \end_inset
22869
22870 commands: 
22871 \begin_inset space ~
22872 \end_inset
22873
22874
22875 \begin_inset Newline newline
22876 \end_inset
22877
22878
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 cd $path; cvs diff 
22884 \family typewriter
22885 "."
22886 \end_layout
22887
22888 \end_inset
22889
22890  (Ask if changes are detected.)
22891 \begin_inset Newline newline
22892 \end_inset
22893
22894
22895 \begin_inset Flex Code
22896 status collapsed
22897
22898 \begin_layout Plain Layout
22899 cd $path; cvs -q update 
22900 \family typewriter
22901 "."
22902 \end_layout
22903
22904 \end_inset
22905
22906
22907 \end_layout
22908
22909 \begin_layout Standard
22910 where 
22911 \begin_inset Flex Code
22912 status collapsed
22913
22914 \begin_layout Plain Layout
22915 $path
22916 \end_layout
22917
22918 \end_inset
22919
22920  stands for the path to the document.
22921 \end_layout
22922
22923 \begin_layout Subsubsection
22924
22925 \family sans
22926 Show History
22927 \end_layout
22928
22929 \begin_layout Standard
22930 This shows the complete history of the CVS document.
22931  The output of 
22932 \family typewriter
22933 cvs log "<file-name>"
22934 \family default
22935  is shown in a browser.
22936 \end_layout
22937
22938 \begin_layout Subsubsection
22939 Revision info
22940 \end_layout
22941
22942 \begin_layout Standard
22943 \SpecialChar LyX
22944  supports CVS version number, author name, date and time of last commit.
22945  All those are extracted from 
22946 \family typewriter
22947 cvs log -r <file-name>
22948 \family default
22949 .
22950  See 
22951 \begin_inset CommandInset ref
22952 LatexCommand ref
22953 reference "subsec:VCS-Revision-Information"
22954
22955 \end_inset
22956
22957  for details.
22958 \end_layout
22959
22960 \begin_layout Subsection
22961 SVN commands in \SpecialChar LyX
22962
22963 \end_layout
22964
22965 \begin_layout Standard
22966 SVN is now partially supported by \SpecialChar LyX
22967 .
22968  You can find the commands in the 
22969 \family sans
22970 File\SpecialChar menuseparator
22971 Version
22972 \begin_inset space ~
22973 \end_inset
22974
22975 Control
22976 \family default
22977  submenu.
22978  Please note that if you use password protected access to repository via
22979  ssh, you will be asked in terminal window.
22980  \SpecialChar LyX
22981  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22982 \begin_inset Foot
22983 status collapsed
22984
22985 \begin_layout Plain Layout
22986 Most of the commands will work with 1.4 too, see 
22987 \begin_inset CommandInset ref
22988 LatexCommand ref
22989 reference "subsec:SVN-Repo-Update"
22990
22991 \end_inset
22992
22993 .
22994  There seems to be currently unresolved permissions problem under SVN 1.8
22995  with reverting changes when file is locked.
22996 \end_layout
22997
22998 \end_inset
22999
23000
23001 \end_layout
23002
23003 \begin_layout Subsubsection
23004
23005 \family sans
23006 Register
23007 \end_layout
23008
23009 \begin_layout Standard
23010 If your document is not under revision control, this is the only item shown
23011  in the menu.
23012  And if it is under revision control, the 
23013 \family sans
23014 Register
23015 \family default
23016  item is not visible.
23017 \end_layout
23018
23019 \begin_layout Standard
23020 This command registers in SVN your document ONLY in case you have already
23021  the documents directory under SVN control (in particular 
23022 \family typewriter
23023 .svn/entries
23024 \family default
23025  file exists).
23026  This means you have to checkout the archive by yourself.
23027 \end_layout
23028
23029 \begin_layout Standard
23030 Then you are asked interactively to supply an initial description of the
23031  document.
23032  Don't forget that registered file is not yet commited.
23033 \end_layout
23034
23035 \begin_layout Standard
23036 SVN command that is run: 
23037 \family typewriter
23038 svn add -q 
23039 \begin_inset Quotes qld
23040 \end_inset
23041
23042 <file-name>
23043 \begin_inset Quotes qld
23044 \end_inset
23045
23046
23047 \end_layout
23048
23049 \begin_layout Standard
23050 Read 
23051 \family typewriter
23052 man svn
23053 \family default
23054  to understand the switches.
23055 \end_layout
23056
23057 \begin_layout Subsubsection
23058
23059 \family sans
23060 Check In Changes
23061 \end_layout
23062
23063 \begin_layout Standard
23064 When you are finished editing a file, you commit your changes.
23065  When you do this, you are asked for a description of the changes.
23066  After that changes are commited.
23067 \end_layout
23068
23069 \begin_layout Standard
23070 SVN command:
23071 \begin_inset Foot
23072 status collapsed
23073
23074 \begin_layout Plain Layout
23075 In case locking is not enabled.
23076  See Section 
23077 \begin_inset CommandInset ref
23078 LatexCommand ref
23079 reference "subsec:SVN-File-Locking"
23080
23081 \end_inset
23082
23083 .
23084 \end_layout
23085
23086 \end_inset
23087
23088  
23089 \family typewriter
23090 svn commit -q -m"<description>" <file-name>
23091 \end_layout
23092
23093 \begin_layout Subsubsection
23094
23095 \family sans
23096 Check Out For Edit
23097 \end_layout
23098
23099 \begin_layout Standard
23100 Updates the changes of this file from the repository.
23101  Be sure you understand SVN merging and conflicts resolving before using
23102  this function, because all conflicts has to be resolved manually by you!
23103 \end_layout
23104
23105 \begin_layout Standard
23106 SVN command:
23107 \begin_inset Foot
23108 status collapsed
23109
23110 \begin_layout Plain Layout
23111 Ditto.
23112 \end_layout
23113
23114 \end_inset
23115
23116  
23117 \family typewriter
23118 svn update --non-interactive 
23119 \begin_inset Quotes qld
23120 \end_inset
23121
23122 <file-name>
23123 \begin_inset Quotes qld
23124 \end_inset
23125
23126
23127 \end_layout
23128
23129 \begin_layout Subsubsection
23130
23131 \family sans
23132 Revert To Repository Version
23133 \end_layout
23134
23135 \begin_layout Standard
23136 This will discard all changes made to the document since the last check
23137  in.
23138  You get a warning before changes are discarded.
23139 \end_layout
23140
23141 \begin_layout Standard
23142 SVN command: 
23143 \family typewriter
23144 svn revert -q 
23145 \begin_inset Quotes qld
23146 \end_inset
23147
23148 <file-name>
23149 \begin_inset Quotes qld
23150 \end_inset
23151
23152
23153 \end_layout
23154
23155 \begin_layout Subsubsection
23156
23157 \family sans
23158 Copy
23159 \end_layout
23160
23161 \begin_layout Standard
23162 This will create a copy of the current document including the version history.
23163  It requires a clean document without any changes since the last checkin.
23164  You are asked for a file name and a description of the copy operation.
23165  After that the copy is created, both locally and in the repository.
23166  If the parent directories of the copied and original document differ, all
23167  relative paths of included files of the copy are adjusted (like in 
23168 \family sans
23169 File\SpecialChar menuseparator
23170 Save As
23171 \family default
23172 \SpecialChar ldots
23173 ).
23174  Finally, the copy is loaded instead of the original document.
23175 \end_layout
23176
23177 \begin_layout Labeling
23178 \labelwidthstring 00.00.0000
23179 SVN
23180 \begin_inset space ~
23181 \end_inset
23182
23183 commands: 
23184 \begin_inset space ~
23185 \end_inset
23186
23187
23188 \begin_inset Newline newline
23189 \end_inset
23190
23191
23192 \begin_inset Flex Code
23193 status collapsed
23194
23195 \begin_layout Plain Layout
23196 svn copy -q 
23197 \family typewriter
23198
23199 \begin_inset Quotes qld
23200 \end_inset
23201
23202 <file-name>
23203 \begin_inset Quotes qld
23204 \end_inset
23205
23206  
23207 \begin_inset Quotes qld
23208 \end_inset
23209
23210 <new-file-name>
23211 \begin_inset Quotes qld
23212 \end_inset
23213
23214
23215 \end_layout
23216
23217 \end_inset
23218
23219
23220 \begin_inset Newline newline
23221 \end_inset
23222
23223
23224 \begin_inset Flex Code
23225 status collapsed
23226
23227 \begin_layout Plain Layout
23228 svn commit
23229 \end_layout
23230
23231 \end_inset
23232
23233
23234 \end_layout
23235
23236 \begin_layout Subsubsection
23237
23238 \family sans
23239 Rename
23240 \end_layout
23241
23242 \begin_layout Standard
23243 This will rename the current document including the version history.
23244  It requires a clean document without any changes since the last checkin.
23245  You are asked for a file name and a description of the rename operation.
23246  After that the document is renamed, both locally and in the repository.
23247  If the parent directories of the new and old file names differ, all relative
23248  paths of included files are adjusted (like in 
23249 \family sans
23250 File\SpecialChar menuseparator
23251 Save As
23252 \family default
23253 \SpecialChar ldots
23254 ).
23255  Finally, the document is reloaded using the new name.
23256 \end_layout
23257
23258 \begin_layout Labeling
23259 \labelwidthstring 00.00.0000
23260 SVN
23261 \begin_inset space ~
23262 \end_inset
23263
23264 commands: 
23265 \begin_inset space ~
23266 \end_inset
23267
23268
23269 \begin_inset Newline newline
23270 \end_inset
23271
23272
23273 \begin_inset Flex Code
23274 status collapsed
23275
23276 \begin_layout Plain Layout
23277 svn move -q 
23278 \family typewriter
23279
23280 \begin_inset Quotes qld
23281 \end_inset
23282
23283 <file-name>
23284 \begin_inset Quotes qld
23285 \end_inset
23286
23287  
23288 \begin_inset Quotes qld
23289 \end_inset
23290
23291 <new-file-name>
23292 \begin_inset Quotes qld
23293 \end_inset
23294
23295
23296 \end_layout
23297
23298 \end_inset
23299
23300
23301 \begin_inset Newline newline
23302 \end_inset
23303
23304
23305 \begin_inset Flex Code
23306 status collapsed
23307
23308 \begin_layout Plain Layout
23309 svn commit
23310 \end_layout
23311
23312 \end_inset
23313
23314
23315 \end_layout
23316
23317 \begin_layout Subsubsection
23318 \begin_inset CommandInset label
23319 LatexCommand label
23320 name "subsec:SVN-Repo-Update"
23321
23322 \end_inset
23323
23324 Update of the local directory checkout from repository
23325 \begin_inset Foot
23326 status collapsed
23327
23328 \begin_layout Plain Layout
23329 Note that this command will work only with subversion 
23330 \begin_inset Formula $\geqq1.5$
23331 \end_inset
23332
23333
23334 \end_layout
23335
23336 \end_inset
23337
23338
23339 \end_layout
23340
23341 \begin_layout Standard
23342 All the commands above have one shortcoming – they deal with the current
23343  document only.
23344  Once your document contains pictures, includes external 
23345 \begin_inset Flex Code
23346 status collapsed
23347
23348 \begin_layout Plain Layout
23349 .tex
23350 \end_layout
23351
23352 \end_inset
23353
23354  files and so on administration becomes more complicated.
23355  \SpecialChar LyX
23356  now supports updating the whole tree in which resides the document
23357 \begin_inset Foot
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361 One need to organize the files structure so that all external files are
23362  in the same directory or subdirectories of the document.
23363  
23364 \end_layout
23365
23366 \end_inset
23367
23368 .
23369  This become especially useful once you cooperate with people which neither
23370  know about subversion management nor they have ambition to commit additional
23371  material to the repository.
23372  
23373 \end_layout
23374
23375 \begin_layout Standard
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380 Update local directory from repository
23381 \end_layout
23382
23383 \end_inset
23384
23385  command updates the whole directory and in case of merge conflicts local
23386  version of the files are left, so no unintended data loss occurs.
23387  If local changes are detected user is warned before update starts.
23388 \end_layout
23389
23390 \begin_layout Labeling
23391 \labelwidthstring 00.00.0000
23392 SVN
23393 \begin_inset space ~
23394 \end_inset
23395
23396 commands: 
23397 \begin_inset space ~
23398 \end_inset
23399
23400
23401 \begin_inset Newline newline
23402 \end_inset
23403
23404
23405 \begin_inset Flex Code
23406 status collapsed
23407
23408 \begin_layout Plain Layout
23409 svn diff $path
23410 \end_layout
23411
23412 \end_inset
23413
23414  (Ask if changes are detected.)
23415 \begin_inset Newline newline
23416 \end_inset
23417
23418
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423 svn update --accept mine-full $path
23424 \end_layout
23425
23426 \end_inset
23427
23428
23429 \end_layout
23430
23431 \begin_layout Standard
23432 where 
23433 \begin_inset Flex Code
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437 $path
23438 \end_layout
23439
23440 \end_inset
23441
23442  stands for the path to the document.
23443 \end_layout
23444
23445 \begin_layout Subsubsection
23446
23447 \family sans
23448 Show History
23449 \end_layout
23450
23451 \begin_layout Standard
23452 This shows the complete history of the SVN document.
23453  The output of 
23454 \family typewriter
23455 svn log 
23456 \begin_inset Quotes qld
23457 \end_inset
23458
23459 <file-name>
23460 \begin_inset Quotes qld
23461 \end_inset
23462
23463
23464 \family default
23465  is shown in a browser.
23466 \end_layout
23467
23468 \begin_layout Subsubsection
23469 File Locking
23470 \begin_inset CommandInset label
23471 LatexCommand label
23472 name "subsec:SVN-File-Locking"
23473
23474 \end_inset
23475
23476
23477 \end_layout
23478
23479 \begin_layout Standard
23480 The file exchange through various revision control systems brings the problem
23481  of merge conflicts in case two different users try to edit the same (parts
23482  of) document.
23483  When such a conflict happens it needs manual resolving and one reasonable
23484  alternative is to provide some kind of locking mechanism, which guarantees
23485  that only one user is allowed to edit file at the given time.
23486 \end_layout
23487
23488 \begin_layout Standard
23489 SVN has two such mechanisms to provide mutual exclusivity for file access
23490  – locks and automatic setting of write permissions (see sec.
23491  
23492 \begin_inset CommandInset ref
23493 LatexCommand ref
23494 reference "subsec:Automatical-Locking-Property"
23495
23496 \end_inset
23497
23498 ) based on 
23499 \begin_inset Flex Code
23500 status collapsed
23501
23502 \begin_layout Plain Layout
23503 svn:needs-lock
23504 \end_layout
23505
23506 \end_inset
23507
23508  file svn property
23509 \begin_inset Foot
23510 status collapsed
23511
23512 \begin_layout Plain Layout
23513 \begin_inset Flex URL
23514 status open
23515
23516 \begin_layout Plain Layout
23517
23518 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23519 \end_layout
23520
23521 \end_inset
23522
23523
23524 \end_layout
23525
23526 \end_inset
23527
23528 .
23529  If this property is detected for a given document \SpecialChar LyX
23530  starts to use SVN locks
23531  for document editing automatically and the whole check-in/out mechanism
23532  switches to the same regimen as for RCS.
23533  This in particular means there are two different modes of file use in \SpecialChar LyX
23534 :
23535 \end_layout
23536
23537 \begin_layout Itemize
23538 Unlocked state.
23539  The loaded file is in the read-only mode.
23540  For editing on needs to check-out.
23541  
23542 \emph on
23543 Check-out
23544 \emph default
23545  consists of updating from the repository and gaining write lock.
23546  If the lock is not possible to obtain, we remain in unlocked state.
23547 \end_layout
23548
23549 \begin_layout Itemize
23550 Locked state.
23551  The loaded file is in the 
23552 \begin_inset Quotes els
23553 \end_inset
23554
23555 normal
23556 \begin_inset Quotes ers
23557 \end_inset
23558
23559  edit mode.
23560  No other user is allowed to edit the file.
23561  
23562 \emph on
23563 Check-in
23564 \emph default
23565  consists of commiting changes and releasing write-lock.
23566  If no changes have been made to the document, no commit will be produced
23567 \begin_inset Foot
23568 status collapsed
23569
23570 \begin_layout Plain Layout
23571 Don't be puzzled by the fact that you will be asked for commit message anyway.
23572 \end_layout
23573
23574 \end_inset
23575
23576  and only the write-lock will be released.
23577 \end_layout
23578
23579 \begin_layout Standard
23580 SVN commands:
23581 \end_layout
23582
23583 \begin_layout Labeling
23584 \labelwidthstring 00.00.0000
23585 Check-in:
23586 \family typewriter
23587  svn commit -q -m"<description>" "<file-name>"
23588 \begin_inset Newline newline
23589 \end_inset
23590
23591 svn unlock "<file-name>"
23592 \end_layout
23593
23594 \begin_layout Labeling
23595 \labelwidthstring 00.00.0000
23596 Check-out: 
23597 \family typewriter
23598 svn update "<file-name>"
23599 \begin_inset Newline newline
23600 \end_inset
23601
23602 svn lock "<file-name>"
23603 \end_layout
23604
23605 \begin_layout Subsubsection
23606
23607 \family typewriter
23608 \begin_inset CommandInset label
23609 LatexCommand label
23610 name "subsec:Automatical-Locking-Property"
23611
23612 \end_inset
23613
23614
23615 \family default
23616 Automatic Locking Property
23617 \end_layout
23618
23619 \begin_layout Standard
23620 The above mentioned automatic setting of write permissions of the .lyx file
23621  can be set through
23622 \family sans
23623  File\SpecialChar menuseparator
23624 Version
23625 \begin_inset space ~
23626 \end_inset
23627
23628 Control\SpecialChar menuseparator
23629 Use Locking Property
23630 \family default
23631 .
23632  This command is active only when the file is not locked on the svn server
23633  (i.e.
23634  you need to check-out before proceeding).
23635 \end_layout
23636
23637 \begin_layout Labeling
23638 \labelwidthstring 00.00.0000
23639 SVN
23640 \begin_inset space ~
23641 \end_inset
23642
23643 commands:
23644 \end_layout
23645
23646 \begin_layout Labeling
23647 \labelwidthstring 00.00.0000
23648 Set:
23649 \family typewriter
23650  svn propset svn:needs-lock ON "<file-name>"
23651 \end_layout
23652
23653 \begin_layout Labeling
23654 \labelwidthstring 00.00.0000
23655 Unset: 
23656 \family typewriter
23657 svn propdel svn:needs-lock "<file-name>"
23658 \end_layout
23659
23660 \begin_layout Subsubsection
23661 \begin_inset CommandInset label
23662 LatexCommand label
23663 name "subsec:VCS-Revision-Information"
23664
23665 \end_inset
23666
23667 Revision Information in Documents
23668 \end_layout
23669
23670 \begin_layout Standard
23671 There are more possibilities how to activate revision information in our
23672  document.
23673 \end_layout
23674
23675 \begin_layout Itemize
23676 \SpecialChar LyX
23677  supports directly:
23678 \end_layout
23679
23680 \begin_deeper
23681 \begin_layout Itemize
23682 tree revision information (
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687 vcs-tree-revision
23688 \end_layout
23689
23690 \end_inset
23691
23692 ).
23693  The result is the output of the 
23694 \begin_inset Flex Code
23695 status collapsed
23696
23697 \begin_layout Plain Layout
23698 svnversion
23699 \end_layout
23700
23701 \end_inset
23702
23703  command, the following table gives you an idea, how to read the results.
23704 \end_layout
23705
23706 \begin_layout Standard
23707 \align center
23708 \begin_inset Tabular
23709 <lyxtabular version="3" rows="6" columns="2">
23710 <features tabularvalignment="middle">
23711 <column alignment="left" valignment="top">
23712 <column alignment="left" valignment="top">
23713 <row>
23714 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23715 \begin_inset Text
23716
23717 \begin_layout Plain Layout
23718
23719 \series bold
23720 Output
23721 \end_layout
23722
23723 \end_inset
23724 </cell>
23725 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23726 \begin_inset Text
23727
23728 \begin_layout Plain Layout
23729
23730 \series bold
23731 Meaning
23732 \end_layout
23733
23734 \end_inset
23735 </cell>
23736 </row>
23737 <row>
23738 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23739 \begin_inset Text
23740
23741 \begin_layout Plain Layout
23742 4123:4168
23743 \end_layout
23744
23745 \end_inset
23746 </cell>
23747 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23748 \begin_inset Text
23749
23750 \begin_layout Plain Layout
23751 mixed revision working copy
23752 \end_layout
23753
23754 \end_inset
23755 </cell>
23756 </row>
23757 <row>
23758 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23759 \begin_inset Text
23760
23761 \begin_layout Plain Layout
23762 4168M
23763 \end_layout
23764
23765 \end_inset
23766 </cell>
23767 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23768 \begin_inset Text
23769
23770 \begin_layout Plain Layout
23771 modified working copy
23772 \end_layout
23773
23774 \end_inset
23775 </cell>
23776 </row>
23777 <row>
23778 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23779 \begin_inset Text
23780
23781 \begin_layout Plain Layout
23782 4123S
23783 \end_layout
23784
23785 \end_inset
23786 </cell>
23787 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23788 \begin_inset Text
23789
23790 \begin_layout Plain Layout
23791 switched working copy
23792 \end_layout
23793
23794 \end_inset
23795 </cell>
23796 </row>
23797 <row>
23798 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23799 \begin_inset Text
23800
23801 \begin_layout Plain Layout
23802 4123P
23803 \end_layout
23804
23805 \end_inset
23806 </cell>
23807 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23808 \begin_inset Text
23809
23810 \begin_layout Plain Layout
23811 partial working copy, from a sparse checkout
23812 \end_layout
23813
23814 \end_inset
23815 </cell>
23816 </row>
23817 <row>
23818 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23819 \begin_inset Text
23820
23821 \begin_layout Plain Layout
23822 4123:4168MS
23823 \end_layout
23824
23825 \end_inset
23826 </cell>
23827 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23828 \begin_inset Text
23829
23830 \begin_layout Plain Layout
23831 mixed revision, modified, switched working copy
23832 \end_layout
23833
23834 \end_inset
23835 </cell>
23836 </row>
23837 </lyxtabular>
23838
23839 \end_inset
23840
23841
23842 \end_layout
23843
23844 \begin_layout Itemize
23845 file revision information.
23846  The result comes from parsing the output of 
23847 \begin_inset Flex Code
23848 status collapsed
23849
23850 \begin_layout Plain Layout
23851 svn
23852 \begin_inset space ~
23853 \end_inset
23854
23855 info
23856 \begin_inset space ~
23857 \end_inset
23858
23859 --xml
23860 \begin_inset space ~
23861 \end_inset
23862
23863 file.lyx
23864 \end_layout
23865
23866 \end_inset
23867
23868 .
23869  Supported flags are:
23870 \end_layout
23871
23872 \begin_deeper
23873 \begin_layout Itemize
23874 version number of the last commit (
23875 \begin_inset Flex Code
23876 status collapsed
23877
23878 \begin_layout Plain Layout
23879 vcs-revision
23880 \end_layout
23881
23882 \end_inset
23883
23884 )
23885 \end_layout
23886
23887 \begin_layout Itemize
23888 author of the last commit (
23889 \begin_inset Flex Code
23890 status collapsed
23891
23892 \begin_layout Plain Layout
23893 vcs-author
23894 \end_layout
23895
23896 \end_inset
23897
23898 )
23899 \end_layout
23900
23901 \begin_layout Itemize
23902 date of the last commit (
23903 \begin_inset Flex Code
23904 status collapsed
23905
23906 \begin_layout Plain Layout
23907 vcs-date
23908 \end_layout
23909
23910 \end_inset
23911
23912 )
23913 \end_layout
23914
23915 \begin_layout Itemize
23916 time of the last commit (
23917 \begin_inset Flex Code
23918 status collapsed
23919
23920 \begin_layout Plain Layout
23921 vcs-time
23922 \end_layout
23923
23924 \end_inset
23925
23926 )
23927 \end_layout
23928
23929 \end_deeper
23930 \begin_layout Standard
23931 You can obtain this info via InsetInfo (
23932 \change_inserted 5863208 1564400022
23933
23934 \lang american
23935 Insert\SpecialChar menuseparator
23936 Field\SpecialChar menuseparator
23937 Version Control Revision
23938 \change_deleted 5863208 1564399852
23939
23940 \lang english
23941 e.g.
23942  
23943 \begin_inset Flex Code
23944 status collapsed
23945
23946 \begin_layout Plain Layout
23947 info-insert buffer vcs-date
23948 \end_layout
23949
23950 \end_inset
23951
23952
23953 \change_unchanged
23954 ).
23955  The information will be available only when you have the file stored under
23956  svn managment (i.e.
23957  the 
23958 \begin_inset Flex Code
23959 status collapsed
23960
23961 \begin_layout Plain Layout
23962 .svn
23963 \end_layout
23964
23965 \end_inset
23966
23967  directory is available with your document).
23968 \end_layout
23969
23970 \end_deeper
23971 \begin_layout Itemize
23972 Another—a hacking one—possibility is to use svn keywords
23973 \begin_inset Foot
23974 status collapsed
23975
23976 \begin_layout Plain Layout
23977 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23978 \end_layout
23979
23980 \end_inset
23981
23982 .
23983  In short – you set file keywords property (e.g.
23984  
23985 \family sans
23986 svn propset svn:keywords 'Rev' file.lyx
23987 \family default
23988 ) and then paste keyword \SpecialChar TeX
23989  code
23990 \begin_inset Foot
23991 status collapsed
23992
23993 \begin_layout Plain Layout
23994 This is an easy way how to ensure that \SpecialChar LyX
23995  won't break the line in the middle
23996  of keyword tag.
23997 \end_layout
23998
23999 \end_inset
24000
24001  tag in your document (e.g.
24002  
24003 \begin_inset Flex Code
24004 status collapsed
24005
24006 \begin_layout Plain Layout
24007 $Rev$
24008 \end_layout
24009
24010 \end_inset
24011
24012 ).
24013  This way svn client will automatically substitute revision number (e.g.
24014  
24015 \begin_inset Flex Code
24016 status collapsed
24017
24018 \begin_layout Plain Layout
24019 $Rev: 59 $
24020 \end_layout
24021
24022 \end_inset
24023
24024 ) after each update and commit.
24025  There are more problems with this approach.
24026  Firstly, the '$' character is used in \SpecialChar TeX
24027  world for math equations, so any
24028  occurence of math formula 
24029 \begin_inset Formula $Rev$
24030 \end_inset
24031
24032  become 
24033 \begin_inset Formula $Rev:59$
24034 \end_inset
24035
24036  in your \SpecialChar LyX
24037  document.
24038  Similarly for other keywords like Id, Date, Author, etc.
24039  Secondly svn output is dependent on your locales, so its very easy that
24040  svn would produce some problematic strings once Date is used.
24041  Thirdly you get the whole 'Rev: 59' string in your document instead of
24042  the plain number.
24043  Until subversion implements user's custom keywords it will be hard to use
24044  this approach reliably or let \SpecialChar LyX
24045  to support it directly.
24046 \end_layout
24047
24048 \begin_layout Subsection
24049 SVN and Windows Environment
24050 \end_layout
24051
24052 \begin_layout Quote
24053 My inclination is to say that if the user cannot figure out the command
24054  line operations on their own fairly quickly, they would be well advised
24055  to use TortoiseSVN.
24056  —P.
24057  A.
24058  Rubin
24059 \end_layout
24060
24061 \begin_layout Subsubsection
24062 Preparation
24063 \end_layout
24064
24065 \begin_layout Standard
24066 In addition to installing \SpecialChar LyX
24067 , and having access to a Subversion repository,
24068  the user will need to install the Subversion client program.
24069  A Windows installer for the client program is available from 
24070 \begin_inset CommandInset href
24071 LatexCommand href
24072 name "CollabNet"
24073 target "http://www.collab.net/nonav/downloads/subversion/"
24074 literal "false"
24075
24076 \end_inset
24077
24078 .
24079  The user may also want to install 
24080 \begin_inset CommandInset href
24081 LatexCommand href
24082 name "TortoiseSVN"
24083 target "http://tortoisesvn.tigris.org/"
24084 literal "false"
24085
24086 \end_inset
24087
24088 , which integrates Subversion operations into the context (rightclick) menu
24089  of Windows Explorer.
24090  Operations done outside \SpecialChar LyX
24091  will typically be more convenient using the Explorer
24092  context menu.
24093  Note that TortoiseSVN is not a replacement for the client program, which
24094  is what \SpecialChar LyX
24095  itself will use.
24096 \end_layout
24097
24098 \begin_layout Subsubsection
24099 Bringing a document under Subversion control
24100 \end_layout
24101
24102 \begin_layout Standard
24103 Before a \SpecialChar LyX
24104  document can be brought under version control in Subversion, its
24105  parent directory needs to be under version control.
24106  If the document is being added to a project already in the repository,
24107  this is accomplished by checking the project out to the directory where
24108  the new document will be placed.
24109  If the project itself is not yet under version control (for instance, if
24110  this document starts a new project), the directory must be imported into
24111  the repository.
24112  This is done outside \SpecialChar LyX
24113 .
24114  Both import and checkout are easily accomplished from the Explorer context
24115  menu using TortoiseSVN, or alternatively can be done using the command
24116  line client at a DOS prompt.
24117  The procedure for importing the project using TortoiseSVN is described
24118  below, assuming an existing repository and a new project being started
24119  in 
24120 \family typewriter
24121 C:
24122 \backslash
24123 new project
24124 \family default
24125 .
24126  For information on using the Subversion client program, run 
24127 \family typewriter
24128 svn --help 
24129 \family default
24130 in a DOS shell.
24131 \end_layout
24132
24133 \begin_layout Enumerate
24134 Locate 
24135 \family typewriter
24136 C:
24137 \backslash
24138 new project 
24139 \family default
24140 in Windows Explorer, right click it, and select 
24141 \family sans
24142 TortoiseSVN\SpecialChar menuseparator
24143 Repo-browser
24144 \family default
24145 .
24146  If necessary, adjust the URL for the repository, then click OK.
24147 \end_layout
24148
24149 \begin_layout Enumerate
24150 Right click the level of the repository under which you want to place the
24151  new project folder (typically the top level) and click 
24152 \family sans
24153 Create folder
24154 \family default
24155  Supply a name for the project folder and click OK.
24156  Add a message for the log file if desired, then click OK again.
24157  The new project folder should appear in the repository.
24158  Finally, click OK again to exit the repository browser.
24159 \end_layout
24160
24161 \begin_layout Enumerate
24162 Once again right click 
24163 \family typewriter
24164 C:
24165 \backslash
24166 new project
24167 \family default
24168 , this time selecting SVN Checkout\SpecialChar ldots
24169  Select the URL of the project folder
24170  you just created in the repository, and set the checkout directory to 
24171 \family typewriter
24172 C:
24173 \backslash
24174 new project.
24175
24176 \family default
24177  Click OK.
24178  You will be warned about a non-empty folder; click OK to proceed.
24179  You should now have a 
24180 \family typewriter
24181 .svn
24182 \family default
24183  directory under 
24184 \family typewriter
24185 C:
24186 \backslash
24187 new project.
24188 \end_layout
24189
24190 \begin_layout Enumerate
24191 Create or open your document in \SpecialChar LyX
24192  and click 
24193 \family sans
24194 File\SpecialChar menuseparator
24195 Version
24196 \begin_inset space ~
24197 \end_inset
24198
24199 Control\SpecialChar menuseparator
24200 Register.
24201  
24202 \family default
24203 Add a log message and click OK to commit the document to version control.
24204 \end_layout
24205
24206 \begin_layout Standard
24207 From this point onward, you should have full functionality in the 
24208 \family sans
24209 File\SpecialChar menuseparator
24210 Version
24211 \begin_inset space ~
24212 \end_inset
24213
24214 Control
24215 \family default
24216  menu.
24217  You also have the option of checking the document in and out, viewing its
24218  history, etc.
24219  using the TortoiseSVN context menu in Windows Explorer or the Subversion
24220  client program from a command prompt.
24221 \end_layout
24222
24223 \begin_layout Subsubsection
24224 SSH tunnel used with SVN under Windows
24225 \end_layout
24226
24227 \begin_layout Standard
24228 Compared with Linux setting up an svn client to communicate over ssh under
24229  Windows is a rather troublesome task.
24230  We will at least offer some hints how to setup the client side but prior
24231  knowledge about ssh and the Windows command line is needed, also be prepared
24232  for a great deal of frustration\SpecialChar ldots
24233
24234 \end_layout
24235
24236 \begin_layout Enumerate
24237 Get an svn client for windows, as described in the previous sections.
24238  When it is a fresh install run some svn command (e.g.
24239  
24240 \begin_inset Flex Code
24241 status collapsed
24242
24243 \begin_layout Plain Layout
24244 svn --version
24245 \end_layout
24246
24247 \end_inset
24248
24249 ) to create config files, which you will need to change later on.
24250 \end_layout
24251
24252 \begin_layout Enumerate
24253 Choose an ssh client for Windows.
24254  There are several possibilities, we will use the one from Putty tools
24255 \begin_inset Foot
24256 status collapsed
24257
24258 \begin_layout Plain Layout
24259 \begin_inset Flex URL
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263
24264 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
24265 \end_layout
24266
24267 \end_inset
24268
24269
24270 \end_layout
24271
24272 \end_inset
24273
24274 .
24275  You will need to set the connection up so that the client doesn't ask for
24276  any password from you.
24277  To keep things easy we will use only keys without any additional password
24278  protection etc.
24279 \end_layout
24280
24281 \begin_deeper
24282 \begin_layout Enumerate
24283 Generate keys by 
24284 \begin_inset Flex Code
24285 status collapsed
24286
24287 \begin_layout Plain Layout
24288 puttygen
24289 \end_layout
24290
24291 \end_inset
24292
24293 .
24294  Save your private .ppk key file and put the public one on the server side.
24295  If the SVN server runs on Linux, note that the format of the public key
24296  is not compatible with Linux openssh and you will need to direcly copy-paste
24297  the key from the 
24298 \begin_inset Quotes eld
24299 \end_inset
24300
24301
24302 \emph on
24303 Public key for pasting into OpenSSH authorized_keys file
24304 \emph default
24305 :
24306 \begin_inset Quotes erd
24307 \end_inset
24308
24309  edit field into the server's 
24310 \begin_inset Flex Code
24311 status collapsed
24312
24313 \begin_layout Plain Layout
24314 ~/.ssh/authorized_keys
24315 \end_layout
24316
24317 \end_inset
24318
24319  / 
24320 \begin_inset Flex Code
24321 status collapsed
24322
24323 \begin_layout Plain Layout
24324 authorized_keys2
24325 \end_layout
24326
24327 \end_inset
24328
24329  file.
24330 \end_layout
24331
24332 \begin_layout Enumerate
24333 Get the Putty's 
24334 \begin_inset Flex Code
24335 status collapsed
24336
24337 \begin_layout Plain Layout
24338 plink
24339 \end_layout
24340
24341 \end_inset
24342
24343 .
24344  In the SVN config file
24345 \begin_inset Foot
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 Exact path depends on Windows version, usually somewhere around 
24350 \begin_inset Flex Code
24351 status collapsed
24352
24353 \begin_layout Plain Layout
24354 c:
24355 \backslash
24356 Documents and Settings
24357 \backslash
24358 user
24359 \backslash
24360 Application Data
24361 \backslash
24362 Subversion
24363 \backslash
24364 config
24365 \end_layout
24366
24367 \end_inset
24368
24369  / 
24370 \begin_inset Flex Code
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374 AppData
24375 \backslash
24376 Roaming
24377 \backslash
24378 Subversion
24379 \end_layout
24380
24381 \end_inset
24382
24383 .
24384 \end_layout
24385
24386 \end_inset
24387
24388 , section [tunnels], setup ssh command, e.g.
24389  
24390 \begin_inset Flex Code
24391 status collapsed
24392
24393 \begin_layout Plain Layout
24394 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24395 \end_layout
24396
24397 \end_inset
24398
24399 .
24400 \begin_inset Foot
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404 It will usually take a lot of time to get exact command right and it depends
24405  on many things.
24406  For example do not have some remote server saved as a default session in
24407  Putty etc.
24408  If things fail, try to connect via plink without SVN first.
24409 \end_layout
24410
24411 \end_inset
24412
24413
24414 \end_layout
24415
24416 \end_deeper
24417 \begin_layout Enumerate
24418 Checkout the SVN archive, e.
24419 \begin_inset space \thinspace{}
24420 \end_inset
24421
24422 g.
24423 \begin_inset Newline newline
24424 \end_inset
24425
24426
24427 \begin_inset Flex Code
24428 status collapsed
24429
24430 \begin_layout Plain Layout
24431 svn co svn+ssh://user@server/repository_path
24432 \end_layout
24433
24434 \end_inset
24435
24436 .
24437 \end_layout
24438
24439 \begin_layout Subsubsection
24440 End-of-Line Conversions
24441 \end_layout
24442
24443 \begin_layout Standard
24444 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24445  will
24446  use different line endings inside the .lyx files.
24447  This is not a problem as far as \SpecialChar LyX
24448  functionality is concerned, but the commit
24449  diffs will be huge and merge-conflicts prone.
24450  Fortunately SVN itself knows
24451 \begin_inset Foot
24452 status collapsed
24453
24454 \begin_layout Plain Layout
24455 \begin_inset Flex URL
24456 status collapsed
24457
24458 \begin_layout Plain Layout
24459
24460 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24461 \end_layout
24462
24463 \end_inset
24464
24465
24466 \end_layout
24467
24468 \end_inset
24469
24470  how to deal with CR/LF problems when switching .lyx files to the 
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 native
24476 \end_layout
24477
24478 \end_inset
24479
24480  mode.
24481 \begin_inset Foot
24482 status collapsed
24483
24484 \begin_layout Plain Layout
24485 For the lazy guys: 
24486 \begin_inset Flex Code
24487 status collapsed
24488
24489 \begin_layout Plain Layout
24490 svn propset svn:eol-style native FILE_NAME
24491 \end_layout
24492
24493 \end_inset
24494
24495
24496 \end_layout
24497
24498 \end_inset
24499
24500
24501 \end_layout
24502
24503 \begin_layout Subsection
24504 GIT commands in \SpecialChar LyX
24505
24506 \end_layout
24507
24508 \begin_layout Standard
24509 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24510 .
24511  You can find the commands in the 
24512 \family sans
24513 File\SpecialChar menuseparator
24514 Version
24515 \begin_inset space ~
24516 \end_inset
24517
24518 Control
24519 \family default
24520  submenu.
24521  Please note that if you use password protected access to repository via
24522  ssh, you will be asked in terminal window.
24523  \SpecialChar LyX
24524  was tested against GIT 1.7.
24525 \begin_inset Foot
24526 status collapsed
24527
24528 \begin_layout Plain Layout
24529 Windows users please note that you need to ensure that git is on the path.
24530  This can be set from within \SpecialChar LyX
24531  at 
24532 \family sans
24533 Tools\SpecialChar menuseparator
24534 Preferences\SpecialChar menuseparator
24535 Paths\SpecialChar menuseparator
24536 PATH prefix
24537 \family default
24538 .
24539 \end_layout
24540
24541 \end_inset
24542
24543
24544 \end_layout
24545
24546 \begin_layout Standard
24547 One big difference of GIT and the other supported version control systems
24548  is the distributed nature of GIT: With traditional version control systems
24549  there is one central server which hosts the repository.
24550  Users commit their changes to the server, and get updates made by other
24551  users from it.
24552  With GIT, users commit to a local repository.
24553  The local repository can be synchronized with one or more remote repositories
24554  using the 
24555 \begin_inset Flex Code
24556 status collapsed
24557
24558 \begin_layout Plain Layout
24559 pull
24560 \end_layout
24561
24562 \end_inset
24563
24564  and 
24565 \begin_inset Flex Code
24566 status collapsed
24567
24568 \begin_layout Plain Layout
24569 push
24570 \end_layout
24571
24572 \end_inset
24573
24574  GIT commands.
24575  \SpecialChar LyX
24576  does not interact in any way with remote GIT repositories.
24577  It works exclusively with the local repository in a very similar way as
24578  with a central CVS or SVN repository.
24579  If you use remote GIT repositories you need to do the 
24580 \begin_inset Flex Code
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584 pull
24585 \end_layout
24586
24587 \end_inset
24588
24589  and 
24590 \begin_inset Flex Code
24591 status collapsed
24592
24593 \begin_layout Plain Layout
24594 push
24595 \end_layout
24596
24597 \end_inset
24598
24599  operations with your favourite GIT client.
24600 \end_layout
24601
24602 \begin_layout Subsubsection
24603
24604 \family sans
24605 Register
24606 \end_layout
24607
24608 \begin_layout Standard
24609 If your document is not under revision control, this is the only item shown
24610  in the menu.
24611  And if it is under revision control, the 
24612 \family sans
24613 Register
24614 \family default
24615  item is not visible.
24616 \end_layout
24617
24618 \begin_layout Standard
24619 This command registers in GIT your document ONLY in case you have already
24620  the documents directory under GIT control (in particular 
24621 \family typewriter
24622 .git/index
24623 \family default
24624  file exists).
24625  This means you have to checkout the archive by yourself.
24626 \end_layout
24627
24628 \begin_layout Standard
24629 Then you are asked interactively to supply an initial description of the
24630  document.
24631  Don't forget that registered file is not yet committed.
24632 \end_layout
24633
24634 \begin_layout Standard
24635 GIT command that is run: 
24636 \family typewriter
24637 git add 
24638 \begin_inset Quotes qld
24639 \end_inset
24640
24641 <file-name>
24642 \begin_inset Quotes qld
24643 \end_inset
24644
24645
24646 \end_layout
24647
24648 \begin_layout Standard
24649 Read 
24650 \family typewriter
24651 man git
24652 \family default
24653  to understand the switches.
24654 \end_layout
24655
24656 \begin_layout Subsubsection
24657
24658 \family sans
24659 Check In Changes
24660 \end_layout
24661
24662 \begin_layout Standard
24663 When you are finished editing a file, you commit your changes.
24664  When you do this, you are asked for a description of the changes.
24665  After that changes are committed.
24666 \end_layout
24667
24668 \begin_layout Standard
24669 GIT command: 
24670 \family typewriter
24671 git commit -q -m"<description>" <file-name>
24672 \end_layout
24673
24674 \begin_layout Subsubsection
24675
24676 \family sans
24677 Revert To Repository Version
24678 \end_layout
24679
24680 \begin_layout Standard
24681 This will discard all changes made to the document since the last check
24682  in.
24683  You get a warning before changes are discarded.
24684 \end_layout
24685
24686 \begin_layout Standard
24687 GIT command: 
24688 \family typewriter
24689 git checkout -q 
24690 \begin_inset Quotes qld
24691 \end_inset
24692
24693 <file-name>
24694 \begin_inset Quotes qld
24695 \end_inset
24696
24697
24698 \end_layout
24699
24700 \begin_layout Subsubsection
24701
24702 \family sans
24703 Rename
24704 \end_layout
24705
24706 \begin_layout Standard
24707 This will rename the current document including the version history.
24708  It requires a clean document without any changes since the last checkin.
24709  You are asked for a file name and a description of the rename operation.
24710  After that the document is renamed, both locally and in the repository.
24711  If the parent directories of the new and old file names differ, all relative
24712  paths of included files are adjusted (like in 
24713 \family sans
24714 File\SpecialChar menuseparator
24715 Save As
24716 \family default
24717 \SpecialChar ldots
24718 ).
24719  Finally, the document is reloaded using the new name.
24720 \end_layout
24721
24722 \begin_layout Labeling
24723 \labelwidthstring 00.00.0000
24724 GIT
24725 \begin_inset space ~
24726 \end_inset
24727
24728 commands: 
24729 \begin_inset space ~
24730 \end_inset
24731
24732
24733 \begin_inset Newline newline
24734 \end_inset
24735
24736
24737 \begin_inset Flex Code
24738 status collapsed
24739
24740 \begin_layout Plain Layout
24741 git mv 
24742 \family typewriter
24743
24744 \begin_inset Quotes qld
24745 \end_inset
24746
24747 <file-name>
24748 \begin_inset Quotes qld
24749 \end_inset
24750
24751  
24752 \begin_inset Quotes qld
24753 \end_inset
24754
24755 <new-file-name>
24756 \begin_inset Quotes qld
24757 \end_inset
24758
24759
24760 \end_layout
24761
24762 \end_inset
24763
24764
24765 \begin_inset Newline newline
24766 \end_inset
24767
24768
24769 \begin_inset Flex Code
24770 status collapsed
24771
24772 \begin_layout Plain Layout
24773 git commit
24774 \end_layout
24775
24776 \end_inset
24777
24778
24779 \end_layout
24780
24781 \begin_layout Subsubsection
24782
24783 \family sans
24784 Show History
24785 \end_layout
24786
24787 \begin_layout Standard
24788 This shows the complete history of the GIT document.
24789  The output of 
24790 \family typewriter
24791 git log 
24792 \begin_inset Quotes qld
24793 \end_inset
24794
24795 <file-name>
24796 \begin_inset Quotes qld
24797 \end_inset
24798
24799
24800 \family default
24801  is shown in a browser.
24802 \end_layout
24803
24804 \begin_layout Subsubsection
24805 Version Info
24806 \end_layout
24807
24808 \begin_layout Standard
24809 \SpecialChar LyX
24810  supports GIT hash number of the last commit to the file, 
24811 \change_inserted 1119979965 1564297456
24812 its abbreviated form, 
24813 \change_unchanged
24814 author name, date and time of last commit.
24815  All those are extracted from 
24816 \family typewriter
24817 git log -n 1 --pretty=format:%H%n
24818 \change_inserted 1119979965 1564297427
24819 %h%n
24820 \change_unchanged
24821 %an%n%ai
24822 \family default
24823 .
24824  Tree version information is obtained via 
24825 \family typewriter
24826 git describe --abbrev --dirty --long
24827 \family default
24828 .
24829  See 
24830 \begin_inset CommandInset ref
24831 LatexCommand ref
24832 reference "subsec:VCS-Revision-Information"
24833
24834 \end_inset
24835
24836  for other details.
24837 \end_layout
24838
24839 \begin_layout Subsection
24840 Further tuning
24841 \end_layout
24842
24843 \begin_layout Standard
24844 With the recent addition of the 
24845 \begin_inset Flex Code
24846 status collapsed
24847
24848 \begin_layout Plain Layout
24849 vc-command
24850 \end_layout
24851
24852 \end_inset
24853
24854  function \SpecialChar LyX
24855  power users are allowed to create their own commands for revision
24856  control.
24857 \end_layout
24858
24859 \begin_layout Standard
24860 As an example you can see how two TortoiseSVN commands could be integrated
24861  directly:
24862 \end_layout
24863
24864 \begin_layout Description
24865 Commit: 
24866 \begin_inset Flex Code
24867 status collapsed
24868
24869 \begin_layout Plain Layout
24870 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24871 \end_layout
24872
24873 \end_inset
24874
24875
24876 \end_layout
24877
24878 \begin_layout Description
24879 Revert: 
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24885 \end_layout
24886
24887 \end_inset
24888
24889
24890 \end_layout
24891
24892 \begin_layout Subsection
24893 Version control and Document comparison
24894 \end_layout
24895
24896 \begin_layout Standard
24897 One of the typical uses of version control is to inspect the changes between
24898  revisions, usually by creating 
24899 \begin_inset Flex Code
24900 status collapsed
24901
24902 \begin_layout Plain Layout
24903 diff
24904 \end_layout
24905
24906 \end_inset
24907
24908  dumps.
24909  While this is useful for plain text files, it is much less useful in the
24910  case of \SpecialChar LyX
24911  files, which have more a complicated structure.
24912  Hence we provide binding to the Document comparison feature.
24913  There are two ways of calling this feature – either by direct call of 
24914 \begin_inset Flex Code
24915 status collapsed
24916
24917 \begin_layout Plain Layout
24918 vc-compare
24919 \end_layout
24920
24921 \end_inset
24922
24923  \SpecialChar LyX
24924  function (for details see \SpecialChar LyX
24925  functions manual) or by the toolbar icon 
24926 \begin_inset Info
24927 type  "icon"
24928 arg   "vc-compare"
24929 \end_inset
24930
24931  or the menu item 
24932 \begin_inset Info
24933 type  "menu"
24934 arg   "vc-compare"
24935 \end_inset
24936
24937 , respectively.
24938  One can either compare two chosen revisions of the document or he can simply
24939  compare the current version of edited text with older revisions (where
24940  '
24941 \begin_inset Flex Noun
24942 status collapsed
24943
24944 \begin_layout Plain Layout
24945 0
24946 \end_layout
24947
24948 \end_inset
24949
24950 ' revisions back means comparison of the edited file with last commited
24951  revision).
24952  
24953 \end_layout
24954
24955 \begin_layout Standard
24956 This feature is supported for SVN and RCS though due to the more complicated
24957  versioning scheme of RCS there is a constraint – when addressing the revisions
24958  in dialog, numbers always point to the last number in RCS revision number,
24959  i.e.
24960  '35' in '1.2.35'.
24961  We don't currently support GIT addressing of revisions, one can just compare
24962  edited document with its revision X steps backs, where X is addressed as
24963  
24964 \begin_inset Flex Code
24965 status collapsed
24966
24967 \begin_layout Plain Layout
24968 HEAD~X
24969 \end_layout
24970
24971 \end_inset
24972
24973 .
24974 \end_layout
24975
24976 \begin_layout Section
24977 Literate Programming
24978 \end_layout
24979
24980 \begin_layout Standard
24981 Updated by 
24982 \noun on
24983 Kayvan Sylvan 
24984 \noun default
24985 (kayvan@sylvan.com)
24986 \noun on
24987
24988 \noun default
24989 original documentation written by 
24990 \noun on
24991 Edmar Wienskoski Jr.
24992
24993 \noun default
24994  (edmar-w-jr@technologist.com)
24995 \end_layout
24996
24997 \begin_layout Subsection
24998 Introduction
24999 \end_layout
25000
25001 \begin_layout Standard
25002 The main purpose of this documentation is to show you how to use \SpecialChar LyX
25003  for literate
25004  programming, where it is assumed that you are familiar with this programming
25005  technique, and know what 
25006 \begin_inset Quotes eld
25007 \end_inset
25008
25009 tangling
25010 \begin_inset Quotes erd
25011 \end_inset
25012
25013  and 
25014 \begin_inset Quotes eld
25015 \end_inset
25016
25017 weaving
25018 \begin_inset Quotes erd
25019 \end_inset
25020
25021  means.
25022  If that is not the case, please follow the web links provided in the following
25023  sections.
25024  There is a lot of good documentation out there covering old development
25025  history to the latest tools tips.
25026 \end_layout
25027
25028 \begin_layout Standard
25029 It is also assumed that you are familiar with \SpecialChar LyX
25030  itself to a point that you
25031  are comfortable changing your \SpecialChar LyX
25032  preferences, and X resources file.
25033  If that is not the case please refer to other \SpecialChar LyX
25034  documentation to cover your
25035  specific needs.
25036 \end_layout
25037
25038 \begin_layout Subsection
25039 Literate Programming
25040 \end_layout
25041
25042 \begin_layout Standard
25043 From the Literate Programming FAQ: 
25044 \end_layout
25045
25046 \begin_layout Quotation
25047 Literate programming is the combination of documentation and source together
25048  in a fashion suited for reading by human beings.
25049  In fact, literate programs should be enjoyable reading, even inviting!
25050  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
25051  and documentation in a single file.
25052  Literate programming tools then parse the file to produce either readable
25053  documentation or compilable source.
25054  The WEB style of literate programming was created by D.
25055 \begin_inset space \thinspace{}
25056 \end_inset
25057
25058 E.
25059  Knuth during the development of his \SpecialChar TeX
25060  typesetting software.
25061  
25062 \end_layout
25063
25064 \begin_layout Standard
25065 Another excerpt says:
25066 \end_layout
25067
25068 \begin_layout Quotation
25069
25070 \emph on
25071 How is literate programming different from verbose commenting?
25072 \end_layout
25073
25074 \begin_layout Quotation
25075 There are three distinguishing characteristics.
25076  In order of importance, they are: 
25077 \end_layout
25078
25079 \begin_deeper
25080 \begin_layout Itemize
25081 flexible order of elaboration 
25082 \end_layout
25083
25084 \begin_layout Itemize
25085 automatic support for browsing 
25086 \end_layout
25087
25088 \begin_layout Itemize
25089 typeset documentation, especially diagrams and mathematics 
25090 \end_layout
25091
25092 \end_deeper
25093 \begin_layout Standard
25094 Now that I sparked your curiosity, take a look in the references.
25095 \end_layout
25096
25097 \begin_layout Subsubsection
25098 References
25099 \end_layout
25100
25101 \begin_layout Standard
25102 The complete Literate Programming FAQ can be found at:
25103 \end_layout
25104
25105 \begin_layout Quote
25106 Literate Programming FAQ 
25107 \begin_inset Flex URL
25108 status open
25109
25110 \begin_layout Plain Layout
25111
25112 http://www.literateprogramming.com/lpfaq.pdf
25113 \end_layout
25114
25115 \end_inset
25116
25117
25118 \end_layout
25119
25120 \begin_layout Standard
25121 The FAQ lists 23 (twenty three!) different literate programming tools.
25122  Where some are specialized or 
25123 \begin_inset Quotes eld
25124 \end_inset
25125
25126 tailored
25127 \begin_inset Quotes erd
25128 \end_inset
25129
25130  for particular programming languages, while other have general scope.
25131  I selected 
25132 \noun on
25133 Noweb
25134 \noun default
25135  for my own use for several reasons:
25136 \end_layout
25137
25138 \begin_layout Itemize
25139 It can generate the documentation either in \SpecialChar LaTeX
25140  or HTML.
25141 \end_layout
25142
25143 \begin_layout Itemize
25144 It has a open architecture, i.
25145 \begin_inset space \thinspace{}
25146 \end_inset
25147
25148 e.
25149 \begin_inset space \space{}
25150 \end_inset
25151
25152 it is easy to plug in new filters
25153 \begin_inset Foot
25154 status collapsed
25155
25156 \begin_layout Plain Layout
25157
25158 \emph on
25159 Filters 
25160 \emph default
25161 are programs that read a given data stream and output a manipulated data
25162  stream.
25163  That way, a WEB file (consisting of literate code) can be turned into a
25164  file consisting only of C program code or \SpecialChar LaTeX
25165  code.
25166 \end_layout
25167
25168 \end_inset
25169
25170  and to perform special processing that you may need.
25171  
25172 \end_layout
25173
25174 \begin_layout Itemize
25175 There is a good selection of filters available already (the HTML is one
25176  of them).
25177 \end_layout
25178
25179 \begin_layout Itemize
25180 It is free.
25181 \end_layout
25182
25183 \begin_layout Standard
25184 The Noweb web page can be found at: 
25185 \end_layout
25186
25187 \begin_layout Quote
25188 Noweb home page 
25189 \begin_inset Flex URL
25190 status collapsed
25191
25192 \begin_layout Plain Layout
25193
25194 https://www.cs.tufts.edu/~nr/noweb/
25195 \end_layout
25196
25197 \end_inset
25198
25199
25200 \end_layout
25201
25202 \begin_layout Standard
25203 Starting from there you can reach many other interesting links and even
25204  some literate program examples.
25205 \end_layout
25206
25207 \begin_layout Subsection
25208 \SpecialChar LyX
25209  and Literate Programming with Noweb
25210 \end_layout
25211
25212 \begin_layout Standard
25213 The \SpecialChar LyX
25214  support for Literate Programming is provided by using the generic \SpecialChar LyX
25215
25216  converters mechanism.
25217  This support is provided in a 
25218 \begin_inset Quotes eld
25219 \end_inset
25220
25221 Noweb independent
25222 \begin_inset Quotes erd
25223 \end_inset
25224
25225  way, i.
25226 \begin_inset space \thinspace{}
25227 \end_inset
25228
25229 e.
25230 \begin_inset space \space{}
25231 \end_inset
25232
25233 you will be able to use this new \SpecialChar LyX
25234  feature with some other literate programming
25235  tool of your choice by just changing your \SpecialChar LyX
25236  preferences.
25237 \end_layout
25238
25239 \begin_layout Subsubsection
25240 Generating documents and code (weaving and tangling)
25241 \end_layout
25242
25243 \begin_layout Paragraph
25244 Using the noweb module
25245 \end_layout
25246
25247 \begin_layout Standard
25248 If you have installed Noweb and \SpecialChar LyX
25249  successfully, whenever you open a new document,
25250  after you have chosen its document class, use the 
25251 \family sans
25252 Document\SpecialChar menuseparator
25253 Settings
25254 \family default
25255  menu to add the 
25256 \begin_inset Quotes eld
25257 \end_inset
25258
25259 noweb
25260 \begin_inset Quotes erd
25261 \end_inset
25262
25263  module.
25264  If Noweb is correctly installed, when you click on the 
25265 \begin_inset Quotes eld
25266 \end_inset
25267
25268 Modules
25269 \begin_inset Quotes erd
25270 \end_inset
25271
25272  link, you will see the 
25273 \begin_inset Quotes eld
25274 \end_inset
25275
25276 noweb
25277 \begin_inset Quotes erd
25278 \end_inset
25279
25280  module in the available list and you can add it to your document.
25281 \end_layout
25282
25283 \begin_layout Paragraph
25284 Typing code in
25285 \end_layout
25286
25287 \begin_layout Standard
25288 \SpecialChar LyX
25289  enables you to write code with a custom inset named 
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 .
25300  Noweb delimits chunks like this:
25301 \end_layout
25302
25303 \begin_layout LyX-Code
25304 <<My code>>=
25305 \end_layout
25306
25307 \begin_layout LyX-Code
25308   code
25309 \end_layout
25310
25311 \begin_layout LyX-Code
25312   more code
25313 \end_layout
25314
25315 \begin_layout LyX-Code
25316   even more code
25317 \end_layout
25318
25319 \begin_layout LyX-Code
25320   @
25321 \end_layout
25322
25323 \begin_layout Standard
25324 The problem is that whatever is written in between the << and the 
25325 \family typewriter
25326 @
25327 \family default
25328  must be taken literally, i.
25329 \begin_inset space \thinspace{}
25330 \end_inset
25331
25332 e.
25333 \begin_inset space \space{}
25334 \end_inset
25335
25336 \SpecialChar LyX
25337  should be prevented from making any special interpretation of what has
25338  been written.
25339  This is also handled by 
25340 \begin_inset Flex Noun
25341 status collapsed
25342
25343 \begin_layout Plain Layout
25344 Chunk
25345 \end_layout
25346
25347 \end_inset
25348
25349 , that works like a normal text inset but has a free spacing capability.
25350 \end_layout
25351
25352 \begin_layout Standard
25353 As a special note, you can also use the 
25354 \begin_inset Quotes eld
25355 \end_inset
25356
25357 %def
25358 \begin_inset Quotes erd
25359 \end_inset
25360
25361  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25362 rence:
25363 \end_layout
25364
25365 \begin_layout LyX-Code
25366 <<My chunk>>=
25367 \end_layout
25368
25369 \begin_layout LyX-Code
25370 def some_function(args):
25371 \end_layout
25372
25373 \begin_layout LyX-Code
25374    "This is the doc string for this function."
25375 \end_layout
25376
25377 \begin_layout LyX-Code
25378    print "My args: ", args
25379 \end_layout
25380
25381 \begin_layout LyX-Code
25382 @ %def some_function
25383 \end_layout
25384
25385 \begin_layout Standard
25386 For an example of this usage and the resulting cross-reference output, look
25387  at the Literate python program in 
25388 \emph on
25389 LIBDIR/examples/listerrors.lyx
25390 \emph default
25391  which should make this all clear.
25392 \end_layout
25393
25394 \begin_layout Paragraph
25395 Generating the documentation
25396 \end_layout
25397
25398 \begin_layout Standard
25399 At this point you already have a new document file with a proper document
25400  class, and with some code and text on it.
25401  How do I print it? The answer is simple, you select 
25402 \family sans
25403 View\SpecialChar menuseparator
25404 DVI,
25405 \family default
25406  etc.
25407  Just like you would do for a plain document.
25408  No special procedure is required.
25409 \end_layout
25410
25411 \begin_layout Standard
25412 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25413 :
25414 \end_layout
25415
25416 \begin_layout Enumerate
25417 When the 
25418 \family sans
25419 Update\SpecialChar menuseparator
25420 DVI
25421 \family default
25422  menu option is chosen, a \SpecialChar LaTeX
25423  file is generated.
25424  
25425 \end_layout
25426
25427 \begin_deeper
25428 \begin_layout Standard
25429 If the document is of any literate class the generated file will be named
25430  with an extension name defined by the 
25431 \begin_inset Quotes eld
25432 \end_inset
25433
25434 literate
25435 \begin_inset Quotes erd
25436 \end_inset
25437
25438  format (defined in the Preferences panel), otherwise the file will have
25439  the usual 
25440 \family typewriter
25441 .tex
25442 \family default
25443  extension.
25444 \end_layout
25445
25446 \end_deeper
25447 \begin_layout Enumerate
25448 Note that the only difference so far is in the name of the file, no special
25449  processing is required by \SpecialChar LyX
25450 .
25451  Given that you formatted the code using the 
25452 \begin_inset Flex Noun
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 Chunk
25457 \end_layout
25458
25459 \end_inset
25460
25461  inset that, by itself, takes care of the business.
25462 \end_layout
25463
25464 \begin_layout Enumerate
25465 If the document is of any literate class \SpecialChar LyX
25466  will then use the internal \SpecialChar LyX
25467  to
25468  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25469  converter
25470 \begin_inset Foot
25471 status collapsed
25472
25473 \begin_layout Plain Layout
25474 The converters are defined in the 
25475 \family sans
25476 Tools\SpecialChar menuseparator
25477 Preferences
25478 \family default
25479  panel, under the 
25480 \begin_inset Quotes eld
25481 \end_inset
25482
25483 Conversion
25484 \begin_inset Quotes erd
25485 \end_inset
25486
25487  tab.
25488  See section 
25489 \emph on
25490 Converters
25491 \emph default
25492  of the 
25493 \emph on
25494 Customization
25495 \emph default
25496  manual for general information about converters.
25497 \end_layout
25498
25499 \end_inset
25500
25501  to generate the \SpecialChar LaTeX
25502  file.
25503 \end_layout
25504
25505 \begin_deeper
25506 \begin_layout Standard
25507 Otherwise it will just skip this step.
25508 \end_layout
25509
25510 \end_deeper
25511 \begin_layout Enumerate
25512 Finally, \SpecialChar LaTeX
25513  is invoked and the regular post processing continues as in a plain
25514  document.
25515 \end_layout
25516
25517 \begin_layout Standard
25518 Independence from a particular 
25519 \begin_inset Quotes eld
25520 \end_inset
25521
25522 literate tool
25523 \begin_inset Quotes erd
25524 \end_inset
25525
25526  is easily achieved by changing the commands that are run by the various
25527  converters.
25528 \end_layout
25529
25530 \begin_layout Paragraph
25531 Generating the code
25532 \end_layout
25533
25534 \begin_layout Standard
25535 When the build menu option is chosen or the corresponding button in the
25536  toolbar is pressed, a \SpecialChar LaTeX
25537  file is generated just like step 1 above.
25538  Next, \SpecialChar LyX
25539  invokes the 
25540 \family typewriter
25541 Noweb->Program
25542 \family default
25543  converter.
25544  This converter needs to be defined by the user and is not installed by
25545  default, though the Program format is.
25546  This converter (like any other converter) will have two parts:
25547 \end_layout
25548
25549 \begin_layout Enumerate
25550 The converter program itself.
25551  This program performs the conversion from the one format to the other (in
25552  this case, from the Noweb format to the Program pseudo-format).
25553 \end_layout
25554
25555 \begin_layout Enumerate
25556 The error log parser.
25557  This is a program whose sole purpose is to rewrite error messages in a
25558  format that \SpecialChar LyX
25559  understands.
25560  This makes it possible for \SpecialChar LyX
25561  to place error boxes in the right places in
25562  the file buffer.
25563 \end_layout
25564
25565 \begin_layout Standard
25566 The first part, the 
25567 \begin_inset Quotes eld
25568 \end_inset
25569
25570 Converter
25571 \begin_inset Quotes erd
25572 \end_inset
25573
25574  setting, should be set to
25575 \end_layout
25576
25577 \begin_layout LyX-Code
25578
25579 \family typewriter
25580 build-script $$i
25581 \family default
25582  $$r
25583 \end_layout
25584
25585 \begin_layout Standard
25586 This basically means that \SpecialChar LyX
25587  will call 
25588 \begin_inset Quotes eld
25589 \end_inset
25590
25591 build-script
25592 \begin_inset Quotes erd
25593 \end_inset
25594
25595  (a program or script) with the name of the Noweb file (normally a file
25596  in the \SpecialChar LyX
25597  temp directory) and the directory path of the original \SpecialChar LyX
25598  file.
25599  
25600 \end_layout
25601
25602 \begin_layout Standard
25603 This is an implementation of 
25604 \begin_inset Quotes eld
25605 \end_inset
25606
25607 build-script
25608 \begin_inset Quotes erd
25609 \end_inset
25610
25611  that you can place in a directory on your path:
25612 \end_layout
25613
25614 \begin_layout LyX-Code
25615
25616 \family sans
25617 #!/bin/sh
25618 \end_layout
25619
25620 \begin_layout LyX-Code
25621
25622 \family sans
25623 #
25624 \end_layout
25625
25626 \begin_layout LyX-Code
25627
25628 \family sans
25629 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25630 \end_layout
25631
25632 \begin_layout Standard
25633 The next part of the converter setting is the 
25634 \begin_inset Quotes eld
25635 \end_inset
25636
25637 Flags
25638 \begin_inset Quotes erd
25639 \end_inset
25640
25641  which is to be set to
25642 \end_layout
25643
25644 \begin_layout LyX-Code
25645
25646 \family typewriter
25647 parselog=$$s/scripts/listerrors
25648 \end_layout
25649
25650 \begin_layout Standard
25651 This will run any errors that are generated by the 
25652 \begin_inset Quotes eld
25653 \end_inset
25654
25655 build-script
25656 \begin_inset Quotes erd
25657 \end_inset
25658
25659  process through the 
25660 \begin_inset Quotes eld
25661 \end_inset
25662
25663 listerrors
25664 \begin_inset Quotes erd
25665 \end_inset
25666
25667  program.
25668 \end_layout
25669
25670 \begin_layout Standard
25671 The build will normally take place in \SpecialChar LyX
25672 's temporary directory, so the files
25673  produced by the conversion will be in that directory.
25674  \SpecialChar LyX
25675  will copy out what it regards as the `main' file, but the 
25676 \family typewriter
25677 Noweb->Program
25678 \family default
25679  conversion may produce several files, and so most of these would then be
25680  deleted when \SpecialChar LyX
25681  was closed.
25682  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25683  the build-script chunk can place the generated files in that location.
25684 \end_layout
25685
25686 \begin_layout Paragraph
25687 Build instructions in the document
25688 \end_layout
25689
25690 \begin_layout Standard
25691 The last piece of the integration between \SpecialChar LyX
25692  and noweb is the 
25693 \begin_inset Quotes eld
25694 \end_inset
25695
25696 build-script
25697 \begin_inset Quotes erd
25698 \end_inset
25699
25700  chunk.
25701  Generally, the instructions for building your program should be embedded
25702  in a chunk of its own.
25703  The noweb-specific 
25704 \begin_inset Quotes eld
25705 \end_inset
25706
25707 build-script
25708 \begin_inset Quotes erd
25709 \end_inset
25710
25711  above uses the notangle command to look for this chunk (called 
25712 \begin_inset Quotes eld
25713 \end_inset
25714
25715 build-script
25716 \begin_inset Quotes erd
25717 \end_inset
25718
25719 ) and runs its contents through 
25720 \begin_inset Quotes eld
25721 \end_inset
25722
25723 sh
25724 \begin_inset Quotes erd
25725 \end_inset
25726
25727 .
25728 \end_layout
25729
25730 \begin_layout Standard
25731 Typically, such a chunk would look something like this:
25732 \end_layout
25733
25734 \begin_layout LyX-Code
25735 <<build-script>>=
25736 \end_layout
25737
25738 \begin_layout LyX-Code
25739 #!/bin/sh
25740 \begin_inset Newline newline
25741 \end_inset
25742
25743 if [ -z "${NOWEB_SOURCE}" ]
25744 \begin_inset Newline newline
25745 \end_inset
25746
25747 then
25748 \end_layout
25749
25750 \begin_layout LyX-Code
25751 NOWEB_SOURCE=myfile.nw
25752 \begin_inset Newline newline
25753 \end_inset
25754
25755 fi
25756 \begin_inset Newline newline
25757 \end_inset
25758
25759 [...
25760  code to extract files ...
25761  use NOWEB_OUTPUT_DIR here ...]
25762 \begin_inset Newline newline
25763 \end_inset
25764
25765 [...
25766  code to compile files ...]
25767 \begin_inset Newline newline
25768 \end_inset
25769
25770 @
25771 \end_layout
25772
25773 \begin_layout Standard
25774 Look in 
25775 \emph on
25776 LIBDIR/examples/listerrors.lyx
25777 \emph default
25778  or in 
25779 \emph on
25780 LIBDIR/examples/Literate.lyx
25781 \emph default
25782  which implement two versions of the 
25783 \begin_inset Quotes eld
25784 \end_inset
25785
25786 listerrors
25787 \begin_inset Quotes erd
25788 \end_inset
25789
25790  program for some illustrations of how all of these pieces go together or
25791  in 
25792 \emph on
25793 LIBDIR/examples/noweb2lyx.lyx.
25794
25795 \emph default
25796  Interestingly, these three files show off the language-indepence of the
25797  \SpecialChar LyX
25798  literate programming support since they are written in Python, C and Perl
25799  respectively.
25800 \end_layout
25801
25802 \begin_layout Subsubsection
25803 Configuring \SpecialChar LyX
25804
25805 \end_layout
25806
25807 \begin_layout Standard
25808 All the Literate Programming support is configured by the 
25809 \family sans
25810 Tools\SpecialChar menuseparator
25811 Preferences
25812 \family default
25813  panel in the 
25814 \begin_inset Quotes eld
25815 \end_inset
25816
25817 File Handling
25818 \begin_inset Quotes erd
25819 \end_inset
25820
25821  tab.
25822  The important parts are:
25823 \end_layout
25824
25825 \begin_layout Description
25826 the
25827 \begin_inset space ~
25828 \end_inset
25829
25830
25831 \begin_inset Quotes eld
25832 \end_inset
25833
25834 NoWeb
25835 \begin_inset Quotes erd
25836 \end_inset
25837
25838
25839 \begin_inset space ~
25840 \end_inset
25841
25842 format Set up via the File Formats tab, this is where the Noweb-specific
25843  pieces are set up.
25844  The 
25845 \family sans
25846 GUI Name
25847 \family default
25848  is set to 
25849 \family typewriter
25850 NoWeb
25851 \family default
25852 , the file extension is set to 
25853 \family typewriter
25854 .nw
25855 \family default
25856 .
25857  This tells \SpecialChar LyX
25858  to create a file with a 
25859 \family typewriter
25860 .nw
25861 \family default
25862  extension in the first step of the conversion process.
25863 \end_layout
25864
25865 \begin_layout Description
25866 the
25867 \begin_inset space ~
25868 \end_inset
25869
25870
25871 \family sans
25872 Program
25873 \family default
25874
25875 \begin_inset space ~
25876 \end_inset
25877
25878 format This is an empty format whose sole purpose is to be the endpoint
25879  of a conversion (which then allows us to set up a converter for it).
25880 \end_layout
25881
25882 \begin_layout Description
25883
25884 \family sans
25885 NoWeb
25886 \family default
25887 ->
25888 \family sans
25889 \SpecialChar LaTeX
25890
25891 \family default
25892  This converter performs the 
25893 \begin_inset Quotes eld
25894 \end_inset
25895
25896 weaving
25897 \begin_inset Quotes erd
25898 \end_inset
25899
25900  of the literate document.
25901  For Noweb, it is set to 
25902 \begin_inset Quotes eld
25903 \end_inset
25904
25905
25906 \family typewriter
25907 noweave -delay -index $$i > $$o
25908 \family default
25909
25910 \begin_inset Quotes erd
25911 \end_inset
25912
25913
25914 \end_layout
25915
25916 \begin_layout Description
25917
25918 \family sans
25919 NoWeb
25920 \family default
25921 ->
25922 \family sans
25923 Program
25924 \family default
25925  This performs the 
25926 \begin_inset Quotes eld
25927 \end_inset
25928
25929 tangling step
25930 \begin_inset Quotes erd
25931 \end_inset
25932
25933 .
25934  As stated above, the Converter is set to 
25935 \begin_inset Quotes eld
25936 \end_inset
25937
25938
25939 \family typewriter
25940 build-script $$i
25941 \family default
25942  $$r
25943 \begin_inset Quotes erd
25944 \end_inset
25945
25946 , with Flags set to
25947 \begin_inset Newline newline
25948 \end_inset
25949
25950
25951 \begin_inset Quotes eld
25952 \end_inset
25953
25954
25955 \family typewriter
25956 parselog=$$s/scripts/listerrors
25957 \family default
25958
25959 \begin_inset Quotes erd
25960 \end_inset
25961
25962 .
25963 \end_layout
25964
25965 \begin_layout Subsubsection
25966 Debug extensions
25967 \end_layout
25968
25969 \begin_layout Standard
25970 There is also a new function implemented in the \SpecialChar LyX
25971  server, the 
25972 \begin_inset Quotes eld
25973 \end_inset
25974
25975 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25976  
25977 \end_layout
25978
25979 \begin_layout Standard
25980 When debugging code with ddd/gdb, it is possible to invoke a text editor
25981  at the current execution position with a single key stroke.
25982  The default ddd configuration for that is shift-ctrl-V.
25983  It happens that you can define the editor command line invocation in ddd
25984  by accessing the 
25985 \family sans
25986 Edit\SpecialChar menuseparator
25987 Preferences\SpecialChar menuseparator
25988 Helpers
25989 \family default
25990  dialog and changing the "Edit Sources" entry.
25991 \end_layout
25992
25993 \begin_layout Standard
25994 I take advantage of the newly created \SpecialChar LyX
25995  server function and this ddd feature,
25996  and set 
25997 \begin_inset Quotes eld
25998 \end_inset
25999
26000 Edit Sources
26001 \begin_inset Quotes erd
26002 \end_inset
26003
26004  to:
26005 \end_layout
26006
26007 \begin_layout LyX-Code
26008 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
26009 \end_layout
26010
26011 \begin_layout Standard
26012 With this, whenever you are using ddd and find a point in the program that
26013  you want to edit, you just press shift-ctrl-V (in the ddd window), and
26014  ddd will forward this information to \SpecialChar LyX
26015  through the \SpecialChar LyX
26016  server and then the
26017  \SpecialChar LyX
26018  window will show the same file with the cursor at the same position ddd
26019  was pointing to.
26020  No more guessing or long scrolling to locate a point in the program back
26021  from debugging !
26022 \end_layout
26023
26024 \begin_layout Standard
26025 Note however that you must enable the \SpecialChar LyX
26026  server to get this feature working
26027  (it is disabled by default).
26028  Sec.
26029 \begin_inset space ~
26030 \end_inset
26031
26032
26033 \begin_inset CommandInset ref
26034 LatexCommand ref
26035 reference "sec:Starting-the-Server"
26036
26037 \end_inset
26038
26039  explains how to do that.
26040 \end_layout
26041
26042 \begin_layout Subsubsection
26043 Toolbar extensions
26044 \end_layout
26045
26046 \begin_layout Standard
26047 There are six new buttons that can be added to your \SpecialChar LyX
26048  toolbar.
26049  Four of these buttons are short cuts to layout styles: 
26050 \family sans
26051 Standard
26052 \family default
26053
26054 \family sans
26055 Section
26056 \family default
26057
26058 \family sans
26059 \SpecialChar LaTeX
26060
26061 \family default
26062 , and 
26063 \family sans
26064 \SpecialChar LyX
26065 -Code
26066 \family default
26067 , one for the custom inset 
26068 \family sans
26069 Chunk
26070 \family default
26071 .
26072  The last one is a short cut to the 
26073 \begin_inset Quotes eld
26074 \end_inset
26075
26076 Build Program
26077 \begin_inset Quotes erd
26078 \end_inset
26079
26080  File menu entry.
26081  
26082 \end_layout
26083
26084 \begin_layout Standard
26085 \SpecialChar LyX
26086  has a range of buttons that are available for tool bar customization.
26087  In my toolbar I like to combine the six short cuts above with two more:
26088  One for 
26089 \family sans
26090 Document
26091 \family default
26092 \SpecialChar menuseparator
26093
26094 \family sans
26095 Update
26096 \family default
26097 \SpecialChar menuseparator
26098
26099 \family sans
26100 DVI
26101 \family default
26102  and the other for 
26103 \family sans
26104 Document\SpecialChar menuseparator
26105 View\SpecialChar menuseparator
26106 DVI
26107 \family default
26108  File menu entries.
26109  Here is how it looks like:
26110 \end_layout
26111
26112 \begin_layout LyX-Code
26113 Toolbar
26114 \end_layout
26115
26116 \begin_layout LyX-Code
26117   Layouts
26118 \end_layout
26119
26120 \begin_layout LyX-Code
26121   Icon "layout Standard"
26122 \end_layout
26123
26124 \begin_layout LyX-Code
26125   Icon "layout Section"
26126 \end_layout
26127
26128 \begin_layout LyX-Code
26129   Icon "layout \SpecialChar LaTeX
26130 "
26131 \end_layout
26132
26133 \begin_layout LyX-Code
26134   Icon "layout \SpecialChar LyX
26135 -Code"
26136 \end_layout
26137
26138 \begin_layout LyX-Code
26139   Icon "flex.insert Chunk"
26140 \end_layout
26141
26142 \begin_layout LyX-Code
26143   Separator
26144 \end_layout
26145
26146 \begin_layout LyX-Code
26147   Icon "buffer-view"
26148 \end_layout
26149
26150 \begin_layout LyX-Code
26151   Icon "buffer-typeset"
26152 \end_layout
26153
26154 \begin_layout LyX-Code
26155   Icon "build-program"
26156 \end_layout
26157
26158 \begin_layout LyX-Code
26159   Separator
26160 \end_layout
26161
26162 \begin_layout LyX-Code
26163 .
26164 \end_layout
26165
26166 \begin_layout LyX-Code
26167 .
26168 \end_layout
26169
26170 \begin_layout LyX-Code
26171 .
26172 \end_layout
26173
26174 \begin_layout LyX-Code
26175 End
26176 \end_layout
26177
26178 \begin_layout Subsubsection
26179 Colors customization
26180 \end_layout
26181
26182 \begin_layout Standard
26183 There are a number of colors in \SpecialChar LyX
26184  that can be customized in 
26185 \family sans
26186 Preferences
26187 \family default
26188 .
26189  One of the things that bothers people is the \SpecialChar LaTeX
26190  font color.
26191  The default color is red, since the chunks uses \SpecialChar LaTeX
26192  font, and there is a lot
26193  of chunks in literate documents, you may get tired of seeing everything
26194  in red.
26195  You can change it by going to the tabs 
26196 \family sans
26197 Look&Feel
26198 \family default
26199
26200 \family sans
26201 Colors.
26202 \end_layout
26203
26204 \begin_layout Standard
26205 The next thing is the visible presence of the newline character in the screen.
26206  You can choose the color of this particular character and make it blend
26207  in the background.
26208  I recommend you choosing a color that is close to the background but not
26209  equal, that way you still can see it is there, but it is not bothering
26210  you anymore.
26211 \end_layout
26212
26213 \begin_layout Subsection
26214 \SpecialChar LyX
26215  and knitr/Sweave
26216 \end_layout
26217
26218 \begin_layout Standard
26219 Support for 
26220 \family sans
26221 knitr
26222 \family default
26223  and 
26224 \family sans
26225 Sweave
26226 \family default
26227  is documented in the 
26228 \emph on
26229 knitr.lyx
26230 \emph default
26231  example file and in the Sweave manual (menu 
26232 \family sans
26233 Help\SpecialChar menuseparator
26234 Specific Manuals
26235 \family default
26236 ).
26237 \end_layout
26238
26239 \begin_layout Chapter
26240 Special features
26241 \end_layout
26242
26243 \begin_layout Standard
26244 You can do everything with \SpecialChar LyX
26245  that you can do with \SpecialChar LaTeX
26246 .
26247  However, \SpecialChar LyX
26248  cannot support every \SpecialChar LaTeX
26249  feature directly.
26250  But you can always use \SpecialChar TeX
26251  Code.
26252  This chapter shows you some more special things you might want to use.
26253  For other special things you can do with figures, tables, floats, boxes
26254  and notes, have a look at the 
26255 \emph on
26256 Embedded
26257 \begin_inset space ~
26258 \end_inset
26259
26260 Objects
26261 \emph default
26262  manual.
26263 \end_layout
26264
26265 \begin_layout Section
26266 Multiple Text Columns
26267 \end_layout
26268
26269 \begin_layout Standard
26270 This feature is independent of the option 
26271 \family sans
26272 Two-column document
26273 \family default
26274  in the document settings under 
26275 \family sans
26276 Text Layout
26277 \family default
26278 .
26279  If you want to have 2
26280 \begin_inset space ~
26281 \end_inset
26282
26283 columns for the whole document, it is recommended to use the 
26284 \family sans
26285 Two-column document
26286 \family default
26287  option.
26288  For all other cases use this feature.
26289 \end_layout
26290
26291 \begin_layout Standard
26292 To use multiple text columns in your document, you have to load the module
26293  
26294 \family sans
26295 Multiple Columns
26296 \family default
26297  (menu 
26298 \family sans
26299 Document\SpecialChar menuseparator
26300 Settings\SpecialChar menuseparator
26301 Modules
26302 \family default
26303 ) and must have the \SpecialChar LaTeX
26304 -package 
26305 \begin_inset Flex Code
26306 status collapsed
26307
26308 \begin_layout Plain Layout
26309 multicol
26310 \end_layout
26311
26312 \end_inset
26313
26314  installed.
26315 \end_layout
26316
26317 \begin_layout Standard
26318 Footnotes within multiple columns will be placed at the bottom of the page
26319  and not under each column.
26320  Within the different columns you can use everything, with the limitation
26321  that for floats you need to use the float option 
26322 \family sans
26323 Span columns
26324 \family default
26325 .
26326 \end_layout
26327
26328 \begin_layout Subsection
26329 Basics
26330 \end_layout
26331
26332 \begin_layout Standard
26333 If you want to have 2
26334 \begin_inset space ~
26335 \end_inset
26336
26337 columns in your text, insert a multicolumn inset via the menu 
26338 \family sans
26339 Insert\SpecialChar menuseparator
26340 Custom
26341 \begin_inset space ~
26342 \end_inset
26343
26344 Insets\SpecialChar menuseparator
26345 Multiple
26346 \begin_inset space ~
26347 \end_inset
26348
26349 Columns
26350 \family default
26351  where the columns should start.
26352  Write all text that should be printed in 2
26353 \begin_inset space ~
26354 \end_inset
26355
26356 columns into this inset.
26357 \end_layout
26358
26359 \begin_layout Standard
26360 Here is an example:
26361 \end_layout
26362
26363 \begin_layout Standard
26364 \noindent
26365 \begin_inset Flex Multiple Columns
26366 status open
26367
26368 \begin_layout Plain Layout
26369 \noindent
26370
26371 \series bold
26372 \size small
26373 The Adventure of the Empty House
26374 \series default
26375
26376 \begin_inset Newline newline
26377 \end_inset
26378
26379 by Sir Arthur Conan Doyle
26380 \end_layout
26381
26382 \begin_layout Plain Layout
26383
26384 \size small
26385 It was in the spring of the year 1894 that all London was interested, and
26386  the fashionable world dismayed, by the murder of the Honourable Ronald
26387  Adair under most unusual and inexplicable circumstances.
26388  The public has already learned those particulars of the crime which came
26389  out in the police investigation, but a good deal was suppressed upon that
26390  occasion, since the case for the prosecution was so overwhelmingly strong
26391  that it was not necessary to bring forward all the facts.
26392  Only now, at the end of nearly ten years, am I allowed to supply those
26393  missing links which make up the whole of that remarkable chain.
26394  The crime was of interest in itself, but that interest was as nothing to
26395  me compared to the inconceivable sequel, which afforded me the greatest
26396  shock and surprise of any event in my adventurous life.
26397  Even now, after this long interval, I find myself thrilling as I think
26398  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26399 ty which utterly submerged my mind.
26400  Let me say to that public, which has shown some interest in those glimpses
26401  which I have occasionally given them of the thoughts and actions of a very
26402  remarkable man, that they are not to blame me if I have not shared my knowledge
26403  with them, for I should have considered it my first duty to do so, had
26404  I not been barred by a positive prohibition from his own lips, which was
26405  only withdrawn upon the third of last month.
26406 \end_layout
26407
26408 \end_inset
26409
26410
26411 \end_layout
26412
26413 \begin_layout Standard
26414 To get 3 or more columns, set the cursor into the multicolumn inset and
26415  use the menu 
26416 \family sans
26417 Insert\SpecialChar menuseparator
26418 Number
26419 \begin_inset space ~
26420 \end_inset
26421
26422 of
26423 \begin_inset space ~
26424 \end_inset
26425
26426 Columns
26427 \family default
26428 .
26429  The number of the desired columns is written into that inset (for 3
26430 \begin_inset space ~
26431 \end_inset
26432
26433 columns write 
26434 \begin_inset Quotes eld
26435 \end_inset
26436
26437 3
26438 \begin_inset Quotes erd
26439 \end_inset
26440
26441 ).
26442 \begin_inset Newline newline
26443 \end_inset
26444
26445 Here is an example with 3
26446 \begin_inset space ~
26447 \end_inset
26448
26449 columns:
26450 \end_layout
26451
26452 \begin_layout Standard
26453 \begin_inset Flex Multiple Columns
26454 status open
26455
26456 \begin_layout Plain Layout
26457
26458 \size footnotesize
26459 \begin_inset Argument 1
26460 status open
26461
26462 \begin_layout Plain Layout
26463
26464 3
26465 \end_layout
26466
26467 \end_inset
26468
26469 It can be imagined that my close intimacy with Sherlock Holmes had interested
26470  me deeply in crime, and that after his disappearance I never failed to
26471  read with care the various problems which came before the public.
26472  And I even attempted, more than once, for my own private satisfaction,
26473  to employ his methods in their solution, though with indifferent success.
26474  There was none, however, which appealed to me like this tragedy of Ronald
26475  Adair.
26476  As I read the evidence at the inquest, which led up to a verdict of willful
26477  murder against some person or persons unknown, I realized more clearly
26478  than I had ever done the loss which the community had sustained by the
26479  death of Sherlock Holmes.
26480  There were points about this strange business which would, I was sure,
26481  have specially appealed to him, and the efforts of the police would have
26482  been supplemented, or more probably anticipated, by the trained observation
26483  and the alert mind of the first criminal agent in Europe.
26484  All day, as I drove upon my round, I turned over the case in my mind and
26485  found no explanation which appeared to me to be adequate.
26486  At the risk of telling a twice-told tale, I will recapitulate the facts
26487  as they were known to the public at the conclusion of the inquest.
26488 \end_layout
26489
26490 \end_inset
26491
26492
26493 \end_layout
26494
26495 \begin_layout Standard
26496 You can have up to 10
26497 \begin_inset space ~
26498 \end_inset
26499
26500 columns if you want to, but that might not be very pleasant for the readers
26501  of your document.
26502 \end_layout
26503
26504 \begin_layout Standard
26505 \begin_inset Newpage newpage
26506 \end_inset
26507
26508
26509 \end_layout
26510
26511 \begin_layout Subsection
26512 Columns inside Columns
26513 \end_layout
26514
26515 \begin_layout Standard
26516 You can also have columns inside columns:
26517 \end_layout
26518
26519 \begin_layout Standard
26520 \begin_inset Flex Multiple Columns
26521 status open
26522
26523 \begin_layout Plain Layout
26524
26525 \size footnotesize
26526 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26527  at that time governor of one of the Australian colonies.
26528  Adair's mother had returned from Australia to undergo the operation for
26529  cataract, and she, her son Ronald, and her daughter Hilda were living together
26530  at 427 Park Lane.
26531 \end_layout
26532
26533 \begin_layout Plain Layout
26534 \begin_inset Flex Multiple Columns
26535 status open
26536
26537 \begin_layout Plain Layout
26538
26539 \size footnotesize
26540 The youth moved in the best society
26541 \begin_inset space ~
26542 \end_inset
26543
26544 – had, so far as was known, no enemies and no particular vices.
26545  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26546  had been broken off by mutual consent some months before, and there was
26547  no sign that it had left any very profound feeling behind it.
26548  For the rest {sic} the man's life moved in a narrow and conventional circle,
26549  for his habits were quiet and his nature unemotional.
26550  Yet it was upon this easy-going young aristocrat that death came, in most
26551  strange and unexpected form, between the hours of ten and eleven-twenty
26552  on the night of March 30, 1894.
26553 \end_layout
26554
26555 \end_inset
26556
26557
26558 \end_layout
26559
26560 \begin_layout Plain Layout
26561
26562 \size footnotesize
26563 Ronald Adair was fond of cards
26564 \begin_inset space ~
26565 \end_inset
26566
26567 – playing continually, but never for such stakes as would hurt him.
26568  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26569  It was shown that, after dinner on the day of his death, he had played
26570  a rubber of whist at the latter club.
26571  He had also played there in the afternoon.
26572
26573 \size default
26574  
26575 \size footnotesize
26576 The evidence of those who had played with him
26577 \begin_inset space ~
26578 \end_inset
26579
26580 – Mr.
26581  Murray, Sir John Hardy, and Colonel Moran
26582 \begin_inset space ~
26583 \end_inset
26584
26585 – showed that the game was whist, and that there was a fairly equal fall
26586  of the cards.
26587  Adair might have lost five pounds, but not more.
26588  His fortune was a considerable one, and such a loss could not in any way
26589  affect him.
26590  He had played nearly every day at one club or other, but he was a cautious
26591  player, and usually rose a winner.
26592  It came out in evidence that, in partnership with Colonel Moran, he had
26593  actually won as much as four hundred and twenty pounds in a sitting, some
26594  weeks before, from Godfrey Milner and Lord Balmoral.
26595  So much for his recent history as it came out at the inquest.
26596 \end_layout
26597
26598 \end_inset
26599
26600
26601 \end_layout
26602
26603 \begin_layout Subsection
26604 Advanced Examples
26605 \end_layout
26606
26607 \begin_layout Standard
26608 The examples in this section show some more special features of multiple
26609  columns.
26610 \end_layout
26611
26612 \begin_layout Standard
26613 For more features of multiple columns, have a look at the 
26614 \begin_inset CommandInset href
26615 LatexCommand href
26616 name "documentation"
26617 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26618 literal "false"
26619
26620 \end_inset
26621
26622  of the \SpecialChar LaTeX
26623 -package 
26624 \begin_inset Flex Code
26625 status collapsed
26626
26627 \begin_layout Plain Layout
26628 multicol
26629 \end_layout
26630
26631 \end_inset
26632
26633 .
26634 \end_layout
26635
26636 \begin_layout Subsubsection
26637 Preface
26638 \end_layout
26639
26640 \begin_layout Standard
26641 To add a preface text for multiple columns, set the cursor into the multicolumn
26642  inset and use the menu 
26643 \family sans
26644 Insert\SpecialChar menuseparator
26645 Preface
26646 \family default
26647 .
26648  Write your preface text into that inset.
26649 \begin_inset Newline newline
26650 \end_inset
26651
26652 This is an example with some preface text:
26653 \end_layout
26654
26655 \begin_layout Standard
26656 \begin_inset VSpace bigskip
26657 \end_inset
26658
26659
26660 \end_layout
26661
26662 \begin_layout Standard
26663 \begin_inset Flex Multiple Columns
26664 status open
26665
26666 \begin_layout Plain Layout
26667 \begin_inset Argument 2
26668 status open
26669
26670 \begin_layout Plain Layout
26671 And the story continues and continues and continues and continues\SpecialChar ldots
26672
26673 \end_layout
26674
26675 \end_inset
26676
26677
26678 \size small
26679 On the evening of the crime, he returned from the club exactly at ten.
26680  His mother and sister were out spending the evening with a relation.
26681  The servant deposed that she heard him enter the front room on the second
26682  floor, generally used as his sitting-room.
26683  She had lit a fire there, and as it smoked she had opened the window.
26684  No sound was heard from the room until eleven-twenty, the hour of the return
26685  of Lady Maynooth and her daughter.
26686  Desiring to say good-night, she attempted to enter her son's room.
26687  The door was locked on the inside, and no answer could be got to their
26688  cries and knocking.
26689  Help was obtained, and the door forced.
26690  The unfortunate young man was found lying near the table.
26691  His head had been horribly mutilated by an expanding revolver bullet, but
26692  no weapon of any sort was to be found in the room.
26693 \end_layout
26694
26695 \end_inset
26696
26697
26698 \end_layout
26699
26700 \begin_layout Standard
26701 You can also use a section heading as the preface if you use a section command
26702  as \SpecialChar TeX
26703  Code.
26704  For example the command
26705 \end_layout
26706
26707 \begin_layout LyX-Code
26708
26709 \backslash
26710 subsection{subsection title}
26711 \end_layout
26712
26713 \begin_layout Standard
26714 creates a subsection.
26715  In this example the preface is a subsubsection:
26716 \end_layout
26717
26718 \begin_layout Standard
26719 \begin_inset Flex Multiple Columns
26720 status open
26721
26722 \begin_layout Plain Layout
26723 \begin_inset Argument 2
26724 status open
26725
26726 \begin_layout Plain Layout
26727 \begin_inset ERT
26728 status collapsed
26729
26730 \begin_layout Plain Layout
26731
26732
26733 \backslash
26734 subsubsection{
26735 \end_layout
26736
26737 \end_inset
26738
26739 This is a subsubsection heading as a preface
26740 \begin_inset ERT
26741 status collapsed
26742
26743 \begin_layout Plain Layout
26744
26745 }
26746 \end_layout
26747
26748 \end_inset
26749
26750
26751 \end_layout
26752
26753 \end_inset
26754
26755
26756 \size small
26757 A minute examination of the circumstances served only to make the case more
26758  complex.
26759  In the first place, no reason could be given why the young man should have
26760  fastened the door upon the inside.
26761  There was the possibility that the murderer had done this, and had afterwards
26762  escaped by the window.
26763  The drop was at least twenty feet, however, and a bed of crocuses in full
26764  bloom lay beneath.
26765  Neither the flowers nor the earth showed any sign of having been disturbed,
26766  nor were there any marks upon the narrow strip of grass which separated
26767  the house from the road.
26768  Apparently, therefore, it was the young man himself who had fastened the
26769  door.
26770  But how did he come by his death? No one could have climbed up to the window
26771  without leaving traces.
26772  Suppose a man had fired through the window, he would indeed be a remarkable
26773  shot who could with a revolver inflict so deadly a wound.
26774  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26775  a hundred yards of the house.
26776  No one had heard a shot.
26777 \end_layout
26778
26779 \end_inset
26780
26781
26782 \end_layout
26783
26784 \begin_layout Standard
26785 If there is less vertical space than 6
26786 \begin_inset space ~
26787 \end_inset
26788
26789 text lines is left on the page at the beginning of the multiple columns,
26790  a page break will be inserted before the multiple columns.
26791  Depending on the number of lines of the preface text, you might want to
26792  change this space.
26793  This is done by setting the cursor into the mulitcolumn inset behind the
26794  preface (if there is any) and using the menu 
26795 \family sans
26796 Insert\SpecialChar menuseparator
26797 Space
26798 \begin_inset space ~
26799 \end_inset
26800
26801 Before
26802 \begin_inset space ~
26803 \end_inset
26804
26805 Page
26806 \begin_inset space ~
26807 \end_inset
26808
26809 Break
26810 \family default
26811 .
26812  Insert into that inset the amount of space like e.
26813 \begin_inset space \thinspace{}
26814 \end_inset
26815
26816 g.
26817 \begin_inset space \space{}
26818 \end_inset
26819
26820
26821 \begin_inset Quotes eld
26822 \end_inset
26823
26824 5cm
26825 \begin_inset Quotes erd
26826 \end_inset
26827
26828 .
26829 \begin_inset Newline newline
26830 \end_inset
26831
26832 In this example the space is set to 7
26833 \begin_inset space ~
26834 \end_inset
26835
26836 text lines by using 
26837 \begin_inset Flex Code
26838 status collapsed
26839
26840 \begin_layout Plain Layout
26841 7
26842 \backslash
26843 baselineskip
26844 \end_layout
26845
26846 \end_inset
26847
26848  (where the command 
26849 \begin_inset Flex Code
26850 status collapsed
26851
26852 \begin_layout Plain Layout
26853
26854 \backslash
26855 baselineskip
26856 \end_layout
26857
26858 \end_inset
26859
26860  needs to be inserted as \SpecialChar TeX
26861  code):
26862 \end_layout
26863
26864 \begin_layout Standard
26865 \begin_inset Flex Multiple Columns
26866 status open
26867
26868 \begin_layout Plain Layout
26869 \begin_inset Argument 3
26870 status open
26871
26872 \begin_layout Plain Layout
26873 7
26874 \begin_inset ERT
26875 status collapsed
26876
26877 \begin_layout Plain Layout
26878
26879
26880 \backslash
26881 baselineskip
26882 \end_layout
26883
26884 \end_inset
26885
26886
26887 \end_layout
26888
26889 \end_inset
26890
26891
26892 \size small
26893 On the evening of the crime, he returned from the club exactly at ten.
26894  His mother and sister were out spending the evening with a relation.
26895  The servant deposed that she heard him enter the front room on the second
26896  floor, generally used as his sitting-room.
26897  She had lit a fire there, and as it smoked she had opened the window.
26898  No sound was heard from the room until eleven-twenty, the hour of the return
26899  of Lady Maynooth and her daughter.
26900  Desiring to say good-night, she attempted to enter her son's room.
26901  The door was locked on the inside, and no answer could be got to their
26902  cries and knocking.
26903  Help was obtained, and the door forced.
26904  The unfortunate young man was found lying near the table.
26905  His head had been horribly mutilated by an expanding revolver bullet, but
26906  no weapon of any sort was to be found in the room.
26907 \end_layout
26908
26909 \end_inset
26910
26911
26912 \end_layout
26913
26914 \begin_layout Subsubsection
26915 Surrounding Space
26916 \end_layout
26917
26918 \begin_layout Standard
26919 The amount of space before and after multiple columns can be changed by
26920  changing the length 
26921 \begin_inset Flex Code
26922 status collapsed
26923
26924 \begin_layout Plain Layout
26925
26926 \backslash
26927 multicolsep
26928 \end_layout
26929
26930 \end_inset
26931
26932 .
26933  For example the command
26934 \end_layout
26935
26936 \begin_layout LyX-Code
26937
26938 \backslash
26939 setlength{
26940 \backslash
26941 multicolsep}{3cm}
26942 \end_layout
26943
26944 \begin_layout Standard
26945 in \SpecialChar TeX
26946  Code changes its value to 3
26947 \begin_inset space \thinspace{}
26948 \end_inset
26949
26950 cm.
26951  The change must be made before the multiple columns' start.
26952  The predefined value is 13
26953 \begin_inset space \thinspace{}
26954 \end_inset
26955
26956 pt.
26957 \end_layout
26958
26959 \begin_layout Standard
26960 For this example 
26961 \begin_inset Flex Code
26962 status collapsed
26963
26964 \begin_layout Plain Layout
26965
26966 \backslash
26967 multicolsep
26968 \end_layout
26969
26970 \end_inset
26971
26972  was set to 2.5
26973 \begin_inset space \thinspace{}
26974 \end_inset
26975
26976 cm:
26977 \end_layout
26978
26979 \begin_layout Standard
26980 \begin_inset ERT
26981 status open
26982
26983 \begin_layout Plain Layout
26984
26985
26986 \backslash
26987 setlength{
26988 \backslash
26989 multicolsep}{2.5cm}
26990 \end_layout
26991
26992 \end_inset
26993
26994
26995 \end_layout
26996
26997 \begin_layout Standard
26998 \begin_inset Flex Multiple Columns
26999 status open
27000
27001 \begin_layout Plain Layout
27002
27003 \size small
27004 All day I turned these facts over in my mind, endeavouring to hit upon some
27005  theory which could reconcile them all, and to find that line of least resistanc
27006 e which my poor friend had declared to be the starting-point of every investigat
27007 ion.
27008  I confess that I made little progress.
27009  In the evening I strolled across the Park, and found myself about six o'clock
27010  at the Oxford Street end of Park Lane.
27011  A group of loafers upon the pavements, all staring up at a particular window,
27012  directed me to the house which I had come to see.
27013  A tall, thin man with coloured glasses, whom I strongly suspected of being
27014  a plain-clothes detective, was pointing out some theory of his own, while
27015  the others crowded round to listen to what he said.
27016  I got as near him as I could, but his observations seemed to me to be absurd,
27017  so I withdrew again in some disgust.
27018  As I did so I struck against an elderly, deformed man, who had been behind
27019  me, and I knocked down several books which he was carrying.
27020 \end_layout
27021
27022 \end_inset
27023
27024
27025 \end_layout
27026
27027 \begin_layout Standard
27028 \begin_inset Note Greyedout
27029 status open
27030
27031 \begin_layout Plain Layout
27032
27033 \series bold
27034 Note:
27035 \series default
27036  The values you set with 
27037 \begin_inset Flex Code
27038 status collapsed
27039
27040 \begin_layout Plain Layout
27041
27042 \backslash
27043 setlength
27044 \end_layout
27045
27046 \end_inset
27047
27048  will be used for all following multiple columns until you change them again.
27049 \end_layout
27050
27051 \end_inset
27052
27053
27054 \end_layout
27055
27056 \begin_layout Standard
27057 \begin_inset ERT
27058 status collapsed
27059
27060 \begin_layout Plain Layout
27061
27062
27063 \backslash
27064 setlength{
27065 \backslash
27066 multicolsep}{13pt}
27067 \end_layout
27068
27069 \end_inset
27070
27071
27072 \begin_inset Note Note
27073 status collapsed
27074
27075 \begin_layout Plain Layout
27076 go back to the default
27077 \end_layout
27078
27079 \end_inset
27080
27081
27082 \end_layout
27083
27084 \begin_layout Standard
27085 \begin_inset Newpage newpage
27086 \end_inset
27087
27088
27089 \end_layout
27090
27091 \begin_layout Subsubsection
27092 Column Breaks
27093 \end_layout
27094
27095 \begin_layout Standard
27096 A column break can be forced by inserting the command 
27097 \begin_inset Flex Code
27098 status collapsed
27099
27100 \begin_layout Plain Layout
27101
27102 \backslash
27103 columnbreak{}
27104 \end_layout
27105
27106 \end_inset
27107
27108  as \SpecialChar TeX
27109  Code to that position in the text where the column should be broken.
27110  Note that this leads in most cases to whitespace in the text.
27111 \begin_inset Newline newline
27112 \end_inset
27113
27114 Here is an example:
27115 \end_layout
27116
27117 \begin_layout Standard
27118 \begin_inset Flex Multiple Columns
27119 status open
27120
27121 \begin_layout Plain Layout
27122
27123 \size small
27124 \begin_inset Quotes eld
27125 \end_inset
27126
27127 You're surprised to see me, sir,
27128 \begin_inset Quotes erd
27129 \end_inset
27130
27131  said he, in a strange, croaking voice.
27132 \end_layout
27133
27134 \begin_layout Plain Layout
27135
27136 \size small
27137 I acknowledged that I was.
27138 \end_layout
27139
27140 \begin_layout Plain Layout
27141
27142 \size small
27143 \begin_inset Quotes eld
27144 \end_inset
27145
27146 Well, I've a conscience, sir, and when I chanced to see you go into this
27147  house, as I came hobbling after you, I thought to myself, I'll just step
27148  in and see that kind gentleman, and tell him that if I was a bit gruff
27149  in my manner there was not any harm meant, and that I am much obliged to
27150  him for picking up my books.
27151 \begin_inset Quotes erd
27152 \end_inset
27153
27154
27155 \end_layout
27156
27157 \begin_layout Plain Layout
27158
27159 \size small
27160 \begin_inset Quotes eld
27161 \end_inset
27162
27163 You make too much of a trifle,
27164 \begin_inset Quotes erd
27165 \end_inset
27166
27167  said I.
27168  
27169 \begin_inset Quotes eld
27170 \end_inset
27171
27172 May I ask how you knew who I was?
27173 \begin_inset Quotes erd
27174 \end_inset
27175
27176  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
27177 \begin_inset ERT
27178 status collapsed
27179
27180 \begin_layout Plain Layout
27181
27182
27183 \backslash
27184 columnbreak{}
27185 \end_layout
27186
27187 \end_inset
27188
27189
27190 \end_layout
27191
27192 \begin_layout Plain Layout
27193
27194 \size small
27195 \begin_inset Quotes eld
27196 \end_inset
27197
27198 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27199  you'll find my little bookshop at the corner of Church Street, and very
27200  happy to see you, I am sure.
27201  Maybe you collect yourself, sir.
27202  Here's 
27203 \noun on
27204 British
27205 \begin_inset space ~
27206 \end_inset
27207
27208 Birds
27209 \noun default
27210 , and 
27211 \noun on
27212 Catullus
27213 \noun default
27214 , and 
27215 \noun on
27216 The Holy War
27217 \noun default
27218
27219 \begin_inset space ~
27220 \end_inset
27221
27222 – a bargain, every one of them.
27223  With five volumes you could just fill that gap on that second shelf.
27224  It looks untidy, does it not, sir?
27225 \begin_inset Quotes erd
27226 \end_inset
27227
27228
27229 \end_layout
27230
27231 \end_inset
27232
27233
27234 \end_layout
27235
27236 \begin_layout Subsubsection
27237 Column Separation
27238 \end_layout
27239
27240 \begin_layout Standard
27241 The width of the columns is automatically calculated, but you can modify
27242  the space between the columns.
27243  This is done by changing the length 
27244 \begin_inset Flex Code
27245 status collapsed
27246
27247 \begin_layout Plain Layout
27248
27249 \backslash
27250 columnsep
27251 \end_layout
27252
27253 \end_inset
27254
27255 .
27256  Its predefined value is 10
27257 \begin_inset space \thinspace{}
27258 \end_inset
27259
27260 pt.
27261  Here is an example where 
27262 \begin_inset Flex Code
27263 status collapsed
27264
27265 \begin_layout Plain Layout
27266
27267 \backslash
27268 columnsep
27269 \end_layout
27270
27271 \end_inset
27272
27273  is set to 3
27274 \begin_inset space \thinspace{}
27275 \end_inset
27276
27277 cm:
27278 \end_layout
27279
27280 \begin_layout Standard
27281 \begin_inset ERT
27282 status open
27283
27284 \begin_layout Plain Layout
27285
27286
27287 \backslash
27288 setlength{
27289 \backslash
27290 columnsep}{3cm}
27291 \end_layout
27292
27293 \end_inset
27294
27295
27296 \end_layout
27297
27298 \begin_layout Standard
27299 \begin_inset Flex Multiple Columns
27300 status open
27301
27302 \begin_layout Plain Layout
27303
27304 \size small
27305 My observations of No.
27306 \begin_inset space \space{}
27307 \end_inset
27308
27309 427 Park Lane did little to clear up the problem in which I was interested.
27310  The house was separated from the street by a low wall and railing, the
27311  whole not more than five feet high.
27312  It was perfectly easy, therefore, for anyone to get into the garden, but
27313  the window was entirely inaccessible, since there was no water pipe or
27314  anything which could help the most active man to climb it.
27315  More puzzled than ever, I retraced my steps to Kensington.
27316  I had not been in my study five minutes when the maid entered to say that
27317  a person desired to see me.
27318  To my astonishment it was none other than my strange old book collector,
27319  his sharp, wizened face peering out from a frame of white hair, and his
27320  precious volumes, a dozen of them at least, wedged under his right arm.
27321 \end_layout
27322
27323 \end_inset
27324
27325
27326 \end_layout
27327
27328 \begin_layout Standard
27329 \begin_inset ERT
27330 status collapsed
27331
27332 \begin_layout Plain Layout
27333
27334
27335 \backslash
27336 setlength{
27337 \backslash
27338 columnsep}{10pt}
27339 \end_layout
27340
27341 \end_inset
27342
27343
27344 \begin_inset Note Note
27345 status collapsed
27346
27347 \begin_layout Plain Layout
27348 go back to the default
27349 \end_layout
27350
27351 \end_inset
27352
27353
27354 \end_layout
27355
27356 \begin_layout Subsubsection
27357 Vertical Lines
27358 \end_layout
27359
27360 \begin_layout Standard
27361 Between the columns a rule with a width of the length 
27362 \begin_inset Flex Code
27363 status collapsed
27364
27365 \begin_layout Plain Layout
27366
27367 \backslash
27368 columnseprule
27369 \end_layout
27370
27371 \end_inset
27372
27373  is placed.
27374  If this rule width is set to 0
27375 \begin_inset space \thinspace{}
27376 \end_inset
27377
27378 pt (this is the default), the rule is suppressed.
27379  In the following example the rule is 2
27380 \begin_inset space \thinspace{}
27381 \end_inset
27382
27383 pt wide:
27384 \end_layout
27385
27386 \begin_layout Standard
27387 \begin_inset ERT
27388 status open
27389
27390 \begin_layout Plain Layout
27391
27392
27393 \backslash
27394 setlength{
27395 \backslash
27396 columnseprule}{2pt}
27397 \end_layout
27398
27399 \end_inset
27400
27401
27402 \end_layout
27403
27404 \begin_layout Standard
27405 \begin_inset Flex Multiple Columns
27406 status open
27407
27408 \begin_layout Plain Layout
27409
27410 \size small
27411 \begin_inset Quotes eld
27412 \end_inset
27413
27414 You're surprised to see me, sir,
27415 \begin_inset Quotes erd
27416 \end_inset
27417
27418  said he, in a strange, croaking voice.
27419 \end_layout
27420
27421 \begin_layout Plain Layout
27422
27423 \size small
27424 I acknowledged that I was.
27425 \end_layout
27426
27427 \begin_layout Plain Layout
27428
27429 \size small
27430 \begin_inset Quotes eld
27431 \end_inset
27432
27433 Well, I've a conscience, sir, and when I chanced to see you go into this
27434  house, as I came hobbling after you, I thought to myself, I'll just step
27435  in and see that kind gentleman, and tell him that if I was a bit gruff
27436  in my manner there was not any harm meant, and that I am much obliged to
27437  him for picking up my books.
27438 \begin_inset Quotes erd
27439 \end_inset
27440
27441
27442 \end_layout
27443
27444 \begin_layout Plain Layout
27445
27446 \size small
27447 \begin_inset Quotes eld
27448 \end_inset
27449
27450 You make too much of a trifle,
27451 \begin_inset Quotes erd
27452 \end_inset
27453
27454  said I.
27455  
27456 \begin_inset Quotes eld
27457 \end_inset
27458
27459 May I ask how you knew who I was?
27460 \begin_inset Quotes erd
27461 \end_inset
27462
27463
27464 \end_layout
27465
27466 \begin_layout Plain Layout
27467
27468 \size small
27469 \begin_inset Quotes eld
27470 \end_inset
27471
27472 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27473  you'll find my little bookshop at the corner of Church Street, and very
27474  happy to see you, I am sure.
27475  Maybe you collect yourself, sir.
27476  Here's 
27477 \noun on
27478 British
27479 \begin_inset space ~
27480 \end_inset
27481
27482 Birds
27483 \noun default
27484 , and 
27485 \noun on
27486 Catullus
27487 \noun default
27488 , and 
27489 \noun on
27490 The Holy War
27491 \noun default
27492
27493 \begin_inset space ~
27494 \end_inset
27495
27496 – a bargain, every one of them.
27497  With five volumes you could just fill that gap on that second shelf.
27498  It looks untidy, does it not, sir?
27499 \begin_inset Quotes erd
27500 \end_inset
27501
27502
27503 \end_layout
27504
27505 \end_inset
27506
27507
27508 \end_layout
27509
27510 \begin_layout Standard
27511 \begin_inset VSpace defskip
27512 \end_inset
27513
27514
27515 \end_layout
27516
27517 \begin_layout Standard
27518 The rule can be colored by redefining the command 
27519 \begin_inset Flex Code
27520 status collapsed
27521
27522 \begin_layout Plain Layout
27523
27524 \backslash
27525 columnseprulecolor
27526 \end_layout
27527
27528 \end_inset
27529
27530 .
27531  This is done by inserting the command
27532 \end_layout
27533
27534 \begin_layout LyX-Code
27535
27536 \backslash
27537 renewcommand{
27538 \backslash
27539 columnseprulecolor}{
27540 \backslash
27541 color{red}}
27542 \end_layout
27543
27544 \begin_layout Standard
27545 as \SpecialChar TeX
27546  Code before the multicolumn inset.
27547  Replace 
27548 \begin_inset Flex Code
27549 status collapsed
27550
27551 \begin_layout Plain Layout
27552 red
27553 \end_layout
27554
27555 \end_inset
27556
27557  in this command by a color of your choice.
27558  You can use all pre- and self-defined colors.
27559  See the 
27560 \emph on
27561 EmbeddedObjects
27562 \emph default
27563  manual, section 
27564 \emph on
27565 Colored
27566 \begin_inset space ~
27567 \end_inset
27568
27569 Tables
27570 \emph default
27571  for more information about pre- and self-defined colors.
27572  To go back to the default color insert the command
27573 \end_layout
27574
27575 \begin_layout LyX-Code
27576
27577 \backslash
27578 renewcommand{
27579 \backslash
27580 columnseprulecolor}{
27581 \backslash
27582 normalcolor}
27583 \end_layout
27584
27585 \begin_layout Standard
27586 Here is the example with a cyan rule and 1
27587 \begin_inset space \thinspace{}
27588 \end_inset
27589
27590 cm column separation:
27591 \end_layout
27592
27593 \begin_layout Standard
27594 \begin_inset ERT
27595 status open
27596
27597 \begin_layout Plain Layout
27598
27599
27600 \backslash
27601 setlength{
27602 \backslash
27603 columnsep}{1cm}
27604 \end_layout
27605
27606 \begin_layout Plain Layout
27607
27608
27609 \backslash
27610 renewcommand{
27611 \backslash
27612 columnseprulecolor}{
27613 \backslash
27614 color{cyan}}
27615 \end_layout
27616
27617 \end_inset
27618
27619
27620 \end_layout
27621
27622 \begin_layout Standard
27623 \begin_inset Flex Multiple Columns
27624 status open
27625
27626 \begin_layout Plain Layout
27627
27628 \size small
27629 \begin_inset Quotes eld
27630 \end_inset
27631
27632 You're surprised to see me, sir,
27633 \begin_inset Quotes erd
27634 \end_inset
27635
27636  said he, in a strange, croaking voice.
27637 \end_layout
27638
27639 \begin_layout Plain Layout
27640
27641 \size small
27642 I acknowledged that I was.
27643 \end_layout
27644
27645 \begin_layout Plain Layout
27646
27647 \size small
27648 \begin_inset Quotes eld
27649 \end_inset
27650
27651 Well, I've a conscience, sir, and when I chanced to see you go into this
27652  house, as I came hobbling after you, I thought to myself, I'll just step
27653  in and see that kind gentleman, and tell him that if I was a bit gruff
27654  in my manner there was not any harm meant, and that I am much obliged to
27655  him for picking up my books.
27656 \begin_inset Quotes erd
27657 \end_inset
27658
27659
27660 \end_layout
27661
27662 \begin_layout Plain Layout
27663
27664 \size small
27665 \begin_inset Quotes eld
27666 \end_inset
27667
27668 You make too much of a trifle,
27669 \begin_inset Quotes erd
27670 \end_inset
27671
27672  said I.
27673  
27674 \begin_inset Quotes eld
27675 \end_inset
27676
27677 May I ask how you knew who I was?
27678 \begin_inset Quotes erd
27679 \end_inset
27680
27681
27682 \end_layout
27683
27684 \begin_layout Plain Layout
27685
27686 \size small
27687 \begin_inset Quotes eld
27688 \end_inset
27689
27690 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27691  you'll find my little bookshop at the corner of Church Street, and very
27692  happy to see you, I am sure.
27693  Maybe you collect yourself, sir.
27694  Here's 
27695 \noun on
27696 British
27697 \begin_inset space ~
27698 \end_inset
27699
27700 Birds
27701 \noun default
27702 , and 
27703 \noun on
27704 Catullus
27705 \noun default
27706 , and 
27707 \noun on
27708 The Holy War
27709 \noun default
27710
27711 \begin_inset space ~
27712 \end_inset
27713
27714 – a bargain, every one of them.
27715  With five volumes you could just fill that gap on that second shelf.
27716  It looks untidy, does it not, sir?
27717 \begin_inset Quotes erd
27718 \end_inset
27719
27720
27721 \end_layout
27722
27723 \end_inset
27724
27725
27726 \end_layout
27727
27728 \begin_layout Standard
27729 \begin_inset ERT
27730 status collapsed
27731
27732 \begin_layout Plain Layout
27733
27734
27735 \backslash
27736 setlength{
27737 \backslash
27738 columnseprule}{0pt}
27739 \end_layout
27740
27741 \begin_layout Plain Layout
27742
27743
27744 \backslash
27745 renewcommand{
27746 \backslash
27747 columnseprulecolor}{
27748 \backslash
27749 normalcolor}
27750 \end_layout
27751
27752 \end_inset
27753
27754
27755 \begin_inset Note Note
27756 status collapsed
27757
27758 \begin_layout Plain Layout
27759 go back to the default
27760 \end_layout
27761
27762 \end_inset
27763
27764
27765 \end_layout
27766
27767 \begin_layout Section
27768 Non-standard Paragraph Shapes
27769 \end_layout
27770
27771 \begin_layout Standard
27772 \noindent
27773 \SpecialChar LaTeX
27774  as well as any other text processor uses by default rectangular paragraphs.
27775  For special cases like for example posters, invitation cards or poems you
27776  can modify the paragraph shape to one of your choice.
27777  This can be done by using the \SpecialChar LaTeX
27778 -package 
27779 \begin_inset Flex Code
27780 status collapsed
27781
27782 \begin_layout Plain Layout
27783 shapepar
27784 \end_layout
27785
27786 \end_inset
27787
27788  which is loaded by using in the document settings the module 
27789 \family sans
27790 Custom paragraph shapes
27791 \family default
27792 .
27793 \end_layout
27794
27795 \begin_layout Subsection
27796 Predefined shapes
27797 \end_layout
27798
27799 \begin_layout Standard
27800
27801 \series bold
27802 shapepar
27803 \series default
27804  provides the following shapes:
27805 \end_layout
27806
27807 \begin_layout Standard
27808 \begin_inset Tabular
27809 <lyxtabular version="3" rows="13" columns="3">
27810 <features booktabs="true" islongtable="true" longtabularalignment="center">
27811 <column alignment="left" valignment="middle" width="16col%">
27812 <column alignment="left" valignment="middle" width="40col%">
27813 <column alignment="left" valignment="middle" width="35col%">
27814 <row endhead="true">
27815 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27816 \begin_inset Text
27817
27818 \begin_layout Plain Layout
27819
27820 \series bold
27821 \size small
27822 Name
27823 \end_layout
27824
27825 \end_inset
27826 </cell>
27827 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27828 \begin_inset Text
27829
27830 \begin_layout Plain Layout
27831
27832 \series bold
27833 \size small
27834 Description
27835 \end_layout
27836
27837 \end_inset
27838 </cell>
27839 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27840 \begin_inset Text
27841
27842 \begin_layout Plain Layout
27843
27844 \series bold
27845 \size small
27846 Annotation
27847 \end_layout
27848
27849 \end_inset
27850 </cell>
27851 </row>
27852 <row interlinespace="default">
27853 <cell alignment="left" valignment="top" usebox="none">
27854 \begin_inset Text
27855
27856 \begin_layout Plain Layout
27857
27858 \size small
27859 CDlabel
27860 \end_layout
27861
27862 \end_inset
27863 </cell>
27864 <cell alignment="left" valignment="top" usebox="none">
27865 \begin_inset Text
27866
27867 \begin_layout Plain Layout
27868
27869 \size small
27870 Circle with circular hole (in the size of a CD/DVD)
27871 \end_layout
27872
27873 \end_inset
27874 </cell>
27875 <cell alignment="left" valignment="top" usebox="none">
27876 \begin_inset Text
27877
27878 \begin_layout Plain Layout
27879
27880 \size small
27881 Cannot be scaled, take care there is not too much text
27882 \end_layout
27883
27884 \end_inset
27885 </cell>
27886 </row>
27887 <row interlinespace="default">
27888 <cell alignment="left" valignment="top" usebox="none">
27889 \begin_inset Text
27890
27891 \begin_layout Plain Layout
27892
27893 \size small
27894 Circle
27895 \end_layout
27896
27897 \end_inset
27898 </cell>
27899 <cell alignment="left" valignment="top" usebox="none">
27900 \begin_inset Text
27901
27902 \begin_layout Plain Layout
27903
27904 \size small
27905 Circle
27906 \end_layout
27907
27908 \end_inset
27909 </cell>
27910 <cell alignment="left" valignment="top" usebox="none">
27911 \begin_inset Text
27912
27913 \begin_layout Plain Layout
27914
27915 \size small
27916 Fragile, calculation might fail
27917 \end_layout
27918
27919 \end_inset
27920 </cell>
27921 </row>
27922 <row interlinespace="default">
27923 <cell alignment="left" valignment="top" usebox="none">
27924 \begin_inset Text
27925
27926 \begin_layout Plain Layout
27927
27928 \size small
27929 Diamond
27930 \end_layout
27931
27932 \end_inset
27933 </cell>
27934 <cell alignment="left" valignment="top" usebox="none">
27935 \begin_inset Text
27936
27937 \begin_layout Plain Layout
27938
27939 \size small
27940 Rhomboid (symbolizing a 
27941 \begin_inset Quotes eld
27942 \end_inset
27943
27944 diamond
27945 \begin_inset Quotes erd
27946 \end_inset
27947
27948 )
27949 \end_layout
27950
27951 \end_inset
27952 </cell>
27953 <cell alignment="left" valignment="top" usebox="none">
27954 \begin_inset Text
27955
27956 \begin_layout Plain Layout
27957
27958 \size small
27959 -
27960 \end_layout
27961
27962 \end_inset
27963 </cell>
27964 </row>
27965 <row interlinespace="default">
27966 <cell alignment="left" valignment="top" usebox="none">
27967 \begin_inset Text
27968
27969 \begin_layout Plain Layout
27970
27971 \size small
27972 Heart
27973 \end_layout
27974
27975 \end_inset
27976 </cell>
27977 <cell alignment="left" valignment="top" usebox="none">
27978 \begin_inset Text
27979
27980 \begin_layout Plain Layout
27981
27982 \size small
27983 Heart-like shape
27984 \end_layout
27985
27986 \end_inset
27987 </cell>
27988 <cell alignment="left" valignment="top" usebox="none">
27989 \begin_inset Text
27990
27991 \begin_layout Plain Layout
27992
27993 \size small
27994 -
27995 \end_layout
27996
27997 \end_inset
27998 </cell>
27999 </row>
28000 <row interlinespace="default">
28001 <cell alignment="left" valignment="top" usebox="none">
28002 \begin_inset Text
28003
28004 \begin_layout Plain Layout
28005
28006 \size small
28007 Hexagon
28008 \end_layout
28009
28010 \end_inset
28011 </cell>
28012 <cell alignment="left" valignment="top" usebox="none">
28013 \begin_inset Text
28014
28015 \begin_layout Plain Layout
28016
28017 \size small
28018 Hexagon
28019 \end_layout
28020
28021 \end_inset
28022 </cell>
28023 <cell alignment="left" valignment="top" usebox="none">
28024 \begin_inset Text
28025
28026 \begin_layout Plain Layout
28027
28028 \size small
28029 -
28030 \end_layout
28031
28032 \end_inset
28033 </cell>
28034 </row>
28035 <row interlinespace="default">
28036 <cell alignment="left" valignment="top" usebox="none">
28037 \begin_inset Text
28038
28039 \begin_layout Plain Layout
28040
28041 \size small
28042 Nut
28043 \end_layout
28044
28045 \end_inset
28046 </cell>
28047 <cell alignment="left" valignment="top" usebox="none">
28048 \begin_inset Text
28049
28050 \begin_layout Plain Layout
28051
28052 \size small
28053 Nut for bolt (hexagon with circular hole)
28054 \end_layout
28055
28056 \end_inset
28057 </cell>
28058 <cell alignment="left" valignment="top" usebox="none">
28059 \begin_inset Text
28060
28061 \begin_layout Plain Layout
28062
28063 \size small
28064 -
28065 \end_layout
28066
28067 \end_inset
28068 </cell>
28069 </row>
28070 <row interlinespace="default">
28071 <cell alignment="left" valignment="top" usebox="none">
28072 \begin_inset Text
28073
28074 \begin_layout Plain Layout
28075
28076 \size small
28077 Square
28078 \end_layout
28079
28080 \end_inset
28081 </cell>
28082 <cell alignment="left" valignment="top" usebox="none">
28083 \begin_inset Text
28084
28085 \begin_layout Plain Layout
28086
28087 \size small
28088 Square
28089 \end_layout
28090
28091 \end_inset
28092 </cell>
28093 <cell alignment="left" valignment="top" usebox="none">
28094 \begin_inset Text
28095
28096 \begin_layout Plain Layout
28097
28098 \size small
28099 -
28100 \end_layout
28101
28102 \end_inset
28103 </cell>
28104 </row>
28105 <row interlinespace="default">
28106 <cell alignment="left" valignment="top" usebox="none">
28107 \begin_inset Text
28108
28109 \begin_layout Plain Layout
28110
28111 \size small
28112 Star
28113 \end_layout
28114
28115 \end_inset
28116 </cell>
28117 <cell alignment="left" valignment="top" usebox="none">
28118 \begin_inset Text
28119
28120 \begin_layout Plain Layout
28121
28122 \size small
28123 Five-point star
28124 \end_layout
28125
28126 \end_inset
28127 </cell>
28128 <cell alignment="left" valignment="top" usebox="none">
28129 \begin_inset Text
28130
28131 \begin_layout Plain Layout
28132
28133 \size small
28134 -
28135 \end_layout
28136
28137 \end_inset
28138 </cell>
28139 </row>
28140 <row interlinespace="default">
28141 <cell alignment="left" valignment="top" usebox="none">
28142 \begin_inset Text
28143
28144 \begin_layout Plain Layout
28145
28146 \size small
28147 Candle
28148 \end_layout
28149
28150 \end_inset
28151 </cell>
28152 <cell alignment="left" valignment="top" usebox="none">
28153 \begin_inset Text
28154
28155 \begin_layout Plain Layout
28156
28157 \size small
28158 Burning candle
28159 \end_layout
28160
28161 \end_inset
28162 </cell>
28163 <cell alignment="left" valignment="top" usebox="none">
28164 \begin_inset Text
28165
28166 \begin_layout Plain Layout
28167
28168 \size small
28169 -
28170 \end_layout
28171
28172 \end_inset
28173 </cell>
28174 </row>
28175 <row interlinespace="default">
28176 <cell alignment="left" valignment="top" usebox="none">
28177 \begin_inset Text
28178
28179 \begin_layout Plain Layout
28180
28181 \size small
28182 Drop down/up
28183 \end_layout
28184
28185 \end_inset
28186 </cell>
28187 <cell alignment="left" valignment="top" usebox="none">
28188 \begin_inset Text
28189
28190 \begin_layout Plain Layout
28191
28192 \size small
28193 Normal/reversed rain drop
28194 \end_layout
28195
28196 \end_inset
28197 </cell>
28198 <cell alignment="left" valignment="top" usebox="none">
28199 \begin_inset Text
28200
28201 \begin_layout Plain Layout
28202
28203 \size small
28204 Fragile, calculation might fail
28205 \end_layout
28206
28207 \end_inset
28208 </cell>
28209 </row>
28210 <row interlinespace="default">
28211 <cell alignment="left" valignment="top" usebox="none">
28212 \begin_inset Text
28213
28214 \begin_layout Plain Layout
28215
28216 \size small
28217 \SpecialChar TeX
28218
28219 \end_layout
28220
28221 \end_inset
28222 </cell>
28223 <cell alignment="left" valignment="top" usebox="none">
28224 \begin_inset Text
28225
28226 \begin_layout Plain Layout
28227
28228 \size small
28229 The \SpecialChar TeX
28230  logo
28231 \end_layout
28232
28233 \end_inset
28234 </cell>
28235 <cell alignment="left" valignment="top" usebox="none">
28236 \begin_inset Text
28237
28238 \begin_layout Plain Layout
28239
28240 \size small
28241 -
28242 \end_layout
28243
28244 \end_inset
28245 </cell>
28246 </row>
28247 <row interlinespace="default">
28248 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28249 \begin_inset Text
28250
28251 \begin_layout Plain Layout
28252
28253 \size small
28254 Triangle up/down/
28255 \begin_inset Newline newline
28256 \end_inset
28257
28258 left/right
28259 \end_layout
28260
28261 \end_inset
28262 </cell>
28263 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28264 \begin_inset Text
28265
28266 \begin_layout Plain Layout
28267
28268 \size small
28269 Triangles in different orientations
28270 \end_layout
28271
28272 \end_inset
28273 </cell>
28274 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28275 \begin_inset Text
28276
28277 \begin_layout Plain Layout
28278
28279 \size small
28280 -
28281 \end_layout
28282
28283 \end_inset
28284 </cell>
28285 </row>
28286 </lyxtabular>
28287
28288 \end_inset
28289
28290
28291 \end_layout
28292
28293 \begin_layout Standard
28294 To use a shape for your paragraph, simply select it in \SpecialChar LyX
28295 's pull-down box
28296  for environments in the toolbar.
28297 \end_layout
28298
28299 \begin_layout Standard
28300 \begin_inset Newpage newpage
28301 \end_inset
28302
28303
28304 \end_layout
28305
28306 \begin_layout Standard
28307 Here is an example paragraph in the shape of a nut:
28308 \end_layout
28309
28310 \begin_layout Standard
28311 \begin_inset VSpace bigskip
28312 \end_inset
28313
28314
28315 \end_layout
28316
28317 \begin_layout Nut
28318
28319 \lang latin
28320 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28321  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28322  voluptua.
28323  At vero eos et accusam et justo duo dolores et ea rebum.
28324  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28325  sit amet.
28326  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28327  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28328  voluptua.
28329 \end_layout
28330
28331 \begin_layout Standard
28332 \begin_inset VSpace bigskip
28333 \end_inset
28334
28335
28336 \end_layout
28337
28338 \begin_layout Standard
28339 \begin_inset Note Greyedout
28340 status open
28341
28342 \begin_layout Plain Layout
28343
28344 \series bold
28345 Note
28346 \series default
28347
28348 \family sans
28349 shapepar
28350 \family default
28351  paragraphs cannot run over a page break.
28352 \end_layout
28353
28354 \end_inset
28355
28356
28357 \end_layout
28358
28359 \begin_layout Standard
28360 \begin_inset VSpace bigskip
28361 \end_inset
28362
28363
28364 \end_layout
28365
28366 \begin_layout Standard
28367 The package 
28368 \begin_inset Flex Code
28369 status collapsed
28370
28371 \begin_layout Plain Layout
28372 shapepar
28373 \end_layout
28374
28375 \end_inset
28376
28377  takes care that the shape will always be preserved, no matter how much
28378  text is in the paragraph.
28379  Therefore the paragraph size changes with the amount of contained text.
28380  This can lead to paragraph sizes exceeding the page margins.
28381  To demonstrate the size scaling, here is the same example paragraph but
28382  with twice as much text:
28383 \end_layout
28384
28385 \begin_layout Standard
28386 \begin_inset Newpage newpage
28387 \end_inset
28388
28389
28390 \end_layout
28391
28392 \begin_layout Nut
28393
28394 \lang latin
28395 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28396  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28397  voluptua.
28398  At vero eos et accusam et justo duo dolores et ea rebum.
28399  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28400  sit amet.
28401  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28402  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28403  voluptua.
28404  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28405  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28406  voluptua.
28407  At vero eos et accusam et justo duo dolores et ea rebum.
28408  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28409  sit amet.
28410  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28411  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28412  voluptua.
28413 \end_layout
28414
28415 \begin_layout Standard
28416 \begin_inset VSpace bigskip
28417 \end_inset
28418
28419
28420 \end_layout
28421
28422 \begin_layout Standard
28423 An exception is the shape 
28424 \family sans
28425 CDlabel
28426 \family default
28427 .
28428  It cannot be scaled because it must fit the size of a CD/DVD.
28429  Therefore the amount of text that fits into the shape is limited.
28430 \begin_inset Newline newline
28431 \end_inset
28432
28433 The 
28434 \family sans
28435 drop
28436 \family default
28437  shapes and the 
28438 \family sans
28439 circle
28440 \family default
28441  shape are fragile, meaning that the calculation of their size can fail,
28442  depending on the amount of text.
28443  You will then get the \SpecialChar LaTeX
28444  error 
28445 \begin_inset Quotes eld
28446 \end_inset
28447
28448 Arithmetic overflow
28449 \begin_inset Quotes erd
28450 \end_inset
28451
28452 .
28453  In this case one can try to remove or add some text; if nothing works one
28454  has to use another shape.
28455 \end_layout
28456
28457 \begin_layout Standard
28458 \begin_inset VSpace bigskip
28459 \end_inset
28460
28461
28462 \end_layout
28463
28464 \begin_layout Standard
28465 For shapes with tips you will maybe see that \SpecialChar LaTeX
28466 's hyphenation routine fails
28467  for text in the tips.
28468  Therefore it is often necessary to add hyphenation points 
28469 \family sans
28470 (
28471 \begin_inset Info
28472 type  "shortcut"
28473 arg   "specialchar-insert hyphenation"
28474 \end_inset
28475
28476
28477 \family default
28478 ) to the corresponding text parts.
28479 \end_layout
28480
28481 \begin_layout Standard
28482 \begin_inset VSpace bigskip
28483 \end_inset
28484
28485
28486 \end_layout
28487
28488 \begin_layout Standard
28489 Shapepar paragraphs are either always centered or placed on the page so
28490  that their left border touches the left page margin.
28491  You can therefore not use the paragraph dialog to align such paragraphs.
28492  A solution is to put the paragraph into a minipage or parbox and align
28493  the box.
28494  The problem is hereby to find the right width for the box.
28495  Because if it is too wide and you center the box, the paragraph is not
28496  centered too because it sticks at the left side of the box.
28497  So you might have to play a bit with the width until it fits.
28498  Here are two heart-shaped paragraphs, the first one is not aligned, the
28499  second one is right-aligned:
28500 \end_layout
28501
28502 \begin_layout Standard
28503 \begin_inset Newpage newpage
28504 \end_inset
28505
28506
28507 \end_layout
28508
28509 \begin_layout Heart
28510 \noindent
28511
28512 \lang latin
28513 Lo\SpecialChar softhyphen
28514 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28515  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28516  voluptua.
28517  At vero eos et accusam et justo duo dolores et ea rebum.
28518  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28519  sit amet.
28520 \end_layout
28521
28522 \begin_layout Standard
28523 \begin_inset VSpace bigskip
28524 \end_inset
28525
28526
28527 \end_layout
28528
28529 \begin_layout Standard
28530 \noindent
28531 \align right
28532 \begin_inset Box Frameless
28533 position "t"
28534 hor_pos "c"
28535 has_inner_box 1
28536 inner_pos "t"
28537 use_parbox 1
28538 use_makebox 0
28539 width "42col%"
28540 special "none"
28541 height "1in"
28542 height_special "totalheight"
28543 thickness "0.4pt"
28544 separation "3pt"
28545 shadowsize "4pt"
28546 framecolor "black"
28547 backgroundcolor "none"
28548 status open
28549
28550 \begin_layout Heart
28551 \noindent
28552
28553 \lang latin
28554 Lo\SpecialChar softhyphen
28555 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28556  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28557  voluptua.
28558  At vero eos et accusam et justo duo dolores et ea rebum.
28559  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28560  sit amet.
28561 \end_layout
28562
28563 \end_inset
28564
28565
28566 \end_layout
28567
28568 \begin_layout Subsection
28569 Custom shapes
28570 \end_layout
28571
28572 \begin_layout Standard
28573 You can define any shape you want.
28574  Doing this manually is a lot of work because every coordinate must be specified.
28575  But there is a way to let the computer calculate the coordinates:
28576 \end_layout
28577
28578 \begin_layout Enumerate
28579 Install the program 
28580 \begin_inset CommandInset href
28581 LatexCommand href
28582 name "Jpgfdraw"
28583 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
28584 literal "false"
28585
28586 \end_inset
28587
28588 .
28589 \end_layout
28590
28591 \begin_layout Enumerate
28592 In 
28593 \family sans
28594 Jpgfdraw
28595 \family default
28596  go to the menu 
28597 \family sans
28598 TeX/LaTeX\SpecialChar menuseparator
28599 Settings\SpecialChar menuseparator
28600 Set Normal Size
28601 \family default
28602  and select the font size you are using in your document.
28603  For example this document uses the size 12
28604 \begin_inset space \thinspace{}
28605 \end_inset
28606
28607 pt.
28608 \end_layout
28609
28610 \begin_layout Enumerate
28611 Draw a shape.
28612 \end_layout
28613
28614 \begin_layout Enumerate
28615 Use the menu 
28616 \family sans
28617 TeX/LaTeX\SpecialChar menuseparator
28618 Shapepar
28619 \family default
28620  to export the shape to coordinates.
28621  In the appearing dialog use either the outline of your shape for the coordinate
28622 s or the path itself.
28623 \begin_inset Foot
28624 status collapsed
28625
28626 \begin_layout Plain Layout
28627 For more information see 
28628 \begin_inset CommandInset href
28629 LatexCommand href
28630 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28631 literal "false"
28632
28633 \end_inset
28634
28635
28636 \end_layout
28637
28638 \end_inset
28639
28640
28641 \end_layout
28642
28643 \begin_layout Standard
28644 The coordinates are written into a \SpecialChar TeX
28645  file.
28646  To use it for your \SpecialChar LyX
28647  document
28648 \end_layout
28649
28650 \begin_layout Enumerate
28651 Place the cursor before the first character of your paragraph (or into a
28652  new empty one).
28653 \end_layout
28654
28655 \begin_layout Enumerate
28656 Open in \SpecialChar LyX
28657  the menu 
28658 \family sans
28659 Insert\SpecialChar menuseparator
28660 File\SpecialChar menuseparator
28661 Child
28662 \begin_inset space ~
28663 \end_inset
28664
28665 Document
28666 \family default
28667 , select the file and use 
28668 \family sans
28669 Input
28670 \family default
28671  as 
28672 \family sans
28673 Include Type.
28674 \end_layout
28675
28676 \begin_layout Standard
28677 \begin_inset VSpace defskip
28678 \end_inset
28679
28680
28681 \end_layout
28682
28683 \begin_layout Standard
28684 \begin_inset Note Greyedout
28685 status open
28686
28687 \begin_layout Plain Layout
28688
28689 \series bold
28690 Note
28691 \series default
28692 : The changed shape only applies to the current paragraph; everything is
28693  reset to normal for the next paragraph.
28694  Therefore the shape definition file must be input into every paragraph
28695  with the desired shape.
28696 \end_layout
28697
28698 \end_inset
28699
28700
28701 \end_layout
28702
28703 \begin_layout Standard
28704 \begin_inset VSpace bigskip
28705 \end_inset
28706
28707
28708 \end_layout
28709
28710 \begin_layout Standard
28711 Here is an example:
28712 \end_layout
28713
28714 \begin_layout Standard
28715 \begin_inset VSpace bigskip
28716 \end_inset
28717
28718
28719 \end_layout
28720
28721 \begin_layout Standard
28722 \begin_inset CommandInset include
28723 LatexCommand input
28724 filename "SpecialParagraphShape.tex"
28725 literal "true"
28726
28727 \end_inset
28728
28729
28730 \lang latin
28731 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28732  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28733  voluptua.
28734  At vero eos et accusam et justo duo dolores et ea rebum.
28735  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28736  sit amet.
28737  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28738  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28739  voluptua.
28740 \end_layout
28741
28742 \begin_layout Standard
28743 \begin_inset VSpace bigskip
28744 \end_inset
28745
28746
28747 \end_layout
28748
28749 \begin_layout Standard
28750
28751 \series bold
28752 A tip:
28753 \series default
28754  to draw complexer shapes in 
28755 \family sans
28756 Jpgfdraw
28757 \family default
28758  you can draw the shape in a program of your choice and import the resulting
28759  image to 
28760 \family sans
28761 Jpgfdraw
28762 \family default
28763 .
28764  Then you only need to draw a line or spline along the outline of the image.
28765 \end_layout
28766
28767 \begin_layout Standard
28768 \begin_inset VSpace bigskip
28769 \end_inset
28770
28771
28772 \end_layout
28773
28774 \begin_layout Standard
28775 The module 
28776 \family sans
28777 Custom paragraph shapes
28778 \family default
28779  also provides the two commands 
28780 \family sans
28781 shapepar
28782 \family default
28783  and 
28784 \family sans
28785 Shapepar
28786 \family default
28787  which can be used to define custom shapes coordinate by coordinate.
28788 \begin_inset Foot
28789 status collapsed
28790
28791 \begin_layout Plain Layout
28792 These commands are internally used for all shapes described here.
28793 \end_layout
28794
28795 \end_inset
28796
28797  For information how these styles are used and about further customization
28798  possibilities, have a look at the 
28799 \begin_inset CommandInset href
28800 LatexCommand href
28801 name "documentation"
28802 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
28803 literal "false"
28804
28805 \end_inset
28806
28807  of the package 
28808 \begin_inset Flex Code
28809 status collapsed
28810
28811 \begin_layout Plain Layout
28812 shapepar
28813 \end_layout
28814
28815 \end_inset
28816
28817 .
28818 \end_layout
28819
28820 \end_body
28821 \end_document