]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
3f57fd6a31480d702893a2237037adf2bcbe3f14
[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
2872 \change_inserted 564990737 1671383236
2873
2874 \lang american
2875 \begin_inset CommandInset label
2876 LatexCommand label
2877 name "subsec:Extra-font-sizes"
2878
2879 \end_inset
2880
2881 Extra font sizes
2882 \end_layout
2883
2884 \begin_layout Standard
2885
2886 \change_inserted 564990737 1671383236
2887
2888 \lang american
2889 The “Extra font sizes” collection provides the document classes 
2890 \family sans
2891 article
2892 \begin_inset space \thinspace{}
2893 \end_inset
2894
2895 (with extra font sizes)
2896 \family default
2897
2898 \family sans
2899 book
2900 \begin_inset space \thinspace{}
2901 \end_inset
2902
2903 (with extra font sizes)
2904 \family default
2905
2906 \family sans
2907 letter
2908 \begin_inset space \thinspace{}
2909 \end_inset
2910
2911 (with extra font sizes)
2912 \family default
2913  and 
2914 \family sans
2915 report
2916 \begin_inset space \thinspace{}
2917 \end_inset
2918
2919 (with extra font sizes)
2920 \family default
2921  which use the 
2922 \family typewriter
2923 article.cls
2924 \family default
2925
2926 \family typewriter
2927 book.cls
2928 \family default
2929
2930 \family typewriter
2931 letter.cls
2932 \family default
2933  and 
2934 \family typewriter
2935 report.cls
2936 \family default
2937  document classes respectively but offer the additional 
2938 \family sans
2939 \bar under
2940 B
2941 \bar default
2942 ase
2943 \begin_inset space ~
2944 \end_inset
2945
2946 Size
2947 \family default
2948  options 8, 9, 14, 17 and 20 in the 
2949 \family sans
2950 \bar under
2951 D
2952 \bar default
2953 ocument\SpecialChar menuseparator
2954
2955 \bar under
2956 S
2957 \bar default
2958 ettings\SpecialChar menuseparator
2959 Fonts
2960 \family default
2961  dialog.
2962 \end_layout
2963
2964 \begin_layout Subsection
2965
2966 \change_inserted 564990737 1671383236
2967
2968 \lang american
2969 Hebrew
2970 \end_layout
2971
2972 \begin_layout Standard
2973
2974 \change_inserted 564990737 1671383236
2975
2976 \lang american
2977 The document classes 
2978 \family sans
2979 article
2980 \begin_inset space \thinspace{}
2981 \end_inset
2982
2983 (Hebrew)
2984 \family default
2985  and 
2986 \family sans
2987 letter
2988 \begin_inset space \thinspace{}
2989 \end_inset
2990
2991 (Hebrew)
2992 \family default
2993  use the 
2994 \family typewriter
2995 article.cl
2996 \family sans
2997 s
2998 \family default
2999  and 
3000 \family typewriter
3001 letter.cls
3002 \family default
3003  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3004 .
3005 \end_layout
3006
3007 \begin_layout Subsection
3008
3009 \change_inserted 564990737 1671383236
3010
3011 \lang american
3012 \begin_inset CommandInset label
3013 LatexCommand label
3014 name "subsec:Japanese"
3015
3016 \end_inset
3017
3018 Japanese
3019 \end_layout
3020
3021 \begin_layout Standard
3022
3023 \change_inserted 564990737 1671383236
3024
3025 \lang american
3026 The document classes 
3027 \family sans
3028 article
3029 \begin_inset space \thinspace{}
3030 \end_inset
3031
3032 (Japanese JS Class)
3033 \family default
3034 ,
3035 \family sans
3036  article
3037 \begin_inset space \thinspace{}
3038 \end_inset
3039
3040 (Japanese Standard Class Vertical Writing)
3041 \family default
3042
3043 \family sans
3044 article
3045 \begin_inset space \thinspace{}
3046 \end_inset
3047
3048 (Japanese Standard Class)
3049 \family default
3050
3051 \family sans
3052 book
3053 \begin_inset space \thinspace{}
3054 \end_inset
3055
3056 (Japanese JS Class)
3057 \family default
3058 ,
3059 \family sans
3060  book
3061 \begin_inset space \thinspace{}
3062 \end_inset
3063
3064 (Japanese Standard Class Vertical Writing)
3065 \family default
3066
3067 \family sans
3068 book
3069 \begin_inset space \thinspace{}
3070 \end_inset
3071
3072 (Japanese Standard Class)
3073 \family default
3074
3075 \family sans
3076 report
3077 \begin_inset space \thinspace{}
3078 \end_inset
3079
3080 (Japanese Vertical Writing)
3081 \family default
3082  and 
3083 \family sans
3084 report
3085 \begin_inset space \thinspace{}
3086 \end_inset
3087
3088 (Japanese Standard Class)
3089 \family default
3090  provide document classes for the Japanese language.
3091 \end_layout
3092
3093 \begin_layout Subsection
3094 Koma-Script
3095 \end_layout
3096
3097 \begin_layout Standard
3098 by 
3099 \noun on
3100 Bernd Rellermeyer
3101 \end_layout
3102
3103 \begin_layout Subsubsection
3104 Overview
3105 \end_layout
3106
3107 \begin_layout Standard
3108 The \SpecialChar LyX
3109  document classes 
3110 \emph on
3111 article (koma-script)
3112 \emph default
3113
3114 \emph on
3115 report (koma-script)
3116 \emph default
3117
3118 \emph on
3119 book
3120 \emph default
3121  
3122 \emph on
3123 (koma-script)
3124 \emph default
3125 , and 
3126 \emph on
3127 letter
3128 \emph default
3129  
3130 \emph on
3131 (koma-script)
3132 \emph default
3133  correspond to the \SpecialChar LaTeX
3134  document classes 
3135 \family typewriter
3136 scrartcl.cls
3137 \family default
3138
3139 \family typewriter
3140 scrreprt.cls
3141 \family default
3142
3143 \family typewriter
3144 scrbook.cls
3145 \family default
3146 , and 
3147 \family typewriter
3148 scrlettr.cls
3149 \family default
3150 , resp.
3151 \begin_inset space ~
3152 \end_inset
3153
3154 of the Koma-Script family.
3155  They are replacements for the standard document classes 
3156 \family typewriter
3157 article.cls
3158 \family default
3159
3160 \family typewriter
3161 report.cls
3162 \family default
3163
3164 \family typewriter
3165 book.cls
3166 \family default
3167  and 
3168 \family typewriter
3169 letter.cls
3170 \family default
3171 , resp., and fit better to European typography conventions in a number of
3172  points.
3173 \end_layout
3174
3175 \begin_layout Itemize
3176 Standard character size is 11pt in 
3177 \emph on
3178 article (koma-script)
3179 \emph default
3180
3181 \emph on
3182 report (koma-script)
3183 \emph default
3184 , and 
3185 \emph on
3186 book (koma-script)
3187 \emph default
3188 , and 12pt in 
3189 \emph on
3190 letter (koma-script)
3191 \emph default
3192 .
3193 \end_layout
3194
3195 \begin_layout Itemize
3196 Headings, labels of the description environment, and a number of elements
3197  of the 
3198 \emph on
3199 letter (koma-script)
3200 \emph default
3201  document class are set in a bold sans serif font.
3202 \begin_inset Foot
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 There is a big difference between the bold sans serif old cm fonts and new
3207  ec fonts, especially in the appearance of headings.
3208  In comparison, the ec bold sans serif fonts look a bit thin.
3209  Here the \SpecialChar LaTeX
3210  package 
3211 \family typewriter
3212 cmsd.sty by
3213 \family default
3214  
3215 \shape smallcaps
3216 Walter Schmidt
3217 \shape default
3218  helps to produce the 
3219 \begin_inset Quotes eld
3220 \end_inset
3221
3222 usual
3223 \begin_inset Quotes erd
3224 \end_inset
3225
3226  appearance when using the ec fonts.
3227 \end_layout
3228
3229 \end_inset
3230
3231  The numbering of chapter headings is made in the same way as the numbering
3232  of section headings, that is without the extra line 
3233 \begin_inset Quotes eld
3234 \end_inset
3235
3236 Chapter\SpecialChar ldots
3237
3238 \begin_inset Quotes erd
3239 \end_inset
3240
3241 .
3242  In addition, the appearance of the headings can be modified by using a
3243  number of options (in \SpecialChar LyX
3244  to be entered in the field 
3245 \family sans
3246 Extra
3247 \begin_inset space ~
3248 \end_inset
3249
3250 Options
3251 \family default
3252  of the dialog 
3253 \family sans
3254 Layout\SpecialChar menuseparator
3255 Document
3256 \family default
3257 ).
3258  
3259 \end_layout
3260
3261 \begin_layout Itemize
3262 The main means in the Koma-Script document classes to design the type area
3263  are the options 
3264 \family sans
3265 BCOR
3266 \family default
3267  and 
3268 \family sans
3269 DIV
3270 \family default
3271  (in \SpecialChar LyX
3272  to be entered in the extra class options field in the dialog 
3273 \family sans
3274 Document\SpecialChar menuseparator
3275 Settings
3276 \family default
3277 ).
3278  They make a clearer modification of page margins possible as do the options
3279  of the dialog 
3280 \family sans
3281 Document\SpecialChar menuseparator
3282 Settings
3283 \family default
3284 .
3285  
3286 \end_layout
3287
3288 \begin_layout Itemize
3289 The \SpecialChar LaTeX
3290  document classes of the Koma-Script family define a number of additional
3291  commands.
3292  Those part of it which makes sense in \SpecialChar LyX
3293  is implemented in corresponding
3294  paragraph types.
3295 \end_layout
3296
3297 \begin_layout Standard
3298 Detailed descriptions of the \SpecialChar LaTeX
3299  document classes of the Koma-Script family
3300  can be found in the Koma-Script documentation 
3301 \emph on
3302 scrguide
3303 \emph default
3304  (German) and 
3305 \emph on
3306 scrguien
3307 \emph default
3308  (English).
3309 \end_layout
3310
3311 \begin_layout Subsubsection
3312 article (koma-script), report (koma-script), and book (koma-script)
3313 \end_layout
3314
3315 \begin_layout Standard
3316 The document classes 
3317 \emph on
3318 article (koma-script)
3319 \emph default
3320
3321 \emph on
3322 report (koma-script)
3323 \emph default
3324 , and 
3325 \emph on
3326 book
3327 \emph default
3328  
3329 \emph on
3330 (koma-script)
3331 \emph default
3332  are implemented in the layout files 
3333 \family typewriter
3334 scrartcl.layout
3335 \family default
3336
3337 \family typewriter
3338 scrreprt.layout
3339 \family default
3340 , and 
3341 \family typewriter
3342 scrbook.layout
3343 \family default
3344 , resp.
3345  They contain all the paragraph types of the corresponding standard document
3346  classes 
3347 \emph on
3348 article
3349 \emph default
3350
3351 \emph on
3352 report
3353 \emph default
3354 , and 
3355 \emph on
3356 book
3357 \emph default
3358 , resp., partly modified, with the exception of the \SpecialChar LyX
3359  specific 
3360 \family sans
3361 List
3362 \family default
3363 -type, which is replaced by the new 
3364 \family sans
3365 Labeling
3366 \family default
3367 -type having the same functionality.
3368  Beside the 
3369 \family sans
3370 Labeling
3371 \family default
3372 -Type there is a number of new paragraph types added.
3373  They are 
3374 \emph on
3375 not
3376 \emph default
3377  part of 
3378 \emph on
3379 letter (koma-script)
3380 \emph default
3381 .
3382 \end_layout
3383
3384 \begin_layout Itemize
3385
3386 \family sans
3387 Addpart, Addchap
3388 \family default
3389
3390 \family sans
3391 Addsec
3392 \family default
3393 : are equivalents to 
3394 \family sans
3395 Part*, Chapter*
3396 \family default
3397  and 
3398 \family sans
3399 Section*
3400 \family default
3401 , resp., additionally inserting an entry in the table of contents.
3402  
3403 \family sans
3404 Addpart
3405 \family default
3406  and 
3407 \family sans
3408 Addchap
3409 \family default
3410  are not contained in 
3411 \emph on
3412 article (koma-script)
3413 \emph default
3414 .
3415 \end_layout
3416
3417 \begin_layout Itemize
3418
3419 \family sans
3420 Addchap*
3421 \family default
3422
3423 \family sans
3424 Addsec*
3425 \family default
3426 : behave exactly as 
3427 \family sans
3428 Addchap
3429 \family default
3430  and 
3431 \family sans
3432 Addsec
3433 \family default
3434 , resp., additionally clearing running heads.
3435  
3436 \family sans
3437 Addchap*
3438 \family default
3439  is not contained in 
3440 \emph on
3441 article (koma-script)
3442 \emph default
3443 .
3444 \begin_inset Foot
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448 There is also an 
3449 \family typewriter
3450
3451 \backslash
3452 addpart*
3453 \family default
3454  command in 
3455 \emph on
3456 book (koma-script)
3457 \emph default
3458  and in 
3459 \emph on
3460 report (koma-script)
3461 \emph default
3462 , but since this is identical to 
3463 \family sans
3464 Part*
3465 \family default
3466 , is has not been implemented in \SpecialChar LyX
3467 .
3468 \end_layout
3469
3470 \end_inset
3471
3472
3473 \end_layout
3474
3475 \begin_layout Itemize
3476
3477 \family sans
3478 Minisec
3479 \family default
3480 : generates a heading directly above the following paragraph in the standard
3481  character size without affecting the structure of the document.
3482 \end_layout
3483
3484 \begin_layout Itemize
3485
3486 \family sans
3487 Captionabove
3488 \family default
3489  and 
3490 \family sans
3491 Captionbelow
3492 \family default
3493  are special captions which respect the different space settings needed
3494  for captions placed above or below an element (if you follow strict typographic
3495  rules, you might want to place table captions always above the table).
3496  You can also use the class option 
3497 \family typewriter
3498 tablecaptionsabove
3499 \family default
3500 , which will switch 
3501 \family sans
3502 caption
3503 \family default
3504  to 
3505 \family sans
3506 captionabove
3507 \family default
3508  for tables and 
3509 \family sans
3510 captionbelow
3511 \family default
3512  for figures.
3513  You need at least Koma-Script version 2.8q to use this.
3514 \end_layout
3515
3516 \begin_layout Itemize
3517
3518 \family sans
3519 Dictum
3520 \family default
3521 : can be used to set a bonmot, e.
3522 \begin_inset space \thinspace{}
3523 \end_inset
3524
3525 g.
3526 \begin_inset space \space{}
3527 \end_inset
3528
3529 at the beginning of a chapter.
3530  If you use the optional argument (
3531 \family sans
3532 Insert\SpecialChar menuseparator
3533 Dictum
3534 \begin_inset space ~
3535 \end_inset
3536
3537 Author
3538 \family default
3539 ), you can insert the dictum's author there.
3540  Dictum and author are separated by a line.
3541  You need at least Koma-Script version 2.8q to use this.
3542  
3543 \family sans
3544 Dictum
3545 \family default
3546  is not contained in 
3547 \emph on
3548 article (koma-script)
3549 \emph default
3550 .
3551 \end_layout
3552
3553 \begin_layout Standard
3554 The following types, together with the standard types 
3555 \family sans
3556 Title
3557 \family default
3558
3559 \family sans
3560 Author
3561 \family default
3562 , and 
3563 \family sans
3564 Date
3565 \family default
3566 , form the title area of the document.
3567  They must be entered ahead of the first 
3568 \begin_inset Quotes eld
3569 \end_inset
3570
3571 ordinary
3572 \begin_inset Quotes erd
3573 \end_inset
3574
3575  paragraph.
3576 \begin_inset Foot
3577 status collapsed
3578
3579 \begin_layout Plain Layout
3580 The corresponding \SpecialChar LaTeX
3581  commands must appear before the 
3582 \family typewriter
3583
3584 \backslash
3585 maketitle
3586 \family default
3587  command.
3588 \end_layout
3589
3590 \end_inset
3591
3592  When such a type is used more than once, the latter usage overwrites the
3593  former one, that means, for every type only the latest usage is valid.
3594  The order of the different types however has, like 
3595 \family sans
3596 Title
3597 \family default
3598
3599 \family sans
3600 Author
3601 \family default
3602 , and 
3603 \family sans
3604 Date
3605 \family default
3606 , no effect on the appearance of the produced document.
3607 \end_layout
3608
3609 \begin_layout Itemize
3610
3611 \family sans
3612 Subject
3613 \family default
3614 : produces a centered paragraph above the ordinary title (
3615 \family sans
3616 Title
3617 \family default
3618
3619 \family sans
3620 Author
3621 \family default
3622
3623 \family sans
3624 Date
3625 \family default
3626 ) for the subject of the document.
3627 \end_layout
3628
3629 \begin_layout Itemize
3630
3631 \family sans
3632 Publishers
3633 \family default
3634 : produces a centered paragraph below the ordinary title (
3635 \family sans
3636 Title
3637 \family default
3638
3639 \family sans
3640 Author
3641 \family default
3642
3643 \family sans
3644 Date
3645 \family default
3646 ) for the publishers' name.
3647 \end_layout
3648
3649 \begin_layout Itemize
3650
3651 \family sans
3652 Dedication
3653 \family default
3654 : in 
3655 \emph on
3656 report (koma-script)
3657 \emph default
3658  and 
3659 \emph on
3660 book (koma-script)
3661 \emph default
3662  produces a centered paragraph on its own page behind the title page, or
3663  in 
3664 \emph on
3665 article (koma-script)
3666 \emph default
3667  produces a centered paragraph below the ordinary title (
3668 \family sans
3669 Title
3670 \family default
3671
3672 \family sans
3673 Author
3674 \family default
3675
3676 \family sans
3677 Date
3678 \family default
3679
3680 \family sans
3681 Publishers
3682 \family default
3683 ) for a dedication.
3684 \end_layout
3685
3686 \begin_layout Itemize
3687
3688 \family sans
3689 Titlehead
3690 \family default
3691 : produces a left aligned paragraph above the ordinary title (
3692 \family sans
3693 Title
3694 \family default
3695
3696 \family sans
3697 Author
3698 \family default
3699
3700 \family sans
3701 Date
3702 \family default
3703
3704 \family sans
3705 Subject
3706 \family default
3707 ) for a document`s head.
3708 \end_layout
3709
3710 \begin_layout Itemize
3711
3712 \family sans
3713 Uppertitleback
3714 \family default
3715 : produces in a double-sided print in 
3716 \emph on
3717 report (koma-script)
3718 \emph default
3719  and 
3720 \emph on
3721 book (koma-script)
3722 \emph default
3723  a left-aligned paragraph at the top of the title page`s back or has no
3724  effect in a single-sided print or in 
3725 \emph on
3726 article (koma-script)
3727 \emph default
3728 .
3729 \end_layout
3730
3731 \begin_layout Itemize
3732
3733 \family sans
3734 Lowertitleback
3735 \family default
3736 : produces in a double-sided print in 
3737 \emph on
3738 report (koma-script)
3739 \emph default
3740  and 
3741 \emph on
3742 book (koma-script)
3743 \emph default
3744  a left-aligned paragraph at the bottom of the title page`s back or has
3745  no effect in a single-sided print or in 
3746 \emph on
3747 article (koma-script)
3748 \emph default
3749 .
3750 \end_layout
3751
3752 \begin_layout Itemize
3753
3754 \family sans
3755 Extratitle
3756 \family default
3757 : produces a special 
3758 \begin_inset Quotes eld
3759 \end_inset
3760
3761 dirty
3762 \begin_inset Quotes erd
3763 \end_inset
3764
3765  page ahead of the actual document containing a paragraph without special
3766  formatting.
3767 \end_layout
3768
3769 \begin_layout Standard
3770 The layout files for the document classes 
3771 \emph on
3772 article (koma-script)
3773 \emph default
3774
3775 \emph on
3776 report (koma-script)
3777 \emph default
3778 , and 
3779 \emph on
3780 book (koma-script)
3781 \emph default
3782  do include the file 
3783 \family typewriter
3784 scrmacros.inc
3785 \family default
3786 .
3787  This is thought of as a place to define your own types.
3788  Copy scrmacros
3789 \family typewriter
3790 .inc
3791 \family default
3792  in your personal layout directory and edit the file!
3793 \end_layout
3794
3795 \begin_layout Subsubsection
3796 letter (koma-script)
3797 \end_layout
3798
3799 \begin_layout Description
3800 Note: This section discusses the obsolete 
3801 \family sans
3802 KOMA-Script-Letter (v.
3803 \begin_inset space ~
3804 \end_inset
3805
3806 1)
3807 \family default
3808 , which is not even included anymore in recent KOMA releases.
3809  Please refer to the next section for the current KOMA-Script-Letter class
3810  (v.
3811 \begin_inset space ~
3812 \end_inset
3813
3814 2)!
3815 \end_layout
3816
3817 \begin_layout Standard
3818 \noindent
3819 The document class 
3820 \emph on
3821 letter (koma-script)
3822 \emph default
3823  is implemented in the layout file 
3824 \family typewriter
3825 scrlettr.layout
3826 \family default
3827 .
3828  It contains all the paragraph types of the corresponding standard document
3829  class 
3830 \emph on
3831 letter
3832 \emph default
3833 , partly modified, with the exception of the \SpecialChar LyX
3834  specific types 
3835 \family sans
3836 \SpecialChar LyX
3837 -Code
3838 \family default
3839  and 
3840 \family sans
3841 Comment
3842 \family default
3843  and the 
3844 \family sans
3845 List
3846 \family default
3847  type, which is replaced by the new 
3848 \family sans
3849 Labeling
3850 \family default
3851  type.
3852  In addition, it contains, in contrast to the standard document class, the
3853  standard types 
3854 \family sans
3855 \SpecialChar LaTeX
3856
3857 \family default
3858
3859 \family sans
3860 Quotation
3861 \family default
3862
3863 \family sans
3864 Quote
3865 \family default
3866 , and 
3867 \family sans
3868 Verse
3869 \family default
3870 .
3871  Furthermore, there are a number of new letter specific types.
3872 \end_layout
3873
3874 \begin_layout Standard
3875 The appearance of the letter produced by this document class can be controlled
3876  by a number of \SpecialChar LaTeX
3877  commands, which you can put in the \SpecialChar LaTeX
3878  preamble.
3879 \begin_inset Foot
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883 For example, the standard appearance of the letter`s heading, consisting
3884  of name and address, is quite self-willed.
3885  An 
3886 \begin_inset Quotes eld
3887 \end_inset
3888
3889 ordinary
3890 \begin_inset Quotes erd
3891 \end_inset
3892
3893  heading is produced by the following \SpecialChar LaTeX
3894  commands in the preamble:
3895 \end_layout
3896
3897 \begin_layout LyX-Code
3898
3899 \backslash
3900 firsthead{
3901 \backslash
3902 parbox[b]{
3903 \backslash
3904 textwidth}
3905 \end_layout
3906
3907 \begin_layout LyX-Code
3908   {
3909 \backslash
3910 ignorespaces 
3911 \backslash
3912 fromname
3913 \backslash
3914
3915 \backslash
3916  
3917 \backslash
3918 ignorespaces 
3919 \backslash
3920 fromaddress}} 
3921 \end_layout
3922
3923 \begin_layout LyX-Code
3924
3925 \backslash
3926 nexthead{
3927 \backslash
3928 parbox[b]{
3929 \backslash
3930 textwidth}
3931 \end_layout
3932
3933 \begin_layout LyX-Code
3934   {
3935 \backslash
3936 ignorespaces 
3937 \backslash
3938 fromname 
3939 \backslash
3940 hfill 
3941 \backslash
3942 ignorespaces 
3943 \backslash
3944 pagename
3945 \backslash
3946  
3947 \backslash
3948 thepage}}
3949 \end_layout
3950
3951 \end_inset
3952
3953  A detailed German description of such \SpecialChar LaTeX
3954  commands can be found in the Koma-Script
3955  documentation 
3956 \emph on
3957 scrguide
3958 \emph default
3959 .
3960  With it, the letter's author can produce his personal letter layout.
3961 \end_layout
3962
3963 \begin_layout Standard
3964 The types 
3965 \family sans
3966 Letter
3967 \family default
3968  and 
3969 \family sans
3970 Opening
3971 \family default
3972  define the beginning of the letter and must be used in every letter.
3973  To emphasize them in the \SpecialChar LyX
3974  document class, they are marked with the letter
3975  
3976 \shape italic
3977 L
3978 \shape default
3979  or 
3980 \shape italic
3981 O
3982 \shape default
3983 , resp.
3984 \begin_inset space ~
3985 \end_inset
3986
3987 in the left margin.
3988  It is possible to write any number of letters in one file.
3989  An 
3990 \family sans
3991 Opening
3992 \family default
3993  type produces a new letter using the same addressee and a 
3994 \family sans
3995 Letter
3996 \family default
3997  type produces a new addressee.
3998  The types 
3999 \family sans
4000 Closing
4001 \family default
4002
4003 \family sans
4004 PS
4005 \family default
4006
4007 \family sans
4008 CC
4009 \family default
4010 , and 
4011 \family sans
4012 Encl
4013 \family default
4014  are ordinary paragraph types and can also be used several times in one
4015  and the same letter.
4016 \end_layout
4017
4018 \begin_layout Itemize
4019
4020 \family sans
4021 Letter
4022 \family default
4023 : produces a paragraph for the addressee and implicitly defines the beginning
4024  of the letter.
4025 \end_layout
4026
4027 \begin_layout Itemize
4028
4029 \family sans
4030 Opening
4031 \family default
4032 : produces a paragraph for the form of address and implicitly produces a
4033  new letter.
4034 \end_layout
4035
4036 \begin_layout Itemize
4037
4038 \family sans
4039 Closing
4040 \family default
4041 : produces a paragraph for a close.
4042 \end_layout
4043
4044 \begin_layout Itemize
4045
4046 \family sans
4047 PS
4048 \family default
4049 : produces a paragraph for a postscript.
4050 \end_layout
4051
4052 \begin_layout Itemize
4053
4054 \family sans
4055 CC
4056 \family default
4057 : produces a paragraph for a distribution list.
4058 \end_layout
4059
4060 \begin_layout Itemize
4061
4062 \family sans
4063 Encl
4064 \family default
4065 : produces a paragraph for enclosures.
4066 \end_layout
4067
4068 \begin_layout Standard
4069 The types 
4070 \family sans
4071 Name
4072 \family default
4073
4074 \family sans
4075 Signature
4076 \family default
4077
4078 \family sans
4079 Address
4080 \family default
4081
4082 \family sans
4083 Telephone
4084 \family default
4085
4086 \family sans
4087 Place
4088 \family default
4089
4090 \family sans
4091 Backaddress
4092 \family default
4093
4094 \family sans
4095 Specialmail
4096 \family default
4097
4098 \family sans
4099 Location
4100 \family default
4101
4102 \family sans
4103 Title
4104 \family default
4105 , and 
4106 \family sans
4107 Subject
4108 \family default
4109  are input types provided with a label to enter information, which will
4110  be processed by the document class.
4111 \begin_inset Foot
4112 status collapsed
4113
4114 \begin_layout Plain Layout
4115 It could be seen as a matter of inconsequence, that the types 
4116 \family sans
4117 Letter
4118 \family default
4119  and 
4120 \family sans
4121 Opening
4122 \family default
4123  described above are not such input types as well.
4124  Because of the special meaning of those types, however, I have implemented
4125  them as ordinary paragraph types with a one letter mark in the left margin.
4126  Moreover, it would affect my feeling of symmetry, if the 
4127 \family sans
4128 Opening
4129 \family default
4130  type and the 
4131 \family sans
4132 Closing
4133 \family default
4134  type had such a serious different appearance.
4135 \end_layout
4136
4137 \end_inset
4138
4139  The types must be used ahead of the corresponding 
4140 \family sans
4141 Opening
4142 \family default
4143  type.
4144 \end_layout
4145
4146 \begin_layout Standard
4147 An implementation of these types in a WYSIWYG fashion does not seem to make
4148  sense, because the real appearance of the produced letter does not only
4149  depend on the usage of the particular type, but also on other factors.
4150  For example, a signature entered in the 
4151 \family sans
4152 Signature
4153 \family default
4154  type will in the standard behavior appear in the produced letter only,
4155  when in the same letter also a 
4156 \family sans
4157 Closing
4158 \family default
4159  type is used.
4160  The entered value of the 
4161 \family sans
4162 Telephone
4163 \family default
4164  type will in the standard behavior not appear in the produced letter at
4165  all.
4166  The possibility to design the letter`s heading freely is already indicated
4167  in a footnote above.
4168 \end_layout
4169
4170 \begin_layout Standard
4171 The input types can also be used as empty paragraphs.
4172  This makes sense e.
4173 \begin_inset space \thinspace{}
4174 \end_inset
4175
4176 g.
4177 \begin_inset space \space{}
4178 \end_inset
4179
4180 for the 
4181 \family sans
4182 Signature
4183 \family default
4184  type.
4185  If the 
4186 \family sans
4187 Signature
4188 \family default
4189  type is not used at all, in the standard behavior the value of the 
4190 \family sans
4191 Name
4192 \family default
4193  type is used as signature, whereas if an empty 
4194 \family sans
4195 Signature
4196 \family default
4197  type is used, no signature value is defined.
4198 \end_layout
4199
4200 \begin_layout Standard
4201 By using the input types it is possible to write a letter template, containing
4202  filled input types with your personal dates (name, address, etc.) and empty
4203  input types for other dates you want to enter.
4204 \end_layout
4205
4206 \begin_layout Itemize
4207
4208 \family sans
4209 Name
4210 \family default
4211 : sender's name, in the standard behavior appears as a centered paragraph
4212  in small caps in the letter`s heading.
4213 \end_layout
4214
4215 \begin_layout Itemize
4216
4217 \family sans
4218 Signature
4219 \family default
4220 : sender's signature, in the standard behavior appears below the 
4221 \family sans
4222 Closing
4223 \family default
4224  type.
4225  If no 
4226 \family sans
4227 Signature
4228 \family default
4229  type is used, the value of the 
4230 \family sans
4231 Name
4232 \family default
4233  type appears instead.
4234 \end_layout
4235
4236 \begin_layout Itemize
4237
4238 \family sans
4239 Address
4240 \family default
4241 : sender's address, in the standard behavior appears in a centered paragraph
4242  in the letter`s heading below the sender's name.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Telephone
4249 \family default
4250 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4251  variable
4252  
4253 \family typewriter
4254
4255 \backslash
4256 telephonenum
4257 \family default
4258 .
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Place
4265 \family default
4266 : place of the letter`s making.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Date
4273 \family default
4274 : date of the letter`s making.
4275  
4276 \family sans
4277 Place
4278 \family default
4279  and 
4280 \family sans
4281 Date
4282 \family default
4283 , in the standard behavior, produce the place and the date in a right-aligned
4284  line below the addressee's field.
4285  If an empty 
4286 \family sans
4287 Date
4288 \family default
4289  type is used, neither place nor date appear, independent of the value of
4290  the 
4291 \family sans
4292 Place
4293 \family default
4294  type.
4295  If no 
4296 \family sans
4297 Date
4298 \family default
4299  type is used, the date of the letter `s production is used.
4300 \end_layout
4301
4302 \begin_layout Itemize
4303
4304 \family sans
4305 Backaddress
4306 \family default
4307 : sender`s back address, in the standard behavior appears above the addressee's
4308  field in a small sans serif font.
4309 \end_layout
4310
4311 \begin_layout Itemize
4312
4313 \family sans
4314 Specialmail
4315 \family default
4316 : special mail information, in the standard behavior appears underlined
4317  above the addressee's field below the back address.
4318 \end_layout
4319
4320 \begin_layout Itemize
4321
4322 \family sans
4323 Location
4324 \family default
4325 : additional information, in the standard behavior appears on right side
4326  below the addressee`s field.
4327 \end_layout
4328
4329 \begin_layout Itemize
4330
4331 \family sans
4332 Title
4333 \family default
4334 : the letter's title, in the standard behavior appears in a big, bold, sans
4335  serif font above the subject.
4336 \end_layout
4337
4338 \begin_layout Itemize
4339
4340 \family sans
4341 Subject
4342 \family default
4343 : the letter's subject, in the standard behavior appears in a bold font
4344  above the 
4345 \family sans
4346 Opening
4347 \family default
4348  paragraph.
4349 \end_layout
4350
4351 \begin_layout Standard
4352 The types 
4353 \family sans
4354 Yourref
4355 \family default
4356
4357 \family sans
4358 Yourmail
4359 \family default
4360
4361 \family sans
4362 Myref
4363 \family default
4364
4365 \family sans
4366 Customer
4367 \family default
4368 , and 
4369 \family sans
4370 Invoice
4371 \family default
4372  produce a business letter like line above the 
4373 \family sans
4374 Title
4375 \family default
4376  line containing the fields 
4377 \begin_inset Quotes eld
4378 \end_inset
4379
4380 Your ref.
4381 \begin_inset Quotes erd
4382 \end_inset
4383
4384
4385 \begin_inset Quotes eld
4386 \end_inset
4387
4388 Your letter of
4389 \begin_inset Quotes erd
4390 \end_inset
4391
4392
4393 \begin_inset Quotes eld
4394 \end_inset
4395
4396 Our ref.
4397 \begin_inset Quotes erd
4398 \end_inset
4399
4400
4401 \begin_inset Quotes eld
4402 \end_inset
4403
4404 Customer no.
4405 \begin_inset Quotes erd
4406 \end_inset
4407
4408
4409 \begin_inset Quotes eld
4410 \end_inset
4411
4412 Invoice no.
4413 \begin_inset Quotes erd
4414 \end_inset
4415
4416 , and 
4417 \begin_inset Quotes eld
4418 \end_inset
4419
4420 Date
4421 \begin_inset Quotes erd
4422 \end_inset
4423
4424 .
4425  For the date field, the value of the 
4426 \family sans
4427 Date
4428 \family default
4429  type is used.
4430  If one of these 
4431 \begin_inset Quotes eld
4432 \end_inset
4433
4434 business letter types
4435 \begin_inset Quotes erd
4436 \end_inset
4437
4438  is used, the value of the 
4439 \family sans
4440 Place
4441 \family default
4442  type however does not appear, but only the \SpecialChar LaTeX
4443  variable 
4444 \family typewriter
4445
4446 \backslash
4447 fromplace
4448 \family default
4449  is set.
4450  The ordinary output of place and date in a right-aligned line below the
4451  addressee`s field is suppressed.
4452  The types are implemented as input types provided with a label and must
4453  be used ahead of the corresponding 
4454 \family sans
4455 Opening
4456 \family default
4457  type.
4458 \end_layout
4459
4460 \begin_layout Itemize
4461
4462 \family sans
4463 Yourref
4464 \family default
4465 : Your ref.
4466 \end_layout
4467
4468 \begin_layout Itemize
4469
4470 \family sans
4471 Yourmail
4472 \family default
4473 : Your letter of.
4474 \end_layout
4475
4476 \begin_layout Itemize
4477
4478 \family sans
4479 Myref
4480 \family default
4481 : Our ref.
4482 \end_layout
4483
4484 \begin_layout Itemize
4485
4486 \family sans
4487 Customer
4488 \family default
4489 : Customer no.
4490 \end_layout
4491
4492 \begin_layout Itemize
4493
4494 \family sans
4495 Invoice
4496 \family default
4497 : Invoice no.
4498 \end_layout
4499
4500 \begin_layout Subsubsection
4501 The new letter class: letter (koma-script v.2)
4502 \end_layout
4503
4504 \begin_layout Standard
4505 by 
4506 \noun on
4507 Jürgen Spitzmüller
4508 \end_layout
4509
4510 \begin_layout Standard
4511 \begin_inset VSpace medskip
4512 \end_inset
4513
4514
4515 \end_layout
4516
4517 \begin_layout Standard
4518 \noindent
4519 Koma-Script version 2.8 has introduced a new letter class 
4520 \family typewriter
4521 scrlttr2
4522 \family default
4523  which supersedes the now unsupported 
4524 \family typewriter
4525 scrlettr
4526 \family default
4527 .
4528  It has — on the \SpecialChar LaTeX
4529  side — a completely new interface and is not compatible
4530  with the old class.
4531  Therefore, \SpecialChar LyX
4532  supports both, though it is recommended you use the new class.
4533 \end_layout
4534
4535 \begin_layout Standard
4536 This class covers the same functionality as 
4537 \emph on
4538 letter (koma-script),
4539 \emph default
4540  and a few more.
4541  The basic items are 
4542 \family sans
4543 Address
4544 \family default
4545  (receiver's address, same as 
4546 \family sans
4547 Letter
4548 \family default
4549  in the old layout), 
4550 \family sans
4551 Opening
4552 \family default
4553 , and 
4554 \family sans
4555 Closing
4556 \family default
4557 .
4558  
4559 \family sans
4560 NextAddress
4561 \family default
4562  will start a new letter (i.
4563 \begin_inset space \thinspace{}
4564 \end_inset
4565
4566 e.
4567 \begin_inset space \space{}
4568 \end_inset
4569
4570 you can write several letters per document).
4571  New elements are sender's 
4572 \family sans
4573 E-Mail
4574 \family default
4575
4576 \family sans
4577 URL
4578 \family default
4579
4580 \family sans
4581 Fax
4582 \family default
4583
4584 \family sans
4585 Bank
4586 \family default
4587  and the possibility to use a 
4588 \family sans
4589 Logo
4590 \family default
4591  (via 
4592 \family sans
4593 Insert\SpecialChar menuseparator
4594 Graphics
4595 \family default
4596 ) in the header.
4597 \end_layout
4598
4599 \begin_layout Standard
4600 The biggest improvement is, though, that the letter's layout is configurable
4601  to meet almost any needs.
4602  This can be done via the preamble or with a special style file (Letter
4603  Class Option, extension 
4604 \family typewriter
4605 *.lco
4606 \family default
4607 ), that will be read in as a class option.
4608 \begin_inset Foot
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612 The KOMA package comes with some default 
4613 \family typewriter
4614 *.lco
4615 \family default
4616  files.
4617  There is, for instance, a 
4618 \family typewriter
4619 DIN.lco
4620 \family default
4621  file that follows german typesetting rules, or a 
4622 \family typewriter
4623 KOMAold.lco
4624 \family default
4625  that provides the default layout of the old 
4626 \family typewriter
4627 scrlettr
4628 \family default
4629  class.
4630  The latter can be loaded with the class option 
4631 \family typewriter
4632 KOMAold
4633 \family default
4634 , inserted via the 
4635 \family sans
4636 Layout\SpecialChar menuseparator
4637 Document\SpecialChar menuseparator
4638 Extra Options
4639 \family default
4640  field.
4641 \end_layout
4642
4643 \end_inset
4644
4645  Have a look at the
4646 \change_deleted 564990737 1671617922
4647  
4648 \emph on
4649 koma-letter2
4650 \change_unchanged
4651
4652 \emph default
4653  template 
4654 \change_deleted 564990737 1671617938
4655 that is included in \SpecialChar LyX
4656  for examples
4657 \change_inserted 564990737 1671617997
4658  in 
4659 \family sans
4660 \bar under
4661 \lang american
4662 F
4663 \bar default
4664 ile\SpecialChar menuseparator
4665 New
4666 \begin_inset space ~
4667 \end_inset
4668
4669 fro
4670 \bar under
4671 m
4672 \bar default
4673
4674 \begin_inset space ~
4675 \end_inset
4676
4677 Template\SpecialChar menuseparator
4678 Letters
4679 \lang english
4680 \SpecialChar menuseparator
4681 KOMA-Script Letter (V.2)
4682 \change_unchanged
4683
4684 \family default
4685 .
4686  A detailed description is to be found in the Koma-Script documentation
4687  (
4688 \emph on
4689 scrguide
4690 \emph default
4691 ).
4692 \end_layout
4693
4694 \begin_layout Subsubsection
4695 Problems
4696 \end_layout
4697
4698 \begin_layout Standard
4699 Visualizing the Koma-Script document classes in \SpecialChar LyX
4700 , the \SpecialChar LyX
4701  internals cause some
4702  problems.
4703 \end_layout
4704
4705 \begin_layout Itemize
4706 The chapter number of a 
4707 \family sans
4708 Chapter
4709 \family default
4710  type appears on a line of its own above the chapter heading instead of
4711  appearing in the same line ahead of it.
4712  The cause for that is the \SpecialChar LyX
4713  internal behavior for the labeltype 
4714 \family sans
4715 Counter_Chapter
4716 \family default
4717  in the layout file.
4718 \end_layout
4719
4720 \begin_layout Itemize
4721 The headings of the types 
4722 \family sans
4723 Addchap
4724 \family default
4725  and 
4726 \family sans
4727 Addsec
4728 \family default
4729  are only put in the 
4730 \begin_inset Quotes eld
4731 \end_inset
4732
4733 true
4734 \begin_inset Quotes erd
4735 \end_inset
4736
4737  \SpecialChar LaTeX
4738  table of contents, but not in the \SpecialChar LyX
4739  table of contents (
4740 \family sans
4741 Document\SpecialChar menuseparator
4742 Table
4743 \begin_inset space ~
4744 \end_inset
4745
4746 of
4747 \begin_inset space ~
4748 \end_inset
4749
4750 Contents
4751 \family default
4752 ).
4753 \end_layout
4754
4755 \begin_layout Itemize
4756 The paragraphs in a 
4757 \emph on
4758 letter
4759 \emph default
4760  document class appear in a skip separation mode, not indented.
4761  This is the standard behavior, no special \SpecialChar LaTeX
4762  commands are needed for that.
4763  But in the 
4764 \family sans
4765 Document\SpecialChar menuseparator
4766 Settings
4767 \family default
4768  dialog the corresponding radio button indicates 
4769 \family sans
4770 Indent
4771 \family default
4772 .
4773  A 
4774 \family sans
4775 Skip
4776 \family default
4777  value always has the effect that extra \SpecialChar LaTeX
4778  commands are inserted in the document
4779  to produce the gap, which is not what is wanted in this case.
4780 \end_layout
4781
4782 \begin_layout Subsection
4783
4784 \change_inserted 564990737 1670924924
4785 Polish M.
4786 \begin_inset space \thinspace{}
4787 \end_inset
4788
4789 W.
4790 \begin_inset space \space{}
4791 \end_inset
4792
4793 collection
4794 \change_deleted 564990737 1670924933
4795 Article (mwart), book (mwbk) and report (mwrep)
4796 \begin_inset Argument status
4797 status collapsed
4798
4799 \begin_layout Plain Layout
4800 The 
4801 \family typewriter
4802 mw
4803 \family default
4804  Classes
4805 \end_layout
4806
4807 \end_inset
4808
4809
4810 \change_unchanged
4811
4812 \end_layout
4813
4814 \begin_layout Standard
4815 by 
4816 \noun on
4817 Tomasz Luczak
4818 \end_layout
4819
4820 \begin_layout Standard
4821 The \SpecialChar LyX
4822  document classes 
4823 \emph on
4824 article (mwart)
4825 \emph default
4826
4827 \emph on
4828 report (mwrep)
4829 \emph default
4830  and 
4831 \emph on
4832 book
4833 \emph default
4834  
4835 \emph on
4836 (mwbk)
4837 \emph default
4838  correspond to the \SpecialChar LaTeX
4839  document classes 
4840 \family typewriter
4841 mwart.cls
4842 \family default
4843
4844 \family typewriter
4845 mwrep.cls
4846 \family default
4847  and 
4848 \family typewriter
4849 mwbk.cls
4850 \family default
4851 , resp.
4852  They are replacements for the standard document classes 
4853 \family typewriter
4854 article.cls
4855 \family default
4856
4857 \family typewriter
4858 report.cls
4859 \family default
4860  and 
4861 \family typewriter
4862 book.cls
4863 \family default
4864 , resp., and fit better to Polish typography conventions in a number of points.
4865  
4866 \end_layout
4867
4868 \begin_layout Standard
4869 Basic differences:
4870 \end_layout
4871
4872 \begin_layout Itemize
4873 Unnumbered titles (with star, e.
4874 \begin_inset space \thinspace{}
4875 \end_inset
4876
4877 g.
4878 \begin_inset space \space{}
4879 \end_inset
4880
4881
4882 \family sans
4883 Section*
4884 \family default
4885 ) are added into table of contents,
4886 \end_layout
4887
4888 \begin_layout Itemize
4889 Additional page styles:
4890 \end_layout
4891
4892 \begin_deeper
4893 \begin_layout Description
4894 uheadings header with separated lines,
4895 \end_layout
4896
4897 \begin_layout Description
4898 myheadings custom header, contents headers via commands: 
4899 \family typewriter
4900
4901 \backslash
4902 markright
4903 \family default
4904  and 
4905 \family typewriter
4906
4907 \backslash
4908 markboth
4909 \family default
4910 ,
4911 \end_layout
4912
4913 \begin_layout Description
4914 myuheadings custom header with separated lines,
4915 \end_layout
4916
4917 \begin_layout Description
4918 outer page number is placed on outer side of page
4919 \end_layout
4920
4921 \end_deeper
4922 \begin_layout Itemize
4923 Options 
4924 \end_layout
4925
4926 \begin_deeper
4927 \begin_layout Description
4928 rmheadings serif titles — default,
4929 \end_layout
4930
4931 \begin_layout Description
4932 sfheadings sansserif titles,
4933 \end_layout
4934
4935 \begin_layout Description
4936 authortitle on title page first placed is author next title — default,
4937 \end_layout
4938
4939 \begin_layout Description
4940 titleauthor on title page first placed is title next author,
4941 \end_layout
4942
4943 \begin_layout Description
4944 withmarginpar reserve place on page for margins.
4945 \end_layout
4946
4947 \end_deeper
4948 \begin_layout Section
4949
4950 \change_inserted 564990737 1670439534
4951 Articles
4952 \end_layout
4953
4954 \begin_layout Standard
4955
4956 \change_inserted 564990737 1670794710
4957 See also the document classes in the Collections (section
4958 \begin_inset space ~
4959 \end_inset
4960
4961
4962 \begin_inset CommandInset ref
4963 LatexCommand ref
4964 reference "sec:Collections"
4965
4966 \end_inset
4967
4968 ).
4969 \end_layout
4970
4971 \begin_layout Subsection
4972
4973 \change_inserted 564990737 1670794716
4974
4975 \lang american
4976 A&A Paper
4977 \end_layout
4978
4979 \begin_layout Standard
4980
4981 \change_inserted 564990737 1670794716
4982
4983 \lang american
4984 Original by 
4985 \noun on
4986 Peter Sütterlin
4987 \noun default
4988 ; updated by the \SpecialChar LyX
4989  Team
4990 \end_layout
4991
4992 \begin_layout Subsubsection
4993
4994 \change_inserted 564990737 1670794716
4995
4996 \lang american
4997 Introduction
4998 \end_layout
4999
5000 \begin_layout Standard
5001
5002 \change_inserted 564990737 1670794716
5003
5004 \lang american
5005 This section describes how \SpecialChar LyX
5006  can be used to write articles for submission
5007  to the scientific journal 
5008 \emph on
5009 Astronomy and Astrophysics
5010 \emph default
5011  (
5012 \begin_inset CommandInset href
5013 LatexCommand href
5014 name "aa-package"
5015 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5016 literal "false"
5017
5018 \end_inset
5019
5020 ) using Version 9.1 of the document class 
5021 \family typewriter
5022 aa.cls
5023 \family default
5024 ; information about it is available at 
5025 \begin_inset Flex URL
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029
5030 \change_inserted 564990737 1670794716
5031
5032 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5033 \change_unchanged
5034
5035 \end_layout
5036
5037 \end_inset
5038
5039 .
5040 \end_layout
5041
5042 \begin_layout Standard
5043
5044 \change_inserted 564990737 1670794716
5045
5046 \lang american
5047 A manual comes together with the package and should be consulted before
5048  installing this document class as described in the 
5049 \emph on
5050 Installing New Document Classe
5051 \emph default
5052 s section of the 
5053 \emph on
5054 Customization
5055 \emph default
5056  manual.
5057  
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 \begin_inset Note Greyedout
5066 status open
5067
5068 \begin_layout Plain Layout
5069
5070 \change_inserted 564990737 1670794716
5071
5072 \lang american
5073 Please note that the publisher of the journal was changed from Springer
5074  to EDP Sciences starting January 1, 2001.
5075  That change also involved some slight changes to the style files, namely
5076  the removal of the thesaurus command.
5077  If you have an older version installed, please upgrade.
5078  For information about compatibility with the old (version 4) layout, please
5079  refer to the comments in 
5080 \family typewriter
5081 \SpecialChar LyX
5082 Dir/layouts/aapaper.layout
5083 \family default
5084 .
5085 \end_layout
5086
5087 \end_inset
5088
5089
5090 \end_layout
5091
5092 \begin_layout Subsubsection
5093
5094 \change_inserted 564990737 1670794716
5095
5096 \lang american
5097 Getting started
5098 \end_layout
5099
5100 \begin_layout Standard
5101
5102 \change_inserted 564990737 1671617129
5103
5104 \lang american
5105 It is recommended you start from the template in the menu 
5106 \family sans
5107 \bar under
5108 F
5109 \bar default
5110 ile\SpecialChar menuseparator
5111 New
5112 \begin_inset space ~
5113 \end_inset
5114
5115 fro
5116 \bar under
5117 m
5118 \bar default
5119
5120 \begin_inset space ~
5121 \end_inset
5122
5123 Template
5124 \lang english
5125 \SpecialChar menuseparator
5126 Articles\SpecialChar menuseparator
5127 Astronomy & Astrophysics
5128 \family default
5129 \lang american
5130 .
5131  If you are not using the template, note the following settings:
5132 \end_layout
5133
5134 \begin_layout Itemize
5135
5136 \change_inserted 564990737 1670794716
5137
5138 \lang american
5139 Select 
5140 \family sans
5141 article (A&A)
5142 \family default
5143  in the 
5144 \family sans
5145 \bar under
5146 D
5147 \bar default
5148 ocument\SpecialChar menuseparator
5149
5150 \bar under
5151 S
5152 \bar default
5153 ettings\SpecialChar menuseparator
5154 Document
5155 \begin_inset space ~
5156 \end_inset
5157
5158 Class
5159 \family default
5160  dialog (OK, that one was obvious).
5161 \end_layout
5162
5163 \begin_layout Itemize
5164
5165 \change_inserted 564990737 1670794716
5166
5167 \lang american
5168 Don't change the 
5169 \family sans
5170 Headings
5171 \begin_inset space ~
5172 \end_inset
5173
5174
5175 \bar under
5176 s
5177 \bar default
5178 tyle
5179 \family default
5180  in the 
5181 \family sans
5182 Page
5183 \begin_inset space ~
5184 \end_inset
5185
5186 Layout
5187 \family default
5188  dialog: leave it set to 
5189 \family sans
5190 Default
5191 \family default
5192 .
5193  The whole layout is done by the macros, you shouldn't change anything.
5194 \end_layout
5195
5196 \begin_layout Subsubsection
5197
5198 \change_inserted 564990737 1670794716
5199
5200 \lang american
5201 The header block
5202 \end_layout
5203
5204 \begin_layout Standard
5205
5206 \change_inserted 564990737 1670794716
5207
5208 \lang american
5209 First thing to enter is the header information.
5210  It consists of five entries, of which one is optional.
5211  They are
5212 \end_layout
5213
5214 \begin_layout Itemize
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \family sans
5219 \lang american
5220 Title
5221 \family default
5222 : [required] 
5223 \end_layout
5224
5225 \begin_layout Itemize
5226
5227 \change_inserted 564990737 1670794716
5228
5229 \family sans
5230 \lang american
5231 Subtitle
5232 \family default
5233 : [optional] 
5234 \end_layout
5235
5236 \begin_layout Itemize
5237
5238 \change_inserted 564990737 1670794716
5239
5240 \family sans
5241 \lang american
5242 Author
5243 \family default
5244 : [required]
5245 \end_layout
5246
5247 \begin_layout Itemize
5248
5249 \change_inserted 564990737 1670794716
5250
5251 \family typewriter
5252 \lang american
5253 Institute
5254 \family default
5255 : [required]
5256 \end_layout
5257
5258 \begin_layout Itemize
5259
5260 \change_inserted 564990737 1670794716
5261
5262 \family sans
5263 \lang american
5264 Date
5265 \family default
5266 : [required].
5267  Suggested format is 
5268 \family typewriter
5269 Received: <date>; Accepted <date> 
5270 \end_layout
5271
5272 \begin_layout Standard
5273
5274 \change_inserted 564990737 1670794716
5275
5276 \lang american
5277 Although the order of the single header entries doesn't matter it is advised
5278  to keep the above sequence, just to get the best optics and meets the layout
5279  of the real document.
5280 \end_layout
5281
5282 \begin_layout Standard
5283
5284 \change_inserted 564990737 1670794716
5285
5286 \lang american
5287 If you want to place footnotes in the header block, e.
5288 \begin_inset space \thinspace{}
5289 \end_inset
5290
5291 g.
5292 \begin_inset space \space{}
5293 \end_inset
5294
5295 to state your present address, just use the standard footnote via the menu
5296  
5297 \family sans
5298 \bar under
5299 I
5300 \bar default
5301 nsert\SpecialChar menuseparator
5302
5303 \bar under
5304 F
5305 \bar default
5306 ootnote.
5307
5308 \family default
5309  \SpecialChar LyX
5310  will automagically use the term 
5311 \family typewriter
5312
5313 \backslash
5314 thanks{}
5315 \family default
5316  in that case.
5317 \end_layout
5318
5319 \begin_layout Standard
5320
5321 \change_inserted 564990737 1670794716
5322
5323 \lang american
5324 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5325  commands that
5326  have no counterpart in \SpecialChar LyX
5327 :
5328 \end_layout
5329
5330 \begin_layout Itemize
5331
5332 \change_inserted 564990737 1670794716
5333
5334 \family typewriter
5335 \lang american
5336
5337 \backslash
5338 and
5339 \family default
5340  to separate different names for more than one author and institute, respectivel
5341 y.
5342 \end_layout
5343
5344 \begin_layout Itemize
5345
5346 \change_inserted 564990737 1670794716
5347
5348 \family typewriter
5349 \lang american
5350
5351 \backslash
5352 inst{<nr>}
5353 \family default
5354  to mark corresponding author/institute pairs.
5355  The institutes are numbered sequentially as they appear in the 
5356 \family sans
5357 Institute
5358 \family default
5359  field, so you have to put a marker to each author.
5360 \end_layout
5361
5362 \begin_layout Itemize
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \family typewriter
5367 \lang american
5368
5369 \backslash
5370 email{address}
5371 \family default
5372  to supply an email address for fast contact.
5373 \end_layout
5374
5375 \begin_layout Standard
5376
5377 \change_inserted 564990737 1671642374
5378
5379 \lang american
5380 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5381  code in \SpecialChar LyX
5382 .
5383  See the examples in the template and in 
5384 \family sans
5385 \lang british
5386 File\SpecialChar menuseparator
5387 Open Example\SpecialChar menuseparator
5388 Articles\SpecialChar menuseparator
5389 Astronomy & Astrophysics
5390 \family default
5391 \lang american
5392 .
5393 \change_unchanged
5394
5395 \end_layout
5396
5397 \begin_layout Subsubsection
5398
5399 \change_inserted 564990737 1670794716
5400
5401 \lang american
5402 The abstract
5403 \end_layout
5404
5405 \begin_layout Standard
5406
5407 \change_inserted 564990737 1670794716
5408
5409 \lang american
5410 The abstract should immediately follow the header block and must contain
5411  five tokens: 
5412 \family typewriter
5413
5414 \backslash
5415 abstract{}{}{}{}{}
5416 \family default
5417  
5418 \end_layout
5419
5420 \begin_layout Enumerate
5421
5422 \change_inserted 564990737 1670794716
5423
5424 \family typewriter
5425 \lang american
5426 context heading
5427 \family default
5428  (optional) {} leave it empty if necessary 
5429 \end_layout
5430
5431 \begin_layout Enumerate
5432
5433 \change_inserted 564990737 1670794716
5434
5435 \family typewriter
5436 \lang american
5437 aims heading
5438 \family default
5439  (mandatory) {} 
5440 \end_layout
5441
5442 \begin_layout Enumerate
5443
5444 \change_inserted 564990737 1670794716
5445
5446 \family typewriter
5447 \lang american
5448 methods heading
5449 \family default
5450  (mandatory) {} 
5451 \end_layout
5452
5453 \begin_layout Enumerate
5454
5455 \change_inserted 564990737 1670794716
5456
5457 \family typewriter
5458 \lang american
5459 results heading
5460 \family default
5461  (mandatory) {} 
5462 \end_layout
5463
5464 \begin_layout Enumerate
5465
5466 \change_inserted 564990737 1670794716
5467
5468 \family typewriter
5469 \lang american
5470 conclusions heading
5471 \family default
5472  (optional) {} leave it empty if necessary 
5473 \end_layout
5474
5475 \begin_layout Standard
5476
5477 \change_inserted 564990737 1670794716
5478
5479 \lang american
5480 (NB.
5481  This structure not shown in 
5482 \emph on
5483 aa_sample.lyx.
5484 \emph default
5485 )
5486 \end_layout
5487
5488 \begin_layout Subsubsection
5489
5490 \change_inserted 564990737 1670794716
5491
5492 \lang american
5493 Supported environments
5494 \end_layout
5495
5496 \begin_layout Standard
5497
5498 \change_inserted 564990737 1670794716
5499
5500 \lang american
5501 The A&A paper layout supports the following environments for structuring
5502  your text:
5503 \end_layout
5504
5505 \begin_layout Itemize
5506
5507 \change_inserted 564990737 1670794716
5508
5509 \family sans
5510 \lang american
5511 Standard
5512 \end_layout
5513
5514 \begin_layout Itemize
5515
5516 \change_inserted 564990737 1670794716
5517
5518 \family sans
5519 \lang american
5520 Section
5521 \end_layout
5522
5523 \begin_layout Itemize
5524
5525 \change_inserted 564990737 1670794716
5526
5527 \family sans
5528 \lang american
5529 Subsection
5530 \end_layout
5531
5532 \begin_layout Itemize
5533
5534 \change_inserted 564990737 1670794716
5535
5536 \family sans
5537 \lang american
5538 Subsubsection
5539 \end_layout
5540
5541 \begin_layout Itemize
5542
5543 \change_inserted 564990737 1670794716
5544
5545 \family sans
5546 \lang american
5547 Itemize
5548 \end_layout
5549
5550 \begin_layout Itemize
5551
5552 \change_inserted 564990737 1670794716
5553
5554 \family sans
5555 \lang american
5556 Enumerate
5557 \end_layout
5558
5559 \begin_layout Itemize
5560
5561 \change_inserted 564990737 1670794716
5562
5563 \family sans
5564 \lang american
5565 Description
5566 \end_layout
5567
5568 \begin_layout Itemize
5569
5570 \change_inserted 564990737 1670794716
5571
5572 \family sans
5573 \lang american
5574 Caption
5575 \end_layout
5576
5577 \begin_layout Itemize
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \family sans
5582 \lang american
5583 Abstract
5584 \end_layout
5585
5586 \begin_layout Itemize
5587
5588 \change_inserted 564990737 1670794716
5589
5590 \family sans
5591 \lang american
5592 Acknowledgment
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \change_inserted 564990737 1670794716
5598
5599 \family sans
5600 \lang american
5601 Bibliography
5602 \end_layout
5603
5604 \begin_layout Itemize
5605
5606 \change_inserted 564990737 1670794716
5607
5608 \family sans
5609 \lang american
5610 \SpecialChar LaTeX
5611
5612 \end_layout
5613
5614 \begin_layout Subsubsection
5615
5616 \change_inserted 564990737 1670794716
5617
5618 \lang american
5619 Commands not supported by \SpecialChar LyX
5620
5621 \end_layout
5622
5623 \begin_layout Standard
5624
5625 \change_inserted 564990737 1670794716
5626
5627 \lang american
5628 Some commands are not yet supported by the 
5629 \family sans
5630 paper (A&A)
5631 \family default
5632  layout for \SpecialChar LyX
5633 .
5634  Some have already been mentioned.
5635  For the sake of completeness, they are listed all together here:
5636 \end_layout
5637
5638 \begin_layout Itemize
5639
5640 \change_inserted 564990737 1670794716
5641
5642 \family typewriter
5643 \lang american
5644
5645 \backslash
5646 and
5647 \end_layout
5648
5649 \begin_layout Itemize
5650
5651 \change_inserted 564990737 1670794716
5652
5653 \family typewriter
5654 \lang american
5655
5656 \backslash
5657 email
5658 \end_layout
5659
5660 \begin_layout Itemize
5661
5662 \change_inserted 564990737 1670794716
5663
5664 \family typewriter
5665 \lang american
5666
5667 \backslash
5668 inst{}
5669 \end_layout
5670
5671 \begin_layout Itemize
5672
5673 \change_inserted 564990737 1670794716
5674
5675 \family typewriter
5676 \lang american
5677
5678 \backslash
5679 keywords{}
5680 \end_layout
5681
5682 \begin_layout Itemize
5683
5684 \change_inserted 564990737 1670794716
5685
5686 \family typewriter
5687 \lang american
5688
5689 \backslash
5690 object{}
5691 \end_layout
5692
5693 \begin_layout Standard
5694
5695 \change_inserted 564990737 1670794716
5696
5697 \lang american
5698 If you want to use any of these commands, you have to enter them yourself.
5699  
5700 \family typewriter
5701 Do not forget to use
5702 \family sans
5703  
5704 \bar under
5705 I
5706 \bar default
5707 nsert\SpecialChar menuseparator
5708 \SpecialChar TeX
5709
5710 \begin_inset space ~
5711 \end_inset
5712
5713 Code
5714 \family default
5715 \series bold
5716 !
5717 \end_layout
5718
5719 \begin_layout Subsubsection
5720
5721 \change_inserted 564990737 1670794716
5722
5723 \lang american
5724 Figure and Table Floats
5725 \end_layout
5726
5727 \begin_layout Standard
5728
5729 \change_inserted 564990737 1670794716
5730
5731 \lang american
5732 \SpecialChar LyX
5733  provides support for the necessary float environments 
5734 \family sans
5735 figure, figure*, table
5736 \family default
5737  and 
5738 \family sans
5739 table*
5740 \family default
5741 , therefore we won't tell much about it here.
5742  Refer to the 
5743 \emph on
5744 User's
5745 \begin_inset space ~
5746 \end_inset
5747
5748 Guide
5749 \emph default
5750 .
5751  Just remember that tables should be left-aligned.
5752  For that, select the table and change the alignment in 
5753 \family sans
5754 \bar under
5755 E
5756 \bar default
5757 dit\SpecialChar menuseparator
5758
5759 \bar under
5760 P
5761 \bar default
5762 aragraph
5763 \begin_inset space ~
5764 \end_inset
5765
5766 Settings.
5767 \end_layout
5768
5769 \begin_layout Standard
5770
5771 \change_inserted 564990737 1670794716
5772
5773 \lang american
5774 There is only one special thing: the figures with a caption beside the figure.
5775  To create such a figure, you have to do the following:
5776 \end_layout
5777
5778 \begin_layout Enumerate
5779
5780 \change_inserted 564990737 1670794716
5781
5782 \lang american
5783 Create a wide figure float: 
5784 \family sans
5785 \bar under
5786 I
5787 \bar default
5788 nsert\SpecialChar menuseparator
5789 Flo
5790 \bar under
5791 a
5792 \bar default
5793 t\SpecialChar menuseparator
5794 Figure
5795 \family default
5796 , then, from within the float, use the menu 
5797 \family sans
5798 \bar under
5799 E
5800 \bar default
5801 dit\SpecialChar menuseparator
5802 Flo
5803 \bar under
5804 a
5805 \bar default
5806 t
5807 \begin_inset space ~
5808 \end_inset
5809
5810 Settings
5811 \family default
5812  and check 
5813 \family sans
5814 \bar under
5815 S
5816 \bar default
5817 pan
5818 \begin_inset space ~
5819 \end_inset
5820
5821 columns
5822 \family default
5823  in the 
5824 \family sans
5825 float
5826 \family default
5827  dialog.
5828 \end_layout
5829
5830 \begin_layout Enumerate
5831
5832 \change_inserted 564990737 1670794716
5833
5834 \lang american
5835 Enter your caption text.
5836 \end_layout
5837
5838 \begin_layout Enumerate
5839
5840 \change_inserted 564990737 1670794716
5841
5842 \lang american
5843 Press 
5844 \family sans
5845 Return
5846 \family default
5847  to move the cursor above the caption.
5848 \end_layout
5849
5850 \begin_layout Enumerate
5851
5852 \change_inserted 564990737 1670794716
5853
5854 \lang american
5855 Insert your figure
5856 \end_layout
5857
5858 \begin_layout Enumerate
5859
5860 \change_inserted 564990737 1670794716
5861
5862 \lang american
5863 Position the cursor after the figure and insert a horizontal fill by using
5864  the menu: 
5865 \family sans
5866 \bar under
5867 I
5868 \bar default
5869 nsert\SpecialChar menuseparator
5870 F
5871 \bar under
5872 o
5873 \bar default
5874 rmatting\SpecialChar menuseparator
5875 H
5876 \bar under
5877 o
5878 \bar default
5879 rizontal
5880 \begin_inset space ~
5881 \end_inset
5882
5883 Space
5884 \family default
5885  to open the 
5886 \family sans
5887 space
5888 \family default
5889  dialog and select the 
5890 \family sans
5891 Horizontal fill
5892 \family default
5893  option from the 
5894 \family sans
5895 \bar under
5896 S
5897 \bar default
5898 pacing
5899 \family default
5900  pull-down menu.
5901 \end_layout
5902
5903 \begin_layout Enumerate
5904
5905 \change_inserted 564990737 1670794716
5906
5907 \lang american
5908 Switch to \SpecialChar LaTeX
5909  mode: 
5910 \family sans
5911 M-c
5912 \begin_inset space ~
5913 \end_inset
5914
5915 t
5916 \family default
5917 .
5918 \end_layout
5919
5920 \begin_layout Enumerate
5921
5922 \change_inserted 564990737 1670794716
5923
5924 \lang american
5925 Enter 
5926 \family typewriter
5927
5928 \backslash
5929 parbox[b]{55mm}{
5930 \family default
5931  
5932 \emph on
5933 Do not close the brace!
5934 \end_layout
5935
5936 \begin_layout Enumerate
5937
5938 \change_inserted 564990737 1670794716
5939
5940 \lang american
5941 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5942  mode and insert
5943  the closing brace: 
5944 \family sans
5945 M-c
5946 \begin_inset space ~
5947 \end_inset
5948
5949 t
5950 \family default
5951  
5952 \family typewriter
5953 }
5954 \family default
5955 .
5956 \end_layout
5957
5958 \begin_layout Standard
5959
5960 \change_inserted 564990737 1671642458
5961
5962 \lang american
5963 Also, refer to the figures in the file in 
5964 \family sans
5965 \lang british
5966 File\SpecialChar menuseparator
5967 Open Example\SpecialChar menuseparator
5968 Articles\SpecialChar menuseparator
5969 Astronomy & Astrophysics
5970 \family default
5971 \lang american
5972 .
5973 \end_layout
5974
5975 \begin_layout Subsubsection
5976
5977 \change_inserted 564990737 1670794716
5978
5979 \lang american
5980 Referee layout
5981 \end_layout
5982
5983 \begin_layout Standard
5984
5985 \change_inserted 564990737 1670794716
5986
5987 \lang american
5988 For submission, the paper has to be formatted in a special double-spacing
5989  layout.
5990  For this purpose, you have to add the option 
5991 \family typewriter
5992 referee
5993 \family default
5994  to the 
5995 \family sans
5996 Cus
5997 \bar under
5998 t
5999 \bar default
6000 om Class
6001 \begin_inset space ~
6002 \end_inset
6003
6004 options
6005 \family default
6006  in the 
6007 \family sans
6008 \bar under
6009 D
6010 \bar default
6011 ocument\SpecialChar menuseparator
6012
6013 \bar under
6014 S
6015 \bar default
6016 ettings\SpecialChar menuseparator
6017 Document
6018 \begin_inset space ~
6019 \end_inset
6020
6021 Class
6022 \family default
6023  dialog.
6024  
6025 \end_layout
6026
6027 \begin_layout Subsubsection
6028
6029 \change_inserted 564990737 1670794716
6030
6031 \lang american
6032 The example paper
6033 \end_layout
6034
6035 \begin_layout Standard
6036
6037 \change_inserted 564990737 1671642520
6038
6039 \lang american
6040 The example in 
6041 \family sans
6042 \lang british
6043 File\SpecialChar menuseparator
6044 Open Example\SpecialChar menuseparator
6045 Articles\SpecialChar menuseparator
6046 Astronomy & Astrophysics
6047 \family default
6048 \lang american
6049  was written with \SpecialChar LyX
6050 .
6051  It is the example paper from the original macro package, 
6052 \family typewriter
6053 aa.dem
6054 \family default
6055  in the 
6056 \begin_inset CommandInset href
6057 LatexCommand href
6058 name "aa-package"
6059 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6060 literal "false"
6061
6062 \end_inset
6063
6064 , but translated to \SpecialChar LyX
6065  using the older unstructured abstract type.
6066  Use it for inspiration, and compare the \SpecialChar LaTeX
6067  code in 
6068 \family typewriter
6069 aa.dem
6070 \family default
6071  with the \SpecialChar LyX
6072  way of writing.
6073 \end_layout
6074
6075 \begin_layout Subsection
6076 AAS\SpecialChar TeX
6077
6078 \end_layout
6079
6080 \begin_layout Standard
6081 by 
6082 \noun on
6083 Mike Ressler
6084 \end_layout
6085
6086 \begin_layout Subsubsection
6087 Introduction
6088 \end_layout
6089
6090 \begin_layout Standard
6091 AAS\SpecialChar TeX
6092  is a set of macros produced by the American Astronomical Society to
6093  facilitate electronic manuscript submission to the three journals they
6094  publish: the Astrophysical Journal (including the Letters and Supplement),
6095  the Astronomical Journal, and the Publications of the Astronomical Society
6096  of the Pacific.
6097  \SpecialChar LyX
6098  has proven to be an excellent tool for generating these documents, especially
6099  given its equation, citation, and figure handling capabilities.
6100  \SpecialChar LyX
6101  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6102  is the version described here, or higher.
6103  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6104 2.09 and are fundamentally
6105  incompatible with \SpecialChar LyX
6106 .
6107  The AAS\SpecialChar TeX
6108  package may be downloaded from the AAS\SpecialChar TeX
6109  Web site
6110 \end_layout
6111
6112 \begin_layout Standard
6113 \begin_inset VSpace medskip
6114 \end_inset
6115
6116
6117 \end_layout
6118
6119 \begin_layout Standard
6120 \align center
6121 \begin_inset Flex URL
6122 status collapsed
6123
6124 \begin_layout Plain Layout
6125
6126 https://aas.org/aastex/aastex-downloads
6127 \end_layout
6128
6129 \end_inset
6130
6131
6132 \end_layout
6133
6134 \begin_layout Standard
6135 \begin_inset VSpace medskip
6136 \end_inset
6137
6138
6139 \end_layout
6140
6141 \begin_layout Standard
6142 A complete user guide is contained in that package and you should familiarize
6143  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6144 .
6145  \SpecialChar LyX
6146  will not reduce the need to figure out all the AAS\SpecialChar TeX
6147  commands, it will only
6148  reduce the drudgery of typing everything in.
6149  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6150  document conforms
6151  completely to the requirements of the journal to which you are submitting
6152  your paper.
6153 \end_layout
6154
6155 \begin_layout Subsubsection
6156 Starting a New Paper
6157 \end_layout
6158
6159 \begin_layout Standard
6160 I strongly suggest that you start with the AAS\SpecialChar TeX
6161  template file.
6162  Click on 
6163 \family sans
6164 File\SpecialChar menuseparator
6165 New from
6166 \family default
6167  
6168 \family sans
6169 Template
6170 \change_inserted 564990737 1671617265
6171 \SpecialChar menuseparator
6172 Articles\SpecialChar menuseparator
6173 American Astronomical Society
6174 \change_deleted 564990737 1671617310
6175
6176 \family default
6177 , enter the new file name, then choose the 
6178 \family typewriter
6179 aastex6.lyx
6180 \family default
6181  template
6182 \change_unchanged
6183 .
6184  This will show the most common fields found in a manuscript.
6185  Simply overwrite the existing text (including the brackets, 
6186 \family typewriter
6187 <>
6188 \family default
6189 ) with the correct information.
6190  Many of the AAS\SpecialChar TeX
6191  commands and environments can be implemented directly in
6192  \SpecialChar LyX
6193 , but some cannot.
6194  For commands such as these, the \SpecialChar LaTeX
6195  code must be entered directly and marked
6196  as such.
6197  Such commands are referred to as \SpecialChar TeX
6198  code, or Evil Red Text.
6199  I tried to minimize the amount of \SpecialChar TeX
6200  code needed in an AAS\SpecialChar TeX
6201  document.
6202 \end_layout
6203
6204 \begin_layout Subsubsection
6205 Finishing Your Paper
6206 \end_layout
6207
6208 \begin_layout Standard
6209 When the paper is finished to your satisfaction and previews/prints correctly,
6210  there are a few 
6211 \begin_inset Quotes eld
6212 \end_inset
6213
6214 postprocessing
6215 \begin_inset Quotes erd
6216 \end_inset
6217
6218  actions which need to be done before you submit it to the journals.
6219  
6220 \end_layout
6221
6222 \begin_layout Enumerate
6223 Export your paper as a \SpecialChar LaTeX
6224  file (
6225 \family sans
6226 File\SpecialChar menuseparator
6227 Export\SpecialChar menuseparator
6228 \SpecialChar LaTeX
6229
6230 \family default
6231 ).
6232  
6233 \end_layout
6234
6235 \begin_layout Enumerate
6236 Edit the resulting 
6237 \family typewriter
6238 .tex
6239 \family default
6240  file with your favorite text editor
6241 \end_layout
6242
6243 \begin_deeper
6244 \begin_layout Enumerate
6245 remove the comment lines before the 
6246 \family typewriter
6247
6248 \backslash
6249 documentclass
6250 \family default
6251  command
6252 \end_layout
6253
6254 \begin_layout Enumerate
6255 remove the 
6256 \family typewriter
6257
6258 \backslash
6259 usepackage...{fontenc}
6260 \family default
6261  line if it appears (usually just after 
6262 \family typewriter
6263
6264 \backslash
6265 documentclass
6266 \family default
6267 }; also remove the 
6268 \family typewriter
6269
6270 \backslash
6271 secnumdepth
6272 \family default
6273  line if it appears.
6274 \end_layout
6275
6276 \begin_layout Enumerate
6277 remove everything between (and including) the 
6278 \family typewriter
6279
6280 \backslash
6281 makeatletter
6282 \family default
6283  and 
6284 \family typewriter
6285
6286 \backslash
6287 makeatother
6288 \family default
6289  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6290  preamble
6291  (which should appear immediately after the 
6292 \begin_inset Quotes eld
6293 \end_inset
6294
6295 User specified \SpecialChar LaTeX
6296  commands
6297 \begin_inset Quotes erd
6298 \end_inset
6299
6300  comment in the 
6301 \family typewriter
6302 .tex
6303 \family default
6304  file).
6305 \end_layout
6306
6307 \end_deeper
6308 \begin_layout Enumerate
6309 Run the resulting file through \SpecialChar LaTeX
6310  to make sure it still processes correctly.
6311 \end_layout
6312
6313 \begin_layout Enumerate
6314 Reread the journal requirements to make sure your filenames and formats
6315  are correct.
6316 \end_layout
6317
6318 \begin_layout Enumerate
6319 Submit it.
6320 \end_layout
6321
6322 \begin_layout Subsubsection
6323 Comments On Specific Commands
6324 \end_layout
6325
6326 \begin_layout Standard
6327 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6328  commands: the
6329  AAS\SpecialChar TeX
6330  User Guide (
6331 \family typewriter
6332 aasguide.tex
6333 \family default
6334 ) gives a good description of each.
6335  Thus it's probably easiest for me to go down the list as found in the guide
6336  and offer comments where necessary.
6337  So let's begin \SpecialChar ldots
6338
6339 \end_layout
6340
6341 \begin_layout Paragraph
6342 Things that work as expected
6343 \end_layout
6344
6345 \begin_layout Standard
6346 Because they work as you might expect, I simply list them and the section
6347  they are found in: 
6348 \family typewriter
6349
6350 \backslash
6351 documentclass
6352 \family default
6353  (2.1.1), 
6354 \family typewriter
6355
6356 \backslash
6357 begin{document}
6358 \family default
6359  (2.2), 
6360 \family typewriter
6361
6362 \backslash
6363 title
6364 \family default
6365  (2.3), 
6366 \family typewriter
6367
6368 \backslash
6369 author
6370 \family default
6371  (2.3), 
6372 \family typewriter
6373
6374 \backslash
6375 affil
6376 \family default
6377  (2.3), 
6378 \family typewriter
6379
6380 \backslash
6381 abstract
6382 \family default
6383  (2.4), 
6384 \family typewriter
6385
6386 \backslash
6387 keywords
6388 \family default
6389  (2.5), 
6390 \family typewriter
6391
6392 \backslash
6393 section
6394 \family default
6395  (2.7), 
6396 \family typewriter
6397
6398 \backslash
6399 subsection
6400 \family default
6401  (2.7), 
6402 \family typewriter
6403
6404 \backslash
6405 subsubsection
6406 \family default
6407  (2.7), 
6408 \family typewriter
6409
6410 \backslash
6411 paragraph
6412 \family default
6413  (2.7), 
6414 \family typewriter
6415
6416 \backslash
6417 facility
6418 \family default
6419  (2.10), 
6420 \family typewriter
6421
6422 \backslash
6423 begin{displaymath}
6424 \family default
6425  (2.12), 
6426 \family typewriter
6427
6428 \backslash
6429 begin{equation}
6430 \family default
6431  (2.12), 
6432 \family typewriter
6433
6434 \backslash
6435 begin{eqnarray}
6436 \family default
6437  (2.12), 
6438 \family typewriter
6439
6440 \backslash
6441 begin{mathletters}
6442 \family default
6443  (2.12), 
6444 \family typewriter
6445
6446 \backslash
6447 begin{thebibliography}
6448 \family default
6449  (2.13.1), 
6450 \family typewriter
6451
6452 \backslash
6453 bibitem
6454 \family default
6455  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6456  graphicx figure commands (2.14.1), 
6457 \family typewriter
6458
6459 \backslash
6460 begin{table}
6461 \family default
6462  (2.15.4), 
6463 \family typewriter
6464
6465 \backslash
6466 begin{tabular}
6467 \family default
6468  (2.15.4), 
6469 \family typewriter
6470
6471 \backslash
6472 caption
6473 \family default
6474  (2.15.4), 
6475 \family typewriter
6476
6477 \backslash
6478 label
6479 \family default
6480  (2.15.4, amongst other places), 
6481 \family typewriter
6482
6483 \backslash
6484 tablerefs
6485 \family default
6486  (2.15.5), 
6487 \family typewriter
6488
6489 \backslash
6490 tablecomments
6491 \family default
6492  (2.15.5), 
6493 \family typewriter
6494
6495 \backslash
6496 url
6497 \family default
6498  (2.17.4), 
6499 \family typewriter
6500
6501 \backslash
6502 end{document}
6503 \family default
6504  (2.18).
6505 \end_layout
6506
6507 \begin_layout Standard
6508 The following style options also work correctly: 
6509 \family typewriter
6510 longabstract
6511 \family default
6512  (2.4), 
6513 \family typewriter
6514 preprint
6515 \family default
6516  (3.2.1), 
6517 \family typewriter
6518 preprint2
6519 \family default
6520  (3.2.2), 
6521 \family typewriter
6522 eqsecnum
6523 \family default
6524  (3.3), 
6525 \family typewriter
6526 flushrt
6527 \family default
6528  (3.4).
6529  Simply put them in the 
6530 \family sans
6531 Options
6532 \family default
6533  box in 
6534 \family sans
6535 Layout\SpecialChar menuseparator
6536 Document
6537 \family default
6538 .
6539 \end_layout
6540
6541 \begin_layout Paragraph
6542 Things that work, but require more comment
6543 \end_layout
6544
6545 \begin_layout Standard
6546 The following items work, but require a little more discussion:
6547 \end_layout
6548
6549 \begin_layout Itemize
6550 These items are reserved for use by the journal editors, but you can put
6551  them into the \SpecialChar LaTeX
6552  preamble if you feel compelled to do so: 
6553 \family typewriter
6554
6555 \backslash
6556 received
6557 \family default
6558
6559 \family typewriter
6560
6561 \backslash
6562 revised
6563 \family default
6564
6565 \family typewriter
6566
6567 \backslash
6568 accepted
6569 \family default
6570
6571 \family typewriter
6572
6573 \backslash
6574 ccc
6575 \family default
6576
6577 \family typewriter
6578
6579 \backslash
6580 cpright
6581 \family default
6582  (all from 2.1.3)
6583 \end_layout
6584
6585 \begin_layout Itemize
6586 These items may be placed in the \SpecialChar LaTeX
6587  preamble, and are included as blanks in
6588  the template file: 
6589 \family typewriter
6590
6591 \backslash
6592 slugcomment
6593 \family default
6594  (2.1.4), 
6595 \family typewriter
6596
6597 \backslash
6598 shorttitle
6599 \family default
6600  (2.1.5), 
6601 \family typewriter
6602
6603 \backslash
6604 shortauthors
6605 \family default
6606  (2.1.5)
6607 \end_layout
6608
6609 \begin_layout Itemize
6610
6611 \family typewriter
6612
6613 \backslash
6614 email
6615 \family default
6616  (2.3) – can only be used 
6617 \begin_inset Quotes eld
6618 \end_inset
6619
6620 standalone
6621 \begin_inset Quotes erd
6622 \end_inset
6623
6624 , not in the middle of a paragraph.
6625  Use \SpecialChar TeX
6626  code if you need to embed it.
6627 \end_layout
6628
6629 \begin_layout Itemize
6630
6631 \family typewriter
6632
6633 \backslash
6634 and
6635 \family default
6636  (2.3) – will have extra {} after it.
6637  This should not cause an error.
6638 \end_layout
6639
6640 \begin_layout Itemize
6641
6642 \family typewriter
6643
6644 \backslash
6645 notetoeditor
6646 \family default
6647  (2.6) – can only be used 
6648 \begin_inset Quotes eld
6649 \end_inset
6650
6651 standalone
6652 \begin_inset Quotes erd
6653 \end_inset
6654
6655 , not in the middle of a paragraph.
6656  Use \SpecialChar TeX
6657  code if you need to embed it.
6658 \end_layout
6659
6660 \begin_layout Itemize
6661
6662 \family typewriter
6663
6664 \backslash
6665 placetable
6666 \family default
6667  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6668  hand
6669 \end_layout
6670
6671 \begin_layout Itemize
6672
6673 \family typewriter
6674
6675 \backslash
6676 placefigure
6677 \family default
6678  (2.8) – same as for 
6679 \family typewriter
6680
6681 \backslash
6682 placetable
6683 \end_layout
6684
6685 \begin_layout Itemize
6686
6687 \family typewriter
6688
6689 \backslash
6690 acknowledgements
6691 \family default
6692  (2.9) – will have extra {} after it.
6693  This should not cause an error.
6694 \end_layout
6695
6696 \begin_layout Itemize
6697
6698 \family typewriter
6699
6700 \backslash
6701 appendix
6702 \family default
6703  (2.11) – will have extra {} after it.
6704  This should not cause an error.
6705 \end_layout
6706
6707 \begin_layout Itemize
6708
6709 \family typewriter
6710
6711 \backslash
6712 figcaption
6713 \family default
6714  (2.14.2) – you can insert an optional filename argument by placing the cursor
6715  at the beginning of the text and selecting 
6716 \family sans
6717 Insert\SpecialChar menuseparator
6718 Short Title
6719 \family default
6720 .
6721  
6722 \begin_inset Quotes eld
6723 \end_inset
6724
6725 Short Title
6726 \begin_inset Quotes erd
6727 \end_inset
6728
6729  inserts an optional argument of the type needed by 
6730 \family typewriter
6731
6732 \backslash
6733 figcaption
6734 \family default
6735 .
6736  Hopefully it will be renamed someday.
6737 \end_layout
6738
6739 \begin_layout Itemize
6740
6741 \family typewriter
6742
6743 \backslash
6744 objectname
6745 \family default
6746  (2.17.1) – same as 
6747 \family typewriter
6748
6749 \backslash
6750 figcaption
6751 \family default
6752  for the catalog ID optional parameter
6753 \end_layout
6754
6755 \begin_layout Itemize
6756
6757 \family typewriter
6758
6759 \backslash
6760 dataset
6761 \family default
6762  (2.17.1) – same as 
6763 \family typewriter
6764
6765 \backslash
6766 figcaption
6767 \family default
6768  for the catalog ID optional parameter
6769 \end_layout
6770
6771 \begin_layout Paragraph
6772 Things not implemented, use \SpecialChar TeX
6773  code
6774 \end_layout
6775
6776 \begin_layout Standard
6777
6778 \family typewriter
6779
6780 \backslash
6781 eqnum
6782 \family default
6783  (2.12), 
6784 \family typewriter
6785
6786 \backslash
6787 setcounter{equation}
6788 \family default
6789  (2.12), Journal name abbreviations (2.13.4), 
6790 \family typewriter
6791
6792 \backslash
6793 figurenum
6794 \family default
6795  (2.14.1), 
6796 \family typewriter
6797
6798 \backslash
6799 epsscale
6800 \family default
6801  (2.14.1), 
6802 \family typewriter
6803
6804 \backslash
6805 plotone
6806 \family default
6807  (2.14.1), 
6808 \family typewriter
6809
6810 \backslash
6811 plottwo
6812 \family default
6813  (2.14.1), 
6814 \family typewriter
6815
6816 \backslash
6817 tablenum
6818 \family default
6819  (2.15.4), 
6820 \family typewriter
6821
6822 \backslash
6823 tableline
6824 \family default
6825  (2.15.4, insert it as the first element in the lefthand cell after where
6826  you want it.
6827  Don't use any of \SpecialChar LyX
6828 's rules in the table), 
6829 \family typewriter
6830
6831 \backslash
6832 tablenotemark
6833 \family default
6834  (2.15.5), 
6835 \family typewriter
6836
6837 \backslash
6838 tablenotetext
6839 \family default
6840  (2.15.5), much of Misc (2.17, except 
6841 \family typewriter
6842
6843 \backslash
6844 objectname
6845 \family default
6846
6847 \family typewriter
6848
6849 \backslash
6850 dataset
6851 \family default
6852
6853 \family typewriter
6854
6855 \backslash
6856 url
6857 \family default
6858 , and 
6859 \family typewriter
6860
6861 \backslash
6862 email
6863 \family default
6864 ; see above), 
6865 \family typewriter
6866
6867 \backslash
6868 singlespace
6869 \family default
6870  (3.1), 
6871 \family typewriter
6872
6873 \backslash
6874 doublespace
6875 \family default
6876  (3.1), 
6877 \family typewriter
6878
6879 \backslash
6880 onecolumn
6881 \family default
6882  (3.2), 
6883 \family typewriter
6884
6885 \backslash
6886 twocolumn
6887 \family default
6888  (3.2)
6889 \end_layout
6890
6891 \begin_layout Paragraph
6892 Things that cannot be implemented
6893 \end_layout
6894
6895 \begin_layout Standard
6896 \SpecialChar ldots
6897  at least in any meaningful sort of way, so I suggest ignoring them.
6898  They are the references environment (2.13.3), and the deluxetable environment
6899  (2.15).
6900  If you really, really need to use deluxetable, I suggest editing it in
6901  a separate file with a text editor, then using 
6902 \family sans
6903 Insert\SpecialChar menuseparator
6904 Child
6905 \begin_inset space ~
6906 \end_inset
6907
6908 Document
6909 \family default
6910  to include it in your \SpecialChar LyX
6911  document.
6912  See 
6913 \change_deleted 564990737 1671642564
6914 the 
6915 \family typewriter
6916 aas_sample.lyx
6917 \family default
6918  file to see
6919 \change_inserted 564990737 1671642618
6920
6921 \family sans
6922 \lang british
6923 File\SpecialChar menuseparator
6924 Open Example\SpecialChar menuseparator
6925 Articles\SpecialChar menuseparator
6926 American Astronomical Society
6927 \change_unchanged
6928
6929 \family default
6930 \lang english
6931  
6932 \change_inserted 564990737 1671642621
6933 for 
6934 \change_unchanged
6935 an example of this.
6936 \end_layout
6937
6938 \begin_layout Subsubsection
6939 FAQs, Tips, Tricks, and Other Ruminations
6940 \end_layout
6941
6942 \begin_layout Paragraph
6943 Getting \SpecialChar LyX
6944  and AAS\SpecialChar TeX
6945  to cooperate
6946 \end_layout
6947
6948 \begin_layout Standard
6949 It can be a bit tricky to get \SpecialChar LyX
6950  to recognize a new layout and document class.
6951  When all else fails, do this:
6952 \end_layout
6953
6954 \begin_layout Enumerate
6955 Make certain that \SpecialChar LaTeX
6956  can find AAS\SpecialChar TeX
6957 .
6958  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6959  distribution into a
6960  directory completely unrelated to \SpecialChar LaTeX
6961  or AAS\SpecialChar TeX
6962  and run \SpecialChar LaTeX
6963  on 
6964 \family typewriter
6965 sample.tex
6966 \family default
6967 .
6968 \end_layout
6969
6970 \begin_layout Enumerate
6971 Make certain that 
6972 \family typewriter
6973 aastex.layout
6974 \family default
6975  appears in \SpecialChar LyX
6976 's 
6977 \family typewriter
6978 layouts
6979 \family default
6980  folder
6981 \end_layout
6982
6983 \begin_layout Enumerate
6984 Rerun 
6985 \family sans
6986 Tools\SpecialChar menuseparator
6987 Reconfigure
6988 \family default
6989  in \SpecialChar LyX
6990 , then restart \SpecialChar LyX
6991 .
6992 \end_layout
6993
6994 \begin_layout Enumerate
6995 Open a regular new file, not from a template.
6996  Does AAS\SpecialChar TeX
6997  appear in the class list in 
6998 \family sans
6999 Document\SpecialChar menuseparator
7000 Settings
7001 \family default
7002 ?
7003 \end_layout
7004
7005 \begin_layout Standard
7006 If you get a warning from an existing AAS\SpecialChar TeX
7007  document about not being able
7008  to find the AAS\SpecialChar TeX
7009  layout or a message about 
7010 \begin_inset Quotes eld
7011 \end_inset
7012
7013 You should not mix title layouts with normal ones
7014 \begin_inset Quotes erd
7015 \end_inset
7016
7017 , things haven't been installed correctly.
7018 \end_layout
7019
7020 \begin_layout Paragraph
7021 \SpecialChar LaTeX
7022  error processing a table 
7023 \end_layout
7024
7025 \begin_layout Standard
7026 \SpecialChar LyX
7027 , by default, attempts to center the table caption/title.
7028  This seems to produce a bad interaction in AAS\SpecialChar TeX
7029  so you should click somewhere
7030  in the caption/title, then select 
7031 \family sans
7032 Edit\SpecialChar menuseparator
7033 Paragraph
7034 \begin_inset space ~
7035 \end_inset
7036
7037 Settings
7038 \family default
7039 , then set the 
7040 \family sans
7041 Alignment
7042 \family default
7043  to 
7044 \family sans
7045 Block
7046 \family default
7047 .
7048  This took care of it for me.
7049 \end_layout
7050
7051 \begin_layout Paragraph
7052 References
7053 \end_layout
7054
7055 \begin_layout Standard
7056 A couple of things: 1) I have noticed some funny spacing in the reference
7057  entries in the text.
7058  When you enter the bibliography item data, make sure their is 
7059 \emph on
7060 no
7061 \emph default
7062  space between the last author and the parenthesis setting off the year;
7063  
7064 \emph on
7065 e.
7066 \begin_inset space \thinspace{}
7067 \end_inset
7068
7069 g.
7070 \begin_inset space \space{}
7071 \end_inset
7072
7073
7074 \emph default
7075 type 
7076 \family typewriter
7077 Ressler(1992)
7078 \family default
7079 , not 
7080 \family typewriter
7081 Ressler (1992)
7082 \family default
7083 .
7084  2) Entering the references at all is not obvious.
7085  The easiest thing is to start typing your first reference at the end of
7086  the document, then mark it as type 
7087 \family sans
7088 References
7089 \family default
7090 .
7091  That will put a small gray box in front of what you just typed.
7092  Click on the box to fill in the rest of the information.
7093  For new references, go to the end of an existing reference and press return.
7094  That will create a new line with its own box, etc.
7095 \end_layout
7096
7097 \begin_layout Paragraph
7098 Including EPS files
7099 \end_layout
7100
7101 \begin_layout Standard
7102 Even though AAS\SpecialChar TeX
7103  provides its own figure commands (
7104 \family typewriter
7105
7106 \backslash
7107 plotone
7108 \family default
7109 , for example), I much prefer \SpecialChar LaTeX
7110 's standard figure commands (with the default
7111  graphicx).
7112  You can insert the 
7113 \family typewriter
7114
7115 \backslash
7116 plotone
7117 \family default
7118 , etc.
7119 \begin_inset space ~
7120 \end_inset
7121
7122 commands as \SpecialChar TeX
7123  code into a Figure Float box if you desire, but I never have
7124  much luck getting the layout right.
7125  With the standard graphics, \SpecialChar LyX
7126  will insert a 
7127 \family typewriter
7128
7129 \backslash
7130 usepackage{graphicx}
7131 \family default
7132  command into the \SpecialChar LaTeX
7133  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7134  way,
7135  interspersing the figures in the text.
7136  I believe ApJ accepts figures exactly this way now; AJ might still use
7137  the 
7138 \begin_inset Quotes eld
7139 \end_inset
7140
7141 stack everything at the end
7142 \begin_inset Quotes erd
7143 \end_inset
7144
7145  technique.
7146 \end_layout
7147
7148 \begin_layout Paragraph
7149 Things I could have done, but didn't
7150 \end_layout
7151
7152 \begin_layout Standard
7153 There are a few 
7154 \begin_inset Quotes eld
7155 \end_inset
7156
7157 pretty
7158 \begin_inset Quotes erd
7159 \end_inset
7160
7161  things I could have implemented, but chose not to.
7162  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7163  window,
7164  even though it is double-spaced in the paper manuscript.
7165  Also, I chose not to make separate layouts for the preprint and preprint2
7166  styles.
7167  Since I assume you will spend most of your time in the plain manuscript
7168  mode anyway, I decided not to chew up more disk space with this.
7169  
7170 \end_layout
7171
7172 \begin_layout Subsubsection
7173 Final Caveat
7174 \end_layout
7175
7176 \begin_layout Standard
7177 Your mileage may vary.
7178  I've now had papers published by both ApJ and AJ that have had 98% of the
7179  effort done in \SpecialChar LyX
7180 ; the last 2% was the \SpecialChar LaTeX
7181  post-processing and a few cleanups.
7182  I have had no trouble with the submission process, and I'm sure the journals
7183  were never aware that there might be a difference.
7184  So, go forth and publish!
7185 \end_layout
7186
7187 \begin_layout Subsection
7188
7189 \change_inserted 564990737 1671442131
7190
7191 \lang american
7192 Chess
7193 \end_layout
7194
7195 \begin_layout Standard
7196
7197 \change_inserted 564990737 1671642768
7198
7199 \lang american
7200 The document class 
7201 \family sans
7202 article
7203 \begin_inset space \thinspace{}
7204 \end_inset
7205
7206 (Chess)
7207 \family default
7208  uses the 
7209 \family typewriter
7210 article.cls
7211 \family default
7212  document class together with the style 
7213 \family sans
7214 lyxskak.sty
7215 \family default
7216  to facilitate the description of chess games.
7217  See 
7218 \family sans
7219 \lang british
7220 File\SpecialChar menuseparator
7221 Open Example
7222 \lang english
7223 \SpecialChar menuseparator
7224 Articles\SpecialChar menuseparator
7225 Chess
7226 \family default
7227 \lang american
7228  where you will find 
7229 \family sans
7230 \lang english
7231 Game 1
7232 \family default
7233 \lang american
7234  and 
7235 \family sans
7236 \lang english
7237 Game 2
7238 \family default
7239 \lang american
7240 .
7241 \end_layout
7242
7243 \begin_layout Subsection
7244
7245 \change_inserted 564990737 1671042028
7246
7247 \lang american
7248 Elsevier
7249 \end_layout
7250
7251 \begin_layout Standard
7252
7253 \change_inserted 564990737 1671617396
7254
7255 \lang american
7256 The document class 
7257 \family sans
7258 article
7259 \begin_inset space \thinspace{}
7260 \end_inset
7261
7262 (Elsevier)
7263 \family default
7264  provides the 
7265 \family typewriter
7266 elsarticle.cls
7267 \family default
7268  document class.
7269  This provides the following additional environments: 
7270 \family sans
7271 Title
7272 \begin_inset space ~
7273 \end_inset
7274
7275 footnote
7276 \family default
7277
7278 \family sans
7279 Author
7280 \begin_inset space ~
7281 \end_inset
7282
7283 footnote
7284 \family default
7285
7286 \family sans
7287 Corresponding
7288 \begin_inset space ~
7289 \end_inset
7290
7291 author
7292 \family default
7293
7294 \family sans
7295 Address
7296 \family default
7297
7298 \family sans
7299 Email
7300 \family default
7301  and 
7302 \family sans
7303 Keywords
7304 \family default
7305 .
7306  A template is available in the menu 
7307 \family sans
7308 \bar under
7309 F
7310 \bar default
7311 ile\SpecialChar menuseparator
7312 New
7313 \begin_inset space ~
7314 \end_inset
7315
7316 fro
7317 \bar under
7318 m
7319 \bar default
7320
7321 \begin_inset space ~
7322 \end_inset
7323
7324 Template
7325 \lang english
7326 \SpecialChar menuseparator
7327 Articles\SpecialChar menuseparator
7328 Elsevier
7329 \family default
7330 \lang american
7331 .
7332  It has been customized with further environments and contains all the informati
7333 on you may need.
7334  However, the documentation is also available from 
7335 \begin_inset CommandInset href
7336 LatexCommand href
7337 name "CTAN"
7338 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7339 literal "false"
7340
7341 \end_inset
7342
7343 .
7344 \end_layout
7345
7346 \begin_layout Subsection
7347
7348 \change_inserted 564990737 1671042046
7349
7350 \lang american
7351 Paper
7352 \end_layout
7353
7354 \begin_layout Standard
7355
7356 \change_inserted 564990737 1671042046
7357
7358 \lang american
7359 The document class 
7360 \family sans
7361 article
7362 \begin_inset space \thinspace{}
7363 \end_inset
7364
7365 (paper)
7366 \family default
7367  provides an alternative to the 
7368 \family typewriter
7369 article.cls
7370 \family default
7371  document class.
7372  It provides similar functionality, but you might prefer this layout with
7373  sans serif sections, headings, and more.
7374 \end_layout
7375
7376 \begin_layout Subsection
7377 Rev\SpecialChar TeX
7378 4
7379 \end_layout
7380
7381 \begin_layout Standard
7382 by 
7383 \noun on
7384 Amir Karger
7385 \end_layout
7386
7387 \begin_layout Standard
7388 \begin_inset VSpace bigskip
7389 \end_inset
7390
7391
7392 \end_layout
7393
7394 \begin_layout Standard
7395 \noindent
7396 The 
7397 \family sans
7398 Revtex
7399 \begin_inset space ~
7400 \end_inset
7401
7402 4
7403 \family default
7404  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7405  4.0 (the 
7406 \begin_inset Formula $\beta$
7407 \end_inset
7408
7409  release of May, 1999) class.
7410 \end_layout
7411
7412 \begin_layout Standard
7413 \SpecialChar LyX
7414  has a 
7415 \family sans
7416 Revtex
7417 \family default
7418  textclass, which works with Rev\SpecialChar TeX
7419  3.1.
7420  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7421  2.09.
7422  That means that it doesn't interact very well with \SpecialChar LyX
7423 , which requires \SpecialChar LaTeX2e
7424 , although
7425  it has been kludged to work.
7426  Since Rev\SpecialChar TeX
7427  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7428 , \SpecialChar LyX
7429  with the
7430  
7431 \family sans
7432 Rev\SpecialChar TeX
7433
7434 \begin_inset space ~
7435 \end_inset
7436
7437 4
7438 \family default
7439  textclass should also be pretty easy to use.
7440 \end_layout
7441
7442 \begin_layout Standard
7443 These documents are supposed to be used in 
7444 \emph on
7445 addition
7446 \emph default
7447  to the Rev\SpecialChar TeX
7448  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7449  macros,
7450  and assume you'll know what to put in the preamble if necessary.
7451 \end_layout
7452
7453 \begin_layout Subsubsection
7454 Installation
7455 \end_layout
7456
7457 \begin_layout Standard
7458 All you need to do is install Rev\SpecialChar TeX
7459  4, as described in the package's README
7460  file.
7461  The package can be found at The Rev\SpecialChar TeX
7462  4 Web Site 
7463 \begin_inset Flex URL
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467
7468 http://publish.aps.org/revtex4/
7469 \end_layout
7470
7471 \end_inset
7472
7473 .
7474  Install it somewhere that \SpecialChar LaTeX
7475  can see it.
7476  Test it by trying to \SpecialChar LaTeX
7477  a short Rev\SpecialChar TeX
7478  4 document in some random directory (i.
7479 \begin_inset space \thinspace{}
7480 \end_inset
7481
7482 e.
7483 \begin_inset space \space{}
7484 \end_inset
7485
7486 not the directory where you installed the class file.) Then, if you reconfigure
7487  \SpecialChar LyX
7488 , it will find the class file and let you use the Rev\SpecialChar TeX
7489 4 textclass.
7490 \end_layout
7491
7492 \begin_layout Standard
7493 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7494  4 document
7495  using 
7496 \family typewriter
7497 tex2lyx
7498 \family default
7499 , or to use the 
7500 \family sans
7501 Revtex
7502 \begin_inset space ~
7503 \end_inset
7504
7505 4
7506 \family default
7507  template, found in the templates directory.
7508 \end_layout
7509
7510 \begin_layout Subsubsection
7511 Preamble Matter
7512 \end_layout
7513
7514 \begin_layout Standard
7515 Optional arguments to 
7516 \family typewriter
7517
7518 \backslash
7519 documentclass
7520 \family default
7521 , like 
7522 \begin_inset Quotes eld
7523 \end_inset
7524
7525 preprint
7526 \begin_inset Quotes erd
7527 \end_inset
7528
7529  and 
7530 \begin_inset Quotes eld
7531 \end_inset
7532
7533 aps
7534 \begin_inset Quotes erd
7535 \end_inset
7536
7537 , go in the 
7538 \family sans
7539 Extra
7540 \begin_inset space ~
7541 \end_inset
7542
7543 Options
7544 \family default
7545  field in the 
7546 \family sans
7547 Document
7548 \begin_inset space ~
7549 \end_inset
7550
7551 Layout
7552 \family default
7553  dialog, as usual.
7554  Remember that in Rev\SpecialChar TeX
7555 , at least one optional argument is required! 
7556 \end_layout
7557
7558 \begin_layout Standard
7559 Other preamble matter, like 
7560 \family typewriter
7561
7562 \backslash
7563 draft
7564 \family default
7565  etc.
7566 \begin_inset space ~
7567 \end_inset
7568
7569 goes in the 
7570 \family sans
7571 \SpecialChar LaTeX
7572
7573 \begin_inset space ~
7574 \end_inset
7575
7576 Preamble
7577 \family default
7578  dialog, also as usual.
7579 \end_layout
7580
7581 \begin_layout Subsubsection
7582 Layouts
7583 \end_layout
7584
7585 \begin_layout Standard
7586 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7587 4.0.
7588  For example, the Email layout corresponds to 
7589 \family typewriter
7590
7591 \backslash
7592 email{}
7593 \family default
7594 .
7595  Note that (at least as of Rev\SpecialChar TeX
7596  4.0 Beta), the 
7597 \family sans
7598 Address
7599 \family default
7600  and 
7601 \family sans
7602 Affiliation
7603 \family default
7604  layouts are exactly equivalent, so you shouldn't need to use both.
7605 \begin_inset Foot
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609 In case you're curious, both were included so that 
7610 \family typewriter
7611 tex2lyx
7612 \family default
7613  would be able to translate both 
7614 \family typewriter
7615
7616 \backslash
7617 address
7618 \family default
7619  and 
7620 \family typewriter
7621
7622 \backslash
7623 affiliation
7624 \family default
7625 .
7626 \end_layout
7627
7628 \end_inset
7629
7630
7631 \end_layout
7632
7633 \begin_layout Subsubsection
7634 Important Notes
7635 \end_layout
7636
7637 \begin_layout Standard
7638 There are a couple of important unique aspects of Rev\SpecialChar TeX
7639  4 which might cause
7640  bugs that will be even more confusing in \SpecialChar LyX
7641 .
7642 \end_layout
7643
7644 \begin_layout Standard
7645 In Rev\SpecialChar TeX
7646 , the 
7647 \family typewriter
7648
7649 \backslash
7650 thanks
7651 \family default
7652  command goes 
7653 \emph on
7654 outside
7655 \emph default
7656  the 
7657 \family typewriter
7658
7659 \backslash
7660 author
7661 \family default
7662  command.
7663  The \SpecialChar LyX
7664  equivalent is that there is a separate Thanks layout.
7665  Do 
7666 \emph on
7667 not
7668 \emph default
7669  write footnotes in the 
7670 \family sans
7671 Author
7672 \family default
7673  layout, or weird things may happen.
7674  See the Rev\SpecialChar TeX
7675  4 documentation for more details.
7676 \end_layout
7677
7678 \begin_layout Standard
7679 Also, the 
7680 \family sans
7681 Author
7682 \begin_inset space ~
7683 \end_inset
7684
7685 Email
7686 \family default
7687
7688 \family sans
7689 Author
7690 \begin_inset space ~
7691 \end_inset
7692
7693 URL
7694 \family default
7695 , and 
7696 \family sans
7697 Thanks
7698 \family default
7699  layouts must be placed 
7700 \emph on
7701 in between
7702 \emph default
7703  the 
7704 \family sans
7705 Author
7706 \family default
7707  layout and the corresponding 
7708 \family sans
7709 Address
7710 \family default
7711  (or equivalent 
7712 \family sans
7713 Affiliation
7714 \family default
7715 ) layout.
7716  If you put the 
7717 \family sans
7718 Thanks
7719 \family default
7720  after the 
7721 \family sans
7722 Address
7723 \family default
7724 , the \SpecialChar LaTeX
7725  won't compile.
7726 \end_layout
7727
7728 \begin_layout Subsection
7729
7730 \change_inserted 564990737 1671042072
7731
7732 \lang american
7733 Springer Journals
7734 \end_layout
7735
7736 \begin_layout Standard
7737
7738 \change_inserted 564990737 1671042072
7739
7740 \lang american
7741 All the 
7742 \family sans
7743 svj*
7744 \family default
7745  classes were replaced in 2013 with a completely new 
7746 \family sans
7747 sr-vorl.cls
7748 \family default
7749 .
7750  This package provides a \SpecialChar LaTeX
7751  class and templates for books to be published
7752  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7753  Research, Springer VS Research, or Springer VS Forschung.
7754  The documentation is available in German from 
7755 \begin_inset CommandInset href
7756 LatexCommand href
7757 name "CTAN"
7758 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7759 literal "false"
7760
7761 \end_inset
7762
7763 .
7764 \end_layout
7765
7766 \begin_layout Section
7767
7768 \change_inserted 564990737 1670439560
7769 Books
7770 \end_layout
7771
7772 \begin_layout Standard
7773
7774 \change_inserted 564990737 1670439581
7775 See also the document classes in the Collections (section
7776 \begin_inset space ~
7777 \end_inset
7778
7779
7780 \begin_inset CommandInset ref
7781 LatexCommand ref
7782 reference "sec:Collections"
7783
7784 \end_inset
7785
7786 ).
7787 \end_layout
7788
7789 \begin_layout Subsection
7790 Memoir
7791 \end_layout
7792
7793 \begin_layout Standard
7794 By 
7795 \noun on
7796 Jürgen Spitzmüller
7797 \end_layout
7798
7799 \begin_layout Subsubsection
7800 Overview
7801 \end_layout
7802
7803 \begin_layout Standard
7804 Memoir is a very powerful and constantly evolving class.
7805  It has been designed with regard to fictional and non-fictional literature.
7806  Its aim is to let the user have maximum control over the typesetting of
7807  his document.
7808  Memoir is based on the standard book class, but it can also emulate the
7809  article class (see below).
7810 \end_layout
7811
7812 \begin_layout Standard
7813 Peter Wilson, the developer of Memoir, is known as the author of lots of
7814  useful packages in the \SpecialChar LaTeX
7815  world.
7816  Most of them have been merged with Memoir.
7817  Therefore, it is much easier to layout the table of contents, appendices,
7818  chapter designs and such.
7819  \SpecialChar LyX
7820 , though, does not support all of these goodies natively.
7821  Some of them might be added to forthcoming releases
7822 \begin_inset Foot
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 You are invited to send suggestions to 
7827 \begin_inset Flex URL
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831
7832 lyx-devel@lists.lyx.org
7833 \end_layout
7834
7835 \end_inset
7836
7837 .
7838 \end_layout
7839
7840 \end_inset
7841
7842 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7843 's framework.
7844  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7845
7846  commands (\SpecialChar TeX
7847  code
7848 \begin_inset Foot
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852 Cf.
7853 \begin_inset ERT
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857
7858
7859 \backslash
7860  
7861 \end_layout
7862
7863 \end_inset
7864
7865 section
7866 \begin_inset space ~
7867 \end_inset
7868
7869
7870 \begin_inset CommandInset ref
7871 LatexCommand ref
7872 reference "sec:Inserting-TeX-Code"
7873
7874 \end_inset
7875
7876  for details.
7877 \end_layout
7878
7879 \end_inset
7880
7881 ).
7882  In this section, we can only list those features that are natively supported
7883  by \SpecialChar LyX
7884 .
7885  For detailed descriptions (and for the rest of features) we recommend you
7886  have a look at the detailed manual of the Memoir class
7887 \begin_inset Foot
7888 status collapsed
7889
7890 \begin_layout Plain Layout
7891 Cf.
7892 \begin_inset ERT
7893 status collapsed
7894
7895 \begin_layout Plain Layout
7896
7897
7898 \backslash
7899  
7900 \end_layout
7901
7902 \end_inset
7903
7904
7905 \begin_inset Flex URL
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909
7910 CTAN:/macros/latex/memoir/memman.pdf
7911 \end_layout
7912
7913 \end_inset
7914
7915 .
7916 \end_layout
7917
7918 \end_inset
7919
7920 , which is not only a user guide for the class, but also both a comprehensive
7921  description on good typesetting and a superb example for good typesetting
7922  itself.
7923 \end_layout
7924
7925 \begin_layout Subsubsection
7926 Basic features and restrictions
7927 \end_layout
7928
7929 \begin_layout Standard
7930 Memoir supports basically all features of the standard book classes.
7931  There are, however, some differences, as follows:
7932 \end_layout
7933
7934 \begin_layout Description
7935 Font
7936 \begin_inset space ~
7937 \end_inset
7938
7939 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7940 \end_layout
7941
7942 \begin_layout Description
7943 Page
7944 \begin_inset space ~
7945 \end_inset
7946
7947 style: The fancy page style is not supported, due to a command clash between
7948  Memoir and the fancyhdr package (they both define a command with the same
7949  name, which confuses \SpecialChar LaTeX
7950 ).
7951  Instead, Memoir comes with a number of its own page styles (see 
7952 \family sans
7953 Document\SpecialChar menuseparator
7954 Settings\SpecialChar menuseparator
7955 Page
7956 \begin_inset space ~
7957 \end_inset
7958
7959 Style
7960 \family default
7961 ).
7962  If you want to use these for the chapter pages, you have to use the command
7963  
7964 \family typewriter
7965
7966 \backslash
7967 chapterstyle
7968 \family default
7969  in the main text or in preamble (e.
7970 \begin_inset space \thinspace{}
7971 \end_inset
7972
7973 g.
7974 \begin_inset space \space{}
7975 \end_inset
7976
7977
7978 \family typewriter
7979
7980 \backslash
7981 chapterstyle{companion}
7982 \family default
7983 ).
7984 \end_layout
7985
7986 \begin_layout Description
7987 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7988  optional argument in the standard classes.
7989  With this, you can specify an alternative version of the title for the
7990  table of contents and the headers (for instance, if the title is too long).
7991  In \SpecialChar LyX
7992 , you can do this via 
7993 \family sans
7994 Insert\SpecialChar menuseparator
7995 Short
7996 \begin_inset space ~
7997 \end_inset
7998
7999 Title
8000 \family default
8001  at the beginning of a chapter/section.
8002  Memoir features a second optional argument and thus separates the table
8003  of contents from the header.
8004  You can define three variants of a title with this: one for the main text,
8005  one for the table of contents, and one for the headers.
8006  \SpecialChar LyX
8007  makes these available in form of specific 
8008 \family sans
8009 Short Title
8010 \family default
8011  variants in the 
8012 \family sans
8013 Insert
8014 \family default
8015  menu.
8016 \end_layout
8017
8018 \begin_layout Description
8019 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8020  of contents, the list of figures and the list of table start a new page
8021  automatically.
8022  Memoir does not follow this route.
8023  You have to insert a page break yourself, if you want to have one.
8024 \end_layout
8025
8026 \begin_layout Description
8027 Titlepage: For some unknown reason, Memoir uses pagination on the title
8028  page (in the standard classes, title pages are 
8029 \begin_inset Quotes eld
8030 \end_inset
8031
8032 empty
8033 \begin_inset Quotes erd
8034 \end_inset
8035
8036 ).
8037  If you want an empty title page, type 
8038 \family typewriter
8039
8040 \backslash
8041 aliaspagestyle{title}{empty}
8042 \family default
8043  in the preamble.
8044 \end_layout
8045
8046 \begin_layout Description
8047 Article: With the class option 
8048 \emph on
8049 article
8050 \emph default
8051  (to be inserted in 
8052 \family sans
8053 Document\SpecialChar menuseparator
8054 Settings\SpecialChar menuseparator
8055 Class Settings\SpecialChar menuseparator
8056 Custom
8057 \begin_inset space ~
8058 \end_inset
8059
8060 Options
8061 \family default
8062 ), you can emulate article style.
8063  That is, counters (footnotes, figures, tables etc.) will not be reset on
8064  new chapters, chapters don't start a new page (but are—in contrary to 
8065 \begin_inset Quotes eld
8066 \end_inset
8067
8068 real
8069 \begin_inset Quotes erd
8070 \end_inset
8071
8072  article classes—still allowed), parts, though, use their own page, as in
8073  book.
8074 \end_layout
8075
8076 \begin_layout Description
8077 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8078  font commands, which have been used in the old \SpecialChar LaTeX
8079  version 2.09 (e.
8080 \begin_inset space \thinspace{}
8081 \end_inset
8082
8083 g.
8084 \begin_inset space \space{}
8085 \end_inset
8086
8087
8088 \family typewriter
8089
8090 \backslash
8091 rm
8092 \family default
8093
8094 \family typewriter
8095
8096 \backslash
8097 it
8098 \family default
8099 ).
8100  It produces an error and stops \SpecialChar LaTeX
8101  whenever such a command appears.
8102  The class option 
8103 \emph on
8104 oldfontcommands
8105 \emph default
8106  reallows the commands and spits out warnings instead (which does at least
8107  not stop \SpecialChar LaTeX
8108 ).
8109  Since a lot of packages and particularly Bib\SpecialChar TeX
8110  style files are still using
8111  those commands, we have decided to use this option by default.
8112 \end_layout
8113
8114 \begin_layout Subsubsection
8115 Extra features
8116 \end_layout
8117
8118 \begin_layout Standard
8119 We will only describe the features supported by \SpecialChar LyX
8120  (which is not much currently).
8121  Please consult the Memoir manual
8122 \begin_inset Foot
8123 status collapsed
8124
8125 \begin_layout Plain Layout
8126 Cf.
8127 \begin_inset ERT
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131
8132
8133 \backslash
8134  
8135 \end_layout
8136
8137 \end_inset
8138
8139
8140 \begin_inset Flex URL
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144
8145 CTAN:/macros/latex/memoir/memman.pdf
8146 \end_layout
8147
8148 \end_inset
8149
8150 .
8151 \end_layout
8152
8153 \end_inset
8154
8155  for details.
8156 \end_layout
8157
8158 \begin_layout Description
8159 Abstract: You may wonder why an abstract is an extra feature.
8160  Well, it is in book class.
8161  Usually books don't have abstracts.
8162  Memoir, however, has.
8163  You can use it wherever and how often you like.
8164 \end_layout
8165
8166 \begin_layout Description
8167 Chapterprecis: You may know this older typesetting style: The contents of
8168  a chapter are summarized below the title and also in the table of contents
8169  (e.
8170 \begin_inset space \thinspace{}
8171 \end_inset
8172
8173 g.
8174 \begin_inset space \space{}
8175 \end_inset
8176
8177
8178 \emph on
8179 Our hero arrives in Troia; he loses some friends; he finds others
8180 \emph default
8181 ).
8182  Chapterprecis does exactly this.
8183  It is therefore only sensible below a chapter.
8184 \end_layout
8185
8186 \begin_layout Description
8187 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8188  The epigraph environment provides an elegant way of typesetting such a
8189  motto.
8190  The motto itself (text) and its (optional) author (source) are divided
8191  by a short line.
8192  The author (source) can be inserted via 
8193 \family sans
8194 Insert\SpecialChar menuseparator
8195 Epigraph Source
8196 \family default
8197 \emph on
8198 .
8199 \end_layout
8200
8201 \begin_layout Description
8202 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8203  complex figurative poems).
8204  \SpecialChar LyX
8205  can only support a few of them.
8206  One is poemtitle, which is a centered title for poems, which will also
8207  be added to the table of contents (verse is the standard environment for
8208  poems.
8209  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8210  code,
8211  because they have to be nested inside regular verse environments, which
8212  is not possible with \SpecialChar LyX
8213 ).
8214 \end_layout
8215
8216 \begin_layout Description
8217 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8218 \end_layout
8219
8220 \begin_layout Subsection
8221
8222 \change_inserted 564990737 1671442175
8223
8224 \lang american
8225 Recipe Book
8226 \end_layout
8227
8228 \begin_layout Standard
8229
8230 \change_inserted 564990737 1671442175
8231
8232 \lang american
8233 The document class 
8234 \family typewriter
8235 RecipeBook.cls
8236 \family default
8237  uses the 
8238 \family sans
8239 book
8240 \begin_inset space \thinspace{}
8241 \end_inset
8242
8243 (KOMA-Script)
8244 \family default
8245  document class but adds two environments:
8246 \end_layout
8247
8248 \begin_layout Description
8249
8250 \change_inserted 564990737 1671442175
8251
8252 \lang american
8253 Recipe a numbered section environment at the 
8254 \family typewriter
8255 Subsubsection
8256 \family default
8257  level which generates a bold centered heading above a double horizontal
8258  rule
8259 \end_layout
8260
8261 \begin_layout Description
8262
8263 \change_inserted 564990737 1671442175
8264
8265 \lang american
8266 Ingredients a 
8267 \family typewriter
8268 Description
8269 \family default
8270  environment where 
8271 \series bold
8272 \emph on
8273 Ingredients
8274 \series default
8275 \emph default
8276  are what are being described and the environment ends with a horizontal
8277  rule.
8278 \end_layout
8279
8280 \begin_layout Standard
8281
8282 \change_inserted 564990737 1671642866
8283
8284 \family sans
8285 \lang british
8286 File\SpecialChar menuseparator
8287 Open Example\SpecialChar menuseparator
8288 Books\SpecialChar menuseparator
8289 Recipe Book
8290 \family default
8291 \lang american
8292  illustrates its use.
8293 \end_layout
8294
8295 \begin_layout Standard
8296
8297 \change_inserted 564990737 1671442175
8298
8299 \lang american
8300 It is designed for typesetting one or two recipes per page, with dimensions
8301  of 5.5
8302 \begin_inset Quotes qrd
8303 \end_inset
8304
8305  x 8.5
8306 \begin_inset Quotes qrd
8307 \end_inset
8308
8309 .
8310  The hyperlinked table of contents (ToC) and page numbers make browsing
8311  recipes convenient, and the pages can be joined together or printed 2 per
8312  page to normal letterpaper easily.
8313  The size was chosen to work in half-page 3-ring binder cover sheets, because
8314  un-laminated paper just doesn't last in the kitchen.
8315 \end_layout
8316
8317 \begin_layout Standard
8318
8319 \change_inserted 564990737 1671442175
8320
8321 \lang american
8322 The half-letter pages can be printed two per page using your printer driver,
8323  or bound together using 
8324 \family typewriter
8325 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8326 \family default
8327  
8328 \family typewriter
8329 Recipes.pdf
8330 \family default
8331  where 
8332 \family typewriter
8333 Recipes.pdf
8334 \family default
8335  is the compiled version of your recipes.
8336 \end_layout
8337
8338 \begin_layout Section
8339
8340 \change_inserted 564990737 1671442207
8341 Curricula vitarum
8342 \end_layout
8343
8344 \begin_layout Subsection
8345
8346 \change_inserted 564990737 1671442208
8347
8348 \lang american
8349 Europass
8350 \end_layout
8351
8352 \begin_layout Standard
8353
8354 \change_inserted 564990737 1671642942
8355
8356 \lang american
8357 The document class 
8358 \family sans
8359 curriculum
8360 \begin_inset space \space{}
8361 \end_inset
8362
8363 vitae
8364 \begin_inset space \thinspace{}
8365 \end_inset
8366
8367 (Europass)
8368 \family default
8369  provides the 
8370 \family typewriter
8371 europasscv.cls
8372 \family default
8373  document class, an unofficial implementation of the ‘Europass CV’ recommended
8374  by the European Commission in 2013.
8375  
8376 \family sans
8377 \lang british
8378 File\SpecialChar menuseparator
8379 Open Example\SpecialChar menuseparator
8380 Curricula Vitae\SpecialChar menuseparator
8381 Europass CV (2013)
8382 \family default
8383 \lang american
8384  offers guidance on its use.
8385  Its documentation is available from 
8386 \begin_inset CommandInset href
8387 LatexCommand href
8388 name "CTAN"
8389 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8390 literal "false"
8391
8392 \end_inset
8393
8394 .
8395 \end_layout
8396
8397 \begin_layout Subsection
8398
8399 \change_inserted 564990737 1671442208
8400
8401 \lang american
8402 European
8403 \end_layout
8404
8405 \begin_layout Standard
8406
8407 \change_inserted 564990737 1671642984
8408
8409 \lang american
8410 The document class 
8411 \family sans
8412 curriculum
8413 \begin_inset space \space{}
8414 \end_inset
8415
8416 vitae
8417 \begin_inset space \thinspace{}
8418 \end_inset
8419
8420 (Europe)
8421 \family default
8422  provides the 
8423 \family typewriter
8424 europecv.cls
8425 \family default
8426  document class, an unofficial implementation of the “Europass CV” recommended
8427  by the European Commission in 2002.
8428  
8429 \family sans
8430 \lang british
8431 File\SpecialChar menuseparator
8432 Open Example\SpecialChar menuseparator
8433 Curricula Vitae\SpecialChar menuseparator
8434 Europe CV
8435 \family default
8436 \lang american
8437  offers guidance on its use.
8438  Its documentation is available from 
8439 \begin_inset CommandInset href
8440 LatexCommand href
8441 name "CTAN"
8442 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8443 literal "false"
8444
8445 \end_inset
8446
8447 .
8448 \end_layout
8449
8450 \begin_layout Subsection
8451
8452 \change_inserted 564990737 1671442208
8453
8454 \lang american
8455 Modern
8456 \end_layout
8457
8458 \begin_layout Standard
8459
8460 \change_inserted 564990737 1671643003
8461
8462 \lang american
8463 The document class 
8464 \family sans
8465 curriculum
8466 \begin_inset space \space{}
8467 \end_inset
8468
8469 vitae
8470 \begin_inset space \thinspace{}
8471 \end_inset
8472
8473 (modern)
8474 \family default
8475  provides the 
8476 \family typewriter
8477 moderncv.cls
8478 \family default
8479  document class.
8480  This allows the creation of customizable CVs.
8481  
8482 \family sans
8483 \lang british
8484 File\SpecialChar menuseparator
8485 Open Example\SpecialChar menuseparator
8486 Curricula Vitae\SpecialChar menuseparator
8487 Modern CV
8488 \family default
8489 \lang american
8490  offers guidance on its use.
8491  Its documentation is available from 
8492 \begin_inset CommandInset href
8493 LatexCommand href
8494 name "CTAN"
8495 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8496 literal "false"
8497
8498 \end_inset
8499
8500 .
8501 \end_layout
8502
8503 \begin_layout Subsection
8504
8505 \change_inserted 564990737 1671442208
8506
8507 \lang american
8508 Simple
8509 \end_layout
8510
8511 \begin_layout Standard
8512
8513 \change_inserted 564990737 1671643024
8514
8515 \lang american
8516 The document class 
8517 \family sans
8518 curriculum
8519 \begin_inset space \space{}
8520 \end_inset
8521
8522 vitae
8523 \begin_inset space \thinspace{}
8524 \end_inset
8525
8526 (simple)
8527 \family default
8528  provides the 
8529 \family typewriter
8530 simplecv.cls
8531 \family default
8532  document class, originally developed for use with \SpecialChar LyX
8533 .
8534  
8535 \family sans
8536 \lang british
8537 File\SpecialChar menuseparator
8538 Open Example\SpecialChar menuseparator
8539 Curricula Vitae\SpecialChar menuseparator
8540 Simple CV
8541 \family default
8542 \lang american
8543  offers guidance on its use.
8544  Its documentation is available from 
8545 \begin_inset CommandInset href
8546 LatexCommand href
8547 name "CTAN"
8548 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8549 literal "false"
8550
8551 \end_inset
8552
8553
8554 \end_layout
8555
8556 \begin_layout Section
8557
8558 \change_inserted 564990737 1671041968
8559 Letters
8560 \end_layout
8561
8562 \begin_layout Subsection
8563
8564 \change_inserted 564990737 1671041970
8565
8566 \lang american
8567 Din-Brief
8568 \end_layout
8569
8570 \begin_layout Standard
8571
8572 \change_inserted 564990737 1671617528
8573
8574 \lang american
8575 The document class 
8576 \family sans
8577 Din-Brief
8578 \family default
8579  provides the 
8580 \family typewriter
8581 dinbrief.cls
8582 \family default
8583  document class for writing letters according to the 
8584 \emph on
8585 Deutsches Institut für Normung
8586 \emph default
8587  conventions.
8588  The file in the menu 
8589 \family sans
8590 \bar under
8591 F
8592 \bar default
8593 ile\SpecialChar menuseparator
8594 New
8595 \begin_inset space ~
8596 \end_inset
8597
8598 fro
8599 \bar under
8600 m
8601 \bar default
8602
8603 \begin_inset space ~
8604 \end_inset
8605
8606 Template\SpecialChar menuseparator
8607 Letters\SpecialChar menuseparator
8608 DIN-Brief
8609 \family default
8610  offers guidance on its use.
8611  The documentation is available from 
8612 \begin_inset CommandInset href
8613 LatexCommand href
8614 name "CTAN"
8615 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8616 literal "false"
8617
8618 \end_inset
8619
8620 .
8621 \end_layout
8622
8623 \begin_layout Subsection
8624
8625 \change_inserted 564990737 1671458835
8626
8627 \lang american
8628 letter
8629 \end_layout
8630
8631 \begin_layout Standard
8632
8633 \change_inserted 564990737 1671617591
8634
8635 \lang american
8636 The document class 
8637 \family sans
8638 letter
8639 \family default
8640  provides the 
8641 \family sans
8642 letter.cls
8643 \family default
8644  document class for English letters and to create mailing labels.
8645  The file in the menu 
8646 \family sans
8647 \bar under
8648 F
8649 \bar default
8650 ile\SpecialChar menuseparator
8651 New
8652 \begin_inset space ~
8653 \end_inset
8654
8655 fro
8656 \bar under
8657 m
8658 \bar default
8659
8660 \begin_inset space ~
8661 \end_inset
8662
8663 Template\SpecialChar menuseparator
8664 Letters\SpecialChar menuseparator
8665 Letter (Standard Class)
8666 \family default
8667  offers guidance on its use.
8668 \end_layout
8669
8670 \begin_layout Section
8671
8672 \change_inserted 564990737 1670439660
8673 Presentations
8674 \end_layout
8675
8676 \begin_layout Subsection
8677
8678 \change_inserted 564990737 1671458922
8679
8680 \lang american
8681 Beamer
8682 \end_layout
8683
8684 \begin_layout Standard
8685
8686 \change_inserted 564990737 1671617655
8687
8688 \lang american
8689 The document class 
8690 \family sans
8691 presentation
8692 \begin_inset space \thinspace{}
8693 \end_inset
8694
8695 (beamer)
8696 \family default
8697  uses the 
8698 \family typewriter
8699 beamer.cls
8700 \family default
8701  document class for creating presentations.
8702  The file in the menu 
8703 \family sans
8704 \bar under
8705 F
8706 \bar default
8707 ile\SpecialChar menuseparator
8708 New
8709 \begin_inset space ~
8710 \end_inset
8711
8712 fro
8713 \bar under
8714 m
8715 \bar default
8716
8717 \begin_inset space ~
8718 \end_inset
8719
8720 Template\SpecialChar menuseparator
8721 Presentations\SpecialChar menuseparator
8722 Beamer
8723 \family default
8724  offers guidance on its use.
8725  The documentation is available from 
8726 \begin_inset CommandInset href
8727 LatexCommand href
8728 name "CTAN"
8729 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8730 literal "false"
8731
8732 \end_inset
8733
8734 .
8735 \end_layout
8736
8737 \begin_layout Subsection
8738 Foils [aka 
8739 \family sans
8740 Foil\SpecialChar TeX
8741
8742 \family default
8743 ]
8744 \begin_inset CommandInset label
8745 LatexCommand label
8746 name "sec:foiltex"
8747
8748 \end_inset
8749
8750
8751 \end_layout
8752
8753 \begin_layout Standard
8754 by 
8755 \noun on
8756 Allan Rae
8757 \end_layout
8758
8759 \begin_layout Subsubsection
8760 Introduction
8761 \end_layout
8762
8763 \begin_layout Standard
8764 This section describes how to use \SpecialChar LyX
8765  to make slides for overhead projectors.
8766  There are two document classes that can do this: the default slides class
8767  and the 
8768 \family sans
8769 Foil\SpecialChar TeX
8770
8771 \family default
8772  slides class.
8773  This section documents the latter.
8774 \end_layout
8775
8776 \begin_layout Standard
8777 I'm going to say this again, nice and clear, so that there's no misunderstanding
8778 :
8779 \end_layout
8780
8781 \begin_layout Standard
8782 \begin_inset VSpace bigskip
8783 \end_inset
8784
8785
8786 \end_layout
8787
8788 \begin_layout Standard
8789 \align center
8790
8791 \size large
8792 This section documents the class 
8793 \begin_inset Quotes eld
8794 \end_inset
8795
8796
8797 \family sans
8798 FoilTeX
8799 \family default
8800
8801 \begin_inset Quotes erd
8802 \end_inset
8803
8804  
8805 \emph on
8806 only.
8807 \end_layout
8808
8809 \begin_layout Standard
8810 \begin_inset VSpace bigskip
8811 \end_inset
8812
8813
8814 \end_layout
8815
8816 \begin_layout Standard
8817 If you're looking for the documentation for 
8818 \begin_inset Quotes eld
8819 \end_inset
8820
8821
8822 \family sans
8823 slides (default)
8824 \family default
8825
8826 \begin_inset Quotes erd
8827 \end_inset
8828
8829 , check out section
8830 \begin_inset space ~
8831 \end_inset
8832
8833
8834 \begin_inset CommandInset ref
8835 LatexCommand ref
8836 reference "sec:slitex"
8837
8838 \end_inset
8839
8840 .
8841  If your machine doesn't have the 
8842 \family sans
8843 foils
8844 \family default
8845  class 
8846 \family sans
8847 FoilTeX
8848 \family default
8849  installed, you'll probably have to use the default 
8850 \family sans
8851 slides
8852 \family default
8853  class, which isn't quite as good as 
8854 \family sans
8855 foils.
8856 \end_layout
8857
8858 \begin_layout Standard
8859 The 
8860 \family sans
8861 foils
8862 \family default
8863  class is designed for use with version
8864 \begin_inset space ~
8865 \end_inset
8866
8867 2.1 of the 
8868 \family sans
8869 foils.cls
8870 \family default
8871  \SpecialChar LaTeX
8872  class file which is now an integral part of \SpecialChar LaTeX2e
8873 .
8874 \end_layout
8875
8876 \begin_layout Subsubsection
8877 Getting Started
8878 \end_layout
8879
8880 \begin_layout Standard
8881 Obviously, to use this document class, you need to select 
8882 \family sans
8883 FoilTeX
8884 \family default
8885  from the 
8886 \family sans
8887 Class
8888 \family default
8889  entry in the 
8890 \family sans
8891 Document
8892 \begin_inset space ~
8893 \end_inset
8894
8895 Layout
8896 \family default
8897  dialog.
8898  There are some settings in the 
8899 \family sans
8900 Document
8901 \begin_inset space ~
8902 \end_inset
8903
8904 Layout
8905 \family default
8906  dialog that you should know about that are specific to this class:
8907 \end_layout
8908
8909 \begin_layout Itemize
8910 Don't change the options 
8911 \family sans
8912 Sides
8913 \family default
8914  and 
8915 \family sans
8916 Columns
8917 \family default
8918  on the 
8919 \family sans
8920 Document
8921 \begin_inset space ~
8922 \end_inset
8923
8924 Layout
8925 \family default
8926  dialog.
8927  They're ignored by the 
8928 \family sans
8929 foils
8930 \family default
8931  class.
8932 \end_layout
8933
8934 \begin_layout Itemize
8935 The default font size is 20
8936 \begin_inset space \thinspace{}
8937 \end_inset
8938
8939 pt with the other options being 17
8940 \begin_inset space \thinspace{}
8941 \end_inset
8942
8943 pt, 25
8944 \begin_inset space \thinspace{}
8945 \end_inset
8946
8947 pt and 30
8948 \begin_inset space \thinspace{}
8949 \end_inset
8950
8951 pt.
8952 \end_layout
8953
8954 \begin_layout Itemize
8955 The default font is 
8956 \family sans
8957 sans
8958 \family default
8959  
8960 \family sans
8961 serif
8962 \family default
8963  but all math equations are still typeset in the usual roman font.
8964 \end_layout
8965
8966 \begin_layout Itemize
8967
8968 \family sans
8969 Foil\SpecialChar TeX
8970
8971 \family default
8972  supports A4 and Letter paper sizes as well as a special size for working
8973  with 35
8974 \begin_inset space \thinspace{}
8975 \end_inset
8976
8977 mm slides.
8978  It doesn't support A5, B5, legal or executive paper sizes.
8979 \end_layout
8980
8981 \begin_layout Itemize
8982 Don't bother changing the 
8983 \family sans
8984 Float Placement
8985 \family default
8986  settings because they are ignored anyway.
8987  All floats appear where they are defined in the text.
8988 \end_layout
8989
8990 \begin_layout Itemize
8991 The 
8992 \family sans
8993 Pagestyle
8994 \family default
8995  setting behaves a bit differently for this class.
8996  
8997 \family sans
8998 Foil\SpecialChar TeX
8999
9000 \family default
9001  provides extensive footer and header capabilities including a user-defined
9002  logo.
9003  See section
9004 \begin_inset space ~
9005 \end_inset
9006
9007
9008 \begin_inset CommandInset ref
9009 LatexCommand ref
9010 reference "sec:foilfoot"
9011
9012 \end_inset
9013
9014  for more details.
9015  The title page is treated differently to all other pages in the document
9016  and is 
9017 \emph on
9018 always
9019 \emph default
9020  unnumbered and 
9021 \emph on
9022 always
9023 \emph default
9024  has the logo centered at the bottom of the page (if one is defined).
9025  The possible page style choices and what they do are as follows:
9026 \end_layout
9027
9028 \begin_deeper
9029 \begin_layout Labeling
9030 \labelwidthstring MMMMMMM
9031
9032 \family sans
9033 \series bold
9034 empty
9035 \family default
9036 \series default
9037  The final output contains no page numbers, or other headers or footers
9038  (except footnotes of course).
9039  
9040 \end_layout
9041
9042 \begin_layout Labeling
9043 \labelwidthstring MMMMMMM
9044
9045 \family sans
9046 \series bold
9047 plain
9048 \family default
9049 \series default
9050  The final output contains page numbers centered at the bottom of the page.
9051  No other headings or footers (other than footnotes).
9052 \end_layout
9053
9054 \begin_layout Labeling
9055 \labelwidthstring MMMMMMM
9056
9057 \series bold
9058 foilheadings
9059 \series default
9060  Page numbers in lower right corner.
9061  Additional headers and footers are also shown.
9062  This is also the default.
9063 \end_layout
9064
9065 \begin_layout Labeling
9066 \labelwidthstring MMMMMMM
9067
9068 \series bold
9069 fancy
9070 \series default
9071  Gives you access to the 
9072 \family sans
9073 fancyheadings
9074 \family default
9075  package although its use with 
9076 \family sans
9077 Foil\SpecialChar TeX
9078
9079 \family default
9080  is discouraged by the writer of the 
9081 \family sans
9082 Foil\SpecialChar TeX
9083
9084 \family default
9085  package because of some potential page layout clashes.
9086 \end_layout
9087
9088 \end_deeper
9089 \begin_layout Paragraph
9090 Extra Options
9091 \end_layout
9092
9093 \begin_layout Standard
9094 The following options may be used in the extra class options in the 
9095 \family sans
9096 Document\SpecialChar menuseparator
9097 Settings
9098 \family default
9099  dialog.
9100 \end_layout
9101
9102 \begin_layout Labeling
9103 \labelwidthstring MMMMMMx
9104
9105 \series bold
9106 35mmSlide
9107 \series default
9108  This sets up the page layout for 7.33
9109 \begin_inset space \thinspace{}
9110 \end_inset
9111
9112 in by 11
9113 \begin_inset space \thinspace{}
9114 \end_inset
9115
9116 in paper, which is about the same aspect ratio as a 35
9117 \begin_inset space \thinspace{}
9118 \end_inset
9119
9120 mm slide, making it a bit easier to work with this medium.
9121 \end_layout
9122
9123 \begin_layout Labeling
9124 \labelwidthstring MMMMMMx
9125
9126 \series bold
9127 headrule
9128 \series default
9129  Places a rule across the page below the header on every page except the
9130  title page.
9131 \end_layout
9132
9133 \begin_layout Labeling
9134 \labelwidthstring MMMMMMx
9135
9136 \series bold
9137 footrule
9138 \series default
9139  Places a rule across the page above the footer on every page except the
9140  title page.
9141 \end_layout
9142
9143 \begin_layout Labeling
9144 \labelwidthstring MMMMMMx
9145
9146 \series bold
9147 dvips
9148 \series default
9149  This is automatically set each time you create a new 
9150 \family sans
9151 foils
9152 \family default
9153  document.
9154  This option tells 
9155 \family sans
9156 Foil\SpecialChar TeX
9157
9158 \family default
9159  to use the dvips driver to rotate those pages that are set as landscape
9160  foils.
9161 \end_layout
9162
9163 \begin_layout Labeling
9164 \labelwidthstring MMMMMMx
9165
9166 \series bold
9167 landscape
9168 \series default
9169  Simply changes the page dimensions to those of a landscape page but doesn't
9170  do any rotation.
9171  Thus if you use this option you need to use an external program to rotate
9172  each page or feed your paper through your printer as landscape.
9173  Note that this option effectively reverses the roles of the 
9174 \family sans
9175 Foilhead
9176 \family default
9177  and 
9178 \family sans
9179 Rotatefoilhead
9180 \family default
9181  environments (don't worry these are described in the next section).
9182 \end_layout
9183
9184 \begin_layout Labeling
9185 \labelwidthstring MMMMMMx
9186
9187 \series bold
9188 leqno
9189 \series default
9190  Equation numbers on the left.
9191 \end_layout
9192
9193 \begin_layout Labeling
9194 \labelwidthstring MMMMMMx
9195
9196 \series bold
9197 fleqn
9198 \series default
9199  Flush-left equations.
9200 \end_layout
9201
9202 \begin_layout Subsubsection
9203 Supported Environments
9204 \end_layout
9205
9206 \begin_layout Standard
9207 Most of the environments commonly supported in other classes are also supported
9208  by the 
9209 \family sans
9210 foils
9211 \family default
9212  class.
9213  There are several additional environments provided by 
9214 \family sans
9215 Foil\SpecialChar TeX
9216
9217 \family default
9218  as well as a couple added by \SpecialChar LyX
9219 .
9220  The following environments are shared with other classes:
9221 \end_layout
9222
9223 \begin_layout Standard
9224 \begin_inset Flex Multiple Columns
9225 status open
9226
9227 \begin_layout Itemize
9228
9229 \family sans
9230 Standard
9231 \end_layout
9232
9233 \begin_layout Itemize
9234
9235 \family sans
9236 Itemize
9237 \end_layout
9238
9239 \begin_layout Itemize
9240
9241 \family sans
9242 Enumerate
9243 \end_layout
9244
9245 \begin_layout Itemize
9246
9247 \family sans
9248 Description
9249 \end_layout
9250
9251 \begin_layout Itemize
9252
9253 \family sans
9254 List
9255 \end_layout
9256
9257 \begin_layout Itemize
9258
9259 \family sans
9260 \SpecialChar LyX
9261 -Code
9262 \end_layout
9263
9264 \begin_layout Itemize
9265
9266 \family sans
9267 Verse
9268 \end_layout
9269
9270 \begin_layout Itemize
9271
9272 \family sans
9273 Quote
9274 \end_layout
9275
9276 \begin_layout Itemize
9277
9278 \family sans
9279 Quotation
9280 \end_layout
9281
9282 \begin_layout Itemize
9283
9284 \family sans
9285 TitleAuthor
9286 \end_layout
9287
9288 \begin_layout Itemize
9289
9290 \family sans
9291 Date
9292 \end_layout
9293
9294 \begin_layout Itemize
9295
9296 \family sans
9297 Abstract
9298 \end_layout
9299
9300 \begin_layout Itemize
9301
9302 \family sans
9303 Bibliography
9304 \end_layout
9305
9306 \begin_layout Itemize
9307
9308 \family sans
9309 Address
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family sans
9315 RightAddress
9316 \end_layout
9317
9318 \end_inset
9319
9320
9321 \end_layout
9322
9323 \begin_layout Standard
9324 That is, all the major environments apart from the sectioning environments.
9325  Since foils are essentially self-contained sections, with a title and body,
9326  
9327 \family sans
9328 Foil\SpecialChar TeX
9329
9330 \family default
9331  provides specific commands for starting new foils and these are:
9332 \end_layout
9333
9334 \begin_layout Itemize
9335
9336 \family sans
9337 Foilhead
9338 \end_layout
9339
9340 \begin_layout Itemize
9341
9342 \family sans
9343 Rotatefoilhead
9344 \end_layout
9345
9346 \begin_layout Standard
9347 \SpecialChar LyX
9348  also provides slightly modified versions of these two environments called:
9349 \end_layout
9350
9351 \begin_layout Itemize
9352
9353 \family sans
9354 ShortFoilhead
9355 \end_layout
9356
9357 \begin_layout Itemize
9358
9359 \family sans
9360 ShortRotatefoilhead
9361 \end_layout
9362
9363 \begin_layout Standard
9364 and the differences will be explained in the next section.
9365 \end_layout
9366
9367 \begin_layout Standard
9368 Since foils are often used in presenting ideas or new theorems and such
9369  
9370 \family sans
9371 Foil\SpecialChar TeX
9372
9373 \family default
9374  also provides a comprehensive box of goodies for presenting them:
9375 \end_layout
9376
9377 \begin_layout Standard
9378 \begin_inset Flex Multiple Columns
9379 status open
9380
9381 \begin_layout Itemize
9382
9383 \family sans
9384 Theorem
9385 \end_layout
9386
9387 \begin_layout Itemize
9388
9389 \family sans
9390 Lemma
9391 \end_layout
9392
9393 \begin_layout Itemize
9394
9395 \family sans
9396 Corollary
9397 \end_layout
9398
9399 \begin_layout Itemize
9400
9401 \family sans
9402 Proposition
9403 \end_layout
9404
9405 \begin_layout Itemize
9406
9407 \family sans
9408 Definition
9409 \end_layout
9410
9411 \begin_layout Itemize
9412
9413 \family sans
9414 Proof
9415 \end_layout
9416
9417 \begin_layout Itemize
9418
9419 \family sans
9420 Theorem*
9421 \end_layout
9422
9423 \begin_layout Itemize
9424
9425 \family sans
9426 Lemma*
9427 \end_layout
9428
9429 \begin_layout Itemize
9430
9431 \family sans
9432 Corollary*
9433 \end_layout
9434
9435 \begin_layout Itemize
9436
9437 \family sans
9438 Proposition*
9439 \end_layout
9440
9441 \begin_layout Itemize
9442
9443 \family sans
9444 Definition*
9445 \end_layout
9446
9447 \end_inset
9448
9449
9450 \end_layout
9451
9452 \begin_layout Standard
9453 The starred versions are unnumbered while the unstarred versions are numbered.
9454  There are also two list environments added by \SpecialChar LyX
9455  and these are:
9456 \end_layout
9457
9458 \begin_layout Itemize
9459
9460 \family sans
9461 TickList
9462 \end_layout
9463
9464 \begin_layout Itemize
9465
9466 \family sans
9467 CrossList
9468 \end_layout
9469
9470 \begin_layout Standard
9471
9472 \family sans
9473 Foil\SpecialChar TeX
9474
9475 \family default
9476  provides some powerful header and footer capabilities that are best set
9477  in the preamble although they may be set at any point in a document.
9478  If you want to change these settings in your document the best place to
9479  do so is at the very top of a foil, i.
9480 \begin_inset space \thinspace{}
9481 \end_inset
9482
9483 e.
9484 \emph on
9485
9486 \begin_inset space \space{}
9487 \end_inset
9488
9489
9490 \emph default
9491 straight after the foilhead.
9492 \end_layout
9493
9494 \begin_layout Standard
9495 For this purpose, the following command styles are provided [
9496 \shape smallcaps
9497 Martin Vermeer
9498 \shape default
9499 ]:
9500 \end_layout
9501
9502 \begin_layout Standard
9503 \begin_inset Flex Multiple Columns
9504 status open
9505
9506 \begin_layout Itemize
9507
9508 \family sans
9509 My
9510 \begin_inset space ~
9511 \end_inset
9512
9513 Logo
9514 \end_layout
9515
9516 \begin_layout Itemize
9517
9518 \family sans
9519 Restriction
9520 \end_layout
9521
9522 \begin_layout Itemize
9523
9524 \family sans
9525 Right
9526 \begin_inset space ~
9527 \end_inset
9528
9529 Footer
9530 \end_layout
9531
9532 \begin_layout Itemize
9533
9534 \family sans
9535 Right
9536 \begin_inset space ~
9537 \end_inset
9538
9539 Header
9540 \end_layout
9541
9542 \begin_layout Itemize
9543
9544 \family sans
9545 Left
9546 \begin_inset space ~
9547 \end_inset
9548
9549 Header
9550 \end_layout
9551
9552 \begin_deeper
9553 \begin_layout Plain Layout
9554 \begin_inset space ~
9555 \end_inset
9556
9557
9558 \end_layout
9559
9560 \end_deeper
9561 \end_inset
9562
9563
9564 \end_layout
9565
9566 \begin_layout Standard
9567 There are also a few commands provided by 
9568 \family sans
9569 Foil\SpecialChar TeX
9570
9571 \family default
9572  that aren't directly supported by \SpecialChar LyX
9573  but I'll tell you what they do and how
9574  to use them in section
9575 \begin_inset space ~
9576 \end_inset
9577
9578
9579 \begin_inset CommandInset ref
9580 LatexCommand ref
9581 reference "sec:unsuppfoils"
9582
9583 \end_inset
9584
9585 .
9586 \end_layout
9587
9588 \begin_layout Subsubsection
9589 Building a Set of Foils
9590 \end_layout
9591
9592 \begin_layout Standard
9593 This section will give a simple introduction to using the different environments
9594  to build a set of foils.
9595  If you want to see an example set of foils, take a look at 
9596 \change_deleted 564990737 1671643085
9597 the 
9598 \family typewriter
9599 Foils.lyx
9600 \family default
9601  file you find in \SpecialChar LyX
9602 's 
9603 \family typewriter
9604 examples
9605 \family default
9606  folder
9607 \change_inserted 564990737 1671643099
9608
9609 \family sans
9610 \lang british
9611 File\SpecialChar menuseparator
9612 Open Example
9613 \lang english
9614 \SpecialChar menuseparator
9615 Presentations\SpecialChar menuseparator
9616 Foils
9617 \change_unchanged
9618
9619 \family default
9620 .
9621 \end_layout
9622
9623 \begin_layout Paragraph
9624 Give It a Title Page
9625 \end_layout
9626
9627 \begin_layout Standard
9628 Unlike other classes that provide 
9629 \family sans
9630 Title
9631 \family default
9632
9633 \family sans
9634 Author
9635 \family default
9636
9637 \family sans
9638 Date
9639 \family default
9640  and 
9641 \family sans
9642 Abstract
9643 \family default
9644  environments, 
9645 \family sans
9646 foils
9647 \family default
9648  creates the title on a page of its own.
9649  If you leave out the 
9650 \family sans
9651 Date
9652 \family default
9653  environment \SpecialChar LaTeX
9654  will substitute the current date (every time you regenerate
9655  the output).
9656 \end_layout
9657
9658 \begin_layout Paragraph
9659 Start a New Foil
9660 \end_layout
9661
9662 \begin_layout Standard
9663 As I mentioned earlier, there are four ways of starting a new foil.
9664  For portrait foils you should use 
9665 \family sans
9666 Foilhead
9667 \family default
9668  or 
9669 \family sans
9670 ShortFoilhead.
9671
9672 \family default
9673  The difference between these two environments is the amount of space between
9674  the title of the foil (the foilhead) and the body of the foil.
9675 \end_layout
9676
9677 \begin_layout Standard
9678 Landscape foils are generated using the 
9679 \family sans
9680 Rotatefoilhead
9681 \family default
9682  and 
9683 \family sans
9684 ShortRotatefoilhead
9685 \family default
9686  environments.
9687  Again the only difference is the spacing between foilhead and body.
9688  Both of the short versions have 0.5
9689 \begin_inset space ~
9690 \end_inset
9691
9692 inches less separation between the foilhead and the body.
9693  
9694 \end_layout
9695
9696 \begin_layout Standard
9697 One problem with the support for landscape foils is the requirement that
9698  you have to use the 
9699 \family typewriter
9700 dvips
9701 \family default
9702  driver to generate the PostScript output otherwise the foils won't be rotated.
9703  It is possible to get landscape foils even if you haven't got the 
9704 \family typewriter
9705 dvips
9706 \family default
9707  driver provided you can feed your foils sideways through your printer ;-)
9708 \end_layout
9709
9710 \begin_layout Paragraph
9711 Theorems, Lemmas, Proofs and more
9712 \end_layout
9713
9714 \begin_layout Standard
9715 You can't have two of the same type of these environments directly following
9716  each other.
9717  If you use a normal paragraph break, , you will just be extending the previous
9718  environment as if you had merged the two environments together.
9719  Rather than that, you need to insert a so-called separator.
9720  Please refer to the section entitled 
9721 \emph on
9722 Separate Nestings
9723 \emph default
9724  in the 
9725 \emph on
9726 User's Guide
9727 \emph default
9728 .
9729 \end_layout
9730
9731 \begin_layout Paragraph
9732 Lists
9733 \end_layout
9734
9735 \begin_layout Standard
9736 You get all the commonly supported list styles found in other classes as
9737  well as two new ones.
9738  I'll only describe the new ones here.
9739  If you want to find out more about the other list environments check out
9740  the 
9741 \emph on
9742 User's Guide.
9743
9744 \emph default
9745  If you intend to use itemized lists you might also want to read about the
9746  
9747 \family sans
9748 Itemize
9749 \begin_inset space ~
9750 \end_inset
9751
9752 Bullet
9753 \begin_inset space ~
9754 \end_inset
9755
9756 Selection
9757 \family default
9758  dialog described above in section
9759 \begin_inset space ~
9760 \end_inset
9761
9762
9763 \change_inserted 564990737 1671355684
9764
9765 \begin_inset CommandInset ref
9766 LatexCommand ref
9767 reference "chap:bullets"
9768
9769 \end_inset
9770
9771
9772 \change_deleted 564990737 1671355684
9773
9774 \begin_inset CommandInset ref
9775 LatexCommand ref
9776 reference "sec:bullet"
9777
9778 \end_inset
9779
9780
9781 \change_unchanged
9782 .
9783 \end_layout
9784
9785 \begin_layout Standard
9786 The two new list styles, 
9787 \family sans
9788 TickList
9789 \family default
9790  and 
9791 \family sans
9792 CrossList
9793 \family default
9794 , are designed to make it easier for you to create lists of do's and don'ts
9795  or right and wrong by providing dedicated environments that use a tick
9796  or a cross as the label of the list.
9797  These lists are in fact dedicated variants of the 
9798 \family sans
9799 Itemize
9800 \family default
9801  environment.
9802  They do however require that you have the 
9803 \family typewriter
9804 psnfss
9805 \family default
9806  packages installed.
9807 \end_layout
9808
9809 \begin_layout Paragraph
9810 Figures and Tables
9811 \end_layout
9812
9813 \begin_layout Standard
9814
9815 \family sans
9816 Foil\SpecialChar TeX
9817
9818 \family default
9819  redefines the floating tables and figures so that they appear exactly where
9820  they are in the text rather than pushing them to the top of the page or
9821  to some user specified location.
9822  In fact if you change the float placement settings they are simply ignored.
9823 \end_layout
9824
9825 \begin_layout Paragraph
9826 Page Headers and Footers
9827 \begin_inset CommandInset label
9828 LatexCommand label
9829 name "sec:foilfoot"
9830
9831 \end_inset
9832
9833
9834 \end_layout
9835
9836 \begin_layout Standard
9837
9838 \family sans
9839 My
9840 \begin_inset space ~
9841 \end_inset
9842
9843 Logo
9844 \family default
9845  and 
9846 \family sans
9847 Restriction
9848 \family default
9849  are two commands used to control the left-footer text string.
9850  The first is meant to allow you to include a graphic logo on your foils
9851  and defaults to 
9852 \begin_inset Quotes eld
9853 \end_inset
9854
9855 -Typeset by 
9856 \family sans
9857 Foil\SpecialChar TeX
9858
9859 \family default
9860 -
9861 \begin_inset Quotes erd
9862 \end_inset
9863
9864 .
9865  While the second is meant to provide a classification for the audience,
9866  
9867 \emph on
9868 e.
9869 \begin_inset space \thinspace{}
9870 \end_inset
9871
9872 g.
9873 \emph default
9874
9875 \begin_inset space \space{}
9876 \end_inset
9877
9878 Confidential.
9879  It is empty by default.
9880 \end_layout
9881
9882 \begin_layout Standard
9883 The remaining page corners can be filled by 
9884 \family sans
9885 Right
9886 \begin_inset space ~
9887 \end_inset
9888
9889 Footer
9890 \family default
9891  (which defaults to page numbers), 
9892 \family sans
9893 Right
9894 \begin_inset space ~
9895 \end_inset
9896
9897 Header
9898 \family default
9899  (top right) and 
9900 \family sans
9901 Left
9902 \begin_inset space ~
9903 \end_inset
9904
9905 Header
9906 \family default
9907  (top left).
9908 \end_layout
9909
9910 \begin_layout Subsubsection
9911 Unsupported 
9912 \family sans
9913 Foil\SpecialChar TeX
9914
9915 \family default
9916  Goodies
9917 \begin_inset CommandInset label
9918 LatexCommand label
9919 name "sec:unsuppfoils"
9920
9921 \end_inset
9922
9923
9924 \end_layout
9925
9926 \begin_layout Standard
9927 All the commands mentioned below need to be set in a 
9928 \family sans
9929 \SpecialChar LaTeX
9930
9931 \family default
9932  environment or as 
9933 \family sans
9934 \SpecialChar TeX
9935
9936 \family default
9937  within another environment.
9938 \end_layout
9939
9940 \begin_layout Paragraph
9941 Lengths
9942 \end_layout
9943
9944 \begin_layout Standard
9945 All lengths are adjusted using the 
9946 \family typewriter
9947
9948 \backslash
9949 setlength{
9950 \family default
9951 \emph on
9952 lengthname
9953 \family typewriter
9954 \emph default
9955 }{
9956 \family default
9957 \emph on
9958 newlength
9959 \family typewriter
9960 \emph default
9961 }
9962 \family default
9963  command.
9964  Where 
9965 \emph on
9966 lengthname
9967 \emph default
9968  should be replaced by the name given to the length you want to change and
9969  
9970 \emph on
9971 newlength
9972 \emph default
9973  is the length value.
9974  All lengths should be specified in units of length such as inches (
9975 \family typewriter
9976 in
9977 \family default
9978 ), millimeters (
9979 \family typewriter
9980 mm
9981 \family default
9982 ) or points (
9983 \family typewriter
9984 pt
9985 \family default
9986 ) or relative to some document or font-based length such as 
9987 \family typewriter
9988
9989 \backslash
9990 textwidth
9991 \family default
9992 .
9993  
9994 \end_layout
9995
9996 \begin_layout Standard
9997 It's possible to change the spacing between a foilhead and the body of the
9998  foil by adjusting the length specified by 
9999 \family typewriter
10000
10001 \backslash
10002 foilheadskip
10003 \family default
10004 .
10005  For example, to make 
10006 \emph on
10007 all
10008 \emph default
10009  foilheads 0.5
10010 \begin_inset space \space{}
10011 \end_inset
10012
10013 in closer to their bodies put the following in the preamble: 
10014 \family typewriter
10015
10016 \backslash
10017 setlength{
10018 \backslash
10019 foilheadskip}{-0.5in}
10020 \end_layout
10021
10022 \begin_layout Standard
10023 The spacings around floats can be adjusted by setting these lengths:
10024 \end_layout
10025
10026 \begin_layout Labeling
10027 \labelwidthstring MMMMMMMMMMM
10028
10029 \family typewriter
10030
10031 \backslash
10032 abovefloatskip
10033 \family default
10034  Separation between the text and the top of the float
10035 \end_layout
10036
10037 \begin_layout Labeling
10038 \labelwidthstring MMMMMMMMMMM
10039
10040 \family typewriter
10041
10042 \backslash
10043 abovecaptionskip
10044 \family default
10045  Separation between the float and the caption
10046 \end_layout
10047
10048 \begin_layout Labeling
10049 \labelwidthstring MMMMMMMMMMM
10050
10051 \family typewriter
10052
10053 \backslash
10054 belowcaptionskip
10055 \family default
10056  Separation between the caption and the following text
10057 \end_layout
10058
10059 \begin_layout Labeling
10060 \labelwidthstring MMMMMMMMMMM
10061
10062 \family typewriter
10063
10064 \backslash
10065 captionwidth
10066 \family default
10067  You can make the captions narrower than the surrounding text by adjusting
10068  this length.
10069  Best done relative to 
10070 \family typewriter
10071
10072 \backslash
10073 textwidth
10074 \family default
10075 .
10076 \end_layout
10077
10078 \begin_layout Standard
10079 There are also several title page related lengths that you may find useful
10080  if you have a long title or several authors:
10081 \end_layout
10082
10083 \begin_layout Labeling
10084 \labelwidthstring MMMMMMMMMMM
10085
10086 \family typewriter
10087
10088 \backslash
10089 abovetitleskip
10090 \family default
10091  Separation from headers to 
10092 \family sans
10093 Title
10094 \end_layout
10095
10096 \begin_layout Labeling
10097 \labelwidthstring MMMMMMMMMMM
10098
10099 \family typewriter
10100
10101 \backslash
10102 titleauthorskip
10103 \family default
10104  between 
10105 \family sans
10106 Title
10107 \family default
10108  and 
10109 \family sans
10110 Author
10111 \family default
10112  environments
10113 \end_layout
10114
10115 \begin_layout Labeling
10116 \labelwidthstring MMMMMMMMMMM
10117
10118 \family typewriter
10119
10120 \backslash
10121 authorauthorskip
10122 \family default
10123  between multiple 
10124 \family sans
10125 Author
10126 \family default
10127  lines
10128 \end_layout
10129
10130 \begin_layout Labeling
10131 \labelwidthstring MMMMMMMMMMM
10132
10133 \family typewriter
10134
10135 \backslash
10136 authordateskip
10137 \family default
10138  between the 
10139 \family sans
10140 Author
10141 \family default
10142  and the 
10143 \family sans
10144 Date
10145 \end_layout
10146
10147 \begin_layout Labeling
10148 \labelwidthstring MMMMMMMMMMM
10149
10150 \family typewriter
10151
10152 \backslash
10153 dateabstractskip
10154 \family default
10155  between the 
10156 \family sans
10157 Date
10158 \family default
10159  and the 
10160 \family sans
10161 Abstract
10162 \end_layout
10163
10164 \begin_layout Standard
10165 The last length related command affects all the list environments.
10166  If you place 
10167 \family typewriter
10168
10169 \backslash
10170 zerolistvertdimens
10171 \family default
10172  
10173 \emph on
10174 inside
10175 \emph default
10176  a list environment then all the vertical spacing between the list items
10177  is removed.
10178  Note that this is a command not a length so it doesn't require 
10179 \family typewriter
10180
10181 \backslash
10182 setlength
10183 \family default
10184  like the stuff mentioned above.
10185 \end_layout
10186
10187 \begin_layout Paragraph
10188 Headers and Footers
10189 \end_layout
10190
10191 \begin_layout Standard
10192 The 
10193 \family typewriter
10194
10195 \backslash
10196 LogoOn
10197 \family default
10198  and 
10199 \family typewriter
10200
10201 \backslash
10202 LogoOff
10203 \family default
10204  commands control whether the logo in the 
10205 \family sans
10206 MyLogo
10207 \family default
10208  definition appear on a given page.
10209  If you put 
10210 \family typewriter
10211
10212 \backslash
10213 LogoOff
10214 \family default
10215  in the preamble then none of the foils will have the logo on them.
10216  If you don't want the logo on a particular page place the 
10217 \family typewriter
10218
10219 \backslash
10220 LogoOff
10221 \family default
10222  directly after the foilhead of that page and the 
10223 \family typewriter
10224
10225 \backslash
10226 LogoOn
10227 \family default
10228  directly after the next foilhead.
10229 \end_layout
10230
10231 \begin_layout Standard
10232 If you decide to use the 
10233 \family sans
10234 fancy
10235 \family default
10236  page style setting in the 
10237 \family sans
10238 Document
10239 \begin_inset space ~
10240 \end_inset
10241
10242 Layout
10243 \family default
10244  dialog you should probably add 
10245 \family typewriter
10246
10247 \backslash
10248 let
10249 \backslash
10250 headwidth
10251 \backslash
10252 textwidth
10253 \family default
10254  to your preamble so headers and footers on landscape pages are correctly
10255  placed when rotated.
10256  This is due to some clashes between the page layouts provided by the 
10257 \family sans
10258 fancyheadings
10259 \family default
10260  package and the 
10261 \family sans
10262 foils
10263 \family default
10264  class.
10265 \end_layout
10266
10267 \begin_layout Subsection
10268
10269 \change_inserted 564990737 1671459032
10270
10271 \lang american
10272 Powerdot
10273 \end_layout
10274
10275 \begin_layout Standard
10276
10277 \change_inserted 564990737 1671643165
10278
10279 \lang american
10280 The document class 
10281 \family sans
10282 presentation
10283 \begin_inset space \thinspace{}
10284 \end_inset
10285
10286 (powerdot)
10287 \family default
10288  uses the 
10289 \family typewriter
10290 powerdot.cls
10291 \family default
10292  document class for creating presentations.
10293  
10294 \family sans
10295 \lang british
10296 File\SpecialChar menuseparator
10297 Open Example\SpecialChar menuseparator
10298 Presentations\SpecialChar menuseparator
10299 Powerdot
10300 \family default
10301 \lang american
10302  offers guidance on its use.
10303  The documentation is available from 
10304 \begin_inset CommandInset href
10305 LatexCommand href
10306 name "CTAN"
10307 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10308 literal "false"
10309
10310 \end_inset
10311
10312 .
10313 \end_layout
10314
10315 \begin_layout Subsection
10316
10317 \change_inserted 564990737 1671459032
10318
10319 \lang american
10320 \begin_inset CommandInset label
10321 LatexCommand label
10322 name "subsec:Seminar"
10323
10324 \end_inset
10325
10326
10327 \family sans
10328 Seminar
10329 \end_layout
10330
10331 \begin_layout Standard
10332
10333 \change_inserted 564990737 1671643194
10334
10335 \lang american
10336 The document class 
10337 \family sans
10338 presentations
10339 \begin_inset space \thinspace{}
10340 \end_inset
10341
10342 (seminar)
10343 \family default
10344  uses the 
10345 \family typewriter
10346 seminar.cls
10347 \family default
10348  document class for creating presentations.
10349  
10350 \family sans
10351 \lang british
10352 File\SpecialChar menuseparator
10353 Open Example\SpecialChar menuseparator
10354 Presentations\SpecialChar menuseparator
10355 Seminar
10356 \family default
10357 \lang american
10358  offers guidance on its use.
10359  The documentation is available from 
10360 \begin_inset CommandInset href
10361 LatexCommand href
10362 name "CTAN"
10363 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10364 literal "false"
10365
10366 \end_inset
10367
10368 .
10369 \end_layout
10370
10371 \begin_layout Subsection
10372 Slides [aka 
10373 \noun on
10374 Sli\SpecialChar TeX
10375
10376 \noun default
10377 ]
10378 \begin_inset CommandInset label
10379 LatexCommand label
10380 name "sec:slitex"
10381
10382 \end_inset
10383
10384
10385 \end_layout
10386
10387 \begin_layout Standard
10388 by 
10389 \noun on
10390 John Weiss
10391 \noun default
10392  
10393 \end_layout
10394
10395 \begin_layout Subsubsection
10396 Introduction
10397 \end_layout
10398
10399 \begin_layout Standard
10400 This section describes how to use \SpecialChar LyX
10401  to make slides for overhead projectors.
10402  There are two document classes that can do this: the default slides class
10403  and the 
10404 \family sans
10405 Foil\SpecialChar TeX
10406
10407 \family default
10408  slides class.
10409  This section documents the former.
10410 \end_layout
10411
10412 \begin_layout Standard
10413 I'm going to say this again, nice and clear, so that there's no misunderstanding
10414 :
10415 \end_layout
10416
10417 \begin_layout Standard
10418 \begin_inset VSpace bigskip
10419 \end_inset
10420
10421
10422 \end_layout
10423
10424 \begin_layout Standard
10425 \align center
10426
10427 \size large
10428 This section documents the class 
10429 \begin_inset Quotes eld
10430 \end_inset
10431
10432
10433 \family sans
10434 slides (default)
10435 \family default
10436
10437 \begin_inset Quotes erd
10438 \end_inset
10439
10440  
10441 \emph on
10442 only.
10443 \end_layout
10444
10445 \begin_layout Standard
10446 \begin_inset VSpace bigskip
10447 \end_inset
10448
10449
10450 \end_layout
10451
10452 \begin_layout Standard
10453 If you're looking for the documentation for 
10454 \begin_inset Quotes eld
10455 \end_inset
10456
10457
10458 \family sans
10459 slides (Foil\SpecialChar TeX
10460 )
10461 \family default
10462
10463 \begin_inset Quotes erd
10464 \end_inset
10465
10466 , check out section
10467 \begin_inset space ~
10468 \end_inset
10469
10470
10471 \begin_inset CommandInset ref
10472 LatexCommand ref
10473 reference "sec:foiltex"
10474
10475 \end_inset
10476
10477 .
10478  The 
10479 \family sans
10480 foils
10481 \family default
10482  class [
10483 \begin_inset Quotes eld
10484 \end_inset
10485
10486
10487 \family sans
10488 slides (Foil\SpecialChar TeX
10489 )
10490 \family default
10491
10492 \begin_inset Quotes erd
10493 \end_inset
10494
10495 ] is actually somewhat better than the default 
10496 \family sans
10497 slides
10498 \family default
10499  class,
10500 \begin_inset Foot
10501 status collapsed
10502
10503 \begin_layout Plain Layout
10504 \SpecialChar ldots
10505 or so I've been told repeatedly by its advocates.
10506  Having never used it, I have no idea if this claim is true or not.
10507 \end_layout
10508
10509 \end_inset
10510
10511  which this section documents.
10512 \end_layout
10513
10514 \begin_layout Standard
10515 This class is the \SpecialChar LaTeX2e
10516  improvement of the old 
10517 \noun on
10518 Sli\SpecialChar TeX
10519
10520 \noun default
10521  package.
10522  Every \SpecialChar LaTeX2e
10523  distribution includes this class [which I'll just refer to as 
10524 \begin_inset Quotes eld
10525 \end_inset
10526
10527
10528 \family sans
10529 slides
10530 \family default
10531
10532 \begin_inset Quotes erd
10533 \end_inset
10534
10535  from now on], so you're bound to have it.
10536  As I noted earlier, there are other classes, such as 
10537 \family sans
10538 foils
10539 \family default
10540 , which also produce slides for overhead projectors and do a better job
10541  at it.
10542  However, there are some things which 
10543 \family sans
10544 slides
10545 \family default
10546  can do which the others can't, such as generate overlays.
10547  Read on to learn more!
10548 \end_layout
10549
10550 \begin_layout Subsubsection
10551 Getting Started
10552 \begin_inset CommandInset label
10553 LatexCommand label
10554 name "sec:slidesetup"
10555
10556 \end_inset
10557
10558
10559 \end_layout
10560
10561 \begin_layout Standard
10562 Obviously, to use this document class, you need to select 
10563 \begin_inset Quotes eld
10564 \end_inset
10565
10566
10567 \family sans
10568 slides (default)
10569 \family default
10570
10571 \begin_inset Quotes erd
10572 \end_inset
10573
10574  from the class list in the 
10575 \family sans
10576 Document\SpecialChar menuseparator
10577 Settings
10578 \family default
10579  dialog.
10580  There are some other special things you should know about this class:
10581 \end_layout
10582
10583 \begin_layout Itemize
10584 Don't bother changing the options 
10585 \family sans
10586 Sides and Columns
10587 \family default
10588 .
10589  They're not supported by the 
10590 \family sans
10591 slides
10592 \family default
10593  class, anyways.
10594 \end_layout
10595
10596 \begin_layout Itemize
10597 The option 
10598 \family sans
10599 Page
10600 \begin_inset space ~
10601 \end_inset
10602
10603 style
10604 \family default
10605  behaves a bit differently for this class.
10606  The possible choices and what they do are as follows:
10607 \end_layout
10608
10609 \begin_deeper
10610 \begin_layout Description
10611
10612 \family sans
10613 plain
10614 \family default
10615  The final output contains page numbers in the lower right corner.
10616 \end_layout
10617
10618 \begin_layout Description
10619
10620 \family sans
10621 headings
10622 \family default
10623  Like 
10624 \family sans
10625 plain
10626 \family default
10627 , but also prints out any time markers you've put in.
10628  This is the default.
10629 \end_layout
10630
10631 \begin_layout Description
10632
10633 \family sans
10634 empty
10635 \family default
10636  The final output contains no page numbers, time markers, or alignment markers.
10637 \end_layout
10638
10639 \end_deeper
10640 \begin_layout Itemize
10641 The 
10642 \family sans
10643 slides
10644 \family default
10645  class has an extra option: 
10646 \family typewriter
10647 clock
10648 \family default
10649 .
10650  To use it, put 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654
10655 \family typewriter
10656 clock
10657 \family default
10658
10659 \begin_inset Quotes erd
10660 \end_inset
10661
10662  in the extra class options.
10663 \end_layout
10664
10665 \begin_deeper
10666 \begin_layout Standard
10667 Using this options allows you to add time markers to 
10668 \family sans
10669 Note
10670 \family default
10671 s.
10672  See section
10673 \begin_inset space ~
10674 \end_inset
10675
10676
10677 \begin_inset CommandInset ref
10678 LatexCommand ref
10679 reference "sec:slideNote"
10680
10681 \end_inset
10682
10683  for more details.
10684 \end_layout
10685
10686 \end_deeper
10687 \begin_layout Standard
10688 You can also use the template file
10689 \change_deleted 564990737 1671617694
10690  
10691 \begin_inset Quotes eld
10692 \end_inset
10693
10694
10695 \family typewriter
10696 slides.lyx
10697 \family default
10698
10699 \begin_inset Quotes erd
10700 \end_inset
10701
10702
10703 \change_unchanged
10704  to automatically set up a document to use the 
10705 \family sans
10706 slides
10707 \family default
10708  class 
10709 \change_deleted 564990737 1671617699
10710 [
10711 \change_unchanged
10712 using 
10713 \family sans
10714 File\SpecialChar menuseparator
10715 New
10716 \begin_inset space ~
10717 \end_inset
10718
10719 from
10720 \begin_inset space ~
10721 \end_inset
10722
10723 Template
10724 \change_inserted 564990737 1671617723
10725 \SpecialChar menuseparator
10726 Presentations\SpecialChar menuseparator
10727 Slides
10728 \change_unchanged
10729
10730 \family default
10731  to open your new document
10732 \change_deleted 564990737 1671617728
10733 ]
10734 \change_unchanged
10735 .
10736  The template file also contains some examples of the special paragraph
10737  environments used by this class.
10738  I'll describe those next.
10739 \end_layout
10740
10741 \begin_layout Subsubsection
10742 Paragraph Environments
10743 \end_layout
10744
10745 \begin_layout Paragraph
10746 Supported Environments
10747 \end_layout
10748
10749 \begin_layout Standard
10750 The first thing you'll notice when you start up a new 
10751 \family sans
10752 slides
10753 \family default
10754  document is the font size and type: it's the equivalent of the size 
10755 \begin_inset Quotes eld
10756 \end_inset
10757
10758
10759 \family sans
10760 Largest
10761 \family default
10762
10763 \begin_inset Quotes erd
10764 \end_inset
10765
10766  in the 
10767 \family sans
10768 Sans
10769 \begin_inset space ~
10770 \end_inset
10771
10772 Serif
10773 \family default
10774  font.
10775  This is also what's used in the output.
10776  Think of this as a 
10777 \begin_inset Quotes eld
10778 \end_inset
10779
10780 visual cue
10781 \begin_inset Quotes erd
10782 \end_inset
10783
10784  to remind you that this is a slide.
10785  Your final slides will use a larger font; ergo, you'll have less space.
10786  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10787 \end_layout
10788
10789 \begin_layout Standard
10790 The next thing that becomes obvious is the changes to the paragraph environment
10791  pull-down box [at the far-left end of the toolbar].
10792  Most of the paragraph environments you're used to seeing are missing.
10793  There are also five new ones.
10794  That's because the 
10795 \family sans
10796 slides
10797 \family default
10798  class itself only supports certain paragraph environments:
10799 \end_layout
10800
10801 \begin_layout Itemize
10802
10803 \family sans
10804 Standard
10805 \end_layout
10806
10807 \begin_layout Itemize
10808
10809 \family sans
10810 Itemize
10811 \end_layout
10812
10813 \begin_layout Itemize
10814
10815 \family sans
10816 Enumerate
10817 \end_layout
10818
10819 \begin_layout Itemize
10820
10821 \family sans
10822 Description
10823 \end_layout
10824
10825 \begin_layout Itemize
10826
10827 \family sans
10828 List
10829 \end_layout
10830
10831 \begin_layout Itemize
10832
10833 \family sans
10834 Quotation
10835 \end_layout
10836
10837 \begin_layout Itemize
10838
10839 \family sans
10840 Quote
10841 \end_layout
10842
10843 \begin_layout Itemize
10844
10845 \family sans
10846 Verse
10847 \end_layout
10848
10849 \begin_layout Itemize
10850
10851 \family sans
10852 Caption
10853 \end_layout
10854
10855 \begin_layout Itemize
10856
10857 \family sans
10858 \SpecialChar LyX
10859 -Code
10860 \end_layout
10861
10862 \begin_layout Standard
10863 All of the other standard environments, including the section-heading environmen
10864 ts, aren't used in the 
10865 \family sans
10866 slides
10867 \family default
10868  class.
10869 \end_layout
10870
10871 \begin_layout Standard
10872 On the other hand, you'll notice the following new environments:
10873 \end_layout
10874
10875 \begin_layout Itemize
10876
10877 \family sans
10878 Slide
10879 \end_layout
10880
10881 \begin_layout Itemize
10882
10883 \family sans
10884 Overlay
10885 \end_layout
10886
10887 \begin_layout Itemize
10888
10889 \family sans
10890 Note
10891 \end_layout
10892
10893 \begin_layout Itemize
10894
10895 \family sans
10896 InvisibleText
10897 \end_layout
10898
10899 \begin_layout Itemize
10900
10901 \family sans
10902 VisibleText
10903 \end_layout
10904
10905 \begin_layout Standard
10906 These five are kind of quirky, due to a 
10907 \begin_inset Quotes eld
10908 \end_inset
10909
10910 feature
10911 \begin_inset Quotes erd
10912 \end_inset
10913
10914  in \SpecialChar LyX
10915 .
10916  You see, \SpecialChar LyX
10917  doesn't permit you to nest any other paragraph environment into
10918  an empty environment.
10919  Now, that's fine and dandy, but it means that you wouldn't be able to start
10920  a slide with anything except plain text.
10921  To deal with this, I've performed a little 
10922 \begin_inset Quotes eld
10923 \end_inset
10924
10925 \SpecialChar LaTeX
10926  magic.
10927 \begin_inset Quotes erd
10928 \end_inset
10929
10930  
10931 \end_layout
10932
10933 \begin_layout Paragraph
10934 Quirks of the New Environments
10935 \begin_inset CommandInset label
10936 LatexCommand label
10937 name "sec:slideQuirk"
10938
10939 \end_inset
10940
10941
10942 \end_layout
10943
10944 \begin_layout Standard
10945 All five of the new paragraph environments are somewhat quirky due to inherent
10946  limitiations in the current version of \SpecialChar LyX
10947 .
10948  As I just mentioned, \SpecialChar LyX
10949  forbids environments that begin with another environment.
10950  To get around this, the 
10951 \family sans
10952 Slide
10953 \family default
10954  environment isn't a paragraph environment as described in the 
10955 \emph on
10956 User's Guide
10957 \emph default
10958 .
10959  
10960 \end_layout
10961
10962 \begin_layout Standard
10963 You should consider 
10964 \family sans
10965 Slide
10966 \family default
10967
10968 \family sans
10969 Overlay
10970 \family default
10971 , and 
10972 \family sans
10973 Note
10974 \family default
10975  to be 
10976 \begin_inset Quotes eld
10977 \end_inset
10978
10979 pseudo-environments.
10980 \begin_inset Quotes erd
10981 \end_inset
10982
10983  They look like a section heading or a 
10984 \begin_inset Quotes eld
10985 \end_inset
10986
10987
10988 \family sans
10989 Caption
10990 \family default
10991 ,
10992 \begin_inset Quotes erd
10993 \end_inset
10994
10995  but really begin a [and, if necessary, end the previous] paragraph environment.
10996  Likewise, treat 
10997 \family sans
10998 InvisibleText
10999 \family default
11000  and 
11001 \family sans
11002 VisibleText
11003 \family default
11004  as 
11005 \begin_inset Quotes eld
11006 \end_inset
11007
11008 pseudo-commands.
11009 \begin_inset Quotes erd
11010 \end_inset
11011
11012  These two perform some action.
11013 \end_layout
11014
11015 \begin_layout Standard
11016 A common feature of all five environments, 
11017 \family sans
11018 Slide
11019 \family default
11020
11021 \family sans
11022 Overlay
11023 \family default
11024
11025 \family sans
11026 Note
11027 \family default
11028
11029 \family sans
11030 InvisibleText
11031 \family default
11032  and 
11033 \family sans
11034 VisibleText
11035 \family default
11036 , is a rather long-ish label.
11037  The text following this label — ordinarily the contents of the paragraph
11038  environment — is utterly irrelevant for 
11039 \family sans
11040 Slide
11041 \family default
11042
11043 \family sans
11044 Overlay
11045 \family default
11046
11047 \family sans
11048 Note
11049 \family default
11050
11051 \family sans
11052 InvisibleText
11053 \family default
11054  and 
11055 \family sans
11056 VisibleText
11057 \family default
11058 .
11059  \SpecialChar LyX
11060  completely ignores it.
11061  In fact, you can leave these five environments completely empty.
11062  
11063 \end_layout
11064
11065 \begin_layout Standard
11066 While you don't 
11067 \emph on
11068 have
11069 \emph default
11070  to put any text after the rather long-ish label, you might want to.
11071  This could be a short description of the contents of the 
11072 \family sans
11073 Slide
11074 \family default
11075 , for example.
11076  In that case, enter your descriptive comment and hit 
11077 \family sans
11078 Return
11079 \family default
11080  as you normally would.
11081 \end_layout
11082
11083 \begin_layout Standard
11084 If, on the other hand, you don't want to enter any descriptive text, you'll
11085  hit another \SpecialChar LyX
11086  quirk.
11087  \SpecialChar LyX
11088 , like nature, abhors a vacuum, and will not let you start a new paragraph
11089  environment until you put something in the old one.
11090  So, do this:
11091 \end_layout
11092
11093 \begin_layout Itemize
11094 Start entering the text that will 
11095 \emph on
11096 follow
11097 \emph default
11098  the new 
11099 \family sans
11100 Slide
11101 \family default
11102
11103 \family sans
11104 Overlay
11105 \family default
11106
11107 \family sans
11108 Note
11109 \family default
11110
11111 \family sans
11112 InvisibleText
11113 \family default
11114  or 
11115 \family sans
11116 VisibleText
11117 \family default
11118 .
11119  
11120 \end_layout
11121
11122 \begin_layout Itemize
11123 Now move to the beginning of that paragraph.
11124  
11125 \end_layout
11126
11127 \begin_layout Itemize
11128 Next, hit 
11129 \family sans
11130 Return
11131 \family default
11132 .
11133  
11134 \end_layout
11135
11136 \begin_layout Itemize
11137 Finally, change this new, empty paragraph to a 
11138 \family sans
11139 Slide
11140 \family default
11141
11142 \family sans
11143 Overlay
11144 \family default
11145
11146 \family sans
11147 Note
11148 \family default
11149
11150 \family sans
11151 InvisibleText
11152 \family default
11153  or 
11154 \family sans
11155 VisibleText
11156 \family default
11157 .
11158  
11159 \end_layout
11160
11161 \begin_layout Standard
11162 Some future version of \SpecialChar LyX
11163  will, hopefully, resolve this quirkiness\SpecialChar ldots
11164
11165 \end_layout
11166
11167 \begin_layout Subsubsection
11168 Making a Presentation with 
11169 \family sans
11170 Slide
11171 \family default
11172
11173 \family sans
11174 Overlay
11175 \family default
11176  and 
11177 \family sans
11178 Note
11179 \end_layout
11180
11181 \begin_layout Paragraph
11182 Using the 
11183 \family sans
11184 Slide
11185 \family default
11186  Environment
11187 \end_layout
11188
11189 \begin_layout Standard
11190 If you're expecting this section to teach you how to actually make a presentatio
11191 n, you'll be sorely disappointed.
11192  Naturally, I'll describe all of the ways the 
11193 \family sans
11194 slides
11195 \family default
11196  class can assist you in preparing the materials for a presentation.
11197  Filling in the contents, however, is up to you.
11198  [Then again, that 
11199 \emph on
11200 is
11201 \emph default
11202  the \SpecialChar LyX
11203  philosophy.]
11204 \end_layout
11205
11206 \begin_layout Standard
11207 Choosing the 
11208 \family sans
11209 Slide
11210 \family default
11211  environment [in the manner described in section
11212 \begin_inset space ~
11213 \end_inset
11214
11215
11216 \begin_inset CommandInset ref
11217 LatexCommand ref
11218 reference "sec:slideQuirk"
11219
11220 \end_inset
11221
11222 ] tells \SpecialChar LyX
11223  to begin a new slide [duh].
11224  The label for this environment/
11225 \begin_inset Quotes erd
11226 \end_inset
11227
11228 pseudo-command
11229 \begin_inset Quotes erd
11230 \end_inset
11231
11232  is an 
11233 \begin_inset Quotes eld
11234 \end_inset
11235
11236 ASCII line,
11237 \begin_inset Quotes erd
11238 \end_inset
11239
11240  in cool blue, followed by the label, 
11241 \begin_inset Quotes eld
11242 \end_inset
11243
11244 NewSlide:
11245 \begin_inset Quotes erd
11246 \end_inset
11247
11248 .
11249  Any text or paragraph environments that follow this one go on the new slide.
11250  It's that simple.
11251 \end_layout
11252
11253 \begin_layout Standard
11254 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11255
11256  (this can be specified in the 
11257 \family sans
11258 Paragraph Layout
11259 \family default
11260  dialog).
11261  In fact, you'll want to, once you finish entering the contents of one slide.
11262  If you've entered more text than can physically fit on a slide, the extra
11263  overflows onto a new slide.
11264  I don't recommend doing this, however, since the overflow slide won't have
11265  any page number on it.
11266  Furthermore, it may interfere with any 
11267 \family sans
11268 Overlay
11269 \family default
11270  you've made to accompany the oversized 
11271 \family sans
11272 Slide
11273 \family default
11274 .
11275 \end_layout
11276
11277 \begin_layout Standard
11278 The 
11279 \family sans
11280 Overlay
11281 \family default
11282  and 
11283 \family sans
11284 Note
11285 \family default
11286  environments work the same way as the 
11287 \family sans
11288 Slide
11289 \family default
11290  environment.
11291  They both create an 
11292 \begin_inset Quotes eld
11293 \end_inset
11294
11295 ASCII line
11296 \begin_inset Quotes erd
11297 \end_inset
11298
11299  followed by a label [
11300 \begin_inset Quotes eld
11301 \end_inset
11302
11303 NewOverlay:
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  and 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311 NewNote:
11312 \begin_inset Quotes erd
11313 \end_inset
11314
11315 , respectively].
11316  The color is a stunning magenta instead of blue, and the 
11317 \begin_inset Quotes eld
11318 \end_inset
11319
11320 ASCII line
11321 \begin_inset Quotes erd
11322 \end_inset
11323
11324  will look different, in style and in length.
11325  The label fonts of all three also differ from one another.
11326 \end_layout
11327
11328 \begin_layout Standard
11329 As with a 
11330 \family sans
11331 Slide
11332 \family default
11333 , if the contents of a 
11334 \family sans
11335 Note
11336 \family default
11337  or 
11338 \family sans
11339 Overlay
11340 \family default
11341  exceed the physical size of a slide or sheet of paper, the extra will overflow
11342  onto a new sheet.
11343  Again, you should avoid this.
11344  It defeats the whole purpose of 
11345 \family sans
11346 Note
11347 \family default
11348 s and 
11349 \family sans
11350 Overlay
11351 \family default
11352 s.
11353 \end_layout
11354
11355 \begin_layout Paragraph
11356 Using 
11357 \family sans
11358 Overlay
11359 \family default
11360  with 
11361 \family sans
11362 Slide
11363 \end_layout
11364
11365 \begin_layout Standard
11366 The idea behind an 
11367 \family sans
11368 Overlay
11369 \family default
11370  is a slide that sits atop another slide.
11371  Perhaps you wish to discuss a figure on the main 
11372 \family sans
11373 Slide
11374 \family default
11375  before displaying the text associated with it.
11376  One way to accomplish this is tape a flap of dark paper over the part of
11377  the 
11378 \family sans
11379 Slide
11380 \family default
11381  you want to display later.
11382  This method fails, however, if you wish to overlap one graph with another,
11383  for example.
11384  You would then have to fumble while speaking to align the two separate,
11385  overlapping 
11386 \family sans
11387 Slide
11388 \family default
11389 s to align the two graphs.
11390  The use of an 
11391 \family sans
11392 Overlay
11393 \family default
11394  environment in both cases makes life much easier.
11395 \end_layout
11396
11397 \begin_layout Standard
11398 Each 
11399 \family sans
11400 Overlay
11401 \family default
11402  receives the page number of its 
11403 \begin_inset Quotes eld
11404 \end_inset
11405
11406 parent
11407 \begin_inset Quotes erd
11408 \end_inset
11409
11410  
11411 \family sans
11412 Slide
11413 \family default
11414 , appended by 
11415 \begin_inset Quotes eld
11416 \end_inset
11417
11418
11419 \family typewriter
11420 -a
11421 \family default
11422
11423 \begin_inset Quotes erd
11424 \end_inset
11425
11426 .
11427 \begin_inset Foot
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 Presumably, mutliple 
11432 \family sans
11433 Overlay
11434 \family default
11435 s would have 
11436 \begin_inset Quotes eld
11437 \end_inset
11438
11439
11440 \family typewriter
11441 -a
11442 \family default
11443
11444 \begin_inset Quotes erd
11445 \end_inset
11446
11447
11448 \begin_inset Quotes eld
11449 \end_inset
11450
11451
11452 \family typewriter
11453 -b
11454 \family default
11455
11456 \begin_inset Quotes erd
11457 \end_inset
11458
11459
11460 \begin_inset Quotes eld
11461 \end_inset
11462
11463
11464 \family typewriter
11465 -c
11466 \family default
11467
11468 \begin_inset Quotes erd
11469 \end_inset
11470
11471 , etc.
11472 \begin_inset space ~
11473 \end_inset
11474
11475 appended to the page number of the parent 
11476 \family sans
11477 Slide
11478 \family default
11479 .
11480  
11481 \end_layout
11482
11483 \end_inset
11484
11485  Clearly, you want the contents of both the 
11486 \family sans
11487 Slide
11488 \family default
11489  and the 
11490 \family sans
11491 Overlay
11492 \family default
11493  to each fit on a single physical slide! You should probably consider an
11494  
11495 \family sans
11496 Overlay
11497 \family default
11498  as 
11499 \begin_inset Quotes eld
11500 \end_inset
11501
11502 part of
11503 \begin_inset Quotes erd
11504 \end_inset
11505
11506  a 
11507 \family sans
11508 Slide
11509 \family default
11510 .
11511  Indeed, the \SpecialChar LyX
11512  
11513 \family sans
11514 slides
11515 \family default
11516  class provides a visual cue for this: the label at the start of an 
11517 \family sans
11518 Overlay
11519 \family default
11520  is shorter than that at the start of a 
11521 \family sans
11522 Slide
11523 \family default
11524 .
11525  Lastly, when you generate printable output, you'll find alignment markers
11526  in all four corners of both the 
11527 \family sans
11528 Overlay
11529 \family default
11530  page and its parent 
11531 \family sans
11532 Slide
11533 \family default
11534 .
11535  These will assist you in lining up the two physical slides.
11536 \end_layout
11537
11538 \begin_layout Standard
11539 The major problem in overlaying two slides is aligning the contents of the
11540  two transparencies.
11541  How much space should you leave for that graph on the second slide? Worse
11542  still, what if you want a graph and a sentence on second slide, but there
11543  is text on the main transparency that goes in between them? You could try
11544  and insert vertical space of the right size.
11545  The better way is to use 
11546 \family sans
11547 InvisibleText
11548 \family default
11549  and 
11550 \family sans
11551 VisibleText
11552 \family default
11553 .
11554 \end_layout
11555
11556 \begin_layout Standard
11557 As their names imply, 
11558 \family sans
11559 InvisibleText
11560 \family default
11561  and 
11562 \family sans
11563 VisibleText
11564 \family default
11565  are two command-like paragraph environments that make all subsequent text
11566  invisible and visible, respectively.
11567  Note from section
11568 \begin_inset space ~
11569 \end_inset
11570
11571
11572 \begin_inset CommandInset ref
11573 LatexCommand ref
11574 reference "sec:slideQuirk"
11575
11576 \end_inset
11577
11578  that you don't place anything 
11579 \emph on
11580 into
11581 \emph default
11582  these two environments, however.
11583  When you create an 
11584 \family sans
11585 InvisibleText
11586 \family default
11587 , it inserts a centered, sky-blue label into the page reading 
11588 \begin_inset Quotes eld
11589 \end_inset
11590
11591 <Invisible Text Follows>
11592 \begin_inset Quotes erd
11593 \end_inset
11594
11595 .
11596  For paragraphs following this label, the parts of the 
11597 \family sans
11598 Slide
11599 \family default
11600  [or 
11601 \family sans
11602 Overlay
11603 \family default
11604 ; it doesn't matter which] where they would be contain instead blank space.
11605  
11606 \end_layout
11607
11608 \begin_layout Standard
11609 For 
11610 \family sans
11611 VisibleText
11612 \family default
11613 , the corresponding centered label is 
11614 \begin_inset Quotes eld
11615 \end_inset
11616
11617 <Visible Text Follows>
11618 \begin_inset Quotes erd
11619 \end_inset
11620
11621  in blazing green.
11622  Paragraphs following this label behave normally.
11623  Note that the beginning of a new 
11624 \family sans
11625 Slide
11626 \family default
11627
11628 \family sans
11629 Overlay
11630 \family default
11631 , or 
11632 \family sans
11633 Note
11634 \family default
11635  automatically shuts off an 
11636 \family sans
11637 InvisibleText
11638 \family default
11639 .
11640  It's therefore not necessary to use 
11641 \family sans
11642 VisibleText
11643 \family default
11644  at the end of a 
11645 \family sans
11646 Slide
11647 \family default
11648 .
11649 \end_layout
11650
11651 \begin_layout Standard
11652 By now, it should be obvious how to create overlay transparencies using
11653  the proper combination of 
11654 \family sans
11655 InvisibleText
11656 \family default
11657  and 
11658 \family sans
11659 VisibleText
11660 \family default
11661  on a 
11662 \family sans
11663 Slide
11664 \family default
11665  and 
11666 \family sans
11667 Overlay
11668 \family default
11669 :
11670 \end_layout
11671
11672 \begin_layout Enumerate
11673 Create a 
11674 \family sans
11675 Slide
11676 \family default
11677 , including everything that will appear on it, whether on the main slide
11678  or on the 
11679 \family sans
11680 Overlay
11681 \family default
11682 .
11683 \end_layout
11684
11685 \begin_layout Enumerate
11686 Before each figure or paragraph that will appear only on the 
11687 \family sans
11688 Overlay
11689 \family default
11690 , insert an 
11691 \family sans
11692 InvisibleText
11693 \family default
11694  environment.
11695  If necessary, insert a 
11696 \family sans
11697 VisibleText
11698 \family default
11699  environment after the 
11700 \family sans
11701 Overlay
11702 \family default
11703 -only text.
11704 \end_layout
11705
11706 \begin_layout Enumerate
11707 Start an 
11708 \family sans
11709 Overlay
11710 \family default
11711  immediately following the 
11712 \family sans
11713 Slide
11714 \family default
11715 .
11716 \end_layout
11717
11718 \begin_layout Enumerate
11719 Copy the contents of this 
11720 \family sans
11721 Slide
11722 \family default
11723  into the 
11724 \family sans
11725 Overlay
11726 \family default
11727 .
11728 \end_layout
11729
11730 \begin_layout Enumerate
11731 Within the 
11732 \family sans
11733 Overlay
11734 \family default
11735 , change all of the 
11736 \family sans
11737 InvisibleText
11738 \family default
11739  lines to 
11740 \family sans
11741 VisibleText
11742 \family default
11743  and vice-versa.
11744 \end_layout
11745
11746 \begin_layout Standard
11747 That's it.
11748  You've just made an 
11749 \family sans
11750 Overlay
11751 \family default
11752 .
11753 \end_layout
11754
11755 \begin_layout Standard
11756 There's one problem with the way I've designed the \SpecialChar LyX
11757  
11758 \family sans
11759 slides
11760 \family default
11761  class: you can't make text in the middle of a paragraph invisible, nor
11762  make text in the middle of an invisible paragraph visible again.
11763  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11764  codes.
11765 \begin_inset Foot
11766 status collapsed
11767
11768 \begin_layout Plain Layout
11769 The commands of interest are: 
11770 \end_layout
11771
11772 \begin_layout Itemize
11773
11774 \family typewriter
11775 {
11776 \backslash
11777 invisible \SpecialChar ldots
11778  }
11779 \end_layout
11780
11781 \begin_layout Itemize
11782
11783 \family typewriter
11784 {
11785 \backslash
11786 visible \SpecialChar ldots
11787  }
11788 \end_layout
11789
11790 \begin_layout Plain Layout
11791 \SpecialChar ldots
11792 and need to be marked as \SpecialChar TeX
11793 .
11794  The text whose 
11795 \begin_inset Quotes eld
11796 \end_inset
11797
11798 visibility
11799 \begin_inset Quotes erd
11800 \end_inset
11801
11802  you wish to change goes in between the brackets [and after the 
11803 \family typewriter
11804
11805 \backslash
11806 invisible
11807 \family default
11808  or 
11809 \family typewriter
11810
11811 \backslash
11812 visible
11813 \family default
11814  command].
11815  If you don't know how to mark text as \SpecialChar TeX
11816 , see the appropriate section of
11817  the 
11818 \emph on
11819 User's Guide
11820 \emph default
11821 .
11822 \end_layout
11823
11824 \end_inset
11825
11826
11827 \end_layout
11828
11829 \begin_layout Paragraph
11830 Using 
11831 \family sans
11832 Note
11833 \family default
11834  with 
11835 \family sans
11836 Slide
11837 \family default
11838
11839 \begin_inset CommandInset label
11840 LatexCommand label
11841 name "sec:slideNote"
11842
11843 \end_inset
11844
11845
11846 \end_layout
11847
11848 \begin_layout Standard
11849 Like an 
11850 \family sans
11851 Overlay
11852 \family default
11853 , a 
11854 \family sans
11855 Note
11856 \family default
11857  is associated with a 
11858 \begin_inset Quotes eld
11859 \end_inset
11860
11861 parent
11862 \begin_inset Quotes erd
11863 \end_inset
11864
11865  
11866 \family sans
11867 Slide
11868 \family default
11869 .
11870  Here, too, the \SpecialChar LyX
11871  
11872 \family sans
11873 slides
11874 \family default
11875  class provides visual cues.
11876  The label for a 
11877 \family sans
11878 Note
11879 \family default
11880  is shorter than that of a 
11881 \family sans
11882 Slide
11883 \family default
11884  [yet longer than that of an 
11885 \family sans
11886 Overlay
11887 \family default
11888 ] and, like the label of an 
11889 \family sans
11890 Overlay
11891 \family default
11892  is shockingly magenta.
11893  Additionally, the printed 
11894 \family sans
11895 Note
11896 \family default
11897  has the page number of its 
11898 \begin_inset Quotes eld
11899 \end_inset
11900
11901 parent
11902 \begin_inset Quotes erd
11903 \end_inset
11904
11905  
11906 \family sans
11907 Slide
11908 \family default
11909 , appended by 
11910 \begin_inset Quotes eld
11911 \end_inset
11912
11913
11914 \family typewriter
11915 -
11916 \family default
11917 1
11918 \begin_inset Quotes erd
11919 \end_inset
11920
11921
11922 \begin_inset Quotes eld
11923 \end_inset
11924
11925
11926 \family typewriter
11927 -
11928 \family default
11929 2
11930 \begin_inset Quotes erd
11931 \end_inset
11932
11933
11934 \begin_inset Quotes eld
11935 \end_inset
11936
11937
11938 \family typewriter
11939 -
11940 \family default
11941 3
11942 \begin_inset Quotes erd
11943 \end_inset
11944
11945 , etc.
11946  You can have multiple 
11947 \family sans
11948 Note
11949 \family default
11950 s associated with a single 
11951 \family sans
11952 Slide
11953 \family default
11954 , and, as with 
11955 \family sans
11956 Slide
11957 \family default
11958  and 
11959 \family sans
11960 Overlay
11961 \family default
11962 , you'll probably want to break up long 
11963 \family sans
11964 Note
11965 \family default
11966 s so that they fit on a single sheet of paper.
11967 \end_layout
11968
11969 \begin_layout Standard
11970 The purpose of a 
11971 \family sans
11972 Note
11973 \family default
11974  is obvious: it contains anything additional you might want to say about
11975  a 
11976 \family sans
11977 Slide
11978 \family default
11979 .
11980  It could also be used as a sheet of reminders for a particular 
11981 \family sans
11982 Slide
11983 \family default
11984 .
11985  In the case of the latter, you might want to make use of time markers.
11986  Currently, the \SpecialChar LyX
11987  
11988 \family sans
11989 slides
11990 \family default
11991  class has no 
11992 \begin_inset Quotes eld
11993 \end_inset
11994
11995 native
11996 \begin_inset Quotes erd
11997 \end_inset
11998
11999  support for time markers, a 
12000 \noun on
12001 Sli\SpecialChar TeX
12002
12003 \noun default
12004  feature.
12005  So, you'll have to resort to using the \SpecialChar LaTeX
12006  codes.
12007 \end_layout
12008
12009 \begin_layout Standard
12010 To use time markers, you'll need to specify the extra class option 
12011 \begin_inset Quotes eld
12012 \end_inset
12013
12014
12015 \family typewriter
12016 clock
12017 \family default
12018
12019 \begin_inset Quotes erd
12020 \end_inset
12021
12022  [see section
12023 \begin_inset space ~
12024 \end_inset
12025
12026
12027 \begin_inset CommandInset ref
12028 LatexCommand ref
12029 reference "sec:slidesetup"
12030
12031 \end_inset
12032
12033 ].
12034  This option turns on timing marks, which will appear in the lower-left-hand
12035  corner of every 
12036 \family sans
12037 Note
12038 \family default
12039  you generate.
12040  To set what appears in the time marker, you use the \SpecialChar LaTeX
12041  commands 
12042 \begin_inset Quotes eld
12043 \end_inset
12044
12045
12046 \family typewriter
12047
12048 \backslash
12049 settime{}
12050 \family default
12051
12052 \begin_inset Quotes erd
12053 \end_inset
12054
12055  and 
12056 \begin_inset Quotes eld
12057 \end_inset
12058
12059
12060 \family typewriter
12061
12062 \backslash
12063 addtime{}
12064 \family default
12065
12066 \begin_inset Quotes erd
12067 \end_inset
12068
12069 .
12070  The arguments of both commands are time measured in seconds.
12071  
12072 \begin_inset Quotes eld
12073 \end_inset
12074
12075
12076 \family typewriter
12077
12078 \backslash
12079 settime{}
12080 \family default
12081
12082 \begin_inset Quotes erd
12083 \end_inset
12084
12085  sets the time marker to a given time.
12086  
12087 \begin_inset Quotes eld
12088 \end_inset
12089
12090
12091 \family typewriter
12092
12093 \backslash
12094 addtime{}
12095 \family default
12096
12097 \begin_inset Quotes erd
12098 \end_inset
12099
12100  increments the time marker by the specified amount.
12101  Using time markers and 
12102 \family sans
12103 Note
12104 \family default
12105 s in this fashion, you can remind yourself how much time to spend on a particula
12106
12107 \family sans
12108 Slide
12109 \family default
12110 .
12111 \end_layout
12112
12113 \begin_layout Standard
12114 There's one last feature to describe.
12115  Clearly, you'd like to print out all of your 
12116 \family sans
12117 Slide
12118 \family default
12119 s and 
12120 \family sans
12121 Overlay
12122 \family default
12123 s on transparencies while printing all of your 
12124 \family sans
12125 Note
12126 \family default
12127 s on plain paper.
12128  However, a 
12129 \family sans
12130 Note
12131 \family default
12132  
12133 \emph on
12134 must
12135 \emph default
12136  follow the 
12137 \family sans
12138 Slide
12139 \family default
12140  with which it is associated.
12141  What's a person to do?
12142 \end_layout
12143
12144 \begin_layout Standard
12145 Luckily, there are two \SpecialChar LaTeX
12146  commands that allow you to select what to print
12147  out.
12148  Both must be placed into the preamble of your document.
12149  The command 
12150 \begin_inset Quotes eld
12151 \end_inset
12152
12153
12154 \family typewriter
12155
12156 \backslash
12157 onlyslides{
12158 \backslash
12159 slides}
12160 \family default
12161
12162 \begin_inset Quotes erd
12163 \end_inset
12164
12165  will cause the output to contain only the 
12166 \family sans
12167 Slide
12168 \family default
12169 s and 
12170 \family sans
12171 Overlay
12172 \family default
12173 s.
12174  Correspondingly, the command 
12175 \begin_inset Quotes eld
12176 \end_inset
12177
12178
12179 \family typewriter
12180
12181 \backslash
12182 onlynotes{
12183 \backslash
12184 notes}
12185 \family default
12186
12187 \begin_inset Quotes erd
12188 \end_inset
12189
12190  prevents the output of anything but 
12191 \family sans
12192 Note
12193 \family default
12194 s.
12195  I'd advise placing both commands in the preamble and initially comment
12196  both out.
12197  You can then preview your entire presentation as you write.
12198  When you're done writing, you can then uncomment one of the two to select
12199  what you want to print.
12200  I like to uncomment 
12201 \begin_inset Quotes eld
12202 \end_inset
12203
12204
12205 \family typewriter
12206
12207 \backslash
12208 onlyslides{
12209 \backslash
12210 slides}
12211 \family default
12212
12213 \begin_inset Quotes erd
12214 \end_inset
12215
12216  , print to a file with 
12217 \begin_inset Quotes eld
12218 \end_inset
12219
12220
12221 \family typewriter
12222 -slides
12223 \family default
12224
12225 \begin_inset Quotes erd
12226 \end_inset
12227
12228  in its name, comment it back out, then uncomment 
12229 \begin_inset Quotes eld
12230 \end_inset
12231
12232
12233 \family typewriter
12234
12235 \backslash
12236 onlynotes{
12237 \backslash
12238 notes}
12239 \family default
12240
12241 \begin_inset Quotes erd
12242 \end_inset
12243
12244  and print to a 
12245 \begin_inset Quotes eld
12246 \end_inset
12247
12248
12249 \family typewriter
12250 *-notes.ps
12251 \family default
12252
12253 \begin_inset Quotes erd
12254 \end_inset
12255
12256  file.
12257  I can then send either file to a printer, loading transparencies or plain
12258  paper as appropriate.
12259 \end_layout
12260
12261 \begin_layout Standard
12262 You can also provide other arguments to the 
12263 \begin_inset Quotes eld
12264 \end_inset
12265
12266
12267 \family typewriter
12268
12269 \backslash
12270 onlyslides{}
12271 \family default
12272
12273 \begin_inset Quotes erd
12274 \end_inset
12275
12276  and 
12277 \begin_inset Quotes eld
12278 \end_inset
12279
12280
12281 \family typewriter
12282
12283 \backslash
12284 onlynotes{}
12285 \family default
12286
12287 \begin_inset Quotes erd
12288 \end_inset
12289
12290  commands.
12291  See a good \SpecialChar LaTeX
12292  book for details.
12293 \end_layout
12294
12295 \begin_layout Subsubsection
12296 The 
12297 \family sans
12298 slides
12299 \family default
12300  Class Template File
12301 \end_layout
12302
12303 \begin_layout Standard
12304 I have also provided a template file
12305 \change_deleted 564990737 1671617750
12306
12307 \begin_inset Quotes eld
12308 \end_inset
12309
12310
12311 \family typewriter
12312 slides.lyx
12313 \family default
12314
12315 \begin_inset Quotes erd
12316 \end_inset
12317
12318 ,
12319 \change_unchanged
12320  with the 
12321 \family sans
12322 slides
12323 \family default
12324  class.
12325  To use it, begin your new presentation with 
12326 \family sans
12327 File\SpecialChar menuseparator
12328 New
12329 \begin_inset space ~
12330 \end_inset
12331
12332 from
12333 \begin_inset space ~
12334 \end_inset
12335
12336 Template
12337 \change_inserted 564990737 1671616988
12338 \SpecialChar menuseparator
12339 Presentations\SpecialChar menuseparator
12340 Slides
12341 \change_unchanged
12342
12343 \family default
12344 .
12345  Your new \SpecialChar LyX
12346  presentation file will contain an example 
12347 \family sans
12348 Slide
12349 \family default
12350  – 
12351 \family sans
12352 Overlay
12353 \family default
12354  – 
12355 \family sans
12356 Note
12357 \family default
12358  triplet.
12359  The 
12360 \family sans
12361 Slide
12362 \family default
12363  and 
12364 \family sans
12365 Overlay
12366 \family default
12367  additionally contain an example of the use of 
12368 \family sans
12369 InvisibleText
12370 \family default
12371  and 
12372 \family sans
12373 VisibleText
12374 \family default
12375 .
12376  Lastly, the preamble will contain:
12377 \end_layout
12378
12379 \begin_layout LyX-Code
12380 % Uncomment to print out only slides and overlays
12381 \end_layout
12382
12383 \begin_layout LyX-Code
12384 %
12385 \end_layout
12386
12387 \begin_layout LyX-Code
12388 %
12389 \backslash
12390 onlyslides{
12391 \backslash
12392 slides}
12393 \begin_inset Newline newline
12394 \end_inset
12395
12396  
12397 \end_layout
12398
12399 \begin_layout LyX-Code
12400 % Uncomment to print out only notes
12401 \end_layout
12402
12403 \begin_layout LyX-Code
12404 %
12405 \end_layout
12406
12407 \begin_layout LyX-Code
12408 %
12409 \backslash
12410 onlynotes{
12411 \backslash
12412 notes}
12413 \end_layout
12414
12415 \begin_layout Standard
12416 One final thing: I created this class to support the \SpecialChar LaTeX2e
12417  
12418 \begin_inset Quotes eld
12419 \end_inset
12420
12421
12422 \noun on
12423 Sli\SpecialChar TeX
12424
12425 \noun default
12426  emulation
12427 \begin_inset Quotes erd
12428 \end_inset
12429
12430  class, one of the built-in \SpecialChar LaTeX2e
12431  classes.
12432  Neither I nor the rest of the \SpecialChar LyX
12433  Team endorse or oppose the use of this built-in
12434  slide class.
12435  It's here if you want it or need it.
12436  There exist other \SpecialChar LaTeX2e
12437  classes for creating presentations, such as the 
12438 \family sans
12439 Foils
12440 \family default
12441  class [see section
12442 \begin_inset space ~
12443 \end_inset
12444
12445
12446 \begin_inset CommandInset ref
12447 LatexCommand ref
12448 reference "sec:foiltex"
12449
12450 \end_inset
12451
12452 ] or the 
12453 \begin_inset Quotes eld
12454 \end_inset
12455
12456
12457 \family typewriter
12458 seminar
12459 \family default
12460
12461 \begin_inset Quotes erd
12462 \end_inset
12463
12464  package [present on some \SpecialChar TeX
12465  distributions].
12466  The latter is not yet supported under \SpecialChar LyX
12467 .
12468 \begin_inset Foot
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 Perhaps you can take on the task\SpecialChar ldots
12473
12474 \end_layout
12475
12476 \end_inset
12477
12478  I know nothing about these other classes.
12479  Try them out to see what sort of alternative they provide.
12480 \end_layout
12481
12482 \begin_layout Section
12483
12484 \change_inserted 564990737 1670439661
12485 Reports
12486 \end_layout
12487
12488 \begin_layout Subsection
12489
12490 \change_inserted 564990737 1670439661
12491 report
12492 \end_layout
12493
12494 \begin_layout Standard
12495
12496 \change_inserted 564990737 1670439661
12497 The document class 
12498 \family sans
12499 report
12500 \family default
12501  provides the 
12502 \family sans
12503 report.cls
12504 \family default
12505  document class for preparing reports.
12506  Like the 
12507 \family sans
12508 book
12509 \family default
12510  document class, this provides parts, chapters and sections but does not
12511  provide the paragraph styles needed for a book; like the 
12512 \family sans
12513 article
12514 \family default
12515  document class, it provides the abstract paragraph style.
12516  In two-sided mode, it does not start a new chapter on the right hand page.
12517 \end_layout
12518
12519 \begin_layout Standard
12520
12521 \change_inserted 564990737 1670439674
12522 The remaining 
12523 \family sans
12524 report
12525 \family default
12526  document classes are described in the Collections (section
12527 \begin_inset space ~
12528 \end_inset
12529
12530
12531 \begin_inset CommandInset ref
12532 LatexCommand ref
12533 reference "sec:Collections"
12534
12535 \end_inset
12536
12537 ).
12538 \end_layout
12539
12540 \begin_layout Section
12541
12542 \change_inserted 564990737 1670439674
12543 Scripts (drama)
12544 \end_layout
12545
12546 \begin_layout Subsection
12547 Broadway
12548 \end_layout
12549
12550 \begin_layout Standard
12551 by 
12552 \shape smallcaps
12553 Garst Reese
12554 \end_layout
12555
12556 \begin_layout Subsubsection
12557 Introduction
12558 \end_layout
12559
12560 \begin_layout Standard
12561 Broadway is for writing plays.
12562  The format is more decorative than Hollywood, and much less standardized.
12563  This format should be suitable for workshops.
12564 \end_layout
12565
12566 \begin_layout Subsubsection
12567 Special problems
12568 \end_layout
12569
12570 \begin_layout Standard
12571 The same as in Hollywood.
12572 \end_layout
12573
12574 \begin_layout Subsubsection
12575 Special features
12576 \end_layout
12577
12578 \begin_layout Standard
12579 Insert the 
12580 \family sans
12581 Speaker
12582 \family default
12583  names as labels then cross-reference the label to insert the name.
12584  The cross-reference dialog will show the current cast of characters.
12585 \end_layout
12586
12587 \begin_layout Subsubsection
12588 Paper size and Margins
12589 \end_layout
12590
12591 \begin_layout Standard
12592 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12593 \end_layout
12594
12595 \begin_layout Subsubsection
12596 Environments
12597 \end_layout
12598
12599 \begin_layout Standard
12600 The following environments are available.
12601  You can use broadway.bind to get the bind keys shown at the right.
12602 \end_layout
12603
12604 \begin_layout Itemize
12605
12606 \family sans
12607 Standard
12608 \begin_inset Newline newline
12609 \end_inset
12610
12611
12612 \family default
12613 You should not have to use this, but it is here for anything that does not
12614  fit otherwise.
12615 \end_layout
12616
12617 \begin_layout Itemize
12618
12619 \family sans
12620 Narrative
12621 \begin_inset space \hfill{}
12622 \end_inset
12623
12624 M-z n
12625 \begin_inset Newline newline
12626 \end_inset
12627
12628
12629 \family default
12630 Used to describe stage setting and the action.
12631  First use of speaker names in all CAPs.
12632 \end_layout
12633
12634 \begin_layout Itemize
12635
12636 \family sans
12637 ACT
12638 \begin_inset space \hfill{}
12639 \end_inset
12640
12641 M-z a
12642 \begin_inset Newline newline
12643 \end_inset
12644
12645
12646 \family default
12647 Automatically numbered.
12648  On screen it will be arabic, but will print as Roman.
12649 \end_layout
12650
12651 \begin_layout Itemize
12652
12653 \family sans
12654 ACT*
12655 \begin_inset space \hfill{}
12656 \end_inset
12657
12658 M-z S at
12659 \begin_inset Newline newline
12660 \end_inset
12661
12662
12663 \family default
12664 Subtitle for 
12665 \family sans
12666 ACT.
12667
12668 \family default
12669  It is just centered text.
12670 \end_layout
12671
12672 \begin_layout Itemize
12673
12674 \family sans
12675 SCENE
12676 \begin_inset space \hfill{}
12677 \end_inset
12678
12679 M-z S-S
12680 \begin_inset Newline newline
12681 \end_inset
12682
12683
12684 \family default
12685 Not automatically numbered.
12686  You supply the number.
12687  This is because I couldn't figure out how.
12688 \end_layout
12689
12690 \begin_layout Itemize
12691
12692 \family sans
12693 AT_RISE:
12694 \begin_inset space \hfill{}
12695 \end_inset
12696
12697 M-z S-R
12698 \begin_inset Newline newline
12699 \end_inset
12700
12701
12702 \family default
12703 A special case of Narrative to describe the setting and action as the curtain
12704  rises.
12705 \end_layout
12706
12707 \begin_layout Itemize
12708
12709 \family sans
12710 Speaker
12711 \begin_inset space \hfill{}
12712 \end_inset
12713
12714 M-z s
12715 \begin_inset Newline newline
12716 \end_inset
12717
12718
12719 \family default
12720 The speaker's (actor's) title, centered in all CAPS.
12721 \end_layout
12722
12723 \begin_layout Itemize
12724
12725 \family sans
12726 Parenthetical
12727 \begin_inset space \hfill{}
12728 \end_inset
12729
12730 M-z p
12731 \begin_inset Newline newline
12732 \end_inset
12733
12734
12735 \family default
12736 Instructions to the speaker.
12737  The parentheses are automatically inserted.
12738  The ( will appear on screen, but both will be in the printed play.
12739  This environment is only used within 
12740 \family sans
12741 Dialogue
12742 \family default
12743 .
12744 \end_layout
12745
12746 \begin_layout Itemize
12747
12748 \family sans
12749 Dialogue
12750 \begin_inset space \hfill{}
12751 \end_inset
12752
12753 M-z d
12754 \begin_inset Newline newline
12755 \end_inset
12756
12757
12758 \family default
12759 What the Speaker says.
12760 \end_layout
12761
12762 \begin_layout Itemize
12763
12764 \family sans
12765 CURTAIN
12766 \begin_inset space \hfill{}
12767 \end_inset
12768
12769 M-z S-C
12770 \begin_inset Newline newline
12771 \end_inset
12772
12773
12774 \family default
12775 The curtain comes down.
12776 \end_layout
12777
12778 \begin_layout Itemize
12779
12780 \family sans
12781 Title
12782 \begin_inset space \hfill{}
12783 \end_inset
12784
12785 M-z S-T
12786 \end_layout
12787
12788 \begin_layout Itemize
12789
12790 \family sans
12791 Author
12792 \begin_inset space \hfill{}
12793 \end_inset
12794
12795 M-z S-A
12796 \end_layout
12797
12798 \begin_layout Itemize
12799
12800 \family sans
12801 Right_Address
12802 \begin_inset space \hfill{}
12803 \end_inset
12804
12805 M-z r
12806 \end_layout
12807
12808 \begin_layout Standard
12809 Hello there.
12810 \end_layout
12811
12812 \begin_layout Subsection
12813 Hollywood (Hollywood spec scripts)
12814 \end_layout
12815
12816 \begin_layout Standard
12817 by 
12818 \shape smallcaps
12819 Garst Reese
12820 \end_layout
12821
12822 \begin_layout Subsubsection
12823 Introduction
12824 \end_layout
12825
12826 \begin_layout Standard
12827 Getting the format of a Hollywood script right is a 
12828 \begin_inset Quotes eld
12829 \end_inset
12830
12831 rite of passage.
12832 \begin_inset Quotes erd
12833 \end_inset
12834
12835  It is designed to make the readers focus on content and to be easy and
12836  familiar for the actors to read.
12837  Each page of a script should be one minute of film.
12838  Nothing goes in a script that you cannot see or hear on screen.
12839  The courier 12 pt font should be used throughout.
12840  No italics.
12841 \end_layout
12842
12843 \begin_layout Subsubsection
12844 Special problems
12845 \end_layout
12846
12847 \begin_layout Standard
12848 Speakers' lines should NEVER break in mid-sentence.
12849  If a speaker's lines continue over a page break, repeat the 
12850 \family sans
12851 Speaker
12852 \family default
12853  title followed by (Cont'd).
12854 \end_layout
12855
12856 \begin_layout Subsubsection
12857 Special features
12858 \end_layout
12859
12860 \begin_layout Standard
12861 Insert the 
12862 \family sans
12863 Speaker
12864 \family default
12865  names as labels then cross-reference the label to insert the name.
12866  The cross-reference dialog will show the current cast of characters.
12867  You can use this to insert the speaker name in narratives also.
12868 \end_layout
12869
12870 \begin_layout Subsubsection
12871 Paper size and Margins
12872 \end_layout
12873
12874 \begin_layout Standard
12875 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12876 \end_layout
12877
12878 \begin_layout Subsubsection
12879 Environments
12880 \end_layout
12881
12882 \begin_layout Standard
12883 The following environments are available.
12884  You can use hollywood.bind to get the bind keys shown at the right.
12885 \end_layout
12886
12887 \begin_layout Itemize
12888
12889 \family sans
12890 Standard
12891 \begin_inset Newline newline
12892 \end_inset
12893
12894
12895 \family default
12896 Used where nothing else works.
12897  Try to avoid it.
12898 \end_layout
12899
12900 \begin_layout Itemize
12901
12902 \family sans
12903 FADE_IN
12904 \family default
12905 :
12906 \begin_inset space \hfill{}
12907 \end_inset
12908
12909
12910 \family sans
12911 M-z S-I
12912 \family default
12913
12914 \begin_inset Newline newline
12915 \end_inset
12916
12917 Usually followed by something like 
12918 \begin_inset Quotes eld
12919 \end_inset
12920
12921 on Sally waking up.
12922 \begin_inset Quotes erd
12923 \end_inset
12924
12925
12926 \end_layout
12927
12928 \begin_layout Itemize
12929
12930 \family sans
12931 INT:
12932 \begin_inset space \hfill{}
12933 \end_inset
12934
12935 M-z i
12936 \begin_inset Newline newline
12937 \end_inset
12938
12939
12940 \family default
12941 Introduces a new INTERIOR camera set-up.
12942  Always followed by DAY or NIGHT, or something similar to define the lighting
12943  required.
12944  Everthing on this line in CAPS.
12945 \end_layout
12946
12947 \begin_layout Itemize
12948
12949 \family sans
12950 EXT:
12951 \begin_inset space \hfill{}
12952 \end_inset
12953
12954 M-z e
12955 \begin_inset Newline newline
12956 \end_inset
12957
12958
12959 \family default
12960 Introduces a new EXTERIOR camera set-up.
12961  Everthing on this line in CAPS.
12962 \end_layout
12963
12964 \begin_layout Itemize
12965
12966 \family sans
12967 Speaker
12968 \begin_inset space \hfill{}
12969 \end_inset
12970
12971 M-z s
12972 \begin_inset Newline newline
12973 \end_inset
12974
12975
12976 \family default
12977 The character speaking.
12978 \end_layout
12979
12980 \begin_layout Itemize
12981
12982 \family sans
12983 Parenthetical
12984 \begin_inset space \hfill{}
12985 \end_inset
12986
12987 M-z p
12988 \begin_inset Newline newline
12989 \end_inset
12990
12991
12992 \family default
12993 Instructions to the speaker.
12994  The () are automatically inserted.
12995 \end_layout
12996
12997 \begin_layout Itemize
12998
12999 \family sans
13000 Dialogue
13001 \begin_inset space \hfill{}
13002 \end_inset
13003
13004 M-z d
13005 \begin_inset Newline newline
13006 \end_inset
13007
13008
13009 \family default
13010 What the 
13011 \family sans
13012 Speaker
13013 \family default
13014  says.
13015 \end_layout
13016
13017 \begin_layout Itemize
13018
13019 \family sans
13020 Transition
13021 \begin_inset space \hfill{}
13022 \end_inset
13023
13024 M-z t
13025 \begin_inset Newline newline
13026 \end_inset
13027
13028
13029 \family default
13030 Camera movement instruction.
13031  e.
13032 \begin_inset space \thinspace{}
13033 \end_inset
13034
13035 g.
13036 \begin_inset space \space{}
13037 \end_inset
13038
13039 CUT TO:
13040 \end_layout
13041
13042 \begin_layout Itemize
13043
13044 \family sans
13045 FADE OUT:
13046 \begin_inset space \hfill{}
13047 \end_inset
13048
13049 M-z S-I
13050 \end_layout
13051
13052 \begin_layout Itemize
13053
13054 \family sans
13055 Author
13056 \begin_inset space \hfill{}
13057 \end_inset
13058
13059 M-z S-A
13060 \end_layout
13061
13062 \begin_layout Itemize
13063
13064 \family sans
13065 Title
13066 \begin_inset space \hfill{}
13067 \end_inset
13068
13069 M-z S-T
13070 \end_layout
13071
13072 \begin_layout Itemize
13073
13074 \family sans
13075 Right_Address
13076 \begin_inset space \hfill{}
13077 \end_inset
13078
13079 M-z r
13080 \end_layout
13081
13082 \begin_layout Subsubsection
13083 Script jargon
13084 \end_layout
13085
13086 \begin_layout Itemize
13087 (O.S) — off screen
13088 \end_layout
13089
13090 \begin_layout Itemize
13091 (V.0) — voice over
13092 \end_layout
13093
13094 \begin_layout Itemize
13095 b.
13096 \begin_inset space \thinspace{}
13097 \end_inset
13098
13099 g.
13100  — background
13101 \end_layout
13102
13103 \begin_layout Itemize
13104 C.U.
13105  — close-up
13106 \end_layout
13107
13108 \begin_layout Itemize
13109 PAN — camera movement
13110 \end_layout
13111
13112 \begin_layout Itemize
13113 INSERT — cut to close-up of
13114 \end_layout
13115
13116 \begin_layout Chapter
13117
13118 \change_inserted 564990737 1671185876
13119 Modules
13120 \end_layout
13121
13122 \begin_layout Section
13123
13124 \change_inserted 564990737 1671716212
13125
13126 \lang american
13127 Academic Field Specifics
13128 \end_layout
13129
13130 \begin_layout Subsection
13131
13132 \change_inserted 564990737 1671716212
13133
13134 \lang american
13135 Chemistry: Hazard and Precautionary Statements 
13136 \end_layout
13137
13138 \begin_layout Standard
13139
13140 \change_inserted 564990737 1671716212
13141
13142 \lang american
13143 This module provides two insets to typeset numbers and phrases of chemical
13144  hazard and precautionary statements.
13145  For a description see 
13146 \family sans
13147 \lang british
13148 File\SpecialChar menuseparator
13149 Open Example\SpecialChar menuseparator
13150 Modules\SpecialChar menuseparator
13151 Hazard and Precautionary Statements
13152 \family default
13153  and 
13154 \family sans
13155 Help\SpecialChar menuseparator
13156 Specific Manuals\SpecialChar menuseparator
13157 Hazard and Precautionary Statements
13158 \family default
13159 \lang american
13160 .
13161 \end_layout
13162
13163 \begin_layout Subsection
13164
13165 \change_inserted 564990737 1671716212
13166
13167 \series bold
13168 \lang american
13169 Chemistry: Risk and Safety Statements
13170 \end_layout
13171
13172 \begin_layout Standard
13173
13174 \change_inserted 564990737 1671716212
13175
13176 \lang american
13177 This module provides two insets, 
13178 \family sans
13179 R-S number
13180 \family default
13181  and 
13182 \family sans
13183 R-S phrase
13184 \family default
13185 , accessible via the menu 
13186 \family sans
13187 \bar under
13188 I
13189 \bar default
13190 nsert\SpecialChar menuseparator
13191 Custom
13192 \begin_inset space ~
13193 \end_inset
13194
13195 Insets
13196 \family default
13197  and an environment to typeset numbers and phrases of chemical risk and
13198  safety statements.
13199 \end_layout
13200
13201 \begin_layout Subsection
13202
13203 \change_inserted 564990737 1671716212
13204
13205 \lang american
13206 Linguistics
13207 \end_layout
13208
13209 \begin_layout Standard
13210
13211 \change_inserted 564990737 1671716212
13212
13213 \lang american
13214 This module uses the 
13215 \family sans
13216 covington.sty
13217 \family default
13218  package to add environments useful for linguistics (numbered examples,
13219  glosses, semantic markup, tableau floats).
13220  You can obtain information about this module in 
13221 \family sans
13222 \bar under
13223 H
13224 \bar default
13225 elp\SpecialChar menuseparator
13226 S
13227 \bar under
13228 p
13229 \bar default
13230 ecific
13231 \begin_inset space ~
13232 \end_inset
13233
13234 Manuals\SpecialChar menuseparator
13235
13236 \bar under
13237 L
13238 \bar default
13239 inguistics
13240 \family default
13241  and 
13242 \family sans
13243 \lang british
13244 File\SpecialChar menuseparator
13245 Open Example\SpecialChar menuseparator
13246
13247 \lang american
13248 Modules\SpecialChar menuseparator
13249 Linguistics
13250 \family default
13251 .
13252 \end_layout
13253
13254 \begin_layout Section
13255
13256 \change_inserted 564990737 1671788778
13257
13258 \lang american
13259 Accessibility
13260 \end_layout
13261
13262 \begin_layout Subsection
13263
13264 \change_inserted 564990737 1671788778
13265
13266 \lang american
13267 Braille
13268 \end_layout
13269
13270 \begin_layout Standard
13271
13272 \change_inserted 564990737 1671788778
13273
13274 \lang american
13275 This module supports the Braille writing system.
13276  It requires the \SpecialChar LaTeX
13277  package 
13278 \family typewriter
13279 braille.sty
13280 \family default
13281 .
13282  This and its documentation can be obtained from 
13283 \begin_inset CommandInset href
13284 LatexCommand href
13285 name "CTAN"
13286 target "https://www.ctan.org/pkg/braille"
13287 literal "false"
13288
13289 \end_inset
13290
13291 .
13292  You do not have to reconfigure your system after installing it.
13293  See 
13294 \family sans
13295 \bar under
13296 H
13297 \bar default
13298 elp\SpecialChar menuseparator
13299 S
13300 \bar under
13301 p
13302 \bar default
13303 ecific
13304 \begin_inset space ~
13305 \end_inset
13306
13307 Manuals\SpecialChar menuseparator
13308
13309 \bar under
13310 B
13311 \bar default
13312 raille
13313 \family default
13314  and 
13315 \family sans
13316 File\SpecialChar menuseparator
13317 Open Example\SpecialChar menuseparator
13318 Modules\SpecialChar menuseparator
13319 Braille
13320 \family default
13321 .
13322 \end_layout
13323
13324 \begin_layout Section
13325
13326 \change_inserted 564990737 1671788778
13327
13328 \lang american
13329 Annotation & Revision
13330 \end_layout
13331
13332 \begin_layout Subsection
13333
13334 \change_inserted 564990737 1671788778
13335
13336 \lang american
13337 FiXme Notes
13338 \end_layout
13339
13340 \begin_layout Standard
13341
13342 \change_inserted 564990737 1671788778
13343
13344 \lang american
13345 This module provides “FiXme” (marginal) annotations for document revision
13346  purposes.
13347  A list of annotations can be produced by using the “List of FIXMEs” paragraph
13348  style.
13349  The annotations are customizable via the LaTeX preamble.
13350  See the FiXme documentation which can be obtained from 
13351 \begin_inset CommandInset href
13352 LatexCommand href
13353 name "CTAN"
13354 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13355 literal "false"
13356
13357 \end_inset
13358
13359 .
13360  
13361 \end_layout
13362
13363 \begin_layout Paragraph
13364
13365 \change_inserted 564990737 1671788778
13366
13367 \lang american
13368 Note:
13369 \end_layout
13370
13371 \begin_layout Standard
13372
13373 \change_inserted 564990737 1671788778
13374
13375 \lang american
13376 by default, the notes are only displayed in “draft” mode (if the option
13377  “draft” has been inserted in 
13378 \family sans
13379 Document\SpecialChar menuseparator
13380 Settings\SpecialChar menuseparator
13381 Document Class\SpecialChar menuseparator
13382 Class Options\SpecialChar menuseparator
13383 Custom
13384 \family default
13385 ).
13386  To display them always, insert 
13387 \family typewriter
13388
13389 \backslash
13390 fxsetup{draft}
13391 \family default
13392  in 
13393 \family sans
13394 Document\SpecialChar menuseparator
13395 Settings\SpecialChar menuseparator
13396 \SpecialChar LaTeX
13397  Preamble
13398 \family default
13399 .
13400  
13401 \end_layout
13402
13403 \begin_layout Subsection
13404
13405 \change_inserted 564990737 1671788778
13406
13407 \lang american
13408 PDF Comments
13409 \end_layout
13410
13411 \begin_layout Standard
13412
13413 \change_inserted 564990737 1671788778
13414
13415 \lang american
13416 This module provides various kinds of annotations for PDF output.
13417  See 
13418 \family sans
13419 Help\SpecialChar menuseparator
13420 Specific Manuals\SpecialChar menuseparator
13421 PDF comments and File\SpecialChar menuseparator
13422 Open Example\SpecialChar menuseparator
13423 Modules\SpecialChar menuseparator
13424 PDF Comments
13425 \family default
13426 .
13427 \end_layout
13428
13429 \begin_layout Subsection
13430
13431 \change_inserted 564990737 1671788778
13432
13433 \series bold
13434 \lang american
13435 PDF Form
13436 \end_layout
13437
13438 \begin_layout Standard
13439
13440 \change_inserted 564990737 1671788778
13441
13442 \lang american
13443 This module provides fields and buttons for PDF forms.
13444  See the 
13445 \begin_inset CommandInset href
13446 LatexCommand href
13447 name "hyperref documentation"
13448 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13449 literal "false"
13450
13451 \end_inset
13452
13453
13454 \family sans
13455 Help\SpecialChar menuseparator
13456 Specific Manuals\SpecialChar menuseparator
13457 PDF forms and File\SpecialChar menuseparator
13458 Open Example\SpecialChar menuseparator
13459 Modules\SpecialChar menuseparator
13460 PDF Form
13461 \family default
13462 .
13463 \end_layout
13464
13465 \begin_layout Subsection
13466
13467 \change_inserted 564990737 1671788778
13468
13469 \series bold
13470 \lang american
13471 Ruby (Furigana)
13472 \end_layout
13473
13474 \begin_layout Standard
13475
13476 \change_inserted 564990737 1671788778
13477
13478 \lang american
13479 This module defines an inset to typeset reading aids (ruby, furigana) to
13480  Chinese characters.
13481  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on
13482  the TeX engine) or a fallback definition.
13483  
13484 \end_layout
13485
13486 \begin_layout Subsection
13487
13488 \change_inserted 564990737 1671788778
13489
13490 \series bold
13491 \lang american
13492 TODO notes
13493 \end_layout
13494
13495 \begin_layout Standard
13496
13497 \change_inserted 564990737 1671788778
13498
13499 \lang american
13500 This module provides custom insets to insert TODO items in your document.
13501  In order to generate a “List of TODOs,” the module provides a paragraph
13502  style.
13503  Inserting “final” in 
13504 \family sans
13505 Document\SpecialChar menuseparator
13506 Settings\SpecialChar menuseparator
13507 Document Class\SpecialChar menuseparator
13508 Class Options\SpecialChar menuseparator
13509 Custom
13510 \family default
13511 ) suppresses the output of TODO notes.
13512  See the 
13513 \begin_inset CommandInset href
13514 LatexCommand href
13515 name "todonotes documentation"
13516 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13517 literal "false"
13518
13519 \end_inset
13520
13521 .
13522 \end_layout
13523
13524 \begin_layout Section
13525 Multiple Text Columns
13526 \end_layout
13527
13528 \begin_layout Standard
13529 This feature is independent of the option 
13530 \family sans
13531 Two-column document
13532 \family default
13533  in the document settings under 
13534 \family sans
13535 Text Layout
13536 \family default
13537 .
13538  If you want to have 2
13539 \begin_inset space ~
13540 \end_inset
13541
13542 columns for the whole document, it is recommended to use the 
13543 \family sans
13544 Two-column document
13545 \family default
13546  option.
13547  For all other cases use this feature.
13548 \end_layout
13549
13550 \begin_layout Standard
13551 To use multiple text columns in your document, you have to load the module
13552  
13553 \family sans
13554 Multiple Columns
13555 \family default
13556  (menu 
13557 \family sans
13558 Document\SpecialChar menuseparator
13559 Settings\SpecialChar menuseparator
13560 Modules
13561 \family default
13562 ) and must have the \SpecialChar LaTeX
13563 -package 
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 multicol
13569 \end_layout
13570
13571 \end_inset
13572
13573  installed.
13574 \end_layout
13575
13576 \begin_layout Standard
13577 Footnotes within multiple columns will be placed at the bottom of the page
13578  and not under each column.
13579  Within the different columns you can use everything, with the limitation
13580  that for floats you need to use the float option 
13581 \family sans
13582 Span columns
13583 \family default
13584 .
13585 \end_layout
13586
13587 \begin_layout Subsection
13588 Basics
13589 \end_layout
13590
13591 \begin_layout Standard
13592 If you want to have 2
13593 \begin_inset space ~
13594 \end_inset
13595
13596 columns in your text, insert a multicolumn inset via the menu 
13597 \family sans
13598 Insert\SpecialChar menuseparator
13599 Custom
13600 \begin_inset space ~
13601 \end_inset
13602
13603 Insets\SpecialChar menuseparator
13604 Multiple
13605 \begin_inset space ~
13606 \end_inset
13607
13608 Columns
13609 \family default
13610  where the columns should start.
13611  Write all text that should be printed in 2
13612 \begin_inset space ~
13613 \end_inset
13614
13615 columns into this inset.
13616 \end_layout
13617
13618 \begin_layout Standard
13619 Here is an example:
13620 \end_layout
13621
13622 \begin_layout Standard
13623 \noindent
13624 \begin_inset Flex Multiple Columns
13625 status open
13626
13627 \begin_layout Plain Layout
13628 \noindent
13629
13630 \series bold
13631 \size small
13632 The Adventure of the Empty House
13633 \series default
13634
13635 \begin_inset Newline newline
13636 \end_inset
13637
13638 by Sir Arthur Conan Doyle
13639 \end_layout
13640
13641 \begin_layout Plain Layout
13642
13643 \size small
13644 It was in the spring of the year 1894 that all London was interested, and
13645  the fashionable world dismayed, by the murder of the Honourable Ronald
13646  Adair under most unusual and inexplicable circumstances.
13647  The public has already learned those particulars of the crime which came
13648  out in the police investigation, but a good deal was suppressed upon that
13649  occasion, since the case for the prosecution was so overwhelmingly strong
13650  that it was not necessary to bring forward all the facts.
13651  Only now, at the end of nearly ten years, am I allowed to supply those
13652  missing links which make up the whole of that remarkable chain.
13653  The crime was of interest in itself, but that interest was as nothing to
13654  me compared to the inconceivable sequel, which afforded me the greatest
13655  shock and surprise of any event in my adventurous life.
13656  Even now, after this long interval, I find myself thrilling as I think
13657  of it, and feeling once more that sudden flood of joy, amazement, and increduli
13658 ty which utterly submerged my mind.
13659  Let me say to that public, which has shown some interest in those glimpses
13660  which I have occasionally given them of the thoughts and actions of a very
13661  remarkable man, that they are not to blame me if I have not shared my knowledge
13662  with them, for I should have considered it my first duty to do so, had
13663  I not been barred by a positive prohibition from his own lips, which was
13664  only withdrawn upon the third of last month.
13665 \end_layout
13666
13667 \end_inset
13668
13669
13670 \end_layout
13671
13672 \begin_layout Standard
13673 To get 3 or more columns, set the cursor into the multicolumn inset and
13674  use the menu 
13675 \family sans
13676 Insert\SpecialChar menuseparator
13677 Number
13678 \begin_inset space ~
13679 \end_inset
13680
13681 of
13682 \begin_inset space ~
13683 \end_inset
13684
13685 Columns
13686 \family default
13687 .
13688  The number of the desired columns is written into that inset (for 3
13689 \begin_inset space ~
13690 \end_inset
13691
13692 columns write 
13693 \begin_inset Quotes eld
13694 \end_inset
13695
13696 3
13697 \begin_inset Quotes erd
13698 \end_inset
13699
13700 ).
13701 \begin_inset Newline newline
13702 \end_inset
13703
13704 Here is an example with 3
13705 \begin_inset space ~
13706 \end_inset
13707
13708 columns:
13709 \end_layout
13710
13711 \begin_layout Standard
13712 \begin_inset Flex Multiple Columns
13713 status open
13714
13715 \begin_layout Plain Layout
13716
13717 \size footnotesize
13718 \begin_inset Argument 1
13719 status open
13720
13721 \begin_layout Plain Layout
13722
13723 3
13724 \end_layout
13725
13726 \end_inset
13727
13728 It can be imagined that my close intimacy with Sherlock Holmes had interested
13729  me deeply in crime, and that after his disappearance I never failed to
13730  read with care the various problems which came before the public.
13731  And I even attempted, more than once, for my own private satisfaction,
13732  to employ his methods in their solution, though with indifferent success.
13733  There was none, however, which appealed to me like this tragedy of Ronald
13734  Adair.
13735  As I read the evidence at the inquest, which led up to a verdict of willful
13736  murder against some person or persons unknown, I realized more clearly
13737  than I had ever done the loss which the community had sustained by the
13738  death of Sherlock Holmes.
13739  There were points about this strange business which would, I was sure,
13740  have specially appealed to him, and the efforts of the police would have
13741  been supplemented, or more probably anticipated, by the trained observation
13742  and the alert mind of the first criminal agent in Europe.
13743  All day, as I drove upon my round, I turned over the case in my mind and
13744  found no explanation which appeared to me to be adequate.
13745  At the risk of telling a twice-told tale, I will recapitulate the facts
13746  as they were known to the public at the conclusion of the inquest.
13747 \end_layout
13748
13749 \end_inset
13750
13751
13752 \end_layout
13753
13754 \begin_layout Standard
13755 You can have up to 10
13756 \begin_inset space ~
13757 \end_inset
13758
13759 columns if you want to, but that might not be very pleasant for the readers
13760  of your document.
13761 \end_layout
13762
13763 \begin_layout Standard
13764 \begin_inset Newpage newpage
13765 \end_inset
13766
13767
13768 \end_layout
13769
13770 \begin_layout Subsection
13771 Columns inside Columns
13772 \end_layout
13773
13774 \begin_layout Standard
13775 You can also have columns inside columns:
13776 \end_layout
13777
13778 \begin_layout Standard
13779 \begin_inset Flex Multiple Columns
13780 status open
13781
13782 \begin_layout Plain Layout
13783
13784 \size footnotesize
13785 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
13786  at that time governor of one of the Australian colonies.
13787  Adair's mother had returned from Australia to undergo the operation for
13788  cataract, and she, her son Ronald, and her daughter Hilda were living together
13789  at 427 Park Lane.
13790 \end_layout
13791
13792 \begin_layout Plain Layout
13793 \begin_inset Flex Multiple Columns
13794 status open
13795
13796 \begin_layout Plain Layout
13797
13798 \size footnotesize
13799 The youth moved in the best society
13800 \begin_inset space ~
13801 \end_inset
13802
13803 – had, so far as was known, no enemies and no particular vices.
13804  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
13805  had been broken off by mutual consent some months before, and there was
13806  no sign that it had left any very profound feeling behind it.
13807  For the rest {sic} the man's life moved in a narrow and conventional circle,
13808  for his habits were quiet and his nature unemotional.
13809  Yet it was upon this easy-going young aristocrat that death came, in most
13810  strange and unexpected form, between the hours of ten and eleven-twenty
13811  on the night of March 30, 1894.
13812 \end_layout
13813
13814 \end_inset
13815
13816
13817 \end_layout
13818
13819 \begin_layout Plain Layout
13820
13821 \size footnotesize
13822 Ronald Adair was fond of cards
13823 \begin_inset space ~
13824 \end_inset
13825
13826 – playing continually, but never for such stakes as would hurt him.
13827  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
13828  It was shown that, after dinner on the day of his death, he had played
13829  a rubber of whist at the latter club.
13830  He had also played there in the afternoon.
13831
13832 \size default
13833  
13834 \size footnotesize
13835 The evidence of those who had played with him
13836 \begin_inset space ~
13837 \end_inset
13838
13839 – Mr.
13840  Murray, Sir John Hardy, and Colonel Moran
13841 \begin_inset space ~
13842 \end_inset
13843
13844 – showed that the game was whist, and that there was a fairly equal fall
13845  of the cards.
13846  Adair might have lost five pounds, but not more.
13847  His fortune was a considerable one, and such a loss could not in any way
13848  affect him.
13849  He had played nearly every day at one club or other, but he was a cautious
13850  player, and usually rose a winner.
13851  It came out in evidence that, in partnership with Colonel Moran, he had
13852  actually won as much as four hundred and twenty pounds in a sitting, some
13853  weeks before, from Godfrey Milner and Lord Balmoral.
13854  So much for his recent history as it came out at the inquest.
13855 \end_layout
13856
13857 \end_inset
13858
13859
13860 \end_layout
13861
13862 \begin_layout Subsection
13863 Advanced Examples
13864 \end_layout
13865
13866 \begin_layout Standard
13867 The examples in this section show some more special features of multiple
13868  columns.
13869 \end_layout
13870
13871 \begin_layout Standard
13872 For more features of multiple columns, have a look at the 
13873 \begin_inset CommandInset href
13874 LatexCommand href
13875 name "documentation"
13876 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
13877 literal "false"
13878
13879 \end_inset
13880
13881  of the \SpecialChar LaTeX
13882 -package 
13883 \begin_inset Flex Code
13884 status collapsed
13885
13886 \begin_layout Plain Layout
13887 multicol
13888 \end_layout
13889
13890 \end_inset
13891
13892 .
13893 \end_layout
13894
13895 \begin_layout Subsubsection
13896 Preface
13897 \end_layout
13898
13899 \begin_layout Standard
13900 To add a preface text for multiple columns, set the cursor into the multicolumn
13901  inset and use the menu 
13902 \family sans
13903 Insert\SpecialChar menuseparator
13904 Preface
13905 \family default
13906 .
13907  Write your preface text into that inset.
13908 \begin_inset Newline newline
13909 \end_inset
13910
13911 This is an example with some preface text:
13912 \end_layout
13913
13914 \begin_layout Standard
13915 \begin_inset VSpace bigskip
13916 \end_inset
13917
13918
13919 \end_layout
13920
13921 \begin_layout Standard
13922 \begin_inset Flex Multiple Columns
13923 status open
13924
13925 \begin_layout Plain Layout
13926 \begin_inset Argument 2
13927 status open
13928
13929 \begin_layout Plain Layout
13930 And the story continues and continues and continues and continues\SpecialChar ldots
13931
13932 \end_layout
13933
13934 \end_inset
13935
13936
13937 \size small
13938 On the evening of the crime, he returned from the club exactly at ten.
13939  His mother and sister were out spending the evening with a relation.
13940  The servant deposed that she heard him enter the front room on the second
13941  floor, generally used as his sitting-room.
13942  She had lit a fire there, and as it smoked she had opened the window.
13943  No sound was heard from the room until eleven-twenty, the hour of the return
13944  of Lady Maynooth and her daughter.
13945  Desiring to say good-night, she attempted to enter her son's room.
13946  The door was locked on the inside, and no answer could be got to their
13947  cries and knocking.
13948  Help was obtained, and the door forced.
13949  The unfortunate young man was found lying near the table.
13950  His head had been horribly mutilated by an expanding revolver bullet, but
13951  no weapon of any sort was to be found in the room.
13952 \end_layout
13953
13954 \end_inset
13955
13956
13957 \end_layout
13958
13959 \begin_layout Standard
13960 You can also use a section heading as the preface if you use a section command
13961  as \SpecialChar TeX
13962  Code.
13963  For example the command
13964 \end_layout
13965
13966 \begin_layout LyX-Code
13967
13968 \backslash
13969 subsection{subsection title}
13970 \end_layout
13971
13972 \begin_layout Standard
13973 creates a subsection.
13974  In this example the preface is a subsubsection:
13975 \end_layout
13976
13977 \begin_layout Standard
13978 \begin_inset Flex Multiple Columns
13979 status open
13980
13981 \begin_layout Plain Layout
13982 \begin_inset Argument 2
13983 status open
13984
13985 \begin_layout Plain Layout
13986 \begin_inset ERT
13987 status collapsed
13988
13989 \begin_layout Plain Layout
13990
13991
13992 \backslash
13993 subsubsection{
13994 \end_layout
13995
13996 \end_inset
13997
13998 This is a subsubsection heading as a preface
13999 \begin_inset ERT
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003
14004 }
14005 \end_layout
14006
14007 \end_inset
14008
14009
14010 \end_layout
14011
14012 \end_inset
14013
14014
14015 \size small
14016 A minute examination of the circumstances served only to make the case more
14017  complex.
14018  In the first place, no reason could be given why the young man should have
14019  fastened the door upon the inside.
14020  There was the possibility that the murderer had done this, and had afterwards
14021  escaped by the window.
14022  The drop was at least twenty feet, however, and a bed of crocuses in full
14023  bloom lay beneath.
14024  Neither the flowers nor the earth showed any sign of having been disturbed,
14025  nor were there any marks upon the narrow strip of grass which separated
14026  the house from the road.
14027  Apparently, therefore, it was the young man himself who had fastened the
14028  door.
14029  But how did he come by his death? No one could have climbed up to the window
14030  without leaving traces.
14031  Suppose a man had fired through the window, he would indeed be a remarkable
14032  shot who could with a revolver inflict so deadly a wound.
14033  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
14034  a hundred yards of the house.
14035  No one had heard a shot.
14036 \end_layout
14037
14038 \end_inset
14039
14040
14041 \end_layout
14042
14043 \begin_layout Standard
14044 If there is less vertical space than 6
14045 \begin_inset space ~
14046 \end_inset
14047
14048 text lines is left on the page at the beginning of the multiple columns,
14049  a page break will be inserted before the multiple columns.
14050  Depending on the number of lines of the preface text, you might want to
14051  change this space.
14052  This is done by setting the cursor into the mulitcolumn inset behind the
14053  preface (if there is any) and using the menu 
14054 \family sans
14055 Insert\SpecialChar menuseparator
14056 Space
14057 \begin_inset space ~
14058 \end_inset
14059
14060 Before
14061 \begin_inset space ~
14062 \end_inset
14063
14064 Page
14065 \begin_inset space ~
14066 \end_inset
14067
14068 Break
14069 \family default
14070 .
14071  Insert into that inset the amount of space like e.
14072 \begin_inset space \thinspace{}
14073 \end_inset
14074
14075 g.
14076 \begin_inset space \space{}
14077 \end_inset
14078
14079
14080 \begin_inset Quotes eld
14081 \end_inset
14082
14083 5cm
14084 \begin_inset Quotes erd
14085 \end_inset
14086
14087 .
14088 \begin_inset Newline newline
14089 \end_inset
14090
14091 In this example the space is set to 7
14092 \begin_inset space ~
14093 \end_inset
14094
14095 text lines by using 
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 7
14101 \backslash
14102 baselineskip
14103 \end_layout
14104
14105 \end_inset
14106
14107  (where the command 
14108 \begin_inset Flex Code
14109 status collapsed
14110
14111 \begin_layout Plain Layout
14112
14113 \backslash
14114 baselineskip
14115 \end_layout
14116
14117 \end_inset
14118
14119  needs to be inserted as \SpecialChar TeX
14120  code):
14121 \end_layout
14122
14123 \begin_layout Standard
14124 \begin_inset Flex Multiple Columns
14125 status open
14126
14127 \begin_layout Plain Layout
14128 \begin_inset Argument 3
14129 status open
14130
14131 \begin_layout Plain Layout
14132 7
14133 \begin_inset ERT
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137
14138
14139 \backslash
14140 baselineskip
14141 \end_layout
14142
14143 \end_inset
14144
14145
14146 \end_layout
14147
14148 \end_inset
14149
14150
14151 \size small
14152 On the evening of the crime, he returned from the club exactly at ten.
14153  His mother and sister were out spending the evening with a relation.
14154  The servant deposed that she heard him enter the front room on the second
14155  floor, generally used as his sitting-room.
14156  She had lit a fire there, and as it smoked she had opened the window.
14157  No sound was heard from the room until eleven-twenty, the hour of the return
14158  of Lady Maynooth and her daughter.
14159  Desiring to say good-night, she attempted to enter her son's room.
14160  The door was locked on the inside, and no answer could be got to their
14161  cries and knocking.
14162  Help was obtained, and the door forced.
14163  The unfortunate young man was found lying near the table.
14164  His head had been horribly mutilated by an expanding revolver bullet, but
14165  no weapon of any sort was to be found in the room.
14166 \end_layout
14167
14168 \end_inset
14169
14170
14171 \end_layout
14172
14173 \begin_layout Subsubsection
14174 Surrounding Space
14175 \end_layout
14176
14177 \begin_layout Standard
14178 The amount of space before and after multiple columns can be changed by
14179  changing the length 
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184
14185 \backslash
14186 multicolsep
14187 \end_layout
14188
14189 \end_inset
14190
14191 .
14192  For example the command
14193 \end_layout
14194
14195 \begin_layout LyX-Code
14196
14197 \backslash
14198 setlength{
14199 \backslash
14200 multicolsep}{3cm}
14201 \end_layout
14202
14203 \begin_layout Standard
14204 in \SpecialChar TeX
14205  Code changes its value to 3
14206 \begin_inset space \thinspace{}
14207 \end_inset
14208
14209 cm.
14210  The change must be made before the multiple columns' start.
14211  The predefined value is 13
14212 \begin_inset space \thinspace{}
14213 \end_inset
14214
14215 pt.
14216 \end_layout
14217
14218 \begin_layout Standard
14219 For this example 
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224
14225 \backslash
14226 multicolsep
14227 \end_layout
14228
14229 \end_inset
14230
14231  was set to 2.5
14232 \begin_inset space \thinspace{}
14233 \end_inset
14234
14235 cm:
14236 \end_layout
14237
14238 \begin_layout Standard
14239 \begin_inset ERT
14240 status open
14241
14242 \begin_layout Plain Layout
14243
14244
14245 \backslash
14246 setlength{
14247 \backslash
14248 multicolsep}{2.5cm}
14249 \end_layout
14250
14251 \end_inset
14252
14253
14254 \end_layout
14255
14256 \begin_layout Standard
14257 \begin_inset Flex Multiple Columns
14258 status open
14259
14260 \begin_layout Plain Layout
14261
14262 \size small
14263 All day I turned these facts over in my mind, endeavouring to hit upon some
14264  theory which could reconcile them all, and to find that line of least resistanc
14265 e which my poor friend had declared to be the starting-point of every investigat
14266 ion.
14267  I confess that I made little progress.
14268  In the evening I strolled across the Park, and found myself about six o'clock
14269  at the Oxford Street end of Park Lane.
14270  A group of loafers upon the pavements, all staring up at a particular window,
14271  directed me to the house which I had come to see.
14272  A tall, thin man with coloured glasses, whom I strongly suspected of being
14273  a plain-clothes detective, was pointing out some theory of his own, while
14274  the others crowded round to listen to what he said.
14275  I got as near him as I could, but his observations seemed to me to be absurd,
14276  so I withdrew again in some disgust.
14277  As I did so I struck against an elderly, deformed man, who had been behind
14278  me, and I knocked down several books which he was carrying.
14279 \end_layout
14280
14281 \end_inset
14282
14283
14284 \end_layout
14285
14286 \begin_layout Standard
14287 \begin_inset Note Greyedout
14288 status open
14289
14290 \begin_layout Plain Layout
14291
14292 \series bold
14293 Note:
14294 \series default
14295  The values you set with 
14296 \begin_inset Flex Code
14297 status collapsed
14298
14299 \begin_layout Plain Layout
14300
14301 \backslash
14302 setlength
14303 \end_layout
14304
14305 \end_inset
14306
14307  will be used for all following multiple columns until you change them again.
14308 \end_layout
14309
14310 \end_inset
14311
14312
14313 \end_layout
14314
14315 \begin_layout Standard
14316 \begin_inset ERT
14317 status collapsed
14318
14319 \begin_layout Plain Layout
14320
14321
14322 \backslash
14323 setlength{
14324 \backslash
14325 multicolsep}{13pt}
14326 \end_layout
14327
14328 \end_inset
14329
14330
14331 \begin_inset Note Note
14332 status collapsed
14333
14334 \begin_layout Plain Layout
14335 go back to the default
14336 \end_layout
14337
14338 \end_inset
14339
14340
14341 \end_layout
14342
14343 \begin_layout Standard
14344 \begin_inset Newpage newpage
14345 \end_inset
14346
14347
14348 \end_layout
14349
14350 \begin_layout Subsubsection
14351 Column Breaks
14352 \end_layout
14353
14354 \begin_layout Standard
14355 A column break can be forced by inserting the command 
14356 \begin_inset Flex Code
14357 status collapsed
14358
14359 \begin_layout Plain Layout
14360
14361 \backslash
14362 columnbreak{}
14363 \end_layout
14364
14365 \end_inset
14366
14367  as \SpecialChar TeX
14368  Code to that position in the text where the column should be broken.
14369  Note that this leads in most cases to whitespace in the text.
14370 \begin_inset Newline newline
14371 \end_inset
14372
14373 Here is an example:
14374 \end_layout
14375
14376 \begin_layout Standard
14377 \begin_inset Flex Multiple Columns
14378 status open
14379
14380 \begin_layout Plain Layout
14381
14382 \size small
14383 \begin_inset Quotes eld
14384 \end_inset
14385
14386 You're surprised to see me, sir,
14387 \begin_inset Quotes erd
14388 \end_inset
14389
14390  said he, in a strange, croaking voice.
14391 \end_layout
14392
14393 \begin_layout Plain Layout
14394
14395 \size small
14396 I acknowledged that I was.
14397 \end_layout
14398
14399 \begin_layout Plain Layout
14400
14401 \size small
14402 \begin_inset Quotes eld
14403 \end_inset
14404
14405 Well, I've a conscience, sir, and when I chanced to see you go into this
14406  house, as I came hobbling after you, I thought to myself, I'll just step
14407  in and see that kind gentleman, and tell him that if I was a bit gruff
14408  in my manner there was not any harm meant, and that I am much obliged to
14409  him for picking up my books.
14410 \begin_inset Quotes erd
14411 \end_inset
14412
14413
14414 \end_layout
14415
14416 \begin_layout Plain Layout
14417
14418 \size small
14419 \begin_inset Quotes eld
14420 \end_inset
14421
14422 You make too much of a trifle,
14423 \begin_inset Quotes erd
14424 \end_inset
14425
14426  said I.
14427  
14428 \begin_inset Quotes eld
14429 \end_inset
14430
14431 May I ask how you knew who I was?
14432 \begin_inset Quotes erd
14433 \end_inset
14434
14435  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
14436 \begin_inset ERT
14437 status collapsed
14438
14439 \begin_layout Plain Layout
14440
14441
14442 \backslash
14443 columnbreak{}
14444 \end_layout
14445
14446 \end_inset
14447
14448
14449 \end_layout
14450
14451 \begin_layout Plain Layout
14452
14453 \size small
14454 \begin_inset Quotes eld
14455 \end_inset
14456
14457 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14458  you'll find my little bookshop at the corner of Church Street, and very
14459  happy to see you, I am sure.
14460  Maybe you collect yourself, sir.
14461  Here's 
14462 \noun on
14463 British
14464 \begin_inset space ~
14465 \end_inset
14466
14467 Birds
14468 \noun default
14469 , and 
14470 \noun on
14471 Catullus
14472 \noun default
14473 , and 
14474 \noun on
14475 The Holy War
14476 \noun default
14477
14478 \begin_inset space ~
14479 \end_inset
14480
14481 – a bargain, every one of them.
14482  With five volumes you could just fill that gap on that second shelf.
14483  It looks untidy, does it not, sir?
14484 \begin_inset Quotes erd
14485 \end_inset
14486
14487
14488 \end_layout
14489
14490 \end_inset
14491
14492
14493 \end_layout
14494
14495 \begin_layout Subsubsection
14496 Column Separation
14497 \end_layout
14498
14499 \begin_layout Standard
14500 The width of the columns is automatically calculated, but you can modify
14501  the space between the columns.
14502  This is done by changing the length 
14503 \begin_inset Flex Code
14504 status collapsed
14505
14506 \begin_layout Plain Layout
14507
14508 \backslash
14509 columnsep
14510 \end_layout
14511
14512 \end_inset
14513
14514 .
14515  Its predefined value is 10
14516 \begin_inset space \thinspace{}
14517 \end_inset
14518
14519 pt.
14520  Here is an example where 
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525
14526 \backslash
14527 columnsep
14528 \end_layout
14529
14530 \end_inset
14531
14532  is set to 3
14533 \begin_inset space \thinspace{}
14534 \end_inset
14535
14536 cm:
14537 \end_layout
14538
14539 \begin_layout Standard
14540 \begin_inset ERT
14541 status open
14542
14543 \begin_layout Plain Layout
14544
14545
14546 \backslash
14547 setlength{
14548 \backslash
14549 columnsep}{3cm}
14550 \end_layout
14551
14552 \end_inset
14553
14554
14555 \end_layout
14556
14557 \begin_layout Standard
14558 \begin_inset Flex Multiple Columns
14559 status open
14560
14561 \begin_layout Plain Layout
14562
14563 \size small
14564 My observations of No.
14565 \begin_inset space \space{}
14566 \end_inset
14567
14568 427 Park Lane did little to clear up the problem in which I was interested.
14569  The house was separated from the street by a low wall and railing, the
14570  whole not more than five feet high.
14571  It was perfectly easy, therefore, for anyone to get into the garden, but
14572  the window was entirely inaccessible, since there was no water pipe or
14573  anything which could help the most active man to climb it.
14574  More puzzled than ever, I retraced my steps to Kensington.
14575  I had not been in my study five minutes when the maid entered to say that
14576  a person desired to see me.
14577  To my astonishment it was none other than my strange old book collector,
14578  his sharp, wizened face peering out from a frame of white hair, and his
14579  precious volumes, a dozen of them at least, wedged under his right arm.
14580 \end_layout
14581
14582 \end_inset
14583
14584
14585 \end_layout
14586
14587 \begin_layout Standard
14588 \begin_inset ERT
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592
14593
14594 \backslash
14595 setlength{
14596 \backslash
14597 columnsep}{10pt}
14598 \end_layout
14599
14600 \end_inset
14601
14602
14603 \begin_inset Note Note
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607 go back to the default
14608 \end_layout
14609
14610 \end_inset
14611
14612
14613 \end_layout
14614
14615 \begin_layout Subsubsection
14616 Vertical Lines
14617 \end_layout
14618
14619 \begin_layout Standard
14620 Between the columns a rule with a width of the length 
14621 \begin_inset Flex Code
14622 status collapsed
14623
14624 \begin_layout Plain Layout
14625
14626 \backslash
14627 columnseprule
14628 \end_layout
14629
14630 \end_inset
14631
14632  is placed.
14633  If this rule width is set to 0
14634 \begin_inset space \thinspace{}
14635 \end_inset
14636
14637 pt (this is the default), the rule is suppressed.
14638  In the following example the rule is 2
14639 \begin_inset space \thinspace{}
14640 \end_inset
14641
14642 pt wide:
14643 \end_layout
14644
14645 \begin_layout Standard
14646 \begin_inset ERT
14647 status open
14648
14649 \begin_layout Plain Layout
14650
14651
14652 \backslash
14653 setlength{
14654 \backslash
14655 columnseprule}{2pt}
14656 \end_layout
14657
14658 \end_inset
14659
14660
14661 \end_layout
14662
14663 \begin_layout Standard
14664 \begin_inset Flex Multiple Columns
14665 status open
14666
14667 \begin_layout Plain Layout
14668
14669 \size small
14670 \begin_inset Quotes eld
14671 \end_inset
14672
14673 You're surprised to see me, sir,
14674 \begin_inset Quotes erd
14675 \end_inset
14676
14677  said he, in a strange, croaking voice.
14678 \end_layout
14679
14680 \begin_layout Plain Layout
14681
14682 \size small
14683 I acknowledged that I was.
14684 \end_layout
14685
14686 \begin_layout Plain Layout
14687
14688 \size small
14689 \begin_inset Quotes eld
14690 \end_inset
14691
14692 Well, I've a conscience, sir, and when I chanced to see you go into this
14693  house, as I came hobbling after you, I thought to myself, I'll just step
14694  in and see that kind gentleman, and tell him that if I was a bit gruff
14695  in my manner there was not any harm meant, and that I am much obliged to
14696  him for picking up my books.
14697 \begin_inset Quotes erd
14698 \end_inset
14699
14700
14701 \end_layout
14702
14703 \begin_layout Plain Layout
14704
14705 \size small
14706 \begin_inset Quotes eld
14707 \end_inset
14708
14709 You make too much of a trifle,
14710 \begin_inset Quotes erd
14711 \end_inset
14712
14713  said I.
14714  
14715 \begin_inset Quotes eld
14716 \end_inset
14717
14718 May I ask how you knew who I was?
14719 \begin_inset Quotes erd
14720 \end_inset
14721
14722
14723 \end_layout
14724
14725 \begin_layout Plain Layout
14726
14727 \size small
14728 \begin_inset Quotes eld
14729 \end_inset
14730
14731 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14732  you'll find my little bookshop at the corner of Church Street, and very
14733  happy to see you, I am sure.
14734  Maybe you collect yourself, sir.
14735  Here's 
14736 \noun on
14737 British
14738 \begin_inset space ~
14739 \end_inset
14740
14741 Birds
14742 \noun default
14743 , and 
14744 \noun on
14745 Catullus
14746 \noun default
14747 , and 
14748 \noun on
14749 The Holy War
14750 \noun default
14751
14752 \begin_inset space ~
14753 \end_inset
14754
14755 – a bargain, every one of them.
14756  With five volumes you could just fill that gap on that second shelf.
14757  It looks untidy, does it not, sir?
14758 \begin_inset Quotes erd
14759 \end_inset
14760
14761
14762 \end_layout
14763
14764 \end_inset
14765
14766
14767 \end_layout
14768
14769 \begin_layout Standard
14770 \begin_inset VSpace defskip
14771 \end_inset
14772
14773
14774 \end_layout
14775
14776 \begin_layout Standard
14777 The rule can be colored by redefining the command 
14778 \begin_inset Flex Code
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782
14783 \backslash
14784 columnseprulecolor
14785 \end_layout
14786
14787 \end_inset
14788
14789 .
14790  This is done by inserting the command
14791 \end_layout
14792
14793 \begin_layout LyX-Code
14794
14795 \backslash
14796 renewcommand{
14797 \backslash
14798 columnseprulecolor}{
14799 \backslash
14800 color{red}}
14801 \end_layout
14802
14803 \begin_layout Standard
14804 as \SpecialChar TeX
14805  Code before the multicolumn inset.
14806  Replace 
14807 \begin_inset Flex Code
14808 status collapsed
14809
14810 \begin_layout Plain Layout
14811 red
14812 \end_layout
14813
14814 \end_inset
14815
14816  in this command by a color of your choice.
14817  You can use all pre- and self-defined colors.
14818  See the 
14819 \emph on
14820 EmbeddedObjects
14821 \emph default
14822  manual, section 
14823 \emph on
14824 Colored
14825 \begin_inset space ~
14826 \end_inset
14827
14828 Tables
14829 \emph default
14830  for more information about pre- and self-defined colors.
14831  To go back to the default color insert the command
14832 \end_layout
14833
14834 \begin_layout LyX-Code
14835
14836 \backslash
14837 renewcommand{
14838 \backslash
14839 columnseprulecolor}{
14840 \backslash
14841 normalcolor}
14842 \end_layout
14843
14844 \begin_layout Standard
14845 Here is the example with a cyan rule and 1
14846 \begin_inset space \thinspace{}
14847 \end_inset
14848
14849 cm column separation:
14850 \end_layout
14851
14852 \begin_layout Standard
14853 \begin_inset ERT
14854 status open
14855
14856 \begin_layout Plain Layout
14857
14858
14859 \backslash
14860 setlength{
14861 \backslash
14862 columnsep}{1cm}
14863 \end_layout
14864
14865 \begin_layout Plain Layout
14866
14867
14868 \backslash
14869 renewcommand{
14870 \backslash
14871 columnseprulecolor}{
14872 \backslash
14873 color{cyan}}
14874 \end_layout
14875
14876 \end_inset
14877
14878
14879 \end_layout
14880
14881 \begin_layout Standard
14882 \begin_inset Flex Multiple Columns
14883 status open
14884
14885 \begin_layout Plain Layout
14886
14887 \size small
14888 \begin_inset Quotes eld
14889 \end_inset
14890
14891 You're surprised to see me, sir,
14892 \begin_inset Quotes erd
14893 \end_inset
14894
14895  said he, in a strange, croaking voice.
14896 \end_layout
14897
14898 \begin_layout Plain Layout
14899
14900 \size small
14901 I acknowledged that I was.
14902 \end_layout
14903
14904 \begin_layout Plain Layout
14905
14906 \size small
14907 \begin_inset Quotes eld
14908 \end_inset
14909
14910 Well, I've a conscience, sir, and when I chanced to see you go into this
14911  house, as I came hobbling after you, I thought to myself, I'll just step
14912  in and see that kind gentleman, and tell him that if I was a bit gruff
14913  in my manner there was not any harm meant, and that I am much obliged to
14914  him for picking up my books.
14915 \begin_inset Quotes erd
14916 \end_inset
14917
14918
14919 \end_layout
14920
14921 \begin_layout Plain Layout
14922
14923 \size small
14924 \begin_inset Quotes eld
14925 \end_inset
14926
14927 You make too much of a trifle,
14928 \begin_inset Quotes erd
14929 \end_inset
14930
14931  said I.
14932  
14933 \begin_inset Quotes eld
14934 \end_inset
14935
14936 May I ask how you knew who I was?
14937 \begin_inset Quotes erd
14938 \end_inset
14939
14940
14941 \end_layout
14942
14943 \begin_layout Plain Layout
14944
14945 \size small
14946 \begin_inset Quotes eld
14947 \end_inset
14948
14949 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14950  you'll find my little bookshop at the corner of Church Street, and very
14951  happy to see you, I am sure.
14952  Maybe you collect yourself, sir.
14953  Here's 
14954 \noun on
14955 British
14956 \begin_inset space ~
14957 \end_inset
14958
14959 Birds
14960 \noun default
14961 , and 
14962 \noun on
14963 Catullus
14964 \noun default
14965 , and 
14966 \noun on
14967 The Holy War
14968 \noun default
14969
14970 \begin_inset space ~
14971 \end_inset
14972
14973 – a bargain, every one of them.
14974  With five volumes you could just fill that gap on that second shelf.
14975  It looks untidy, does it not, sir?
14976 \begin_inset Quotes erd
14977 \end_inset
14978
14979
14980 \end_layout
14981
14982 \end_inset
14983
14984
14985 \end_layout
14986
14987 \begin_layout Standard
14988 \begin_inset ERT
14989 status collapsed
14990
14991 \begin_layout Plain Layout
14992
14993
14994 \backslash
14995 setlength{
14996 \backslash
14997 columnseprule}{0pt}
14998 \end_layout
14999
15000 \begin_layout Plain Layout
15001
15002
15003 \backslash
15004 renewcommand{
15005 \backslash
15006 columnseprulecolor}{
15007 \backslash
15008 normalcolor}
15009 \end_layout
15010
15011 \end_inset
15012
15013
15014 \begin_inset Note Note
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 go back to the default
15019 \end_layout
15020
15021 \end_inset
15022
15023
15024 \end_layout
15025
15026 \begin_layout Section
15027
15028 \change_inserted 564990737 1671270380
15029 Paragraph Styles
15030 \end_layout
15031
15032 \begin_layout Subsection
15033
15034 \change_inserted 564990737 1671270398
15035 Custom
15036 \change_deleted 564990737 1671270396
15037 Non-standard
15038 \change_unchanged
15039  Paragraph Shapes
15040 \end_layout
15041
15042 \begin_layout Standard
15043 \noindent
15044 \SpecialChar LaTeX
15045  as well as any other text processor uses by default rectangular paragraphs.
15046  For special cases like for example posters, invitation cards or poems you
15047  can modify the paragraph shape to one of your choice.
15048  This can be done by using the \SpecialChar LaTeX
15049 -package 
15050 \begin_inset Flex Code
15051 status collapsed
15052
15053 \begin_layout Plain Layout
15054 shapepar
15055 \end_layout
15056
15057 \end_inset
15058
15059  which is loaded by using in the document settings the module 
15060 \family sans
15061 Custom paragraph shapes
15062 \family default
15063 .
15064 \end_layout
15065
15066 \begin_layout Subsubsection
15067 Predefined shapes
15068 \end_layout
15069
15070 \begin_layout Standard
15071
15072 \series bold
15073 shapepar
15074 \series default
15075  provides the following shapes:
15076 \end_layout
15077
15078 \begin_layout Standard
15079 \begin_inset Tabular
15080 <lyxtabular version="3" rows="13" columns="3">
15081 <features booktabs="true" islongtable="true" longtabularalignment="center">
15082 <column alignment="left" valignment="middle" width="16col%">
15083 <column alignment="left" valignment="middle" width="40col%">
15084 <column alignment="left" valignment="middle" width="35col%">
15085 <row endhead="true">
15086 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15087 \begin_inset Text
15088
15089 \begin_layout Plain Layout
15090
15091 \series bold
15092 \size small
15093 Name
15094 \end_layout
15095
15096 \end_inset
15097 </cell>
15098 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15099 \begin_inset Text
15100
15101 \begin_layout Plain Layout
15102
15103 \series bold
15104 \size small
15105 Description
15106 \end_layout
15107
15108 \end_inset
15109 </cell>
15110 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15111 \begin_inset Text
15112
15113 \begin_layout Plain Layout
15114
15115 \series bold
15116 \size small
15117 Annotation
15118 \end_layout
15119
15120 \end_inset
15121 </cell>
15122 </row>
15123 <row interlinespace="default">
15124 <cell alignment="left" valignment="top" usebox="none">
15125 \begin_inset Text
15126
15127 \begin_layout Plain Layout
15128
15129 \size small
15130 CDlabel
15131 \end_layout
15132
15133 \end_inset
15134 </cell>
15135 <cell alignment="left" valignment="top" usebox="none">
15136 \begin_inset Text
15137
15138 \begin_layout Plain Layout
15139
15140 \size small
15141 Circle with circular hole (in the size of a CD/DVD)
15142 \end_layout
15143
15144 \end_inset
15145 </cell>
15146 <cell alignment="left" valignment="top" usebox="none">
15147 \begin_inset Text
15148
15149 \begin_layout Plain Layout
15150
15151 \size small
15152 Cannot be scaled, take care there is not too much text
15153 \end_layout
15154
15155 \end_inset
15156 </cell>
15157 </row>
15158 <row interlinespace="default">
15159 <cell alignment="left" valignment="top" usebox="none">
15160 \begin_inset Text
15161
15162 \begin_layout Plain Layout
15163
15164 \size small
15165 Circle
15166 \end_layout
15167
15168 \end_inset
15169 </cell>
15170 <cell alignment="left" valignment="top" usebox="none">
15171 \begin_inset Text
15172
15173 \begin_layout Plain Layout
15174
15175 \size small
15176 Circle
15177 \end_layout
15178
15179 \end_inset
15180 </cell>
15181 <cell alignment="left" valignment="top" usebox="none">
15182 \begin_inset Text
15183
15184 \begin_layout Plain Layout
15185
15186 \size small
15187 Fragile, calculation might fail
15188 \end_layout
15189
15190 \end_inset
15191 </cell>
15192 </row>
15193 <row interlinespace="default">
15194 <cell alignment="left" valignment="top" usebox="none">
15195 \begin_inset Text
15196
15197 \begin_layout Plain Layout
15198
15199 \size small
15200 Diamond
15201 \end_layout
15202
15203 \end_inset
15204 </cell>
15205 <cell alignment="left" valignment="top" usebox="none">
15206 \begin_inset Text
15207
15208 \begin_layout Plain Layout
15209
15210 \size small
15211 Rhomboid (symbolizing a 
15212 \begin_inset Quotes eld
15213 \end_inset
15214
15215 diamond
15216 \begin_inset Quotes erd
15217 \end_inset
15218
15219 )
15220 \end_layout
15221
15222 \end_inset
15223 </cell>
15224 <cell alignment="left" valignment="top" usebox="none">
15225 \begin_inset Text
15226
15227 \begin_layout Plain Layout
15228
15229 \size small
15230 -
15231 \end_layout
15232
15233 \end_inset
15234 </cell>
15235 </row>
15236 <row interlinespace="default">
15237 <cell alignment="left" valignment="top" usebox="none">
15238 \begin_inset Text
15239
15240 \begin_layout Plain Layout
15241
15242 \size small
15243 Heart
15244 \end_layout
15245
15246 \end_inset
15247 </cell>
15248 <cell alignment="left" valignment="top" usebox="none">
15249 \begin_inset Text
15250
15251 \begin_layout Plain Layout
15252
15253 \size small
15254 Heart-like shape
15255 \end_layout
15256
15257 \end_inset
15258 </cell>
15259 <cell alignment="left" valignment="top" usebox="none">
15260 \begin_inset Text
15261
15262 \begin_layout Plain Layout
15263
15264 \size small
15265 -
15266 \end_layout
15267
15268 \end_inset
15269 </cell>
15270 </row>
15271 <row interlinespace="default">
15272 <cell alignment="left" valignment="top" usebox="none">
15273 \begin_inset Text
15274
15275 \begin_layout Plain Layout
15276
15277 \size small
15278 Hexagon
15279 \end_layout
15280
15281 \end_inset
15282 </cell>
15283 <cell alignment="left" valignment="top" usebox="none">
15284 \begin_inset Text
15285
15286 \begin_layout Plain Layout
15287
15288 \size small
15289 Hexagon
15290 \end_layout
15291
15292 \end_inset
15293 </cell>
15294 <cell alignment="left" valignment="top" usebox="none">
15295 \begin_inset Text
15296
15297 \begin_layout Plain Layout
15298
15299 \size small
15300 -
15301 \end_layout
15302
15303 \end_inset
15304 </cell>
15305 </row>
15306 <row interlinespace="default">
15307 <cell alignment="left" valignment="top" usebox="none">
15308 \begin_inset Text
15309
15310 \begin_layout Plain Layout
15311
15312 \size small
15313 Nut
15314 \end_layout
15315
15316 \end_inset
15317 </cell>
15318 <cell alignment="left" valignment="top" usebox="none">
15319 \begin_inset Text
15320
15321 \begin_layout Plain Layout
15322
15323 \size small
15324 Nut for bolt (hexagon with circular hole)
15325 \end_layout
15326
15327 \end_inset
15328 </cell>
15329 <cell alignment="left" valignment="top" usebox="none">
15330 \begin_inset Text
15331
15332 \begin_layout Plain Layout
15333
15334 \size small
15335 -
15336 \end_layout
15337
15338 \end_inset
15339 </cell>
15340 </row>
15341 <row interlinespace="default">
15342 <cell alignment="left" valignment="top" usebox="none">
15343 \begin_inset Text
15344
15345 \begin_layout Plain Layout
15346
15347 \size small
15348 Square
15349 \end_layout
15350
15351 \end_inset
15352 </cell>
15353 <cell alignment="left" valignment="top" usebox="none">
15354 \begin_inset Text
15355
15356 \begin_layout Plain Layout
15357
15358 \size small
15359 Square
15360 \end_layout
15361
15362 \end_inset
15363 </cell>
15364 <cell alignment="left" valignment="top" usebox="none">
15365 \begin_inset Text
15366
15367 \begin_layout Plain Layout
15368
15369 \size small
15370 -
15371 \end_layout
15372
15373 \end_inset
15374 </cell>
15375 </row>
15376 <row interlinespace="default">
15377 <cell alignment="left" valignment="top" usebox="none">
15378 \begin_inset Text
15379
15380 \begin_layout Plain Layout
15381
15382 \size small
15383 Star
15384 \end_layout
15385
15386 \end_inset
15387 </cell>
15388 <cell alignment="left" valignment="top" usebox="none">
15389 \begin_inset Text
15390
15391 \begin_layout Plain Layout
15392
15393 \size small
15394 Five-point star
15395 \end_layout
15396
15397 \end_inset
15398 </cell>
15399 <cell alignment="left" valignment="top" usebox="none">
15400 \begin_inset Text
15401
15402 \begin_layout Plain Layout
15403
15404 \size small
15405 -
15406 \end_layout
15407
15408 \end_inset
15409 </cell>
15410 </row>
15411 <row interlinespace="default">
15412 <cell alignment="left" valignment="top" usebox="none">
15413 \begin_inset Text
15414
15415 \begin_layout Plain Layout
15416
15417 \size small
15418 Candle
15419 \end_layout
15420
15421 \end_inset
15422 </cell>
15423 <cell alignment="left" valignment="top" usebox="none">
15424 \begin_inset Text
15425
15426 \begin_layout Plain Layout
15427
15428 \size small
15429 Burning candle
15430 \end_layout
15431
15432 \end_inset
15433 </cell>
15434 <cell alignment="left" valignment="top" usebox="none">
15435 \begin_inset Text
15436
15437 \begin_layout Plain Layout
15438
15439 \size small
15440 -
15441 \end_layout
15442
15443 \end_inset
15444 </cell>
15445 </row>
15446 <row interlinespace="default">
15447 <cell alignment="left" valignment="top" usebox="none">
15448 \begin_inset Text
15449
15450 \begin_layout Plain Layout
15451
15452 \size small
15453 Drop down/up
15454 \end_layout
15455
15456 \end_inset
15457 </cell>
15458 <cell alignment="left" valignment="top" usebox="none">
15459 \begin_inset Text
15460
15461 \begin_layout Plain Layout
15462
15463 \size small
15464 Normal/reversed rain drop
15465 \end_layout
15466
15467 \end_inset
15468 </cell>
15469 <cell alignment="left" valignment="top" usebox="none">
15470 \begin_inset Text
15471
15472 \begin_layout Plain Layout
15473
15474 \size small
15475 Fragile, calculation might fail
15476 \end_layout
15477
15478 \end_inset
15479 </cell>
15480 </row>
15481 <row interlinespace="default">
15482 <cell alignment="left" valignment="top" usebox="none">
15483 \begin_inset Text
15484
15485 \begin_layout Plain Layout
15486
15487 \size small
15488 \SpecialChar TeX
15489
15490 \end_layout
15491
15492 \end_inset
15493 </cell>
15494 <cell alignment="left" valignment="top" usebox="none">
15495 \begin_inset Text
15496
15497 \begin_layout Plain Layout
15498
15499 \size small
15500 The \SpecialChar TeX
15501  logo
15502 \end_layout
15503
15504 \end_inset
15505 </cell>
15506 <cell alignment="left" valignment="top" usebox="none">
15507 \begin_inset Text
15508
15509 \begin_layout Plain Layout
15510
15511 \size small
15512 -
15513 \end_layout
15514
15515 \end_inset
15516 </cell>
15517 </row>
15518 <row interlinespace="default">
15519 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15520 \begin_inset Text
15521
15522 \begin_layout Plain Layout
15523
15524 \size small
15525 Triangle up/down/
15526 \begin_inset Newline newline
15527 \end_inset
15528
15529 left/right
15530 \end_layout
15531
15532 \end_inset
15533 </cell>
15534 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15535 \begin_inset Text
15536
15537 \begin_layout Plain Layout
15538
15539 \size small
15540 Triangles in different orientations
15541 \end_layout
15542
15543 \end_inset
15544 </cell>
15545 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15546 \begin_inset Text
15547
15548 \begin_layout Plain Layout
15549
15550 \size small
15551 -
15552 \end_layout
15553
15554 \end_inset
15555 </cell>
15556 </row>
15557 </lyxtabular>
15558
15559 \end_inset
15560
15561
15562 \end_layout
15563
15564 \begin_layout Standard
15565 To use a shape for your paragraph, simply select it in \SpecialChar LyX
15566 's pull-down box
15567  for environments in the toolbar.
15568 \end_layout
15569
15570 \begin_layout Standard
15571 \begin_inset Newpage newpage
15572 \end_inset
15573
15574
15575 \end_layout
15576
15577 \begin_layout Standard
15578 Here is an example paragraph in the shape of a nut:
15579 \end_layout
15580
15581 \begin_layout Standard
15582 \begin_inset VSpace bigskip
15583 \end_inset
15584
15585
15586 \end_layout
15587
15588 \begin_layout Nut
15589
15590 \lang latin
15591 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15592  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15593  voluptua.
15594  At vero eos et accusam et justo duo dolores et ea rebum.
15595  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15596  sit amet.
15597  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15598  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15599  voluptua.
15600 \end_layout
15601
15602 \begin_layout Standard
15603 \begin_inset VSpace bigskip
15604 \end_inset
15605
15606
15607 \end_layout
15608
15609 \begin_layout Standard
15610 \begin_inset Note Greyedout
15611 status open
15612
15613 \begin_layout Plain Layout
15614
15615 \series bold
15616 Note
15617 \series default
15618
15619 \family sans
15620 shapepar
15621 \family default
15622  paragraphs cannot run over a page break.
15623 \end_layout
15624
15625 \end_inset
15626
15627
15628 \end_layout
15629
15630 \begin_layout Standard
15631 \begin_inset VSpace bigskip
15632 \end_inset
15633
15634
15635 \end_layout
15636
15637 \begin_layout Standard
15638 The package 
15639 \begin_inset Flex Code
15640 status collapsed
15641
15642 \begin_layout Plain Layout
15643 shapepar
15644 \end_layout
15645
15646 \end_inset
15647
15648  takes care that the shape will always be preserved, no matter how much
15649  text is in the paragraph.
15650  Therefore the paragraph size changes with the amount of contained text.
15651  This can lead to paragraph sizes exceeding the page margins.
15652  To demonstrate the size scaling, here is the same example paragraph but
15653  with twice as much text:
15654 \end_layout
15655
15656 \begin_layout Standard
15657 \begin_inset Newpage newpage
15658 \end_inset
15659
15660
15661 \end_layout
15662
15663 \begin_layout Nut
15664
15665 \lang latin
15666 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15667  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15668  voluptua.
15669  At vero eos et accusam et justo duo dolores et ea rebum.
15670  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15671  sit amet.
15672  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15673  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15674  voluptua.
15675  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15676  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15677  voluptua.
15678  At vero eos et accusam et justo duo dolores et ea rebum.
15679  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15680  sit amet.
15681  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15682  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15683  voluptua.
15684 \end_layout
15685
15686 \begin_layout Standard
15687 \begin_inset VSpace bigskip
15688 \end_inset
15689
15690
15691 \end_layout
15692
15693 \begin_layout Standard
15694 An exception is the shape 
15695 \family sans
15696 CDlabel
15697 \family default
15698 .
15699  It cannot be scaled because it must fit the size of a CD/DVD.
15700  Therefore the amount of text that fits into the shape is limited.
15701 \begin_inset Newline newline
15702 \end_inset
15703
15704 The 
15705 \family sans
15706 drop
15707 \family default
15708  shapes and the 
15709 \family sans
15710 circle
15711 \family default
15712  shape are fragile, meaning that the calculation of their size can fail,
15713  depending on the amount of text.
15714  You will then get the \SpecialChar LaTeX
15715  error 
15716 \begin_inset Quotes eld
15717 \end_inset
15718
15719 Arithmetic overflow
15720 \begin_inset Quotes erd
15721 \end_inset
15722
15723 .
15724  In this case one can try to remove or add some text; if nothing works one
15725  has to use another shape.
15726 \end_layout
15727
15728 \begin_layout Standard
15729 \begin_inset VSpace bigskip
15730 \end_inset
15731
15732
15733 \end_layout
15734
15735 \begin_layout Standard
15736 For shapes with tips you will maybe see that \SpecialChar LaTeX
15737 's hyphenation routine fails
15738  for text in the tips.
15739  Therefore it is often necessary to add hyphenation points 
15740 \family sans
15741 (
15742 \begin_inset Info
15743 type  "shortcut"
15744 arg   "specialchar-insert hyphenation"
15745 \end_inset
15746
15747
15748 \family default
15749 ) to the corresponding text parts.
15750 \end_layout
15751
15752 \begin_layout Standard
15753 \begin_inset VSpace bigskip
15754 \end_inset
15755
15756
15757 \end_layout
15758
15759 \begin_layout Standard
15760 Shapepar paragraphs are either always centered or placed on the page so
15761  that their left border touches the left page margin.
15762  You can therefore not use the paragraph dialog to align such paragraphs.
15763  A solution is to put the paragraph into a minipage or parbox and align
15764  the box.
15765  The problem is hereby to find the right width for the box.
15766  Because if it is too wide and you center the box, the paragraph is not
15767  centered too because it sticks at the left side of the box.
15768  So you might have to play a bit with the width until it fits.
15769  Here are two heart-shaped paragraphs, the first one is not aligned, the
15770  second one is right-aligned:
15771 \end_layout
15772
15773 \begin_layout Standard
15774 \begin_inset Newpage newpage
15775 \end_inset
15776
15777
15778 \end_layout
15779
15780 \begin_layout Heart
15781 \noindent
15782
15783 \lang latin
15784 Lo\SpecialChar softhyphen
15785 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15786  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15787  voluptua.
15788  At vero eos et accusam et justo duo dolores et ea rebum.
15789  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15790  sit amet.
15791 \end_layout
15792
15793 \begin_layout Standard
15794 \begin_inset VSpace bigskip
15795 \end_inset
15796
15797
15798 \end_layout
15799
15800 \begin_layout Standard
15801 \noindent
15802 \align right
15803 \begin_inset Box Frameless
15804 position "t"
15805 hor_pos "c"
15806 has_inner_box 1
15807 inner_pos "t"
15808 use_parbox 1
15809 use_makebox 0
15810 width "42col%"
15811 special "none"
15812 height "1in"
15813 height_special "totalheight"
15814 thickness "0.4pt"
15815 separation "3pt"
15816 shadowsize "4pt"
15817 framecolor "black"
15818 backgroundcolor "none"
15819 status open
15820
15821 \begin_layout Heart
15822 \noindent
15823
15824 \lang latin
15825 Lo\SpecialChar softhyphen
15826 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15827  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15828  voluptua.
15829  At vero eos et accusam et justo duo dolores et ea rebum.
15830  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15831  sit amet.
15832 \end_layout
15833
15834 \end_inset
15835
15836
15837 \end_layout
15838
15839 \begin_layout Subsubsection
15840 Custom shapes
15841 \end_layout
15842
15843 \begin_layout Standard
15844 You can define any shape you want.
15845  Doing this manually is a lot of work because every coordinate must be specified.
15846  But there is a way to let the computer calculate the coordinates:
15847 \end_layout
15848
15849 \begin_layout Enumerate
15850 Install the program 
15851 \begin_inset CommandInset href
15852 LatexCommand href
15853 name "Jpgfdraw"
15854 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
15855 literal "false"
15856
15857 \end_inset
15858
15859 .
15860 \end_layout
15861
15862 \begin_layout Enumerate
15863 In 
15864 \family sans
15865 Jpgfdraw
15866 \family default
15867  go to the menu 
15868 \family sans
15869 TeX/LaTeX\SpecialChar menuseparator
15870 Settings\SpecialChar menuseparator
15871 Set Normal Size
15872 \family default
15873  and select the font size you are using in your document.
15874  For example this document uses the size 12
15875 \begin_inset space \thinspace{}
15876 \end_inset
15877
15878 pt.
15879 \end_layout
15880
15881 \begin_layout Enumerate
15882 Draw a shape.
15883 \end_layout
15884
15885 \begin_layout Enumerate
15886 Use the menu 
15887 \family sans
15888 TeX/LaTeX\SpecialChar menuseparator
15889 Shapepar
15890 \family default
15891  to export the shape to coordinates.
15892  In the appearing dialog use either the outline of your shape for the coordinate
15893 s or the path itself.
15894 \begin_inset Foot
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 For more information see 
15899 \begin_inset CommandInset href
15900 LatexCommand href
15901 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
15902 literal "false"
15903
15904 \end_inset
15905
15906
15907 \end_layout
15908
15909 \end_inset
15910
15911
15912 \end_layout
15913
15914 \begin_layout Standard
15915 The coordinates are written into a \SpecialChar TeX
15916  file.
15917  To use it for your \SpecialChar LyX
15918  document
15919 \end_layout
15920
15921 \begin_layout Enumerate
15922 Place the cursor before the first character of your paragraph (or into a
15923  new empty one).
15924 \end_layout
15925
15926 \begin_layout Enumerate
15927 Open in \SpecialChar LyX
15928  the menu 
15929 \family sans
15930 Insert\SpecialChar menuseparator
15931 File\SpecialChar menuseparator
15932 Child
15933 \begin_inset space ~
15934 \end_inset
15935
15936 Document
15937 \family default
15938 , select the file and use 
15939 \family sans
15940 Input
15941 \family default
15942  as 
15943 \family sans
15944 Include Type.
15945 \end_layout
15946
15947 \begin_layout Standard
15948 \begin_inset VSpace defskip
15949 \end_inset
15950
15951
15952 \end_layout
15953
15954 \begin_layout Standard
15955 \begin_inset Note Greyedout
15956 status open
15957
15958 \begin_layout Plain Layout
15959
15960 \series bold
15961 Note
15962 \series default
15963 : The changed shape only applies to the current paragraph; everything is
15964  reset to normal for the next paragraph.
15965  Therefore the shape definition file must be input into every paragraph
15966  with the desired shape.
15967 \end_layout
15968
15969 \end_inset
15970
15971
15972 \end_layout
15973
15974 \begin_layout Standard
15975 \begin_inset VSpace bigskip
15976 \end_inset
15977
15978
15979 \end_layout
15980
15981 \begin_layout Standard
15982 Here is an example:
15983 \end_layout
15984
15985 \begin_layout Standard
15986 \begin_inset VSpace bigskip
15987 \end_inset
15988
15989
15990 \end_layout
15991
15992 \begin_layout Standard
15993 \begin_inset CommandInset include
15994 LatexCommand input
15995 filename "SpecialParagraphShape.tex"
15996 literal "true"
15997
15998 \end_inset
15999
16000
16001 \lang latin
16002 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16003  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16004  voluptua.
16005  At vero eos et accusam et justo duo dolores et ea rebum.
16006  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16007  sit amet.
16008  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16009  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16010  voluptua.
16011 \end_layout
16012
16013 \begin_layout Standard
16014 \begin_inset VSpace bigskip
16015 \end_inset
16016
16017
16018 \end_layout
16019
16020 \begin_layout Standard
16021
16022 \series bold
16023 A tip:
16024 \series default
16025  to draw complexer shapes in 
16026 \family sans
16027 Jpgfdraw
16028 \family default
16029  you can draw the shape in a program of your choice and import the resulting
16030  image to 
16031 \family sans
16032 Jpgfdraw
16033 \family default
16034 .
16035  Then you only need to draw a line or spline along the outline of the image.
16036 \end_layout
16037
16038 \begin_layout Standard
16039 \begin_inset VSpace bigskip
16040 \end_inset
16041
16042
16043 \end_layout
16044
16045 \begin_layout Standard
16046 The module 
16047 \family sans
16048 Custom paragraph shapes
16049 \family default
16050  also provides the two commands 
16051 \family sans
16052 shapepar
16053 \family default
16054  and 
16055 \family sans
16056 Shapepar
16057 \family default
16058  which can be used to define custom shapes coordinate by coordinate.
16059 \begin_inset Foot
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063 These commands are internally used for all shapes described here.
16064 \end_layout
16065
16066 \end_inset
16067
16068  For information how these styles are used and about further customization
16069  possibilities, have a look at the 
16070 \begin_inset CommandInset href
16071 LatexCommand href
16072 name "documentation"
16073 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
16074 literal "false"
16075
16076 \end_inset
16077
16078  of the package 
16079 \begin_inset Flex Code
16080 status collapsed
16081
16082 \begin_layout Plain Layout
16083 shapepar
16084 \end_layout
16085
16086 \end_inset
16087
16088 .
16089 \end_layout
16090
16091 \begin_layout Chapter
16092
16093 \change_deleted 564990737 1671304317
16094 Customizing 
16095 \change_unchanged
16096 Bibliograph
16097 \change_inserted 564990737 1671304322
16098 y
16099 \change_deleted 564990737 1671304331
16100 ies with Bib\SpecialChar TeX
16101  or Biblatex
16102 \change_unchanged
16103
16104 \end_layout
16105
16106 \begin_layout Standard
16107 The most basic information about how to use Bib\SpecialChar TeX
16108  or 
16109 \family sans
16110 Biblatex
16111 \family default
16112  with \SpecialChar LyX
16113  is contained in the section 
16114 \emph on
16115 Bibliography databases
16116 \emph default
16117  of the 
16118 \emph on
16119 User's Guide
16120 \emph default
16121 .
16122  The following subsections explain special bibliography features supported
16123  by \SpecialChar LyX
16124 .
16125 \end_layout
16126
16127 \begin_layout Section
16128 Alternative Citation Styles
16129 \end_layout
16130
16131 \begin_layout Standard
16132 Standard Bib\SpecialChar TeX
16133  uses numbers (e.
16134 \begin_inset space \thinspace{}
16135 \end_inset
16136
16137 g.
16138 \begin_inset space \space{}
16139 \end_inset
16140
16141
16142 \begin_inset Quotes eld
16143 \end_inset
16144
16145 [12]
16146 \begin_inset Quotes erd
16147 \end_inset
16148
16149 ) to refer to a cited work.
16150  However, in many scientific disciplines, other citation styles are in use.
16151  The most common one is the author-year style (e.
16152 \begin_inset space \thinspace{}
16153 \end_inset
16154
16155 g.
16156 \begin_inset space \space{}
16157 \end_inset
16158
16159
16160 \begin_inset Quotes eld
16161 \end_inset
16162
16163 Knuth 1984a
16164 \begin_inset Quotes erd
16165 \end_inset
16166
16167 ).
16168  \SpecialChar LyX
16169  supports three packages that provide this style, 
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 biblatex
16175 \end_layout
16176
16177 \end_inset
16178
16179
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184 natbib
16185 \end_layout
16186
16187 \end_inset
16188
16189 , and 
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194 jurabib
16195 \end_layout
16196
16197 \end_inset
16198
16199 .
16200  Each of these packages has their pros and cons, which cannot be listed
16201  in detail.
16202  If you only want to have simple author-year (or author-numerical) style,
16203  or if you want to use one of the countless style files for 
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 natbib
16209 \end_layout
16210
16211 \end_inset
16212
16213 , then the established 
16214 \begin_inset Flex Code
16215 status collapsed
16216
16217 \begin_layout Plain Layout
16218 natbib
16219 \end_layout
16220
16221 \end_inset
16222
16223  package is probably your choice.
16224  If you look for specific citation styles common in law studies, you might
16225  consider the 
16226 \begin_inset Flex Code
16227 status collapsed
16228
16229 \begin_layout Plain Layout
16230 jurabib
16231 \end_layout
16232
16233 \end_inset
16234
16235  package.
16236  If you want to have full control over the formatting or look for advanced
16237  features such as ibidem, footnote citations, full title citations, advanced
16238  date formats (such as 400 BC) or full localization to other languages than
16239  English, you should definitely consider 
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 biblatex
16245 \end_layout
16246
16247 \end_inset
16248
16249 , which exceeds all other packages in terms of features, but is also quite
16250  heavy and more resource-hungry.
16251 \end_layout
16252
16253 \begin_layout Standard
16254 The handling of these packages in \SpecialChar LyX
16255  is basically the same.
16256  Go to 
16257 \begin_inset Flex Noun
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 Document\SpecialChar menuseparator
16262 Settings
16263 \end_layout
16264
16265 \end_inset
16266
16267  and select under 
16268 \begin_inset Flex Noun
16269 status collapsed
16270
16271 \begin_layout Plain Layout
16272 Bibliography
16273 \end_layout
16274
16275 \end_inset
16276
16277  the 
16278 \begin_inset Flex Noun
16279 status collapsed
16280
16281 \begin_layout Plain Layout
16282 Style Format
16283 \end_layout
16284
16285 \end_inset
16286
16287  
16288 \begin_inset Flex Noun
16289 status collapsed
16290
16291 \begin_layout Plain Layout
16292 Basic (BibTeX)
16293 \end_layout
16294
16295 \end_inset
16296
16297
16298 \begin_inset Flex Noun
16299 status collapsed
16300
16301 \begin_layout Plain Layout
16302 Biblatex
16303 \end_layout
16304
16305 \end_inset
16306
16307
16308 \begin_inset Flex Noun
16309 status collapsed
16310
16311 \begin_layout Plain Layout
16312 Biblatex (Natbib mode)
16313 \end_layout
16314
16315 \end_inset
16316
16317
16318 \begin_inset Flex Noun
16319 status collapsed
16320
16321 \begin_layout Plain Layout
16322 Natbib (BibTeX)
16323 \end_layout
16324
16325 \end_inset
16326
16327  or 
16328 \begin_inset Flex Noun
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 Jurabib (BibTeX)
16333 \end_layout
16334
16335 \end_inset
16336
16337  (see sec.
16338 \begin_inset space ~
16339 \end_inset
16340
16341 6.5.3 in the User's Guide for more information on these choices).
16342  With all these packages, you will get some extra features in the citation
16343  dialog and you can select the style of the reference (
16344 \begin_inset Quotes eld
16345 \end_inset
16346
16347 Knuth 1984
16348 \begin_inset Quotes erd
16349 \end_inset
16350
16351
16352 \begin_inset Quotes eld
16353 \end_inset
16354
16355 Knuth (1984)
16356 \begin_inset Quotes erd
16357 \end_inset
16358
16359
16360 \begin_inset Quotes eld
16361 \end_inset
16362
16363 Knuth, 1984
16364 \begin_inset Quotes erd
16365 \end_inset
16366
16367
16368 \begin_inset Quotes eld
16369 \end_inset
16370
16371 1984
16372 \begin_inset Quotes erd
16373 \end_inset
16374
16375  etc.).
16376  Note that either package needs specifically designed style files.
16377  They all ship their own, but there are lots of additional style files,
16378  and there is even an interactive style file builder
16379 \begin_inset Foot
16380 status collapsed
16381
16382 \begin_layout Plain Layout
16383 See 
16384 \begin_inset Flex URL
16385 status open
16386
16387 \begin_layout Plain Layout
16388
16389 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
16390 \end_layout
16391
16392 \end_inset
16393
16394
16395 \end_layout
16396
16397 \end_inset
16398
16399  for 
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 natbib
16405 \end_layout
16406
16407 \end_inset
16408
16409 .
16410 \end_layout
16411
16412 \begin_layout Section
16413 Subdivided Bibliographies
16414 \end_layout
16415
16416 \begin_layout Standard
16417 Sometimes you might need to divide your bibliography into several sections.
16418  If you are for instance a historian, the possibility to separate sources
16419  and scientific works is most likely a 
16420 \begin_inset Quotes eld
16421 \end_inset
16422
16423 must have
16424 \begin_inset Quotes erd
16425 \end_inset
16426
16427 .
16428  Unfortunately, Bib\SpecialChar TeX
16429  itself does not allow you to do this.
16430  But with the help of some \SpecialChar LaTeX
16431  packages, Bib\SpecialChar TeX
16432  can be extended to fit your needs.
16433 \end_layout
16434
16435 \begin_layout Standard
16436 \SpecialChar LyX
16437  provides native support for one of these packages, 
16438 \family typewriter
16439 bibtopic
16440 \family default
16441 .
16442 \begin_inset Foot
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446 Available from 
16447 \begin_inset Flex URL
16448 status open
16449
16450 \begin_layout Plain Layout
16451
16452 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
16453 \end_layout
16454
16455 \end_inset
16456
16457
16458 \end_layout
16459
16460 \end_inset
16461
16462  The advantage of this package (compared to other packages such as 
16463 \family typewriter
16464 multibib
16465 \family default
16466 ) is that you don't need to define new citation commands.
16467  Instead, you need to prepare different bibliographic databases which include
16468  the entries for the different sections of the bibliography.
16469  For example: If you want to divide your bibliography into the sections
16470  
16471 \begin_inset Quotes eld
16472 \end_inset
16473
16474 Sources
16475 \begin_inset Quotes erd
16476 \end_inset
16477
16478  and 
16479 \begin_inset Quotes eld
16480 \end_inset
16481
16482 Scientific works
16483 \begin_inset Quotes erd
16484 \end_inset
16485
16486 , you first need to create two bibliographic databases, e.
16487 \begin_inset space \thinspace{}
16488 \end_inset
16489
16490 g.
16491 \begin_inset space \space{}
16492 \end_inset
16493
16494
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499 sources.bib
16500 \end_layout
16501
16502 \end_inset
16503
16504  and 
16505 \begin_inset Flex Code
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509 scientific.bib
16510 \end_layout
16511
16512 \end_inset
16513
16514 .
16515  
16516 \end_layout
16517
16518 \begin_layout Standard
16519 Go to 
16520 \begin_inset Flex Noun
16521 status collapsed
16522
16523 \begin_layout Plain Layout
16524 Document\SpecialChar menuseparator
16525 Settings
16526 \end_layout
16527
16528 \end_inset
16529
16530  and check under 
16531 \begin_inset Flex Noun
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 Bibliography
16536 \end_layout
16537
16538 \end_inset
16539
16540  the option 
16541 \begin_inset Flex Noun
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 Subdivided bibliography
16546 \end_layout
16547
16548 \end_inset
16549
16550 .
16551  Now you can insert multiple Bib\SpecialChar TeX
16552  bibliographies, one for each section of
16553  your bibliography.
16554  Returning to our example: Insert the Bib\SpecialChar TeX
16555  bibliography 
16556 \begin_inset Flex Code
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560 sources.bib
16561 \end_layout
16562
16563 \end_inset
16564
16565  and a second one for the database 
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570 scientific.bib
16571 \end_layout
16572
16573 \end_inset
16574
16575 .
16576  You are free to use the same or different styles for each section.
16577  Additionally, you can choose if the bibliography section should contain
16578  
16579 \begin_inset Quotes eld
16580 \end_inset
16581
16582 all cited references
16583 \begin_inset Quotes erd
16584 \end_inset
16585
16586  of the specified database(s) (which is the default), 
16587 \begin_inset Quotes eld
16588 \end_inset
16589
16590 all uncited references
16591 \begin_inset Quotes erd
16592 \end_inset
16593
16594  or even 
16595 \begin_inset Quotes eld
16596 \end_inset
16597
16598 all references
16599 \begin_inset Quotes erd
16600 \end_inset
16601
16602 .
16603  This might be useful if you would like to separate your bibliography into
16604  three sections: 
16605 \begin_inset Quotes eld
16606 \end_inset
16607
16608 Cited sources
16609 \begin_inset Quotes erd
16610 \end_inset
16611
16612
16613 \begin_inset Quotes eld
16614 \end_inset
16615
16616 Uncited sources
16617 \begin_inset Quotes erd
16618 \end_inset
16619
16620 , and 
16621 \begin_inset Quotes eld
16622 \end_inset
16623
16624 Scientific works
16625 \begin_inset Quotes erd
16626 \end_inset
16627
16628 .
16629  The titles for the sections can be added as ordinary sections or subsections.
16630  Since 
16631 \begin_inset Flex Code
16632 status collapsed
16633
16634 \begin_layout Plain Layout
16635 bibtopic
16636 \end_layout
16637
16638 \end_inset
16639
16640  removes the bibliography title, you have to manually re-add that, too (as
16641  a chapter* or section*, for instance).
16642 \end_layout
16643
16644 \begin_layout Standard
16645 With 
16646 \family sans
16647 Biblatex
16648 \family default
16649 , the procedure is a bit different.
16650  Since 
16651 \family typewriter
16652 bibtopic
16653 \family default
16654  does not work with 
16655 \family sans
16656 Biblatex
16657 \family default
16658 , the aforementioned 
16659 \begin_inset Flex Noun
16660 status collapsed
16661
16662 \begin_layout Plain Layout
16663 Subdivided bibliography
16664 \end_layout
16665
16666 \end_inset
16667
16668  option is disabled if you use 
16669 \family sans
16670 Biblatex
16671 \family default
16672 .
16673  However, 
16674 \family sans
16675 Biblatex
16676 \family default
16677  provides its own means to generate subdivided bibliographies.
16678  You can either add keywords to bibliography entries via the 
16679 \begin_inset Flex Code
16680 status collapsed
16681
16682 \begin_layout Plain Layout
16683 keywords
16684 \end_layout
16685
16686 \end_inset
16687
16688  entry option and then filter bibliography sections by keyword (by adding
16689  
16690 \begin_inset Flex Code
16691 status collapsed
16692
16693 \begin_layout Plain Layout
16694 keyword=mykeyword
16695 \end_layout
16696
16697 \end_inset
16698
16699  to the 
16700 \begin_inset Flex Noun
16701 status collapsed
16702
16703 \begin_layout Plain Layout
16704 Options
16705 \end_layout
16706
16707 \end_inset
16708
16709  field of the dialog that opens if you left-click on the 
16710 \begin_inset Flex Noun
16711 status collapsed
16712
16713 \begin_layout Plain Layout
16714 Biblatex Generated Bibliography
16715 \end_layout
16716
16717 \end_inset
16718
16719  button), or you can filter by entry types (such as 
16720 \emph on
16721 book
16722 \emph default
16723  or 
16724 \emph on
16725 article
16726 \emph default
16727 ) by entering e.
16728 \begin_inset space \thinspace{}
16729 \end_inset
16730
16731 g.
16732  
16733 \begin_inset Flex Code
16734 status collapsed
16735
16736 \begin_layout Plain Layout
16737 type=book
16738 \end_layout
16739
16740 \end_inset
16741
16742  or 
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747 nottype=collection
16748 \end_layout
16749
16750 \end_inset
16751
16752  to the mentioned 
16753 \begin_inset Flex Noun
16754 status collapsed
16755
16756 \begin_layout Plain Layout
16757 Options
16758 \end_layout
16759
16760 \end_inset
16761
16762  field, or you can create so-called 
16763 \begin_inset Quotes eld
16764 \end_inset
16765
16766 Bibliography Categories
16767 \begin_inset Quotes erd
16768 \end_inset
16769
16770  to which you can assign individual entries.
16771  Please refer to the Biblatex manual, section 
16772 \emph on
16773 Subdivided Bibliographies
16774 \emph default
16775 , for details.
16776 \end_layout
16777
16778 \begin_layout Section
16779 Multiple Bibliographies
16780 \begin_inset CommandInset label
16781 LatexCommand label
16782 name "subsec:Multiple-Bibliographies"
16783
16784 \end_inset
16785
16786
16787 \end_layout
16788
16789 \begin_layout Standard
16790 Multiple bibliographies, e.
16791 \begin_inset space \thinspace{}
16792 \end_inset
16793
16794 g.
16795 \begin_inset space \space{}
16796 \end_inset
16797
16798 a bibliography for each part, chapter, section, subsection or child (sub-documen
16799 t) of the document, are also supported by \SpecialChar LyX
16800 .
16801  In order to enable it, go to 
16802 \begin_inset Flex Noun
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 Document\SpecialChar menuseparator
16807 Settings\SpecialChar menuseparator
16808 Bibliography
16809 \end_layout
16810
16811 \end_inset
16812
16813  and select the relevant unit (e.
16814 \begin_inset space \thinspace{}
16815 \end_inset
16816
16817 g., 
16818 \begin_inset Quotes eld
16819 \end_inset
16820
16821 per section
16822 \begin_inset Quotes erd
16823 \end_inset
16824
16825 ) in the 
16826 \begin_inset Flex Noun
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 Multiple Bibliographies
16831 \end_layout
16832
16833 \end_inset
16834
16835  combo box.
16836  Then add a Bib(la)\SpecialChar TeX
16837  bibliography to each unit (e.
16838 \begin_inset space \thinspace{}
16839 \end_inset
16840
16841 g., section) of your document.
16842  In the output, a separate bibliography, containing only the references
16843  done in the current unit is generated.
16844 \end_layout
16845
16846 \begin_layout Standard
16847 If you use Bib\SpecialChar TeX
16848 , either the 
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853 chapterbib
16854 \end_layout
16855
16856 \end_inset
16857
16858  or the 
16859 \begin_inset Flex Code
16860 status collapsed
16861
16862 \begin_layout Plain Layout
16863 bibtopic
16864 \end_layout
16865
16866 \end_inset
16867
16868  package is used to create multiple bibliographies.
16869  The former package is used if you select 
16870 \begin_inset Quotes eld
16871 \end_inset
16872
16873 per child document
16874 \begin_inset Quotes erd
16875 \end_inset
16876
16877  and do 
16878 \emph on
16879 not
16880 \emph default
16881  check 
16882 \begin_inset Flex Noun
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 Sectioned Bibliography
16887 \end_layout
16888
16889 \end_inset
16890
16891 .
16892  In all other cases, 
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897 bibtopic
16898 \end_layout
16899
16900 \end_inset
16901
16902  is used.
16903 \begin_inset Foot
16904 status collapsed
16905
16906 \begin_layout Plain Layout
16907 An alternative approach, if you are willing to use some 
16908 \begin_inset Flex Noun
16909 status collapsed
16910
16911 \begin_layout Plain Layout
16912 \SpecialChar TeX
16913  Code
16914 \end_layout
16915
16916 \end_inset
16917
16918  (see section
16919 \begin_inset space ~
16920 \end_inset
16921
16922
16923 \begin_inset CommandInset ref
16924 LatexCommand ref
16925 reference "sec:Inserting-TeX-Code"
16926
16927 \end_inset
16928
16929 ), is to use the 
16930 \begin_inset Flex Code
16931 status collapsed
16932
16933 \begin_layout Plain Layout
16934 bibunits
16935 \end_layout
16936
16937 \end_inset
16938
16939  package.
16940 \end_layout
16941
16942 \end_inset
16943
16944  If 
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 bibtopic
16950 \end_layout
16951
16952 \end_inset
16953
16954  is used, \SpecialChar LyX
16955  encloses the specified units in 
16956 \begin_inset Flex Code
16957 status collapsed
16958
16959 \begin_layout Plain Layout
16960 bibtopic
16961 \end_layout
16962
16963 \end_inset
16964
16965 's 
16966 \begin_inset Flex Code
16967 status collapsed
16968
16969 \begin_layout Plain Layout
16970
16971 \backslash
16972 begin{btUnit}
16973 \end_layout
16974
16975 \end_inset
16976
16977  and 
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982
16983 \backslash
16984 end{btUnit}
16985 \end_layout
16986
16987 \end_inset
16988
16989  in order to create the units.
16990  Note that this approach has some limitations.
16991  First, every citation reference has to be inside some 
16992 \begin_inset Flex Code
16993 status collapsed
16994
16995 \begin_layout Plain Layout
16996 btUnit
16997 \end_layout
16998
16999 \end_inset
17000
17001 .
17002  So citations outside a defined unit (e.
17003 \begin_inset space \thinspace{}
17004 \end_inset
17005
17006 g., before the first section if you use 
17007 \begin_inset Quotes eld
17008 \end_inset
17009
17010 by section
17011 \begin_inset Quotes erd
17012 \end_inset
17013
17014 ) will appear as 
17015 \begin_inset Quotes eld
17016 \end_inset
17017
17018 ???
17019 \begin_inset Quotes erd
17020 \end_inset
17021
17022 .
17023  You can also create your own units by entering 
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028
17029 \backslash
17030 begin{btUnit}
17031 \end_layout
17032
17033 \end_inset
17034
17035  and 
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040
17041 \backslash
17042 end{btUnit}
17043 \end_layout
17044
17045 \end_inset
17046
17047  as \SpecialChar TeX
17048  code (for instance to work around the mentioned limitation).
17049  Note, though, that 
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054 btUnit
17055 \end_layout
17056
17057 \end_inset
17058
17059 s cannot be nested.
17060  A second limitation is that 
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 bibtopic
17066 \end_layout
17067
17068 \end_inset
17069
17070  always processes all references of a bibliography database, even if they
17071  are not cited.
17072  This can result in odd labels (e.
17073 \begin_inset space \thinspace{}
17074 \end_inset
17075
17076 g.
17077  
17078 \begin_inset Quotes eld
17079 \end_inset
17080
17081 Miller 2014b
17082 \begin_inset Quotes erd
17083 \end_inset
17084
17085  if two works of this author from 2014 are in the database, even if only
17086  one is cited).
17087 \end_layout
17088
17089 \begin_layout Standard
17090 If you use 
17091 \family sans
17092 Biblatex
17093 \family default
17094 , the 
17095 \begin_inset Flex Code
17096 status collapsed
17097
17098 \begin_layout Plain Layout
17099 refsection
17100 \end_layout
17101
17102 \end_inset
17103
17104  option is used instead.
17105  If you need specific units, you can start them with the \SpecialChar TeX
17106  code 
17107 \begin_inset Flex Code
17108 status collapsed
17109
17110 \begin_layout Plain Layout
17111
17112 \backslash
17113 newrefsection
17114 \end_layout
17115
17116 \end_inset
17117
17118  or 
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123
17124 \backslash
17125 newrefsegment
17126 \end_layout
17127
17128 \end_inset
17129
17130 , respectively.
17131  If you also want to control the end of the unit, use the environment 
17132 \begin_inset Flex Code
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136
17137 \backslash
17138 begin{refsection}
17139 \end_layout
17140
17141 \end_inset
17142
17143  \SpecialChar ldots
17144  
17145 \begin_inset Flex Code
17146 status collapsed
17147
17148 \begin_layout Plain Layout
17149
17150 \backslash
17151 end{refsection}
17152 \end_layout
17153
17154 \end_inset
17155
17156  instead.
17157  Note, though, that 
17158 \begin_inset Flex Code
17159 status collapsed
17160
17161 \begin_layout Plain Layout
17162 refsection
17163 \end_layout
17164
17165 \end_inset
17166
17167 s cannot be nested.
17168  In addition to the individual bibliography of the current unit, 
17169 \family sans
17170 Biblatex
17171 \family default
17172  also provides an easy way to output all bibliographies, subsequently, at
17173  one place (e.
17174 \begin_inset space \thinspace{}
17175 \end_inset
17176
17177 g., at the end of the document).
17178  Select 
17179 \begin_inset Quotes eld
17180 \end_inset
17181
17182 all reference units
17183 \begin_inset Quotes erd
17184 \end_inset
17185
17186  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
17187  this.
17188  Please refer to the 
17189 \family sans
17190 Biblatex
17191 \family default
17192  manual for more information on this topic.
17193 \end_layout
17194
17195 \begin_layout Chapter
17196
17197 \change_deleted 564990737 1671355654
17198 Itemize 
17199 \change_unchanged
17200 Bullet
17201 \change_inserted 564990737 1671355667
17202 s
17203 \change_deleted 564990737 1671355661
17204  Selection
17205 \change_inserted 564990737 1671355684
17206
17207 \begin_inset CommandInset label
17208 LatexCommand label
17209 name "chap:bullets"
17210
17211 \end_inset
17212
17213
17214 \change_deleted 564990737 1671355684
17215
17216 \begin_inset CommandInset label
17217 LatexCommand label
17218 name "sec:bullet"
17219
17220 \end_inset
17221
17222
17223 \change_unchanged
17224
17225 \end_layout
17226
17227 \begin_layout Standard
17228 by
17229 \noun on
17230  Allan Rae
17231 \end_layout
17232
17233 \begin_layout Section
17234 Introduction
17235 \end_layout
17236
17237 \begin_layout Standard
17238 \SpecialChar LyX
17239  provides 216 bullet shapes that can be accessed from a simple dialog.
17240  Using this dialog you can easily specify what bullet shape to use at each
17241  level of an itemized list.
17242  These settings are document-wide so you won't be able to specify different
17243  sets of bullets for different paragraphs.
17244 \begin_inset Foot
17245 status collapsed
17246
17247 \begin_layout Plain Layout
17248 Well, actually you can but you'll have to do it by hand.
17249 \end_layout
17250
17251 \end_inset
17252
17253
17254 \end_layout
17255
17256 \begin_layout Section
17257 How it looks
17258 \end_layout
17259
17260 \begin_layout Standard
17261 Open the dialog by selecting the 
17262 \begin_inset Flex Noun
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 Document\SpecialChar menuseparator
17267 Settings
17268 \end_layout
17269
17270 \end_inset
17271
17272  menu item and then select the 
17273 \begin_inset Flex Noun
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277 Bullets
17278 \end_layout
17279
17280 \end_inset
17281
17282  tab.
17283 \end_layout
17284
17285 \begin_layout Standard
17286 The dialog provides you with a table of bullet shapes.
17287  A column of buttons on the left of the table provides access to the six
17288  different panels of bullet shapes.
17289  The row of buttons across the top is used to select which bullet depth
17290  you are changing.
17291
17292 \change_deleted 244031559 1603875981
17293  A text entry under the table shows the currently selected bullet shape's
17294  \SpecialChar LaTeX
17295  equivalent and this can be edited if desired.
17296  If you do modify the text you will also need to specify any needed packages
17297  in the \SpecialChar LaTeX
17298  preamble.
17299 \change_unchanged
17300
17301 \end_layout
17302
17303 \begin_layout Standard
17304 The six panels are divided up by the packages they require.
17305  The following table shows the mappings from button name to \SpecialChar LaTeX
17306  package.
17307 \end_layout
17308
17309 \begin_layout Standard
17310 \align center
17311 \begin_inset Tabular
17312 <lyxtabular version="3" rows="7" columns="2">
17313 <features tabularvalignment="middle">
17314 <column alignment="center" valignment="top" width="0pt">
17315 <column alignment="center" valignment="top" width="0pt">
17316 <row>
17317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17318 \begin_inset Text
17319
17320 \begin_layout Plain Layout
17321
17322 \family roman
17323 \series medium
17324 \shape up
17325 \size normal
17326 \emph off
17327 \bar no
17328 \noun off
17329 \color none
17330 Button
17331 \end_layout
17332
17333 \end_inset
17334 </cell>
17335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17336 \begin_inset Text
17337
17338 \begin_layout Plain Layout
17339
17340 \family roman
17341 \series medium
17342 \shape up
17343 \size normal
17344 \emph off
17345 \bar no
17346 \noun off
17347 \color none
17348 Packages Required
17349 \end_layout
17350
17351 \end_inset
17352 </cell>
17353 </row>
17354 <row>
17355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17356 \begin_inset Text
17357
17358 \begin_layout Plain Layout
17359
17360 \family sans
17361 \series medium
17362 \shape up
17363 \size normal
17364 \emph off
17365 \bar no
17366 \noun off
17367 \color none
17368 Standard
17369 \end_layout
17370
17371 \end_inset
17372 </cell>
17373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17374 \begin_inset Text
17375
17376 \begin_layout Plain Layout
17377
17378 \series medium
17379 \shape up
17380 \size normal
17381 \emph off
17382 \bar no
17383 \noun off
17384 \color none
17385 base \SpecialChar LaTeX
17386
17387 \end_layout
17388
17389 \end_inset
17390 </cell>
17391 </row>
17392 <row>
17393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17394 \begin_inset Text
17395
17396 \begin_layout Plain Layout
17397
17398 \family sans
17399 \series medium
17400 \shape up
17401 \size normal
17402 \emph off
17403 \bar no
17404 \noun off
17405 \color none
17406 Maths
17407 \end_layout
17408
17409 \end_inset
17410 </cell>
17411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17412 \begin_inset Text
17413
17414 \begin_layout Plain Layout
17415
17416 \family typewriter
17417 \series medium
17418 \shape up
17419 \size normal
17420 \emph off
17421 \bar no
17422 \noun off
17423 \color none
17424 amssymb.sty
17425 \end_layout
17426
17427 \end_inset
17428 </cell>
17429 </row>
17430 <row>
17431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17432 \begin_inset Text
17433
17434 \begin_layout Plain Layout
17435
17436 \family sans
17437 \series medium
17438 \shape up
17439 \size normal
17440 \emph off
17441 \bar no
17442 \noun off
17443 \color none
17444 Ding1
17445 \end_layout
17446
17447 \end_inset
17448 </cell>
17449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17450 \begin_inset Text
17451
17452 \begin_layout Plain Layout
17453
17454 \family typewriter
17455 \series medium
17456 \shape up
17457 \size normal
17458 \emph off
17459 \bar no
17460 \noun off
17461 \color none
17462 pifont.sty
17463 \end_layout
17464
17465 \end_inset
17466 </cell>
17467 </row>
17468 <row>
17469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17470 \begin_inset Text
17471
17472 \begin_layout Plain Layout
17473
17474 \family sans
17475 \series medium
17476 \shape up
17477 \size normal
17478 \emph off
17479 \bar no
17480 \noun off
17481 \color none
17482 Ding2
17483 \end_layout
17484
17485 \end_inset
17486 </cell>
17487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17488 \begin_inset Text
17489
17490 \begin_layout Plain Layout
17491
17492 \family typewriter
17493 \series medium
17494 \shape up
17495 \size normal
17496 \emph off
17497 \bar no
17498 \noun off
17499 \color none
17500 pifont.sty
17501 \end_layout
17502
17503 \end_inset
17504 </cell>
17505 </row>
17506 <row>
17507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17508 \begin_inset Text
17509
17510 \begin_layout Plain Layout
17511
17512 \family sans
17513 \series medium
17514 \shape up
17515 \size normal
17516 \emph off
17517 \bar no
17518 \noun off
17519 \color none
17520 Ding3
17521 \end_layout
17522
17523 \end_inset
17524 </cell>
17525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17526 \begin_inset Text
17527
17528 \begin_layout Plain Layout
17529
17530 \family typewriter
17531 \series medium
17532 \shape up
17533 \size normal
17534 \emph off
17535 \bar no
17536 \noun off
17537 \color none
17538 pifont.sty
17539 \end_layout
17540
17541 \end_inset
17542 </cell>
17543 </row>
17544 <row>
17545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17546 \begin_inset Text
17547
17548 \begin_layout Plain Layout
17549
17550 \family sans
17551 \series medium
17552 \shape up
17553 \size normal
17554 \emph off
17555 \bar no
17556 \noun off
17557 \color none
17558 Ding4
17559 \end_layout
17560
17561 \end_inset
17562 </cell>
17563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17564 \begin_inset Text
17565
17566 \begin_layout Plain Layout
17567
17568 \family typewriter
17569 \series medium
17570 \shape up
17571 \size normal
17572 \emph off
17573 \bar no
17574 \noun off
17575 \color none
17576 pifont.sty
17577 \end_layout
17578
17579 \end_inset
17580 </cell>
17581 </row>
17582 </lyxtabular>
17583
17584 \end_inset
17585
17586
17587 \end_layout
17588
17589 \begin_layout Standard
17590 \SpecialChar LyX
17591  doesn't stop you using bullets from packages you don't have.
17592  If you get errors from \SpecialChar LaTeX
17593  when you try to view or print the file, then it
17594  is likely you are missing a package.
17595 \begin_inset Foot
17596 status collapsed
17597
17598 \begin_layout Plain Layout
17599 \SpecialChar LyX
17600  doesn't restrict your use since you may be editing locally and exporting
17601  elsewhere.
17602 \end_layout
17603
17604 \end_inset
17605
17606
17607 \end_layout
17608
17609 \begin_layout Section
17610 How to use it
17611 \end_layout
17612
17613 \begin_layout Standard
17614 Select which bullet depth you want to change then select the bullet shape
17615  and size.
17616  Any changes will not be visible in \SpecialChar LyX
17617 , but are visible when viewing the document.
17618 \end_layout
17619
17620 \begin_layout Standard
17621 You can reset a bullet shape to the default simply by clicking your right
17622  mouse button on the appropriate bullet depth button.
17623 \begin_inset Foot
17624 status open
17625
17626 \begin_layout Plain Layout
17627 If you 
17628 \emph on
17629 really
17630 \emph default
17631  want to have multiple sets of paragraphs with different sets of bullets
17632  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
17633  code.
17634  The bullet selection dialog can help though because it provides you with
17635  the \SpecialChar LaTeX
17636  code for a wide range of bullet shapes.
17637  To make your own custom paragraphs you have the following options:
17638 \end_layout
17639
17640 \begin_layout Plain Layout
17641 \begin_inset ERT
17642 status open
17643
17644 \begin_layout Plain Layout
17645
17646
17647 \backslash
17648 let
17649 \backslash
17650 savelabelitemi=
17651 \backslash
17652 labelitemi
17653 \end_layout
17654
17655 \end_inset
17656
17657
17658 \end_layout
17659
17660 \begin_layout Plain Layout
17661 \begin_inset ERT
17662 status open
17663
17664 \begin_layout Plain Layout
17665
17666
17667 \backslash
17668 renewcommand
17669 \backslash
17670 labelitemi[0]{
17671 \backslash
17672 small
17673 \backslash
17674 (
17675 \backslash
17676 sharp
17677 \backslash
17678 )}
17679 \end_layout
17680
17681 \end_inset
17682
17683
17684 \end_layout
17685
17686 \begin_layout Itemize
17687 Use the \SpecialChar LaTeX
17688  command 
17689 \begin_inset Flex Code
17690 status collapsed
17691
17692 \begin_layout Plain Layout
17693
17694 \backslash
17695 renewcommand{}{}
17696 \end_layout
17697
17698 \end_inset
17699
17700  to specify a new bullet shape for a given depth.
17701  You'll also need to save the current bullet shape so you can restore it
17702  again afterwards.
17703  In this itemized list the following \SpecialChar LaTeX
17704  code was used to change the bullet
17705  used for the first depth.
17706 \end_layout
17707
17708 \begin_deeper
17709 \begin_layout LyX-Code
17710
17711 \backslash
17712 let
17713 \backslash
17714 savelabelitemi=
17715 \backslash
17716 labelitemi 
17717 \end_layout
17718
17719 \begin_layout LyX-Code
17720
17721 \backslash
17722 renewcommand
17723 \backslash
17724 labelitemi[0]{
17725 \backslash
17726 small
17727 \backslash
17728 (
17729 \backslash
17730 sharp
17731 \backslash
17732 )}
17733 \end_layout
17734
17735 \end_deeper
17736 \begin_layout Itemize
17737 Note that the itemize depth is specified in Roman numerals as part of the
17738  
17739 \family typewriter
17740
17741 \backslash
17742 labelitem
17743 \family default
17744  command.
17745 \end_layout
17746
17747 \begin_layout Itemize
17748 \begin_inset Argument item:1
17749 status open
17750
17751 \begin_layout Plain Layout
17752 \begin_inset ERT
17753 status open
17754
17755 \begin_layout Plain Layout
17756
17757
17758 \backslash
17759 (
17760 \backslash
17761 star
17762 \backslash
17763 )
17764 \end_layout
17765
17766 \end_inset
17767
17768
17769 \end_layout
17770
17771 \end_inset
17772
17773  Specify each individual entry by starting each item with the bullet shape
17774  enclosed in a 
17775 \begin_inset Quotes eld
17776 \end_inset
17777
17778 Custom Item
17779 \begin_inset Quotes erd
17780 \end_inset
17781
17782  inset (available at 
17783 \family sans
17784 Insert\SpecialChar menuseparator
17785 Custom Item
17786 \family default
17787 ) and set as 
17788 \begin_inset Flex Noun
17789 status collapsed
17790
17791 \begin_layout Plain Layout
17792 \SpecialChar TeX
17793  Code
17794 \end_layout
17795
17796 \end_inset
17797
17798 .
17799  For example, this item was started with 
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804
17805 \backslash
17806 (
17807 \backslash
17808 star
17809 \backslash
17810 )
17811 \end_layout
17812
17813 \end_inset
17814
17815 .
17816 \end_layout
17817
17818 \begin_layout Plain Layout
17819 \begin_inset ERT
17820 status open
17821
17822 \begin_layout Plain Layout
17823
17824
17825 \backslash
17826 renewcommand
17827 \backslash
17828 labelitemi[0]{
17829 \backslash
17830 savelabelitemi}
17831 \end_layout
17832
17833 \end_inset
17834
17835
17836 \end_layout
17837
17838 \begin_layout Plain Layout
17839 You'll also need to revert the labelitem back to its previous setting for
17840  the global bullet shape settings to remain in effect.
17841  The way used here was:
17842 \end_layout
17843
17844 \begin_layout LyX-Code
17845
17846 \backslash
17847 renewcommand
17848 \backslash
17849 labelitemi[0]{
17850 \backslash
17851 savelabelitemi}
17852 \end_layout
17853
17854 \end_inset
17855
17856
17857 \end_layout
17858
17859 \begin_layout Chapter
17860 Supplemental Tools
17861 \end_layout
17862
17863 \begin_layout Section
17864 Multipart Documents
17865 \end_layout
17866
17867 \begin_layout Subsection
17868 General Operation
17869 \end_layout
17870
17871 \begin_layout Standard
17872 When you are working on a large file with many sections, it is often convenient
17873  to break up the document into several files, or perhaps you have something
17874  where a table may change from time to time, but the preceding text does
17875  not.
17876  In these cases, you should seriously consider using multipart documents.
17877  For example, scientific papers often have five major sections: the introduction
17878 , observations, results, discussion, and conclusion.
17879  Each of these could be its own separate \SpecialChar LyX
17880  file, with one 
17881 \begin_inset Quotes eld
17882 \end_inset
17883
17884 master
17885 \begin_inset Quotes erd
17886 \end_inset
17887
17888  file which contains the title, authors, abstract, references, etc., plus
17889  the five included files.
17890  It is important to note that each of these files is a full \SpecialChar LyX
17891  file which
17892  can be formatted and printed on its own, as well as included in a master
17893  file.
17894  Each of these files must have the same document class, however—don't attempt
17895  to mix book classes with article classes.
17896  You may also include \SpecialChar LaTeX
17897  files; however, these files must not have their own
17898  preamble (i.
17899 \begin_inset space \thinspace{}
17900 \end_inset
17901
17902 e.
17903 \begin_inset space \space{}
17904 \end_inset
17905
17906 everything up to and including the 
17907 \begin_inset Flex Code
17908 status collapsed
17909
17910 \begin_layout Plain Layout
17911
17912 \backslash
17913 begin{document}
17914 \end_layout
17915
17916 \end_inset
17917
17918  line as well as the 
17919 \begin_inset Flex Code
17920 status collapsed
17921
17922 \begin_layout Plain Layout
17923
17924 \backslash
17925 end{document}
17926 \end_layout
17927
17928 \end_inset
17929
17930  line must be deleted) or else errors will be generated when you try to
17931  make a DVI file.
17932 \end_layout
17933
17934 \begin_layout Standard
17935 \SpecialChar LyX
17936  allows you to include files quite easily with 
17937 \begin_inset Flex Noun
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 Insert\SpecialChar menuseparator
17942 Child
17943 \begin_inset space ~
17944 \end_inset
17945
17946 Document
17947 \end_layout
17948
17949 \end_inset
17950
17951 .
17952  When you click on this selection a small box is inserted into the file
17953  at the current cursor location.
17954  Clicking on the box raises a dialog which allows you to select the file
17955  to be included, and the method of its inclusion.
17956  
17957 \end_layout
17958
17959 \begin_layout Standard
17960 The file selection box should by now be obvious.
17961  The three inclusion methods are 
17962 \begin_inset Quotes eld
17963 \end_inset
17964
17965 include
17966 \begin_inset Quotes erd
17967 \end_inset
17968
17969
17970 \begin_inset Quotes eld
17971 \end_inset
17972
17973 input
17974 \begin_inset Quotes erd
17975 \end_inset
17976
17977 , and 
17978 \begin_inset Quotes eld
17979 \end_inset
17980
17981 verbatim
17982 \begin_inset Quotes erd
17983 \end_inset
17984
17985 .
17986  The methods 
17987 \begin_inset Quotes eld
17988 \end_inset
17989
17990 include
17991 \begin_inset Quotes erd
17992 \end_inset
17993
17994  and 
17995 \begin_inset Quotes eld
17996 \end_inset
17997
17998 input
17999 \begin_inset Quotes erd
18000 \end_inset
18001
18002  are similar in many ways, but there are also some notable differences:
18003 \end_layout
18004
18005 \begin_layout Enumerate
18006 Files that are 
18007 \begin_inset Quotes eld
18008 \end_inset
18009
18010 included
18011 \begin_inset Quotes erd
18012 \end_inset
18013
18014  are typeset beginning on a new page, while files that are 
18015 \begin_inset Quotes eld
18016 \end_inset
18017
18018 inputted
18019 \begin_inset Quotes erd
18020 \end_inset
18021
18022  are typeset starting on the current page.
18023 \end_layout
18024
18025 \begin_layout Enumerate
18026 \begin_inset Quotes eld
18027 \end_inset
18028
18029 Included
18030 \begin_inset Quotes erd
18031 \end_inset
18032
18033  files cannot themselves 
18034 \begin_inset Quotes eld
18035 \end_inset
18036
18037 include
18038 \begin_inset Quotes erd
18039 \end_inset
18040
18041  further files (
18042 \begin_inset Quotes eld
18043 \end_inset
18044
18045 grandchilds
18046 \begin_inset Quotes erd
18047 \end_inset
18048
18049 ).
18050  With 
18051 \begin_inset Quotes eld
18052 \end_inset
18053
18054 input
18055 \begin_inset Quotes erd
18056 \end_inset
18057
18058 , on the other hand, infinite sub-inputting is possible.
18059 \end_layout
18060
18061 \begin_layout Enumerate
18062 \begin_inset Quotes eld
18063 \end_inset
18064
18065 Include
18066 \begin_inset Quotes erd
18067 \end_inset
18068
18069  allow for the output of only selected 
18070 \begin_inset Quotes eld
18071 \end_inset
18072
18073 included
18074 \begin_inset Quotes erd
18075 \end_inset
18076
18077  files, while maintaining the actual counters (pagination etc.) and references
18078  (please refer to the section 
18079 \emph on
18080 Child
18081 \begin_inset space ~
18082 \end_inset
18083
18084 Documents
18085 \emph default
18086  of the 
18087 \emph on
18088 Embedded
18089 \begin_inset space ~
18090 \end_inset
18091
18092 Objects
18093 \emph default
18094  manual for details).
18095 \end_layout
18096
18097 \begin_layout Standard
18098 Hence, 
18099 \begin_inset Quotes eld
18100 \end_inset
18101
18102 include
18103 \begin_inset Quotes erd
18104 \end_inset
18105
18106  is the preferred method for chapters that are outsourced to child documents,
18107  while 
18108 \begin_inset Quotes eld
18109 \end_inset
18110
18111 input
18112 \begin_inset Quotes erd
18113 \end_inset
18114
18115  is more suitable for arbitrary file inheritance.
18116 \end_layout
18117
18118 \begin_layout Standard
18119
18120 \begin_inset Quotes eld
18121 \end_inset
18122
18123 verbatim
18124 \begin_inset Quotes erd
18125 \end_inset
18126
18127  included file allows you to include a file typeset exactly as it appears
18128  in the file, i.
18129 \begin_inset space \thinspace{}
18130 \end_inset
18131
18132 e.
18133 \begin_inset space \space{}
18134 \end_inset
18135
18136 in 
18137 \begin_inset Flex Code
18138 status collapsed
18139
18140 \begin_layout Plain Layout
18141 verbatim
18142 \end_layout
18143
18144 \end_inset
18145
18146  mode, with the characters set in a fixed-width typewriter font.
18147  Normally, spaces in this file are invisible, though two consecutive spaces
18148  are conserved, unlike \SpecialChar LyX
18149 's normal treatment of spaces.
18150  However, setting the 
18151 \begin_inset Flex Noun
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155 Mark
18156 \begin_inset space ~
18157 \end_inset
18158
18159 spaces
18160 \begin_inset space ~
18161 \end_inset
18162
18163 in
18164 \begin_inset space ~
18165 \end_inset
18166
18167 output
18168 \end_layout
18169
18170 \end_inset
18171
18172  checkbox typesets a mark to unambiguously define the presence of a space.
18173  
18174 \end_layout
18175
18176 \begin_layout Standard
18177 Generally, the master file is converted into a full \SpecialChar LaTeX
18178  file before typesetting,
18179  while the included files are converted to \SpecialChar LaTeX
18180  files that do not have all the
18181  preamble information.
18182 \end_layout
18183
18184 \begin_layout Subsection
18185 Cross-References Between Files
18186 \end_layout
18187
18188 \begin_layout Standard
18189 \begin_inset Box Shadowbox
18190 position "t"
18191 hor_pos "c"
18192 has_inner_box 1
18193 inner_pos "t"
18194 use_parbox 0
18195 use_makebox 0
18196 width "100col%"
18197 special "none"
18198 height "1in"
18199 height_special "totalheight"
18200 thickness "0.4pt"
18201 separation "3pt"
18202 shadowsize "4pt"
18203 framecolor "black"
18204 backgroundcolor "none"
18205 status open
18206
18207 \begin_layout Plain Layout
18208 This section is somewhat out of date.
18209  Need to describe default master documents and how children are opened when
18210  the master is.
18211  [[FIXME]]
18212 \end_layout
18213
18214 \end_inset
18215
18216
18217 \end_layout
18218
18219 \begin_layout Standard
18220 It is possible to set up cross-references between the different files.
18221  First, open all the files in question: let's call them A and B in a two
18222  file example, where B is included in A.
18223  Let's say you insert a label in A, then want to reference it in B.
18224  Open the cross-reference dialog whilst in document B, and you can select
18225  the 
18226 \begin_inset Quotes eld
18227 \end_inset
18228
18229 buffer
18230 \begin_inset Quotes erd
18231 \end_inset
18232
18233  to use.
18234 \end_layout
18235
18236 \begin_layout Subsection
18237 Bibliography Lists in all Subdocuments
18238 \end_layout
18239
18240 \begin_layout Standard
18241 If you work with child documents, you might want to have only one main bibliogra
18242 phy at the end, but still be able to have a selected bibliography for the
18243  child if you output it on its own.
18244  Here is how to achieve this.
18245 \end_layout
18246
18247 \begin_layout Standard
18248 For the main document, you just insert a bibliography inset at the place
18249  where the main bibliography has to appear (within the master file or within
18250  a child).
18251  If the bibliography inset is in the master file, the references will be
18252  inherited by all children, so they are available in the citation dialog
18253  within each child.
18254 \end_layout
18255
18256 \begin_layout Standard
18257 For child-specific bibliographies, insert bibliography insets within the
18258  child documents, at the place where the bibliography should appear when
18259  the child is compiled separately.
18260  However, the trick is to insert them into a branch (
18261 \family sans
18262 Insert\SpecialChar menuseparator
18263 Branch\SpecialChar menuseparator
18264 Insert New Branch...
18265 \family default
18266 ), e.
18267 \begin_inset space \thinspace{}
18268 \end_inset
18269
18270 g.
18271  called 
18272 \begin_inset Quotes eld
18273 \end_inset
18274
18275 Childonly
18276 \begin_inset Quotes erd
18277 \end_inset
18278
18279 .
18280  Within the children, activate the branch (
18281 \family sans
18282 Document\SpecialChar menuseparator
18283 Settings...\SpecialChar menuseparator
18284 Branches
18285 \family default
18286 ).
18287  Within the master, deactivate the branch (
18288 \family sans
18289 Document\SpecialChar menuseparator
18290 Settings...\SpecialChar menuseparator
18291 Branches
18292 \family default
18293 ).
18294  Now the child's bibliography will be ignored by the master, but considered
18295  by the child.
18296 \end_layout
18297
18298 \begin_layout Standard
18299 If you need multiple bibliographies (e.
18300 \begin_inset space \thinspace{}
18301 \end_inset
18302
18303 g., one per child in the 
18304 \emph on
18305 main document
18306 \emph default
18307 ), please refer to sec.
18308 \begin_inset space ~
18309 \end_inset
18310
18311
18312 \begin_inset CommandInset ref
18313 LatexCommand ref
18314 reference "subsec:Multiple-Bibliographies"
18315
18316 \end_inset
18317
18318 .
18319 \end_layout
18320
18321 \begin_layout Section
18322 \SpecialChar LyX
18323  Archives
18324 \end_layout
18325
18326 \begin_layout Standard
18327 Users sometimes need to be able to 
18328 \begin_inset Quotes eld
18329 \end_inset
18330
18331 bundle
18332 \begin_inset Quotes erd
18333 \end_inset
18334
18335  a \SpecialChar LyX
18336  file together with all the images (and other files) on which it depends,
18337  either for sending to a publisher or for sharing with a co-author.
18338  \SpecialChar LyX
18339  includes a Python script (
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 lyxpak.py
18345 \end_layout
18346
18347 \end_inset
18348
18349 ) that automates this process.
18350  To use it, you must have either the 
18351 \begin_inset Flex Code
18352 status collapsed
18353
18354 \begin_layout Plain Layout
18355 zipfile
18356 \end_layout
18357
18358 \end_inset
18359
18360  or 
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365 tarfile
18366 \end_layout
18367
18368 \end_inset
18369
18370  python modules installed on your system.
18371  By default, the script prefers the 
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376 gzip
18377 \end_layout
18378
18379 \end_inset
18380
18381 -compressed 
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386 tar
18387 \end_layout
18388
18389 \end_inset
18390
18391  format on Unix-like systems and the 
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 zip
18397 \end_layout
18398
18399 \end_inset
18400
18401  format on Windows.
18402 \end_layout
18403
18404 \begin_layout Standard
18405 \SpecialChar LyX
18406 's configuration process will set the script up to export a `\SpecialChar LyX
18407  Archive',
18408  and this format will then be available under 
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 File\SpecialChar menuseparator
18414 Export
18415 \end_layout
18416
18417 \end_inset
18418
18419 .
18420 \end_layout
18421
18422 \begin_layout Standard
18423 Independently of the platform, the generation of a particular archive format
18424  can be forced by adding either the 
18425 \begin_inset Flex Code
18426 status collapsed
18427
18428 \begin_layout Plain Layout
18429 -t
18430 \end_layout
18431
18432 \end_inset
18433
18434  (for the 
18435 \begin_inset Flex Code
18436 status collapsed
18437
18438 \begin_layout Plain Layout
18439 tar
18440 \end_layout
18441
18442 \end_inset
18443
18444  format) or 
18445 \begin_inset Flex Code
18446 status collapsed
18447
18448 \begin_layout Plain Layout
18449 -z
18450 \end_layout
18451
18452 \end_inset
18453
18454  (for the 
18455 \begin_inset Flex Code
18456 status collapsed
18457
18458 \begin_layout Plain Layout
18459 zip
18460 \end_layout
18461
18462 \end_inset
18463
18464  format) switch to the 
18465 \begin_inset Flex Code
18466 status collapsed
18467
18468 \begin_layout Plain Layout
18469 \SpecialChar LyX
18470 \SpecialChar menuseparator
18471 \SpecialChar LyX
18472  Archive
18473 \end_layout
18474
18475 \end_inset
18476
18477  converter in 
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 Tools\SpecialChar menuseparator
18483 Preferences\SpecialChar menuseparator
18484 File Handling\SpecialChar menuseparator
18485 Converters
18486 \end_layout
18487
18488 \end_inset
18489
18490 .
18491  (Make sure you add the switch after the script name, not before it.)
18492 \end_layout
18493
18494 \begin_layout Section
18495 Fancy Headers and Footers
18496 \end_layout
18497
18498 \begin_layout Standard
18499 The default page layout is rather plain; for an 
18500 \begin_inset Flex Code
18501 status collapsed
18502
18503 \begin_layout Plain Layout
18504 article
18505 \end_layout
18506
18507 \end_inset
18508
18509  document class, all you get is a centered page number at the bottom of
18510  the page.
18511  This document uses KOMA-script's book class, so it appears to be a bit
18512  fancier.
18513  But to really put on a show, you need to set the document page style to
18514  
18515 \begin_inset Quotes eld
18516 \end_inset
18517
18518 fancy
18519 \begin_inset Quotes erd
18520 \end_inset
18521
18522 , as mentioned in the 
18523 \emph on
18524 User Guide
18525 \emph default
18526 .
18527  This section describes the \SpecialChar LaTeX
18528  code you need to insert in your \SpecialChar LaTeX
18529  preamble in
18530  order to get the desired effects.
18531 \end_layout
18532
18533 \begin_layout Standard
18534 For more information on fancy headers, see the 
18535 \begin_inset Flex Code
18536 status collapsed
18537
18538 \begin_layout Plain Layout
18539 fancyhdr
18540 \end_layout
18541
18542 \end_inset
18543
18544  package documentation.
18545  (
18546 \begin_inset Flex URL
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550
18551 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
18552 \end_layout
18553
18554 \end_inset
18555
18556 )
18557 \end_layout
18558
18559 \begin_layout Standard
18560 The page header is divided into three fields, not surprisingly labeled 
18561 \begin_inset Quotes eld
18562 \end_inset
18563
18564 left
18565 \begin_inset Quotes erd
18566 \end_inset
18567
18568
18569 \begin_inset Quotes eld
18570 \end_inset
18571
18572 center
18573 \begin_inset Quotes erd
18574 \end_inset
18575
18576 , and 
18577 \begin_inset Quotes eld
18578 \end_inset
18579
18580 right
18581 \begin_inset Quotes erd
18582 \end_inset
18583
18584 .
18585  The footer is also divided into these three fields.
18586  The \SpecialChar LaTeX
18587  commands to set these fields in the simplest manner are 
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592
18593 \backslash
18594 lhead
18595 \end_layout
18596
18597 \end_inset
18598
18599
18600 \begin_inset Flex Code
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604
18605 \backslash
18606 chead
18607 \end_layout
18608
18609 \end_inset
18610
18611
18612 \begin_inset Flex Code
18613 status collapsed
18614
18615 \begin_layout Plain Layout
18616
18617 \backslash
18618 rhead
18619 \end_layout
18620
18621 \end_inset
18622
18623
18624 \begin_inset Flex Code
18625 status collapsed
18626
18627 \begin_layout Plain Layout
18628
18629 \backslash
18630 lfoot
18631 \end_layout
18632
18633 \end_inset
18634
18635 , etc.
18636  Suppose you wish to put your name in the upper left hand corner of each
18637  page.
18638  Simply insert the following command in the preamble: 
18639 \end_layout
18640
18641 \begin_layout Standard
18642
18643 \family typewriter
18644
18645 \backslash
18646 lhead{John Q.
18647  DocWriter}
18648 \end_layout
18649
18650 \begin_layout Standard
18651 You will now see your name in the upper left.
18652  If a field has a default entry that you would like to get rid of (often
18653  the page number appears in the central footer) simply include a command
18654  with a blank argument, e.
18655 \begin_inset space \thinspace{}
18656 \end_inset
18657
18658 g.:
18659 \end_layout
18660
18661 \begin_layout Standard
18662
18663 \family typewriter
18664
18665 \backslash
18666 cfoot{}
18667 \end_layout
18668
18669 \begin_layout Standard
18670 Let's get really fancy: lets put the section number with the word 
18671 \begin_inset Quotes eld
18672 \end_inset
18673
18674 Section
18675 \begin_inset Quotes erd
18676 \end_inset
18677
18678  (e.
18679 \begin_inset space \thinspace{}
18680 \end_inset
18681
18682 g.
18683 \begin_inset space \space{}
18684 \end_inset
18685
18686 Section 3) in the upper left, the page number (e.
18687 \begin_inset space \thinspace{}
18688 \end_inset
18689
18690 g.
18691 \begin_inset space \space{}
18692 \end_inset
18693
18694 Page 4) in the upper right, your name in the lower left, and the date in
18695  the lower right.
18696  The following commands should now appear in the preamble:
18697 \end_layout
18698
18699 \begin_layout Standard
18700
18701 \family typewriter
18702
18703 \backslash
18704 lhead{Section 
18705 \backslash
18706 thesection}
18707 \end_layout
18708
18709 \begin_layout Standard
18710
18711 \family typewriter
18712
18713 \backslash
18714 chead{}
18715 \end_layout
18716
18717 \begin_layout Standard
18718
18719 \family typewriter
18720
18721 \backslash
18722 rhead{Page 
18723 \backslash
18724 thepage}
18725 \end_layout
18726
18727 \begin_layout Standard
18728
18729 \family typewriter
18730
18731 \backslash
18732 lfoot{John Q.
18733  DocWriter}
18734 \end_layout
18735
18736 \begin_layout Standard
18737
18738 \family typewriter
18739
18740 \backslash
18741 cfoot{}
18742 \end_layout
18743
18744 \begin_layout Standard
18745
18746 \family typewriter
18747
18748 \backslash
18749 rfoot{
18750 \backslash
18751 today}
18752 \end_layout
18753
18754 \begin_layout Standard
18755 The commands 
18756 \begin_inset Flex Code
18757 status collapsed
18758
18759 \begin_layout Plain Layout
18760
18761 \backslash
18762 thesection
18763 \end_layout
18764
18765 \end_inset
18766
18767  and 
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772
18773 \backslash
18774 thepage
18775 \end_layout
18776
18777 \end_inset
18778
18779  access \SpecialChar LaTeX
18780 's section and page counters, and so print out the current section
18781  and page number.
18782  
18783 \begin_inset Flex Code
18784 status collapsed
18785
18786 \begin_layout Plain Layout
18787
18788 \backslash
18789 today
18790 \end_layout
18791
18792 \end_inset
18793
18794  simply prints out today's date.
18795 \end_layout
18796
18797 \begin_layout Standard
18798 The thicknesses of the horizontal rules drawn beneath the header and above
18799  the footer can also be modified.
18800  If you don't want one of the rules, set its thickness to 0.
18801  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
18802  Use commands
18803 \family typewriter
18804  
18805 \family default
18806 like 
18807 \begin_inset Flex Code
18808 status collapsed
18809
18810 \begin_layout Plain Layout
18811
18812 \backslash
18813 renewcommand{
18814 \backslash
18815 headrulewidth}{0.4pt}
18816 \end_layout
18817
18818 \end_inset
18819
18820  and 
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825
18826 \backslash
18827 renewcommand{
18828 \backslash
18829 footrulewidth}{0.4pt}
18830 \end_layout
18831
18832 \end_inset
18833
18834  to set the thicknesses.
18835 \end_layout
18836
18837 \begin_layout Standard
18838 You can switch the header/footer settings on and off for individual pages
18839  using commands like 
18840 \begin_inset Flex Code
18841 status collapsed
18842
18843 \begin_layout Plain Layout
18844
18845 \backslash
18846 thispagestyle{empty}
18847 \end_layout
18848
18849 \end_inset
18850
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856
18857 \backslash
18858 thispagestyle{plain}
18859 \end_layout
18860
18861 \end_inset
18862
18863 , and 
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868
18869 \backslash
18870 thispagestyle{fancy}
18871 \end_layout
18872
18873 \end_inset
18874
18875 .
18876  Simply insert them in the text on the page you want changed and mark them
18877  as \SpecialChar TeX
18878  code.
18879  In fact, title pages are marked as plain by default, while following pages
18880  are marked fancy when using the global fancy setting.
18881 \end_layout
18882
18883 \begin_layout Standard
18884 As a final example, it is possible to include an image in the header or
18885  footer.
18886  Suppose you want to put a company logo in the upper lefthand corner.
18887  You might try something like
18888 \end_layout
18889
18890 \begin_layout Standard
18891
18892 \family typewriter
18893
18894 \backslash
18895 lhead{
18896 \backslash
18897 resizebox{1in}{!}{
18898 \backslash
18899 includegraphics{logo.eps}}}
18900 \end_layout
18901
18902 \begin_layout Standard
18903 \noindent
18904 (you may need to preface this with 
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909
18910 \backslash
18911 usepackage{graphics}
18912 \end_layout
18913
18914 \end_inset
18915
18916  if you don't include graphics elsewhere in your document).
18917 \end_layout
18918
18919 \begin_layout Chapter
18920 \SpecialChar LyX
18921  and the World Wide Web
18922 \end_layout
18923
18924 \begin_layout Standard
18925 \SpecialChar LyX
18926  has long supported the export of documents to various web-friendly formats,
18927  such as HTML.
18928  Before version 2.0, however, HTML export was always accomplished by the
18929  use of external converters.
18930 \begin_inset Foot
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 For details on the use of external converters with \SpecialChar LyX
18935 , see the 
18936 \emph on
18937 Converters
18938 \emph default
18939  section of the Customization manual.
18940 \end_layout
18941
18942 \end_inset
18943
18944  These fall into two large groups: there are converters that use \SpecialChar LaTeX
18945  as an
18946  intermediate format, such as 
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951 htlatex
18952 \end_layout
18953
18954 \end_inset
18955
18956
18957 \begin_inset Flex Code
18958 status collapsed
18959
18960 \begin_layout Plain Layout
18961 html2latex
18962 \end_layout
18963
18964 \end_inset
18965
18966 , and 
18967 \begin_inset Flex Code
18968 status collapsed
18969
18970 \begin_layout Plain Layout
18971 plastex
18972 \end_layout
18973
18974 \end_inset
18975
18976 , relying upon \SpecialChar LyX
18977  to produce the \SpecialChar LaTeX
18978 ; and there is a converter that works directly
18979  on \SpecialChar LyX
18980  files, 
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 e\SpecialChar LyX
18986 er
18987 \end_layout
18988
18989 \end_inset
18990
18991 .
18992  All of these have different advantages and disadvantages.
18993  
18994 \end_layout
18995
18996 \begin_layout Standard
18997 The \SpecialChar LaTeX
18998 -based converters have the advantage that, in principle, they know everythin
18999 g about the exported document that \SpecialChar LaTeX
19000  does.
19001  Such converters do not care, for example, if a certain block of code was
19002  produced by \SpecialChar LyX
19003  or was Evil Red Text.
19004  These converters know about 
19005 \begin_inset Flex Code
19006 status collapsed
19007
19008 \begin_layout Plain Layout
19009 aux
19010 \end_layout
19011
19012 \end_inset
19013
19014  files, counters, and references, and can often make use of the 
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 bbl
19020 \end_layout
19021
19022 \end_inset
19023
19024  files generated by Bib\SpecialChar TeX
19025 .
19026  On the other hand, \SpecialChar LaTeX
19027  is a very hard language to parse—it is sometimes said
19028  that only \SpecialChar TeX
19029  itself understands \SpecialChar TeX
19030 —and \SpecialChar LaTeX
19031 -based converters will often choke on
19032  what seem to be quite simple constructs; complex ones can throw them completely
19033 , and as of this writing, for example, the 
19034 \emph on
19035 Embedded Objects
19036 \emph default
19037  manual will not export with 
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 htlatex
19043 \end_layout
19044
19045 \end_inset
19046
19047 , though the others will.
19048  The other issue concerns how math is handled.
19049  These converters typically convert the formulae into little pictures that
19050  are then linked from the HTML document.
19051  Since these are actually generated by \SpecialChar LaTeX
19052 , they are accurate.
19053  But they do not scale well, and just getting them to look as if they are
19054  actually meant to be in your document—so that the font sizes seem to be
19055  roughly the same—can be a challenge.
19056 \end_layout
19057
19058 \begin_layout Standard
19059 Alex Fernandez's 
19060 \begin_inset Flex Code
19061 status collapsed
19062
19063 \begin_layout Plain Layout
19064 e\SpecialChar LyX
19065 er
19066 \end_layout
19067
19068 \end_inset
19069
19070  (
19071 \begin_inset CommandInset href
19072 LatexCommand href
19073 name "http://pinchito.es/elyxer/"
19074 target "http://pinchito.es/elyxer/"
19075 literal "false"
19076
19077 \end_inset
19078
19079 ) solves some of these problems.
19080  In particular, the formulae it produces scale perfectly, since it renders
19081  math using a combination of HTML and CSS rather than converting the formulae
19082  to images.
19083  But even moderately complex formula are rendered less well than with 
19084 \begin_inset Flex Code
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 htlatex
19089 \end_layout
19090
19091 \end_inset
19092
19093 ; this reflects the limitations of HTML.
19094 \begin_inset Foot
19095 status collapsed
19096
19097 \begin_layout Plain Layout
19098 That said, 
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 e\SpecialChar LyX
19104 er
19105 \end_layout
19106
19107 \end_inset
19108
19109  can also use jsMath and MathJax for equations, but this setting is only
19110  available globally and requires one to have access to a server that runs
19111  the backend.
19112 \end_layout
19113
19114 \end_inset
19115
19116  More importantly (as of version 1.1.1, at least), 
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 e\SpecialChar LyX
19122 er
19123 \end_layout
19124
19125 \end_inset
19126
19127  has limited support for math macros and no support for user-defined paragraph
19128  or character styles.
19129  These limitations make 
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 e\SpecialChar LyX
19135 er
19136 \end_layout
19137
19138 \end_inset
19139
19140  unsuitable for many of the documents \SpecialChar LyX
19141  users produce.
19142  In principle, of course, these problems could be solved, but the \SpecialChar LyX
19143  developers
19144  have decided to follow a different path and have made \SpecialChar LyX
19145  itself capable of
19146  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
19147 , DocBook, and plaintext.
19148 \end_layout
19149
19150 \begin_layout Standard
19151 As of this writing, XHTML output remains under development and should probably
19152  be regarded as 
19153 \begin_inset Quotes eld
19154 \end_inset
19155
19156 experimental
19157 \begin_inset Quotes erd
19158 \end_inset
19159
19160 .
19161 \begin_inset Foot
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 The file 
19166 \begin_inset Flex Code
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 development/HTML/HTML.notes
19171 \end_layout
19172
19173 \end_inset
19174
19175 , which can be found in the \SpecialChar LyX
19176  source tree or 
19177 \begin_inset CommandInset href
19178 LatexCommand href
19179 name "accessed online"
19180 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
19181 literal "false"
19182
19183 \end_inset
19184
19185 , usually contains up-to-date information about the state of XHTML output.
19186  See also the list of XHTML bugs on 
19187 \begin_inset CommandInset href
19188 LatexCommand href
19189 name "the bug tracker"
19190 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"
19191 literal "false"
19192
19193 \end_inset
19194
19195 .
19196 \end_layout
19197
19198 \end_inset
19199
19200  Still, the developers have chosen this approach because it has several
19201  potential advantages over the other two.
19202 \end_layout
19203
19204 \begin_layout Standard
19205 These advantages are primarily due to the fact that the XHTML output routines,
19206  since they are part of \SpecialChar LyX
19207 , know everything \SpecialChar LyX
19208  knows about the document being
19209  exported.
19210 \begin_inset Foot
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 Another advantage is that, since these routines are internal to \SpecialChar LyX
19215 , they are
19216  immune to changes in \SpecialChar LyX
19217 's file format, or to changes in the semantics of
19218  existing insets.
19219 \end_layout
19220
19221 \end_inset
19222
19223  So they know about the table of contents (as displayed in the outline),
19224  about the counters associated with different paragraph styles, and about
19225  user-defined styles.
19226  The XHTML output routines know what \SpecialChar LyX
19227  knows about internationalization,
19228  too, so they will output 
19229 \begin_inset Quotes eld
19230 \end_inset
19231
19232 Chapter 1
19233 \begin_inset Quotes erd
19234 \end_inset
19235
19236  or 
19237 \begin_inset Quotes eld
19238 \end_inset
19239
19240
19241 \lang ngerman
19242 Kapitel
19243 \lang english
19244  1
19245 \begin_inset Quotes erd
19246 \end_inset
19247
19248 , depending upon the language in effect at the time.
19249  
19250 \end_layout
19251
19252 \begin_layout Standard
19253 Quite generally, the output routines know what \SpecialChar LyX
19254  knows about document layout,
19255  that is, about how the document is to be rendered on screen.
19256  We use this information when we output the document as XHTML.
19257  In particular, \SpecialChar LyX
19258  
19259 \emph on
19260 automatically
19261 \emph default
19262  generates CSS style information corresponding to the layout information
19263  it uses to render the document on screen: if section headings are supposed
19264  to be sans-serif and bold as seen in \SpecialChar LyX
19265 , then (by default) they will be sans-seri
19266 f and bold when viewed in a web browser, too.
19267  And this is true not just for pre-defined styles, like Section, but for
19268  any style, including user-defined styles.
19269  Indeed, the XHTML output routines make no distinction between user-defined
19270  paragraph and 
19271 \change_deleted 244031559 1603876931
19272 character
19273 \change_inserted 244031559 1603876940
19274 text
19275 \change_unchanged
19276  styles and \SpecialChar LyX
19277 's own pre-defined styles: in each case, everything \SpecialChar LyX
19278  knows about
19279  the styles is contained in the layout files.
19280  And much the same is true as regards pre-defined textual insets, such as
19281  footnotes, and various custom insets.
19282  
19283 \end_layout
19284
19285 \begin_layout Standard
19286 The result is that XHTML output can be customized and extended in exactly
19287  the same way \SpecialChar LaTeX
19288  output can be customized and extended: through layout files
19289  and modules.
19290  See chapter five of the 
19291 \emph on
19292 Customization 
19293 \emph default
19294 manual for the details.
19295 \end_layout
19296
19297 \begin_layout Standard
19298 The remainder of this chapter contains more detailed information on XHTML
19299  output, its limitations, and ways to work around those limitations.
19300 \end_layout
19301
19302 \begin_layout Section
19303 Math Output in XHTML
19304 \end_layout
19305
19306 \begin_layout Standard
19307 \SpecialChar LyX
19308  offers four choices for how math is rendered.
19309  These have various advantages and disadvantages:
19310 \end_layout
19311
19312 \begin_layout Itemize
19313 MathML
19314 \begin_inset Newline newline
19315 \end_inset
19316
19317 MathML is a dialect of XML designed specifically for mathematics on the
19318  web, and it typically renders very well in browsers that support it.
19319  The disadvantage is that not all browsers support MathML, and support is
19320  not complete even in the Gecko-based browsers, such as Firefox.
19321 \begin_inset Newline newline
19322 \end_inset
19323
19324 If \SpecialChar LyX
19325  is unable to render a formula as MathML—for example, if the formula
19326  uses the 
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 xymatrix
19332 \end_layout
19333
19334 \end_inset
19335
19336  package or ERT—then it will instead output the formula as an image.
19337  
19338 \end_layout
19339
19340 \begin_layout Itemize
19341 HTML
19342 \begin_inset Newline newline
19343 \end_inset
19344
19345 As mentioned above, 
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 elyxer
19351 \end_layout
19352
19353 \end_inset
19354
19355  outputs math as HTML, styled by CSS.
19356 \begin_inset Foot
19357 status collapsed
19358
19359 \begin_layout Plain Layout
19360 \SpecialChar LyX
19361  has borrowed some of the CSS for its HTML output from 
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 elyxer
19367 \end_layout
19368
19369 \end_inset
19370
19371 .
19372 \end_layout
19373
19374 \end_inset
19375
19376  For simple formulae, this can work quite well, though with more complicated
19377  formulae it tends to break down.
19378  Still, this method has the advantage that it is very widely supported and
19379  so it may be appropriate for documents that contain only a little, fairly
19380  simple math.
19381 \begin_inset Newline newline
19382 \end_inset
19383
19384 If Lyx is unable to render a formula as HTML—for example, if the formula
19385  uses the 
19386 \begin_inset Flex Code
19387 status collapsed
19388
19389 \begin_layout Plain Layout
19390 xymatrix
19391 \end_layout
19392
19393 \end_inset
19394
19395  package or ERT—then it will instead output the formula as an image.
19396  
19397 \end_layout
19398
19399 \begin_layout Itemize
19400 Images
19401 \begin_inset Newline newline
19402 \end_inset
19403
19404 Like 
19405 \begin_inset Flex Code
19406 status collapsed
19407
19408 \begin_layout Plain Layout
19409 htlatex
19410 \end_layout
19411
19412 \end_inset
19413
19414 , \SpecialChar LyX
19415  will output formulae as images, the very same images, in fact, that are
19416  used for instant preview.
19417 \begin_inset Foot
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 Instant preview does 
19422 \emph on
19423 not 
19424 \emph default
19425 have to be on for images to be output, however.
19426 \end_layout
19427
19428 \end_inset
19429
19430  The advantage to this method is that the images are simply generated by
19431  \SpecialChar LaTeX
19432 , so they are very accurate.
19433  The disadvantage, as mentioned earlier, is that these are bitmapped images,
19434  so they do not scale terribly well, and one cannot copy them, etc.
19435 \begin_inset Newline newline
19436 \end_inset
19437
19438 The size of the images can be controlled by setting the 
19439 \begin_inset Quotes eld
19440 \end_inset
19441
19442 Math Images Scaling
19443 \begin_inset Quotes erd
19444 \end_inset
19445
19446  parameter under 
19447 \begin_inset Flex Noun
19448 status collapsed
19449
19450 \begin_layout Plain Layout
19451 Document\SpecialChar menuseparator
19452 Settings\SpecialChar menuseparator
19453 Formats
19454 \end_layout
19455
19456 \end_inset
19457
19458 .
19459 \begin_inset Foot
19460 status collapsed
19461
19462 \begin_layout Plain Layout
19463 For those who want to know, this controls the resolution of the image in
19464  dots per inch and is based upon a default of 75 dpi.
19465 \end_layout
19466
19467 \end_inset
19468
19469
19470 \begin_inset Newline newline
19471 \end_inset
19472
19473 If \SpecialChar LyX
19474  for some reason fails to create an image for a formula (e.g., if a required
19475  \SpecialChar LaTeX
19476  package is not installed), then it will fall back to outputing the raw
19477  \SpecialChar LaTeX
19478 .
19479 \end_layout
19480
19481 \begin_layout Itemize
19482 \SpecialChar LaTeX
19483
19484 \begin_inset Newline newline
19485 \end_inset
19486
19487 Finally, \SpecialChar LyX
19488  will happily output math as \SpecialChar LaTeX
19489 .
19490  As well as being the output of last resort, this method can be used with
19491  such tools as 
19492 \begin_inset CommandInset href
19493 LatexCommand href
19494 name "jsMath"
19495 target "http://www.math.union.edu/~dpvc/jsMath/"
19496 literal "false"
19497
19498 \end_inset
19499
19500 , which uses JavaScript to render \SpecialChar LaTeX
19501  embedded in HTML documents.
19502  \SpecialChar LyX
19503  wraps the \SpecialChar LaTeX
19504  in either a 
19505 \begin_inset Flex Code
19506 status collapsed
19507
19508 \begin_layout Plain Layout
19509 span
19510 \end_layout
19511
19512 \end_inset
19513
19514  (for inline formulas) or 
19515 \begin_inset Flex Code
19516 status collapsed
19517
19518 \begin_layout Plain Layout
19519 div
19520 \end_layout
19521
19522 \end_inset
19523
19524  (for displayed formulas) with 
19525 \begin_inset Flex Code
19526 status collapsed
19527
19528 \begin_layout Plain Layout
19529 class='math'
19530 \end_layout
19531
19532 \end_inset
19533
19534 , as is required for jsMath.
19535 \end_layout
19536
19537 \begin_layout Standard
19538 One of these output methods must be selected under 
19539 \begin_inset Flex Noun
19540 status collapsed
19541
19542 \begin_layout Plain Layout
19543 Document\SpecialChar menuseparator
19544 Settings\SpecialChar menuseparator
19545 Formats
19546 \end_layout
19547
19548 \end_inset
19549
19550 .
19551  By default, \SpecialChar LyX
19552  outputs MathML.
19553  This is a document-wide setting, therefore.
19554 \end_layout
19555
19556 \begin_layout Standard
19557 Eventually, \SpecialChar LyX
19558  will offer the user the option to select an alternate output
19559  method for a particular inset, say, one that isn't being rendered very
19560  well by MathML.
19561 \begin_inset Foot
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565 That said, since \SpecialChar LyX
19566  falls back to images if the inset contains ERT, then one
19567  can force output as an image by putting some harmless ERT into the math,
19568  for example: 
19569 \begin_inset Formula $a=b\relax$
19570 \end_inset
19571
19572 .
19573 \end_layout
19574
19575 \end_inset
19576
19577
19578 \end_layout
19579
19580 \begin_layout Section
19581 Bibliography and Citations
19582 \end_layout
19583
19584 \begin_layout Standard
19585 XHTML output fully supports bibliographies and citations.
19586  
19587 \end_layout
19588
19589 \begin_layout Standard
19590 Citation labels are generated by the same machinery that generates \SpecialChar LyX
19591 's on-screen
19592  labels, so the labels will look in the output much as they do in \SpecialChar LyX
19593 , though
19594  better.
19595  If you are using numerical citations, then \SpecialChar LyX
19596  will output numerical labels,
19597  such as [1] or [17], rather than simply showing the citation key in square
19598  brackets, as it does on-screen.
19599  If you are using author-year citations, then \SpecialChar LyX
19600  will add lowercase letters
19601  to the years, just as Bib\SpecialChar TeX
19602  does, if it finds more than one citation for
19603  a given author-year combination.
19604  The labels will be printed with the bibliography entries.
19605  Note that there is, at present, no way to customize the appearance of the
19606  labels, for example, to choose between square brackets and parentheses.
19607 \end_layout
19608
19609 \begin_layout Standard
19610 Bibliography output is handled by the same machinery that handles the presentati
19611 on of reference information in the citation dialog, so you will see in the
19612  XHTML output pretty much what you would see if you were to look at a given
19613  entry in the citation dialog.
19614  The formatting can be customized in your layout file or, preferably, in
19615  a module.
19616  See the 
19617 \emph on
19618 Customization
19619 \emph default
19620  manual for the details.
19621 \end_layout
19622
19623 \begin_layout Standard
19624 The main defect at present is that cross-referenced information is printed
19625  with every entry with which it is associated.
19626  So you can see things like this:
19627 \end_layout
19628
19629 \begin_layout Quote
19630 Jason Stanley, 
19631 \begin_inset Quotes eld
19632 \end_inset
19633
19634 Context and Logical Form
19635 \begin_inset Quotes erd
19636 \end_inset
19637
19638 , in 
19639 \emph on
19640 Language in Context: Selected Essays
19641 \emph default
19642  (Oxford: Oxford University Press, 2007), pp.
19643  30–68.
19644 \end_layout
19645
19646 \begin_layout Quote
19647 Jason Stanley, 
19648 \begin_inset Quotes eld
19649 \end_inset
19650
19651 Semantics in Context
19652 \begin_inset Quotes erd
19653 \end_inset
19654
19655 , in 
19656 \emph on
19657 Language in Context: Selected Essays
19658 \emph default
19659  (Oxford: Oxford University Press, 2007), pp.
19660  201–30.
19661 \end_layout
19662
19663 \begin_layout Standard
19664 This should be fixed before long.
19665 \end_layout
19666
19667 \begin_layout Standard
19668 There is no support at present for sectioned bibliographies.
19669  If you have multiple bibliographies, then \SpecialChar LyX
19670  will print the same bibliography
19671  over and over.
19672 \end_layout
19673
19674 \begin_layout Section
19675 Indexes
19676 \end_layout
19677
19678 \begin_layout Standard
19679 \SpecialChar LyX
19680  will happily export indexes as XHTML, but with certain limitations at the
19681  moment.
19682 \end_layout
19683
19684 \begin_layout Standard
19685 Index export will be most reliable when you do not attempt to use the fancy
19686  constructs that are described in the section on indexes in the 
19687 \emph on
19688 User's Guide
19689 \emph default
19690 .
19691 \begin_inset Foot
19692 status collapsed
19693
19694 \begin_layout Plain Layout
19695 The main issue here is that \SpecialChar LyX
19696  itself does not really handle these.
19697  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
19698 .
19699 \end_layout
19700
19701 \end_inset
19702
19703  We'll describe how they are handled using the subsection headings from
19704  that section.
19705 \end_layout
19706
19707 \begin_layout Itemize
19708 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
19709  makes an effort to support these,
19710  but the entries must be separated by 
19711 \begin_inset Quotes eld
19712 \end_inset
19713
19714  ! 
19715 \begin_inset Quotes erd
19716 \end_inset
19717
19718 , that is, there must be spaces around the exclamation point.
19719  This is because it is otherwise too difficult to check for escaped exclamation
19720  points, ones in math, and so forth.
19721 \end_layout
19722
19723 \begin_layout Itemize
19724 Page Ranges: There is no support at all for page ranges, since these make
19725  no sense with XHMTL.
19726  Instead, you will just get two index entries, one at either end.
19727 \end_layout
19728
19729 \begin_layout Itemize
19730 Cross-referencing: There is no support for cross-referencing.
19731  If \SpecialChar LyX
19732  finds an entry containing the 
19733 \begin_inset Quotes eld
19734 \end_inset
19735
19736 |see\SpecialChar ldots
19737
19738 \begin_inset Quotes erd
19739 \end_inset
19740
19741  construct, it is just dropped, and the rest is treated as an ordinary index
19742  entry.
19743 \end_layout
19744
19745 \begin_layout Itemize
19746 Index Entry Order: \SpecialChar LyX
19747  does support attempts to fix the sorting order.
19748  It will take what is before the first `@' it finds and use that for sorting,
19749  taking what follows the first `@' to be the actual entry.
19750  At present, \SpecialChar LyX
19751  does not check for escaped `@', so do not try to index email
19752  addresses.
19753 \end_layout
19754
19755 \begin_layout Itemize
19756 Index Entry Layout: You can format entries by using the text style dialog,
19757  or by using any other method available within \SpecialChar LyX
19758  itself.
19759  There is no support for constructs like: 
19760 \begin_inset Quotes eld
19761 \end_inset
19762
19763 entry|textbf
19764 \begin_inset Quotes erd
19765 \end_inset
19766
19767 .
19768  Indeed, if \SpecialChar LyX
19769  finds a pipe symbol, `|', in an entry, it will delete it and
19770  everything that follows it.
19771 \end_layout
19772
19773 \begin_layout Itemize
19774 Multiple Indexes: There is no support for multiple indexes.
19775  Rather, all index entries will be printed as one large index.
19776  To avoid our printing several versions of the index, we print only the
19777  main index, so make sure you have one.
19778 \end_layout
19779
19780 \begin_layout Section
19781 Nomenclature and Glossary
19782 \end_layout
19783
19784 \begin_layout Standard
19785 There is at present no support for glossaries.
19786  Adding it would be fairly trivial, and welcome.
19787 \end_layout
19788
19789 \begin_layout Chapter
19790
19791 \change_inserted 1075283030 1616534180
19792 DocBook Output
19793 \end_layout
19794
19795 \begin_layout Standard
19796
19797 \change_inserted 1075283030 1616534386
19798 Apart from HTML, \SpecialChar LyX
19799  can generate documents in the DocBook XML vocabulary.
19800  With versions 2.3 and before, only select templates could be used to generate
19801  DocBook documents (only version 4).
19802  Starting with \SpecialChar LyX
19803  2.4, most \SpecialChar LyX
19804  layouts can generate valid DocBook documents (only
19805  version 5).
19806  This feature is built into \SpecialChar LyX
19807  and does not require the use of external tools.
19808 \end_layout
19809
19810 \begin_layout Standard
19811
19812 \change_inserted 1075283030 1616534437
19813 The result is that the DocBook output can be customized and extended in
19814  exactly the same way \SpecialChar LaTeX
19815  output can be customized and extended: through layout
19816  files and modules.
19817  See chapter five of the 
19818 \emph on
19819 Customization 
19820 \emph default
19821 manual for the details.
19822 \end_layout
19823
19824 \begin_layout Standard
19825
19826 \change_inserted 1075283030 1616534475
19827 Most \SpecialChar LyX
19828  features are supported with DocBook, like math output.
19829 \end_layout
19830
19831 \begin_layout Itemize
19832
19833 \change_inserted 1075283030 1616534741
19834 Math output is performed mostly in MathML (the major exception being constructio
19835 ns not supported by \SpecialChar LyX
19836 , i.e.
19837  ERTs).
19838  All formulae are also available in raw \SpecialChar TeX
19839  in the DocBook output for further
19840  processing.
19841 \end_layout
19842
19843 \begin_layout Itemize
19844
19845 \change_inserted 1075283030 1616534852
19846 Bibliographies and citations are implemented, including with an external
19847  BibTeX file.
19848  Bibliography entries are not prerendered when the detailed information
19849  are available, but rather output with the standard DocBook constructs.
19850  The external DocBook processor is expected to handle the rendering of entries.
19851 \end_layout
19852
19853 \begin_layout Itemize
19854
19855 \change_inserted 1075283030 1616534863
19856 Indexes are supported, including multiple indices.
19857  Grouping (with 
19858 \family typewriter
19859 !
19860 \family default
19861 ), page ranges, and cross-references (
19862 \family typewriter
19863 |see
19864 \family default
19865 ) are supported, with the exception of the same symbols escaped.
19866  Entry order (
19867 \family typewriter
19868 @
19869 \family default
19870 ) and layout (
19871 \family typewriter
19872 |mathbf
19873 \family default
19874 ) are not supported.
19875  There is no support for escaping of index entries.
19876 \end_layout
19877
19878 \begin_layout Itemize
19879
19880 \change_inserted 1075283030 1616534884
19881 Glossaries are implemented.
19882 \end_layout
19883
19884 \begin_layout Standard
19885
19886 \change_inserted 1075283030 1616534894
19887 Two major parameters can be set at the document level.
19888 \end_layout
19889
19890 \begin_layout Itemize
19891
19892 \change_inserted 1075283030 1616534948
19893 Format for tables: \SpecialChar LyX
19894  can generate tables either as HTML (default value) or
19895  CALS, depending on the user's requirements.
19896  Most DocBook processors accept both formats.
19897 \end_layout
19898
19899 \begin_layout Itemize
19900
19901 \change_inserted 1075283030 1616535006
19902 MathML prefix: in DocBook, MathML is included within its own name space,
19903  unlike HTML.
19904  The implication is that there must be an indication of the tags belonging
19905  to the MathML standard.
19906  Three choices are offered: 
19907 \end_layout
19908
19909 \begin_deeper
19910 \begin_layout Itemize
19911
19912 \change_inserted 1075283030 1616535044
19913 Inline: the MathML name space is defined for each formula (using the 
19914 \family typewriter
19915 xmlns
19916 \family default
19917  attribute on each formula)
19918 \end_layout
19919
19920 \begin_layout Itemize
19921
19922 \change_inserted 1075283030 1616535090
19923 With the 
19924 \family typewriter
19925 m
19926 \family default
19927  prefix (default): the MathML name space is defined at the document level
19928  (using the 
19929 \family typewriter
19930 xmlns:m
19931 \family default
19932  attribute on the root element).
19933  Each MathML is prefixed with 
19934 \family typewriter
19935 m
19936 \family default
19937 : for instance, 
19938 \family typewriter
19939 m:math
19940 \end_layout
19941
19942 \begin_layout Itemize
19943
19944 \change_inserted 1075283030 1616620405
19945 With the 
19946 \family typewriter
19947 mml
19948 \family default
19949  prefix: similar to the 
19950 \family typewriter
19951 m
19952 \family default
19953  option, but with 
19954 \family typewriter
19955 mml
19956 \end_layout
19957
19958 \begin_layout Standard
19959
19960 \change_inserted 1075283030 1616620470
19961 This option is especially useful if you want \SpecialChar LyX
19962  to match your personal style
19963  or to work with buggy software that only accepts one prefix for MathML.
19964 \change_unchanged
19965
19966 \end_layout
19967
19968 \end_deeper
19969 \begin_layout Chapter
19970 The \SpecialChar LyX
19971  Server
19972 \end_layout
19973
19974 \begin_layout Section
19975 Introduction
19976 \end_layout
19977
19978 \begin_layout Standard
19979 The `\SpecialChar LyX
19980  server' allows other programs to talk to \SpecialChar LyX
19981 , invoke \SpecialChar LyX
19982  commands, and retrieve
19983  information about the \SpecialChar LyX
19984  internal state.
19985  This is only intended for advanced users, but they should find it useful.
19986  It is by writing to the \SpecialChar LyX
19987  server, for example, that bibliography managers,
19988  such as JabRef, are able to 
19989 \begin_inset Quotes eld
19990 \end_inset
19991
19992 push
19993 \begin_inset Quotes erd
19994 \end_inset
19995
19996  citations to \SpecialChar LyX
19997 .
19998 \end_layout
19999
20000 \begin_layout Section
20001 Starting the \SpecialChar LyX
20002  Server
20003 \begin_inset CommandInset label
20004 LatexCommand label
20005 name "sec:Starting-the-Server"
20006
20007 \end_inset
20008
20009
20010 \end_layout
20011
20012 \begin_layout Standard
20013 The \SpecialChar LyX
20014  server works through the use of a pair of named pipes.
20015  These are usually located in 
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 UserDir
20021 \end_layout
20022
20023 \end_inset
20024
20025 , (except on Windows, where 
20026 \emph on
20027 local
20028 \emph default
20029  named pipes are special objects located in 
20030 \begin_inset Flex Code
20031 status collapsed
20032
20033 \begin_layout Plain Layout
20034
20035 \backslash
20036
20037 \backslash
20038 .
20039 \backslash
20040 pipe
20041 \end_layout
20042
20043 \end_inset
20044
20045 ) and have the names 
20046 \begin_inset Quotes eld
20047 \end_inset
20048
20049
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 lyxpipe.in
20055 \end_layout
20056
20057 \end_inset
20058
20059
20060 \begin_inset Quotes erd
20061 \end_inset
20062
20063  and 
20064 \begin_inset Quotes eld
20065 \end_inset
20066
20067
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 lyxpipe.out
20073 \end_layout
20074
20075 \end_inset
20076
20077
20078 \begin_inset Quotes erd
20079 \end_inset
20080
20081 .
20082  External programs write into 
20083 \begin_inset Flex Code
20084 status collapsed
20085
20086 \begin_layout Plain Layout
20087 lyxpipe.in
20088 \end_layout
20089
20090 \end_inset
20091
20092  and read back data from 
20093 \begin_inset Flex Code
20094 status collapsed
20095
20096 \begin_layout Plain Layout
20097 lyxpipe.out
20098 \end_layout
20099
20100 \end_inset
20101
20102 .
20103  The stem of the pipe names can be defined in the 
20104 \begin_inset Flex Noun
20105 status collapsed
20106
20107 \begin_layout Plain Layout
20108 Tools\SpecialChar menuseparator
20109 Preferences
20110 \end_layout
20111
20112 \end_inset
20113
20114  dialog, for example 
20115 \begin_inset Flex Code
20116 status collapsed
20117
20118 \begin_layout Plain Layout
20119 "/home/myhome/lyxpipe"
20120 \end_layout
20121
20122 \end_inset
20123
20124 , or 
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 "
20130 \backslash
20131
20132 \backslash
20133 .
20134 \backslash
20135 pipe
20136 \backslash
20137 lyxpipe"
20138 \end_layout
20139
20140 \end_inset
20141
20142  on Windows (where any working path instead of lyxpipe can be used, for
20143  example 
20144 \begin_inset Flex Code
20145 status collapsed
20146
20147 \begin_layout Plain Layout
20148 "
20149 \backslash
20150
20151 \backslash
20152 .
20153 \backslash
20154 pipe
20155 \backslash
20156 my
20157 \backslash
20158 lyx
20159 \backslash
20160 pipe"
20161 \end_layout
20162
20163 \end_inset
20164
20165  would also work).
20166  You 
20167 \emph on
20168 must
20169 \emph default
20170  configure this manually in order for the server to start.
20171 \end_layout
20172
20173 \begin_layout Standard
20174 \SpecialChar LyX
20175  will add the '
20176 \begin_inset Flex Code
20177 status collapsed
20178
20179 \begin_layout Plain Layout
20180 .in
20181 \end_layout
20182
20183 \end_inset
20184
20185 ' and '
20186 \begin_inset Flex Code
20187 status collapsed
20188
20189 \begin_layout Plain Layout
20190 .out
20191 \end_layout
20192
20193 \end_inset
20194
20195 ' to create the pipes.
20196  If one of the pipes already exists, \SpecialChar LyX
20197  will assume that another \SpecialChar LyX
20198  process
20199  is already running and will not start the server.
20200  On POSIX (Unix like) systems, if for some other reason, an unused 
20201 \begin_inset Quotes eld
20202 \end_inset
20203
20204 stale
20205 \begin_inset Quotes erd
20206 \end_inset
20207
20208  pipe is left in existence when \SpecialChar LyX
20209  closes, then \SpecialChar LyX
20210  will try to delete it.
20211  If this fails for some reason, you will need to delete the pipes manually
20212  and then restart \SpecialChar LyX
20213 .
20214  On Windows, pipes are deleted by the OS on program termination or crash,
20215  so 
20216 \begin_inset Quotes eld
20217 \end_inset
20218
20219 stale
20220 \begin_inset Quotes erd
20221 \end_inset
20222
20223  pipes should not be possible.
20224 \end_layout
20225
20226 \begin_layout Standard
20227 To have several \SpecialChar LyX
20228  processes with servers at the same time, you have to use
20229  different configurations, perhaps by using separate user directories, each
20230  with its own 
20231 \begin_inset Flex Code
20232 status collapsed
20233
20234 \begin_layout Plain Layout
20235 preferences
20236 \end_layout
20237
20238 \end_inset
20239
20240  file, for each process.
20241 \end_layout
20242
20243 \begin_layout Standard
20244 If you are developing a client program, you might find it useful to enable
20245  debugging information from the \SpecialChar LyX
20246  server.
20247  Do this by starting \SpecialChar LyX
20248  as 
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 lyx -dbg lyxserver
20254 \end_layout
20255
20256 \end_inset
20257
20258 .
20259 \end_layout
20260
20261 \begin_layout Standard
20262 You can find a complete example client written in C++ in the source distribution
20263  as 
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268 development/lyxserver/server_monitor.cpp
20269 \end_layout
20270
20271 \end_inset
20272
20273 .
20274 \end_layout
20275
20276 \begin_layout Standard
20277 Another useful tool is the command-line based client found in 
20278 \begin_inset Flex Code
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 src/client/lyxclient
20283 \end_layout
20284
20285 \end_inset
20286
20287 .
20288 \end_layout
20289
20290 \begin_layout Section
20291 Normal communication
20292 \end_layout
20293
20294 \begin_layout Standard
20295 To issue a \SpecialChar LyX
20296  call, the client writes a line of ASCII text into the input
20297  pipe.
20298  This line has the following format:
20299 \end_layout
20300
20301 \begin_layout Quote
20302 LYXCMD:
20303 \emph on
20304 clientname
20305 \emph default
20306 :
20307 \emph on
20308 function
20309 \emph default
20310 :
20311 \emph on
20312 argument
20313 \end_layout
20314
20315 \begin_layout Description
20316 clientname is a name that the client can choose arbitrarily.
20317  Its only use is that \SpecialChar LyX
20318  will echo it if it sends an answer—so a client can
20319  dispatch results from different requesters.
20320 \end_layout
20321
20322 \begin_layout Description
20323 function is the function you want \SpecialChar LyX
20324  to perform.
20325  It is the same as the commands you'd use in the minibuffer.
20326 \end_layout
20327
20328 \begin_layout Description
20329 argument is an optional argument which is meaningful only to some functions
20330  (for instance, the 
20331 \begin_inset Quotes eld
20332 \end_inset
20333
20334 self-insert
20335 \begin_inset Quotes erd
20336 \end_inset
20337
20338  LFUN will insert the argument as text at the cursor position).
20339 \end_layout
20340
20341 \begin_layout Standard
20342 The answer from \SpecialChar LyX
20343  will arrive in the output pipe and be of the form
20344 \end_layout
20345
20346 \begin_layout Quote
20347 INFO:
20348 \emph on
20349 clientname
20350 \emph default
20351 :
20352 \emph on
20353 function
20354 \emph default
20355 :
20356 \emph on
20357 data
20358 \end_layout
20359
20360 \begin_layout Standard
20361 where 
20362 \emph on
20363 clientname
20364 \emph default
20365  and 
20366 \emph on
20367 function
20368 \emph default
20369  are just echoed from the command request, while 
20370 \emph on
20371 data
20372 \emph default
20373  is more or less useful information filled according to how the command
20374  execution worked out.
20375  Some commands, such as 
20376 \begin_inset Quotes eld
20377 \end_inset
20378
20379 font-state
20380 \begin_inset Quotes erd
20381 \end_inset
20382
20383 , will return information about the internal state of \SpecialChar LyX
20384 , while other will
20385  return an empty data-response.
20386  This means that the command execution went fine.
20387 \end_layout
20388
20389 \begin_layout Standard
20390 In case of errors, the response from \SpecialChar LyX
20391  will have this form
20392 \end_layout
20393
20394 \begin_layout Quote
20395 ERROR:
20396 \emph on
20397 clientname
20398 \emph default
20399 :
20400 \emph on
20401 function
20402 \emph default
20403 :
20404 \emph on
20405 error message
20406 \end_layout
20407
20408 \begin_layout Standard
20409 where the 
20410 \emph on
20411 error message
20412 \emph default
20413  should contain an explanation of why the command failed.
20414 \end_layout
20415
20416 \begin_layout Standard
20417 Examples:
20418 \end_layout
20419
20420 \begin_layout LyX-Code
20421 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
20422 \begin_inset Newline newline
20423 \end_inset
20424
20425 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
20426 \begin_inset Newline newline
20427 \end_inset
20428
20429 read a <~/.lyxpipe.out
20430 \begin_inset Newline newline
20431 \end_inset
20432
20433 echo $a
20434 \end_layout
20435
20436 \begin_layout Subsection
20437 AppleScript (Mac OS X)
20438 \end_layout
20439
20440 \begin_layout Standard
20441 Since \SpecialChar LyX
20442  2.1, \SpecialChar LyX
20443  supports basic interactions with AppleScript for normal communicatio
20444 n through the command run.
20445  This command takes a direct argument (the 
20446 \series bold
20447 function
20448 \series default
20449  to perform) and an optional argument.
20450  It either returns the output of the function or triggers an error with
20451  the error message and code.
20452 \end_layout
20453
20454 \begin_layout Standard
20455 Example:
20456 \end_layout
20457
20458 \begin_layout LyX-Code
20459 tell application "\SpecialChar LyX
20460 "
20461 \end_layout
20462
20463 \begin_layout LyX-Code
20464   try
20465 \end_layout
20466
20467 \begin_layout LyX-Code
20468     -- Stores the current file name into f
20469 \end_layout
20470
20471 \begin_layout LyX-Code
20472     set f to (run "server-get-filename" with argument "")
20473 \end_layout
20474
20475 \begin_layout LyX-Code
20476     on error the error_message number the error_number
20477 \end_layout
20478
20479 \begin_layout LyX-Code
20480       display dialog "Error: " & the error_number & ".
20481  " ¬
20482 \end_layout
20483
20484 \begin_layout LyX-Code
20485               & the error_message buttons {"OK"} default button 1
20486 \end_layout
20487
20488 \begin_layout LyX-Code
20489   end try
20490 \end_layout
20491
20492 \begin_layout LyX-Code
20493 end tell
20494 \end_layout
20495
20496 \begin_layout Section
20497 Notification
20498 \end_layout
20499
20500 \begin_layout Standard
20501 \SpecialChar LyX
20502  can notify clients of events going on asynchronously.
20503  Currently it will only do this if the user binds a key sequence with the
20504  function 
20505 \begin_inset Quotes eld
20506 \end_inset
20507
20508 notify
20509 \begin_inset Quotes erd
20510 \end_inset
20511
20512 .
20513  The format of the string \SpecialChar LyX
20514  sends is as follows:
20515 \end_layout
20516
20517 \begin_layout Quote
20518 \begin_inset Flex Code
20519 status collapsed
20520
20521 \begin_layout Plain Layout
20522 NOTIFY:
20523 \end_layout
20524
20525 \end_inset
20526
20527
20528 \emph on
20529 key-sequence
20530 \end_layout
20531
20532 \begin_layout Standard
20533 where 
20534 \emph on
20535 key-sequence
20536 \emph default
20537  is the printed representation of the key sequence that was actually typed
20538  by the user.
20539 \end_layout
20540
20541 \begin_layout Standard
20542 This mechanism can be used to extend \SpecialChar LyX
20543 's command set and implement macros.
20544  Bind some key sequence to 
20545 \begin_inset Quotes eld
20546 \end_inset
20547
20548 notify
20549 \begin_inset Quotes erd
20550 \end_inset
20551
20552 .
20553  Then start a client that listens on the output pipe, dispatches the command
20554  according to the sequence, and starts a function that may use \SpecialChar LyX
20555  calls and
20556  \SpecialChar LyX
20557  requests to issue a command or a series of commands to \SpecialChar LyX
20558 .
20559 \end_layout
20560
20561 \begin_layout Section
20562 The simple \SpecialChar LyX
20563  Server Protocol
20564 \end_layout
20565
20566 \begin_layout Standard
20567 \SpecialChar LyX
20568  implements a simple protocol that can be used for session management.
20569  All messages are of the form
20570 \end_layout
20571
20572 \begin_layout Quote
20573 LYXSRV:
20574 \emph on
20575 clientname
20576 \emph default
20577 :
20578 \emph on
20579 protocol message
20580 \end_layout
20581
20582 \begin_layout Standard
20583 where 
20584 \emph on
20585 protocol message
20586 \emph default
20587  can be 
20588 \begin_inset Quotes eld
20589 \end_inset
20590
20591 hello
20592 \begin_inset Quotes erd
20593 \end_inset
20594
20595  or 
20596 \begin_inset Quotes eld
20597 \end_inset
20598
20599 bye
20600 \begin_inset Quotes erd
20601 \end_inset
20602
20603 .
20604  If 
20605 \begin_inset Quotes eld
20606 \end_inset
20607
20608 hello
20609 \begin_inset Quotes erd
20610 \end_inset
20611
20612  is received from a client, \SpecialChar LyX
20613  will report back to inform the client that
20614  it's listening to it's messages, while 
20615 \begin_inset Quotes eld
20616 \end_inset
20617
20618 bye
20619 \begin_inset Quotes erd
20620 \end_inset
20621
20622  sent from \SpecialChar LyX
20623  will inform clients that \SpecialChar LyX
20624  is closing.
20625 \end_layout
20626
20627 \begin_layout Section
20628 Reverse DVI/PDF search
20629 \end_layout
20630
20631 \begin_layout Standard
20632 Some DVI/PDF viewers
20633 \begin_inset Foot
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
20638  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
20639 \end_layout
20640
20641 \end_inset
20642
20643  provide 
20644 \emph on
20645 reverse search
20646 \emph default
20647  facility (also called 
20648 \emph on
20649 inverse search
20650 \emph default
20651 ).
20652  This means that you can tell \SpecialChar LyX
20653  to put the cursor to a specific line in the
20654  document by clicking at the respective position in the DVI/PDF output.
20655  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
20656 .
20657  This is done via the \SpecialChar LyX
20658  server either by using the named pipe (
20659 \emph on
20660 lyxpipe
20661 \emph default
20662 ), or the UNIX domain socket (
20663 \emph on
20664 lyxsocket
20665 \emph default
20666 ) that \SpecialChar LyX
20667  creates in its temporary directory (this is the way the 
20668 \begin_inset Flex Code
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672 lyxclient
20673 \end_layout
20674
20675 \end_inset
20676
20677  program communicates with \SpecialChar LyX
20678 ).
20679  In some cases, you need a helper script that mediates between the viewer
20680  and \SpecialChar LyX
20681 , in others, the viewer can communicate with \SpecialChar LyX
20682  directly.
20683  This depends on the selected viewer and on your operating system.
20684  The same applies to the way viewers need to be configured and the way the
20685  reverse search is actually performed.
20686  In what follows, we will thus describe how to setup reverse search for
20687  specific viewers.
20688  Before we turn to this, though, we will explain what needs to be done generally
20689  to enable reverse search in the DVI/PDF output.
20690 \end_layout
20691
20692 \begin_layout Subsection
20693 Automatic setup
20694 \begin_inset CommandInset label
20695 LatexCommand label
20696 name "subsec:rev-search"
20697
20698 \end_inset
20699
20700
20701 \end_layout
20702
20703 \begin_layout Standard
20704 In most cases \SpecialChar LyX
20705  will do the work for you by pressing the following button
20706  in the toolbar: 
20707 \begin_inset Info
20708 type  "icon"
20709 arg   "buffer-toggle-output-sync"
20710 \end_inset
20711
20712 .
20713  Alternatively, you can also enable the feature by checking 
20714 \family sans
20715 Synchronize with Output
20716 \family default
20717  in 
20718 \begin_inset Flex Noun
20719 status collapsed
20720
20721 \begin_layout Plain Layout
20722 Document\SpecialChar menuseparator
20723 Settings\SpecialChar menuseparator
20724 Formats
20725 \end_layout
20726
20727 \end_inset
20728
20729 .
20730  In such a case \SpecialChar LyX
20731  will automatically insert the necessary Sync\SpecialChar TeX
20732  macro (for
20733  PDF) or load the srcltx package (for DVI) respectively.
20734  This option can be easily reached also on 
20735 \begin_inset Flex Code
20736 status collapsed
20737
20738 \begin_layout Plain Layout
20739 View/Update
20740 \end_layout
20741
20742 \end_inset
20743
20744  Toolbar.
20745 \end_layout
20746
20747 \begin_layout Standard
20748 If you need a different setting, you can select or input a custom macro
20749  from the drop down box just below 
20750 \begin_inset Flex Noun
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 Document\SpecialChar menuseparator
20755 Settings\SpecialChar menuseparator
20756 Output\SpecialChar menuseparator
20757 Synchronize with Output
20758 \end_layout
20759
20760 \end_inset
20761
20762 .
20763 \end_layout
20764
20765 \begin_layout Standard
20766 Note that the method 
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771
20772 \backslash
20773 synctex=1
20774 \end_layout
20775
20776 \end_inset
20777
20778  enables gzip compression.
20779  If your viewer does not support it, you should instead use 
20780 \begin_inset Flex Code
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784
20785 \backslash
20786 synctex=-1
20787 \end_layout
20788
20789 \end_inset
20790
20791 .
20792 \end_layout
20793
20794 \begin_layout Standard
20795 Please also note that including the 
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 srcltx
20801 \end_layout
20802
20803 \end_inset
20804
20805  package or 
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 src-specials
20811 \end_layout
20812
20813 \end_inset
20814
20815  sometimes has an undesired impact on the typesetting.
20816  Thus, you should switch output synchronization off for the final typesetting
20817  if you use the 
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 srcltx
20823 \end_layout
20824
20825 \end_inset
20826
20827  package or 
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 src-specials
20833 \end_layout
20834
20835 \end_inset
20836
20837 .
20838  
20839 \end_layout
20840
20841 \begin_layout Standard
20842 In case you need some more special settings that are not covered by the
20843  automatic settings, read the next section about how to set up output synchroniz
20844 ation manually.
20845  If the automatic setup suits your needs, you can readily jump to section
20846 \begin_inset space ~
20847 \end_inset
20848
20849
20850 \begin_inset CommandInset ref
20851 LatexCommand ref
20852 reference "subsec:configuring-viewers"
20853
20854 \end_inset
20855
20856 , where the necessary configuration steps in your viewer – needed both with
20857  the automatic and the manual setup – are described.
20858 \end_layout
20859
20860 \begin_layout Subsection
20861 Manual setup
20862 \end_layout
20863
20864 \begin_layout Standard
20865 \SpecialChar LaTeX
20866  provides several different methods for reverse search.
20867  Some are built-in in the 
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 latex/pdflatex
20873 \end_layout
20874
20875 \end_inset
20876
20877  program, some are provided by external packages.
20878  Your choice depends on whether your \SpecialChar LaTeX
20879  distribution already provides a given
20880  method (the built-in methods are rather new) and whether your viewer can
20881  cope with it.
20882  The available methods are described in the following.
20883 \end_layout
20884
20885 \begin_layout Subsubsection*
20886 Built-in DVI-search via src-specials (DVI only) 
20887 \end_layout
20888
20889 \begin_layout Standard
20890 This method provides the DVI file with the necessary information for reverse
20891  search.
20892  It is available in \SpecialChar LaTeX
20893  since quite some time (any somewhat recent \SpecialChar LaTeX
20894  distribution
20895  should include it), and it works reliably.
20896  To enable it, change the 
20897 \begin_inset Flex Noun
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 La
20902 \family sans
20903 TeX
20904 \family default
20905  (plain)->DVI
20906 \end_layout
20907
20908 \end_inset
20909
20910  or 
20911 \begin_inset Flex Noun
20912 status collapsed
20913
20914 \begin_layout Plain Layout
20915 La
20916 \family sans
20917 TeX
20918 \family default
20919  (plain)->DraftDVI
20920 \end_layout
20921
20922 \end_inset
20923
20924  converter in 
20925 \begin_inset Flex Noun
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 Preferences\SpecialChar menuseparator
20930 File Handling\SpecialChar menuseparator
20931 Converters
20932 \end_layout
20933
20934 \end_inset
20935
20936  to 
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 latex -src-specials $$i
20942 \end_layout
20943
20944 \end_inset
20945
20946 .
20947  If this doesn't work, check if your \SpecialChar TeX
20948  engine needs different options (the
20949  syntax might differ in some distributions).
20950 \end_layout
20951
20952 \begin_layout Subsubsection*
20953 External Packages (PDFSync and scrltx) 
20954 \end_layout
20955
20956 \begin_layout Standard
20957 The packages 
20958 \emph on
20959 pdfsync
20960 \emph default
20961  and 
20962 \emph on
20963 scrltx
20964 \emph default
20965  provide reverse search facility for PDF output (via pdflatex) and DVI output,
20966  respectively.
20967  In order to enable it, load the packages in the \SpecialChar LyX
20968  preamble: 
20969 \end_layout
20970
20971 \begin_layout Itemize
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976
20977 \backslash
20978 usepackage{pdfsync}
20979 \end_layout
20980
20981 \end_inset
20982
20983  for reverse PDF search,
20984 \end_layout
20985
20986 \begin_layout Itemize
20987 \begin_inset Flex Code
20988 status collapsed
20989
20990 \begin_layout Plain Layout
20991
20992 \backslash
20993 usepackage[active]{srcltx}
20994 \end_layout
20995
20996 \end_inset
20997
20998  for reverse DVI search.
20999 \end_layout
21000
21001 \begin_layout Standard
21002 If you want to be able to perform both DVI and PDF reverse searches, you
21003  can also insert in the preamble the following lines
21004 \end_layout
21005
21006 \begin_layout LyX-Code
21007
21008 \backslash
21009 usepackage{ifpdf}
21010 \begin_inset Newline newline
21011 \end_inset
21012
21013
21014 \backslash
21015 ifpdf
21016 \begin_inset Newline newline
21017 \end_inset
21018
21019   
21020 \backslash
21021 usepackage{pdfsync}
21022 \begin_inset Newline newline
21023 \end_inset
21024
21025
21026 \backslash
21027 else
21028 \begin_inset Newline newline
21029 \end_inset
21030
21031   
21032 \backslash
21033 usepackage[active]{srcltx}
21034 \begin_inset Newline newline
21035 \end_inset
21036
21037
21038 \backslash
21039 fi
21040 \end_layout
21041
21042 \begin_layout Standard
21043 This way, you can preview the file as either DVI or PDF (pdflatex) and the
21044  right package will be used.
21045 \end_layout
21046
21047 \begin_layout Standard
21048 Note that PDFSync might affect the output layout of your document.
21049  It is therefore advised to disable PDFsync for final documents.
21050 \end_layout
21051
21052 \begin_layout Subsubsection*
21053 Built-in reverse search via Sync\SpecialChar TeX
21054  (DVI and PDF) 
21055 \end_layout
21056
21057 \begin_layout Standard
21058 Recent versions of 
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 (pdf)latex
21064 \end_layout
21065
21066 \end_inset
21067
21068  have built-in support for both PDF and DVI reverse search.
21069  This so-called 
21070 \emph on
21071 Sync\SpecialChar TeX
21072
21073 \emph default
21074  facility is basically the result of the integration of the PDFSync package
21075  to the pdftex program and its merge with the 
21076 \emph on
21077 scr-specials
21078 \emph default
21079  approach.
21080  You need at least \SpecialChar TeX
21081 Live 2008 or a recent Mik\SpecialChar TeX
21082  distribution in order to use
21083  it.
21084 \begin_inset Foot
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 For some reason, Mik\SpecialChar TeX
21089  does not understand/obey the command \SpecialChar LyX
21090  inserts into
21091  the preamble when you check the "Enable Forward/Reverse Search" button
21092  in the toolbar and does not generate the necessary info.
21093 \end_layout
21094
21095 \begin_layout Plain Layout
21096 The generation of the required info can be forced by changing the converter
21097  "\SpecialChar LaTeX
21098  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
21099  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
21100  the -synctex=1 switch).
21101 \end_layout
21102
21103 \end_inset
21104
21105  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
21106  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
21107  already provide Sync\SpecialChar TeX
21108  support.
21109 \end_layout
21110
21111 \begin_layout Standard
21112 To enable Sync\SpecialChar TeX
21113  for DVI output, change the 
21114 \begin_inset Flex Noun
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 La
21119 \family sans
21120 TeX
21121 \family default
21122  (plain) -> DVI
21123 \end_layout
21124
21125 \end_inset
21126
21127  or 
21128 \begin_inset Flex Noun
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 La
21133 \family sans
21134 TeX
21135 \family default
21136  (plain) -> DraftDVI
21137 \end_layout
21138
21139 \end_inset
21140
21141  converter in 
21142 \begin_inset Flex Noun
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 Preferences\SpecialChar menuseparator
21147 File Handling\SpecialChar menuseparator
21148 Converters
21149 \end_layout
21150
21151 \end_inset
21152
21153  to 
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 latex -synctex=1 $$i
21159 \end_layout
21160
21161 \end_inset
21162
21163 , and for PDF output, change the 
21164 \begin_inset Flex Noun
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168 La
21169 \family sans
21170 TeX
21171 \family default
21172  (pdflatex) -> PDF (pdflatex)
21173 \end_layout
21174
21175 \end_inset
21176
21177  converter to 
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 pdflatex -synctex=1 $$i
21183 \end_layout
21184
21185 \end_inset
21186
21187 .
21188  Should your viewer not be considered in the following description, or in
21189  case of missing success, please check the documentation of your viewer
21190  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
21191 .
21192 \begin_inset Foot
21193 status collapsed
21194
21195 \begin_layout Plain Layout
21196 Note that the option 
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 -synctex=1
21202 \end_layout
21203
21204 \end_inset
21205
21206  option enables gzip compression.
21207  If your viewer does not support it, you should instead use 
21208 \begin_inset Flex Code
21209 status collapsed
21210
21211 \begin_layout Plain Layout
21212 -synctex=-1
21213 \end_layout
21214
21215 \end_inset
21216
21217 .
21218 \end_layout
21219
21220 \end_inset
21221
21222
21223 \end_layout
21224
21225 \begin_layout Subsection
21226 Configuring and using specific viewers
21227 \begin_inset CommandInset label
21228 LatexCommand label
21229 name "subsec:configuring-viewers"
21230
21231 \end_inset
21232
21233
21234 \end_layout
21235
21236 \begin_layout Subsubsection*
21237 Xdvi (all platforms)
21238 \end_layout
21239
21240 \begin_layout Standard
21241 If you use 
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 xdvi
21247 \end_layout
21248
21249 \end_inset
21250
21251 , you don't need to do anything else for performing a reverse DVI search,
21252  as \SpecialChar LyX
21253  already provides the necessary hooks for automatically using the 
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 lyxclient
21259 \end_layout
21260
21261 \end_inset
21262
21263  program.
21264  Just setup your document as described above (reverse search is triggered
21265  by Ctrl-click or Alt-click on Mac OSX, respectively).
21266 \end_layout
21267
21268 \begin_layout Standard
21269 However, if for whatever reason you want to use the named pipe instead of
21270  the socket for communicating with \SpecialChar LyX
21271 , simply change the DVI viewer in 
21272 \begin_inset Flex Noun
21273 status collapsed
21274
21275 \begin_layout Plain Layout
21276 Preferences\SpecialChar menuseparator
21277 File Handling\SpecialChar menuseparator
21278 File formats
21279 \end_layout
21280
21281 \end_inset
21282
21283  to
21284 \begin_inset Foot
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288 On Mac OSX you have to use 
21289 \begin_inset Flex Code
21290 status collapsed
21291
21292 \begin_layout Plain Layout
21293 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
21294 \end_layout
21295
21296 \end_inset
21297
21298
21299 \end_layout
21300
21301 \end_inset
21302
21303  
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 xdvi -editor "lyxeditor.sh %f %l"
21309 \end_layout
21310
21311 \end_inset
21312
21313 , where 
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 lyxeditor.sh
21319 \end_layout
21320
21321 \end_inset
21322
21323  is a suitable script.
21324  For example, a minimal shell script is the following one:
21325 \end_layout
21326
21327 \begin_layout LyX-Code
21328 #!/bin/sh
21329 \begin_inset Newline newline
21330 \end_inset
21331
21332 LYXPIPE="/path/to/lyxpipe"
21333 \begin_inset Newline newline
21334 \end_inset
21335
21336 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
21337 \begin_inset Newline newline
21338 \end_inset
21339
21340 echo "$COMMAND" > "${LYXPIPE}".in || exit
21341 \begin_inset Newline newline
21342 \end_inset
21343
21344 read TMP < "${LYXPIPE}".out || exit
21345 \end_layout
21346
21347 \begin_layout Standard
21348 where 
21349 \begin_inset Flex Code
21350 status collapsed
21351
21352 \begin_layout Plain Layout
21353 /path/to/lyxpipe
21354 \end_layout
21355
21356 \end_inset
21357
21358  is the LyXServer pipe path specified in 
21359 \begin_inset Flex Noun
21360 status collapsed
21361
21362 \begin_layout Plain Layout
21363 Preferences\SpecialChar menuseparator
21364 Paths
21365 \end_layout
21366
21367 \end_inset
21368
21369 .
21370 \begin_inset Foot
21371 status collapsed
21372
21373 \begin_layout Plain Layout
21374 In the 
21375 \begin_inset Flex Code
21376 status collapsed
21377
21378 \begin_layout Plain Layout
21379 development/tools
21380 \end_layout
21381
21382 \end_inset
21383
21384  folder of a source distribution you can find a 
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 lyxeditor
21390 \end_layout
21391
21392 \end_inset
21393
21394  script which is able to locate the 
21395 \emph on
21396 lyxpipe
21397 \emph default
21398  based on your preferences.
21399 \end_layout
21400
21401 \end_inset
21402
21403
21404 \end_layout
21405
21406 \begin_layout Subsubsection*
21407 MacDviX (Mac OSX)
21408 \end_layout
21409
21410 \begin_layout Standard
21411 At the end of 
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 /Applications/MacDviX_Folder/calleditor.script
21417 \end_layout
21418
21419 \end_inset
21420
21421 , add the following lines:
21422 \end_layout
21423
21424 \begin_layout LyX-Code
21425 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
21426 \begin_inset Newline newline
21427 \end_inset
21428
21429 exit 1
21430 \end_layout
21431
21432 \begin_layout Standard
21433 Modify the lines accordingly if you install \SpecialChar LyX
21434  somewhere else than in the
21435  Applications folder.
21436 \end_layout
21437
21438 \begin_layout Standard
21439 Reverse search is triggered by Alt-click (OPTION-click).
21440 \end_layout
21441
21442 \begin_layout Subsubsection*
21443 Skim (Mac OSX)
21444 \end_layout
21445
21446 \begin_layout Standard
21447 Enter 
21448 \begin_inset Flex Code
21449 status collapsed
21450
21451 \begin_layout Plain Layout
21452 open -a Skim.app $$i
21453 \end_layout
21454
21455 \end_inset
21456
21457  to the viewer setting in 
21458 \begin_inset Flex Noun
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 Preferences\SpecialChar menuseparator
21463 File Handling\SpecialChar menuseparator
21464 File formats\SpecialChar menuseparator
21465 PDF (pdflatex)
21466 \end_layout
21467
21468 \end_inset
21469
21470 , and then in 
21471 \begin_inset Flex Noun
21472 status collapsed
21473
21474 \begin_layout Plain Layout
21475 Skim\SpecialChar menuseparator
21476 Preferences\SpecialChar menuseparator
21477 Sync
21478 \end_layout
21479
21480 \end_inset
21481
21482  choose 
21483 \begin_inset Flex Noun
21484 status collapsed
21485
21486 \begin_layout Plain Layout
21487 custom
21488 \end_layout
21489
21490 \end_inset
21491
21492  preset and enter command 
21493 \begin_inset Flex Noun
21494 status collapsed
21495
21496 \begin_layout Plain Layout
21497 /Applications/\SpecialChar LyX
21498 .app/Contents/MacOS/lyxeditor
21499 \end_layout
21500
21501 \end_inset
21502
21503 .
21504 \end_layout
21505
21506 \begin_layout Standard
21507 Reverse search is triggered by COMMAND-SHIFT-click
21508 \end_layout
21509
21510 \begin_layout Subsubsection*
21511 Evince (GNOME)
21512 \end_layout
21513
21514 \begin_layout Standard
21515 Reverse search with evince does not work out of the box, but it can be achieved
21516  by means of some third party helper scripts.
21517  Please refer to 
21518 \begin_inset CommandInset href
21519 LatexCommand href
21520 target "https://wiki.lyx.org/LyX/SyncTeX"
21521 literal "false"
21522
21523 \end_inset
21524
21525  for details.
21526 \end_layout
21527
21528 \begin_layout Subsubsection*
21529 Okular (KDE)
21530 \end_layout
21531
21532 \begin_layout Standard
21533 Go to 
21534 \begin_inset Flex Noun
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 Settings\SpecialChar menuseparator
21539 Configure Okular\SpecialChar menuseparator
21540 Editor
21541 \end_layout
21542
21543 \end_inset
21544
21545  and select LyX
21546 \begin_inset Quotes erd
21547 \end_inset
21548
21549  as editor.
21550  This inserts the appropriate command (
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555 lyxclient -g %f %l
21556 \end_layout
21557
21558 \end_inset
21559
21560 ).
21561 \end_layout
21562
21563 \begin_layout Standard
21564 Reverse search is triggered by SHIFT-click.
21565
21566 \change_inserted -712698321 1578211026
21567  Note that this only works if Okular is in 
21568 \begin_inset Quotes eld
21569 \end_inset
21570
21571 Browse
21572 \begin_inset Quotes erd
21573 \end_inset
21574
21575  mode (i.
21576 \begin_inset space \thinspace{}
21577 \end_inset
21578
21579 e., the hand symbol is clicked).
21580 \change_unchanged
21581
21582 \end_layout
21583
21584 \begin_layout Subsubsection*
21585 Qpdfview (Unix)
21586 \end_layout
21587
21588 \begin_layout Standard
21589 Qpdfview supports Sync\SpecialChar TeX
21590  since version 0.3.5.
21591  Go to 
21592 \begin_inset Flex Noun
21593 status collapsed
21594
21595 \begin_layout Plain Layout
21596 Edit\SpecialChar menuseparator
21597 Settings\SpecialChar menuseparator
21598 Behavior
21599 \end_layout
21600
21601 \end_inset
21602
21603 , click on the input field of the 
21604 \begin_inset Quotes eld
21605 \end_inset
21606
21607 Source editor
21608 \begin_inset Quotes erd
21609 \end_inset
21610
21611  item and add the command 
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616 lyxclient -g %1 %2
21617 \end_layout
21618
21619 \end_inset
21620
21621 .
21622 \end_layout
21623
21624 \begin_layout Standard
21625 Reverse search is triggered by double-click or, in more recent versions,
21626  by context menu.
21627 \end_layout
21628
21629 \begin_layout Subsubsection*
21630 YAP (Windows)
21631 \end_layout
21632
21633 \begin_layout Standard
21634 Launch yap, choose its 
21635 \begin_inset Flex Noun
21636 status collapsed
21637
21638 \begin_layout Plain Layout
21639 View\SpecialChar menuseparator
21640 Options
21641 \end_layout
21642
21643 \end_inset
21644
21645  menu and select the 
21646 \begin_inset Quotes eld
21647 \end_inset
21648
21649 Inverse DVI Search
21650 \begin_inset Quotes erd
21651 \end_inset
21652
21653  tab.
21654  Click on the 
21655 \begin_inset Quotes eld
21656 \end_inset
21657
21658 New\SpecialChar ldots
21659
21660 \begin_inset Quotes erd
21661 \end_inset
21662
21663  button and, in the window that opens, enter 
21664 \begin_inset Quotes eld
21665 \end_inset
21666
21667 \SpecialChar LyX
21668  Editor
21669 \begin_inset Quotes erd
21670 \end_inset
21671
21672  (or any other name you like) in the 
21673 \begin_inset Quotes eld
21674 \end_inset
21675
21676 Name:
21677 \begin_inset Quotes erd
21678 \end_inset
21679
21680  field.
21681  Now click on the button labeled 
21682 \begin_inset Quotes eld
21683 \end_inset
21684
21685 \SpecialChar ldots
21686
21687 \begin_inset Quotes erd
21688 \end_inset
21689
21690  to open a file dialog and navigate to the directory containing the batch
21691  file 
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696 lyxeditor.bat
21697 \end_layout
21698
21699 \end_inset
21700
21701  (see below).
21702  Select 
21703 \begin_inset Flex Code
21704 status collapsed
21705
21706 \begin_layout Plain Layout
21707 lyxeditor.bat
21708 \end_layout
21709
21710 \end_inset
21711
21712  and then specify the program arguments as 
21713 \begin_inset Flex Code
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717 %f %l
21718 \end_layout
21719
21720 \end_inset
21721
21722 .
21723  The 
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 lyxeditor.bat
21729 \end_layout
21730
21731 \end_inset
21732
21733  wrapper is used for communicating with \SpecialChar LyX
21734  through the 
21735 \emph on
21736 lyxpipe
21737 \emph default
21738  and is as follows:
21739 \end_layout
21740
21741 \begin_layout LyX-Code
21742 @echo off
21743 \begin_inset Newline newline
21744 \end_inset
21745
21746 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
21747 \backslash
21748
21749 \backslash
21750 .
21751 \backslash
21752 pipe
21753 \backslash
21754 lyxpipe.in
21755 \begin_inset Newline newline
21756 \end_inset
21757
21758 type 
21759 \backslash
21760
21761 \backslash
21762 .
21763 \backslash
21764 pipe
21765 \backslash
21766 lyxpipe.out
21767 \end_layout
21768
21769 \begin_layout Standard
21770 Make sure that the \SpecialChar LyX
21771 Server pipe path you specified in \SpecialChar LyX
21772  is 
21773 \begin_inset Flex Code
21774 status collapsed
21775
21776 \begin_layout Plain Layout
21777
21778 \backslash
21779
21780 \backslash
21781 .
21782 \backslash
21783 pipe
21784 \backslash
21785 lyxpipe
21786 \end_layout
21787
21788 \end_inset
21789
21790 , otherwise change the 
21791 \begin_inset Flex Code
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795 lyxeditor.bat
21796 \end_layout
21797
21798 \end_inset
21799
21800  wrapper accordingly.
21801 \end_layout
21802
21803 \begin_layout Standard
21804 In yap, reverse search is triggered by double-click.
21805 \end_layout
21806
21807 \begin_layout Subsubsection*
21808 SumatraPDF (Windows)
21809 \end_layout
21810
21811 \begin_layout Standard
21812 In order to use SumatraPDF for inverse search, enter 
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
21818 \end_layout
21819
21820 \end_inset
21821
21822  in the viewer setting in 
21823 \begin_inset Flex Noun
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 Preferences\SpecialChar menuseparator
21828 File Handling\SpecialChar menuseparator
21829 File formats\SpecialChar menuseparator
21830 PDF (pdflatex)
21831 \end_layout
21832
21833 \end_inset
21834
21835 , where 
21836 \begin_inset Flex Code
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 lyxeditor.bat
21841 \end_layout
21842
21843 \end_inset
21844
21845  is the previous wrapper.
21846  If SumatraPDF.exe is not in your command PATH, use its full file name.
21847 \end_layout
21848
21849 \begin_layout Standard
21850 Reverse search is triggered by double-click.
21851 \end_layout
21852
21853 \begin_layout Subsubsection*
21854 YAP (Cygwin)
21855 \end_layout
21856
21857 \begin_layout Standard
21858 First of all, make sure that yap is your default DVI viewer in the Windows
21859  environment, then launch it, choose its 
21860 \begin_inset Flex Noun
21861 status collapsed
21862
21863 \begin_layout Plain Layout
21864 View\SpecialChar menuseparator
21865 Options
21866 \end_layout
21867
21868 \end_inset
21869
21870  menu and select the 
21871 \begin_inset Quotes eld
21872 \end_inset
21873
21874 Inverse DVI Search
21875 \begin_inset Quotes erd
21876 \end_inset
21877
21878  tab.
21879  Click on the 
21880 \begin_inset Quotes eld
21881 \end_inset
21882
21883 New\SpecialChar ldots
21884
21885 \begin_inset Quotes erd
21886 \end_inset
21887
21888  button and, in the window that opens, enter 
21889 \begin_inset Quotes eld
21890 \end_inset
21891
21892 \SpecialChar LyX
21893  Editor
21894 \begin_inset Quotes erd
21895 \end_inset
21896
21897  (or any other name you like) in the 
21898 \begin_inset Quotes eld
21899 \end_inset
21900
21901 Name:
21902 \begin_inset Quotes erd
21903 \end_inset
21904
21905  field.
21906  Now click on the button labeled 
21907 \begin_inset Quotes eld
21908 \end_inset
21909
21910 \SpecialChar ldots
21911
21912 \begin_inset Quotes erd
21913 \end_inset
21914
21915  to open a file dialog and navigate to the directory containing the 
21916 \begin_inset Flex Code
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920 lyxeditor.exe
21921 \end_layout
21922
21923 \end_inset
21924
21925  program (which is installed by default on Cygwin along with the \SpecialChar LyX
21926  executable).
21927  Select 
21928 \begin_inset Flex Code
21929 status collapsed
21930
21931 \begin_layout Plain Layout
21932 lyxeditor.exe
21933 \end_layout
21934
21935 \end_inset
21936
21937  and then specify the program arguments as 
21938 \begin_inset Flex Code
21939 status collapsed
21940
21941 \begin_layout Plain Layout
21942 -g %f %l
21943 \end_layout
21944
21945 \end_inset
21946
21947 .
21948  In this way, you will be using the 
21949 \emph on
21950 lyxsocket
21951 \emph default
21952  for communicating with \SpecialChar LyX
21953 .
21954  If, for whatever reason, you want to use the 
21955 \emph on
21956 lyxpipe
21957 \emph default
21958 , omit the 
21959 \begin_inset Flex Code
21960 status collapsed
21961
21962 \begin_layout Plain Layout
21963 -g
21964 \end_layout
21965
21966 \end_inset
21967
21968  option and be sure to specify the \SpecialChar LyX
21969 Server pipe path in the \SpecialChar LyX
21970  preferences.
21971 \end_layout
21972
21973 \begin_layout Standard
21974 In yap, reverse search is triggered by double-click.
21975 \end_layout
21976
21977 \begin_layout Subsubsection*
21978 SumatraPDF (Cygwin)
21979 \end_layout
21980
21981 \begin_layout Standard
21982 In order to use SumatraPDF for inverse search, enter 
21983 \begin_inset Flex Code
21984 status collapsed
21985
21986 \begin_layout Plain Layout
21987 SumatraPDF -inverse-search "lyxeditor -g %f %l"
21988 \end_layout
21989
21990 \end_inset
21991
21992  in the viewer setting in 
21993 \begin_inset Flex Noun
21994 status collapsed
21995
21996 \begin_layout Plain Layout
21997 Preferences\SpecialChar menuseparator
21998 File Handling\SpecialChar menuseparator
21999 File formats\SpecialChar menuseparator
22000 PDF (pdflatex)
22001 \end_layout
22002
22003 \end_inset
22004
22005 .
22006  If SumatraPDF.exe is not in your command PATH, use its full posix path.
22007  The 
22008 \begin_inset Flex Code
22009 status collapsed
22010
22011 \begin_layout Plain Layout
22012 -g
22013 \end_layout
22014
22015 \end_inset
22016
22017  enables communication via the 
22018 \emph on
22019 lyxsocket
22020 \emph default
22021 .
22022  Again, omit the 
22023 \begin_inset Flex Code
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027 -g
22028 \end_layout
22029
22030 \end_inset
22031
22032  option if you want to use the 
22033 \emph on
22034 lyxpipe
22035 \emph default
22036 , and be sure to specify the \SpecialChar LyX
22037 Server pipe path in the \SpecialChar LyX
22038  preferences.
22039 \end_layout
22040
22041 \begin_layout Standard
22042 Reverse search is triggered by double-click.
22043 \end_layout
22044
22045 \begin_layout Section
22046 Forward search
22047 \end_layout
22048
22049 \begin_layout Standard
22050 Forward search is, as the name implies, in a sense the 
22051 \begin_inset Quotes eld
22052 \end_inset
22053
22054 opposite
22055 \begin_inset Quotes erd
22056 \end_inset
22057
22058  of reverse search.
22059  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
22060 .
22061  If forward search is set up (as described in what follows), you can put
22062  the cursor anywhere in your \SpecialChar LyX
22063  document, and hit 
22064 \begin_inset Flex Noun
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 Navigate\SpecialChar menuseparator
22069 Forward search
22070 \end_layout
22071
22072 \end_inset
22073
22074  (or select 
22075 \begin_inset Flex Noun
22076 status collapsed
22077
22078 \begin_layout Plain Layout
22079 Forward search
22080 \end_layout
22081
22082 \end_inset
22083
22084  in the context menu via right mouse click), and then the viewer will jump
22085  to that position as well.
22086  This implies, of course, that your viewer supports this function.
22087 \end_layout
22088
22089 \begin_layout Standard
22090 To make forward search possible, you first need to provide the generated
22091  output PDF/DVI file with additional information about the \SpecialChar TeX
22092  sources.
22093  This can be done via the methods described in the section 
22094 \begin_inset CommandInset ref
22095 LatexCommand ref
22096 reference "subsec:rev-search"
22097
22098 \end_inset
22099
22100 .
22101 \end_layout
22102
22103 \begin_layout Standard
22104 Additionally, you need to configure \SpecialChar LyX
22105  for using your viewers in 
22106 \begin_inset Flex Noun
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 Tools\SpecialChar menuseparator
22111 Preferences\SpecialChar menuseparator
22112 Output\SpecialChar menuseparator
22113 General
22114 \end_layout
22115
22116 \end_inset
22117
22118 .
22119  We provide a range of tested configurations for some viewers, which you
22120  can select from the drop down list.
22121  If none of these configurations suits you, you have to find out and enter
22122  a suitable configuration yourself.
22123  The definition syntax uses the following placeholders:
22124 \end_layout
22125
22126 \begin_layout Itemize
22127 \noindent
22128 \begin_inset Flex Code
22129 status collapsed
22130
22131 \begin_layout Plain Layout
22132 $$n
22133 \end_layout
22134
22135 \end_inset
22136
22137 : row number
22138 \end_layout
22139
22140 \begin_layout Itemize
22141 \noindent
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 $$t
22147 \end_layout
22148
22149 \end_inset
22150
22151 : name of the (temporary) exported .tex file (without path)
22152 \end_layout
22153
22154 \begin_layout Itemize
22155 \noindent
22156 \begin_inset Flex Code
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 $$f
22161 \end_layout
22162
22163 \end_inset
22164
22165 : name of the (temporary) exported .tex file (including path)
22166 \end_layout
22167
22168 \begin_layout Itemize
22169 \noindent
22170 \begin_inset Flex Code
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 $$o
22175 \end_layout
22176
22177 \end_inset
22178
22179 : name of the exported output file (either dvi or pdf, depending on which
22180  one exists in the temporary directory)
22181 \end_layout
22182
22183 \begin_layout Standard
22184 Note that only some of the viewers provide full and usable forward search
22185  functionality out of the box, among them yap, xdvi, okular
22186 \begin_inset Foot
22187 status collapsed
22188
22189 \begin_layout Plain Layout
22190 You might want to set 
22191 \begin_inset Flex Code
22192 status collapsed
22193
22194 \begin_layout Plain Layout
22195 okular --unique
22196 \end_layout
22197
22198 \end_inset
22199
22200  in 
22201 \begin_inset Flex Noun
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 Tools\SpecialChar menuseparator
22206 Preferences\SpecialChar menuseparator
22207 File Handling\SpecialChar menuseparator
22208 File
22209 \begin_inset space ~
22210 \end_inset
22211
22212 Formats
22213 \end_layout
22214
22215 \end_inset
22216
22217
22218 \end_layout
22219
22220 \end_inset
22221
22222 , qpdfview, and SumatraPDF
22223 \begin_inset Foot
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227 SumatraPDF can also use DDE commands through the external program CMCDDE
22228  — downloadable from 
22229 \begin_inset CommandInset href
22230 LatexCommand href
22231 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
22232 literal "false"
22233
22234 \end_inset
22235
22236
22237 \end_layout
22238
22239 \end_inset
22240
22241 .
22242  Others, such as evince
22243 \begin_inset Foot
22244 status collapsed
22245
22246 \begin_layout Plain Layout
22247 Forward search with evince can be achieved by means of third party helper
22248  scripts.
22249  Please refer to 
22250 \begin_inset CommandInset href
22251 LatexCommand href
22252 target "https://wiki.lyx.org/LyX/SyncTeX"
22253 literal "false"
22254
22255 \end_inset
22256
22257  for details.
22258 \end_layout
22259
22260 \end_inset
22261
22262 , require some extra tools in order to use forward search.
22263  While many of the widespread PDF viewers (most notably Adobe Reader) do
22264  not support forward search at all, some other viewers – e.
22265 \begin_inset space \thinspace{}
22266 \end_inset
22267
22268 g.
22269  xpdf – allow at least to reload the document and jump to a specific page
22270  of the file, so you can at least navigate 
22271 \begin_inset Quotes eld
22272 \end_inset
22273
22274 near
22275 \begin_inset Quotes erd
22276 \end_inset
22277
22278 .
22279  This latter functionality is provided by an external call of synctex (see
22280  the predefined example configurations).
22281  
22282 \end_layout
22283
22284 \begin_layout Standard
22285 Forward search works both with DVI and PDF output.
22286  \SpecialChar LyX
22287  simply checks which preview format you have used before (i.
22288 \begin_inset space \thinspace{}
22289 \end_inset
22290
22291 e., which format is already there in the temporary directory) and chooses
22292  the appropriate configuration for the respective format.
22293 \end_layout
22294
22295 \begin_layout Chapter
22296
22297 \change_deleted 564990737 1671097409
22298 Special Document Classes
22299 \change_unchanged
22300
22301 \end_layout
22302
22303 \begin_layout Section
22304
22305 \change_deleted 564990737 1669742044
22306 A&A Paper
22307 \end_layout
22308
22309 \begin_layout Standard
22310
22311 \change_deleted 564990737 1669742044
22312 by 
22313 \noun on
22314 Peter Sütterlin
22315 \end_layout
22316
22317 \begin_layout Subsection
22318
22319 \change_deleted 564990737 1669742044
22320 Introduction
22321 \end_layout
22322
22323 \begin_layout Standard
22324
22325 \change_deleted 564990737 1669742044
22326 This section describes how \SpecialChar LyX
22327  can be used to write articles for submission
22328  to the scientific journal 
22329 \emph on
22330 Astronomy and Astrophysics
22331 \emph default
22332  (
22333 \begin_inset Flex URL
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337
22338 https://www.aanda.org/
22339 \end_layout
22340
22341 \end_inset
22342
22343 ) using Version 5.01 of the document class 
22344 \family typewriter
22345 aa.cls
22346 \family default
22347 .
22348  This package can be downloaded from the ftp site
22349 \end_layout
22350
22351 \begin_layout Standard
22352
22353 \change_deleted 564990737 1669742044
22354 \begin_inset VSpace medskip
22355 \end_inset
22356
22357
22358 \end_layout
22359
22360 \begin_layout Standard
22361 \align center
22362
22363 \change_deleted 564990737 1669742044
22364 \begin_inset Flex URL
22365 status collapsed
22366
22367 \begin_layout Plain Layout
22368
22369 ftp://ftp.edpsciences.org/pub/aa/readme.html
22370 \end_layout
22371
22372 \end_inset
22373
22374
22375 \end_layout
22376
22377 \begin_layout Standard
22378
22379 \change_deleted 564990737 1669742044
22380 \begin_inset VSpace medskip
22381 \end_inset
22382
22383
22384 \end_layout
22385
22386 \begin_layout Standard
22387
22388 \change_deleted 564990737 1669742044
22389 A manual comes together with that package, and this text is not meant to
22390  replace the original manual but is merely a short guide in how to realize
22391  the correct form of your paper.
22392  
22393 \end_layout
22394
22395 \begin_layout Standard
22396
22397 \change_deleted 564990737 1669742044
22398 Please note that the publisher of the journal was changed from Springer
22399  to EDP Sciences starting January 1, 2001.
22400  That change involved also some slight changes to the style files, namely
22401  the removal of the thesaurus command.
22402  The \SpecialChar LyX
22403  class aa supports the newest version of these style files, V 5.01.
22404  If you have an older version installed, please upgrade.
22405  For compatibility, the old (version 4) layout has been kept as 
22406 \family sans
22407 article (A&A V4)
22408 \family default
22409 .
22410  Please refer to the comments in 
22411 \family typewriter
22412 \SpecialChar LyX
22413 Dir/layouts/aapaper.layout
22414 \family default
22415 .
22416 \end_layout
22417
22418 \begin_layout Subsection
22419
22420 \change_deleted 564990737 1669742044
22421 Getting started
22422 \end_layout
22423
22424 \begin_layout Standard
22425
22426 \change_deleted 564990737 1669742044
22427 It is recommended you start from the example template distributed with \SpecialChar LyX
22428 .
22429  If you are not using a template, note the following settings:
22430 \end_layout
22431
22432 \begin_layout Itemize
22433
22434 \change_deleted 564990737 1669742044
22435 Select 
22436 \family sans
22437 article (A&A)
22438 \family default
22439  in the 
22440 \family sans
22441 Document\SpecialChar menuseparator
22442 Settings
22443 \family default
22444  dialog (OK, that one was obvious).
22445 \end_layout
22446
22447 \begin_layout Itemize
22448
22449 \change_deleted 564990737 1669742044
22450 Don't change the option 
22451 \family sans
22452 Page
22453 \begin_inset space ~
22454 \end_inset
22455
22456 style
22457 \family default
22458 : Leave it set to 
22459 \family sans
22460 default
22461 \family default
22462 .
22463  The whole layout is done by the macros, you shouldn't change anything.
22464 \end_layout
22465
22466 \begin_layout Subsection
22467
22468 \change_deleted 564990737 1669742044
22469 The header block
22470 \end_layout
22471
22472 \begin_layout Standard
22473
22474 \change_deleted 564990737 1669742044
22475 First thing to enter is the header information.
22476  It consists of seven entries, of which some are optional.
22477  They are
22478 \end_layout
22479
22480 \begin_layout Itemize
22481
22482 \change_deleted 564990737 1669742044
22483
22484 \family sans
22485 Title
22486 \family default
22487 : [required] 
22488 \end_layout
22489
22490 \begin_layout Itemize
22491
22492 \change_deleted 564990737 1669742044
22493
22494 \family sans
22495 Subtitle
22496 \family default
22497 : [optional] 
22498 \end_layout
22499
22500 \begin_layout Itemize
22501
22502 \change_deleted 564990737 1669742044
22503
22504 \family sans
22505 Author
22506 \family default
22507 : [required]
22508 \end_layout
22509
22510 \begin_layout Itemize
22511
22512 \change_deleted 564990737 1669742044
22513
22514 \family sans
22515 Address
22516 \family default
22517 : [required]
22518 \end_layout
22519
22520 \begin_layout Itemize
22521
22522 \change_deleted 564990737 1669742044
22523
22524 \family sans
22525 Offprints
22526 \family default
22527 : [optional] if more than one author: whom to contact for offprint requests.
22528 \end_layout
22529
22530 \begin_layout Itemize
22531
22532 \change_deleted 564990737 1669742044
22533
22534 \family sans
22535 Mail
22536 \family default
22537 : [optional] mail address for contacts.
22538 \end_layout
22539
22540 \begin_layout Itemize
22541
22542 \change_deleted 564990737 1669742044
22543
22544 \family sans
22545 Date
22546 \family default
22547 : [required].
22548  Suggested format is 
22549 \family typewriter
22550 Received: <date>; Accepted <date> 
22551 \end_layout
22552
22553 \begin_layout Standard
22554
22555 \change_deleted 564990737 1669742044
22556 There is no need to issue the 
22557 \family typewriter
22558
22559 \backslash
22560 maketitle
22561 \family default
22562  command, this is done automatically by \SpecialChar LyX
22563  when the header is finished.
22564  Although the order of the single header entries doesn't matter it is advised
22565  to keep the above sequence, just to get the best optics and meets the layout
22566  of the real document.
22567 \end_layout
22568
22569 \begin_layout Standard
22570
22571 \change_deleted 564990737 1669742044
22572 If you want to place footnotes in the header block, e.
22573 \begin_inset space \thinspace{}
22574 \end_inset
22575
22576 g.
22577 \begin_inset space \space{}
22578 \end_inset
22579
22580 to state your present address, just use the standard footnote via the menu
22581  
22582 \family sans
22583 Insert\SpecialChar menuseparator
22584 Footnote.
22585
22586 \family default
22587  \SpecialChar LyX
22588  will automagically use the term 
22589 \family typewriter
22590
22591 \backslash
22592 thanks{}
22593 \family default
22594  in that case.
22595 \end_layout
22596
22597 \begin_layout Standard
22598
22599 \change_deleted 564990737 1669742044
22600 Under 
22601 \family sans
22602 Edit\SpecialChar menuseparator
22603 Text Style
22604 \family default
22605 , you'll find two insets which are relevant for the titling:
22606 \end_layout
22607
22608 \begin_layout Itemize
22609
22610 \change_deleted 564990737 1669742044
22611
22612 \family sans
22613 Institute
22614 \family typewriter
22615  
22616 \family default
22617 to mark corresponding author\SpecialChar breakableslash
22618 institute pairs.
22619  The institutes are numbered sequentially as they appear in the 
22620 \family sans
22621 Address
22622 \family default
22623  field, so you have to put a marker to each author.
22624 \end_layout
22625
22626 \begin_layout Itemize
22627
22628 \change_deleted 564990737 1669742044
22629
22630 \family sans
22631 Email
22632 \family default
22633  to supply an email address for fast contact.
22634 \end_layout
22635
22636 \begin_layout Standard
22637
22638 \change_deleted 564990737 1669742044
22639 In addition to these topics, the macros use one additional \SpecialChar LaTeX
22640  command that
22641  has no counterpart in \SpecialChar LyX
22642 :
22643 \end_layout
22644
22645 \begin_layout Itemize
22646
22647 \change_deleted 564990737 1669742044
22648
22649 \family typewriter
22650
22651 \backslash
22652 and
22653 \family default
22654  to separate different names for more than one author and institute, respectivel
22655 y.
22656 \end_layout
22657
22658 \begin_layout Standard
22659
22660 \change_deleted 564990737 1669742044
22661 The appropriate command has to be entered in \SpecialChar LyX
22662  and marked as \SpecialChar LaTeX
22663  code.
22664  See the examples.
22665  
22666 \end_layout
22667
22668 \begin_layout Subsection
22669
22670 \change_deleted 564990737 1669742044
22671 The abstract
22672 \end_layout
22673
22674 \begin_layout Standard
22675
22676 \change_deleted 564990737 1669742044
22677 The abstract should immediately follow the header block.
22678  With version 5 the abstract environment was changed to a command, and there
22679  is now a restriction to only one paragraph.
22680  In addition, it should contain an entry with the keywords.
22681  This is done via the paragraph style 
22682 \family sans
22683 Keywords
22684 \family default
22685 .
22686  Refer to the example paper.
22687 \end_layout
22688
22689 \begin_layout Subsection
22690
22691 \change_deleted 564990737 1669742044
22692 Supported environments
22693 \end_layout
22694
22695 \begin_layout Standard
22696
22697 \change_deleted 564990737 1669742044
22698 The A&A paper layout supports the following environments for structuring
22699  your text:
22700 \end_layout
22701
22702 \begin_layout Itemize
22703
22704 \change_deleted 564990737 1669742044
22705
22706 \family sans
22707 Standard
22708 \end_layout
22709
22710 \begin_layout Itemize
22711
22712 \change_deleted 564990737 1669742044
22713
22714 \family sans
22715 Section
22716 \end_layout
22717
22718 \begin_layout Itemize
22719
22720 \change_deleted 564990737 1669742044
22721
22722 \family sans
22723 Subsection
22724 \end_layout
22725
22726 \begin_layout Itemize
22727
22728 \change_deleted 564990737 1669742044
22729
22730 \family sans
22731 Subsubsection
22732 \end_layout
22733
22734 \begin_layout Itemize
22735
22736 \change_deleted 564990737 1669742044
22737
22738 \family sans
22739 Itemize
22740 \end_layout
22741
22742 \begin_layout Itemize
22743
22744 \change_deleted 564990737 1669742044
22745
22746 \family sans
22747 Enumerate
22748 \end_layout
22749
22750 \begin_layout Itemize
22751
22752 \change_deleted 564990737 1669742044
22753
22754 \family sans
22755 Description
22756 \end_layout
22757
22758 \begin_layout Itemize
22759
22760 \change_deleted 564990737 1669742044
22761
22762 \family sans
22763 Caption
22764 \end_layout
22765
22766 \begin_layout Itemize
22767
22768 \change_deleted 564990737 1669742044
22769
22770 \family sans
22771 Abstract
22772 \end_layout
22773
22774 \begin_layout Itemize
22775
22776 \change_deleted 564990737 1669742044
22777
22778 \family sans
22779 Acknowledgment
22780 \end_layout
22781
22782 \begin_layout Itemize
22783
22784 \change_deleted 564990737 1669742044
22785
22786 \family sans
22787 Bibliography
22788 \end_layout
22789
22790 \begin_layout Itemize
22791
22792 \change_deleted 564990737 1669742044
22793
22794 \family sans
22795 \SpecialChar LaTeX
22796
22797 \end_layout
22798
22799 \begin_layout Subsection
22800
22801 \change_deleted 564990737 1669742044
22802 Commands not supported by \SpecialChar LyX
22803
22804 \end_layout
22805
22806 \begin_layout Standard
22807
22808 \change_deleted 564990737 1669742044
22809 Some commands are not yet supported by the 
22810 \family sans
22811 paper (A&A)
22812 \family default
22813  layout for \SpecialChar LyX
22814 .
22815  Some have already been mentioned.
22816  For the sake of completeness, they are listed all together here:
22817 \end_layout
22818
22819 \begin_layout Itemize
22820
22821 \change_deleted 564990737 1669742044
22822
22823 \family typewriter
22824
22825 \backslash
22826 and
22827 \end_layout
22828
22829 \begin_layout Itemize
22830
22831 \change_deleted 564990737 1669742044
22832
22833 \family typewriter
22834
22835 \backslash
22836 authorrunning
22837 \end_layout
22838
22839 \begin_layout Itemize
22840
22841 \change_deleted 564990737 1669742044
22842
22843 \family typewriter
22844
22845 \backslash
22846 object{}
22847 \end_layout
22848
22849 \begin_layout Itemize
22850
22851 \change_deleted 564990737 1669742044
22852
22853 \family typewriter
22854
22855 \backslash
22856 titlerunning{}
22857 \end_layout
22858
22859 \begin_layout Standard
22860
22861 \change_deleted 564990737 1669742044
22862 If you want to use any of these commands, you have to enter them yourself.
22863  
22864 \series bold
22865 Do not forget to mark them as \SpecialChar LaTeX
22866  code!
22867 \end_layout
22868
22869 \begin_layout Subsection
22870
22871 \change_deleted 564990737 1669742044
22872 Figure and Table Floats
22873 \end_layout
22874
22875 \begin_layout Standard
22876
22877 \change_deleted 564990737 1669742044
22878 \SpecialChar LyX
22879  provides support for the necessary float environments 
22880 \family sans
22881 figure, figure*, table
22882 \family default
22883  and 
22884 \family sans
22885 table*
22886 \family default
22887 , therefore we won't tell much about it here.
22888  Refer to the 
22889 \emph on
22890 User's
22891 \begin_inset space ~
22892 \end_inset
22893
22894 Guide
22895 \emph default
22896 .
22897  Just remember that tables should be left-aligned.
22898  For that, select the table and change the alignment in 
22899 \family sans
22900 Edit\SpecialChar menuseparator
22901 Paragraph
22902 \begin_inset space ~
22903 \end_inset
22904
22905 Settings.
22906 \end_layout
22907
22908 \begin_layout Standard
22909
22910 \change_deleted 564990737 1669742044
22911 There is only one special thing: the figures with caption besides the figure.
22912  To create such a figure, you have to do the following:
22913 \end_layout
22914
22915 \begin_layout Enumerate
22916
22917 \change_deleted 564990737 1669742044
22918 Create a wide figure float: 
22919 \family sans
22920 Insert\SpecialChar menuseparator
22921 Float\SpecialChar menuseparator
22922 Figure
22923 \family default
22924 , then right click in the figure and select 
22925 \family sans
22926 Span
22927 \begin_inset space ~
22928 \end_inset
22929
22930 columns
22931 \family default
22932 .
22933 \end_layout
22934
22935 \begin_layout Enumerate
22936
22937 \change_deleted 564990737 1669742044
22938 Enter your caption text.
22939 \end_layout
22940
22941 \begin_layout Enumerate
22942
22943 \change_deleted 564990737 1669742044
22944 Press 
22945 \family sans
22946 Return
22947 \family default
22948  to move the cursor above the caption.
22949 \end_layout
22950
22951 \begin_layout Enumerate
22952
22953 \change_deleted 564990737 1669742044
22954 Insert your figure
22955 \end_layout
22956
22957 \begin_layout Enumerate
22958
22959 \change_deleted 564990737 1669742044
22960 Position the cursor behind the figure and insert a horizontal fill: 
22961 \family sans
22962 Insert\SpecialChar menuseparator
22963 Special
22964 \begin_inset space ~
22965 \end_inset
22966
22967 Character\SpecialChar menuseparator
22968 Horizontal
22969 \begin_inset space ~
22970 \end_inset
22971
22972 Fill
22973 \family default
22974 .
22975 \end_layout
22976
22977 \begin_layout Enumerate
22978
22979 \change_deleted 564990737 1669742044
22980 Switch to \SpecialChar LaTeX
22981  mode: 
22982 \family sans
22983 M-c
22984 \begin_inset space ~
22985 \end_inset
22986
22987 t
22988 \family default
22989 .
22990 \end_layout
22991
22992 \begin_layout Enumerate
22993
22994 \change_deleted 564990737 1669742044
22995 Enter 
22996 \family typewriter
22997
22998 \backslash
22999 parbox[b]{55mm}{
23000 \family default
23001 .
23002  
23003 \series bold
23004 Do not close the brace!
23005 \end_layout
23006
23007 \begin_layout Enumerate
23008
23009 \change_deleted 564990737 1669742044
23010 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
23011  mode and insert
23012  the closing brace: 
23013 \family sans
23014 M-c
23015 \begin_inset space ~
23016 \end_inset
23017
23018 t
23019 \family default
23020  
23021 \family typewriter
23022 }
23023 \family default
23024 .
23025 \end_layout
23026
23027 \begin_layout Standard
23028
23029 \change_deleted 564990737 1669742044
23030 Also, refer to the figures in the example paper.
23031 \end_layout
23032
23033 \begin_layout Subsection
23034
23035 \change_deleted 564990737 1669742044
23036 Referee layout
23037 \end_layout
23038
23039 \begin_layout Standard
23040
23041 \change_deleted 564990737 1669742044
23042 For submission, the paper has to be formated in a special double-spacing
23043  layout.
23044  For this purpose, you have to give the option 
23045 \family typewriter
23046 referee
23047 \family default
23048  to the document class.
23049  This must be done using the custom class options field in the 
23050 \family sans
23051 Document\SpecialChar menuseparator
23052 Settings
23053 \family default
23054  dialog.
23055  Just enter the string 
23056 \family typewriter
23057 referee
23058 \family default
23059  there.
23060 \end_layout
23061
23062 \begin_layout Subsection
23063
23064 \change_deleted 564990737 1669742044
23065 The example paper
23066 \end_layout
23067
23068 \begin_layout Standard
23069
23070 \change_deleted 564990737 1669742044
23071 The 
23072 \family sans
23073 Examples
23074 \family default
23075  directory contains an example paper written with \SpecialChar LyX
23076 .
23077  It is the example paper from the original macro package, translated to
23078  \SpecialChar LyX
23079 .
23080  Use it for inspiration, and compare the original \SpecialChar LaTeX
23081  code with \SpecialChar LyX
23082  way of writing.
23083 \end_layout
23084
23085 \begin_layout Section
23086
23087 \change_deleted 564990737 1671097429
23088 Dinbrief
23089 \end_layout
23090
23091 \begin_layout Standard
23092
23093 \change_deleted 564990737 1671097429
23094 The document class 
23095 \family sans
23096 dinbrief
23097 \family default
23098  can be used to type letters according to German conventions.
23099  A template file is included in 
23100 \family typewriter
23101 .../lyx/share/templates
23102 \family default
23103  for you to use as a starting point.
23104 \end_layout
23105
23106 \begin_layout Section
23107
23108 \change_deleted 564990737 1671097429
23109 Elsevier Journals
23110 \end_layout
23111
23112 \begin_layout Standard
23113
23114 \change_deleted 564990737 1671097429
23115 See the \SpecialChar LyX
23116  template file 
23117 \family typewriter
23118 elsarticle.lyx
23119 \family default
23120 .
23121  It contains all infos you need.
23122 \end_layout
23123
23124 \begin_layout Section
23125
23126 \change_deleted 564990737 1669755802
23127 ijmpc and ijmpd
23128 \end_layout
23129
23130 \begin_layout Standard
23131
23132 \change_deleted 564990737 1669755802
23133 by 
23134 \noun on
23135 Panayotis Papasotiriou
23136 \end_layout
23137
23138 \begin_layout Subsection
23139
23140 \change_deleted 564990737 1669755802
23141 Overview
23142 \end_layout
23143
23144 \begin_layout Standard
23145
23146 \change_deleted 564990737 1669755802
23147 The ijmpc package is a set of macros that facilitates electronic manuscript
23148  submission to the 
23149 \emph on
23150 International Journal of Modern Physics C
23151 \emph default
23152 .
23153  Similarly, the ijmpd package is for creating manuscripts to be submitted
23154  to the 
23155 \emph on
23156 International Journal of Modern Physics D
23157 \emph default
23158 .
23159  Both journals are published by World Scientific.
23160  The corresponding document classes are named 
23161 \family typewriter
23162 ws-ijmpc.cls
23163 \family default
23164  and 
23165 \family typewriter
23166 ws-ijmpd.cls
23167 \family default
23168 , respectively.
23169  These files, together with instructions for the authors, can be downloaded
23170  from the sites 
23171 \begin_inset Flex URL
23172 status collapsed
23173
23174 \begin_layout Plain Layout
23175
23176 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
23177 \end_layout
23178
23179 \end_inset
23180
23181  and 
23182 \begin_inset Flex URL
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186
23187 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
23188 \end_layout
23189
23190 \end_inset
23191
23192 .
23193  Both packages are modified versions of the standard 
23194 \begin_inset Quotes eld
23195 \end_inset
23196
23197 article
23198 \begin_inset Quotes erd
23199 \end_inset
23200
23201  package, and they are almost (but not exactly) identical.
23202  Most of their features are supported by \SpecialChar LyX
23203 .
23204  I have used \SpecialChar LyX
23205  successfully to write articles submitted to both journals
23206  without any problem.
23207 \end_layout
23208
23209 \begin_layout Subsection
23210
23211 \change_deleted 564990737 1669755802
23212 Writing a paper
23213 \end_layout
23214
23215 \begin_layout Standard
23216
23217 \change_deleted 564990737 1669755802
23218 As usual, the easiest way to write a paper is to start with a template.
23219  Click on 
23220 \family sans
23221 File\SpecialChar menuseparator
23222 New from
23223 \family default
23224  
23225 \family sans
23226 Template
23227 \family default
23228 , then choose the 
23229 \family typewriter
23230 ijmpc.lyx
23231 \family default
23232  or 
23233 \family typewriter
23234 ijmpd.lyx
23235 \family default
23236  template.
23237  This will give an (almost) empty document that includes the most common
23238  fields found in a manuscript.
23239  Simply overwrite the existing text (including the brackets, 
23240 \family typewriter
23241 <>
23242 \family default
23243 ) with your text.
23244  You should keep in mind the following remarks.
23245 \end_layout
23246
23247 \begin_layout Enumerate
23248
23249 \change_deleted 564990737 1669755802
23250 \SpecialChar LyX
23251  won't let you change the font size and the page style of the document,
23252  because such modifications are not allowed by both packages.
23253 \end_layout
23254
23255 \begin_layout Enumerate
23256
23257 \change_deleted 564990737 1669755802
23258 The language of the document should not be changed.
23259  Before previewing your paper, be sure that the babel package is not used.
23260  To do this, click on 
23261 \begin_inset Info
23262 type  "menu"
23263 arg   "dialog-show document"
23264 \end_inset
23265
23266  
23267 \family sans
23268 \SpecialChar menuseparator
23269 Language
23270 \family default
23271 , and select 
23272 \begin_inset Quotes eld
23273 \end_inset
23274
23275 None
23276 \begin_inset Quotes erd
23277 \end_inset
23278
23279  as 
23280 \family sans
23281 Language Package
23282 \family default
23283 .
23284 \end_layout
23285
23286 \begin_layout Enumerate
23287
23288 \change_deleted 564990737 1669755802
23289 The 
23290 \begin_inset Quotes eld
23291 \end_inset
23292
23293 Keywords
23294 \begin_inset Quotes erd
23295 \end_inset
23296
23297  style must be used to define keywords.
23298 \end_layout
23299
23300 \begin_layout Enumerate
23301
23302 \change_deleted 564990737 1669755802
23303 The ijmpc package provides a style named 
23304 \begin_inset Quotes eld
23305 \end_inset
23306
23307 Classification Codes
23308 \begin_inset Quotes erd
23309 \end_inset
23310
23311 , which can be used to define classification codes, such as PACS numbers.
23312  Note that this facility is not supported by the ijmpd package.
23313 \end_layout
23314
23315 \begin_layout Enumerate
23316
23317 \change_deleted 564990737 1669755802
23318 Several new environments are available: 
23319 \begin_inset Quotes eld
23320 \end_inset
23321
23322 Definition
23323 \begin_inset Quotes erd
23324 \end_inset
23325
23326
23327 \begin_inset Quotes eld
23328 \end_inset
23329
23330 Step
23331 \begin_inset Quotes erd
23332 \end_inset
23333
23334
23335 \begin_inset Quotes eld
23336 \end_inset
23337
23338 Example
23339 \begin_inset Quotes erd
23340 \end_inset
23341
23342
23343 \begin_inset Quotes eld
23344 \end_inset
23345
23346 Remark
23347 \begin_inset Quotes erd
23348 \end_inset
23349
23350
23351 \begin_inset Quotes eld
23352 \end_inset
23353
23354 Notation
23355 \begin_inset Quotes erd
23356 \end_inset
23357
23358
23359 \begin_inset Quotes eld
23360 \end_inset
23361
23362 Theorem
23363 \begin_inset Quotes erd
23364 \end_inset
23365
23366
23367 \begin_inset Quotes eld
23368 \end_inset
23369
23370 Proof
23371 \begin_inset Quotes erd
23372 \end_inset
23373
23374
23375 \begin_inset Quotes eld
23376 \end_inset
23377
23378 Corollary
23379 \begin_inset Quotes erd
23380 \end_inset
23381
23382
23383 \begin_inset Quotes eld
23384 \end_inset
23385
23386 Lemma
23387 \begin_inset Quotes erd
23388 \end_inset
23389
23390
23391 \begin_inset Quotes eld
23392 \end_inset
23393
23394 Proposition
23395 \begin_inset Quotes erd
23396 \end_inset
23397
23398
23399 \begin_inset Quotes eld
23400 \end_inset
23401
23402 Prop
23403 \begin_inset Quotes erd
23404 \end_inset
23405
23406
23407 \begin_inset Quotes eld
23408 \end_inset
23409
23410 Question
23411 \begin_inset Quotes erd
23412 \end_inset
23413
23414
23415 \begin_inset Quotes eld
23416 \end_inset
23417
23418 Claim
23419 \begin_inset Quotes erd
23420 \end_inset
23421
23422 , and 
23423 \begin_inset Quotes eld
23424 \end_inset
23425
23426 Conjecture
23427 \begin_inset Quotes erd
23428 \end_inset
23429
23430 .
23431  Their use is more or less obvious.
23432  \SpecialChar LyX
23433  supports all these environments; it will use the proper label, text style,
23434  and numbering scheme for each of them.
23435 \end_layout
23436
23437 \begin_layout Enumerate
23438
23439 \change_deleted 564990737 1669755802
23440 Both packages use basic citations; the natbib package should not be used.
23441  In \SpecialChar LyX
23442 , citation references are shown as usual; in the output, citations are
23443  shown as superscripts.
23444  If you want to use a citation as normal text, you should use the 
23445 \family typewriter
23446 refcite
23447 \family default
23448  command, e.
23449 \begin_inset space \thinspace{}
23450 \end_inset
23451
23452 g.
23453 \begin_inset space \space{}
23454 \end_inset
23455
23456
23457 \begin_inset Quotes eld
23458 \end_inset
23459
23460 See Ref.
23461 \begin_inset space \space{}
23462 \end_inset
23463
23464
23465 \family typewriter
23466
23467 \backslash
23468 refcite{key}
23469 \family default
23470
23471 \begin_inset Quotes erd
23472 \end_inset
23473
23474 .
23475 \end_layout
23476
23477 \begin_layout Enumerate
23478
23479 \change_deleted 564990737 1669755802
23480 There is no 
23481 \begin_inset Quotes eld
23482 \end_inset
23483
23484 Acknowledgments
23485 \begin_inset Quotes erd
23486 \end_inset
23487
23488  section in both packages.
23489  To put acknowledgments, just use the 
23490 \begin_inset Quotes eld
23491 \end_inset
23492
23493 Section*
23494 \begin_inset Quotes erd
23495 \end_inset
23496
23497  environment.
23498 \end_layout
23499
23500 \begin_layout Enumerate
23501
23502 \change_deleted 564990737 1669755802
23503 Appendices may be added to the paper, 
23504 \emph on
23505 after
23506 \emph default
23507  the Acknowledgments and 
23508 \shape italic
23509 before
23510 \shape default
23511  the References.
23512  \SpecialChar LyX
23513  provides a special environment, called 
23514 \begin_inset Quotes eld
23515 \end_inset
23516
23517 Appendices Section
23518 \begin_inset Quotes erd
23519 \end_inset
23520
23521  which marks the beginning of the appendices.
23522  This environment should be left blank; it just sends a \SpecialChar LaTeX
23523  command, but nothing
23524  is really printed.
23525  In \SpecialChar LyX
23526 , the word 
23527 \begin_inset Quotes eld
23528 \end_inset
23529
23530 Appendix
23531 \begin_inset Quotes erd
23532 \end_inset
23533
23534  is printed with blue letters, as a signal that all sections after that
23535  point are appendices.
23536  To write an appendix, use the 
23537 \begin_inset Quotes eld
23538 \end_inset
23539
23540 Appendix
23541 \begin_inset Quotes erd
23542 \end_inset
23543
23544  environment.
23545  \SpecialChar LyX
23546  will number each appendix with capital letters, as required by both journals.
23547  Note that 
23548 \begin_inset Quotes eld
23549 \end_inset
23550
23551 Appendices Section
23552 \begin_inset Quotes erd
23553 \end_inset
23554
23555  
23556 \emph on
23557 must
23558 \emph default
23559  be present before the first appendix; if not, all appendices will be numbered
23560  as normal sections in the output.
23561 \end_layout
23562
23563 \begin_layout Enumerate
23564
23565 \change_deleted 564990737 1669755802
23566 The ijmpc and the ijmpd packages use the 
23567 \family typewriter
23568 tbl
23569 \family default
23570  command to implement table captions.
23571  As a result, a table created by \SpecialChar LyX
23572  is printed correctly, but its caption
23573  is ignored.
23574  However, you can use some \SpecialChar TeX
23575  code to overcome this problem, so that captions
23576  are printed as expected.
23577  To do so, create a float table as usual, remove the caption, and replace
23578  it with the \SpecialChar TeX
23579  code 
23580 \family typewriter
23581
23582 \backslash
23583 tbl{
23584 \emph on
23585 your table caption
23586 \emph default
23587 }{
23588 \family default
23589  (sic); you must also the \SpecialChar TeX
23590  code 
23591 \family typewriter
23592 }
23593 \family default
23594  immediately after the tabular material.
23595  Study the example table included in the template files to see how this
23596  trick is implemented.
23597  Alternatively, If you need table captions, you should implement the whole
23598  table float in a 
23599 \family typewriter
23600 .tex
23601 \family default
23602  file, then include this file to the \SpecialChar LyX
23603  document (
23604 \family sans
23605 Insert\SpecialChar menuseparator
23606 File\SpecialChar menuseparator
23607 Child
23608 \begin_inset space ~
23609 \end_inset
23610
23611 Document
23612 \family default
23613 ).
23614  Details on how to create a table float can be found in the files 
23615 \family typewriter
23616 ws-ijmpc.tex
23617 \family default
23618  and 
23619 \family typewriter
23620 ws-ijmpd.tex
23621 \family default
23622 , included in the corresponding packages.
23623 \end_layout
23624
23625 \begin_layout Subsection
23626
23627 \change_deleted 564990737 1669755802
23628 Preparing a paper for submission
23629 \end_layout
23630
23631 \begin_layout Standard
23632
23633 \change_deleted 564990737 1669755802
23634 Before you submit your paper you must export the \SpecialChar LyX
23635  document as a \SpecialChar LaTeX
23636  file (
23637 \family sans
23638 File\SpecialChar menuseparator
23639 Export\SpecialChar menuseparator
23640 \SpecialChar LaTeX
23641
23642 \family default
23643 )
23644 \begin_inset Foot
23645 status open
23646
23647 \begin_layout Plain Layout
23648 Actually you have the choice between \SpecialChar LaTeX
23649  (plain) and pdflatex.
23650  If you intend to use pdflatex to prepare the paper, you should use the
23651  pdflatex option so that included graphics are converted to PDF format,
23652  ready for use by pdflatex.
23653 \end_layout
23654
23655 \end_inset
23656
23657 , then make the following changes to the resulting 
23658 \family typewriter
23659 .tex
23660 \family default
23661  file.
23662 \end_layout
23663
23664 \begin_layout Enumerate
23665
23666 \change_deleted 564990737 1669755802
23667 Remove the comment lines before the 
23668 \family typewriter
23669
23670 \backslash
23671 documentclass
23672 \family default
23673  command.
23674 \end_layout
23675
23676 \begin_layout Enumerate
23677
23678 \change_deleted 564990737 1669755802
23679 Remove everything between (and including) the 
23680 \family typewriter
23681
23682 \backslash
23683 makeatletter
23684 \family default
23685  and 
23686 \family typewriter
23687
23688 \backslash
23689 makeatother
23690 \family default
23691  commands, except for any commands you specifically put into the \SpecialChar LaTeX
23692  preamble.
23693 \end_layout
23694
23695 \begin_layout Standard
23696
23697 \change_deleted 564990737 1669755802
23698 The modified 
23699 \family typewriter
23700 .tex
23701 \family default
23702  file should be saved and processed through \SpecialChar LaTeX
23703  as many times as necessary.
23704  You may also want to check the resulting 
23705 \family typewriter
23706 .dvi
23707 \family default
23708  document.
23709 \change_unchanged
23710
23711 \end_layout
23712
23713 \begin_layout Section
23714
23715 \change_deleted 564990737 1669801478
23716 iopart
23717 \end_layout
23718
23719 \begin_layout Standard
23720
23721 \change_deleted 564990737 1669801478
23722 by 
23723 \noun on
23724 Uwe Stöhr
23725 \end_layout
23726
23727 \begin_layout Subsection
23728
23729 \change_deleted 564990737 1669801478
23730 Overview
23731 \end_layout
23732
23733 \begin_layout Standard
23734
23735 \change_deleted 564990737 1669801478
23736 The iopart package provides a document class to create electronic manuscript
23737  submission to the journals published by the Institute of Physics.
23738  Instructions for the authors how to create a paper using the iopart class
23739  can be downloaded together with the iopart package from the site 
23740 \begin_inset Flex URL
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744
23745 ftp://ftp.iop.org/pub/journals/latex2e
23746 \end_layout
23747
23748 \end_inset
23749
23750 .
23751 \end_layout
23752
23753 \begin_layout Subsection
23754
23755 \change_deleted 564990737 1669801478
23756 Writing a paper
23757 \end_layout
23758
23759 \begin_layout Standard
23760
23761 \change_deleted 564990737 1669801478
23762 The easiest way to write a paper is to start with the template 
23763 \emph on
23764 IOP-article.lyx
23765 \emph default
23766  that is available via 
23767 \family sans
23768 File\SpecialChar menuseparator
23769 New From Template
23770 \family default
23771  The template explains how to use the special text environments.
23772  Here are the most important advices:
23773 \end_layout
23774
23775 \begin_layout Itemize
23776
23777 \change_deleted 564990737 1669801478
23778 To be able to compile your document to a PDF, PS, or DVI, ensure that the
23779  no AMS packages are loaded in 
23780 \family sans
23781 Document\SpecialChar menuseparator
23782 Settings\SpecialChar menuseparator
23783 Math Options
23784 \family default
23785 !
23786 \end_layout
23787
23788 \begin_layout Itemize
23789
23790 \change_deleted 564990737 1669801478
23791
23792 \size normal
23793 The title environment defines the kind of your paper.
23794  So use one of the following environments for the title:
23795 \end_layout
23796
23797 \begin_deeper
23798 \begin_layout Itemize
23799
23800 \change_deleted 564990737 1669801478
23801
23802 \family sans
23803 \size normal
23804 Title
23805 \family default
23806  for a Paper
23807 \end_layout
23808
23809 \begin_layout Itemize
23810
23811 \change_deleted 564990737 1669801478
23812
23813 \family sans
23814 \size normal
23815 Review
23816 \family default
23817  for a Review
23818 \end_layout
23819
23820 \begin_layout Itemize
23821
23822 \change_deleted 564990737 1669801478
23823
23824 \family sans
23825 \size normal
23826 Topical
23827 \family default
23828  for a Topical review
23829 \end_layout
23830
23831 \begin_layout Itemize
23832
23833 \change_deleted 564990737 1669801478
23834
23835 \family sans
23836 \size normal
23837 Comment
23838 \family default
23839  for a Comment
23840 \end_layout
23841
23842 \begin_layout Itemize
23843
23844 \change_deleted 564990737 1669801478
23845
23846 \family sans
23847 \size normal
23848 Note
23849 \family default
23850  for a Note
23851 \end_layout
23852
23853 \begin_layout Itemize
23854
23855 \change_deleted 564990737 1669801478
23856
23857 \family sans
23858 \size normal
23859 Paper
23860 \family default
23861  for a Paper (same as Title)
23862 \end_layout
23863
23864 \begin_layout Itemize
23865
23866 \change_deleted 564990737 1669801478
23867
23868 \family sans
23869 \size normal
23870 Prelim
23871 \family default
23872  for a Preliminary communication
23873 \end_layout
23874
23875 \begin_layout Itemize
23876
23877 \change_deleted 564990737 1669801478
23878
23879 \family sans
23880 \size normal
23881 Rapid
23882 \family default
23883  for a Rapid communication
23884 \end_layout
23885
23886 \begin_layout Itemize
23887
23888 \change_deleted 564990737 1669801478
23889
23890 \family sans
23891 \size normal
23892 Letter
23893 \family default
23894  for a Letter to the editor
23895 \end_layout
23896
23897 \end_deeper
23898 \begin_layout Itemize
23899
23900 \change_deleted 564990737 1669801478
23901
23902 \size normal
23903 All title environments except of 
23904 \family sans
23905 Letter
23906 \family default
23907  can have an optional short title.
23908 \end_layout
23909
23910 \begin_layout Itemize
23911
23912 \change_deleted 564990737 1669801478
23913 There is a general title environment 
23914 \family sans
23915 Article
23916 \family default
23917  which is not directly supported by \SpecialChar LyX
23918 .
23919  This can be used as \SpecialChar TeX
23920  code when your document doesn't fit into one of the
23921  other title types.
23922 \end_layout
23923
23924 \begin_layout Standard
23925
23926 \change_deleted 564990737 1669801478
23927 For more informations like hints for special table and formula formatting,
23928  look at the IOP author guidelines.
23929 \change_unchanged
23930
23931 \end_layout
23932
23933 \begin_layout Section
23934
23935 \change_deleted 564990737 1670317155
23936 Kluwer
23937 \end_layout
23938
23939 \begin_layout Standard
23940
23941 \change_deleted 564990737 1670317155
23942 by 
23943 \noun on
23944 Panayotis Papasotiriou
23945 \end_layout
23946
23947 \begin_layout Subsection
23948
23949 \change_deleted 564990737 1670317155
23950 Overview
23951 \end_layout
23952
23953 \begin_layout Standard
23954
23955 \change_deleted 564990737 1670317155
23956 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
23957  that facilitates electronic manuscript submission to the journals they
23958  publish.
23959  Most known of them (at least in my domain of interest) are 
23960 \emph on
23961 Astrophysics and Space Science
23962 \emph default
23963  and 
23964 \emph on
23965 Solar Physics
23966 \emph default
23967 , but there are many others (see a complete list at 
23968 \begin_inset Flex URL
23969 status collapsed
23970
23971 \begin_layout Plain Layout
23972
23973 http://www.wkap.nl/jrnllist.htm/JRNLHOME
23974 \end_layout
23975
23976 \end_inset
23977
23978 ).
23979  The Kluwer package may be downloaded from the site 
23980 \begin_inset Flex URL
23981 status collapsed
23982
23983 \begin_layout Plain Layout
23984
23985 http://www.wkap.nl/kaphtml.htm/STYLEFILES
23986 \end_layout
23987
23988 \end_inset
23989
23990 .
23991  A complete user guide is contained in that package (but it can also be
23992  downloaded separately).
23993 \end_layout
23994
23995 \begin_layout Standard
23996
23997 \change_deleted 564990737 1670317155
23998 \SpecialChar LyX
23999  supports many features of the package but not everything.
24000  However, the \SpecialChar TeX
24001  code needed is reduced to some 
24002 \begin_inset Quotes eld
24003 \end_inset
24004
24005 peculiar
24006 \begin_inset Quotes erd
24007 \end_inset
24008
24009  commands of the package (see
24010 \begin_inset space ~
24011 \end_inset
24012
24013
24014 \begin_inset CommandInset ref
24015 LatexCommand ref
24016 reference "subsec:kluwer_peculiarities"
24017
24018 \end_inset
24019
24020 ).
24021  I have recently used \SpecialChar LyX
24022  to write an article submitted to the 
24023 \emph on
24024 Astrophysics and Space Science
24025 \emph default
24026  without any problem.
24027 \end_layout
24028
24029 \begin_layout Subsection
24030
24031 \change_deleted 564990737 1670317155
24032 Writing a paper
24033 \end_layout
24034
24035 \begin_layout Standard
24036
24037 \change_deleted 564990737 1670317155
24038 The easiest way to write a paper is to start with the Kluwer template file.
24039  Click on 
24040 \family sans
24041 File\SpecialChar menuseparator
24042 New from
24043 \family default
24044  
24045 \family sans
24046 Template
24047 \family default
24048 , then choose the 
24049 \family typewriter
24050 kluwer.lyx
24051 \family default
24052  template.
24053  This will give an (almost) empty document that includes the most common
24054  fields found in a manuscript and a short description of their use.
24055  As in most templates, simply overwrite the existing text (including the
24056  brackets, 
24057 \family typewriter
24058 <>
24059 \family default
24060 ) with the correct information.
24061 \end_layout
24062
24063 \begin_layout Subsection
24064
24065 \change_deleted 564990737 1670317155
24066 Preparing a paper for submission
24067 \end_layout
24068
24069 \begin_layout Standard
24070
24071 \change_deleted 564990737 1670317155
24072 As in the AAS\SpecialChar TeX
24073  package, before you submit your paper to a journal you must
24074  
24075 \begin_inset Quotes eld
24076 \end_inset
24077
24078 postprocess
24079 \begin_inset Quotes erd
24080 \end_inset
24081
24082  it as follows.
24083 \end_layout
24084
24085 \begin_layout Enumerate
24086
24087 \change_deleted 564990737 1670317155
24088 Export your paper as a \SpecialChar LaTeX
24089  file.
24090  To do this, click on 
24091 \family sans
24092 File\SpecialChar menuseparator
24093 Export\SpecialChar menuseparator
24094 \SpecialChar LaTeX
24095
24096 \family default
24097 .
24098  
24099 \end_layout
24100
24101 \begin_layout Enumerate
24102
24103 \change_deleted 564990737 1670317155
24104 Edit the resulting 
24105 \family typewriter
24106 .tex
24107 \family default
24108  file with a text editor and make the following changes
24109 \end_layout
24110
24111 \begin_deeper
24112 \begin_layout Enumerate
24113
24114 \change_deleted 564990737 1670317155
24115 remove the comment lines before the 
24116 \family typewriter
24117
24118 \backslash
24119 documentclass
24120 \family default
24121  command,
24122 \end_layout
24123
24124 \begin_layout Enumerate
24125
24126 \change_deleted 564990737 1670317155
24127 remove everything between (and including) the 
24128 \family typewriter
24129
24130 \backslash
24131 makeatletter
24132 \family default
24133  and 
24134 \family typewriter
24135
24136 \backslash
24137 makeatother
24138 \family default
24139  commands, except for any commands you specifically put into the \SpecialChar LaTeX
24140  preamble.
24141 \end_layout
24142
24143 \begin_layout Standard
24144
24145 \change_deleted 564990737 1670317155
24146 Save the resulting 
24147 \family typewriter
24148 .tex
24149 \family default
24150  file.
24151 \end_layout
24152
24153 \end_deeper
24154 \begin_layout Enumerate
24155
24156 \change_deleted 564990737 1670317155
24157 Run the 
24158 \family typewriter
24159 .tex
24160 \family default
24161  file through \SpecialChar LaTeX
24162  as many times as necessary (usually up to three).
24163 \end_layout
24164
24165 \begin_layout Enumerate
24166
24167 \change_deleted 564990737 1670317155
24168 View the resulting 
24169 \family typewriter
24170 .dvi
24171 \family default
24172  document using, e.
24173 \begin_inset space \thinspace{}
24174 \end_inset
24175
24176 g.
24177 \begin_inset space \space{}
24178 \end_inset
24179
24180
24181 \family sans
24182 xdvi
24183 \family default
24184 , and check if everything is OK (it should, if you didn't make any mistake).
24185 \end_layout
24186
24187 \begin_layout Subsection
24188
24189 \change_deleted 564990737 1670317155
24190 \begin_inset Quotes eld
24191 \end_inset
24192
24193 Peculiarities
24194 \begin_inset Quotes erd
24195 \end_inset
24196
24197  of the Kluwer package
24198 \begin_inset CommandInset label
24199 LatexCommand label
24200 name "subsec:kluwer_peculiarities"
24201
24202 \end_inset
24203
24204
24205 \end_layout
24206
24207 \begin_layout Standard
24208
24209 \change_deleted 564990737 1670317155
24210 The Kluwer package has the following 
24211 \begin_inset Quotes eld
24212 \end_inset
24213
24214 peculiarities
24215 \begin_inset Quotes erd
24216 \end_inset
24217
24218 .
24219 \end_layout
24220
24221 \begin_layout Enumerate
24222
24223 \change_deleted 564990737 1670317155
24224 It is possible to write multiple articles in the same \SpecialChar LaTeX
24225  file
24226 \begin_inset Foot
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 I can't imagine any good reason to do this.
24231 \end_layout
24232
24233 \end_inset
24234
24235 .
24236  Each article must be included in the environment 
24237 \begin_inset Quotes eld
24238 \end_inset
24239
24240 article
24241 \begin_inset Quotes erd
24242 \end_inset
24243
24244 .
24245  Unfortunately, this environment cannot be omitted, even if you write just
24246  one article.
24247  Therefore, each article starts with the command 
24248 \family typewriter
24249
24250 \backslash
24251 begin{article}
24252 \family default
24253  and, obviously, ends with the command 
24254 \family typewriter
24255
24256 \backslash
24257 end{article}
24258 \family default
24259 .
24260  Although this can be implemented in \SpecialChar LyX
24261 , I didn't included it, since it looks
24262  ugly and can confuse the novice user.
24263  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
24264  code (the
24265  well-known 
24266 \begin_inset Quotes eld
24267 \end_inset
24268
24269 \SpecialChar TeX
24270  code
24271 \begin_inset Quotes erd
24272 \end_inset
24273
24274 ).
24275 \end_layout
24276
24277 \begin_layout Enumerate
24278
24279 \change_deleted 564990737 1670317155
24280 Information given at the beginning of the article (i.
24281 \begin_inset space \thinspace{}
24282 \end_inset
24283
24284 e.
24285 \begin_inset space \space{}
24286 \end_inset
24287
24288 title, subtitle, author, institution, running title, running author, abstract
24289  and keywords) must be included in an environment called 
24290 \begin_inset Quotes eld
24291 \end_inset
24292
24293 opening
24294 \begin_inset Quotes erd
24295 \end_inset
24296
24297 .
24298  This is not implemented in \SpecialChar LyX
24299 , so you must enter title, subtitle etc.
24300 \begin_inset space ~
24301 \end_inset
24302
24303 between two \SpecialChar TeX
24304  code lines (
24305 \family typewriter
24306
24307 \backslash
24308 begin{opening}
24309 \family default
24310  and 
24311 \family typewriter
24312
24313 \backslash
24314 end{opening}
24315 \family default
24316 ).
24317 \end_layout
24318
24319 \begin_layout Enumerate
24320
24321 \change_deleted 564990737 1670317155
24322 According to the user manual, the label of each bibliography item must be
24323  written as 
24324 \family typewriter
24325
24326 \backslash
24327 protect
24328 \backslash
24329 citeauthoryear{
24330 \family default
24331 \emph on
24332 author(s)
24333 \family typewriter
24334 \emph default
24335 }{
24336 \family default
24337 \emph on
24338 year
24339 \family typewriter
24340 \emph default
24341 }
24342 \family default
24343 .
24344 \end_layout
24345
24346 \begin_layout Standard
24347
24348 \change_deleted 564990737 1670317155
24349 The 
24350 \family typewriter
24351 kluwer.lyx
24352 \family default
24353  template takes care of all these 
24354 \begin_inset Quotes eld
24355 \end_inset
24356
24357 peculiarities
24358 \begin_inset Quotes erd
24359 \end_inset
24360
24361 .
24362  If you start a new paper using this template you don't need to do anything
24363  special.
24364  Just 
24365 \end_layout
24366
24367 \begin_layout Enumerate
24368
24369 \change_deleted 564990737 1670317155
24370 don't delete the \SpecialChar TeX
24371  code included in the template, and
24372 \end_layout
24373
24374 \begin_layout Enumerate
24375
24376 \change_deleted 564990737 1670317155
24377 copy the example bibliography item included in the template and modify it
24378  as necessary to enter new bibliography items.
24379 \end_layout
24380
24381 \begin_layout Section
24382
24383 \change_deleted 564990737 1671097446
24384 Paper
24385 \end_layout
24386
24387 \begin_layout Standard
24388
24389 \change_deleted 564990737 1671097446
24390 The document class 
24391 \family sans
24392 paper
24393 \family default
24394  provides an alternative to the standard 
24395 \family sans
24396 article
24397 \family default
24398  class.
24399  It provides similar functionality, but you might prefer this layout with
24400  sans serif sections, headings, and more.
24401 \end_layout
24402
24403 \begin_layout Section
24404
24405 \change_deleted 564990737 1671097446
24406 Springer Journals (
24407 \family sans
24408 svjour
24409 \family default
24410 )
24411 \end_layout
24412
24413 \begin_layout Standard
24414
24415 \change_deleted 564990737 1671097446
24416 by 
24417 \noun on
24418 Martin Vermeer
24419 \end_layout
24420
24421 \begin_layout Subsection
24422
24423 \change_deleted 564990737 1671097446
24424 Description
24425 \end_layout
24426
24427 \begin_layout Standard
24428
24429 \change_deleted 564990737 1671097446
24430 These are the layout files for some of the journal formats used by Springer
24431  Verlag and listed on 
24432 \begin_inset Flex URL
24433 status collapsed
24434
24435 \begin_layout Plain Layout
24436
24437 http://www.springer.de/author/tex/help-journals.html
24438 \end_layout
24439
24440 \end_inset
24441
24442 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
24443  now!).
24444  It is a modular system: the things common to all journals are implemented
24445  in 
24446 \family typewriter
24447 svjour.inc
24448 \family default
24449 , which journal-specific layout files (such as, e.
24450 \begin_inset space \thinspace{}
24451 \end_inset
24452
24453 g.
24454 \begin_inset space \space{}
24455 \end_inset
24456
24457
24458 \family typewriter
24459 svjog.layout
24460 \family default
24461  for Journal of Geodesy) can include.
24462 \end_layout
24463
24464 \begin_layout Standard
24465
24466 \change_deleted 564990737 1671097446
24467 This means that implementing support for any other Springer journal on this
24468  list is as simple as writing your own 
24469 \family typewriter
24470 sv
24471 \family default
24472 <myjournal>
24473 \family typewriter
24474 .layout
24475 \family default
24476  file following the outline given in 
24477 \family typewriter
24478 svjog.layout
24479 \family default
24480 .
24481  
24482 \end_layout
24483
24484 \begin_layout Standard
24485
24486 \change_deleted 564990737 1671097446
24487 It is reasonably well tested only for the Journal of Geodesy.
24488  
24489 \family typewriter
24490 svjour
24491 \family default
24492  and 
24493 \family typewriter
24494 svjog
24495 \family default
24496  come with the standard \SpecialChar LyX
24497  distribution.
24498  Install the relevant class file (downloaded from Springer) in a proper
24499  directory, reconfigure \SpecialChar LaTeX
24500  (in the te\SpecialChar TeX
24501  case by running 
24502 \family typewriter
24503 texhash
24504 \family default
24505 , as root if necessary — doesn't \SpecialChar LyX
24506  take care of this?), reconfigure \SpecialChar LyX
24507  and
24508  it should work.
24509 \end_layout
24510
24511 \begin_layout Subsection
24512
24513 \change_deleted 564990737 1671097446
24514 New styles
24515 \end_layout
24516
24517 \begin_layout Standard
24518
24519 \change_deleted 564990737 1671097446
24520 A large number of theorem-like styles — 
24521 \family sans
24522 Claim, Conjecture,
24523 \family default
24524  
24525 \family sans
24526 \SpecialChar ldots
24527 Theorem
24528 \family default
24529 .
24530 \end_layout
24531
24532 \begin_layout Standard
24533
24534 \change_deleted 564990737 1671097446
24535
24536 \family sans
24537 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
24538 _Title, Author_Running, Institute,
24539  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
24540 \family default
24541 .
24542  See the Springer class file documentation for details.
24543 \end_layout
24544
24545 \begin_layout Subsection
24546
24547 \change_deleted 564990737 1671097446
24548 Supported journals
24549 \end_layout
24550
24551 \begin_layout Itemize
24552
24553 \change_deleted 564990737 1671097446
24554
24555 \emph on
24556 Journal of Geodesy
24557 \emph default
24558
24559 \family typewriter
24560 svjog.layout
24561 \family default
24562  — Martin Vermeer
24563 \end_layout
24564
24565 \begin_layout Itemize
24566
24567 \change_deleted 564990737 1671097446
24568
24569 \emph on
24570 Probability Theory and Related Fields
24571 \emph default
24572
24573 \family typewriter
24574 svprobth.layout
24575 \family default
24576  — Jean-Marc Lasgouttes
24577 \end_layout
24578
24579 \begin_layout Standard
24580
24581 \change_deleted 564990737 1671097446
24582 Add your own, it isn't so hard!
24583 \end_layout
24584
24585 \begin_layout Subsection
24586
24587 \change_deleted 564990737 1671097446
24588 Credits
24589 \end_layout
24590
24591 \begin_layout Standard
24592
24593 \change_deleted 564990737 1671097446
24594 These files are partly based on the older 
24595 \family typewriter
24596 ejour2.layout
24597 \family default
24598 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
24599  2.09 style
24600  file from Springer.
24601  All this, and the 
24602 \family typewriter
24603 ejour2
24604 \family default
24605  layout, are now defunct.
24606  Jean-Marc Lasgouttes helped out big in making me find my way around the
24607  \SpecialChar LyX
24608  layout file mechanism.
24609 \end_layout
24610
24611 \begin_layout Subsection
24612
24613 \change_deleted 564990737 1671097446
24614 Bugs
24615 \end_layout
24616
24617 \begin_layout Standard
24618
24619 \change_deleted 564990737 1671097446
24620 Probably.
24621  But probably less than in the old hacked-\SpecialChar LaTeX
24622  
24623 \family typewriter
24624 ejour2
24625 \family default
24626 .
24627 \end_layout
24628
24629 \begin_layout Chapter
24630 \SpecialChar LyX
24631  Features needing Extra Software
24632 \end_layout
24633
24634 \begin_layout Section
24635 Checking \SpecialChar TeX
24636
24637 \end_layout
24638
24639 \begin_layout Standard
24640 by 
24641 \noun on
24642 Asger Alstrup
24643 \end_layout
24644
24645 \begin_layout Subsection
24646 Introduction
24647 \end_layout
24648
24649 \begin_layout Standard
24650 If you have the 
24651 \family typewriter
24652 chktex
24653 \family default
24654  program installed
24655 \begin_inset Foot
24656 status collapsed
24657
24658 \begin_layout Plain Layout
24659
24660 \family typewriter
24661 chktex
24662 \family default
24663  is not yet available when you are using the \SpecialChar LaTeX
24664  distribution MiK\SpecialChar TeX
24665 .
24666 \end_layout
24667
24668 \end_inset
24669
24670 , you'll find in the 
24671 \family sans
24672 Tools
24673 \family default
24674  menu the entry: 
24675 \family sans
24676 Check
24677 \begin_inset space ~
24678 \end_inset
24679
24680 TeX
24681 \family default
24682 .
24683  You can get 
24684 \family typewriter
24685 chktex
24686 \family default
24687  from CTAN,
24688 \begin_inset Newline newline
24689 \end_inset
24690
24691
24692 \begin_inset CommandInset href
24693 LatexCommand href
24694 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
24695 literal "false"
24696
24697 \end_inset
24698
24699 .
24700 \end_layout
24701
24702 \begin_layout Standard
24703 The 
24704 \family sans
24705 Chk\SpecialChar TeX
24706
24707 \family default
24708  package is a program that was written by 
24709 \begin_inset Flex Noun
24710 status collapsed
24711
24712 \begin_layout Plain Layout
24713 Jens T.
24714 \begin_inset space ~
24715 \end_inset
24716
24717 Berger Thielemann
24718 \end_layout
24719
24720 \end_inset
24721
24722  in frustration because some constructs in \SpecialChar LaTeX
24723  are sometimes non-intuitive,
24724  and easy to forget.
24725  The program runs over your \SpecialChar LaTeX
24726  file, checks the integrity of the file, and
24727  flags some common errors.
24728  In other technical words, it is 
24729 \family typewriter
24730 lint
24731 \family default
24732  for \SpecialChar LaTeX
24733 .
24734 \end_layout
24735
24736 \begin_layout Standard
24737 Well, what is a syntax checker doing in \SpecialChar LyX
24738  which is supposed to produce correct
24739  \SpecialChar LaTeX
24740  anyways? The answer is simple: Just as 
24741 \family typewriter
24742 Lint
24743 \family default
24744  not only checks the 
24745 \emph on
24746 syntax
24747 \emph default
24748  of C programs, but also does 
24749 \emph on
24750 semantic
24751 \emph default
24752  checks for type-errors, 
24753 \family sans
24754 Chk\SpecialChar TeX
24755
24756 \family default
24757  catches some common 
24758 \emph on
24759 typographic
24760 \emph default
24761  errors, in addition to the syntactical ones.
24762  Specifically, 
24763 \family sans
24764 Chk\SpecialChar TeX
24765
24766 \family default
24767  is capable of detecting several common errors, such as
24768 \end_layout
24769
24770 \begin_layout Itemize
24771 Ellipsis detection:
24772 \begin_inset Newline newline
24773 \end_inset
24774
24775 Use \SpecialChar ldots
24776  instead of ...
24777 \end_layout
24778
24779 \begin_layout Itemize
24780 No space in front of/after parenthesis:
24781 \begin_inset Newline newline
24782 \end_inset
24783
24784 ( wrong spacing )
24785 \end_layout
24786
24787 \begin_layout Itemize
24788 Enforcement of normal space after common abbreviations:
24789 \begin_inset Newline newline
24790 \end_inset
24791
24792 e.
24793 \begin_inset space \thinspace{}
24794 \end_inset
24795
24796 g.
24797 \begin_inset space \space{}
24798 \end_inset
24799
24800 is too wide spacing.
24801 \end_layout
24802
24803 \begin_layout Itemize
24804 Enforcement of end-of-sentence space when the last sentence ends with a
24805  capital letter:
24806 \begin_inset Newline newline
24807 \end_inset
24808
24809 This is a TEST.
24810  And this is wrong spacing.
24811 \end_layout
24812
24813 \begin_layout Itemize
24814 Space in front of labels and similar commands:
24815 \begin_inset Newline newline
24816 \end_inset
24817
24818 The label should stick right up to the text to avoid falling to a wrong
24819  page.
24820  
24821 \begin_inset CommandInset label
24822 LatexCommand label
24823 name "sec:chktex"
24824
24825 \end_inset
24826
24827  
24828 \begin_inset Foot
24829 status collapsed
24830
24831 \begin_layout Plain Layout
24832 This footnote is in danger of falling off to a wrong page
24833 \end_layout
24834
24835 \end_inset
24836
24837  The label is separated too much.
24838 \end_layout
24839
24840 \begin_layout Itemize
24841 Space in front of references, instead of hard spaces:
24842 \begin_inset Newline newline
24843 \end_inset
24844
24845 If you have bad luck, the text will break right between the referenced text
24846  and reference number, and that's a pity.
24847  See section 
24848 \begin_inset CommandInset ref
24849 LatexCommand ref
24850 reference "sec:chktex"
24851
24852 \end_inset
24853
24854 .
24855 \end_layout
24856
24857 \begin_layout Itemize
24858 Use of 
24859 \begin_inset Quotes eld
24860 \end_inset
24861
24862 x
24863 \begin_inset Quotes erd
24864 \end_inset
24865
24866  instead of 
24867 \begin_inset Formula $\times$
24868 \end_inset
24869
24870  between numbers:
24871 \begin_inset Newline newline
24872 \end_inset
24873
24874 2x2 looks cheap compared to 
24875 \begin_inset Formula $2\times2$
24876 \end_inset
24877
24878 .
24879 \end_layout
24880
24881 \begin_layout Standard
24882 and more \SpecialChar ldots
24883  It is an invaluable tool when you are 
24884 \begin_inset Quotes eld
24885 \end_inset
24886
24887 finishing up
24888 \begin_inset Quotes erd
24889 \end_inset
24890
24891  your document before printing, and you should run it right after the obligatory
24892  spelling check, and before you go fine tuning the typesetting.
24893 \end_layout
24894
24895 \begin_layout Subsection
24896 How to use it
24897 \end_layout
24898
24899 \begin_layout Standard
24900 If you have the program installed, usage is as simple as choosing 
24901 \family sans
24902 Tools\SpecialChar menuseparator
24903 Check
24904 \begin_inset space ~
24905 \end_inset
24906
24907 TeX
24908 \family default
24909 .
24910  This will make \SpecialChar LyX
24911  generate a \SpecialChar LaTeX
24912  file of your document, start 
24913 \family sans
24914 Chk\SpecialChar TeX
24915
24916 \family default
24917  to check it, and then make \SpecialChar LyX
24918  insert 
24919 \begin_inset Quotes eld
24920 \end_inset
24921
24922 error boxes
24923 \begin_inset Quotes erd
24924 \end_inset
24925
24926  with the warnings from 
24927 \family sans
24928 Chk\SpecialChar TeX
24929
24930 \family default
24931 , if there were any.
24932  The warnings will be placed close to the point of the mistake, and you
24933  can quickly find them by using the 
24934 \family sans
24935 Navigate\SpecialChar menuseparator
24936 Error
24937 \family default
24938  menu item, or the shortcut key 
24939 \family sans
24940 C-g
24941 \family default
24942  from the default 
24943 \family typewriter
24944 cua
24945 \family default
24946  bind file.
24947  Open the error boxes by clicking on them with the mouse, or use the shortcut
24948  key 
24949 \family sans
24950 C-i
24951 \family default
24952  from 
24953 \family typewriter
24954 cua
24955 \family default
24956  bindings, or the corresponding 
24957 \family sans
24958 C-o
24959 \family default
24960  for the alternate 
24961 \family typewriter
24962 emacs
24963 \family default
24964  bind file.
24965  Read the warning and correct the mistake, if it is a mistake.
24966  If you have trouble understanding what the warning is about, you can safely
24967  ignore it.
24968  Remember that there is a hidden layer between the document on screen and
24969  the technical details in invoking 
24970 \family sans
24971 Chk\SpecialChar TeX
24972
24973 \family default
24974 , and this gap can make some warnings seem arcane or just plain silly.
24975 \end_layout
24976
24977 \begin_layout Standard
24978 This document is an excellent testing bed for the feature, and it should
24979  provide quite a few warnings for you to fiddle with.
24980  Since computers are only so smart, expect most of the warnings to be false
24981  alarms, though.
24982 \end_layout
24983
24984 \begin_layout Subsection
24985 How to fine tune it
24986 \end_layout
24987
24988 \begin_layout Standard
24989 Sometimes, you'll find that 
24990 \family sans
24991 Chk\SpecialChar TeX
24992
24993 \family default
24994  makes more noise than suits your mood.
24995  Then you can choose not to use it, wait until your mood changes, or try
24996  to customize 
24997 \family sans
24998 Chk\SpecialChar TeX
24999
25000 \family default
25001  to get better along with you.
25002 \end_layout
25003
25004 \begin_layout Standard
25005 Although 
25006 \family sans
25007 Chk\SpecialChar TeX
25008
25009 \family default
25010  
25011 \emph on
25012 is
25013 \emph default
25014  very configurable and extensible, you should not expect to solve all problems
25015  with 
25016 \family sans
25017 Chk\SpecialChar TeX
25018
25019 \family default
25020  in \SpecialChar LyX
25021  this way.
25022  Since \SpecialChar LyX
25023  has to generate a somewhat special \SpecialChar LaTeX
25024  file to be able to match the
25025  line numbers from the 
25026 \family sans
25027 Chk\SpecialChar TeX
25028
25029 \family default
25030  output
25031 \begin_inset Foot
25032 status collapsed
25033
25034 \begin_layout Plain Layout
25035 You can inspect the specific output from 
25036 \family sans
25037 chktex
25038 \family default
25039  by using 
25040 \family sans
25041 Document\SpecialChar menuseparator
25042 \SpecialChar LaTeX
25043
25044 \begin_inset space ~
25045 \end_inset
25046
25047 Log
25048 \family default
25049  right after a 
25050 \family sans
25051 chktex
25052 \family default
25053  run.
25054 \end_layout
25055
25056 \end_inset
25057
25058  to the internal document structure, some of the warnings will not appear
25059  correctly.
25060  There are two things you can do about this:
25061 \end_layout
25062
25063 \begin_layout Itemize
25064 Fine tune the 
25065 \family sans
25066 Chk\SpecialChar TeX
25067
25068 \family default
25069  invocation command line in 
25070 \begin_inset Flex Noun
25071 status collapsed
25072
25073 \begin_layout Plain Layout
25074 Tools\SpecialChar menuseparator
25075 Preferences\SpecialChar menuseparator
25076 Output\SpecialChar menuseparator
25077 LaTeX\SpecialChar menuseparator
25078 CheckTeX command
25079 \end_layout
25080
25081 \end_inset
25082
25083 , or the global 
25084 \family sans
25085 Chk\SpecialChar TeX
25086
25087 \family default
25088  installation configuration file (usually with the file 
25089 \family typewriter
25090 chktexrc
25091 \family default
25092 ).
25093  See below to learn what warnings can be enabled and disabled on the command
25094  line.
25095 \end_layout
25096
25097 \begin_layout Itemize
25098 Export your document as a raw \SpecialChar LaTeX
25099  file using 
25100 \family sans
25101 File\SpecialChar menuseparator
25102 Export\SpecialChar menuseparator
25103 \SpecialChar LaTeX
25104
25105 \family default
25106  and run 
25107 \family typewriter
25108 chktex
25109 \family default
25110  manually on that.
25111  Invoked in this way, it can be a hassle to find the corresponding place
25112  in the document inside \SpecialChar LyX
25113 , but with a little patience, you should be able
25114  to do it.
25115 \end_layout
25116
25117 \begin_layout Standard
25118 Here follows the warning messages that can be enabled and disabled in 
25119 \family sans
25120 Preferences
25121 \family default
25122 .
25123  Use 
25124 \family typewriter
25125 -n#
25126 \family default
25127  to disable a warning, and 
25128 \family typewriter
25129 -w#
25130 \family default
25131  to enable a warning.
25132  The emphasized entries are disabled by default, because the default is
25133  "
25134 \family typewriter
25135 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
25136 \family default
25137 ".
25138 \end_layout
25139
25140 \begin_layout Standard
25141 Notice that you should only use the options that enable and disable warnings,
25142  because \SpecialChar LyX
25143  relies on some of the other command line parameters to be set
25144  in a specific way to have a chance to communicate with 
25145 \family typewriter
25146 chktex
25147 \family default
25148 .
25149 \end_layout
25150
25151 \begin_layout Enumerate
25152
25153 \size small
25154 \emph on
25155 Command terminated with space.
25156 \end_layout
25157
25158 \begin_layout Enumerate
25159
25160 \size small
25161 Non-breaking space (
25162 \begin_inset Quotes eld
25163 \end_inset
25164
25165
25166 \family typewriter
25167 ~
25168 \family default
25169
25170 \begin_inset Quotes erd
25171 \end_inset
25172
25173 ) should have been used.
25174 \end_layout
25175
25176 \begin_layout Enumerate
25177
25178 \size small
25179 \emph on
25180 You should enclose the previous parenthesis with 
25181 \begin_inset Quotes eld
25182 \end_inset
25183
25184
25185 \family typewriter
25186 {}
25187 \family default
25188
25189 \begin_inset Quotes erd
25190 \end_inset
25191
25192 .
25193 \end_layout
25194
25195 \begin_layout Enumerate
25196
25197 \size small
25198 Italic correction (
25199 \begin_inset Quotes eld
25200 \end_inset
25201
25202
25203 \family typewriter
25204
25205 \backslash
25206 /
25207 \family default
25208
25209 \begin_inset Quotes erd
25210 \end_inset
25211
25212 ) found in non-italic buffer.
25213 \end_layout
25214
25215 \begin_layout Enumerate
25216
25217 \size small
25218 Italic correction (
25219 \begin_inset Quotes eld
25220 \end_inset
25221
25222
25223 \family typewriter
25224
25225 \backslash
25226 /
25227 \family default
25228
25229 \begin_inset Quotes erd
25230 \end_inset
25231
25232 ) found more than once.
25233 \end_layout
25234
25235 \begin_layout Enumerate
25236
25237 \size small
25238 \emph on
25239 No italic correction (
25240 \begin_inset Quotes eld
25241 \end_inset
25242
25243
25244 \family typewriter
25245
25246 \backslash
25247 /
25248 \family default
25249
25250 \begin_inset Quotes erd
25251 \end_inset
25252
25253 ) found.
25254 \end_layout
25255
25256 \begin_layout Enumerate
25257
25258 \size small
25259 Accent command 
25260 \begin_inset Quotes eld
25261 \end_inset
25262
25263
25264 \family typewriter
25265 cmd
25266 \family default
25267
25268 \begin_inset Quotes erd
25269 \end_inset
25270
25271  needs use of 
25272 \begin_inset Quotes eld
25273 \end_inset
25274
25275
25276 \family typewriter
25277 cmd
25278 \family default
25279
25280 \begin_inset Quotes erd
25281 \end_inset
25282
25283 .
25284 \end_layout
25285
25286 \begin_layout Enumerate
25287
25288 \size small
25289 Wrong length of dash may have been used.
25290 \end_layout
25291
25292 \begin_layout Enumerate
25293
25294 \size small
25295 \emph on
25296 \begin_inset Quotes eld
25297 \end_inset
25298
25299
25300 \family typewriter
25301 %s
25302 \family default
25303
25304 \begin_inset Quotes erd
25305 \end_inset
25306
25307  expected, found 
25308 \begin_inset Quotes eld
25309 \end_inset
25310
25311
25312 \family typewriter
25313 %s
25314 \family default
25315
25316 \begin_inset Quotes erd
25317 \end_inset
25318
25319 .
25320 \end_layout
25321
25322 \begin_layout Enumerate
25323
25324 \size small
25325 Solo 
25326 \begin_inset Quotes eld
25327 \end_inset
25328
25329
25330 \family typewriter
25331 %s
25332 \family default
25333
25334 \begin_inset Quotes erd
25335 \end_inset
25336
25337  found.
25338 \end_layout
25339
25340 \begin_layout Enumerate
25341
25342 \size small
25343 You should use 
25344 \begin_inset Quotes eld
25345 \end_inset
25346
25347
25348 \family typewriter
25349 %s
25350 \family default
25351
25352 \begin_inset Quotes erd
25353 \end_inset
25354
25355  to achieve an ellipsis.
25356 \end_layout
25357
25358 \begin_layout Enumerate
25359
25360 \size small
25361 Inter-word spacing (
25362 \begin_inset Quotes eld
25363 \end_inset
25364
25365
25366 \family typewriter
25367
25368 \backslash
25369
25370 \family default
25371  
25372 \begin_inset Quotes eld
25373 \end_inset
25374
25375 ) should perhaps be used.
25376 \end_layout
25377
25378 \begin_layout Enumerate
25379
25380 \size small
25381 Inter-sentence spacing (
25382 \begin_inset Quotes eld
25383 \end_inset
25384
25385
25386 \family typewriter
25387
25388 \backslash
25389 @
25390 \family default
25391
25392 \begin_inset Quotes erd
25393 \end_inset
25394
25395 ) should perhaps be used.
25396 \end_layout
25397
25398 \begin_layout Enumerate
25399
25400 \size small
25401 Could not find argument for command.
25402 \end_layout
25403
25404 \begin_layout Enumerate
25405
25406 \size small
25407 No match found for 
25408 \begin_inset Quotes eld
25409 \end_inset
25410
25411
25412 \family typewriter
25413 %s
25414 \family default
25415
25416 \begin_inset Quotes erd
25417 \end_inset
25418
25419 .
25420 \end_layout
25421
25422 \begin_layout Enumerate
25423
25424 \size small
25425 Math mode still on at end of \SpecialChar LaTeX
25426  file.
25427 \end_layout
25428
25429 \begin_layout Enumerate
25430
25431 \size small
25432 Number of 
25433 \begin_inset Quotes eld
25434 \end_inset
25435
25436
25437 \family typewriter
25438 char
25439 \family default
25440
25441 \begin_inset Quotes erd
25442 \end_inset
25443
25444  doesn't match the number of 
25445 \begin_inset Quotes eld
25446 \end_inset
25447
25448
25449 \family typewriter
25450 char
25451 \family default
25452
25453 \begin_inset Quotes erd
25454 \end_inset
25455
25456 .
25457 \end_layout
25458
25459 \begin_layout Enumerate
25460
25461 \size small
25462 You should use either 
25463 \family typewriter
25464
25465 \begin_inset Quotes eld
25466 \end_inset
25467
25468
25469 \family default
25470  or 
25471 \family typewriter
25472
25473 \begin_inset Quotes erd
25474 \end_inset
25475
25476
25477 \family default
25478  as an alternative to 
25479 \begin_inset Quotes eld
25480 \end_inset
25481
25482
25483 \family typewriter
25484 "
25485 \family default
25486
25487 \begin_inset Quotes erd
25488 \end_inset
25489
25490 .
25491 \end_layout
25492
25493 \begin_layout Enumerate
25494
25495 \size small
25496 You should use "
25497 \family typewriter
25498 '
25499 \family default
25500 " (ASCII 39) instead of "
25501 \family typewriter
25502 ´
25503 \family default
25504 " (ASCII 180).
25505 \end_layout
25506
25507 \begin_layout Enumerate
25508
25509 \size small
25510 User-specified pattern found.
25511 \end_layout
25512
25513 \begin_layout Enumerate
25514
25515 \size small
25516 This command might not be intended.
25517 \end_layout
25518
25519 \begin_layout Enumerate
25520
25521 \size small
25522 \emph on
25523 Comment displayed.
25524 \end_layout
25525
25526 \begin_layout Enumerate
25527
25528 \size small
25529 Either 
25530 \family typewriter
25531 ''
25532 \backslash
25533 ,'
25534 \family default
25535  or 
25536 \family typewriter
25537 '
25538 \backslash
25539 ,''
25540 \family default
25541  will look better.
25542 \end_layout
25543
25544 \begin_layout Enumerate
25545
25546 \size small
25547 Delete this space to maintain correct page references.
25548 \end_layout
25549
25550 \begin_layout Enumerate
25551
25552 \size small
25553 \emph on
25554 You might wish to put this between a pair of 
25555 \begin_inset Quotes eld
25556 \end_inset
25557
25558
25559 \family typewriter
25560 {}
25561 \family default
25562
25563 \begin_inset Quotes erd
25564 \end_inset
25565
25566 .
25567 \end_layout
25568
25569 \begin_layout Enumerate
25570
25571 \size small
25572 You ought to remove spaces in front of punctuation.
25573 \end_layout
25574
25575 \begin_layout Enumerate
25576
25577 \size small
25578 Could not execute \SpecialChar LaTeX
25579  command.
25580 \end_layout
25581
25582 \begin_layout Enumerate
25583
25584 \size small
25585 Don't use 
25586 \family typewriter
25587
25588 \backslash
25589 /
25590 \family default
25591  in front of small punctuation.
25592 \end_layout
25593
25594 \begin_layout Enumerate
25595
25596 \family typewriter
25597 \size small
25598 $
25599 \backslash
25600 times$
25601 \family default
25602  may look prettier here.
25603 \end_layout
25604
25605 \begin_layout Enumerate
25606
25607 \size small
25608 \emph on
25609 Multiple spaces detected in output.
25610 \end_layout
25611
25612 \begin_layout Enumerate
25613
25614 \size small
25615 This text may be ignored.
25616 \end_layout
25617
25618 \begin_layout Enumerate
25619
25620 \size small
25621 Use 
25622 \family typewriter
25623
25624 \begin_inset Quotes eld
25625 \end_inset
25626
25627
25628 \family default
25629  to begin quotation, not 
25630 \family typewriter
25631 '
25632 \family default
25633 .
25634 \end_layout
25635
25636 \begin_layout Enumerate
25637
25638 \size small
25639 Use 
25640 \family typewriter
25641 '
25642 \family default
25643  to end quotation, not 
25644 \family typewriter
25645
25646 \begin_inset Quotes eld
25647 \end_inset
25648
25649
25650 \family default
25651 .
25652 \end_layout
25653
25654 \begin_layout Enumerate
25655
25656 \size small
25657 Don't mix quotes.
25658 \end_layout
25659
25660 \begin_layout Enumerate
25661
25662 \size small
25663 You should perhaps use 
25664 \begin_inset Quotes eld
25665 \end_inset
25666
25667
25668 \family typewriter
25669 cmd
25670 \family default
25671
25672 \begin_inset Quotes erd
25673 \end_inset
25674
25675  instead.
25676 \end_layout
25677
25678 \begin_layout Enumerate
25679
25680 \size small
25681 You should put a space in front of/after parenthesis.
25682 \end_layout
25683
25684 \begin_layout Enumerate
25685
25686 \size small
25687 You should avoid spaces in front of/after parenthesis.
25688 \end_layout
25689
25690 \begin_layout Enumerate
25691
25692 \size small
25693 \emph on
25694 You should not use punctuation in front of/after quotes.
25695 \end_layout
25696
25697 \begin_layout Enumerate
25698
25699 \size small
25700 Double space found.
25701 \end_layout
25702
25703 \begin_layout Enumerate
25704
25705 \size small
25706 You should put punctuation outside inner/inside display math mode.
25707 \end_layout
25708
25709 \begin_layout Enumerate
25710
25711 \size small
25712 You ought to not use primitive \SpecialChar TeX
25713  in \SpecialChar LaTeX
25714  code.
25715 \end_layout
25716
25717 \begin_layout Enumerate
25718
25719 \size small
25720 You should remove spaces in front of 
25721 \begin_inset Quotes eld
25722 \end_inset
25723
25724
25725 \family typewriter
25726 %s
25727 \family default
25728
25729 \begin_inset Quotes erd
25730 \end_inset
25731
25732
25733 \end_layout
25734
25735 \begin_layout Enumerate
25736
25737 \size small
25738 \begin_inset Quotes eld
25739 \end_inset
25740
25741
25742 \family typewriter
25743 %s
25744 \family default
25745
25746 \begin_inset Quotes erd
25747 \end_inset
25748
25749  is normally not followed by 
25750 \begin_inset Quotes eld
25751 \end_inset
25752
25753
25754 \family typewriter
25755 %c
25756 \family default
25757
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761 .
25762 \end_layout
25763
25764 \begin_layout Standard
25765 In later versions of \SpecialChar LyX
25766 , we hope to provide a more complete interface to this
25767  tool (and it's smaller cousin 
25768 \family typewriter
25769 lacheck
25770 \family default
25771 ) to exploit the full power of it.
25772  But it's not exactly useless as it is now: go try it on one of your existing
25773  documents of a certain length and be surprised.
25774 \end_layout
25775
25776 \begin_layout Section
25777 Version Control in \SpecialChar LyX
25778
25779 \end_layout
25780
25781 \begin_layout Standard
25782 by
25783 \noun on
25784  Lars Gullik Bjønnes 
25785 \noun default
25786 and 
25787 \noun on
25788 Pavel Sanda
25789 \end_layout
25790
25791 \begin_layout Subsection
25792 Introduction
25793 \end_layout
25794
25795 \begin_layout Standard
25796 \SpecialChar LyX
25797  supports some of the most basic RCS/CVS/SVN/GIT commands.
25798  If you need something a bit more sophisticated you will have to do that
25799  manually in a terminal.
25800 \end_layout
25801
25802 \begin_layout Standard
25803 Also note that CVS support is not as good as subversion support, so we advise
25804  using SVN instead.
25805  A good place to start learning Subversion is the SVN Book
25806 \begin_inset Foot
25807 status collapsed
25808
25809 \begin_layout Plain Layout
25810 \begin_inset CommandInset href
25811 LatexCommand href
25812 target "http://svnbook.red-bean.com/"
25813 literal "false"
25814
25815 \end_inset
25816
25817
25818 \end_layout
25819
25820 \end_inset
25821
25822 .
25823  In the case of RCS you should read 
25824 \begin_inset Quotes eld
25825 \end_inset
25826
25827 rcsintro
25828 \begin_inset Quotes erd
25829 \end_inset
25830
25831  (a man file, read it with 
25832 \family typewriter
25833 man rcsintro
25834 \family default
25835 ).
25836  This file describes all the basic features of RCS.
25837  You should especially notice the comment about a RCS directory, and the
25838  notion of a master RCS file (the file ending in 
25839 \family typewriter
25840 ,v
25841 \family default
25842 ).
25843 \end_layout
25844
25845 \begin_layout Standard
25846 Before you begin to use the version control features in \SpecialChar LyX
25847 , you should be
25848  familiar with RCS/CVS/SVN/GIT usage.
25849  The implementation in \SpecialChar LyX
25850  assumes a recent version of the GNU RCS or CVS/SVN
25851  package — no guarantees are made for older versions.
25852  Most of the log messages are not currently displayed after operations —
25853  you can check them in the Messages pane if you are unsure.
25854  Regular users of version control will appreciate the VC toolbar, which
25855  can be enabled via 
25856 \family sans
25857 View\SpecialChar menuseparator
25858 Toolbars\SpecialChar menuseparator
25859 Version
25860 \begin_inset space ~
25861 \end_inset
25862
25863 Control
25864 \family default
25865 .
25866 \end_layout
25867
25868 \begin_layout Standard
25869 For introducing your own external commands consult 
25870 \begin_inset Flex Code
25871 status collapsed
25872
25873 \begin_layout Plain Layout
25874 vc-command
25875 \end_layout
25876
25877 \end_inset
25878
25879  in the manual 
25880 \emph on
25881 \SpecialChar LyX
25882  Functions
25883 \emph default
25884 .
25885 \end_layout
25886
25887 \begin_layout Standard
25888 It is strongly recommended to store documents in uncompressed format if
25889  using version control (uncheck 
25890 \family sans
25891 Document\SpecialChar menuseparator
25892 Compressed
25893 \family default
25894  if it is checked): Uncompressed LyX documents are text files and therefore
25895  for merging two different versions by version control systems.
25896  Compressed LyX documents are binary files, which cannot be merged by version
25897  control systems.
25898 \end_layout
25899
25900 \begin_layout Subsection
25901 RCS commands in \SpecialChar LyX
25902
25903 \end_layout
25904
25905 \begin_layout Standard
25906 The following sections describe the RCS commands supported by \SpecialChar LyX
25907 .
25908  You can find them in the 
25909 \family sans
25910 File\SpecialChar menuseparator
25911 Version
25912 \begin_inset space ~
25913 \end_inset
25914
25915 Control
25916 \family default
25917  submenu.
25918  \SpecialChar LyX
25919  was tested against RCS 5.7/5.8.
25920 \end_layout
25921
25922 \begin_layout Subsubsection
25923
25924 \family sans
25925 Register
25926 \end_layout
25927
25928 \begin_layout Standard
25929 If your document is not under revision control, this is the only item shown
25930  in the menu.
25931  And if it is under revision control, the 
25932 \family sans
25933 Register
25934 \family default
25935  item is not visible.
25936  
25937 \end_layout
25938
25939 \begin_layout Standard
25940 This command registers your document with RCS (unless you are under the
25941  directory managed by CVS)\SpecialChar endofsentence
25942  You are asked interactively to supply an initial
25943  description of the document.
25944  The document is now set in Read-Only mode and you have to 
25945 \family sans
25946 Check
25947 \begin_inset space ~
25948 \end_inset
25949
25950 Out
25951 \begin_inset space ~
25952 \end_inset
25953
25954 For
25955 \begin_inset space ~
25956 \end_inset
25957
25958 Edit
25959 \family default
25960 , before making any changes to it.
25961  A document under revision control has a 
25962 \begin_inset Quotes eld
25963 \end_inset
25964
25965 [RCS:<version> <locker>]
25966 \begin_inset Quotes erd
25967 \end_inset
25968
25969  item tagged to the filename in the minibuffer.
25970 \end_layout
25971
25972 \begin_layout Standard
25973 RCS command that is run:
25974 \end_layout
25975
25976 \begin_layout LyX-Code
25977
25978 \family typewriter
25979 ci -q -u -i -t-"<initial description>" <file-name>
25980 \end_layout
25981
25982 \begin_layout Standard
25983 Read 
25984 \family typewriter
25985 man ci
25986 \family default
25987  to understand the switches.
25988  
25989 \end_layout
25990
25991 \begin_layout Subsubsection
25992
25993 \family sans
25994 Check In Changes
25995 \end_layout
25996
25997 \begin_layout Standard
25998 When you are finished editing a file, you check in your changes.
25999  When you do this, you are asked for a description of the changes.
26000  This is stored in the history log.
26001  The version number is bumped, your changes are applied to the master RCS
26002  file, the document is unlocked and set to Read-Only mode.
26003 \end_layout
26004
26005 \begin_layout Itemize
26006 RCS command: 
26007 \family typewriter
26008 ci -q -u -m"<description>" <file-name>
26009 \end_layout
26010
26011 \begin_layout Subsubsection
26012
26013 \family sans
26014 Check Out For Edit
26015 \end_layout
26016
26017 \begin_layout Standard
26018 By doing this you lock the document so that only you can edit it.
26019  This will also make the document Read-Write only for you.
26020  You will usually continue editing for a while and when you are finished
26021  you check in your changes.
26022  The status line is changed to reflect that you have locked the file.
26023 \end_layout
26024
26025 \begin_layout Itemize
26026 RCS command: 
26027 \family typewriter
26028 co -q -l <file-name>
26029 \end_layout
26030
26031 \begin_layout Subsubsection
26032
26033 \family sans
26034 Revert To Repository Version
26035 \end_layout
26036
26037 \begin_layout Standard
26038 This will discard all changes made to the document since the last check
26039  in.
26040  You get a warning before changes are discarded.
26041 \end_layout
26042
26043 \begin_layout Itemize
26044 RCS command: 
26045 \family typewriter
26046 co -f -u<version> <file-name>
26047 \end_layout
26048
26049 \begin_layout Subsubsection
26050
26051 \family sans
26052 Copy
26053 \end_layout
26054
26055 \begin_layout Standard
26056 This will create a copy of the current document.
26057  Since RCS does not support copy operations natively, the version history
26058  is not preserved, and the copy is added as a new file.
26059  It requires a clean document without any changes since the last checkin.
26060  You are asked for a file name and a description of the copy operation.
26061  After that the copy is created, both locally and in the repository.
26062  If the parent directories of the copied and original document differ, all
26063  relative paths of included files of the copy are adjusted (like in 
26064 \family sans
26065 File\SpecialChar menuseparator
26066 Save As
26067 \family default
26068 \SpecialChar ldots
26069 ).
26070  Finally, the copy is loaded instead of the original document.
26071 \end_layout
26072
26073 \begin_layout Labeling
26074 \labelwidthstring 00.00.0000
26075 RCS
26076 \begin_inset space ~
26077 \end_inset
26078
26079 commands: 
26080 \begin_inset space ~
26081 \end_inset
26082
26083
26084 \begin_inset Newline newline
26085 \end_inset
26086
26087 Copy 
26088 \begin_inset Flex Code
26089 status collapsed
26090
26091 \begin_layout Plain Layout
26092
26093 \family typewriter
26094 \begin_inset Quotes qld
26095 \end_inset
26096
26097 <file-name>
26098 \begin_inset Quotes qld
26099 \end_inset
26100
26101
26102 \end_layout
26103
26104 \end_inset
26105
26106  to 
26107 \begin_inset Flex Code
26108 status collapsed
26109
26110 \begin_layout Plain Layout
26111
26112 \family typewriter
26113 \begin_inset Quotes qld
26114 \end_inset
26115
26116 <new-file-name>
26117 \begin_inset Quotes qld
26118 \end_inset
26119
26120
26121 \end_layout
26122
26123 \end_inset
26124
26125
26126 \begin_inset Newline newline
26127 \end_inset
26128
26129
26130 \begin_inset Flex Code
26131 status collapsed
26132
26133 \begin_layout Plain Layout
26134 ci -q -u 
26135 \family typewriter
26136 -i 
26137 \begin_inset Quotes qld
26138 \end_inset
26139
26140 <new-file-name>
26141 \begin_inset Quotes qld
26142 \end_inset
26143
26144
26145 \end_layout
26146
26147 \end_inset
26148
26149
26150 \end_layout
26151
26152 \begin_layout Subsubsection
26153
26154 \family sans
26155 Undo Last Checkin
26156 \end_layout
26157
26158 \begin_layout Standard
26159 This makes as if the last check in never happened.
26160  No changes are made to the document loaded into \SpecialChar LyX
26161 , but the last version
26162  is removed from the master RCS file.
26163 \end_layout
26164
26165 \begin_layout Itemize
26166 RCS command: 
26167 \family typewriter
26168 rcs -o<version> <file-name>
26169 \end_layout
26170
26171 \begin_layout Subsubsection
26172
26173 \family sans
26174 Show History
26175 \end_layout
26176
26177 \begin_layout Standard
26178 This shows the complete history of the RCS document.
26179  The output of 
26180 \family typewriter
26181 rlog <file-name>
26182 \family default
26183  is shown in a browser.
26184  See 
26185 \family typewriter
26186 man rlog
26187 \family default
26188  for more info.
26189 \end_layout
26190
26191 \begin_layout Subsubsection
26192 Revision info
26193 \end_layout
26194
26195 \begin_layout Standard
26196 \SpecialChar LyX
26197  supports RCS version number, author name, date and time of last commit.
26198  All those are extracted from 
26199 \family typewriter
26200 rlog -r <file-name>
26201 \family default
26202 .
26203  See 
26204 \begin_inset CommandInset ref
26205 LatexCommand ref
26206 reference "subsec:VCS-Revision-Information"
26207
26208 \end_inset
26209
26210  for details.
26211 \end_layout
26212
26213 \begin_layout Subsection
26214 CVS commands in \SpecialChar LyX
26215
26216 \end_layout
26217
26218 \begin_layout Standard
26219 A subset of CVS operations is supported by \SpecialChar LyX
26220 .
26221  You can find the commands in the 
26222 \family sans
26223 File\SpecialChar menuseparator
26224 Version
26225 \begin_inset space ~
26226 \end_inset
26227
26228 Control
26229 \family default
26230  submenu.
26231  The version control system SVN is more powerful, so please use it instead
26232  of CVS if possible.
26233 \end_layout
26234
26235 \begin_layout Subsubsection
26236
26237 \family sans
26238 General CVS usage
26239 \end_layout
26240
26241 \begin_layout Standard
26242 If you start from scratch with CVS you have to create your repository and
26243  checkout the working copy with external tools.
26244  If you're using a client-server setup you may need to login before doing
26245  the first repository checkout.
26246 \end_layout
26247
26248 \begin_layout Standard
26249 If your documents are under revision control and others are using the same
26250  repository problems arise when different changes to the same document at
26251  the same location happen.
26252  Standard CVS repositories don't operate with a file locking mechanism.
26253  This may be surprising, but conflicts only occur if people disagree on
26254  the proper content of the same part of a document.
26255  So, if co-workers are used to communicate regularly, these conflicts occur
26256  rarely.
26257  If they don't communicate they have a fundamental problem anyway.
26258  Nevertheless some people like to work with so called 
26259 \begin_inset Quotes eld
26260 \end_inset
26261
26262 reserved checkouts
26263 \begin_inset Quotes erd
26264 \end_inset
26265
26266 .
26267  If they do so the working copy of all files is readonly when checked out
26268  first and the user starts editing after using a special command to make
26269  the working copy writable.
26270  When the changes are checked in the working copy returns to readonly state.
26271  With \SpecialChar LyX
26272  one has to edit the 
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 .cvsrc
26278 \end_layout
26279
26280 \end_inset
26281
26282  file and add the line 
26283 \begin_inset Flex Code
26284 status collapsed
26285
26286 \begin_layout Plain Layout
26287 cvs -r
26288 \end_layout
26289
26290 \end_inset
26291
26292  to work with reserved checkouts.
26293  The benefit is the possibility to see who is using a writable copy of some
26294  document.
26295  It's not guaranteed only one user makes a copy writable.
26296 \end_layout
26297
26298 \begin_layout Standard
26299 \SpecialChar LyX
26300  tries to guess if you're using reserved or non-reserved checkouts.
26301  If your working copy is readonly or it is writable and an additional copy
26302  of your document exists in the CVS/Base sub-directory a reserved otherwise
26303  a non-reserved checkout is assumed.
26304  When a reserved checkout is detected you have to use 
26305 \begin_inset Flex Noun
26306 status collapsed
26307
26308 \begin_layout Plain Layout
26309 Check Out
26310 \end_layout
26311
26312 \end_inset
26313
26314  to make your working copy writable if it's readonly.
26315  After doing so the 
26316 \begin_inset Flex Noun
26317 status collapsed
26318
26319 \begin_layout Plain Layout
26320 Check In
26321 \end_layout
26322
26323 \end_inset
26324
26325  operation is possible and that makes your working copy readonly again after
26326  transferring your changes to the repository.
26327 \end_layout
26328
26329 \begin_layout Standard
26330 More information about CVS can be found here 
26331 \begin_inset Flex URL
26332 status collapsed
26333
26334 \begin_layout Plain Layout
26335
26336 http://www.nongnu.org/cvs
26337 \end_layout
26338
26339 \end_inset
26340
26341  and here 
26342 \begin_inset Flex URL
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346
26347 http://ximbiot.com/cvs
26348 \end_layout
26349
26350 \end_inset
26351
26352 .
26353 \end_layout
26354
26355 \begin_layout Standard
26356 Read 
26357 \family typewriter
26358 man cvs
26359 \family default
26360  to understand the sub-commands and the switches mentioned below.
26361 \end_layout
26362
26363 \begin_layout Subsubsection
26364
26365 \family sans
26366 Register
26367 \end_layout
26368
26369 \begin_layout Standard
26370 If your document is not under revision control, this is the only item shown
26371  in the menu.
26372  And if it is under revision control, the 
26373 \family sans
26374 Register
26375 \family default
26376  item is not visible.
26377  
26378 \end_layout
26379
26380 \begin_layout Standard
26381 This command registers in CVS your document 
26382 \begin_inset Flex Strong
26383 status collapsed
26384
26385 \begin_layout Plain Layout
26386
26387 \emph on
26388 only
26389 \end_layout
26390
26391 \end_inset
26392
26393  in the case you have already the documents directory under CVS control
26394  (in particular 
26395 \family typewriter
26396 CVS/Entries
26397 \family default
26398  file exists).
26399  This means you have to create or checkout the archive by yourself using
26400  external tools.
26401  (In case you forget that step \SpecialChar LyX
26402  registers the document with RCS.)
26403 \end_layout
26404
26405 \begin_layout Standard
26406 Then you are asked interactively to supply an initial description of the
26407  document.
26408  Don't forget that registered file is not yet checked in.
26409 \end_layout
26410
26411 \begin_layout Standard
26412 CVS command that is run: 
26413 \family typewriter
26414 cvs -q add -m"<entered message>" "<file-name>"
26415 \end_layout
26416
26417 \begin_layout Standard
26418 The term 
26419 \family typewriter
26420 "<file-name>"
26421 \family default
26422  above and for all other CVS commands is an abbreviation for 
26423 \begin_inset Quotes eld
26424 \end_inset
26425
26426 change the current working directory to file location and use the file name
26427  without path component as argument
26428 \begin_inset Quotes erd
26429 \end_inset
26430
26431 .
26432 \end_layout
26433
26434 \begin_layout Subsubsection
26435
26436 \family sans
26437 Check In Changes
26438 \end_layout
26439
26440 \begin_layout Standard
26441 When you are finished editing a file, you commit your changes.
26442  When you do this and you had changed the document, you are asked for a
26443  description of the changes.
26444  After that changes are written to the repository.
26445  In case you didn't change the document and a reserved checkout is detected
26446  the reservation made on 
26447 \begin_inset Flex Noun
26448 status collapsed
26449
26450 \begin_layout Plain Layout
26451 Check Out
26452 \end_layout
26453
26454 \end_inset
26455
26456  is undone.
26457 \end_layout
26458
26459 \begin_layout Labeling
26460 \labelwidthstring 00.00.0000
26461 CVS
26462 \begin_inset space ~
26463 \end_inset
26464
26465 command: 
26466 \begin_inset space ~
26467 \end_inset
26468
26469
26470 \begin_inset Newline newline
26471 \end_inset
26472
26473
26474 \begin_inset Flex Code
26475 status collapsed
26476
26477 \begin_layout Plain Layout
26478 cvs 
26479 \family typewriter
26480 -q commit -m"<description>" "<file-name>"
26481 \end_layout
26482
26483 \end_inset
26484
26485  or
26486 \begin_inset Newline newline
26487 \end_inset
26488
26489
26490 \begin_inset Flex Code
26491 status collapsed
26492
26493 \begin_layout Plain Layout
26494 cvs -q unedit 
26495 \family typewriter
26496 "<file-name>"
26497 \end_layout
26498
26499 \end_inset
26500
26501
26502 \end_layout
26503
26504 \begin_layout Subsubsection
26505
26506 \family sans
26507 Check Out Changes
26508 \end_layout
26509
26510 \begin_layout Standard
26511 When you are sharing a repository with others, you may have to incorporate
26512  their changes into your working copy.
26513 \end_layout
26514
26515 \begin_layout Standard
26516 CVS command: 
26517 \family typewriter
26518 cvs -q update "<file-name>"
26519 \end_layout
26520
26521 \begin_layout Standard
26522 If a readonly checkout is detected the working copy is made writable and
26523  reserved.
26524 \end_layout
26525
26526 \begin_layout Standard
26527 CVS command: 
26528 \family typewriter
26529 cvs -q edit "<file-name>"
26530 \end_layout
26531
26532 \begin_layout Subsubsection
26533
26534 \family sans
26535 Revert To Repository Version
26536 \end_layout
26537
26538 \begin_layout Standard
26539 This will discard all changes made to the document since the last check
26540  in.
26541  You get a warning before changes are discarded.
26542  Firstly the file is deleted, secondly CVS update command is run.
26543 \end_layout
26544
26545 \begin_layout Standard
26546 CVS command: 
26547 \family typewriter
26548 cvs -q update "<file-name>"
26549 \end_layout
26550
26551 \begin_layout Standard
26552 If a reserved checkout is detected and the working copy has no changes only
26553  the reservation is undone.
26554 \end_layout
26555
26556 \begin_layout Standard
26557 CVS command: 
26558 \family typewriter
26559 cvs -q unedit "<file-name>"
26560 \end_layout
26561
26562 \begin_layout Subsubsection
26563
26564 \family sans
26565 Copy
26566 \end_layout
26567
26568 \begin_layout Standard
26569 This will create a copy of the current document.
26570  Since CVS does not support copy operations natively, the version history
26571  is not preserved, and the copy is added as a new file.
26572  It requires a clean document without any changes since the last checkin.
26573  You are asked for a file name and a description of the copy operation.
26574  After that the copy is created, both locally and in the repository.
26575  If the parent directories of the copied and original document differ, all
26576  relative paths of included files of the copy are adjusted (like in 
26577 \family sans
26578 File\SpecialChar menuseparator
26579 Save As
26580 \family default
26581 \SpecialChar ldots
26582 ).
26583  Finally, the copy is loaded instead of the original document.
26584 \end_layout
26585
26586 \begin_layout Labeling
26587 \labelwidthstring 00.00.0000
26588 CVS
26589 \begin_inset space ~
26590 \end_inset
26591
26592 commands: 
26593 \begin_inset space ~
26594 \end_inset
26595
26596
26597 \begin_inset Newline newline
26598 \end_inset
26599
26600 Copy 
26601 \begin_inset Flex Code
26602 status collapsed
26603
26604 \begin_layout Plain Layout
26605 "<file-name>"
26606 \end_layout
26607
26608 \end_inset
26609
26610  to 
26611 \begin_inset Flex Code
26612 status collapsed
26613
26614 \begin_layout Plain Layout
26615 "<new-file-name>"
26616 \end_layout
26617
26618 \end_inset
26619
26620
26621 \begin_inset Newline newline
26622 \end_inset
26623
26624
26625 \begin_inset Flex Code
26626 status collapsed
26627
26628 \begin_layout Plain Layout
26629 cvs -q add "<new-file-name>"
26630 \end_layout
26631
26632 \end_inset
26633
26634
26635 \end_layout
26636
26637 \begin_layout Subsubsection
26638
26639 \family sans
26640 Rename
26641 \end_layout
26642
26643 \begin_layout Standard
26644 This will rename the current document.
26645  Since CVS does not support rename operations natively, the version history
26646  is not preserved, the renamed document is added as a new file, and the
26647  original document is deleted.
26648  It requires a clean document without any changes since the last checkin.
26649  You are asked for a file name and a description of the rename operation.
26650  After that the document is renamed, both locally and in the repository.
26651  If the parent directories of the new and old file names differ, all relative
26652  paths of included files are adjusted (like in 
26653 \family sans
26654 File\SpecialChar menuseparator
26655 Save As
26656 \family default
26657 \SpecialChar ldots
26658 ).
26659  Finally, the document is reloaded using the new name.
26660 \end_layout
26661
26662 \begin_layout Labeling
26663 \labelwidthstring 00.00.0000
26664 CVS
26665 \begin_inset space ~
26666 \end_inset
26667
26668 commands: 
26669 \begin_inset space ~
26670 \end_inset
26671
26672
26673 \begin_inset Newline newline
26674 \end_inset
26675
26676 Rename 
26677 \begin_inset Flex Code
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681 "<file-name>"
26682 \end_layout
26683
26684 \end_inset
26685
26686  to 
26687 \begin_inset Flex Code
26688 status collapsed
26689
26690 \begin_layout Plain Layout
26691 "<new-file-name>"
26692 \end_layout
26693
26694 \end_inset
26695
26696
26697 \begin_inset Newline newline
26698 \end_inset
26699
26700
26701 \begin_inset Flex Code
26702 status collapsed
26703
26704 \begin_layout Plain Layout
26705 cvs -q add "<new-file-name>"
26706 \end_layout
26707
26708 \end_inset
26709
26710
26711 \begin_inset Newline newline
26712 \end_inset
26713
26714
26715 \begin_inset Flex Code
26716 status collapsed
26717
26718 \begin_layout Plain Layout
26719 cvs -q remove "<file-name>"
26720 \end_layout
26721
26722 \end_inset
26723
26724
26725 \end_layout
26726
26727 \begin_layout Subsubsection
26728 Update of the local directory checkout from repository
26729 \end_layout
26730
26731 \begin_layout Standard
26732 Once your documents gets more complex, containing sub-documents and pictures,
26733  including external 
26734 \begin_inset Flex Code
26735 status collapsed
26736
26737 \begin_layout Plain Layout
26738 .tex
26739 \end_layout
26740
26741 \end_inset
26742
26743  files and so on using version control becomes more complicated.
26744  \SpecialChar LyX
26745  supports updating the whole tree in which resides the document.
26746  This become especially useful once you cooperate with people which neither
26747  have detailed knowledge about CVS usage nor they have ambition to commit
26748  additional material to the repository.
26749  You have to organize the files structure so that all external files are
26750  in the same directory or subdirectories of the document.
26751  It's good practice anyway to store multipart documents in an extra directory.
26752 \end_layout
26753
26754 \begin_layout Standard
26755 The 
26756 \begin_inset Flex Code
26757 status collapsed
26758
26759 \begin_layout Plain Layout
26760 Update local directory from repository
26761 \end_layout
26762
26763 \end_inset
26764
26765  command updates the whole directory.
26766  If local changes are detected user is warned before update starts.
26767  In case of merge conflicts both versions of the conflicting document parts
26768  are placed in the final document.
26769  You have to review and correct the result of the merge.
26770  You'll find the conflicts enclosed in pairs of 
26771 \begin_inset Flex Code
26772 status collapsed
26773
26774 \begin_layout Plain Layout
26775 <<<<<<<
26776 \end_layout
26777
26778 \end_inset
26779
26780  and 
26781 \begin_inset Flex Code
26782 status collapsed
26783
26784 \begin_layout Plain Layout
26785 >>>>>>>
26786 \end_layout
26787
26788 \end_inset
26789
26790  separated by 
26791 \begin_inset Flex Code
26792 status collapsed
26793
26794 \begin_layout Plain Layout
26795 =======
26796 \end_layout
26797
26798 \end_inset
26799
26800 .
26801  The first part is your version as before the update operation with the
26802  document name prepended.
26803  The second one is the repository version with the version number after
26804  the sequence of 
26805 \begin_inset Flex Code
26806 status collapsed
26807
26808 \begin_layout Plain Layout
26809 >
26810 \end_layout
26811
26812 \end_inset
26813
26814  signs.
26815 \end_layout
26816
26817 \begin_layout Labeling
26818 \labelwidthstring 00.00.0000
26819 CVS
26820 \begin_inset space ~
26821 \end_inset
26822
26823 commands: 
26824 \begin_inset space ~
26825 \end_inset
26826
26827
26828 \begin_inset Newline newline
26829 \end_inset
26830
26831
26832 \begin_inset Flex Code
26833 status collapsed
26834
26835 \begin_layout Plain Layout
26836 cd $path; cvs diff 
26837 \family typewriter
26838 "."
26839 \end_layout
26840
26841 \end_inset
26842
26843  (Ask if changes are detected.)
26844 \begin_inset Newline newline
26845 \end_inset
26846
26847
26848 \begin_inset Flex Code
26849 status collapsed
26850
26851 \begin_layout Plain Layout
26852 cd $path; cvs -q update 
26853 \family typewriter
26854 "."
26855 \end_layout
26856
26857 \end_inset
26858
26859
26860 \end_layout
26861
26862 \begin_layout Standard
26863 where 
26864 \begin_inset Flex Code
26865 status collapsed
26866
26867 \begin_layout Plain Layout
26868 $path
26869 \end_layout
26870
26871 \end_inset
26872
26873  stands for the path to the document.
26874 \end_layout
26875
26876 \begin_layout Subsubsection
26877
26878 \family sans
26879 Show History
26880 \end_layout
26881
26882 \begin_layout Standard
26883 This shows the complete history of the CVS document.
26884  The output of 
26885 \family typewriter
26886 cvs log "<file-name>"
26887 \family default
26888  is shown in a browser.
26889 \end_layout
26890
26891 \begin_layout Subsubsection
26892 Revision info
26893 \end_layout
26894
26895 \begin_layout Standard
26896 \SpecialChar LyX
26897  supports CVS version number, author name, date and time of last commit.
26898  All those are extracted from 
26899 \family typewriter
26900 cvs log -r <file-name>
26901 \family default
26902 .
26903  See 
26904 \begin_inset CommandInset ref
26905 LatexCommand ref
26906 reference "subsec:VCS-Revision-Information"
26907
26908 \end_inset
26909
26910  for details.
26911 \end_layout
26912
26913 \begin_layout Subsection
26914 SVN commands in \SpecialChar LyX
26915
26916 \end_layout
26917
26918 \begin_layout Standard
26919 SVN is now partially supported by \SpecialChar LyX
26920 .
26921  You can find the commands in the 
26922 \family sans
26923 File\SpecialChar menuseparator
26924 Version
26925 \begin_inset space ~
26926 \end_inset
26927
26928 Control
26929 \family default
26930  submenu.
26931  Please note that if you use password protected access to repository via
26932  ssh, you will be asked in terminal window.
26933  \SpecialChar LyX
26934  was tested against SVN 1.5, 1.6, 1.7 and 1.8
26935 \begin_inset Foot
26936 status collapsed
26937
26938 \begin_layout Plain Layout
26939 Most of the commands will work with 1.4 too, see 
26940 \begin_inset CommandInset ref
26941 LatexCommand ref
26942 reference "subsec:SVN-Repo-Update"
26943
26944 \end_inset
26945
26946 .
26947  There seems to be currently unresolved permissions problem under SVN 1.8
26948  with reverting changes when file is locked.
26949 \end_layout
26950
26951 \end_inset
26952
26953
26954 \end_layout
26955
26956 \begin_layout Subsubsection
26957
26958 \family sans
26959 Register
26960 \end_layout
26961
26962 \begin_layout Standard
26963 If your document is not under revision control, this is the only item shown
26964  in the menu.
26965  And if it is under revision control, the 
26966 \family sans
26967 Register
26968 \family default
26969  item is not visible.
26970 \end_layout
26971
26972 \begin_layout Standard
26973 This command registers in SVN your document ONLY in case you have already
26974  the documents directory under SVN control (in particular 
26975 \family typewriter
26976 .svn/entries
26977 \family default
26978  file exists).
26979  This means you have to checkout the archive by yourself.
26980 \end_layout
26981
26982 \begin_layout Standard
26983 Then you are asked interactively to supply an initial description of the
26984  document.
26985  Don't forget that registered file is not yet commited.
26986 \end_layout
26987
26988 \begin_layout Standard
26989 SVN command that is run: 
26990 \family typewriter
26991 svn add -q 
26992 \begin_inset Quotes qld
26993 \end_inset
26994
26995 <file-name>
26996 \begin_inset Quotes qld
26997 \end_inset
26998
26999
27000 \end_layout
27001
27002 \begin_layout Standard
27003 Read 
27004 \family typewriter
27005 man svn
27006 \family default
27007  to understand the switches.
27008 \end_layout
27009
27010 \begin_layout Subsubsection
27011
27012 \family sans
27013 Check In Changes
27014 \end_layout
27015
27016 \begin_layout Standard
27017 When you are finished editing a file, you commit your changes.
27018  When you do this, you are asked for a description of the changes.
27019  After that changes are commited.
27020 \end_layout
27021
27022 \begin_layout Standard
27023 SVN command:
27024 \begin_inset Foot
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 In case locking is not enabled.
27029  See Section 
27030 \begin_inset CommandInset ref
27031 LatexCommand ref
27032 reference "subsec:SVN-File-Locking"
27033
27034 \end_inset
27035
27036 .
27037 \end_layout
27038
27039 \end_inset
27040
27041  
27042 \family typewriter
27043 svn commit -q -m"<description>" <file-name>
27044 \end_layout
27045
27046 \begin_layout Subsubsection
27047
27048 \family sans
27049 Check Out For Edit
27050 \end_layout
27051
27052 \begin_layout Standard
27053 Updates the changes of this file from the repository.
27054  Be sure you understand SVN merging and conflicts resolving before using
27055  this function, because all conflicts has to be resolved manually by you!
27056 \end_layout
27057
27058 \begin_layout Standard
27059 SVN command:
27060 \begin_inset Foot
27061 status collapsed
27062
27063 \begin_layout Plain Layout
27064 Ditto.
27065 \end_layout
27066
27067 \end_inset
27068
27069  
27070 \family typewriter
27071 svn update --non-interactive 
27072 \begin_inset Quotes qld
27073 \end_inset
27074
27075 <file-name>
27076 \begin_inset Quotes qld
27077 \end_inset
27078
27079
27080 \end_layout
27081
27082 \begin_layout Subsubsection
27083
27084 \family sans
27085 Revert To Repository Version
27086 \end_layout
27087
27088 \begin_layout Standard
27089 This will discard all changes made to the document since the last check
27090  in.
27091  You get a warning before changes are discarded.
27092 \end_layout
27093
27094 \begin_layout Standard
27095 SVN command: 
27096 \family typewriter
27097 svn revert -q 
27098 \begin_inset Quotes qld
27099 \end_inset
27100
27101 <file-name>
27102 \begin_inset Quotes qld
27103 \end_inset
27104
27105
27106 \end_layout
27107
27108 \begin_layout Subsubsection
27109
27110 \family sans
27111 Copy
27112 \end_layout
27113
27114 \begin_layout Standard
27115 This will create a copy of the current document including the version history.
27116  It requires a clean document without any changes since the last checkin.
27117  You are asked for a file name and a description of the copy operation.
27118  After that the copy is created, both locally and in the repository.
27119  If the parent directories of the copied and original document differ, all
27120  relative paths of included files of the copy are adjusted (like in 
27121 \family sans
27122 File\SpecialChar menuseparator
27123 Save As
27124 \family default
27125 \SpecialChar ldots
27126 ).
27127  Finally, the copy is loaded instead of the original document.
27128 \end_layout
27129
27130 \begin_layout Labeling
27131 \labelwidthstring 00.00.0000
27132 SVN
27133 \begin_inset space ~
27134 \end_inset
27135
27136 commands: 
27137 \begin_inset space ~
27138 \end_inset
27139
27140
27141 \begin_inset Newline newline
27142 \end_inset
27143
27144
27145 \begin_inset Flex Code
27146 status collapsed
27147
27148 \begin_layout Plain Layout
27149 svn copy -q 
27150 \family typewriter
27151
27152 \begin_inset Quotes qld
27153 \end_inset
27154
27155 <file-name>
27156 \begin_inset Quotes qld
27157 \end_inset
27158
27159  
27160 \begin_inset Quotes qld
27161 \end_inset
27162
27163 <new-file-name>
27164 \begin_inset Quotes qld
27165 \end_inset
27166
27167
27168 \end_layout
27169
27170 \end_inset
27171
27172
27173 \begin_inset Newline newline
27174 \end_inset
27175
27176
27177 \begin_inset Flex Code
27178 status collapsed
27179
27180 \begin_layout Plain Layout
27181 svn commit
27182 \end_layout
27183
27184 \end_inset
27185
27186
27187 \end_layout
27188
27189 \begin_layout Subsubsection
27190
27191 \family sans
27192 Rename
27193 \end_layout
27194
27195 \begin_layout Standard
27196 This will rename the current document including the version history.
27197  It requires a clean document without any changes since the last checkin.
27198  You are asked for a file name and a description of the rename operation.
27199  After that the document is renamed, both locally and in the repository.
27200  If the parent directories of the new and old file names differ, all relative
27201  paths of included files are adjusted (like in 
27202 \family sans
27203 File\SpecialChar menuseparator
27204 Save As
27205 \family default
27206 \SpecialChar ldots
27207 ).
27208  Finally, the document is reloaded using the new name.
27209 \end_layout
27210
27211 \begin_layout Labeling
27212 \labelwidthstring 00.00.0000
27213 SVN
27214 \begin_inset space ~
27215 \end_inset
27216
27217 commands: 
27218 \begin_inset space ~
27219 \end_inset
27220
27221
27222 \begin_inset Newline newline
27223 \end_inset
27224
27225
27226 \begin_inset Flex Code
27227 status collapsed
27228
27229 \begin_layout Plain Layout
27230 svn move -q 
27231 \family typewriter
27232
27233 \begin_inset Quotes qld
27234 \end_inset
27235
27236 <file-name>
27237 \begin_inset Quotes qld
27238 \end_inset
27239
27240  
27241 \begin_inset Quotes qld
27242 \end_inset
27243
27244 <new-file-name>
27245 \begin_inset Quotes qld
27246 \end_inset
27247
27248
27249 \end_layout
27250
27251 \end_inset
27252
27253
27254 \begin_inset Newline newline
27255 \end_inset
27256
27257
27258 \begin_inset Flex Code
27259 status collapsed
27260
27261 \begin_layout Plain Layout
27262 svn commit
27263 \end_layout
27264
27265 \end_inset
27266
27267
27268 \end_layout
27269
27270 \begin_layout Subsubsection
27271 \begin_inset CommandInset label
27272 LatexCommand label
27273 name "subsec:SVN-Repo-Update"
27274
27275 \end_inset
27276
27277 Update of the local directory checkout from repository
27278 \begin_inset Foot
27279 status collapsed
27280
27281 \begin_layout Plain Layout
27282 Note that this command will work only with subversion 
27283 \begin_inset Formula $\geqq1.5$
27284 \end_inset
27285
27286
27287 \end_layout
27288
27289 \end_inset
27290
27291
27292 \end_layout
27293
27294 \begin_layout Standard
27295 All the commands above have one shortcoming – they deal with the current
27296  document only.
27297  Once your document contains pictures, includes external 
27298 \begin_inset Flex Code
27299 status collapsed
27300
27301 \begin_layout Plain Layout
27302 .tex
27303 \end_layout
27304
27305 \end_inset
27306
27307  files and so on administration becomes more complicated.
27308  \SpecialChar LyX
27309  now supports updating the whole tree in which resides the document
27310 \begin_inset Foot
27311 status collapsed
27312
27313 \begin_layout Plain Layout
27314 One need to organize the files structure so that all external files are
27315  in the same directory or subdirectories of the document.
27316  
27317 \end_layout
27318
27319 \end_inset
27320
27321 .
27322  This become especially useful once you cooperate with people which neither
27323  know about subversion management nor they have ambition to commit additional
27324  material to the repository.
27325  
27326 \end_layout
27327
27328 \begin_layout Standard
27329 \begin_inset Flex Code
27330 status collapsed
27331
27332 \begin_layout Plain Layout
27333 Update local directory from repository
27334 \end_layout
27335
27336 \end_inset
27337
27338  command updates the whole directory and in case of merge conflicts local
27339  version of the files are left, so no unintended data loss occurs.
27340  If local changes are detected user is warned before update starts.
27341 \end_layout
27342
27343 \begin_layout Labeling
27344 \labelwidthstring 00.00.0000
27345 SVN
27346 \begin_inset space ~
27347 \end_inset
27348
27349 commands: 
27350 \begin_inset space ~
27351 \end_inset
27352
27353
27354 \begin_inset Newline newline
27355 \end_inset
27356
27357
27358 \begin_inset Flex Code
27359 status collapsed
27360
27361 \begin_layout Plain Layout
27362 svn diff $path
27363 \end_layout
27364
27365 \end_inset
27366
27367  (Ask if changes are detected.)
27368 \begin_inset Newline newline
27369 \end_inset
27370
27371
27372 \begin_inset Flex Code
27373 status collapsed
27374
27375 \begin_layout Plain Layout
27376 svn update --accept mine-full $path
27377 \end_layout
27378
27379 \end_inset
27380
27381
27382 \end_layout
27383
27384 \begin_layout Standard
27385 where 
27386 \begin_inset Flex Code
27387 status collapsed
27388
27389 \begin_layout Plain Layout
27390 $path
27391 \end_layout
27392
27393 \end_inset
27394
27395  stands for the path to the document.
27396 \end_layout
27397
27398 \begin_layout Subsubsection
27399
27400 \family sans
27401 Show History
27402 \end_layout
27403
27404 \begin_layout Standard
27405 This shows the complete history of the SVN document.
27406  The output of 
27407 \family typewriter
27408 svn log 
27409 \begin_inset Quotes qld
27410 \end_inset
27411
27412 <file-name>
27413 \begin_inset Quotes qld
27414 \end_inset
27415
27416
27417 \family default
27418  is shown in a browser.
27419 \end_layout
27420
27421 \begin_layout Subsubsection
27422 File Locking
27423 \begin_inset CommandInset label
27424 LatexCommand label
27425 name "subsec:SVN-File-Locking"
27426
27427 \end_inset
27428
27429
27430 \end_layout
27431
27432 \begin_layout Standard
27433 The file exchange through various revision control systems brings the problem
27434  of merge conflicts in case two different users try to edit the same (parts
27435  of) document.
27436  When such a conflict happens it needs manual resolving and one reasonable
27437  alternative is to provide some kind of locking mechanism, which guarantees
27438  that only one user is allowed to edit file at the given time.
27439 \end_layout
27440
27441 \begin_layout Standard
27442 SVN has two such mechanisms to provide mutual exclusivity for file access
27443  – locks and automatic setting of write permissions (see sec.
27444  
27445 \begin_inset CommandInset ref
27446 LatexCommand ref
27447 reference "subsec:Automatical-Locking-Property"
27448
27449 \end_inset
27450
27451 ) based on 
27452 \begin_inset Flex Code
27453 status collapsed
27454
27455 \begin_layout Plain Layout
27456 svn:needs-lock
27457 \end_layout
27458
27459 \end_inset
27460
27461  file svn property
27462 \begin_inset Foot
27463 status collapsed
27464
27465 \begin_layout Plain Layout
27466 \begin_inset Flex URL
27467 status open
27468
27469 \begin_layout Plain Layout
27470
27471 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
27472 \end_layout
27473
27474 \end_inset
27475
27476
27477 \end_layout
27478
27479 \end_inset
27480
27481 .
27482  If this property is detected for a given document \SpecialChar LyX
27483  starts to use SVN locks
27484  for document editing automatically and the whole check-in/out mechanism
27485  switches to the same regimen as for RCS.
27486  This in particular means there are two different modes of file use in \SpecialChar LyX
27487 :
27488 \end_layout
27489
27490 \begin_layout Itemize
27491 Unlocked state.
27492  The loaded file is in the read-only mode.
27493  For editing on needs to check-out.
27494  
27495 \emph on
27496 Check-out
27497 \emph default
27498  consists of updating from the repository and gaining write lock.
27499  If the lock is not possible to obtain, we remain in unlocked state.
27500 \end_layout
27501
27502 \begin_layout Itemize
27503 Locked state.
27504  The loaded file is in the 
27505 \begin_inset Quotes els
27506 \end_inset
27507
27508 normal
27509 \begin_inset Quotes ers
27510 \end_inset
27511
27512  edit mode.
27513  No other user is allowed to edit the file.
27514  
27515 \emph on
27516 Check-in
27517 \emph default
27518  consists of commiting changes and releasing write-lock.
27519  If no changes have been made to the document, no commit will be produced
27520 \begin_inset Foot
27521 status collapsed
27522
27523 \begin_layout Plain Layout
27524 Don't be puzzled by the fact that you will be asked for commit message anyway.
27525 \end_layout
27526
27527 \end_inset
27528
27529  and only the write-lock will be released.
27530 \end_layout
27531
27532 \begin_layout Standard
27533 SVN commands:
27534 \end_layout
27535
27536 \begin_layout Labeling
27537 \labelwidthstring 00.00.0000
27538 Check-in:
27539 \family typewriter
27540  svn commit -q -m"<description>" "<file-name>"
27541 \begin_inset Newline newline
27542 \end_inset
27543
27544 svn unlock "<file-name>"
27545 \end_layout
27546
27547 \begin_layout Labeling
27548 \labelwidthstring 00.00.0000
27549 Check-out: 
27550 \family typewriter
27551 svn update "<file-name>"
27552 \begin_inset Newline newline
27553 \end_inset
27554
27555 svn lock "<file-name>"
27556 \end_layout
27557
27558 \begin_layout Subsubsection
27559
27560 \family typewriter
27561 \begin_inset CommandInset label
27562 LatexCommand label
27563 name "subsec:Automatical-Locking-Property"
27564
27565 \end_inset
27566
27567
27568 \family default
27569 Automatic Locking Property
27570 \end_layout
27571
27572 \begin_layout Standard
27573 The above mentioned automatic setting of write permissions of the .lyx file
27574  can be set through
27575 \family sans
27576  File\SpecialChar menuseparator
27577 Version
27578 \begin_inset space ~
27579 \end_inset
27580
27581 Control\SpecialChar menuseparator
27582 Use Locking Property
27583 \family default
27584 .
27585  This command is active only when the file is not locked on the svn server
27586  (i.e.
27587  you need to check-out before proceeding).
27588 \end_layout
27589
27590 \begin_layout Labeling
27591 \labelwidthstring 00.00.0000
27592 SVN
27593 \begin_inset space ~
27594 \end_inset
27595
27596 commands:
27597 \end_layout
27598
27599 \begin_layout Labeling
27600 \labelwidthstring 00.00.0000
27601 Set:
27602 \family typewriter
27603  svn propset svn:needs-lock ON "<file-name>"
27604 \end_layout
27605
27606 \begin_layout Labeling
27607 \labelwidthstring 00.00.0000
27608 Unset: 
27609 \family typewriter
27610 svn propdel svn:needs-lock "<file-name>"
27611 \end_layout
27612
27613 \begin_layout Subsubsection
27614 \begin_inset CommandInset label
27615 LatexCommand label
27616 name "subsec:VCS-Revision-Information"
27617
27618 \end_inset
27619
27620 Revision Information in Documents
27621 \end_layout
27622
27623 \begin_layout Standard
27624 There are more possibilities how to activate revision information in our
27625  document.
27626 \end_layout
27627
27628 \begin_layout Itemize
27629 \SpecialChar LyX
27630  supports directly:
27631 \end_layout
27632
27633 \begin_deeper
27634 \begin_layout Itemize
27635 tree revision information (
27636 \begin_inset Flex Code
27637 status collapsed
27638
27639 \begin_layout Plain Layout
27640 vcs-tree-revision
27641 \end_layout
27642
27643 \end_inset
27644
27645 ).
27646  The result is the output of the 
27647 \begin_inset Flex Code
27648 status collapsed
27649
27650 \begin_layout Plain Layout
27651 svnversion
27652 \end_layout
27653
27654 \end_inset
27655
27656  command, the following table gives you an idea, how to read the results.
27657 \end_layout
27658
27659 \begin_layout Standard
27660 \align center
27661 \begin_inset Tabular
27662 <lyxtabular version="3" rows="6" columns="2">
27663 <features tabularvalignment="middle">
27664 <column alignment="left" valignment="top">
27665 <column alignment="left" valignment="top">
27666 <row>
27667 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27668 \begin_inset Text
27669
27670 \begin_layout Plain Layout
27671
27672 \series bold
27673 Output
27674 \end_layout
27675
27676 \end_inset
27677 </cell>
27678 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27679 \begin_inset Text
27680
27681 \begin_layout Plain Layout
27682
27683 \series bold
27684 Meaning
27685 \end_layout
27686
27687 \end_inset
27688 </cell>
27689 </row>
27690 <row>
27691 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27692 \begin_inset Text
27693
27694 \begin_layout Plain Layout
27695 4123:4168
27696 \end_layout
27697
27698 \end_inset
27699 </cell>
27700 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27701 \begin_inset Text
27702
27703 \begin_layout Plain Layout
27704 mixed revision working copy
27705 \end_layout
27706
27707 \end_inset
27708 </cell>
27709 </row>
27710 <row>
27711 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27712 \begin_inset Text
27713
27714 \begin_layout Plain Layout
27715 4168M
27716 \end_layout
27717
27718 \end_inset
27719 </cell>
27720 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27721 \begin_inset Text
27722
27723 \begin_layout Plain Layout
27724 modified working copy
27725 \end_layout
27726
27727 \end_inset
27728 </cell>
27729 </row>
27730 <row>
27731 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27732 \begin_inset Text
27733
27734 \begin_layout Plain Layout
27735 4123S
27736 \end_layout
27737
27738 \end_inset
27739 </cell>
27740 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27741 \begin_inset Text
27742
27743 \begin_layout Plain Layout
27744 switched working copy
27745 \end_layout
27746
27747 \end_inset
27748 </cell>
27749 </row>
27750 <row>
27751 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27752 \begin_inset Text
27753
27754 \begin_layout Plain Layout
27755 4123P
27756 \end_layout
27757
27758 \end_inset
27759 </cell>
27760 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27761 \begin_inset Text
27762
27763 \begin_layout Plain Layout
27764 partial working copy, from a sparse checkout
27765 \end_layout
27766
27767 \end_inset
27768 </cell>
27769 </row>
27770 <row>
27771 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27772 \begin_inset Text
27773
27774 \begin_layout Plain Layout
27775 4123:4168MS
27776 \end_layout
27777
27778 \end_inset
27779 </cell>
27780 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27781 \begin_inset Text
27782
27783 \begin_layout Plain Layout
27784 mixed revision, modified, switched working copy
27785 \end_layout
27786
27787 \end_inset
27788 </cell>
27789 </row>
27790 </lyxtabular>
27791
27792 \end_inset
27793
27794
27795 \end_layout
27796
27797 \begin_layout Itemize
27798 file revision information.
27799  The result comes from parsing the output of 
27800 \begin_inset Flex Code
27801 status collapsed
27802
27803 \begin_layout Plain Layout
27804 svn
27805 \begin_inset space ~
27806 \end_inset
27807
27808 info
27809 \begin_inset space ~
27810 \end_inset
27811
27812 --xml
27813 \begin_inset space ~
27814 \end_inset
27815
27816 file.lyx
27817 \end_layout
27818
27819 \end_inset
27820
27821 .
27822  Supported flags are:
27823 \end_layout
27824
27825 \begin_deeper
27826 \begin_layout Itemize
27827 version number of the last commit (
27828 \begin_inset Flex Code
27829 status collapsed
27830
27831 \begin_layout Plain Layout
27832 vcs-revision
27833 \end_layout
27834
27835 \end_inset
27836
27837 )
27838 \end_layout
27839
27840 \begin_layout Itemize
27841 author of the last commit (
27842 \begin_inset Flex Code
27843 status collapsed
27844
27845 \begin_layout Plain Layout
27846 vcs-author
27847 \end_layout
27848
27849 \end_inset
27850
27851 )
27852 \end_layout
27853
27854 \begin_layout Itemize
27855 date of the last commit (
27856 \begin_inset Flex Code
27857 status collapsed
27858
27859 \begin_layout Plain Layout
27860 vcs-date
27861 \end_layout
27862
27863 \end_inset
27864
27865 )
27866 \end_layout
27867
27868 \begin_layout Itemize
27869 time of the last commit (
27870 \begin_inset Flex Code
27871 status collapsed
27872
27873 \begin_layout Plain Layout
27874 vcs-time
27875 \end_layout
27876
27877 \end_inset
27878
27879 )
27880 \end_layout
27881
27882 \end_deeper
27883 \begin_layout Standard
27884 You can obtain this info via InsetInfo (
27885 \change_inserted 5863208 1564400022
27886
27887 \lang american
27888 Insert\SpecialChar menuseparator
27889 Field\SpecialChar menuseparator
27890 Version Control Revision
27891 \change_deleted 5863208 1564399852
27892
27893 \lang english
27894 e.g.
27895  
27896 \begin_inset Flex Code
27897 status collapsed
27898
27899 \begin_layout Plain Layout
27900 info-insert buffer vcs-date
27901 \end_layout
27902
27903 \end_inset
27904
27905
27906 \change_unchanged
27907 ).
27908  The information will be available only when you have the file stored under
27909  svn managment (i.e.
27910  the 
27911 \begin_inset Flex Code
27912 status collapsed
27913
27914 \begin_layout Plain Layout
27915 .svn
27916 \end_layout
27917
27918 \end_inset
27919
27920  directory is available with your document).
27921 \end_layout
27922
27923 \end_deeper
27924 \begin_layout Itemize
27925 Another—a hacking one—possibility is to use svn keywords
27926 \begin_inset Foot
27927 status collapsed
27928
27929 \begin_layout Plain Layout
27930 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
27931 \end_layout
27932
27933 \end_inset
27934
27935 .
27936  In short – you set file keywords property (e.g.
27937  
27938 \family sans
27939 svn propset svn:keywords 'Rev' file.lyx
27940 \family default
27941 ) and then paste keyword \SpecialChar TeX
27942  code
27943 \begin_inset Foot
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947 This is an easy way how to ensure that \SpecialChar LyX
27948  won't break the line in the middle
27949  of keyword tag.
27950 \end_layout
27951
27952 \end_inset
27953
27954  tag in your document (e.g.
27955  
27956 \begin_inset Flex Code
27957 status collapsed
27958
27959 \begin_layout Plain Layout
27960 $Rev$
27961 \end_layout
27962
27963 \end_inset
27964
27965 ).
27966  This way svn client will automatically substitute revision number (e.g.
27967  
27968 \begin_inset Flex Code
27969 status collapsed
27970
27971 \begin_layout Plain Layout
27972 $Rev: 59 $
27973 \end_layout
27974
27975 \end_inset
27976
27977 ) after each update and commit.
27978  There are more problems with this approach.
27979  Firstly, the '$' character is used in \SpecialChar TeX
27980  world for math equations, so any
27981  occurence of math formula 
27982 \begin_inset Formula $Rev$
27983 \end_inset
27984
27985  become 
27986 \begin_inset Formula $Rev:59$
27987 \end_inset
27988
27989  in your \SpecialChar LyX
27990  document.
27991  Similarly for other keywords like Id, Date, Author, etc.
27992  Secondly svn output is dependent on your locales, so its very easy that
27993  svn would produce some problematic strings once Date is used.
27994  Thirdly you get the whole 'Rev: 59' string in your document instead of
27995  the plain number.
27996  Until subversion implements user's custom keywords it will be hard to use
27997  this approach reliably or let \SpecialChar LyX
27998  to support it directly.
27999 \end_layout
28000
28001 \begin_layout Subsection
28002 SVN and Windows Environment
28003 \end_layout
28004
28005 \begin_layout Quote
28006 My inclination is to say that if the user cannot figure out the command
28007  line operations on their own fairly quickly, they would be well advised
28008  to use TortoiseSVN.
28009  —P.
28010  A.
28011  Rubin
28012 \end_layout
28013
28014 \begin_layout Subsubsection
28015 Preparation
28016 \end_layout
28017
28018 \begin_layout Standard
28019 In addition to installing \SpecialChar LyX
28020 , and having access to a Subversion repository,
28021  the user will need to install the Subversion client program.
28022  A Windows installer for the client program is available from 
28023 \begin_inset CommandInset href
28024 LatexCommand href
28025 name "CollabNet"
28026 target "http://www.collab.net/nonav/downloads/subversion/"
28027 literal "false"
28028
28029 \end_inset
28030
28031 .
28032  The user may also want to install 
28033 \begin_inset CommandInset href
28034 LatexCommand href
28035 name "TortoiseSVN"
28036 target "http://tortoisesvn.tigris.org/"
28037 literal "false"
28038
28039 \end_inset
28040
28041 , which integrates Subversion operations into the context (rightclick) menu
28042  of Windows Explorer.
28043  Operations done outside \SpecialChar LyX
28044  will typically be more convenient using the Explorer
28045  context menu.
28046  Note that TortoiseSVN is not a replacement for the client program, which
28047  is what \SpecialChar LyX
28048  itself will use.
28049 \end_layout
28050
28051 \begin_layout Subsubsection
28052 Bringing a document under Subversion control
28053 \end_layout
28054
28055 \begin_layout Standard
28056 Before a \SpecialChar LyX
28057  document can be brought under version control in Subversion, its
28058  parent directory needs to be under version control.
28059  If the document is being added to a project already in the repository,
28060  this is accomplished by checking the project out to the directory where
28061  the new document will be placed.
28062  If the project itself is not yet under version control (for instance, if
28063  this document starts a new project), the directory must be imported into
28064  the repository.
28065  This is done outside \SpecialChar LyX
28066 .
28067  Both import and checkout are easily accomplished from the Explorer context
28068  menu using TortoiseSVN, or alternatively can be done using the command
28069  line client at a DOS prompt.
28070  The procedure for importing the project using TortoiseSVN is described
28071  below, assuming an existing repository and a new project being started
28072  in 
28073 \family typewriter
28074 C:
28075 \backslash
28076 new project
28077 \family default
28078 .
28079  For information on using the Subversion client program, run 
28080 \family typewriter
28081 svn --help 
28082 \family default
28083 in a DOS shell.
28084 \end_layout
28085
28086 \begin_layout Enumerate
28087 Locate 
28088 \family typewriter
28089 C:
28090 \backslash
28091 new project 
28092 \family default
28093 in Windows Explorer, right click it, and select 
28094 \family sans
28095 TortoiseSVN\SpecialChar menuseparator
28096 Repo-browser
28097 \family default
28098 .
28099  If necessary, adjust the URL for the repository, then click OK.
28100 \end_layout
28101
28102 \begin_layout Enumerate
28103 Right click the level of the repository under which you want to place the
28104  new project folder (typically the top level) and click 
28105 \family sans
28106 Create folder
28107 \family default
28108  Supply a name for the project folder and click OK.
28109  Add a message for the log file if desired, then click OK again.
28110  The new project folder should appear in the repository.
28111  Finally, click OK again to exit the repository browser.
28112 \end_layout
28113
28114 \begin_layout Enumerate
28115 Once again right click 
28116 \family typewriter
28117 C:
28118 \backslash
28119 new project
28120 \family default
28121 , this time selecting SVN Checkout\SpecialChar ldots
28122  Select the URL of the project folder
28123  you just created in the repository, and set the checkout directory to 
28124 \family typewriter
28125 C:
28126 \backslash
28127 new project.
28128
28129 \family default
28130  Click OK.
28131  You will be warned about a non-empty folder; click OK to proceed.
28132  You should now have a 
28133 \family typewriter
28134 .svn
28135 \family default
28136  directory under 
28137 \family typewriter
28138 C:
28139 \backslash
28140 new project.
28141 \end_layout
28142
28143 \begin_layout Enumerate
28144 Create or open your document in \SpecialChar LyX
28145  and click 
28146 \family sans
28147 File\SpecialChar menuseparator
28148 Version
28149 \begin_inset space ~
28150 \end_inset
28151
28152 Control\SpecialChar menuseparator
28153 Register.
28154  
28155 \family default
28156 Add a log message and click OK to commit the document to version control.
28157 \end_layout
28158
28159 \begin_layout Standard
28160 From this point onward, you should have full functionality in the 
28161 \family sans
28162 File\SpecialChar menuseparator
28163 Version
28164 \begin_inset space ~
28165 \end_inset
28166
28167 Control
28168 \family default
28169  menu.
28170  You also have the option of checking the document in and out, viewing its
28171  history, etc.
28172  using the TortoiseSVN context menu in Windows Explorer or the Subversion
28173  client program from a command prompt.
28174 \end_layout
28175
28176 \begin_layout Subsubsection
28177 SSH tunnel used with SVN under Windows
28178 \end_layout
28179
28180 \begin_layout Standard
28181 Compared with Linux setting up an svn client to communicate over ssh under
28182  Windows is a rather troublesome task.
28183  We will at least offer some hints how to setup the client side but prior
28184  knowledge about ssh and the Windows command line is needed, also be prepared
28185  for a great deal of frustration\SpecialChar ldots
28186
28187 \end_layout
28188
28189 \begin_layout Enumerate
28190 Get an svn client for windows, as described in the previous sections.
28191  When it is a fresh install run some svn command (e.g.
28192  
28193 \begin_inset Flex Code
28194 status collapsed
28195
28196 \begin_layout Plain Layout
28197 svn --version
28198 \end_layout
28199
28200 \end_inset
28201
28202 ) to create config files, which you will need to change later on.
28203 \end_layout
28204
28205 \begin_layout Enumerate
28206 Choose an ssh client for Windows.
28207  There are several possibilities, we will use the one from Putty tools
28208 \begin_inset Foot
28209 status collapsed
28210
28211 \begin_layout Plain Layout
28212 \begin_inset Flex URL
28213 status collapsed
28214
28215 \begin_layout Plain Layout
28216
28217 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
28218 \end_layout
28219
28220 \end_inset
28221
28222
28223 \end_layout
28224
28225 \end_inset
28226
28227 .
28228  You will need to set the connection up so that the client doesn't ask for
28229  any password from you.
28230  To keep things easy we will use only keys without any additional password
28231  protection etc.
28232 \end_layout
28233
28234 \begin_deeper
28235 \begin_layout Enumerate
28236 Generate keys by 
28237 \begin_inset Flex Code
28238 status collapsed
28239
28240 \begin_layout Plain Layout
28241 puttygen
28242 \end_layout
28243
28244 \end_inset
28245
28246 .
28247  Save your private .ppk key file and put the public one on the server side.
28248  If the SVN server runs on Linux, note that the format of the public key
28249  is not compatible with Linux openssh and you will need to direcly copy-paste
28250  the key from the 
28251 \begin_inset Quotes eld
28252 \end_inset
28253
28254
28255 \emph on
28256 Public key for pasting into OpenSSH authorized_keys file
28257 \emph default
28258 :
28259 \begin_inset Quotes erd
28260 \end_inset
28261
28262  edit field into the server's 
28263 \begin_inset Flex Code
28264 status collapsed
28265
28266 \begin_layout Plain Layout
28267 ~/.ssh/authorized_keys
28268 \end_layout
28269
28270 \end_inset
28271
28272  / 
28273 \begin_inset Flex Code
28274 status collapsed
28275
28276 \begin_layout Plain Layout
28277 authorized_keys2
28278 \end_layout
28279
28280 \end_inset
28281
28282  file.
28283 \end_layout
28284
28285 \begin_layout Enumerate
28286 Get the Putty's 
28287 \begin_inset Flex Code
28288 status collapsed
28289
28290 \begin_layout Plain Layout
28291 plink
28292 \end_layout
28293
28294 \end_inset
28295
28296 .
28297  In the SVN config file
28298 \begin_inset Foot
28299 status collapsed
28300
28301 \begin_layout Plain Layout
28302 Exact path depends on Windows version, usually somewhere around 
28303 \begin_inset Flex Code
28304 status collapsed
28305
28306 \begin_layout Plain Layout
28307 c:
28308 \backslash
28309 Documents and Settings
28310 \backslash
28311 user
28312 \backslash
28313 Application Data
28314 \backslash
28315 Subversion
28316 \backslash
28317 config
28318 \end_layout
28319
28320 \end_inset
28321
28322  / 
28323 \begin_inset Flex Code
28324 status collapsed
28325
28326 \begin_layout Plain Layout
28327 AppData
28328 \backslash
28329 Roaming
28330 \backslash
28331 Subversion
28332 \end_layout
28333
28334 \end_inset
28335
28336 .
28337 \end_layout
28338
28339 \end_inset
28340
28341 , section [tunnels], setup ssh command, e.g.
28342  
28343 \begin_inset Flex Code
28344 status collapsed
28345
28346 \begin_layout Plain Layout
28347 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
28348 \end_layout
28349
28350 \end_inset
28351
28352 .
28353 \begin_inset Foot
28354 status collapsed
28355
28356 \begin_layout Plain Layout
28357 It will usually take a lot of time to get exact command right and it depends
28358  on many things.
28359  For example do not have some remote server saved as a default session in
28360  Putty etc.
28361  If things fail, try to connect via plink without SVN first.
28362 \end_layout
28363
28364 \end_inset
28365
28366
28367 \end_layout
28368
28369 \end_deeper
28370 \begin_layout Enumerate
28371 Checkout the SVN archive, e.
28372 \begin_inset space \thinspace{}
28373 \end_inset
28374
28375 g.
28376 \begin_inset Newline newline
28377 \end_inset
28378
28379
28380 \begin_inset Flex Code
28381 status collapsed
28382
28383 \begin_layout Plain Layout
28384 svn co svn+ssh://user@server/repository_path
28385 \end_layout
28386
28387 \end_inset
28388
28389 .
28390 \end_layout
28391
28392 \begin_layout Subsubsection
28393 End-of-Line Conversions
28394 \end_layout
28395
28396 \begin_layout Standard
28397 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
28398  will
28399  use different line endings inside the .lyx files.
28400  This is not a problem as far as \SpecialChar LyX
28401  functionality is concerned, but the commit
28402  diffs will be huge and merge-conflicts prone.
28403  Fortunately SVN itself knows
28404 \begin_inset Foot
28405 status collapsed
28406
28407 \begin_layout Plain Layout
28408 \begin_inset Flex URL
28409 status collapsed
28410
28411 \begin_layout Plain Layout
28412
28413 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
28414 \end_layout
28415
28416 \end_inset
28417
28418
28419 \end_layout
28420
28421 \end_inset
28422
28423  how to deal with CR/LF problems when switching .lyx files to the 
28424 \begin_inset Flex Code
28425 status collapsed
28426
28427 \begin_layout Plain Layout
28428 native
28429 \end_layout
28430
28431 \end_inset
28432
28433  mode.
28434 \begin_inset Foot
28435 status collapsed
28436
28437 \begin_layout Plain Layout
28438 For the lazy guys: 
28439 \begin_inset Flex Code
28440 status collapsed
28441
28442 \begin_layout Plain Layout
28443 svn propset svn:eol-style native FILE_NAME
28444 \end_layout
28445
28446 \end_inset
28447
28448
28449 \end_layout
28450
28451 \end_inset
28452
28453
28454 \end_layout
28455
28456 \begin_layout Subsection
28457 GIT commands in \SpecialChar LyX
28458
28459 \end_layout
28460
28461 \begin_layout Standard
28462 A minimal subset of GIT commands is now supported by \SpecialChar LyX
28463 .
28464  You can find the commands in the 
28465 \family sans
28466 File\SpecialChar menuseparator
28467 Version
28468 \begin_inset space ~
28469 \end_inset
28470
28471 Control
28472 \family default
28473  submenu.
28474  Please note that if you use password protected access to repository via
28475  ssh, you will be asked in terminal window.
28476  \SpecialChar LyX
28477  was tested against GIT 1.7.
28478 \begin_inset Foot
28479 status collapsed
28480
28481 \begin_layout Plain Layout
28482 Windows users please note that you need to ensure that git is on the path.
28483  This can be set from within \SpecialChar LyX
28484  at 
28485 \family sans
28486 Tools\SpecialChar menuseparator
28487 Preferences\SpecialChar menuseparator
28488 Paths\SpecialChar menuseparator
28489 PATH prefix
28490 \family default
28491 .
28492 \end_layout
28493
28494 \end_inset
28495
28496
28497 \end_layout
28498
28499 \begin_layout Standard
28500 One big difference of GIT and the other supported version control systems
28501  is the distributed nature of GIT: With traditional version control systems
28502  there is one central server which hosts the repository.
28503  Users commit their changes to the server, and get updates made by other
28504  users from it.
28505  With GIT, users commit to a local repository.
28506  The local repository can be synchronized with one or more remote repositories
28507  using the 
28508 \begin_inset Flex Code
28509 status collapsed
28510
28511 \begin_layout Plain Layout
28512 pull
28513 \end_layout
28514
28515 \end_inset
28516
28517  and 
28518 \begin_inset Flex Code
28519 status collapsed
28520
28521 \begin_layout Plain Layout
28522 push
28523 \end_layout
28524
28525 \end_inset
28526
28527  GIT commands.
28528  \SpecialChar LyX
28529  does not interact in any way with remote GIT repositories.
28530  It works exclusively with the local repository in a very similar way as
28531  with a central CVS or SVN repository.
28532  If you use remote GIT repositories you need to do the 
28533 \begin_inset Flex Code
28534 status collapsed
28535
28536 \begin_layout Plain Layout
28537 pull
28538 \end_layout
28539
28540 \end_inset
28541
28542  and 
28543 \begin_inset Flex Code
28544 status collapsed
28545
28546 \begin_layout Plain Layout
28547 push
28548 \end_layout
28549
28550 \end_inset
28551
28552  operations with your favourite GIT client.
28553 \end_layout
28554
28555 \begin_layout Subsubsection
28556
28557 \family sans
28558 Register
28559 \end_layout
28560
28561 \begin_layout Standard
28562 If your document is not under revision control, this is the only item shown
28563  in the menu.
28564  And if it is under revision control, the 
28565 \family sans
28566 Register
28567 \family default
28568  item is not visible.
28569 \end_layout
28570
28571 \begin_layout Standard
28572 This command registers in GIT your document ONLY in case you have already
28573  the documents directory under GIT control (in particular 
28574 \family typewriter
28575 .git/index
28576 \family default
28577  file exists).
28578  This means you have to checkout the archive by yourself.
28579 \end_layout
28580
28581 \begin_layout Standard
28582 Then you are asked interactively to supply an initial description of the
28583  document.
28584  Don't forget that registered file is not yet committed.
28585 \end_layout
28586
28587 \begin_layout Standard
28588 GIT command that is run: 
28589 \family typewriter
28590 git add 
28591 \begin_inset Quotes qld
28592 \end_inset
28593
28594 <file-name>
28595 \begin_inset Quotes qld
28596 \end_inset
28597
28598
28599 \end_layout
28600
28601 \begin_layout Standard
28602 Read 
28603 \family typewriter
28604 man git
28605 \family default
28606  to understand the switches.
28607 \end_layout
28608
28609 \begin_layout Subsubsection
28610
28611 \family sans
28612 Check In Changes
28613 \end_layout
28614
28615 \begin_layout Standard
28616 When you are finished editing a file, you commit your changes.
28617  When you do this, you are asked for a description of the changes.
28618  After that changes are committed.
28619 \end_layout
28620
28621 \begin_layout Standard
28622 GIT command: 
28623 \family typewriter
28624 git commit -q -m"<description>" <file-name>
28625 \end_layout
28626
28627 \begin_layout Subsubsection
28628
28629 \family sans
28630 Revert To Repository Version
28631 \end_layout
28632
28633 \begin_layout Standard
28634 This will discard all changes made to the document since the last check
28635  in.
28636  You get a warning before changes are discarded.
28637 \end_layout
28638
28639 \begin_layout Standard
28640 GIT command: 
28641 \family typewriter
28642 git checkout -q 
28643 \begin_inset Quotes qld
28644 \end_inset
28645
28646 <file-name>
28647 \begin_inset Quotes qld
28648 \end_inset
28649
28650
28651 \end_layout
28652
28653 \begin_layout Subsubsection
28654
28655 \family sans
28656 Rename
28657 \end_layout
28658
28659 \begin_layout Standard
28660 This will rename the current document including the version history.
28661  It requires a clean document without any changes since the last checkin.
28662  You are asked for a file name and a description of the rename operation.
28663  After that the document is renamed, both locally and in the repository.
28664  If the parent directories of the new and old file names differ, all relative
28665  paths of included files are adjusted (like in 
28666 \family sans
28667 File\SpecialChar menuseparator
28668 Save As
28669 \family default
28670 \SpecialChar ldots
28671 ).
28672  Finally, the document is reloaded using the new name.
28673 \end_layout
28674
28675 \begin_layout Labeling
28676 \labelwidthstring 00.00.0000
28677 GIT
28678 \begin_inset space ~
28679 \end_inset
28680
28681 commands: 
28682 \begin_inset space ~
28683 \end_inset
28684
28685
28686 \begin_inset Newline newline
28687 \end_inset
28688
28689
28690 \begin_inset Flex Code
28691 status collapsed
28692
28693 \begin_layout Plain Layout
28694 git mv 
28695 \family typewriter
28696
28697 \begin_inset Quotes qld
28698 \end_inset
28699
28700 <file-name>
28701 \begin_inset Quotes qld
28702 \end_inset
28703
28704  
28705 \begin_inset Quotes qld
28706 \end_inset
28707
28708 <new-file-name>
28709 \begin_inset Quotes qld
28710 \end_inset
28711
28712
28713 \end_layout
28714
28715 \end_inset
28716
28717
28718 \begin_inset Newline newline
28719 \end_inset
28720
28721
28722 \begin_inset Flex Code
28723 status collapsed
28724
28725 \begin_layout Plain Layout
28726 git commit
28727 \end_layout
28728
28729 \end_inset
28730
28731
28732 \end_layout
28733
28734 \begin_layout Subsubsection
28735
28736 \family sans
28737 Show History
28738 \end_layout
28739
28740 \begin_layout Standard
28741 This shows the complete history of the GIT document.
28742  The output of 
28743 \family typewriter
28744 git log 
28745 \begin_inset Quotes qld
28746 \end_inset
28747
28748 <file-name>
28749 \begin_inset Quotes qld
28750 \end_inset
28751
28752
28753 \family default
28754  is shown in a browser.
28755 \end_layout
28756
28757 \begin_layout Subsubsection
28758 Version Info
28759 \end_layout
28760
28761 \begin_layout Standard
28762 \SpecialChar LyX
28763  supports GIT hash number of the last commit to the file, 
28764 \change_inserted 1119979965 1564297456
28765 its abbreviated form, 
28766 \change_unchanged
28767 author name, date and time of last commit.
28768  All those are extracted from 
28769 \family typewriter
28770 git log -n 1 --pretty=format:%H%n
28771 \change_inserted 1119979965 1564297427
28772 %h%n
28773 \change_unchanged
28774 %an%n%ai
28775 \family default
28776 .
28777  Tree version information is obtained via 
28778 \family typewriter
28779 git describe --abbrev --dirty --long
28780 \family default
28781 .
28782  See 
28783 \begin_inset CommandInset ref
28784 LatexCommand ref
28785 reference "subsec:VCS-Revision-Information"
28786
28787 \end_inset
28788
28789  for other details.
28790 \end_layout
28791
28792 \begin_layout Subsection
28793 Further tuning
28794 \end_layout
28795
28796 \begin_layout Standard
28797 With the recent addition of the 
28798 \begin_inset Flex Code
28799 status collapsed
28800
28801 \begin_layout Plain Layout
28802 vc-command
28803 \end_layout
28804
28805 \end_inset
28806
28807  function \SpecialChar LyX
28808  power users are allowed to create their own commands for revision
28809  control.
28810 \end_layout
28811
28812 \begin_layout Standard
28813 As an example you can see how two TortoiseSVN commands could be integrated
28814  directly:
28815 \end_layout
28816
28817 \begin_layout Description
28818 Commit: 
28819 \begin_inset Flex Code
28820 status collapsed
28821
28822 \begin_layout Plain Layout
28823 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
28824 \end_layout
28825
28826 \end_inset
28827
28828
28829 \end_layout
28830
28831 \begin_layout Description
28832 Revert: 
28833 \begin_inset Flex Code
28834 status collapsed
28835
28836 \begin_layout Plain Layout
28837 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
28838 \end_layout
28839
28840 \end_inset
28841
28842
28843 \end_layout
28844
28845 \begin_layout Subsection
28846 Version control and Document comparison
28847 \end_layout
28848
28849 \begin_layout Standard
28850 One of the typical uses of version control is to inspect the changes between
28851  revisions, usually by creating 
28852 \begin_inset Flex Code
28853 status collapsed
28854
28855 \begin_layout Plain Layout
28856 diff
28857 \end_layout
28858
28859 \end_inset
28860
28861  dumps.
28862  While this is useful for plain text files, it is much less useful in the
28863  case of \SpecialChar LyX
28864  files, which have more a complicated structure.
28865  Hence we provide binding to the Document comparison feature.
28866  There are two ways of calling this feature – either by direct call of 
28867 \begin_inset Flex Code
28868 status collapsed
28869
28870 \begin_layout Plain Layout
28871 vc-compare
28872 \end_layout
28873
28874 \end_inset
28875
28876  \SpecialChar LyX
28877  function (for details see \SpecialChar LyX
28878  functions manual) or by the toolbar icon 
28879 \begin_inset Info
28880 type  "icon"
28881 arg   "vc-compare"
28882 \end_inset
28883
28884  or the menu item 
28885 \begin_inset Info
28886 type  "menu"
28887 arg   "vc-compare"
28888 \end_inset
28889
28890 , respectively.
28891  One can either compare two chosen revisions of the document or he can simply
28892  compare the current version of edited text with older revisions (where
28893  '
28894 \begin_inset Flex Noun
28895 status collapsed
28896
28897 \begin_layout Plain Layout
28898 0
28899 \end_layout
28900
28901 \end_inset
28902
28903 ' revisions back means comparison of the edited file with last commited
28904  revision).
28905  
28906 \end_layout
28907
28908 \begin_layout Standard
28909 This feature is supported for SVN and RCS though due to the more complicated
28910  versioning scheme of RCS there is a constraint – when addressing the revisions
28911  in dialog, numbers always point to the last number in RCS revision number,
28912  i.e.
28913  '35' in '1.2.35'.
28914  We don't currently support GIT addressing of revisions, one can just compare
28915  edited document with its revision X steps backs, where X is addressed as
28916  
28917 \begin_inset Flex Code
28918 status collapsed
28919
28920 \begin_layout Plain Layout
28921 HEAD~X
28922 \end_layout
28923
28924 \end_inset
28925
28926 .
28927 \end_layout
28928
28929 \begin_layout Section
28930 Literate Programming
28931 \end_layout
28932
28933 \begin_layout Standard
28934 Updated by 
28935 \noun on
28936 Kayvan Sylvan 
28937 \noun default
28938 (kayvan@sylvan.com)
28939 \noun on
28940
28941 \noun default
28942 original documentation written by 
28943 \noun on
28944 Edmar Wienskoski Jr.
28945
28946 \noun default
28947  (edmar-w-jr@technologist.com)
28948 \end_layout
28949
28950 \begin_layout Subsection
28951 Introduction
28952 \end_layout
28953
28954 \begin_layout Standard
28955 The main purpose of this documentation is to show you how to use \SpecialChar LyX
28956  for literate
28957  programming, where it is assumed that you are familiar with this programming
28958  technique, and know what 
28959 \begin_inset Quotes eld
28960 \end_inset
28961
28962 tangling
28963 \begin_inset Quotes erd
28964 \end_inset
28965
28966  and 
28967 \begin_inset Quotes eld
28968 \end_inset
28969
28970 weaving
28971 \begin_inset Quotes erd
28972 \end_inset
28973
28974  means.
28975  If that is not the case, please follow the web links provided in the following
28976  sections.
28977  There is a lot of good documentation out there covering old development
28978  history to the latest tools tips.
28979 \end_layout
28980
28981 \begin_layout Standard
28982 It is also assumed that you are familiar with \SpecialChar LyX
28983  itself to a point that you
28984  are comfortable changing your \SpecialChar LyX
28985  preferences, and X resources file.
28986  If that is not the case please refer to other \SpecialChar LyX
28987  documentation to cover your
28988  specific needs.
28989 \end_layout
28990
28991 \begin_layout Subsection
28992 Literate Programming
28993 \end_layout
28994
28995 \begin_layout Standard
28996 From the Literate Programming FAQ: 
28997 \end_layout
28998
28999 \begin_layout Quotation
29000 Literate programming is the combination of documentation and source together
29001  in a fashion suited for reading by human beings.
29002  In fact, literate programs should be enjoyable reading, even inviting!
29003  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
29004  and documentation in a single file.
29005  Literate programming tools then parse the file to produce either readable
29006  documentation or compilable source.
29007  The WEB style of literate programming was created by D.
29008 \begin_inset space \thinspace{}
29009 \end_inset
29010
29011 E.
29012  Knuth during the development of his \SpecialChar TeX
29013  typesetting software.
29014  
29015 \end_layout
29016
29017 \begin_layout Standard
29018 Another excerpt says:
29019 \end_layout
29020
29021 \begin_layout Quotation
29022
29023 \emph on
29024 How is literate programming different from verbose commenting?
29025 \end_layout
29026
29027 \begin_layout Quotation
29028 There are three distinguishing characteristics.
29029  In order of importance, they are: 
29030 \end_layout
29031
29032 \begin_deeper
29033 \begin_layout Itemize
29034 flexible order of elaboration 
29035 \end_layout
29036
29037 \begin_layout Itemize
29038 automatic support for browsing 
29039 \end_layout
29040
29041 \begin_layout Itemize
29042 typeset documentation, especially diagrams and mathematics 
29043 \end_layout
29044
29045 \end_deeper
29046 \begin_layout Standard
29047 Now that I sparked your curiosity, take a look in the references.
29048 \end_layout
29049
29050 \begin_layout Subsubsection
29051 References
29052 \end_layout
29053
29054 \begin_layout Standard
29055 The complete Literate Programming FAQ can be found at:
29056 \end_layout
29057
29058 \begin_layout Quote
29059 Literate Programming FAQ 
29060 \begin_inset Flex URL
29061 status open
29062
29063 \begin_layout Plain Layout
29064
29065 http://www.literateprogramming.com/lpfaq.pdf
29066 \end_layout
29067
29068 \end_inset
29069
29070
29071 \end_layout
29072
29073 \begin_layout Standard
29074 The FAQ lists 23 (twenty three!) different literate programming tools.
29075  Where some are specialized or 
29076 \begin_inset Quotes eld
29077 \end_inset
29078
29079 tailored
29080 \begin_inset Quotes erd
29081 \end_inset
29082
29083  for particular programming languages, while other have general scope.
29084  I selected 
29085 \noun on
29086 Noweb
29087 \noun default
29088  for my own use for several reasons:
29089 \end_layout
29090
29091 \begin_layout Itemize
29092 It can generate the documentation either in \SpecialChar LaTeX
29093  or HTML.
29094 \end_layout
29095
29096 \begin_layout Itemize
29097 It has a open architecture, i.
29098 \begin_inset space \thinspace{}
29099 \end_inset
29100
29101 e.
29102 \begin_inset space \space{}
29103 \end_inset
29104
29105 it is easy to plug in new filters
29106 \begin_inset Foot
29107 status collapsed
29108
29109 \begin_layout Plain Layout
29110
29111 \emph on
29112 Filters 
29113 \emph default
29114 are programs that read a given data stream and output a manipulated data
29115  stream.
29116  That way, a WEB file (consisting of literate code) can be turned into a
29117  file consisting only of C program code or \SpecialChar LaTeX
29118  code.
29119 \end_layout
29120
29121 \end_inset
29122
29123  and to perform special processing that you may need.
29124  
29125 \end_layout
29126
29127 \begin_layout Itemize
29128 There is a good selection of filters available already (the HTML is one
29129  of them).
29130 \end_layout
29131
29132 \begin_layout Itemize
29133 It is free.
29134 \end_layout
29135
29136 \begin_layout Standard
29137 The Noweb web page can be found at: 
29138 \end_layout
29139
29140 \begin_layout Quote
29141 Noweb home page 
29142 \begin_inset Flex URL
29143 status collapsed
29144
29145 \begin_layout Plain Layout
29146
29147 https://www.cs.tufts.edu/~nr/noweb/
29148 \end_layout
29149
29150 \end_inset
29151
29152
29153 \end_layout
29154
29155 \begin_layout Standard
29156 Starting from there you can reach many other interesting links and even
29157  some literate program examples.
29158 \end_layout
29159
29160 \begin_layout Subsection
29161 \SpecialChar LyX
29162  and Literate Programming with Noweb
29163 \end_layout
29164
29165 \begin_layout Standard
29166 The \SpecialChar LyX
29167  support for Literate Programming is provided by using the generic \SpecialChar LyX
29168
29169  converters mechanism.
29170  This support is provided in a 
29171 \begin_inset Quotes eld
29172 \end_inset
29173
29174 Noweb independent
29175 \begin_inset Quotes erd
29176 \end_inset
29177
29178  way, i.
29179 \begin_inset space \thinspace{}
29180 \end_inset
29181
29182 e.
29183 \begin_inset space \space{}
29184 \end_inset
29185
29186 you will be able to use this new \SpecialChar LyX
29187  feature with some other literate programming
29188  tool of your choice by just changing your \SpecialChar LyX
29189  preferences.
29190 \end_layout
29191
29192 \begin_layout Subsubsection
29193 Generating documents and code (weaving and tangling)
29194 \end_layout
29195
29196 \begin_layout Paragraph
29197 Using the noweb module
29198 \end_layout
29199
29200 \begin_layout Standard
29201 If you have installed Noweb and \SpecialChar LyX
29202  successfully, whenever you open a new document,
29203  after you have chosen its document class, use the 
29204 \family sans
29205 Document\SpecialChar menuseparator
29206 Settings
29207 \family default
29208  menu to add the 
29209 \begin_inset Quotes eld
29210 \end_inset
29211
29212 noweb
29213 \begin_inset Quotes erd
29214 \end_inset
29215
29216  module.
29217  If Noweb is correctly installed, when you click on the 
29218 \begin_inset Quotes eld
29219 \end_inset
29220
29221 Modules
29222 \begin_inset Quotes erd
29223 \end_inset
29224
29225  link, you will see the 
29226 \begin_inset Quotes eld
29227 \end_inset
29228
29229 noweb
29230 \begin_inset Quotes erd
29231 \end_inset
29232
29233  module in the available list and you can add it to your document.
29234 \end_layout
29235
29236 \begin_layout Paragraph
29237 Typing code in
29238 \end_layout
29239
29240 \begin_layout Standard
29241 \SpecialChar LyX
29242  enables you to write code with a custom inset named 
29243 \begin_inset Flex Noun
29244 status collapsed
29245
29246 \begin_layout Plain Layout
29247 Chunk
29248 \end_layout
29249
29250 \end_inset
29251
29252 .
29253  Noweb delimits chunks like this:
29254 \end_layout
29255
29256 \begin_layout LyX-Code
29257 <<My code>>=
29258 \end_layout
29259
29260 \begin_layout LyX-Code
29261   code
29262 \end_layout
29263
29264 \begin_layout LyX-Code
29265   more code
29266 \end_layout
29267
29268 \begin_layout LyX-Code
29269   even more code
29270 \end_layout
29271
29272 \begin_layout LyX-Code
29273   @
29274 \end_layout
29275
29276 \begin_layout Standard
29277 The problem is that whatever is written in between the << and the 
29278 \family typewriter
29279 @
29280 \family default
29281  must be taken literally, i.
29282 \begin_inset space \thinspace{}
29283 \end_inset
29284
29285 e.
29286 \begin_inset space \space{}
29287 \end_inset
29288
29289 \SpecialChar LyX
29290  should be prevented from making any special interpretation of what has
29291  been written.
29292  This is also handled by 
29293 \begin_inset Flex Noun
29294 status collapsed
29295
29296 \begin_layout Plain Layout
29297 Chunk
29298 \end_layout
29299
29300 \end_inset
29301
29302 , that works like a normal text inset but has a free spacing capability.
29303 \end_layout
29304
29305 \begin_layout Standard
29306 As a special note, you can also use the 
29307 \begin_inset Quotes eld
29308 \end_inset
29309
29310 %def
29311 \begin_inset Quotes erd
29312 \end_inset
29313
29314  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
29315 rence:
29316 \end_layout
29317
29318 \begin_layout LyX-Code
29319 <<My chunk>>=
29320 \end_layout
29321
29322 \begin_layout LyX-Code
29323 def some_function(args):
29324 \end_layout
29325
29326 \begin_layout LyX-Code
29327    "This is the doc string for this function."
29328 \end_layout
29329
29330 \begin_layout LyX-Code
29331    print "My args: ", args
29332 \end_layout
29333
29334 \begin_layout LyX-Code
29335 @ %def some_function
29336 \end_layout
29337
29338 \begin_layout Standard
29339 For an example of this usage and the resulting cross-reference output, look
29340  at the Literate python program in 
29341 \emph on
29342 LIBDIR/examples/listerrors.lyx
29343 \emph default
29344  which should make this all clear.
29345 \end_layout
29346
29347 \begin_layout Paragraph
29348 Generating the documentation
29349 \end_layout
29350
29351 \begin_layout Standard
29352 At this point you already have a new document file with a proper document
29353  class, and with some code and text on it.
29354  How do I print it? The answer is simple, you select 
29355 \family sans
29356 View\SpecialChar menuseparator
29357 DVI,
29358 \family default
29359  etc.
29360  Just like you would do for a plain document.
29361  No special procedure is required.
29362 \end_layout
29363
29364 \begin_layout Standard
29365 To help orientate you, I will now explain what happens inside \SpecialChar LyX
29366 :
29367 \end_layout
29368
29369 \begin_layout Enumerate
29370 When the 
29371 \family sans
29372 Update\SpecialChar menuseparator
29373 DVI
29374 \family default
29375  menu option is chosen, a \SpecialChar LaTeX
29376  file is generated.
29377  
29378 \end_layout
29379
29380 \begin_deeper
29381 \begin_layout Standard
29382 If the document is of any literate class the generated file will be named
29383  with an extension name defined by the 
29384 \begin_inset Quotes eld
29385 \end_inset
29386
29387 literate
29388 \begin_inset Quotes erd
29389 \end_inset
29390
29391  format (defined in the Preferences panel), otherwise the file will have
29392  the usual 
29393 \family typewriter
29394 .tex
29395 \family default
29396  extension.
29397 \end_layout
29398
29399 \end_deeper
29400 \begin_layout Enumerate
29401 Note that the only difference so far is in the name of the file, no special
29402  processing is required by \SpecialChar LyX
29403 .
29404  Given that you formatted the code using the 
29405 \begin_inset Flex Noun
29406 status collapsed
29407
29408 \begin_layout Plain Layout
29409 Chunk
29410 \end_layout
29411
29412 \end_inset
29413
29414  inset that, by itself, takes care of the business.
29415 \end_layout
29416
29417 \begin_layout Enumerate
29418 If the document is of any literate class \SpecialChar LyX
29419  will then use the internal \SpecialChar LyX
29420  to
29421  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
29422  converter
29423 \begin_inset Foot
29424 status collapsed
29425
29426 \begin_layout Plain Layout
29427 The converters are defined in the 
29428 \family sans
29429 Tools\SpecialChar menuseparator
29430 Preferences
29431 \family default
29432  panel, under the 
29433 \begin_inset Quotes eld
29434 \end_inset
29435
29436 Conversion
29437 \begin_inset Quotes erd
29438 \end_inset
29439
29440  tab.
29441  See section 
29442 \emph on
29443 Converters
29444 \emph default
29445  of the 
29446 \emph on
29447 Customization
29448 \emph default
29449  manual for general information about converters.
29450 \end_layout
29451
29452 \end_inset
29453
29454  to generate the \SpecialChar LaTeX
29455  file.
29456 \end_layout
29457
29458 \begin_deeper
29459 \begin_layout Standard
29460 Otherwise it will just skip this step.
29461 \end_layout
29462
29463 \end_deeper
29464 \begin_layout Enumerate
29465 Finally, \SpecialChar LaTeX
29466  is invoked and the regular post processing continues as in a plain
29467  document.
29468 \end_layout
29469
29470 \begin_layout Standard
29471 Independence from a particular 
29472 \begin_inset Quotes eld
29473 \end_inset
29474
29475 literate tool
29476 \begin_inset Quotes erd
29477 \end_inset
29478
29479  is easily achieved by changing the commands that are run by the various
29480  converters.
29481 \end_layout
29482
29483 \begin_layout Paragraph
29484 Generating the code
29485 \end_layout
29486
29487 \begin_layout Standard
29488 When the build menu option is chosen or the corresponding button in the
29489  toolbar is pressed, a \SpecialChar LaTeX
29490  file is generated just like step 1 above.
29491  Next, \SpecialChar LyX
29492  invokes the 
29493 \family typewriter
29494 Noweb->Program
29495 \family default
29496  converter.
29497  This converter needs to be defined by the user and is not installed by
29498  default, though the Program format is.
29499  This converter (like any other converter) will have two parts:
29500 \end_layout
29501
29502 \begin_layout Enumerate
29503 The converter program itself.
29504  This program performs the conversion from the one format to the other (in
29505  this case, from the Noweb format to the Program pseudo-format).
29506 \end_layout
29507
29508 \begin_layout Enumerate
29509 The error log parser.
29510  This is a program whose sole purpose is to rewrite error messages in a
29511  format that \SpecialChar LyX
29512  understands.
29513  This makes it possible for \SpecialChar LyX
29514  to place error boxes in the right places in
29515  the file buffer.
29516 \end_layout
29517
29518 \begin_layout Standard
29519 The first part, the 
29520 \begin_inset Quotes eld
29521 \end_inset
29522
29523 Converter
29524 \begin_inset Quotes erd
29525 \end_inset
29526
29527  setting, should be set to
29528 \end_layout
29529
29530 \begin_layout LyX-Code
29531
29532 \family typewriter
29533 build-script $$i
29534 \family default
29535  $$r
29536 \end_layout
29537
29538 \begin_layout Standard
29539 This basically means that \SpecialChar LyX
29540  will call 
29541 \begin_inset Quotes eld
29542 \end_inset
29543
29544 build-script
29545 \begin_inset Quotes erd
29546 \end_inset
29547
29548  (a program or script) with the name of the Noweb file (normally a file
29549  in the \SpecialChar LyX
29550  temp directory) and the directory path of the original \SpecialChar LyX
29551  file.
29552  
29553 \end_layout
29554
29555 \begin_layout Standard
29556 This is an implementation of 
29557 \begin_inset Quotes eld
29558 \end_inset
29559
29560 build-script
29561 \begin_inset Quotes erd
29562 \end_inset
29563
29564  that you can place in a directory on your path:
29565 \end_layout
29566
29567 \begin_layout LyX-Code
29568
29569 \family sans
29570 #!/bin/sh
29571 \end_layout
29572
29573 \begin_layout LyX-Code
29574
29575 \family sans
29576 #
29577 \end_layout
29578
29579 \begin_layout LyX-Code
29580
29581 \family sans
29582 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
29583 \end_layout
29584
29585 \begin_layout Standard
29586 The next part of the converter setting is the 
29587 \begin_inset Quotes eld
29588 \end_inset
29589
29590 Flags
29591 \begin_inset Quotes erd
29592 \end_inset
29593
29594  which is to be set to
29595 \end_layout
29596
29597 \begin_layout LyX-Code
29598
29599 \family typewriter
29600 parselog=$$s/scripts/listerrors
29601 \end_layout
29602
29603 \begin_layout Standard
29604 This will run any errors that are generated by the 
29605 \begin_inset Quotes eld
29606 \end_inset
29607
29608 build-script
29609 \begin_inset Quotes erd
29610 \end_inset
29611
29612  process through the 
29613 \begin_inset Quotes eld
29614 \end_inset
29615
29616 listerrors
29617 \begin_inset Quotes erd
29618 \end_inset
29619
29620  program.
29621 \end_layout
29622
29623 \begin_layout Standard
29624 The build will normally take place in \SpecialChar LyX
29625 's temporary directory, so the files
29626  produced by the conversion will be in that directory.
29627  \SpecialChar LyX
29628  will copy out what it regards as the `main' file, but the 
29629 \family typewriter
29630 Noweb->Program
29631 \family default
29632  conversion may produce several files, and so most of these would then be
29633  deleted when \SpecialChar LyX
29634  was closed.
29635  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
29636  the build-script chunk can place the generated files in that location.
29637 \end_layout
29638
29639 \begin_layout Paragraph
29640 Build instructions in the document
29641 \end_layout
29642
29643 \begin_layout Standard
29644 The last piece of the integration between \SpecialChar LyX
29645  and noweb is the 
29646 \begin_inset Quotes eld
29647 \end_inset
29648
29649 build-script
29650 \begin_inset Quotes erd
29651 \end_inset
29652
29653  chunk.
29654  Generally, the instructions for building your program should be embedded
29655  in a chunk of its own.
29656  The noweb-specific 
29657 \begin_inset Quotes eld
29658 \end_inset
29659
29660 build-script
29661 \begin_inset Quotes erd
29662 \end_inset
29663
29664  above uses the notangle command to look for this chunk (called 
29665 \begin_inset Quotes eld
29666 \end_inset
29667
29668 build-script
29669 \begin_inset Quotes erd
29670 \end_inset
29671
29672 ) and runs its contents through 
29673 \begin_inset Quotes eld
29674 \end_inset
29675
29676 sh
29677 \begin_inset Quotes erd
29678 \end_inset
29679
29680 .
29681 \end_layout
29682
29683 \begin_layout Standard
29684 Typically, such a chunk would look something like this:
29685 \end_layout
29686
29687 \begin_layout LyX-Code
29688 <<build-script>>=
29689 \end_layout
29690
29691 \begin_layout LyX-Code
29692 #!/bin/sh
29693 \begin_inset Newline newline
29694 \end_inset
29695
29696 if [ -z "${NOWEB_SOURCE}" ]
29697 \begin_inset Newline newline
29698 \end_inset
29699
29700 then
29701 \end_layout
29702
29703 \begin_layout LyX-Code
29704 NOWEB_SOURCE=myfile.nw
29705 \begin_inset Newline newline
29706 \end_inset
29707
29708 fi
29709 \begin_inset Newline newline
29710 \end_inset
29711
29712 [...
29713  code to extract files ...
29714  use NOWEB_OUTPUT_DIR here ...]
29715 \begin_inset Newline newline
29716 \end_inset
29717
29718 [...
29719  code to compile files ...]
29720 \begin_inset Newline newline
29721 \end_inset
29722
29723 @
29724 \end_layout
29725
29726 \begin_layout Standard
29727 Look in 
29728 \emph on
29729 LIBDIR/examples/listerrors.lyx
29730 \emph default
29731  or in 
29732 \emph on
29733 LIBDIR/examples/Literate.lyx
29734 \emph default
29735  which implement two versions of the 
29736 \begin_inset Quotes eld
29737 \end_inset
29738
29739 listerrors
29740 \begin_inset Quotes erd
29741 \end_inset
29742
29743  program for some illustrations of how all of these pieces go together or
29744  in 
29745 \emph on
29746 LIBDIR/examples/noweb2lyx.lyx.
29747
29748 \emph default
29749  Interestingly, these three files show off the language-indepence of the
29750  \SpecialChar LyX
29751  literate programming support since they are written in Python, C and Perl
29752  respectively.
29753 \end_layout
29754
29755 \begin_layout Subsubsection
29756 Configuring \SpecialChar LyX
29757
29758 \end_layout
29759
29760 \begin_layout Standard
29761 All the Literate Programming support is configured by the 
29762 \family sans
29763 Tools\SpecialChar menuseparator
29764 Preferences
29765 \family default
29766  panel in the 
29767 \begin_inset Quotes eld
29768 \end_inset
29769
29770 File Handling
29771 \begin_inset Quotes erd
29772 \end_inset
29773
29774  tab.
29775  The important parts are:
29776 \end_layout
29777
29778 \begin_layout Description
29779 the
29780 \begin_inset space ~
29781 \end_inset
29782
29783
29784 \begin_inset Quotes eld
29785 \end_inset
29786
29787 NoWeb
29788 \begin_inset Quotes erd
29789 \end_inset
29790
29791
29792 \begin_inset space ~
29793 \end_inset
29794
29795 format Set up via the File Formats tab, this is where the Noweb-specific
29796  pieces are set up.
29797  The 
29798 \family sans
29799 GUI Name
29800 \family default
29801  is set to 
29802 \family typewriter
29803 NoWeb
29804 \family default
29805 , the file extension is set to 
29806 \family typewriter
29807 .nw
29808 \family default
29809 .
29810  This tells \SpecialChar LyX
29811  to create a file with a 
29812 \family typewriter
29813 .nw
29814 \family default
29815  extension in the first step of the conversion process.
29816 \end_layout
29817
29818 \begin_layout Description
29819 the
29820 \begin_inset space ~
29821 \end_inset
29822
29823
29824 \family sans
29825 Program
29826 \family default
29827
29828 \begin_inset space ~
29829 \end_inset
29830
29831 format This is an empty format whose sole purpose is to be the endpoint
29832  of a conversion (which then allows us to set up a converter for it).
29833 \end_layout
29834
29835 \begin_layout Description
29836
29837 \family sans
29838 NoWeb
29839 \family default
29840 ->
29841 \family sans
29842 \SpecialChar LaTeX
29843
29844 \family default
29845  This converter performs the 
29846 \begin_inset Quotes eld
29847 \end_inset
29848
29849 weaving
29850 \begin_inset Quotes erd
29851 \end_inset
29852
29853  of the literate document.
29854  For Noweb, it is set to 
29855 \begin_inset Quotes eld
29856 \end_inset
29857
29858
29859 \family typewriter
29860 noweave -delay -index $$i > $$o
29861 \family default
29862
29863 \begin_inset Quotes erd
29864 \end_inset
29865
29866
29867 \end_layout
29868
29869 \begin_layout Description
29870
29871 \family sans
29872 NoWeb
29873 \family default
29874 ->
29875 \family sans
29876 Program
29877 \family default
29878  This performs the 
29879 \begin_inset Quotes eld
29880 \end_inset
29881
29882 tangling step
29883 \begin_inset Quotes erd
29884 \end_inset
29885
29886 .
29887  As stated above, the Converter is set to 
29888 \begin_inset Quotes eld
29889 \end_inset
29890
29891
29892 \family typewriter
29893 build-script $$i
29894 \family default
29895  $$r
29896 \begin_inset Quotes erd
29897 \end_inset
29898
29899 , with Flags set to
29900 \begin_inset Newline newline
29901 \end_inset
29902
29903
29904 \begin_inset Quotes eld
29905 \end_inset
29906
29907
29908 \family typewriter
29909 parselog=$$s/scripts/listerrors
29910 \family default
29911
29912 \begin_inset Quotes erd
29913 \end_inset
29914
29915 .
29916 \end_layout
29917
29918 \begin_layout Subsubsection
29919 Debug extensions
29920 \end_layout
29921
29922 \begin_layout Standard
29923 There is also a new function implemented in the \SpecialChar LyX
29924  server, the 
29925 \begin_inset Quotes eld
29926 \end_inset
29927
29928 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
29929  
29930 \end_layout
29931
29932 \begin_layout Standard
29933 When debugging code with ddd/gdb, it is possible to invoke a text editor
29934  at the current execution position with a single key stroke.
29935  The default ddd configuration for that is shift-ctrl-V.
29936  It happens that you can define the editor command line invocation in ddd
29937  by accessing the 
29938 \family sans
29939 Edit\SpecialChar menuseparator
29940 Preferences\SpecialChar menuseparator
29941 Helpers
29942 \family default
29943  dialog and changing the "Edit Sources" entry.
29944 \end_layout
29945
29946 \begin_layout Standard
29947 I take advantage of the newly created \SpecialChar LyX
29948  server function and this ddd feature,
29949  and set 
29950 \begin_inset Quotes eld
29951 \end_inset
29952
29953 Edit Sources
29954 \begin_inset Quotes erd
29955 \end_inset
29956
29957  to:
29958 \end_layout
29959
29960 \begin_layout LyX-Code
29961 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
29962 \end_layout
29963
29964 \begin_layout Standard
29965 With this, whenever you are using ddd and find a point in the program that
29966  you want to edit, you just press shift-ctrl-V (in the ddd window), and
29967  ddd will forward this information to \SpecialChar LyX
29968  through the \SpecialChar LyX
29969  server and then the
29970  \SpecialChar LyX
29971  window will show the same file with the cursor at the same position ddd
29972  was pointing to.
29973  No more guessing or long scrolling to locate a point in the program back
29974  from debugging !
29975 \end_layout
29976
29977 \begin_layout Standard
29978 Note however that you must enable the \SpecialChar LyX
29979  server to get this feature working
29980  (it is disabled by default).
29981  Sec.
29982 \begin_inset space ~
29983 \end_inset
29984
29985
29986 \begin_inset CommandInset ref
29987 LatexCommand ref
29988 reference "sec:Starting-the-Server"
29989
29990 \end_inset
29991
29992  explains how to do that.
29993 \end_layout
29994
29995 \begin_layout Subsubsection
29996 Toolbar extensions
29997 \end_layout
29998
29999 \begin_layout Standard
30000 There are six new buttons that can be added to your \SpecialChar LyX
30001  toolbar.
30002  Four of these buttons are short cuts to layout styles: 
30003 \family sans
30004 Standard
30005 \family default
30006
30007 \family sans
30008 Section
30009 \family default
30010
30011 \family sans
30012 \SpecialChar LaTeX
30013
30014 \family default
30015 , and 
30016 \family sans
30017 \SpecialChar LyX
30018 -Code
30019 \family default
30020 , one for the custom inset 
30021 \family sans
30022 Chunk
30023 \family default
30024 .
30025  The last one is a short cut to the 
30026 \begin_inset Quotes eld
30027 \end_inset
30028
30029 Build Program
30030 \begin_inset Quotes erd
30031 \end_inset
30032
30033  File menu entry.
30034  
30035 \end_layout
30036
30037 \begin_layout Standard
30038 \SpecialChar LyX
30039  has a range of buttons that are available for tool bar customization.
30040  In my toolbar I like to combine the six short cuts above with two more:
30041  One for 
30042 \family sans
30043 Document
30044 \family default
30045 \SpecialChar menuseparator
30046
30047 \family sans
30048 Update
30049 \family default
30050 \SpecialChar menuseparator
30051
30052 \family sans
30053 DVI
30054 \family default
30055  and the other for 
30056 \family sans
30057 Document\SpecialChar menuseparator
30058 View\SpecialChar menuseparator
30059 DVI
30060 \family default
30061  File menu entries.
30062  Here is how it looks like:
30063 \end_layout
30064
30065 \begin_layout LyX-Code
30066 Toolbar
30067 \end_layout
30068
30069 \begin_layout LyX-Code
30070   Layouts
30071 \end_layout
30072
30073 \begin_layout LyX-Code
30074   Icon "layout Standard"
30075 \end_layout
30076
30077 \begin_layout LyX-Code
30078   Icon "layout Section"
30079 \end_layout
30080
30081 \begin_layout LyX-Code
30082   Icon "layout \SpecialChar LaTeX
30083 "
30084 \end_layout
30085
30086 \begin_layout LyX-Code
30087   Icon "layout \SpecialChar LyX
30088 -Code"
30089 \end_layout
30090
30091 \begin_layout LyX-Code
30092   Icon "flex.insert Chunk"
30093 \end_layout
30094
30095 \begin_layout LyX-Code
30096   Separator
30097 \end_layout
30098
30099 \begin_layout LyX-Code
30100   Icon "buffer-view"
30101 \end_layout
30102
30103 \begin_layout LyX-Code
30104   Icon "buffer-typeset"
30105 \end_layout
30106
30107 \begin_layout LyX-Code
30108   Icon "build-program"
30109 \end_layout
30110
30111 \begin_layout LyX-Code
30112   Separator
30113 \end_layout
30114
30115 \begin_layout LyX-Code
30116 .
30117 \end_layout
30118
30119 \begin_layout LyX-Code
30120 .
30121 \end_layout
30122
30123 \begin_layout LyX-Code
30124 .
30125 \end_layout
30126
30127 \begin_layout LyX-Code
30128 End
30129 \end_layout
30130
30131 \begin_layout Subsubsection
30132 Colors customization
30133 \end_layout
30134
30135 \begin_layout Standard
30136 There are a number of colors in \SpecialChar LyX
30137  that can be customized in 
30138 \family sans
30139 Preferences
30140 \family default
30141 .
30142  One of the things that bothers people is the \SpecialChar LaTeX
30143  font color.
30144  The default color is red, since the chunks uses \SpecialChar LaTeX
30145  font, and there is a lot
30146  of chunks in literate documents, you may get tired of seeing everything
30147  in red.
30148  You can change it by going to the tabs 
30149 \family sans
30150 Look&Feel
30151 \family default
30152
30153 \family sans
30154 Colors.
30155 \end_layout
30156
30157 \begin_layout Standard
30158 The next thing is the visible presence of the newline character in the screen.
30159  You can choose the color of this particular character and make it blend
30160  in the background.
30161  I recommend you choosing a color that is close to the background but not
30162  equal, that way you still can see it is there, but it is not bothering
30163  you anymore.
30164 \end_layout
30165
30166 \begin_layout Subsection
30167 \SpecialChar LyX
30168  and knitr/Sweave
30169 \end_layout
30170
30171 \begin_layout Standard
30172 Support for 
30173 \family sans
30174 knitr
30175 \family default
30176  and 
30177 \family sans
30178 Sweave
30179 \family default
30180  is documented in 
30181 \change_deleted 564990737 1671643409
30182 the 
30183 \emph on
30184 knitr.lyx
30185 \emph default
30186  example file
30187 \change_inserted 564990737 1671643443
30188
30189 \family sans
30190 \lang british
30191 File\SpecialChar menuseparator
30192 Open Example\SpecialChar menuseparator
30193 Modules\SpecialChar menuseparator
30194 Rnw (knitr)
30195 \change_unchanged
30196
30197 \family default
30198 \lang english
30199  and in 
30200 \change_deleted 564990737 1671643461
30201 the Sweave manual (menu 
30202 \family sans
30203 Help\SpecialChar menuseparator
30204 Specific Manuals
30205 \family default
30206 )
30207 \change_inserted 564990737 1671643461
30208
30209 \family sans
30210 \lang british
30211 Help\SpecialChar menuseparator
30212 Specific Manuals\SpecialChar menuseparator
30213 Sweave
30214 \change_unchanged
30215
30216 \family default
30217 \lang english
30218 .
30219 \end_layout
30220
30221 \begin_layout Chapter
30222
30223 \change_deleted 564990737 1671355343
30224 Special features
30225 \end_layout
30226
30227 \begin_layout Standard
30228
30229 \change_deleted 564990737 1671355343
30230 You can do everything with \SpecialChar LyX
30231  that you can do with \SpecialChar LaTeX
30232 .
30233  However, \SpecialChar LyX
30234  cannot support every \SpecialChar LaTeX
30235  feature directly.
30236  But you can always use \SpecialChar TeX
30237  Code.
30238  This chapter shows you some more special things you might want to use.
30239  For other special things you can do with figures, tables, floats, boxes
30240  and notes, have a look at the 
30241 \emph on
30242 Embedded
30243 \begin_inset space ~
30244 \end_inset
30245
30246 Objects
30247 \emph default
30248  manual.
30249 \change_unchanged
30250
30251 \end_layout
30252
30253 \end_body
30254 \end_document