]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert entries for Custom Footer/Header Text and Landscape Document Mode and update...
[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 graphicboxes
40 enumitem
41 \end_modules
42 \maintain_unincluded_children no
43 \language english
44 \language_package default
45 \inputencoding utf8
46 \fontencoding auto
47 \font_roman "lmodern" "default"
48 \font_sans "lmss" "default"
49 \font_typewriter "lmtt" "default"
50 \font_math "auto" "auto"
51 \font_default_family default
52 \use_non_tex_fonts false
53 \font_sc false
54 \font_roman_osf false
55 \font_sans_osf false
56 \font_typewriter_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \float_placement class
67 \float_alignment class
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX's Additional Features manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX's additional features documentation"
74 \pdf_keywords "LyX, Documentation, Additional"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen false
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize a4
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \index Index
110 \shortcut idx
111 \color #008000
112 \end_index
113 \secnumdepth 3
114 \tocdepth 3
115 \paragraph_separation indent
116 \paragraph_indentation default
117 \is_math_indent 1
118 \math_indentation default
119 \math_numbering_side default
120 \quotes_style english
121 \dynamic_quotes 0
122 \papercolumns 1
123 \papersides 2
124 \paperpagestyle headings
125 \tablestyle default
126 \tracking_changes true
127 \output_changes false
128 \change_bars false
129 \postpone_fragile_content false
130 \html_math_output 0
131 \html_css_as_file 0
132 \html_be_strict true
133 \docbook_table_output 0
134 \docbook_mathml_prefix 1
135 \author -712698321 "Jürgen Spitzmüller"
136 \author 177693 "x"
137 \author 5863208 "ab"
138 \author 244031559 "Yuriy"
139 \author 564990737 "John Lyx"
140 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
141 \author 1075283030 "Thibaut"
142 \author 1119979965 "Joel A. Kulesza"
143 \end_header
144
145 \begin_body
146
147 \begin_layout Title
148 Additional \SpecialChar LyX
149  Features
150 \end_layout
151
152 \begin_layout Subtitle
153 Version 2.
154 \change_deleted 630872221 1622909155
155 3
156 \change_inserted 630872221 1622909155
157 4
158 \change_unchanged
159 .x
160 \end_layout
161
162 \begin_layout Author
163 by the \SpecialChar LyX
164  Team
165 \begin_inset Foot
166 status collapsed
167
168 \begin_layout Plain Layout
169 \noindent
170 Principal maintainer of this file is
171 \noun on
172  Richard Kimberly Heck
173 \noun default
174 .
175  If you have comments or error corrections, please send them to the \SpecialChar LyX
176  Documentati
177 on mailing list, 
178 \begin_inset Flex Code
179 status collapsed
180
181 \begin_layout Plain Layout
182 <lyx-docs@lists.lyx.org>
183 \end_layout
184
185 \end_inset
186
187 .
188 \end_layout
189
190 \end_inset
191
192
193 \end_layout
194
195 \begin_layout Standard
196 \begin_inset CommandInset toc
197 LatexCommand tableofcontents
198
199 \end_inset
200
201
202 \end_layout
203
204 \begin_layout Chapter
205 Introduction
206 \end_layout
207
208 \begin_layout Standard
209 This manual is essentially Part II of the 
210 \emph on
211 User's Guide\SpecialChar endofsentence
212
213 \emph default
214  The reason for separating the two documents is simple: the 
215 \emph on
216 User's Guide
217 \emph default
218  is already quite lengthy, and it contains information on all of the basic
219  features one needs to know in order to prepare most documents.
220  However, the \SpecialChar LyX
221  Team has worked to make \SpecialChar LyX
222  extensible through various configuration
223  files and external packages.
224  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
225  package, you can
226  create a layout file (or module) for it without having to alter \SpecialChar LyX
227  itself.
228  We've already had contributions of several new features this way, and some
229  of them are documented here.
230  There are also some more `advanced' features, such as how to control the
231  presentation of bibliographies and how to work with multi-part documents,
232  that are not covered in the 
233 \emph on
234 User's Guide
235 \emph default
236  and are discussed here.
237 \end_layout
238
239 \begin_layout Standard
240 This manual also documents some special features, like fax support
241 \change_deleted 244031559 1603802929
242 ,
243 \change_inserted 244031559 1603802931
244  and
245 \change_unchanged
246  version control
247 \change_deleted 244031559 1603802954
248 , and SGML support
249 \change_unchanged
250 , which require additional software to work properly.
251  There is also a chapter on \SpecialChar LyX
252 's support for HTML.
253  And lastly, there's a chapter of \SpecialChar LaTeX
254  tools and tips, things you can use to
255  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
256 .
257  After all, \SpecialChar LyX
258  
259 \emph on
260 is
261 \emph default
262  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
263  features.
264 \end_layout
265
266 \begin_layout Standard
267 If you haven't read the 
268 \emph on
269 Introduction
270 \emph default
271  yet, you are definitely in the wrong manual.
272  The 
273 \emph on
274 Introduction
275 \emph default
276  is the first place to go, since it describes the notation and format of
277  all of the manuals.
278  You should also be thoroughly familiar with the 
279 \emph on
280 User's Guide
281 \emph default
282  and all of the basic features of \SpecialChar LyX
283  before attempting to read this one.
284 \end_layout
285
286 \begin_layout Standard
287 Since many of the topics in this manual depend heavily on \SpecialChar LyX
288 's interaction
289  with \SpecialChar LaTeX
290 , this first chapter covers the inner workings of \SpecialChar LyX
291  and how to direct
292  \SpecialChar LyX
293  to generate exactly the \SpecialChar LaTeX
294  code you want.
295  It is obviously for more seasoned \SpecialChar LyX
296  users.
297 \end_layout
298
299 \begin_layout Chapter
300 \SpecialChar LyX
301  and \SpecialChar LaTeX
302
303 \end_layout
304
305 \begin_layout Section
306 How \SpecialChar LyX
307  Uses \SpecialChar LaTeX
308
309 \end_layout
310
311 \begin_layout Standard
312 This chapter is for both \SpecialChar TeX
313 -nicians and the \SpecialChar LaTeX
314 -curious.
315  In it, we'll explain how \SpecialChar LyX
316  and \SpecialChar LaTeX
317  work together to produce printable output.
318  This is the only place in any of the manuals where we assume you know something
319  about \SpecialChar LaTeX
320 .
321 \end_layout
322
323 \begin_layout Standard
324 At one time, \SpecialChar LyX
325  was called a 
326 \begin_inset Quotes eld
327 \end_inset
328
329 WYSIWYM frontend to \SpecialChar LaTeX
330 ,
331 \begin_inset Quotes erd
332 \end_inset
333
334  but that's no longer true.
335  There are frontends to \SpecialChar LaTeX
336  out there.
337 \begin_inset Foot
338 status collapsed
339
340 \begin_layout Plain Layout
341 Some familar ones are \SpecialChar TeX
342 maker and kile, on Linux, and \SpecialChar TeX
343 shop, OSX.
344  There are also the \SpecialChar LaTeX
345  modes for vi and emacs, of course.
346 \end_layout
347
348 \end_inset
349
350  These are basically text editors with the ability to run \SpecialChar LaTeX
351  and mark any
352  errors in the file you're editing.
353  Although \SpecialChar LyX
354  
355 \emph on
356 is
357 \emph default
358  an editor, and it 
359 \emph on
360 does
361 \emph default
362  run \SpecialChar LaTeX
363 , and it also indicates errors in the file, it also does much, much
364  more.
365  For one thing, you don't need to know \SpecialChar LaTeX
366  to use \SpecialChar LyX
367  effectively.
368  And \SpecialChar LyX
369  has added its own extensions to \SpecialChar LaTeX
370 .
371  Try the following sometime: select 
372 \begin_inset Flex Noun
373 status collapsed
374
375 \begin_layout Plain Layout
376 Export\SpecialChar menuseparator
377 LaTeX
378 \end_layout
379
380 \end_inset
381
382  from the 
383 \begin_inset Flex Noun
384 status collapsed
385
386 \begin_layout Plain Layout
387 File
388 \end_layout
389
390 \end_inset
391
392  menu (or 
393 \begin_inset Flex Noun
394 status collapsed
395
396 \begin_layout Plain Layout
397 View\SpecialChar menuseparator
398 Source
399 \begin_inset space ~
400 \end_inset
401
402 Pane
403 \end_layout
404
405 \end_inset
406
407 ), then look at the preamble of the resulting 
408 \begin_inset Flex Code
409 status collapsed
410
411 \begin_layout Plain Layout
412 .tex
413 \end_layout
414
415 \end_inset
416
417  file.
418  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
419 .
420  These macros are defined automatically, according to the features you use
421  in the document.
422 \end_layout
423
424 \begin_layout Standard
425 There are several commands that automatically invoke \SpecialChar LaTeX
426 .
427  They are:
428 \end_layout
429
430 \begin_layout Itemize
431 \begin_inset Flex Noun
432 status collapsed
433
434 \begin_layout Plain Layout
435 Document\SpecialChar menuseparator
436 View
437 \end_layout
438
439 \end_inset
440
441
442 \end_layout
443
444 \begin_layout Itemize
445 \begin_inset Flex Noun
446 status collapsed
447
448 \begin_layout Plain Layout
449 Document\SpecialChar menuseparator
450 Update
451 \end_layout
452
453 \end_inset
454
455
456 \end_layout
457
458 \begin_layout Standard
459 They will only invoke \SpecialChar LaTeX
460  if the file has changed since the last time \SpecialChar LaTeX
461  was
462  run.
463  
464 \end_layout
465
466 \begin_layout Standard
467 When \SpecialChar LyX
468  runs \SpecialChar LaTeX
469  on the file you're editing, it performs these steps:
470 \end_layout
471
472 \begin_layout Enumerate
473 Convert the document to \SpecialChar LaTeX
474  and save to a file with the extension 
475 \begin_inset Flex Code
476 status collapsed
477
478 \begin_layout Plain Layout
479 .tex
480 \end_layout
481
482 \end_inset
483
484  in place of 
485 \begin_inset Flex Code
486 status collapsed
487
488 \begin_layout Plain Layout
489 .lyx
490 \end_layout
491
492 \end_inset
493
494 .
495 \end_layout
496
497 \begin_layout Enumerate
498 Run \SpecialChar LaTeX
499  on the 
500 \begin_inset Flex Code
501 status collapsed
502
503 \begin_layout Plain Layout
504 .tex
505 \end_layout
506
507 \end_inset
508
509  file (maybe several times), and run any other commands (such as 
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 bibtex
515 \end_layout
516
517 \end_inset
518
519  or 
520 \begin_inset Flex Code
521 status collapsed
522
523 \begin_layout Plain Layout
524 makeindex
525 \end_layout
526
527 \end_inset
528
529 ) needed to compile the \SpecialChar LaTeX
530  file.
531 \end_layout
532
533 \begin_layout Enumerate
534 If there are any errors, show the error log.
535 \end_layout
536
537 \begin_layout Standard
538 If you have run \SpecialChar LaTeX
539  using 
540 \begin_inset Flex Noun
541 status collapsed
542
543 \begin_layout Plain Layout
544 View\SpecialChar menuseparator
545 DVI
546 \end_layout
547
548 \end_inset
549
550 , \SpecialChar LyX
551  then runs a DVI viewer to display the DVI-file.
552  If you have used 
553 \begin_inset Flex Noun
554 status collapsed
555
556 \begin_layout Plain Layout
557 View\SpecialChar menuseparator
558 PostScript
559 \end_layout
560
561 \end_inset
562
563 , \SpecialChar LyX
564  performs further steps:
565 \end_layout
566
567 \begin_layout Enumerate
568 Run 
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 dvips
574 \end_layout
575
576 \end_inset
577
578  to convert the DVI file to PostScript.
579 \end_layout
580
581 \begin_layout Enumerate
582 Run a PostScript viewer, such as 
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 ghostview
588 \end_layout
589
590 \end_inset
591
592 , to display the PostScript file.
593 \end_layout
594
595 \begin_layout Standard
596 \SpecialChar LyX
597  does similar things when viewing, or exporting, other formats.
598 \end_layout
599
600 \begin_layout Section
601 Translating \SpecialChar LaTeX
602  files into \SpecialChar LyX
603
604 \end_layout
605
606 \begin_layout Standard
607 You can import a \SpecialChar LaTeX
608  file into \SpecialChar LyX
609  by using the 
610 \begin_inset Flex Noun
611 status collapsed
612
613 \begin_layout Plain Layout
614 File\SpecialChar menuseparator
615 Import\SpecialChar menuseparator
616 LaTeX
617 \end_layout
618
619 \end_inset
620
621  command in \SpecialChar LyX
622 .
623  This will call a program named 
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 tex2lyx
629 \end_layout
630
631 \end_inset
632
633  which will create a file 
634 \begin_inset Flex Code
635 status collapsed
636
637 \begin_layout Plain Layout
638 foo.lyx
639 \end_layout
640
641 \end_inset
642
643  from the file 
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648 foo.tex
649 \end_layout
650
651 \end_inset
652
653 .
654  \SpecialChar LyX
655  will then open that file.
656 \begin_inset Foot
657 status collapsed
658
659 \begin_layout Plain Layout
660 \begin_inset Flex Code
661 status collapsed
662
663 \begin_layout Plain Layout
664 tex2lyx
665 \end_layout
666
667 \end_inset
668
669  can also be run from the command line, of course.
670 \end_layout
671
672 \end_inset
673
674
675 \end_layout
676
677 \begin_layout Standard
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 tex2lyx
683 \end_layout
684
685 \end_inset
686
687  will translate most legal \SpecialChar LaTeX
688 , but not everything.
689  It will put things it doesn't understand into \SpecialChar TeX
690  code, so after translating
691  a file with 
692 \begin_inset Flex Code
693 status collapsed
694
695 \begin_layout Plain Layout
696 tex2lyx
697 \end_layout
698
699 \end_inset
700
701 , you can look for \SpecialChar TeX
702  code and hand-edit it until it looks right.
703 \end_layout
704
705 \begin_layout Standard
706 If you don't know what \SpecialChar TeX
707  code is, read the next section.
708 \end_layout
709
710 \begin_layout Section
711 \begin_inset CommandInset label
712 LatexCommand label
713 name "sec:Inserting-TeX-Code"
714
715 \end_inset
716
717 Inserting \SpecialChar TeX
718  Code into \SpecialChar LyX
719  Documents 
720 \end_layout
721
722 \begin_layout Standard
723 Anything you can do in \SpecialChar LaTeX
724  you can do in \SpecialChar LyX
725 , for a very simple reason: You can
726  always insert \SpecialChar TeX
727  code into any \SpecialChar LyX
728  document.
729  \SpecialChar LyX
730  cannot, and will never be able to, display every possible \SpecialChar LaTeX
731  construct.
732  If ever you need to insert \SpecialChar LaTeX
733  commands into your \SpecialChar LyX
734  document, you can use the
735  
736 \begin_inset Flex Code
737 status collapsed
738
739 \begin_layout Plain Layout
740 \SpecialChar TeX
741  Code
742 \end_layout
743
744 \end_inset
745
746  box, which you can insert into your document with 
747 \begin_inset Flex Noun
748 status collapsed
749
750 \begin_layout Plain Layout
751 Insert\SpecialChar menuseparator
752
753 \family sans
754 TeX
755 \family default
756  Code
757 \end_layout
758
759 \end_inset
760
761  or the keyboard shortcut 
762 \begin_inset Info
763 type  "shortcut"
764 arg   "ert-insert"
765 \end_inset
766
767 .
768 \end_layout
769
770 \begin_layout Standard
771 Here's an example of inserting \SpecialChar LaTeX
772  commands in a \SpecialChar LyX
773  document.
774  The code looks like this:
775 \end_layout
776
777 \begin_layout LyX-Code
778
779 \backslash
780 begin{tabular}{ll}
781 \begin_inset Newline newline
782 \end_inset
783
784
785 \backslash
786 begin{minipage}{5cm}
787 \begin_inset Newline newline
788 \end_inset
789
790 This is an example of a minipage environment.
791  You 
792 \begin_inset Newline newline
793 \end_inset
794
795 can put nearly everything in it, even (non-floating) 
796 \begin_inset Newline newline
797 \end_inset
798
799 figures and tables.
800  
801 \begin_inset Newline newline
802 \end_inset
803
804
805 \backslash
806 end{minipage}
807 \begin_inset Newline newline
808 \end_inset
809
810 &
811 \begin_inset Newline newline
812 \end_inset
813
814
815 \backslash
816 begin{minipage}{5cm}
817 \begin_inset Newline newline
818 \end_inset
819
820
821 \backslash
822 begin{verbatim}
823 \begin_inset Newline newline
824 \end_inset
825
826
827 \backslash
828 begin{minipage}{5cm}
829 \begin_inset Newline newline
830 \end_inset
831
832 This ...
833  
834 \begin_inset Newline newline
835 \end_inset
836
837
838 \backslash
839 end{minipage}
840 \begin_inset Newline newline
841 \end_inset
842
843
844 \backslash
845 end{verbatim}
846 \begin_inset Newline newline
847 \end_inset
848
849
850 \backslash
851 end{minipage}
852 \begin_inset Newline newline
853 \end_inset
854
855
856 \backslash
857 end{tabular}
858 \end_layout
859
860 \begin_layout LyX-Code
861
862 \end_layout
863
864 \begin_layout Standard
865 The 
866 \begin_inset Flex Code
867 status collapsed
868
869 \begin_layout Plain Layout
870 \SpecialChar TeX
871  Code
872 \end_layout
873
874 \end_inset
875
876  box containing this text is directly after this paragraph.
877  Those of you reading the manual in \SpecialChar LyX
878  will only see the \SpecialChar TeX
879  code inset.
880  Those reading a printed version of the manuals will see the actual results:
881 \begin_inset VSpace bigskip
882 \end_inset
883
884
885 \end_layout
886
887 \begin_layout Standard
888 \begin_inset ERT
889 status open
890
891 \begin_layout Plain Layout
892
893
894 \backslash
895 begin{tabular}{ll}
896 \end_layout
897
898 \begin_layout Plain Layout
899
900
901 \backslash
902 begin{minipage}{5cm}
903 \end_layout
904
905 \begin_layout Plain Layout
906
907 This is an example of a minipage environment.
908  You can put nearly everything in it, even (non-floating) figures and tables.
909  
910 \end_layout
911
912 \begin_layout Plain Layout
913
914
915 \backslash
916 end{minipage}
917 \end_layout
918
919 \begin_layout Plain Layout
920
921 &
922 \end_layout
923
924 \begin_layout Plain Layout
925
926
927 \backslash
928 begin{minipage}{5cm}
929 \end_layout
930
931 \begin_layout Plain Layout
932
933
934 \backslash
935 begin{verbatim}
936 \end_layout
937
938 \begin_layout Plain Layout
939
940
941 \backslash
942 begin{minipage}{5cm}
943 \end_layout
944
945 \begin_layout Plain Layout
946
947 This ...
948  
949 \end_layout
950
951 \begin_layout Plain Layout
952
953
954 \backslash
955 end{minipage}
956 \end_layout
957
958 \begin_layout Plain Layout
959
960
961 \backslash
962 end{verbatim}
963 \end_layout
964
965 \begin_layout Plain Layout
966
967
968 \backslash
969 end{minipage}
970 \end_layout
971
972 \begin_layout Plain Layout
973
974
975 \backslash
976 end{tabular}
977 \end_layout
978
979 \end_inset
980
981
982 \begin_inset VSpace bigskip
983 \end_inset
984
985
986 \end_layout
987
988 \begin_layout Standard
989 In addition to using \SpecialChar TeX
990  code, you can also create a separate file containing
991  some complex \SpecialChar LaTeX
992  structure and then use 
993 \begin_inset Flex Noun
994 status collapsed
995
996 \begin_layout Plain Layout
997 Insert\SpecialChar menuseparator
998 Child
999 \begin_inset space ~
1000 \end_inset
1001
1002 Document
1003 \end_layout
1004
1005 \end_inset
1006
1007  to include your file (you should select the type 
1008 \begin_inset Flex Code
1009 status collapsed
1010
1011 \begin_layout Plain Layout
1012 Input
1013 \end_layout
1014
1015 \end_inset
1016
1017 ).
1018  We recommend that you only do this if you have a 
1019 \begin_inset Flex Code
1020 status collapsed
1021
1022 \begin_layout Plain Layout
1023 .tex
1024 \end_layout
1025
1026 \end_inset
1027
1028  file which you 
1029 \emph on
1030 know
1031 \emph default
1032  works already.
1033  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1034  errors.
1035 \end_layout
1036
1037 \begin_layout Standard
1038 There are a few last points to emphasize:
1039 \end_layout
1040
1041 \begin_layout Itemize
1042 \SpecialChar LyX
1043  
1044 \emph on
1045 does not
1046 \emph default
1047  check if your \SpecialChar LaTeX
1048  code is correct.
1049 \end_layout
1050
1051 \begin_layout Itemize
1052 Beware of reinventing the wheel.
1053 \end_layout
1054
1055 \begin_layout Standard
1056 On that last point, \SpecialChar LyX
1057  does have quite a few features tucked into it, and
1058  more are coming.
1059  Be sure to check the manuals to make sure that \SpecialChar LyX
1060  doesn't have such-and-such
1061  feature before you decide you have to do it by hand.
1062  Moreover, there are numerous \SpecialChar LaTeX
1063  packages out there to do all sorts of things,
1064  from labels to envelopes to fancy multipage tables.
1065  Check out 
1066 \change_inserted 244031559 1603815732
1067
1068 \begin_inset CommandInset href
1069 LatexCommand href
1070 name "CTAN"
1071 target "https://www.ctan.org/"
1072 literal "false"
1073
1074 \end_inset
1075
1076
1077 \change_deleted 244031559 1603815732
1078
1079 \begin_inset CommandInset href
1080 LatexCommand href
1081 name "CTAN"
1082 target "http://www.ctan.org/"
1083 literal "false"
1084
1085 \end_inset
1086
1087
1088 \change_unchanged
1089  for details.
1090 \end_layout
1091
1092 \begin_layout Standard
1093 If you do need to do some wild and fancy things within your document, be
1094  sure to check out a good \SpecialChar LaTeX
1095  book for assistance.
1096  There are a number of them listed in the bibliography of the 
1097 \emph on
1098 User's Guide
1099 \emph default
1100 .
1101 \end_layout
1102
1103 \begin_layout Section
1104 \SpecialChar LyX
1105  and the \SpecialChar LaTeX
1106  Preamble
1107 \end_layout
1108
1109 \begin_layout Subsection
1110 About the \SpecialChar LaTeX
1111  Preamble
1112 \end_layout
1113
1114 \begin_layout Standard
1115 If you already know \SpecialChar LaTeX
1116 , there is no need to explain here what the preamble
1117  is good for.
1118  If you don't, the following will give you some ideas—we recommend again
1119  that you consult a \SpecialChar LaTeX
1120  book for further information.
1121  In any case, you should read the points below, because they explain what
1122  you can do and what you don't need to do in the \SpecialChar LaTeX
1123  preamble of a \SpecialChar LyX
1124  document.
1125 \end_layout
1126
1127 \begin_layout Standard
1128 The \SpecialChar LaTeX
1129  preamble comes at the very beginning of a document, 
1130 \emph on
1131 before
1132 \emph default
1133  the text.
1134  It serves to:
1135 \end_layout
1136
1137 \begin_layout Itemize
1138 Declare the document class.
1139  
1140 \begin_inset Newline newline
1141 \end_inset
1142
1143 \SpecialChar LyX
1144  already does this for you.
1145  If you're a seasoned \SpecialChar LaTeX
1146 -nician, and you have a custom document class you
1147  want to use, check out the 
1148 \emph on
1149 Customization Manual
1150 \emph default
1151  for information on how to make \SpecialChar LyX
1152  interface to it.
1153 \end_layout
1154
1155 \begin_layout Itemize
1156 Declare the usage of packages.
1157  
1158 \begin_inset Newline newline
1159 \end_inset
1160
1161 \SpecialChar LaTeX
1162  packages provide special commands, which are only available within a document
1163  when the package has been declared in the preamble.
1164  In addition to providing special commands, the inclusion of a package can
1165  change the document.
1166  For example, the package 
1167 \begin_inset Flex Code
1168 status collapsed
1169
1170 \begin_layout Plain Layout
1171 indentfirst
1172 \end_layout
1173
1174 \end_inset
1175
1176  forces all paragraphs to be indented.
1177  There are other packages for labels, envelopes, margins, etc.
1178  
1179 \end_layout
1180
1181 \begin_layout Itemize
1182 Set counters, variables, lengths and widths.
1183  
1184 \begin_inset Newline newline
1185 \end_inset
1186
1187 There are several \SpecialChar LaTeX
1188  counters and variables that 
1189 \emph on
1190 must
1191 \emph default
1192  be set globally from within the preamble in order to have the desired effect.
1193  (There are variables that you can set and reset inside the document, too.)
1194  Margins are a good example of something that must be set in the preamble.
1195  Another example is the label format for lists.
1196  You can actually set these just about anywhere, but it's best to do it
1197  just once, inside the preamble.
1198 \end_layout
1199
1200 \begin_layout Itemize
1201 Declare user defined commands (with 
1202 \begin_inset Flex Code
1203 status collapsed
1204
1205 \begin_layout Plain Layout
1206
1207 \backslash
1208 newcommand
1209 \end_layout
1210
1211 \end_inset
1212
1213  or 
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218
1219 \backslash
1220 renewcommand
1221 \end_layout
1222
1223 \end_inset
1224
1225 ).
1226 \begin_inset Newline newline
1227 \end_inset
1228
1229 These are abbreviations for \SpecialChar LaTeX
1230  commands which appear very often inside a document.
1231  Although the preamble is a good place to declare such commands, they 
1232 \emph on
1233 can
1234 \emph default
1235  be declared anywhere (before they are used for the first time, of course).
1236  This can be useful if there is a lot of raw \SpecialChar LaTeX
1237  code in your document, which
1238  normally should not be the case.
1239 \end_layout
1240
1241 \begin_layout Standard
1242 \SpecialChar LyX
1243  adds its own set of definitions to the preamble of the 
1244 \begin_inset Flex Code
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 .tex
1249 \end_layout
1250
1251 \end_inset
1252
1253  file it produces.
1254  This makes \SpecialChar LaTeX
1255  files generated by \SpecialChar LyX
1256  portable.
1257 \end_layout
1258
1259 \begin_layout Subsection
1260 Changing the Preamble
1261 \end_layout
1262
1263 \begin_layout Standard
1264 The commands which \SpecialChar LyX
1265  adds to the preamble of a \SpecialChar LaTeX
1266  file are fixed; you can't
1267  change them without patching \SpecialChar LyX
1268  itself.
1269  You can, however, add your own stuff to the preamble by selecting 
1270 \begin_inset Flex Noun
1271 status collapsed
1272
1273 \begin_layout Plain Layout
1274 \SpecialChar LaTeX
1275
1276 \begin_inset space ~
1277 \end_inset
1278
1279 Preamble
1280 \end_layout
1281
1282 \end_inset
1283
1284  in the 
1285 \begin_inset Flex Noun
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 Document\SpecialChar menuseparator
1290 Settings
1291 \end_layout
1292
1293 \end_inset
1294
1295  dialog.
1296  \SpecialChar LyX
1297  adds anything in the 
1298 \begin_inset Flex Noun
1299 status collapsed
1300
1301 \begin_layout Plain Layout
1302 Preamble
1303 \end_layout
1304
1305 \end_inset
1306
1307  dialog to its own built-in preamble.
1308  Before adding your own declarations in the preamble, you should make sure
1309  that \SpecialChar LyX
1310  doesn't already support what you want to do.
1311  (Remember what we said about reinventing the wheel?) Also, 
1312 \emph on
1313 make sure your preamble code is correct
1314 \emph default
1315 .
1316  \SpecialChar LyX
1317  doesn't check it for you.
1318  If there is an error, you're likely to get an error like 
1319 \begin_inset Quotes eld
1320 \end_inset
1321
1322
1323 \begin_inset Flex Code
1324 status collapsed
1325
1326 \begin_layout Plain Layout
1327 Missing 
1328 \backslash
1329 begin{document}
1330 \end_layout
1331
1332 \end_inset
1333
1334
1335 \begin_inset Quotes erd
1336 \end_inset
1337
1338 .
1339  If you see this error, check your preamble.
1340 \end_layout
1341
1342 \begin_layout Subsection
1343 Examples
1344 \end_layout
1345
1346 \begin_layout Standard
1347 Here are some examples of what you can add to a preamble, and what they
1348  do.
1349 \end_layout
1350
1351 \begin_layout Subsubsection
1352 Example #1: Offsets
1353 \end_layout
1354
1355 \begin_layout Standard
1356 There are two variables under \SpecialChar LaTeX
1357  that control page position: 
1358 \begin_inset Flex Code
1359 status collapsed
1360
1361 \begin_layout Plain Layout
1362
1363 \backslash
1364 hoffset
1365 \end_layout
1366
1367 \end_inset
1368
1369  and 
1370 \begin_inset Flex Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374
1375 \backslash
1376 voffset
1377 \end_layout
1378
1379 \end_inset
1380
1381 .
1382  Their names should be self-explanatory.
1383  These variables are useful if you think for a moment about computer labels.
1384  Sometimes, the size of a print medium and the area of the medium that you
1385  can actually print on aren't the same.
1386  This is where 
1387 \begin_inset Flex Code
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391
1392 \backslash
1393 hoffset
1394 \end_layout
1395
1396 \end_inset
1397
1398  and 
1399 \begin_inset Flex Code
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403
1404 \backslash
1405 voffset
1406 \end_layout
1407
1408 \end_inset
1409
1410  come in.
1411 \end_layout
1412
1413 \begin_layout Standard
1414 The default values for 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419
1420 \backslash
1421 hoffset
1422 \end_layout
1423
1424 \end_inset
1425
1426  and 
1427 \begin_inset Flex Code
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431
1432 \backslash
1433 voffset
1434 \end_layout
1435
1436 \end_inset
1437
1438  are both 0
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 points, i.
1443 \begin_inset space \thinspace{}
1444 \end_inset
1445
1446 e.
1447 \begin_inset space \space{}
1448 \end_inset
1449
1450 the page isn't shifted.
1451  Unfortunately, some DVI drivers always seem to shift the page.
1452  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1453  If you're using \SpecialChar LyX
1454  on a system that you don't personally maintain, and your
1455  sysadmin is a doofus, 
1456 \begin_inset Flex Code
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460
1461 \backslash
1462 hoffset
1463 \end_layout
1464
1465 \end_inset
1466
1467  and 
1468 \begin_inset Flex Code
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472
1473 \backslash
1474 voffset
1475 \end_layout
1476
1477 \end_inset
1478
1479  can save the day.
1480  Suppose your left and top margins are always 0.5
1481 \begin_inset space \thinspace{}
1482 \end_inset
1483
1484 inches too big.
1485  You can add this to the preamble:
1486 \end_layout
1487
1488 \begin_layout LyX-Code
1489
1490 \backslash
1491 setlength{
1492 \backslash
1493 hoffset}{-0.5 in}
1494 \end_layout
1495
1496 \begin_layout LyX-Code
1497
1498 \backslash
1499 setlength{
1500 \backslash
1501 voffset}{-0.5 in}
1502 \end_layout
1503
1504 \begin_layout Standard
1505 and your margins should now be correct.
1506 \end_layout
1507
1508 \begin_layout Subsubsection
1509 Example #2: Labels
1510 \end_layout
1511
1512 \begin_layout Standard
1513 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1514  There's a rather nice package, available at your nearest CTAN archive,
1515  for printing sheets of labels: 
1516 \begin_inset Flex Code
1517 status collapsed
1518
1519 \begin_layout Plain Layout
1520 labels.sty
1521 \end_layout
1522
1523 \end_inset
1524
1525 .
1526  Now, your system may not have this package installed by default.
1527  We leave that up to you to check.
1528  You'll also want to read the documentation for it; we're not going to do
1529  that for you.
1530  Since this is an example, however, we'll give you an example of how you
1531  use this package.
1532 \end_layout
1533
1534 \begin_layout Standard
1535 First, make sure you're using the 
1536 \begin_inset Flex Code
1537 status collapsed
1538
1539 \begin_layout Plain Layout
1540 article
1541 \end_layout
1542
1543 \end_inset
1544
1545  document class.
1546  Next, you need to put the following in your preamble:
1547 \end_layout
1548
1549 \begin_layout LyX-Code
1550
1551 \backslash
1552 usepackage{labels}
1553 \end_layout
1554
1555 \begin_layout LyX-Code
1556
1557 \backslash
1558 LabelCols=3
1559 \end_layout
1560
1561 \begin_layout LyX-Code
1562
1563 \backslash
1564 LabelRows=7
1565 \end_layout
1566
1567 \begin_layout LyX-Code
1568
1569 \backslash
1570 LeftBorder=8mm
1571 \end_layout
1572
1573 \begin_layout LyX-Code
1574
1575 \backslash
1576 RightBorder=8mm
1577 \end_layout
1578
1579 \begin_layout LyX-Code
1580
1581 \backslash
1582 TopBorder=9mm
1583 \end_layout
1584
1585 \begin_layout LyX-Code
1586
1587 \backslash
1588 BottomBorder=2mm
1589 \end_layout
1590
1591 \begin_layout Standard
1592 This sets things up for Avery label sheets, stock #5360.
1593  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1594  code, placing
1595  the commands 
1596 \begin_inset Flex Code
1597 status collapsed
1598
1599 \begin_layout Plain Layout
1600
1601 \backslash
1602 begin{labels}
1603 \end_layout
1604
1605 \end_inset
1606
1607  and 
1608 \begin_inset Flex Code
1609 status collapsed
1610
1611 \begin_layout Plain Layout
1612
1613 \backslash
1614 end{labels}
1615 \end_layout
1616
1617 \end_inset
1618
1619  around each label text.
1620  This and other special features of 
1621 \begin_inset Flex Code
1622 status collapsed
1623
1624 \begin_layout Plain Layout
1625 labels.sty
1626 \end_layout
1627
1628 \end_inset
1629
1630  are explained in its documentation.
1631 \end_layout
1632
1633 \begin_layout Standard
1634 Someday, someone may write a \SpecialChar LyX
1635  layout file to support this package directly.
1636  Maybe that someone is you.
1637 \end_layout
1638
1639 \begin_layout Subsubsection
1640 Example #3: Paragraph Indentation
1641 \end_layout
1642
1643 \begin_layout Standard
1644 Americans are trained to indent the first line of 
1645 \emph on
1646 every
1647 \emph default
1648  paragraph.
1649  As with all of their other weird quirks, most Americans will whine and
1650  moan until they can have their way and indent the first line of all paragraphs.
1651  (Yes, we're joking.
1652  (We are?) 
1653 \emph on
1654 Yeah
1655 \emph default
1656 , we are.)
1657 \end_layout
1658
1659 \begin_layout Standard
1660 Of course, this behavior isn't standard typography.
1661  In books, you typically only indent the first line of a paragraph 
1662 \emph on
1663 if
1664 \emph default
1665  it follows another one.
1666  The idea behind indenting the first line of a paragraph is to distinguish
1667  neighboring paragraphs from one another.
1668  If there is no previous paragraph—for example, if it follows a figure or
1669  is the first paragraph in a section—then there is no need for indentation.
1670  
1671 \end_layout
1672
1673 \begin_layout Standard
1674 If you're a typical American (we're still joking!), though, you don't care
1675  about such esoteric things; you want your indentation! Add this to the
1676  preamble:
1677 \end_layout
1678
1679 \begin_layout LyX-Code
1680
1681 \backslash
1682 usepackage{indentfirst}
1683 \end_layout
1684
1685 \begin_layout Standard
1686 If your \SpecialChar TeX
1687  distribution isn't braindead, you'll have this package, and all
1688  of your paragraphs will get the indentation the Founding Fathers intended
1689  they should have.
1690 \end_layout
1691
1692 \begin_layout Subsubsection
1693 Example #4: This Document
1694 \end_layout
1695
1696 \begin_layout Standard
1697 You can also check out the preamble of this document to get an idea of some
1698  of the advanced things you can do.
1699 \end_layout
1700
1701 \begin_layout Section
1702 \SpecialChar LyX
1703  and \SpecialChar LaTeX
1704  Errors
1705 \end_layout
1706
1707 \begin_layout Standard
1708 When \SpecialChar LyX
1709  calls \SpecialChar LaTeX
1710 , it tells \SpecialChar LaTeX
1711  to blithely ignore any errors and keep going.
1712  It then uses the logfile from the \SpecialChar LaTeX
1713  run to do a post-mortem.
1714  After analyzing the logfile, \SpecialChar LyX
1715  displays a dialog listing the errors.
1716  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1717  file
1718  where the error occurred.
1719 \begin_inset Foot
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 Well, usually.
1724  Analyzing the logfile is a tough job, and \SpecialChar LyX
1725  doesn't always go to the right
1726  line.
1727  There are also cases where \SpecialChar LaTeX
1728  reports the error on one line, but the actual
1729  error is earlier.
1730  This is not unlike forgetting a closing brace in a program: You'll get
1731  an error, but only later.
1732 \end_layout
1733
1734 \end_inset
1735
1736
1737 \end_layout
1738
1739 \begin_layout Standard
1740 Some folks also like to look at the log file directly: It is available from
1741  
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 Document\SpecialChar menuseparator
1747 LaTeX
1748 \begin_inset space ~
1749 \end_inset
1750
1751 Log
1752 \end_layout
1753
1754 \end_inset
1755
1756 .
1757  There are some fairly common error messages and warnings.
1758  We'll cover those here.
1759  You should look at a good \SpecialChar LaTeX
1760  book for a complete listing.
1761 \end_layout
1762
1763 \begin_layout Itemize
1764 \begin_inset Flex Code
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 LaTeX Warning
1769 \end_layout
1770
1771 \end_inset
1772
1773
1774 \begin_inset Newline newline
1775 \end_inset
1776
1777 Anything beginning with these words is a warning message for the purpose
1778  of 
1779 \begin_inset Quotes eld
1780 \end_inset
1781
1782 debugging
1783 \begin_inset Quotes erd
1784 \end_inset
1785
1786  the \SpecialChar LaTeX
1787  code itself.
1788  You'll get messages like this if you added or changed cross-references
1789  or bibliography entries, in which case, \SpecialChar LaTeX
1790  is trying to tell you that you
1791  need to make another run.
1792  You can by-and-large ignore these.
1793 \end_layout
1794
1795 \begin_layout Itemize
1796 \begin_inset Flex Code
1797 status collapsed
1798
1799 \begin_layout Plain Layout
1800 LaTeX Font Warning
1801 \end_layout
1802
1803 \end_inset
1804
1805
1806 \begin_inset Newline newline
1807 \end_inset
1808
1809 Another warning message, this time about fonts which \SpecialChar LaTeX
1810  couldn't find.
1811  The rest of the message will often say something about a replacement font
1812  that \SpecialChar LaTeX
1813  used.
1814  You can safely ignore these, too.
1815 \end_layout
1816
1817 \begin_layout Itemize
1818 \begin_inset Flex Code
1819 status collapsed
1820
1821 \begin_layout Plain Layout
1822 Overfull 
1823 \backslash
1824 hbox
1825 \end_layout
1826
1827 \end_inset
1828
1829
1830 \begin_inset Newline newline
1831 \end_inset
1832
1833 \SpecialChar LaTeX
1834  absolutely 
1835 \emph on
1836 loves
1837 \emph default
1838  to spew these out.
1839  It seems to generate at least one of these messages for just about any
1840  document you write.
1841  They are warnings about lines that were too long and run past the right
1842  margin.
1843  This happens if \SpecialChar LaTeX
1844  does not find a reasonable way to break the lines (notoriously
1845  often with typewriter font, since this does not allow for automatic break
1846  points).
1847  In many cases, this is unnoticeable in the final output.
1848  (It can be just a point or two.) Sometimes, however, the lines run rather
1849  visibly into the margin; something you will not want to have in your final
1850  print.
1851  
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855 There are several global ways to try to minimize the overfull lines.
1856  Clicking 
1857 \family sans
1858 Enable micro-typographic extensions
1859 \family default
1860  in 
1861 \family sans
1862 Document\SpecialChar menuseparator
1863 Settings\SpecialChar menuseparator
1864 Fonts
1865 \family default
1866  might already improve things a lot.
1867  Furthermore, \SpecialChar LaTeX
1868  code such as the following in 
1869 \family sans
1870 Document\SpecialChar menuseparator
1871 Settings\SpecialChar menuseparator
1872 Preamble
1873 \family default
1874  usually reduces the overfull lines drastically (we use this in the preamble
1875  of this document):
1876 \end_layout
1877
1878 \begin_deeper
1879 \begin_layout LyX-Code
1880
1881 \backslash
1882 tolerance 1414
1883 \begin_inset Newline newline
1884 \end_inset
1885
1886
1887 \backslash
1888 hbadness 1414
1889 \begin_inset Newline newline
1890 \end_inset
1891
1892
1893 \backslash
1894 emergencystretch 1.5em
1895 \begin_inset Newline newline
1896 \end_inset
1897
1898
1899 \backslash
1900 hfuzz 0.3pt
1901 \end_layout
1902
1903 \begin_layout Standard
1904 In some cases, however, you eventually have to rewrite the text to get the
1905  line breaking right.
1906 \begin_inset Foot
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 For more information, see 
1911 \begin_inset Flex URL
1912 status open
1913
1914 \begin_layout Plain Layout
1915
1916 http://www.tex.ac.uk/FAQ-overfull.html
1917 \end_layout
1918
1919 \end_inset
1920
1921
1922 \end_layout
1923
1924 \end_inset
1925
1926
1927 \end_layout
1928
1929 \begin_layout Standard
1930 In any case, you should check the respective lines, at least for the final
1931  version of your document.
1932  Your eyes will tell you if there's a problem with something that's too
1933  wide.
1934 \begin_inset Foot
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938 You can also enable the `draft' option in 
1939 \begin_inset Flex Noun
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 Document\SpecialChar menuseparator
1944 Settings
1945 \end_layout
1946
1947 \end_inset
1948
1949 , and then \SpecialChar LaTeX
1950  will draw a black box in the margin of lines that are overfull.
1951 \end_layout
1952
1953 \end_inset
1954
1955  
1956 \end_layout
1957
1958 \end_deeper
1959 \begin_layout Itemize
1960 \begin_inset Flex Code
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 Underfull 
1965 \backslash
1966 hbox
1967 \end_layout
1968
1969 \end_inset
1970
1971
1972 \begin_inset Newline newline
1973 \end_inset
1974
1975 Not quite as common as its cousin.
1976  This happens again if \SpecialChar LaTeX
1977  does not find a reasonable break point and consequently
1978  generates too loose lines.
1979  As with the overfull lines, you should check if this is a visible problem.
1980 \end_layout
1981
1982 \begin_layout Itemize
1983 \begin_inset Flex Code
1984 status collapsed
1985
1986 \begin_layout Plain Layout
1987 Overfull 
1988 \backslash
1989 vbox
1990 \end_layout
1991
1992 \end_inset
1993
1994  and 
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 Underfull 
2000 \backslash
2001 vbox
2002 \end_layout
2003
2004 \end_inset
2005
2006
2007 \begin_inset Newline newline
2008 \end_inset
2009
2010 Warnings about troubles breaking the page.
2011  Once again, just look at the output.
2012  Your eyes will tell you where something has gone wrong.
2013 \end_layout
2014
2015 \begin_layout Itemize
2016 \begin_inset Flex Code
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 LaTeX Error: File 
2021 \begin_inset Quotes els
2022 \end_inset
2023
2024 Xxxx
2025 \begin_inset Quotes ers
2026 \end_inset
2027
2028  not found
2029 \end_layout
2030
2031 \end_inset
2032
2033
2034 \begin_inset Newline newline
2035 \end_inset
2036
2037 The file 
2038 \begin_inset Quotes eld
2039 \end_inset
2040
2041 Xxxx
2042 \begin_inset Quotes erd
2043 \end_inset
2044
2045  isn't installed on this system.
2046  This usually appears because some package your document needs isn't installed.
2047  If you didn't touch the preamble or didn't use the 
2048 \begin_inset Flex Code
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052
2053 \backslash
2054 usepackage{}
2055 \end_layout
2056
2057 \end_inset
2058
2059  command, then one of the packages \SpecialChar LyX
2060  tried to load is missing.
2061  Use 
2062 \begin_inset Flex Noun
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 Help\SpecialChar menuseparator
2067 \SpecialChar LaTeX
2068  Configuration
2069 \end_layout
2070
2071 \end_inset
2072
2073  to get a list of packages that \SpecialChar LyX
2074  knows about.
2075  This file is updated whenever you reconfigure \SpecialChar LyX
2076  (using 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 Tools\SpecialChar menuseparator
2082 Reconfigure
2083 \end_layout
2084
2085 \end_inset
2086
2087 ) and tells you which packages have been detected and what they do.
2088 \begin_inset Newline newline
2089 \end_inset
2090
2091 If you did use the 
2092 \begin_inset Flex Code
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096
2097 \backslash
2098 usepackage{}
2099 \end_layout
2100
2101 \end_inset
2102
2103  command and the package in question isn't installed, then you'll need to
2104  install it yourself.
2105 \end_layout
2106
2107 \begin_layout Itemize
2108 \begin_inset Flex Code
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112 LaTeX Error: Unknown option
2113 \end_layout
2114
2115 \end_inset
2116
2117
2118 \begin_inset Newline newline
2119 \end_inset
2120
2121 Error messages beginning with this are trying to tell you that you specified
2122  a bad or undefined option to a package.
2123  Check the package's documentation.
2124 \end_layout
2125
2126 \begin_layout Itemize
2127 \begin_inset Flex Code
2128 status collapsed
2129
2130 \begin_layout Plain Layout
2131 Undefined control sequence
2132 \end_layout
2133
2134 \end_inset
2135
2136
2137 \begin_inset Newline newline
2138 \end_inset
2139
2140 If you've inserted \SpecialChar LaTeX
2141  code into your document, but made a typo, you'll get
2142  one of these.
2143  You may have forgotten to load a package.
2144  In any case, this error message usually means that you used an undefined
2145  command.
2146  
2147 \end_layout
2148
2149 \begin_layout Standard
2150 There are other error and warning messages.
2151  Some are self-explanatory.
2152  These are usually \SpecialChar LaTeX
2153  messages.
2154  Others are downright cryptic.
2155  These are usually \SpecialChar TeX
2156  error messages, and we really have 
2157 \emph on
2158 no clue
2159 \emph default
2160  what they mean or how to decipher them.
2161  No-one does.
2162 \end_layout
2163
2164 \begin_layout Standard
2165 There's a general sequence you should follow if you get error messages:
2166 \end_layout
2167
2168 \begin_layout Enumerate
2169 Look at the \SpecialChar LaTeX
2170  code you inserted for typos.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If there are no typos, check that you used the command(s) correctly.
2175 \end_layout
2176
2177 \begin_layout Enumerate
2178 If you get a bunch of error boxes piled up at the very top of the document—and
2179  especially if you see a 
2180 \begin_inset Quotes eld
2181 \end_inset
2182
2183
2184 \begin_inset Flex Code
2185 status collapsed
2186
2187 \begin_layout Plain Layout
2188 Missing 
2189 \backslash
2190 begin{document}
2191 \end_layout
2192
2193 \end_inset
2194
2195
2196 \begin_inset Quotes erd
2197 \end_inset
2198
2199  error—it means that there are errors in the preamble.
2200  Start debugging your preamble.
2201 \end_layout
2202
2203 \begin_layout Enumerate
2204 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2205  code to the
2206  document, the first suspect is your \SpecialChar LaTeX
2207  distribution itself.
2208  Check for missing packages and install them.
2209 \end_layout
2210
2211 \begin_layout Enumerate
2212 Okay, so there are no missing packages.
2213  Did you use any of the fine-tuning options in \SpecialChar LyX
2214 ? Specifically, did you 
2215 \emph on
2216 misuse
2217 \emph default
2218  any of them, like trying to manually insert lots of 
2219 \begin_inset Flex Code
2220 status collapsed
2221
2222 \begin_layout Plain Layout
2223
2224 \change_deleted 177693 1654669036
2225 Protected
2226 \change_inserted 177693 1654669038
2227 Non-Breaking
2228 \change_unchanged
2229
2230 \begin_inset space ~
2231 \end_inset
2232
2233
2234 \change_deleted 177693 1654669040
2235 Blanks
2236 \change_inserted 177693 1654669041
2237 Spaces
2238 \change_unchanged
2239
2240 \end_layout
2241
2242 \end_inset
2243
2244
2245 \begin_inset Flex Code
2246 status collapsed
2247
2248 \begin_layout Plain Layout
2249 Linebreaks
2250 \end_layout
2251
2252 \end_inset
2253
2254 , or 
2255 \begin_inset Flex Code
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 Pagebreaks
2260 \end_layout
2261
2262 \end_inset
2263
2264 ? Did you try to kludge something together with these instead of using the
2265  appropriate paragraph environment?
2266 \end_layout
2267
2268 \begin_layout Enumerate
2269 All right, you didn't use any of the fine-tuning options, you played by
2270  the rules.
2271  Did you try to pull a fancy maneuver? Did you do something funky inside
2272  a table or an equation, like inserting a graphic into a table cell?
2273 \end_layout
2274
2275 \begin_layout Enumerate
2276 Do you have long sections of text where \SpecialChar LaTeX
2277  cannot find a place to break a
2278  line? By default, \SpecialChar LaTeX
2279  is rather strict about how much extra inter-word spacing
2280  it will add in order to break a line.
2281  Preferably, you should rework the paragraph to avoid the problem.
2282 \end_layout
2283
2284 \begin_layout Enumerate
2285 Did you go overboard with the nesting? \SpecialChar LyX
2286  (currently) doesn't check to make
2287  sure you're in the limits for nesting environments.
2288  If you nested a bunch of environments to the 
2289 \begin_inset Formula $17^{\mathrm{th}}$
2290 \end_inset
2291
2292  level, that's the problem.
2293  (The limit in \SpecialChar LaTeX
2294  is five.)
2295 \end_layout
2296
2297 \begin_layout Enumerate
2298 Okay, you didn't get any error messages, but your output looks awful.
2299  If you have a table or figure that's too wide or long for the page, you
2300  need to:
2301 \end_layout
2302
2303 \begin_deeper
2304 \begin_layout Enumerate
2305 rescale the figure so it fits.
2306 \end_layout
2307
2308 \begin_layout Enumerate
2309 trim down the table so it fits.
2310 \end_layout
2311
2312 \end_deeper
2313 \begin_layout Enumerate
2314 If something else is wrong with the output, and you didn't try to pull anything
2315  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2316 \end_layout
2317
2318 \begin_layout Standard
2319 If all this doesn't help—well, then 
2320 \emph on
2321 perhaps
2322 \emph default
2323  you might have found a bug in \SpecialChar LyX
2324 \SpecialChar ldots
2325 .
2326 \end_layout
2327
2328 \begin_layout Chapter
2329
2330 \change_inserted 564990737 1670439508
2331 Document classes
2332 \end_layout
2333
2334 \begin_layout Section
2335
2336 \change_inserted 564990737 1670439533
2337 \begin_inset CommandInset label
2338 LatexCommand label
2339 name "sec:Collections"
2340
2341 \end_inset
2342
2343 Collections
2344 \end_layout
2345
2346 \begin_layout Subsection
2347 AMS \SpecialChar LaTeX
2348
2349 \end_layout
2350
2351 \begin_layout Standard
2352 by 
2353 \noun on
2354 David Johnson
2355 \noun default
2356 ; updated by 
2357 \noun on
2358 Richard Kimberly Heck
2359 \end_layout
2360
2361 \begin_layout Standard
2362 \begin_inset VSpace bigskip
2363 \end_inset
2364
2365
2366 \end_layout
2367
2368 \begin_layout Standard
2369 \noindent
2370 The AMS \SpecialChar LaTeX
2371  layouts are set up to conform to suggested styles for mathematical
2372  papers to be submitted to American Mathematical Society publications.
2373  The layouts are not tailored to a specific journal, but easily can be.
2374  You should refer to the AMS documentation for specific instructions for
2375  each journal (usually it will entail only changing a single line in the
2376  \SpecialChar TeX
2377  output).
2378  That documentation is available on the Web at 
2379 \begin_inset Flex URL
2380 status open
2381
2382 \begin_layout Plain Layout
2383
2384 http://www.ams.org
2385 \end_layout
2386
2387 \end_inset
2388
2389  or by ftp at 
2390 \begin_inset Flex URL
2391 status open
2392
2393 \begin_layout Plain Layout
2394
2395 ftp://ftp.ams.org/pub/tex/amslatex/
2396 \end_layout
2397
2398 \end_inset
2399
2400 .
2401  These layouts are appropriate, and useful, for any mathematical writing.
2402  
2403 \end_layout
2404
2405 \begin_layout Standard
2406 There are two basic AMS \SpecialChar LaTeX
2407  layouts: 
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsart: The standard AMS article format.
2412 \end_layout
2413
2414 \begin_layout Itemize
2415 amsbook: the standard AMS book (really, monograph) format.
2416  
2417 \end_layout
2418
2419 \begin_layout Standard
2420 The layouts themselves contain only the minimum necessary to use the AMS
2421  classes.
2422  They do not, in particular, contain any of the `theorem' environments used
2423  for setting theorems, lemmas, and the like.
2424  These are contained, instead, in the 
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 Theorems (AMS)
2430 \end_layout
2431
2432 \end_inset
2433
2434  module, which is loaded by default when you select one of the AMS classes.
2435  (It can also be used with other classes and can be removed, if you would
2436  rather use something else.) Less commonly used environments are in the 
2437 \begin_inset Flex Code
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441 Theorems (AMS-Extended)
2442 \end_layout
2443
2444 \end_inset
2445
2446  module, which must be loaded manually.
2447 \end_layout
2448
2449 \begin_layout Standard
2450 By default, theorems and the like are numbered consecutively throughout
2451  the document, but this may be modified by loading the module 
2452 \begin_inset Flex Code
2453 status collapsed
2454
2455 \begin_layout Plain Layout
2456 Theorems (Order by Section)
2457 \end_layout
2458
2459 \end_inset
2460
2461  or, if you are using 
2462 \begin_inset Flex Code
2463 status collapsed
2464
2465 \begin_layout Plain Layout
2466 book (AMS)
2467 \end_layout
2468
2469 \end_inset
2470
2471 , the module 
2472 \begin_inset Flex Code
2473 status collapsed
2474
2475 \begin_layout Plain Layout
2476 Theorems (Order by Chapter)
2477 \end_layout
2478
2479 \end_inset
2480
2481 .
2482  These will number the results as 
2483 \begin_inset Formula $n.m$
2484 \end_inset
2485
2486 , where the first number refers to the section (or chapter) and the second
2487  refers to the total number of results so far in that section (or chapter).
2488  Many environments are also available unnumbered.
2489  These are indicated by an asterisk at the end.
2490  If you happen to want 
2491 \emph on
2492 only
2493 \emph default
2494  unnumbered results, the module 
2495 \begin_inset Flex Code
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 Theorems (Starred)
2500 \end_layout
2501
2502 \end_inset
2503
2504  provides that option.
2505 \end_layout
2506
2507 \begin_layout Standard
2508 Note that these modules do not 
2509 \emph on
2510 have
2511 \emph default
2512  to be used with the AMS classes.
2513  It is perfectly possible to use the 
2514 \begin_inset Flex Code
2515 status collapsed
2516
2517 \begin_layout Plain Layout
2518 Theorems (AMS)
2519 \end_layout
2520
2521 \end_inset
2522
2523  module, and the others mentioned, with other classes, such as 
2524 \begin_inset Flex Code
2525 status collapsed
2526
2527 \begin_layout Plain Layout
2528 article
2529 \end_layout
2530
2531 \end_inset
2532
2533
2534 \begin_inset Flex Code
2535 status collapsed
2536
2537 \begin_layout Plain Layout
2538 report
2539 \end_layout
2540
2541 \end_inset
2542
2543
2544 \begin_inset Flex Code
2545 status collapsed
2546
2547 \begin_layout Plain Layout
2548 book (KOMA-script)
2549 \end_layout
2550
2551 \end_inset
2552
2553 , and so forth.
2554 \end_layout
2555
2556 \begin_layout Subsubsection
2557 What these layouts provide
2558 \end_layout
2559
2560 \begin_layout Standard
2561 There is a long list of included environments provided by these layouts.
2562  In AMS-\SpecialChar LaTeX
2563 , there is, in fact, an opportunity to define an unlimited variety
2564  of `theorem' environments.
2565  However, the AMS recommends the environments that are available in \SpecialChar LyX
2566 .
2567  
2568 \end_layout
2569
2570 \begin_layout Standard
2571 The following environments—as well as the standard environments, such as
2572  
2573 \begin_inset Flex Noun
2574 status collapsed
2575
2576 \begin_layout Plain Layout
2577 section
2578 \end_layout
2579
2580 \end_inset
2581
2582
2583 \begin_inset Flex Noun
2584 status collapsed
2585
2586 \begin_layout Plain Layout
2587 bibliography
2588 \end_layout
2589
2590 \end_inset
2591
2592
2593 \begin_inset Flex Noun
2594 status collapsed
2595
2596 \begin_layout Plain Layout
2597 title
2598 \end_layout
2599
2600 \end_inset
2601
2602
2603 \begin_inset Flex Noun
2604 status collapsed
2605
2606 \begin_layout Plain Layout
2607 author
2608 \end_layout
2609
2610 \end_inset
2611
2612 , and 
2613 \begin_inset Flex Noun
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617 date
2618 \end_layout
2619
2620 \end_inset
2621
2622 —are provided by 
2623 \begin_inset Flex Code
2624 status collapsed
2625
2626 \begin_layout Plain Layout
2627 article (AMS)
2628 \end_layout
2629
2630 \end_inset
2631
2632  and 
2633 \begin_inset Flex Code
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637 book (AMS)
2638 \end_layout
2639
2640 \end_inset
2641
2642 :
2643 \end_layout
2644
2645 \begin_layout Description
2646 Address This should be the author's permanent address.
2647 \end_layout
2648
2649 \begin_layout Description
2650 Current
2651 \begin_inset space ~
2652 \end_inset
2653
2654 Address This should be the author's temporary address at the time of submission,
2655  if different from the Address.
2656 \end_layout
2657
2658 \begin_layout Description
2659 Email Author's e-mail address
2660 \end_layout
2661
2662 \begin_layout Description
2663 URL Author's Web address, if desired.
2664 \end_layout
2665
2666 \begin_layout Description
2667 Keywords Key words or phrases used to identify specific topics discussed
2668  in the paper.
2669 \end_layout
2670
2671 \begin_layout Description
2672 Subjectclass These refer to the AMS Subject Classifications, published and
2673  described in 
2674 \emph on
2675 Mathematical Reviews
2676 \emph default
2677 .
2678  These are also available online at the AMS cites listed above.
2679 \end_layout
2680
2681 \begin_layout Description
2682 Thanks
2683 \end_layout
2684
2685 \begin_layout Description
2686 Dedicatory
2687 \end_layout
2688
2689 \begin_layout Description
2690 Translator
2691 \end_layout
2692
2693 \begin_layout Standard
2694 The following environments are provided by both the 
2695 \begin_inset Flex Code
2696 status collapsed
2697
2698 \begin_layout Plain Layout
2699 Theorems
2700 \end_layout
2701
2702 \end_inset
2703
2704  and 
2705 \begin_inset Flex Code
2706 status collapsed
2707
2708 \begin_layout Plain Layout
2709 Theorems (AMS)
2710 \end_layout
2711
2712 \end_inset
2713
2714  modules, in the latter case in both starred (unnumbered) and unstarred
2715  (numbered) versions.
2716  These same environments are provided only in the starred versions by the
2717  
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 Theorems (Starred)
2723 \end_layout
2724
2725 \end_inset
2726
2727  module:
2728 \end_layout
2729
2730 \begin_layout Theorem
2731 This is typically used for the statements of major results.
2732  
2733 \end_layout
2734
2735 \begin_layout Corollary*
2736 This is used for statements which follow fairly directly from previous statement
2737 s.
2738  Again, these can be major results.
2739  
2740 \end_layout
2741
2742 \begin_layout Lemma
2743 These are smaller results needed to prove other statements.
2744 \end_layout
2745
2746 \begin_layout Proposition
2747 These are less major results which (hopefully) add to the general theory
2748  being discussed.
2749 \end_layout
2750
2751 \begin_layout Conjecture
2752 These are statements provided without justification, which the author does
2753  not know how to prove, but which seem to be true (to the author, at least).
2754 \end_layout
2755
2756 \begin_layout Definition*
2757 Guess what this is for.
2758  The font is different for this environment than for the previous ones.
2759  
2760 \end_layout
2761
2762 \begin_layout Example*
2763 Used for examples illustrating proven results.
2764 \end_layout
2765
2766 \begin_layout Problem
2767 It's not really known what this is for.
2768  You should figure it out.
2769 \end_layout
2770
2771 \begin_layout Exercise*
2772 Write a description for this one.
2773 \end_layout
2774
2775 \begin_layout Remark
2776 This environment is also a type of theorem, usually a lesser sort of observation.
2777 \end_layout
2778
2779 \begin_layout Claim*
2780 Often used in the course of giving a proof of a larger result.
2781 \end_layout
2782
2783 \begin_layout Case
2784 Generally, these are used to break up long arguments, using specific instances
2785  of some condition.
2786  
2787 \end_layout
2788
2789 \begin_layout Case
2790 The numbering scheme for cases is on its own, not together with other numbered
2791  statements.
2792  
2793 \end_layout
2794
2795 \begin_layout Proof
2796 At the end of this environment, a QED symbol (usually a square, but it can
2797  vary with different styles) is placed.
2798  If you want to have other environments within this one—for example, Case
2799  environments—and have the QED symbol appear only after them, then the other
2800  environments need to be nested within the proof environment.
2801  See the section 
2802 \emph on
2803 Nesting Environments
2804 \emph default
2805  of the 
2806 \emph on
2807 User's Guide
2808 \emph default
2809  for information on nesting.
2810 \end_layout
2811
2812 \begin_layout Standard
2813 And these environments are provided by 
2814 \begin_inset Flex Code
2815 status collapsed
2816
2817 \begin_layout Plain Layout
2818 Theorems (AMS-Extended)
2819 \end_layout
2820
2821 \end_inset
2822
2823 :
2824 \end_layout
2825
2826 \begin_layout Criterion*
2827 A required condition.
2828 \end_layout
2829
2830 \begin_layout Algorithm*
2831 A general procedure to be used.
2832 \end_layout
2833
2834 \begin_layout Axiom*
2835 This is a property or statement taken as true within the system being discussed.
2836 \end_layout
2837
2838 \begin_layout Condition*
2839 Sometimes used to state a condition assumed within the present context of
2840  discussion.
2841 \end_layout
2842
2843 \begin_layout Note*
2844 Similar to a Remark.
2845 \end_layout
2846
2847 \begin_layout Notation*
2848 Used for the explanation of, yes, notation.
2849 \end_layout
2850
2851 \begin_layout Summary
2852 Do we really need to tell you? 
2853 \end_layout
2854
2855 \begin_layout Acknowledgement*
2856 Acknowledgement.
2857 \end_layout
2858
2859 \begin_layout Conclusion*
2860 Sometimes used at the end of a long train of argument.
2861 \end_layout
2862
2863 \begin_layout Fact
2864 Used in a way similar to Proposition, though perhaps lower on the scale.
2865 \end_layout
2866
2867 \begin_layout Standard
2868 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2869  and AMS fonts
2870  packages.
2871  They need to be available on your system in order to use these environments.
2872 \end_layout
2873
2874 \begin_layout Subsection
2875
2876 \change_inserted 564990737 1671383236
2877
2878 \lang american
2879 \begin_inset CommandInset label
2880 LatexCommand label
2881 name "subsec:Extra-font-sizes"
2882
2883 \end_inset
2884
2885 Extra font sizes
2886 \end_layout
2887
2888 \begin_layout Standard
2889
2890 \change_inserted 564990737 1671383236
2891
2892 \lang american
2893 The “Extra font sizes” collection provides the document classes 
2894 \family sans
2895 article
2896 \begin_inset space \thinspace{}
2897 \end_inset
2898
2899 (with extra font sizes)
2900 \family default
2901
2902 \family sans
2903 book
2904 \begin_inset space \thinspace{}
2905 \end_inset
2906
2907 (with extra font sizes)
2908 \family default
2909
2910 \family sans
2911 letter
2912 \begin_inset space \thinspace{}
2913 \end_inset
2914
2915 (with extra font sizes)
2916 \family default
2917  and 
2918 \family sans
2919 report
2920 \begin_inset space \thinspace{}
2921 \end_inset
2922
2923 (with extra font sizes)
2924 \family default
2925  which use the 
2926 \family typewriter
2927 article.cls
2928 \family default
2929
2930 \family typewriter
2931 book.cls
2932 \family default
2933
2934 \family typewriter
2935 letter.cls
2936 \family default
2937  and 
2938 \family typewriter
2939 report.cls
2940 \family default
2941  document classes respectively but offer the additional 
2942 \family sans
2943 \bar under
2944 B
2945 \bar default
2946 ase
2947 \begin_inset space ~
2948 \end_inset
2949
2950 Size
2951 \family default
2952  options 8, 9, 14, 17 and 20 in the 
2953 \family sans
2954 \bar under
2955 D
2956 \bar default
2957 ocument\SpecialChar menuseparator
2958
2959 \bar under
2960 S
2961 \bar default
2962 ettings\SpecialChar menuseparator
2963 Fonts
2964 \family default
2965  dialog.
2966 \end_layout
2967
2968 \begin_layout Subsection
2969
2970 \change_inserted 564990737 1671383236
2971
2972 \lang american
2973 Hebrew
2974 \end_layout
2975
2976 \begin_layout Standard
2977
2978 \change_inserted 564990737 1671383236
2979
2980 \lang american
2981 The document classes 
2982 \family sans
2983 article
2984 \begin_inset space \thinspace{}
2985 \end_inset
2986
2987 (Hebrew)
2988 \family default
2989  and 
2990 \family sans
2991 letter
2992 \begin_inset space \thinspace{}
2993 \end_inset
2994
2995 (Hebrew)
2996 \family default
2997  use the 
2998 \family typewriter
2999 article.cl
3000 \family sans
3001 s
3002 \family default
3003  and 
3004 \family typewriter
3005 letter.cls
3006 \family default
3007  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3008 .
3009 \end_layout
3010
3011 \begin_layout Subsection
3012
3013 \change_inserted 564990737 1671383236
3014
3015 \lang american
3016 \begin_inset CommandInset label
3017 LatexCommand label
3018 name "subsec:Japanese"
3019
3020 \end_inset
3021
3022 Japanese
3023 \end_layout
3024
3025 \begin_layout Standard
3026
3027 \change_inserted 564990737 1671383236
3028
3029 \lang american
3030 The document classes 
3031 \family sans
3032 article
3033 \begin_inset space \thinspace{}
3034 \end_inset
3035
3036 (Japanese JS Class)
3037 \family default
3038 ,
3039 \family sans
3040  article
3041 \begin_inset space \thinspace{}
3042 \end_inset
3043
3044 (Japanese Standard Class Vertical Writing)
3045 \family default
3046
3047 \family sans
3048 article
3049 \begin_inset space \thinspace{}
3050 \end_inset
3051
3052 (Japanese Standard Class)
3053 \family default
3054
3055 \family sans
3056 book
3057 \begin_inset space \thinspace{}
3058 \end_inset
3059
3060 (Japanese JS Class)
3061 \family default
3062 ,
3063 \family sans
3064  book
3065 \begin_inset space \thinspace{}
3066 \end_inset
3067
3068 (Japanese Standard Class Vertical Writing)
3069 \family default
3070
3071 \family sans
3072 book
3073 \begin_inset space \thinspace{}
3074 \end_inset
3075
3076 (Japanese Standard Class)
3077 \family default
3078
3079 \family sans
3080 report
3081 \begin_inset space \thinspace{}
3082 \end_inset
3083
3084 (Japanese Vertical Writing)
3085 \family default
3086  and 
3087 \family sans
3088 report
3089 \begin_inset space \thinspace{}
3090 \end_inset
3091
3092 (Japanese Standard Class)
3093 \family default
3094  provide document classes for the Japanese language.
3095 \end_layout
3096
3097 \begin_layout Subsection
3098 Koma-Script
3099 \end_layout
3100
3101 \begin_layout Standard
3102 by 
3103 \noun on
3104 Bernd Rellermeyer
3105 \end_layout
3106
3107 \begin_layout Subsubsection
3108 Overview
3109 \end_layout
3110
3111 \begin_layout Standard
3112 The \SpecialChar LyX
3113  document classes 
3114 \emph on
3115 article (koma-script)
3116 \emph default
3117
3118 \emph on
3119 report (koma-script)
3120 \emph default
3121
3122 \emph on
3123 book
3124 \emph default
3125  
3126 \emph on
3127 (koma-script)
3128 \emph default
3129 , and 
3130 \emph on
3131 letter
3132 \emph default
3133  
3134 \emph on
3135 (koma-script)
3136 \emph default
3137  correspond to the \SpecialChar LaTeX
3138  document classes 
3139 \family typewriter
3140 scrartcl.cls
3141 \family default
3142
3143 \family typewriter
3144 scrreprt.cls
3145 \family default
3146
3147 \family typewriter
3148 scrbook.cls
3149 \family default
3150 , and 
3151 \family typewriter
3152 scrlettr.cls
3153 \family default
3154 , resp.
3155 \begin_inset space ~
3156 \end_inset
3157
3158 of the Koma-Script family.
3159  They are replacements for the standard document classes 
3160 \family typewriter
3161 article.cls
3162 \family default
3163
3164 \family typewriter
3165 report.cls
3166 \family default
3167
3168 \family typewriter
3169 book.cls
3170 \family default
3171  and 
3172 \family typewriter
3173 letter.cls
3174 \family default
3175 , resp., and fit better to European typography conventions in a number of
3176  points.
3177 \end_layout
3178
3179 \begin_layout Itemize
3180 Standard character size is 11pt in 
3181 \emph on
3182 article (koma-script)
3183 \emph default
3184
3185 \emph on
3186 report (koma-script)
3187 \emph default
3188 , and 
3189 \emph on
3190 book (koma-script)
3191 \emph default
3192 , and 12pt in 
3193 \emph on
3194 letter (koma-script)
3195 \emph default
3196 .
3197 \end_layout
3198
3199 \begin_layout Itemize
3200 Headings, labels of the description environment, and a number of elements
3201  of the 
3202 \emph on
3203 letter (koma-script)
3204 \emph default
3205  document class are set in a bold sans serif font.
3206 \begin_inset Foot
3207 status collapsed
3208
3209 \begin_layout Plain Layout
3210 There is a big difference between the bold sans serif old cm fonts and new
3211  ec fonts, especially in the appearance of headings.
3212  In comparison, the ec bold sans serif fonts look a bit thin.
3213  Here the \SpecialChar LaTeX
3214  package 
3215 \family typewriter
3216 cmsd.sty by
3217 \family default
3218  
3219 \shape smallcaps
3220 Walter Schmidt
3221 \shape default
3222  helps to produce the 
3223 \begin_inset Quotes eld
3224 \end_inset
3225
3226 usual
3227 \begin_inset Quotes erd
3228 \end_inset
3229
3230  appearance when using the ec fonts.
3231 \end_layout
3232
3233 \end_inset
3234
3235  The numbering of chapter headings is made in the same way as the numbering
3236  of section headings, that is without the extra line 
3237 \begin_inset Quotes eld
3238 \end_inset
3239
3240 Chapter\SpecialChar ldots
3241
3242 \begin_inset Quotes erd
3243 \end_inset
3244
3245 .
3246  In addition, the appearance of the headings can be modified by using a
3247  number of options (in \SpecialChar LyX
3248  to be entered in the field 
3249 \family sans
3250 Extra
3251 \begin_inset space ~
3252 \end_inset
3253
3254 Options
3255 \family default
3256  of the dialog 
3257 \family sans
3258 Layout\SpecialChar menuseparator
3259 Document
3260 \family default
3261 ).
3262  
3263 \end_layout
3264
3265 \begin_layout Itemize
3266 The main means in the Koma-Script document classes to design the type area
3267  are the options 
3268 \family sans
3269 BCOR
3270 \family default
3271  and 
3272 \family sans
3273 DIV
3274 \family default
3275  (in \SpecialChar LyX
3276  to be entered in the extra class options field in the dialog 
3277 \family sans
3278 Document\SpecialChar menuseparator
3279 Settings
3280 \family default
3281 ).
3282  They make a clearer modification of page margins possible as do the options
3283  of the dialog 
3284 \family sans
3285 Document\SpecialChar menuseparator
3286 Settings
3287 \family default
3288 .
3289  
3290 \end_layout
3291
3292 \begin_layout Itemize
3293 The \SpecialChar LaTeX
3294  document classes of the Koma-Script family define a number of additional
3295  commands.
3296  Those part of it which makes sense in \SpecialChar LyX
3297  is implemented in corresponding
3298  paragraph types.
3299 \end_layout
3300
3301 \begin_layout Standard
3302 Detailed descriptions of the \SpecialChar LaTeX
3303  document classes of the Koma-Script family
3304  can be found in the Koma-Script documentation 
3305 \emph on
3306 scrguide
3307 \emph default
3308  (German) and 
3309 \emph on
3310 scrguien
3311 \emph default
3312  (English).
3313 \end_layout
3314
3315 \begin_layout Subsubsection
3316 article (koma-script), report (koma-script), and book (koma-script)
3317 \end_layout
3318
3319 \begin_layout Standard
3320 The document classes 
3321 \emph on
3322 article (koma-script)
3323 \emph default
3324
3325 \emph on
3326 report (koma-script)
3327 \emph default
3328 , and 
3329 \emph on
3330 book
3331 \emph default
3332  
3333 \emph on
3334 (koma-script)
3335 \emph default
3336  are implemented in the layout files 
3337 \family typewriter
3338 scrartcl.layout
3339 \family default
3340
3341 \family typewriter
3342 scrreprt.layout
3343 \family default
3344 , and 
3345 \family typewriter
3346 scrbook.layout
3347 \family default
3348 , resp.
3349  They contain all the paragraph types of the corresponding standard document
3350  classes 
3351 \emph on
3352 article
3353 \emph default
3354
3355 \emph on
3356 report
3357 \emph default
3358 , and 
3359 \emph on
3360 book
3361 \emph default
3362 , resp., partly modified, with the exception of the \SpecialChar LyX
3363  specific 
3364 \family sans
3365 List
3366 \family default
3367 -type, which is replaced by the new 
3368 \family sans
3369 Labeling
3370 \family default
3371 -type having the same functionality.
3372  Beside the 
3373 \family sans
3374 Labeling
3375 \family default
3376 -Type there is a number of new paragraph types added.
3377  They are 
3378 \emph on
3379 not
3380 \emph default
3381  part of 
3382 \emph on
3383 letter (koma-script)
3384 \emph default
3385 .
3386 \end_layout
3387
3388 \begin_layout Itemize
3389
3390 \family sans
3391 Addpart, Addchap
3392 \family default
3393
3394 \family sans
3395 Addsec
3396 \family default
3397 : are equivalents to 
3398 \family sans
3399 Part*, Chapter*
3400 \family default
3401  and 
3402 \family sans
3403 Section*
3404 \family default
3405 , resp., additionally inserting an entry in the table of contents.
3406  
3407 \family sans
3408 Addpart
3409 \family default
3410  and 
3411 \family sans
3412 Addchap
3413 \family default
3414  are not contained in 
3415 \emph on
3416 article (koma-script)
3417 \emph default
3418 .
3419 \end_layout
3420
3421 \begin_layout Itemize
3422
3423 \family sans
3424 Addchap*
3425 \family default
3426
3427 \family sans
3428 Addsec*
3429 \family default
3430 : behave exactly as 
3431 \family sans
3432 Addchap
3433 \family default
3434  and 
3435 \family sans
3436 Addsec
3437 \family default
3438 , resp., additionally clearing running heads.
3439  
3440 \family sans
3441 Addchap*
3442 \family default
3443  is not contained in 
3444 \emph on
3445 article (koma-script)
3446 \emph default
3447 .
3448 \begin_inset Foot
3449 status collapsed
3450
3451 \begin_layout Plain Layout
3452 There is also an 
3453 \family typewriter
3454
3455 \backslash
3456 addpart*
3457 \family default
3458  command in 
3459 \emph on
3460 book (koma-script)
3461 \emph default
3462  and in 
3463 \emph on
3464 report (koma-script)
3465 \emph default
3466 , but since this is identical to 
3467 \family sans
3468 Part*
3469 \family default
3470 , is has not been implemented in \SpecialChar LyX
3471 .
3472 \end_layout
3473
3474 \end_inset
3475
3476
3477 \end_layout
3478
3479 \begin_layout Itemize
3480
3481 \family sans
3482 Minisec
3483 \family default
3484 : generates a heading directly above the following paragraph in the standard
3485  character size without affecting the structure of the document.
3486 \end_layout
3487
3488 \begin_layout Itemize
3489
3490 \family sans
3491 Captionabove
3492 \family default
3493  and 
3494 \family sans
3495 Captionbelow
3496 \family default
3497  are special captions which respect the different space settings needed
3498  for captions placed above or below an element (if you follow strict typographic
3499  rules, you might want to place table captions always above the table).
3500  You can also use the class option 
3501 \family typewriter
3502 tablecaptionsabove
3503 \family default
3504 , which will switch 
3505 \family sans
3506 caption
3507 \family default
3508  to 
3509 \family sans
3510 captionabove
3511 \family default
3512  for tables and 
3513 \family sans
3514 captionbelow
3515 \family default
3516  for figures.
3517  You need at least Koma-Script version 2.8q to use this.
3518 \end_layout
3519
3520 \begin_layout Itemize
3521
3522 \family sans
3523 Dictum
3524 \family default
3525 : can be used to set a bonmot, e.
3526 \begin_inset space \thinspace{}
3527 \end_inset
3528
3529 g.
3530 \begin_inset space \space{}
3531 \end_inset
3532
3533 at the beginning of a chapter.
3534  If you use the optional argument (
3535 \family sans
3536 Insert\SpecialChar menuseparator
3537 Dictum
3538 \begin_inset space ~
3539 \end_inset
3540
3541 Author
3542 \family default
3543 ), you can insert the dictum's author there.
3544  Dictum and author are separated by a line.
3545  You need at least Koma-Script version 2.8q to use this.
3546  
3547 \family sans
3548 Dictum
3549 \family default
3550  is not contained in 
3551 \emph on
3552 article (koma-script)
3553 \emph default
3554 .
3555 \end_layout
3556
3557 \begin_layout Standard
3558 The following types, together with the standard types 
3559 \family sans
3560 Title
3561 \family default
3562
3563 \family sans
3564 Author
3565 \family default
3566 , and 
3567 \family sans
3568 Date
3569 \family default
3570 , form the title area of the document.
3571  They must be entered ahead of the first 
3572 \begin_inset Quotes eld
3573 \end_inset
3574
3575 ordinary
3576 \begin_inset Quotes erd
3577 \end_inset
3578
3579  paragraph.
3580 \begin_inset Foot
3581 status collapsed
3582
3583 \begin_layout Plain Layout
3584 The corresponding \SpecialChar LaTeX
3585  commands must appear before the 
3586 \family typewriter
3587
3588 \backslash
3589 maketitle
3590 \family default
3591  command.
3592 \end_layout
3593
3594 \end_inset
3595
3596  When such a type is used more than once, the latter usage overwrites the
3597  former one, that means, for every type only the latest usage is valid.
3598  The order of the different types however has, like 
3599 \family sans
3600 Title
3601 \family default
3602
3603 \family sans
3604 Author
3605 \family default
3606 , and 
3607 \family sans
3608 Date
3609 \family default
3610 , no effect on the appearance of the produced document.
3611 \end_layout
3612
3613 \begin_layout Itemize
3614
3615 \family sans
3616 Subject
3617 \family default
3618 : produces a centered paragraph above the ordinary title (
3619 \family sans
3620 Title
3621 \family default
3622
3623 \family sans
3624 Author
3625 \family default
3626
3627 \family sans
3628 Date
3629 \family default
3630 ) for the subject of the document.
3631 \end_layout
3632
3633 \begin_layout Itemize
3634
3635 \family sans
3636 Publishers
3637 \family default
3638 : produces a centered paragraph below the ordinary title (
3639 \family sans
3640 Title
3641 \family default
3642
3643 \family sans
3644 Author
3645 \family default
3646
3647 \family sans
3648 Date
3649 \family default
3650 ) for the publishers' name.
3651 \end_layout
3652
3653 \begin_layout Itemize
3654
3655 \family sans
3656 Dedication
3657 \family default
3658 : in 
3659 \emph on
3660 report (koma-script)
3661 \emph default
3662  and 
3663 \emph on
3664 book (koma-script)
3665 \emph default
3666  produces a centered paragraph on its own page behind the title page, or
3667  in 
3668 \emph on
3669 article (koma-script)
3670 \emph default
3671  produces a centered paragraph below the ordinary title (
3672 \family sans
3673 Title
3674 \family default
3675
3676 \family sans
3677 Author
3678 \family default
3679
3680 \family sans
3681 Date
3682 \family default
3683
3684 \family sans
3685 Publishers
3686 \family default
3687 ) for a dedication.
3688 \end_layout
3689
3690 \begin_layout Itemize
3691
3692 \family sans
3693 Titlehead
3694 \family default
3695 : produces a left aligned paragraph above the ordinary title (
3696 \family sans
3697 Title
3698 \family default
3699
3700 \family sans
3701 Author
3702 \family default
3703
3704 \family sans
3705 Date
3706 \family default
3707
3708 \family sans
3709 Subject
3710 \family default
3711 ) for a document`s head.
3712 \end_layout
3713
3714 \begin_layout Itemize
3715
3716 \family sans
3717 Uppertitleback
3718 \family default
3719 : produces in a double-sided print in 
3720 \emph on
3721 report (koma-script)
3722 \emph default
3723  and 
3724 \emph on
3725 book (koma-script)
3726 \emph default
3727  a left-aligned paragraph at the top of the title page`s back or has no
3728  effect in a single-sided print or in 
3729 \emph on
3730 article (koma-script)
3731 \emph default
3732 .
3733 \end_layout
3734
3735 \begin_layout Itemize
3736
3737 \family sans
3738 Lowertitleback
3739 \family default
3740 : produces in a double-sided print in 
3741 \emph on
3742 report (koma-script)
3743 \emph default
3744  and 
3745 \emph on
3746 book (koma-script)
3747 \emph default
3748  a left-aligned paragraph at the bottom of the title page`s back or has
3749  no effect in a single-sided print or in 
3750 \emph on
3751 article (koma-script)
3752 \emph default
3753 .
3754 \end_layout
3755
3756 \begin_layout Itemize
3757
3758 \family sans
3759 Extratitle
3760 \family default
3761 : produces a special 
3762 \begin_inset Quotes eld
3763 \end_inset
3764
3765 dirty
3766 \begin_inset Quotes erd
3767 \end_inset
3768
3769  page ahead of the actual document containing a paragraph without special
3770  formatting.
3771 \end_layout
3772
3773 \begin_layout Standard
3774 The layout files for the document classes 
3775 \emph on
3776 article (koma-script)
3777 \emph default
3778
3779 \emph on
3780 report (koma-script)
3781 \emph default
3782 , and 
3783 \emph on
3784 book (koma-script)
3785 \emph default
3786  do include the file 
3787 \family typewriter
3788 scrmacros.inc
3789 \family default
3790 .
3791  This is thought of as a place to define your own types.
3792  Copy scrmacros
3793 \family typewriter
3794 .inc
3795 \family default
3796  in your personal layout directory and edit the file!
3797 \end_layout
3798
3799 \begin_layout Subsubsection
3800 letter (koma-script)
3801 \end_layout
3802
3803 \begin_layout Description
3804 Note: This section discusses the obsolete 
3805 \family sans
3806 KOMA-Script-Letter (v.
3807 \begin_inset space ~
3808 \end_inset
3809
3810 1)
3811 \family default
3812 , which is not even included anymore in recent KOMA releases.
3813  Please refer to the next section for the current KOMA-Script-Letter class
3814  (v.
3815 \begin_inset space ~
3816 \end_inset
3817
3818 2)!
3819 \end_layout
3820
3821 \begin_layout Standard
3822 \noindent
3823 The document class 
3824 \emph on
3825 letter (koma-script)
3826 \emph default
3827  is implemented in the layout file 
3828 \family typewriter
3829 scrlettr.layout
3830 \family default
3831 .
3832  It contains all the paragraph types of the corresponding standard document
3833  class 
3834 \emph on
3835 letter
3836 \emph default
3837 , partly modified, with the exception of the \SpecialChar LyX
3838  specific types 
3839 \family sans
3840 \SpecialChar LyX
3841 -Code
3842 \family default
3843  and 
3844 \family sans
3845 Comment
3846 \family default
3847  and the 
3848 \family sans
3849 List
3850 \family default
3851  type, which is replaced by the new 
3852 \family sans
3853 Labeling
3854 \family default
3855  type.
3856  In addition, it contains, in contrast to the standard document class, the
3857  standard types 
3858 \family sans
3859 \SpecialChar LaTeX
3860
3861 \family default
3862
3863 \family sans
3864 Quotation
3865 \family default
3866
3867 \family sans
3868 Quote
3869 \family default
3870 , and 
3871 \family sans
3872 Verse
3873 \family default
3874 .
3875  Furthermore, there are a number of new letter specific types.
3876 \end_layout
3877
3878 \begin_layout Standard
3879 The appearance of the letter produced by this document class can be controlled
3880  by a number of \SpecialChar LaTeX
3881  commands, which you can put in the \SpecialChar LaTeX
3882  preamble.
3883 \begin_inset Foot
3884 status collapsed
3885
3886 \begin_layout Plain Layout
3887 For example, the standard appearance of the letter`s heading, consisting
3888  of name and address, is quite self-willed.
3889  An 
3890 \begin_inset Quotes eld
3891 \end_inset
3892
3893 ordinary
3894 \begin_inset Quotes erd
3895 \end_inset
3896
3897  heading is produced by the following \SpecialChar LaTeX
3898  commands in the preamble:
3899 \end_layout
3900
3901 \begin_layout LyX-Code
3902
3903 \backslash
3904 firsthead{
3905 \backslash
3906 parbox[b]{
3907 \backslash
3908 textwidth}
3909 \end_layout
3910
3911 \begin_layout LyX-Code
3912   {
3913 \backslash
3914 ignorespaces 
3915 \backslash
3916 fromname
3917 \backslash
3918
3919 \backslash
3920  
3921 \backslash
3922 ignorespaces 
3923 \backslash
3924 fromaddress}} 
3925 \end_layout
3926
3927 \begin_layout LyX-Code
3928
3929 \backslash
3930 nexthead{
3931 \backslash
3932 parbox[b]{
3933 \backslash
3934 textwidth}
3935 \end_layout
3936
3937 \begin_layout LyX-Code
3938   {
3939 \backslash
3940 ignorespaces 
3941 \backslash
3942 fromname 
3943 \backslash
3944 hfill 
3945 \backslash
3946 ignorespaces 
3947 \backslash
3948 pagename
3949 \backslash
3950  
3951 \backslash
3952 thepage}}
3953 \end_layout
3954
3955 \end_inset
3956
3957  A detailed German description of such \SpecialChar LaTeX
3958  commands can be found in the Koma-Script
3959  documentation 
3960 \emph on
3961 scrguide
3962 \emph default
3963 .
3964  With it, the letter's author can produce his personal letter layout.
3965 \end_layout
3966
3967 \begin_layout Standard
3968 The types 
3969 \family sans
3970 Letter
3971 \family default
3972  and 
3973 \family sans
3974 Opening
3975 \family default
3976  define the beginning of the letter and must be used in every letter.
3977  To emphasize them in the \SpecialChar LyX
3978  document class, they are marked with the letter
3979  
3980 \shape italic
3981 L
3982 \shape default
3983  or 
3984 \shape italic
3985 O
3986 \shape default
3987 , resp.
3988 \begin_inset space ~
3989 \end_inset
3990
3991 in the left margin.
3992  It is possible to write any number of letters in one file.
3993  An 
3994 \family sans
3995 Opening
3996 \family default
3997  type produces a new letter using the same addressee and a 
3998 \family sans
3999 Letter
4000 \family default
4001  type produces a new addressee.
4002  The types 
4003 \family sans
4004 Closing
4005 \family default
4006
4007 \family sans
4008 PS
4009 \family default
4010
4011 \family sans
4012 CC
4013 \family default
4014 , and 
4015 \family sans
4016 Encl
4017 \family default
4018  are ordinary paragraph types and can also be used several times in one
4019  and the same letter.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Letter
4026 \family default
4027 : produces a paragraph for the addressee and implicitly defines the beginning
4028  of the letter.
4029 \end_layout
4030
4031 \begin_layout Itemize
4032
4033 \family sans
4034 Opening
4035 \family default
4036 : produces a paragraph for the form of address and implicitly produces a
4037  new letter.
4038 \end_layout
4039
4040 \begin_layout Itemize
4041
4042 \family sans
4043 Closing
4044 \family default
4045 : produces a paragraph for a close.
4046 \end_layout
4047
4048 \begin_layout Itemize
4049
4050 \family sans
4051 PS
4052 \family default
4053 : produces a paragraph for a postscript.
4054 \end_layout
4055
4056 \begin_layout Itemize
4057
4058 \family sans
4059 CC
4060 \family default
4061 : produces a paragraph for a distribution list.
4062 \end_layout
4063
4064 \begin_layout Itemize
4065
4066 \family sans
4067 Encl
4068 \family default
4069 : produces a paragraph for enclosures.
4070 \end_layout
4071
4072 \begin_layout Standard
4073 The types 
4074 \family sans
4075 Name
4076 \family default
4077
4078 \family sans
4079 Signature
4080 \family default
4081
4082 \family sans
4083 Address
4084 \family default
4085
4086 \family sans
4087 Telephone
4088 \family default
4089
4090 \family sans
4091 Place
4092 \family default
4093
4094 \family sans
4095 Backaddress
4096 \family default
4097
4098 \family sans
4099 Specialmail
4100 \family default
4101
4102 \family sans
4103 Location
4104 \family default
4105
4106 \family sans
4107 Title
4108 \family default
4109 , and 
4110 \family sans
4111 Subject
4112 \family default
4113  are input types provided with a label to enter information, which will
4114  be processed by the document class.
4115 \begin_inset Foot
4116 status collapsed
4117
4118 \begin_layout Plain Layout
4119 It could be seen as a matter of inconsequence, that the types 
4120 \family sans
4121 Letter
4122 \family default
4123  and 
4124 \family sans
4125 Opening
4126 \family default
4127  described above are not such input types as well.
4128  Because of the special meaning of those types, however, I have implemented
4129  them as ordinary paragraph types with a one letter mark in the left margin.
4130  Moreover, it would affect my feeling of symmetry, if the 
4131 \family sans
4132 Opening
4133 \family default
4134  type and the 
4135 \family sans
4136 Closing
4137 \family default
4138  type had such a serious different appearance.
4139 \end_layout
4140
4141 \end_inset
4142
4143  The types must be used ahead of the corresponding 
4144 \family sans
4145 Opening
4146 \family default
4147  type.
4148 \end_layout
4149
4150 \begin_layout Standard
4151 An implementation of these types in a WYSIWYG fashion does not seem to make
4152  sense, because the real appearance of the produced letter does not only
4153  depend on the usage of the particular type, but also on other factors.
4154  For example, a signature entered in the 
4155 \family sans
4156 Signature
4157 \family default
4158  type will in the standard behavior appear in the produced letter only,
4159  when in the same letter also a 
4160 \family sans
4161 Closing
4162 \family default
4163  type is used.
4164  The entered value of the 
4165 \family sans
4166 Telephone
4167 \family default
4168  type will in the standard behavior not appear in the produced letter at
4169  all.
4170  The possibility to design the letter`s heading freely is already indicated
4171  in a footnote above.
4172 \end_layout
4173
4174 \begin_layout Standard
4175 The input types can also be used as empty paragraphs.
4176  This makes sense e.
4177 \begin_inset space \thinspace{}
4178 \end_inset
4179
4180 g.
4181 \begin_inset space \space{}
4182 \end_inset
4183
4184 for the 
4185 \family sans
4186 Signature
4187 \family default
4188  type.
4189  If the 
4190 \family sans
4191 Signature
4192 \family default
4193  type is not used at all, in the standard behavior the value of the 
4194 \family sans
4195 Name
4196 \family default
4197  type is used as signature, whereas if an empty 
4198 \family sans
4199 Signature
4200 \family default
4201  type is used, no signature value is defined.
4202 \end_layout
4203
4204 \begin_layout Standard
4205 By using the input types it is possible to write a letter template, containing
4206  filled input types with your personal dates (name, address, etc.) and empty
4207  input types for other dates you want to enter.
4208 \end_layout
4209
4210 \begin_layout Itemize
4211
4212 \family sans
4213 Name
4214 \family default
4215 : sender's name, in the standard behavior appears as a centered paragraph
4216  in small caps in the letter`s heading.
4217 \end_layout
4218
4219 \begin_layout Itemize
4220
4221 \family sans
4222 Signature
4223 \family default
4224 : sender's signature, in the standard behavior appears below the 
4225 \family sans
4226 Closing
4227 \family default
4228  type.
4229  If no 
4230 \family sans
4231 Signature
4232 \family default
4233  type is used, the value of the 
4234 \family sans
4235 Name
4236 \family default
4237  type appears instead.
4238 \end_layout
4239
4240 \begin_layout Itemize
4241
4242 \family sans
4243 Address
4244 \family default
4245 : sender's address, in the standard behavior appears in a centered paragraph
4246  in the letter`s heading below the sender's name.
4247 \end_layout
4248
4249 \begin_layout Itemize
4250
4251 \family sans
4252 Telephone
4253 \family default
4254 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4255  variable
4256  
4257 \family typewriter
4258
4259 \backslash
4260 telephonenum
4261 \family default
4262 .
4263 \end_layout
4264
4265 \begin_layout Itemize
4266
4267 \family sans
4268 Place
4269 \family default
4270 : place of the letter`s making.
4271 \end_layout
4272
4273 \begin_layout Itemize
4274
4275 \family sans
4276 Date
4277 \family default
4278 : date of the letter`s making.
4279  
4280 \family sans
4281 Place
4282 \family default
4283  and 
4284 \family sans
4285 Date
4286 \family default
4287 , in the standard behavior, produce the place and the date in a right-aligned
4288  line below the addressee's field.
4289  If an empty 
4290 \family sans
4291 Date
4292 \family default
4293  type is used, neither place nor date appear, independent of the value of
4294  the 
4295 \family sans
4296 Place
4297 \family default
4298  type.
4299  If no 
4300 \family sans
4301 Date
4302 \family default
4303  type is used, the date of the letter `s production is used.
4304 \end_layout
4305
4306 \begin_layout Itemize
4307
4308 \family sans
4309 Backaddress
4310 \family default
4311 : sender`s back address, in the standard behavior appears above the addressee's
4312  field in a small sans serif font.
4313 \end_layout
4314
4315 \begin_layout Itemize
4316
4317 \family sans
4318 Specialmail
4319 \family default
4320 : special mail information, in the standard behavior appears underlined
4321  above the addressee's field below the back address.
4322 \end_layout
4323
4324 \begin_layout Itemize
4325
4326 \family sans
4327 Location
4328 \family default
4329 : additional information, in the standard behavior appears on right side
4330  below the addressee`s field.
4331 \end_layout
4332
4333 \begin_layout Itemize
4334
4335 \family sans
4336 Title
4337 \family default
4338 : the letter's title, in the standard behavior appears in a big, bold, sans
4339  serif font above the subject.
4340 \end_layout
4341
4342 \begin_layout Itemize
4343
4344 \family sans
4345 Subject
4346 \family default
4347 : the letter's subject, in the standard behavior appears in a bold font
4348  above the 
4349 \family sans
4350 Opening
4351 \family default
4352  paragraph.
4353 \end_layout
4354
4355 \begin_layout Standard
4356 The types 
4357 \family sans
4358 Yourref
4359 \family default
4360
4361 \family sans
4362 Yourmail
4363 \family default
4364
4365 \family sans
4366 Myref
4367 \family default
4368
4369 \family sans
4370 Customer
4371 \family default
4372 , and 
4373 \family sans
4374 Invoice
4375 \family default
4376  produce a business letter like line above the 
4377 \family sans
4378 Title
4379 \family default
4380  line containing the fields 
4381 \begin_inset Quotes eld
4382 \end_inset
4383
4384 Your ref.
4385 \begin_inset Quotes erd
4386 \end_inset
4387
4388
4389 \begin_inset Quotes eld
4390 \end_inset
4391
4392 Your letter of
4393 \begin_inset Quotes erd
4394 \end_inset
4395
4396
4397 \begin_inset Quotes eld
4398 \end_inset
4399
4400 Our ref.
4401 \begin_inset Quotes erd
4402 \end_inset
4403
4404
4405 \begin_inset Quotes eld
4406 \end_inset
4407
4408 Customer no.
4409 \begin_inset Quotes erd
4410 \end_inset
4411
4412
4413 \begin_inset Quotes eld
4414 \end_inset
4415
4416 Invoice no.
4417 \begin_inset Quotes erd
4418 \end_inset
4419
4420 , and 
4421 \begin_inset Quotes eld
4422 \end_inset
4423
4424 Date
4425 \begin_inset Quotes erd
4426 \end_inset
4427
4428 .
4429  For the date field, the value of the 
4430 \family sans
4431 Date
4432 \family default
4433  type is used.
4434  If one of these 
4435 \begin_inset Quotes eld
4436 \end_inset
4437
4438 business letter types
4439 \begin_inset Quotes erd
4440 \end_inset
4441
4442  is used, the value of the 
4443 \family sans
4444 Place
4445 \family default
4446  type however does not appear, but only the \SpecialChar LaTeX
4447  variable 
4448 \family typewriter
4449
4450 \backslash
4451 fromplace
4452 \family default
4453  is set.
4454  The ordinary output of place and date in a right-aligned line below the
4455  addressee`s field is suppressed.
4456  The types are implemented as input types provided with a label and must
4457  be used ahead of the corresponding 
4458 \family sans
4459 Opening
4460 \family default
4461  type.
4462 \end_layout
4463
4464 \begin_layout Itemize
4465
4466 \family sans
4467 Yourref
4468 \family default
4469 : Your ref.
4470 \end_layout
4471
4472 \begin_layout Itemize
4473
4474 \family sans
4475 Yourmail
4476 \family default
4477 : Your letter of.
4478 \end_layout
4479
4480 \begin_layout Itemize
4481
4482 \family sans
4483 Myref
4484 \family default
4485 : Our ref.
4486 \end_layout
4487
4488 \begin_layout Itemize
4489
4490 \family sans
4491 Customer
4492 \family default
4493 : Customer no.
4494 \end_layout
4495
4496 \begin_layout Itemize
4497
4498 \family sans
4499 Invoice
4500 \family default
4501 : Invoice no.
4502 \end_layout
4503
4504 \begin_layout Subsubsection
4505 The new letter class: letter (koma-script v.2)
4506 \end_layout
4507
4508 \begin_layout Standard
4509 by 
4510 \noun on
4511 Jürgen Spitzmüller
4512 \end_layout
4513
4514 \begin_layout Standard
4515 \begin_inset VSpace medskip
4516 \end_inset
4517
4518
4519 \end_layout
4520
4521 \begin_layout Standard
4522 \noindent
4523 Koma-Script version 2.8 has introduced a new letter class 
4524 \family typewriter
4525 scrlttr2
4526 \family default
4527  which supersedes the now unsupported 
4528 \family typewriter
4529 scrlettr
4530 \family default
4531 .
4532  It has — on the \SpecialChar LaTeX
4533  side — a completely new interface and is not compatible
4534  with the old class.
4535  Therefore, \SpecialChar LyX
4536  supports both, though it is recommended you use the new class.
4537 \end_layout
4538
4539 \begin_layout Standard
4540 This class covers the same functionality as 
4541 \emph on
4542 letter (koma-script),
4543 \emph default
4544  and a few more.
4545  The basic items are 
4546 \family sans
4547 Address
4548 \family default
4549  (receiver's address, same as 
4550 \family sans
4551 Letter
4552 \family default
4553  in the old layout), 
4554 \family sans
4555 Opening
4556 \family default
4557 , and 
4558 \family sans
4559 Closing
4560 \family default
4561 .
4562  
4563 \family sans
4564 NextAddress
4565 \family default
4566  will start a new letter (i.
4567 \begin_inset space \thinspace{}
4568 \end_inset
4569
4570 e.
4571 \begin_inset space \space{}
4572 \end_inset
4573
4574 you can write several letters per document).
4575  New elements are sender's 
4576 \family sans
4577 E-Mail
4578 \family default
4579
4580 \family sans
4581 URL
4582 \family default
4583
4584 \family sans
4585 Fax
4586 \family default
4587
4588 \family sans
4589 Bank
4590 \family default
4591  and the possibility to use a 
4592 \family sans
4593 Logo
4594 \family default
4595  (via 
4596 \family sans
4597 Insert\SpecialChar menuseparator
4598 Graphics
4599 \family default
4600 ) in the header.
4601 \end_layout
4602
4603 \begin_layout Standard
4604 The biggest improvement is, though, that the letter's layout is configurable
4605  to meet almost any needs.
4606  This can be done via the preamble or with a special style file (Letter
4607  Class Option, extension 
4608 \family typewriter
4609 *.lco
4610 \family default
4611 ), that will be read in as a class option.
4612 \begin_inset Foot
4613 status collapsed
4614
4615 \begin_layout Plain Layout
4616 The KOMA package comes with some default 
4617 \family typewriter
4618 *.lco
4619 \family default
4620  files.
4621  There is, for instance, a 
4622 \family typewriter
4623 DIN.lco
4624 \family default
4625  file that follows german typesetting rules, or a 
4626 \family typewriter
4627 KOMAold.lco
4628 \family default
4629  that provides the default layout of the old 
4630 \family typewriter
4631 scrlettr
4632 \family default
4633  class.
4634  The latter can be loaded with the class option 
4635 \family typewriter
4636 KOMAold
4637 \family default
4638 , inserted via the 
4639 \family sans
4640 Layout\SpecialChar menuseparator
4641 Document\SpecialChar menuseparator
4642 Extra Options
4643 \family default
4644  field.
4645 \end_layout
4646
4647 \end_inset
4648
4649  Have a look at the
4650 \change_deleted 564990737 1671617922
4651  
4652 \emph on
4653 koma-letter2
4654 \change_unchanged
4655
4656 \emph default
4657  template 
4658 \change_deleted 564990737 1671617938
4659 that is included in \SpecialChar LyX
4660  for examples
4661 \change_inserted 564990737 1671617997
4662  in 
4663 \family sans
4664 \bar under
4665 \lang american
4666 F
4667 \bar default
4668 ile\SpecialChar menuseparator
4669 New
4670 \begin_inset space ~
4671 \end_inset
4672
4673 fro
4674 \bar under
4675 m
4676 \bar default
4677
4678 \begin_inset space ~
4679 \end_inset
4680
4681 Template\SpecialChar menuseparator
4682 Letters
4683 \lang english
4684 \SpecialChar menuseparator
4685 KOMA-Script Letter (V.2)
4686 \change_unchanged
4687
4688 \family default
4689 .
4690  A detailed description is to be found in the Koma-Script documentation
4691  (
4692 \emph on
4693 scrguide
4694 \emph default
4695 ).
4696 \end_layout
4697
4698 \begin_layout Subsubsection
4699 Problems
4700 \end_layout
4701
4702 \begin_layout Standard
4703 Visualizing the Koma-Script document classes in \SpecialChar LyX
4704 , the \SpecialChar LyX
4705  internals cause some
4706  problems.
4707 \end_layout
4708
4709 \begin_layout Itemize
4710 The chapter number of a 
4711 \family sans
4712 Chapter
4713 \family default
4714  type appears on a line of its own above the chapter heading instead of
4715  appearing in the same line ahead of it.
4716  The cause for that is the \SpecialChar LyX
4717  internal behavior for the labeltype 
4718 \family sans
4719 Counter_Chapter
4720 \family default
4721  in the layout file.
4722 \end_layout
4723
4724 \begin_layout Itemize
4725 The headings of the types 
4726 \family sans
4727 Addchap
4728 \family default
4729  and 
4730 \family sans
4731 Addsec
4732 \family default
4733  are only put in the 
4734 \begin_inset Quotes eld
4735 \end_inset
4736
4737 true
4738 \begin_inset Quotes erd
4739 \end_inset
4740
4741  \SpecialChar LaTeX
4742  table of contents, but not in the \SpecialChar LyX
4743  table of contents (
4744 \family sans
4745 Document\SpecialChar menuseparator
4746 Table
4747 \begin_inset space ~
4748 \end_inset
4749
4750 of
4751 \begin_inset space ~
4752 \end_inset
4753
4754 Contents
4755 \family default
4756 ).
4757 \end_layout
4758
4759 \begin_layout Itemize
4760 The paragraphs in a 
4761 \emph on
4762 letter
4763 \emph default
4764  document class appear in a skip separation mode, not indented.
4765  This is the standard behavior, no special \SpecialChar LaTeX
4766  commands are needed for that.
4767  But in the 
4768 \family sans
4769 Document\SpecialChar menuseparator
4770 Settings
4771 \family default
4772  dialog the corresponding radio button indicates 
4773 \family sans
4774 Indent
4775 \family default
4776 .
4777  A 
4778 \family sans
4779 Skip
4780 \family default
4781  value always has the effect that extra \SpecialChar LaTeX
4782  commands are inserted in the document
4783  to produce the gap, which is not what is wanted in this case.
4784 \end_layout
4785
4786 \begin_layout Subsection
4787
4788 \change_inserted 564990737 1670924924
4789 Polish M.
4790 \begin_inset space \thinspace{}
4791 \end_inset
4792
4793 W.
4794 \begin_inset space \space{}
4795 \end_inset
4796
4797 collection
4798 \change_deleted 564990737 1670924933
4799 Article (mwart), book (mwbk) and report (mwrep)
4800 \begin_inset Argument status
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804 The 
4805 \family typewriter
4806 mw
4807 \family default
4808  Classes
4809 \end_layout
4810
4811 \end_inset
4812
4813
4814 \change_unchanged
4815
4816 \end_layout
4817
4818 \begin_layout Standard
4819 by 
4820 \noun on
4821 Tomasz Luczak
4822 \end_layout
4823
4824 \begin_layout Standard
4825 The \SpecialChar LyX
4826  document classes 
4827 \emph on
4828 article (mwart)
4829 \emph default
4830
4831 \emph on
4832 report (mwrep)
4833 \emph default
4834  and 
4835 \emph on
4836 book
4837 \emph default
4838  
4839 \emph on
4840 (mwbk)
4841 \emph default
4842  correspond to the \SpecialChar LaTeX
4843  document classes 
4844 \family typewriter
4845 mwart.cls
4846 \family default
4847
4848 \family typewriter
4849 mwrep.cls
4850 \family default
4851  and 
4852 \family typewriter
4853 mwbk.cls
4854 \family default
4855 , resp.
4856  They are replacements for the standard document classes 
4857 \family typewriter
4858 article.cls
4859 \family default
4860
4861 \family typewriter
4862 report.cls
4863 \family default
4864  and 
4865 \family typewriter
4866 book.cls
4867 \family default
4868 , resp., and fit better to Polish typography conventions in a number of points.
4869  
4870 \end_layout
4871
4872 \begin_layout Standard
4873 Basic differences:
4874 \end_layout
4875
4876 \begin_layout Itemize
4877 Unnumbered titles (with star, e.
4878 \begin_inset space \thinspace{}
4879 \end_inset
4880
4881 g.
4882 \begin_inset space \space{}
4883 \end_inset
4884
4885
4886 \family sans
4887 Section*
4888 \family default
4889 ) are added into table of contents,
4890 \end_layout
4891
4892 \begin_layout Itemize
4893 Additional page styles:
4894 \end_layout
4895
4896 \begin_deeper
4897 \begin_layout Description
4898 uheadings header with separated lines,
4899 \end_layout
4900
4901 \begin_layout Description
4902 myheadings custom header, contents headers via commands: 
4903 \family typewriter
4904
4905 \backslash
4906 markright
4907 \family default
4908  and 
4909 \family typewriter
4910
4911 \backslash
4912 markboth
4913 \family default
4914 ,
4915 \end_layout
4916
4917 \begin_layout Description
4918 myuheadings custom header with separated lines,
4919 \end_layout
4920
4921 \begin_layout Description
4922 outer page number is placed on outer side of page
4923 \end_layout
4924
4925 \end_deeper
4926 \begin_layout Itemize
4927 Options 
4928 \end_layout
4929
4930 \begin_deeper
4931 \begin_layout Description
4932 rmheadings serif titles — default,
4933 \end_layout
4934
4935 \begin_layout Description
4936 sfheadings sansserif titles,
4937 \end_layout
4938
4939 \begin_layout Description
4940 authortitle on title page first placed is author next title — default,
4941 \end_layout
4942
4943 \begin_layout Description
4944 titleauthor on title page first placed is title next author,
4945 \end_layout
4946
4947 \begin_layout Description
4948 withmarginpar reserve place on page for margins.
4949 \end_layout
4950
4951 \end_deeper
4952 \begin_layout Section
4953
4954 \change_inserted 564990737 1670439534
4955 Articles
4956 \end_layout
4957
4958 \begin_layout Standard
4959
4960 \change_inserted 564990737 1670794710
4961 See also the document classes in the Collections (section
4962 \begin_inset space ~
4963 \end_inset
4964
4965
4966 \begin_inset CommandInset ref
4967 LatexCommand ref
4968 reference "sec:Collections"
4969
4970 \end_inset
4971
4972 ).
4973 \end_layout
4974
4975 \begin_layout Subsection
4976
4977 \change_inserted 564990737 1670794716
4978
4979 \lang american
4980 A&A Paper
4981 \end_layout
4982
4983 \begin_layout Standard
4984
4985 \change_inserted 564990737 1670794716
4986
4987 \lang american
4988 Original by 
4989 \noun on
4990 Peter Sütterlin
4991 \noun default
4992 ; updated by the \SpecialChar LyX
4993  Team
4994 \end_layout
4995
4996 \begin_layout Subsubsection
4997
4998 \change_inserted 564990737 1670794716
4999
5000 \lang american
5001 Introduction
5002 \end_layout
5003
5004 \begin_layout Standard
5005
5006 \change_inserted 564990737 1670794716
5007
5008 \lang american
5009 This section describes how \SpecialChar LyX
5010  can be used to write articles for submission
5011  to the scientific journal 
5012 \emph on
5013 Astronomy and Astrophysics
5014 \emph default
5015  (
5016 \begin_inset CommandInset href
5017 LatexCommand href
5018 name "aa-package"
5019 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5020 literal "false"
5021
5022 \end_inset
5023
5024 ) using Version 9.1 of the document class 
5025 \family typewriter
5026 aa.cls
5027 \family default
5028 ; information about it is available at 
5029 \begin_inset Flex URL
5030 status collapsed
5031
5032 \begin_layout Plain Layout
5033
5034 \change_inserted 564990737 1670794716
5035
5036 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5037 \change_unchanged
5038
5039 \end_layout
5040
5041 \end_inset
5042
5043 .
5044 \end_layout
5045
5046 \begin_layout Standard
5047
5048 \change_inserted 564990737 1670794716
5049
5050 \lang american
5051 A manual comes together with the package and should be consulted before
5052  installing this document class as described in the 
5053 \emph on
5054 Installing New Document Classe
5055 \emph default
5056 s section of the 
5057 \emph on
5058 Customization
5059 \emph default
5060  manual.
5061  
5062 \end_layout
5063
5064 \begin_layout Standard
5065
5066 \change_inserted 564990737 1670794716
5067
5068 \lang american
5069 \begin_inset Note Greyedout
5070 status open
5071
5072 \begin_layout Plain Layout
5073
5074 \change_inserted 564990737 1670794716
5075
5076 \lang american
5077 Please note that the publisher of the journal was changed from Springer
5078  to EDP Sciences starting January 1, 2001.
5079  That change also involved some slight changes to the style files, namely
5080  the removal of the thesaurus command.
5081  If you have an older version installed, please upgrade.
5082  For information about compatibility with the old (version 4) layout, please
5083  refer to the comments in 
5084 \family typewriter
5085 \SpecialChar LyX
5086 Dir/layouts/aapaper.layout
5087 \family default
5088 .
5089 \end_layout
5090
5091 \end_inset
5092
5093
5094 \end_layout
5095
5096 \begin_layout Subsubsection
5097
5098 \change_inserted 564990737 1670794716
5099
5100 \lang american
5101 Getting started
5102 \end_layout
5103
5104 \begin_layout Standard
5105
5106 \change_inserted 564990737 1671617129
5107
5108 \lang american
5109 It is recommended you start from the template in the menu 
5110 \family sans
5111 \bar under
5112 F
5113 \bar default
5114 ile\SpecialChar menuseparator
5115 New
5116 \begin_inset space ~
5117 \end_inset
5118
5119 fro
5120 \bar under
5121 m
5122 \bar default
5123
5124 \begin_inset space ~
5125 \end_inset
5126
5127 Template
5128 \lang english
5129 \SpecialChar menuseparator
5130 Articles\SpecialChar menuseparator
5131 Astronomy & Astrophysics
5132 \family default
5133 \lang american
5134 .
5135  If you are not using the template, note the following settings:
5136 \end_layout
5137
5138 \begin_layout Itemize
5139
5140 \change_inserted 564990737 1670794716
5141
5142 \lang american
5143 Select 
5144 \family sans
5145 article (A&A)
5146 \family default
5147  in the 
5148 \family sans
5149 \bar under
5150 D
5151 \bar default
5152 ocument\SpecialChar menuseparator
5153
5154 \bar under
5155 S
5156 \bar default
5157 ettings\SpecialChar menuseparator
5158 Document
5159 \begin_inset space ~
5160 \end_inset
5161
5162 Class
5163 \family default
5164  dialog (OK, that one was obvious).
5165 \end_layout
5166
5167 \begin_layout Itemize
5168
5169 \change_inserted 564990737 1670794716
5170
5171 \lang american
5172 Don't change the 
5173 \family sans
5174 Headings
5175 \begin_inset space ~
5176 \end_inset
5177
5178
5179 \bar under
5180 s
5181 \bar default
5182 tyle
5183 \family default
5184  in the 
5185 \family sans
5186 Page
5187 \begin_inset space ~
5188 \end_inset
5189
5190 Layout
5191 \family default
5192  dialog: leave it set to 
5193 \family sans
5194 Default
5195 \family default
5196 .
5197  The whole layout is done by the macros, you shouldn't change anything.
5198 \end_layout
5199
5200 \begin_layout Subsubsection
5201
5202 \change_inserted 564990737 1670794716
5203
5204 \lang american
5205 The header block
5206 \end_layout
5207
5208 \begin_layout Standard
5209
5210 \change_inserted 564990737 1670794716
5211
5212 \lang american
5213 First thing to enter is the header information.
5214  It consists of five entries, of which one is optional.
5215  They are
5216 \end_layout
5217
5218 \begin_layout Itemize
5219
5220 \change_inserted 564990737 1670794716
5221
5222 \family sans
5223 \lang american
5224 Title
5225 \family default
5226 : [required] 
5227 \end_layout
5228
5229 \begin_layout Itemize
5230
5231 \change_inserted 564990737 1670794716
5232
5233 \family sans
5234 \lang american
5235 Subtitle
5236 \family default
5237 : [optional] 
5238 \end_layout
5239
5240 \begin_layout Itemize
5241
5242 \change_inserted 564990737 1670794716
5243
5244 \family sans
5245 \lang american
5246 Author
5247 \family default
5248 : [required]
5249 \end_layout
5250
5251 \begin_layout Itemize
5252
5253 \change_inserted 564990737 1670794716
5254
5255 \family typewriter
5256 \lang american
5257 Institute
5258 \family default
5259 : [required]
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Date
5269 \family default
5270 : [required].
5271  Suggested format is 
5272 \family typewriter
5273 Received: <date>; Accepted <date> 
5274 \end_layout
5275
5276 \begin_layout Standard
5277
5278 \change_inserted 564990737 1670794716
5279
5280 \lang american
5281 Although the order of the single header entries doesn't matter it is advised
5282  to keep the above sequence, just to get the best optics and meets the layout
5283  of the real document.
5284 \end_layout
5285
5286 \begin_layout Standard
5287
5288 \change_inserted 564990737 1670794716
5289
5290 \lang american
5291 If you want to place footnotes in the header block, e.
5292 \begin_inset space \thinspace{}
5293 \end_inset
5294
5295 g.
5296 \begin_inset space \space{}
5297 \end_inset
5298
5299 to state your present address, just use the standard footnote via the menu
5300  
5301 \family sans
5302 \bar under
5303 I
5304 \bar default
5305 nsert\SpecialChar menuseparator
5306
5307 \bar under
5308 F
5309 \bar default
5310 ootnote.
5311
5312 \family default
5313  \SpecialChar LyX
5314  will automagically use the term 
5315 \family typewriter
5316
5317 \backslash
5318 thanks{}
5319 \family default
5320  in that case.
5321 \end_layout
5322
5323 \begin_layout Standard
5324
5325 \change_inserted 564990737 1670794716
5326
5327 \lang american
5328 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5329  commands that
5330  have no counterpart in \SpecialChar LyX
5331 :
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family typewriter
5339 \lang american
5340
5341 \backslash
5342 and
5343 \family default
5344  to separate different names for more than one author and institute, respectivel
5345 y.
5346 \end_layout
5347
5348 \begin_layout Itemize
5349
5350 \change_inserted 564990737 1670794716
5351
5352 \family typewriter
5353 \lang american
5354
5355 \backslash
5356 inst{<nr>}
5357 \family default
5358  to mark corresponding author/institute pairs.
5359  The institutes are numbered sequentially as they appear in the 
5360 \family sans
5361 Institute
5362 \family default
5363  field, so you have to put a marker to each author.
5364 \end_layout
5365
5366 \begin_layout Itemize
5367
5368 \change_inserted 564990737 1670794716
5369
5370 \family typewriter
5371 \lang american
5372
5373 \backslash
5374 email{address}
5375 \family default
5376  to supply an email address for fast contact.
5377 \end_layout
5378
5379 \begin_layout Standard
5380
5381 \change_inserted 564990737 1671642374
5382
5383 \lang american
5384 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5385  code in \SpecialChar LyX
5386 .
5387  See the examples in the template and in 
5388 \family sans
5389 \lang british
5390 File\SpecialChar menuseparator
5391 Open Example\SpecialChar menuseparator
5392 Articles\SpecialChar menuseparator
5393 Astronomy & Astrophysics
5394 \family default
5395 \lang american
5396 .
5397 \change_unchanged
5398
5399 \end_layout
5400
5401 \begin_layout Subsubsection
5402
5403 \change_inserted 564990737 1670794716
5404
5405 \lang american
5406 The abstract
5407 \end_layout
5408
5409 \begin_layout Standard
5410
5411 \change_inserted 564990737 1670794716
5412
5413 \lang american
5414 The abstract should immediately follow the header block and must contain
5415  five tokens: 
5416 \family typewriter
5417
5418 \backslash
5419 abstract{}{}{}{}{}
5420 \family default
5421  
5422 \end_layout
5423
5424 \begin_layout Enumerate
5425
5426 \change_inserted 564990737 1670794716
5427
5428 \family typewriter
5429 \lang american
5430 context heading
5431 \family default
5432  (optional) {} leave it empty if necessary 
5433 \end_layout
5434
5435 \begin_layout Enumerate
5436
5437 \change_inserted 564990737 1670794716
5438
5439 \family typewriter
5440 \lang american
5441 aims heading
5442 \family default
5443  (mandatory) {} 
5444 \end_layout
5445
5446 \begin_layout Enumerate
5447
5448 \change_inserted 564990737 1670794716
5449
5450 \family typewriter
5451 \lang american
5452 methods heading
5453 \family default
5454  (mandatory) {} 
5455 \end_layout
5456
5457 \begin_layout Enumerate
5458
5459 \change_inserted 564990737 1670794716
5460
5461 \family typewriter
5462 \lang american
5463 results heading
5464 \family default
5465  (mandatory) {} 
5466 \end_layout
5467
5468 \begin_layout Enumerate
5469
5470 \change_inserted 564990737 1670794716
5471
5472 \family typewriter
5473 \lang american
5474 conclusions heading
5475 \family default
5476  (optional) {} leave it empty if necessary 
5477 \end_layout
5478
5479 \begin_layout Standard
5480
5481 \change_inserted 564990737 1670794716
5482
5483 \lang american
5484 (NB.
5485  This structure not shown in 
5486 \emph on
5487 aa_sample.lyx.
5488 \emph default
5489 )
5490 \end_layout
5491
5492 \begin_layout Subsubsection
5493
5494 \change_inserted 564990737 1670794716
5495
5496 \lang american
5497 Supported environments
5498 \end_layout
5499
5500 \begin_layout Standard
5501
5502 \change_inserted 564990737 1670794716
5503
5504 \lang american
5505 The A&A paper layout supports the following environments for structuring
5506  your text:
5507 \end_layout
5508
5509 \begin_layout Itemize
5510
5511 \change_inserted 564990737 1670794716
5512
5513 \family sans
5514 \lang american
5515 Standard
5516 \end_layout
5517
5518 \begin_layout Itemize
5519
5520 \change_inserted 564990737 1670794716
5521
5522 \family sans
5523 \lang american
5524 Section
5525 \end_layout
5526
5527 \begin_layout Itemize
5528
5529 \change_inserted 564990737 1670794716
5530
5531 \family sans
5532 \lang american
5533 Subsection
5534 \end_layout
5535
5536 \begin_layout Itemize
5537
5538 \change_inserted 564990737 1670794716
5539
5540 \family sans
5541 \lang american
5542 Subsubsection
5543 \end_layout
5544
5545 \begin_layout Itemize
5546
5547 \change_inserted 564990737 1670794716
5548
5549 \family sans
5550 \lang american
5551 Itemize
5552 \end_layout
5553
5554 \begin_layout Itemize
5555
5556 \change_inserted 564990737 1670794716
5557
5558 \family sans
5559 \lang american
5560 Enumerate
5561 \end_layout
5562
5563 \begin_layout Itemize
5564
5565 \change_inserted 564990737 1670794716
5566
5567 \family sans
5568 \lang american
5569 Description
5570 \end_layout
5571
5572 \begin_layout Itemize
5573
5574 \change_inserted 564990737 1670794716
5575
5576 \family sans
5577 \lang american
5578 Caption
5579 \end_layout
5580
5581 \begin_layout Itemize
5582
5583 \change_inserted 564990737 1670794716
5584
5585 \family sans
5586 \lang american
5587 Abstract
5588 \end_layout
5589
5590 \begin_layout Itemize
5591
5592 \change_inserted 564990737 1670794716
5593
5594 \family sans
5595 \lang american
5596 Acknowledgment
5597 \end_layout
5598
5599 \begin_layout Itemize
5600
5601 \change_inserted 564990737 1670794716
5602
5603 \family sans
5604 \lang american
5605 Bibliography
5606 \end_layout
5607
5608 \begin_layout Itemize
5609
5610 \change_inserted 564990737 1670794716
5611
5612 \family sans
5613 \lang american
5614 \SpecialChar LaTeX
5615
5616 \end_layout
5617
5618 \begin_layout Subsubsection
5619
5620 \change_inserted 564990737 1670794716
5621
5622 \lang american
5623 Commands not supported by \SpecialChar LyX
5624
5625 \end_layout
5626
5627 \begin_layout Standard
5628
5629 \change_inserted 564990737 1670794716
5630
5631 \lang american
5632 Some commands are not yet supported by the 
5633 \family sans
5634 paper (A&A)
5635 \family default
5636  layout for \SpecialChar LyX
5637 .
5638  Some have already been mentioned.
5639  For the sake of completeness, they are listed all together here:
5640 \end_layout
5641
5642 \begin_layout Itemize
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \family typewriter
5647 \lang american
5648
5649 \backslash
5650 and
5651 \end_layout
5652
5653 \begin_layout Itemize
5654
5655 \change_inserted 564990737 1670794716
5656
5657 \family typewriter
5658 \lang american
5659
5660 \backslash
5661 email
5662 \end_layout
5663
5664 \begin_layout Itemize
5665
5666 \change_inserted 564990737 1670794716
5667
5668 \family typewriter
5669 \lang american
5670
5671 \backslash
5672 inst{}
5673 \end_layout
5674
5675 \begin_layout Itemize
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \family typewriter
5680 \lang american
5681
5682 \backslash
5683 keywords{}
5684 \end_layout
5685
5686 \begin_layout Itemize
5687
5688 \change_inserted 564990737 1670794716
5689
5690 \family typewriter
5691 \lang american
5692
5693 \backslash
5694 object{}
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 If you want to use any of these commands, you have to enter them yourself.
5703  
5704 \family typewriter
5705 Do not forget to use
5706 \family sans
5707  
5708 \bar under
5709 I
5710 \bar default
5711 nsert\SpecialChar menuseparator
5712 \SpecialChar TeX
5713
5714 \begin_inset space ~
5715 \end_inset
5716
5717 Code
5718 \family default
5719 \series bold
5720 !
5721 \end_layout
5722
5723 \begin_layout Subsubsection
5724
5725 \change_inserted 564990737 1670794716
5726
5727 \lang american
5728 Figure and Table Floats
5729 \end_layout
5730
5731 \begin_layout Standard
5732
5733 \change_inserted 564990737 1670794716
5734
5735 \lang american
5736 \SpecialChar LyX
5737  provides support for the necessary float environments 
5738 \family sans
5739 figure, figure*, table
5740 \family default
5741  and 
5742 \family sans
5743 table*
5744 \family default
5745 , therefore we won't tell much about it here.
5746  Refer to the 
5747 \emph on
5748 User's
5749 \begin_inset space ~
5750 \end_inset
5751
5752 Guide
5753 \emph default
5754 .
5755  Just remember that tables should be left-aligned.
5756  For that, select the table and change the alignment in 
5757 \family sans
5758 \bar under
5759 E
5760 \bar default
5761 dit\SpecialChar menuseparator
5762
5763 \bar under
5764 P
5765 \bar default
5766 aragraph
5767 \begin_inset space ~
5768 \end_inset
5769
5770 Settings.
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 There is only one special thing: the figures with a caption beside the figure.
5779  To create such a figure, you have to do the following:
5780 \end_layout
5781
5782 \begin_layout Enumerate
5783
5784 \change_inserted 564990737 1670794716
5785
5786 \lang american
5787 Create a wide figure float: 
5788 \family sans
5789 \bar under
5790 I
5791 \bar default
5792 nsert\SpecialChar menuseparator
5793 Flo
5794 \bar under
5795 a
5796 \bar default
5797 t\SpecialChar menuseparator
5798 Figure
5799 \family default
5800 , then, from within the float, use the menu 
5801 \family sans
5802 \bar under
5803 E
5804 \bar default
5805 dit\SpecialChar menuseparator
5806 Flo
5807 \bar under
5808 a
5809 \bar default
5810 t
5811 \begin_inset space ~
5812 \end_inset
5813
5814 Settings
5815 \family default
5816  and check 
5817 \family sans
5818 \bar under
5819 S
5820 \bar default
5821 pan
5822 \begin_inset space ~
5823 \end_inset
5824
5825 columns
5826 \family default
5827  in the 
5828 \family sans
5829 float
5830 \family default
5831  dialog.
5832 \end_layout
5833
5834 \begin_layout Enumerate
5835
5836 \change_inserted 564990737 1670794716
5837
5838 \lang american
5839 Enter your caption text.
5840 \end_layout
5841
5842 \begin_layout Enumerate
5843
5844 \change_inserted 564990737 1670794716
5845
5846 \lang american
5847 Press 
5848 \family sans
5849 Return
5850 \family default
5851  to move the cursor above the caption.
5852 \end_layout
5853
5854 \begin_layout Enumerate
5855
5856 \change_inserted 564990737 1670794716
5857
5858 \lang american
5859 Insert your figure
5860 \end_layout
5861
5862 \begin_layout Enumerate
5863
5864 \change_inserted 564990737 1670794716
5865
5866 \lang american
5867 Position the cursor after the figure and insert a horizontal fill by using
5868  the menu: 
5869 \family sans
5870 \bar under
5871 I
5872 \bar default
5873 nsert\SpecialChar menuseparator
5874 F
5875 \bar under
5876 o
5877 \bar default
5878 rmatting\SpecialChar menuseparator
5879 H
5880 \bar under
5881 o
5882 \bar default
5883 rizontal
5884 \begin_inset space ~
5885 \end_inset
5886
5887 Space
5888 \family default
5889  to open the 
5890 \family sans
5891 space
5892 \family default
5893  dialog and select the 
5894 \family sans
5895 Horizontal fill
5896 \family default
5897  option from the 
5898 \family sans
5899 \bar under
5900 S
5901 \bar default
5902 pacing
5903 \family default
5904  pull-down menu.
5905 \end_layout
5906
5907 \begin_layout Enumerate
5908
5909 \change_inserted 564990737 1670794716
5910
5911 \lang american
5912 Switch to \SpecialChar LaTeX
5913  mode: 
5914 \family sans
5915 M-c
5916 \begin_inset space ~
5917 \end_inset
5918
5919 t
5920 \family default
5921 .
5922 \end_layout
5923
5924 \begin_layout Enumerate
5925
5926 \change_inserted 564990737 1670794716
5927
5928 \lang american
5929 Enter 
5930 \family typewriter
5931
5932 \backslash
5933 parbox[b]{55mm}{
5934 \family default
5935  
5936 \emph on
5937 Do not close the brace!
5938 \end_layout
5939
5940 \begin_layout Enumerate
5941
5942 \change_inserted 564990737 1670794716
5943
5944 \lang american
5945 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5946  mode and insert
5947  the closing brace: 
5948 \family sans
5949 M-c
5950 \begin_inset space ~
5951 \end_inset
5952
5953 t
5954 \family default
5955  
5956 \family typewriter
5957 }
5958 \family default
5959 .
5960 \end_layout
5961
5962 \begin_layout Standard
5963
5964 \change_inserted 564990737 1671642458
5965
5966 \lang american
5967 Also, refer to the figures in the file in 
5968 \family sans
5969 \lang british
5970 File\SpecialChar menuseparator
5971 Open Example\SpecialChar menuseparator
5972 Articles\SpecialChar menuseparator
5973 Astronomy & Astrophysics
5974 \family default
5975 \lang american
5976 .
5977 \end_layout
5978
5979 \begin_layout Subsubsection
5980
5981 \change_inserted 564990737 1670794716
5982
5983 \lang american
5984 Referee layout
5985 \end_layout
5986
5987 \begin_layout Standard
5988
5989 \change_inserted 564990737 1670794716
5990
5991 \lang american
5992 For submission, the paper has to be formatted in a special double-spacing
5993  layout.
5994  For this purpose, you have to add the option 
5995 \family typewriter
5996 referee
5997 \family default
5998  to the 
5999 \family sans
6000 Cus
6001 \bar under
6002 t
6003 \bar default
6004 om Class
6005 \begin_inset space ~
6006 \end_inset
6007
6008 options
6009 \family default
6010  in the 
6011 \family sans
6012 \bar under
6013 D
6014 \bar default
6015 ocument\SpecialChar menuseparator
6016
6017 \bar under
6018 S
6019 \bar default
6020 ettings\SpecialChar menuseparator
6021 Document
6022 \begin_inset space ~
6023 \end_inset
6024
6025 Class
6026 \family default
6027  dialog.
6028  
6029 \end_layout
6030
6031 \begin_layout Subsubsection
6032
6033 \change_inserted 564990737 1670794716
6034
6035 \lang american
6036 The example paper
6037 \end_layout
6038
6039 \begin_layout Standard
6040
6041 \change_inserted 564990737 1671642520
6042
6043 \lang american
6044 The example in 
6045 \family sans
6046 \lang british
6047 File\SpecialChar menuseparator
6048 Open Example\SpecialChar menuseparator
6049 Articles\SpecialChar menuseparator
6050 Astronomy & Astrophysics
6051 \family default
6052 \lang american
6053  was written with \SpecialChar LyX
6054 .
6055  It is the example paper from the original macro package, 
6056 \family typewriter
6057 aa.dem
6058 \family default
6059  in the 
6060 \begin_inset CommandInset href
6061 LatexCommand href
6062 name "aa-package"
6063 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6064 literal "false"
6065
6066 \end_inset
6067
6068 , but translated to \SpecialChar LyX
6069  using the older unstructured abstract type.
6070  Use it for inspiration, and compare the \SpecialChar LaTeX
6071  code in 
6072 \family typewriter
6073 aa.dem
6074 \family default
6075  with the \SpecialChar LyX
6076  way of writing.
6077 \end_layout
6078
6079 \begin_layout Subsection
6080 AAS\SpecialChar TeX
6081
6082 \end_layout
6083
6084 \begin_layout Standard
6085 by 
6086 \noun on
6087 Mike Ressler
6088 \end_layout
6089
6090 \begin_layout Subsubsection
6091 Introduction
6092 \end_layout
6093
6094 \begin_layout Standard
6095 AAS\SpecialChar TeX
6096  is a set of macros produced by the American Astronomical Society to
6097  facilitate electronic manuscript submission to the three journals they
6098  publish: the Astrophysical Journal (including the Letters and Supplement),
6099  the Astronomical Journal, and the Publications of the Astronomical Society
6100  of the Pacific.
6101  \SpecialChar LyX
6102  has proven to be an excellent tool for generating these documents, especially
6103  given its equation, citation, and figure handling capabilities.
6104  \SpecialChar LyX
6105  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6106  is the version described here, or higher.
6107  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6108 2.09 and are fundamentally
6109  incompatible with \SpecialChar LyX
6110 .
6111  The AAS\SpecialChar TeX
6112  package may be downloaded from the AAS\SpecialChar TeX
6113  Web site
6114 \end_layout
6115
6116 \begin_layout Standard
6117 \begin_inset VSpace medskip
6118 \end_inset
6119
6120
6121 \end_layout
6122
6123 \begin_layout Standard
6124 \align center
6125 \begin_inset Flex URL
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129
6130 https://aas.org/aastex/aastex-downloads
6131 \end_layout
6132
6133 \end_inset
6134
6135
6136 \end_layout
6137
6138 \begin_layout Standard
6139 \begin_inset VSpace medskip
6140 \end_inset
6141
6142
6143 \end_layout
6144
6145 \begin_layout Standard
6146 A complete user guide is contained in that package and you should familiarize
6147  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6148 .
6149  \SpecialChar LyX
6150  will not reduce the need to figure out all the AAS\SpecialChar TeX
6151  commands, it will only
6152  reduce the drudgery of typing everything in.
6153  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6154  document conforms
6155  completely to the requirements of the journal to which you are submitting
6156  your paper.
6157 \end_layout
6158
6159 \begin_layout Subsubsection
6160 Starting a New Paper
6161 \end_layout
6162
6163 \begin_layout Standard
6164 I strongly suggest that you start with the AAS\SpecialChar TeX
6165  template file.
6166  Click on 
6167 \family sans
6168 File\SpecialChar menuseparator
6169 New from
6170 \family default
6171  
6172 \family sans
6173 Template
6174 \change_inserted 564990737 1671617265
6175 \SpecialChar menuseparator
6176 Articles\SpecialChar menuseparator
6177 American Astronomical Society
6178 \change_deleted 564990737 1671617310
6179
6180 \family default
6181 , enter the new file name, then choose the 
6182 \family typewriter
6183 aastex6.lyx
6184 \family default
6185  template
6186 \change_unchanged
6187 .
6188  This will show the most common fields found in a manuscript.
6189  Simply overwrite the existing text (including the brackets, 
6190 \family typewriter
6191 <>
6192 \family default
6193 ) with the correct information.
6194  Many of the AAS\SpecialChar TeX
6195  commands and environments can be implemented directly in
6196  \SpecialChar LyX
6197 , but some cannot.
6198  For commands such as these, the \SpecialChar LaTeX
6199  code must be entered directly and marked
6200  as such.
6201  Such commands are referred to as \SpecialChar TeX
6202  code, or Evil Red Text.
6203  I tried to minimize the amount of \SpecialChar TeX
6204  code needed in an AAS\SpecialChar TeX
6205  document.
6206 \end_layout
6207
6208 \begin_layout Subsubsection
6209 Finishing Your Paper
6210 \end_layout
6211
6212 \begin_layout Standard
6213 When the paper is finished to your satisfaction and previews/prints correctly,
6214  there are a few 
6215 \begin_inset Quotes eld
6216 \end_inset
6217
6218 postprocessing
6219 \begin_inset Quotes erd
6220 \end_inset
6221
6222  actions which need to be done before you submit it to the journals.
6223  
6224 \end_layout
6225
6226 \begin_layout Enumerate
6227 Export your paper as a \SpecialChar LaTeX
6228  file (
6229 \family sans
6230 File\SpecialChar menuseparator
6231 Export\SpecialChar menuseparator
6232 \SpecialChar LaTeX
6233
6234 \family default
6235 ).
6236  
6237 \end_layout
6238
6239 \begin_layout Enumerate
6240 Edit the resulting 
6241 \family typewriter
6242 .tex
6243 \family default
6244  file with your favorite text editor
6245 \end_layout
6246
6247 \begin_deeper
6248 \begin_layout Enumerate
6249 remove the comment lines before the 
6250 \family typewriter
6251
6252 \backslash
6253 documentclass
6254 \family default
6255  command
6256 \end_layout
6257
6258 \begin_layout Enumerate
6259 remove the 
6260 \family typewriter
6261
6262 \backslash
6263 usepackage...{fontenc}
6264 \family default
6265  line if it appears (usually just after 
6266 \family typewriter
6267
6268 \backslash
6269 documentclass
6270 \family default
6271 }; also remove the 
6272 \family typewriter
6273
6274 \backslash
6275 secnumdepth
6276 \family default
6277  line if it appears.
6278 \end_layout
6279
6280 \begin_layout Enumerate
6281 remove everything between (and including) the 
6282 \family typewriter
6283
6284 \backslash
6285 makeatletter
6286 \family default
6287  and 
6288 \family typewriter
6289
6290 \backslash
6291 makeatother
6292 \family default
6293  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6294  preamble
6295  (which should appear immediately after the 
6296 \begin_inset Quotes eld
6297 \end_inset
6298
6299 User specified \SpecialChar LaTeX
6300  commands
6301 \begin_inset Quotes erd
6302 \end_inset
6303
6304  comment in the 
6305 \family typewriter
6306 .tex
6307 \family default
6308  file).
6309 \end_layout
6310
6311 \end_deeper
6312 \begin_layout Enumerate
6313 Run the resulting file through \SpecialChar LaTeX
6314  to make sure it still processes correctly.
6315 \end_layout
6316
6317 \begin_layout Enumerate
6318 Reread the journal requirements to make sure your filenames and formats
6319  are correct.
6320 \end_layout
6321
6322 \begin_layout Enumerate
6323 Submit it.
6324 \end_layout
6325
6326 \begin_layout Subsubsection
6327 Comments On Specific Commands
6328 \end_layout
6329
6330 \begin_layout Standard
6331 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6332  commands: the
6333  AAS\SpecialChar TeX
6334  User Guide (
6335 \family typewriter
6336 aasguide.tex
6337 \family default
6338 ) gives a good description of each.
6339  Thus it's probably easiest for me to go down the list as found in the guide
6340  and offer comments where necessary.
6341  So let's begin \SpecialChar ldots
6342
6343 \end_layout
6344
6345 \begin_layout Paragraph
6346 Things that work as expected
6347 \end_layout
6348
6349 \begin_layout Standard
6350 Because they work as you might expect, I simply list them and the section
6351  they are found in: 
6352 \family typewriter
6353
6354 \backslash
6355 documentclass
6356 \family default
6357  (2.1.1), 
6358 \family typewriter
6359
6360 \backslash
6361 begin{document}
6362 \family default
6363  (2.2), 
6364 \family typewriter
6365
6366 \backslash
6367 title
6368 \family default
6369  (2.3), 
6370 \family typewriter
6371
6372 \backslash
6373 author
6374 \family default
6375  (2.3), 
6376 \family typewriter
6377
6378 \backslash
6379 affil
6380 \family default
6381  (2.3), 
6382 \family typewriter
6383
6384 \backslash
6385 abstract
6386 \family default
6387  (2.4), 
6388 \family typewriter
6389
6390 \backslash
6391 keywords
6392 \family default
6393  (2.5), 
6394 \family typewriter
6395
6396 \backslash
6397 section
6398 \family default
6399  (2.7), 
6400 \family typewriter
6401
6402 \backslash
6403 subsection
6404 \family default
6405  (2.7), 
6406 \family typewriter
6407
6408 \backslash
6409 subsubsection
6410 \family default
6411  (2.7), 
6412 \family typewriter
6413
6414 \backslash
6415 paragraph
6416 \family default
6417  (2.7), 
6418 \family typewriter
6419
6420 \backslash
6421 facility
6422 \family default
6423  (2.10), 
6424 \family typewriter
6425
6426 \backslash
6427 begin{displaymath}
6428 \family default
6429  (2.12), 
6430 \family typewriter
6431
6432 \backslash
6433 begin{equation}
6434 \family default
6435  (2.12), 
6436 \family typewriter
6437
6438 \backslash
6439 begin{eqnarray}
6440 \family default
6441  (2.12), 
6442 \family typewriter
6443
6444 \backslash
6445 begin{mathletters}
6446 \family default
6447  (2.12), 
6448 \family typewriter
6449
6450 \backslash
6451 begin{thebibliography}
6452 \family default
6453  (2.13.1), 
6454 \family typewriter
6455
6456 \backslash
6457 bibitem
6458 \family default
6459  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6460  graphicx figure commands (2.14.1), 
6461 \family typewriter
6462
6463 \backslash
6464 begin{table}
6465 \family default
6466  (2.15.4), 
6467 \family typewriter
6468
6469 \backslash
6470 begin{tabular}
6471 \family default
6472  (2.15.4), 
6473 \family typewriter
6474
6475 \backslash
6476 caption
6477 \family default
6478  (2.15.4), 
6479 \family typewriter
6480
6481 \backslash
6482 label
6483 \family default
6484  (2.15.4, amongst other places), 
6485 \family typewriter
6486
6487 \backslash
6488 tablerefs
6489 \family default
6490  (2.15.5), 
6491 \family typewriter
6492
6493 \backslash
6494 tablecomments
6495 \family default
6496  (2.15.5), 
6497 \family typewriter
6498
6499 \backslash
6500 url
6501 \family default
6502  (2.17.4), 
6503 \family typewriter
6504
6505 \backslash
6506 end{document}
6507 \family default
6508  (2.18).
6509 \end_layout
6510
6511 \begin_layout Standard
6512 The following style options also work correctly: 
6513 \family typewriter
6514 longabstract
6515 \family default
6516  (2.4), 
6517 \family typewriter
6518 preprint
6519 \family default
6520  (3.2.1), 
6521 \family typewriter
6522 preprint2
6523 \family default
6524  (3.2.2), 
6525 \family typewriter
6526 eqsecnum
6527 \family default
6528  (3.3), 
6529 \family typewriter
6530 flushrt
6531 \family default
6532  (3.4).
6533  Simply put them in the 
6534 \family sans
6535 Options
6536 \family default
6537  box in 
6538 \family sans
6539 Layout\SpecialChar menuseparator
6540 Document
6541 \family default
6542 .
6543 \end_layout
6544
6545 \begin_layout Paragraph
6546 Things that work, but require more comment
6547 \end_layout
6548
6549 \begin_layout Standard
6550 The following items work, but require a little more discussion:
6551 \end_layout
6552
6553 \begin_layout Itemize
6554 These items are reserved for use by the journal editors, but you can put
6555  them into the \SpecialChar LaTeX
6556  preamble if you feel compelled to do so: 
6557 \family typewriter
6558
6559 \backslash
6560 received
6561 \family default
6562
6563 \family typewriter
6564
6565 \backslash
6566 revised
6567 \family default
6568
6569 \family typewriter
6570
6571 \backslash
6572 accepted
6573 \family default
6574
6575 \family typewriter
6576
6577 \backslash
6578 ccc
6579 \family default
6580
6581 \family typewriter
6582
6583 \backslash
6584 cpright
6585 \family default
6586  (all from 2.1.3)
6587 \end_layout
6588
6589 \begin_layout Itemize
6590 These items may be placed in the \SpecialChar LaTeX
6591  preamble, and are included as blanks in
6592  the template file: 
6593 \family typewriter
6594
6595 \backslash
6596 slugcomment
6597 \family default
6598  (2.1.4), 
6599 \family typewriter
6600
6601 \backslash
6602 shorttitle
6603 \family default
6604  (2.1.5), 
6605 \family typewriter
6606
6607 \backslash
6608 shortauthors
6609 \family default
6610  (2.1.5)
6611 \end_layout
6612
6613 \begin_layout Itemize
6614
6615 \family typewriter
6616
6617 \backslash
6618 email
6619 \family default
6620  (2.3) – can only be used 
6621 \begin_inset Quotes eld
6622 \end_inset
6623
6624 standalone
6625 \begin_inset Quotes erd
6626 \end_inset
6627
6628 , not in the middle of a paragraph.
6629  Use \SpecialChar TeX
6630  code if you need to embed it.
6631 \end_layout
6632
6633 \begin_layout Itemize
6634
6635 \family typewriter
6636
6637 \backslash
6638 and
6639 \family default
6640  (2.3) – will have extra {} after it.
6641  This should not cause an error.
6642 \end_layout
6643
6644 \begin_layout Itemize
6645
6646 \family typewriter
6647
6648 \backslash
6649 notetoeditor
6650 \family default
6651  (2.6) – can only be used 
6652 \begin_inset Quotes eld
6653 \end_inset
6654
6655 standalone
6656 \begin_inset Quotes erd
6657 \end_inset
6658
6659 , not in the middle of a paragraph.
6660  Use \SpecialChar TeX
6661  code if you need to embed it.
6662 \end_layout
6663
6664 \begin_layout Itemize
6665
6666 \family typewriter
6667
6668 \backslash
6669 placetable
6670 \family default
6671  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6672  hand
6673 \end_layout
6674
6675 \begin_layout Itemize
6676
6677 \family typewriter
6678
6679 \backslash
6680 placefigure
6681 \family default
6682  (2.8) – same as for 
6683 \family typewriter
6684
6685 \backslash
6686 placetable
6687 \end_layout
6688
6689 \begin_layout Itemize
6690
6691 \family typewriter
6692
6693 \backslash
6694 acknowledgements
6695 \family default
6696  (2.9) – will have extra {} after it.
6697  This should not cause an error.
6698 \end_layout
6699
6700 \begin_layout Itemize
6701
6702 \family typewriter
6703
6704 \backslash
6705 appendix
6706 \family default
6707  (2.11) – will have extra {} after it.
6708  This should not cause an error.
6709 \end_layout
6710
6711 \begin_layout Itemize
6712
6713 \family typewriter
6714
6715 \backslash
6716 figcaption
6717 \family default
6718  (2.14.2) – you can insert an optional filename argument by placing the cursor
6719  at the beginning of the text and selecting 
6720 \family sans
6721 Insert\SpecialChar menuseparator
6722 Short Title
6723 \family default
6724 .
6725  
6726 \begin_inset Quotes eld
6727 \end_inset
6728
6729 Short Title
6730 \begin_inset Quotes erd
6731 \end_inset
6732
6733  inserts an optional argument of the type needed by 
6734 \family typewriter
6735
6736 \backslash
6737 figcaption
6738 \family default
6739 .
6740  Hopefully it will be renamed someday.
6741 \end_layout
6742
6743 \begin_layout Itemize
6744
6745 \family typewriter
6746
6747 \backslash
6748 objectname
6749 \family default
6750  (2.17.1) – same as 
6751 \family typewriter
6752
6753 \backslash
6754 figcaption
6755 \family default
6756  for the catalog ID optional parameter
6757 \end_layout
6758
6759 \begin_layout Itemize
6760
6761 \family typewriter
6762
6763 \backslash
6764 dataset
6765 \family default
6766  (2.17.1) – same as 
6767 \family typewriter
6768
6769 \backslash
6770 figcaption
6771 \family default
6772  for the catalog ID optional parameter
6773 \end_layout
6774
6775 \begin_layout Paragraph
6776 Things not implemented, use \SpecialChar TeX
6777  code
6778 \end_layout
6779
6780 \begin_layout Standard
6781
6782 \family typewriter
6783
6784 \backslash
6785 eqnum
6786 \family default
6787  (2.12), 
6788 \family typewriter
6789
6790 \backslash
6791 setcounter{equation}
6792 \family default
6793  (2.12), Journal name abbreviations (2.13.4), 
6794 \family typewriter
6795
6796 \backslash
6797 figurenum
6798 \family default
6799  (2.14.1), 
6800 \family typewriter
6801
6802 \backslash
6803 epsscale
6804 \family default
6805  (2.14.1), 
6806 \family typewriter
6807
6808 \backslash
6809 plotone
6810 \family default
6811  (2.14.1), 
6812 \family typewriter
6813
6814 \backslash
6815 plottwo
6816 \family default
6817  (2.14.1), 
6818 \family typewriter
6819
6820 \backslash
6821 tablenum
6822 \family default
6823  (2.15.4), 
6824 \family typewriter
6825
6826 \backslash
6827 tableline
6828 \family default
6829  (2.15.4, insert it as the first element in the lefthand cell after where
6830  you want it.
6831  Don't use any of \SpecialChar LyX
6832 's rules in the table), 
6833 \family typewriter
6834
6835 \backslash
6836 tablenotemark
6837 \family default
6838  (2.15.5), 
6839 \family typewriter
6840
6841 \backslash
6842 tablenotetext
6843 \family default
6844  (2.15.5), much of Misc (2.17, except 
6845 \family typewriter
6846
6847 \backslash
6848 objectname
6849 \family default
6850
6851 \family typewriter
6852
6853 \backslash
6854 dataset
6855 \family default
6856
6857 \family typewriter
6858
6859 \backslash
6860 url
6861 \family default
6862 , and 
6863 \family typewriter
6864
6865 \backslash
6866 email
6867 \family default
6868 ; see above), 
6869 \family typewriter
6870
6871 \backslash
6872 singlespace
6873 \family default
6874  (3.1), 
6875 \family typewriter
6876
6877 \backslash
6878 doublespace
6879 \family default
6880  (3.1), 
6881 \family typewriter
6882
6883 \backslash
6884 onecolumn
6885 \family default
6886  (3.2), 
6887 \family typewriter
6888
6889 \backslash
6890 twocolumn
6891 \family default
6892  (3.2)
6893 \end_layout
6894
6895 \begin_layout Paragraph
6896 Things that cannot be implemented
6897 \end_layout
6898
6899 \begin_layout Standard
6900 \SpecialChar ldots
6901  at least in any meaningful sort of way, so I suggest ignoring them.
6902  They are the references environment (2.13.3), and the deluxetable environment
6903  (2.15).
6904  If you really, really need to use deluxetable, I suggest editing it in
6905  a separate file with a text editor, then using 
6906 \family sans
6907 Insert\SpecialChar menuseparator
6908 Child
6909 \begin_inset space ~
6910 \end_inset
6911
6912 Document
6913 \family default
6914  to include it in your \SpecialChar LyX
6915  document.
6916  See 
6917 \change_deleted 564990737 1671642564
6918 the 
6919 \family typewriter
6920 aas_sample.lyx
6921 \family default
6922  file to see
6923 \change_inserted 564990737 1671642618
6924
6925 \family sans
6926 \lang british
6927 File\SpecialChar menuseparator
6928 Open Example\SpecialChar menuseparator
6929 Articles\SpecialChar menuseparator
6930 American Astronomical Society
6931 \change_unchanged
6932
6933 \family default
6934 \lang english
6935  
6936 \change_inserted 564990737 1671642621
6937 for 
6938 \change_unchanged
6939 an example of this.
6940 \end_layout
6941
6942 \begin_layout Subsubsection
6943 FAQs, Tips, Tricks, and Other Ruminations
6944 \end_layout
6945
6946 \begin_layout Paragraph
6947 Getting \SpecialChar LyX
6948  and AAS\SpecialChar TeX
6949  to cooperate
6950 \end_layout
6951
6952 \begin_layout Standard
6953 It can be a bit tricky to get \SpecialChar LyX
6954  to recognize a new layout and document class.
6955  When all else fails, do this:
6956 \end_layout
6957
6958 \begin_layout Enumerate
6959 Make certain that \SpecialChar LaTeX
6960  can find AAS\SpecialChar TeX
6961 .
6962  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6963  distribution into a
6964  directory completely unrelated to \SpecialChar LaTeX
6965  or AAS\SpecialChar TeX
6966  and run \SpecialChar LaTeX
6967  on 
6968 \family typewriter
6969 sample.tex
6970 \family default
6971 .
6972 \end_layout
6973
6974 \begin_layout Enumerate
6975 Make certain that 
6976 \family typewriter
6977 aastex.layout
6978 \family default
6979  appears in \SpecialChar LyX
6980 's 
6981 \family typewriter
6982 layouts
6983 \family default
6984  folder
6985 \end_layout
6986
6987 \begin_layout Enumerate
6988 Rerun 
6989 \family sans
6990 Tools\SpecialChar menuseparator
6991 Reconfigure
6992 \family default
6993  in \SpecialChar LyX
6994 , then restart \SpecialChar LyX
6995 .
6996 \end_layout
6997
6998 \begin_layout Enumerate
6999 Open a regular new file, not from a template.
7000  Does AAS\SpecialChar TeX
7001  appear in the class list in 
7002 \family sans
7003 Document\SpecialChar menuseparator
7004 Settings
7005 \family default
7006 ?
7007 \end_layout
7008
7009 \begin_layout Standard
7010 If you get a warning from an existing AAS\SpecialChar TeX
7011  document about not being able
7012  to find the AAS\SpecialChar TeX
7013  layout or a message about 
7014 \begin_inset Quotes eld
7015 \end_inset
7016
7017 You should not mix title layouts with normal ones
7018 \begin_inset Quotes erd
7019 \end_inset
7020
7021 , things haven't been installed correctly.
7022 \end_layout
7023
7024 \begin_layout Paragraph
7025 \SpecialChar LaTeX
7026  error processing a table 
7027 \end_layout
7028
7029 \begin_layout Standard
7030 \SpecialChar LyX
7031 , by default, attempts to center the table caption/title.
7032  This seems to produce a bad interaction in AAS\SpecialChar TeX
7033  so you should click somewhere
7034  in the caption/title, then select 
7035 \family sans
7036 Edit\SpecialChar menuseparator
7037 Paragraph
7038 \begin_inset space ~
7039 \end_inset
7040
7041 Settings
7042 \family default
7043 , then set the 
7044 \family sans
7045 Alignment
7046 \family default
7047  to 
7048 \family sans
7049 Block
7050 \family default
7051 .
7052  This took care of it for me.
7053 \end_layout
7054
7055 \begin_layout Paragraph
7056 References
7057 \end_layout
7058
7059 \begin_layout Standard
7060 A couple of things: 1) I have noticed some funny spacing in the reference
7061  entries in the text.
7062  When you enter the bibliography item data, make sure their is 
7063 \emph on
7064 no
7065 \emph default
7066  space between the last author and the parenthesis setting off the year;
7067  
7068 \emph on
7069 e.
7070 \begin_inset space \thinspace{}
7071 \end_inset
7072
7073 g.
7074 \begin_inset space \space{}
7075 \end_inset
7076
7077
7078 \emph default
7079 type 
7080 \family typewriter
7081 Ressler(1992)
7082 \family default
7083 , not 
7084 \family typewriter
7085 Ressler (1992)
7086 \family default
7087 .
7088  2) Entering the references at all is not obvious.
7089  The easiest thing is to start typing your first reference at the end of
7090  the document, then mark it as type 
7091 \family sans
7092 References
7093 \family default
7094 .
7095  That will put a small gray box in front of what you just typed.
7096  Click on the box to fill in the rest of the information.
7097  For new references, go to the end of an existing reference and press return.
7098  That will create a new line with its own box, etc.
7099 \end_layout
7100
7101 \begin_layout Paragraph
7102 Including EPS files
7103 \end_layout
7104
7105 \begin_layout Standard
7106 Even though AAS\SpecialChar TeX
7107  provides its own figure commands (
7108 \family typewriter
7109
7110 \backslash
7111 plotone
7112 \family default
7113 , for example), I much prefer \SpecialChar LaTeX
7114 's standard figure commands (with the default
7115  graphicx).
7116  You can insert the 
7117 \family typewriter
7118
7119 \backslash
7120 plotone
7121 \family default
7122 , etc.
7123 \begin_inset space ~
7124 \end_inset
7125
7126 commands as \SpecialChar TeX
7127  code into a Figure Float box if you desire, but I never have
7128  much luck getting the layout right.
7129  With the standard graphics, \SpecialChar LyX
7130  will insert a 
7131 \family typewriter
7132
7133 \backslash
7134 usepackage{graphicx}
7135 \family default
7136  command into the \SpecialChar LaTeX
7137  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7138  way,
7139  interspersing the figures in the text.
7140  I believe ApJ accepts figures exactly this way now; AJ might still use
7141  the 
7142 \begin_inset Quotes eld
7143 \end_inset
7144
7145 stack everything at the end
7146 \begin_inset Quotes erd
7147 \end_inset
7148
7149  technique.
7150 \end_layout
7151
7152 \begin_layout Paragraph
7153 Things I could have done, but didn't
7154 \end_layout
7155
7156 \begin_layout Standard
7157 There are a few 
7158 \begin_inset Quotes eld
7159 \end_inset
7160
7161 pretty
7162 \begin_inset Quotes erd
7163 \end_inset
7164
7165  things I could have implemented, but chose not to.
7166  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7167  window,
7168  even though it is double-spaced in the paper manuscript.
7169  Also, I chose not to make separate layouts for the preprint and preprint2
7170  styles.
7171  Since I assume you will spend most of your time in the plain manuscript
7172  mode anyway, I decided not to chew up more disk space with this.
7173  
7174 \end_layout
7175
7176 \begin_layout Subsubsection
7177 Final Caveat
7178 \end_layout
7179
7180 \begin_layout Standard
7181 Your mileage may vary.
7182  I've now had papers published by both ApJ and AJ that have had 98% of the
7183  effort done in \SpecialChar LyX
7184 ; the last 2% was the \SpecialChar LaTeX
7185  post-processing and a few cleanups.
7186  I have had no trouble with the submission process, and I'm sure the journals
7187  were never aware that there might be a difference.
7188  So, go forth and publish!
7189 \end_layout
7190
7191 \begin_layout Subsection
7192
7193 \change_inserted 564990737 1671442131
7194
7195 \lang american
7196 Chess
7197 \end_layout
7198
7199 \begin_layout Standard
7200
7201 \change_inserted 564990737 1671642768
7202
7203 \lang american
7204 The document class 
7205 \family sans
7206 article
7207 \begin_inset space \thinspace{}
7208 \end_inset
7209
7210 (Chess)
7211 \family default
7212  uses the 
7213 \family typewriter
7214 article.cls
7215 \family default
7216  document class together with the style 
7217 \family sans
7218 lyxskak.sty
7219 \family default
7220  to facilitate the description of chess games.
7221  See 
7222 \family sans
7223 \lang british
7224 File\SpecialChar menuseparator
7225 Open Example
7226 \lang english
7227 \SpecialChar menuseparator
7228 Articles\SpecialChar menuseparator
7229 Chess
7230 \family default
7231 \lang american
7232  where you will find 
7233 \family sans
7234 \lang english
7235 Game 1
7236 \family default
7237 \lang american
7238  and 
7239 \family sans
7240 \lang english
7241 Game 2
7242 \family default
7243 \lang american
7244 .
7245 \end_layout
7246
7247 \begin_layout Subsection
7248
7249 \change_inserted 564990737 1671042028
7250
7251 \lang american
7252 Elsevier
7253 \end_layout
7254
7255 \begin_layout Standard
7256
7257 \change_inserted 564990737 1671617396
7258
7259 \lang american
7260 The document class 
7261 \family sans
7262 article
7263 \begin_inset space \thinspace{}
7264 \end_inset
7265
7266 (Elsevier)
7267 \family default
7268  provides the 
7269 \family typewriter
7270 elsarticle.cls
7271 \family default
7272  document class.
7273  This provides the following additional environments: 
7274 \family sans
7275 Title
7276 \begin_inset space ~
7277 \end_inset
7278
7279 footnote
7280 \family default
7281
7282 \family sans
7283 Author
7284 \begin_inset space ~
7285 \end_inset
7286
7287 footnote
7288 \family default
7289
7290 \family sans
7291 Corresponding
7292 \begin_inset space ~
7293 \end_inset
7294
7295 author
7296 \family default
7297
7298 \family sans
7299 Address
7300 \family default
7301
7302 \family sans
7303 Email
7304 \family default
7305  and 
7306 \family sans
7307 Keywords
7308 \family default
7309 .
7310  A template is available in the menu 
7311 \family sans
7312 \bar under
7313 F
7314 \bar default
7315 ile\SpecialChar menuseparator
7316 New
7317 \begin_inset space ~
7318 \end_inset
7319
7320 fro
7321 \bar under
7322 m
7323 \bar default
7324
7325 \begin_inset space ~
7326 \end_inset
7327
7328 Template
7329 \lang english
7330 \SpecialChar menuseparator
7331 Articles\SpecialChar menuseparator
7332 Elsevier
7333 \family default
7334 \lang american
7335 .
7336  It has been customized with further environments and contains all the informati
7337 on you may need.
7338  However, the documentation is also available from 
7339 \begin_inset CommandInset href
7340 LatexCommand href
7341 name "CTAN"
7342 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7343 literal "false"
7344
7345 \end_inset
7346
7347 .
7348 \end_layout
7349
7350 \begin_layout Subsection
7351
7352 \change_inserted 564990737 1671042046
7353
7354 \lang american
7355 Paper
7356 \end_layout
7357
7358 \begin_layout Standard
7359
7360 \change_inserted 564990737 1671042046
7361
7362 \lang american
7363 The document class 
7364 \family sans
7365 article
7366 \begin_inset space \thinspace{}
7367 \end_inset
7368
7369 (paper)
7370 \family default
7371  provides an alternative to the 
7372 \family typewriter
7373 article.cls
7374 \family default
7375  document class.
7376  It provides similar functionality, but you might prefer this layout with
7377  sans serif sections, headings, and more.
7378 \end_layout
7379
7380 \begin_layout Subsection
7381 Rev\SpecialChar TeX
7382 4
7383 \end_layout
7384
7385 \begin_layout Standard
7386 by 
7387 \noun on
7388 Amir Karger
7389 \end_layout
7390
7391 \begin_layout Standard
7392 \begin_inset VSpace bigskip
7393 \end_inset
7394
7395
7396 \end_layout
7397
7398 \begin_layout Standard
7399 \noindent
7400 The 
7401 \family sans
7402 Revtex
7403 \begin_inset space ~
7404 \end_inset
7405
7406 4
7407 \family default
7408  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7409  4.0 (the 
7410 \begin_inset Formula $\beta$
7411 \end_inset
7412
7413  release of May, 1999) class.
7414 \end_layout
7415
7416 \begin_layout Standard
7417 \SpecialChar LyX
7418  has a 
7419 \family sans
7420 Revtex
7421 \family default
7422  textclass, which works with Rev\SpecialChar TeX
7423  3.1.
7424  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7425  2.09.
7426  That means that it doesn't interact very well with \SpecialChar LyX
7427 , which requires \SpecialChar LaTeX2e
7428 , although
7429  it has been kludged to work.
7430  Since Rev\SpecialChar TeX
7431  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7432 , \SpecialChar LyX
7433  with the
7434  
7435 \family sans
7436 Rev\SpecialChar TeX
7437
7438 \begin_inset space ~
7439 \end_inset
7440
7441 4
7442 \family default
7443  textclass should also be pretty easy to use.
7444 \end_layout
7445
7446 \begin_layout Standard
7447 These documents are supposed to be used in 
7448 \emph on
7449 addition
7450 \emph default
7451  to the Rev\SpecialChar TeX
7452  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7453  macros,
7454  and assume you'll know what to put in the preamble if necessary.
7455 \end_layout
7456
7457 \begin_layout Subsubsection
7458 Installation
7459 \end_layout
7460
7461 \begin_layout Standard
7462 All you need to do is install Rev\SpecialChar TeX
7463  4, as described in the package's README
7464  file.
7465  The package can be found at The Rev\SpecialChar TeX
7466  4 Web Site 
7467 \begin_inset Flex URL
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471
7472 http://publish.aps.org/revtex4/
7473 \end_layout
7474
7475 \end_inset
7476
7477 .
7478  Install it somewhere that \SpecialChar LaTeX
7479  can see it.
7480  Test it by trying to \SpecialChar LaTeX
7481  a short Rev\SpecialChar TeX
7482  4 document in some random directory (i.
7483 \begin_inset space \thinspace{}
7484 \end_inset
7485
7486 e.
7487 \begin_inset space \space{}
7488 \end_inset
7489
7490 not the directory where you installed the class file.) Then, if you reconfigure
7491  \SpecialChar LyX
7492 , it will find the class file and let you use the Rev\SpecialChar TeX
7493 4 textclass.
7494 \end_layout
7495
7496 \begin_layout Standard
7497 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7498  4 document
7499  using 
7500 \family typewriter
7501 tex2lyx
7502 \family default
7503 , or to use the 
7504 \family sans
7505 Revtex
7506 \begin_inset space ~
7507 \end_inset
7508
7509 4
7510 \family default
7511  template, found in the templates directory.
7512 \end_layout
7513
7514 \begin_layout Subsubsection
7515 Preamble Matter
7516 \end_layout
7517
7518 \begin_layout Standard
7519 Optional arguments to 
7520 \family typewriter
7521
7522 \backslash
7523 documentclass
7524 \family default
7525 , like 
7526 \begin_inset Quotes eld
7527 \end_inset
7528
7529 preprint
7530 \begin_inset Quotes erd
7531 \end_inset
7532
7533  and 
7534 \begin_inset Quotes eld
7535 \end_inset
7536
7537 aps
7538 \begin_inset Quotes erd
7539 \end_inset
7540
7541 , go in the 
7542 \family sans
7543 Extra
7544 \begin_inset space ~
7545 \end_inset
7546
7547 Options
7548 \family default
7549  field in the 
7550 \family sans
7551 Document
7552 \begin_inset space ~
7553 \end_inset
7554
7555 Layout
7556 \family default
7557  dialog, as usual.
7558  Remember that in Rev\SpecialChar TeX
7559 , at least one optional argument is required! 
7560 \end_layout
7561
7562 \begin_layout Standard
7563 Other preamble matter, like 
7564 \family typewriter
7565
7566 \backslash
7567 draft
7568 \family default
7569  etc.
7570 \begin_inset space ~
7571 \end_inset
7572
7573 goes in the 
7574 \family sans
7575 \SpecialChar LaTeX
7576
7577 \begin_inset space ~
7578 \end_inset
7579
7580 Preamble
7581 \family default
7582  dialog, also as usual.
7583 \end_layout
7584
7585 \begin_layout Subsubsection
7586 Layouts
7587 \end_layout
7588
7589 \begin_layout Standard
7590 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7591 4.0.
7592  For example, the Email layout corresponds to 
7593 \family typewriter
7594
7595 \backslash
7596 email{}
7597 \family default
7598 .
7599  Note that (at least as of Rev\SpecialChar TeX
7600  4.0 Beta), the 
7601 \family sans
7602 Address
7603 \family default
7604  and 
7605 \family sans
7606 Affiliation
7607 \family default
7608  layouts are exactly equivalent, so you shouldn't need to use both.
7609 \begin_inset Foot
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 In case you're curious, both were included so that 
7614 \family typewriter
7615 tex2lyx
7616 \family default
7617  would be able to translate both 
7618 \family typewriter
7619
7620 \backslash
7621 address
7622 \family default
7623  and 
7624 \family typewriter
7625
7626 \backslash
7627 affiliation
7628 \family default
7629 .
7630 \end_layout
7631
7632 \end_inset
7633
7634
7635 \end_layout
7636
7637 \begin_layout Subsubsection
7638 Important Notes
7639 \end_layout
7640
7641 \begin_layout Standard
7642 There are a couple of important unique aspects of Rev\SpecialChar TeX
7643  4 which might cause
7644  bugs that will be even more confusing in \SpecialChar LyX
7645 .
7646 \end_layout
7647
7648 \begin_layout Standard
7649 In Rev\SpecialChar TeX
7650 , the 
7651 \family typewriter
7652
7653 \backslash
7654 thanks
7655 \family default
7656  command goes 
7657 \emph on
7658 outside
7659 \emph default
7660  the 
7661 \family typewriter
7662
7663 \backslash
7664 author
7665 \family default
7666  command.
7667  The \SpecialChar LyX
7668  equivalent is that there is a separate Thanks layout.
7669  Do 
7670 \emph on
7671 not
7672 \emph default
7673  write footnotes in the 
7674 \family sans
7675 Author
7676 \family default
7677  layout, or weird things may happen.
7678  See the Rev\SpecialChar TeX
7679  4 documentation for more details.
7680 \end_layout
7681
7682 \begin_layout Standard
7683 Also, the 
7684 \family sans
7685 Author
7686 \begin_inset space ~
7687 \end_inset
7688
7689 Email
7690 \family default
7691
7692 \family sans
7693 Author
7694 \begin_inset space ~
7695 \end_inset
7696
7697 URL
7698 \family default
7699 , and 
7700 \family sans
7701 Thanks
7702 \family default
7703  layouts must be placed 
7704 \emph on
7705 in between
7706 \emph default
7707  the 
7708 \family sans
7709 Author
7710 \family default
7711  layout and the corresponding 
7712 \family sans
7713 Address
7714 \family default
7715  (or equivalent 
7716 \family sans
7717 Affiliation
7718 \family default
7719 ) layout.
7720  If you put the 
7721 \family sans
7722 Thanks
7723 \family default
7724  after the 
7725 \family sans
7726 Address
7727 \family default
7728 , the \SpecialChar LaTeX
7729  won't compile.
7730 \end_layout
7731
7732 \begin_layout Subsection
7733
7734 \change_inserted 564990737 1671042072
7735
7736 \lang american
7737 Springer Journals
7738 \end_layout
7739
7740 \begin_layout Standard
7741
7742 \change_inserted 564990737 1671042072
7743
7744 \lang american
7745 All the 
7746 \family sans
7747 svj*
7748 \family default
7749  classes were replaced in 2013 with a completely new 
7750 \family sans
7751 sr-vorl.cls
7752 \family default
7753 .
7754  This package provides a \SpecialChar LaTeX
7755  class and templates for books to be published
7756  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7757  Research, Springer VS Research, or Springer VS Forschung.
7758  The documentation is available in German from 
7759 \begin_inset CommandInset href
7760 LatexCommand href
7761 name "CTAN"
7762 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7763 literal "false"
7764
7765 \end_inset
7766
7767 .
7768 \end_layout
7769
7770 \begin_layout Section
7771
7772 \change_inserted 564990737 1670439560
7773 Books
7774 \end_layout
7775
7776 \begin_layout Standard
7777
7778 \change_inserted 564990737 1670439581
7779 See also the document classes in the Collections (section
7780 \begin_inset space ~
7781 \end_inset
7782
7783
7784 \begin_inset CommandInset ref
7785 LatexCommand ref
7786 reference "sec:Collections"
7787
7788 \end_inset
7789
7790 ).
7791 \end_layout
7792
7793 \begin_layout Subsection
7794 Memoir
7795 \end_layout
7796
7797 \begin_layout Standard
7798 By 
7799 \noun on
7800 Jürgen Spitzmüller
7801 \end_layout
7802
7803 \begin_layout Subsubsection
7804 Overview
7805 \end_layout
7806
7807 \begin_layout Standard
7808 Memoir is a very powerful and constantly evolving class.
7809  It has been designed with regard to fictional and non-fictional literature.
7810  Its aim is to let the user have maximum control over the typesetting of
7811  his document.
7812  Memoir is based on the standard book class, but it can also emulate the
7813  article class (see below).
7814 \end_layout
7815
7816 \begin_layout Standard
7817 Peter Wilson, the developer of Memoir, is known as the author of lots of
7818  useful packages in the \SpecialChar LaTeX
7819  world.
7820  Most of them have been merged with Memoir.
7821  Therefore, it is much easier to layout the table of contents, appendices,
7822  chapter designs and such.
7823  \SpecialChar LyX
7824 , though, does not support all of these goodies natively.
7825  Some of them might be added to forthcoming releases
7826 \begin_inset Foot
7827 status collapsed
7828
7829 \begin_layout Plain Layout
7830 You are invited to send suggestions to 
7831 \begin_inset Flex URL
7832 status collapsed
7833
7834 \begin_layout Plain Layout
7835
7836 lyx-devel@lists.lyx.org
7837 \end_layout
7838
7839 \end_inset
7840
7841 .
7842 \end_layout
7843
7844 \end_inset
7845
7846 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7847 's framework.
7848  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7849
7850  commands (\SpecialChar TeX
7851  code
7852 \begin_inset Foot
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856 Cf.
7857 \begin_inset ERT
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861
7862
7863 \backslash
7864  
7865 \end_layout
7866
7867 \end_inset
7868
7869 section
7870 \begin_inset space ~
7871 \end_inset
7872
7873
7874 \begin_inset CommandInset ref
7875 LatexCommand ref
7876 reference "sec:Inserting-TeX-Code"
7877
7878 \end_inset
7879
7880  for details.
7881 \end_layout
7882
7883 \end_inset
7884
7885 ).
7886  In this section, we can only list those features that are natively supported
7887  by \SpecialChar LyX
7888 .
7889  For detailed descriptions (and for the rest of features) we recommend you
7890  have a look at the detailed manual of the Memoir class
7891 \begin_inset Foot
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 Cf.
7896 \begin_inset ERT
7897 status collapsed
7898
7899 \begin_layout Plain Layout
7900
7901
7902 \backslash
7903  
7904 \end_layout
7905
7906 \end_inset
7907
7908
7909 \begin_inset Flex URL
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913
7914 CTAN:/macros/latex/memoir/memman.pdf
7915 \end_layout
7916
7917 \end_inset
7918
7919 .
7920 \end_layout
7921
7922 \end_inset
7923
7924 , which is not only a user guide for the class, but also both a comprehensive
7925  description on good typesetting and a superb example for good typesetting
7926  itself.
7927 \end_layout
7928
7929 \begin_layout Subsubsection
7930 Basic features and restrictions
7931 \end_layout
7932
7933 \begin_layout Standard
7934 Memoir supports basically all features of the standard book classes.
7935  There are, however, some differences, as follows:
7936 \end_layout
7937
7938 \begin_layout Description
7939 Font
7940 \begin_inset space ~
7941 \end_inset
7942
7943 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7944 \end_layout
7945
7946 \begin_layout Description
7947 Page
7948 \begin_inset space ~
7949 \end_inset
7950
7951 style: The fancy page style is not supported, due to a command clash between
7952  Memoir and the fancyhdr package (they both define a command with the same
7953  name, which confuses \SpecialChar LaTeX
7954 ).
7955  Instead, Memoir comes with a number of its own page styles (see 
7956 \family sans
7957 Document\SpecialChar menuseparator
7958 Settings\SpecialChar menuseparator
7959 Page
7960 \begin_inset space ~
7961 \end_inset
7962
7963 Style
7964 \family default
7965 ).
7966  If you want to use these for the chapter pages, you have to use the command
7967  
7968 \family typewriter
7969
7970 \backslash
7971 chapterstyle
7972 \family default
7973  in the main text or in preamble (e.
7974 \begin_inset space \thinspace{}
7975 \end_inset
7976
7977 g.
7978 \begin_inset space \space{}
7979 \end_inset
7980
7981
7982 \family typewriter
7983
7984 \backslash
7985 chapterstyle{companion}
7986 \family default
7987 ).
7988 \end_layout
7989
7990 \begin_layout Description
7991 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7992  optional argument in the standard classes.
7993  With this, you can specify an alternative version of the title for the
7994  table of contents and the headers (for instance, if the title is too long).
7995  In \SpecialChar LyX
7996 , you can do this via 
7997 \family sans
7998 Insert\SpecialChar menuseparator
7999 Short
8000 \begin_inset space ~
8001 \end_inset
8002
8003 Title
8004 \family default
8005  at the beginning of a chapter/section.
8006  Memoir features a second optional argument and thus separates the table
8007  of contents from the header.
8008  You can define three variants of a title with this: one for the main text,
8009  one for the table of contents, and one for the headers.
8010  \SpecialChar LyX
8011  makes these available in form of specific 
8012 \family sans
8013 Short Title
8014 \family default
8015  variants in the 
8016 \family sans
8017 Insert
8018 \family default
8019  menu.
8020 \end_layout
8021
8022 \begin_layout Description
8023 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8024  of contents, the list of figures and the list of table start a new page
8025  automatically.
8026  Memoir does not follow this route.
8027  You have to insert a page break yourself, if you want to have one.
8028 \end_layout
8029
8030 \begin_layout Description
8031 Titlepage: For some unknown reason, Memoir uses pagination on the title
8032  page (in the standard classes, title pages are 
8033 \begin_inset Quotes eld
8034 \end_inset
8035
8036 empty
8037 \begin_inset Quotes erd
8038 \end_inset
8039
8040 ).
8041  If you want an empty title page, type 
8042 \family typewriter
8043
8044 \backslash
8045 aliaspagestyle{title}{empty}
8046 \family default
8047  in the preamble.
8048 \end_layout
8049
8050 \begin_layout Description
8051 Article: With the class option 
8052 \emph on
8053 article
8054 \emph default
8055  (to be inserted in 
8056 \family sans
8057 Document\SpecialChar menuseparator
8058 Settings\SpecialChar menuseparator
8059 Class Settings\SpecialChar menuseparator
8060 Custom
8061 \begin_inset space ~
8062 \end_inset
8063
8064 Options
8065 \family default
8066 ), you can emulate article style.
8067  That is, counters (footnotes, figures, tables etc.) will not be reset on
8068  new chapters, chapters don't start a new page (but are—in contrary to 
8069 \begin_inset Quotes eld
8070 \end_inset
8071
8072 real
8073 \begin_inset Quotes erd
8074 \end_inset
8075
8076  article classes—still allowed), parts, though, use their own page, as in
8077  book.
8078 \end_layout
8079
8080 \begin_layout Description
8081 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8082  font commands, which have been used in the old \SpecialChar LaTeX
8083  version 2.09 (e.
8084 \begin_inset space \thinspace{}
8085 \end_inset
8086
8087 g.
8088 \begin_inset space \space{}
8089 \end_inset
8090
8091
8092 \family typewriter
8093
8094 \backslash
8095 rm
8096 \family default
8097
8098 \family typewriter
8099
8100 \backslash
8101 it
8102 \family default
8103 ).
8104  It produces an error and stops \SpecialChar LaTeX
8105  whenever such a command appears.
8106  The class option 
8107 \emph on
8108 oldfontcommands
8109 \emph default
8110  reallows the commands and spits out warnings instead (which does at least
8111  not stop \SpecialChar LaTeX
8112 ).
8113  Since a lot of packages and particularly Bib\SpecialChar TeX
8114  style files are still using
8115  those commands, we have decided to use this option by default.
8116 \end_layout
8117
8118 \begin_layout Subsubsection
8119 Extra features
8120 \end_layout
8121
8122 \begin_layout Standard
8123 We will only describe the features supported by \SpecialChar LyX
8124  (which is not much currently).
8125  Please consult the Memoir manual
8126 \begin_inset Foot
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130 Cf.
8131 \begin_inset ERT
8132 status collapsed
8133
8134 \begin_layout Plain Layout
8135
8136
8137 \backslash
8138  
8139 \end_layout
8140
8141 \end_inset
8142
8143
8144 \begin_inset Flex URL
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148
8149 CTAN:/macros/latex/memoir/memman.pdf
8150 \end_layout
8151
8152 \end_inset
8153
8154 .
8155 \end_layout
8156
8157 \end_inset
8158
8159  for details.
8160 \end_layout
8161
8162 \begin_layout Description
8163 Abstract: You may wonder why an abstract is an extra feature.
8164  Well, it is in book class.
8165  Usually books don't have abstracts.
8166  Memoir, however, has.
8167  You can use it wherever and how often you like.
8168 \end_layout
8169
8170 \begin_layout Description
8171 Chapterprecis: You may know this older typesetting style: The contents of
8172  a chapter are summarized below the title and also in the table of contents
8173  (e.
8174 \begin_inset space \thinspace{}
8175 \end_inset
8176
8177 g.
8178 \begin_inset space \space{}
8179 \end_inset
8180
8181
8182 \emph on
8183 Our hero arrives in Troia; he loses some friends; he finds others
8184 \emph default
8185 ).
8186  Chapterprecis does exactly this.
8187  It is therefore only sensible below a chapter.
8188 \end_layout
8189
8190 \begin_layout Description
8191 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8192  The epigraph environment provides an elegant way of typesetting such a
8193  motto.
8194  The motto itself (text) and its (optional) author (source) are divided
8195  by a short line.
8196  The author (source) can be inserted via 
8197 \family sans
8198 Insert\SpecialChar menuseparator
8199 Epigraph Source
8200 \family default
8201 \emph on
8202 .
8203 \end_layout
8204
8205 \begin_layout Description
8206 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8207  complex figurative poems).
8208  \SpecialChar LyX
8209  can only support a few of them.
8210  One is poemtitle, which is a centered title for poems, which will also
8211  be added to the table of contents (verse is the standard environment for
8212  poems.
8213  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8214  code,
8215  because they have to be nested inside regular verse environments, which
8216  is not possible with \SpecialChar LyX
8217 ).
8218 \end_layout
8219
8220 \begin_layout Description
8221 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8222 \end_layout
8223
8224 \begin_layout Subsection
8225
8226 \change_inserted 564990737 1671442175
8227
8228 \lang american
8229 Recipe Book
8230 \end_layout
8231
8232 \begin_layout Standard
8233
8234 \change_inserted 564990737 1671442175
8235
8236 \lang american
8237 The document class 
8238 \family typewriter
8239 RecipeBook.cls
8240 \family default
8241  uses the 
8242 \family sans
8243 book
8244 \begin_inset space \thinspace{}
8245 \end_inset
8246
8247 (KOMA-Script)
8248 \family default
8249  document class but adds two environments:
8250 \end_layout
8251
8252 \begin_layout Description
8253
8254 \change_inserted 564990737 1671442175
8255
8256 \lang american
8257 Recipe a numbered section environment at the 
8258 \family typewriter
8259 Subsubsection
8260 \family default
8261  level which generates a bold centered heading above a double horizontal
8262  rule
8263 \end_layout
8264
8265 \begin_layout Description
8266
8267 \change_inserted 564990737 1671442175
8268
8269 \lang american
8270 Ingredients a 
8271 \family typewriter
8272 Description
8273 \family default
8274  environment where 
8275 \series bold
8276 \emph on
8277 Ingredients
8278 \series default
8279 \emph default
8280  are what are being described and the environment ends with a horizontal
8281  rule.
8282 \end_layout
8283
8284 \begin_layout Standard
8285
8286 \change_inserted 564990737 1671642866
8287
8288 \family sans
8289 \lang british
8290 File\SpecialChar menuseparator
8291 Open Example\SpecialChar menuseparator
8292 Books\SpecialChar menuseparator
8293 Recipe Book
8294 \family default
8295 \lang american
8296  illustrates its use.
8297 \end_layout
8298
8299 \begin_layout Standard
8300
8301 \change_inserted 564990737 1671442175
8302
8303 \lang american
8304 It is designed for typesetting one or two recipes per page, with dimensions
8305  of 5.5
8306 \begin_inset Quotes qrd
8307 \end_inset
8308
8309  x 8.5
8310 \begin_inset Quotes qrd
8311 \end_inset
8312
8313 .
8314  The hyperlinked table of contents (ToC) and page numbers make browsing
8315  recipes convenient, and the pages can be joined together or printed 2 per
8316  page to normal letterpaper easily.
8317  The size was chosen to work in half-page 3-ring binder cover sheets, because
8318  un-laminated paper just doesn't last in the kitchen.
8319 \end_layout
8320
8321 \begin_layout Standard
8322
8323 \change_inserted 564990737 1671442175
8324
8325 \lang american
8326 The half-letter pages can be printed two per page using your printer driver,
8327  or bound together using 
8328 \family typewriter
8329 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8330 \family default
8331  
8332 \family typewriter
8333 Recipes.pdf
8334 \family default
8335  where 
8336 \family typewriter
8337 Recipes.pdf
8338 \family default
8339  is the compiled version of your recipes.
8340 \end_layout
8341
8342 \begin_layout Section
8343
8344 \change_inserted 564990737 1671442207
8345 Curricula vitarum
8346 \end_layout
8347
8348 \begin_layout Subsection
8349
8350 \change_inserted 564990737 1671442208
8351
8352 \lang american
8353 Europass
8354 \end_layout
8355
8356 \begin_layout Standard
8357
8358 \change_inserted 564990737 1671642942
8359
8360 \lang american
8361 The document class 
8362 \family sans
8363 curriculum
8364 \begin_inset space \space{}
8365 \end_inset
8366
8367 vitae
8368 \begin_inset space \thinspace{}
8369 \end_inset
8370
8371 (Europass)
8372 \family default
8373  provides the 
8374 \family typewriter
8375 europasscv.cls
8376 \family default
8377  document class, an unofficial implementation of the ‘Europass CV’ recommended
8378  by the European Commission in 2013.
8379  
8380 \family sans
8381 \lang british
8382 File\SpecialChar menuseparator
8383 Open Example\SpecialChar menuseparator
8384 Curricula Vitae\SpecialChar menuseparator
8385 Europass CV (2013)
8386 \family default
8387 \lang american
8388  offers guidance on its use.
8389  Its documentation is available from 
8390 \begin_inset CommandInset href
8391 LatexCommand href
8392 name "CTAN"
8393 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8394 literal "false"
8395
8396 \end_inset
8397
8398 .
8399 \end_layout
8400
8401 \begin_layout Subsection
8402
8403 \change_inserted 564990737 1671442208
8404
8405 \lang american
8406 European
8407 \end_layout
8408
8409 \begin_layout Standard
8410
8411 \change_inserted 564990737 1671642984
8412
8413 \lang american
8414 The document class 
8415 \family sans
8416 curriculum
8417 \begin_inset space \space{}
8418 \end_inset
8419
8420 vitae
8421 \begin_inset space \thinspace{}
8422 \end_inset
8423
8424 (Europe)
8425 \family default
8426  provides the 
8427 \family typewriter
8428 europecv.cls
8429 \family default
8430  document class, an unofficial implementation of the “Europass CV” recommended
8431  by the European Commission in 2002.
8432  
8433 \family sans
8434 \lang british
8435 File\SpecialChar menuseparator
8436 Open Example\SpecialChar menuseparator
8437 Curricula Vitae\SpecialChar menuseparator
8438 Europe CV
8439 \family default
8440 \lang american
8441  offers guidance on its use.
8442  Its documentation is available from 
8443 \begin_inset CommandInset href
8444 LatexCommand href
8445 name "CTAN"
8446 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8447 literal "false"
8448
8449 \end_inset
8450
8451 .
8452 \end_layout
8453
8454 \begin_layout Subsection
8455
8456 \change_inserted 564990737 1671442208
8457
8458 \lang american
8459 Modern
8460 \end_layout
8461
8462 \begin_layout Standard
8463
8464 \change_inserted 564990737 1671643003
8465
8466 \lang american
8467 The document class 
8468 \family sans
8469 curriculum
8470 \begin_inset space \space{}
8471 \end_inset
8472
8473 vitae
8474 \begin_inset space \thinspace{}
8475 \end_inset
8476
8477 (modern)
8478 \family default
8479  provides the 
8480 \family typewriter
8481 moderncv.cls
8482 \family default
8483  document class.
8484  This allows the creation of customizable CVs.
8485  
8486 \family sans
8487 \lang british
8488 File\SpecialChar menuseparator
8489 Open Example\SpecialChar menuseparator
8490 Curricula Vitae\SpecialChar menuseparator
8491 Modern CV
8492 \family default
8493 \lang american
8494  offers guidance on its use.
8495  Its documentation is available from 
8496 \begin_inset CommandInset href
8497 LatexCommand href
8498 name "CTAN"
8499 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8500 literal "false"
8501
8502 \end_inset
8503
8504 .
8505 \end_layout
8506
8507 \begin_layout Subsection
8508
8509 \change_inserted 564990737 1671442208
8510
8511 \lang american
8512 Simple
8513 \end_layout
8514
8515 \begin_layout Standard
8516
8517 \change_inserted 564990737 1671643024
8518
8519 \lang american
8520 The document class 
8521 \family sans
8522 curriculum
8523 \begin_inset space \space{}
8524 \end_inset
8525
8526 vitae
8527 \begin_inset space \thinspace{}
8528 \end_inset
8529
8530 (simple)
8531 \family default
8532  provides the 
8533 \family typewriter
8534 simplecv.cls
8535 \family default
8536  document class, originally developed for use with \SpecialChar LyX
8537 .
8538  
8539 \family sans
8540 \lang british
8541 File\SpecialChar menuseparator
8542 Open Example\SpecialChar menuseparator
8543 Curricula Vitae\SpecialChar menuseparator
8544 Simple CV
8545 \family default
8546 \lang american
8547  offers guidance on its use.
8548  Its documentation is available from 
8549 \begin_inset CommandInset href
8550 LatexCommand href
8551 name "CTAN"
8552 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8553 literal "false"
8554
8555 \end_inset
8556
8557
8558 \end_layout
8559
8560 \begin_layout Section
8561
8562 \change_inserted 564990737 1671041968
8563 Letters
8564 \end_layout
8565
8566 \begin_layout Subsection
8567
8568 \change_inserted 564990737 1671041970
8569
8570 \lang american
8571 Din-Brief
8572 \end_layout
8573
8574 \begin_layout Standard
8575
8576 \change_inserted 564990737 1671617528
8577
8578 \lang american
8579 The document class 
8580 \family sans
8581 Din-Brief
8582 \family default
8583  provides the 
8584 \family typewriter
8585 dinbrief.cls
8586 \family default
8587  document class for writing letters according to the 
8588 \emph on
8589 Deutsches Institut für Normung
8590 \emph default
8591  conventions.
8592  The file in the menu 
8593 \family sans
8594 \bar under
8595 F
8596 \bar default
8597 ile\SpecialChar menuseparator
8598 New
8599 \begin_inset space ~
8600 \end_inset
8601
8602 fro
8603 \bar under
8604 m
8605 \bar default
8606
8607 \begin_inset space ~
8608 \end_inset
8609
8610 Template\SpecialChar menuseparator
8611 Letters\SpecialChar menuseparator
8612 DIN-Brief
8613 \family default
8614  offers guidance on its use.
8615  The documentation is available from 
8616 \begin_inset CommandInset href
8617 LatexCommand href
8618 name "CTAN"
8619 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8620 literal "false"
8621
8622 \end_inset
8623
8624 .
8625 \end_layout
8626
8627 \begin_layout Subsection
8628
8629 \change_inserted 564990737 1671458835
8630
8631 \lang american
8632 letter
8633 \end_layout
8634
8635 \begin_layout Standard
8636
8637 \change_inserted 564990737 1671617591
8638
8639 \lang american
8640 The document class 
8641 \family sans
8642 letter
8643 \family default
8644  provides the 
8645 \family sans
8646 letter.cls
8647 \family default
8648  document class for English letters and to create mailing labels.
8649  The file in the menu 
8650 \family sans
8651 \bar under
8652 F
8653 \bar default
8654 ile\SpecialChar menuseparator
8655 New
8656 \begin_inset space ~
8657 \end_inset
8658
8659 fro
8660 \bar under
8661 m
8662 \bar default
8663
8664 \begin_inset space ~
8665 \end_inset
8666
8667 Template\SpecialChar menuseparator
8668 Letters\SpecialChar menuseparator
8669 Letter (Standard Class)
8670 \family default
8671  offers guidance on its use.
8672 \end_layout
8673
8674 \begin_layout Section
8675
8676 \change_inserted 564990737 1670439660
8677 Presentations
8678 \end_layout
8679
8680 \begin_layout Subsection
8681
8682 \change_inserted 564990737 1671458922
8683
8684 \lang american
8685 Beamer
8686 \end_layout
8687
8688 \begin_layout Standard
8689
8690 \change_inserted 564990737 1671617655
8691
8692 \lang american
8693 The document class 
8694 \family sans
8695 presentation
8696 \begin_inset space \thinspace{}
8697 \end_inset
8698
8699 (beamer)
8700 \family default
8701  uses the 
8702 \family typewriter
8703 beamer.cls
8704 \family default
8705  document class for creating presentations.
8706  The file in the menu 
8707 \family sans
8708 \bar under
8709 F
8710 \bar default
8711 ile\SpecialChar menuseparator
8712 New
8713 \begin_inset space ~
8714 \end_inset
8715
8716 fro
8717 \bar under
8718 m
8719 \bar default
8720
8721 \begin_inset space ~
8722 \end_inset
8723
8724 Template\SpecialChar menuseparator
8725 Presentations\SpecialChar menuseparator
8726 Beamer
8727 \family default
8728  offers guidance on its use.
8729  The documentation is available from 
8730 \begin_inset CommandInset href
8731 LatexCommand href
8732 name "CTAN"
8733 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8734 literal "false"
8735
8736 \end_inset
8737
8738 .
8739 \end_layout
8740
8741 \begin_layout Subsection
8742 Foils [aka 
8743 \family sans
8744 Foil\SpecialChar TeX
8745
8746 \family default
8747 ]
8748 \begin_inset CommandInset label
8749 LatexCommand label
8750 name "sec:foiltex"
8751
8752 \end_inset
8753
8754
8755 \end_layout
8756
8757 \begin_layout Standard
8758 by 
8759 \noun on
8760 Allan Rae
8761 \end_layout
8762
8763 \begin_layout Subsubsection
8764 Introduction
8765 \end_layout
8766
8767 \begin_layout Standard
8768 This section describes how to use \SpecialChar LyX
8769  to make slides for overhead projectors.
8770  There are two document classes that can do this: the default slides class
8771  and the 
8772 \family sans
8773 Foil\SpecialChar TeX
8774
8775 \family default
8776  slides class.
8777  This section documents the latter.
8778 \end_layout
8779
8780 \begin_layout Standard
8781 I'm going to say this again, nice and clear, so that there's no misunderstanding
8782 :
8783 \end_layout
8784
8785 \begin_layout Standard
8786 \begin_inset VSpace bigskip
8787 \end_inset
8788
8789
8790 \end_layout
8791
8792 \begin_layout Standard
8793 \align center
8794
8795 \size large
8796 This section documents the class 
8797 \begin_inset Quotes eld
8798 \end_inset
8799
8800
8801 \family sans
8802 FoilTeX
8803 \family default
8804
8805 \begin_inset Quotes erd
8806 \end_inset
8807
8808  
8809 \emph on
8810 only.
8811 \end_layout
8812
8813 \begin_layout Standard
8814 \begin_inset VSpace bigskip
8815 \end_inset
8816
8817
8818 \end_layout
8819
8820 \begin_layout Standard
8821 If you're looking for the documentation for 
8822 \begin_inset Quotes eld
8823 \end_inset
8824
8825
8826 \family sans
8827 slides (default)
8828 \family default
8829
8830 \begin_inset Quotes erd
8831 \end_inset
8832
8833 , check out section
8834 \begin_inset space ~
8835 \end_inset
8836
8837
8838 \begin_inset CommandInset ref
8839 LatexCommand ref
8840 reference "sec:slitex"
8841
8842 \end_inset
8843
8844 .
8845  If your machine doesn't have the 
8846 \family sans
8847 foils
8848 \family default
8849  class 
8850 \family sans
8851 FoilTeX
8852 \family default
8853  installed, you'll probably have to use the default 
8854 \family sans
8855 slides
8856 \family default
8857  class, which isn't quite as good as 
8858 \family sans
8859 foils.
8860 \end_layout
8861
8862 \begin_layout Standard
8863 The 
8864 \family sans
8865 foils
8866 \family default
8867  class is designed for use with version
8868 \begin_inset space ~
8869 \end_inset
8870
8871 2.1 of the 
8872 \family sans
8873 foils.cls
8874 \family default
8875  \SpecialChar LaTeX
8876  class file which is now an integral part of \SpecialChar LaTeX2e
8877 .
8878 \end_layout
8879
8880 \begin_layout Subsubsection
8881 Getting Started
8882 \end_layout
8883
8884 \begin_layout Standard
8885 Obviously, to use this document class, you need to select 
8886 \family sans
8887 FoilTeX
8888 \family default
8889  from the 
8890 \family sans
8891 Class
8892 \family default
8893  entry in the 
8894 \family sans
8895 Document
8896 \begin_inset space ~
8897 \end_inset
8898
8899 Layout
8900 \family default
8901  dialog.
8902  There are some settings in the 
8903 \family sans
8904 Document
8905 \begin_inset space ~
8906 \end_inset
8907
8908 Layout
8909 \family default
8910  dialog that you should know about that are specific to this class:
8911 \end_layout
8912
8913 \begin_layout Itemize
8914 Don't change the options 
8915 \family sans
8916 Sides
8917 \family default
8918  and 
8919 \family sans
8920 Columns
8921 \family default
8922  on the 
8923 \family sans
8924 Document
8925 \begin_inset space ~
8926 \end_inset
8927
8928 Layout
8929 \family default
8930  dialog.
8931  They're ignored by the 
8932 \family sans
8933 foils
8934 \family default
8935  class.
8936 \end_layout
8937
8938 \begin_layout Itemize
8939 The default font size is 20
8940 \begin_inset space \thinspace{}
8941 \end_inset
8942
8943 pt with the other options being 17
8944 \begin_inset space \thinspace{}
8945 \end_inset
8946
8947 pt, 25
8948 \begin_inset space \thinspace{}
8949 \end_inset
8950
8951 pt and 30
8952 \begin_inset space \thinspace{}
8953 \end_inset
8954
8955 pt.
8956 \end_layout
8957
8958 \begin_layout Itemize
8959 The default font is 
8960 \family sans
8961 sans
8962 \family default
8963  
8964 \family sans
8965 serif
8966 \family default
8967  but all math equations are still typeset in the usual roman font.
8968 \end_layout
8969
8970 \begin_layout Itemize
8971
8972 \family sans
8973 Foil\SpecialChar TeX
8974
8975 \family default
8976  supports A4 and Letter paper sizes as well as a special size for working
8977  with 35
8978 \begin_inset space \thinspace{}
8979 \end_inset
8980
8981 mm slides.
8982  It doesn't support A5, B5, legal or executive paper sizes.
8983 \end_layout
8984
8985 \begin_layout Itemize
8986 Don't bother changing the 
8987 \family sans
8988 Float Placement
8989 \family default
8990  settings because they are ignored anyway.
8991  All floats appear where they are defined in the text.
8992 \end_layout
8993
8994 \begin_layout Itemize
8995 The 
8996 \family sans
8997 Pagestyle
8998 \family default
8999  setting behaves a bit differently for this class.
9000  
9001 \family sans
9002 Foil\SpecialChar TeX
9003
9004 \family default
9005  provides extensive footer and header capabilities including a user-defined
9006  logo.
9007  See section
9008 \begin_inset space ~
9009 \end_inset
9010
9011
9012 \begin_inset CommandInset ref
9013 LatexCommand ref
9014 reference "sec:foilfoot"
9015
9016 \end_inset
9017
9018  for more details.
9019  The title page is treated differently to all other pages in the document
9020  and is 
9021 \emph on
9022 always
9023 \emph default
9024  unnumbered and 
9025 \emph on
9026 always
9027 \emph default
9028  has the logo centered at the bottom of the page (if one is defined).
9029  The possible page style choices and what they do are as follows:
9030 \end_layout
9031
9032 \begin_deeper
9033 \begin_layout Labeling
9034 \labelwidthstring MMMMMMM
9035
9036 \family sans
9037 \series bold
9038 empty
9039 \family default
9040 \series default
9041  The final output contains no page numbers, or other headers or footers
9042  (except footnotes of course).
9043  
9044 \end_layout
9045
9046 \begin_layout Labeling
9047 \labelwidthstring MMMMMMM
9048
9049 \family sans
9050 \series bold
9051 plain
9052 \family default
9053 \series default
9054  The final output contains page numbers centered at the bottom of the page.
9055  No other headings or footers (other than footnotes).
9056 \end_layout
9057
9058 \begin_layout Labeling
9059 \labelwidthstring MMMMMMM
9060
9061 \series bold
9062 foilheadings
9063 \series default
9064  Page numbers in lower right corner.
9065  Additional headers and footers are also shown.
9066  This is also the default.
9067 \end_layout
9068
9069 \begin_layout Labeling
9070 \labelwidthstring MMMMMMM
9071
9072 \series bold
9073 fancy
9074 \series default
9075  Gives you access to the 
9076 \family sans
9077 fancyheadings
9078 \family default
9079  package although its use with 
9080 \family sans
9081 Foil\SpecialChar TeX
9082
9083 \family default
9084  is discouraged by the writer of the 
9085 \family sans
9086 Foil\SpecialChar TeX
9087
9088 \family default
9089  package because of some potential page layout clashes.
9090 \end_layout
9091
9092 \end_deeper
9093 \begin_layout Paragraph
9094 Extra Options
9095 \end_layout
9096
9097 \begin_layout Standard
9098 The following options may be used in the extra class options in the 
9099 \family sans
9100 Document\SpecialChar menuseparator
9101 Settings
9102 \family default
9103  dialog.
9104 \end_layout
9105
9106 \begin_layout Labeling
9107 \labelwidthstring MMMMMMx
9108
9109 \series bold
9110 35mmSlide
9111 \series default
9112  This sets up the page layout for 7.33
9113 \begin_inset space \thinspace{}
9114 \end_inset
9115
9116 in by 11
9117 \begin_inset space \thinspace{}
9118 \end_inset
9119
9120 in paper, which is about the same aspect ratio as a 35
9121 \begin_inset space \thinspace{}
9122 \end_inset
9123
9124 mm slide, making it a bit easier to work with this medium.
9125 \end_layout
9126
9127 \begin_layout Labeling
9128 \labelwidthstring MMMMMMx
9129
9130 \series bold
9131 headrule
9132 \series default
9133  Places a rule across the page below the header on every page except the
9134  title page.
9135 \end_layout
9136
9137 \begin_layout Labeling
9138 \labelwidthstring MMMMMMx
9139
9140 \series bold
9141 footrule
9142 \series default
9143  Places a rule across the page above the footer on every page except the
9144  title page.
9145 \end_layout
9146
9147 \begin_layout Labeling
9148 \labelwidthstring MMMMMMx
9149
9150 \series bold
9151 dvips
9152 \series default
9153  This is automatically set each time you create a new 
9154 \family sans
9155 foils
9156 \family default
9157  document.
9158  This option tells 
9159 \family sans
9160 Foil\SpecialChar TeX
9161
9162 \family default
9163  to use the dvips driver to rotate those pages that are set as landscape
9164  foils.
9165 \end_layout
9166
9167 \begin_layout Labeling
9168 \labelwidthstring MMMMMMx
9169
9170 \series bold
9171 landscape
9172 \series default
9173  Simply changes the page dimensions to those of a landscape page but doesn't
9174  do any rotation.
9175  Thus if you use this option you need to use an external program to rotate
9176  each page or feed your paper through your printer as landscape.
9177  Note that this option effectively reverses the roles of the 
9178 \family sans
9179 Foilhead
9180 \family default
9181  and 
9182 \family sans
9183 Rotatefoilhead
9184 \family default
9185  environments (don't worry these are described in the next section).
9186 \end_layout
9187
9188 \begin_layout Labeling
9189 \labelwidthstring MMMMMMx
9190
9191 \series bold
9192 leqno
9193 \series default
9194  Equation numbers on the left.
9195 \end_layout
9196
9197 \begin_layout Labeling
9198 \labelwidthstring MMMMMMx
9199
9200 \series bold
9201 fleqn
9202 \series default
9203  Flush-left equations.
9204 \end_layout
9205
9206 \begin_layout Subsubsection
9207 Supported Environments
9208 \end_layout
9209
9210 \begin_layout Standard
9211 Most of the environments commonly supported in other classes are also supported
9212  by the 
9213 \family sans
9214 foils
9215 \family default
9216  class.
9217  There are several additional environments provided by 
9218 \family sans
9219 Foil\SpecialChar TeX
9220
9221 \family default
9222  as well as a couple added by \SpecialChar LyX
9223 .
9224  The following environments are shared with other classes:
9225 \end_layout
9226
9227 \begin_layout Standard
9228 \begin_inset Flex Multiple Columns
9229 status open
9230
9231 \begin_layout Itemize
9232
9233 \family sans
9234 Standard
9235 \end_layout
9236
9237 \begin_layout Itemize
9238
9239 \family sans
9240 Itemize
9241 \end_layout
9242
9243 \begin_layout Itemize
9244
9245 \family sans
9246 Enumerate
9247 \end_layout
9248
9249 \begin_layout Itemize
9250
9251 \family sans
9252 Description
9253 \end_layout
9254
9255 \begin_layout Itemize
9256
9257 \family sans
9258 List
9259 \end_layout
9260
9261 \begin_layout Itemize
9262
9263 \family sans
9264 \SpecialChar LyX
9265 -Code
9266 \end_layout
9267
9268 \begin_layout Itemize
9269
9270 \family sans
9271 Verse
9272 \end_layout
9273
9274 \begin_layout Itemize
9275
9276 \family sans
9277 Quote
9278 \end_layout
9279
9280 \begin_layout Itemize
9281
9282 \family sans
9283 Quotation
9284 \end_layout
9285
9286 \begin_layout Itemize
9287
9288 \family sans
9289 TitleAuthor
9290 \end_layout
9291
9292 \begin_layout Itemize
9293
9294 \family sans
9295 Date
9296 \end_layout
9297
9298 \begin_layout Itemize
9299
9300 \family sans
9301 Abstract
9302 \end_layout
9303
9304 \begin_layout Itemize
9305
9306 \family sans
9307 Bibliography
9308 \end_layout
9309
9310 \begin_layout Itemize
9311
9312 \family sans
9313 Address
9314 \end_layout
9315
9316 \begin_layout Itemize
9317
9318 \family sans
9319 RightAddress
9320 \end_layout
9321
9322 \end_inset
9323
9324
9325 \end_layout
9326
9327 \begin_layout Standard
9328 That is, all the major environments apart from the sectioning environments.
9329  Since foils are essentially self-contained sections, with a title and body,
9330  
9331 \family sans
9332 Foil\SpecialChar TeX
9333
9334 \family default
9335  provides specific commands for starting new foils and these are:
9336 \end_layout
9337
9338 \begin_layout Itemize
9339
9340 \family sans
9341 Foilhead
9342 \end_layout
9343
9344 \begin_layout Itemize
9345
9346 \family sans
9347 Rotatefoilhead
9348 \end_layout
9349
9350 \begin_layout Standard
9351 \SpecialChar LyX
9352  also provides slightly modified versions of these two environments called:
9353 \end_layout
9354
9355 \begin_layout Itemize
9356
9357 \family sans
9358 ShortFoilhead
9359 \end_layout
9360
9361 \begin_layout Itemize
9362
9363 \family sans
9364 ShortRotatefoilhead
9365 \end_layout
9366
9367 \begin_layout Standard
9368 and the differences will be explained in the next section.
9369 \end_layout
9370
9371 \begin_layout Standard
9372 Since foils are often used in presenting ideas or new theorems and such
9373  
9374 \family sans
9375 Foil\SpecialChar TeX
9376
9377 \family default
9378  also provides a comprehensive box of goodies for presenting them:
9379 \end_layout
9380
9381 \begin_layout Standard
9382 \begin_inset Flex Multiple Columns
9383 status open
9384
9385 \begin_layout Itemize
9386
9387 \family sans
9388 Theorem
9389 \end_layout
9390
9391 \begin_layout Itemize
9392
9393 \family sans
9394 Lemma
9395 \end_layout
9396
9397 \begin_layout Itemize
9398
9399 \family sans
9400 Corollary
9401 \end_layout
9402
9403 \begin_layout Itemize
9404
9405 \family sans
9406 Proposition
9407 \end_layout
9408
9409 \begin_layout Itemize
9410
9411 \family sans
9412 Definition
9413 \end_layout
9414
9415 \begin_layout Itemize
9416
9417 \family sans
9418 Proof
9419 \end_layout
9420
9421 \begin_layout Itemize
9422
9423 \family sans
9424 Theorem*
9425 \end_layout
9426
9427 \begin_layout Itemize
9428
9429 \family sans
9430 Lemma*
9431 \end_layout
9432
9433 \begin_layout Itemize
9434
9435 \family sans
9436 Corollary*
9437 \end_layout
9438
9439 \begin_layout Itemize
9440
9441 \family sans
9442 Proposition*
9443 \end_layout
9444
9445 \begin_layout Itemize
9446
9447 \family sans
9448 Definition*
9449 \end_layout
9450
9451 \end_inset
9452
9453
9454 \end_layout
9455
9456 \begin_layout Standard
9457 The starred versions are unnumbered while the unstarred versions are numbered.
9458  There are also two list environments added by \SpecialChar LyX
9459  and these are:
9460 \end_layout
9461
9462 \begin_layout Itemize
9463
9464 \family sans
9465 TickList
9466 \end_layout
9467
9468 \begin_layout Itemize
9469
9470 \family sans
9471 CrossList
9472 \end_layout
9473
9474 \begin_layout Standard
9475
9476 \family sans
9477 Foil\SpecialChar TeX
9478
9479 \family default
9480  provides some powerful header and footer capabilities that are best set
9481  in the preamble although they may be set at any point in a document.
9482  If you want to change these settings in your document the best place to
9483  do so is at the very top of a foil, i.
9484 \begin_inset space \thinspace{}
9485 \end_inset
9486
9487 e.
9488 \emph on
9489
9490 \begin_inset space \space{}
9491 \end_inset
9492
9493
9494 \emph default
9495 straight after the foilhead.
9496 \end_layout
9497
9498 \begin_layout Standard
9499 For this purpose, the following command styles are provided [
9500 \shape smallcaps
9501 Martin Vermeer
9502 \shape default
9503 ]:
9504 \end_layout
9505
9506 \begin_layout Standard
9507 \begin_inset Flex Multiple Columns
9508 status open
9509
9510 \begin_layout Itemize
9511
9512 \family sans
9513 My
9514 \begin_inset space ~
9515 \end_inset
9516
9517 Logo
9518 \end_layout
9519
9520 \begin_layout Itemize
9521
9522 \family sans
9523 Restriction
9524 \end_layout
9525
9526 \begin_layout Itemize
9527
9528 \family sans
9529 Right
9530 \begin_inset space ~
9531 \end_inset
9532
9533 Footer
9534 \end_layout
9535
9536 \begin_layout Itemize
9537
9538 \family sans
9539 Right
9540 \begin_inset space ~
9541 \end_inset
9542
9543 Header
9544 \end_layout
9545
9546 \begin_layout Itemize
9547
9548 \family sans
9549 Left
9550 \begin_inset space ~
9551 \end_inset
9552
9553 Header
9554 \end_layout
9555
9556 \begin_deeper
9557 \begin_layout Plain Layout
9558 \begin_inset space ~
9559 \end_inset
9560
9561
9562 \end_layout
9563
9564 \end_deeper
9565 \end_inset
9566
9567
9568 \end_layout
9569
9570 \begin_layout Standard
9571 There are also a few commands provided by 
9572 \family sans
9573 Foil\SpecialChar TeX
9574
9575 \family default
9576  that aren't directly supported by \SpecialChar LyX
9577  but I'll tell you what they do and how
9578  to use them in section
9579 \begin_inset space ~
9580 \end_inset
9581
9582
9583 \begin_inset CommandInset ref
9584 LatexCommand ref
9585 reference "sec:unsuppfoils"
9586
9587 \end_inset
9588
9589 .
9590 \end_layout
9591
9592 \begin_layout Subsubsection
9593 Building a Set of Foils
9594 \end_layout
9595
9596 \begin_layout Standard
9597 This section will give a simple introduction to using the different environments
9598  to build a set of foils.
9599  If you want to see an example set of foils, take a look at 
9600 \change_deleted 564990737 1671643085
9601 the 
9602 \family typewriter
9603 Foils.lyx
9604 \family default
9605  file you find in \SpecialChar LyX
9606 's 
9607 \family typewriter
9608 examples
9609 \family default
9610  folder
9611 \change_inserted 564990737 1671643099
9612
9613 \family sans
9614 \lang british
9615 File\SpecialChar menuseparator
9616 Open Example
9617 \lang english
9618 \SpecialChar menuseparator
9619 Presentations\SpecialChar menuseparator
9620 Foils
9621 \change_unchanged
9622
9623 \family default
9624 .
9625 \end_layout
9626
9627 \begin_layout Paragraph
9628 Give It a Title Page
9629 \end_layout
9630
9631 \begin_layout Standard
9632 Unlike other classes that provide 
9633 \family sans
9634 Title
9635 \family default
9636
9637 \family sans
9638 Author
9639 \family default
9640
9641 \family sans
9642 Date
9643 \family default
9644  and 
9645 \family sans
9646 Abstract
9647 \family default
9648  environments, 
9649 \family sans
9650 foils
9651 \family default
9652  creates the title on a page of its own.
9653  If you leave out the 
9654 \family sans
9655 Date
9656 \family default
9657  environment \SpecialChar LaTeX
9658  will substitute the current date (every time you regenerate
9659  the output).
9660 \end_layout
9661
9662 \begin_layout Paragraph
9663 Start a New Foil
9664 \end_layout
9665
9666 \begin_layout Standard
9667 As I mentioned earlier, there are four ways of starting a new foil.
9668  For portrait foils you should use 
9669 \family sans
9670 Foilhead
9671 \family default
9672  or 
9673 \family sans
9674 ShortFoilhead.
9675
9676 \family default
9677  The difference between these two environments is the amount of space between
9678  the title of the foil (the foilhead) and the body of the foil.
9679 \end_layout
9680
9681 \begin_layout Standard
9682 Landscape foils are generated using the 
9683 \family sans
9684 Rotatefoilhead
9685 \family default
9686  and 
9687 \family sans
9688 ShortRotatefoilhead
9689 \family default
9690  environments.
9691  Again the only difference is the spacing between foilhead and body.
9692  Both of the short versions have 0.5
9693 \begin_inset space ~
9694 \end_inset
9695
9696 inches less separation between the foilhead and the body.
9697  
9698 \end_layout
9699
9700 \begin_layout Standard
9701 One problem with the support for landscape foils is the requirement that
9702  you have to use the 
9703 \family typewriter
9704 dvips
9705 \family default
9706  driver to generate the PostScript output otherwise the foils won't be rotated.
9707  It is possible to get landscape foils even if you haven't got the 
9708 \family typewriter
9709 dvips
9710 \family default
9711  driver provided you can feed your foils sideways through your printer ;-)
9712 \end_layout
9713
9714 \begin_layout Paragraph
9715 Theorems, Lemmas, Proofs and more
9716 \end_layout
9717
9718 \begin_layout Standard
9719 You can't have two of the same type of these environments directly following
9720  each other.
9721  If you use a normal paragraph break, , you will just be extending the previous
9722  environment as if you had merged the two environments together.
9723  Rather than that, you need to insert a so-called separator.
9724  Please refer to the section entitled 
9725 \emph on
9726 Separate Nestings
9727 \emph default
9728  in the 
9729 \emph on
9730 User's Guide
9731 \emph default
9732 .
9733 \end_layout
9734
9735 \begin_layout Paragraph
9736 Lists
9737 \end_layout
9738
9739 \begin_layout Standard
9740 You get all the commonly supported list styles found in other classes as
9741  well as two new ones.
9742  I'll only describe the new ones here.
9743  If you want to find out more about the other list environments check out
9744  the 
9745 \emph on
9746 User's Guide.
9747
9748 \emph default
9749  If you intend to use itemized lists you might also want to read about the
9750  
9751 \family sans
9752 Itemize
9753 \begin_inset space ~
9754 \end_inset
9755
9756 Bullet
9757 \begin_inset space ~
9758 \end_inset
9759
9760 Selection
9761 \family default
9762  dialog described above in section
9763 \begin_inset space ~
9764 \end_inset
9765
9766
9767 \change_inserted 564990737 1671355684
9768
9769 \begin_inset CommandInset ref
9770 LatexCommand ref
9771 reference "chap:bullets"
9772
9773 \end_inset
9774
9775
9776 \change_deleted 564990737 1671355684
9777
9778 \begin_inset CommandInset ref
9779 LatexCommand ref
9780 reference "sec:bullet"
9781
9782 \end_inset
9783
9784
9785 \change_unchanged
9786 .
9787 \end_layout
9788
9789 \begin_layout Standard
9790 The two new list styles, 
9791 \family sans
9792 TickList
9793 \family default
9794  and 
9795 \family sans
9796 CrossList
9797 \family default
9798 , are designed to make it easier for you to create lists of do's and don'ts
9799  or right and wrong by providing dedicated environments that use a tick
9800  or a cross as the label of the list.
9801  These lists are in fact dedicated variants of the 
9802 \family sans
9803 Itemize
9804 \family default
9805  environment.
9806  They do however require that you have the 
9807 \family typewriter
9808 psnfss
9809 \family default
9810  packages installed.
9811 \end_layout
9812
9813 \begin_layout Paragraph
9814 Figures and Tables
9815 \end_layout
9816
9817 \begin_layout Standard
9818
9819 \family sans
9820 Foil\SpecialChar TeX
9821
9822 \family default
9823  redefines the floating tables and figures so that they appear exactly where
9824  they are in the text rather than pushing them to the top of the page or
9825  to some user specified location.
9826  In fact if you change the float placement settings they are simply ignored.
9827 \end_layout
9828
9829 \begin_layout Paragraph
9830 Page Headers and Footers
9831 \begin_inset CommandInset label
9832 LatexCommand label
9833 name "sec:foilfoot"
9834
9835 \end_inset
9836
9837
9838 \end_layout
9839
9840 \begin_layout Standard
9841
9842 \family sans
9843 My
9844 \begin_inset space ~
9845 \end_inset
9846
9847 Logo
9848 \family default
9849  and 
9850 \family sans
9851 Restriction
9852 \family default
9853  are two commands used to control the left-footer text string.
9854  The first is meant to allow you to include a graphic logo on your foils
9855  and defaults to 
9856 \begin_inset Quotes eld
9857 \end_inset
9858
9859 -Typeset by 
9860 \family sans
9861 Foil\SpecialChar TeX
9862
9863 \family default
9864 -
9865 \begin_inset Quotes erd
9866 \end_inset
9867
9868 .
9869  While the second is meant to provide a classification for the audience,
9870  
9871 \emph on
9872 e.
9873 \begin_inset space \thinspace{}
9874 \end_inset
9875
9876 g.
9877 \emph default
9878
9879 \begin_inset space \space{}
9880 \end_inset
9881
9882 Confidential.
9883  It is empty by default.
9884 \end_layout
9885
9886 \begin_layout Standard
9887 The remaining page corners can be filled by 
9888 \family sans
9889 Right
9890 \begin_inset space ~
9891 \end_inset
9892
9893 Footer
9894 \family default
9895  (which defaults to page numbers), 
9896 \family sans
9897 Right
9898 \begin_inset space ~
9899 \end_inset
9900
9901 Header
9902 \family default
9903  (top right) and 
9904 \family sans
9905 Left
9906 \begin_inset space ~
9907 \end_inset
9908
9909 Header
9910 \family default
9911  (top left).
9912 \end_layout
9913
9914 \begin_layout Subsubsection
9915 Unsupported 
9916 \family sans
9917 Foil\SpecialChar TeX
9918
9919 \family default
9920  Goodies
9921 \begin_inset CommandInset label
9922 LatexCommand label
9923 name "sec:unsuppfoils"
9924
9925 \end_inset
9926
9927
9928 \end_layout
9929
9930 \begin_layout Standard
9931 All the commands mentioned below need to be set in a 
9932 \family sans
9933 \SpecialChar LaTeX
9934
9935 \family default
9936  environment or as 
9937 \family sans
9938 \SpecialChar TeX
9939
9940 \family default
9941  within another environment.
9942 \end_layout
9943
9944 \begin_layout Paragraph
9945 Lengths
9946 \end_layout
9947
9948 \begin_layout Standard
9949 All lengths are adjusted using the 
9950 \family typewriter
9951
9952 \backslash
9953 setlength{
9954 \family default
9955 \emph on
9956 lengthname
9957 \family typewriter
9958 \emph default
9959 }{
9960 \family default
9961 \emph on
9962 newlength
9963 \family typewriter
9964 \emph default
9965 }
9966 \family default
9967  command.
9968  Where 
9969 \emph on
9970 lengthname
9971 \emph default
9972  should be replaced by the name given to the length you want to change and
9973  
9974 \emph on
9975 newlength
9976 \emph default
9977  is the length value.
9978  All lengths should be specified in units of length such as inches (
9979 \family typewriter
9980 in
9981 \family default
9982 ), millimeters (
9983 \family typewriter
9984 mm
9985 \family default
9986 ) or points (
9987 \family typewriter
9988 pt
9989 \family default
9990 ) or relative to some document or font-based length such as 
9991 \family typewriter
9992
9993 \backslash
9994 textwidth
9995 \family default
9996 .
9997  
9998 \end_layout
9999
10000 \begin_layout Standard
10001 It's possible to change the spacing between a foilhead and the body of the
10002  foil by adjusting the length specified by 
10003 \family typewriter
10004
10005 \backslash
10006 foilheadskip
10007 \family default
10008 .
10009  For example, to make 
10010 \emph on
10011 all
10012 \emph default
10013  foilheads 0.5
10014 \begin_inset space \space{}
10015 \end_inset
10016
10017 in closer to their bodies put the following in the preamble: 
10018 \family typewriter
10019
10020 \backslash
10021 setlength{
10022 \backslash
10023 foilheadskip}{-0.5in}
10024 \end_layout
10025
10026 \begin_layout Standard
10027 The spacings around floats can be adjusted by setting these lengths:
10028 \end_layout
10029
10030 \begin_layout Labeling
10031 \labelwidthstring MMMMMMMMMMM
10032
10033 \family typewriter
10034
10035 \backslash
10036 abovefloatskip
10037 \family default
10038  Separation between the text and the top of the float
10039 \end_layout
10040
10041 \begin_layout Labeling
10042 \labelwidthstring MMMMMMMMMMM
10043
10044 \family typewriter
10045
10046 \backslash
10047 abovecaptionskip
10048 \family default
10049  Separation between the float and the caption
10050 \end_layout
10051
10052 \begin_layout Labeling
10053 \labelwidthstring MMMMMMMMMMM
10054
10055 \family typewriter
10056
10057 \backslash
10058 belowcaptionskip
10059 \family default
10060  Separation between the caption and the following text
10061 \end_layout
10062
10063 \begin_layout Labeling
10064 \labelwidthstring MMMMMMMMMMM
10065
10066 \family typewriter
10067
10068 \backslash
10069 captionwidth
10070 \family default
10071  You can make the captions narrower than the surrounding text by adjusting
10072  this length.
10073  Best done relative to 
10074 \family typewriter
10075
10076 \backslash
10077 textwidth
10078 \family default
10079 .
10080 \end_layout
10081
10082 \begin_layout Standard
10083 There are also several title page related lengths that you may find useful
10084  if you have a long title or several authors:
10085 \end_layout
10086
10087 \begin_layout Labeling
10088 \labelwidthstring MMMMMMMMMMM
10089
10090 \family typewriter
10091
10092 \backslash
10093 abovetitleskip
10094 \family default
10095  Separation from headers to 
10096 \family sans
10097 Title
10098 \end_layout
10099
10100 \begin_layout Labeling
10101 \labelwidthstring MMMMMMMMMMM
10102
10103 \family typewriter
10104
10105 \backslash
10106 titleauthorskip
10107 \family default
10108  between 
10109 \family sans
10110 Title
10111 \family default
10112  and 
10113 \family sans
10114 Author
10115 \family default
10116  environments
10117 \end_layout
10118
10119 \begin_layout Labeling
10120 \labelwidthstring MMMMMMMMMMM
10121
10122 \family typewriter
10123
10124 \backslash
10125 authorauthorskip
10126 \family default
10127  between multiple 
10128 \family sans
10129 Author
10130 \family default
10131  lines
10132 \end_layout
10133
10134 \begin_layout Labeling
10135 \labelwidthstring MMMMMMMMMMM
10136
10137 \family typewriter
10138
10139 \backslash
10140 authordateskip
10141 \family default
10142  between the 
10143 \family sans
10144 Author
10145 \family default
10146  and the 
10147 \family sans
10148 Date
10149 \end_layout
10150
10151 \begin_layout Labeling
10152 \labelwidthstring MMMMMMMMMMM
10153
10154 \family typewriter
10155
10156 \backslash
10157 dateabstractskip
10158 \family default
10159  between the 
10160 \family sans
10161 Date
10162 \family default
10163  and the 
10164 \family sans
10165 Abstract
10166 \end_layout
10167
10168 \begin_layout Standard
10169 The last length related command affects all the list environments.
10170  If you place 
10171 \family typewriter
10172
10173 \backslash
10174 zerolistvertdimens
10175 \family default
10176  
10177 \emph on
10178 inside
10179 \emph default
10180  a list environment then all the vertical spacing between the list items
10181  is removed.
10182  Note that this is a command not a length so it doesn't require 
10183 \family typewriter
10184
10185 \backslash
10186 setlength
10187 \family default
10188  like the stuff mentioned above.
10189 \end_layout
10190
10191 \begin_layout Paragraph
10192 Headers and Footers
10193 \end_layout
10194
10195 \begin_layout Standard
10196 The 
10197 \family typewriter
10198
10199 \backslash
10200 LogoOn
10201 \family default
10202  and 
10203 \family typewriter
10204
10205 \backslash
10206 LogoOff
10207 \family default
10208  commands control whether the logo in the 
10209 \family sans
10210 MyLogo
10211 \family default
10212  definition appear on a given page.
10213  If you put 
10214 \family typewriter
10215
10216 \backslash
10217 LogoOff
10218 \family default
10219  in the preamble then none of the foils will have the logo on them.
10220  If you don't want the logo on a particular page place the 
10221 \family typewriter
10222
10223 \backslash
10224 LogoOff
10225 \family default
10226  directly after the foilhead of that page and the 
10227 \family typewriter
10228
10229 \backslash
10230 LogoOn
10231 \family default
10232  directly after the next foilhead.
10233 \end_layout
10234
10235 \begin_layout Standard
10236 If you decide to use the 
10237 \family sans
10238 fancy
10239 \family default
10240  page style setting in the 
10241 \family sans
10242 Document
10243 \begin_inset space ~
10244 \end_inset
10245
10246 Layout
10247 \family default
10248  dialog you should probably add 
10249 \family typewriter
10250
10251 \backslash
10252 let
10253 \backslash
10254 headwidth
10255 \backslash
10256 textwidth
10257 \family default
10258  to your preamble so headers and footers on landscape pages are correctly
10259  placed when rotated.
10260  This is due to some clashes between the page layouts provided by the 
10261 \family sans
10262 fancyheadings
10263 \family default
10264  package and the 
10265 \family sans
10266 foils
10267 \family default
10268  class.
10269 \end_layout
10270
10271 \begin_layout Subsection
10272
10273 \change_inserted 564990737 1671459032
10274
10275 \lang american
10276 Powerdot
10277 \end_layout
10278
10279 \begin_layout Standard
10280
10281 \change_inserted 564990737 1671643165
10282
10283 \lang american
10284 The document class 
10285 \family sans
10286 presentation
10287 \begin_inset space \thinspace{}
10288 \end_inset
10289
10290 (powerdot)
10291 \family default
10292  uses the 
10293 \family typewriter
10294 powerdot.cls
10295 \family default
10296  document class for creating presentations.
10297  
10298 \family sans
10299 \lang british
10300 File\SpecialChar menuseparator
10301 Open Example\SpecialChar menuseparator
10302 Presentations\SpecialChar menuseparator
10303 Powerdot
10304 \family default
10305 \lang american
10306  offers guidance on its use.
10307  The documentation is available from 
10308 \begin_inset CommandInset href
10309 LatexCommand href
10310 name "CTAN"
10311 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10312 literal "false"
10313
10314 \end_inset
10315
10316 .
10317 \end_layout
10318
10319 \begin_layout Subsection
10320
10321 \change_inserted 564990737 1671459032
10322
10323 \lang american
10324 \begin_inset CommandInset label
10325 LatexCommand label
10326 name "subsec:Seminar"
10327
10328 \end_inset
10329
10330
10331 \family sans
10332 Seminar
10333 \end_layout
10334
10335 \begin_layout Standard
10336
10337 \change_inserted 564990737 1671643194
10338
10339 \lang american
10340 The document class 
10341 \family sans
10342 presentations
10343 \begin_inset space \thinspace{}
10344 \end_inset
10345
10346 (seminar)
10347 \family default
10348  uses the 
10349 \family typewriter
10350 seminar.cls
10351 \family default
10352  document class for creating presentations.
10353  
10354 \family sans
10355 \lang british
10356 File\SpecialChar menuseparator
10357 Open Example\SpecialChar menuseparator
10358 Presentations\SpecialChar menuseparator
10359 Seminar
10360 \family default
10361 \lang american
10362  offers guidance on its use.
10363  The documentation is available from 
10364 \begin_inset CommandInset href
10365 LatexCommand href
10366 name "CTAN"
10367 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10368 literal "false"
10369
10370 \end_inset
10371
10372 .
10373 \end_layout
10374
10375 \begin_layout Subsection
10376 Slides [aka 
10377 \noun on
10378 Sli\SpecialChar TeX
10379
10380 \noun default
10381 ]
10382 \begin_inset CommandInset label
10383 LatexCommand label
10384 name "sec:slitex"
10385
10386 \end_inset
10387
10388
10389 \end_layout
10390
10391 \begin_layout Standard
10392 by 
10393 \noun on
10394 John Weiss
10395 \noun default
10396  
10397 \end_layout
10398
10399 \begin_layout Subsubsection
10400 Introduction
10401 \end_layout
10402
10403 \begin_layout Standard
10404 This section describes how to use \SpecialChar LyX
10405  to make slides for overhead projectors.
10406  There are two document classes that can do this: the default slides class
10407  and the 
10408 \family sans
10409 Foil\SpecialChar TeX
10410
10411 \family default
10412  slides class.
10413  This section documents the former.
10414 \end_layout
10415
10416 \begin_layout Standard
10417 I'm going to say this again, nice and clear, so that there's no misunderstanding
10418 :
10419 \end_layout
10420
10421 \begin_layout Standard
10422 \begin_inset VSpace bigskip
10423 \end_inset
10424
10425
10426 \end_layout
10427
10428 \begin_layout Standard
10429 \align center
10430
10431 \size large
10432 This section documents the class 
10433 \begin_inset Quotes eld
10434 \end_inset
10435
10436
10437 \family sans
10438 slides (default)
10439 \family default
10440
10441 \begin_inset Quotes erd
10442 \end_inset
10443
10444  
10445 \emph on
10446 only.
10447 \end_layout
10448
10449 \begin_layout Standard
10450 \begin_inset VSpace bigskip
10451 \end_inset
10452
10453
10454 \end_layout
10455
10456 \begin_layout Standard
10457 If you're looking for the documentation for 
10458 \begin_inset Quotes eld
10459 \end_inset
10460
10461
10462 \family sans
10463 slides (Foil\SpecialChar TeX
10464 )
10465 \family default
10466
10467 \begin_inset Quotes erd
10468 \end_inset
10469
10470 , check out section
10471 \begin_inset space ~
10472 \end_inset
10473
10474
10475 \begin_inset CommandInset ref
10476 LatexCommand ref
10477 reference "sec:foiltex"
10478
10479 \end_inset
10480
10481 .
10482  The 
10483 \family sans
10484 foils
10485 \family default
10486  class [
10487 \begin_inset Quotes eld
10488 \end_inset
10489
10490
10491 \family sans
10492 slides (Foil\SpecialChar TeX
10493 )
10494 \family default
10495
10496 \begin_inset Quotes erd
10497 \end_inset
10498
10499 ] is actually somewhat better than the default 
10500 \family sans
10501 slides
10502 \family default
10503  class,
10504 \begin_inset Foot
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 \SpecialChar ldots
10509 or so I've been told repeatedly by its advocates.
10510  Having never used it, I have no idea if this claim is true or not.
10511 \end_layout
10512
10513 \end_inset
10514
10515  which this section documents.
10516 \end_layout
10517
10518 \begin_layout Standard
10519 This class is the \SpecialChar LaTeX2e
10520  improvement of the old 
10521 \noun on
10522 Sli\SpecialChar TeX
10523
10524 \noun default
10525  package.
10526  Every \SpecialChar LaTeX2e
10527  distribution includes this class [which I'll just refer to as 
10528 \begin_inset Quotes eld
10529 \end_inset
10530
10531
10532 \family sans
10533 slides
10534 \family default
10535
10536 \begin_inset Quotes erd
10537 \end_inset
10538
10539  from now on], so you're bound to have it.
10540  As I noted earlier, there are other classes, such as 
10541 \family sans
10542 foils
10543 \family default
10544 , which also produce slides for overhead projectors and do a better job
10545  at it.
10546  However, there are some things which 
10547 \family sans
10548 slides
10549 \family default
10550  can do which the others can't, such as generate overlays.
10551  Read on to learn more!
10552 \end_layout
10553
10554 \begin_layout Subsubsection
10555 Getting Started
10556 \begin_inset CommandInset label
10557 LatexCommand label
10558 name "sec:slidesetup"
10559
10560 \end_inset
10561
10562
10563 \end_layout
10564
10565 \begin_layout Standard
10566 Obviously, to use this document class, you need to select 
10567 \begin_inset Quotes eld
10568 \end_inset
10569
10570
10571 \family sans
10572 slides (default)
10573 \family default
10574
10575 \begin_inset Quotes erd
10576 \end_inset
10577
10578  from the class list in the 
10579 \family sans
10580 Document\SpecialChar menuseparator
10581 Settings
10582 \family default
10583  dialog.
10584  There are some other special things you should know about this class:
10585 \end_layout
10586
10587 \begin_layout Itemize
10588 Don't bother changing the options 
10589 \family sans
10590 Sides and Columns
10591 \family default
10592 .
10593  They're not supported by the 
10594 \family sans
10595 slides
10596 \family default
10597  class, anyways.
10598 \end_layout
10599
10600 \begin_layout Itemize
10601 The option 
10602 \family sans
10603 Page
10604 \begin_inset space ~
10605 \end_inset
10606
10607 style
10608 \family default
10609  behaves a bit differently for this class.
10610  The possible choices and what they do are as follows:
10611 \end_layout
10612
10613 \begin_deeper
10614 \begin_layout Description
10615
10616 \family sans
10617 plain
10618 \family default
10619  The final output contains page numbers in the lower right corner.
10620 \end_layout
10621
10622 \begin_layout Description
10623
10624 \family sans
10625 headings
10626 \family default
10627  Like 
10628 \family sans
10629 plain
10630 \family default
10631 , but also prints out any time markers you've put in.
10632  This is the default.
10633 \end_layout
10634
10635 \begin_layout Description
10636
10637 \family sans
10638 empty
10639 \family default
10640  The final output contains no page numbers, time markers, or alignment markers.
10641 \end_layout
10642
10643 \end_deeper
10644 \begin_layout Itemize
10645 The 
10646 \family sans
10647 slides
10648 \family default
10649  class has an extra option: 
10650 \family typewriter
10651 clock
10652 \family default
10653 .
10654  To use it, put 
10655 \begin_inset Quotes eld
10656 \end_inset
10657
10658
10659 \family typewriter
10660 clock
10661 \family default
10662
10663 \begin_inset Quotes erd
10664 \end_inset
10665
10666  in the extra class options.
10667 \end_layout
10668
10669 \begin_deeper
10670 \begin_layout Standard
10671 Using this options allows you to add time markers to 
10672 \family sans
10673 Note
10674 \family default
10675 s.
10676  See section
10677 \begin_inset space ~
10678 \end_inset
10679
10680
10681 \begin_inset CommandInset ref
10682 LatexCommand ref
10683 reference "sec:slideNote"
10684
10685 \end_inset
10686
10687  for more details.
10688 \end_layout
10689
10690 \end_deeper
10691 \begin_layout Standard
10692 You can also use the template file
10693 \change_deleted 564990737 1671617694
10694  
10695 \begin_inset Quotes eld
10696 \end_inset
10697
10698
10699 \family typewriter
10700 slides.lyx
10701 \family default
10702
10703 \begin_inset Quotes erd
10704 \end_inset
10705
10706
10707 \change_unchanged
10708  to automatically set up a document to use the 
10709 \family sans
10710 slides
10711 \family default
10712  class 
10713 \change_deleted 564990737 1671617699
10714 [
10715 \change_unchanged
10716 using 
10717 \family sans
10718 File\SpecialChar menuseparator
10719 New
10720 \begin_inset space ~
10721 \end_inset
10722
10723 from
10724 \begin_inset space ~
10725 \end_inset
10726
10727 Template
10728 \change_inserted 564990737 1671617723
10729 \SpecialChar menuseparator
10730 Presentations\SpecialChar menuseparator
10731 Slides
10732 \change_unchanged
10733
10734 \family default
10735  to open your new document
10736 \change_deleted 564990737 1671617728
10737 ]
10738 \change_unchanged
10739 .
10740  The template file also contains some examples of the special paragraph
10741  environments used by this class.
10742  I'll describe those next.
10743 \end_layout
10744
10745 \begin_layout Subsubsection
10746 Paragraph Environments
10747 \end_layout
10748
10749 \begin_layout Paragraph
10750 Supported Environments
10751 \end_layout
10752
10753 \begin_layout Standard
10754 The first thing you'll notice when you start up a new 
10755 \family sans
10756 slides
10757 \family default
10758  document is the font size and type: it's the equivalent of the size 
10759 \begin_inset Quotes eld
10760 \end_inset
10761
10762
10763 \family sans
10764 Largest
10765 \family default
10766
10767 \begin_inset Quotes erd
10768 \end_inset
10769
10770  in the 
10771 \family sans
10772 Sans
10773 \begin_inset space ~
10774 \end_inset
10775
10776 Serif
10777 \family default
10778  font.
10779  This is also what's used in the output.
10780  Think of this as a 
10781 \begin_inset Quotes eld
10782 \end_inset
10783
10784 visual cue
10785 \begin_inset Quotes erd
10786 \end_inset
10787
10788  to remind you that this is a slide.
10789  Your final slides will use a larger font; ergo, you'll have less space.
10790  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10791 \end_layout
10792
10793 \begin_layout Standard
10794 The next thing that becomes obvious is the changes to the paragraph environment
10795  pull-down box [at the far-left end of the toolbar].
10796  Most of the paragraph environments you're used to seeing are missing.
10797  There are also five new ones.
10798  That's because the 
10799 \family sans
10800 slides
10801 \family default
10802  class itself only supports certain paragraph environments:
10803 \end_layout
10804
10805 \begin_layout Itemize
10806
10807 \family sans
10808 Standard
10809 \end_layout
10810
10811 \begin_layout Itemize
10812
10813 \family sans
10814 Itemize
10815 \end_layout
10816
10817 \begin_layout Itemize
10818
10819 \family sans
10820 Enumerate
10821 \end_layout
10822
10823 \begin_layout Itemize
10824
10825 \family sans
10826 Description
10827 \end_layout
10828
10829 \begin_layout Itemize
10830
10831 \family sans
10832 List
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family sans
10838 Quotation
10839 \end_layout
10840
10841 \begin_layout Itemize
10842
10843 \family sans
10844 Quote
10845 \end_layout
10846
10847 \begin_layout Itemize
10848
10849 \family sans
10850 Verse
10851 \end_layout
10852
10853 \begin_layout Itemize
10854
10855 \family sans
10856 Caption
10857 \end_layout
10858
10859 \begin_layout Itemize
10860
10861 \family sans
10862 \SpecialChar LyX
10863 -Code
10864 \end_layout
10865
10866 \begin_layout Standard
10867 All of the other standard environments, including the section-heading environmen
10868 ts, aren't used in the 
10869 \family sans
10870 slides
10871 \family default
10872  class.
10873 \end_layout
10874
10875 \begin_layout Standard
10876 On the other hand, you'll notice the following new environments:
10877 \end_layout
10878
10879 \begin_layout Itemize
10880
10881 \family sans
10882 Slide
10883 \end_layout
10884
10885 \begin_layout Itemize
10886
10887 \family sans
10888 Overlay
10889 \end_layout
10890
10891 \begin_layout Itemize
10892
10893 \family sans
10894 Note
10895 \end_layout
10896
10897 \begin_layout Itemize
10898
10899 \family sans
10900 InvisibleText
10901 \end_layout
10902
10903 \begin_layout Itemize
10904
10905 \family sans
10906 VisibleText
10907 \end_layout
10908
10909 \begin_layout Standard
10910 These five are kind of quirky, due to a 
10911 \begin_inset Quotes eld
10912 \end_inset
10913
10914 feature
10915 \begin_inset Quotes erd
10916 \end_inset
10917
10918  in \SpecialChar LyX
10919 .
10920  You see, \SpecialChar LyX
10921  doesn't permit you to nest any other paragraph environment into
10922  an empty environment.
10923  Now, that's fine and dandy, but it means that you wouldn't be able to start
10924  a slide with anything except plain text.
10925  To deal with this, I've performed a little 
10926 \begin_inset Quotes eld
10927 \end_inset
10928
10929 \SpecialChar LaTeX
10930  magic.
10931 \begin_inset Quotes erd
10932 \end_inset
10933
10934  
10935 \end_layout
10936
10937 \begin_layout Paragraph
10938 Quirks of the New Environments
10939 \begin_inset CommandInset label
10940 LatexCommand label
10941 name "sec:slideQuirk"
10942
10943 \end_inset
10944
10945
10946 \end_layout
10947
10948 \begin_layout Standard
10949 All five of the new paragraph environments are somewhat quirky due to inherent
10950  limitiations in the current version of \SpecialChar LyX
10951 .
10952  As I just mentioned, \SpecialChar LyX
10953  forbids environments that begin with another environment.
10954  To get around this, the 
10955 \family sans
10956 Slide
10957 \family default
10958  environment isn't a paragraph environment as described in the 
10959 \emph on
10960 User's Guide
10961 \emph default
10962 .
10963  
10964 \end_layout
10965
10966 \begin_layout Standard
10967 You should consider 
10968 \family sans
10969 Slide
10970 \family default
10971
10972 \family sans
10973 Overlay
10974 \family default
10975 , and 
10976 \family sans
10977 Note
10978 \family default
10979  to be 
10980 \begin_inset Quotes eld
10981 \end_inset
10982
10983 pseudo-environments.
10984 \begin_inset Quotes erd
10985 \end_inset
10986
10987  They look like a section heading or a 
10988 \begin_inset Quotes eld
10989 \end_inset
10990
10991
10992 \family sans
10993 Caption
10994 \family default
10995 ,
10996 \begin_inset Quotes erd
10997 \end_inset
10998
10999  but really begin a [and, if necessary, end the previous] paragraph environment.
11000  Likewise, treat 
11001 \family sans
11002 InvisibleText
11003 \family default
11004  and 
11005 \family sans
11006 VisibleText
11007 \family default
11008  as 
11009 \begin_inset Quotes eld
11010 \end_inset
11011
11012 pseudo-commands.
11013 \begin_inset Quotes erd
11014 \end_inset
11015
11016  These two perform some action.
11017 \end_layout
11018
11019 \begin_layout Standard
11020 A common feature of all five environments, 
11021 \family sans
11022 Slide
11023 \family default
11024
11025 \family sans
11026 Overlay
11027 \family default
11028
11029 \family sans
11030 Note
11031 \family default
11032
11033 \family sans
11034 InvisibleText
11035 \family default
11036  and 
11037 \family sans
11038 VisibleText
11039 \family default
11040 , is a rather long-ish label.
11041  The text following this label — ordinarily the contents of the paragraph
11042  environment — is utterly irrelevant for 
11043 \family sans
11044 Slide
11045 \family default
11046
11047 \family sans
11048 Overlay
11049 \family default
11050
11051 \family sans
11052 Note
11053 \family default
11054
11055 \family sans
11056 InvisibleText
11057 \family default
11058  and 
11059 \family sans
11060 VisibleText
11061 \family default
11062 .
11063  \SpecialChar LyX
11064  completely ignores it.
11065  In fact, you can leave these five environments completely empty.
11066  
11067 \end_layout
11068
11069 \begin_layout Standard
11070 While you don't 
11071 \emph on
11072 have
11073 \emph default
11074  to put any text after the rather long-ish label, you might want to.
11075  This could be a short description of the contents of the 
11076 \family sans
11077 Slide
11078 \family default
11079 , for example.
11080  In that case, enter your descriptive comment and hit 
11081 \family sans
11082 Return
11083 \family default
11084  as you normally would.
11085 \end_layout
11086
11087 \begin_layout Standard
11088 If, on the other hand, you don't want to enter any descriptive text, you'll
11089  hit another \SpecialChar LyX
11090  quirk.
11091  \SpecialChar LyX
11092 , like nature, abhors a vacuum, and will not let you start a new paragraph
11093  environment until you put something in the old one.
11094  So, do this:
11095 \end_layout
11096
11097 \begin_layout Itemize
11098 Start entering the text that will 
11099 \emph on
11100 follow
11101 \emph default
11102  the new 
11103 \family sans
11104 Slide
11105 \family default
11106
11107 \family sans
11108 Overlay
11109 \family default
11110
11111 \family sans
11112 Note
11113 \family default
11114
11115 \family sans
11116 InvisibleText
11117 \family default
11118  or 
11119 \family sans
11120 VisibleText
11121 \family default
11122 .
11123  
11124 \end_layout
11125
11126 \begin_layout Itemize
11127 Now move to the beginning of that paragraph.
11128  
11129 \end_layout
11130
11131 \begin_layout Itemize
11132 Next, hit 
11133 \family sans
11134 Return
11135 \family default
11136 .
11137  
11138 \end_layout
11139
11140 \begin_layout Itemize
11141 Finally, change this new, empty paragraph to a 
11142 \family sans
11143 Slide
11144 \family default
11145
11146 \family sans
11147 Overlay
11148 \family default
11149
11150 \family sans
11151 Note
11152 \family default
11153
11154 \family sans
11155 InvisibleText
11156 \family default
11157  or 
11158 \family sans
11159 VisibleText
11160 \family default
11161 .
11162  
11163 \end_layout
11164
11165 \begin_layout Standard
11166 Some future version of \SpecialChar LyX
11167  will, hopefully, resolve this quirkiness\SpecialChar ldots
11168
11169 \end_layout
11170
11171 \begin_layout Subsubsection
11172 Making a Presentation with 
11173 \family sans
11174 Slide
11175 \family default
11176
11177 \family sans
11178 Overlay
11179 \family default
11180  and 
11181 \family sans
11182 Note
11183 \end_layout
11184
11185 \begin_layout Paragraph
11186 Using the 
11187 \family sans
11188 Slide
11189 \family default
11190  Environment
11191 \end_layout
11192
11193 \begin_layout Standard
11194 If you're expecting this section to teach you how to actually make a presentatio
11195 n, you'll be sorely disappointed.
11196  Naturally, I'll describe all of the ways the 
11197 \family sans
11198 slides
11199 \family default
11200  class can assist you in preparing the materials for a presentation.
11201  Filling in the contents, however, is up to you.
11202  [Then again, that 
11203 \emph on
11204 is
11205 \emph default
11206  the \SpecialChar LyX
11207  philosophy.]
11208 \end_layout
11209
11210 \begin_layout Standard
11211 Choosing the 
11212 \family sans
11213 Slide
11214 \family default
11215  environment [in the manner described in section
11216 \begin_inset space ~
11217 \end_inset
11218
11219
11220 \begin_inset CommandInset ref
11221 LatexCommand ref
11222 reference "sec:slideQuirk"
11223
11224 \end_inset
11225
11226 ] tells \SpecialChar LyX
11227  to begin a new slide [duh].
11228  The label for this environment/
11229 \begin_inset Quotes erd
11230 \end_inset
11231
11232 pseudo-command
11233 \begin_inset Quotes erd
11234 \end_inset
11235
11236  is an 
11237 \begin_inset Quotes eld
11238 \end_inset
11239
11240 ASCII line,
11241 \begin_inset Quotes erd
11242 \end_inset
11243
11244  in cool blue, followed by the label, 
11245 \begin_inset Quotes eld
11246 \end_inset
11247
11248 NewSlide:
11249 \begin_inset Quotes erd
11250 \end_inset
11251
11252 .
11253  Any text or paragraph environments that follow this one go on the new slide.
11254  It's that simple.
11255 \end_layout
11256
11257 \begin_layout Standard
11258 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11259
11260  (this can be specified in the 
11261 \family sans
11262 Paragraph Layout
11263 \family default
11264  dialog).
11265  In fact, you'll want to, once you finish entering the contents of one slide.
11266  If you've entered more text than can physically fit on a slide, the extra
11267  overflows onto a new slide.
11268  I don't recommend doing this, however, since the overflow slide won't have
11269  any page number on it.
11270  Furthermore, it may interfere with any 
11271 \family sans
11272 Overlay
11273 \family default
11274  you've made to accompany the oversized 
11275 \family sans
11276 Slide
11277 \family default
11278 .
11279 \end_layout
11280
11281 \begin_layout Standard
11282 The 
11283 \family sans
11284 Overlay
11285 \family default
11286  and 
11287 \family sans
11288 Note
11289 \family default
11290  environments work the same way as the 
11291 \family sans
11292 Slide
11293 \family default
11294  environment.
11295  They both create an 
11296 \begin_inset Quotes eld
11297 \end_inset
11298
11299 ASCII line
11300 \begin_inset Quotes erd
11301 \end_inset
11302
11303  followed by a label [
11304 \begin_inset Quotes eld
11305 \end_inset
11306
11307 NewOverlay:
11308 \begin_inset Quotes erd
11309 \end_inset
11310
11311  and 
11312 \begin_inset Quotes eld
11313 \end_inset
11314
11315 NewNote:
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319 , respectively].
11320  The color is a stunning magenta instead of blue, and the 
11321 \begin_inset Quotes eld
11322 \end_inset
11323
11324 ASCII line
11325 \begin_inset Quotes erd
11326 \end_inset
11327
11328  will look different, in style and in length.
11329  The label fonts of all three also differ from one another.
11330 \end_layout
11331
11332 \begin_layout Standard
11333 As with a 
11334 \family sans
11335 Slide
11336 \family default
11337 , if the contents of a 
11338 \family sans
11339 Note
11340 \family default
11341  or 
11342 \family sans
11343 Overlay
11344 \family default
11345  exceed the physical size of a slide or sheet of paper, the extra will overflow
11346  onto a new sheet.
11347  Again, you should avoid this.
11348  It defeats the whole purpose of 
11349 \family sans
11350 Note
11351 \family default
11352 s and 
11353 \family sans
11354 Overlay
11355 \family default
11356 s.
11357 \end_layout
11358
11359 \begin_layout Paragraph
11360 Using 
11361 \family sans
11362 Overlay
11363 \family default
11364  with 
11365 \family sans
11366 Slide
11367 \end_layout
11368
11369 \begin_layout Standard
11370 The idea behind an 
11371 \family sans
11372 Overlay
11373 \family default
11374  is a slide that sits atop another slide.
11375  Perhaps you wish to discuss a figure on the main 
11376 \family sans
11377 Slide
11378 \family default
11379  before displaying the text associated with it.
11380  One way to accomplish this is tape a flap of dark paper over the part of
11381  the 
11382 \family sans
11383 Slide
11384 \family default
11385  you want to display later.
11386  This method fails, however, if you wish to overlap one graph with another,
11387  for example.
11388  You would then have to fumble while speaking to align the two separate,
11389  overlapping 
11390 \family sans
11391 Slide
11392 \family default
11393 s to align the two graphs.
11394  The use of an 
11395 \family sans
11396 Overlay
11397 \family default
11398  environment in both cases makes life much easier.
11399 \end_layout
11400
11401 \begin_layout Standard
11402 Each 
11403 \family sans
11404 Overlay
11405 \family default
11406  receives the page number of its 
11407 \begin_inset Quotes eld
11408 \end_inset
11409
11410 parent
11411 \begin_inset Quotes erd
11412 \end_inset
11413
11414  
11415 \family sans
11416 Slide
11417 \family default
11418 , appended by 
11419 \begin_inset Quotes eld
11420 \end_inset
11421
11422
11423 \family typewriter
11424 -a
11425 \family default
11426
11427 \begin_inset Quotes erd
11428 \end_inset
11429
11430 .
11431 \begin_inset Foot
11432 status collapsed
11433
11434 \begin_layout Plain Layout
11435 Presumably, mutliple 
11436 \family sans
11437 Overlay
11438 \family default
11439 s would have 
11440 \begin_inset Quotes eld
11441 \end_inset
11442
11443
11444 \family typewriter
11445 -a
11446 \family default
11447
11448 \begin_inset Quotes erd
11449 \end_inset
11450
11451
11452 \begin_inset Quotes eld
11453 \end_inset
11454
11455
11456 \family typewriter
11457 -b
11458 \family default
11459
11460 \begin_inset Quotes erd
11461 \end_inset
11462
11463
11464 \begin_inset Quotes eld
11465 \end_inset
11466
11467
11468 \family typewriter
11469 -c
11470 \family default
11471
11472 \begin_inset Quotes erd
11473 \end_inset
11474
11475 , etc.
11476 \begin_inset space ~
11477 \end_inset
11478
11479 appended to the page number of the parent 
11480 \family sans
11481 Slide
11482 \family default
11483 .
11484  
11485 \end_layout
11486
11487 \end_inset
11488
11489  Clearly, you want the contents of both the 
11490 \family sans
11491 Slide
11492 \family default
11493  and the 
11494 \family sans
11495 Overlay
11496 \family default
11497  to each fit on a single physical slide! You should probably consider an
11498  
11499 \family sans
11500 Overlay
11501 \family default
11502  as 
11503 \begin_inset Quotes eld
11504 \end_inset
11505
11506 part of
11507 \begin_inset Quotes erd
11508 \end_inset
11509
11510  a 
11511 \family sans
11512 Slide
11513 \family default
11514 .
11515  Indeed, the \SpecialChar LyX
11516  
11517 \family sans
11518 slides
11519 \family default
11520  class provides a visual cue for this: the label at the start of an 
11521 \family sans
11522 Overlay
11523 \family default
11524  is shorter than that at the start of a 
11525 \family sans
11526 Slide
11527 \family default
11528 .
11529  Lastly, when you generate printable output, you'll find alignment markers
11530  in all four corners of both the 
11531 \family sans
11532 Overlay
11533 \family default
11534  page and its parent 
11535 \family sans
11536 Slide
11537 \family default
11538 .
11539  These will assist you in lining up the two physical slides.
11540 \end_layout
11541
11542 \begin_layout Standard
11543 The major problem in overlaying two slides is aligning the contents of the
11544  two transparencies.
11545  How much space should you leave for that graph on the second slide? Worse
11546  still, what if you want a graph and a sentence on second slide, but there
11547  is text on the main transparency that goes in between them? You could try
11548  and insert vertical space of the right size.
11549  The better way is to use 
11550 \family sans
11551 InvisibleText
11552 \family default
11553  and 
11554 \family sans
11555 VisibleText
11556 \family default
11557 .
11558 \end_layout
11559
11560 \begin_layout Standard
11561 As their names imply, 
11562 \family sans
11563 InvisibleText
11564 \family default
11565  and 
11566 \family sans
11567 VisibleText
11568 \family default
11569  are two command-like paragraph environments that make all subsequent text
11570  invisible and visible, respectively.
11571  Note from section
11572 \begin_inset space ~
11573 \end_inset
11574
11575
11576 \begin_inset CommandInset ref
11577 LatexCommand ref
11578 reference "sec:slideQuirk"
11579
11580 \end_inset
11581
11582  that you don't place anything 
11583 \emph on
11584 into
11585 \emph default
11586  these two environments, however.
11587  When you create an 
11588 \family sans
11589 InvisibleText
11590 \family default
11591 , it inserts a centered, sky-blue label into the page reading 
11592 \begin_inset Quotes eld
11593 \end_inset
11594
11595 <Invisible Text Follows>
11596 \begin_inset Quotes erd
11597 \end_inset
11598
11599 .
11600  For paragraphs following this label, the parts of the 
11601 \family sans
11602 Slide
11603 \family default
11604  [or 
11605 \family sans
11606 Overlay
11607 \family default
11608 ; it doesn't matter which] where they would be contain instead blank space.
11609  
11610 \end_layout
11611
11612 \begin_layout Standard
11613 For 
11614 \family sans
11615 VisibleText
11616 \family default
11617 , the corresponding centered label is 
11618 \begin_inset Quotes eld
11619 \end_inset
11620
11621 <Visible Text Follows>
11622 \begin_inset Quotes erd
11623 \end_inset
11624
11625  in blazing green.
11626  Paragraphs following this label behave normally.
11627  Note that the beginning of a new 
11628 \family sans
11629 Slide
11630 \family default
11631
11632 \family sans
11633 Overlay
11634 \family default
11635 , or 
11636 \family sans
11637 Note
11638 \family default
11639  automatically shuts off an 
11640 \family sans
11641 InvisibleText
11642 \family default
11643 .
11644  It's therefore not necessary to use 
11645 \family sans
11646 VisibleText
11647 \family default
11648  at the end of a 
11649 \family sans
11650 Slide
11651 \family default
11652 .
11653 \end_layout
11654
11655 \begin_layout Standard
11656 By now, it should be obvious how to create overlay transparencies using
11657  the proper combination of 
11658 \family sans
11659 InvisibleText
11660 \family default
11661  and 
11662 \family sans
11663 VisibleText
11664 \family default
11665  on a 
11666 \family sans
11667 Slide
11668 \family default
11669  and 
11670 \family sans
11671 Overlay
11672 \family default
11673 :
11674 \end_layout
11675
11676 \begin_layout Enumerate
11677 Create a 
11678 \family sans
11679 Slide
11680 \family default
11681 , including everything that will appear on it, whether on the main slide
11682  or on the 
11683 \family sans
11684 Overlay
11685 \family default
11686 .
11687 \end_layout
11688
11689 \begin_layout Enumerate
11690 Before each figure or paragraph that will appear only on the 
11691 \family sans
11692 Overlay
11693 \family default
11694 , insert an 
11695 \family sans
11696 InvisibleText
11697 \family default
11698  environment.
11699  If necessary, insert a 
11700 \family sans
11701 VisibleText
11702 \family default
11703  environment after the 
11704 \family sans
11705 Overlay
11706 \family default
11707 -only text.
11708 \end_layout
11709
11710 \begin_layout Enumerate
11711 Start an 
11712 \family sans
11713 Overlay
11714 \family default
11715  immediately following the 
11716 \family sans
11717 Slide
11718 \family default
11719 .
11720 \end_layout
11721
11722 \begin_layout Enumerate
11723 Copy the contents of this 
11724 \family sans
11725 Slide
11726 \family default
11727  into the 
11728 \family sans
11729 Overlay
11730 \family default
11731 .
11732 \end_layout
11733
11734 \begin_layout Enumerate
11735 Within the 
11736 \family sans
11737 Overlay
11738 \family default
11739 , change all of the 
11740 \family sans
11741 InvisibleText
11742 \family default
11743  lines to 
11744 \family sans
11745 VisibleText
11746 \family default
11747  and vice-versa.
11748 \end_layout
11749
11750 \begin_layout Standard
11751 That's it.
11752  You've just made an 
11753 \family sans
11754 Overlay
11755 \family default
11756 .
11757 \end_layout
11758
11759 \begin_layout Standard
11760 There's one problem with the way I've designed the \SpecialChar LyX
11761  
11762 \family sans
11763 slides
11764 \family default
11765  class: you can't make text in the middle of a paragraph invisible, nor
11766  make text in the middle of an invisible paragraph visible again.
11767  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11768  codes.
11769 \begin_inset Foot
11770 status collapsed
11771
11772 \begin_layout Plain Layout
11773 The commands of interest are: 
11774 \end_layout
11775
11776 \begin_layout Itemize
11777
11778 \family typewriter
11779 {
11780 \backslash
11781 invisible \SpecialChar ldots
11782  }
11783 \end_layout
11784
11785 \begin_layout Itemize
11786
11787 \family typewriter
11788 {
11789 \backslash
11790 visible \SpecialChar ldots
11791  }
11792 \end_layout
11793
11794 \begin_layout Plain Layout
11795 \SpecialChar ldots
11796 and need to be marked as \SpecialChar TeX
11797 .
11798  The text whose 
11799 \begin_inset Quotes eld
11800 \end_inset
11801
11802 visibility
11803 \begin_inset Quotes erd
11804 \end_inset
11805
11806  you wish to change goes in between the brackets [and after the 
11807 \family typewriter
11808
11809 \backslash
11810 invisible
11811 \family default
11812  or 
11813 \family typewriter
11814
11815 \backslash
11816 visible
11817 \family default
11818  command].
11819  If you don't know how to mark text as \SpecialChar TeX
11820 , see the appropriate section of
11821  the 
11822 \emph on
11823 User's Guide
11824 \emph default
11825 .
11826 \end_layout
11827
11828 \end_inset
11829
11830
11831 \end_layout
11832
11833 \begin_layout Paragraph
11834 Using 
11835 \family sans
11836 Note
11837 \family default
11838  with 
11839 \family sans
11840 Slide
11841 \family default
11842
11843 \begin_inset CommandInset label
11844 LatexCommand label
11845 name "sec:slideNote"
11846
11847 \end_inset
11848
11849
11850 \end_layout
11851
11852 \begin_layout Standard
11853 Like an 
11854 \family sans
11855 Overlay
11856 \family default
11857 , a 
11858 \family sans
11859 Note
11860 \family default
11861  is associated with a 
11862 \begin_inset Quotes eld
11863 \end_inset
11864
11865 parent
11866 \begin_inset Quotes erd
11867 \end_inset
11868
11869  
11870 \family sans
11871 Slide
11872 \family default
11873 .
11874  Here, too, the \SpecialChar LyX
11875  
11876 \family sans
11877 slides
11878 \family default
11879  class provides visual cues.
11880  The label for a 
11881 \family sans
11882 Note
11883 \family default
11884  is shorter than that of a 
11885 \family sans
11886 Slide
11887 \family default
11888  [yet longer than that of an 
11889 \family sans
11890 Overlay
11891 \family default
11892 ] and, like the label of an 
11893 \family sans
11894 Overlay
11895 \family default
11896  is shockingly magenta.
11897  Additionally, the printed 
11898 \family sans
11899 Note
11900 \family default
11901  has the page number of its 
11902 \begin_inset Quotes eld
11903 \end_inset
11904
11905 parent
11906 \begin_inset Quotes erd
11907 \end_inset
11908
11909  
11910 \family sans
11911 Slide
11912 \family default
11913 , appended by 
11914 \begin_inset Quotes eld
11915 \end_inset
11916
11917
11918 \family typewriter
11919 -
11920 \family default
11921 1
11922 \begin_inset Quotes erd
11923 \end_inset
11924
11925
11926 \begin_inset Quotes eld
11927 \end_inset
11928
11929
11930 \family typewriter
11931 -
11932 \family default
11933 2
11934 \begin_inset Quotes erd
11935 \end_inset
11936
11937
11938 \begin_inset Quotes eld
11939 \end_inset
11940
11941
11942 \family typewriter
11943 -
11944 \family default
11945 3
11946 \begin_inset Quotes erd
11947 \end_inset
11948
11949 , etc.
11950  You can have multiple 
11951 \family sans
11952 Note
11953 \family default
11954 s associated with a single 
11955 \family sans
11956 Slide
11957 \family default
11958 , and, as with 
11959 \family sans
11960 Slide
11961 \family default
11962  and 
11963 \family sans
11964 Overlay
11965 \family default
11966 , you'll probably want to break up long 
11967 \family sans
11968 Note
11969 \family default
11970 s so that they fit on a single sheet of paper.
11971 \end_layout
11972
11973 \begin_layout Standard
11974 The purpose of a 
11975 \family sans
11976 Note
11977 \family default
11978  is obvious: it contains anything additional you might want to say about
11979  a 
11980 \family sans
11981 Slide
11982 \family default
11983 .
11984  It could also be used as a sheet of reminders for a particular 
11985 \family sans
11986 Slide
11987 \family default
11988 .
11989  In the case of the latter, you might want to make use of time markers.
11990  Currently, the \SpecialChar LyX
11991  
11992 \family sans
11993 slides
11994 \family default
11995  class has no 
11996 \begin_inset Quotes eld
11997 \end_inset
11998
11999 native
12000 \begin_inset Quotes erd
12001 \end_inset
12002
12003  support for time markers, a 
12004 \noun on
12005 Sli\SpecialChar TeX
12006
12007 \noun default
12008  feature.
12009  So, you'll have to resort to using the \SpecialChar LaTeX
12010  codes.
12011 \end_layout
12012
12013 \begin_layout Standard
12014 To use time markers, you'll need to specify the extra class option 
12015 \begin_inset Quotes eld
12016 \end_inset
12017
12018
12019 \family typewriter
12020 clock
12021 \family default
12022
12023 \begin_inset Quotes erd
12024 \end_inset
12025
12026  [see section
12027 \begin_inset space ~
12028 \end_inset
12029
12030
12031 \begin_inset CommandInset ref
12032 LatexCommand ref
12033 reference "sec:slidesetup"
12034
12035 \end_inset
12036
12037 ].
12038  This option turns on timing marks, which will appear in the lower-left-hand
12039  corner of every 
12040 \family sans
12041 Note
12042 \family default
12043  you generate.
12044  To set what appears in the time marker, you use the \SpecialChar LaTeX
12045  commands 
12046 \begin_inset Quotes eld
12047 \end_inset
12048
12049
12050 \family typewriter
12051
12052 \backslash
12053 settime{}
12054 \family default
12055
12056 \begin_inset Quotes erd
12057 \end_inset
12058
12059  and 
12060 \begin_inset Quotes eld
12061 \end_inset
12062
12063
12064 \family typewriter
12065
12066 \backslash
12067 addtime{}
12068 \family default
12069
12070 \begin_inset Quotes erd
12071 \end_inset
12072
12073 .
12074  The arguments of both commands are time measured in seconds.
12075  
12076 \begin_inset Quotes eld
12077 \end_inset
12078
12079
12080 \family typewriter
12081
12082 \backslash
12083 settime{}
12084 \family default
12085
12086 \begin_inset Quotes erd
12087 \end_inset
12088
12089  sets the time marker to a given time.
12090  
12091 \begin_inset Quotes eld
12092 \end_inset
12093
12094
12095 \family typewriter
12096
12097 \backslash
12098 addtime{}
12099 \family default
12100
12101 \begin_inset Quotes erd
12102 \end_inset
12103
12104  increments the time marker by the specified amount.
12105  Using time markers and 
12106 \family sans
12107 Note
12108 \family default
12109 s in this fashion, you can remind yourself how much time to spend on a particula
12110
12111 \family sans
12112 Slide
12113 \family default
12114 .
12115 \end_layout
12116
12117 \begin_layout Standard
12118 There's one last feature to describe.
12119  Clearly, you'd like to print out all of your 
12120 \family sans
12121 Slide
12122 \family default
12123 s and 
12124 \family sans
12125 Overlay
12126 \family default
12127 s on transparencies while printing all of your 
12128 \family sans
12129 Note
12130 \family default
12131 s on plain paper.
12132  However, a 
12133 \family sans
12134 Note
12135 \family default
12136  
12137 \emph on
12138 must
12139 \emph default
12140  follow the 
12141 \family sans
12142 Slide
12143 \family default
12144  with which it is associated.
12145  What's a person to do?
12146 \end_layout
12147
12148 \begin_layout Standard
12149 Luckily, there are two \SpecialChar LaTeX
12150  commands that allow you to select what to print
12151  out.
12152  Both must be placed into the preamble of your document.
12153  The command 
12154 \begin_inset Quotes eld
12155 \end_inset
12156
12157
12158 \family typewriter
12159
12160 \backslash
12161 onlyslides{
12162 \backslash
12163 slides}
12164 \family default
12165
12166 \begin_inset Quotes erd
12167 \end_inset
12168
12169  will cause the output to contain only the 
12170 \family sans
12171 Slide
12172 \family default
12173 s and 
12174 \family sans
12175 Overlay
12176 \family default
12177 s.
12178  Correspondingly, the command 
12179 \begin_inset Quotes eld
12180 \end_inset
12181
12182
12183 \family typewriter
12184
12185 \backslash
12186 onlynotes{
12187 \backslash
12188 notes}
12189 \family default
12190
12191 \begin_inset Quotes erd
12192 \end_inset
12193
12194  prevents the output of anything but 
12195 \family sans
12196 Note
12197 \family default
12198 s.
12199  I'd advise placing both commands in the preamble and initially comment
12200  both out.
12201  You can then preview your entire presentation as you write.
12202  When you're done writing, you can then uncomment one of the two to select
12203  what you want to print.
12204  I like to uncomment 
12205 \begin_inset Quotes eld
12206 \end_inset
12207
12208
12209 \family typewriter
12210
12211 \backslash
12212 onlyslides{
12213 \backslash
12214 slides}
12215 \family default
12216
12217 \begin_inset Quotes erd
12218 \end_inset
12219
12220  , print to a file with 
12221 \begin_inset Quotes eld
12222 \end_inset
12223
12224
12225 \family typewriter
12226 -slides
12227 \family default
12228
12229 \begin_inset Quotes erd
12230 \end_inset
12231
12232  in its name, comment it back out, then uncomment 
12233 \begin_inset Quotes eld
12234 \end_inset
12235
12236
12237 \family typewriter
12238
12239 \backslash
12240 onlynotes{
12241 \backslash
12242 notes}
12243 \family default
12244
12245 \begin_inset Quotes erd
12246 \end_inset
12247
12248  and print to a 
12249 \begin_inset Quotes eld
12250 \end_inset
12251
12252
12253 \family typewriter
12254 *-notes.ps
12255 \family default
12256
12257 \begin_inset Quotes erd
12258 \end_inset
12259
12260  file.
12261  I can then send either file to a printer, loading transparencies or plain
12262  paper as appropriate.
12263 \end_layout
12264
12265 \begin_layout Standard
12266 You can also provide other arguments to the 
12267 \begin_inset Quotes eld
12268 \end_inset
12269
12270
12271 \family typewriter
12272
12273 \backslash
12274 onlyslides{}
12275 \family default
12276
12277 \begin_inset Quotes erd
12278 \end_inset
12279
12280  and 
12281 \begin_inset Quotes eld
12282 \end_inset
12283
12284
12285 \family typewriter
12286
12287 \backslash
12288 onlynotes{}
12289 \family default
12290
12291 \begin_inset Quotes erd
12292 \end_inset
12293
12294  commands.
12295  See a good \SpecialChar LaTeX
12296  book for details.
12297 \end_layout
12298
12299 \begin_layout Subsubsection
12300 The 
12301 \family sans
12302 slides
12303 \family default
12304  Class Template File
12305 \end_layout
12306
12307 \begin_layout Standard
12308 I have also provided a template file
12309 \change_deleted 564990737 1671617750
12310
12311 \begin_inset Quotes eld
12312 \end_inset
12313
12314
12315 \family typewriter
12316 slides.lyx
12317 \family default
12318
12319 \begin_inset Quotes erd
12320 \end_inset
12321
12322 ,
12323 \change_unchanged
12324  with the 
12325 \family sans
12326 slides
12327 \family default
12328  class.
12329  To use it, begin your new presentation with 
12330 \family sans
12331 File\SpecialChar menuseparator
12332 New
12333 \begin_inset space ~
12334 \end_inset
12335
12336 from
12337 \begin_inset space ~
12338 \end_inset
12339
12340 Template
12341 \change_inserted 564990737 1671616988
12342 \SpecialChar menuseparator
12343 Presentations\SpecialChar menuseparator
12344 Slides
12345 \change_unchanged
12346
12347 \family default
12348 .
12349  Your new \SpecialChar LyX
12350  presentation file will contain an example 
12351 \family sans
12352 Slide
12353 \family default
12354  – 
12355 \family sans
12356 Overlay
12357 \family default
12358  – 
12359 \family sans
12360 Note
12361 \family default
12362  triplet.
12363  The 
12364 \family sans
12365 Slide
12366 \family default
12367  and 
12368 \family sans
12369 Overlay
12370 \family default
12371  additionally contain an example of the use of 
12372 \family sans
12373 InvisibleText
12374 \family default
12375  and 
12376 \family sans
12377 VisibleText
12378 \family default
12379 .
12380  Lastly, the preamble will contain:
12381 \end_layout
12382
12383 \begin_layout LyX-Code
12384 % Uncomment to print out only slides and overlays
12385 \end_layout
12386
12387 \begin_layout LyX-Code
12388 %
12389 \end_layout
12390
12391 \begin_layout LyX-Code
12392 %
12393 \backslash
12394 onlyslides{
12395 \backslash
12396 slides}
12397 \begin_inset Newline newline
12398 \end_inset
12399
12400  
12401 \end_layout
12402
12403 \begin_layout LyX-Code
12404 % Uncomment to print out only notes
12405 \end_layout
12406
12407 \begin_layout LyX-Code
12408 %
12409 \end_layout
12410
12411 \begin_layout LyX-Code
12412 %
12413 \backslash
12414 onlynotes{
12415 \backslash
12416 notes}
12417 \end_layout
12418
12419 \begin_layout Standard
12420 One final thing: I created this class to support the \SpecialChar LaTeX2e
12421  
12422 \begin_inset Quotes eld
12423 \end_inset
12424
12425
12426 \noun on
12427 Sli\SpecialChar TeX
12428
12429 \noun default
12430  emulation
12431 \begin_inset Quotes erd
12432 \end_inset
12433
12434  class, one of the built-in \SpecialChar LaTeX2e
12435  classes.
12436  Neither I nor the rest of the \SpecialChar LyX
12437  Team endorse or oppose the use of this built-in
12438  slide class.
12439  It's here if you want it or need it.
12440  There exist other \SpecialChar LaTeX2e
12441  classes for creating presentations, such as the 
12442 \family sans
12443 Foils
12444 \family default
12445  class [see section
12446 \begin_inset space ~
12447 \end_inset
12448
12449
12450 \begin_inset CommandInset ref
12451 LatexCommand ref
12452 reference "sec:foiltex"
12453
12454 \end_inset
12455
12456 ] or the 
12457 \begin_inset Quotes eld
12458 \end_inset
12459
12460
12461 \family typewriter
12462 seminar
12463 \family default
12464
12465 \begin_inset Quotes erd
12466 \end_inset
12467
12468  package [present on some \SpecialChar TeX
12469  distributions].
12470  The latter is not yet supported under \SpecialChar LyX
12471 .
12472 \begin_inset Foot
12473 status collapsed
12474
12475 \begin_layout Plain Layout
12476 Perhaps you can take on the task\SpecialChar ldots
12477
12478 \end_layout
12479
12480 \end_inset
12481
12482  I know nothing about these other classes.
12483  Try them out to see what sort of alternative they provide.
12484 \end_layout
12485
12486 \begin_layout Section
12487
12488 \change_inserted 564990737 1670439661
12489 Reports
12490 \end_layout
12491
12492 \begin_layout Subsection
12493
12494 \change_inserted 564990737 1670439661
12495 report
12496 \end_layout
12497
12498 \begin_layout Standard
12499
12500 \change_inserted 564990737 1670439661
12501 The document class 
12502 \family sans
12503 report
12504 \family default
12505  provides the 
12506 \family sans
12507 report.cls
12508 \family default
12509  document class for preparing reports.
12510  Like the 
12511 \family sans
12512 book
12513 \family default
12514  document class, this provides parts, chapters and sections but does not
12515  provide the paragraph styles needed for a book; like the 
12516 \family sans
12517 article
12518 \family default
12519  document class, it provides the abstract paragraph style.
12520  In two-sided mode, it does not start a new chapter on the right hand page.
12521 \end_layout
12522
12523 \begin_layout Standard
12524
12525 \change_inserted 564990737 1670439674
12526 The remaining 
12527 \family sans
12528 report
12529 \family default
12530  document classes are described in the Collections (section
12531 \begin_inset space ~
12532 \end_inset
12533
12534
12535 \begin_inset CommandInset ref
12536 LatexCommand ref
12537 reference "sec:Collections"
12538
12539 \end_inset
12540
12541 ).
12542 \end_layout
12543
12544 \begin_layout Section
12545
12546 \change_inserted 564990737 1670439674
12547 Scripts (drama)
12548 \end_layout
12549
12550 \begin_layout Subsection
12551 Broadway
12552 \end_layout
12553
12554 \begin_layout Standard
12555 by 
12556 \shape smallcaps
12557 Garst Reese
12558 \end_layout
12559
12560 \begin_layout Subsubsection
12561 Introduction
12562 \end_layout
12563
12564 \begin_layout Standard
12565 Broadway is for writing plays.
12566  The format is more decorative than Hollywood, and much less standardized.
12567  This format should be suitable for workshops.
12568 \end_layout
12569
12570 \begin_layout Subsubsection
12571 Special problems
12572 \end_layout
12573
12574 \begin_layout Standard
12575 The same as in Hollywood.
12576 \end_layout
12577
12578 \begin_layout Subsubsection
12579 Special features
12580 \end_layout
12581
12582 \begin_layout Standard
12583 Insert the 
12584 \family sans
12585 Speaker
12586 \family default
12587  names as labels then cross-reference the label to insert the name.
12588  The cross-reference dialog will show the current cast of characters.
12589 \end_layout
12590
12591 \begin_layout Subsubsection
12592 Paper size and Margins
12593 \end_layout
12594
12595 \begin_layout Standard
12596 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12597 \end_layout
12598
12599 \begin_layout Subsubsection
12600 Environments
12601 \end_layout
12602
12603 \begin_layout Standard
12604 The following environments are available.
12605  You can use broadway.bind to get the bind keys shown at the right.
12606 \end_layout
12607
12608 \begin_layout Itemize
12609
12610 \family sans
12611 Standard
12612 \begin_inset Newline newline
12613 \end_inset
12614
12615
12616 \family default
12617 You should not have to use this, but it is here for anything that does not
12618  fit otherwise.
12619 \end_layout
12620
12621 \begin_layout Itemize
12622
12623 \family sans
12624 Narrative
12625 \begin_inset space \hfill{}
12626 \end_inset
12627
12628 M-z n
12629 \begin_inset Newline newline
12630 \end_inset
12631
12632
12633 \family default
12634 Used to describe stage setting and the action.
12635  First use of speaker names in all CAPs.
12636 \end_layout
12637
12638 \begin_layout Itemize
12639
12640 \family sans
12641 ACT
12642 \begin_inset space \hfill{}
12643 \end_inset
12644
12645 M-z a
12646 \begin_inset Newline newline
12647 \end_inset
12648
12649
12650 \family default
12651 Automatically numbered.
12652  On screen it will be arabic, but will print as Roman.
12653 \end_layout
12654
12655 \begin_layout Itemize
12656
12657 \family sans
12658 ACT*
12659 \begin_inset space \hfill{}
12660 \end_inset
12661
12662 M-z S at
12663 \begin_inset Newline newline
12664 \end_inset
12665
12666
12667 \family default
12668 Subtitle for 
12669 \family sans
12670 ACT.
12671
12672 \family default
12673  It is just centered text.
12674 \end_layout
12675
12676 \begin_layout Itemize
12677
12678 \family sans
12679 SCENE
12680 \begin_inset space \hfill{}
12681 \end_inset
12682
12683 M-z S-S
12684 \begin_inset Newline newline
12685 \end_inset
12686
12687
12688 \family default
12689 Not automatically numbered.
12690  You supply the number.
12691  This is because I couldn't figure out how.
12692 \end_layout
12693
12694 \begin_layout Itemize
12695
12696 \family sans
12697 AT_RISE:
12698 \begin_inset space \hfill{}
12699 \end_inset
12700
12701 M-z S-R
12702 \begin_inset Newline newline
12703 \end_inset
12704
12705
12706 \family default
12707 A special case of Narrative to describe the setting and action as the curtain
12708  rises.
12709 \end_layout
12710
12711 \begin_layout Itemize
12712
12713 \family sans
12714 Speaker
12715 \begin_inset space \hfill{}
12716 \end_inset
12717
12718 M-z s
12719 \begin_inset Newline newline
12720 \end_inset
12721
12722
12723 \family default
12724 The speaker's (actor's) title, centered in all CAPS.
12725 \end_layout
12726
12727 \begin_layout Itemize
12728
12729 \family sans
12730 Parenthetical
12731 \begin_inset space \hfill{}
12732 \end_inset
12733
12734 M-z p
12735 \begin_inset Newline newline
12736 \end_inset
12737
12738
12739 \family default
12740 Instructions to the speaker.
12741  The parentheses are automatically inserted.
12742  The ( will appear on screen, but both will be in the printed play.
12743  This environment is only used within 
12744 \family sans
12745 Dialogue
12746 \family default
12747 .
12748 \end_layout
12749
12750 \begin_layout Itemize
12751
12752 \family sans
12753 Dialogue
12754 \begin_inset space \hfill{}
12755 \end_inset
12756
12757 M-z d
12758 \begin_inset Newline newline
12759 \end_inset
12760
12761
12762 \family default
12763 What the Speaker says.
12764 \end_layout
12765
12766 \begin_layout Itemize
12767
12768 \family sans
12769 CURTAIN
12770 \begin_inset space \hfill{}
12771 \end_inset
12772
12773 M-z S-C
12774 \begin_inset Newline newline
12775 \end_inset
12776
12777
12778 \family default
12779 The curtain comes down.
12780 \end_layout
12781
12782 \begin_layout Itemize
12783
12784 \family sans
12785 Title
12786 \begin_inset space \hfill{}
12787 \end_inset
12788
12789 M-z S-T
12790 \end_layout
12791
12792 \begin_layout Itemize
12793
12794 \family sans
12795 Author
12796 \begin_inset space \hfill{}
12797 \end_inset
12798
12799 M-z S-A
12800 \end_layout
12801
12802 \begin_layout Itemize
12803
12804 \family sans
12805 Right_Address
12806 \begin_inset space \hfill{}
12807 \end_inset
12808
12809 M-z r
12810 \end_layout
12811
12812 \begin_layout Standard
12813 Hello there.
12814 \end_layout
12815
12816 \begin_layout Subsection
12817 Hollywood (Hollywood spec scripts)
12818 \end_layout
12819
12820 \begin_layout Standard
12821 by 
12822 \shape smallcaps
12823 Garst Reese
12824 \end_layout
12825
12826 \begin_layout Subsubsection
12827 Introduction
12828 \end_layout
12829
12830 \begin_layout Standard
12831 Getting the format of a Hollywood script right is a 
12832 \begin_inset Quotes eld
12833 \end_inset
12834
12835 rite of passage.
12836 \begin_inset Quotes erd
12837 \end_inset
12838
12839  It is designed to make the readers focus on content and to be easy and
12840  familiar for the actors to read.
12841  Each page of a script should be one minute of film.
12842  Nothing goes in a script that you cannot see or hear on screen.
12843  The courier 12 pt font should be used throughout.
12844  No italics.
12845 \end_layout
12846
12847 \begin_layout Subsubsection
12848 Special problems
12849 \end_layout
12850
12851 \begin_layout Standard
12852 Speakers' lines should NEVER break in mid-sentence.
12853  If a speaker's lines continue over a page break, repeat the 
12854 \family sans
12855 Speaker
12856 \family default
12857  title followed by (Cont'd).
12858 \end_layout
12859
12860 \begin_layout Subsubsection
12861 Special features
12862 \end_layout
12863
12864 \begin_layout Standard
12865 Insert the 
12866 \family sans
12867 Speaker
12868 \family default
12869  names as labels then cross-reference the label to insert the name.
12870  The cross-reference dialog will show the current cast of characters.
12871  You can use this to insert the speaker name in narratives also.
12872 \end_layout
12873
12874 \begin_layout Subsubsection
12875 Paper size and Margins
12876 \end_layout
12877
12878 \begin_layout Standard
12879 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12880 \end_layout
12881
12882 \begin_layout Subsubsection
12883 Environments
12884 \end_layout
12885
12886 \begin_layout Standard
12887 The following environments are available.
12888  You can use hollywood.bind to get the bind keys shown at the right.
12889 \end_layout
12890
12891 \begin_layout Itemize
12892
12893 \family sans
12894 Standard
12895 \begin_inset Newline newline
12896 \end_inset
12897
12898
12899 \family default
12900 Used where nothing else works.
12901  Try to avoid it.
12902 \end_layout
12903
12904 \begin_layout Itemize
12905
12906 \family sans
12907 FADE_IN
12908 \family default
12909 :
12910 \begin_inset space \hfill{}
12911 \end_inset
12912
12913
12914 \family sans
12915 M-z S-I
12916 \family default
12917
12918 \begin_inset Newline newline
12919 \end_inset
12920
12921 Usually followed by something like 
12922 \begin_inset Quotes eld
12923 \end_inset
12924
12925 on Sally waking up.
12926 \begin_inset Quotes erd
12927 \end_inset
12928
12929
12930 \end_layout
12931
12932 \begin_layout Itemize
12933
12934 \family sans
12935 INT:
12936 \begin_inset space \hfill{}
12937 \end_inset
12938
12939 M-z i
12940 \begin_inset Newline newline
12941 \end_inset
12942
12943
12944 \family default
12945 Introduces a new INTERIOR camera set-up.
12946  Always followed by DAY or NIGHT, or something similar to define the lighting
12947  required.
12948  Everthing on this line in CAPS.
12949 \end_layout
12950
12951 \begin_layout Itemize
12952
12953 \family sans
12954 EXT:
12955 \begin_inset space \hfill{}
12956 \end_inset
12957
12958 M-z e
12959 \begin_inset Newline newline
12960 \end_inset
12961
12962
12963 \family default
12964 Introduces a new EXTERIOR camera set-up.
12965  Everthing on this line in CAPS.
12966 \end_layout
12967
12968 \begin_layout Itemize
12969
12970 \family sans
12971 Speaker
12972 \begin_inset space \hfill{}
12973 \end_inset
12974
12975 M-z s
12976 \begin_inset Newline newline
12977 \end_inset
12978
12979
12980 \family default
12981 The character speaking.
12982 \end_layout
12983
12984 \begin_layout Itemize
12985
12986 \family sans
12987 Parenthetical
12988 \begin_inset space \hfill{}
12989 \end_inset
12990
12991 M-z p
12992 \begin_inset Newline newline
12993 \end_inset
12994
12995
12996 \family default
12997 Instructions to the speaker.
12998  The () are automatically inserted.
12999 \end_layout
13000
13001 \begin_layout Itemize
13002
13003 \family sans
13004 Dialogue
13005 \begin_inset space \hfill{}
13006 \end_inset
13007
13008 M-z d
13009 \begin_inset Newline newline
13010 \end_inset
13011
13012
13013 \family default
13014 What the 
13015 \family sans
13016 Speaker
13017 \family default
13018  says.
13019 \end_layout
13020
13021 \begin_layout Itemize
13022
13023 \family sans
13024 Transition
13025 \begin_inset space \hfill{}
13026 \end_inset
13027
13028 M-z t
13029 \begin_inset Newline newline
13030 \end_inset
13031
13032
13033 \family default
13034 Camera movement instruction.
13035  e.
13036 \begin_inset space \thinspace{}
13037 \end_inset
13038
13039 g.
13040 \begin_inset space \space{}
13041 \end_inset
13042
13043 CUT TO:
13044 \end_layout
13045
13046 \begin_layout Itemize
13047
13048 \family sans
13049 FADE OUT:
13050 \begin_inset space \hfill{}
13051 \end_inset
13052
13053 M-z S-I
13054 \end_layout
13055
13056 \begin_layout Itemize
13057
13058 \family sans
13059 Author
13060 \begin_inset space \hfill{}
13061 \end_inset
13062
13063 M-z S-A
13064 \end_layout
13065
13066 \begin_layout Itemize
13067
13068 \family sans
13069 Title
13070 \begin_inset space \hfill{}
13071 \end_inset
13072
13073 M-z S-T
13074 \end_layout
13075
13076 \begin_layout Itemize
13077
13078 \family sans
13079 Right_Address
13080 \begin_inset space \hfill{}
13081 \end_inset
13082
13083 M-z r
13084 \end_layout
13085
13086 \begin_layout Subsubsection
13087 Script jargon
13088 \end_layout
13089
13090 \begin_layout Itemize
13091 (O.S) — off screen
13092 \end_layout
13093
13094 \begin_layout Itemize
13095 (V.0) — voice over
13096 \end_layout
13097
13098 \begin_layout Itemize
13099 b.
13100 \begin_inset space \thinspace{}
13101 \end_inset
13102
13103 g.
13104  — background
13105 \end_layout
13106
13107 \begin_layout Itemize
13108 C.U.
13109  — close-up
13110 \end_layout
13111
13112 \begin_layout Itemize
13113 PAN — camera movement
13114 \end_layout
13115
13116 \begin_layout Itemize
13117 INSERT — cut to close-up of
13118 \end_layout
13119
13120 \begin_layout Chapter
13121
13122 \change_inserted 564990737 1671185876
13123 Modules
13124 \end_layout
13125
13126 \begin_layout Section
13127
13128 \change_inserted 564990737 1671716212
13129
13130 \lang american
13131 Academic Field Specifics
13132 \end_layout
13133
13134 \begin_layout Subsection
13135
13136 \change_inserted 564990737 1671716212
13137
13138 \lang american
13139 Chemistry: Hazard and Precautionary Statements 
13140 \end_layout
13141
13142 \begin_layout Standard
13143
13144 \change_inserted 564990737 1671716212
13145
13146 \lang american
13147 This module provides two insets to typeset numbers and phrases of chemical
13148  hazard and precautionary statements.
13149  For a description see 
13150 \family sans
13151 \lang british
13152 File\SpecialChar menuseparator
13153 Open Example\SpecialChar menuseparator
13154 Modules\SpecialChar menuseparator
13155 Hazard and Precautionary Statements
13156 \family default
13157  and 
13158 \family sans
13159 Help\SpecialChar menuseparator
13160 Specific Manuals\SpecialChar menuseparator
13161 Hazard and Precautionary Statements
13162 \family default
13163 \lang american
13164 .
13165 \end_layout
13166
13167 \begin_layout Subsection
13168
13169 \change_inserted 564990737 1671716212
13170
13171 \series bold
13172 \lang american
13173 Chemistry: Risk and Safety Statements
13174 \end_layout
13175
13176 \begin_layout Standard
13177
13178 \change_inserted 564990737 1671716212
13179
13180 \lang american
13181 This module provides two insets, 
13182 \family sans
13183 R-S number
13184 \family default
13185  and 
13186 \family sans
13187 R-S phrase
13188 \family default
13189 , accessible via the menu 
13190 \family sans
13191 \bar under
13192 I
13193 \bar default
13194 nsert\SpecialChar menuseparator
13195 Custom
13196 \begin_inset space ~
13197 \end_inset
13198
13199 Insets
13200 \family default
13201  and an environment to typeset numbers and phrases of chemical risk and
13202  safety statements.
13203 \end_layout
13204
13205 \begin_layout Subsection
13206
13207 \change_inserted 564990737 1671716212
13208
13209 \lang american
13210 Linguistics
13211 \end_layout
13212
13213 \begin_layout Standard
13214
13215 \change_inserted 564990737 1671716212
13216
13217 \lang american
13218 This module uses the 
13219 \family sans
13220 covington.sty
13221 \family default
13222  package to add environments useful for linguistics (numbered examples,
13223  glosses, semantic markup, tableau floats).
13224  You can obtain information about this module in 
13225 \family sans
13226 \bar under
13227 H
13228 \bar default
13229 elp\SpecialChar menuseparator
13230 S
13231 \bar under
13232 p
13233 \bar default
13234 ecific
13235 \begin_inset space ~
13236 \end_inset
13237
13238 Manuals\SpecialChar menuseparator
13239
13240 \bar under
13241 L
13242 \bar default
13243 inguistics
13244 \family default
13245  and 
13246 \family sans
13247 \lang british
13248 File\SpecialChar menuseparator
13249 Open Example\SpecialChar menuseparator
13250
13251 \lang american
13252 Modules\SpecialChar menuseparator
13253 Linguistics
13254 \family default
13255 .
13256 \end_layout
13257
13258 \begin_layout Section
13259
13260 \change_inserted 564990737 1671788778
13261
13262 \lang american
13263 Accessibility
13264 \end_layout
13265
13266 \begin_layout Subsection
13267
13268 \change_inserted 564990737 1671788778
13269
13270 \lang american
13271 Braille
13272 \end_layout
13273
13274 \begin_layout Standard
13275
13276 \change_inserted 564990737 1671788778
13277
13278 \lang american
13279 This module supports the Braille writing system.
13280  It requires the \SpecialChar LaTeX
13281  package 
13282 \family typewriter
13283 braille.sty
13284 \family default
13285 .
13286  This and its documentation can be obtained from 
13287 \begin_inset CommandInset href
13288 LatexCommand href
13289 name "CTAN"
13290 target "https://www.ctan.org/pkg/braille"
13291 literal "false"
13292
13293 \end_inset
13294
13295 .
13296  You do not have to reconfigure your system after installing it.
13297  See 
13298 \family sans
13299 \bar under
13300 H
13301 \bar default
13302 elp\SpecialChar menuseparator
13303 S
13304 \bar under
13305 p
13306 \bar default
13307 ecific
13308 \begin_inset space ~
13309 \end_inset
13310
13311 Manuals\SpecialChar menuseparator
13312
13313 \bar under
13314 B
13315 \bar default
13316 raille
13317 \family default
13318  and 
13319 \family sans
13320 File\SpecialChar menuseparator
13321 Open Example\SpecialChar menuseparator
13322 Modules\SpecialChar menuseparator
13323 Braille
13324 \family default
13325 .
13326 \end_layout
13327
13328 \begin_layout Section
13329
13330 \change_inserted 564990737 1671788778
13331
13332 \lang american
13333 Annotation & Revision
13334 \end_layout
13335
13336 \begin_layout Subsection
13337
13338 \change_inserted 564990737 1671788778
13339
13340 \lang american
13341 FiXme Notes
13342 \end_layout
13343
13344 \begin_layout Standard
13345
13346 \change_inserted 564990737 1671788778
13347
13348 \lang american
13349 This module provides “FiXme” (marginal) annotations for document revision
13350  purposes.
13351  A list of annotations can be produced by using the “List of FIXMEs” paragraph
13352  style.
13353  The annotations are customizable via the LaTeX preamble.
13354  See the FiXme documentation which can be obtained from 
13355 \begin_inset CommandInset href
13356 LatexCommand href
13357 name "CTAN"
13358 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13359 literal "false"
13360
13361 \end_inset
13362
13363 .
13364  
13365 \end_layout
13366
13367 \begin_layout Paragraph
13368
13369 \change_inserted 564990737 1671788778
13370
13371 \lang american
13372 Note:
13373 \end_layout
13374
13375 \begin_layout Standard
13376
13377 \change_inserted 564990737 1671788778
13378
13379 \lang american
13380 by default, the notes are only displayed in “draft” mode (if the option
13381  “draft” has been inserted in 
13382 \family sans
13383 Document\SpecialChar menuseparator
13384 Settings\SpecialChar menuseparator
13385 Document Class\SpecialChar menuseparator
13386 Class Options\SpecialChar menuseparator
13387 Custom
13388 \family default
13389 ).
13390  To display them always, insert 
13391 \family typewriter
13392
13393 \backslash
13394 fxsetup{draft}
13395 \family default
13396  in 
13397 \family sans
13398 Document\SpecialChar menuseparator
13399 Settings\SpecialChar menuseparator
13400 \SpecialChar LaTeX
13401  Preamble
13402 \family default
13403 .
13404  
13405 \end_layout
13406
13407 \begin_layout Subsection
13408
13409 \change_inserted 564990737 1671788778
13410
13411 \lang american
13412 PDF Comments
13413 \end_layout
13414
13415 \begin_layout Standard
13416
13417 \change_inserted 564990737 1671788778
13418
13419 \lang american
13420 This module provides various kinds of annotations for PDF output.
13421  See 
13422 \family sans
13423 Help\SpecialChar menuseparator
13424 Specific Manuals\SpecialChar menuseparator
13425 PDF comments and File\SpecialChar menuseparator
13426 Open Example\SpecialChar menuseparator
13427 Modules\SpecialChar menuseparator
13428 PDF Comments
13429 \family default
13430 .
13431 \end_layout
13432
13433 \begin_layout Subsection
13434
13435 \change_inserted 564990737 1671788778
13436
13437 \series bold
13438 \lang american
13439 PDF Form
13440 \end_layout
13441
13442 \begin_layout Standard
13443
13444 \change_inserted 564990737 1671788778
13445
13446 \lang american
13447 This module provides fields and buttons for PDF forms.
13448  See the 
13449 \begin_inset CommandInset href
13450 LatexCommand href
13451 name "hyperref documentation"
13452 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13453 literal "false"
13454
13455 \end_inset
13456
13457
13458 \family sans
13459 Help\SpecialChar menuseparator
13460 Specific Manuals\SpecialChar menuseparator
13461 PDF forms and File\SpecialChar menuseparator
13462 Open Example\SpecialChar menuseparator
13463 Modules\SpecialChar menuseparator
13464 PDF Form
13465 \family default
13466 .
13467 \end_layout
13468
13469 \begin_layout Subsection
13470
13471 \change_inserted 564990737 1671788778
13472
13473 \series bold
13474 \lang american
13475 Ruby (Furigana)
13476 \end_layout
13477
13478 \begin_layout Standard
13479
13480 \change_inserted 564990737 1671788778
13481
13482 \lang american
13483 This module defines an inset to typeset reading aids (ruby, furigana) to
13484  Chinese characters.
13485  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on
13486  the TeX engine) or a fallback definition.
13487  
13488 \end_layout
13489
13490 \begin_layout Subsection
13491
13492 \change_inserted 564990737 1671788778
13493
13494 \series bold
13495 \lang american
13496 TODO notes
13497 \end_layout
13498
13499 \begin_layout Standard
13500
13501 \change_inserted 564990737 1671788778
13502
13503 \lang american
13504 This module provides custom insets to insert TODO items in your document.
13505  In order to generate a “List of TODOs,” the module provides a paragraph
13506  style.
13507  Inserting “final” in 
13508 \family sans
13509 Document\SpecialChar menuseparator
13510 Settings\SpecialChar menuseparator
13511 Document Class\SpecialChar menuseparator
13512 Class Options\SpecialChar menuseparator
13513 Custom
13514 \family default
13515 ) suppresses the output of TODO notes.
13516  See the 
13517 \begin_inset CommandInset href
13518 LatexCommand href
13519 name "todonotes documentation"
13520 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13521 literal "false"
13522
13523 \end_inset
13524
13525 .
13526 \end_layout
13527
13528 \begin_layout Section
13529
13530 \change_inserted 564990737 1671829045
13531
13532 \lang american
13533 Bibliography 
13534 \end_layout
13535
13536 \begin_layout Subsection
13537
13538 \change_inserted 564990737 1671829045
13539
13540 \lang american
13541 APA Style with NatBib
13542 \end_layout
13543
13544 \begin_layout Standard
13545
13546 \change_inserted 564990737 1671829045
13547
13548 \lang american
13549 This module adds support for using natbib together with apacite (the bibliograph
13550 y style need not be apacite — it could be apacite, apacitex, or any bibliography
13551  that works with both the natbib and apacite packages.) 
13552 \end_layout
13553
13554 \begin_layout Section
13555
13556 \change_inserted 564990737 1671829045
13557
13558 \lang american
13559 Boxes
13560 \end_layout
13561
13562 \begin_layout Subsection
13563
13564 \change_inserted 564990737 1671829045
13565
13566 \lang american
13567 Fancy Colored Boxes
13568 \end_layout
13569
13570 \begin_layout Standard
13571
13572 \change_inserted 564990737 1671829045
13573
13574 \lang american
13575 This module adds ten custom insets that support colored boxes via the tcolorbox
13576  package.
13577  See 
13578 \family sans
13579 Help\SpecialChar menuseparator
13580 Specific Manuals\SpecialChar menuseparator
13581 Colored boxes
13582 \family default
13583
13584 \family sans
13585 File\SpecialChar menuseparator
13586 Open Example\SpecialChar menuseparator
13587 Modules\SpecialChar menuseparator
13588 Fancy Color Boxes
13589 \family default
13590  the 
13591 \begin_inset CommandInset href
13592 LatexCommand href
13593 name "tcolorbox documentation"
13594 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13595 literal "false"
13596
13597 \end_inset
13598
13599  for details.
13600  
13601 \end_layout
13602
13603 \begin_layout Subsection
13604
13605 \change_inserted 564990737 1671829045
13606
13607 \lang american
13608 Graphic boxes
13609 \end_layout
13610
13611 \begin_layout Standard
13612
13613 \change_inserted 564990737 1671829045
13614
13615 \lang american
13616 This provides the custom insets 
13617 \family sans
13618 Reflectbox
13619 \family default
13620
13621 \family sans
13622 Resizebox
13623 \family default
13624
13625 \family sans
13626 Rotatebox
13627 \family default
13628  and 
13629 \family sans
13630 Scalebox
13631 \family default
13632  to scale and rotate its content.
13633 \end_layout
13634
13635 \begin_layout Standard
13636
13637 \change_inserted 564990737 1671829045
13638
13639 \family sans
13640 \lang american
13641 Reflectbox
13642 \family default
13643  is a simple way of reversing text without any other enhancement:
13644 \end_layout
13645
13646 \begin_layout Standard
13647
13648 \change_inserted 564990737 1671829045
13649
13650 \lang american
13651 \begin_inset Flex Reflectbox
13652 status open
13653
13654 \begin_layout Plain Layout
13655
13656 \change_inserted 564990737 1671829045
13657
13658 \lang american
13659 Great Western Railway
13660 \change_unchanged
13661
13662 \end_layout
13663
13664 \end_inset
13665
13666
13667 \end_layout
13668
13669 \begin_layout Standard
13670
13671 \change_inserted 564990737 1671829045
13672
13673 \lang american
13674 (You will need to use Ctrl-R to see any of these examples.)
13675 \end_layout
13676
13677 \begin_layout Standard
13678
13679 \change_inserted 564990737 1671829045
13680
13681 \family sans
13682 \lang american
13683 Resizebox
13684 \family default
13685  allows you to specify the dimensions of the text or image; permissible
13686  units are em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; if you
13687  enter 
13688 \family typewriter
13689 !
13690 \family default
13691  for 
13692 \family typewriter
13693 Height
13694 \family default
13695  it scales by the width factor:
13696 \end_layout
13697
13698 \begin_layout Standard
13699
13700 \change_inserted 564990737 1671829045
13701
13702 \lang american
13703 \begin_inset Flex Resizebox
13704 status open
13705
13706 \begin_layout Plain Layout
13707
13708 \change_inserted 564990737 1671829045
13709
13710 \lang american
13711 \begin_inset Argument 1
13712 status open
13713
13714 \begin_layout Plain Layout
13715
13716 \change_inserted 564990737 1671829045
13717
13718 \lang american
13719 48mm
13720 \change_unchanged
13721
13722 \end_layout
13723
13724 \end_inset
13725
13726
13727 \begin_inset Argument 2
13728 status open
13729
13730 \begin_layout Plain Layout
13731
13732 \change_inserted 564990737 1671829045
13733
13734 \lang american
13735 !
13736 \change_unchanged
13737
13738 \end_layout
13739
13740 \end_inset
13741
13742 Great Western Railway
13743 \change_unchanged
13744
13745 \end_layout
13746
13747 \end_inset
13748
13749
13750 \end_layout
13751
13752 \begin_layout Standard
13753
13754 \change_inserted 564990737 1671829045
13755
13756 \family sans
13757 \lang american
13758 Rotatebox
13759 \family default
13760  allows you to rotate text around the reference point of the box.
13761  If you wish to rotate the box around a different origin, place the cursor
13762  inside the box and select Insert\SpecialChar menuseparator
13763 Origin; o
13764 \family typewriter
13765 rigin
13766 \family default
13767  is specified as 
13768 \family typewriter
13769 c
13770 \family default
13771 ,
13772 \family typewriter
13773  l
13774 \family default
13775 ,
13776 \family typewriter
13777  r
13778 \family default
13779 ,
13780 \family typewriter
13781  b
13782 \family default
13783 ,
13784 \family typewriter
13785  t
13786 \family default
13787  or meaningful combinations of these and the counterclockwise rotation angle
13788  is expressed in degrees.
13789  For example:
13790 \end_layout
13791
13792 \begin_layout Standard
13793
13794 \change_inserted 564990737 1671829045
13795
13796 \lang american
13797 \begin_inset Flex Rotatebox
13798 status open
13799
13800 \begin_layout Plain Layout
13801
13802 \change_inserted 564990737 1671829045
13803
13804 \lang american
13805 \begin_inset Argument 1
13806 status open
13807
13808 \begin_layout Plain Layout
13809
13810 \change_inserted 564990737 1671829045
13811
13812 \lang british
13813 =c
13814 \change_unchanged
13815
13816 \end_layout
13817
13818 \end_inset
13819
13820
13821 \begin_inset Argument 2
13822 status open
13823
13824 \begin_layout Plain Layout
13825
13826 \change_inserted 564990737 1671829045
13827
13828 \lang british
13829 30
13830 \change_unchanged
13831
13832 \end_layout
13833
13834 \end_inset
13835
13836 Great Western Railway
13837 \change_unchanged
13838
13839 \end_layout
13840
13841 \end_inset
13842
13843
13844 \end_layout
13845
13846 \begin_layout Standard
13847
13848 \change_inserted 564990737 1671829045
13849
13850 \lang american
13851 You can combine boxes as in:
13852 \end_layout
13853
13854 \begin_layout Standard
13855
13856 \change_inserted 564990737 1671829045
13857
13858 \lang british
13859 \begin_inset Flex Rotatebox
13860 status open
13861
13862 \begin_layout Plain Layout
13863
13864 \change_inserted 564990737 1671829045
13865
13866 \lang british
13867 \begin_inset Argument 1
13868 status open
13869
13870 \begin_layout Plain Layout
13871
13872 \change_inserted 564990737 1671829045
13873
13874 \lang british
13875 =c
13876 \change_unchanged
13877
13878 \end_layout
13879
13880 \end_inset
13881
13882
13883 \begin_inset Argument 2
13884 status open
13885
13886 \begin_layout Plain Layout
13887
13888 \change_inserted 564990737 1671829045
13889
13890 \lang british
13891 -15
13892 \change_unchanged
13893
13894 \end_layout
13895
13896 \end_inset
13897
13898
13899 \begin_inset Flex Resizebox
13900 status open
13901
13902 \begin_layout Plain Layout
13903
13904 \change_inserted 564990737 1671829045
13905
13906 \lang british
13907 \begin_inset Argument 1
13908 status open
13909
13910 \begin_layout Plain Layout
13911
13912 \change_inserted 564990737 1671829045
13913
13914 \lang british
13915 48mm
13916 \change_unchanged
13917
13918 \end_layout
13919
13920 \end_inset
13921
13922
13923 \begin_inset Argument 2
13924 status open
13925
13926 \begin_layout Plain Layout
13927
13928 \change_inserted 564990737 1671829045
13929
13930 \lang british
13931 !
13932 \change_unchanged
13933
13934 \end_layout
13935
13936 \end_inset
13937
13938
13939 \begin_inset Flex Reflectbox
13940 status open
13941
13942 \begin_layout Plain Layout
13943
13944 \change_inserted 564990737 1671829045
13945
13946 \lang british
13947 Great Western Railway
13948 \change_unchanged
13949
13950 \end_layout
13951
13952 \end_inset
13953
13954
13955 \change_unchanged
13956
13957 \end_layout
13958
13959 \end_inset
13960
13961
13962 \change_unchanged
13963
13964 \end_layout
13965
13966 \end_inset
13967
13968
13969 \end_layout
13970
13971 \begin_layout Standard
13972
13973 \change_inserted 564990737 1671829045
13974
13975 \family sans
13976 \lang american
13977 Scalebox
13978 \family default
13979  scales text; select Insert\SpecialChar menuseparator
13980 V-Factor to add a vertical factor.
13981  If the vertical factor is omitted, the horizontal is used.
13982  Adding different horizontal and vertical values creates distortion as in
13983  
13984 \end_layout
13985
13986 \begin_layout Standard
13987
13988 \change_inserted 564990737 1671829045
13989
13990 \family typewriter
13991 \lang american
13992 \begin_inset Flex Scalebox
13993 status open
13994
13995 \begin_layout Plain Layout
13996
13997 \change_inserted 564990737 1671829045
13998
13999 \lang american
14000 \begin_inset Argument 1
14001 status open
14002
14003 \begin_layout Plain Layout
14004
14005 \change_inserted 564990737 1671829045
14006
14007 \lang american
14008 2
14009 \change_unchanged
14010
14011 \end_layout
14012
14013 \end_inset
14014
14015
14016 \begin_inset Argument 2
14017 status open
14018
14019 \begin_layout Plain Layout
14020
14021 \change_inserted 564990737 1671829045
14022
14023 \lang american
14024 1.5
14025 \change_unchanged
14026
14027 \end_layout
14028
14029 \end_inset
14030
14031
14032 \family roman
14033 Great Western Railway
14034 \change_unchanged
14035
14036 \end_layout
14037
14038 \end_inset
14039
14040 .
14041 \end_layout
14042
14043 \begin_layout Standard
14044
14045 \change_inserted 564990737 1671829045
14046
14047 \lang american
14048 A negative horizontal value reverses the text and a negative vertical value
14049  inverts it so that you get 
14050 \end_layout
14051
14052 \begin_layout Standard
14053
14054 \change_inserted 564990737 1671829045
14055
14056 \lang american
14057 \begin_inset Flex Scalebox
14058 status open
14059
14060 \begin_layout Plain Layout
14061
14062 \change_inserted 564990737 1671829045
14063
14064 \lang american
14065 \begin_inset Argument 1
14066 status open
14067
14068 \begin_layout Plain Layout
14069
14070 \change_inserted 564990737 1671829045
14071
14072 \lang british
14073 -1
14074 \change_unchanged
14075
14076 \end_layout
14077
14078 \end_inset
14079
14080
14081 \begin_inset Argument 2
14082 status open
14083
14084 \begin_layout Plain Layout
14085
14086 \change_inserted 564990737 1671829045
14087
14088 \lang british
14089 1
14090 \change_unchanged
14091
14092 \end_layout
14093
14094 \end_inset
14095
14096 Great Western Railway
14097 \change_unchanged
14098
14099 \end_layout
14100
14101 \end_inset
14102
14103  and 
14104 \begin_inset Flex Scalebox
14105 status open
14106
14107 \begin_layout Plain Layout
14108
14109 \change_inserted 564990737 1671829045
14110
14111 \lang american
14112 \begin_inset Argument 1
14113 status open
14114
14115 \begin_layout Plain Layout
14116
14117 \change_inserted 564990737 1671829045
14118
14119 \lang british
14120 1
14121 \change_unchanged
14122
14123 \end_layout
14124
14125 \end_inset
14126
14127
14128 \begin_inset Argument 2
14129 status open
14130
14131 \begin_layout Plain Layout
14132
14133 \change_inserted 564990737 1671829045
14134
14135 \lang british
14136 -1
14137 \change_unchanged
14138
14139 \end_layout
14140
14141 \end_inset
14142
14143 Great Western Railway
14144 \change_unchanged
14145
14146 \end_layout
14147
14148 \end_inset
14149
14150 .
14151 \end_layout
14152
14153 \begin_layout Subsection
14154
14155 \change_inserted 564990737 1671884699
14156
14157 \lang american
14158 Section Boxes
14159 \end_layout
14160
14161 \begin_layout Standard
14162
14163 \change_inserted 564990737 1671884699
14164
14165 \lang american
14166 This module defines Boxes with section header.
14167  It is mainly intended for the SciPoster Document class.
14168  
14169 \end_layout
14170
14171 \begin_layout Subsection
14172
14173 \change_inserted 564990737 1671884699
14174
14175 \lang american
14176 Variable-width Minipages
14177 \end_layout
14178
14179 \begin_layout Standard
14180
14181 \change_inserted 564990737 1671884699
14182
14183 \lang american
14184 This module adds a 
14185 \family sans
14186 Minipage (Var.
14187 \begin_inset space \thinspace{}
14188 \end_inset
14189
14190 Width)
14191 \family default
14192  inset to 
14193 \family sans
14194 Insert\SpecialChar menuseparator
14195 Custom Inset
14196 \family default
14197  using the 
14198 \family sans
14199 varwidth
14200 \family default
14201  LaTeX package.
14202  The 
14203 \family sans
14204 varwidth
14205 \family default
14206  package provides a variable-width minipage, whose resulting width is the
14207  width of its contents (if this does not exceed the specified maximum width).
14208  The inset has two optional arguments which can be added by placing the
14209  cursor inside the minipage and entering 
14210 \family sans
14211 Insert\SpecialChar menuseparator
14212 Vert.
14213 \begin_inset space \thinspace{}
14214 \end_inset
14215
14216 Adjustment
14217 \family default
14218  (
14219 \family typewriter
14220 c|t|b
14221 \family default
14222 ) or 
14223 \family sans
14224 Insert\SpecialChar menuseparator
14225 Max.
14226 \begin_inset space \thinspace{}
14227 \end_inset
14228
14229 Width
14230 \family default
14231  (defaults to 
14232 \family typewriter
14233
14234 \backslash
14235 linewidth
14236 \family default
14237 ).
14238  See 
14239 \family sans
14240 File\SpecialChar menuseparator
14241 Open Example\SpecialChar menuseparator
14242 Variable-width Minipages
14243 \family default
14244 .
14245  
14246 \end_layout
14247
14248 \begin_layout Section
14249
14250 \change_inserted 564990737 1671884699
14251
14252 \lang american
14253 Fixes & Hacks
14254 \end_layout
14255
14256 \begin_layout Subsection
14257
14258 \change_inserted 564990737 1671884699
14259
14260 \lang american
14261 Fix Computer Modern Fonts
14262 \end_layout
14263
14264 \begin_layout Standard
14265
14266 \change_inserted 564990737 1671884699
14267
14268 \lang american
14269 This module uses the 
14270 \family sans
14271 fix-cm
14272 \family default
14273  package to improve the appearance of Computer Modern fonts and make them
14274  available with arbitrary sizes.
14275  See the 
14276 \begin_inset CommandInset href
14277 LatexCommand href
14278 name "fix-cm documentation"
14279 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14280 literal "false"
14281
14282 \end_inset
14283
14284 .
14285  
14286 \end_layout
14287
14288 \begin_layout Subsection
14289
14290 \change_inserted 564990737 1671884699
14291
14292 \lang american
14293 \SpecialChar LaTeX
14294  Kernel Fixes (Obsolete)
14295 \end_layout
14296
14297 \begin_layout Standard
14298
14299 \change_inserted 564990737 1671884699
14300
14301 \lang american
14302 This module loads the \SpecialChar LaTeX
14303  package 
14304 \family sans
14305 fixltx2e
14306 \family default
14307  which contains some bug fixes for \SpecialChar LaTeX
14308 .
14309  If you use this module your typeset document may look different when you
14310  process it, depending on the respective version of 
14311 \family sans
14312 fixltx2e
14313 \family default
14314 .
14315  
14316 \end_layout
14317
14318 \begin_layout Paragraph
14319
14320 \change_inserted 564990737 1671884699
14321
14322 \lang american
14323 Note:
14324 \end_layout
14325
14326 \begin_layout Standard
14327
14328 \change_inserted 564990737 1671884699
14329
14330 \lang american
14331 recent \SpecialChar LaTeX
14332  kernels (as of 2015/01/01) include the functionality of 
14333 \family sans
14334 fixltx2e
14335 \family default
14336 , so the 
14337 \family sans
14338 fixltx2e
14339 \family default
14340  module is obsolete with newer \SpecialChar LaTeX
14341  distributions.
14342  
14343 \end_layout
14344
14345 \begin_layout Subsection
14346
14347 \change_inserted 564990737 1671884699
14348
14349 \lang american
14350 Minimalistic Insets
14351 \end_layout
14352
14353 \begin_layout Standard
14354
14355 \change_inserted 564990737 1671884699
14356
14357 \lang american
14358 This module redefines several insets (Index, Branch, URL) as being Minimalistic.
14359 \end_layout
14360
14361 \begin_layout Subsection
14362
14363 \change_inserted 564990737 1671884699
14364
14365 \lang american
14366 Title and Preamble Hacks
14367 \end_layout
14368
14369 \begin_layout Standard
14370
14371 \change_inserted 564990737 1671884699
14372
14373 \lang american
14374 This module provides two new paragraph styles: 
14375 \end_layout
14376
14377 \begin_layout Enumerate
14378
14379 \change_inserted 564990737 1671884699
14380
14381 \family sans
14382 \lang american
14383 In Preamble
14384 \family default
14385  which puts whatever is entered into it into the preamble.
14386  This can be used, if one wishes, to include preamble code in the body of
14387  a LyX document.
14388  
14389 \end_layout
14390
14391 \begin_layout Enumerate
14392
14393 \change_inserted 564990737 1671884699
14394
14395 \family sans
14396 \lang american
14397 In Title
14398 \family default
14399  which that will put its contents into the body of the LaTeX document, but
14400  before 
14401 \family typewriter
14402
14403 \backslash
14404 maketitle
14405 \family default
14406  is issued.
14407  This is useful for making branches and notes in title-related material.
14408  (However, if you put these in a Standard layout, this signals to LyX to
14409  output 
14410 \family typewriter
14411
14412 \backslash
14413 maketitle
14414 \family default
14415 , which may then come too early.)
14416 \end_layout
14417
14418 \begin_layout Section
14419
14420 \change_inserted 564990737 1672081439
14421
14422 \lang american
14423 Floats & captions
14424 \end_layout
14425
14426 \begin_layout Subsection
14427
14428 \change_inserted 564990737 1672081439
14429
14430 \lang american
14431 Algorithm2e Float
14432 \end_layout
14433
14434 \begin_layout Standard
14435
14436 \change_inserted 564990737 1672081439
14437
14438 \lang american
14439 This module uses the 
14440 \family sans
14441 algorithm2e
14442 \family default
14443  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14444  Use the Algorithm paragraph style to enter and indent the algorithm.
14445  See the 
14446 \begin_inset CommandInset href
14447 LatexCommand href
14448 name "algorithm2e documentation"
14449 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14450 literal "false"
14451
14452 \end_inset
14453
14454 .
14455 \end_layout
14456
14457 \begin_layout Subsection
14458
14459 \change_inserted 564990737 1672081439
14460
14461 \lang american
14462 Bilingual Captions AKA Multilingual Captions
14463 \end_layout
14464
14465 \begin_layout Standard
14466
14467 \change_inserted 564990737 1672081439
14468
14469 \lang american
14470 This module provides the paragraph style 
14471 \family sans
14472 Caption
14473 \begin_inset space ~
14474 \end_inset
14475
14476 setup
14477 \family default
14478  with which to typeset multilingual captions.
14479  Within this paragraph style 
14480 \family sans
14481 Insert\SpecialChar menuseparator
14482 Language
14483 \family default
14484  allows you to enter the desired language using one of the babel names.
14485  See 
14486 \family sans
14487 File\SpecialChar menuseparator
14488 Open Example\SpecialChar menuseparator
14489 Multilingual Captions
14490 \family default
14491  and 
14492 \family sans
14493 Help\SpecialChar menuseparator
14494 Specific Manuals\SpecialChar menuseparator
14495 Multilingual Captions
14496 \family default
14497  further information on its use.
14498 \end_layout
14499
14500 \begin_layout Subsection
14501
14502 \change_inserted 564990737 1672081439
14503
14504 \lang american
14505 Number Figures by Section
14506 \end_layout
14507
14508 \begin_layout Standard
14509
14510 \change_inserted 564990737 1672081439
14511
14512 \lang american
14513 This module resets the figure number at section start and prepends the section
14514  number to the figure number, as in “Figure 2.1.” (By default book and report
14515  document classes number by Chapter and article document classes have a
14516  single sequence.) 
14517 \end_layout
14518
14519 \begin_layout Subsection
14520
14521 \change_inserted 564990737 1672081439
14522
14523 \lang american
14524 Number Tables by Section
14525 \end_layout
14526
14527 \begin_layout Standard
14528
14529 \change_inserted 564990737 1672081439
14530
14531 \lang american
14532 This module resets the table number at section start and prepends the section
14533  number to the table number, as in “Table 2.1.” (By default book and report
14534  document classes number by Chapter and article document classes have a
14535  single sequence.) 
14536 \end_layout
14537
14538 \begin_layout Section
14539
14540 \change_inserted 564990737 1672081439
14541
14542 \lang american
14543 Foot- and Endnotes
14544 \end_layout
14545
14546 \begin_layout Subsection
14547
14548 \change_inserted 564990737 1672081439
14549
14550 \lang american
14551 Endnotes (Basic)
14552 \end_layout
14553
14554 \begin_layout Standard
14555
14556 \change_inserted 564990737 1672081439
14557
14558 \lang american
14559 This module adds an endnote inset, in addition to footnotes.
14560  This uses the 
14561 \family sans
14562 endnotes
14563 \family default
14564  package, which has some limitations but works with older LaTeX distributions
14565  as well.
14566  Use 
14567 \family sans
14568 Insert\SpecialChar menuseparator
14569 Custom Inset\SpecialChar menuseparator
14570 Endnote
14571 \family default
14572  to insert an endnote and 
14573 \family sans
14574 Insert\SpecialChar menuseparator
14575 List/Contents/References\SpecialChar menuseparator
14576 Endnotes
14577 \family default
14578  to insert the endnotes list where you want the endnotes to appear.
14579  See also 
14580 \family sans
14581 Help\SpecialChar menuseparator
14582 Embedded\SpecialChar menuseparator
14583  Objects\SpecialChar menuseparator
14584 Notes\SpecialChar menuseparator
14585 Footnotes
14586 \family default
14587 .
14588 \end_layout
14589
14590 \begin_layout Subsection
14591
14592 \change_inserted 564990737 1672081439
14593
14594 \lang american
14595 Endnotes (Extended)
14596 \end_layout
14597
14598 \begin_layout Standard
14599
14600 \change_inserted 564990737 1672081439
14601
14602 \lang american
14603 This module adds an endnote inset, in addition to footnotes.
14604  This uses the 
14605 \family sans
14606 enotez
14607 \family default
14608  package which is more powerful and customizable than the 
14609 \family sans
14610 endnotes
14611 \family default
14612  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14613  Use 
14614 \family sans
14615 Insert\SpecialChar menuseparator
14616 Custom Inset\SpecialChar menuseparator
14617 Endnote
14618 \family default
14619  to insert an endnote and 
14620 \family sans
14621 Insert\SpecialChar menuseparator
14622 List/Contents/References\SpecialChar menuseparator
14623 Endnotes
14624 \family default
14625  to insert the endnotes list where you want the endnotes to appear.
14626  See also 
14627 \family sans
14628 Help\SpecialChar menuseparator
14629 Embedded\SpecialChar menuseparator
14630  Objects\SpecialChar menuseparator
14631 Notes\SpecialChar menuseparator
14632 Footnotes
14633 \family default
14634 .
14635 \end_layout
14636
14637 \begin_layout Subsection
14638
14639 \change_inserted 564990737 1672081439
14640
14641 \lang american
14642 Footnotes as Endnotes (Basic)
14643 \end_layout
14644
14645 \begin_layout Standard
14646
14647 \change_inserted 564990737 1672081439
14648
14649 \lang american
14650 This module sets all footnotes as endnotes.
14651  This uses the 
14652 \family sans
14653 endnotes
14654 \family default
14655  package, which has some limitations but works with older LaTeX distributions
14656  as well.
14657  Use 
14658 \family sans
14659 Insert\SpecialChar menuseparator
14660 List/Contents/References\SpecialChar menuseparator
14661 Endnotes
14662 \family default
14663  to insert the endnotes list where you want the endnotes to appear.
14664  See also 
14665 \family sans
14666 Help\SpecialChar menuseparator
14667 Embedded\SpecialChar menuseparator
14668  Objects\SpecialChar menuseparator
14669 Notes\SpecialChar menuseparator
14670 Footnotes
14671 \family default
14672 .
14673 \end_layout
14674
14675 \begin_layout Subsection
14676
14677 \change_inserted 564990737 1672081439
14678
14679 \lang american
14680 Footnotes as Endnotes (Extended)
14681 \end_layout
14682
14683 \begin_layout Standard
14684
14685 \change_inserted 564990737 1672081439
14686
14687 \lang american
14688 This module sets all footnotes as endnotes.
14689  This uses the 
14690 \family sans
14691 enotez
14692 \family default
14693  package which is more powerful and customizable than then 
14694 \family sans
14695 endnotes
14696 \family default
14697  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14698  Use 
14699 \family sans
14700 Insert\SpecialChar menuseparator
14701 List/Contents/References\SpecialChar menuseparator
14702 Endnotes
14703 \family default
14704  to insert the endnotes list where you want the endnotes to appear.
14705  See also 
14706 \family sans
14707 Help\SpecialChar menuseparator
14708 Embedded\SpecialChar menuseparator
14709  Objects\SpecialChar menuseparator
14710 Notes\SpecialChar menuseparator
14711 Footnotes
14712 \family default
14713 .
14714 \end_layout
14715
14716 \begin_layout Section
14717
14718 \change_inserted 564990737 1672081439
14719
14720 \lang american
14721 Leisure, Sports and Music
14722 \end_layout
14723
14724 \begin_layout Subsection
14725
14726 \change_inserted 564990737 1672081439
14727
14728 \lang american
14729 Chess Board
14730 \end_layout
14731
14732 \begin_layout Standard
14733
14734 \change_inserted 564990737 1672081439
14735
14736 \lang american
14737 This module provides support for the 
14738 \family sans
14739 chessboard
14740 \family default
14741  package to print chess games.
14742  See 
14743 \family sans
14744 File\SpecialChar menuseparator
14745 Open Example\SpecialChar menuseparator
14746 Articles\SpecialChar menuseparator
14747 Chess
14748 \family default
14749  where you will find 
14750 \family sans
14751 Game 1
14752 \family default
14753  and 
14754 \family sans
14755 Game 2
14756 \family default
14757  and the 
14758 \begin_inset CommandInset href
14759 LatexCommand href
14760 name "chessboard documentation"
14761 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14762 literal "false"
14763
14764 \end_inset
14765
14766 .
14767 \end_layout
14768
14769 \begin_layout Subsection
14770
14771 \change_inserted 564990737 1672081439
14772
14773 \lang american
14774 Lilypond Music Notation
14775 \end_layout
14776
14777 \begin_layout Standard
14778
14779 \change_inserted 564990737 1672081439
14780
14781 \lang american
14782 This module provides an inset via 
14783 \family sans
14784 \bar under
14785 I
14786 \bar default
14787 nsert\SpecialChar menuseparator
14788 Custom Inset\SpecialChar menuseparator
14789 Lilypond
14790 \family default
14791  in which to enter code for the LilyPond music editor.
14792  It will then be processed in the output.
14793  See 
14794 \family sans
14795 Help\SpecialChar menuseparator
14796 Specific Manuals\SpecialChar menuseparator
14797 Lilypond
14798 \family default
14799  and 
14800 \family sans
14801 File\SpecialChar menuseparator
14802 Open Example\SpecialChar menuseparator
14803 Modules\SpecialChar menuseparator
14804 Lilypond Book
14805 \family default
14806 .
14807  It cannot be used if the modules 
14808 \family sans
14809 Rnw
14810 \begin_inset space \thinspace{}
14811 \end_inset
14812
14813 (knitr) or Sweave
14814 \family default
14815  have been loaded.
14816 \end_layout
14817
14818 \begin_layout Section
14819
14820 \change_inserted 564990737 1672138150
14821
14822 \lang american
14823 List enhancements
14824 \end_layout
14825
14826 \begin_layout Subsection
14827
14828 \change_inserted 564990737 1672138150
14829
14830 \lang american
14831 Customizable Lists
14832 \begin_inset CommandInset label
14833 LatexCommand label
14834 name "subsec:Customizable-Lists"
14835
14836 \end_inset
14837
14838
14839 \end_layout
14840
14841 \begin_layout Standard
14842
14843 \change_inserted 564990737 1672138150
14844
14845 \lang american
14846 This module uses the
14847 \family sans
14848  enumitem
14849 \family default
14850  package to enable the customization of various list environments.
14851 \end_layout
14852
14853 \begin_layout Subsubsection
14854
14855 \change_inserted 564990737 1672138150
14856
14857 \lang american
14858 Custom Enumerate Lists
14859 \end_layout
14860
14861 \begin_layout Standard
14862 \noindent
14863
14864 \change_inserted 564990737 1672138150
14865
14866 \lang american
14867 The default numbering of numbered lists can be changed by adding an optional
14868  argument (menu 
14869 \family sans
14870 \bar under
14871 I
14872 \bar default
14873 nsert\SpecialChar menuseparator
14874
14875 \bar under
14876 S
14877 \bar default
14878 hort Title
14879 \family default
14880 ) to the first item of each level in the list.
14881  There you add the command
14882 \end_layout
14883
14884 \begin_layout Standard
14885
14886 \change_inserted 564990737 1672138150
14887
14888 \family sans
14889 \lang american
14890 label=
14891 \backslash
14892 roman{enumi}
14893 \end_layout
14894
14895 \begin_layout Standard
14896
14897 \change_inserted 564990737 1672138150
14898
14899 \lang american
14900 in \SpecialChar TeX
14901  Code (shortcut 
14902 \begin_inset Info
14903 type  "shortcut"
14904 arg   "ert-insert"
14905 \end_inset
14906
14907 ).
14908 \end_layout
14909
14910 \begin_layout Standard
14911
14912 \change_inserted 564990737 1672138150
14913
14914 \family sans
14915 \lang american
14916 enumi
14917 \family default
14918  is the first level counter of the enumeration.
14919  To change the numbering for the list sublevels, replace the “
14920 \family sans
14921 i
14922 \family default
14923 ” in the command by the small Roman numeral of the level (
14924 \family sans
14925 enumi
14926 \family default
14927
14928 \family sans
14929 enumii
14930 \family default
14931
14932 \family sans
14933 enumiii
14934 \family default
14935
14936 \family sans
14937 enumiv
14938 \family default
14939 ).
14940 \end_layout
14941
14942 \begin_layout Standard
14943
14944 \change_inserted 564990737 1672138150
14945
14946 \lang american
14947 The command 
14948 \family sans
14949
14950 \backslash
14951 roman
14952 \family default
14953  outputs the counter as a small Roman numeral.
14954  For capital Roman numerals replace 
14955 \family sans
14956
14957 \backslash
14958 roman
14959 \family default
14960  with 
14961 \family sans
14962
14963 \backslash
14964 Roman
14965 \family default
14966  in the command above.
14967  For Arabic numerals use 
14968 \family sans
14969
14970 \backslash
14971 arabic
14972 \family default
14973 .
14974  To 
14975 \begin_inset Quotes eld
14976 \end_inset
14977
14978 number
14979 \begin_inset Quotes erd
14980 \end_inset
14981
14982  items with capital or small Latin letters use 
14983 \family sans
14984
14985 \backslash
14986 Alph
14987 \family default
14988  or 
14989 \family sans
14990
14991 \backslash
14992 alph
14993 \family default
14994 , respectively.
14995 \end_layout
14996
14997 \begin_layout Standard
14998 \noindent
14999
15000 \change_inserted 564990737 1672138150
15001
15002 \lang american
15003 \begin_inset Note Greyedout
15004 status collapsed
15005
15006 \begin_layout Plain Layout
15007
15008 \change_inserted 564990737 1672138150
15009
15010 \series bold
15011 \lang american
15012 Note:
15013 \series default
15014  You can only number 26
15015 \begin_inset space ~
15016 \end_inset
15017
15018 items with Latin letters, because this numbering is limited to single letters.
15019 \end_layout
15020
15021 \end_inset
15022
15023
15024 \end_layout
15025
15026 \begin_layout Standard
15027
15028 \change_inserted 564990737 1672138150
15029
15030 \lang american
15031 Here is a list with custom numbering:
15032 \end_layout
15033
15034 \begin_layout Enumerate
15035
15036 \change_inserted 564990737 1672138150
15037
15038 \lang american
15039 \begin_inset Argument 1
15040 status collapsed
15041
15042 \begin_layout Plain Layout
15043
15044 \change_inserted 564990737 1672138150
15045
15046 \lang american
15047 \begin_inset ERT
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051
15052 \change_inserted 564990737 1672138150
15053
15054 label=
15055 \backslash
15056 #
15057 \backslash
15058 Alph{enumi}
15059 \backslash
15060 #
15061 \end_layout
15062
15063 \end_inset
15064
15065
15066 \change_unchanged
15067
15068 \end_layout
15069
15070 \end_inset
15071
15072 Level 1
15073 \begin_inset Separator latexpar
15074 \end_inset
15075
15076
15077 \end_layout
15078
15079 \begin_deeper
15080 \begin_layout Enumerate
15081
15082 \change_inserted 564990737 1672138150
15083
15084 \lang american
15085 \begin_inset Argument 1
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089
15090 \change_inserted 564990737 1672138150
15091
15092 \lang american
15093 \begin_inset ERT
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097
15098 \change_inserted 564990737 1672138150
15099
15100 label=
15101 \backslash
15102 Alph{enumi}.
15103 \backslash
15104 arabic{enumii}
15105 \end_layout
15106
15107 \end_inset
15108
15109
15110 \change_unchanged
15111
15112 \end_layout
15113
15114 \end_inset
15115
15116 Level 2
15117 \end_layout
15118
15119 \begin_layout Enumerate
15120
15121 \change_inserted 564990737 1672138150
15122
15123 \lang american
15124 Level 2
15125 \begin_inset Separator latexpar
15126 \end_inset
15127
15128
15129 \end_layout
15130
15131 \begin_deeper
15132 \begin_layout Enumerate
15133
15134 \change_inserted 564990737 1672138150
15135
15136 \lang american
15137 \begin_inset Argument 1
15138 status collapsed
15139
15140 \begin_layout Plain Layout
15141
15142 \change_inserted 564990737 1672138150
15143
15144 \lang american
15145 \begin_inset ERT
15146 status collapsed
15147
15148 \begin_layout Plain Layout
15149
15150 \change_inserted 564990737 1672138150
15151
15152 label=
15153 \backslash
15154 bf{
15155 \backslash
15156 arabic{enumiii}}
15157 \end_layout
15158
15159 \end_inset
15160
15161
15162 \change_unchanged
15163
15164 \end_layout
15165
15166 \end_inset
15167
15168 Level 3
15169 \begin_inset Separator latexpar
15170 \end_inset
15171
15172
15173 \end_layout
15174
15175 \begin_deeper
15176 \begin_layout Enumerate
15177
15178 \change_inserted 564990737 1672138150
15179
15180 \lang american
15181 \begin_inset Argument 1
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185
15186 \change_inserted 564990737 1672138150
15187
15188 \lang american
15189 \begin_inset ERT
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193
15194 \change_inserted 564990737 1672138150
15195
15196 label=
15197 \backslash
15198 emph{
15199 \backslash
15200 roman{enumiv})}
15201 \end_layout
15202
15203 \end_inset
15204
15205
15206 \change_unchanged
15207
15208 \end_layout
15209
15210 \end_inset
15211
15212 Level 4
15213 \end_layout
15214
15215 \end_deeper
15216 \end_deeper
15217 \end_deeper
15218 \begin_layout Standard
15219
15220 \change_inserted 564990737 1672138150
15221
15222 \lang american
15223 For this list these commands were used:
15224 \end_layout
15225
15226 \begin_layout Standard
15227 \noindent
15228
15229 \change_inserted 564990737 1672138150
15230
15231 \family sans
15232 \lang american
15233 label=
15234 \backslash
15235 #
15236 \backslash
15237 Alph{enumi}
15238 \backslash
15239 #
15240 \begin_inset Newline newline
15241 \end_inset
15242
15243 label=
15244 \backslash
15245 Alph{enumi}.
15246 \backslash
15247 arabic{enumii}
15248 \begin_inset Newline newline
15249 \end_inset
15250
15251 label=
15252 \backslash
15253 bf{
15254 \backslash
15255 arabic{enumiii}}
15256 \begin_inset Newline newline
15257 \end_inset
15258
15259 label=
15260 \backslash
15261 emph{
15262 \backslash
15263 roman{enumiv})}
15264 \end_layout
15265
15266 \begin_layout Standard
15267
15268 \change_inserted 564990737 1672138150
15269
15270 \lang american
15271 where the command 
15272 \family sans
15273
15274 \backslash
15275 emph{}
15276 \family default
15277  makes the label emphasized and 
15278 \family sans
15279
15280 \backslash
15281 bf{}
15282 \family default
15283  makes it bold.
15284 \end_layout
15285
15286 \begin_layout Standard
15287
15288 \change_inserted 564990737 1672138150
15289
15290 \lang american
15291 \begin_inset Note Greyedout
15292 status collapsed
15293
15294 \begin_layout Plain Layout
15295
15296 \change_inserted 564990737 1672138150
15297
15298 \series bold
15299 \lang american
15300 Note:
15301 \series default
15302  When you change the label of a list level, it will be used for all following
15303  lists until you change the definition.
15304 \end_layout
15305
15306 \end_inset
15307
15308
15309 \end_layout
15310
15311 \begin_layout Standard
15312
15313 \change_inserted 564990737 1672138150
15314
15315 \lang british
15316 \begin_inset ERT
15317 status open
15318
15319 \begin_layout Plain Layout
15320
15321 \change_inserted 564990737 1672138150
15322
15323
15324 \backslash
15325 renewcommand{
15326 \backslash
15327 labelenumi}{
15328 \backslash
15329 thesection.
15330 \backslash
15331 arabic{enumi}}
15332 \end_layout
15333
15334 \end_inset
15335
15336
15337 \end_layout
15338
15339 \begin_layout Subsubsection
15340
15341 \change_inserted 564990737 1672138150
15342
15343 \lang american
15344 Numbered Paragraphs in Reports
15345 \end_layout
15346
15347 \begin_layout Enumerate
15348
15349 \change_inserted 564990737 1672138213
15350
15351 \lang american
15352 Official reports often include numbered paragraphs; you can achieve this
15353  with a variation on the approach outlined in the footnote
15354 \begin_inset space ~
15355 \end_inset
15356
15357
15358 \begin_inset CommandInset ref
15359 LatexCommand ref
15360 reference "fn:If-you-really"
15361 plural "false"
15362 caps "false"
15363 noprefix "false"
15364
15365 \end_inset
15366
15367 .
15368  Replace 
15369 \family sans
15370 item
15371 \family default
15372  in each command with 
15373 \family sans
15374 enum
15375 \family default
15376 .
15377 \end_layout
15378
15379 \begin_layout Enumerate
15380
15381 \change_inserted 564990737 1672138150
15382
15383 \lang american
15384 These numbered paragraphs were generated by inserting the \SpecialChar TeX
15385  Code
15386 \begin_inset Separator latexpar
15387 \end_inset
15388
15389
15390 \end_layout
15391
15392 \begin_deeper
15393 \begin_layout Standard
15394
15395 \change_inserted 564990737 1672138150
15396
15397 \family sans
15398 \lang american
15399
15400 \backslash
15401 renewcommand{
15402 \backslash
15403 labelenumi}{
15404 \backslash
15405 thesection.
15406 \backslash
15407 arabic{enumi}}
15408 \end_layout
15409
15410 \begin_layout Standard
15411
15412 \change_inserted 564990737 1672138150
15413
15414 \lang american
15415 before the start of the section; 
15416 \family sans
15417
15418 \backslash
15419 thesection
15420 \family default
15421  uses the \SpecialChar LaTeX
15422  section counter to generate the first part of the number.
15423 \end_layout
15424
15425 \end_deeper
15426 \begin_layout Enumerate
15427
15428 \change_inserted 564990737 1672138150
15429
15430 \lang american
15431 I have ignored the subsection heading in this example because, with paragraphs
15432  numbered in this way, subsections are less likely to be used.
15433 \end_layout
15434
15435 \begin_layout Subsubsection
15436
15437 \change_inserted 564990737 1672138150
15438
15439 \lang american
15440 Resumed Enumeration
15441 \end_layout
15442
15443 \begin_layout Standard
15444
15445 \change_inserted 564990737 1672138150
15446
15447 \lang british
15448 \begin_inset ERT
15449 status open
15450
15451 \begin_layout Plain Layout
15452
15453 \change_inserted 564990737 1672138150
15454
15455
15456 \backslash
15457 renewcommand{
15458 \backslash
15459 labelenumi}{
15460 \backslash
15461 arabic{enumi}}
15462 \end_layout
15463
15464 \end_inset
15465
15466
15467 \end_layout
15468
15469 \begin_layout Standard
15470
15471 \change_inserted 564990737 1672138150
15472
15473 \lang american
15474 Enumerations can be resumed after intermediate paragraphs:
15475 \end_layout
15476
15477 \begin_layout Enumerate
15478
15479 \change_inserted 564990737 1672138150
15480
15481 \lang american
15482 \begin_inset Argument 1
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486
15487 \change_inserted 564990737 1672138150
15488
15489 \lang american
15490 \begin_inset ERT
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494
15495 \change_inserted 564990737 1672138150
15496
15497 label=
15498 \backslash
15499 arabic{enumi}.
15500 \end_layout
15501
15502 \end_inset
15503
15504
15505 \change_unchanged
15506
15507 \end_layout
15508
15509 \end_inset
15510
15511 first
15512 \begin_inset Note Note
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516
15517 \change_inserted 564990737 1672138150
15518
15519 \lang american
15520 goes back to default numbering
15521 \end_layout
15522
15523 \end_inset
15524
15525
15526 \end_layout
15527
15528 \begin_layout Enumerate
15529
15530 \change_inserted 564990737 1672138150
15531
15532 \lang american
15533 second
15534 \end_layout
15535
15536 \begin_layout Standard
15537
15538 \change_inserted 564990737 1672138150
15539
15540 \lang american
15541 regular text
15542 \end_layout
15543
15544 \begin_layout Enumerate-Resume
15545
15546 \change_inserted 564990737 1672138150
15547
15548 \lang american
15549 resumed
15550 \end_layout
15551
15552 \begin_layout Standard
15553
15554 \change_inserted 564990737 1672138150
15555
15556 \lang american
15557 To resume an enumeration, use the style 
15558 \family sans
15559 Enumerate-Resume
15560 \family default
15561 .
15562  Its numbering appears in blue within \SpecialChar LyX
15563  to indicate that it is a resumed
15564  list and that the numbering will not be correct in \SpecialChar LyX
15565 , but in the output.
15566 \end_layout
15567
15568 \begin_layout Standard
15569
15570 \change_inserted 564990737 1672138150
15571
15572 \lang american
15573 \begin_inset Note Greyedout
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577
15578 \change_inserted 564990737 1672138150
15579
15580 \series bold
15581 \lang american
15582 Note:
15583 \series default
15584  If there is no previous enumeration to resume, you will get a \SpecialChar LaTeX
15585  error.
15586 \end_layout
15587
15588 \end_inset
15589
15590
15591 \end_layout
15592
15593 \begin_layout Standard
15594
15595 \change_inserted 564990737 1672138150
15596
15597 \lang american
15598 Perhaps you might want to resume the list with a different number from the
15599  next one.
15600  Or you want to start a new enumeration with a defined number.
15601  This is possible by adding an optional argument to the first list item
15602  of a normal enumeration.
15603  There, insert the command
15604 \end_layout
15605
15606 \begin_layout Standard
15607
15608 \change_inserted 564990737 1672138150
15609
15610 \family sans
15611 \lang american
15612 start=number
15613 \end_layout
15614
15615 \begin_layout Standard
15616
15617 \change_inserted 564990737 1672138150
15618
15619 \lang american
15620 where 
15621 \family sans
15622 number
15623 \family default
15624  is the number with which you want to resume the list.
15625  An example:
15626 \end_layout
15627
15628 \begin_layout Enumerate
15629
15630 \change_inserted 564990737 1672138150
15631
15632 \lang american
15633 first item
15634 \end_layout
15635
15636 \begin_layout Enumerate
15637
15638 \change_inserted 564990737 1672138150
15639
15640 \lang american
15641 second item
15642 \end_layout
15643
15644 \begin_layout Standard
15645
15646 \change_inserted 564990737 1672138150
15647
15648 \lang american
15649 Enumeration starting at a given value:
15650 \end_layout
15651
15652 \begin_layout Enumerate
15653
15654 \change_inserted 564990737 1672138150
15655
15656 \lang american
15657 \begin_inset Argument 1
15658 status open
15659
15660 \begin_layout Plain Layout
15661
15662 \change_inserted 564990737 1672138150
15663
15664 \lang american
15665 \begin_inset ERT
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669
15670 \change_inserted 564990737 1672138150
15671
15672 start=4
15673 \end_layout
15674
15675 \end_inset
15676
15677
15678 \change_unchanged
15679
15680 \end_layout
15681
15682 \end_inset
15683
15684 This enumeration starts at 4
15685 \end_layout
15686
15687 \begin_layout Subsubsection
15688
15689 \change_inserted 564990737 1672138150
15690
15691 \lang american
15692 List Spacing
15693 \begin_inset Index idx
15694 range none
15695 pageformat default
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699
15700 \change_inserted 564990737 1672138150
15701
15702 \lang american
15703 Lists ! Spacing
15704 \change_unchanged
15705
15706 \end_layout
15707
15708 \end_inset
15709
15710
15711 \end_layout
15712
15713 \begin_layout Standard
15714
15715 \change_inserted 564990737 1672138150
15716
15717 \lang american
15718 In some cases you might want less or more vertical space between the items
15719  of a list.
15720  For example if the default space is too much in your opinion in this case:
15721 \end_layout
15722
15723 \begin_layout Itemize
15724
15725 \change_inserted 564990737 1672138150
15726
15727 \lang american
15728 A bullet list
15729 \end_layout
15730
15731 \begin_layout Itemize
15732
15733 \change_inserted 564990737 1672138150
15734
15735 \lang american
15736 with standard spacing 
15737 \end_layout
15738
15739 \begin_layout Standard
15740
15741 \change_inserted 564990737 1672138150
15742
15743 \lang american
15744 You can decrease the space by adding an optional argument to the first item
15745  of the list.
15746  Add there the command 
15747 \family sans
15748 nolistsep
15749 \family default
15750  to get no additional list space like in this example:
15751 \end_layout
15752
15753 \begin_layout Itemize
15754
15755 \change_inserted 564990737 1672138150
15756
15757 \lang american
15758 \begin_inset Argument 1
15759 status open
15760
15761 \begin_layout Plain Layout
15762
15763 \change_inserted 564990737 1672138150
15764
15765 \lang american
15766 \begin_inset ERT
15767 status collapsed
15768
15769 \begin_layout Plain Layout
15770
15771 \change_inserted 564990737 1672138150
15772
15773 nolistsep
15774 \end_layout
15775
15776 \end_inset
15777
15778
15779 \change_unchanged
15780
15781 \end_layout
15782
15783 \end_inset
15784
15785 A bullet list
15786 \end_layout
15787
15788 \begin_layout Itemize
15789
15790 \change_inserted 564990737 1672138150
15791
15792 \lang american
15793 without additional
15794 \end_layout
15795
15796 \begin_layout Itemize
15797
15798 \change_inserted 564990737 1672138150
15799
15800 \lang american
15801 vertical space
15802 \end_layout
15803
15804 \begin_layout Standard
15805
15806 \change_inserted 564990737 1672138150
15807
15808 \lang american
15809 To add space you can use several other commands provided by the 
15810 \family sans
15811 enumitem
15812 \family default
15813
15814 \begin_inset Index idx
15815 range none
15816 pageformat default
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820
15821 \change_inserted 564990737 1672138150
15822
15823 \lang american
15824 \SpecialChar LaTeX
15825 -packages ! enumitem
15826 \change_unchanged
15827
15828 \end_layout
15829
15830 \end_inset
15831
15832  package.
15833  For more information see the 
15834 \begin_inset CommandInset href
15835 LatexCommand href
15836 name "enumitem documentation"
15837 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15838 literal "false"
15839
15840 \end_inset
15841
15842 .
15843 \end_layout
15844
15845 \begin_layout Standard
15846
15847 \change_inserted 564990737 1672138150
15848
15849 \lang american
15850 There are also many commands available to change the horizontal spacing
15851  and indentation.
15852  Here is an example where the indentation was changed to that of the paragraphs
15853  in the document and the label separation was set to 2
15854 \begin_inset space \thinspace{}
15855 \end_inset
15856
15857 cm so that the number is in the page margin:
15858 \end_layout
15859
15860 \begin_layout Enumerate
15861
15862 \change_inserted 564990737 1672138150
15863
15864 \lang american
15865 \begin_inset Argument 1
15866 status open
15867
15868 \begin_layout Plain Layout
15869
15870 \change_inserted 564990737 1672138150
15871
15872 \lang american
15873 \begin_inset ERT
15874 status collapsed
15875
15876 \begin_layout Plain Layout
15877
15878 \change_inserted 564990737 1672138150
15879
15880 labelindent=
15881 \backslash
15882 parindent, labelsep=2cm
15883 \end_layout
15884
15885 \end_inset
15886
15887
15888 \change_unchanged
15889
15890 \end_layout
15891
15892 \end_inset
15893
15894 An enumeration
15895 \end_layout
15896
15897 \begin_layout Enumerate
15898
15899 \change_inserted 564990737 1672138150
15900
15901 \lang american
15902 with negative indentation
15903 \end_layout
15904
15905 \begin_layout Subsubsection
15906
15907 \change_inserted 564990737 1672138150
15908
15909 \lang american
15910 Further Customization
15911 \begin_inset Index idx
15912 range none
15913 pageformat default
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917
15918 \change_inserted 564990737 1672138150
15919
15920 \lang american
15921 Lists ! Customization
15922 \change_unchanged
15923
15924 \end_layout
15925
15926 \end_inset
15927
15928
15929 \end_layout
15930
15931 \begin_layout Standard
15932
15933 \change_inserted 564990737 1672138150
15934
15935 \lang american
15936 You can also change the style of description lists.
15937  The command
15938 \end_layout
15939
15940 \begin_layout Standard
15941
15942 \change_inserted 564990737 1672138150
15943
15944 \family sans
15945 \lang american
15946 font=definition
15947 \end_layout
15948
15949 \begin_layout Standard
15950
15951 \change_inserted 564990737 1672138150
15952
15953 \lang american
15954 changes the description label font, the command
15955 \end_layout
15956
15957 \begin_layout Standard
15958
15959 \change_inserted 564990737 1672138150
15960
15961 \family sans
15962 \lang american
15963 style=definitio
15964 \family default
15965 \series bold
15966 n
15967 \end_layout
15968
15969 \begin_layout Standard
15970
15971 \change_inserted 564990737 1672138150
15972
15973 \lang american
15974 sets the list style.
15975 \end_layout
15976
15977 \begin_layout Standard
15978
15979 \change_inserted 564990737 1672138150
15980
15981 \lang american
15982 An example where the command
15983 \end_layout
15984
15985 \begin_layout Standard
15986
15987 \change_inserted 564990737 1672138150
15988
15989 \family sans
15990 \lang american
15991 font=
15992 \backslash
15993 itshape, style=nextline
15994 \end_layout
15995
15996 \begin_layout Standard
15997
15998 \change_inserted 564990737 1672138150
15999
16000 \lang american
16001 is used:
16002 \end_layout
16003
16004 \begin_layout Description
16005
16006 \change_inserted 564990737 1672138150
16007
16008 \lang american
16009 Ionizing
16010 \begin_inset space ~
16011 \end_inset
16012
16013 radiation: 
16014 \begin_inset Argument 1
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018
16019 \change_inserted 564990737 1672138150
16020
16021 \lang american
16022 \begin_inset ERT
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026
16027 \change_inserted 564990737 1672138150
16028
16029 labelindent=0pt, labelsep=1cm, font=
16030 \backslash
16031 itshape, style=nextline
16032 \end_layout
16033
16034 \end_inset
16035
16036
16037 \change_unchanged
16038
16039 \end_layout
16040
16041 \end_inset
16042
16043 Ionizing radiation consists of particles or electromagnetic waves that are
16044  energetic enough to detach electrons from atoms or molecules, therefore
16045  ionizing them.
16046 \end_layout
16047
16048 \begin_layout Description
16049
16050 \change_inserted 564990737 1672138150
16051
16052 \lang american
16053 Reference
16054 \begin_inset space ~
16055 \end_inset
16056
16057 counting: In computer science, reference counting is a technique of storing
16058  the number of references, pointers, or handles to a resource such as an
16059  object, block of memory, disk space or other resource.
16060 \end_layout
16061
16062 \begin_layout Standard
16063
16064 \change_inserted 564990737 1672138150
16065
16066 \lang american
16067 There are many more commands and features provided by the 
16068 \family sans
16069 enumitem
16070 \family default
16071
16072 \begin_inset Index idx
16073 range none
16074 pageformat default
16075 status collapsed
16076
16077 \begin_layout Plain Layout
16078
16079 \change_inserted 564990737 1672138150
16080
16081 \lang american
16082 \SpecialChar LaTeX
16083 -packages ! enumitem
16084 \change_unchanged
16085
16086 \end_layout
16087
16088 \end_inset
16089
16090  package.
16091  For more information see the 
16092 \begin_inset CommandInset href
16093 LatexCommand href
16094 name "enumitem documentation"
16095 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
16096 literal "false"
16097
16098 \end_inset
16099
16100 .
16101 \end_layout
16102
16103 \begin_layout Subsection
16104
16105 \change_inserted 564990737 1672138150
16106
16107 \series bold
16108 \lang american
16109 Paragraph Lists
16110 \end_layout
16111
16112 \begin_layout Standard
16113
16114 \change_inserted 564990737 1672138150
16115
16116 \lang american
16117 This module uses the package 
16118 \family sans
16119 paralist
16120 \family default
16121  to provide nine new list environments.
16122  Itemized and enumerated lists can be typeset within paragraphs, as paragraphs
16123  and in a compact version.
16124  Most environments have optional arguments to format the labels.
16125  Additionally, the \SpecialChar LaTeX
16126  list environments itemize and enumerate are extended
16127  to use a similar optional argument.
16128  For further details see 
16129 \family sans
16130 File\SpecialChar menuseparator
16131 Open Example\SpecialChar menuseparator
16132 Modules\SpecialChar menuseparator
16133 Paragraph Lists (paralist)
16134 \family default
16135
16136 \family sans
16137 Help\SpecialChar menuseparator
16138 Specific Manuals\SpecialChar menuseparator
16139 Paralist
16140 \family default
16141  and the 
16142 \begin_inset CommandInset href
16143 LatexCommand href
16144 name "paralist documentation"
16145 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
16146 literal "false"
16147
16148 \end_inset
16149
16150 .
16151 \end_layout
16152
16153 \begin_layout Section
16154
16155 \change_inserted 564990737 1672161542
16156
16157 \lang american
16158 Literate Programming 
16159 \end_layout
16160
16161 \begin_layout Subsection
16162
16163 \change_inserted 564990737 1672161542
16164
16165 \lang american
16166 Noweb
16167 \end_layout
16168
16169 \begin_layout Standard
16170
16171 \change_inserted 564990737 1672161542
16172
16173 \lang american
16174 This module allows the use of Noweb as a literate programming tool.
16175  The files and the documentation for Noweb can be obtained from 
16176 \begin_inset CommandInset href
16177 LatexCommand href
16178 name "CTAN"
16179 target "https://www.ctan.org/pkg/noweb"
16180 literal "false"
16181
16182 \end_inset
16183
16184 .
16185  Literate programming is described in section
16186 \begin_inset space ~
16187 \end_inset
16188
16189
16190 \begin_inset CommandInset ref
16191 LatexCommand ref
16192 reference "sec:Literate-Programming"
16193
16194 \end_inset
16195
16196  and there are three example files: 
16197 \family sans
16198 File\SpecialChar menuseparator
16199 Open Example\SpecialChar menuseparator
16200 Modules\SpecialChar menuseparator
16201 Noweb
16202 \family default
16203
16204 \family sans
16205 File\SpecialChar menuseparator
16206 Open Example\SpecialChar menuseparator
16207 Modules\SpecialChar menuseparator
16208 Noweb Listerrors
16209 \family default
16210  and 
16211 \family sans
16212 File\SpecialChar menuseparator
16213 Open Example\SpecialChar menuseparator
16214 Modules\SpecialChar menuseparator
16215 Noweb2\SpecialChar LyX
16216
16217 \family default
16218 .
16219 \end_layout
16220
16221 \begin_layout Subsection
16222
16223 \change_inserted 564990737 1672161542
16224
16225 \lang american
16226 Rnw (knitr)
16227 \end_layout
16228
16229 \begin_layout Standard
16230
16231 \change_inserted 564990737 1672161542
16232
16233 \lang american
16234 This module uses the 
16235 \family typewriter
16236 knitr
16237 \family default
16238  and 
16239 \family sans
16240 includernw
16241 \family default
16242  packages.
16243  The
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248
16249 \change_inserted 564990737 1672161542
16250
16251 \lang american
16252 knitr
16253 \change_unchanged
16254
16255 \end_layout
16256
16257 \end_inset
16258
16259  package in R for dynamic report generation has to be installed for this
16260  module to work: 
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265
16266 \change_inserted 564990737 1672161542
16267
16268 \lang american
16269 install.packages(“knitr”)
16270 \change_unchanged
16271
16272 \end_layout
16273
16274 \end_inset
16275
16276 .
16277  
16278 \end_layout
16279
16280 \begin_layout Paragraph
16281
16282 \change_inserted 564990737 1672161542
16283
16284 \lang american
16285 Note 
16286 \end_layout
16287
16288 \begin_layout Standard
16289
16290 \change_inserted 564990737 1672161542
16291
16292 \lang american
16293 it depends on R >= 2.14.1.
16294  For more info see 
16295 \begin_inset Flex URL
16296 status collapsed
16297
16298 \begin_layout Plain Layout
16299
16300 \change_inserted 564990737 1672161542
16301
16302 http://yihui.name/knitr
16303 \change_unchanged
16304
16305 \end_layout
16306
16307 \end_inset
16308
16309 .
16310  
16311 \end_layout
16312
16313 \begin_layout Standard
16314
16315 \change_inserted 564990737 1672161542
16316
16317 \lang american
16318 The package 
16319 \family sans
16320 includernw
16321 \family default
16322  also has to be installed.
16323  It cannot be used if the modules 
16324 \family sans
16325 LilyPond
16326 \begin_inset space ~
16327 \end_inset
16328
16329 Book
16330 \family default
16331  or 
16332 \family sans
16333 Sweave
16334 \family default
16335  are loaded.
16336  See 
16337 \family sans
16338 Help\SpecialChar menuseparator
16339 Specific Manuals\SpecialChar menuseparator
16340 Knitr
16341 \family default
16342
16343 \family sans
16344 File\SpecialChar menuseparator
16345 Open Example\SpecialChar menuseparator
16346 Modules\SpecialChar menuseparator
16347 Rnw (knitr)
16348 \family default
16349  and section
16350 \begin_inset space ~
16351 \end_inset
16352
16353
16354 \begin_inset CommandInset ref
16355 LatexCommand ref
16356 reference "sec:Literate-Programming"
16357
16358 \end_inset
16359
16360  for information about literate programming.
16361 \end_layout
16362
16363 \begin_layout Subsection
16364
16365 \change_inserted 564990737 1672161542
16366
16367 \lang american
16368 Sweave
16369 \end_layout
16370
16371 \begin_layout Standard
16372
16373 \change_inserted 564990737 1672161542
16374
16375 \lang american
16376 This module allows the use of the statistical language S/R as a literate
16377  programming tool.
16378  It requires the 
16379 \family sans
16380 includernw
16381 \family default
16382  and 
16383 \family sans
16384 fancyvrb
16385 \family default
16386  packages.
16387  Both 
16388 \begin_inset CommandInset href
16389 LatexCommand href
16390 name "includernw"
16391 target "https://www.ctan.org/pkg/includernw"
16392 literal "false"
16393
16394 \end_inset
16395
16396  and 
16397 \begin_inset CommandInset href
16398 LatexCommand href
16399 name "fancyvrb"
16400 target "https://www.ctan.org/pkg/fancyvrb"
16401 literal "false"
16402
16403 \end_inset
16404
16405  are available from CTAN.
16406  It cannot be used if the module 
16407 \family sans
16408 LilyPond
16409 \begin_inset space ~
16410 \end_inset
16411
16412 Book
16413 \family default
16414  has been loaded.
16415  See 
16416 \family sans
16417 Help\SpecialChar menuseparator
16418 Specific Manuals\SpecialChar menuseparator
16419 Sweave,
16420 \family default
16421  
16422 \family sans
16423 File\SpecialChar menuseparator
16424 Open Example\SpecialChar menuseparator
16425 Modules\SpecialChar menuseparator
16426 Sweave
16427 \family default
16428  and section
16429 \begin_inset space ~
16430 \end_inset
16431
16432
16433 \begin_inset CommandInset ref
16434 LatexCommand ref
16435 reference "sec:Literate-Programming"
16436
16437 \end_inset
16438
16439  for information about literate programming.
16440 \end_layout
16441
16442 \begin_layout Section
16443
16444 \change_inserted 564990737 1672224959
16445
16446 \lang american
16447 Maths
16448 \end_layout
16449
16450 \begin_layout Subsection
16451
16452 \change_inserted 564990737 1672224959
16453
16454 \lang american
16455 AMS Theorems
16456 \end_layout
16457
16458 \begin_layout Standard
16459
16460 \change_inserted 564990737 1672224959
16461
16462 \lang american
16463 This modules defines theorem environments and the proof environment using
16464  the extended AMS machinery.
16465  Both numbered and unnumbered types are provided.
16466  By default, the theorems are numbered consecutively throughout the document.
16467  This can be changed by loading one of the 
16468 \family sans
16469 AMS Theorems (Numbered by \SpecialChar ldots
16470 )
16471 \family default
16472  modules.
16473  It cannot be used if the modules 
16474 \family sans
16475 Standard Theorems
16476 \family default
16477  or 
16478 \family sans
16479 Standard Theorems (Unnumbered)
16480 \family default
16481  have been loaded.
16482 \end_layout
16483
16484 \begin_layout Subsection
16485
16486 \change_inserted 564990737 1672224959
16487
16488 \lang american
16489 AMS Theorems (Extended)
16490 \end_layout
16491
16492 \begin_layout Standard
16493
16494 \change_inserted 564990737 1672224959
16495
16496 \lang american
16497 This module defines some additional theorem environments for use with the
16498  
16499 \family sans
16500 AMS Theorems
16501 \family default
16502  package (which must be loaded).
16503  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
16504  Acknowledgement, Conclusion, Fact, Assumption, Case and Question in both
16505  numbered and unnumbered forms.
16506 \end_layout
16507
16508 \begin_layout Subsection
16509
16510 \change_inserted 564990737 1672224959
16511
16512 \lang american
16513 AMS Theorems (Extended, Numbered by Type within Chapters)
16514 \end_layout
16515
16516 \begin_layout Standard
16517
16518 \change_inserted 564990737 1672224959
16519
16520 \lang american
16521 This module defines some additional theorem environments for use with the
16522  
16523 \family sans
16524 AMS Theorems (Numbered by Type within Chapters)
16525 \family default
16526  package (which must be loaded).
16527  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
16528  Acknowledgement, Conclusion, Assumption and Case in both numbered and unnumbere
16529 d forms.
16530  Unlike the 
16531 \family sans
16532 AMS Theorems (Extended)
16533 \family default
16534  module, the different theorem types provided here each have a separate
16535  counter, restarted with each new chapter (e.g., criterion 1.1, criterion 1.2,
16536  axiom 1.1, assumption 1.1, criterion 2.1, criterion 2.2, axiom 2.1\SpecialChar ldots
16537 , as opposed
16538  to criterion 1, criterion 2, axiom 3, assumption 4...).
16539 \end_layout
16540
16541 \begin_layout Subsection
16542
16543 \change_inserted 564990737 1672224959
16544
16545 \lang american
16546 AMS Theorems (Extended, Numbered by Type)
16547 \end_layout
16548
16549 \begin_layout Standard
16550
16551 \change_inserted 564990737 1672224959
16552
16553 \lang american
16554 This module defines some additional theorem environments for use with the
16555  
16556 \family sans
16557 AMS Theorems (Numbered by Type)
16558 \family default
16559  package (which must be loaded).
16560  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
16561  Acknowledgement, Conclusion, Assumption and Case in both numbered and unnumbere
16562 d forms.
16563  Unlike the 
16564 \family sans
16565 AMS Theorems (Extended)
16566 \family default
16567  module, the different theorem types provided here each have a separate
16568  counter (e.g., criterion 1, criterion 2, axiom 1, assumption 1, criterion
16569  3, \SpecialChar ldots
16570 , as opposed to criterion 1, criterion 2, axiom 3, assumption 4, \SpecialChar ldots
16571 ).
16572 \end_layout
16573
16574 \begin_layout Subsection
16575
16576 \change_inserted 564990737 1672224959
16577
16578 \lang american
16579 AMS Theorems (Numbered by Type within Chapters) 
16580 \end_layout
16581
16582 \begin_layout Standard
16583
16584 \change_inserted 564990737 1672224959
16585
16586 \lang american
16587 This module defines theorem environments and the proof environment using
16588  the extended AMS machinery.
16589  Both numbered and unnumbered types are provided.
16590  Unlike the 
16591 \family sans
16592 AMS Theorems
16593 \family default
16594  module, the different theorem types provided here each have a separate
16595  counter (e.g., theorem 1.1, theorem 1.2, lemma 1.1, proposition 1.1, theorem
16596  1.3, lemma 1.2, \SpecialChar ldots
16597 , as opposed to theorem 1, theorem 2, lemma 3, proposition
16598  4, \SpecialChar ldots
16599 ).
16600  The numbering restarts for each chapter: theorem 1.1, theorem 2.1, \SpecialChar ldots
16601  It cannot
16602  be used if the modules 
16603 \family sans
16604 AMS Theorems
16605 \family default
16606
16607 \family sans
16608 Standard Theorems
16609 \family default
16610 ,
16611 \family sans
16612  Standard Theorems (Numbered by Type)
16613 \family default
16614  or
16615 \family sans
16616  Standard Theorems (Unnumbered)
16617 \family default
16618  have been loaded.
16619 \end_layout
16620
16621 \begin_layout Subsection
16622
16623 \change_inserted 564990737 1672224959
16624
16625 \lang american
16626 AMS Theorems (Numbered by Type)
16627 \end_layout
16628
16629 \begin_layout Standard
16630
16631 \change_inserted 564990737 1672224959
16632
16633 \lang american
16634 This module defines theorem environments and the proof environment using
16635  the extended AMS machinery.
16636  Both numbered and unnumbered types are provided.
16637  Unlike the 
16638 \family sans
16639 AMS Theorems
16640 \family default
16641  module, the different theorem types provided here each have a separate
16642  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16643  2, \SpecialChar ldots
16644 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16645 ).
16646  The numbering’s scope is the whole document.
16647  For chapter- and section-wide numbering, use one of the ‘within Sections’/‘with
16648 in Chapters’ modules, respectively.
16649  It cannot be used if the modules 
16650 \family sans
16651 AMS Theorems
16652 \family default
16653
16654 \family sans
16655 Standard Theorems
16656 \family default
16657 ,
16658 \family sans
16659  Standard Theorems (Numbered by Type)
16660 \family default
16661  or
16662 \family sans
16663  Standard Theorems (Unnumbered)
16664 \family default
16665  have been loaded.
16666 \end_layout
16667
16668 \begin_layout Subsection
16669
16670 \change_inserted 564990737 1672224959
16671
16672 \lang american
16673 Number Equations by Section
16674 \end_layout
16675
16676 \begin_layout Standard
16677
16678 \change_inserted 564990737 1672224959
16679
16680 \lang american
16681 This module resets the equation number at section start and prepends the
16682  section number to the equation number, as in “(2.1).” 
16683 \end_layout
16684
16685 \begin_layout Subsection
16686
16687 \change_inserted 564990737 1672224959
16688
16689 \lang american
16690 Standard Theorems
16691 \end_layout
16692
16693 \begin_layout Standard
16694
16695 \change_inserted 564990737 1672224959
16696
16697 \lang american
16698 This module defines some theorem environments for use with non-AMS classes.
16699  By default, the theorems are numbered consecutively throughout the document.
16700  This can be changed by loading one of the 
16701 \family sans
16702 Standard Theorems (Numbered by \SpecialChar ldots
16703 )
16704 \family default
16705  modules.
16706  It cannot be used if the modules 
16707 \family sans
16708 AMS Theorems
16709 \family default
16710  or
16711 \family sans
16712  Standard Theorems (Unnumbered)
16713 \family default
16714  have been loaded.
16715  
16716 \end_layout
16717
16718 \begin_layout Subsection
16719
16720 \change_inserted 564990737 1672224959
16721
16722 \lang american
16723 Standard Theorems (Nameable)
16724 \end_layout
16725
16726 \begin_layout Standard
16727
16728 \change_inserted 564990737 1672224959
16729
16730 \lang american
16731 This module facilitates the use of named theorems.
16732  The name of the theorem goes into the “Additional Theorem Text” argument.
16733  
16734 \end_layout
16735
16736 \begin_layout Subsection
16737
16738 \change_inserted 564990737 1672224959
16739
16740 \lang american
16741 Standard Theorems (Numbered by Chapter)
16742 \end_layout
16743
16744 \begin_layout Standard
16745
16746 \change_inserted 564990737 1672224959
16747
16748 \lang american
16749 This module numbers theorems and the like by chapter (i.e., the counter is
16750  reset at each chapter start).
16751  Use this module only with document classes that provide a chapter environment.
16752  One of the modules 
16753 \family sans
16754 AMS Theorems
16755 \family default
16756  or 
16757 \family sans
16758 Standard Theorems
16759 \family default
16760  must be loaded.
16761  It cannot be used if the module
16762 \family sans
16763  Standard Theorems (Numbered by Section)
16764 \family default
16765  has been loaded.
16766 \end_layout
16767
16768 \begin_layout Subsection
16769
16770 \change_inserted 564990737 1672224959
16771
16772 \lang american
16773 Standard Theorems (Numbered by Section)
16774 \end_layout
16775
16776 \begin_layout Standard
16777
16778 \change_inserted 564990737 1672224959
16779
16780 \lang american
16781 This module numbers theorems and the like by section (i.e., the counter is
16782  reset at each section start).
16783  One of the modules 
16784 \family sans
16785 AMS Theorems
16786 \family default
16787  or 
16788 \family sans
16789 Standard Theorems
16790 \family default
16791  must be loaded.
16792  It cannot be used if the module
16793 \family sans
16794  Standard Theorems (Numbered by Chapter)
16795 \family default
16796  has been loaded.
16797 \end_layout
16798
16799 \begin_layout Subsection
16800
16801 \change_inserted 564990737 1672224959
16802
16803 \lang american
16804 Standard Theorems (Numbered by Type within Chapters) 
16805 \end_layout
16806
16807 \begin_layout Standard
16808
16809 \change_inserted 564990737 1672224959
16810
16811 \lang american
16812 This module defines some theorem environments for use with non-AMS classes.
16813  Unlike the
16814 \family sans
16815  AMS Theorems
16816 \family default
16817  and 
16818 \family sans
16819 Standard Theorems
16820 \family default
16821  modules, the different theorem types provided here each have a separate
16822  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16823  2, \SpecialChar ldots
16824 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16825 ).
16826  The numbering is reset at each chapter start.
16827  One of the modules 
16828 \family sans
16829 AMS Theorems (Numbered by Type)
16830 \family default
16831  or 
16832 \family sans
16833 Standard Theorems (Numbered by Type)
16834 \family default
16835  must be loaded.
16836  It cannot be used if any of the modules
16837 \family sans
16838  AMS Theorems
16839 \family default
16840
16841 \family sans
16842 Standard Theorems
16843 \family default
16844
16845 \family sans
16846 Standard Theorems (Unnumbered)
16847 \family default
16848 ,
16849 \family sans
16850  Standard Theorems (Numbered by Sections)
16851 \family default
16852  or 
16853 \family sans
16854 Standard Theorems (Numbered by Type within Sections)
16855 \family default
16856  have been loaded.
16857 \end_layout
16858
16859 \begin_layout Subsection
16860
16861 \change_inserted 564990737 1672224959
16862
16863 \lang american
16864 Standard Theorems (Numbered by Type within Sections) 
16865 \end_layout
16866
16867 \begin_layout Standard
16868
16869 \change_inserted 564990737 1672224959
16870
16871 \lang american
16872 This module defines some theorem environments for use with non-AMS classes.
16873  Unlike the
16874 \family sans
16875  AMS Theorems
16876 \family default
16877  and 
16878 \family sans
16879 Standard Theorems
16880 \family default
16881  modules, the different theorem types provided here each have a separate
16882  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16883  2, \SpecialChar ldots
16884 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16885 ).
16886  The numbering is reset at each section start.
16887  One of the modules 
16888 \family sans
16889 AMS Theorems (Numbered by Type)
16890 \family default
16891  or 
16892 \family sans
16893 Standard Theorems (Numbered by Type)
16894 \family default
16895  must be loaded.
16896  It cannot be used if any of the modules
16897 \family sans
16898  AMS Theorems
16899 \family default
16900
16901 \family sans
16902 Standard Theorems
16903 \family default
16904
16905 \family sans
16906 Standard Theorems (Unnumbered)
16907 \family default
16908 ,
16909 \family sans
16910  Standard Theorems (Numbered by Chapters)
16911 \family default
16912  or 
16913 \family sans
16914 Standard Theorems (Numbered by Type within Chapters)
16915 \family default
16916  have been loaded.
16917 \end_layout
16918
16919 \begin_layout Subsection
16920
16921 \change_inserted 564990737 1672224959
16922
16923 \lang american
16924 Standard Theorems (Numbered by Type)
16925 \end_layout
16926
16927 \begin_layout Standard
16928
16929 \change_inserted 564990737 1672224959
16930
16931 \lang american
16932 This module defines some theorem environments for use with non-AMS classes.
16933  Unlike the 
16934 \family sans
16935 AMS Theorems
16936 \family default
16937  and 
16938 \family sans
16939 Standard Theorems
16940 \family default
16941  modules, the different theorem types provided here each have a separate
16942  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16943  2, \SpecialChar ldots
16944 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16945 ).
16946  The numbering’s scope is the whole document.
16947  For chapter- and section-wide numbering, use one of the “within Chapters”/“with
16948 in Sections” modules, respectively.
16949  It cannot be used if any of the modules
16950 \family sans
16951  AMS Theorems
16952 \family default
16953
16954 \family sans
16955 Standard Theorems
16956 \family default
16957
16958 \family sans
16959 Standard Theorems (Unnumbered)
16960 \family default
16961  or
16962 \family sans
16963  AMS Theorems (Numbered by Type)
16964 \family default
16965  have been loaded.
16966 \end_layout
16967
16968 \begin_layout Subsection
16969
16970 \change_inserted 564990737 1672224959
16971
16972 \lang american
16973 Standard Theorems (Unnumbered)
16974 \end_layout
16975
16976 \begin_layout Standard
16977
16978 \change_inserted 564990737 1672224959
16979
16980 \lang american
16981 This module defines only unnumbered theorem environments and the proof environme
16982 nt, using the extended AMS machinery.
16983  It cannot be used if either of the modules
16984 \family sans
16985  AMS Theorems
16986 \family default
16987  or
16988 \family sans
16989  Standard Theorems
16990 \family default
16991  have been loaded.
16992 \end_layout
16993
16994 \begin_layout Subsection
16995
16996 \change_inserted 564990737 1672224959
16997
16998 \lang american
16999 Subequations
17000 \end_layout
17001
17002 \begin_layout Standard
17003
17004 \change_inserted 564990737 1672224959
17005
17006 \lang american
17007 This module provides a straightforward way to segregate subequations in
17008  LyX.
17009  See 
17010 \family sans
17011 Help\SpecialChar menuseparator
17012 Math\SpecialChar menuseparator
17013 Subnumbering
17014 \family default
17015 .
17016  
17017 \end_layout
17018
17019 \begin_layout Section
17020
17021 \change_inserted 564990737 1672236008
17022
17023 \lang american
17024 Page Layout
17025 \end_layout
17026
17027 \begin_layout Subsection
17028
17029 \change_inserted 564990737 1672236008
17030
17031 \lang american
17032 Custom Header/Footer Text
17033 \end_layout
17034
17035 \begin_layout Standard
17036
17037 \change_inserted 564990737 1672236008
17038
17039 \lang american
17040 This module requires the 
17041 \family sans
17042 Page
17043 \begin_inset space ~
17044 \end_inset
17045
17046
17047 \bar under
17048 s
17049 \bar default
17050 tyle
17051 \family default
17052  option in the 
17053 \family sans
17054 \bar under
17055 D
17056 \bar default
17057 ocument\SpecialChar menuseparator
17058
17059 \bar under
17060 S
17061 \bar default
17062 ettings\SpecialChar menuseparator
17063 Page
17064 \begin_inset space ~
17065 \end_inset
17066
17067 Layout
17068 \family default
17069  dialog to be set to 
17070 \family typewriter
17071 fancy
17072 \family default
17073 .
17074  It adds six environments to document classes which support the 
17075 \family typewriter
17076 fancyhdr
17077 \family default
17078  package:
17079 \end_layout
17080
17081 \begin_layout Itemize
17082
17083 \change_inserted 564990737 1672236008
17084
17085 \family sans
17086 \lang american
17087 Left Header
17088 \end_layout
17089
17090 \begin_layout Itemize
17091
17092 \change_inserted 564990737 1672236008
17093
17094 \family sans
17095 \lang american
17096 Center Header
17097 \end_layout
17098
17099 \begin_layout Itemize
17100
17101 \change_inserted 564990737 1672236008
17102
17103 \family sans
17104 \lang american
17105 Right Header
17106 \end_layout
17107
17108 \begin_layout Itemize
17109
17110 \change_inserted 564990737 1672236008
17111
17112 \family sans
17113 \lang american
17114 Left Footer
17115 \end_layout
17116
17117 \begin_layout Itemize
17118
17119 \change_inserted 564990737 1672236008
17120
17121 \family sans
17122 \lang american
17123 Center Footer
17124 \end_layout
17125
17126 \begin_layout Itemize
17127
17128 \change_inserted 564990737 1672236008
17129
17130 \family sans
17131 \lang american
17132 Right Footer
17133 \end_layout
17134
17135 \begin_layout Subsubsection
17136
17137 \change_inserted 564990737 1672236008
17138
17139 \lang american
17140 Fancy Headers and Footers
17141 \end_layout
17142
17143 \begin_layout Standard
17144
17145 \change_inserted 564990737 1672236008
17146
17147 \lang american
17148 The default page layout is rather plain; for an 
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153
17154 \change_inserted 564990737 1672236008
17155
17156 \lang american
17157 article
17158 \end_layout
17159
17160 \end_inset
17161
17162  document class, all you get is a centered page number at the bottom of
17163  the page.
17164  This document uses KOMA-script’s book class; so it appears to be a bit
17165  fancier.
17166  Once the 
17167 \family sans
17168 Page
17169 \begin_inset space ~
17170 \end_inset
17171
17172
17173 \bar under
17174 s
17175 \bar default
17176 tyle
17177 \family default
17178  in 
17179 \family sans
17180 \bar under
17181 D
17182 \bar default
17183 ocument\SpecialChar menuseparator
17184
17185 \bar under
17186 S
17187 \bar default
17188 ettings\SpecialChar menuseparator
17189 Page Layout
17190 \family default
17191  is set to 
17192 \begin_inset Quotes eld
17193 \end_inset
17194
17195 fancy
17196 \begin_inset Quotes erd
17197 \end_inset
17198
17199 , you will find that the page header is divided into three fields, not surprisin
17200 gly labeled 
17201 \begin_inset Quotes eld
17202 \end_inset
17203
17204 left
17205 \begin_inset Quotes erd
17206 \end_inset
17207
17208
17209 \begin_inset Quotes eld
17210 \end_inset
17211
17212 center
17213 \begin_inset Quotes erd
17214 \end_inset
17215
17216 , and 
17217 \begin_inset Quotes eld
17218 \end_inset
17219
17220 right
17221 \begin_inset Quotes erd
17222 \end_inset
17223
17224 .
17225  The footer is also divided into these three fields.
17226  The \SpecialChar LaTeX
17227  commands to set these fields in the simplest manner are 
17228 \family sans
17229
17230 \backslash
17231 lhead
17232 \family default
17233
17234 \family sans
17235
17236 \backslash
17237 chead
17238 \family default
17239
17240 \family sans
17241
17242 \backslash
17243 rhead
17244 \family default
17245
17246 \family sans
17247
17248 \backslash
17249 lfoot
17250 \family default
17251 , etc.
17252  Suppose you wish to put your name in the upper left hand corner of each
17253  page.
17254  Simply insert the following command in the preamble: 
17255 \end_layout
17256
17257 \begin_layout Standard
17258
17259 \change_inserted 564990737 1672236008
17260
17261 \family sans
17262 \lang american
17263
17264 \backslash
17265 lhead
17266 \family default
17267 \series bold
17268 {
17269 \series default
17270 John Q.
17271  DocWriter
17272 \series bold
17273 }
17274 \end_layout
17275
17276 \begin_layout Standard
17277
17278 \change_inserted 564990737 1672236008
17279
17280 \lang american
17281 You will now see your name in the upper left.
17282  If a field has a default entry that you would like to get rid of (often
17283  the page number appears in the central footer) simply include a command
17284  with a blank argument, e.
17285 \begin_inset space \thinspace{}
17286 \end_inset
17287
17288 g.:
17289 \end_layout
17290
17291 \begin_layout Standard
17292
17293 \change_inserted 564990737 1672236008
17294
17295 \family sans
17296 \lang american
17297
17298 \backslash
17299 cfoot{}
17300 \end_layout
17301
17302 \begin_layout Standard
17303
17304 \change_inserted 564990737 1672236008
17305
17306 \lang american
17307 There is, however, an easier way to make simple changes.
17308  If you load the 
17309 \family sans
17310 \bar under
17311 D
17312 \bar default
17313 ocument\SpecialChar menuseparator
17314
17315 \bar under
17316 S
17317 \bar default
17318 ettings\SpecialChar menuseparator
17319 Modules\SpecialChar menuseparator
17320 Page Layout\SpecialChar menuseparator
17321 Custom Header/Footer Text
17322 \family default
17323  module, you will find you have six new environments corresponding to the
17324  six fields described above.
17325 \end_layout
17326
17327 \begin_layout Standard
17328
17329 \change_inserted 564990737 1672236008
17330
17331 \lang american
17332 Let's get really fancy: lets put the section number with the word 
17333 \begin_inset Quotes eld
17334 \end_inset
17335
17336 Section
17337 \begin_inset Quotes erd
17338 \end_inset
17339
17340  (e.
17341 \begin_inset space \thinspace{}
17342 \end_inset
17343
17344 g.
17345 \begin_inset space \space{}
17346 \end_inset
17347
17348 Section 3) in the upper left, the page number (e.
17349 \begin_inset space \thinspace{}
17350 \end_inset
17351
17352 g.
17353 \begin_inset space \space{}
17354 \end_inset
17355
17356 Page 4) in the upper right, your name in the lower left, and the date in
17357  the lower right.
17358  Use your newly enabled environments to add these entries:
17359 \end_layout
17360
17361 \begin_layout Standard
17362
17363 \change_inserted 564990737 1672236008
17364
17365 \lang american
17366 \begin_inset VSpace defskip
17367 \end_inset
17368
17369
17370 \end_layout
17371
17372 \begin_layout Standard
17373
17374 \change_inserted 564990737 1672236008
17375
17376 \color green
17377 \lang american
17378 Left
17379 \begin_inset space ~
17380 \end_inset
17381
17382 header:
17383 \series bold
17384 \color inherit
17385  
17386 \series default
17387 Section
17388 \family typewriter
17389  
17390 \family sans
17391
17392 \backslash
17393 thesection
17394 \end_layout
17395
17396 \begin_layout Standard
17397
17398 \change_inserted 564990737 1672236008
17399
17400 \color green
17401 \lang american
17402 Center header:
17403 \end_layout
17404
17405 \begin_layout Standard
17406
17407 \change_inserted 564990737 1672236008
17408
17409 \color green
17410 \lang american
17411 Right header:
17412 \color inherit
17413  Page
17414 \family typewriter
17415  
17416 \family sans
17417
17418 \backslash
17419 thepage
17420 \end_layout
17421
17422 \begin_layout Standard
17423
17424 \change_inserted 564990737 1672236008
17425
17426 \color green
17427 \lang american
17428 Left footer:
17429 \color inherit
17430  John Q.
17431  DocWriter
17432 \end_layout
17433
17434 \begin_layout Standard
17435
17436 \change_inserted 564990737 1672236008
17437
17438 \color green
17439 \lang american
17440 Center footer:
17441 \end_layout
17442
17443 \begin_layout Standard
17444
17445 \change_inserted 564990737 1672236008
17446
17447 \color green
17448 \lang american
17449 Right footer:
17450 \series bold
17451 \color inherit
17452  
17453 \family sans
17454 \series default
17455
17456 \backslash
17457 today
17458 \end_layout
17459
17460 \begin_layout Standard
17461
17462 \change_inserted 564990737 1672236008
17463
17464 \lang american
17465 \begin_inset VSpace defskip
17466 \end_inset
17467
17468
17469 \end_layout
17470
17471 \begin_layout Standard
17472
17473 \change_inserted 564990737 1672236008
17474
17475 \lang american
17476 Make sure you enter the commands 
17477 \family sans
17478
17479 \backslash
17480 thesection
17481 \family default
17482
17483 \family sans
17484
17485 \backslash
17486 thepage
17487 \family default
17488  and 
17489 \family sans
17490
17491 \backslash
17492 today
17493 \family default
17494  as \SpecialChar TeX
17495  Code commands
17496 \series bold
17497 .
17498
17499 \series default
17500  The commands 
17501 \family sans
17502
17503 \backslash
17504 thesection
17505 \family default
17506  and 
17507 \family sans
17508
17509 \backslash
17510 thepage
17511 \family default
17512  access \SpecialChar LaTeX
17513 ’s section and page counters, and so print out the current section
17514  and page numbers.
17515  
17516 \family sans
17517
17518 \backslash
17519 today
17520 \family default
17521  simply prints out today’s date.
17522 \end_layout
17523
17524 \begin_layout Standard
17525
17526 \change_inserted 564990737 1672236008
17527
17528 \lang american
17529 The thicknesses of the horizontal rules drawn beneath the header and above
17530  the footer can also be modified.
17531  If you don't want one of the rules, set its thickness to 0.
17532  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
17533  For this you will need to use \SpecialChar TeX
17534  Code commands like 
17535 \end_layout
17536
17537 \begin_layout Standard
17538
17539 \change_inserted 564990737 1672236008
17540
17541 \family sans
17542 \lang american
17543
17544 \backslash
17545 renewcommand{
17546 \backslash
17547 headrulewidth}{0.4pt}
17548 \family default
17549  and 
17550 \end_layout
17551
17552 \begin_layout Standard
17553
17554 \change_inserted 564990737 1672236008
17555
17556 \family sans
17557 \lang american
17558
17559 \backslash
17560 renewcommand{
17561 \backslash
17562 footrulewidth}{0.4pt}
17563 \family default
17564  to set the thicknesses.
17565 \end_layout
17566
17567 \begin_layout Standard
17568
17569 \change_inserted 564990737 1672236008
17570
17571 \lang american
17572 You can switch the header/footer settings on and off for individual pages
17573  using \SpecialChar TeX
17574  Code commands like 
17575 \family sans
17576
17577 \backslash
17578 thispagestyle{empty}
17579 \family default
17580
17581 \family sans
17582
17583 \backslash
17584 thispagestyle{plain}
17585 \family default
17586 , and 
17587 \family sans
17588
17589 \backslash
17590 thispagestyle{fancy}
17591 \family default
17592 .
17593  Simply insert them in the text on the page you want changed and mark them
17594  as \SpecialChar TeX
17595  code.
17596  In fact, title pages are marked as plain by default, while following pages
17597  are marked fancy when using the global fancy setting.
17598  
17599 \end_layout
17600
17601 \begin_layout Standard
17602
17603 \change_inserted 564990737 1672236008
17604
17605 \lang american
17606 If you want a header or footer to be on the outer side of a two sided document,
17607  you need to use something like:
17608 \end_layout
17609
17610 \begin_layout Standard
17611
17612 \change_inserted 564990737 1672236008
17613
17614 \family sans
17615 \lang american
17616 \begin_inset Flex Strong
17617 status collapsed
17618
17619 \begin_layout Plain Layout
17620
17621 \change_inserted 564990737 1672236008
17622
17623 \family sans
17624 \series medium
17625 \lang american
17626
17627 \backslash
17628 fancyfoot{}
17629 \end_layout
17630
17631 \end_inset
17632
17633
17634 \end_layout
17635
17636 \begin_layout Standard
17637
17638 \change_inserted 564990737 1672236008
17639
17640 \family sans
17641 \lang american
17642 \begin_inset Flex Strong
17643 status collapsed
17644
17645 \begin_layout Plain Layout
17646
17647 \change_inserted 564990737 1672236008
17648
17649 \family sans
17650 \series medium
17651 \lang american
17652
17653 \backslash
17654 fancyfoot[LE,RO]{
17655 \backslash
17656 thepage}
17657 \end_layout
17658
17659 \end_inset
17660
17661
17662 \end_layout
17663
17664 \begin_layout Standard
17665
17666 \change_inserted 564990737 1672236008
17667
17668 \lang american
17669 The first command clears all existing footers avoiding any conflicts with
17670  your new command.
17671 \end_layout
17672
17673 \begin_layout Standard
17674
17675 \change_inserted 564990737 1672236008
17676
17677 \lang american
17678 You can enter any of these commands, the simpler ones in any of your new
17679  environments, the more complex ones as \SpecialChar TeX
17680  Code commands, at any point in
17681  your document and they will take effect on the next page.
17682 \end_layout
17683
17684 \begin_layout Standard
17685
17686 \change_inserted 564990737 1672236008
17687
17688 \lang american
17689 As a final example, it is possible to include an image in the header or
17690  footer.
17691  Suppose you want to put a company logo in the upper left hand corner.
17692  You might try something like
17693 \end_layout
17694
17695 \begin_layout Standard
17696
17697 \change_inserted 564990737 1672236008
17698
17699 \family sans
17700 \lang american
17701
17702 \backslash
17703 lhead{
17704 \backslash
17705 resizebox{1in}{!}{
17706 \backslash
17707 includegraphics{logo.eps}}}
17708 \end_layout
17709
17710 \begin_layout Standard
17711 \noindent
17712
17713 \change_inserted 564990737 1672236008
17714
17715 \lang american
17716 (you may need to preface this with 
17717 \family sans
17718
17719 \backslash
17720 usepackage{graphics}
17721 \family default
17722  if you don't include graphics elsewhere in your document).
17723 \end_layout
17724
17725 \begin_layout Standard
17726
17727 \change_inserted 564990737 1672236008
17728
17729 \lang american
17730 For more information on fancy headers, you can get the 
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735
17736 \change_inserted 564990737 1672236008
17737
17738 \lang american
17739 fancyhdr
17740 \end_layout
17741
17742 \end_inset
17743
17744  documentation from 
17745 \begin_inset CommandInset href
17746 LatexCommand href
17747 name "CTAN"
17748 target "http://www.ctan.org/pkg/fancyhdr"
17749 literal "false"
17750
17751 \end_inset
17752
17753 .
17754  
17755 \end_layout
17756
17757 \begin_layout Subsection
17758
17759 \change_inserted 564990737 1672236008
17760
17761 \lang american
17762 Landscape Document Parts
17763 \end_layout
17764
17765 \begin_layout Standard
17766
17767 \change_inserted 564990737 1672236008
17768
17769 \lang american
17770 This module outputs parts of the document in landscape mode using 
17771 \family sans
17772 Insert\SpecialChar menuseparator
17773 Custom Insets\SpecialChar menuseparator
17774 Landscape
17775 \family default
17776  or 
17777 \family sans
17778 Insert\SpecialChar menuseparator
17779 Custom Insets\SpecialChar menuseparator
17780 Landscape (Floating)
17781 \family default
17782 .
17783 \end_layout
17784
17785 \begin_layout Subsection
17786
17787 \change_inserted 564990737 1672236008
17788
17789 \lang american
17790 \begin_inset CommandInset label
17791 LatexCommand label
17792 name "sec:Multiple-Columns"
17793
17794 \end_inset
17795
17796 Multiple Columns
17797 \end_layout
17798
17799 \begin_layout Standard
17800
17801 \change_inserted 564990737 1672236008
17802
17803 \lang american
17804 This module uses the 
17805 \family sans
17806 multicol
17807 \family default
17808
17809 \begin_inset Index idx
17810 range none
17811 pageformat default
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815
17816 \change_inserted 564990737 1672236008
17817
17818 \lang american
17819 \SpecialChar LaTeX
17820 -packages ! multicol
17821 \end_layout
17822
17823 \end_inset
17824
17825  package and is independent of the option 
17826 \family sans
17827 Two-
17828 \bar under
17829 c
17830 \bar default
17831 olumn document
17832 \family default
17833  in the 
17834 \family sans
17835 \bar under
17836 D
17837 \bar default
17838 ocument\SpecialChar menuseparator
17839
17840 \bar under
17841 S
17842 \bar default
17843 ettings\SpecialChar menuseparator
17844 Text
17845 \begin_inset space ~
17846 \end_inset
17847
17848 Layout
17849 \family default
17850  dialog.
17851  If you want to have two columns for the whole document, you are recommended
17852  to use the 
17853 \family sans
17854 Two-
17855 \bar under
17856 c
17857 \bar default
17858 olumn document
17859 \family default
17860  option.
17861  For all other cases use this module.
17862 \change_deleted 564990737 1672236008
17863
17864 \lang english
17865 Multiple Text Columns
17866 \end_layout
17867
17868 \begin_layout Standard
17869
17870 \change_deleted 564990737 1672236008
17871 This feature is independent of the option 
17872 \family sans
17873 Two-column document
17874 \family default
17875  in the document settings under 
17876 \family sans
17877 Text Layout
17878 \family default
17879 .
17880  If you want to have 2
17881 \begin_inset space ~
17882 \end_inset
17883
17884 columns for the whole document, it is recommended to use the 
17885 \family sans
17886 Two-column document
17887 \family default
17888  option.
17889  For all other cases use this feature.
17890 \end_layout
17891
17892 \begin_layout Standard
17893
17894 \change_deleted 564990737 1672236008
17895 To use multiple text columns in your document, you have to load the module
17896  
17897 \family sans
17898 Multiple Columns
17899 \family default
17900  (menu 
17901 \family sans
17902 Document\SpecialChar menuseparator
17903 Settings\SpecialChar menuseparator
17904 Modules
17905 \family default
17906 ) and must have the \SpecialChar LaTeX
17907 -package 
17908 \begin_inset Flex Code
17909 status collapsed
17910
17911 \begin_layout Plain Layout
17912 multicol
17913 \end_layout
17914
17915 \end_inset
17916
17917  installed.
17918 \change_unchanged
17919
17920 \end_layout
17921
17922 \begin_layout Standard
17923 Footnotes within multiple columns will be placed at the bottom of the page
17924  and not under each column.
17925  Within the different columns you can use everything, with the limitation
17926  that for floats you need to 
17927 \change_deleted 564990737 1672236179
17928 use the float option 
17929 \family sans
17930 Span columns
17931 \change_inserted 564990737 1672236179
17932
17933 \family default
17934 \lang american
17935 check the option 
17936 \family sans
17937 \bar under
17938 S
17939 \bar default
17940 pan
17941 \begin_inset space ~
17942 \end_inset
17943
17944 columns
17945 \family default
17946  in 
17947 \family sans
17948 \bar under
17949 E
17950 \bar default
17951 dit\SpecialChar menuseparator
17952 Flo
17953 \bar under
17954 a
17955 \bar default
17956 t
17957 \begin_inset space ~
17958 \end_inset
17959
17960 Settings
17961 \change_unchanged
17962
17963 \family default
17964 \lang english
17965 .
17966 \end_layout
17967
17968 \begin_layout Subsubsection
17969 Basics
17970 \end_layout
17971
17972 \begin_layout Standard
17973 If you want to have 2
17974 \begin_inset space ~
17975 \end_inset
17976
17977 columns in your text, insert a multicolumn inset via the menu 
17978 \family sans
17979 Insert\SpecialChar menuseparator
17980 Custom
17981 \begin_inset space ~
17982 \end_inset
17983
17984 Insets\SpecialChar menuseparator
17985 Multiple
17986 \begin_inset space ~
17987 \end_inset
17988
17989 Columns
17990 \family default
17991  where the columns should start.
17992  Write all text that should be printed in 2
17993 \begin_inset space ~
17994 \end_inset
17995
17996 columns into this inset.
17997 \end_layout
17998
17999 \begin_layout Standard
18000 Here is an example:
18001 \end_layout
18002
18003 \begin_layout Standard
18004 \noindent
18005 \begin_inset Flex Multiple Columns
18006 status open
18007
18008 \begin_layout Plain Layout
18009 \noindent
18010
18011 \series bold
18012 \size small
18013 The Adventure of the Empty House
18014 \series default
18015
18016 \begin_inset Newline newline
18017 \end_inset
18018
18019 by Sir Arthur Conan Doyle
18020 \end_layout
18021
18022 \begin_layout Plain Layout
18023
18024 \size small
18025 It was in the spring of the year 1894 that all London was interested, and
18026  the fashionable world dismayed, by the murder of the Honourable Ronald
18027  Adair under most unusual and inexplicable circumstances.
18028  The public has already learned those particulars of the crime which came
18029  out in the police investigation, but a good deal was suppressed upon that
18030  occasion, since the case for the prosecution was so overwhelmingly strong
18031  that it was not necessary to bring forward all the facts.
18032  Only now, at the end of nearly ten years, am I allowed to supply those
18033  missing links which make up the whole of that remarkable chain.
18034  The crime was of interest in itself, but that interest was as nothing to
18035  me compared to the inconceivable sequel, which afforded me the greatest
18036  shock and surprise of any event in my adventurous life.
18037  Even now, after this long interval, I find myself thrilling as I think
18038  of it, and feeling once more that sudden flood of joy, amazement, and increduli
18039 ty which utterly submerged my mind.
18040  Let me say to that public, which has shown some interest in those glimpses
18041  which I have occasionally given them of the thoughts and actions of a very
18042  remarkable man, that they are not to blame me if I have not shared my knowledge
18043  with them, for I should have considered it my first duty to do so, had
18044  I not been barred by a positive prohibition from his own lips, which was
18045  only withdrawn upon the third of last month.
18046 \end_layout
18047
18048 \end_inset
18049
18050
18051 \end_layout
18052
18053 \begin_layout Standard
18054 To get 3 or more columns, set the cursor into the multicolumn inset and
18055  use the menu 
18056 \family sans
18057 Insert\SpecialChar menuseparator
18058 Number
18059 \begin_inset space ~
18060 \end_inset
18061
18062 of
18063 \begin_inset space ~
18064 \end_inset
18065
18066 Columns
18067 \family default
18068 .
18069  The number of the desired columns is written into that inset (for 3
18070 \begin_inset space ~
18071 \end_inset
18072
18073 columns write 
18074 \begin_inset Quotes eld
18075 \end_inset
18076
18077 3
18078 \begin_inset Quotes erd
18079 \end_inset
18080
18081 ).
18082 \begin_inset Newline newline
18083 \end_inset
18084
18085 Here is an example with 3
18086 \begin_inset space ~
18087 \end_inset
18088
18089 columns:
18090 \end_layout
18091
18092 \begin_layout Standard
18093 \begin_inset Flex Multiple Columns
18094 status open
18095
18096 \begin_layout Plain Layout
18097
18098 \size footnotesize
18099 \begin_inset Argument 1
18100 status open
18101
18102 \begin_layout Plain Layout
18103
18104 3
18105 \end_layout
18106
18107 \end_inset
18108
18109 It can be imagined that my close intimacy with Sherlock Holmes had interested
18110  me deeply in crime, and that after his disappearance I never failed to
18111  read with care the various problems which came before the public.
18112  And I even attempted, more than once, for my own private satisfaction,
18113  to employ his methods in their solution, though with indifferent success.
18114  There was none, however, which appealed to me like this tragedy of Ronald
18115  Adair.
18116  As I read the evidence at the inquest, which led up to a verdict of willful
18117  murder against some person or persons unknown, I realized more clearly
18118  than I had ever done the loss which the community had sustained by the
18119  death of Sherlock Holmes.
18120  There were points about this strange business which would, I was sure,
18121  have specially appealed to him, and the efforts of the police would have
18122  been supplemented, or more probably anticipated, by the trained observation
18123  and the alert mind of the first criminal agent in Europe.
18124  All day, as I drove upon my round, I turned over the case in my mind and
18125  found no explanation which appeared to me to be adequate.
18126  At the risk of telling a twice-told tale, I will recapitulate the facts
18127  as they were known to the public at the conclusion of the inquest.
18128 \end_layout
18129
18130 \end_inset
18131
18132
18133 \end_layout
18134
18135 \begin_layout Standard
18136 You can have up to 10
18137 \begin_inset space ~
18138 \end_inset
18139
18140 columns if you want to, but that might not be very pleasant for the readers
18141  of your document.
18142 \end_layout
18143
18144 \begin_layout Standard
18145
18146 \change_deleted 564990737 1672236245
18147 \begin_inset Newpage newpage
18148 \end_inset
18149
18150
18151 \change_unchanged
18152
18153 \end_layout
18154
18155 \begin_layout Subsubsection
18156 Columns inside Columns
18157 \end_layout
18158
18159 \begin_layout Standard
18160 You can also have columns inside columns:
18161 \end_layout
18162
18163 \begin_layout Standard
18164 \begin_inset Flex Multiple Columns
18165 status open
18166
18167 \begin_layout Plain Layout
18168
18169 \size footnotesize
18170 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
18171  at that time governor of one of the Australian colonies.
18172  Adair's mother had returned from Australia to undergo the operation for
18173  cataract, and she, her son Ronald, and her daughter Hilda were living together
18174  at 427 Park Lane.
18175 \end_layout
18176
18177 \begin_layout Plain Layout
18178 \begin_inset Flex Multiple Columns
18179 status open
18180
18181 \begin_layout Plain Layout
18182
18183 \size footnotesize
18184 The youth moved in the best society
18185 \begin_inset space ~
18186 \end_inset
18187
18188 – had, so far as was known, no enemies and no particular vices.
18189  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
18190  had been broken off by mutual consent some months before, and there was
18191  no sign that it had left any very profound feeling behind it.
18192  For the rest {sic} the man's life moved in a narrow and conventional circle,
18193  for his habits were quiet and his nature unemotional.
18194  Yet it was upon this easy-going young aristocrat that death came, in most
18195  strange and unexpected form, between the hours of ten and eleven-twenty
18196  on the night of March 30, 1894.
18197 \end_layout
18198
18199 \end_inset
18200
18201
18202 \end_layout
18203
18204 \begin_layout Plain Layout
18205
18206 \size footnotesize
18207 Ronald Adair was fond of cards
18208 \begin_inset space ~
18209 \end_inset
18210
18211 – playing continually, but never for such stakes as would hurt him.
18212  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
18213  It was shown that, after dinner on the day of his death, he had played
18214  a rubber of whist at the latter club.
18215  He had also played there in the afternoon.
18216
18217 \size default
18218  
18219 \size footnotesize
18220 The evidence of those who had played with him
18221 \begin_inset space ~
18222 \end_inset
18223
18224 – Mr.
18225  Murray, Sir John Hardy, and Colonel Moran
18226 \begin_inset space ~
18227 \end_inset
18228
18229 – showed that the game was whist, and that there was a fairly equal fall
18230  of the cards.
18231  Adair might have lost five pounds, but not more.
18232  His fortune was a considerable one, and such a loss could not in any way
18233  affect him.
18234  He had played nearly every day at one club or other, but he was a cautious
18235  player, and usually rose a winner.
18236  It came out in evidence that, in partnership with Colonel Moran, he had
18237  actually won as much as four hundred and twenty pounds in a sitting, some
18238  weeks before, from Godfrey Milner and Lord Balmoral.
18239  So much for his recent history as it came out at the inquest.
18240 \end_layout
18241
18242 \end_inset
18243
18244
18245 \end_layout
18246
18247 \begin_layout Subsubsection
18248 Advanced Examples
18249 \end_layout
18250
18251 \begin_layout Standard
18252 The examples in this section show some more special features of multiple
18253  columns.
18254 \end_layout
18255
18256 \begin_layout Standard
18257 For more features of multiple columns, have a look at the 
18258 \begin_inset CommandInset href
18259 LatexCommand href
18260 name "documentation"
18261 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
18262 literal "false"
18263
18264 \end_inset
18265
18266  of the \SpecialChar LaTeX
18267 -package 
18268 \begin_inset Flex Code
18269 status collapsed
18270
18271 \begin_layout Plain Layout
18272 multicol
18273 \end_layout
18274
18275 \end_inset
18276
18277 .
18278 \end_layout
18279
18280 \begin_layout Paragraph
18281 Preface
18282 \end_layout
18283
18284 \begin_layout Standard
18285 To add a preface text for multiple columns, set the cursor into the multicolumn
18286  inset and use the menu 
18287 \family sans
18288 Insert\SpecialChar menuseparator
18289 Preface
18290 \family default
18291 .
18292  Write your preface text into that inset.
18293 \begin_inset Newline newline
18294 \end_inset
18295
18296 This is an example with some preface text:
18297 \end_layout
18298
18299 \begin_layout Standard
18300 \begin_inset VSpace bigskip
18301 \end_inset
18302
18303
18304 \end_layout
18305
18306 \begin_layout Standard
18307 \begin_inset Flex Multiple Columns
18308 status open
18309
18310 \begin_layout Plain Layout
18311 \begin_inset Argument 2
18312 status open
18313
18314 \begin_layout Plain Layout
18315 And the story continues and continues and continues and continues\SpecialChar ldots
18316
18317 \end_layout
18318
18319 \end_inset
18320
18321
18322 \size small
18323 On the evening of the crime, he returned from the club exactly at ten.
18324  His mother and sister were out spending the evening with a relation.
18325  The servant deposed that she heard him enter the front room on the second
18326  floor, generally used as his sitting-room.
18327  She had lit a fire there, and as it smoked she had opened the window.
18328  No sound was heard from the room until eleven-twenty, the hour of the return
18329  of Lady Maynooth and her daughter.
18330  Desiring to say good-night, she attempted to enter her son's room.
18331  The door was locked on the inside, and no answer could be got to their
18332  cries and knocking.
18333  Help was obtained, and the door forced.
18334  The unfortunate young man was found lying near the table.
18335  His head had been horribly mutilated by an expanding revolver bullet, but
18336  no weapon of any sort was to be found in the room.
18337 \end_layout
18338
18339 \end_inset
18340
18341
18342 \end_layout
18343
18344 \begin_layout Standard
18345 You can also use a section heading as the preface if you use a section command
18346  as \SpecialChar TeX
18347  Code.
18348  For example the command
18349 \end_layout
18350
18351 \begin_layout LyX-Code
18352
18353 \backslash
18354 subsection{subsection title}
18355 \end_layout
18356
18357 \begin_layout Standard
18358 creates a subsection.
18359  In this example the preface is a subsubsection:
18360 \end_layout
18361
18362 \begin_layout Standard
18363 \begin_inset Flex Multiple Columns
18364 status open
18365
18366 \begin_layout Plain Layout
18367 \begin_inset Argument 2
18368 status open
18369
18370 \begin_layout Plain Layout
18371 \begin_inset ERT
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375
18376
18377 \backslash
18378 subsubsection{
18379 \end_layout
18380
18381 \end_inset
18382
18383 This is a subsubsection heading as a preface
18384 \begin_inset ERT
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388
18389 }
18390 \end_layout
18391
18392 \end_inset
18393
18394
18395 \end_layout
18396
18397 \end_inset
18398
18399
18400 \size small
18401 A minute examination of the circumstances served only to make the case more
18402  complex.
18403  In the first place, no reason could be given why the young man should have
18404  fastened the door upon the inside.
18405  There was the possibility that the murderer had done this, and had afterwards
18406  escaped by the window.
18407  The drop was at least twenty feet, however, and a bed of crocuses in full
18408  bloom lay beneath.
18409  Neither the flowers nor the earth showed any sign of having been disturbed,
18410  nor were there any marks upon the narrow strip of grass which separated
18411  the house from the road.
18412  Apparently, therefore, it was the young man himself who had fastened the
18413  door.
18414  But how did he come by his death? No one could have climbed up to the window
18415  without leaving traces.
18416  Suppose a man had fired through the window, he would indeed be a remarkable
18417  shot who could with a revolver inflict so deadly a wound.
18418  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
18419  a hundred yards of the house.
18420  No one had heard a shot.
18421 \end_layout
18422
18423 \end_inset
18424
18425
18426 \end_layout
18427
18428 \begin_layout Standard
18429 If there is less vertical space than 6
18430 \begin_inset space ~
18431 \end_inset
18432
18433 text lines is left on the page at the beginning of the multiple columns,
18434  a page break will be inserted before the multiple columns.
18435  Depending on the number of lines of the preface text, you might want to
18436  change this space.
18437  This is done by setting the cursor into the mulitcolumn inset behind the
18438  preface (if there is any) and using the menu 
18439 \family sans
18440 Insert\SpecialChar menuseparator
18441 Space
18442 \begin_inset space ~
18443 \end_inset
18444
18445 Before
18446 \begin_inset space ~
18447 \end_inset
18448
18449 Page
18450 \begin_inset space ~
18451 \end_inset
18452
18453 Break
18454 \family default
18455 .
18456  Insert into that inset the amount of space like e.
18457 \begin_inset space \thinspace{}
18458 \end_inset
18459
18460 g.
18461 \begin_inset space \space{}
18462 \end_inset
18463
18464
18465 \begin_inset Quotes eld
18466 \end_inset
18467
18468 5cm
18469 \begin_inset Quotes erd
18470 \end_inset
18471
18472 .
18473 \begin_inset Newline newline
18474 \end_inset
18475
18476 In this example the space is set to 7
18477 \begin_inset space ~
18478 \end_inset
18479
18480 text lines by using 
18481 \begin_inset Flex Code
18482 status collapsed
18483
18484 \begin_layout Plain Layout
18485 7
18486 \backslash
18487 baselineskip
18488 \end_layout
18489
18490 \end_inset
18491
18492  (where the command 
18493 \begin_inset Flex Code
18494 status collapsed
18495
18496 \begin_layout Plain Layout
18497
18498 \backslash
18499 baselineskip
18500 \end_layout
18501
18502 \end_inset
18503
18504  needs to be inserted as \SpecialChar TeX
18505  code):
18506 \end_layout
18507
18508 \begin_layout Standard
18509 \begin_inset Flex Multiple Columns
18510 status open
18511
18512 \begin_layout Plain Layout
18513 \begin_inset Argument 3
18514 status open
18515
18516 \begin_layout Plain Layout
18517 7
18518 \begin_inset ERT
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522
18523
18524 \backslash
18525 baselineskip
18526 \end_layout
18527
18528 \end_inset
18529
18530
18531 \end_layout
18532
18533 \end_inset
18534
18535
18536 \size small
18537 On the evening of the crime, he returned from the club exactly at ten.
18538  His mother and sister were out spending the evening with a relation.
18539  The servant deposed that she heard him enter the front room on the second
18540  floor, generally used as his sitting-room.
18541  She had lit a fire there, and as it smoked she had opened the window.
18542  No sound was heard from the room until eleven-twenty, the hour of the return
18543  of Lady Maynooth and her daughter.
18544  Desiring to say good-night, she attempted to enter her son's room.
18545  The door was locked on the inside, and no answer could be got to their
18546  cries and knocking.
18547  Help was obtained, and the door forced.
18548  The unfortunate young man was found lying near the table.
18549  His head had been horribly mutilated by an expanding revolver bullet, but
18550  no weapon of any sort was to be found in the room.
18551 \end_layout
18552
18553 \end_inset
18554
18555
18556 \end_layout
18557
18558 \begin_layout Paragraph
18559 Surrounding Space
18560 \end_layout
18561
18562 \begin_layout Standard
18563 The amount of space before and after multiple columns can be changed by
18564  changing the length 
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569
18570 \backslash
18571 multicolsep
18572 \end_layout
18573
18574 \end_inset
18575
18576 .
18577  For example the command
18578 \end_layout
18579
18580 \begin_layout LyX-Code
18581
18582 \backslash
18583 setlength{
18584 \backslash
18585 multicolsep}{3cm}
18586 \end_layout
18587
18588 \begin_layout Standard
18589 in \SpecialChar TeX
18590  Code changes its value to 3
18591 \begin_inset space \thinspace{}
18592 \end_inset
18593
18594 cm.
18595  The change must be made before the multiple columns' start.
18596  The predefined value is 13
18597 \begin_inset space \thinspace{}
18598 \end_inset
18599
18600 pt.
18601 \end_layout
18602
18603 \begin_layout Standard
18604 For this example 
18605 \begin_inset Flex Code
18606 status collapsed
18607
18608 \begin_layout Plain Layout
18609
18610 \backslash
18611 multicolsep
18612 \end_layout
18613
18614 \end_inset
18615
18616  was set to 2.5
18617 \begin_inset space \thinspace{}
18618 \end_inset
18619
18620 cm:
18621 \end_layout
18622
18623 \begin_layout Standard
18624 \begin_inset ERT
18625 status open
18626
18627 \begin_layout Plain Layout
18628
18629
18630 \backslash
18631 setlength{
18632 \backslash
18633 multicolsep}{2.5cm}
18634 \end_layout
18635
18636 \end_inset
18637
18638
18639 \end_layout
18640
18641 \begin_layout Standard
18642 \begin_inset Flex Multiple Columns
18643 status open
18644
18645 \begin_layout Plain Layout
18646
18647 \size small
18648 All day I turned these facts over in my mind, endeavouring to hit upon some
18649  theory which could reconcile them all, and to find that line of least resistanc
18650 e which my poor friend had declared to be the starting-point of every investigat
18651 ion.
18652  I confess that I made little progress.
18653  In the evening I strolled across the Park, and found myself about six o'clock
18654  at the Oxford Street end of Park Lane.
18655  A group of loafers upon the pavements, all staring up at a particular window,
18656  directed me to the house which I had come to see.
18657  A tall, thin man with coloured glasses, whom I strongly suspected of being
18658  a plain-clothes detective, was pointing out some theory of his own, while
18659  the others crowded round to listen to what he said.
18660  I got as near him as I could, but his observations seemed to me to be absurd,
18661  so I withdrew again in some disgust.
18662  As I did so I struck against an elderly, deformed man, who had been behind
18663  me, and I knocked down several books which he was carrying.
18664 \end_layout
18665
18666 \end_inset
18667
18668
18669 \end_layout
18670
18671 \begin_layout Standard
18672 \begin_inset Note Greyedout
18673 status open
18674
18675 \begin_layout Plain Layout
18676
18677 \series bold
18678 Note:
18679 \series default
18680  The values you set with 
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685
18686 \backslash
18687 setlength
18688 \end_layout
18689
18690 \end_inset
18691
18692  will be used for all following multiple columns until you change them again.
18693 \end_layout
18694
18695 \end_inset
18696
18697
18698 \end_layout
18699
18700 \begin_layout Standard
18701 \begin_inset ERT
18702 status collapsed
18703
18704 \begin_layout Plain Layout
18705
18706
18707 \backslash
18708 setlength{
18709 \backslash
18710 multicolsep}{13pt}
18711 \end_layout
18712
18713 \end_inset
18714
18715
18716 \begin_inset Note Note
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720 go back to the default
18721 \end_layout
18722
18723 \end_inset
18724
18725
18726 \end_layout
18727
18728 \begin_layout Standard
18729
18730 \change_deleted 564990737 1672236355
18731 \begin_inset Newpage newpage
18732 \end_inset
18733
18734
18735 \change_unchanged
18736
18737 \end_layout
18738
18739 \begin_layout Paragraph
18740 Column Breaks
18741 \end_layout
18742
18743 \begin_layout Standard
18744 A column break can be forced by inserting the command 
18745 \begin_inset Flex Code
18746 status collapsed
18747
18748 \begin_layout Plain Layout
18749
18750 \backslash
18751 columnbreak{}
18752 \end_layout
18753
18754 \end_inset
18755
18756  as \SpecialChar TeX
18757  Code to that position in the text where the column should be broken.
18758  Note that this leads in most cases to whitespace in the text.
18759 \begin_inset Newline newline
18760 \end_inset
18761
18762 Here is an example:
18763 \end_layout
18764
18765 \begin_layout Standard
18766 \begin_inset Flex Multiple Columns
18767 status open
18768
18769 \begin_layout Plain Layout
18770
18771 \size small
18772 \begin_inset Quotes eld
18773 \end_inset
18774
18775 You're surprised to see me, sir,
18776 \begin_inset Quotes erd
18777 \end_inset
18778
18779  said he, in a strange, croaking voice.
18780 \end_layout
18781
18782 \begin_layout Plain Layout
18783
18784 \size small
18785 I acknowledged that I was.
18786 \end_layout
18787
18788 \begin_layout Plain Layout
18789
18790 \size small
18791 \begin_inset Quotes eld
18792 \end_inset
18793
18794 Well, I've a conscience, sir, and when I chanced to see you go into this
18795  house, as I came hobbling after you, I thought to myself, I'll just step
18796  in and see that kind gentleman, and tell him that if I was a bit gruff
18797  in my manner there was not any harm meant, and that I am much obliged to
18798  him for picking up my books.
18799 \begin_inset Quotes erd
18800 \end_inset
18801
18802
18803 \end_layout
18804
18805 \begin_layout Plain Layout
18806
18807 \size small
18808 \begin_inset Quotes eld
18809 \end_inset
18810
18811 You make too much of a trifle,
18812 \begin_inset Quotes erd
18813 \end_inset
18814
18815  said I.
18816  
18817 \begin_inset Quotes eld
18818 \end_inset
18819
18820 May I ask how you knew who I was?
18821 \begin_inset Quotes erd
18822 \end_inset
18823
18824  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
18825 \begin_inset ERT
18826 status collapsed
18827
18828 \begin_layout Plain Layout
18829
18830
18831 \backslash
18832 columnbreak{}
18833 \end_layout
18834
18835 \end_inset
18836
18837
18838 \end_layout
18839
18840 \begin_layout Plain Layout
18841
18842 \size small
18843 \begin_inset Quotes eld
18844 \end_inset
18845
18846 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
18847  you'll find my little bookshop at the corner of Church Street, and very
18848  happy to see you, I am sure.
18849  Maybe you collect yourself, sir.
18850  Here's 
18851 \noun on
18852 British
18853 \begin_inset space ~
18854 \end_inset
18855
18856 Birds
18857 \noun default
18858 , and 
18859 \noun on
18860 Catullus
18861 \noun default
18862 , and 
18863 \noun on
18864 The Holy War
18865 \noun default
18866
18867 \begin_inset space ~
18868 \end_inset
18869
18870 – a bargain, every one of them.
18871  With five volumes you could just fill that gap on that second shelf.
18872  It looks untidy, does it not, sir?
18873 \begin_inset Quotes erd
18874 \end_inset
18875
18876
18877 \end_layout
18878
18879 \end_inset
18880
18881
18882 \end_layout
18883
18884 \begin_layout Paragraph
18885 Column Separation
18886 \end_layout
18887
18888 \begin_layout Standard
18889 The width of the columns is automatically calculated, but you can modify
18890  the space between the columns.
18891  This is done by changing the length 
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896
18897 \backslash
18898 columnsep
18899 \end_layout
18900
18901 \end_inset
18902
18903 .
18904  Its predefined value is 10
18905 \begin_inset space \thinspace{}
18906 \end_inset
18907
18908 pt.
18909  Here is an example where 
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914
18915 \backslash
18916 columnsep
18917 \end_layout
18918
18919 \end_inset
18920
18921  is set to 3
18922 \begin_inset space \thinspace{}
18923 \end_inset
18924
18925 cm:
18926 \end_layout
18927
18928 \begin_layout Standard
18929 \begin_inset ERT
18930 status open
18931
18932 \begin_layout Plain Layout
18933
18934
18935 \backslash
18936 setlength{
18937 \backslash
18938 columnsep}{3cm}
18939 \end_layout
18940
18941 \end_inset
18942
18943
18944 \end_layout
18945
18946 \begin_layout Standard
18947 \begin_inset Flex Multiple Columns
18948 status open
18949
18950 \begin_layout Plain Layout
18951
18952 \size small
18953 My observations of No.
18954 \begin_inset space \space{}
18955 \end_inset
18956
18957 427 Park Lane did little to clear up the problem in which I was interested.
18958  The house was separated from the street by a low wall and railing, the
18959  whole not more than five feet high.
18960  It was perfectly easy, therefore, for anyone to get into the garden, but
18961  the window was entirely inaccessible, since there was no water pipe or
18962  anything which could help the most active man to climb it.
18963  More puzzled than ever, I retraced my steps to Kensington.
18964  I had not been in my study five minutes when the maid entered to say that
18965  a person desired to see me.
18966  To my astonishment it was none other than my strange old book collector,
18967  his sharp, wizened face peering out from a frame of white hair, and his
18968  precious volumes, a dozen of them at least, wedged under his right arm.
18969 \end_layout
18970
18971 \end_inset
18972
18973
18974 \end_layout
18975
18976 \begin_layout Standard
18977 \begin_inset ERT
18978 status collapsed
18979
18980 \begin_layout Plain Layout
18981
18982
18983 \backslash
18984 setlength{
18985 \backslash
18986 columnsep}{10pt}
18987 \end_layout
18988
18989 \end_inset
18990
18991
18992 \begin_inset Note Note
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 go back to the default
18997 \end_layout
18998
18999 \end_inset
19000
19001
19002 \end_layout
19003
19004 \begin_layout Paragraph
19005 Vertical Lines
19006 \end_layout
19007
19008 \begin_layout Standard
19009 Between the columns a rule with a width of the length 
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014
19015 \backslash
19016 columnseprule
19017 \end_layout
19018
19019 \end_inset
19020
19021  is placed.
19022  If this rule width is set to 0
19023 \begin_inset space \thinspace{}
19024 \end_inset
19025
19026 pt (this is the default), the rule is suppressed.
19027  In the following example the rule is 2
19028 \begin_inset space \thinspace{}
19029 \end_inset
19030
19031 pt wide:
19032 \end_layout
19033
19034 \begin_layout Standard
19035 \begin_inset ERT
19036 status open
19037
19038 \begin_layout Plain Layout
19039
19040
19041 \backslash
19042 setlength{
19043 \backslash
19044 columnseprule}{2pt}
19045 \end_layout
19046
19047 \end_inset
19048
19049
19050 \end_layout
19051
19052 \begin_layout Standard
19053 \begin_inset Flex Multiple Columns
19054 status open
19055
19056 \begin_layout Plain Layout
19057
19058 \size small
19059 \begin_inset Quotes eld
19060 \end_inset
19061
19062 You're surprised to see me, sir,
19063 \begin_inset Quotes erd
19064 \end_inset
19065
19066  said he, in a strange, croaking voice.
19067 \end_layout
19068
19069 \begin_layout Plain Layout
19070
19071 \size small
19072 I acknowledged that I was.
19073 \end_layout
19074
19075 \begin_layout Plain Layout
19076
19077 \size small
19078 \begin_inset Quotes eld
19079 \end_inset
19080
19081 Well, I've a conscience, sir, and when I chanced to see you go into this
19082  house, as I came hobbling after you, I thought to myself, I'll just step
19083  in and see that kind gentleman, and tell him that if I was a bit gruff
19084  in my manner there was not any harm meant, and that I am much obliged to
19085  him for picking up my books.
19086 \begin_inset Quotes erd
19087 \end_inset
19088
19089
19090 \end_layout
19091
19092 \begin_layout Plain Layout
19093
19094 \size small
19095 \begin_inset Quotes eld
19096 \end_inset
19097
19098 You make too much of a trifle,
19099 \begin_inset Quotes erd
19100 \end_inset
19101
19102  said I.
19103  
19104 \begin_inset Quotes eld
19105 \end_inset
19106
19107 May I ask how you knew who I was?
19108 \begin_inset Quotes erd
19109 \end_inset
19110
19111
19112 \end_layout
19113
19114 \begin_layout Plain Layout
19115
19116 \size small
19117 \begin_inset Quotes eld
19118 \end_inset
19119
19120 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
19121  you'll find my little bookshop at the corner of Church Street, and very
19122  happy to see you, I am sure.
19123  Maybe you collect yourself, sir.
19124  Here's 
19125 \noun on
19126 British
19127 \begin_inset space ~
19128 \end_inset
19129
19130 Birds
19131 \noun default
19132 , and 
19133 \noun on
19134 Catullus
19135 \noun default
19136 , and 
19137 \noun on
19138 The Holy War
19139 \noun default
19140
19141 \begin_inset space ~
19142 \end_inset
19143
19144 – a bargain, every one of them.
19145  With five volumes you could just fill that gap on that second shelf.
19146  It looks untidy, does it not, sir?
19147 \begin_inset Quotes erd
19148 \end_inset
19149
19150
19151 \end_layout
19152
19153 \end_inset
19154
19155
19156 \end_layout
19157
19158 \begin_layout Standard
19159 \begin_inset VSpace defskip
19160 \end_inset
19161
19162
19163 \end_layout
19164
19165 \begin_layout Standard
19166 The rule can be colored by redefining the command 
19167 \begin_inset Flex Code
19168 status collapsed
19169
19170 \begin_layout Plain Layout
19171
19172 \backslash
19173 columnseprulecolor
19174 \end_layout
19175
19176 \end_inset
19177
19178 .
19179  This is done by inserting the command
19180 \end_layout
19181
19182 \begin_layout LyX-Code
19183
19184 \backslash
19185 renewcommand{
19186 \backslash
19187 columnseprulecolor}{
19188 \backslash
19189 color{red}}
19190 \end_layout
19191
19192 \begin_layout Standard
19193 as \SpecialChar TeX
19194  Code before the multicolumn inset.
19195  Replace 
19196 \begin_inset Flex Code
19197 status collapsed
19198
19199 \begin_layout Plain Layout
19200 red
19201 \end_layout
19202
19203 \end_inset
19204
19205  in this command by a color of your choice.
19206  You can use all pre- and self-defined colors.
19207  See the 
19208 \emph on
19209 EmbeddedObjects
19210 \emph default
19211  manual, section 
19212 \emph on
19213 Colored
19214 \begin_inset space ~
19215 \end_inset
19216
19217 Tables
19218 \emph default
19219  for more information about pre- and self-defined colors.
19220  To go back to the default color insert the command
19221 \end_layout
19222
19223 \begin_layout LyX-Code
19224
19225 \backslash
19226 renewcommand{
19227 \backslash
19228 columnseprulecolor}{
19229 \backslash
19230 normalcolor}
19231 \end_layout
19232
19233 \begin_layout Standard
19234 Here is the example with a cyan rule and 1
19235 \begin_inset space \thinspace{}
19236 \end_inset
19237
19238 cm column separation:
19239 \end_layout
19240
19241 \begin_layout Standard
19242 \begin_inset ERT
19243 status open
19244
19245 \begin_layout Plain Layout
19246
19247
19248 \backslash
19249 setlength{
19250 \backslash
19251 columnsep}{1cm}
19252 \end_layout
19253
19254 \begin_layout Plain Layout
19255
19256
19257 \backslash
19258 renewcommand{
19259 \backslash
19260 columnseprulecolor}{
19261 \backslash
19262 color{cyan}}
19263 \end_layout
19264
19265 \end_inset
19266
19267
19268 \end_layout
19269
19270 \begin_layout Standard
19271 \begin_inset Flex Multiple Columns
19272 status open
19273
19274 \begin_layout Plain Layout
19275
19276 \size small
19277 \begin_inset Quotes eld
19278 \end_inset
19279
19280 You're surprised to see me, sir,
19281 \begin_inset Quotes erd
19282 \end_inset
19283
19284  said he, in a strange, croaking voice.
19285 \end_layout
19286
19287 \begin_layout Plain Layout
19288
19289 \size small
19290 I acknowledged that I was.
19291 \end_layout
19292
19293 \begin_layout Plain Layout
19294
19295 \size small
19296 \begin_inset Quotes eld
19297 \end_inset
19298
19299 Well, I've a conscience, sir, and when I chanced to see you go into this
19300  house, as I came hobbling after you, I thought to myself, I'll just step
19301  in and see that kind gentleman, and tell him that if I was a bit gruff
19302  in my manner there was not any harm meant, and that I am much obliged to
19303  him for picking up my books.
19304 \begin_inset Quotes erd
19305 \end_inset
19306
19307
19308 \end_layout
19309
19310 \begin_layout Plain Layout
19311
19312 \size small
19313 \begin_inset Quotes eld
19314 \end_inset
19315
19316 You make too much of a trifle,
19317 \begin_inset Quotes erd
19318 \end_inset
19319
19320  said I.
19321  
19322 \begin_inset Quotes eld
19323 \end_inset
19324
19325 May I ask how you knew who I was?
19326 \begin_inset Quotes erd
19327 \end_inset
19328
19329
19330 \end_layout
19331
19332 \begin_layout Plain Layout
19333
19334 \size small
19335 \begin_inset Quotes eld
19336 \end_inset
19337
19338 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
19339  you'll find my little bookshop at the corner of Church Street, and very
19340  happy to see you, I am sure.
19341  Maybe you collect yourself, sir.
19342  Here's 
19343 \noun on
19344 British
19345 \begin_inset space ~
19346 \end_inset
19347
19348 Birds
19349 \noun default
19350 , and 
19351 \noun on
19352 Catullus
19353 \noun default
19354 , and 
19355 \noun on
19356 The Holy War
19357 \noun default
19358
19359 \begin_inset space ~
19360 \end_inset
19361
19362 – a bargain, every one of them.
19363  With five volumes you could just fill that gap on that second shelf.
19364  It looks untidy, does it not, sir?
19365 \begin_inset Quotes erd
19366 \end_inset
19367
19368
19369 \end_layout
19370
19371 \end_inset
19372
19373
19374 \end_layout
19375
19376 \begin_layout Standard
19377 \begin_inset ERT
19378 status collapsed
19379
19380 \begin_layout Plain Layout
19381
19382
19383 \backslash
19384 setlength{
19385 \backslash
19386 columnseprule}{0pt}
19387 \end_layout
19388
19389 \begin_layout Plain Layout
19390
19391
19392 \backslash
19393 renewcommand{
19394 \backslash
19395 columnseprulecolor}{
19396 \backslash
19397 normalcolor}
19398 \end_layout
19399
19400 \end_inset
19401
19402
19403 \begin_inset Note Note
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 go back to the default
19408 \end_layout
19409
19410 \end_inset
19411
19412
19413 \end_layout
19414
19415 \begin_layout Section
19416
19417 \change_inserted 564990737 1671270380
19418 Paragraph Styles
19419 \end_layout
19420
19421 \begin_layout Subsection
19422
19423 \change_inserted 564990737 1671270398
19424 Custom
19425 \change_deleted 564990737 1671270396
19426 Non-standard
19427 \change_unchanged
19428  Paragraph Shapes
19429 \end_layout
19430
19431 \begin_layout Standard
19432 \noindent
19433 \SpecialChar LaTeX
19434  as well as any other text processor uses by default rectangular paragraphs.
19435  For special cases like for example posters, invitation cards or poems you
19436  can modify the paragraph shape to one of your choice.
19437  This can be done by using the \SpecialChar LaTeX
19438 -package 
19439 \begin_inset Flex Code
19440 status collapsed
19441
19442 \begin_layout Plain Layout
19443 shapepar
19444 \end_layout
19445
19446 \end_inset
19447
19448  which is loaded by using in the document settings the module 
19449 \family sans
19450 Custom paragraph shapes
19451 \family default
19452 .
19453 \end_layout
19454
19455 \begin_layout Subsubsection
19456 Predefined shapes
19457 \end_layout
19458
19459 \begin_layout Standard
19460
19461 \series bold
19462 shapepar
19463 \series default
19464  provides the following shapes:
19465 \end_layout
19466
19467 \begin_layout Standard
19468 \begin_inset Tabular
19469 <lyxtabular version="3" rows="13" columns="3">
19470 <features booktabs="true" islongtable="true" longtabularalignment="center">
19471 <column alignment="left" valignment="middle" width="16col%">
19472 <column alignment="left" valignment="middle" width="40col%">
19473 <column alignment="left" valignment="middle" width="35col%">
19474 <row endhead="true">
19475 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19476 \begin_inset Text
19477
19478 \begin_layout Plain Layout
19479
19480 \series bold
19481 \size small
19482 Name
19483 \end_layout
19484
19485 \end_inset
19486 </cell>
19487 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19488 \begin_inset Text
19489
19490 \begin_layout Plain Layout
19491
19492 \series bold
19493 \size small
19494 Description
19495 \end_layout
19496
19497 \end_inset
19498 </cell>
19499 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19500 \begin_inset Text
19501
19502 \begin_layout Plain Layout
19503
19504 \series bold
19505 \size small
19506 Annotation
19507 \end_layout
19508
19509 \end_inset
19510 </cell>
19511 </row>
19512 <row interlinespace="default">
19513 <cell alignment="left" valignment="top" usebox="none">
19514 \begin_inset Text
19515
19516 \begin_layout Plain Layout
19517
19518 \size small
19519 CDlabel
19520 \end_layout
19521
19522 \end_inset
19523 </cell>
19524 <cell alignment="left" valignment="top" usebox="none">
19525 \begin_inset Text
19526
19527 \begin_layout Plain Layout
19528
19529 \size small
19530 Circle with circular hole (in the size of a CD/DVD)
19531 \end_layout
19532
19533 \end_inset
19534 </cell>
19535 <cell alignment="left" valignment="top" usebox="none">
19536 \begin_inset Text
19537
19538 \begin_layout Plain Layout
19539
19540 \size small
19541 Cannot be scaled, take care there is not too much text
19542 \end_layout
19543
19544 \end_inset
19545 </cell>
19546 </row>
19547 <row interlinespace="default">
19548 <cell alignment="left" valignment="top" usebox="none">
19549 \begin_inset Text
19550
19551 \begin_layout Plain Layout
19552
19553 \size small
19554 Circle
19555 \end_layout
19556
19557 \end_inset
19558 </cell>
19559 <cell alignment="left" valignment="top" usebox="none">
19560 \begin_inset Text
19561
19562 \begin_layout Plain Layout
19563
19564 \size small
19565 Circle
19566 \end_layout
19567
19568 \end_inset
19569 </cell>
19570 <cell alignment="left" valignment="top" usebox="none">
19571 \begin_inset Text
19572
19573 \begin_layout Plain Layout
19574
19575 \size small
19576 Fragile, calculation might fail
19577 \end_layout
19578
19579 \end_inset
19580 </cell>
19581 </row>
19582 <row interlinespace="default">
19583 <cell alignment="left" valignment="top" usebox="none">
19584 \begin_inset Text
19585
19586 \begin_layout Plain Layout
19587
19588 \size small
19589 Diamond
19590 \end_layout
19591
19592 \end_inset
19593 </cell>
19594 <cell alignment="left" valignment="top" usebox="none">
19595 \begin_inset Text
19596
19597 \begin_layout Plain Layout
19598
19599 \size small
19600 Rhomboid (symbolizing a 
19601 \begin_inset Quotes eld
19602 \end_inset
19603
19604 diamond
19605 \begin_inset Quotes erd
19606 \end_inset
19607
19608 )
19609 \end_layout
19610
19611 \end_inset
19612 </cell>
19613 <cell alignment="left" valignment="top" usebox="none">
19614 \begin_inset Text
19615
19616 \begin_layout Plain Layout
19617
19618 \size small
19619 -
19620 \end_layout
19621
19622 \end_inset
19623 </cell>
19624 </row>
19625 <row interlinespace="default">
19626 <cell alignment="left" valignment="top" usebox="none">
19627 \begin_inset Text
19628
19629 \begin_layout Plain Layout
19630
19631 \size small
19632 Heart
19633 \end_layout
19634
19635 \end_inset
19636 </cell>
19637 <cell alignment="left" valignment="top" usebox="none">
19638 \begin_inset Text
19639
19640 \begin_layout Plain Layout
19641
19642 \size small
19643 Heart-like shape
19644 \end_layout
19645
19646 \end_inset
19647 </cell>
19648 <cell alignment="left" valignment="top" usebox="none">
19649 \begin_inset Text
19650
19651 \begin_layout Plain Layout
19652
19653 \size small
19654 -
19655 \end_layout
19656
19657 \end_inset
19658 </cell>
19659 </row>
19660 <row interlinespace="default">
19661 <cell alignment="left" valignment="top" usebox="none">
19662 \begin_inset Text
19663
19664 \begin_layout Plain Layout
19665
19666 \size small
19667 Hexagon
19668 \end_layout
19669
19670 \end_inset
19671 </cell>
19672 <cell alignment="left" valignment="top" usebox="none">
19673 \begin_inset Text
19674
19675 \begin_layout Plain Layout
19676
19677 \size small
19678 Hexagon
19679 \end_layout
19680
19681 \end_inset
19682 </cell>
19683 <cell alignment="left" valignment="top" usebox="none">
19684 \begin_inset Text
19685
19686 \begin_layout Plain Layout
19687
19688 \size small
19689 -
19690 \end_layout
19691
19692 \end_inset
19693 </cell>
19694 </row>
19695 <row interlinespace="default">
19696 <cell alignment="left" valignment="top" usebox="none">
19697 \begin_inset Text
19698
19699 \begin_layout Plain Layout
19700
19701 \size small
19702 Nut
19703 \end_layout
19704
19705 \end_inset
19706 </cell>
19707 <cell alignment="left" valignment="top" usebox="none">
19708 \begin_inset Text
19709
19710 \begin_layout Plain Layout
19711
19712 \size small
19713 Nut for bolt (hexagon with circular hole)
19714 \end_layout
19715
19716 \end_inset
19717 </cell>
19718 <cell alignment="left" valignment="top" usebox="none">
19719 \begin_inset Text
19720
19721 \begin_layout Plain Layout
19722
19723 \size small
19724 -
19725 \end_layout
19726
19727 \end_inset
19728 </cell>
19729 </row>
19730 <row interlinespace="default">
19731 <cell alignment="left" valignment="top" usebox="none">
19732 \begin_inset Text
19733
19734 \begin_layout Plain Layout
19735
19736 \size small
19737 Square
19738 \end_layout
19739
19740 \end_inset
19741 </cell>
19742 <cell alignment="left" valignment="top" usebox="none">
19743 \begin_inset Text
19744
19745 \begin_layout Plain Layout
19746
19747 \size small
19748 Square
19749 \end_layout
19750
19751 \end_inset
19752 </cell>
19753 <cell alignment="left" valignment="top" usebox="none">
19754 \begin_inset Text
19755
19756 \begin_layout Plain Layout
19757
19758 \size small
19759 -
19760 \end_layout
19761
19762 \end_inset
19763 </cell>
19764 </row>
19765 <row interlinespace="default">
19766 <cell alignment="left" valignment="top" usebox="none">
19767 \begin_inset Text
19768
19769 \begin_layout Plain Layout
19770
19771 \size small
19772 Star
19773 \end_layout
19774
19775 \end_inset
19776 </cell>
19777 <cell alignment="left" valignment="top" usebox="none">
19778 \begin_inset Text
19779
19780 \begin_layout Plain Layout
19781
19782 \size small
19783 Five-point star
19784 \end_layout
19785
19786 \end_inset
19787 </cell>
19788 <cell alignment="left" valignment="top" usebox="none">
19789 \begin_inset Text
19790
19791 \begin_layout Plain Layout
19792
19793 \size small
19794 -
19795 \end_layout
19796
19797 \end_inset
19798 </cell>
19799 </row>
19800 <row interlinespace="default">
19801 <cell alignment="left" valignment="top" usebox="none">
19802 \begin_inset Text
19803
19804 \begin_layout Plain Layout
19805
19806 \size small
19807 Candle
19808 \end_layout
19809
19810 \end_inset
19811 </cell>
19812 <cell alignment="left" valignment="top" usebox="none">
19813 \begin_inset Text
19814
19815 \begin_layout Plain Layout
19816
19817 \size small
19818 Burning candle
19819 \end_layout
19820
19821 \end_inset
19822 </cell>
19823 <cell alignment="left" valignment="top" usebox="none">
19824 \begin_inset Text
19825
19826 \begin_layout Plain Layout
19827
19828 \size small
19829 -
19830 \end_layout
19831
19832 \end_inset
19833 </cell>
19834 </row>
19835 <row interlinespace="default">
19836 <cell alignment="left" valignment="top" usebox="none">
19837 \begin_inset Text
19838
19839 \begin_layout Plain Layout
19840
19841 \size small
19842 Drop down/up
19843 \end_layout
19844
19845 \end_inset
19846 </cell>
19847 <cell alignment="left" valignment="top" usebox="none">
19848 \begin_inset Text
19849
19850 \begin_layout Plain Layout
19851
19852 \size small
19853 Normal/reversed rain drop
19854 \end_layout
19855
19856 \end_inset
19857 </cell>
19858 <cell alignment="left" valignment="top" usebox="none">
19859 \begin_inset Text
19860
19861 \begin_layout Plain Layout
19862
19863 \size small
19864 Fragile, calculation might fail
19865 \end_layout
19866
19867 \end_inset
19868 </cell>
19869 </row>
19870 <row interlinespace="default">
19871 <cell alignment="left" valignment="top" usebox="none">
19872 \begin_inset Text
19873
19874 \begin_layout Plain Layout
19875
19876 \size small
19877 \SpecialChar TeX
19878
19879 \end_layout
19880
19881 \end_inset
19882 </cell>
19883 <cell alignment="left" valignment="top" usebox="none">
19884 \begin_inset Text
19885
19886 \begin_layout Plain Layout
19887
19888 \size small
19889 The \SpecialChar TeX
19890  logo
19891 \end_layout
19892
19893 \end_inset
19894 </cell>
19895 <cell alignment="left" valignment="top" usebox="none">
19896 \begin_inset Text
19897
19898 \begin_layout Plain Layout
19899
19900 \size small
19901 -
19902 \end_layout
19903
19904 \end_inset
19905 </cell>
19906 </row>
19907 <row interlinespace="default">
19908 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19909 \begin_inset Text
19910
19911 \begin_layout Plain Layout
19912
19913 \size small
19914 Triangle up/down/
19915 \begin_inset Newline newline
19916 \end_inset
19917
19918 left/right
19919 \end_layout
19920
19921 \end_inset
19922 </cell>
19923 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19924 \begin_inset Text
19925
19926 \begin_layout Plain Layout
19927
19928 \size small
19929 Triangles in different orientations
19930 \end_layout
19931
19932 \end_inset
19933 </cell>
19934 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19935 \begin_inset Text
19936
19937 \begin_layout Plain Layout
19938
19939 \size small
19940 -
19941 \end_layout
19942
19943 \end_inset
19944 </cell>
19945 </row>
19946 </lyxtabular>
19947
19948 \end_inset
19949
19950
19951 \end_layout
19952
19953 \begin_layout Standard
19954 To use a shape for your paragraph, simply select it in \SpecialChar LyX
19955 's pull-down box
19956  for environments in the toolbar.
19957 \end_layout
19958
19959 \begin_layout Standard
19960 \begin_inset Newpage newpage
19961 \end_inset
19962
19963
19964 \end_layout
19965
19966 \begin_layout Standard
19967 Here is an example paragraph in the shape of a nut:
19968 \end_layout
19969
19970 \begin_layout Standard
19971 \begin_inset VSpace bigskip
19972 \end_inset
19973
19974
19975 \end_layout
19976
19977 \begin_layout Nut
19978
19979 \lang latin
19980 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19981  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19982  voluptua.
19983  At vero eos et accusam et justo duo dolores et ea rebum.
19984  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
19985  sit amet.
19986  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19987  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19988  voluptua.
19989 \end_layout
19990
19991 \begin_layout Standard
19992 \begin_inset VSpace bigskip
19993 \end_inset
19994
19995
19996 \end_layout
19997
19998 \begin_layout Standard
19999 \begin_inset Note Greyedout
20000 status open
20001
20002 \begin_layout Plain Layout
20003
20004 \series bold
20005 Note
20006 \series default
20007
20008 \family sans
20009 shapepar
20010 \family default
20011  paragraphs cannot run over a page break.
20012 \end_layout
20013
20014 \end_inset
20015
20016
20017 \end_layout
20018
20019 \begin_layout Standard
20020 \begin_inset VSpace bigskip
20021 \end_inset
20022
20023
20024 \end_layout
20025
20026 \begin_layout Standard
20027 The package 
20028 \begin_inset Flex Code
20029 status collapsed
20030
20031 \begin_layout Plain Layout
20032 shapepar
20033 \end_layout
20034
20035 \end_inset
20036
20037  takes care that the shape will always be preserved, no matter how much
20038  text is in the paragraph.
20039  Therefore the paragraph size changes with the amount of contained text.
20040  This can lead to paragraph sizes exceeding the page margins.
20041  To demonstrate the size scaling, here is the same example paragraph but
20042  with twice as much text:
20043 \end_layout
20044
20045 \begin_layout Standard
20046 \begin_inset Newpage newpage
20047 \end_inset
20048
20049
20050 \end_layout
20051
20052 \begin_layout Nut
20053
20054 \lang latin
20055 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20056  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20057  voluptua.
20058  At vero eos et accusam et justo duo dolores et ea rebum.
20059  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20060  sit amet.
20061  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20062  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20063  voluptua.
20064  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20065  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20066  voluptua.
20067  At vero eos et accusam et justo duo dolores et ea rebum.
20068  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20069  sit amet.
20070  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20071  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20072  voluptua.
20073 \end_layout
20074
20075 \begin_layout Standard
20076 \begin_inset VSpace bigskip
20077 \end_inset
20078
20079
20080 \end_layout
20081
20082 \begin_layout Standard
20083 An exception is the shape 
20084 \family sans
20085 CDlabel
20086 \family default
20087 .
20088  It cannot be scaled because it must fit the size of a CD/DVD.
20089  Therefore the amount of text that fits into the shape is limited.
20090 \begin_inset Newline newline
20091 \end_inset
20092
20093 The 
20094 \family sans
20095 drop
20096 \family default
20097  shapes and the 
20098 \family sans
20099 circle
20100 \family default
20101  shape are fragile, meaning that the calculation of their size can fail,
20102  depending on the amount of text.
20103  You will then get the \SpecialChar LaTeX
20104  error 
20105 \begin_inset Quotes eld
20106 \end_inset
20107
20108 Arithmetic overflow
20109 \begin_inset Quotes erd
20110 \end_inset
20111
20112 .
20113  In this case one can try to remove or add some text; if nothing works one
20114  has to use another shape.
20115 \end_layout
20116
20117 \begin_layout Standard
20118 \begin_inset VSpace bigskip
20119 \end_inset
20120
20121
20122 \end_layout
20123
20124 \begin_layout Standard
20125 For shapes with tips you will maybe see that \SpecialChar LaTeX
20126 's hyphenation routine fails
20127  for text in the tips.
20128  Therefore it is often necessary to add hyphenation points 
20129 \family sans
20130 (
20131 \begin_inset Info
20132 type  "shortcut"
20133 arg   "specialchar-insert hyphenation"
20134 \end_inset
20135
20136
20137 \family default
20138 ) to the corresponding text parts.
20139 \end_layout
20140
20141 \begin_layout Standard
20142 \begin_inset VSpace bigskip
20143 \end_inset
20144
20145
20146 \end_layout
20147
20148 \begin_layout Standard
20149 Shapepar paragraphs are either always centered or placed on the page so
20150  that their left border touches the left page margin.
20151  You can therefore not use the paragraph dialog to align such paragraphs.
20152  A solution is to put the paragraph into a minipage or parbox and align
20153  the box.
20154  The problem is hereby to find the right width for the box.
20155  Because if it is too wide and you center the box, the paragraph is not
20156  centered too because it sticks at the left side of the box.
20157  So you might have to play a bit with the width until it fits.
20158  Here are two heart-shaped paragraphs, the first one is not aligned, the
20159  second one is right-aligned:
20160 \end_layout
20161
20162 \begin_layout Standard
20163 \begin_inset Newpage newpage
20164 \end_inset
20165
20166
20167 \end_layout
20168
20169 \begin_layout Heart
20170 \noindent
20171
20172 \lang latin
20173 Lo\SpecialChar softhyphen
20174 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20175  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20176  voluptua.
20177  At vero eos et accusam et justo duo dolores et ea rebum.
20178  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20179  sit amet.
20180 \end_layout
20181
20182 \begin_layout Standard
20183 \begin_inset VSpace bigskip
20184 \end_inset
20185
20186
20187 \end_layout
20188
20189 \begin_layout Standard
20190 \noindent
20191 \align right
20192 \begin_inset Box Frameless
20193 position "t"
20194 hor_pos "c"
20195 has_inner_box 1
20196 inner_pos "t"
20197 use_parbox 1
20198 use_makebox 0
20199 width "42col%"
20200 special "none"
20201 height "1in"
20202 height_special "totalheight"
20203 thickness "0.4pt"
20204 separation "3pt"
20205 shadowsize "4pt"
20206 framecolor "black"
20207 backgroundcolor "none"
20208 status open
20209
20210 \begin_layout Heart
20211 \noindent
20212
20213 \lang latin
20214 Lo\SpecialChar softhyphen
20215 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20216  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20217  voluptua.
20218  At vero eos et accusam et justo duo dolores et ea rebum.
20219  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20220  sit amet.
20221 \end_layout
20222
20223 \end_inset
20224
20225
20226 \end_layout
20227
20228 \begin_layout Subsubsection
20229 Custom shapes
20230 \end_layout
20231
20232 \begin_layout Standard
20233 You can define any shape you want.
20234  Doing this manually is a lot of work because every coordinate must be specified.
20235  But there is a way to let the computer calculate the coordinates:
20236 \end_layout
20237
20238 \begin_layout Enumerate
20239 Install the program 
20240 \begin_inset CommandInset href
20241 LatexCommand href
20242 name "Jpgfdraw"
20243 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
20244 literal "false"
20245
20246 \end_inset
20247
20248 .
20249 \end_layout
20250
20251 \begin_layout Enumerate
20252 In 
20253 \family sans
20254 Jpgfdraw
20255 \family default
20256  go to the menu 
20257 \family sans
20258 TeX/LaTeX\SpecialChar menuseparator
20259 Settings\SpecialChar menuseparator
20260 Set Normal Size
20261 \family default
20262  and select the font size you are using in your document.
20263  For example this document uses the size 12
20264 \begin_inset space \thinspace{}
20265 \end_inset
20266
20267 pt.
20268 \end_layout
20269
20270 \begin_layout Enumerate
20271 Draw a shape.
20272 \end_layout
20273
20274 \begin_layout Enumerate
20275 Use the menu 
20276 \family sans
20277 TeX/LaTeX\SpecialChar menuseparator
20278 Shapepar
20279 \family default
20280  to export the shape to coordinates.
20281  In the appearing dialog use either the outline of your shape for the coordinate
20282 s or the path itself.
20283 \begin_inset Foot
20284 status collapsed
20285
20286 \begin_layout Plain Layout
20287 For more information see 
20288 \begin_inset CommandInset href
20289 LatexCommand href
20290 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
20291 literal "false"
20292
20293 \end_inset
20294
20295
20296 \end_layout
20297
20298 \end_inset
20299
20300
20301 \end_layout
20302
20303 \begin_layout Standard
20304 The coordinates are written into a \SpecialChar TeX
20305  file.
20306  To use it for your \SpecialChar LyX
20307  document
20308 \end_layout
20309
20310 \begin_layout Enumerate
20311 Place the cursor before the first character of your paragraph (or into a
20312  new empty one).
20313 \end_layout
20314
20315 \begin_layout Enumerate
20316 Open in \SpecialChar LyX
20317  the menu 
20318 \family sans
20319 Insert\SpecialChar menuseparator
20320 File\SpecialChar menuseparator
20321 Child
20322 \begin_inset space ~
20323 \end_inset
20324
20325 Document
20326 \family default
20327 , select the file and use 
20328 \family sans
20329 Input
20330 \family default
20331  as 
20332 \family sans
20333 Include Type.
20334 \end_layout
20335
20336 \begin_layout Standard
20337 \begin_inset VSpace defskip
20338 \end_inset
20339
20340
20341 \end_layout
20342
20343 \begin_layout Standard
20344 \begin_inset Note Greyedout
20345 status open
20346
20347 \begin_layout Plain Layout
20348
20349 \series bold
20350 Note
20351 \series default
20352 : The changed shape only applies to the current paragraph; everything is
20353  reset to normal for the next paragraph.
20354  Therefore the shape definition file must be input into every paragraph
20355  with the desired shape.
20356 \end_layout
20357
20358 \end_inset
20359
20360
20361 \end_layout
20362
20363 \begin_layout Standard
20364 \begin_inset VSpace bigskip
20365 \end_inset
20366
20367
20368 \end_layout
20369
20370 \begin_layout Standard
20371 Here is an example:
20372 \end_layout
20373
20374 \begin_layout Standard
20375 \begin_inset VSpace bigskip
20376 \end_inset
20377
20378
20379 \end_layout
20380
20381 \begin_layout Standard
20382 \begin_inset CommandInset include
20383 LatexCommand input
20384 filename "SpecialParagraphShape.tex"
20385 literal "true"
20386
20387 \end_inset
20388
20389
20390 \lang latin
20391 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20392  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20393  voluptua.
20394  At vero eos et accusam et justo duo dolores et ea rebum.
20395  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20396  sit amet.
20397  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20398  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20399  voluptua.
20400 \end_layout
20401
20402 \begin_layout Standard
20403 \begin_inset VSpace bigskip
20404 \end_inset
20405
20406
20407 \end_layout
20408
20409 \begin_layout Standard
20410
20411 \series bold
20412 A tip:
20413 \series default
20414  to draw complexer shapes in 
20415 \family sans
20416 Jpgfdraw
20417 \family default
20418  you can draw the shape in a program of your choice and import the resulting
20419  image to 
20420 \family sans
20421 Jpgfdraw
20422 \family default
20423 .
20424  Then you only need to draw a line or spline along the outline of the image.
20425 \end_layout
20426
20427 \begin_layout Standard
20428 \begin_inset VSpace bigskip
20429 \end_inset
20430
20431
20432 \end_layout
20433
20434 \begin_layout Standard
20435 The module 
20436 \family sans
20437 Custom paragraph shapes
20438 \family default
20439  also provides the two commands 
20440 \family sans
20441 shapepar
20442 \family default
20443  and 
20444 \family sans
20445 Shapepar
20446 \family default
20447  which can be used to define custom shapes coordinate by coordinate.
20448 \begin_inset Foot
20449 status collapsed
20450
20451 \begin_layout Plain Layout
20452 These commands are internally used for all shapes described here.
20453 \end_layout
20454
20455 \end_inset
20456
20457  For information how these styles are used and about further customization
20458  possibilities, have a look at the 
20459 \begin_inset CommandInset href
20460 LatexCommand href
20461 name "documentation"
20462 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
20463 literal "false"
20464
20465 \end_inset
20466
20467  of the package 
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 shapepar
20473 \end_layout
20474
20475 \end_inset
20476
20477 .
20478 \end_layout
20479
20480 \begin_layout Chapter
20481
20482 \change_deleted 564990737 1671304317
20483 Customizing 
20484 \change_unchanged
20485 Bibliograph
20486 \change_inserted 564990737 1671304322
20487 y
20488 \change_deleted 564990737 1671304331
20489 ies with Bib\SpecialChar TeX
20490  or Biblatex
20491 \change_unchanged
20492
20493 \end_layout
20494
20495 \begin_layout Standard
20496 The most basic information about how to use Bib\SpecialChar TeX
20497  or 
20498 \family sans
20499 Biblatex
20500 \family default
20501  with \SpecialChar LyX
20502  is contained in the section 
20503 \emph on
20504 Bibliography databases
20505 \emph default
20506  of the 
20507 \emph on
20508 User's Guide
20509 \emph default
20510 .
20511  The following subsections explain special bibliography features supported
20512  by \SpecialChar LyX
20513 .
20514 \end_layout
20515
20516 \begin_layout Section
20517 Alternative Citation Styles
20518 \end_layout
20519
20520 \begin_layout Standard
20521 Standard Bib\SpecialChar TeX
20522  uses numbers (e.
20523 \begin_inset space \thinspace{}
20524 \end_inset
20525
20526 g.
20527 \begin_inset space \space{}
20528 \end_inset
20529
20530
20531 \begin_inset Quotes eld
20532 \end_inset
20533
20534 [12]
20535 \begin_inset Quotes erd
20536 \end_inset
20537
20538 ) to refer to a cited work.
20539  However, in many scientific disciplines, other citation styles are in use.
20540  The most common one is the author-year style (e.
20541 \begin_inset space \thinspace{}
20542 \end_inset
20543
20544 g.
20545 \begin_inset space \space{}
20546 \end_inset
20547
20548
20549 \begin_inset Quotes eld
20550 \end_inset
20551
20552 Knuth 1984a
20553 \begin_inset Quotes erd
20554 \end_inset
20555
20556 ).
20557  \SpecialChar LyX
20558  supports three packages that provide this style, 
20559 \begin_inset Flex Code
20560 status collapsed
20561
20562 \begin_layout Plain Layout
20563 biblatex
20564 \end_layout
20565
20566 \end_inset
20567
20568
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573 natbib
20574 \end_layout
20575
20576 \end_inset
20577
20578 , and 
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 jurabib
20584 \end_layout
20585
20586 \end_inset
20587
20588 .
20589  Each of these packages has their pros and cons, which cannot be listed
20590  in detail.
20591  If you only want to have simple author-year (or author-numerical) style,
20592  or if you want to use one of the countless style files for 
20593 \begin_inset Flex Code
20594 status collapsed
20595
20596 \begin_layout Plain Layout
20597 natbib
20598 \end_layout
20599
20600 \end_inset
20601
20602 , then the established 
20603 \begin_inset Flex Code
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 natbib
20608 \end_layout
20609
20610 \end_inset
20611
20612  package is probably your choice.
20613  If you look for specific citation styles common in law studies, you might
20614  consider the 
20615 \begin_inset Flex Code
20616 status collapsed
20617
20618 \begin_layout Plain Layout
20619 jurabib
20620 \end_layout
20621
20622 \end_inset
20623
20624  package.
20625  If you want to have full control over the formatting or look for advanced
20626  features such as ibidem, footnote citations, full title citations, advanced
20627  date formats (such as 400 BC) or full localization to other languages than
20628  English, you should definitely consider 
20629 \begin_inset Flex Code
20630 status collapsed
20631
20632 \begin_layout Plain Layout
20633 biblatex
20634 \end_layout
20635
20636 \end_inset
20637
20638 , which exceeds all other packages in terms of features, but is also quite
20639  heavy and more resource-hungry.
20640 \end_layout
20641
20642 \begin_layout Standard
20643 The handling of these packages in \SpecialChar LyX
20644  is basically the same.
20645  Go to 
20646 \begin_inset Flex Noun
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 Document\SpecialChar menuseparator
20651 Settings
20652 \end_layout
20653
20654 \end_inset
20655
20656  and select under 
20657 \begin_inset Flex Noun
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661 Bibliography
20662 \end_layout
20663
20664 \end_inset
20665
20666  the 
20667 \begin_inset Flex Noun
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671 Style Format
20672 \end_layout
20673
20674 \end_inset
20675
20676  
20677 \begin_inset Flex Noun
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 Basic (BibTeX)
20682 \end_layout
20683
20684 \end_inset
20685
20686
20687 \begin_inset Flex Noun
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 Biblatex
20692 \end_layout
20693
20694 \end_inset
20695
20696
20697 \begin_inset Flex Noun
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 Biblatex (Natbib mode)
20702 \end_layout
20703
20704 \end_inset
20705
20706
20707 \begin_inset Flex Noun
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 Natbib (BibTeX)
20712 \end_layout
20713
20714 \end_inset
20715
20716  or 
20717 \begin_inset Flex Noun
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 Jurabib (BibTeX)
20722 \end_layout
20723
20724 \end_inset
20725
20726  (see sec.
20727 \begin_inset space ~
20728 \end_inset
20729
20730 6.5.3 in the User's Guide for more information on these choices).
20731  With all these packages, you will get some extra features in the citation
20732  dialog and you can select the style of the reference (
20733 \begin_inset Quotes eld
20734 \end_inset
20735
20736 Knuth 1984
20737 \begin_inset Quotes erd
20738 \end_inset
20739
20740
20741 \begin_inset Quotes eld
20742 \end_inset
20743
20744 Knuth (1984)
20745 \begin_inset Quotes erd
20746 \end_inset
20747
20748
20749 \begin_inset Quotes eld
20750 \end_inset
20751
20752 Knuth, 1984
20753 \begin_inset Quotes erd
20754 \end_inset
20755
20756
20757 \begin_inset Quotes eld
20758 \end_inset
20759
20760 1984
20761 \begin_inset Quotes erd
20762 \end_inset
20763
20764  etc.).
20765  Note that either package needs specifically designed style files.
20766  They all ship their own, but there are lots of additional style files,
20767  and there is even an interactive style file builder
20768 \begin_inset Foot
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 See 
20773 \begin_inset Flex URL
20774 status open
20775
20776 \begin_layout Plain Layout
20777
20778 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
20779 \end_layout
20780
20781 \end_inset
20782
20783
20784 \end_layout
20785
20786 \end_inset
20787
20788  for 
20789 \begin_inset Flex Code
20790 status collapsed
20791
20792 \begin_layout Plain Layout
20793 natbib
20794 \end_layout
20795
20796 \end_inset
20797
20798 .
20799 \end_layout
20800
20801 \begin_layout Section
20802 Subdivided Bibliographies
20803 \end_layout
20804
20805 \begin_layout Standard
20806 Sometimes you might need to divide your bibliography into several sections.
20807  If you are for instance a historian, the possibility to separate sources
20808  and scientific works is most likely a 
20809 \begin_inset Quotes eld
20810 \end_inset
20811
20812 must have
20813 \begin_inset Quotes erd
20814 \end_inset
20815
20816 .
20817  Unfortunately, Bib\SpecialChar TeX
20818  itself does not allow you to do this.
20819  But with the help of some \SpecialChar LaTeX
20820  packages, Bib\SpecialChar TeX
20821  can be extended to fit your needs.
20822 \end_layout
20823
20824 \begin_layout Standard
20825 \SpecialChar LyX
20826  provides native support for one of these packages, 
20827 \family typewriter
20828 bibtopic
20829 \family default
20830 .
20831 \begin_inset Foot
20832 status collapsed
20833
20834 \begin_layout Plain Layout
20835 Available from 
20836 \begin_inset Flex URL
20837 status open
20838
20839 \begin_layout Plain Layout
20840
20841 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
20842 \end_layout
20843
20844 \end_inset
20845
20846
20847 \end_layout
20848
20849 \end_inset
20850
20851  The advantage of this package (compared to other packages such as 
20852 \family typewriter
20853 multibib
20854 \family default
20855 ) is that you don't need to define new citation commands.
20856  Instead, you need to prepare different bibliographic databases which include
20857  the entries for the different sections of the bibliography.
20858  For example: If you want to divide your bibliography into the sections
20859  
20860 \begin_inset Quotes eld
20861 \end_inset
20862
20863 Sources
20864 \begin_inset Quotes erd
20865 \end_inset
20866
20867  and 
20868 \begin_inset Quotes eld
20869 \end_inset
20870
20871 Scientific works
20872 \begin_inset Quotes erd
20873 \end_inset
20874
20875 , you first need to create two bibliographic databases, e.
20876 \begin_inset space \thinspace{}
20877 \end_inset
20878
20879 g.
20880 \begin_inset space \space{}
20881 \end_inset
20882
20883
20884 \begin_inset Flex Code
20885 status collapsed
20886
20887 \begin_layout Plain Layout
20888 sources.bib
20889 \end_layout
20890
20891 \end_inset
20892
20893  and 
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 scientific.bib
20899 \end_layout
20900
20901 \end_inset
20902
20903 .
20904  
20905 \end_layout
20906
20907 \begin_layout Standard
20908 Go to 
20909 \begin_inset Flex Noun
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 Document\SpecialChar menuseparator
20914 Settings
20915 \end_layout
20916
20917 \end_inset
20918
20919  and check under 
20920 \begin_inset Flex Noun
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 Bibliography
20925 \end_layout
20926
20927 \end_inset
20928
20929  the option 
20930 \begin_inset Flex Noun
20931 status collapsed
20932
20933 \begin_layout Plain Layout
20934 Subdivided bibliography
20935 \end_layout
20936
20937 \end_inset
20938
20939 .
20940  Now you can insert multiple Bib\SpecialChar TeX
20941  bibliographies, one for each section of
20942  your bibliography.
20943  Returning to our example: Insert the Bib\SpecialChar TeX
20944  bibliography 
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949 sources.bib
20950 \end_layout
20951
20952 \end_inset
20953
20954  and a second one for the database 
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 scientific.bib
20960 \end_layout
20961
20962 \end_inset
20963
20964 .
20965  You are free to use the same or different styles for each section.
20966  Additionally, you can choose if the bibliography section should contain
20967  
20968 \begin_inset Quotes eld
20969 \end_inset
20970
20971 all cited references
20972 \begin_inset Quotes erd
20973 \end_inset
20974
20975  of the specified database(s) (which is the default), 
20976 \begin_inset Quotes eld
20977 \end_inset
20978
20979 all uncited references
20980 \begin_inset Quotes erd
20981 \end_inset
20982
20983  or even 
20984 \begin_inset Quotes eld
20985 \end_inset
20986
20987 all references
20988 \begin_inset Quotes erd
20989 \end_inset
20990
20991 .
20992  This might be useful if you would like to separate your bibliography into
20993  three sections: 
20994 \begin_inset Quotes eld
20995 \end_inset
20996
20997 Cited sources
20998 \begin_inset Quotes erd
20999 \end_inset
21000
21001
21002 \begin_inset Quotes eld
21003 \end_inset
21004
21005 Uncited sources
21006 \begin_inset Quotes erd
21007 \end_inset
21008
21009 , and 
21010 \begin_inset Quotes eld
21011 \end_inset
21012
21013 Scientific works
21014 \begin_inset Quotes erd
21015 \end_inset
21016
21017 .
21018  The titles for the sections can be added as ordinary sections or subsections.
21019  Since 
21020 \begin_inset Flex Code
21021 status collapsed
21022
21023 \begin_layout Plain Layout
21024 bibtopic
21025 \end_layout
21026
21027 \end_inset
21028
21029  removes the bibliography title, you have to manually re-add that, too (as
21030  a chapter* or section*, for instance).
21031 \end_layout
21032
21033 \begin_layout Standard
21034 With 
21035 \family sans
21036 Biblatex
21037 \family default
21038 , the procedure is a bit different.
21039  Since 
21040 \family typewriter
21041 bibtopic
21042 \family default
21043  does not work with 
21044 \family sans
21045 Biblatex
21046 \family default
21047 , the aforementioned 
21048 \begin_inset Flex Noun
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 Subdivided bibliography
21053 \end_layout
21054
21055 \end_inset
21056
21057  option is disabled if you use 
21058 \family sans
21059 Biblatex
21060 \family default
21061 .
21062  However, 
21063 \family sans
21064 Biblatex
21065 \family default
21066  provides its own means to generate subdivided bibliographies.
21067  You can either add keywords to bibliography entries via the 
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 keywords
21073 \end_layout
21074
21075 \end_inset
21076
21077  entry option and then filter bibliography sections by keyword (by adding
21078  
21079 \begin_inset Flex Code
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083 keyword=mykeyword
21084 \end_layout
21085
21086 \end_inset
21087
21088  to the 
21089 \begin_inset Flex Noun
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 Options
21094 \end_layout
21095
21096 \end_inset
21097
21098  field of the dialog that opens if you left-click on the 
21099 \begin_inset Flex Noun
21100 status collapsed
21101
21102 \begin_layout Plain Layout
21103 Biblatex Generated Bibliography
21104 \end_layout
21105
21106 \end_inset
21107
21108  button), or you can filter by entry types (such as 
21109 \emph on
21110 book
21111 \emph default
21112  or 
21113 \emph on
21114 article
21115 \emph default
21116 ) by entering e.
21117 \begin_inset space \thinspace{}
21118 \end_inset
21119
21120 g.
21121  
21122 \begin_inset Flex Code
21123 status collapsed
21124
21125 \begin_layout Plain Layout
21126 type=book
21127 \end_layout
21128
21129 \end_inset
21130
21131  or 
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 nottype=collection
21137 \end_layout
21138
21139 \end_inset
21140
21141  to the mentioned 
21142 \begin_inset Flex Noun
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 Options
21147 \end_layout
21148
21149 \end_inset
21150
21151  field, or you can create so-called 
21152 \begin_inset Quotes eld
21153 \end_inset
21154
21155 Bibliography Categories
21156 \begin_inset Quotes erd
21157 \end_inset
21158
21159  to which you can assign individual entries.
21160  Please refer to the Biblatex manual, section 
21161 \emph on
21162 Subdivided Bibliographies
21163 \emph default
21164 , for details.
21165 \end_layout
21166
21167 \begin_layout Section
21168 Multiple Bibliographies
21169 \begin_inset CommandInset label
21170 LatexCommand label
21171 name "subsec:Multiple-Bibliographies"
21172
21173 \end_inset
21174
21175
21176 \end_layout
21177
21178 \begin_layout Standard
21179 Multiple bibliographies, e.
21180 \begin_inset space \thinspace{}
21181 \end_inset
21182
21183 g.
21184 \begin_inset space \space{}
21185 \end_inset
21186
21187 a bibliography for each part, chapter, section, subsection or child (sub-documen
21188 t) of the document, are also supported by \SpecialChar LyX
21189 .
21190  In order to enable it, go to 
21191 \begin_inset Flex Noun
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 Document\SpecialChar menuseparator
21196 Settings\SpecialChar menuseparator
21197 Bibliography
21198 \end_layout
21199
21200 \end_inset
21201
21202  and select the relevant unit (e.
21203 \begin_inset space \thinspace{}
21204 \end_inset
21205
21206 g., 
21207 \begin_inset Quotes eld
21208 \end_inset
21209
21210 per section
21211 \begin_inset Quotes erd
21212 \end_inset
21213
21214 ) in the 
21215 \begin_inset Flex Noun
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219 Multiple Bibliographies
21220 \end_layout
21221
21222 \end_inset
21223
21224  combo box.
21225  Then add a Bib(la)\SpecialChar TeX
21226  bibliography to each unit (e.
21227 \begin_inset space \thinspace{}
21228 \end_inset
21229
21230 g., section) of your document.
21231  In the output, a separate bibliography, containing only the references
21232  done in the current unit is generated.
21233 \end_layout
21234
21235 \begin_layout Standard
21236 If you use Bib\SpecialChar TeX
21237 , either the 
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 chapterbib
21243 \end_layout
21244
21245 \end_inset
21246
21247  or the 
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 bibtopic
21253 \end_layout
21254
21255 \end_inset
21256
21257  package is used to create multiple bibliographies.
21258  The former package is used if you select 
21259 \begin_inset Quotes eld
21260 \end_inset
21261
21262 per child document
21263 \begin_inset Quotes erd
21264 \end_inset
21265
21266  and do 
21267 \emph on
21268 not
21269 \emph default
21270  check 
21271 \begin_inset Flex Noun
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275 Sectioned Bibliography
21276 \end_layout
21277
21278 \end_inset
21279
21280 .
21281  In all other cases, 
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 bibtopic
21287 \end_layout
21288
21289 \end_inset
21290
21291  is used.
21292 \begin_inset Foot
21293 status collapsed
21294
21295 \begin_layout Plain Layout
21296 An alternative approach, if you are willing to use some 
21297 \begin_inset Flex Noun
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301 \SpecialChar TeX
21302  Code
21303 \end_layout
21304
21305 \end_inset
21306
21307  (see section
21308 \begin_inset space ~
21309 \end_inset
21310
21311
21312 \begin_inset CommandInset ref
21313 LatexCommand ref
21314 reference "sec:Inserting-TeX-Code"
21315
21316 \end_inset
21317
21318 ), is to use the 
21319 \begin_inset Flex Code
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 bibunits
21324 \end_layout
21325
21326 \end_inset
21327
21328  package.
21329 \end_layout
21330
21331 \end_inset
21332
21333  If 
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 bibtopic
21339 \end_layout
21340
21341 \end_inset
21342
21343  is used, \SpecialChar LyX
21344  encloses the specified units in 
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 bibtopic
21350 \end_layout
21351
21352 \end_inset
21353
21354 's 
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359
21360 \backslash
21361 begin{btUnit}
21362 \end_layout
21363
21364 \end_inset
21365
21366  and 
21367 \begin_inset Flex Code
21368 status collapsed
21369
21370 \begin_layout Plain Layout
21371
21372 \backslash
21373 end{btUnit}
21374 \end_layout
21375
21376 \end_inset
21377
21378  in order to create the units.
21379  Note that this approach has some limitations.
21380  First, every citation reference has to be inside some 
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 btUnit
21386 \end_layout
21387
21388 \end_inset
21389
21390 .
21391  So citations outside a defined unit (e.
21392 \begin_inset space \thinspace{}
21393 \end_inset
21394
21395 g., before the first section if you use 
21396 \begin_inset Quotes eld
21397 \end_inset
21398
21399 by section
21400 \begin_inset Quotes erd
21401 \end_inset
21402
21403 ) will appear as 
21404 \begin_inset Quotes eld
21405 \end_inset
21406
21407 ???
21408 \begin_inset Quotes erd
21409 \end_inset
21410
21411 .
21412  You can also create your own units by entering 
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417
21418 \backslash
21419 begin{btUnit}
21420 \end_layout
21421
21422 \end_inset
21423
21424  and 
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429
21430 \backslash
21431 end{btUnit}
21432 \end_layout
21433
21434 \end_inset
21435
21436  as \SpecialChar TeX
21437  code (for instance to work around the mentioned limitation).
21438  Note, though, that 
21439 \begin_inset Flex Code
21440 status collapsed
21441
21442 \begin_layout Plain Layout
21443 btUnit
21444 \end_layout
21445
21446 \end_inset
21447
21448 s cannot be nested.
21449  A second limitation is that 
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 bibtopic
21455 \end_layout
21456
21457 \end_inset
21458
21459  always processes all references of a bibliography database, even if they
21460  are not cited.
21461  This can result in odd labels (e.
21462 \begin_inset space \thinspace{}
21463 \end_inset
21464
21465 g.
21466  
21467 \begin_inset Quotes eld
21468 \end_inset
21469
21470 Miller 2014b
21471 \begin_inset Quotes erd
21472 \end_inset
21473
21474  if two works of this author from 2014 are in the database, even if only
21475  one is cited).
21476 \end_layout
21477
21478 \begin_layout Standard
21479 If you use 
21480 \family sans
21481 Biblatex
21482 \family default
21483 , the 
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488 refsection
21489 \end_layout
21490
21491 \end_inset
21492
21493  option is used instead.
21494  If you need specific units, you can start them with the \SpecialChar TeX
21495  code 
21496 \begin_inset Flex Code
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500
21501 \backslash
21502 newrefsection
21503 \end_layout
21504
21505 \end_inset
21506
21507  or 
21508 \begin_inset Flex Code
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512
21513 \backslash
21514 newrefsegment
21515 \end_layout
21516
21517 \end_inset
21518
21519 , respectively.
21520  If you also want to control the end of the unit, use the environment 
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525
21526 \backslash
21527 begin{refsection}
21528 \end_layout
21529
21530 \end_inset
21531
21532  \SpecialChar ldots
21533  
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538
21539 \backslash
21540 end{refsection}
21541 \end_layout
21542
21543 \end_inset
21544
21545  instead.
21546  Note, though, that 
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 refsection
21552 \end_layout
21553
21554 \end_inset
21555
21556 s cannot be nested.
21557  In addition to the individual bibliography of the current unit, 
21558 \family sans
21559 Biblatex
21560 \family default
21561  also provides an easy way to output all bibliographies, subsequently, at
21562  one place (e.
21563 \begin_inset space \thinspace{}
21564 \end_inset
21565
21566 g., at the end of the document).
21567  Select 
21568 \begin_inset Quotes eld
21569 \end_inset
21570
21571 all reference units
21572 \begin_inset Quotes erd
21573 \end_inset
21574
21575  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
21576  this.
21577  Please refer to the 
21578 \family sans
21579 Biblatex
21580 \family default
21581  manual for more information on this topic.
21582 \end_layout
21583
21584 \begin_layout Chapter
21585
21586 \change_deleted 564990737 1671355654
21587 Itemize 
21588 \change_unchanged
21589 Bullet
21590 \change_inserted 564990737 1671355667
21591 s
21592 \change_deleted 564990737 1671355661
21593  Selection
21594 \change_inserted 564990737 1671355684
21595
21596 \begin_inset CommandInset label
21597 LatexCommand label
21598 name "chap:bullets"
21599
21600 \end_inset
21601
21602
21603 \change_deleted 564990737 1671355684
21604
21605 \begin_inset CommandInset label
21606 LatexCommand label
21607 name "sec:bullet"
21608
21609 \end_inset
21610
21611
21612 \change_unchanged
21613
21614 \end_layout
21615
21616 \begin_layout Standard
21617 by
21618 \noun on
21619  Allan Rae
21620 \end_layout
21621
21622 \begin_layout Section
21623 Introduction
21624 \end_layout
21625
21626 \begin_layout Standard
21627 \SpecialChar LyX
21628  provides 216 bullet shapes that can be accessed from a simple dialog.
21629  Using this dialog you can easily specify what bullet shape to use at each
21630  level of an itemized list.
21631  These settings are document-wide so you won't be able to specify different
21632  sets of bullets for different paragraphs.
21633 \begin_inset Foot
21634 status collapsed
21635
21636 \begin_layout Plain Layout
21637 Well, actually you can but you'll have to do it by hand.
21638 \end_layout
21639
21640 \end_inset
21641
21642
21643 \end_layout
21644
21645 \begin_layout Section
21646 How it looks
21647 \end_layout
21648
21649 \begin_layout Standard
21650 Open the dialog by selecting the 
21651 \begin_inset Flex Noun
21652 status collapsed
21653
21654 \begin_layout Plain Layout
21655 Document\SpecialChar menuseparator
21656 Settings
21657 \end_layout
21658
21659 \end_inset
21660
21661  menu item and then select the 
21662 \begin_inset Flex Noun
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666 Bullets
21667 \end_layout
21668
21669 \end_inset
21670
21671  tab.
21672 \end_layout
21673
21674 \begin_layout Standard
21675 The dialog provides you with a table of bullet shapes.
21676  A column of buttons on the left of the table provides access to the six
21677  different panels of bullet shapes.
21678  The row of buttons across the top is used to select which bullet depth
21679  you are changing.
21680
21681 \change_deleted 244031559 1603875981
21682  A text entry under the table shows the currently selected bullet shape's
21683  \SpecialChar LaTeX
21684  equivalent and this can be edited if desired.
21685  If you do modify the text you will also need to specify any needed packages
21686  in the \SpecialChar LaTeX
21687  preamble.
21688 \change_unchanged
21689
21690 \end_layout
21691
21692 \begin_layout Standard
21693 The six panels are divided up by the packages they require.
21694  The following table shows the mappings from button name to \SpecialChar LaTeX
21695  package.
21696 \end_layout
21697
21698 \begin_layout Standard
21699 \align center
21700 \begin_inset Tabular
21701 <lyxtabular version="3" rows="7" columns="2">
21702 <features tabularvalignment="middle">
21703 <column alignment="center" valignment="top" width="0pt">
21704 <column alignment="center" valignment="top" width="0pt">
21705 <row>
21706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21707 \begin_inset Text
21708
21709 \begin_layout Plain Layout
21710
21711 \family roman
21712 \series medium
21713 \shape up
21714 \size normal
21715 \emph off
21716 \bar no
21717 \noun off
21718 \color none
21719 Button
21720 \end_layout
21721
21722 \end_inset
21723 </cell>
21724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21725 \begin_inset Text
21726
21727 \begin_layout Plain Layout
21728
21729 \family roman
21730 \series medium
21731 \shape up
21732 \size normal
21733 \emph off
21734 \bar no
21735 \noun off
21736 \color none
21737 Packages Required
21738 \end_layout
21739
21740 \end_inset
21741 </cell>
21742 </row>
21743 <row>
21744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21745 \begin_inset Text
21746
21747 \begin_layout Plain Layout
21748
21749 \family sans
21750 \series medium
21751 \shape up
21752 \size normal
21753 \emph off
21754 \bar no
21755 \noun off
21756 \color none
21757 Standard
21758 \end_layout
21759
21760 \end_inset
21761 </cell>
21762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21763 \begin_inset Text
21764
21765 \begin_layout Plain Layout
21766
21767 \series medium
21768 \shape up
21769 \size normal
21770 \emph off
21771 \bar no
21772 \noun off
21773 \color none
21774 base \SpecialChar LaTeX
21775
21776 \end_layout
21777
21778 \end_inset
21779 </cell>
21780 </row>
21781 <row>
21782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21783 \begin_inset Text
21784
21785 \begin_layout Plain Layout
21786
21787 \family sans
21788 \series medium
21789 \shape up
21790 \size normal
21791 \emph off
21792 \bar no
21793 \noun off
21794 \color none
21795 Maths
21796 \end_layout
21797
21798 \end_inset
21799 </cell>
21800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21801 \begin_inset Text
21802
21803 \begin_layout Plain Layout
21804
21805 \family typewriter
21806 \series medium
21807 \shape up
21808 \size normal
21809 \emph off
21810 \bar no
21811 \noun off
21812 \color none
21813 amssymb.sty
21814 \end_layout
21815
21816 \end_inset
21817 </cell>
21818 </row>
21819 <row>
21820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21821 \begin_inset Text
21822
21823 \begin_layout Plain Layout
21824
21825 \family sans
21826 \series medium
21827 \shape up
21828 \size normal
21829 \emph off
21830 \bar no
21831 \noun off
21832 \color none
21833 Ding1
21834 \end_layout
21835
21836 \end_inset
21837 </cell>
21838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21839 \begin_inset Text
21840
21841 \begin_layout Plain Layout
21842
21843 \family typewriter
21844 \series medium
21845 \shape up
21846 \size normal
21847 \emph off
21848 \bar no
21849 \noun off
21850 \color none
21851 pifont.sty
21852 \end_layout
21853
21854 \end_inset
21855 </cell>
21856 </row>
21857 <row>
21858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21859 \begin_inset Text
21860
21861 \begin_layout Plain Layout
21862
21863 \family sans
21864 \series medium
21865 \shape up
21866 \size normal
21867 \emph off
21868 \bar no
21869 \noun off
21870 \color none
21871 Ding2
21872 \end_layout
21873
21874 \end_inset
21875 </cell>
21876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21877 \begin_inset Text
21878
21879 \begin_layout Plain Layout
21880
21881 \family typewriter
21882 \series medium
21883 \shape up
21884 \size normal
21885 \emph off
21886 \bar no
21887 \noun off
21888 \color none
21889 pifont.sty
21890 \end_layout
21891
21892 \end_inset
21893 </cell>
21894 </row>
21895 <row>
21896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21897 \begin_inset Text
21898
21899 \begin_layout Plain Layout
21900
21901 \family sans
21902 \series medium
21903 \shape up
21904 \size normal
21905 \emph off
21906 \bar no
21907 \noun off
21908 \color none
21909 Ding3
21910 \end_layout
21911
21912 \end_inset
21913 </cell>
21914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21915 \begin_inset Text
21916
21917 \begin_layout Plain Layout
21918
21919 \family typewriter
21920 \series medium
21921 \shape up
21922 \size normal
21923 \emph off
21924 \bar no
21925 \noun off
21926 \color none
21927 pifont.sty
21928 \end_layout
21929
21930 \end_inset
21931 </cell>
21932 </row>
21933 <row>
21934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21935 \begin_inset Text
21936
21937 \begin_layout Plain Layout
21938
21939 \family sans
21940 \series medium
21941 \shape up
21942 \size normal
21943 \emph off
21944 \bar no
21945 \noun off
21946 \color none
21947 Ding4
21948 \end_layout
21949
21950 \end_inset
21951 </cell>
21952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21953 \begin_inset Text
21954
21955 \begin_layout Plain Layout
21956
21957 \family typewriter
21958 \series medium
21959 \shape up
21960 \size normal
21961 \emph off
21962 \bar no
21963 \noun off
21964 \color none
21965 pifont.sty
21966 \end_layout
21967
21968 \end_inset
21969 </cell>
21970 </row>
21971 </lyxtabular>
21972
21973 \end_inset
21974
21975
21976 \end_layout
21977
21978 \begin_layout Standard
21979 \SpecialChar LyX
21980  doesn't stop you using bullets from packages you don't have.
21981  If you get errors from \SpecialChar LaTeX
21982  when you try to view or print the file, then it
21983  is likely you are missing a package.
21984 \begin_inset Foot
21985 status collapsed
21986
21987 \begin_layout Plain Layout
21988 \SpecialChar LyX
21989  doesn't restrict your use since you may be editing locally and exporting
21990  elsewhere.
21991 \end_layout
21992
21993 \end_inset
21994
21995
21996 \end_layout
21997
21998 \begin_layout Section
21999 How to use it
22000 \end_layout
22001
22002 \begin_layout Standard
22003 Select which bullet depth you want to change then select the bullet shape
22004  and size.
22005  Any changes will not be visible in \SpecialChar LyX
22006 , but are visible when viewing the document.
22007 \end_layout
22008
22009 \begin_layout Standard
22010 You can reset a bullet shape to the default simply by clicking your right
22011  mouse button on the appropriate bullet depth button.
22012 \begin_inset Foot
22013 status open
22014
22015 \begin_layout Plain Layout
22016
22017 \change_inserted 564990737 1672138075
22018 \begin_inset CommandInset label
22019 LatexCommand label
22020 name "fn:If-you-really"
22021
22022 \end_inset
22023
22024
22025 \change_unchanged
22026 If you 
22027 \emph on
22028 really
22029 \emph default
22030  want to have multiple sets of paragraphs with different sets of bullets
22031  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
22032  code.
22033  The bullet selection dialog can help though because it provides you with
22034  the \SpecialChar LaTeX
22035  code for a wide range of bullet shapes.
22036  To make your own custom paragraphs you have the following options:
22037 \end_layout
22038
22039 \begin_layout Plain Layout
22040 \begin_inset ERT
22041 status open
22042
22043 \begin_layout Plain Layout
22044
22045
22046 \backslash
22047 let
22048 \backslash
22049 savelabelitemi=
22050 \backslash
22051 labelitemi
22052 \end_layout
22053
22054 \end_inset
22055
22056
22057 \end_layout
22058
22059 \begin_layout Plain Layout
22060 \begin_inset ERT
22061 status open
22062
22063 \begin_layout Plain Layout
22064
22065
22066 \backslash
22067 renewcommand
22068 \backslash
22069 labelitemi[0]{
22070 \backslash
22071 small
22072 \backslash
22073 (
22074 \backslash
22075 sharp
22076 \backslash
22077 )}
22078 \end_layout
22079
22080 \end_inset
22081
22082
22083 \end_layout
22084
22085 \begin_layout Itemize
22086 Use the \SpecialChar LaTeX
22087  command 
22088 \begin_inset Flex Code
22089 status collapsed
22090
22091 \begin_layout Plain Layout
22092
22093 \backslash
22094 renewcommand{}{}
22095 \end_layout
22096
22097 \end_inset
22098
22099  to specify a new bullet shape for a given depth.
22100  You'll also need to save the current bullet shape so you can restore it
22101  again afterwards.
22102  In this itemized list the following \SpecialChar LaTeX
22103  code was used to change the bullet
22104  used for the first depth.
22105 \end_layout
22106
22107 \begin_deeper
22108 \begin_layout LyX-Code
22109
22110 \backslash
22111 let
22112 \backslash
22113 savelabelitemi=
22114 \backslash
22115 labelitemi 
22116 \end_layout
22117
22118 \begin_layout LyX-Code
22119
22120 \backslash
22121 renewcommand
22122 \backslash
22123 labelitemi[0]{
22124 \backslash
22125 small
22126 \backslash
22127 (
22128 \backslash
22129 sharp
22130 \backslash
22131 )}
22132 \end_layout
22133
22134 \end_deeper
22135 \begin_layout Itemize
22136 Note that the itemize depth is specified in Roman numerals as part of the
22137  
22138 \family typewriter
22139
22140 \backslash
22141 labelitem
22142 \family default
22143  command.
22144 \end_layout
22145
22146 \begin_layout Itemize
22147 \begin_inset Argument item:1
22148 status open
22149
22150 \begin_layout Plain Layout
22151 \begin_inset ERT
22152 status open
22153
22154 \begin_layout Plain Layout
22155
22156
22157 \backslash
22158 (
22159 \backslash
22160 star
22161 \backslash
22162 )
22163 \end_layout
22164
22165 \end_inset
22166
22167
22168 \end_layout
22169
22170 \end_inset
22171
22172  Specify each individual entry by starting each item with the bullet shape
22173  enclosed in a 
22174 \begin_inset Quotes eld
22175 \end_inset
22176
22177 Custom Item
22178 \begin_inset Quotes erd
22179 \end_inset
22180
22181  inset (available at 
22182 \family sans
22183 Insert\SpecialChar menuseparator
22184 Custom Item
22185 \family default
22186 ) and set as 
22187 \begin_inset Flex Noun
22188 status collapsed
22189
22190 \begin_layout Plain Layout
22191 \SpecialChar TeX
22192  Code
22193 \end_layout
22194
22195 \end_inset
22196
22197 .
22198  For example, this item was started with 
22199 \begin_inset Flex Code
22200 status collapsed
22201
22202 \begin_layout Plain Layout
22203
22204 \backslash
22205 (
22206 \backslash
22207 star
22208 \backslash
22209 )
22210 \end_layout
22211
22212 \end_inset
22213
22214 .
22215 \end_layout
22216
22217 \begin_layout Plain Layout
22218 \begin_inset ERT
22219 status open
22220
22221 \begin_layout Plain Layout
22222
22223
22224 \backslash
22225 renewcommand
22226 \backslash
22227 labelitemi[0]{
22228 \backslash
22229 savelabelitemi}
22230 \end_layout
22231
22232 \end_inset
22233
22234
22235 \end_layout
22236
22237 \begin_layout Plain Layout
22238 You'll also need to revert the labelitem back to its previous setting for
22239  the global bullet shape settings to remain in effect.
22240  The way used here was:
22241 \end_layout
22242
22243 \begin_layout LyX-Code
22244
22245 \backslash
22246 renewcommand
22247 \backslash
22248 labelitemi[0]{
22249 \backslash
22250 savelabelitemi}
22251 \end_layout
22252
22253 \end_inset
22254
22255
22256 \end_layout
22257
22258 \begin_layout Chapter
22259 Supplemental Tools
22260 \end_layout
22261
22262 \begin_layout Section
22263 Multipart Documents
22264 \end_layout
22265
22266 \begin_layout Subsection
22267 General Operation
22268 \end_layout
22269
22270 \begin_layout Standard
22271 When you are working on a large file with many sections, it is often convenient
22272  to break up the document into several files, or perhaps you have something
22273  where a table may change from time to time, but the preceding text does
22274  not.
22275  In these cases, you should seriously consider using multipart documents.
22276  For example, scientific papers often have five major sections: the introduction
22277 , observations, results, discussion, and conclusion.
22278  Each of these could be its own separate \SpecialChar LyX
22279  file, with one 
22280 \begin_inset Quotes eld
22281 \end_inset
22282
22283 master
22284 \begin_inset Quotes erd
22285 \end_inset
22286
22287  file which contains the title, authors, abstract, references, etc., plus
22288  the five included files.
22289  It is important to note that each of these files is a full \SpecialChar LyX
22290  file which
22291  can be formatted and printed on its own, as well as included in a master
22292  file.
22293  Each of these files must have the same document class, however—don't attempt
22294  to mix book classes with article classes.
22295  You may also include \SpecialChar LaTeX
22296  files; however, these files must not have their own
22297  preamble (i.
22298 \begin_inset space \thinspace{}
22299 \end_inset
22300
22301 e.
22302 \begin_inset space \space{}
22303 \end_inset
22304
22305 everything up to and including the 
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310
22311 \backslash
22312 begin{document}
22313 \end_layout
22314
22315 \end_inset
22316
22317  line as well as the 
22318 \begin_inset Flex Code
22319 status collapsed
22320
22321 \begin_layout Plain Layout
22322
22323 \backslash
22324 end{document}
22325 \end_layout
22326
22327 \end_inset
22328
22329  line must be deleted) or else errors will be generated when you try to
22330  make a DVI file.
22331 \end_layout
22332
22333 \begin_layout Standard
22334 \SpecialChar LyX
22335  allows you to include files quite easily with 
22336 \begin_inset Flex Noun
22337 status collapsed
22338
22339 \begin_layout Plain Layout
22340 Insert\SpecialChar menuseparator
22341 Child
22342 \begin_inset space ~
22343 \end_inset
22344
22345 Document
22346 \end_layout
22347
22348 \end_inset
22349
22350 .
22351  When you click on this selection a small box is inserted into the file
22352  at the current cursor location.
22353  Clicking on the box raises a dialog which allows you to select the file
22354  to be included, and the method of its inclusion.
22355  
22356 \end_layout
22357
22358 \begin_layout Standard
22359 The file selection box should by now be obvious.
22360  The three inclusion methods are 
22361 \begin_inset Quotes eld
22362 \end_inset
22363
22364 include
22365 \begin_inset Quotes erd
22366 \end_inset
22367
22368
22369 \begin_inset Quotes eld
22370 \end_inset
22371
22372 input
22373 \begin_inset Quotes erd
22374 \end_inset
22375
22376 , and 
22377 \begin_inset Quotes eld
22378 \end_inset
22379
22380 verbatim
22381 \begin_inset Quotes erd
22382 \end_inset
22383
22384 .
22385  The methods 
22386 \begin_inset Quotes eld
22387 \end_inset
22388
22389 include
22390 \begin_inset Quotes erd
22391 \end_inset
22392
22393  and 
22394 \begin_inset Quotes eld
22395 \end_inset
22396
22397 input
22398 \begin_inset Quotes erd
22399 \end_inset
22400
22401  are similar in many ways, but there are also some notable differences:
22402 \end_layout
22403
22404 \begin_layout Enumerate
22405 Files that are 
22406 \begin_inset Quotes eld
22407 \end_inset
22408
22409 included
22410 \begin_inset Quotes erd
22411 \end_inset
22412
22413  are typeset beginning on a new page, while files that are 
22414 \begin_inset Quotes eld
22415 \end_inset
22416
22417 inputted
22418 \begin_inset Quotes erd
22419 \end_inset
22420
22421  are typeset starting on the current page.
22422 \end_layout
22423
22424 \begin_layout Enumerate
22425 \begin_inset Quotes eld
22426 \end_inset
22427
22428 Included
22429 \begin_inset Quotes erd
22430 \end_inset
22431
22432  files cannot themselves 
22433 \begin_inset Quotes eld
22434 \end_inset
22435
22436 include
22437 \begin_inset Quotes erd
22438 \end_inset
22439
22440  further files (
22441 \begin_inset Quotes eld
22442 \end_inset
22443
22444 grandchilds
22445 \begin_inset Quotes erd
22446 \end_inset
22447
22448 ).
22449  With 
22450 \begin_inset Quotes eld
22451 \end_inset
22452
22453 input
22454 \begin_inset Quotes erd
22455 \end_inset
22456
22457 , on the other hand, infinite sub-inputting is possible.
22458 \end_layout
22459
22460 \begin_layout Enumerate
22461 \begin_inset Quotes eld
22462 \end_inset
22463
22464 Include
22465 \begin_inset Quotes erd
22466 \end_inset
22467
22468  allow for the output of only selected 
22469 \begin_inset Quotes eld
22470 \end_inset
22471
22472 included
22473 \begin_inset Quotes erd
22474 \end_inset
22475
22476  files, while maintaining the actual counters (pagination etc.) and references
22477  (please refer to the section 
22478 \emph on
22479 Child
22480 \begin_inset space ~
22481 \end_inset
22482
22483 Documents
22484 \emph default
22485  of the 
22486 \emph on
22487 Embedded
22488 \begin_inset space ~
22489 \end_inset
22490
22491 Objects
22492 \emph default
22493  manual for details).
22494 \end_layout
22495
22496 \begin_layout Standard
22497 Hence, 
22498 \begin_inset Quotes eld
22499 \end_inset
22500
22501 include
22502 \begin_inset Quotes erd
22503 \end_inset
22504
22505  is the preferred method for chapters that are outsourced to child documents,
22506  while 
22507 \begin_inset Quotes eld
22508 \end_inset
22509
22510 input
22511 \begin_inset Quotes erd
22512 \end_inset
22513
22514  is more suitable for arbitrary file inheritance.
22515 \end_layout
22516
22517 \begin_layout Standard
22518
22519 \begin_inset Quotes eld
22520 \end_inset
22521
22522 verbatim
22523 \begin_inset Quotes erd
22524 \end_inset
22525
22526  included file allows you to include a file typeset exactly as it appears
22527  in the file, i.
22528 \begin_inset space \thinspace{}
22529 \end_inset
22530
22531 e.
22532 \begin_inset space \space{}
22533 \end_inset
22534
22535 in 
22536 \begin_inset Flex Code
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 verbatim
22541 \end_layout
22542
22543 \end_inset
22544
22545  mode, with the characters set in a fixed-width typewriter font.
22546  Normally, spaces in this file are invisible, though two consecutive spaces
22547  are conserved, unlike \SpecialChar LyX
22548 's normal treatment of spaces.
22549  However, setting the 
22550 \begin_inset Flex Noun
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554 Mark
22555 \begin_inset space ~
22556 \end_inset
22557
22558 spaces
22559 \begin_inset space ~
22560 \end_inset
22561
22562 in
22563 \begin_inset space ~
22564 \end_inset
22565
22566 output
22567 \end_layout
22568
22569 \end_inset
22570
22571  checkbox typesets a mark to unambiguously define the presence of a space.
22572  
22573 \end_layout
22574
22575 \begin_layout Standard
22576 Generally, the master file is converted into a full \SpecialChar LaTeX
22577  file before typesetting,
22578  while the included files are converted to \SpecialChar LaTeX
22579  files that do not have all the
22580  preamble information.
22581 \end_layout
22582
22583 \begin_layout Subsection
22584 Cross-References Between Files
22585 \end_layout
22586
22587 \begin_layout Standard
22588 \begin_inset Box Shadowbox
22589 position "t"
22590 hor_pos "c"
22591 has_inner_box 1
22592 inner_pos "t"
22593 use_parbox 0
22594 use_makebox 0
22595 width "100col%"
22596 special "none"
22597 height "1in"
22598 height_special "totalheight"
22599 thickness "0.4pt"
22600 separation "3pt"
22601 shadowsize "4pt"
22602 framecolor "black"
22603 backgroundcolor "none"
22604 status open
22605
22606 \begin_layout Plain Layout
22607 This section is somewhat out of date.
22608  Need to describe default master documents and how children are opened when
22609  the master is.
22610  [[FIXME]]
22611 \end_layout
22612
22613 \end_inset
22614
22615
22616 \end_layout
22617
22618 \begin_layout Standard
22619 It is possible to set up cross-references between the different files.
22620  First, open all the files in question: let's call them A and B in a two
22621  file example, where B is included in A.
22622  Let's say you insert a label in A, then want to reference it in B.
22623  Open the cross-reference dialog whilst in document B, and you can select
22624  the 
22625 \begin_inset Quotes eld
22626 \end_inset
22627
22628 buffer
22629 \begin_inset Quotes erd
22630 \end_inset
22631
22632  to use.
22633 \end_layout
22634
22635 \begin_layout Subsection
22636 Bibliography Lists in all Subdocuments
22637 \end_layout
22638
22639 \begin_layout Standard
22640 If you work with child documents, you might want to have only one main bibliogra
22641 phy at the end, but still be able to have a selected bibliography for the
22642  child if you output it on its own.
22643  Here is how to achieve this.
22644 \end_layout
22645
22646 \begin_layout Standard
22647 For the main document, you just insert a bibliography inset at the place
22648  where the main bibliography has to appear (within the master file or within
22649  a child).
22650  If the bibliography inset is in the master file, the references will be
22651  inherited by all children, so they are available in the citation dialog
22652  within each child.
22653 \end_layout
22654
22655 \begin_layout Standard
22656 For child-specific bibliographies, insert bibliography insets within the
22657  child documents, at the place where the bibliography should appear when
22658  the child is compiled separately.
22659  However, the trick is to insert them into a branch (
22660 \family sans
22661 Insert\SpecialChar menuseparator
22662 Branch\SpecialChar menuseparator
22663 Insert New Branch...
22664 \family default
22665 ), e.
22666 \begin_inset space \thinspace{}
22667 \end_inset
22668
22669 g.
22670  called 
22671 \begin_inset Quotes eld
22672 \end_inset
22673
22674 Childonly
22675 \begin_inset Quotes erd
22676 \end_inset
22677
22678 .
22679  Within the children, activate the branch (
22680 \family sans
22681 Document\SpecialChar menuseparator
22682 Settings...\SpecialChar menuseparator
22683 Branches
22684 \family default
22685 ).
22686  Within the master, deactivate the branch (
22687 \family sans
22688 Document\SpecialChar menuseparator
22689 Settings...\SpecialChar menuseparator
22690 Branches
22691 \family default
22692 ).
22693  Now the child's bibliography will be ignored by the master, but considered
22694  by the child.
22695 \end_layout
22696
22697 \begin_layout Standard
22698 If you need multiple bibliographies (e.
22699 \begin_inset space \thinspace{}
22700 \end_inset
22701
22702 g., one per child in the 
22703 \emph on
22704 main document
22705 \emph default
22706 ), please refer to sec.
22707 \begin_inset space ~
22708 \end_inset
22709
22710
22711 \begin_inset CommandInset ref
22712 LatexCommand ref
22713 reference "subsec:Multiple-Bibliographies"
22714
22715 \end_inset
22716
22717 .
22718 \end_layout
22719
22720 \begin_layout Section
22721 \SpecialChar LyX
22722  Archives
22723 \end_layout
22724
22725 \begin_layout Standard
22726 Users sometimes need to be able to 
22727 \begin_inset Quotes eld
22728 \end_inset
22729
22730 bundle
22731 \begin_inset Quotes erd
22732 \end_inset
22733
22734  a \SpecialChar LyX
22735  file together with all the images (and other files) on which it depends,
22736  either for sending to a publisher or for sharing with a co-author.
22737  \SpecialChar LyX
22738  includes a Python script (
22739 \begin_inset Flex Code
22740 status collapsed
22741
22742 \begin_layout Plain Layout
22743 lyxpak.py
22744 \end_layout
22745
22746 \end_inset
22747
22748 ) that automates this process.
22749  To use it, you must have either the 
22750 \begin_inset Flex Code
22751 status collapsed
22752
22753 \begin_layout Plain Layout
22754 zipfile
22755 \end_layout
22756
22757 \end_inset
22758
22759  or 
22760 \begin_inset Flex Code
22761 status collapsed
22762
22763 \begin_layout Plain Layout
22764 tarfile
22765 \end_layout
22766
22767 \end_inset
22768
22769  python modules installed on your system.
22770  By default, the script prefers the 
22771 \begin_inset Flex Code
22772 status collapsed
22773
22774 \begin_layout Plain Layout
22775 gzip
22776 \end_layout
22777
22778 \end_inset
22779
22780 -compressed 
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785 tar
22786 \end_layout
22787
22788 \end_inset
22789
22790  format on Unix-like systems and the 
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 zip
22796 \end_layout
22797
22798 \end_inset
22799
22800  format on Windows.
22801 \end_layout
22802
22803 \begin_layout Standard
22804 \SpecialChar LyX
22805 's configuration process will set the script up to export a `\SpecialChar LyX
22806  Archive',
22807  and this format will then be available under 
22808 \begin_inset Flex Code
22809 status collapsed
22810
22811 \begin_layout Plain Layout
22812 File\SpecialChar menuseparator
22813 Export
22814 \end_layout
22815
22816 \end_inset
22817
22818 .
22819 \end_layout
22820
22821 \begin_layout Standard
22822 Independently of the platform, the generation of a particular archive format
22823  can be forced by adding either the 
22824 \begin_inset Flex Code
22825 status collapsed
22826
22827 \begin_layout Plain Layout
22828 -t
22829 \end_layout
22830
22831 \end_inset
22832
22833  (for the 
22834 \begin_inset Flex Code
22835 status collapsed
22836
22837 \begin_layout Plain Layout
22838 tar
22839 \end_layout
22840
22841 \end_inset
22842
22843  format) or 
22844 \begin_inset Flex Code
22845 status collapsed
22846
22847 \begin_layout Plain Layout
22848 -z
22849 \end_layout
22850
22851 \end_inset
22852
22853  (for the 
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 zip
22859 \end_layout
22860
22861 \end_inset
22862
22863  format) switch to the 
22864 \begin_inset Flex Code
22865 status collapsed
22866
22867 \begin_layout Plain Layout
22868 \SpecialChar LyX
22869 \SpecialChar menuseparator
22870 \SpecialChar LyX
22871  Archive
22872 \end_layout
22873
22874 \end_inset
22875
22876  converter in 
22877 \begin_inset Flex Code
22878 status collapsed
22879
22880 \begin_layout Plain Layout
22881 Tools\SpecialChar menuseparator
22882 Preferences\SpecialChar menuseparator
22883 File Handling\SpecialChar menuseparator
22884 Converters
22885 \end_layout
22886
22887 \end_inset
22888
22889 .
22890  (Make sure you add the switch after the script name, not before it.)
22891 \end_layout
22892
22893 \begin_layout Section
22894 Fancy Headers and Footers
22895 \end_layout
22896
22897 \begin_layout Standard
22898 The default page layout is rather plain; for an 
22899 \begin_inset Flex Code
22900 status collapsed
22901
22902 \begin_layout Plain Layout
22903 article
22904 \end_layout
22905
22906 \end_inset
22907
22908  document class, all you get is a centered page number at the bottom of
22909  the page.
22910  This document uses KOMA-script's book class, so it appears to be a bit
22911  fancier.
22912  But to really put on a show, you need to set the document page style to
22913  
22914 \begin_inset Quotes eld
22915 \end_inset
22916
22917 fancy
22918 \begin_inset Quotes erd
22919 \end_inset
22920
22921 , as mentioned in the 
22922 \emph on
22923 User Guide
22924 \emph default
22925 .
22926  This section describes the \SpecialChar LaTeX
22927  code you need to insert in your \SpecialChar LaTeX
22928  preamble in
22929  order to get the desired effects.
22930 \end_layout
22931
22932 \begin_layout Standard
22933 For more information on fancy headers, see the 
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 fancyhdr
22939 \end_layout
22940
22941 \end_inset
22942
22943  package documentation.
22944  (
22945 \begin_inset Flex URL
22946 status collapsed
22947
22948 \begin_layout Plain Layout
22949
22950 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
22951 \end_layout
22952
22953 \end_inset
22954
22955 )
22956 \end_layout
22957
22958 \begin_layout Standard
22959 The page header is divided into three fields, not surprisingly labeled 
22960 \begin_inset Quotes eld
22961 \end_inset
22962
22963 left
22964 \begin_inset Quotes erd
22965 \end_inset
22966
22967
22968 \begin_inset Quotes eld
22969 \end_inset
22970
22971 center
22972 \begin_inset Quotes erd
22973 \end_inset
22974
22975 , and 
22976 \begin_inset Quotes eld
22977 \end_inset
22978
22979 right
22980 \begin_inset Quotes erd
22981 \end_inset
22982
22983 .
22984  The footer is also divided into these three fields.
22985  The \SpecialChar LaTeX
22986  commands to set these fields in the simplest manner are 
22987 \begin_inset Flex Code
22988 status collapsed
22989
22990 \begin_layout Plain Layout
22991
22992 \backslash
22993 lhead
22994 \end_layout
22995
22996 \end_inset
22997
22998
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003
23004 \backslash
23005 chead
23006 \end_layout
23007
23008 \end_inset
23009
23010
23011 \begin_inset Flex Code
23012 status collapsed
23013
23014 \begin_layout Plain Layout
23015
23016 \backslash
23017 rhead
23018 \end_layout
23019
23020 \end_inset
23021
23022
23023 \begin_inset Flex Code
23024 status collapsed
23025
23026 \begin_layout Plain Layout
23027
23028 \backslash
23029 lfoot
23030 \end_layout
23031
23032 \end_inset
23033
23034 , etc.
23035  Suppose you wish to put your name in the upper left hand corner of each
23036  page.
23037  Simply insert the following command in the preamble: 
23038 \end_layout
23039
23040 \begin_layout Standard
23041
23042 \family typewriter
23043
23044 \backslash
23045 lhead{John Q.
23046  DocWriter}
23047 \end_layout
23048
23049 \begin_layout Standard
23050 You will now see your name in the upper left.
23051  If a field has a default entry that you would like to get rid of (often
23052  the page number appears in the central footer) simply include a command
23053  with a blank argument, e.
23054 \begin_inset space \thinspace{}
23055 \end_inset
23056
23057 g.:
23058 \end_layout
23059
23060 \begin_layout Standard
23061
23062 \family typewriter
23063
23064 \backslash
23065 cfoot{}
23066 \end_layout
23067
23068 \begin_layout Standard
23069 Let's get really fancy: lets put the section number with the word 
23070 \begin_inset Quotes eld
23071 \end_inset
23072
23073 Section
23074 \begin_inset Quotes erd
23075 \end_inset
23076
23077  (e.
23078 \begin_inset space \thinspace{}
23079 \end_inset
23080
23081 g.
23082 \begin_inset space \space{}
23083 \end_inset
23084
23085 Section 3) in the upper left, the page number (e.
23086 \begin_inset space \thinspace{}
23087 \end_inset
23088
23089 g.
23090 \begin_inset space \space{}
23091 \end_inset
23092
23093 Page 4) in the upper right, your name in the lower left, and the date in
23094  the lower right.
23095  The following commands should now appear in the preamble:
23096 \end_layout
23097
23098 \begin_layout Standard
23099
23100 \family typewriter
23101
23102 \backslash
23103 lhead{Section 
23104 \backslash
23105 thesection}
23106 \end_layout
23107
23108 \begin_layout Standard
23109
23110 \family typewriter
23111
23112 \backslash
23113 chead{}
23114 \end_layout
23115
23116 \begin_layout Standard
23117
23118 \family typewriter
23119
23120 \backslash
23121 rhead{Page 
23122 \backslash
23123 thepage}
23124 \end_layout
23125
23126 \begin_layout Standard
23127
23128 \family typewriter
23129
23130 \backslash
23131 lfoot{John Q.
23132  DocWriter}
23133 \end_layout
23134
23135 \begin_layout Standard
23136
23137 \family typewriter
23138
23139 \backslash
23140 cfoot{}
23141 \end_layout
23142
23143 \begin_layout Standard
23144
23145 \family typewriter
23146
23147 \backslash
23148 rfoot{
23149 \backslash
23150 today}
23151 \end_layout
23152
23153 \begin_layout Standard
23154 The commands 
23155 \begin_inset Flex Code
23156 status collapsed
23157
23158 \begin_layout Plain Layout
23159
23160 \backslash
23161 thesection
23162 \end_layout
23163
23164 \end_inset
23165
23166  and 
23167 \begin_inset Flex Code
23168 status collapsed
23169
23170 \begin_layout Plain Layout
23171
23172 \backslash
23173 thepage
23174 \end_layout
23175
23176 \end_inset
23177
23178  access \SpecialChar LaTeX
23179 's section and page counters, and so print out the current section
23180  and page number.
23181  
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186
23187 \backslash
23188 today
23189 \end_layout
23190
23191 \end_inset
23192
23193  simply prints out today's date.
23194 \end_layout
23195
23196 \begin_layout Standard
23197 The thicknesses of the horizontal rules drawn beneath the header and above
23198  the footer can also be modified.
23199  If you don't want one of the rules, set its thickness to 0.
23200  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
23201  Use commands
23202 \family typewriter
23203  
23204 \family default
23205 like 
23206 \begin_inset Flex Code
23207 status collapsed
23208
23209 \begin_layout Plain Layout
23210
23211 \backslash
23212 renewcommand{
23213 \backslash
23214 headrulewidth}{0.4pt}
23215 \end_layout
23216
23217 \end_inset
23218
23219  and 
23220 \begin_inset Flex Code
23221 status collapsed
23222
23223 \begin_layout Plain Layout
23224
23225 \backslash
23226 renewcommand{
23227 \backslash
23228 footrulewidth}{0.4pt}
23229 \end_layout
23230
23231 \end_inset
23232
23233  to set the thicknesses.
23234 \end_layout
23235
23236 \begin_layout Standard
23237 You can switch the header/footer settings on and off for individual pages
23238  using commands like 
23239 \begin_inset Flex Code
23240 status collapsed
23241
23242 \begin_layout Plain Layout
23243
23244 \backslash
23245 thispagestyle{empty}
23246 \end_layout
23247
23248 \end_inset
23249
23250
23251 \begin_inset Flex Code
23252 status collapsed
23253
23254 \begin_layout Plain Layout
23255
23256 \backslash
23257 thispagestyle{plain}
23258 \end_layout
23259
23260 \end_inset
23261
23262 , and 
23263 \begin_inset Flex Code
23264 status collapsed
23265
23266 \begin_layout Plain Layout
23267
23268 \backslash
23269 thispagestyle{fancy}
23270 \end_layout
23271
23272 \end_inset
23273
23274 .
23275  Simply insert them in the text on the page you want changed and mark them
23276  as \SpecialChar TeX
23277  code.
23278  In fact, title pages are marked as plain by default, while following pages
23279  are marked fancy when using the global fancy setting.
23280 \end_layout
23281
23282 \begin_layout Standard
23283 As a final example, it is possible to include an image in the header or
23284  footer.
23285  Suppose you want to put a company logo in the upper lefthand corner.
23286  You might try something like
23287 \end_layout
23288
23289 \begin_layout Standard
23290
23291 \family typewriter
23292
23293 \backslash
23294 lhead{
23295 \backslash
23296 resizebox{1in}{!}{
23297 \backslash
23298 includegraphics{logo.eps}}}
23299 \end_layout
23300
23301 \begin_layout Standard
23302 \noindent
23303 (you may need to preface this with 
23304 \begin_inset Flex Code
23305 status collapsed
23306
23307 \begin_layout Plain Layout
23308
23309 \backslash
23310 usepackage{graphics}
23311 \end_layout
23312
23313 \end_inset
23314
23315  if you don't include graphics elsewhere in your document).
23316 \end_layout
23317
23318 \begin_layout Chapter
23319 \SpecialChar LyX
23320  and the World Wide Web
23321 \end_layout
23322
23323 \begin_layout Standard
23324 \SpecialChar LyX
23325  has long supported the export of documents to various web-friendly formats,
23326  such as HTML.
23327  Before version 2.0, however, HTML export was always accomplished by the
23328  use of external converters.
23329 \begin_inset Foot
23330 status collapsed
23331
23332 \begin_layout Plain Layout
23333 For details on the use of external converters with \SpecialChar LyX
23334 , see the 
23335 \emph on
23336 Converters
23337 \emph default
23338  section of the Customization manual.
23339 \end_layout
23340
23341 \end_inset
23342
23343  These fall into two large groups: there are converters that use \SpecialChar LaTeX
23344  as an
23345  intermediate format, such as 
23346 \begin_inset Flex Code
23347 status collapsed
23348
23349 \begin_layout Plain Layout
23350 htlatex
23351 \end_layout
23352
23353 \end_inset
23354
23355
23356 \begin_inset Flex Code
23357 status collapsed
23358
23359 \begin_layout Plain Layout
23360 html2latex
23361 \end_layout
23362
23363 \end_inset
23364
23365 , and 
23366 \begin_inset Flex Code
23367 status collapsed
23368
23369 \begin_layout Plain Layout
23370 plastex
23371 \end_layout
23372
23373 \end_inset
23374
23375 , relying upon \SpecialChar LyX
23376  to produce the \SpecialChar LaTeX
23377 ; and there is a converter that works directly
23378  on \SpecialChar LyX
23379  files, 
23380 \begin_inset Flex Code
23381 status collapsed
23382
23383 \begin_layout Plain Layout
23384 e\SpecialChar LyX
23385 er
23386 \end_layout
23387
23388 \end_inset
23389
23390 .
23391  All of these have different advantages and disadvantages.
23392  
23393 \end_layout
23394
23395 \begin_layout Standard
23396 The \SpecialChar LaTeX
23397 -based converters have the advantage that, in principle, they know everythin
23398 g about the exported document that \SpecialChar LaTeX
23399  does.
23400  Such converters do not care, for example, if a certain block of code was
23401  produced by \SpecialChar LyX
23402  or was Evil Red Text.
23403  These converters know about 
23404 \begin_inset Flex Code
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408 aux
23409 \end_layout
23410
23411 \end_inset
23412
23413  files, counters, and references, and can often make use of the 
23414 \begin_inset Flex Code
23415 status collapsed
23416
23417 \begin_layout Plain Layout
23418 bbl
23419 \end_layout
23420
23421 \end_inset
23422
23423  files generated by Bib\SpecialChar TeX
23424 .
23425  On the other hand, \SpecialChar LaTeX
23426  is a very hard language to parse—it is sometimes said
23427  that only \SpecialChar TeX
23428  itself understands \SpecialChar TeX
23429 —and \SpecialChar LaTeX
23430 -based converters will often choke on
23431  what seem to be quite simple constructs; complex ones can throw them completely
23432 , and as of this writing, for example, the 
23433 \emph on
23434 Embedded Objects
23435 \emph default
23436  manual will not export with 
23437 \begin_inset Flex Code
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441 htlatex
23442 \end_layout
23443
23444 \end_inset
23445
23446 , though the others will.
23447  The other issue concerns how math is handled.
23448  These converters typically convert the formulae into little pictures that
23449  are then linked from the HTML document.
23450  Since these are actually generated by \SpecialChar LaTeX
23451 , they are accurate.
23452  But they do not scale well, and just getting them to look as if they are
23453  actually meant to be in your document—so that the font sizes seem to be
23454  roughly the same—can be a challenge.
23455 \end_layout
23456
23457 \begin_layout Standard
23458 Alex Fernandez's 
23459 \begin_inset Flex Code
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463 e\SpecialChar LyX
23464 er
23465 \end_layout
23466
23467 \end_inset
23468
23469  (
23470 \begin_inset CommandInset href
23471 LatexCommand href
23472 name "http://pinchito.es/elyxer/"
23473 target "http://pinchito.es/elyxer/"
23474 literal "false"
23475
23476 \end_inset
23477
23478 ) solves some of these problems.
23479  In particular, the formulae it produces scale perfectly, since it renders
23480  math using a combination of HTML and CSS rather than converting the formulae
23481  to images.
23482  But even moderately complex formula are rendered less well than with 
23483 \begin_inset Flex Code
23484 status collapsed
23485
23486 \begin_layout Plain Layout
23487 htlatex
23488 \end_layout
23489
23490 \end_inset
23491
23492 ; this reflects the limitations of HTML.
23493 \begin_inset Foot
23494 status collapsed
23495
23496 \begin_layout Plain Layout
23497 That said, 
23498 \begin_inset Flex Code
23499 status collapsed
23500
23501 \begin_layout Plain Layout
23502 e\SpecialChar LyX
23503 er
23504 \end_layout
23505
23506 \end_inset
23507
23508  can also use jsMath and MathJax for equations, but this setting is only
23509  available globally and requires one to have access to a server that runs
23510  the backend.
23511 \end_layout
23512
23513 \end_inset
23514
23515  More importantly (as of version 1.1.1, at least), 
23516 \begin_inset Flex Code
23517 status collapsed
23518
23519 \begin_layout Plain Layout
23520 e\SpecialChar LyX
23521 er
23522 \end_layout
23523
23524 \end_inset
23525
23526  has limited support for math macros and no support for user-defined paragraph
23527  or character styles.
23528  These limitations make 
23529 \begin_inset Flex Code
23530 status collapsed
23531
23532 \begin_layout Plain Layout
23533 e\SpecialChar LyX
23534 er
23535 \end_layout
23536
23537 \end_inset
23538
23539  unsuitable for many of the documents \SpecialChar LyX
23540  users produce.
23541  In principle, of course, these problems could be solved, but the \SpecialChar LyX
23542  developers
23543  have decided to follow a different path and have made \SpecialChar LyX
23544  itself capable of
23545  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
23546 , DocBook, and plaintext.
23547 \end_layout
23548
23549 \begin_layout Standard
23550 As of this writing, XHTML output remains under development and should probably
23551  be regarded as 
23552 \begin_inset Quotes eld
23553 \end_inset
23554
23555 experimental
23556 \begin_inset Quotes erd
23557 \end_inset
23558
23559 .
23560 \begin_inset Foot
23561 status collapsed
23562
23563 \begin_layout Plain Layout
23564 The file 
23565 \begin_inset Flex Code
23566 status collapsed
23567
23568 \begin_layout Plain Layout
23569 development/HTML/HTML.notes
23570 \end_layout
23571
23572 \end_inset
23573
23574 , which can be found in the \SpecialChar LyX
23575  source tree or 
23576 \begin_inset CommandInset href
23577 LatexCommand href
23578 name "accessed online"
23579 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
23580 literal "false"
23581
23582 \end_inset
23583
23584 , usually contains up-to-date information about the state of XHTML output.
23585  See also the list of XHTML bugs on 
23586 \begin_inset CommandInset href
23587 LatexCommand href
23588 name "the bug tracker"
23589 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"
23590 literal "false"
23591
23592 \end_inset
23593
23594 .
23595 \end_layout
23596
23597 \end_inset
23598
23599  Still, the developers have chosen this approach because it has several
23600  potential advantages over the other two.
23601 \end_layout
23602
23603 \begin_layout Standard
23604 These advantages are primarily due to the fact that the XHTML output routines,
23605  since they are part of \SpecialChar LyX
23606 , know everything \SpecialChar LyX
23607  knows about the document being
23608  exported.
23609 \begin_inset Foot
23610 status collapsed
23611
23612 \begin_layout Plain Layout
23613 Another advantage is that, since these routines are internal to \SpecialChar LyX
23614 , they are
23615  immune to changes in \SpecialChar LyX
23616 's file format, or to changes in the semantics of
23617  existing insets.
23618 \end_layout
23619
23620 \end_inset
23621
23622  So they know about the table of contents (as displayed in the outline),
23623  about the counters associated with different paragraph styles, and about
23624  user-defined styles.
23625  The XHTML output routines know what \SpecialChar LyX
23626  knows about internationalization,
23627  too, so they will output 
23628 \begin_inset Quotes eld
23629 \end_inset
23630
23631 Chapter 1
23632 \begin_inset Quotes erd
23633 \end_inset
23634
23635  or 
23636 \begin_inset Quotes eld
23637 \end_inset
23638
23639
23640 \lang ngerman
23641 Kapitel
23642 \lang english
23643  1
23644 \begin_inset Quotes erd
23645 \end_inset
23646
23647 , depending upon the language in effect at the time.
23648  
23649 \end_layout
23650
23651 \begin_layout Standard
23652 Quite generally, the output routines know what \SpecialChar LyX
23653  knows about document layout,
23654  that is, about how the document is to be rendered on screen.
23655  We use this information when we output the document as XHTML.
23656  In particular, \SpecialChar LyX
23657  
23658 \emph on
23659 automatically
23660 \emph default
23661  generates CSS style information corresponding to the layout information
23662  it uses to render the document on screen: if section headings are supposed
23663  to be sans-serif and bold as seen in \SpecialChar LyX
23664 , then (by default) they will be sans-seri
23665 f and bold when viewed in a web browser, too.
23666  And this is true not just for pre-defined styles, like Section, but for
23667  any style, including user-defined styles.
23668  Indeed, the XHTML output routines make no distinction between user-defined
23669  paragraph and 
23670 \change_deleted 244031559 1603876931
23671 character
23672 \change_inserted 244031559 1603876940
23673 text
23674 \change_unchanged
23675  styles and \SpecialChar LyX
23676 's own pre-defined styles: in each case, everything \SpecialChar LyX
23677  knows about
23678  the styles is contained in the layout files.
23679  And much the same is true as regards pre-defined textual insets, such as
23680  footnotes, and various custom insets.
23681  
23682 \end_layout
23683
23684 \begin_layout Standard
23685 The result is that XHTML output can be customized and extended in exactly
23686  the same way \SpecialChar LaTeX
23687  output can be customized and extended: through layout files
23688  and modules.
23689  See chapter five of the 
23690 \emph on
23691 Customization 
23692 \emph default
23693 manual for the details.
23694 \end_layout
23695
23696 \begin_layout Standard
23697 The remainder of this chapter contains more detailed information on XHTML
23698  output, its limitations, and ways to work around those limitations.
23699 \end_layout
23700
23701 \begin_layout Section
23702 Math Output in XHTML
23703 \end_layout
23704
23705 \begin_layout Standard
23706 \SpecialChar LyX
23707  offers four choices for how math is rendered.
23708  These have various advantages and disadvantages:
23709 \end_layout
23710
23711 \begin_layout Itemize
23712 MathML
23713 \begin_inset Newline newline
23714 \end_inset
23715
23716 MathML is a dialect of XML designed specifically for mathematics on the
23717  web, and it typically renders very well in browsers that support it.
23718  The disadvantage is that not all browsers support MathML, and support is
23719  not complete even in the Gecko-based browsers, such as Firefox.
23720 \begin_inset Newline newline
23721 \end_inset
23722
23723 If \SpecialChar LyX
23724  is unable to render a formula as MathML—for example, if the formula
23725  uses the 
23726 \begin_inset Flex Code
23727 status collapsed
23728
23729 \begin_layout Plain Layout
23730 xymatrix
23731 \end_layout
23732
23733 \end_inset
23734
23735  package or ERT—then it will instead output the formula as an image.
23736  
23737 \end_layout
23738
23739 \begin_layout Itemize
23740 HTML
23741 \begin_inset Newline newline
23742 \end_inset
23743
23744 As mentioned above, 
23745 \begin_inset Flex Code
23746 status collapsed
23747
23748 \begin_layout Plain Layout
23749 elyxer
23750 \end_layout
23751
23752 \end_inset
23753
23754  outputs math as HTML, styled by CSS.
23755 \begin_inset Foot
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 \SpecialChar LyX
23760  has borrowed some of the CSS for its HTML output from 
23761 \begin_inset Flex Code
23762 status collapsed
23763
23764 \begin_layout Plain Layout
23765 elyxer
23766 \end_layout
23767
23768 \end_inset
23769
23770 .
23771 \end_layout
23772
23773 \end_inset
23774
23775  For simple formulae, this can work quite well, though with more complicated
23776  formulae it tends to break down.
23777  Still, this method has the advantage that it is very widely supported and
23778  so it may be appropriate for documents that contain only a little, fairly
23779  simple math.
23780 \begin_inset Newline newline
23781 \end_inset
23782
23783 If Lyx is unable to render a formula as HTML—for example, if the formula
23784  uses the 
23785 \begin_inset Flex Code
23786 status collapsed
23787
23788 \begin_layout Plain Layout
23789 xymatrix
23790 \end_layout
23791
23792 \end_inset
23793
23794  package or ERT—then it will instead output the formula as an image.
23795  
23796 \end_layout
23797
23798 \begin_layout Itemize
23799 Images
23800 \begin_inset Newline newline
23801 \end_inset
23802
23803 Like 
23804 \begin_inset Flex Code
23805 status collapsed
23806
23807 \begin_layout Plain Layout
23808 htlatex
23809 \end_layout
23810
23811 \end_inset
23812
23813 , \SpecialChar LyX
23814  will output formulae as images, the very same images, in fact, that are
23815  used for instant preview.
23816 \begin_inset Foot
23817 status collapsed
23818
23819 \begin_layout Plain Layout
23820 Instant preview does 
23821 \emph on
23822 not 
23823 \emph default
23824 have to be on for images to be output, however.
23825 \end_layout
23826
23827 \end_inset
23828
23829  The advantage to this method is that the images are simply generated by
23830  \SpecialChar LaTeX
23831 , so they are very accurate.
23832  The disadvantage, as mentioned earlier, is that these are bitmapped images,
23833  so they do not scale terribly well, and one cannot copy them, etc.
23834 \begin_inset Newline newline
23835 \end_inset
23836
23837 The size of the images can be controlled by setting the 
23838 \begin_inset Quotes eld
23839 \end_inset
23840
23841 Math Images Scaling
23842 \begin_inset Quotes erd
23843 \end_inset
23844
23845  parameter under 
23846 \begin_inset Flex Noun
23847 status collapsed
23848
23849 \begin_layout Plain Layout
23850 Document\SpecialChar menuseparator
23851 Settings\SpecialChar menuseparator
23852 Formats
23853 \end_layout
23854
23855 \end_inset
23856
23857 .
23858 \begin_inset Foot
23859 status collapsed
23860
23861 \begin_layout Plain Layout
23862 For those who want to know, this controls the resolution of the image in
23863  dots per inch and is based upon a default of 75 dpi.
23864 \end_layout
23865
23866 \end_inset
23867
23868
23869 \begin_inset Newline newline
23870 \end_inset
23871
23872 If \SpecialChar LyX
23873  for some reason fails to create an image for a formula (e.g., if a required
23874  \SpecialChar LaTeX
23875  package is not installed), then it will fall back to outputing the raw
23876  \SpecialChar LaTeX
23877 .
23878 \end_layout
23879
23880 \begin_layout Itemize
23881 \SpecialChar LaTeX
23882
23883 \begin_inset Newline newline
23884 \end_inset
23885
23886 Finally, \SpecialChar LyX
23887  will happily output math as \SpecialChar LaTeX
23888 .
23889  As well as being the output of last resort, this method can be used with
23890  such tools as 
23891 \begin_inset CommandInset href
23892 LatexCommand href
23893 name "jsMath"
23894 target "http://www.math.union.edu/~dpvc/jsMath/"
23895 literal "false"
23896
23897 \end_inset
23898
23899 , which uses JavaScript to render \SpecialChar LaTeX
23900  embedded in HTML documents.
23901  \SpecialChar LyX
23902  wraps the \SpecialChar LaTeX
23903  in either a 
23904 \begin_inset Flex Code
23905 status collapsed
23906
23907 \begin_layout Plain Layout
23908 span
23909 \end_layout
23910
23911 \end_inset
23912
23913  (for inline formulas) or 
23914 \begin_inset Flex Code
23915 status collapsed
23916
23917 \begin_layout Plain Layout
23918 div
23919 \end_layout
23920
23921 \end_inset
23922
23923  (for displayed formulas) with 
23924 \begin_inset Flex Code
23925 status collapsed
23926
23927 \begin_layout Plain Layout
23928 class='math'
23929 \end_layout
23930
23931 \end_inset
23932
23933 , as is required for jsMath.
23934 \end_layout
23935
23936 \begin_layout Standard
23937 One of these output methods must be selected under 
23938 \begin_inset Flex Noun
23939 status collapsed
23940
23941 \begin_layout Plain Layout
23942 Document\SpecialChar menuseparator
23943 Settings\SpecialChar menuseparator
23944 Formats
23945 \end_layout
23946
23947 \end_inset
23948
23949 .
23950  By default, \SpecialChar LyX
23951  outputs MathML.
23952  This is a document-wide setting, therefore.
23953 \end_layout
23954
23955 \begin_layout Standard
23956 Eventually, \SpecialChar LyX
23957  will offer the user the option to select an alternate output
23958  method for a particular inset, say, one that isn't being rendered very
23959  well by MathML.
23960 \begin_inset Foot
23961 status collapsed
23962
23963 \begin_layout Plain Layout
23964 That said, since \SpecialChar LyX
23965  falls back to images if the inset contains ERT, then one
23966  can force output as an image by putting some harmless ERT into the math,
23967  for example: 
23968 \begin_inset Formula $a=b\relax$
23969 \end_inset
23970
23971 .
23972 \end_layout
23973
23974 \end_inset
23975
23976
23977 \end_layout
23978
23979 \begin_layout Section
23980 Bibliography and Citations
23981 \end_layout
23982
23983 \begin_layout Standard
23984 XHTML output fully supports bibliographies and citations.
23985  
23986 \end_layout
23987
23988 \begin_layout Standard
23989 Citation labels are generated by the same machinery that generates \SpecialChar LyX
23990 's on-screen
23991  labels, so the labels will look in the output much as they do in \SpecialChar LyX
23992 , though
23993  better.
23994  If you are using numerical citations, then \SpecialChar LyX
23995  will output numerical labels,
23996  such as [1] or [17], rather than simply showing the citation key in square
23997  brackets, as it does on-screen.
23998  If you are using author-year citations, then \SpecialChar LyX
23999  will add lowercase letters
24000  to the years, just as Bib\SpecialChar TeX
24001  does, if it finds more than one citation for
24002  a given author-year combination.
24003  The labels will be printed with the bibliography entries.
24004  Note that there is, at present, no way to customize the appearance of the
24005  labels, for example, to choose between square brackets and parentheses.
24006 \end_layout
24007
24008 \begin_layout Standard
24009 Bibliography output is handled by the same machinery that handles the presentati
24010 on of reference information in the citation dialog, so you will see in the
24011  XHTML output pretty much what you would see if you were to look at a given
24012  entry in the citation dialog.
24013  The formatting can be customized in your layout file or, preferably, in
24014  a module.
24015  See the 
24016 \emph on
24017 Customization
24018 \emph default
24019  manual for the details.
24020 \end_layout
24021
24022 \begin_layout Standard
24023 The main defect at present is that cross-referenced information is printed
24024  with every entry with which it is associated.
24025  So you can see things like this:
24026 \end_layout
24027
24028 \begin_layout Quote
24029 Jason Stanley, 
24030 \begin_inset Quotes eld
24031 \end_inset
24032
24033 Context and Logical Form
24034 \begin_inset Quotes erd
24035 \end_inset
24036
24037 , in 
24038 \emph on
24039 Language in Context: Selected Essays
24040 \emph default
24041  (Oxford: Oxford University Press, 2007), pp.
24042  30–68.
24043 \end_layout
24044
24045 \begin_layout Quote
24046 Jason Stanley, 
24047 \begin_inset Quotes eld
24048 \end_inset
24049
24050 Semantics in Context
24051 \begin_inset Quotes erd
24052 \end_inset
24053
24054 , in 
24055 \emph on
24056 Language in Context: Selected Essays
24057 \emph default
24058  (Oxford: Oxford University Press, 2007), pp.
24059  201–30.
24060 \end_layout
24061
24062 \begin_layout Standard
24063 This should be fixed before long.
24064 \end_layout
24065
24066 \begin_layout Standard
24067 There is no support at present for sectioned bibliographies.
24068  If you have multiple bibliographies, then \SpecialChar LyX
24069  will print the same bibliography
24070  over and over.
24071 \end_layout
24072
24073 \begin_layout Section
24074 Indexes
24075 \end_layout
24076
24077 \begin_layout Standard
24078 \SpecialChar LyX
24079  will happily export indexes as XHTML, but with certain limitations at the
24080  moment.
24081 \end_layout
24082
24083 \begin_layout Standard
24084 Index export will be most reliable when you do not attempt to use the fancy
24085  constructs that are described in the section on indexes in the 
24086 \emph on
24087 User's Guide
24088 \emph default
24089 .
24090 \begin_inset Foot
24091 status collapsed
24092
24093 \begin_layout Plain Layout
24094 The main issue here is that \SpecialChar LyX
24095  itself does not really handle these.
24096  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
24097 .
24098 \end_layout
24099
24100 \end_inset
24101
24102  We'll describe how they are handled using the subsection headings from
24103  that section.
24104 \end_layout
24105
24106 \begin_layout Itemize
24107 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
24108  makes an effort to support these,
24109  but the entries must be separated by 
24110 \begin_inset Quotes eld
24111 \end_inset
24112
24113  ! 
24114 \begin_inset Quotes erd
24115 \end_inset
24116
24117 , that is, there must be spaces around the exclamation point.
24118  This is because it is otherwise too difficult to check for escaped exclamation
24119  points, ones in math, and so forth.
24120 \end_layout
24121
24122 \begin_layout Itemize
24123 Page Ranges: There is no support at all for page ranges, since these make
24124  no sense with XHMTL.
24125  Instead, you will just get two index entries, one at either end.
24126 \end_layout
24127
24128 \begin_layout Itemize
24129 Cross-referencing: There is no support for cross-referencing.
24130  If \SpecialChar LyX
24131  finds an entry containing the 
24132 \begin_inset Quotes eld
24133 \end_inset
24134
24135 |see\SpecialChar ldots
24136
24137 \begin_inset Quotes erd
24138 \end_inset
24139
24140  construct, it is just dropped, and the rest is treated as an ordinary index
24141  entry.
24142 \end_layout
24143
24144 \begin_layout Itemize
24145 Index Entry Order: \SpecialChar LyX
24146  does support attempts to fix the sorting order.
24147  It will take what is before the first `@' it finds and use that for sorting,
24148  taking what follows the first `@' to be the actual entry.
24149  At present, \SpecialChar LyX
24150  does not check for escaped `@', so do not try to index email
24151  addresses.
24152 \end_layout
24153
24154 \begin_layout Itemize
24155 Index Entry Layout: You can format entries by using the text style dialog,
24156  or by using any other method available within \SpecialChar LyX
24157  itself.
24158  There is no support for constructs like: 
24159 \begin_inset Quotes eld
24160 \end_inset
24161
24162 entry|textbf
24163 \begin_inset Quotes erd
24164 \end_inset
24165
24166 .
24167  Indeed, if \SpecialChar LyX
24168  finds a pipe symbol, `|', in an entry, it will delete it and
24169  everything that follows it.
24170 \end_layout
24171
24172 \begin_layout Itemize
24173 Multiple Indexes: There is no support for multiple indexes.
24174  Rather, all index entries will be printed as one large index.
24175  To avoid our printing several versions of the index, we print only the
24176  main index, so make sure you have one.
24177 \end_layout
24178
24179 \begin_layout Section
24180 Nomenclature and Glossary
24181 \end_layout
24182
24183 \begin_layout Standard
24184 There is at present no support for glossaries.
24185  Adding it would be fairly trivial, and welcome.
24186 \end_layout
24187
24188 \begin_layout Chapter
24189
24190 \change_inserted 1075283030 1616534180
24191 DocBook Output
24192 \end_layout
24193
24194 \begin_layout Standard
24195
24196 \change_inserted 1075283030 1616534386
24197 Apart from HTML, \SpecialChar LyX
24198  can generate documents in the DocBook XML vocabulary.
24199  With versions 2.3 and before, only select templates could be used to generate
24200  DocBook documents (only version 4).
24201  Starting with \SpecialChar LyX
24202  2.4, most \SpecialChar LyX
24203  layouts can generate valid DocBook documents (only
24204  version 5).
24205  This feature is built into \SpecialChar LyX
24206  and does not require the use of external tools.
24207 \end_layout
24208
24209 \begin_layout Standard
24210
24211 \change_inserted 1075283030 1616534437
24212 The result is that the DocBook output can be customized and extended in
24213  exactly the same way \SpecialChar LaTeX
24214  output can be customized and extended: through layout
24215  files and modules.
24216  See chapter five of the 
24217 \emph on
24218 Customization 
24219 \emph default
24220 manual for the details.
24221 \end_layout
24222
24223 \begin_layout Standard
24224
24225 \change_inserted 1075283030 1616534475
24226 Most \SpecialChar LyX
24227  features are supported with DocBook, like math output.
24228 \end_layout
24229
24230 \begin_layout Itemize
24231
24232 \change_inserted 1075283030 1616534741
24233 Math output is performed mostly in MathML (the major exception being constructio
24234 ns not supported by \SpecialChar LyX
24235 , i.e.
24236  ERTs).
24237  All formulae are also available in raw \SpecialChar TeX
24238  in the DocBook output for further
24239  processing.
24240 \end_layout
24241
24242 \begin_layout Itemize
24243
24244 \change_inserted 1075283030 1616534852
24245 Bibliographies and citations are implemented, including with an external
24246  BibTeX file.
24247  Bibliography entries are not prerendered when the detailed information
24248  are available, but rather output with the standard DocBook constructs.
24249  The external DocBook processor is expected to handle the rendering of entries.
24250 \end_layout
24251
24252 \begin_layout Itemize
24253
24254 \change_inserted 1075283030 1616534863
24255 Indexes are supported, including multiple indices.
24256  Grouping (with 
24257 \family typewriter
24258 !
24259 \family default
24260 ), page ranges, and cross-references (
24261 \family typewriter
24262 |see
24263 \family default
24264 ) are supported, with the exception of the same symbols escaped.
24265  Entry order (
24266 \family typewriter
24267 @
24268 \family default
24269 ) and layout (
24270 \family typewriter
24271 |mathbf
24272 \family default
24273 ) are not supported.
24274  There is no support for escaping of index entries.
24275 \end_layout
24276
24277 \begin_layout Itemize
24278
24279 \change_inserted 1075283030 1616534884
24280 Glossaries are implemented.
24281 \end_layout
24282
24283 \begin_layout Standard
24284
24285 \change_inserted 1075283030 1616534894
24286 Two major parameters can be set at the document level.
24287 \end_layout
24288
24289 \begin_layout Itemize
24290
24291 \change_inserted 1075283030 1616534948
24292 Format for tables: \SpecialChar LyX
24293  can generate tables either as HTML (default value) or
24294  CALS, depending on the user's requirements.
24295  Most DocBook processors accept both formats.
24296 \end_layout
24297
24298 \begin_layout Itemize
24299
24300 \change_inserted 1075283030 1616535006
24301 MathML prefix: in DocBook, MathML is included within its own name space,
24302  unlike HTML.
24303  The implication is that there must be an indication of the tags belonging
24304  to the MathML standard.
24305  Three choices are offered: 
24306 \end_layout
24307
24308 \begin_deeper
24309 \begin_layout Itemize
24310
24311 \change_inserted 1075283030 1616535044
24312 Inline: the MathML name space is defined for each formula (using the 
24313 \family typewriter
24314 xmlns
24315 \family default
24316  attribute on each formula)
24317 \end_layout
24318
24319 \begin_layout Itemize
24320
24321 \change_inserted 1075283030 1616535090
24322 With the 
24323 \family typewriter
24324 m
24325 \family default
24326  prefix (default): the MathML name space is defined at the document level
24327  (using the 
24328 \family typewriter
24329 xmlns:m
24330 \family default
24331  attribute on the root element).
24332  Each MathML is prefixed with 
24333 \family typewriter
24334 m
24335 \family default
24336 : for instance, 
24337 \family typewriter
24338 m:math
24339 \end_layout
24340
24341 \begin_layout Itemize
24342
24343 \change_inserted 1075283030 1616620405
24344 With the 
24345 \family typewriter
24346 mml
24347 \family default
24348  prefix: similar to the 
24349 \family typewriter
24350 m
24351 \family default
24352  option, but with 
24353 \family typewriter
24354 mml
24355 \end_layout
24356
24357 \begin_layout Standard
24358
24359 \change_inserted 1075283030 1616620470
24360 This option is especially useful if you want \SpecialChar LyX
24361  to match your personal style
24362  or to work with buggy software that only accepts one prefix for MathML.
24363 \change_unchanged
24364
24365 \end_layout
24366
24367 \end_deeper
24368 \begin_layout Chapter
24369 The \SpecialChar LyX
24370  Server
24371 \end_layout
24372
24373 \begin_layout Section
24374 Introduction
24375 \end_layout
24376
24377 \begin_layout Standard
24378 The `\SpecialChar LyX
24379  server' allows other programs to talk to \SpecialChar LyX
24380 , invoke \SpecialChar LyX
24381  commands, and retrieve
24382  information about the \SpecialChar LyX
24383  internal state.
24384  This is only intended for advanced users, but they should find it useful.
24385  It is by writing to the \SpecialChar LyX
24386  server, for example, that bibliography managers,
24387  such as JabRef, are able to 
24388 \begin_inset Quotes eld
24389 \end_inset
24390
24391 push
24392 \begin_inset Quotes erd
24393 \end_inset
24394
24395  citations to \SpecialChar LyX
24396 .
24397 \end_layout
24398
24399 \begin_layout Section
24400 Starting the \SpecialChar LyX
24401  Server
24402 \begin_inset CommandInset label
24403 LatexCommand label
24404 name "sec:Starting-the-Server"
24405
24406 \end_inset
24407
24408
24409 \end_layout
24410
24411 \begin_layout Standard
24412 The \SpecialChar LyX
24413  server works through the use of a pair of named pipes.
24414  These are usually located in 
24415 \begin_inset Flex Code
24416 status collapsed
24417
24418 \begin_layout Plain Layout
24419 UserDir
24420 \end_layout
24421
24422 \end_inset
24423
24424 , (except on Windows, where 
24425 \emph on
24426 local
24427 \emph default
24428  named pipes are special objects located in 
24429 \begin_inset Flex Code
24430 status collapsed
24431
24432 \begin_layout Plain Layout
24433
24434 \backslash
24435
24436 \backslash
24437 .
24438 \backslash
24439 pipe
24440 \end_layout
24441
24442 \end_inset
24443
24444 ) and have the names 
24445 \begin_inset Quotes eld
24446 \end_inset
24447
24448
24449 \begin_inset Flex Code
24450 status collapsed
24451
24452 \begin_layout Plain Layout
24453 lyxpipe.in
24454 \end_layout
24455
24456 \end_inset
24457
24458
24459 \begin_inset Quotes erd
24460 \end_inset
24461
24462  and 
24463 \begin_inset Quotes eld
24464 \end_inset
24465
24466
24467 \begin_inset Flex Code
24468 status collapsed
24469
24470 \begin_layout Plain Layout
24471 lyxpipe.out
24472 \end_layout
24473
24474 \end_inset
24475
24476
24477 \begin_inset Quotes erd
24478 \end_inset
24479
24480 .
24481  External programs write into 
24482 \begin_inset Flex Code
24483 status collapsed
24484
24485 \begin_layout Plain Layout
24486 lyxpipe.in
24487 \end_layout
24488
24489 \end_inset
24490
24491  and read back data from 
24492 \begin_inset Flex Code
24493 status collapsed
24494
24495 \begin_layout Plain Layout
24496 lyxpipe.out
24497 \end_layout
24498
24499 \end_inset
24500
24501 .
24502  The stem of the pipe names can be defined in the 
24503 \begin_inset Flex Noun
24504 status collapsed
24505
24506 \begin_layout Plain Layout
24507 Tools\SpecialChar menuseparator
24508 Preferences
24509 \end_layout
24510
24511 \end_inset
24512
24513  dialog, for example 
24514 \begin_inset Flex Code
24515 status collapsed
24516
24517 \begin_layout Plain Layout
24518 "/home/myhome/lyxpipe"
24519 \end_layout
24520
24521 \end_inset
24522
24523 , or 
24524 \begin_inset Flex Code
24525 status collapsed
24526
24527 \begin_layout Plain Layout
24528 "
24529 \backslash
24530
24531 \backslash
24532 .
24533 \backslash
24534 pipe
24535 \backslash
24536 lyxpipe"
24537 \end_layout
24538
24539 \end_inset
24540
24541  on Windows (where any working path instead of lyxpipe can be used, for
24542  example 
24543 \begin_inset Flex Code
24544 status collapsed
24545
24546 \begin_layout Plain Layout
24547 "
24548 \backslash
24549
24550 \backslash
24551 .
24552 \backslash
24553 pipe
24554 \backslash
24555 my
24556 \backslash
24557 lyx
24558 \backslash
24559 pipe"
24560 \end_layout
24561
24562 \end_inset
24563
24564  would also work).
24565  You 
24566 \emph on
24567 must
24568 \emph default
24569  configure this manually in order for the server to start.
24570 \end_layout
24571
24572 \begin_layout Standard
24573 \SpecialChar LyX
24574  will add the '
24575 \begin_inset Flex Code
24576 status collapsed
24577
24578 \begin_layout Plain Layout
24579 .in
24580 \end_layout
24581
24582 \end_inset
24583
24584 ' and '
24585 \begin_inset Flex Code
24586 status collapsed
24587
24588 \begin_layout Plain Layout
24589 .out
24590 \end_layout
24591
24592 \end_inset
24593
24594 ' to create the pipes.
24595  If one of the pipes already exists, \SpecialChar LyX
24596  will assume that another \SpecialChar LyX
24597  process
24598  is already running and will not start the server.
24599  On POSIX (Unix like) systems, if for some other reason, an unused 
24600 \begin_inset Quotes eld
24601 \end_inset
24602
24603 stale
24604 \begin_inset Quotes erd
24605 \end_inset
24606
24607  pipe is left in existence when \SpecialChar LyX
24608  closes, then \SpecialChar LyX
24609  will try to delete it.
24610  If this fails for some reason, you will need to delete the pipes manually
24611  and then restart \SpecialChar LyX
24612 .
24613  On Windows, pipes are deleted by the OS on program termination or crash,
24614  so 
24615 \begin_inset Quotes eld
24616 \end_inset
24617
24618 stale
24619 \begin_inset Quotes erd
24620 \end_inset
24621
24622  pipes should not be possible.
24623 \end_layout
24624
24625 \begin_layout Standard
24626 To have several \SpecialChar LyX
24627  processes with servers at the same time, you have to use
24628  different configurations, perhaps by using separate user directories, each
24629  with its own 
24630 \begin_inset Flex Code
24631 status collapsed
24632
24633 \begin_layout Plain Layout
24634 preferences
24635 \end_layout
24636
24637 \end_inset
24638
24639  file, for each process.
24640 \end_layout
24641
24642 \begin_layout Standard
24643 If you are developing a client program, you might find it useful to enable
24644  debugging information from the \SpecialChar LyX
24645  server.
24646  Do this by starting \SpecialChar LyX
24647  as 
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652 lyx -dbg lyxserver
24653 \end_layout
24654
24655 \end_inset
24656
24657 .
24658 \end_layout
24659
24660 \begin_layout Standard
24661 You can find a complete example client written in C++ in the source distribution
24662  as 
24663 \begin_inset Flex Code
24664 status collapsed
24665
24666 \begin_layout Plain Layout
24667 development/lyxserver/server_monitor.cpp
24668 \end_layout
24669
24670 \end_inset
24671
24672 .
24673 \end_layout
24674
24675 \begin_layout Standard
24676 Another useful tool is the command-line based client found in 
24677 \begin_inset Flex Code
24678 status collapsed
24679
24680 \begin_layout Plain Layout
24681 src/client/lyxclient
24682 \end_layout
24683
24684 \end_inset
24685
24686 .
24687 \end_layout
24688
24689 \begin_layout Section
24690 Normal communication
24691 \end_layout
24692
24693 \begin_layout Standard
24694 To issue a \SpecialChar LyX
24695  call, the client writes a line of ASCII text into the input
24696  pipe.
24697  This line has the following format:
24698 \end_layout
24699
24700 \begin_layout Quote
24701 LYXCMD:
24702 \emph on
24703 clientname
24704 \emph default
24705 :
24706 \emph on
24707 function
24708 \emph default
24709 :
24710 \emph on
24711 argument
24712 \end_layout
24713
24714 \begin_layout Description
24715 clientname is a name that the client can choose arbitrarily.
24716  Its only use is that \SpecialChar LyX
24717  will echo it if it sends an answer—so a client can
24718  dispatch results from different requesters.
24719 \end_layout
24720
24721 \begin_layout Description
24722 function is the function you want \SpecialChar LyX
24723  to perform.
24724  It is the same as the commands you'd use in the minibuffer.
24725 \end_layout
24726
24727 \begin_layout Description
24728 argument is an optional argument which is meaningful only to some functions
24729  (for instance, the 
24730 \begin_inset Quotes eld
24731 \end_inset
24732
24733 self-insert
24734 \begin_inset Quotes erd
24735 \end_inset
24736
24737  LFUN will insert the argument as text at the cursor position).
24738 \end_layout
24739
24740 \begin_layout Standard
24741 The answer from \SpecialChar LyX
24742  will arrive in the output pipe and be of the form
24743 \end_layout
24744
24745 \begin_layout Quote
24746 INFO:
24747 \emph on
24748 clientname
24749 \emph default
24750 :
24751 \emph on
24752 function
24753 \emph default
24754 :
24755 \emph on
24756 data
24757 \end_layout
24758
24759 \begin_layout Standard
24760 where 
24761 \emph on
24762 clientname
24763 \emph default
24764  and 
24765 \emph on
24766 function
24767 \emph default
24768  are just echoed from the command request, while 
24769 \emph on
24770 data
24771 \emph default
24772  is more or less useful information filled according to how the command
24773  execution worked out.
24774  Some commands, such as 
24775 \begin_inset Quotes eld
24776 \end_inset
24777
24778 font-state
24779 \begin_inset Quotes erd
24780 \end_inset
24781
24782 , will return information about the internal state of \SpecialChar LyX
24783 , while other will
24784  return an empty data-response.
24785  This means that the command execution went fine.
24786 \end_layout
24787
24788 \begin_layout Standard
24789 In case of errors, the response from \SpecialChar LyX
24790  will have this form
24791 \end_layout
24792
24793 \begin_layout Quote
24794 ERROR:
24795 \emph on
24796 clientname
24797 \emph default
24798 :
24799 \emph on
24800 function
24801 \emph default
24802 :
24803 \emph on
24804 error message
24805 \end_layout
24806
24807 \begin_layout Standard
24808 where the 
24809 \emph on
24810 error message
24811 \emph default
24812  should contain an explanation of why the command failed.
24813 \end_layout
24814
24815 \begin_layout Standard
24816 Examples:
24817 \end_layout
24818
24819 \begin_layout LyX-Code
24820 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24821 \begin_inset Newline newline
24822 \end_inset
24823
24824 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24825 \begin_inset Newline newline
24826 \end_inset
24827
24828 read a <~/.lyxpipe.out
24829 \begin_inset Newline newline
24830 \end_inset
24831
24832 echo $a
24833 \end_layout
24834
24835 \begin_layout Subsection
24836 AppleScript (Mac OS X)
24837 \end_layout
24838
24839 \begin_layout Standard
24840 Since \SpecialChar LyX
24841  2.1, \SpecialChar LyX
24842  supports basic interactions with AppleScript for normal communicatio
24843 n through the command run.
24844  This command takes a direct argument (the 
24845 \series bold
24846 function
24847 \series default
24848  to perform) and an optional argument.
24849  It either returns the output of the function or triggers an error with
24850  the error message and code.
24851 \end_layout
24852
24853 \begin_layout Standard
24854 Example:
24855 \end_layout
24856
24857 \begin_layout LyX-Code
24858 tell application "\SpecialChar LyX
24859 "
24860 \end_layout
24861
24862 \begin_layout LyX-Code
24863   try
24864 \end_layout
24865
24866 \begin_layout LyX-Code
24867     -- Stores the current file name into f
24868 \end_layout
24869
24870 \begin_layout LyX-Code
24871     set f to (run "server-get-filename" with argument "")
24872 \end_layout
24873
24874 \begin_layout LyX-Code
24875     on error the error_message number the error_number
24876 \end_layout
24877
24878 \begin_layout LyX-Code
24879       display dialog "Error: " & the error_number & ".
24880  " ¬
24881 \end_layout
24882
24883 \begin_layout LyX-Code
24884               & the error_message buttons {"OK"} default button 1
24885 \end_layout
24886
24887 \begin_layout LyX-Code
24888   end try
24889 \end_layout
24890
24891 \begin_layout LyX-Code
24892 end tell
24893 \end_layout
24894
24895 \begin_layout Section
24896 Notification
24897 \end_layout
24898
24899 \begin_layout Standard
24900 \SpecialChar LyX
24901  can notify clients of events going on asynchronously.
24902  Currently it will only do this if the user binds a key sequence with the
24903  function 
24904 \begin_inset Quotes eld
24905 \end_inset
24906
24907 notify
24908 \begin_inset Quotes erd
24909 \end_inset
24910
24911 .
24912  The format of the string \SpecialChar LyX
24913  sends is as follows:
24914 \end_layout
24915
24916 \begin_layout Quote
24917 \begin_inset Flex Code
24918 status collapsed
24919
24920 \begin_layout Plain Layout
24921 NOTIFY:
24922 \end_layout
24923
24924 \end_inset
24925
24926
24927 \emph on
24928 key-sequence
24929 \end_layout
24930
24931 \begin_layout Standard
24932 where 
24933 \emph on
24934 key-sequence
24935 \emph default
24936  is the printed representation of the key sequence that was actually typed
24937  by the user.
24938 \end_layout
24939
24940 \begin_layout Standard
24941 This mechanism can be used to extend \SpecialChar LyX
24942 's command set and implement macros.
24943  Bind some key sequence to 
24944 \begin_inset Quotes eld
24945 \end_inset
24946
24947 notify
24948 \begin_inset Quotes erd
24949 \end_inset
24950
24951 .
24952  Then start a client that listens on the output pipe, dispatches the command
24953  according to the sequence, and starts a function that may use \SpecialChar LyX
24954  calls and
24955  \SpecialChar LyX
24956  requests to issue a command or a series of commands to \SpecialChar LyX
24957 .
24958 \end_layout
24959
24960 \begin_layout Section
24961 The simple \SpecialChar LyX
24962  Server Protocol
24963 \end_layout
24964
24965 \begin_layout Standard
24966 \SpecialChar LyX
24967  implements a simple protocol that can be used for session management.
24968  All messages are of the form
24969 \end_layout
24970
24971 \begin_layout Quote
24972 LYXSRV:
24973 \emph on
24974 clientname
24975 \emph default
24976 :
24977 \emph on
24978 protocol message
24979 \end_layout
24980
24981 \begin_layout Standard
24982 where 
24983 \emph on
24984 protocol message
24985 \emph default
24986  can be 
24987 \begin_inset Quotes eld
24988 \end_inset
24989
24990 hello
24991 \begin_inset Quotes erd
24992 \end_inset
24993
24994  or 
24995 \begin_inset Quotes eld
24996 \end_inset
24997
24998 bye
24999 \begin_inset Quotes erd
25000 \end_inset
25001
25002 .
25003  If 
25004 \begin_inset Quotes eld
25005 \end_inset
25006
25007 hello
25008 \begin_inset Quotes erd
25009 \end_inset
25010
25011  is received from a client, \SpecialChar LyX
25012  will report back to inform the client that
25013  it's listening to it's messages, while 
25014 \begin_inset Quotes eld
25015 \end_inset
25016
25017 bye
25018 \begin_inset Quotes erd
25019 \end_inset
25020
25021  sent from \SpecialChar LyX
25022  will inform clients that \SpecialChar LyX
25023  is closing.
25024 \end_layout
25025
25026 \begin_layout Section
25027 Reverse DVI/PDF search
25028 \end_layout
25029
25030 \begin_layout Standard
25031 Some DVI/PDF viewers
25032 \begin_inset Foot
25033 status collapsed
25034
25035 \begin_layout Plain Layout
25036 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
25037  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
25038 \end_layout
25039
25040 \end_inset
25041
25042  provide 
25043 \emph on
25044 reverse search
25045 \emph default
25046  facility (also called 
25047 \emph on
25048 inverse search
25049 \emph default
25050 ).
25051  This means that you can tell \SpecialChar LyX
25052  to put the cursor to a specific line in the
25053  document by clicking at the respective position in the DVI/PDF output.
25054  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
25055 .
25056  This is done via the \SpecialChar LyX
25057  server either by using the named pipe (
25058 \emph on
25059 lyxpipe
25060 \emph default
25061 ), or the UNIX domain socket (
25062 \emph on
25063 lyxsocket
25064 \emph default
25065 ) that \SpecialChar LyX
25066  creates in its temporary directory (this is the way the 
25067 \begin_inset Flex Code
25068 status collapsed
25069
25070 \begin_layout Plain Layout
25071 lyxclient
25072 \end_layout
25073
25074 \end_inset
25075
25076  program communicates with \SpecialChar LyX
25077 ).
25078  In some cases, you need a helper script that mediates between the viewer
25079  and \SpecialChar LyX
25080 , in others, the viewer can communicate with \SpecialChar LyX
25081  directly.
25082  This depends on the selected viewer and on your operating system.
25083  The same applies to the way viewers need to be configured and the way the
25084  reverse search is actually performed.
25085  In what follows, we will thus describe how to setup reverse search for
25086  specific viewers.
25087  Before we turn to this, though, we will explain what needs to be done generally
25088  to enable reverse search in the DVI/PDF output.
25089 \end_layout
25090
25091 \begin_layout Subsection
25092 Automatic setup
25093 \begin_inset CommandInset label
25094 LatexCommand label
25095 name "subsec:rev-search"
25096
25097 \end_inset
25098
25099
25100 \end_layout
25101
25102 \begin_layout Standard
25103 In most cases \SpecialChar LyX
25104  will do the work for you by pressing the following button
25105  in the toolbar: 
25106 \begin_inset Info
25107 type  "icon"
25108 arg   "buffer-toggle-output-sync"
25109 \end_inset
25110
25111 .
25112  Alternatively, you can also enable the feature by checking 
25113 \family sans
25114 Synchronize with Output
25115 \family default
25116  in 
25117 \begin_inset Flex Noun
25118 status collapsed
25119
25120 \begin_layout Plain Layout
25121 Document\SpecialChar menuseparator
25122 Settings\SpecialChar menuseparator
25123 Formats
25124 \end_layout
25125
25126 \end_inset
25127
25128 .
25129  In such a case \SpecialChar LyX
25130  will automatically insert the necessary Sync\SpecialChar TeX
25131  macro (for
25132  PDF) or load the srcltx package (for DVI) respectively.
25133  This option can be easily reached also on 
25134 \begin_inset Flex Code
25135 status collapsed
25136
25137 \begin_layout Plain Layout
25138 View/Update
25139 \end_layout
25140
25141 \end_inset
25142
25143  Toolbar.
25144 \end_layout
25145
25146 \begin_layout Standard
25147 If you need a different setting, you can select or input a custom macro
25148  from the drop down box just below 
25149 \begin_inset Flex Noun
25150 status collapsed
25151
25152 \begin_layout Plain Layout
25153 Document\SpecialChar menuseparator
25154 Settings\SpecialChar menuseparator
25155 Output\SpecialChar menuseparator
25156 Synchronize with Output
25157 \end_layout
25158
25159 \end_inset
25160
25161 .
25162 \end_layout
25163
25164 \begin_layout Standard
25165 Note that the method 
25166 \begin_inset Flex Code
25167 status collapsed
25168
25169 \begin_layout Plain Layout
25170
25171 \backslash
25172 synctex=1
25173 \end_layout
25174
25175 \end_inset
25176
25177  enables gzip compression.
25178  If your viewer does not support it, you should instead use 
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183
25184 \backslash
25185 synctex=-1
25186 \end_layout
25187
25188 \end_inset
25189
25190 .
25191 \end_layout
25192
25193 \begin_layout Standard
25194 Please also note that including the 
25195 \begin_inset Flex Code
25196 status collapsed
25197
25198 \begin_layout Plain Layout
25199 srcltx
25200 \end_layout
25201
25202 \end_inset
25203
25204  package or 
25205 \begin_inset Flex Code
25206 status collapsed
25207
25208 \begin_layout Plain Layout
25209 src-specials
25210 \end_layout
25211
25212 \end_inset
25213
25214  sometimes has an undesired impact on the typesetting.
25215  Thus, you should switch output synchronization off for the final typesetting
25216  if you use the 
25217 \begin_inset Flex Code
25218 status collapsed
25219
25220 \begin_layout Plain Layout
25221 srcltx
25222 \end_layout
25223
25224 \end_inset
25225
25226  package or 
25227 \begin_inset Flex Code
25228 status collapsed
25229
25230 \begin_layout Plain Layout
25231 src-specials
25232 \end_layout
25233
25234 \end_inset
25235
25236 .
25237  
25238 \end_layout
25239
25240 \begin_layout Standard
25241 In case you need some more special settings that are not covered by the
25242  automatic settings, read the next section about how to set up output synchroniz
25243 ation manually.
25244  If the automatic setup suits your needs, you can readily jump to section
25245 \begin_inset space ~
25246 \end_inset
25247
25248
25249 \begin_inset CommandInset ref
25250 LatexCommand ref
25251 reference "subsec:configuring-viewers"
25252
25253 \end_inset
25254
25255 , where the necessary configuration steps in your viewer – needed both with
25256  the automatic and the manual setup – are described.
25257 \end_layout
25258
25259 \begin_layout Subsection
25260 Manual setup
25261 \end_layout
25262
25263 \begin_layout Standard
25264 \SpecialChar LaTeX
25265  provides several different methods for reverse search.
25266  Some are built-in in the 
25267 \begin_inset Flex Code
25268 status collapsed
25269
25270 \begin_layout Plain Layout
25271 latex/pdflatex
25272 \end_layout
25273
25274 \end_inset
25275
25276  program, some are provided by external packages.
25277  Your choice depends on whether your \SpecialChar LaTeX
25278  distribution already provides a given
25279  method (the built-in methods are rather new) and whether your viewer can
25280  cope with it.
25281  The available methods are described in the following.
25282 \end_layout
25283
25284 \begin_layout Subsubsection*
25285 Built-in DVI-search via src-specials (DVI only) 
25286 \end_layout
25287
25288 \begin_layout Standard
25289 This method provides the DVI file with the necessary information for reverse
25290  search.
25291  It is available in \SpecialChar LaTeX
25292  since quite some time (any somewhat recent \SpecialChar LaTeX
25293  distribution
25294  should include it), and it works reliably.
25295  To enable it, change the 
25296 \begin_inset Flex Noun
25297 status collapsed
25298
25299 \begin_layout Plain Layout
25300 La
25301 \family sans
25302 TeX
25303 \family default
25304  (plain)->DVI
25305 \end_layout
25306
25307 \end_inset
25308
25309  or 
25310 \begin_inset Flex Noun
25311 status collapsed
25312
25313 \begin_layout Plain Layout
25314 La
25315 \family sans
25316 TeX
25317 \family default
25318  (plain)->DraftDVI
25319 \end_layout
25320
25321 \end_inset
25322
25323  converter in 
25324 \begin_inset Flex Noun
25325 status collapsed
25326
25327 \begin_layout Plain Layout
25328 Preferences\SpecialChar menuseparator
25329 File Handling\SpecialChar menuseparator
25330 Converters
25331 \end_layout
25332
25333 \end_inset
25334
25335  to 
25336 \begin_inset Flex Code
25337 status collapsed
25338
25339 \begin_layout Plain Layout
25340 latex -src-specials $$i
25341 \end_layout
25342
25343 \end_inset
25344
25345 .
25346  If this doesn't work, check if your \SpecialChar TeX
25347  engine needs different options (the
25348  syntax might differ in some distributions).
25349 \end_layout
25350
25351 \begin_layout Subsubsection*
25352 External Packages (PDFSync and scrltx) 
25353 \end_layout
25354
25355 \begin_layout Standard
25356 The packages 
25357 \emph on
25358 pdfsync
25359 \emph default
25360  and 
25361 \emph on
25362 scrltx
25363 \emph default
25364  provide reverse search facility for PDF output (via pdflatex) and DVI output,
25365  respectively.
25366  In order to enable it, load the packages in the \SpecialChar LyX
25367  preamble: 
25368 \end_layout
25369
25370 \begin_layout Itemize
25371 \begin_inset Flex Code
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375
25376 \backslash
25377 usepackage{pdfsync}
25378 \end_layout
25379
25380 \end_inset
25381
25382  for reverse PDF search,
25383 \end_layout
25384
25385 \begin_layout Itemize
25386 \begin_inset Flex Code
25387 status collapsed
25388
25389 \begin_layout Plain Layout
25390
25391 \backslash
25392 usepackage[active]{srcltx}
25393 \end_layout
25394
25395 \end_inset
25396
25397  for reverse DVI search.
25398 \end_layout
25399
25400 \begin_layout Standard
25401 If you want to be able to perform both DVI and PDF reverse searches, you
25402  can also insert in the preamble the following lines
25403 \end_layout
25404
25405 \begin_layout LyX-Code
25406
25407 \backslash
25408 usepackage{ifpdf}
25409 \begin_inset Newline newline
25410 \end_inset
25411
25412
25413 \backslash
25414 ifpdf
25415 \begin_inset Newline newline
25416 \end_inset
25417
25418   
25419 \backslash
25420 usepackage{pdfsync}
25421 \begin_inset Newline newline
25422 \end_inset
25423
25424
25425 \backslash
25426 else
25427 \begin_inset Newline newline
25428 \end_inset
25429
25430   
25431 \backslash
25432 usepackage[active]{srcltx}
25433 \begin_inset Newline newline
25434 \end_inset
25435
25436
25437 \backslash
25438 fi
25439 \end_layout
25440
25441 \begin_layout Standard
25442 This way, you can preview the file as either DVI or PDF (pdflatex) and the
25443  right package will be used.
25444 \end_layout
25445
25446 \begin_layout Standard
25447 Note that PDFSync might affect the output layout of your document.
25448  It is therefore advised to disable PDFsync for final documents.
25449 \end_layout
25450
25451 \begin_layout Subsubsection*
25452 Built-in reverse search via Sync\SpecialChar TeX
25453  (DVI and PDF) 
25454 \end_layout
25455
25456 \begin_layout Standard
25457 Recent versions of 
25458 \begin_inset Flex Code
25459 status collapsed
25460
25461 \begin_layout Plain Layout
25462 (pdf)latex
25463 \end_layout
25464
25465 \end_inset
25466
25467  have built-in support for both PDF and DVI reverse search.
25468  This so-called 
25469 \emph on
25470 Sync\SpecialChar TeX
25471
25472 \emph default
25473  facility is basically the result of the integration of the PDFSync package
25474  to the pdftex program and its merge with the 
25475 \emph on
25476 scr-specials
25477 \emph default
25478  approach.
25479  You need at least \SpecialChar TeX
25480 Live 2008 or a recent Mik\SpecialChar TeX
25481  distribution in order to use
25482  it.
25483 \begin_inset Foot
25484 status collapsed
25485
25486 \begin_layout Plain Layout
25487 For some reason, Mik\SpecialChar TeX
25488  does not understand/obey the command \SpecialChar LyX
25489  inserts into
25490  the preamble when you check the "Enable Forward/Reverse Search" button
25491  in the toolbar and does not generate the necessary info.
25492 \end_layout
25493
25494 \begin_layout Plain Layout
25495 The generation of the required info can be forced by changing the converter
25496  "\SpecialChar LaTeX
25497  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
25498  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
25499  the -synctex=1 switch).
25500 \end_layout
25501
25502 \end_inset
25503
25504  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
25505  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
25506  already provide Sync\SpecialChar TeX
25507  support.
25508 \end_layout
25509
25510 \begin_layout Standard
25511 To enable Sync\SpecialChar TeX
25512  for DVI output, change the 
25513 \begin_inset Flex Noun
25514 status collapsed
25515
25516 \begin_layout Plain Layout
25517 La
25518 \family sans
25519 TeX
25520 \family default
25521  (plain) -> DVI
25522 \end_layout
25523
25524 \end_inset
25525
25526  or 
25527 \begin_inset Flex Noun
25528 status collapsed
25529
25530 \begin_layout Plain Layout
25531 La
25532 \family sans
25533 TeX
25534 \family default
25535  (plain) -> DraftDVI
25536 \end_layout
25537
25538 \end_inset
25539
25540  converter in 
25541 \begin_inset Flex Noun
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545 Preferences\SpecialChar menuseparator
25546 File Handling\SpecialChar menuseparator
25547 Converters
25548 \end_layout
25549
25550 \end_inset
25551
25552  to 
25553 \begin_inset Flex Code
25554 status collapsed
25555
25556 \begin_layout Plain Layout
25557 latex -synctex=1 $$i
25558 \end_layout
25559
25560 \end_inset
25561
25562 , and for PDF output, change the 
25563 \begin_inset Flex Noun
25564 status collapsed
25565
25566 \begin_layout Plain Layout
25567 La
25568 \family sans
25569 TeX
25570 \family default
25571  (pdflatex) -> PDF (pdflatex)
25572 \end_layout
25573
25574 \end_inset
25575
25576  converter to 
25577 \begin_inset Flex Code
25578 status collapsed
25579
25580 \begin_layout Plain Layout
25581 pdflatex -synctex=1 $$i
25582 \end_layout
25583
25584 \end_inset
25585
25586 .
25587  Should your viewer not be considered in the following description, or in
25588  case of missing success, please check the documentation of your viewer
25589  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
25590 .
25591 \begin_inset Foot
25592 status collapsed
25593
25594 \begin_layout Plain Layout
25595 Note that the option 
25596 \begin_inset Flex Code
25597 status collapsed
25598
25599 \begin_layout Plain Layout
25600 -synctex=1
25601 \end_layout
25602
25603 \end_inset
25604
25605  option enables gzip compression.
25606  If your viewer does not support it, you should instead use 
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 -synctex=-1
25612 \end_layout
25613
25614 \end_inset
25615
25616 .
25617 \end_layout
25618
25619 \end_inset
25620
25621
25622 \end_layout
25623
25624 \begin_layout Subsection
25625 Configuring and using specific viewers
25626 \begin_inset CommandInset label
25627 LatexCommand label
25628 name "subsec:configuring-viewers"
25629
25630 \end_inset
25631
25632
25633 \end_layout
25634
25635 \begin_layout Subsubsection*
25636 Xdvi (all platforms)
25637 \end_layout
25638
25639 \begin_layout Standard
25640 If you use 
25641 \begin_inset Flex Code
25642 status collapsed
25643
25644 \begin_layout Plain Layout
25645 xdvi
25646 \end_layout
25647
25648 \end_inset
25649
25650 , you don't need to do anything else for performing a reverse DVI search,
25651  as \SpecialChar LyX
25652  already provides the necessary hooks for automatically using the 
25653 \begin_inset Flex Code
25654 status collapsed
25655
25656 \begin_layout Plain Layout
25657 lyxclient
25658 \end_layout
25659
25660 \end_inset
25661
25662  program.
25663  Just setup your document as described above (reverse search is triggered
25664  by Ctrl-click or Alt-click on Mac OSX, respectively).
25665 \end_layout
25666
25667 \begin_layout Standard
25668 However, if for whatever reason you want to use the named pipe instead of
25669  the socket for communicating with \SpecialChar LyX
25670 , simply change the DVI viewer in 
25671 \begin_inset Flex Noun
25672 status collapsed
25673
25674 \begin_layout Plain Layout
25675 Preferences\SpecialChar menuseparator
25676 File Handling\SpecialChar menuseparator
25677 File formats
25678 \end_layout
25679
25680 \end_inset
25681
25682  to
25683 \begin_inset Foot
25684 status collapsed
25685
25686 \begin_layout Plain Layout
25687 On Mac OSX you have to use 
25688 \begin_inset Flex Code
25689 status collapsed
25690
25691 \begin_layout Plain Layout
25692 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
25693 \end_layout
25694
25695 \end_inset
25696
25697
25698 \end_layout
25699
25700 \end_inset
25701
25702  
25703 \begin_inset Flex Code
25704 status collapsed
25705
25706 \begin_layout Plain Layout
25707 xdvi -editor "lyxeditor.sh %f %l"
25708 \end_layout
25709
25710 \end_inset
25711
25712 , where 
25713 \begin_inset Flex Code
25714 status collapsed
25715
25716 \begin_layout Plain Layout
25717 lyxeditor.sh
25718 \end_layout
25719
25720 \end_inset
25721
25722  is a suitable script.
25723  For example, a minimal shell script is the following one:
25724 \end_layout
25725
25726 \begin_layout LyX-Code
25727 #!/bin/sh
25728 \begin_inset Newline newline
25729 \end_inset
25730
25731 LYXPIPE="/path/to/lyxpipe"
25732 \begin_inset Newline newline
25733 \end_inset
25734
25735 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25736 \begin_inset Newline newline
25737 \end_inset
25738
25739 echo "$COMMAND" > "${LYXPIPE}".in || exit
25740 \begin_inset Newline newline
25741 \end_inset
25742
25743 read TMP < "${LYXPIPE}".out || exit
25744 \end_layout
25745
25746 \begin_layout Standard
25747 where 
25748 \begin_inset Flex Code
25749 status collapsed
25750
25751 \begin_layout Plain Layout
25752 /path/to/lyxpipe
25753 \end_layout
25754
25755 \end_inset
25756
25757  is the LyXServer pipe path specified in 
25758 \begin_inset Flex Noun
25759 status collapsed
25760
25761 \begin_layout Plain Layout
25762 Preferences\SpecialChar menuseparator
25763 Paths
25764 \end_layout
25765
25766 \end_inset
25767
25768 .
25769 \begin_inset Foot
25770 status collapsed
25771
25772 \begin_layout Plain Layout
25773 In the 
25774 \begin_inset Flex Code
25775 status collapsed
25776
25777 \begin_layout Plain Layout
25778 development/tools
25779 \end_layout
25780
25781 \end_inset
25782
25783  folder of a source distribution you can find a 
25784 \begin_inset Flex Code
25785 status collapsed
25786
25787 \begin_layout Plain Layout
25788 lyxeditor
25789 \end_layout
25790
25791 \end_inset
25792
25793  script which is able to locate the 
25794 \emph on
25795 lyxpipe
25796 \emph default
25797  based on your preferences.
25798 \end_layout
25799
25800 \end_inset
25801
25802
25803 \end_layout
25804
25805 \begin_layout Subsubsection*
25806 MacDviX (Mac OSX)
25807 \end_layout
25808
25809 \begin_layout Standard
25810 At the end of 
25811 \begin_inset Flex Code
25812 status collapsed
25813
25814 \begin_layout Plain Layout
25815 /Applications/MacDviX_Folder/calleditor.script
25816 \end_layout
25817
25818 \end_inset
25819
25820 , add the following lines:
25821 \end_layout
25822
25823 \begin_layout LyX-Code
25824 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
25825 \begin_inset Newline newline
25826 \end_inset
25827
25828 exit 1
25829 \end_layout
25830
25831 \begin_layout Standard
25832 Modify the lines accordingly if you install \SpecialChar LyX
25833  somewhere else than in the
25834  Applications folder.
25835 \end_layout
25836
25837 \begin_layout Standard
25838 Reverse search is triggered by Alt-click (OPTION-click).
25839 \end_layout
25840
25841 \begin_layout Subsubsection*
25842 Skim (Mac OSX)
25843 \end_layout
25844
25845 \begin_layout Standard
25846 Enter 
25847 \begin_inset Flex Code
25848 status collapsed
25849
25850 \begin_layout Plain Layout
25851 open -a Skim.app $$i
25852 \end_layout
25853
25854 \end_inset
25855
25856  to the viewer setting in 
25857 \begin_inset Flex Noun
25858 status collapsed
25859
25860 \begin_layout Plain Layout
25861 Preferences\SpecialChar menuseparator
25862 File Handling\SpecialChar menuseparator
25863 File formats\SpecialChar menuseparator
25864 PDF (pdflatex)
25865 \end_layout
25866
25867 \end_inset
25868
25869 , and then in 
25870 \begin_inset Flex Noun
25871 status collapsed
25872
25873 \begin_layout Plain Layout
25874 Skim\SpecialChar menuseparator
25875 Preferences\SpecialChar menuseparator
25876 Sync
25877 \end_layout
25878
25879 \end_inset
25880
25881  choose 
25882 \begin_inset Flex Noun
25883 status collapsed
25884
25885 \begin_layout Plain Layout
25886 custom
25887 \end_layout
25888
25889 \end_inset
25890
25891  preset and enter command 
25892 \begin_inset Flex Noun
25893 status collapsed
25894
25895 \begin_layout Plain Layout
25896 /Applications/\SpecialChar LyX
25897 .app/Contents/MacOS/lyxeditor
25898 \end_layout
25899
25900 \end_inset
25901
25902 .
25903 \end_layout
25904
25905 \begin_layout Standard
25906 Reverse search is triggered by COMMAND-SHIFT-click
25907 \end_layout
25908
25909 \begin_layout Subsubsection*
25910 Evince (GNOME)
25911 \end_layout
25912
25913 \begin_layout Standard
25914 Reverse search with evince does not work out of the box, but it can be achieved
25915  by means of some third party helper scripts.
25916  Please refer to 
25917 \begin_inset CommandInset href
25918 LatexCommand href
25919 target "https://wiki.lyx.org/LyX/SyncTeX"
25920 literal "false"
25921
25922 \end_inset
25923
25924  for details.
25925 \end_layout
25926
25927 \begin_layout Subsubsection*
25928 Okular (KDE)
25929 \end_layout
25930
25931 \begin_layout Standard
25932 Go to 
25933 \begin_inset Flex Noun
25934 status collapsed
25935
25936 \begin_layout Plain Layout
25937 Settings\SpecialChar menuseparator
25938 Configure Okular\SpecialChar menuseparator
25939 Editor
25940 \end_layout
25941
25942 \end_inset
25943
25944  and select LyX
25945 \begin_inset Quotes erd
25946 \end_inset
25947
25948  as editor.
25949  This inserts the appropriate command (
25950 \begin_inset Flex Code
25951 status collapsed
25952
25953 \begin_layout Plain Layout
25954 lyxclient -g %f %l
25955 \end_layout
25956
25957 \end_inset
25958
25959 ).
25960 \end_layout
25961
25962 \begin_layout Standard
25963 Reverse search is triggered by SHIFT-click.
25964
25965 \change_inserted -712698321 1578211026
25966  Note that this only works if Okular is in 
25967 \begin_inset Quotes eld
25968 \end_inset
25969
25970 Browse
25971 \begin_inset Quotes erd
25972 \end_inset
25973
25974  mode (i.
25975 \begin_inset space \thinspace{}
25976 \end_inset
25977
25978 e., the hand symbol is clicked).
25979 \change_unchanged
25980
25981 \end_layout
25982
25983 \begin_layout Subsubsection*
25984 Qpdfview (Unix)
25985 \end_layout
25986
25987 \begin_layout Standard
25988 Qpdfview supports Sync\SpecialChar TeX
25989  since version 0.3.5.
25990  Go to 
25991 \begin_inset Flex Noun
25992 status collapsed
25993
25994 \begin_layout Plain Layout
25995 Edit\SpecialChar menuseparator
25996 Settings\SpecialChar menuseparator
25997 Behavior
25998 \end_layout
25999
26000 \end_inset
26001
26002 , click on the input field of the 
26003 \begin_inset Quotes eld
26004 \end_inset
26005
26006 Source editor
26007 \begin_inset Quotes erd
26008 \end_inset
26009
26010  item and add the command 
26011 \begin_inset Flex Code
26012 status collapsed
26013
26014 \begin_layout Plain Layout
26015 lyxclient -g %1 %2
26016 \end_layout
26017
26018 \end_inset
26019
26020 .
26021 \end_layout
26022
26023 \begin_layout Standard
26024 Reverse search is triggered by double-click or, in more recent versions,
26025  by context menu.
26026 \end_layout
26027
26028 \begin_layout Subsubsection*
26029 YAP (Windows)
26030 \end_layout
26031
26032 \begin_layout Standard
26033 Launch yap, choose its 
26034 \begin_inset Flex Noun
26035 status collapsed
26036
26037 \begin_layout Plain Layout
26038 View\SpecialChar menuseparator
26039 Options
26040 \end_layout
26041
26042 \end_inset
26043
26044  menu and select the 
26045 \begin_inset Quotes eld
26046 \end_inset
26047
26048 Inverse DVI Search
26049 \begin_inset Quotes erd
26050 \end_inset
26051
26052  tab.
26053  Click on the 
26054 \begin_inset Quotes eld
26055 \end_inset
26056
26057 New\SpecialChar ldots
26058
26059 \begin_inset Quotes erd
26060 \end_inset
26061
26062  button and, in the window that opens, enter 
26063 \begin_inset Quotes eld
26064 \end_inset
26065
26066 \SpecialChar LyX
26067  Editor
26068 \begin_inset Quotes erd
26069 \end_inset
26070
26071  (or any other name you like) in the 
26072 \begin_inset Quotes eld
26073 \end_inset
26074
26075 Name:
26076 \begin_inset Quotes erd
26077 \end_inset
26078
26079  field.
26080  Now click on the button labeled 
26081 \begin_inset Quotes eld
26082 \end_inset
26083
26084 \SpecialChar ldots
26085
26086 \begin_inset Quotes erd
26087 \end_inset
26088
26089  to open a file dialog and navigate to the directory containing the batch
26090  file 
26091 \begin_inset Flex Code
26092 status collapsed
26093
26094 \begin_layout Plain Layout
26095 lyxeditor.bat
26096 \end_layout
26097
26098 \end_inset
26099
26100  (see below).
26101  Select 
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 lyxeditor.bat
26107 \end_layout
26108
26109 \end_inset
26110
26111  and then specify the program arguments as 
26112 \begin_inset Flex Code
26113 status collapsed
26114
26115 \begin_layout Plain Layout
26116 %f %l
26117 \end_layout
26118
26119 \end_inset
26120
26121 .
26122  The 
26123 \begin_inset Flex Code
26124 status collapsed
26125
26126 \begin_layout Plain Layout
26127 lyxeditor.bat
26128 \end_layout
26129
26130 \end_inset
26131
26132  wrapper is used for communicating with \SpecialChar LyX
26133  through the 
26134 \emph on
26135 lyxpipe
26136 \emph default
26137  and is as follows:
26138 \end_layout
26139
26140 \begin_layout LyX-Code
26141 @echo off
26142 \begin_inset Newline newline
26143 \end_inset
26144
26145 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
26146 \backslash
26147
26148 \backslash
26149 .
26150 \backslash
26151 pipe
26152 \backslash
26153 lyxpipe.in
26154 \begin_inset Newline newline
26155 \end_inset
26156
26157 type 
26158 \backslash
26159
26160 \backslash
26161 .
26162 \backslash
26163 pipe
26164 \backslash
26165 lyxpipe.out
26166 \end_layout
26167
26168 \begin_layout Standard
26169 Make sure that the \SpecialChar LyX
26170 Server pipe path you specified in \SpecialChar LyX
26171  is 
26172 \begin_inset Flex Code
26173 status collapsed
26174
26175 \begin_layout Plain Layout
26176
26177 \backslash
26178
26179 \backslash
26180 .
26181 \backslash
26182 pipe
26183 \backslash
26184 lyxpipe
26185 \end_layout
26186
26187 \end_inset
26188
26189 , otherwise change the 
26190 \begin_inset Flex Code
26191 status collapsed
26192
26193 \begin_layout Plain Layout
26194 lyxeditor.bat
26195 \end_layout
26196
26197 \end_inset
26198
26199  wrapper accordingly.
26200 \end_layout
26201
26202 \begin_layout Standard
26203 In yap, reverse search is triggered by double-click.
26204 \end_layout
26205
26206 \begin_layout Subsubsection*
26207 SumatraPDF (Windows)
26208 \end_layout
26209
26210 \begin_layout Standard
26211 In order to use SumatraPDF for inverse search, enter 
26212 \begin_inset Flex Code
26213 status collapsed
26214
26215 \begin_layout Plain Layout
26216 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
26217 \end_layout
26218
26219 \end_inset
26220
26221  in the viewer setting in 
26222 \begin_inset Flex Noun
26223 status collapsed
26224
26225 \begin_layout Plain Layout
26226 Preferences\SpecialChar menuseparator
26227 File Handling\SpecialChar menuseparator
26228 File formats\SpecialChar menuseparator
26229 PDF (pdflatex)
26230 \end_layout
26231
26232 \end_inset
26233
26234 , where 
26235 \begin_inset Flex Code
26236 status collapsed
26237
26238 \begin_layout Plain Layout
26239 lyxeditor.bat
26240 \end_layout
26241
26242 \end_inset
26243
26244  is the previous wrapper.
26245  If SumatraPDF.exe is not in your command PATH, use its full file name.
26246 \end_layout
26247
26248 \begin_layout Standard
26249 Reverse search is triggered by double-click.
26250 \end_layout
26251
26252 \begin_layout Subsubsection*
26253 YAP (Cygwin)
26254 \end_layout
26255
26256 \begin_layout Standard
26257 First of all, make sure that yap is your default DVI viewer in the Windows
26258  environment, then launch it, choose its 
26259 \begin_inset Flex Noun
26260 status collapsed
26261
26262 \begin_layout Plain Layout
26263 View\SpecialChar menuseparator
26264 Options
26265 \end_layout
26266
26267 \end_inset
26268
26269  menu and select the 
26270 \begin_inset Quotes eld
26271 \end_inset
26272
26273 Inverse DVI Search
26274 \begin_inset Quotes erd
26275 \end_inset
26276
26277  tab.
26278  Click on the 
26279 \begin_inset Quotes eld
26280 \end_inset
26281
26282 New\SpecialChar ldots
26283
26284 \begin_inset Quotes erd
26285 \end_inset
26286
26287  button and, in the window that opens, enter 
26288 \begin_inset Quotes eld
26289 \end_inset
26290
26291 \SpecialChar LyX
26292  Editor
26293 \begin_inset Quotes erd
26294 \end_inset
26295
26296  (or any other name you like) in the 
26297 \begin_inset Quotes eld
26298 \end_inset
26299
26300 Name:
26301 \begin_inset Quotes erd
26302 \end_inset
26303
26304  field.
26305  Now click on the button labeled 
26306 \begin_inset Quotes eld
26307 \end_inset
26308
26309 \SpecialChar ldots
26310
26311 \begin_inset Quotes erd
26312 \end_inset
26313
26314  to open a file dialog and navigate to the directory containing the 
26315 \begin_inset Flex Code
26316 status collapsed
26317
26318 \begin_layout Plain Layout
26319 lyxeditor.exe
26320 \end_layout
26321
26322 \end_inset
26323
26324  program (which is installed by default on Cygwin along with the \SpecialChar LyX
26325  executable).
26326  Select 
26327 \begin_inset Flex Code
26328 status collapsed
26329
26330 \begin_layout Plain Layout
26331 lyxeditor.exe
26332 \end_layout
26333
26334 \end_inset
26335
26336  and then specify the program arguments as 
26337 \begin_inset Flex Code
26338 status collapsed
26339
26340 \begin_layout Plain Layout
26341 -g %f %l
26342 \end_layout
26343
26344 \end_inset
26345
26346 .
26347  In this way, you will be using the 
26348 \emph on
26349 lyxsocket
26350 \emph default
26351  for communicating with \SpecialChar LyX
26352 .
26353  If, for whatever reason, you want to use the 
26354 \emph on
26355 lyxpipe
26356 \emph default
26357 , omit the 
26358 \begin_inset Flex Code
26359 status collapsed
26360
26361 \begin_layout Plain Layout
26362 -g
26363 \end_layout
26364
26365 \end_inset
26366
26367  option and be sure to specify the \SpecialChar LyX
26368 Server pipe path in the \SpecialChar LyX
26369  preferences.
26370 \end_layout
26371
26372 \begin_layout Standard
26373 In yap, reverse search is triggered by double-click.
26374 \end_layout
26375
26376 \begin_layout Subsubsection*
26377 SumatraPDF (Cygwin)
26378 \end_layout
26379
26380 \begin_layout Standard
26381 In order to use SumatraPDF for inverse search, enter 
26382 \begin_inset Flex Code
26383 status collapsed
26384
26385 \begin_layout Plain Layout
26386 SumatraPDF -inverse-search "lyxeditor -g %f %l"
26387 \end_layout
26388
26389 \end_inset
26390
26391  in the viewer setting in 
26392 \begin_inset Flex Noun
26393 status collapsed
26394
26395 \begin_layout Plain Layout
26396 Preferences\SpecialChar menuseparator
26397 File Handling\SpecialChar menuseparator
26398 File formats\SpecialChar menuseparator
26399 PDF (pdflatex)
26400 \end_layout
26401
26402 \end_inset
26403
26404 .
26405  If SumatraPDF.exe is not in your command PATH, use its full posix path.
26406  The 
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 -g
26412 \end_layout
26413
26414 \end_inset
26415
26416  enables communication via the 
26417 \emph on
26418 lyxsocket
26419 \emph default
26420 .
26421  Again, omit the 
26422 \begin_inset Flex Code
26423 status collapsed
26424
26425 \begin_layout Plain Layout
26426 -g
26427 \end_layout
26428
26429 \end_inset
26430
26431  option if you want to use the 
26432 \emph on
26433 lyxpipe
26434 \emph default
26435 , and be sure to specify the \SpecialChar LyX
26436 Server pipe path in the \SpecialChar LyX
26437  preferences.
26438 \end_layout
26439
26440 \begin_layout Standard
26441 Reverse search is triggered by double-click.
26442 \end_layout
26443
26444 \begin_layout Section
26445 Forward search
26446 \end_layout
26447
26448 \begin_layout Standard
26449 Forward search is, as the name implies, in a sense the 
26450 \begin_inset Quotes eld
26451 \end_inset
26452
26453 opposite
26454 \begin_inset Quotes erd
26455 \end_inset
26456
26457  of reverse search.
26458  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
26459 .
26460  If forward search is set up (as described in what follows), you can put
26461  the cursor anywhere in your \SpecialChar LyX
26462  document, and hit 
26463 \begin_inset Flex Noun
26464 status collapsed
26465
26466 \begin_layout Plain Layout
26467 Navigate\SpecialChar menuseparator
26468 Forward search
26469 \end_layout
26470
26471 \end_inset
26472
26473  (or select 
26474 \begin_inset Flex Noun
26475 status collapsed
26476
26477 \begin_layout Plain Layout
26478 Forward search
26479 \end_layout
26480
26481 \end_inset
26482
26483  in the context menu via right mouse click), and then the viewer will jump
26484  to that position as well.
26485  This implies, of course, that your viewer supports this function.
26486 \end_layout
26487
26488 \begin_layout Standard
26489 To make forward search possible, you first need to provide the generated
26490  output PDF/DVI file with additional information about the \SpecialChar TeX
26491  sources.
26492  This can be done via the methods described in the section 
26493 \begin_inset CommandInset ref
26494 LatexCommand ref
26495 reference "subsec:rev-search"
26496
26497 \end_inset
26498
26499 .
26500 \end_layout
26501
26502 \begin_layout Standard
26503 Additionally, you need to configure \SpecialChar LyX
26504  for using your viewers in 
26505 \begin_inset Flex Noun
26506 status collapsed
26507
26508 \begin_layout Plain Layout
26509 Tools\SpecialChar menuseparator
26510 Preferences\SpecialChar menuseparator
26511 Output\SpecialChar menuseparator
26512 General
26513 \end_layout
26514
26515 \end_inset
26516
26517 .
26518  We provide a range of tested configurations for some viewers, which you
26519  can select from the drop down list.
26520  If none of these configurations suits you, you have to find out and enter
26521  a suitable configuration yourself.
26522  The definition syntax uses the following placeholders:
26523 \end_layout
26524
26525 \begin_layout Itemize
26526 \noindent
26527 \begin_inset Flex Code
26528 status collapsed
26529
26530 \begin_layout Plain Layout
26531 $$n
26532 \end_layout
26533
26534 \end_inset
26535
26536 : row number
26537 \end_layout
26538
26539 \begin_layout Itemize
26540 \noindent
26541 \begin_inset Flex Code
26542 status collapsed
26543
26544 \begin_layout Plain Layout
26545 $$t
26546 \end_layout
26547
26548 \end_inset
26549
26550 : name of the (temporary) exported .tex file (without path)
26551 \end_layout
26552
26553 \begin_layout Itemize
26554 \noindent
26555 \begin_inset Flex Code
26556 status collapsed
26557
26558 \begin_layout Plain Layout
26559 $$f
26560 \end_layout
26561
26562 \end_inset
26563
26564 : name of the (temporary) exported .tex file (including path)
26565 \end_layout
26566
26567 \begin_layout Itemize
26568 \noindent
26569 \begin_inset Flex Code
26570 status collapsed
26571
26572 \begin_layout Plain Layout
26573 $$o
26574 \end_layout
26575
26576 \end_inset
26577
26578 : name of the exported output file (either dvi or pdf, depending on which
26579  one exists in the temporary directory)
26580 \end_layout
26581
26582 \begin_layout Standard
26583 Note that only some of the viewers provide full and usable forward search
26584  functionality out of the box, among them yap, xdvi, okular
26585 \begin_inset Foot
26586 status collapsed
26587
26588 \begin_layout Plain Layout
26589 You might want to set 
26590 \begin_inset Flex Code
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594 okular --unique
26595 \end_layout
26596
26597 \end_inset
26598
26599  in 
26600 \begin_inset Flex Noun
26601 status collapsed
26602
26603 \begin_layout Plain Layout
26604 Tools\SpecialChar menuseparator
26605 Preferences\SpecialChar menuseparator
26606 File Handling\SpecialChar menuseparator
26607 File
26608 \begin_inset space ~
26609 \end_inset
26610
26611 Formats
26612 \end_layout
26613
26614 \end_inset
26615
26616
26617 \end_layout
26618
26619 \end_inset
26620
26621 , qpdfview, and SumatraPDF
26622 \begin_inset Foot
26623 status collapsed
26624
26625 \begin_layout Plain Layout
26626 SumatraPDF can also use DDE commands through the external program CMCDDE
26627  — downloadable from 
26628 \begin_inset CommandInset href
26629 LatexCommand href
26630 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
26631 literal "false"
26632
26633 \end_inset
26634
26635
26636 \end_layout
26637
26638 \end_inset
26639
26640 .
26641  Others, such as evince
26642 \begin_inset Foot
26643 status collapsed
26644
26645 \begin_layout Plain Layout
26646 Forward search with evince can be achieved by means of third party helper
26647  scripts.
26648  Please refer to 
26649 \begin_inset CommandInset href
26650 LatexCommand href
26651 target "https://wiki.lyx.org/LyX/SyncTeX"
26652 literal "false"
26653
26654 \end_inset
26655
26656  for details.
26657 \end_layout
26658
26659 \end_inset
26660
26661 , require some extra tools in order to use forward search.
26662  While many of the widespread PDF viewers (most notably Adobe Reader) do
26663  not support forward search at all, some other viewers – e.
26664 \begin_inset space \thinspace{}
26665 \end_inset
26666
26667 g.
26668  xpdf – allow at least to reload the document and jump to a specific page
26669  of the file, so you can at least navigate 
26670 \begin_inset Quotes eld
26671 \end_inset
26672
26673 near
26674 \begin_inset Quotes erd
26675 \end_inset
26676
26677 .
26678  This latter functionality is provided by an external call of synctex (see
26679  the predefined example configurations).
26680  
26681 \end_layout
26682
26683 \begin_layout Standard
26684 Forward search works both with DVI and PDF output.
26685  \SpecialChar LyX
26686  simply checks which preview format you have used before (i.
26687 \begin_inset space \thinspace{}
26688 \end_inset
26689
26690 e., which format is already there in the temporary directory) and chooses
26691  the appropriate configuration for the respective format.
26692 \end_layout
26693
26694 \begin_layout Chapter
26695
26696 \change_deleted 564990737 1671097409
26697 Special Document Classes
26698 \change_unchanged
26699
26700 \end_layout
26701
26702 \begin_layout Section
26703
26704 \change_deleted 564990737 1669742044
26705 A&A Paper
26706 \end_layout
26707
26708 \begin_layout Standard
26709
26710 \change_deleted 564990737 1669742044
26711 by 
26712 \noun on
26713 Peter Sütterlin
26714 \end_layout
26715
26716 \begin_layout Subsection
26717
26718 \change_deleted 564990737 1669742044
26719 Introduction
26720 \end_layout
26721
26722 \begin_layout Standard
26723
26724 \change_deleted 564990737 1669742044
26725 This section describes how \SpecialChar LyX
26726  can be used to write articles for submission
26727  to the scientific journal 
26728 \emph on
26729 Astronomy and Astrophysics
26730 \emph default
26731  (
26732 \begin_inset Flex URL
26733 status collapsed
26734
26735 \begin_layout Plain Layout
26736
26737 https://www.aanda.org/
26738 \end_layout
26739
26740 \end_inset
26741
26742 ) using Version 5.01 of the document class 
26743 \family typewriter
26744 aa.cls
26745 \family default
26746 .
26747  This package can be downloaded from the ftp site
26748 \end_layout
26749
26750 \begin_layout Standard
26751
26752 \change_deleted 564990737 1669742044
26753 \begin_inset VSpace medskip
26754 \end_inset
26755
26756
26757 \end_layout
26758
26759 \begin_layout Standard
26760 \align center
26761
26762 \change_deleted 564990737 1669742044
26763 \begin_inset Flex URL
26764 status collapsed
26765
26766 \begin_layout Plain Layout
26767
26768 ftp://ftp.edpsciences.org/pub/aa/readme.html
26769 \end_layout
26770
26771 \end_inset
26772
26773
26774 \end_layout
26775
26776 \begin_layout Standard
26777
26778 \change_deleted 564990737 1669742044
26779 \begin_inset VSpace medskip
26780 \end_inset
26781
26782
26783 \end_layout
26784
26785 \begin_layout Standard
26786
26787 \change_deleted 564990737 1669742044
26788 A manual comes together with that package, and this text is not meant to
26789  replace the original manual but is merely a short guide in how to realize
26790  the correct form of your paper.
26791  
26792 \end_layout
26793
26794 \begin_layout Standard
26795
26796 \change_deleted 564990737 1669742044
26797 Please note that the publisher of the journal was changed from Springer
26798  to EDP Sciences starting January 1, 2001.
26799  That change involved also some slight changes to the style files, namely
26800  the removal of the thesaurus command.
26801  The \SpecialChar LyX
26802  class aa supports the newest version of these style files, V 5.01.
26803  If you have an older version installed, please upgrade.
26804  For compatibility, the old (version 4) layout has been kept as 
26805 \family sans
26806 article (A&A V4)
26807 \family default
26808 .
26809  Please refer to the comments in 
26810 \family typewriter
26811 \SpecialChar LyX
26812 Dir/layouts/aapaper.layout
26813 \family default
26814 .
26815 \end_layout
26816
26817 \begin_layout Subsection
26818
26819 \change_deleted 564990737 1669742044
26820 Getting started
26821 \end_layout
26822
26823 \begin_layout Standard
26824
26825 \change_deleted 564990737 1669742044
26826 It is recommended you start from the example template distributed with \SpecialChar LyX
26827 .
26828  If you are not using a template, note the following settings:
26829 \end_layout
26830
26831 \begin_layout Itemize
26832
26833 \change_deleted 564990737 1669742044
26834 Select 
26835 \family sans
26836 article (A&A)
26837 \family default
26838  in the 
26839 \family sans
26840 Document\SpecialChar menuseparator
26841 Settings
26842 \family default
26843  dialog (OK, that one was obvious).
26844 \end_layout
26845
26846 \begin_layout Itemize
26847
26848 \change_deleted 564990737 1669742044
26849 Don't change the option 
26850 \family sans
26851 Page
26852 \begin_inset space ~
26853 \end_inset
26854
26855 style
26856 \family default
26857 : Leave it set to 
26858 \family sans
26859 default
26860 \family default
26861 .
26862  The whole layout is done by the macros, you shouldn't change anything.
26863 \end_layout
26864
26865 \begin_layout Subsection
26866
26867 \change_deleted 564990737 1669742044
26868 The header block
26869 \end_layout
26870
26871 \begin_layout Standard
26872
26873 \change_deleted 564990737 1669742044
26874 First thing to enter is the header information.
26875  It consists of seven entries, of which some are optional.
26876  They are
26877 \end_layout
26878
26879 \begin_layout Itemize
26880
26881 \change_deleted 564990737 1669742044
26882
26883 \family sans
26884 Title
26885 \family default
26886 : [required] 
26887 \end_layout
26888
26889 \begin_layout Itemize
26890
26891 \change_deleted 564990737 1669742044
26892
26893 \family sans
26894 Subtitle
26895 \family default
26896 : [optional] 
26897 \end_layout
26898
26899 \begin_layout Itemize
26900
26901 \change_deleted 564990737 1669742044
26902
26903 \family sans
26904 Author
26905 \family default
26906 : [required]
26907 \end_layout
26908
26909 \begin_layout Itemize
26910
26911 \change_deleted 564990737 1669742044
26912
26913 \family sans
26914 Address
26915 \family default
26916 : [required]
26917 \end_layout
26918
26919 \begin_layout Itemize
26920
26921 \change_deleted 564990737 1669742044
26922
26923 \family sans
26924 Offprints
26925 \family default
26926 : [optional] if more than one author: whom to contact for offprint requests.
26927 \end_layout
26928
26929 \begin_layout Itemize
26930
26931 \change_deleted 564990737 1669742044
26932
26933 \family sans
26934 Mail
26935 \family default
26936 : [optional] mail address for contacts.
26937 \end_layout
26938
26939 \begin_layout Itemize
26940
26941 \change_deleted 564990737 1669742044
26942
26943 \family sans
26944 Date
26945 \family default
26946 : [required].
26947  Suggested format is 
26948 \family typewriter
26949 Received: <date>; Accepted <date> 
26950 \end_layout
26951
26952 \begin_layout Standard
26953
26954 \change_deleted 564990737 1669742044
26955 There is no need to issue the 
26956 \family typewriter
26957
26958 \backslash
26959 maketitle
26960 \family default
26961  command, this is done automatically by \SpecialChar LyX
26962  when the header is finished.
26963  Although the order of the single header entries doesn't matter it is advised
26964  to keep the above sequence, just to get the best optics and meets the layout
26965  of the real document.
26966 \end_layout
26967
26968 \begin_layout Standard
26969
26970 \change_deleted 564990737 1669742044
26971 If you want to place footnotes in the header block, e.
26972 \begin_inset space \thinspace{}
26973 \end_inset
26974
26975 g.
26976 \begin_inset space \space{}
26977 \end_inset
26978
26979 to state your present address, just use the standard footnote via the menu
26980  
26981 \family sans
26982 Insert\SpecialChar menuseparator
26983 Footnote.
26984
26985 \family default
26986  \SpecialChar LyX
26987  will automagically use the term 
26988 \family typewriter
26989
26990 \backslash
26991 thanks{}
26992 \family default
26993  in that case.
26994 \end_layout
26995
26996 \begin_layout Standard
26997
26998 \change_deleted 564990737 1669742044
26999 Under 
27000 \family sans
27001 Edit\SpecialChar menuseparator
27002 Text Style
27003 \family default
27004 , you'll find two insets which are relevant for the titling:
27005 \end_layout
27006
27007 \begin_layout Itemize
27008
27009 \change_deleted 564990737 1669742044
27010
27011 \family sans
27012 Institute
27013 \family typewriter
27014  
27015 \family default
27016 to mark corresponding author\SpecialChar breakableslash
27017 institute pairs.
27018  The institutes are numbered sequentially as they appear in the 
27019 \family sans
27020 Address
27021 \family default
27022  field, so you have to put a marker to each author.
27023 \end_layout
27024
27025 \begin_layout Itemize
27026
27027 \change_deleted 564990737 1669742044
27028
27029 \family sans
27030 Email
27031 \family default
27032  to supply an email address for fast contact.
27033 \end_layout
27034
27035 \begin_layout Standard
27036
27037 \change_deleted 564990737 1669742044
27038 In addition to these topics, the macros use one additional \SpecialChar LaTeX
27039  command that
27040  has no counterpart in \SpecialChar LyX
27041 :
27042 \end_layout
27043
27044 \begin_layout Itemize
27045
27046 \change_deleted 564990737 1669742044
27047
27048 \family typewriter
27049
27050 \backslash
27051 and
27052 \family default
27053  to separate different names for more than one author and institute, respectivel
27054 y.
27055 \end_layout
27056
27057 \begin_layout Standard
27058
27059 \change_deleted 564990737 1669742044
27060 The appropriate command has to be entered in \SpecialChar LyX
27061  and marked as \SpecialChar LaTeX
27062  code.
27063  See the examples.
27064  
27065 \end_layout
27066
27067 \begin_layout Subsection
27068
27069 \change_deleted 564990737 1669742044
27070 The abstract
27071 \end_layout
27072
27073 \begin_layout Standard
27074
27075 \change_deleted 564990737 1669742044
27076 The abstract should immediately follow the header block.
27077  With version 5 the abstract environment was changed to a command, and there
27078  is now a restriction to only one paragraph.
27079  In addition, it should contain an entry with the keywords.
27080  This is done via the paragraph style 
27081 \family sans
27082 Keywords
27083 \family default
27084 .
27085  Refer to the example paper.
27086 \end_layout
27087
27088 \begin_layout Subsection
27089
27090 \change_deleted 564990737 1669742044
27091 Supported environments
27092 \end_layout
27093
27094 \begin_layout Standard
27095
27096 \change_deleted 564990737 1669742044
27097 The A&A paper layout supports the following environments for structuring
27098  your text:
27099 \end_layout
27100
27101 \begin_layout Itemize
27102
27103 \change_deleted 564990737 1669742044
27104
27105 \family sans
27106 Standard
27107 \end_layout
27108
27109 \begin_layout Itemize
27110
27111 \change_deleted 564990737 1669742044
27112
27113 \family sans
27114 Section
27115 \end_layout
27116
27117 \begin_layout Itemize
27118
27119 \change_deleted 564990737 1669742044
27120
27121 \family sans
27122 Subsection
27123 \end_layout
27124
27125 \begin_layout Itemize
27126
27127 \change_deleted 564990737 1669742044
27128
27129 \family sans
27130 Subsubsection
27131 \end_layout
27132
27133 \begin_layout Itemize
27134
27135 \change_deleted 564990737 1669742044
27136
27137 \family sans
27138 Itemize
27139 \end_layout
27140
27141 \begin_layout Itemize
27142
27143 \change_deleted 564990737 1669742044
27144
27145 \family sans
27146 Enumerate
27147 \end_layout
27148
27149 \begin_layout Itemize
27150
27151 \change_deleted 564990737 1669742044
27152
27153 \family sans
27154 Description
27155 \end_layout
27156
27157 \begin_layout Itemize
27158
27159 \change_deleted 564990737 1669742044
27160
27161 \family sans
27162 Caption
27163 \end_layout
27164
27165 \begin_layout Itemize
27166
27167 \change_deleted 564990737 1669742044
27168
27169 \family sans
27170 Abstract
27171 \end_layout
27172
27173 \begin_layout Itemize
27174
27175 \change_deleted 564990737 1669742044
27176
27177 \family sans
27178 Acknowledgment
27179 \end_layout
27180
27181 \begin_layout Itemize
27182
27183 \change_deleted 564990737 1669742044
27184
27185 \family sans
27186 Bibliography
27187 \end_layout
27188
27189 \begin_layout Itemize
27190
27191 \change_deleted 564990737 1669742044
27192
27193 \family sans
27194 \SpecialChar LaTeX
27195
27196 \end_layout
27197
27198 \begin_layout Subsection
27199
27200 \change_deleted 564990737 1669742044
27201 Commands not supported by \SpecialChar LyX
27202
27203 \end_layout
27204
27205 \begin_layout Standard
27206
27207 \change_deleted 564990737 1669742044
27208 Some commands are not yet supported by the 
27209 \family sans
27210 paper (A&A)
27211 \family default
27212  layout for \SpecialChar LyX
27213 .
27214  Some have already been mentioned.
27215  For the sake of completeness, they are listed all together here:
27216 \end_layout
27217
27218 \begin_layout Itemize
27219
27220 \change_deleted 564990737 1669742044
27221
27222 \family typewriter
27223
27224 \backslash
27225 and
27226 \end_layout
27227
27228 \begin_layout Itemize
27229
27230 \change_deleted 564990737 1669742044
27231
27232 \family typewriter
27233
27234 \backslash
27235 authorrunning
27236 \end_layout
27237
27238 \begin_layout Itemize
27239
27240 \change_deleted 564990737 1669742044
27241
27242 \family typewriter
27243
27244 \backslash
27245 object{}
27246 \end_layout
27247
27248 \begin_layout Itemize
27249
27250 \change_deleted 564990737 1669742044
27251
27252 \family typewriter
27253
27254 \backslash
27255 titlerunning{}
27256 \end_layout
27257
27258 \begin_layout Standard
27259
27260 \change_deleted 564990737 1669742044
27261 If you want to use any of these commands, you have to enter them yourself.
27262  
27263 \series bold
27264 Do not forget to mark them as \SpecialChar LaTeX
27265  code!
27266 \end_layout
27267
27268 \begin_layout Subsection
27269
27270 \change_deleted 564990737 1669742044
27271 Figure and Table Floats
27272 \end_layout
27273
27274 \begin_layout Standard
27275
27276 \change_deleted 564990737 1669742044
27277 \SpecialChar LyX
27278  provides support for the necessary float environments 
27279 \family sans
27280 figure, figure*, table
27281 \family default
27282  and 
27283 \family sans
27284 table*
27285 \family default
27286 , therefore we won't tell much about it here.
27287  Refer to the 
27288 \emph on
27289 User's
27290 \begin_inset space ~
27291 \end_inset
27292
27293 Guide
27294 \emph default
27295 .
27296  Just remember that tables should be left-aligned.
27297  For that, select the table and change the alignment in 
27298 \family sans
27299 Edit\SpecialChar menuseparator
27300 Paragraph
27301 \begin_inset space ~
27302 \end_inset
27303
27304 Settings.
27305 \end_layout
27306
27307 \begin_layout Standard
27308
27309 \change_deleted 564990737 1669742044
27310 There is only one special thing: the figures with caption besides the figure.
27311  To create such a figure, you have to do the following:
27312 \end_layout
27313
27314 \begin_layout Enumerate
27315
27316 \change_deleted 564990737 1669742044
27317 Create a wide figure float: 
27318 \family sans
27319 Insert\SpecialChar menuseparator
27320 Float\SpecialChar menuseparator
27321 Figure
27322 \family default
27323 , then right click in the figure and select 
27324 \family sans
27325 Span
27326 \begin_inset space ~
27327 \end_inset
27328
27329 columns
27330 \family default
27331 .
27332 \end_layout
27333
27334 \begin_layout Enumerate
27335
27336 \change_deleted 564990737 1669742044
27337 Enter your caption text.
27338 \end_layout
27339
27340 \begin_layout Enumerate
27341
27342 \change_deleted 564990737 1669742044
27343 Press 
27344 \family sans
27345 Return
27346 \family default
27347  to move the cursor above the caption.
27348 \end_layout
27349
27350 \begin_layout Enumerate
27351
27352 \change_deleted 564990737 1669742044
27353 Insert your figure
27354 \end_layout
27355
27356 \begin_layout Enumerate
27357
27358 \change_deleted 564990737 1669742044
27359 Position the cursor behind the figure and insert a horizontal fill: 
27360 \family sans
27361 Insert\SpecialChar menuseparator
27362 Special
27363 \begin_inset space ~
27364 \end_inset
27365
27366 Character\SpecialChar menuseparator
27367 Horizontal
27368 \begin_inset space ~
27369 \end_inset
27370
27371 Fill
27372 \family default
27373 .
27374 \end_layout
27375
27376 \begin_layout Enumerate
27377
27378 \change_deleted 564990737 1669742044
27379 Switch to \SpecialChar LaTeX
27380  mode: 
27381 \family sans
27382 M-c
27383 \begin_inset space ~
27384 \end_inset
27385
27386 t
27387 \family default
27388 .
27389 \end_layout
27390
27391 \begin_layout Enumerate
27392
27393 \change_deleted 564990737 1669742044
27394 Enter 
27395 \family typewriter
27396
27397 \backslash
27398 parbox[b]{55mm}{
27399 \family default
27400 .
27401  
27402 \series bold
27403 Do not close the brace!
27404 \end_layout
27405
27406 \begin_layout Enumerate
27407
27408 \change_deleted 564990737 1669742044
27409 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
27410  mode and insert
27411  the closing brace: 
27412 \family sans
27413 M-c
27414 \begin_inset space ~
27415 \end_inset
27416
27417 t
27418 \family default
27419  
27420 \family typewriter
27421 }
27422 \family default
27423 .
27424 \end_layout
27425
27426 \begin_layout Standard
27427
27428 \change_deleted 564990737 1669742044
27429 Also, refer to the figures in the example paper.
27430 \end_layout
27431
27432 \begin_layout Subsection
27433
27434 \change_deleted 564990737 1669742044
27435 Referee layout
27436 \end_layout
27437
27438 \begin_layout Standard
27439
27440 \change_deleted 564990737 1669742044
27441 For submission, the paper has to be formated in a special double-spacing
27442  layout.
27443  For this purpose, you have to give the option 
27444 \family typewriter
27445 referee
27446 \family default
27447  to the document class.
27448  This must be done using the custom class options field in the 
27449 \family sans
27450 Document\SpecialChar menuseparator
27451 Settings
27452 \family default
27453  dialog.
27454  Just enter the string 
27455 \family typewriter
27456 referee
27457 \family default
27458  there.
27459 \end_layout
27460
27461 \begin_layout Subsection
27462
27463 \change_deleted 564990737 1669742044
27464 The example paper
27465 \end_layout
27466
27467 \begin_layout Standard
27468
27469 \change_deleted 564990737 1669742044
27470 The 
27471 \family sans
27472 Examples
27473 \family default
27474  directory contains an example paper written with \SpecialChar LyX
27475 .
27476  It is the example paper from the original macro package, translated to
27477  \SpecialChar LyX
27478 .
27479  Use it for inspiration, and compare the original \SpecialChar LaTeX
27480  code with \SpecialChar LyX
27481  way of writing.
27482 \end_layout
27483
27484 \begin_layout Section
27485
27486 \change_deleted 564990737 1671097429
27487 Dinbrief
27488 \end_layout
27489
27490 \begin_layout Standard
27491
27492 \change_deleted 564990737 1671097429
27493 The document class 
27494 \family sans
27495 dinbrief
27496 \family default
27497  can be used to type letters according to German conventions.
27498  A template file is included in 
27499 \family typewriter
27500 .../lyx/share/templates
27501 \family default
27502  for you to use as a starting point.
27503 \end_layout
27504
27505 \begin_layout Section
27506
27507 \change_deleted 564990737 1671097429
27508 Elsevier Journals
27509 \end_layout
27510
27511 \begin_layout Standard
27512
27513 \change_deleted 564990737 1671097429
27514 See the \SpecialChar LyX
27515  template file 
27516 \family typewriter
27517 elsarticle.lyx
27518 \family default
27519 .
27520  It contains all infos you need.
27521 \end_layout
27522
27523 \begin_layout Section
27524
27525 \change_deleted 564990737 1669755802
27526 ijmpc and ijmpd
27527 \end_layout
27528
27529 \begin_layout Standard
27530
27531 \change_deleted 564990737 1669755802
27532 by 
27533 \noun on
27534 Panayotis Papasotiriou
27535 \end_layout
27536
27537 \begin_layout Subsection
27538
27539 \change_deleted 564990737 1669755802
27540 Overview
27541 \end_layout
27542
27543 \begin_layout Standard
27544
27545 \change_deleted 564990737 1669755802
27546 The ijmpc package is a set of macros that facilitates electronic manuscript
27547  submission to the 
27548 \emph on
27549 International Journal of Modern Physics C
27550 \emph default
27551 .
27552  Similarly, the ijmpd package is for creating manuscripts to be submitted
27553  to the 
27554 \emph on
27555 International Journal of Modern Physics D
27556 \emph default
27557 .
27558  Both journals are published by World Scientific.
27559  The corresponding document classes are named 
27560 \family typewriter
27561 ws-ijmpc.cls
27562 \family default
27563  and 
27564 \family typewriter
27565 ws-ijmpd.cls
27566 \family default
27567 , respectively.
27568  These files, together with instructions for the authors, can be downloaded
27569  from the sites 
27570 \begin_inset Flex URL
27571 status collapsed
27572
27573 \begin_layout Plain Layout
27574
27575 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
27576 \end_layout
27577
27578 \end_inset
27579
27580  and 
27581 \begin_inset Flex URL
27582 status collapsed
27583
27584 \begin_layout Plain Layout
27585
27586 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
27587 \end_layout
27588
27589 \end_inset
27590
27591 .
27592  Both packages are modified versions of the standard 
27593 \begin_inset Quotes eld
27594 \end_inset
27595
27596 article
27597 \begin_inset Quotes erd
27598 \end_inset
27599
27600  package, and they are almost (but not exactly) identical.
27601  Most of their features are supported by \SpecialChar LyX
27602 .
27603  I have used \SpecialChar LyX
27604  successfully to write articles submitted to both journals
27605  without any problem.
27606 \end_layout
27607
27608 \begin_layout Subsection
27609
27610 \change_deleted 564990737 1669755802
27611 Writing a paper
27612 \end_layout
27613
27614 \begin_layout Standard
27615
27616 \change_deleted 564990737 1669755802
27617 As usual, the easiest way to write a paper is to start with a template.
27618  Click on 
27619 \family sans
27620 File\SpecialChar menuseparator
27621 New from
27622 \family default
27623  
27624 \family sans
27625 Template
27626 \family default
27627 , then choose the 
27628 \family typewriter
27629 ijmpc.lyx
27630 \family default
27631  or 
27632 \family typewriter
27633 ijmpd.lyx
27634 \family default
27635  template.
27636  This will give an (almost) empty document that includes the most common
27637  fields found in a manuscript.
27638  Simply overwrite the existing text (including the brackets, 
27639 \family typewriter
27640 <>
27641 \family default
27642 ) with your text.
27643  You should keep in mind the following remarks.
27644 \end_layout
27645
27646 \begin_layout Enumerate
27647
27648 \change_deleted 564990737 1669755802
27649 \SpecialChar LyX
27650  won't let you change the font size and the page style of the document,
27651  because such modifications are not allowed by both packages.
27652 \end_layout
27653
27654 \begin_layout Enumerate
27655
27656 \change_deleted 564990737 1669755802
27657 The language of the document should not be changed.
27658  Before previewing your paper, be sure that the babel package is not used.
27659  To do this, click on 
27660 \begin_inset Info
27661 type  "menu"
27662 arg   "dialog-show document"
27663 \end_inset
27664
27665  
27666 \family sans
27667 \SpecialChar menuseparator
27668 Language
27669 \family default
27670 , and select 
27671 \begin_inset Quotes eld
27672 \end_inset
27673
27674 None
27675 \begin_inset Quotes erd
27676 \end_inset
27677
27678  as 
27679 \family sans
27680 Language Package
27681 \family default
27682 .
27683 \end_layout
27684
27685 \begin_layout Enumerate
27686
27687 \change_deleted 564990737 1669755802
27688 The 
27689 \begin_inset Quotes eld
27690 \end_inset
27691
27692 Keywords
27693 \begin_inset Quotes erd
27694 \end_inset
27695
27696  style must be used to define keywords.
27697 \end_layout
27698
27699 \begin_layout Enumerate
27700
27701 \change_deleted 564990737 1669755802
27702 The ijmpc package provides a style named 
27703 \begin_inset Quotes eld
27704 \end_inset
27705
27706 Classification Codes
27707 \begin_inset Quotes erd
27708 \end_inset
27709
27710 , which can be used to define classification codes, such as PACS numbers.
27711  Note that this facility is not supported by the ijmpd package.
27712 \end_layout
27713
27714 \begin_layout Enumerate
27715
27716 \change_deleted 564990737 1669755802
27717 Several new environments are available: 
27718 \begin_inset Quotes eld
27719 \end_inset
27720
27721 Definition
27722 \begin_inset Quotes erd
27723 \end_inset
27724
27725
27726 \begin_inset Quotes eld
27727 \end_inset
27728
27729 Step
27730 \begin_inset Quotes erd
27731 \end_inset
27732
27733
27734 \begin_inset Quotes eld
27735 \end_inset
27736
27737 Example
27738 \begin_inset Quotes erd
27739 \end_inset
27740
27741
27742 \begin_inset Quotes eld
27743 \end_inset
27744
27745 Remark
27746 \begin_inset Quotes erd
27747 \end_inset
27748
27749
27750 \begin_inset Quotes eld
27751 \end_inset
27752
27753 Notation
27754 \begin_inset Quotes erd
27755 \end_inset
27756
27757
27758 \begin_inset Quotes eld
27759 \end_inset
27760
27761 Theorem
27762 \begin_inset Quotes erd
27763 \end_inset
27764
27765
27766 \begin_inset Quotes eld
27767 \end_inset
27768
27769 Proof
27770 \begin_inset Quotes erd
27771 \end_inset
27772
27773
27774 \begin_inset Quotes eld
27775 \end_inset
27776
27777 Corollary
27778 \begin_inset Quotes erd
27779 \end_inset
27780
27781
27782 \begin_inset Quotes eld
27783 \end_inset
27784
27785 Lemma
27786 \begin_inset Quotes erd
27787 \end_inset
27788
27789
27790 \begin_inset Quotes eld
27791 \end_inset
27792
27793 Proposition
27794 \begin_inset Quotes erd
27795 \end_inset
27796
27797
27798 \begin_inset Quotes eld
27799 \end_inset
27800
27801 Prop
27802 \begin_inset Quotes erd
27803 \end_inset
27804
27805
27806 \begin_inset Quotes eld
27807 \end_inset
27808
27809 Question
27810 \begin_inset Quotes erd
27811 \end_inset
27812
27813
27814 \begin_inset Quotes eld
27815 \end_inset
27816
27817 Claim
27818 \begin_inset Quotes erd
27819 \end_inset
27820
27821 , and 
27822 \begin_inset Quotes eld
27823 \end_inset
27824
27825 Conjecture
27826 \begin_inset Quotes erd
27827 \end_inset
27828
27829 .
27830  Their use is more or less obvious.
27831  \SpecialChar LyX
27832  supports all these environments; it will use the proper label, text style,
27833  and numbering scheme for each of them.
27834 \end_layout
27835
27836 \begin_layout Enumerate
27837
27838 \change_deleted 564990737 1669755802
27839 Both packages use basic citations; the natbib package should not be used.
27840  In \SpecialChar LyX
27841 , citation references are shown as usual; in the output, citations are
27842  shown as superscripts.
27843  If you want to use a citation as normal text, you should use the 
27844 \family typewriter
27845 refcite
27846 \family default
27847  command, e.
27848 \begin_inset space \thinspace{}
27849 \end_inset
27850
27851 g.
27852 \begin_inset space \space{}
27853 \end_inset
27854
27855
27856 \begin_inset Quotes eld
27857 \end_inset
27858
27859 See Ref.
27860 \begin_inset space \space{}
27861 \end_inset
27862
27863
27864 \family typewriter
27865
27866 \backslash
27867 refcite{key}
27868 \family default
27869
27870 \begin_inset Quotes erd
27871 \end_inset
27872
27873 .
27874 \end_layout
27875
27876 \begin_layout Enumerate
27877
27878 \change_deleted 564990737 1669755802
27879 There is no 
27880 \begin_inset Quotes eld
27881 \end_inset
27882
27883 Acknowledgments
27884 \begin_inset Quotes erd
27885 \end_inset
27886
27887  section in both packages.
27888  To put acknowledgments, just use the 
27889 \begin_inset Quotes eld
27890 \end_inset
27891
27892 Section*
27893 \begin_inset Quotes erd
27894 \end_inset
27895
27896  environment.
27897 \end_layout
27898
27899 \begin_layout Enumerate
27900
27901 \change_deleted 564990737 1669755802
27902 Appendices may be added to the paper, 
27903 \emph on
27904 after
27905 \emph default
27906  the Acknowledgments and 
27907 \shape italic
27908 before
27909 \shape default
27910  the References.
27911  \SpecialChar LyX
27912  provides a special environment, called 
27913 \begin_inset Quotes eld
27914 \end_inset
27915
27916 Appendices Section
27917 \begin_inset Quotes erd
27918 \end_inset
27919
27920  which marks the beginning of the appendices.
27921  This environment should be left blank; it just sends a \SpecialChar LaTeX
27922  command, but nothing
27923  is really printed.
27924  In \SpecialChar LyX
27925 , the word 
27926 \begin_inset Quotes eld
27927 \end_inset
27928
27929 Appendix
27930 \begin_inset Quotes erd
27931 \end_inset
27932
27933  is printed with blue letters, as a signal that all sections after that
27934  point are appendices.
27935  To write an appendix, use the 
27936 \begin_inset Quotes eld
27937 \end_inset
27938
27939 Appendix
27940 \begin_inset Quotes erd
27941 \end_inset
27942
27943  environment.
27944  \SpecialChar LyX
27945  will number each appendix with capital letters, as required by both journals.
27946  Note that 
27947 \begin_inset Quotes eld
27948 \end_inset
27949
27950 Appendices Section
27951 \begin_inset Quotes erd
27952 \end_inset
27953
27954  
27955 \emph on
27956 must
27957 \emph default
27958  be present before the first appendix; if not, all appendices will be numbered
27959  as normal sections in the output.
27960 \end_layout
27961
27962 \begin_layout Enumerate
27963
27964 \change_deleted 564990737 1669755802
27965 The ijmpc and the ijmpd packages use the 
27966 \family typewriter
27967 tbl
27968 \family default
27969  command to implement table captions.
27970  As a result, a table created by \SpecialChar LyX
27971  is printed correctly, but its caption
27972  is ignored.
27973  However, you can use some \SpecialChar TeX
27974  code to overcome this problem, so that captions
27975  are printed as expected.
27976  To do so, create a float table as usual, remove the caption, and replace
27977  it with the \SpecialChar TeX
27978  code 
27979 \family typewriter
27980
27981 \backslash
27982 tbl{
27983 \emph on
27984 your table caption
27985 \emph default
27986 }{
27987 \family default
27988  (sic); you must also the \SpecialChar TeX
27989  code 
27990 \family typewriter
27991 }
27992 \family default
27993  immediately after the tabular material.
27994  Study the example table included in the template files to see how this
27995  trick is implemented.
27996  Alternatively, If you need table captions, you should implement the whole
27997  table float in a 
27998 \family typewriter
27999 .tex
28000 \family default
28001  file, then include this file to the \SpecialChar LyX
28002  document (
28003 \family sans
28004 Insert\SpecialChar menuseparator
28005 File\SpecialChar menuseparator
28006 Child
28007 \begin_inset space ~
28008 \end_inset
28009
28010 Document
28011 \family default
28012 ).
28013  Details on how to create a table float can be found in the files 
28014 \family typewriter
28015 ws-ijmpc.tex
28016 \family default
28017  and 
28018 \family typewriter
28019 ws-ijmpd.tex
28020 \family default
28021 , included in the corresponding packages.
28022 \end_layout
28023
28024 \begin_layout Subsection
28025
28026 \change_deleted 564990737 1669755802
28027 Preparing a paper for submission
28028 \end_layout
28029
28030 \begin_layout Standard
28031
28032 \change_deleted 564990737 1669755802
28033 Before you submit your paper you must export the \SpecialChar LyX
28034  document as a \SpecialChar LaTeX
28035  file (
28036 \family sans
28037 File\SpecialChar menuseparator
28038 Export\SpecialChar menuseparator
28039 \SpecialChar LaTeX
28040
28041 \family default
28042 )
28043 \begin_inset Foot
28044 status open
28045
28046 \begin_layout Plain Layout
28047 Actually you have the choice between \SpecialChar LaTeX
28048  (plain) and pdflatex.
28049  If you intend to use pdflatex to prepare the paper, you should use the
28050  pdflatex option so that included graphics are converted to PDF format,
28051  ready for use by pdflatex.
28052 \end_layout
28053
28054 \end_inset
28055
28056 , then make the following changes to the resulting 
28057 \family typewriter
28058 .tex
28059 \family default
28060  file.
28061 \end_layout
28062
28063 \begin_layout Enumerate
28064
28065 \change_deleted 564990737 1669755802
28066 Remove the comment lines before the 
28067 \family typewriter
28068
28069 \backslash
28070 documentclass
28071 \family default
28072  command.
28073 \end_layout
28074
28075 \begin_layout Enumerate
28076
28077 \change_deleted 564990737 1669755802
28078 Remove everything between (and including) the 
28079 \family typewriter
28080
28081 \backslash
28082 makeatletter
28083 \family default
28084  and 
28085 \family typewriter
28086
28087 \backslash
28088 makeatother
28089 \family default
28090  commands, except for any commands you specifically put into the \SpecialChar LaTeX
28091  preamble.
28092 \end_layout
28093
28094 \begin_layout Standard
28095
28096 \change_deleted 564990737 1669755802
28097 The modified 
28098 \family typewriter
28099 .tex
28100 \family default
28101  file should be saved and processed through \SpecialChar LaTeX
28102  as many times as necessary.
28103  You may also want to check the resulting 
28104 \family typewriter
28105 .dvi
28106 \family default
28107  document.
28108 \change_unchanged
28109
28110 \end_layout
28111
28112 \begin_layout Section
28113
28114 \change_deleted 564990737 1669801478
28115 iopart
28116 \end_layout
28117
28118 \begin_layout Standard
28119
28120 \change_deleted 564990737 1669801478
28121 by 
28122 \noun on
28123 Uwe Stöhr
28124 \end_layout
28125
28126 \begin_layout Subsection
28127
28128 \change_deleted 564990737 1669801478
28129 Overview
28130 \end_layout
28131
28132 \begin_layout Standard
28133
28134 \change_deleted 564990737 1669801478
28135 The iopart package provides a document class to create electronic manuscript
28136  submission to the journals published by the Institute of Physics.
28137  Instructions for the authors how to create a paper using the iopart class
28138  can be downloaded together with the iopart package from the site 
28139 \begin_inset Flex URL
28140 status collapsed
28141
28142 \begin_layout Plain Layout
28143
28144 ftp://ftp.iop.org/pub/journals/latex2e
28145 \end_layout
28146
28147 \end_inset
28148
28149 .
28150 \end_layout
28151
28152 \begin_layout Subsection
28153
28154 \change_deleted 564990737 1669801478
28155 Writing a paper
28156 \end_layout
28157
28158 \begin_layout Standard
28159
28160 \change_deleted 564990737 1669801478
28161 The easiest way to write a paper is to start with the template 
28162 \emph on
28163 IOP-article.lyx
28164 \emph default
28165  that is available via 
28166 \family sans
28167 File\SpecialChar menuseparator
28168 New From Template
28169 \family default
28170  The template explains how to use the special text environments.
28171  Here are the most important advices:
28172 \end_layout
28173
28174 \begin_layout Itemize
28175
28176 \change_deleted 564990737 1669801478
28177 To be able to compile your document to a PDF, PS, or DVI, ensure that the
28178  no AMS packages are loaded in 
28179 \family sans
28180 Document\SpecialChar menuseparator
28181 Settings\SpecialChar menuseparator
28182 Math Options
28183 \family default
28184 !
28185 \end_layout
28186
28187 \begin_layout Itemize
28188
28189 \change_deleted 564990737 1669801478
28190
28191 \size normal
28192 The title environment defines the kind of your paper.
28193  So use one of the following environments for the title:
28194 \end_layout
28195
28196 \begin_deeper
28197 \begin_layout Itemize
28198
28199 \change_deleted 564990737 1669801478
28200
28201 \family sans
28202 \size normal
28203 Title
28204 \family default
28205  for a Paper
28206 \end_layout
28207
28208 \begin_layout Itemize
28209
28210 \change_deleted 564990737 1669801478
28211
28212 \family sans
28213 \size normal
28214 Review
28215 \family default
28216  for a Review
28217 \end_layout
28218
28219 \begin_layout Itemize
28220
28221 \change_deleted 564990737 1669801478
28222
28223 \family sans
28224 \size normal
28225 Topical
28226 \family default
28227  for a Topical review
28228 \end_layout
28229
28230 \begin_layout Itemize
28231
28232 \change_deleted 564990737 1669801478
28233
28234 \family sans
28235 \size normal
28236 Comment
28237 \family default
28238  for a Comment
28239 \end_layout
28240
28241 \begin_layout Itemize
28242
28243 \change_deleted 564990737 1669801478
28244
28245 \family sans
28246 \size normal
28247 Note
28248 \family default
28249  for a Note
28250 \end_layout
28251
28252 \begin_layout Itemize
28253
28254 \change_deleted 564990737 1669801478
28255
28256 \family sans
28257 \size normal
28258 Paper
28259 \family default
28260  for a Paper (same as Title)
28261 \end_layout
28262
28263 \begin_layout Itemize
28264
28265 \change_deleted 564990737 1669801478
28266
28267 \family sans
28268 \size normal
28269 Prelim
28270 \family default
28271  for a Preliminary communication
28272 \end_layout
28273
28274 \begin_layout Itemize
28275
28276 \change_deleted 564990737 1669801478
28277
28278 \family sans
28279 \size normal
28280 Rapid
28281 \family default
28282  for a Rapid communication
28283 \end_layout
28284
28285 \begin_layout Itemize
28286
28287 \change_deleted 564990737 1669801478
28288
28289 \family sans
28290 \size normal
28291 Letter
28292 \family default
28293  for a Letter to the editor
28294 \end_layout
28295
28296 \end_deeper
28297 \begin_layout Itemize
28298
28299 \change_deleted 564990737 1669801478
28300
28301 \size normal
28302 All title environments except of 
28303 \family sans
28304 Letter
28305 \family default
28306  can have an optional short title.
28307 \end_layout
28308
28309 \begin_layout Itemize
28310
28311 \change_deleted 564990737 1669801478
28312 There is a general title environment 
28313 \family sans
28314 Article
28315 \family default
28316  which is not directly supported by \SpecialChar LyX
28317 .
28318  This can be used as \SpecialChar TeX
28319  code when your document doesn't fit into one of the
28320  other title types.
28321 \end_layout
28322
28323 \begin_layout Standard
28324
28325 \change_deleted 564990737 1669801478
28326 For more informations like hints for special table and formula formatting,
28327  look at the IOP author guidelines.
28328 \change_unchanged
28329
28330 \end_layout
28331
28332 \begin_layout Section
28333
28334 \change_deleted 564990737 1670317155
28335 Kluwer
28336 \end_layout
28337
28338 \begin_layout Standard
28339
28340 \change_deleted 564990737 1670317155
28341 by 
28342 \noun on
28343 Panayotis Papasotiriou
28344 \end_layout
28345
28346 \begin_layout Subsection
28347
28348 \change_deleted 564990737 1670317155
28349 Overview
28350 \end_layout
28351
28352 \begin_layout Standard
28353
28354 \change_deleted 564990737 1670317155
28355 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
28356  that facilitates electronic manuscript submission to the journals they
28357  publish.
28358  Most known of them (at least in my domain of interest) are 
28359 \emph on
28360 Astrophysics and Space Science
28361 \emph default
28362  and 
28363 \emph on
28364 Solar Physics
28365 \emph default
28366 , but there are many others (see a complete list at 
28367 \begin_inset Flex URL
28368 status collapsed
28369
28370 \begin_layout Plain Layout
28371
28372 http://www.wkap.nl/jrnllist.htm/JRNLHOME
28373 \end_layout
28374
28375 \end_inset
28376
28377 ).
28378  The Kluwer package may be downloaded from the site 
28379 \begin_inset Flex URL
28380 status collapsed
28381
28382 \begin_layout Plain Layout
28383
28384 http://www.wkap.nl/kaphtml.htm/STYLEFILES
28385 \end_layout
28386
28387 \end_inset
28388
28389 .
28390  A complete user guide is contained in that package (but it can also be
28391  downloaded separately).
28392 \end_layout
28393
28394 \begin_layout Standard
28395
28396 \change_deleted 564990737 1670317155
28397 \SpecialChar LyX
28398  supports many features of the package but not everything.
28399  However, the \SpecialChar TeX
28400  code needed is reduced to some 
28401 \begin_inset Quotes eld
28402 \end_inset
28403
28404 peculiar
28405 \begin_inset Quotes erd
28406 \end_inset
28407
28408  commands of the package (see
28409 \begin_inset space ~
28410 \end_inset
28411
28412
28413 \begin_inset CommandInset ref
28414 LatexCommand ref
28415 reference "subsec:kluwer_peculiarities"
28416
28417 \end_inset
28418
28419 ).
28420  I have recently used \SpecialChar LyX
28421  to write an article submitted to the 
28422 \emph on
28423 Astrophysics and Space Science
28424 \emph default
28425  without any problem.
28426 \end_layout
28427
28428 \begin_layout Subsection
28429
28430 \change_deleted 564990737 1670317155
28431 Writing a paper
28432 \end_layout
28433
28434 \begin_layout Standard
28435
28436 \change_deleted 564990737 1670317155
28437 The easiest way to write a paper is to start with the Kluwer template file.
28438  Click on 
28439 \family sans
28440 File\SpecialChar menuseparator
28441 New from
28442 \family default
28443  
28444 \family sans
28445 Template
28446 \family default
28447 , then choose the 
28448 \family typewriter
28449 kluwer.lyx
28450 \family default
28451  template.
28452  This will give an (almost) empty document that includes the most common
28453  fields found in a manuscript and a short description of their use.
28454  As in most templates, simply overwrite the existing text (including the
28455  brackets, 
28456 \family typewriter
28457 <>
28458 \family default
28459 ) with the correct information.
28460 \end_layout
28461
28462 \begin_layout Subsection
28463
28464 \change_deleted 564990737 1670317155
28465 Preparing a paper for submission
28466 \end_layout
28467
28468 \begin_layout Standard
28469
28470 \change_deleted 564990737 1670317155
28471 As in the AAS\SpecialChar TeX
28472  package, before you submit your paper to a journal you must
28473  
28474 \begin_inset Quotes eld
28475 \end_inset
28476
28477 postprocess
28478 \begin_inset Quotes erd
28479 \end_inset
28480
28481  it as follows.
28482 \end_layout
28483
28484 \begin_layout Enumerate
28485
28486 \change_deleted 564990737 1670317155
28487 Export your paper as a \SpecialChar LaTeX
28488  file.
28489  To do this, click on 
28490 \family sans
28491 File\SpecialChar menuseparator
28492 Export\SpecialChar menuseparator
28493 \SpecialChar LaTeX
28494
28495 \family default
28496 .
28497  
28498 \end_layout
28499
28500 \begin_layout Enumerate
28501
28502 \change_deleted 564990737 1670317155
28503 Edit the resulting 
28504 \family typewriter
28505 .tex
28506 \family default
28507  file with a text editor and make the following changes
28508 \end_layout
28509
28510 \begin_deeper
28511 \begin_layout Enumerate
28512
28513 \change_deleted 564990737 1670317155
28514 remove the comment lines before the 
28515 \family typewriter
28516
28517 \backslash
28518 documentclass
28519 \family default
28520  command,
28521 \end_layout
28522
28523 \begin_layout Enumerate
28524
28525 \change_deleted 564990737 1670317155
28526 remove everything between (and including) the 
28527 \family typewriter
28528
28529 \backslash
28530 makeatletter
28531 \family default
28532  and 
28533 \family typewriter
28534
28535 \backslash
28536 makeatother
28537 \family default
28538  commands, except for any commands you specifically put into the \SpecialChar LaTeX
28539  preamble.
28540 \end_layout
28541
28542 \begin_layout Standard
28543
28544 \change_deleted 564990737 1670317155
28545 Save the resulting 
28546 \family typewriter
28547 .tex
28548 \family default
28549  file.
28550 \end_layout
28551
28552 \end_deeper
28553 \begin_layout Enumerate
28554
28555 \change_deleted 564990737 1670317155
28556 Run the 
28557 \family typewriter
28558 .tex
28559 \family default
28560  file through \SpecialChar LaTeX
28561  as many times as necessary (usually up to three).
28562 \end_layout
28563
28564 \begin_layout Enumerate
28565
28566 \change_deleted 564990737 1670317155
28567 View the resulting 
28568 \family typewriter
28569 .dvi
28570 \family default
28571  document using, e.
28572 \begin_inset space \thinspace{}
28573 \end_inset
28574
28575 g.
28576 \begin_inset space \space{}
28577 \end_inset
28578
28579
28580 \family sans
28581 xdvi
28582 \family default
28583 , and check if everything is OK (it should, if you didn't make any mistake).
28584 \end_layout
28585
28586 \begin_layout Subsection
28587
28588 \change_deleted 564990737 1670317155
28589 \begin_inset Quotes eld
28590 \end_inset
28591
28592 Peculiarities
28593 \begin_inset Quotes erd
28594 \end_inset
28595
28596  of the Kluwer package
28597 \begin_inset CommandInset label
28598 LatexCommand label
28599 name "subsec:kluwer_peculiarities"
28600
28601 \end_inset
28602
28603
28604 \end_layout
28605
28606 \begin_layout Standard
28607
28608 \change_deleted 564990737 1670317155
28609 The Kluwer package has the following 
28610 \begin_inset Quotes eld
28611 \end_inset
28612
28613 peculiarities
28614 \begin_inset Quotes erd
28615 \end_inset
28616
28617 .
28618 \end_layout
28619
28620 \begin_layout Enumerate
28621
28622 \change_deleted 564990737 1670317155
28623 It is possible to write multiple articles in the same \SpecialChar LaTeX
28624  file
28625 \begin_inset Foot
28626 status collapsed
28627
28628 \begin_layout Plain Layout
28629 I can't imagine any good reason to do this.
28630 \end_layout
28631
28632 \end_inset
28633
28634 .
28635  Each article must be included in the environment 
28636 \begin_inset Quotes eld
28637 \end_inset
28638
28639 article
28640 \begin_inset Quotes erd
28641 \end_inset
28642
28643 .
28644  Unfortunately, this environment cannot be omitted, even if you write just
28645  one article.
28646  Therefore, each article starts with the command 
28647 \family typewriter
28648
28649 \backslash
28650 begin{article}
28651 \family default
28652  and, obviously, ends with the command 
28653 \family typewriter
28654
28655 \backslash
28656 end{article}
28657 \family default
28658 .
28659  Although this can be implemented in \SpecialChar LyX
28660 , I didn't included it, since it looks
28661  ugly and can confuse the novice user.
28662  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
28663  code (the
28664  well-known 
28665 \begin_inset Quotes eld
28666 \end_inset
28667
28668 \SpecialChar TeX
28669  code
28670 \begin_inset Quotes erd
28671 \end_inset
28672
28673 ).
28674 \end_layout
28675
28676 \begin_layout Enumerate
28677
28678 \change_deleted 564990737 1670317155
28679 Information given at the beginning of the article (i.
28680 \begin_inset space \thinspace{}
28681 \end_inset
28682
28683 e.
28684 \begin_inset space \space{}
28685 \end_inset
28686
28687 title, subtitle, author, institution, running title, running author, abstract
28688  and keywords) must be included in an environment called 
28689 \begin_inset Quotes eld
28690 \end_inset
28691
28692 opening
28693 \begin_inset Quotes erd
28694 \end_inset
28695
28696 .
28697  This is not implemented in \SpecialChar LyX
28698 , so you must enter title, subtitle etc.
28699 \begin_inset space ~
28700 \end_inset
28701
28702 between two \SpecialChar TeX
28703  code lines (
28704 \family typewriter
28705
28706 \backslash
28707 begin{opening}
28708 \family default
28709  and 
28710 \family typewriter
28711
28712 \backslash
28713 end{opening}
28714 \family default
28715 ).
28716 \end_layout
28717
28718 \begin_layout Enumerate
28719
28720 \change_deleted 564990737 1670317155
28721 According to the user manual, the label of each bibliography item must be
28722  written as 
28723 \family typewriter
28724
28725 \backslash
28726 protect
28727 \backslash
28728 citeauthoryear{
28729 \family default
28730 \emph on
28731 author(s)
28732 \family typewriter
28733 \emph default
28734 }{
28735 \family default
28736 \emph on
28737 year
28738 \family typewriter
28739 \emph default
28740 }
28741 \family default
28742 .
28743 \end_layout
28744
28745 \begin_layout Standard
28746
28747 \change_deleted 564990737 1670317155
28748 The 
28749 \family typewriter
28750 kluwer.lyx
28751 \family default
28752  template takes care of all these 
28753 \begin_inset Quotes eld
28754 \end_inset
28755
28756 peculiarities
28757 \begin_inset Quotes erd
28758 \end_inset
28759
28760 .
28761  If you start a new paper using this template you don't need to do anything
28762  special.
28763  Just 
28764 \end_layout
28765
28766 \begin_layout Enumerate
28767
28768 \change_deleted 564990737 1670317155
28769 don't delete the \SpecialChar TeX
28770  code included in the template, and
28771 \end_layout
28772
28773 \begin_layout Enumerate
28774
28775 \change_deleted 564990737 1670317155
28776 copy the example bibliography item included in the template and modify it
28777  as necessary to enter new bibliography items.
28778 \end_layout
28779
28780 \begin_layout Section
28781
28782 \change_deleted 564990737 1671097446
28783 Paper
28784 \end_layout
28785
28786 \begin_layout Standard
28787
28788 \change_deleted 564990737 1671097446
28789 The document class 
28790 \family sans
28791 paper
28792 \family default
28793  provides an alternative to the standard 
28794 \family sans
28795 article
28796 \family default
28797  class.
28798  It provides similar functionality, but you might prefer this layout with
28799  sans serif sections, headings, and more.
28800 \end_layout
28801
28802 \begin_layout Section
28803
28804 \change_deleted 564990737 1671097446
28805 Springer Journals (
28806 \family sans
28807 svjour
28808 \family default
28809 )
28810 \end_layout
28811
28812 \begin_layout Standard
28813
28814 \change_deleted 564990737 1671097446
28815 by 
28816 \noun on
28817 Martin Vermeer
28818 \end_layout
28819
28820 \begin_layout Subsection
28821
28822 \change_deleted 564990737 1671097446
28823 Description
28824 \end_layout
28825
28826 \begin_layout Standard
28827
28828 \change_deleted 564990737 1671097446
28829 These are the layout files for some of the journal formats used by Springer
28830  Verlag and listed on 
28831 \begin_inset Flex URL
28832 status collapsed
28833
28834 \begin_layout Plain Layout
28835
28836 http://www.springer.de/author/tex/help-journals.html
28837 \end_layout
28838
28839 \end_inset
28840
28841 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
28842  now!).
28843  It is a modular system: the things common to all journals are implemented
28844  in 
28845 \family typewriter
28846 svjour.inc
28847 \family default
28848 , which journal-specific layout files (such as, e.
28849 \begin_inset space \thinspace{}
28850 \end_inset
28851
28852 g.
28853 \begin_inset space \space{}
28854 \end_inset
28855
28856
28857 \family typewriter
28858 svjog.layout
28859 \family default
28860  for Journal of Geodesy) can include.
28861 \end_layout
28862
28863 \begin_layout Standard
28864
28865 \change_deleted 564990737 1671097446
28866 This means that implementing support for any other Springer journal on this
28867  list is as simple as writing your own 
28868 \family typewriter
28869 sv
28870 \family default
28871 <myjournal>
28872 \family typewriter
28873 .layout
28874 \family default
28875  file following the outline given in 
28876 \family typewriter
28877 svjog.layout
28878 \family default
28879 .
28880  
28881 \end_layout
28882
28883 \begin_layout Standard
28884
28885 \change_deleted 564990737 1671097446
28886 It is reasonably well tested only for the Journal of Geodesy.
28887  
28888 \family typewriter
28889 svjour
28890 \family default
28891  and 
28892 \family typewriter
28893 svjog
28894 \family default
28895  come with the standard \SpecialChar LyX
28896  distribution.
28897  Install the relevant class file (downloaded from Springer) in a proper
28898  directory, reconfigure \SpecialChar LaTeX
28899  (in the te\SpecialChar TeX
28900  case by running 
28901 \family typewriter
28902 texhash
28903 \family default
28904 , as root if necessary — doesn't \SpecialChar LyX
28905  take care of this?), reconfigure \SpecialChar LyX
28906  and
28907  it should work.
28908 \end_layout
28909
28910 \begin_layout Subsection
28911
28912 \change_deleted 564990737 1671097446
28913 New styles
28914 \end_layout
28915
28916 \begin_layout Standard
28917
28918 \change_deleted 564990737 1671097446
28919 A large number of theorem-like styles — 
28920 \family sans
28921 Claim, Conjecture,
28922 \family default
28923  
28924 \family sans
28925 \SpecialChar ldots
28926 Theorem
28927 \family default
28928 .
28929 \end_layout
28930
28931 \begin_layout Standard
28932
28933 \change_deleted 564990737 1671097446
28934
28935 \family sans
28936 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
28937 _Title, Author_Running, Institute,
28938  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
28939 \family default
28940 .
28941  See the Springer class file documentation for details.
28942 \end_layout
28943
28944 \begin_layout Subsection
28945
28946 \change_deleted 564990737 1671097446
28947 Supported journals
28948 \end_layout
28949
28950 \begin_layout Itemize
28951
28952 \change_deleted 564990737 1671097446
28953
28954 \emph on
28955 Journal of Geodesy
28956 \emph default
28957
28958 \family typewriter
28959 svjog.layout
28960 \family default
28961  — Martin Vermeer
28962 \end_layout
28963
28964 \begin_layout Itemize
28965
28966 \change_deleted 564990737 1671097446
28967
28968 \emph on
28969 Probability Theory and Related Fields
28970 \emph default
28971
28972 \family typewriter
28973 svprobth.layout
28974 \family default
28975  — Jean-Marc Lasgouttes
28976 \end_layout
28977
28978 \begin_layout Standard
28979
28980 \change_deleted 564990737 1671097446
28981 Add your own, it isn't so hard!
28982 \end_layout
28983
28984 \begin_layout Subsection
28985
28986 \change_deleted 564990737 1671097446
28987 Credits
28988 \end_layout
28989
28990 \begin_layout Standard
28991
28992 \change_deleted 564990737 1671097446
28993 These files are partly based on the older 
28994 \family typewriter
28995 ejour2.layout
28996 \family default
28997 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
28998  2.09 style
28999  file from Springer.
29000  All this, and the 
29001 \family typewriter
29002 ejour2
29003 \family default
29004  layout, are now defunct.
29005  Jean-Marc Lasgouttes helped out big in making me find my way around the
29006  \SpecialChar LyX
29007  layout file mechanism.
29008 \end_layout
29009
29010 \begin_layout Subsection
29011
29012 \change_deleted 564990737 1671097446
29013 Bugs
29014 \end_layout
29015
29016 \begin_layout Standard
29017
29018 \change_deleted 564990737 1671097446
29019 Probably.
29020  But probably less than in the old hacked-\SpecialChar LaTeX
29021  
29022 \family typewriter
29023 ejour2
29024 \family default
29025 .
29026 \end_layout
29027
29028 \begin_layout Chapter
29029 \SpecialChar LyX
29030  Features needing Extra Software
29031 \end_layout
29032
29033 \begin_layout Section
29034 Checking \SpecialChar TeX
29035
29036 \end_layout
29037
29038 \begin_layout Standard
29039 by 
29040 \noun on
29041 Asger Alstrup
29042 \end_layout
29043
29044 \begin_layout Subsection
29045 Introduction
29046 \end_layout
29047
29048 \begin_layout Standard
29049 If you have the 
29050 \family typewriter
29051 chktex
29052 \family default
29053  program installed
29054 \begin_inset Foot
29055 status collapsed
29056
29057 \begin_layout Plain Layout
29058
29059 \family typewriter
29060 chktex
29061 \family default
29062  is not yet available when you are using the \SpecialChar LaTeX
29063  distribution MiK\SpecialChar TeX
29064 .
29065 \end_layout
29066
29067 \end_inset
29068
29069 , you'll find in the 
29070 \family sans
29071 Tools
29072 \family default
29073  menu the entry: 
29074 \family sans
29075 Check
29076 \begin_inset space ~
29077 \end_inset
29078
29079 TeX
29080 \family default
29081 .
29082  You can get 
29083 \family typewriter
29084 chktex
29085 \family default
29086  from CTAN,
29087 \begin_inset Newline newline
29088 \end_inset
29089
29090
29091 \begin_inset CommandInset href
29092 LatexCommand href
29093 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
29094 literal "false"
29095
29096 \end_inset
29097
29098 .
29099 \end_layout
29100
29101 \begin_layout Standard
29102 The 
29103 \family sans
29104 Chk\SpecialChar TeX
29105
29106 \family default
29107  package is a program that was written by 
29108 \begin_inset Flex Noun
29109 status collapsed
29110
29111 \begin_layout Plain Layout
29112 Jens T.
29113 \begin_inset space ~
29114 \end_inset
29115
29116 Berger Thielemann
29117 \end_layout
29118
29119 \end_inset
29120
29121  in frustration because some constructs in \SpecialChar LaTeX
29122  are sometimes non-intuitive,
29123  and easy to forget.
29124  The program runs over your \SpecialChar LaTeX
29125  file, checks the integrity of the file, and
29126  flags some common errors.
29127  In other technical words, it is 
29128 \family typewriter
29129 lint
29130 \family default
29131  for \SpecialChar LaTeX
29132 .
29133 \end_layout
29134
29135 \begin_layout Standard
29136 Well, what is a syntax checker doing in \SpecialChar LyX
29137  which is supposed to produce correct
29138  \SpecialChar LaTeX
29139  anyways? The answer is simple: Just as 
29140 \family typewriter
29141 Lint
29142 \family default
29143  not only checks the 
29144 \emph on
29145 syntax
29146 \emph default
29147  of C programs, but also does 
29148 \emph on
29149 semantic
29150 \emph default
29151  checks for type-errors, 
29152 \family sans
29153 Chk\SpecialChar TeX
29154
29155 \family default
29156  catches some common 
29157 \emph on
29158 typographic
29159 \emph default
29160  errors, in addition to the syntactical ones.
29161  Specifically, 
29162 \family sans
29163 Chk\SpecialChar TeX
29164
29165 \family default
29166  is capable of detecting several common errors, such as
29167 \end_layout
29168
29169 \begin_layout Itemize
29170 Ellipsis detection:
29171 \begin_inset Newline newline
29172 \end_inset
29173
29174 Use \SpecialChar ldots
29175  instead of ...
29176 \end_layout
29177
29178 \begin_layout Itemize
29179 No space in front of/after parenthesis:
29180 \begin_inset Newline newline
29181 \end_inset
29182
29183 ( wrong spacing )
29184 \end_layout
29185
29186 \begin_layout Itemize
29187 Enforcement of normal space after common abbreviations:
29188 \begin_inset Newline newline
29189 \end_inset
29190
29191 e.
29192 \begin_inset space \thinspace{}
29193 \end_inset
29194
29195 g.
29196 \begin_inset space \space{}
29197 \end_inset
29198
29199 is too wide spacing.
29200 \end_layout
29201
29202 \begin_layout Itemize
29203 Enforcement of end-of-sentence space when the last sentence ends with a
29204  capital letter:
29205 \begin_inset Newline newline
29206 \end_inset
29207
29208 This is a TEST.
29209  And this is wrong spacing.
29210 \end_layout
29211
29212 \begin_layout Itemize
29213 Space in front of labels and similar commands:
29214 \begin_inset Newline newline
29215 \end_inset
29216
29217 The label should stick right up to the text to avoid falling to a wrong
29218  page.
29219  
29220 \begin_inset CommandInset label
29221 LatexCommand label
29222 name "sec:chktex"
29223
29224 \end_inset
29225
29226  
29227 \begin_inset Foot
29228 status collapsed
29229
29230 \begin_layout Plain Layout
29231 This footnote is in danger of falling off to a wrong page
29232 \end_layout
29233
29234 \end_inset
29235
29236  The label is separated too much.
29237 \end_layout
29238
29239 \begin_layout Itemize
29240 Space in front of references, instead of hard spaces:
29241 \begin_inset Newline newline
29242 \end_inset
29243
29244 If you have bad luck, the text will break right between the referenced text
29245  and reference number, and that's a pity.
29246  See section 
29247 \begin_inset CommandInset ref
29248 LatexCommand ref
29249 reference "sec:chktex"
29250
29251 \end_inset
29252
29253 .
29254 \end_layout
29255
29256 \begin_layout Itemize
29257 Use of 
29258 \begin_inset Quotes eld
29259 \end_inset
29260
29261 x
29262 \begin_inset Quotes erd
29263 \end_inset
29264
29265  instead of 
29266 \begin_inset Formula $\times$
29267 \end_inset
29268
29269  between numbers:
29270 \begin_inset Newline newline
29271 \end_inset
29272
29273 2x2 looks cheap compared to 
29274 \begin_inset Formula $2\times2$
29275 \end_inset
29276
29277 .
29278 \end_layout
29279
29280 \begin_layout Standard
29281 and more \SpecialChar ldots
29282  It is an invaluable tool when you are 
29283 \begin_inset Quotes eld
29284 \end_inset
29285
29286 finishing up
29287 \begin_inset Quotes erd
29288 \end_inset
29289
29290  your document before printing, and you should run it right after the obligatory
29291  spelling check, and before you go fine tuning the typesetting.
29292 \end_layout
29293
29294 \begin_layout Subsection
29295 How to use it
29296 \end_layout
29297
29298 \begin_layout Standard
29299 If you have the program installed, usage is as simple as choosing 
29300 \family sans
29301 Tools\SpecialChar menuseparator
29302 Check
29303 \begin_inset space ~
29304 \end_inset
29305
29306 TeX
29307 \family default
29308 .
29309  This will make \SpecialChar LyX
29310  generate a \SpecialChar LaTeX
29311  file of your document, start 
29312 \family sans
29313 Chk\SpecialChar TeX
29314
29315 \family default
29316  to check it, and then make \SpecialChar LyX
29317  insert 
29318 \begin_inset Quotes eld
29319 \end_inset
29320
29321 error boxes
29322 \begin_inset Quotes erd
29323 \end_inset
29324
29325  with the warnings from 
29326 \family sans
29327 Chk\SpecialChar TeX
29328
29329 \family default
29330 , if there were any.
29331  The warnings will be placed close to the point of the mistake, and you
29332  can quickly find them by using the 
29333 \family sans
29334 Navigate\SpecialChar menuseparator
29335 Error
29336 \family default
29337  menu item, or the shortcut key 
29338 \family sans
29339 C-g
29340 \family default
29341  from the default 
29342 \family typewriter
29343 cua
29344 \family default
29345  bind file.
29346  Open the error boxes by clicking on them with the mouse, or use the shortcut
29347  key 
29348 \family sans
29349 C-i
29350 \family default
29351  from 
29352 \family typewriter
29353 cua
29354 \family default
29355  bindings, or the corresponding 
29356 \family sans
29357 C-o
29358 \family default
29359  for the alternate 
29360 \family typewriter
29361 emacs
29362 \family default
29363  bind file.
29364  Read the warning and correct the mistake, if it is a mistake.
29365  If you have trouble understanding what the warning is about, you can safely
29366  ignore it.
29367  Remember that there is a hidden layer between the document on screen and
29368  the technical details in invoking 
29369 \family sans
29370 Chk\SpecialChar TeX
29371
29372 \family default
29373 , and this gap can make some warnings seem arcane or just plain silly.
29374 \end_layout
29375
29376 \begin_layout Standard
29377 This document is an excellent testing bed for the feature, and it should
29378  provide quite a few warnings for you to fiddle with.
29379  Since computers are only so smart, expect most of the warnings to be false
29380  alarms, though.
29381 \end_layout
29382
29383 \begin_layout Subsection
29384 How to fine tune it
29385 \end_layout
29386
29387 \begin_layout Standard
29388 Sometimes, you'll find that 
29389 \family sans
29390 Chk\SpecialChar TeX
29391
29392 \family default
29393  makes more noise than suits your mood.
29394  Then you can choose not to use it, wait until your mood changes, or try
29395  to customize 
29396 \family sans
29397 Chk\SpecialChar TeX
29398
29399 \family default
29400  to get better along with you.
29401 \end_layout
29402
29403 \begin_layout Standard
29404 Although 
29405 \family sans
29406 Chk\SpecialChar TeX
29407
29408 \family default
29409  
29410 \emph on
29411 is
29412 \emph default
29413  very configurable and extensible, you should not expect to solve all problems
29414  with 
29415 \family sans
29416 Chk\SpecialChar TeX
29417
29418 \family default
29419  in \SpecialChar LyX
29420  this way.
29421  Since \SpecialChar LyX
29422  has to generate a somewhat special \SpecialChar LaTeX
29423  file to be able to match the
29424  line numbers from the 
29425 \family sans
29426 Chk\SpecialChar TeX
29427
29428 \family default
29429  output
29430 \begin_inset Foot
29431 status collapsed
29432
29433 \begin_layout Plain Layout
29434 You can inspect the specific output from 
29435 \family sans
29436 chktex
29437 \family default
29438  by using 
29439 \family sans
29440 Document\SpecialChar menuseparator
29441 \SpecialChar LaTeX
29442
29443 \begin_inset space ~
29444 \end_inset
29445
29446 Log
29447 \family default
29448  right after a 
29449 \family sans
29450 chktex
29451 \family default
29452  run.
29453 \end_layout
29454
29455 \end_inset
29456
29457  to the internal document structure, some of the warnings will not appear
29458  correctly.
29459  There are two things you can do about this:
29460 \end_layout
29461
29462 \begin_layout Itemize
29463 Fine tune the 
29464 \family sans
29465 Chk\SpecialChar TeX
29466
29467 \family default
29468  invocation command line in 
29469 \begin_inset Flex Noun
29470 status collapsed
29471
29472 \begin_layout Plain Layout
29473 Tools\SpecialChar menuseparator
29474 Preferences\SpecialChar menuseparator
29475 Output\SpecialChar menuseparator
29476 LaTeX\SpecialChar menuseparator
29477 CheckTeX command
29478 \end_layout
29479
29480 \end_inset
29481
29482 , or the global 
29483 \family sans
29484 Chk\SpecialChar TeX
29485
29486 \family default
29487  installation configuration file (usually with the file 
29488 \family typewriter
29489 chktexrc
29490 \family default
29491 ).
29492  See below to learn what warnings can be enabled and disabled on the command
29493  line.
29494 \end_layout
29495
29496 \begin_layout Itemize
29497 Export your document as a raw \SpecialChar LaTeX
29498  file using 
29499 \family sans
29500 File\SpecialChar menuseparator
29501 Export\SpecialChar menuseparator
29502 \SpecialChar LaTeX
29503
29504 \family default
29505  and run 
29506 \family typewriter
29507 chktex
29508 \family default
29509  manually on that.
29510  Invoked in this way, it can be a hassle to find the corresponding place
29511  in the document inside \SpecialChar LyX
29512 , but with a little patience, you should be able
29513  to do it.
29514 \end_layout
29515
29516 \begin_layout Standard
29517 Here follows the warning messages that can be enabled and disabled in 
29518 \family sans
29519 Preferences
29520 \family default
29521 .
29522  Use 
29523 \family typewriter
29524 -n#
29525 \family default
29526  to disable a warning, and 
29527 \family typewriter
29528 -w#
29529 \family default
29530  to enable a warning.
29531  The emphasized entries are disabled by default, because the default is
29532  "
29533 \family typewriter
29534 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
29535 \family default
29536 ".
29537 \end_layout
29538
29539 \begin_layout Standard
29540 Notice that you should only use the options that enable and disable warnings,
29541  because \SpecialChar LyX
29542  relies on some of the other command line parameters to be set
29543  in a specific way to have a chance to communicate with 
29544 \family typewriter
29545 chktex
29546 \family default
29547 .
29548 \end_layout
29549
29550 \begin_layout Enumerate
29551
29552 \size small
29553 \emph on
29554 Command terminated with space.
29555 \end_layout
29556
29557 \begin_layout Enumerate
29558
29559 \size small
29560 Non-breaking space (
29561 \begin_inset Quotes eld
29562 \end_inset
29563
29564
29565 \family typewriter
29566 ~
29567 \family default
29568
29569 \begin_inset Quotes erd
29570 \end_inset
29571
29572 ) should have been used.
29573 \end_layout
29574
29575 \begin_layout Enumerate
29576
29577 \size small
29578 \emph on
29579 You should enclose the previous parenthesis with 
29580 \begin_inset Quotes eld
29581 \end_inset
29582
29583
29584 \family typewriter
29585 {}
29586 \family default
29587
29588 \begin_inset Quotes erd
29589 \end_inset
29590
29591 .
29592 \end_layout
29593
29594 \begin_layout Enumerate
29595
29596 \size small
29597 Italic correction (
29598 \begin_inset Quotes eld
29599 \end_inset
29600
29601
29602 \family typewriter
29603
29604 \backslash
29605 /
29606 \family default
29607
29608 \begin_inset Quotes erd
29609 \end_inset
29610
29611 ) found in non-italic buffer.
29612 \end_layout
29613
29614 \begin_layout Enumerate
29615
29616 \size small
29617 Italic correction (
29618 \begin_inset Quotes eld
29619 \end_inset
29620
29621
29622 \family typewriter
29623
29624 \backslash
29625 /
29626 \family default
29627
29628 \begin_inset Quotes erd
29629 \end_inset
29630
29631 ) found more than once.
29632 \end_layout
29633
29634 \begin_layout Enumerate
29635
29636 \size small
29637 \emph on
29638 No italic correction (
29639 \begin_inset Quotes eld
29640 \end_inset
29641
29642
29643 \family typewriter
29644
29645 \backslash
29646 /
29647 \family default
29648
29649 \begin_inset Quotes erd
29650 \end_inset
29651
29652 ) found.
29653 \end_layout
29654
29655 \begin_layout Enumerate
29656
29657 \size small
29658 Accent command 
29659 \begin_inset Quotes eld
29660 \end_inset
29661
29662
29663 \family typewriter
29664 cmd
29665 \family default
29666
29667 \begin_inset Quotes erd
29668 \end_inset
29669
29670  needs use of 
29671 \begin_inset Quotes eld
29672 \end_inset
29673
29674
29675 \family typewriter
29676 cmd
29677 \family default
29678
29679 \begin_inset Quotes erd
29680 \end_inset
29681
29682 .
29683 \end_layout
29684
29685 \begin_layout Enumerate
29686
29687 \size small
29688 Wrong length of dash may have been used.
29689 \end_layout
29690
29691 \begin_layout Enumerate
29692
29693 \size small
29694 \emph on
29695 \begin_inset Quotes eld
29696 \end_inset
29697
29698
29699 \family typewriter
29700 %s
29701 \family default
29702
29703 \begin_inset Quotes erd
29704 \end_inset
29705
29706  expected, found 
29707 \begin_inset Quotes eld
29708 \end_inset
29709
29710
29711 \family typewriter
29712 %s
29713 \family default
29714
29715 \begin_inset Quotes erd
29716 \end_inset
29717
29718 .
29719 \end_layout
29720
29721 \begin_layout Enumerate
29722
29723 \size small
29724 Solo 
29725 \begin_inset Quotes eld
29726 \end_inset
29727
29728
29729 \family typewriter
29730 %s
29731 \family default
29732
29733 \begin_inset Quotes erd
29734 \end_inset
29735
29736  found.
29737 \end_layout
29738
29739 \begin_layout Enumerate
29740
29741 \size small
29742 You should use 
29743 \begin_inset Quotes eld
29744 \end_inset
29745
29746
29747 \family typewriter
29748 %s
29749 \family default
29750
29751 \begin_inset Quotes erd
29752 \end_inset
29753
29754  to achieve an ellipsis.
29755 \end_layout
29756
29757 \begin_layout Enumerate
29758
29759 \size small
29760 Inter-word spacing (
29761 \begin_inset Quotes eld
29762 \end_inset
29763
29764
29765 \family typewriter
29766
29767 \backslash
29768
29769 \family default
29770  
29771 \begin_inset Quotes eld
29772 \end_inset
29773
29774 ) should perhaps be used.
29775 \end_layout
29776
29777 \begin_layout Enumerate
29778
29779 \size small
29780 Inter-sentence spacing (
29781 \begin_inset Quotes eld
29782 \end_inset
29783
29784
29785 \family typewriter
29786
29787 \backslash
29788 @
29789 \family default
29790
29791 \begin_inset Quotes erd
29792 \end_inset
29793
29794 ) should perhaps be used.
29795 \end_layout
29796
29797 \begin_layout Enumerate
29798
29799 \size small
29800 Could not find argument for command.
29801 \end_layout
29802
29803 \begin_layout Enumerate
29804
29805 \size small
29806 No match found for 
29807 \begin_inset Quotes eld
29808 \end_inset
29809
29810
29811 \family typewriter
29812 %s
29813 \family default
29814
29815 \begin_inset Quotes erd
29816 \end_inset
29817
29818 .
29819 \end_layout
29820
29821 \begin_layout Enumerate
29822
29823 \size small
29824 Math mode still on at end of \SpecialChar LaTeX
29825  file.
29826 \end_layout
29827
29828 \begin_layout Enumerate
29829
29830 \size small
29831 Number of 
29832 \begin_inset Quotes eld
29833 \end_inset
29834
29835
29836 \family typewriter
29837 char
29838 \family default
29839
29840 \begin_inset Quotes erd
29841 \end_inset
29842
29843  doesn't match the number of 
29844 \begin_inset Quotes eld
29845 \end_inset
29846
29847
29848 \family typewriter
29849 char
29850 \family default
29851
29852 \begin_inset Quotes erd
29853 \end_inset
29854
29855 .
29856 \end_layout
29857
29858 \begin_layout Enumerate
29859
29860 \size small
29861 You should use either 
29862 \family typewriter
29863
29864 \begin_inset Quotes eld
29865 \end_inset
29866
29867
29868 \family default
29869  or 
29870 \family typewriter
29871
29872 \begin_inset Quotes erd
29873 \end_inset
29874
29875
29876 \family default
29877  as an alternative to 
29878 \begin_inset Quotes eld
29879 \end_inset
29880
29881
29882 \family typewriter
29883 "
29884 \family default
29885
29886 \begin_inset Quotes erd
29887 \end_inset
29888
29889 .
29890 \end_layout
29891
29892 \begin_layout Enumerate
29893
29894 \size small
29895 You should use "
29896 \family typewriter
29897 '
29898 \family default
29899 " (ASCII 39) instead of "
29900 \family typewriter
29901 ´
29902 \family default
29903 " (ASCII 180).
29904 \end_layout
29905
29906 \begin_layout Enumerate
29907
29908 \size small
29909 User-specified pattern found.
29910 \end_layout
29911
29912 \begin_layout Enumerate
29913
29914 \size small
29915 This command might not be intended.
29916 \end_layout
29917
29918 \begin_layout Enumerate
29919
29920 \size small
29921 \emph on
29922 Comment displayed.
29923 \end_layout
29924
29925 \begin_layout Enumerate
29926
29927 \size small
29928 Either 
29929 \family typewriter
29930 ''
29931 \backslash
29932 ,'
29933 \family default
29934  or 
29935 \family typewriter
29936 '
29937 \backslash
29938 ,''
29939 \family default
29940  will look better.
29941 \end_layout
29942
29943 \begin_layout Enumerate
29944
29945 \size small
29946 Delete this space to maintain correct page references.
29947 \end_layout
29948
29949 \begin_layout Enumerate
29950
29951 \size small
29952 \emph on
29953 You might wish to put this between a pair of 
29954 \begin_inset Quotes eld
29955 \end_inset
29956
29957
29958 \family typewriter
29959 {}
29960 \family default
29961
29962 \begin_inset Quotes erd
29963 \end_inset
29964
29965 .
29966 \end_layout
29967
29968 \begin_layout Enumerate
29969
29970 \size small
29971 You ought to remove spaces in front of punctuation.
29972 \end_layout
29973
29974 \begin_layout Enumerate
29975
29976 \size small
29977 Could not execute \SpecialChar LaTeX
29978  command.
29979 \end_layout
29980
29981 \begin_layout Enumerate
29982
29983 \size small
29984 Don't use 
29985 \family typewriter
29986
29987 \backslash
29988 /
29989 \family default
29990  in front of small punctuation.
29991 \end_layout
29992
29993 \begin_layout Enumerate
29994
29995 \family typewriter
29996 \size small
29997 $
29998 \backslash
29999 times$
30000 \family default
30001  may look prettier here.
30002 \end_layout
30003
30004 \begin_layout Enumerate
30005
30006 \size small
30007 \emph on
30008 Multiple spaces detected in output.
30009 \end_layout
30010
30011 \begin_layout Enumerate
30012
30013 \size small
30014 This text may be ignored.
30015 \end_layout
30016
30017 \begin_layout Enumerate
30018
30019 \size small
30020 Use 
30021 \family typewriter
30022
30023 \begin_inset Quotes eld
30024 \end_inset
30025
30026
30027 \family default
30028  to begin quotation, not 
30029 \family typewriter
30030 '
30031 \family default
30032 .
30033 \end_layout
30034
30035 \begin_layout Enumerate
30036
30037 \size small
30038 Use 
30039 \family typewriter
30040 '
30041 \family default
30042  to end quotation, not 
30043 \family typewriter
30044
30045 \begin_inset Quotes eld
30046 \end_inset
30047
30048
30049 \family default
30050 .
30051 \end_layout
30052
30053 \begin_layout Enumerate
30054
30055 \size small
30056 Don't mix quotes.
30057 \end_layout
30058
30059 \begin_layout Enumerate
30060
30061 \size small
30062 You should perhaps use 
30063 \begin_inset Quotes eld
30064 \end_inset
30065
30066
30067 \family typewriter
30068 cmd
30069 \family default
30070
30071 \begin_inset Quotes erd
30072 \end_inset
30073
30074  instead.
30075 \end_layout
30076
30077 \begin_layout Enumerate
30078
30079 \size small
30080 You should put a space in front of/after parenthesis.
30081 \end_layout
30082
30083 \begin_layout Enumerate
30084
30085 \size small
30086 You should avoid spaces in front of/after parenthesis.
30087 \end_layout
30088
30089 \begin_layout Enumerate
30090
30091 \size small
30092 \emph on
30093 You should not use punctuation in front of/after quotes.
30094 \end_layout
30095
30096 \begin_layout Enumerate
30097
30098 \size small
30099 Double space found.
30100 \end_layout
30101
30102 \begin_layout Enumerate
30103
30104 \size small
30105 You should put punctuation outside inner/inside display math mode.
30106 \end_layout
30107
30108 \begin_layout Enumerate
30109
30110 \size small
30111 You ought to not use primitive \SpecialChar TeX
30112  in \SpecialChar LaTeX
30113  code.
30114 \end_layout
30115
30116 \begin_layout Enumerate
30117
30118 \size small
30119 You should remove spaces in front of 
30120 \begin_inset Quotes eld
30121 \end_inset
30122
30123
30124 \family typewriter
30125 %s
30126 \family default
30127
30128 \begin_inset Quotes erd
30129 \end_inset
30130
30131
30132 \end_layout
30133
30134 \begin_layout Enumerate
30135
30136 \size small
30137 \begin_inset Quotes eld
30138 \end_inset
30139
30140
30141 \family typewriter
30142 %s
30143 \family default
30144
30145 \begin_inset Quotes erd
30146 \end_inset
30147
30148  is normally not followed by 
30149 \begin_inset Quotes eld
30150 \end_inset
30151
30152
30153 \family typewriter
30154 %c
30155 \family default
30156
30157 \begin_inset Quotes erd
30158 \end_inset
30159
30160 .
30161 \end_layout
30162
30163 \begin_layout Standard
30164 In later versions of \SpecialChar LyX
30165 , we hope to provide a more complete interface to this
30166  tool (and it's smaller cousin 
30167 \family typewriter
30168 lacheck
30169 \family default
30170 ) to exploit the full power of it.
30171  But it's not exactly useless as it is now: go try it on one of your existing
30172  documents of a certain length and be surprised.
30173 \end_layout
30174
30175 \begin_layout Section
30176 Version Control in \SpecialChar LyX
30177
30178 \end_layout
30179
30180 \begin_layout Standard
30181 by
30182 \noun on
30183  Lars Gullik Bjønnes 
30184 \noun default
30185 and 
30186 \noun on
30187 Pavel Sanda
30188 \end_layout
30189
30190 \begin_layout Subsection
30191 Introduction
30192 \end_layout
30193
30194 \begin_layout Standard
30195 \SpecialChar LyX
30196  supports some of the most basic RCS/CVS/SVN/GIT commands.
30197  If you need something a bit more sophisticated you will have to do that
30198  manually in a terminal.
30199 \end_layout
30200
30201 \begin_layout Standard
30202 Also note that CVS support is not as good as subversion support, so we advise
30203  using SVN instead.
30204  A good place to start learning Subversion is the SVN Book
30205 \begin_inset Foot
30206 status collapsed
30207
30208 \begin_layout Plain Layout
30209 \begin_inset CommandInset href
30210 LatexCommand href
30211 target "http://svnbook.red-bean.com/"
30212 literal "false"
30213
30214 \end_inset
30215
30216
30217 \end_layout
30218
30219 \end_inset
30220
30221 .
30222  In the case of RCS you should read 
30223 \begin_inset Quotes eld
30224 \end_inset
30225
30226 rcsintro
30227 \begin_inset Quotes erd
30228 \end_inset
30229
30230  (a man file, read it with 
30231 \family typewriter
30232 man rcsintro
30233 \family default
30234 ).
30235  This file describes all the basic features of RCS.
30236  You should especially notice the comment about a RCS directory, and the
30237  notion of a master RCS file (the file ending in 
30238 \family typewriter
30239 ,v
30240 \family default
30241 ).
30242 \end_layout
30243
30244 \begin_layout Standard
30245 Before you begin to use the version control features in \SpecialChar LyX
30246 , you should be
30247  familiar with RCS/CVS/SVN/GIT usage.
30248  The implementation in \SpecialChar LyX
30249  assumes a recent version of the GNU RCS or CVS/SVN
30250  package — no guarantees are made for older versions.
30251  Most of the log messages are not currently displayed after operations —
30252  you can check them in the Messages pane if you are unsure.
30253  Regular users of version control will appreciate the VC toolbar, which
30254  can be enabled via 
30255 \family sans
30256 View\SpecialChar menuseparator
30257 Toolbars\SpecialChar menuseparator
30258 Version
30259 \begin_inset space ~
30260 \end_inset
30261
30262 Control
30263 \family default
30264 .
30265 \end_layout
30266
30267 \begin_layout Standard
30268 For introducing your own external commands consult 
30269 \begin_inset Flex Code
30270 status collapsed
30271
30272 \begin_layout Plain Layout
30273 vc-command
30274 \end_layout
30275
30276 \end_inset
30277
30278  in the manual 
30279 \emph on
30280 \SpecialChar LyX
30281  Functions
30282 \emph default
30283 .
30284 \end_layout
30285
30286 \begin_layout Standard
30287 It is strongly recommended to store documents in uncompressed format if
30288  using version control (uncheck 
30289 \family sans
30290 Document\SpecialChar menuseparator
30291 Compressed
30292 \family default
30293  if it is checked): Uncompressed LyX documents are text files and therefore
30294  for merging two different versions by version control systems.
30295  Compressed LyX documents are binary files, which cannot be merged by version
30296  control systems.
30297 \end_layout
30298
30299 \begin_layout Subsection
30300 RCS commands in \SpecialChar LyX
30301
30302 \end_layout
30303
30304 \begin_layout Standard
30305 The following sections describe the RCS commands supported by \SpecialChar LyX
30306 .
30307  You can find them in the 
30308 \family sans
30309 File\SpecialChar menuseparator
30310 Version
30311 \begin_inset space ~
30312 \end_inset
30313
30314 Control
30315 \family default
30316  submenu.
30317  \SpecialChar LyX
30318  was tested against RCS 5.7/5.8.
30319 \end_layout
30320
30321 \begin_layout Subsubsection
30322
30323 \family sans
30324 Register
30325 \end_layout
30326
30327 \begin_layout Standard
30328 If your document is not under revision control, this is the only item shown
30329  in the menu.
30330  And if it is under revision control, the 
30331 \family sans
30332 Register
30333 \family default
30334  item is not visible.
30335  
30336 \end_layout
30337
30338 \begin_layout Standard
30339 This command registers your document with RCS (unless you are under the
30340  directory managed by CVS)\SpecialChar endofsentence
30341  You are asked interactively to supply an initial
30342  description of the document.
30343  The document is now set in Read-Only mode and you have to 
30344 \family sans
30345 Check
30346 \begin_inset space ~
30347 \end_inset
30348
30349 Out
30350 \begin_inset space ~
30351 \end_inset
30352
30353 For
30354 \begin_inset space ~
30355 \end_inset
30356
30357 Edit
30358 \family default
30359 , before making any changes to it.
30360  A document under revision control has a 
30361 \begin_inset Quotes eld
30362 \end_inset
30363
30364 [RCS:<version> <locker>]
30365 \begin_inset Quotes erd
30366 \end_inset
30367
30368  item tagged to the filename in the minibuffer.
30369 \end_layout
30370
30371 \begin_layout Standard
30372 RCS command that is run:
30373 \end_layout
30374
30375 \begin_layout LyX-Code
30376
30377 \family typewriter
30378 ci -q -u -i -t-"<initial description>" <file-name>
30379 \end_layout
30380
30381 \begin_layout Standard
30382 Read 
30383 \family typewriter
30384 man ci
30385 \family default
30386  to understand the switches.
30387  
30388 \end_layout
30389
30390 \begin_layout Subsubsection
30391
30392 \family sans
30393 Check In Changes
30394 \end_layout
30395
30396 \begin_layout Standard
30397 When you are finished editing a file, you check in your changes.
30398  When you do this, you are asked for a description of the changes.
30399  This is stored in the history log.
30400  The version number is bumped, your changes are applied to the master RCS
30401  file, the document is unlocked and set to Read-Only mode.
30402 \end_layout
30403
30404 \begin_layout Itemize
30405 RCS command: 
30406 \family typewriter
30407 ci -q -u -m"<description>" <file-name>
30408 \end_layout
30409
30410 \begin_layout Subsubsection
30411
30412 \family sans
30413 Check Out For Edit
30414 \end_layout
30415
30416 \begin_layout Standard
30417 By doing this you lock the document so that only you can edit it.
30418  This will also make the document Read-Write only for you.
30419  You will usually continue editing for a while and when you are finished
30420  you check in your changes.
30421  The status line is changed to reflect that you have locked the file.
30422 \end_layout
30423
30424 \begin_layout Itemize
30425 RCS command: 
30426 \family typewriter
30427 co -q -l <file-name>
30428 \end_layout
30429
30430 \begin_layout Subsubsection
30431
30432 \family sans
30433 Revert To Repository Version
30434 \end_layout
30435
30436 \begin_layout Standard
30437 This will discard all changes made to the document since the last check
30438  in.
30439  You get a warning before changes are discarded.
30440 \end_layout
30441
30442 \begin_layout Itemize
30443 RCS command: 
30444 \family typewriter
30445 co -f -u<version> <file-name>
30446 \end_layout
30447
30448 \begin_layout Subsubsection
30449
30450 \family sans
30451 Copy
30452 \end_layout
30453
30454 \begin_layout Standard
30455 This will create a copy of the current document.
30456  Since RCS does not support copy operations natively, the version history
30457  is not preserved, and the copy is added as a new file.
30458  It requires a clean document without any changes since the last checkin.
30459  You are asked for a file name and a description of the copy operation.
30460  After that the copy is created, both locally and in the repository.
30461  If the parent directories of the copied and original document differ, all
30462  relative paths of included files of the copy are adjusted (like in 
30463 \family sans
30464 File\SpecialChar menuseparator
30465 Save As
30466 \family default
30467 \SpecialChar ldots
30468 ).
30469  Finally, the copy is loaded instead of the original document.
30470 \end_layout
30471
30472 \begin_layout Labeling
30473 \labelwidthstring 00.00.0000
30474 RCS
30475 \begin_inset space ~
30476 \end_inset
30477
30478 commands: 
30479 \begin_inset space ~
30480 \end_inset
30481
30482
30483 \begin_inset Newline newline
30484 \end_inset
30485
30486 Copy 
30487 \begin_inset Flex Code
30488 status collapsed
30489
30490 \begin_layout Plain Layout
30491
30492 \family typewriter
30493 \begin_inset Quotes qld
30494 \end_inset
30495
30496 <file-name>
30497 \begin_inset Quotes qld
30498 \end_inset
30499
30500
30501 \end_layout
30502
30503 \end_inset
30504
30505  to 
30506 \begin_inset Flex Code
30507 status collapsed
30508
30509 \begin_layout Plain Layout
30510
30511 \family typewriter
30512 \begin_inset Quotes qld
30513 \end_inset
30514
30515 <new-file-name>
30516 \begin_inset Quotes qld
30517 \end_inset
30518
30519
30520 \end_layout
30521
30522 \end_inset
30523
30524
30525 \begin_inset Newline newline
30526 \end_inset
30527
30528
30529 \begin_inset Flex Code
30530 status collapsed
30531
30532 \begin_layout Plain Layout
30533 ci -q -u 
30534 \family typewriter
30535 -i 
30536 \begin_inset Quotes qld
30537 \end_inset
30538
30539 <new-file-name>
30540 \begin_inset Quotes qld
30541 \end_inset
30542
30543
30544 \end_layout
30545
30546 \end_inset
30547
30548
30549 \end_layout
30550
30551 \begin_layout Subsubsection
30552
30553 \family sans
30554 Undo Last Checkin
30555 \end_layout
30556
30557 \begin_layout Standard
30558 This makes as if the last check in never happened.
30559  No changes are made to the document loaded into \SpecialChar LyX
30560 , but the last version
30561  is removed from the master RCS file.
30562 \end_layout
30563
30564 \begin_layout Itemize
30565 RCS command: 
30566 \family typewriter
30567 rcs -o<version> <file-name>
30568 \end_layout
30569
30570 \begin_layout Subsubsection
30571
30572 \family sans
30573 Show History
30574 \end_layout
30575
30576 \begin_layout Standard
30577 This shows the complete history of the RCS document.
30578  The output of 
30579 \family typewriter
30580 rlog <file-name>
30581 \family default
30582  is shown in a browser.
30583  See 
30584 \family typewriter
30585 man rlog
30586 \family default
30587  for more info.
30588 \end_layout
30589
30590 \begin_layout Subsubsection
30591 Revision info
30592 \end_layout
30593
30594 \begin_layout Standard
30595 \SpecialChar LyX
30596  supports RCS version number, author name, date and time of last commit.
30597  All those are extracted from 
30598 \family typewriter
30599 rlog -r <file-name>
30600 \family default
30601 .
30602  See 
30603 \begin_inset CommandInset ref
30604 LatexCommand ref
30605 reference "subsec:VCS-Revision-Information"
30606
30607 \end_inset
30608
30609  for details.
30610 \end_layout
30611
30612 \begin_layout Subsection
30613 CVS commands in \SpecialChar LyX
30614
30615 \end_layout
30616
30617 \begin_layout Standard
30618 A subset of CVS operations is supported by \SpecialChar LyX
30619 .
30620  You can find the commands in the 
30621 \family sans
30622 File\SpecialChar menuseparator
30623 Version
30624 \begin_inset space ~
30625 \end_inset
30626
30627 Control
30628 \family default
30629  submenu.
30630  The version control system SVN is more powerful, so please use it instead
30631  of CVS if possible.
30632 \end_layout
30633
30634 \begin_layout Subsubsection
30635
30636 \family sans
30637 General CVS usage
30638 \end_layout
30639
30640 \begin_layout Standard
30641 If you start from scratch with CVS you have to create your repository and
30642  checkout the working copy with external tools.
30643  If you're using a client-server setup you may need to login before doing
30644  the first repository checkout.
30645 \end_layout
30646
30647 \begin_layout Standard
30648 If your documents are under revision control and others are using the same
30649  repository problems arise when different changes to the same document at
30650  the same location happen.
30651  Standard CVS repositories don't operate with a file locking mechanism.
30652  This may be surprising, but conflicts only occur if people disagree on
30653  the proper content of the same part of a document.
30654  So, if co-workers are used to communicate regularly, these conflicts occur
30655  rarely.
30656  If they don't communicate they have a fundamental problem anyway.
30657  Nevertheless some people like to work with so called 
30658 \begin_inset Quotes eld
30659 \end_inset
30660
30661 reserved checkouts
30662 \begin_inset Quotes erd
30663 \end_inset
30664
30665 .
30666  If they do so the working copy of all files is readonly when checked out
30667  first and the user starts editing after using a special command to make
30668  the working copy writable.
30669  When the changes are checked in the working copy returns to readonly state.
30670  With \SpecialChar LyX
30671  one has to edit the 
30672 \begin_inset Flex Code
30673 status collapsed
30674
30675 \begin_layout Plain Layout
30676 .cvsrc
30677 \end_layout
30678
30679 \end_inset
30680
30681  file and add the line 
30682 \begin_inset Flex Code
30683 status collapsed
30684
30685 \begin_layout Plain Layout
30686 cvs -r
30687 \end_layout
30688
30689 \end_inset
30690
30691  to work with reserved checkouts.
30692  The benefit is the possibility to see who is using a writable copy of some
30693  document.
30694  It's not guaranteed only one user makes a copy writable.
30695 \end_layout
30696
30697 \begin_layout Standard
30698 \SpecialChar LyX
30699  tries to guess if you're using reserved or non-reserved checkouts.
30700  If your working copy is readonly or it is writable and an additional copy
30701  of your document exists in the CVS/Base sub-directory a reserved otherwise
30702  a non-reserved checkout is assumed.
30703  When a reserved checkout is detected you have to use 
30704 \begin_inset Flex Noun
30705 status collapsed
30706
30707 \begin_layout Plain Layout
30708 Check Out
30709 \end_layout
30710
30711 \end_inset
30712
30713  to make your working copy writable if it's readonly.
30714  After doing so the 
30715 \begin_inset Flex Noun
30716 status collapsed
30717
30718 \begin_layout Plain Layout
30719 Check In
30720 \end_layout
30721
30722 \end_inset
30723
30724  operation is possible and that makes your working copy readonly again after
30725  transferring your changes to the repository.
30726 \end_layout
30727
30728 \begin_layout Standard
30729 More information about CVS can be found here 
30730 \begin_inset Flex URL
30731 status collapsed
30732
30733 \begin_layout Plain Layout
30734
30735 http://www.nongnu.org/cvs
30736 \end_layout
30737
30738 \end_inset
30739
30740  and here 
30741 \begin_inset Flex URL
30742 status collapsed
30743
30744 \begin_layout Plain Layout
30745
30746 http://ximbiot.com/cvs
30747 \end_layout
30748
30749 \end_inset
30750
30751 .
30752 \end_layout
30753
30754 \begin_layout Standard
30755 Read 
30756 \family typewriter
30757 man cvs
30758 \family default
30759  to understand the sub-commands and the switches mentioned below.
30760 \end_layout
30761
30762 \begin_layout Subsubsection
30763
30764 \family sans
30765 Register
30766 \end_layout
30767
30768 \begin_layout Standard
30769 If your document is not under revision control, this is the only item shown
30770  in the menu.
30771  And if it is under revision control, the 
30772 \family sans
30773 Register
30774 \family default
30775  item is not visible.
30776  
30777 \end_layout
30778
30779 \begin_layout Standard
30780 This command registers in CVS your document 
30781 \begin_inset Flex Strong
30782 status collapsed
30783
30784 \begin_layout Plain Layout
30785
30786 \emph on
30787 only
30788 \end_layout
30789
30790 \end_inset
30791
30792  in the case you have already the documents directory under CVS control
30793  (in particular 
30794 \family typewriter
30795 CVS/Entries
30796 \family default
30797  file exists).
30798  This means you have to create or checkout the archive by yourself using
30799  external tools.
30800  (In case you forget that step \SpecialChar LyX
30801  registers the document with RCS.)
30802 \end_layout
30803
30804 \begin_layout Standard
30805 Then you are asked interactively to supply an initial description of the
30806  document.
30807  Don't forget that registered file is not yet checked in.
30808 \end_layout
30809
30810 \begin_layout Standard
30811 CVS command that is run: 
30812 \family typewriter
30813 cvs -q add -m"<entered message>" "<file-name>"
30814 \end_layout
30815
30816 \begin_layout Standard
30817 The term 
30818 \family typewriter
30819 "<file-name>"
30820 \family default
30821  above and for all other CVS commands is an abbreviation for 
30822 \begin_inset Quotes eld
30823 \end_inset
30824
30825 change the current working directory to file location and use the file name
30826  without path component as argument
30827 \begin_inset Quotes erd
30828 \end_inset
30829
30830 .
30831 \end_layout
30832
30833 \begin_layout Subsubsection
30834
30835 \family sans
30836 Check In Changes
30837 \end_layout
30838
30839 \begin_layout Standard
30840 When you are finished editing a file, you commit your changes.
30841  When you do this and you had changed the document, you are asked for a
30842  description of the changes.
30843  After that changes are written to the repository.
30844  In case you didn't change the document and a reserved checkout is detected
30845  the reservation made on 
30846 \begin_inset Flex Noun
30847 status collapsed
30848
30849 \begin_layout Plain Layout
30850 Check Out
30851 \end_layout
30852
30853 \end_inset
30854
30855  is undone.
30856 \end_layout
30857
30858 \begin_layout Labeling
30859 \labelwidthstring 00.00.0000
30860 CVS
30861 \begin_inset space ~
30862 \end_inset
30863
30864 command: 
30865 \begin_inset space ~
30866 \end_inset
30867
30868
30869 \begin_inset Newline newline
30870 \end_inset
30871
30872
30873 \begin_inset Flex Code
30874 status collapsed
30875
30876 \begin_layout Plain Layout
30877 cvs 
30878 \family typewriter
30879 -q commit -m"<description>" "<file-name>"
30880 \end_layout
30881
30882 \end_inset
30883
30884  or
30885 \begin_inset Newline newline
30886 \end_inset
30887
30888
30889 \begin_inset Flex Code
30890 status collapsed
30891
30892 \begin_layout Plain Layout
30893 cvs -q unedit 
30894 \family typewriter
30895 "<file-name>"
30896 \end_layout
30897
30898 \end_inset
30899
30900
30901 \end_layout
30902
30903 \begin_layout Subsubsection
30904
30905 \family sans
30906 Check Out Changes
30907 \end_layout
30908
30909 \begin_layout Standard
30910 When you are sharing a repository with others, you may have to incorporate
30911  their changes into your working copy.
30912 \end_layout
30913
30914 \begin_layout Standard
30915 CVS command: 
30916 \family typewriter
30917 cvs -q update "<file-name>"
30918 \end_layout
30919
30920 \begin_layout Standard
30921 If a readonly checkout is detected the working copy is made writable and
30922  reserved.
30923 \end_layout
30924
30925 \begin_layout Standard
30926 CVS command: 
30927 \family typewriter
30928 cvs -q edit "<file-name>"
30929 \end_layout
30930
30931 \begin_layout Subsubsection
30932
30933 \family sans
30934 Revert To Repository Version
30935 \end_layout
30936
30937 \begin_layout Standard
30938 This will discard all changes made to the document since the last check
30939  in.
30940  You get a warning before changes are discarded.
30941  Firstly the file is deleted, secondly CVS update command is run.
30942 \end_layout
30943
30944 \begin_layout Standard
30945 CVS command: 
30946 \family typewriter
30947 cvs -q update "<file-name>"
30948 \end_layout
30949
30950 \begin_layout Standard
30951 If a reserved checkout is detected and the working copy has no changes only
30952  the reservation is undone.
30953 \end_layout
30954
30955 \begin_layout Standard
30956 CVS command: 
30957 \family typewriter
30958 cvs -q unedit "<file-name>"
30959 \end_layout
30960
30961 \begin_layout Subsubsection
30962
30963 \family sans
30964 Copy
30965 \end_layout
30966
30967 \begin_layout Standard
30968 This will create a copy of the current document.
30969  Since CVS does not support copy operations natively, the version history
30970  is not preserved, and the copy is added as a new file.
30971  It requires a clean document without any changes since the last checkin.
30972  You are asked for a file name and a description of the copy operation.
30973  After that the copy is created, both locally and in the repository.
30974  If the parent directories of the copied and original document differ, all
30975  relative paths of included files of the copy are adjusted (like in 
30976 \family sans
30977 File\SpecialChar menuseparator
30978 Save As
30979 \family default
30980 \SpecialChar ldots
30981 ).
30982  Finally, the copy is loaded instead of the original document.
30983 \end_layout
30984
30985 \begin_layout Labeling
30986 \labelwidthstring 00.00.0000
30987 CVS
30988 \begin_inset space ~
30989 \end_inset
30990
30991 commands: 
30992 \begin_inset space ~
30993 \end_inset
30994
30995
30996 \begin_inset Newline newline
30997 \end_inset
30998
30999 Copy 
31000 \begin_inset Flex Code
31001 status collapsed
31002
31003 \begin_layout Plain Layout
31004 "<file-name>"
31005 \end_layout
31006
31007 \end_inset
31008
31009  to 
31010 \begin_inset Flex Code
31011 status collapsed
31012
31013 \begin_layout Plain Layout
31014 "<new-file-name>"
31015 \end_layout
31016
31017 \end_inset
31018
31019
31020 \begin_inset Newline newline
31021 \end_inset
31022
31023
31024 \begin_inset Flex Code
31025 status collapsed
31026
31027 \begin_layout Plain Layout
31028 cvs -q add "<new-file-name>"
31029 \end_layout
31030
31031 \end_inset
31032
31033
31034 \end_layout
31035
31036 \begin_layout Subsubsection
31037
31038 \family sans
31039 Rename
31040 \end_layout
31041
31042 \begin_layout Standard
31043 This will rename the current document.
31044  Since CVS does not support rename operations natively, the version history
31045  is not preserved, the renamed document is added as a new file, and the
31046  original document is deleted.
31047  It requires a clean document without any changes since the last checkin.
31048  You are asked for a file name and a description of the rename operation.
31049  After that the document is renamed, both locally and in the repository.
31050  If the parent directories of the new and old file names differ, all relative
31051  paths of included files are adjusted (like in 
31052 \family sans
31053 File\SpecialChar menuseparator
31054 Save As
31055 \family default
31056 \SpecialChar ldots
31057 ).
31058  Finally, the document is reloaded using the new name.
31059 \end_layout
31060
31061 \begin_layout Labeling
31062 \labelwidthstring 00.00.0000
31063 CVS
31064 \begin_inset space ~
31065 \end_inset
31066
31067 commands: 
31068 \begin_inset space ~
31069 \end_inset
31070
31071
31072 \begin_inset Newline newline
31073 \end_inset
31074
31075 Rename 
31076 \begin_inset Flex Code
31077 status collapsed
31078
31079 \begin_layout Plain Layout
31080 "<file-name>"
31081 \end_layout
31082
31083 \end_inset
31084
31085  to 
31086 \begin_inset Flex Code
31087 status collapsed
31088
31089 \begin_layout Plain Layout
31090 "<new-file-name>"
31091 \end_layout
31092
31093 \end_inset
31094
31095
31096 \begin_inset Newline newline
31097 \end_inset
31098
31099
31100 \begin_inset Flex Code
31101 status collapsed
31102
31103 \begin_layout Plain Layout
31104 cvs -q add "<new-file-name>"
31105 \end_layout
31106
31107 \end_inset
31108
31109
31110 \begin_inset Newline newline
31111 \end_inset
31112
31113
31114 \begin_inset Flex Code
31115 status collapsed
31116
31117 \begin_layout Plain Layout
31118 cvs -q remove "<file-name>"
31119 \end_layout
31120
31121 \end_inset
31122
31123
31124 \end_layout
31125
31126 \begin_layout Subsubsection
31127 Update of the local directory checkout from repository
31128 \end_layout
31129
31130 \begin_layout Standard
31131 Once your documents gets more complex, containing sub-documents and pictures,
31132  including external 
31133 \begin_inset Flex Code
31134 status collapsed
31135
31136 \begin_layout Plain Layout
31137 .tex
31138 \end_layout
31139
31140 \end_inset
31141
31142  files and so on using version control becomes more complicated.
31143  \SpecialChar LyX
31144  supports updating the whole tree in which resides the document.
31145  This become especially useful once you cooperate with people which neither
31146  have detailed knowledge about CVS usage nor they have ambition to commit
31147  additional material to the repository.
31148  You have to organize the files structure so that all external files are
31149  in the same directory or subdirectories of the document.
31150  It's good practice anyway to store multipart documents in an extra directory.
31151 \end_layout
31152
31153 \begin_layout Standard
31154 The 
31155 \begin_inset Flex Code
31156 status collapsed
31157
31158 \begin_layout Plain Layout
31159 Update local directory from repository
31160 \end_layout
31161
31162 \end_inset
31163
31164  command updates the whole directory.
31165  If local changes are detected user is warned before update starts.
31166  In case of merge conflicts both versions of the conflicting document parts
31167  are placed in the final document.
31168  You have to review and correct the result of the merge.
31169  You'll find the conflicts enclosed in pairs of 
31170 \begin_inset Flex Code
31171 status collapsed
31172
31173 \begin_layout Plain Layout
31174 <<<<<<<
31175 \end_layout
31176
31177 \end_inset
31178
31179  and 
31180 \begin_inset Flex Code
31181 status collapsed
31182
31183 \begin_layout Plain Layout
31184 >>>>>>>
31185 \end_layout
31186
31187 \end_inset
31188
31189  separated by 
31190 \begin_inset Flex Code
31191 status collapsed
31192
31193 \begin_layout Plain Layout
31194 =======
31195 \end_layout
31196
31197 \end_inset
31198
31199 .
31200  The first part is your version as before the update operation with the
31201  document name prepended.
31202  The second one is the repository version with the version number after
31203  the sequence of 
31204 \begin_inset Flex Code
31205 status collapsed
31206
31207 \begin_layout Plain Layout
31208 >
31209 \end_layout
31210
31211 \end_inset
31212
31213  signs.
31214 \end_layout
31215
31216 \begin_layout Labeling
31217 \labelwidthstring 00.00.0000
31218 CVS
31219 \begin_inset space ~
31220 \end_inset
31221
31222 commands: 
31223 \begin_inset space ~
31224 \end_inset
31225
31226
31227 \begin_inset Newline newline
31228 \end_inset
31229
31230
31231 \begin_inset Flex Code
31232 status collapsed
31233
31234 \begin_layout Plain Layout
31235 cd $path; cvs diff 
31236 \family typewriter
31237 "."
31238 \end_layout
31239
31240 \end_inset
31241
31242  (Ask if changes are detected.)
31243 \begin_inset Newline newline
31244 \end_inset
31245
31246
31247 \begin_inset Flex Code
31248 status collapsed
31249
31250 \begin_layout Plain Layout
31251 cd $path; cvs -q update 
31252 \family typewriter
31253 "."
31254 \end_layout
31255
31256 \end_inset
31257
31258
31259 \end_layout
31260
31261 \begin_layout Standard
31262 where 
31263 \begin_inset Flex Code
31264 status collapsed
31265
31266 \begin_layout Plain Layout
31267 $path
31268 \end_layout
31269
31270 \end_inset
31271
31272  stands for the path to the document.
31273 \end_layout
31274
31275 \begin_layout Subsubsection
31276
31277 \family sans
31278 Show History
31279 \end_layout
31280
31281 \begin_layout Standard
31282 This shows the complete history of the CVS document.
31283  The output of 
31284 \family typewriter
31285 cvs log "<file-name>"
31286 \family default
31287  is shown in a browser.
31288 \end_layout
31289
31290 \begin_layout Subsubsection
31291 Revision info
31292 \end_layout
31293
31294 \begin_layout Standard
31295 \SpecialChar LyX
31296  supports CVS version number, author name, date and time of last commit.
31297  All those are extracted from 
31298 \family typewriter
31299 cvs log -r <file-name>
31300 \family default
31301 .
31302  See 
31303 \begin_inset CommandInset ref
31304 LatexCommand ref
31305 reference "subsec:VCS-Revision-Information"
31306
31307 \end_inset
31308
31309  for details.
31310 \end_layout
31311
31312 \begin_layout Subsection
31313 SVN commands in \SpecialChar LyX
31314
31315 \end_layout
31316
31317 \begin_layout Standard
31318 SVN is now partially supported by \SpecialChar LyX
31319 .
31320  You can find the commands in the 
31321 \family sans
31322 File\SpecialChar menuseparator
31323 Version
31324 \begin_inset space ~
31325 \end_inset
31326
31327 Control
31328 \family default
31329  submenu.
31330  Please note that if you use password protected access to repository via
31331  ssh, you will be asked in terminal window.
31332  \SpecialChar LyX
31333  was tested against SVN 1.5, 1.6, 1.7 and 1.8
31334 \begin_inset Foot
31335 status collapsed
31336
31337 \begin_layout Plain Layout
31338 Most of the commands will work with 1.4 too, see 
31339 \begin_inset CommandInset ref
31340 LatexCommand ref
31341 reference "subsec:SVN-Repo-Update"
31342
31343 \end_inset
31344
31345 .
31346  There seems to be currently unresolved permissions problem under SVN 1.8
31347  with reverting changes when file is locked.
31348 \end_layout
31349
31350 \end_inset
31351
31352
31353 \end_layout
31354
31355 \begin_layout Subsubsection
31356
31357 \family sans
31358 Register
31359 \end_layout
31360
31361 \begin_layout Standard
31362 If your document is not under revision control, this is the only item shown
31363  in the menu.
31364  And if it is under revision control, the 
31365 \family sans
31366 Register
31367 \family default
31368  item is not visible.
31369 \end_layout
31370
31371 \begin_layout Standard
31372 This command registers in SVN your document ONLY in case you have already
31373  the documents directory under SVN control (in particular 
31374 \family typewriter
31375 .svn/entries
31376 \family default
31377  file exists).
31378  This means you have to checkout the archive by yourself.
31379 \end_layout
31380
31381 \begin_layout Standard
31382 Then you are asked interactively to supply an initial description of the
31383  document.
31384  Don't forget that registered file is not yet commited.
31385 \end_layout
31386
31387 \begin_layout Standard
31388 SVN command that is run: 
31389 \family typewriter
31390 svn add -q 
31391 \begin_inset Quotes qld
31392 \end_inset
31393
31394 <file-name>
31395 \begin_inset Quotes qld
31396 \end_inset
31397
31398
31399 \end_layout
31400
31401 \begin_layout Standard
31402 Read 
31403 \family typewriter
31404 man svn
31405 \family default
31406  to understand the switches.
31407 \end_layout
31408
31409 \begin_layout Subsubsection
31410
31411 \family sans
31412 Check In Changes
31413 \end_layout
31414
31415 \begin_layout Standard
31416 When you are finished editing a file, you commit your changes.
31417  When you do this, you are asked for a description of the changes.
31418  After that changes are commited.
31419 \end_layout
31420
31421 \begin_layout Standard
31422 SVN command:
31423 \begin_inset Foot
31424 status collapsed
31425
31426 \begin_layout Plain Layout
31427 In case locking is not enabled.
31428  See Section 
31429 \begin_inset CommandInset ref
31430 LatexCommand ref
31431 reference "subsec:SVN-File-Locking"
31432
31433 \end_inset
31434
31435 .
31436 \end_layout
31437
31438 \end_inset
31439
31440  
31441 \family typewriter
31442 svn commit -q -m"<description>" <file-name>
31443 \end_layout
31444
31445 \begin_layout Subsubsection
31446
31447 \family sans
31448 Check Out For Edit
31449 \end_layout
31450
31451 \begin_layout Standard
31452 Updates the changes of this file from the repository.
31453  Be sure you understand SVN merging and conflicts resolving before using
31454  this function, because all conflicts has to be resolved manually by you!
31455 \end_layout
31456
31457 \begin_layout Standard
31458 SVN command:
31459 \begin_inset Foot
31460 status collapsed
31461
31462 \begin_layout Plain Layout
31463 Ditto.
31464 \end_layout
31465
31466 \end_inset
31467
31468  
31469 \family typewriter
31470 svn update --non-interactive 
31471 \begin_inset Quotes qld
31472 \end_inset
31473
31474 <file-name>
31475 \begin_inset Quotes qld
31476 \end_inset
31477
31478
31479 \end_layout
31480
31481 \begin_layout Subsubsection
31482
31483 \family sans
31484 Revert To Repository Version
31485 \end_layout
31486
31487 \begin_layout Standard
31488 This will discard all changes made to the document since the last check
31489  in.
31490  You get a warning before changes are discarded.
31491 \end_layout
31492
31493 \begin_layout Standard
31494 SVN command: 
31495 \family typewriter
31496 svn revert -q 
31497 \begin_inset Quotes qld
31498 \end_inset
31499
31500 <file-name>
31501 \begin_inset Quotes qld
31502 \end_inset
31503
31504
31505 \end_layout
31506
31507 \begin_layout Subsubsection
31508
31509 \family sans
31510 Copy
31511 \end_layout
31512
31513 \begin_layout Standard
31514 This will create a copy of the current document including the version history.
31515  It requires a clean document without any changes since the last checkin.
31516  You are asked for a file name and a description of the copy operation.
31517  After that the copy is created, both locally and in the repository.
31518  If the parent directories of the copied and original document differ, all
31519  relative paths of included files of the copy are adjusted (like in 
31520 \family sans
31521 File\SpecialChar menuseparator
31522 Save As
31523 \family default
31524 \SpecialChar ldots
31525 ).
31526  Finally, the copy is loaded instead of the original document.
31527 \end_layout
31528
31529 \begin_layout Labeling
31530 \labelwidthstring 00.00.0000
31531 SVN
31532 \begin_inset space ~
31533 \end_inset
31534
31535 commands: 
31536 \begin_inset space ~
31537 \end_inset
31538
31539
31540 \begin_inset Newline newline
31541 \end_inset
31542
31543
31544 \begin_inset Flex Code
31545 status collapsed
31546
31547 \begin_layout Plain Layout
31548 svn copy -q 
31549 \family typewriter
31550
31551 \begin_inset Quotes qld
31552 \end_inset
31553
31554 <file-name>
31555 \begin_inset Quotes qld
31556 \end_inset
31557
31558  
31559 \begin_inset Quotes qld
31560 \end_inset
31561
31562 <new-file-name>
31563 \begin_inset Quotes qld
31564 \end_inset
31565
31566
31567 \end_layout
31568
31569 \end_inset
31570
31571
31572 \begin_inset Newline newline
31573 \end_inset
31574
31575
31576 \begin_inset Flex Code
31577 status collapsed
31578
31579 \begin_layout Plain Layout
31580 svn commit
31581 \end_layout
31582
31583 \end_inset
31584
31585
31586 \end_layout
31587
31588 \begin_layout Subsubsection
31589
31590 \family sans
31591 Rename
31592 \end_layout
31593
31594 \begin_layout Standard
31595 This will rename the current document including the version history.
31596  It requires a clean document without any changes since the last checkin.
31597  You are asked for a file name and a description of the rename operation.
31598  After that the document is renamed, both locally and in the repository.
31599  If the parent directories of the new and old file names differ, all relative
31600  paths of included files are adjusted (like in 
31601 \family sans
31602 File\SpecialChar menuseparator
31603 Save As
31604 \family default
31605 \SpecialChar ldots
31606 ).
31607  Finally, the document is reloaded using the new name.
31608 \end_layout
31609
31610 \begin_layout Labeling
31611 \labelwidthstring 00.00.0000
31612 SVN
31613 \begin_inset space ~
31614 \end_inset
31615
31616 commands: 
31617 \begin_inset space ~
31618 \end_inset
31619
31620
31621 \begin_inset Newline newline
31622 \end_inset
31623
31624
31625 \begin_inset Flex Code
31626 status collapsed
31627
31628 \begin_layout Plain Layout
31629 svn move -q 
31630 \family typewriter
31631
31632 \begin_inset Quotes qld
31633 \end_inset
31634
31635 <file-name>
31636 \begin_inset Quotes qld
31637 \end_inset
31638
31639  
31640 \begin_inset Quotes qld
31641 \end_inset
31642
31643 <new-file-name>
31644 \begin_inset Quotes qld
31645 \end_inset
31646
31647
31648 \end_layout
31649
31650 \end_inset
31651
31652
31653 \begin_inset Newline newline
31654 \end_inset
31655
31656
31657 \begin_inset Flex Code
31658 status collapsed
31659
31660 \begin_layout Plain Layout
31661 svn commit
31662 \end_layout
31663
31664 \end_inset
31665
31666
31667 \end_layout
31668
31669 \begin_layout Subsubsection
31670 \begin_inset CommandInset label
31671 LatexCommand label
31672 name "subsec:SVN-Repo-Update"
31673
31674 \end_inset
31675
31676 Update of the local directory checkout from repository
31677 \begin_inset Foot
31678 status collapsed
31679
31680 \begin_layout Plain Layout
31681 Note that this command will work only with subversion 
31682 \begin_inset Formula $\geqq1.5$
31683 \end_inset
31684
31685
31686 \end_layout
31687
31688 \end_inset
31689
31690
31691 \end_layout
31692
31693 \begin_layout Standard
31694 All the commands above have one shortcoming – they deal with the current
31695  document only.
31696  Once your document contains pictures, includes external 
31697 \begin_inset Flex Code
31698 status collapsed
31699
31700 \begin_layout Plain Layout
31701 .tex
31702 \end_layout
31703
31704 \end_inset
31705
31706  files and so on administration becomes more complicated.
31707  \SpecialChar LyX
31708  now supports updating the whole tree in which resides the document
31709 \begin_inset Foot
31710 status collapsed
31711
31712 \begin_layout Plain Layout
31713 One need to organize the files structure so that all external files are
31714  in the same directory or subdirectories of the document.
31715  
31716 \end_layout
31717
31718 \end_inset
31719
31720 .
31721  This become especially useful once you cooperate with people which neither
31722  know about subversion management nor they have ambition to commit additional
31723  material to the repository.
31724  
31725 \end_layout
31726
31727 \begin_layout Standard
31728 \begin_inset Flex Code
31729 status collapsed
31730
31731 \begin_layout Plain Layout
31732 Update local directory from repository
31733 \end_layout
31734
31735 \end_inset
31736
31737  command updates the whole directory and in case of merge conflicts local
31738  version of the files are left, so no unintended data loss occurs.
31739  If local changes are detected user is warned before update starts.
31740 \end_layout
31741
31742 \begin_layout Labeling
31743 \labelwidthstring 00.00.0000
31744 SVN
31745 \begin_inset space ~
31746 \end_inset
31747
31748 commands: 
31749 \begin_inset space ~
31750 \end_inset
31751
31752
31753 \begin_inset Newline newline
31754 \end_inset
31755
31756
31757 \begin_inset Flex Code
31758 status collapsed
31759
31760 \begin_layout Plain Layout
31761 svn diff $path
31762 \end_layout
31763
31764 \end_inset
31765
31766  (Ask if changes are detected.)
31767 \begin_inset Newline newline
31768 \end_inset
31769
31770
31771 \begin_inset Flex Code
31772 status collapsed
31773
31774 \begin_layout Plain Layout
31775 svn update --accept mine-full $path
31776 \end_layout
31777
31778 \end_inset
31779
31780
31781 \end_layout
31782
31783 \begin_layout Standard
31784 where 
31785 \begin_inset Flex Code
31786 status collapsed
31787
31788 \begin_layout Plain Layout
31789 $path
31790 \end_layout
31791
31792 \end_inset
31793
31794  stands for the path to the document.
31795 \end_layout
31796
31797 \begin_layout Subsubsection
31798
31799 \family sans
31800 Show History
31801 \end_layout
31802
31803 \begin_layout Standard
31804 This shows the complete history of the SVN document.
31805  The output of 
31806 \family typewriter
31807 svn log 
31808 \begin_inset Quotes qld
31809 \end_inset
31810
31811 <file-name>
31812 \begin_inset Quotes qld
31813 \end_inset
31814
31815
31816 \family default
31817  is shown in a browser.
31818 \end_layout
31819
31820 \begin_layout Subsubsection
31821 File Locking
31822 \begin_inset CommandInset label
31823 LatexCommand label
31824 name "subsec:SVN-File-Locking"
31825
31826 \end_inset
31827
31828
31829 \end_layout
31830
31831 \begin_layout Standard
31832 The file exchange through various revision control systems brings the problem
31833  of merge conflicts in case two different users try to edit the same (parts
31834  of) document.
31835  When such a conflict happens it needs manual resolving and one reasonable
31836  alternative is to provide some kind of locking mechanism, which guarantees
31837  that only one user is allowed to edit file at the given time.
31838 \end_layout
31839
31840 \begin_layout Standard
31841 SVN has two such mechanisms to provide mutual exclusivity for file access
31842  – locks and automatic setting of write permissions (see sec.
31843  
31844 \begin_inset CommandInset ref
31845 LatexCommand ref
31846 reference "subsec:Automatical-Locking-Property"
31847
31848 \end_inset
31849
31850 ) based on 
31851 \begin_inset Flex Code
31852 status collapsed
31853
31854 \begin_layout Plain Layout
31855 svn:needs-lock
31856 \end_layout
31857
31858 \end_inset
31859
31860  file svn property
31861 \begin_inset Foot
31862 status collapsed
31863
31864 \begin_layout Plain Layout
31865 \begin_inset Flex URL
31866 status open
31867
31868 \begin_layout Plain Layout
31869
31870 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
31871 \end_layout
31872
31873 \end_inset
31874
31875
31876 \end_layout
31877
31878 \end_inset
31879
31880 .
31881  If this property is detected for a given document \SpecialChar LyX
31882  starts to use SVN locks
31883  for document editing automatically and the whole check-in/out mechanism
31884  switches to the same regimen as for RCS.
31885  This in particular means there are two different modes of file use in \SpecialChar LyX
31886 :
31887 \end_layout
31888
31889 \begin_layout Itemize
31890 Unlocked state.
31891  The loaded file is in the read-only mode.
31892  For editing on needs to check-out.
31893  
31894 \emph on
31895 Check-out
31896 \emph default
31897  consists of updating from the repository and gaining write lock.
31898  If the lock is not possible to obtain, we remain in unlocked state.
31899 \end_layout
31900
31901 \begin_layout Itemize
31902 Locked state.
31903  The loaded file is in the 
31904 \begin_inset Quotes els
31905 \end_inset
31906
31907 normal
31908 \begin_inset Quotes ers
31909 \end_inset
31910
31911  edit mode.
31912  No other user is allowed to edit the file.
31913  
31914 \emph on
31915 Check-in
31916 \emph default
31917  consists of commiting changes and releasing write-lock.
31918  If no changes have been made to the document, no commit will be produced
31919 \begin_inset Foot
31920 status collapsed
31921
31922 \begin_layout Plain Layout
31923 Don't be puzzled by the fact that you will be asked for commit message anyway.
31924 \end_layout
31925
31926 \end_inset
31927
31928  and only the write-lock will be released.
31929 \end_layout
31930
31931 \begin_layout Standard
31932 SVN commands:
31933 \end_layout
31934
31935 \begin_layout Labeling
31936 \labelwidthstring 00.00.0000
31937 Check-in:
31938 \family typewriter
31939  svn commit -q -m"<description>" "<file-name>"
31940 \begin_inset Newline newline
31941 \end_inset
31942
31943 svn unlock "<file-name>"
31944 \end_layout
31945
31946 \begin_layout Labeling
31947 \labelwidthstring 00.00.0000
31948 Check-out: 
31949 \family typewriter
31950 svn update "<file-name>"
31951 \begin_inset Newline newline
31952 \end_inset
31953
31954 svn lock "<file-name>"
31955 \end_layout
31956
31957 \begin_layout Subsubsection
31958
31959 \family typewriter
31960 \begin_inset CommandInset label
31961 LatexCommand label
31962 name "subsec:Automatical-Locking-Property"
31963
31964 \end_inset
31965
31966
31967 \family default
31968 Automatic Locking Property
31969 \end_layout
31970
31971 \begin_layout Standard
31972 The above mentioned automatic setting of write permissions of the .lyx file
31973  can be set through
31974 \family sans
31975  File\SpecialChar menuseparator
31976 Version
31977 \begin_inset space ~
31978 \end_inset
31979
31980 Control\SpecialChar menuseparator
31981 Use Locking Property
31982 \family default
31983 .
31984  This command is active only when the file is not locked on the svn server
31985  (i.e.
31986  you need to check-out before proceeding).
31987 \end_layout
31988
31989 \begin_layout Labeling
31990 \labelwidthstring 00.00.0000
31991 SVN
31992 \begin_inset space ~
31993 \end_inset
31994
31995 commands:
31996 \end_layout
31997
31998 \begin_layout Labeling
31999 \labelwidthstring 00.00.0000
32000 Set:
32001 \family typewriter
32002  svn propset svn:needs-lock ON "<file-name>"
32003 \end_layout
32004
32005 \begin_layout Labeling
32006 \labelwidthstring 00.00.0000
32007 Unset: 
32008 \family typewriter
32009 svn propdel svn:needs-lock "<file-name>"
32010 \end_layout
32011
32012 \begin_layout Subsubsection
32013 \begin_inset CommandInset label
32014 LatexCommand label
32015 name "subsec:VCS-Revision-Information"
32016
32017 \end_inset
32018
32019 Revision Information in Documents
32020 \end_layout
32021
32022 \begin_layout Standard
32023 There are more possibilities how to activate revision information in our
32024  document.
32025 \end_layout
32026
32027 \begin_layout Itemize
32028 \SpecialChar LyX
32029  supports directly:
32030 \end_layout
32031
32032 \begin_deeper
32033 \begin_layout Itemize
32034 tree revision information (
32035 \begin_inset Flex Code
32036 status collapsed
32037
32038 \begin_layout Plain Layout
32039 vcs-tree-revision
32040 \end_layout
32041
32042 \end_inset
32043
32044 ).
32045  The result is the output of the 
32046 \begin_inset Flex Code
32047 status collapsed
32048
32049 \begin_layout Plain Layout
32050 svnversion
32051 \end_layout
32052
32053 \end_inset
32054
32055  command, the following table gives you an idea, how to read the results.
32056 \end_layout
32057
32058 \begin_layout Standard
32059 \align center
32060 \begin_inset Tabular
32061 <lyxtabular version="3" rows="6" columns="2">
32062 <features tabularvalignment="middle">
32063 <column alignment="left" valignment="top">
32064 <column alignment="left" valignment="top">
32065 <row>
32066 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32067 \begin_inset Text
32068
32069 \begin_layout Plain Layout
32070
32071 \series bold
32072 Output
32073 \end_layout
32074
32075 \end_inset
32076 </cell>
32077 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32078 \begin_inset Text
32079
32080 \begin_layout Plain Layout
32081
32082 \series bold
32083 Meaning
32084 \end_layout
32085
32086 \end_inset
32087 </cell>
32088 </row>
32089 <row>
32090 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32091 \begin_inset Text
32092
32093 \begin_layout Plain Layout
32094 4123:4168
32095 \end_layout
32096
32097 \end_inset
32098 </cell>
32099 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32100 \begin_inset Text
32101
32102 \begin_layout Plain Layout
32103 mixed revision working copy
32104 \end_layout
32105
32106 \end_inset
32107 </cell>
32108 </row>
32109 <row>
32110 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32111 \begin_inset Text
32112
32113 \begin_layout Plain Layout
32114 4168M
32115 \end_layout
32116
32117 \end_inset
32118 </cell>
32119 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32120 \begin_inset Text
32121
32122 \begin_layout Plain Layout
32123 modified working copy
32124 \end_layout
32125
32126 \end_inset
32127 </cell>
32128 </row>
32129 <row>
32130 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32131 \begin_inset Text
32132
32133 \begin_layout Plain Layout
32134 4123S
32135 \end_layout
32136
32137 \end_inset
32138 </cell>
32139 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32140 \begin_inset Text
32141
32142 \begin_layout Plain Layout
32143 switched working copy
32144 \end_layout
32145
32146 \end_inset
32147 </cell>
32148 </row>
32149 <row>
32150 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32151 \begin_inset Text
32152
32153 \begin_layout Plain Layout
32154 4123P
32155 \end_layout
32156
32157 \end_inset
32158 </cell>
32159 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32160 \begin_inset Text
32161
32162 \begin_layout Plain Layout
32163 partial working copy, from a sparse checkout
32164 \end_layout
32165
32166 \end_inset
32167 </cell>
32168 </row>
32169 <row>
32170 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32171 \begin_inset Text
32172
32173 \begin_layout Plain Layout
32174 4123:4168MS
32175 \end_layout
32176
32177 \end_inset
32178 </cell>
32179 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32180 \begin_inset Text
32181
32182 \begin_layout Plain Layout
32183 mixed revision, modified, switched working copy
32184 \end_layout
32185
32186 \end_inset
32187 </cell>
32188 </row>
32189 </lyxtabular>
32190
32191 \end_inset
32192
32193
32194 \end_layout
32195
32196 \begin_layout Itemize
32197 file revision information.
32198  The result comes from parsing the output of 
32199 \begin_inset Flex Code
32200 status collapsed
32201
32202 \begin_layout Plain Layout
32203 svn
32204 \begin_inset space ~
32205 \end_inset
32206
32207 info
32208 \begin_inset space ~
32209 \end_inset
32210
32211 --xml
32212 \begin_inset space ~
32213 \end_inset
32214
32215 file.lyx
32216 \end_layout
32217
32218 \end_inset
32219
32220 .
32221  Supported flags are:
32222 \end_layout
32223
32224 \begin_deeper
32225 \begin_layout Itemize
32226 version number of the last commit (
32227 \begin_inset Flex Code
32228 status collapsed
32229
32230 \begin_layout Plain Layout
32231 vcs-revision
32232 \end_layout
32233
32234 \end_inset
32235
32236 )
32237 \end_layout
32238
32239 \begin_layout Itemize
32240 author of the last commit (
32241 \begin_inset Flex Code
32242 status collapsed
32243
32244 \begin_layout Plain Layout
32245 vcs-author
32246 \end_layout
32247
32248 \end_inset
32249
32250 )
32251 \end_layout
32252
32253 \begin_layout Itemize
32254 date of the last commit (
32255 \begin_inset Flex Code
32256 status collapsed
32257
32258 \begin_layout Plain Layout
32259 vcs-date
32260 \end_layout
32261
32262 \end_inset
32263
32264 )
32265 \end_layout
32266
32267 \begin_layout Itemize
32268 time of the last commit (
32269 \begin_inset Flex Code
32270 status collapsed
32271
32272 \begin_layout Plain Layout
32273 vcs-time
32274 \end_layout
32275
32276 \end_inset
32277
32278 )
32279 \end_layout
32280
32281 \end_deeper
32282 \begin_layout Standard
32283 You can obtain this info via InsetInfo (
32284 \change_inserted 5863208 1564400022
32285
32286 \lang american
32287 Insert\SpecialChar menuseparator
32288 Field\SpecialChar menuseparator
32289 Version Control Revision
32290 \change_deleted 5863208 1564399852
32291
32292 \lang english
32293 e.g.
32294  
32295 \begin_inset Flex Code
32296 status collapsed
32297
32298 \begin_layout Plain Layout
32299 info-insert buffer vcs-date
32300 \end_layout
32301
32302 \end_inset
32303
32304
32305 \change_unchanged
32306 ).
32307  The information will be available only when you have the file stored under
32308  svn managment (i.e.
32309  the 
32310 \begin_inset Flex Code
32311 status collapsed
32312
32313 \begin_layout Plain Layout
32314 .svn
32315 \end_layout
32316
32317 \end_inset
32318
32319  directory is available with your document).
32320 \end_layout
32321
32322 \end_deeper
32323 \begin_layout Itemize
32324 Another—a hacking one—possibility is to use svn keywords
32325 \begin_inset Foot
32326 status collapsed
32327
32328 \begin_layout Plain Layout
32329 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
32330 \end_layout
32331
32332 \end_inset
32333
32334 .
32335  In short – you set file keywords property (e.g.
32336  
32337 \family sans
32338 svn propset svn:keywords 'Rev' file.lyx
32339 \family default
32340 ) and then paste keyword \SpecialChar TeX
32341  code
32342 \begin_inset Foot
32343 status collapsed
32344
32345 \begin_layout Plain Layout
32346 This is an easy way how to ensure that \SpecialChar LyX
32347  won't break the line in the middle
32348  of keyword tag.
32349 \end_layout
32350
32351 \end_inset
32352
32353  tag in your document (e.g.
32354  
32355 \begin_inset Flex Code
32356 status collapsed
32357
32358 \begin_layout Plain Layout
32359 $Rev$
32360 \end_layout
32361
32362 \end_inset
32363
32364 ).
32365  This way svn client will automatically substitute revision number (e.g.
32366  
32367 \begin_inset Flex Code
32368 status collapsed
32369
32370 \begin_layout Plain Layout
32371 $Rev: 59 $
32372 \end_layout
32373
32374 \end_inset
32375
32376 ) after each update and commit.
32377  There are more problems with this approach.
32378  Firstly, the '$' character is used in \SpecialChar TeX
32379  world for math equations, so any
32380  occurence of math formula 
32381 \begin_inset Formula $Rev$
32382 \end_inset
32383
32384  become 
32385 \begin_inset Formula $Rev:59$
32386 \end_inset
32387
32388  in your \SpecialChar LyX
32389  document.
32390  Similarly for other keywords like Id, Date, Author, etc.
32391  Secondly svn output is dependent on your locales, so its very easy that
32392  svn would produce some problematic strings once Date is used.
32393  Thirdly you get the whole 'Rev: 59' string in your document instead of
32394  the plain number.
32395  Until subversion implements user's custom keywords it will be hard to use
32396  this approach reliably or let \SpecialChar LyX
32397  to support it directly.
32398 \end_layout
32399
32400 \begin_layout Subsection
32401 SVN and Windows Environment
32402 \end_layout
32403
32404 \begin_layout Quote
32405 My inclination is to say that if the user cannot figure out the command
32406  line operations on their own fairly quickly, they would be well advised
32407  to use TortoiseSVN.
32408  —P.
32409  A.
32410  Rubin
32411 \end_layout
32412
32413 \begin_layout Subsubsection
32414 Preparation
32415 \end_layout
32416
32417 \begin_layout Standard
32418 In addition to installing \SpecialChar LyX
32419 , and having access to a Subversion repository,
32420  the user will need to install the Subversion client program.
32421  A Windows installer for the client program is available from 
32422 \begin_inset CommandInset href
32423 LatexCommand href
32424 name "CollabNet"
32425 target "http://www.collab.net/nonav/downloads/subversion/"
32426 literal "false"
32427
32428 \end_inset
32429
32430 .
32431  The user may also want to install 
32432 \begin_inset CommandInset href
32433 LatexCommand href
32434 name "TortoiseSVN"
32435 target "http://tortoisesvn.tigris.org/"
32436 literal "false"
32437
32438 \end_inset
32439
32440 , which integrates Subversion operations into the context (rightclick) menu
32441  of Windows Explorer.
32442  Operations done outside \SpecialChar LyX
32443  will typically be more convenient using the Explorer
32444  context menu.
32445  Note that TortoiseSVN is not a replacement for the client program, which
32446  is what \SpecialChar LyX
32447  itself will use.
32448 \end_layout
32449
32450 \begin_layout Subsubsection
32451 Bringing a document under Subversion control
32452 \end_layout
32453
32454 \begin_layout Standard
32455 Before a \SpecialChar LyX
32456  document can be brought under version control in Subversion, its
32457  parent directory needs to be under version control.
32458  If the document is being added to a project already in the repository,
32459  this is accomplished by checking the project out to the directory where
32460  the new document will be placed.
32461  If the project itself is not yet under version control (for instance, if
32462  this document starts a new project), the directory must be imported into
32463  the repository.
32464  This is done outside \SpecialChar LyX
32465 .
32466  Both import and checkout are easily accomplished from the Explorer context
32467  menu using TortoiseSVN, or alternatively can be done using the command
32468  line client at a DOS prompt.
32469  The procedure for importing the project using TortoiseSVN is described
32470  below, assuming an existing repository and a new project being started
32471  in 
32472 \family typewriter
32473 C:
32474 \backslash
32475 new project
32476 \family default
32477 .
32478  For information on using the Subversion client program, run 
32479 \family typewriter
32480 svn --help 
32481 \family default
32482 in a DOS shell.
32483 \end_layout
32484
32485 \begin_layout Enumerate
32486 Locate 
32487 \family typewriter
32488 C:
32489 \backslash
32490 new project 
32491 \family default
32492 in Windows Explorer, right click it, and select 
32493 \family sans
32494 TortoiseSVN\SpecialChar menuseparator
32495 Repo-browser
32496 \family default
32497 .
32498  If necessary, adjust the URL for the repository, then click OK.
32499 \end_layout
32500
32501 \begin_layout Enumerate
32502 Right click the level of the repository under which you want to place the
32503  new project folder (typically the top level) and click 
32504 \family sans
32505 Create folder
32506 \family default
32507  Supply a name for the project folder and click OK.
32508  Add a message for the log file if desired, then click OK again.
32509  The new project folder should appear in the repository.
32510  Finally, click OK again to exit the repository browser.
32511 \end_layout
32512
32513 \begin_layout Enumerate
32514 Once again right click 
32515 \family typewriter
32516 C:
32517 \backslash
32518 new project
32519 \family default
32520 , this time selecting SVN Checkout\SpecialChar ldots
32521  Select the URL of the project folder
32522  you just created in the repository, and set the checkout directory to 
32523 \family typewriter
32524 C:
32525 \backslash
32526 new project.
32527
32528 \family default
32529  Click OK.
32530  You will be warned about a non-empty folder; click OK to proceed.
32531  You should now have a 
32532 \family typewriter
32533 .svn
32534 \family default
32535  directory under 
32536 \family typewriter
32537 C:
32538 \backslash
32539 new project.
32540 \end_layout
32541
32542 \begin_layout Enumerate
32543 Create or open your document in \SpecialChar LyX
32544  and click 
32545 \family sans
32546 File\SpecialChar menuseparator
32547 Version
32548 \begin_inset space ~
32549 \end_inset
32550
32551 Control\SpecialChar menuseparator
32552 Register.
32553  
32554 \family default
32555 Add a log message and click OK to commit the document to version control.
32556 \end_layout
32557
32558 \begin_layout Standard
32559 From this point onward, you should have full functionality in the 
32560 \family sans
32561 File\SpecialChar menuseparator
32562 Version
32563 \begin_inset space ~
32564 \end_inset
32565
32566 Control
32567 \family default
32568  menu.
32569  You also have the option of checking the document in and out, viewing its
32570  history, etc.
32571  using the TortoiseSVN context menu in Windows Explorer or the Subversion
32572  client program from a command prompt.
32573 \end_layout
32574
32575 \begin_layout Subsubsection
32576 SSH tunnel used with SVN under Windows
32577 \end_layout
32578
32579 \begin_layout Standard
32580 Compared with Linux setting up an svn client to communicate over ssh under
32581  Windows is a rather troublesome task.
32582  We will at least offer some hints how to setup the client side but prior
32583  knowledge about ssh and the Windows command line is needed, also be prepared
32584  for a great deal of frustration\SpecialChar ldots
32585
32586 \end_layout
32587
32588 \begin_layout Enumerate
32589 Get an svn client for windows, as described in the previous sections.
32590  When it is a fresh install run some svn command (e.g.
32591  
32592 \begin_inset Flex Code
32593 status collapsed
32594
32595 \begin_layout Plain Layout
32596 svn --version
32597 \end_layout
32598
32599 \end_inset
32600
32601 ) to create config files, which you will need to change later on.
32602 \end_layout
32603
32604 \begin_layout Enumerate
32605 Choose an ssh client for Windows.
32606  There are several possibilities, we will use the one from Putty tools
32607 \begin_inset Foot
32608 status collapsed
32609
32610 \begin_layout Plain Layout
32611 \begin_inset Flex URL
32612 status collapsed
32613
32614 \begin_layout Plain Layout
32615
32616 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
32617 \end_layout
32618
32619 \end_inset
32620
32621
32622 \end_layout
32623
32624 \end_inset
32625
32626 .
32627  You will need to set the connection up so that the client doesn't ask for
32628  any password from you.
32629  To keep things easy we will use only keys without any additional password
32630  protection etc.
32631 \end_layout
32632
32633 \begin_deeper
32634 \begin_layout Enumerate
32635 Generate keys by 
32636 \begin_inset Flex Code
32637 status collapsed
32638
32639 \begin_layout Plain Layout
32640 puttygen
32641 \end_layout
32642
32643 \end_inset
32644
32645 .
32646  Save your private .ppk key file and put the public one on the server side.
32647  If the SVN server runs on Linux, note that the format of the public key
32648  is not compatible with Linux openssh and you will need to direcly copy-paste
32649  the key from the 
32650 \begin_inset Quotes eld
32651 \end_inset
32652
32653
32654 \emph on
32655 Public key for pasting into OpenSSH authorized_keys file
32656 \emph default
32657 :
32658 \begin_inset Quotes erd
32659 \end_inset
32660
32661  edit field into the server's 
32662 \begin_inset Flex Code
32663 status collapsed
32664
32665 \begin_layout Plain Layout
32666 ~/.ssh/authorized_keys
32667 \end_layout
32668
32669 \end_inset
32670
32671  / 
32672 \begin_inset Flex Code
32673 status collapsed
32674
32675 \begin_layout Plain Layout
32676 authorized_keys2
32677 \end_layout
32678
32679 \end_inset
32680
32681  file.
32682 \end_layout
32683
32684 \begin_layout Enumerate
32685 Get the Putty's 
32686 \begin_inset Flex Code
32687 status collapsed
32688
32689 \begin_layout Plain Layout
32690 plink
32691 \end_layout
32692
32693 \end_inset
32694
32695 .
32696  In the SVN config file
32697 \begin_inset Foot
32698 status collapsed
32699
32700 \begin_layout Plain Layout
32701 Exact path depends on Windows version, usually somewhere around 
32702 \begin_inset Flex Code
32703 status collapsed
32704
32705 \begin_layout Plain Layout
32706 c:
32707 \backslash
32708 Documents and Settings
32709 \backslash
32710 user
32711 \backslash
32712 Application Data
32713 \backslash
32714 Subversion
32715 \backslash
32716 config
32717 \end_layout
32718
32719 \end_inset
32720
32721  / 
32722 \begin_inset Flex Code
32723 status collapsed
32724
32725 \begin_layout Plain Layout
32726 AppData
32727 \backslash
32728 Roaming
32729 \backslash
32730 Subversion
32731 \end_layout
32732
32733 \end_inset
32734
32735 .
32736 \end_layout
32737
32738 \end_inset
32739
32740 , section [tunnels], setup ssh command, e.g.
32741  
32742 \begin_inset Flex Code
32743 status collapsed
32744
32745 \begin_layout Plain Layout
32746 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
32747 \end_layout
32748
32749 \end_inset
32750
32751 .
32752 \begin_inset Foot
32753 status collapsed
32754
32755 \begin_layout Plain Layout
32756 It will usually take a lot of time to get exact command right and it depends
32757  on many things.
32758  For example do not have some remote server saved as a default session in
32759  Putty etc.
32760  If things fail, try to connect via plink without SVN first.
32761 \end_layout
32762
32763 \end_inset
32764
32765
32766 \end_layout
32767
32768 \end_deeper
32769 \begin_layout Enumerate
32770 Checkout the SVN archive, e.
32771 \begin_inset space \thinspace{}
32772 \end_inset
32773
32774 g.
32775 \begin_inset Newline newline
32776 \end_inset
32777
32778
32779 \begin_inset Flex Code
32780 status collapsed
32781
32782 \begin_layout Plain Layout
32783 svn co svn+ssh://user@server/repository_path
32784 \end_layout
32785
32786 \end_inset
32787
32788 .
32789 \end_layout
32790
32791 \begin_layout Subsubsection
32792 End-of-Line Conversions
32793 \end_layout
32794
32795 \begin_layout Standard
32796 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
32797  will
32798  use different line endings inside the .lyx files.
32799  This is not a problem as far as \SpecialChar LyX
32800  functionality is concerned, but the commit
32801  diffs will be huge and merge-conflicts prone.
32802  Fortunately SVN itself knows
32803 \begin_inset Foot
32804 status collapsed
32805
32806 \begin_layout Plain Layout
32807 \begin_inset Flex URL
32808 status collapsed
32809
32810 \begin_layout Plain Layout
32811
32812 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
32813 \end_layout
32814
32815 \end_inset
32816
32817
32818 \end_layout
32819
32820 \end_inset
32821
32822  how to deal with CR/LF problems when switching .lyx files to the 
32823 \begin_inset Flex Code
32824 status collapsed
32825
32826 \begin_layout Plain Layout
32827 native
32828 \end_layout
32829
32830 \end_inset
32831
32832  mode.
32833 \begin_inset Foot
32834 status collapsed
32835
32836 \begin_layout Plain Layout
32837 For the lazy guys: 
32838 \begin_inset Flex Code
32839 status collapsed
32840
32841 \begin_layout Plain Layout
32842 svn propset svn:eol-style native FILE_NAME
32843 \end_layout
32844
32845 \end_inset
32846
32847
32848 \end_layout
32849
32850 \end_inset
32851
32852
32853 \end_layout
32854
32855 \begin_layout Subsection
32856 GIT commands in \SpecialChar LyX
32857
32858 \end_layout
32859
32860 \begin_layout Standard
32861 A minimal subset of GIT commands is now supported by \SpecialChar LyX
32862 .
32863  You can find the commands in the 
32864 \family sans
32865 File\SpecialChar menuseparator
32866 Version
32867 \begin_inset space ~
32868 \end_inset
32869
32870 Control
32871 \family default
32872  submenu.
32873  Please note that if you use password protected access to repository via
32874  ssh, you will be asked in terminal window.
32875  \SpecialChar LyX
32876  was tested against GIT 1.7.
32877 \begin_inset Foot
32878 status collapsed
32879
32880 \begin_layout Plain Layout
32881 Windows users please note that you need to ensure that git is on the path.
32882  This can be set from within \SpecialChar LyX
32883  at 
32884 \family sans
32885 Tools\SpecialChar menuseparator
32886 Preferences\SpecialChar menuseparator
32887 Paths\SpecialChar menuseparator
32888 PATH prefix
32889 \family default
32890 .
32891 \end_layout
32892
32893 \end_inset
32894
32895
32896 \end_layout
32897
32898 \begin_layout Standard
32899 One big difference of GIT and the other supported version control systems
32900  is the distributed nature of GIT: With traditional version control systems
32901  there is one central server which hosts the repository.
32902  Users commit their changes to the server, and get updates made by other
32903  users from it.
32904  With GIT, users commit to a local repository.
32905  The local repository can be synchronized with one or more remote repositories
32906  using the 
32907 \begin_inset Flex Code
32908 status collapsed
32909
32910 \begin_layout Plain Layout
32911 pull
32912 \end_layout
32913
32914 \end_inset
32915
32916  and 
32917 \begin_inset Flex Code
32918 status collapsed
32919
32920 \begin_layout Plain Layout
32921 push
32922 \end_layout
32923
32924 \end_inset
32925
32926  GIT commands.
32927  \SpecialChar LyX
32928  does not interact in any way with remote GIT repositories.
32929  It works exclusively with the local repository in a very similar way as
32930  with a central CVS or SVN repository.
32931  If you use remote GIT repositories you need to do the 
32932 \begin_inset Flex Code
32933 status collapsed
32934
32935 \begin_layout Plain Layout
32936 pull
32937 \end_layout
32938
32939 \end_inset
32940
32941  and 
32942 \begin_inset Flex Code
32943 status collapsed
32944
32945 \begin_layout Plain Layout
32946 push
32947 \end_layout
32948
32949 \end_inset
32950
32951  operations with your favourite GIT client.
32952 \end_layout
32953
32954 \begin_layout Subsubsection
32955
32956 \family sans
32957 Register
32958 \end_layout
32959
32960 \begin_layout Standard
32961 If your document is not under revision control, this is the only item shown
32962  in the menu.
32963  And if it is under revision control, the 
32964 \family sans
32965 Register
32966 \family default
32967  item is not visible.
32968 \end_layout
32969
32970 \begin_layout Standard
32971 This command registers in GIT your document ONLY in case you have already
32972  the documents directory under GIT control (in particular 
32973 \family typewriter
32974 .git/index
32975 \family default
32976  file exists).
32977  This means you have to checkout the archive by yourself.
32978 \end_layout
32979
32980 \begin_layout Standard
32981 Then you are asked interactively to supply an initial description of the
32982  document.
32983  Don't forget that registered file is not yet committed.
32984 \end_layout
32985
32986 \begin_layout Standard
32987 GIT command that is run: 
32988 \family typewriter
32989 git add 
32990 \begin_inset Quotes qld
32991 \end_inset
32992
32993 <file-name>
32994 \begin_inset Quotes qld
32995 \end_inset
32996
32997
32998 \end_layout
32999
33000 \begin_layout Standard
33001 Read 
33002 \family typewriter
33003 man git
33004 \family default
33005  to understand the switches.
33006 \end_layout
33007
33008 \begin_layout Subsubsection
33009
33010 \family sans
33011 Check In Changes
33012 \end_layout
33013
33014 \begin_layout Standard
33015 When you are finished editing a file, you commit your changes.
33016  When you do this, you are asked for a description of the changes.
33017  After that changes are committed.
33018 \end_layout
33019
33020 \begin_layout Standard
33021 GIT command: 
33022 \family typewriter
33023 git commit -q -m"<description>" <file-name>
33024 \end_layout
33025
33026 \begin_layout Subsubsection
33027
33028 \family sans
33029 Revert To Repository Version
33030 \end_layout
33031
33032 \begin_layout Standard
33033 This will discard all changes made to the document since the last check
33034  in.
33035  You get a warning before changes are discarded.
33036 \end_layout
33037
33038 \begin_layout Standard
33039 GIT command: 
33040 \family typewriter
33041 git checkout -q 
33042 \begin_inset Quotes qld
33043 \end_inset
33044
33045 <file-name>
33046 \begin_inset Quotes qld
33047 \end_inset
33048
33049
33050 \end_layout
33051
33052 \begin_layout Subsubsection
33053
33054 \family sans
33055 Rename
33056 \end_layout
33057
33058 \begin_layout Standard
33059 This will rename the current document including the version history.
33060  It requires a clean document without any changes since the last checkin.
33061  You are asked for a file name and a description of the rename operation.
33062  After that the document is renamed, both locally and in the repository.
33063  If the parent directories of the new and old file names differ, all relative
33064  paths of included files are adjusted (like in 
33065 \family sans
33066 File\SpecialChar menuseparator
33067 Save As
33068 \family default
33069 \SpecialChar ldots
33070 ).
33071  Finally, the document is reloaded using the new name.
33072 \end_layout
33073
33074 \begin_layout Labeling
33075 \labelwidthstring 00.00.0000
33076 GIT
33077 \begin_inset space ~
33078 \end_inset
33079
33080 commands: 
33081 \begin_inset space ~
33082 \end_inset
33083
33084
33085 \begin_inset Newline newline
33086 \end_inset
33087
33088
33089 \begin_inset Flex Code
33090 status collapsed
33091
33092 \begin_layout Plain Layout
33093 git mv 
33094 \family typewriter
33095
33096 \begin_inset Quotes qld
33097 \end_inset
33098
33099 <file-name>
33100 \begin_inset Quotes qld
33101 \end_inset
33102
33103  
33104 \begin_inset Quotes qld
33105 \end_inset
33106
33107 <new-file-name>
33108 \begin_inset Quotes qld
33109 \end_inset
33110
33111
33112 \end_layout
33113
33114 \end_inset
33115
33116
33117 \begin_inset Newline newline
33118 \end_inset
33119
33120
33121 \begin_inset Flex Code
33122 status collapsed
33123
33124 \begin_layout Plain Layout
33125 git commit
33126 \end_layout
33127
33128 \end_inset
33129
33130
33131 \end_layout
33132
33133 \begin_layout Subsubsection
33134
33135 \family sans
33136 Show History
33137 \end_layout
33138
33139 \begin_layout Standard
33140 This shows the complete history of the GIT document.
33141  The output of 
33142 \family typewriter
33143 git log 
33144 \begin_inset Quotes qld
33145 \end_inset
33146
33147 <file-name>
33148 \begin_inset Quotes qld
33149 \end_inset
33150
33151
33152 \family default
33153  is shown in a browser.
33154 \end_layout
33155
33156 \begin_layout Subsubsection
33157 Version Info
33158 \end_layout
33159
33160 \begin_layout Standard
33161 \SpecialChar LyX
33162  supports GIT hash number of the last commit to the file, 
33163 \change_inserted 1119979965 1564297456
33164 its abbreviated form, 
33165 \change_unchanged
33166 author name, date and time of last commit.
33167  All those are extracted from 
33168 \family typewriter
33169 git log -n 1 --pretty=format:%H%n
33170 \change_inserted 1119979965 1564297427
33171 %h%n
33172 \change_unchanged
33173 %an%n%ai
33174 \family default
33175 .
33176  Tree version information is obtained via 
33177 \family typewriter
33178 git describe --abbrev --dirty --long
33179 \family default
33180 .
33181  See 
33182 \begin_inset CommandInset ref
33183 LatexCommand ref
33184 reference "subsec:VCS-Revision-Information"
33185
33186 \end_inset
33187
33188  for other details.
33189 \end_layout
33190
33191 \begin_layout Subsection
33192 Further tuning
33193 \end_layout
33194
33195 \begin_layout Standard
33196 With the recent addition of the 
33197 \begin_inset Flex Code
33198 status collapsed
33199
33200 \begin_layout Plain Layout
33201 vc-command
33202 \end_layout
33203
33204 \end_inset
33205
33206  function \SpecialChar LyX
33207  power users are allowed to create their own commands for revision
33208  control.
33209 \end_layout
33210
33211 \begin_layout Standard
33212 As an example you can see how two TortoiseSVN commands could be integrated
33213  directly:
33214 \end_layout
33215
33216 \begin_layout Description
33217 Commit: 
33218 \begin_inset Flex Code
33219 status collapsed
33220
33221 \begin_layout Plain Layout
33222 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
33223 \end_layout
33224
33225 \end_inset
33226
33227
33228 \end_layout
33229
33230 \begin_layout Description
33231 Revert: 
33232 \begin_inset Flex Code
33233 status collapsed
33234
33235 \begin_layout Plain Layout
33236 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
33237 \end_layout
33238
33239 \end_inset
33240
33241
33242 \end_layout
33243
33244 \begin_layout Subsection
33245 Version control and Document comparison
33246 \end_layout
33247
33248 \begin_layout Standard
33249 One of the typical uses of version control is to inspect the changes between
33250  revisions, usually by creating 
33251 \begin_inset Flex Code
33252 status collapsed
33253
33254 \begin_layout Plain Layout
33255 diff
33256 \end_layout
33257
33258 \end_inset
33259
33260  dumps.
33261  While this is useful for plain text files, it is much less useful in the
33262  case of \SpecialChar LyX
33263  files, which have more a complicated structure.
33264  Hence we provide binding to the Document comparison feature.
33265  There are two ways of calling this feature – either by direct call of 
33266 \begin_inset Flex Code
33267 status collapsed
33268
33269 \begin_layout Plain Layout
33270 vc-compare
33271 \end_layout
33272
33273 \end_inset
33274
33275  \SpecialChar LyX
33276  function (for details see \SpecialChar LyX
33277  functions manual) or by the toolbar icon 
33278 \begin_inset Info
33279 type  "icon"
33280 arg   "vc-compare"
33281 \end_inset
33282
33283  or the menu item 
33284 \begin_inset Info
33285 type  "menu"
33286 arg   "vc-compare"
33287 \end_inset
33288
33289 , respectively.
33290  One can either compare two chosen revisions of the document or he can simply
33291  compare the current version of edited text with older revisions (where
33292  '
33293 \begin_inset Flex Noun
33294 status collapsed
33295
33296 \begin_layout Plain Layout
33297 0
33298 \end_layout
33299
33300 \end_inset
33301
33302 ' revisions back means comparison of the edited file with last commited
33303  revision).
33304  
33305 \end_layout
33306
33307 \begin_layout Standard
33308 This feature is supported for SVN and RCS though due to the more complicated
33309  versioning scheme of RCS there is a constraint – when addressing the revisions
33310  in dialog, numbers always point to the last number in RCS revision number,
33311  i.e.
33312  '35' in '1.2.35'.
33313  We don't currently support GIT addressing of revisions, one can just compare
33314  edited document with its revision X steps backs, where X is addressed as
33315  
33316 \begin_inset Flex Code
33317 status collapsed
33318
33319 \begin_layout Plain Layout
33320 HEAD~X
33321 \end_layout
33322
33323 \end_inset
33324
33325 .
33326 \end_layout
33327
33328 \begin_layout Section
33329
33330 \change_inserted 564990737 1672161575
33331 \begin_inset CommandInset label
33332 LatexCommand label
33333 name "sec:Literate-Programming"
33334
33335 \end_inset
33336
33337
33338 \change_unchanged
33339 Literate Programming
33340 \end_layout
33341
33342 \begin_layout Standard
33343 Updated by 
33344 \noun on
33345 Kayvan Sylvan 
33346 \noun default
33347 (kayvan@sylvan.com)
33348 \noun on
33349
33350 \noun default
33351 original documentation written by 
33352 \noun on
33353 Edmar Wienskoski Jr.
33354
33355 \noun default
33356  (edmar-w-jr@technologist.com)
33357 \end_layout
33358
33359 \begin_layout Subsection
33360 Introduction
33361 \end_layout
33362
33363 \begin_layout Standard
33364 The main purpose of this documentation is to show you how to use \SpecialChar LyX
33365  for literate
33366  programming, where it is assumed that you are familiar with this programming
33367  technique, and know what 
33368 \begin_inset Quotes eld
33369 \end_inset
33370
33371 tangling
33372 \begin_inset Quotes erd
33373 \end_inset
33374
33375  and 
33376 \begin_inset Quotes eld
33377 \end_inset
33378
33379 weaving
33380 \begin_inset Quotes erd
33381 \end_inset
33382
33383  means.
33384  If that is not the case, please follow the web links provided in the following
33385  sections.
33386  There is a lot of good documentation out there covering old development
33387  history to the latest tools tips.
33388 \end_layout
33389
33390 \begin_layout Standard
33391 It is also assumed that you are familiar with \SpecialChar LyX
33392  itself to a point that you
33393  are comfortable changing your \SpecialChar LyX
33394  preferences, and X resources file.
33395  If that is not the case please refer to other \SpecialChar LyX
33396  documentation to cover your
33397  specific needs.
33398 \end_layout
33399
33400 \begin_layout Subsection
33401 Literate Programming
33402 \end_layout
33403
33404 \begin_layout Standard
33405 From the Literate Programming FAQ: 
33406 \end_layout
33407
33408 \begin_layout Quotation
33409 Literate programming is the combination of documentation and source together
33410  in a fashion suited for reading by human beings.
33411  In fact, literate programs should be enjoyable reading, even inviting!
33412  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
33413  and documentation in a single file.
33414  Literate programming tools then parse the file to produce either readable
33415  documentation or compilable source.
33416  The WEB style of literate programming was created by D.
33417 \begin_inset space \thinspace{}
33418 \end_inset
33419
33420 E.
33421  Knuth during the development of his \SpecialChar TeX
33422  typesetting software.
33423  
33424 \end_layout
33425
33426 \begin_layout Standard
33427 Another excerpt says:
33428 \end_layout
33429
33430 \begin_layout Quotation
33431
33432 \emph on
33433 How is literate programming different from verbose commenting?
33434 \end_layout
33435
33436 \begin_layout Quotation
33437 There are three distinguishing characteristics.
33438  In order of importance, they are: 
33439 \end_layout
33440
33441 \begin_deeper
33442 \begin_layout Itemize
33443 flexible order of elaboration 
33444 \end_layout
33445
33446 \begin_layout Itemize
33447 automatic support for browsing 
33448 \end_layout
33449
33450 \begin_layout Itemize
33451 typeset documentation, especially diagrams and mathematics 
33452 \end_layout
33453
33454 \end_deeper
33455 \begin_layout Standard
33456 Now that I sparked your curiosity, take a look in the references.
33457 \end_layout
33458
33459 \begin_layout Subsubsection
33460 References
33461 \end_layout
33462
33463 \begin_layout Standard
33464 The complete Literate Programming FAQ can be found at:
33465 \end_layout
33466
33467 \begin_layout Quote
33468 Literate Programming FAQ 
33469 \begin_inset Flex URL
33470 status open
33471
33472 \begin_layout Plain Layout
33473
33474 http://www.literateprogramming.com/lpfaq.pdf
33475 \end_layout
33476
33477 \end_inset
33478
33479
33480 \end_layout
33481
33482 \begin_layout Standard
33483 The FAQ lists 23 (twenty three!) different literate programming tools.
33484  Where some are specialized or 
33485 \begin_inset Quotes eld
33486 \end_inset
33487
33488 tailored
33489 \begin_inset Quotes erd
33490 \end_inset
33491
33492  for particular programming languages, while other have general scope.
33493  I selected 
33494 \noun on
33495 Noweb
33496 \noun default
33497  for my own use for several reasons:
33498 \end_layout
33499
33500 \begin_layout Itemize
33501 It can generate the documentation either in \SpecialChar LaTeX
33502  or HTML.
33503 \end_layout
33504
33505 \begin_layout Itemize
33506 It has a open architecture, i.
33507 \begin_inset space \thinspace{}
33508 \end_inset
33509
33510 e.
33511 \begin_inset space \space{}
33512 \end_inset
33513
33514 it is easy to plug in new filters
33515 \begin_inset Foot
33516 status collapsed
33517
33518 \begin_layout Plain Layout
33519
33520 \emph on
33521 Filters 
33522 \emph default
33523 are programs that read a given data stream and output a manipulated data
33524  stream.
33525  That way, a WEB file (consisting of literate code) can be turned into a
33526  file consisting only of C program code or \SpecialChar LaTeX
33527  code.
33528 \end_layout
33529
33530 \end_inset
33531
33532  and to perform special processing that you may need.
33533  
33534 \end_layout
33535
33536 \begin_layout Itemize
33537 There is a good selection of filters available already (the HTML is one
33538  of them).
33539 \end_layout
33540
33541 \begin_layout Itemize
33542 It is free.
33543 \end_layout
33544
33545 \begin_layout Standard
33546 The Noweb web page can be found at: 
33547 \end_layout
33548
33549 \begin_layout Quote
33550 Noweb home page 
33551 \begin_inset Flex URL
33552 status collapsed
33553
33554 \begin_layout Plain Layout
33555
33556 https://www.cs.tufts.edu/~nr/noweb/
33557 \end_layout
33558
33559 \end_inset
33560
33561
33562 \end_layout
33563
33564 \begin_layout Standard
33565 Starting from there you can reach many other interesting links and even
33566  some literate program examples.
33567 \end_layout
33568
33569 \begin_layout Subsection
33570 \SpecialChar LyX
33571  and Literate Programming with Noweb
33572 \end_layout
33573
33574 \begin_layout Standard
33575 The \SpecialChar LyX
33576  support for Literate Programming is provided by using the generic \SpecialChar LyX
33577
33578  converters mechanism.
33579  This support is provided in a 
33580 \begin_inset Quotes eld
33581 \end_inset
33582
33583 Noweb independent
33584 \begin_inset Quotes erd
33585 \end_inset
33586
33587  way, i.
33588 \begin_inset space \thinspace{}
33589 \end_inset
33590
33591 e.
33592 \begin_inset space \space{}
33593 \end_inset
33594
33595 you will be able to use this new \SpecialChar LyX
33596  feature with some other literate programming
33597  tool of your choice by just changing your \SpecialChar LyX
33598  preferences.
33599 \end_layout
33600
33601 \begin_layout Subsubsection
33602 Generating documents and code (weaving and tangling)
33603 \end_layout
33604
33605 \begin_layout Paragraph
33606 Using the noweb module
33607 \end_layout
33608
33609 \begin_layout Standard
33610 If you have installed Noweb and \SpecialChar LyX
33611  successfully, whenever you open a new document,
33612  after you have chosen its document class, use the 
33613 \family sans
33614 Document\SpecialChar menuseparator
33615 Settings
33616 \family default
33617  menu to add the 
33618 \begin_inset Quotes eld
33619 \end_inset
33620
33621 noweb
33622 \begin_inset Quotes erd
33623 \end_inset
33624
33625  module.
33626  If Noweb is correctly installed, when you click on the 
33627 \begin_inset Quotes eld
33628 \end_inset
33629
33630 Modules
33631 \begin_inset Quotes erd
33632 \end_inset
33633
33634  link, you will see the 
33635 \begin_inset Quotes eld
33636 \end_inset
33637
33638 noweb
33639 \begin_inset Quotes erd
33640 \end_inset
33641
33642  module in the available list and you can add it to your document.
33643 \end_layout
33644
33645 \begin_layout Paragraph
33646 Typing code in
33647 \end_layout
33648
33649 \begin_layout Standard
33650 \SpecialChar LyX
33651  enables you to write code with a custom inset named 
33652 \begin_inset Flex Noun
33653 status collapsed
33654
33655 \begin_layout Plain Layout
33656 Chunk
33657 \end_layout
33658
33659 \end_inset
33660
33661 .
33662  Noweb delimits chunks like this:
33663 \end_layout
33664
33665 \begin_layout LyX-Code
33666 <<My code>>=
33667 \end_layout
33668
33669 \begin_layout LyX-Code
33670   code
33671 \end_layout
33672
33673 \begin_layout LyX-Code
33674   more code
33675 \end_layout
33676
33677 \begin_layout LyX-Code
33678   even more code
33679 \end_layout
33680
33681 \begin_layout LyX-Code
33682   @
33683 \end_layout
33684
33685 \begin_layout Standard
33686 The problem is that whatever is written in between the << and the 
33687 \family typewriter
33688 @
33689 \family default
33690  must be taken literally, i.
33691 \begin_inset space \thinspace{}
33692 \end_inset
33693
33694 e.
33695 \begin_inset space \space{}
33696 \end_inset
33697
33698 \SpecialChar LyX
33699  should be prevented from making any special interpretation of what has
33700  been written.
33701  This is also handled by 
33702 \begin_inset Flex Noun
33703 status collapsed
33704
33705 \begin_layout Plain Layout
33706 Chunk
33707 \end_layout
33708
33709 \end_inset
33710
33711 , that works like a normal text inset but has a free spacing capability.
33712 \end_layout
33713
33714 \begin_layout Standard
33715 As a special note, you can also use the 
33716 \begin_inset Quotes eld
33717 \end_inset
33718
33719 %def
33720 \begin_inset Quotes erd
33721 \end_inset
33722
33723  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
33724 rence:
33725 \end_layout
33726
33727 \begin_layout LyX-Code
33728 <<My chunk>>=
33729 \end_layout
33730
33731 \begin_layout LyX-Code
33732 def some_function(args):
33733 \end_layout
33734
33735 \begin_layout LyX-Code
33736    "This is the doc string for this function."
33737 \end_layout
33738
33739 \begin_layout LyX-Code
33740    print "My args: ", args
33741 \end_layout
33742
33743 \begin_layout LyX-Code
33744 @ %def some_function
33745 \end_layout
33746
33747 \begin_layout Standard
33748 For an example of this usage and the resulting cross-reference output, look
33749  at the Literate python program in 
33750 \emph on
33751 LIBDIR/examples/listerrors.lyx
33752 \emph default
33753  which should make this all clear.
33754 \end_layout
33755
33756 \begin_layout Paragraph
33757 Generating the documentation
33758 \end_layout
33759
33760 \begin_layout Standard
33761 At this point you already have a new document file with a proper document
33762  class, and with some code and text on it.
33763  How do I print it? The answer is simple, you select 
33764 \family sans
33765 View\SpecialChar menuseparator
33766 DVI,
33767 \family default
33768  etc.
33769  Just like you would do for a plain document.
33770  No special procedure is required.
33771 \end_layout
33772
33773 \begin_layout Standard
33774 To help orientate you, I will now explain what happens inside \SpecialChar LyX
33775 :
33776 \end_layout
33777
33778 \begin_layout Enumerate
33779 When the 
33780 \family sans
33781 Update\SpecialChar menuseparator
33782 DVI
33783 \family default
33784  menu option is chosen, a \SpecialChar LaTeX
33785  file is generated.
33786  
33787 \end_layout
33788
33789 \begin_deeper
33790 \begin_layout Standard
33791 If the document is of any literate class the generated file will be named
33792  with an extension name defined by the 
33793 \begin_inset Quotes eld
33794 \end_inset
33795
33796 literate
33797 \begin_inset Quotes erd
33798 \end_inset
33799
33800  format (defined in the Preferences panel), otherwise the file will have
33801  the usual 
33802 \family typewriter
33803 .tex
33804 \family default
33805  extension.
33806 \end_layout
33807
33808 \end_deeper
33809 \begin_layout Enumerate
33810 Note that the only difference so far is in the name of the file, no special
33811  processing is required by \SpecialChar LyX
33812 .
33813  Given that you formatted the code using the 
33814 \begin_inset Flex Noun
33815 status collapsed
33816
33817 \begin_layout Plain Layout
33818 Chunk
33819 \end_layout
33820
33821 \end_inset
33822
33823  inset that, by itself, takes care of the business.
33824 \end_layout
33825
33826 \begin_layout Enumerate
33827 If the document is of any literate class \SpecialChar LyX
33828  will then use the internal \SpecialChar LyX
33829  to
33830  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
33831  converter
33832 \begin_inset Foot
33833 status collapsed
33834
33835 \begin_layout Plain Layout
33836 The converters are defined in the 
33837 \family sans
33838 Tools\SpecialChar menuseparator
33839 Preferences
33840 \family default
33841  panel, under the 
33842 \begin_inset Quotes eld
33843 \end_inset
33844
33845 Conversion
33846 \begin_inset Quotes erd
33847 \end_inset
33848
33849  tab.
33850  See section 
33851 \emph on
33852 Converters
33853 \emph default
33854  of the 
33855 \emph on
33856 Customization
33857 \emph default
33858  manual for general information about converters.
33859 \end_layout
33860
33861 \end_inset
33862
33863  to generate the \SpecialChar LaTeX
33864  file.
33865 \end_layout
33866
33867 \begin_deeper
33868 \begin_layout Standard
33869 Otherwise it will just skip this step.
33870 \end_layout
33871
33872 \end_deeper
33873 \begin_layout Enumerate
33874 Finally, \SpecialChar LaTeX
33875  is invoked and the regular post processing continues as in a plain
33876  document.
33877 \end_layout
33878
33879 \begin_layout Standard
33880 Independence from a particular 
33881 \begin_inset Quotes eld
33882 \end_inset
33883
33884 literate tool
33885 \begin_inset Quotes erd
33886 \end_inset
33887
33888  is easily achieved by changing the commands that are run by the various
33889  converters.
33890 \end_layout
33891
33892 \begin_layout Paragraph
33893 Generating the code
33894 \end_layout
33895
33896 \begin_layout Standard
33897 When the build menu option is chosen or the corresponding button in the
33898  toolbar is pressed, a \SpecialChar LaTeX
33899  file is generated just like step 1 above.
33900  Next, \SpecialChar LyX
33901  invokes the 
33902 \family typewriter
33903 Noweb->Program
33904 \family default
33905  converter.
33906  This converter needs to be defined by the user and is not installed by
33907  default, though the Program format is.
33908  This converter (like any other converter) will have two parts:
33909 \end_layout
33910
33911 \begin_layout Enumerate
33912 The converter program itself.
33913  This program performs the conversion from the one format to the other (in
33914  this case, from the Noweb format to the Program pseudo-format).
33915 \end_layout
33916
33917 \begin_layout Enumerate
33918 The error log parser.
33919  This is a program whose sole purpose is to rewrite error messages in a
33920  format that \SpecialChar LyX
33921  understands.
33922  This makes it possible for \SpecialChar LyX
33923  to place error boxes in the right places in
33924  the file buffer.
33925 \end_layout
33926
33927 \begin_layout Standard
33928 The first part, the 
33929 \begin_inset Quotes eld
33930 \end_inset
33931
33932 Converter
33933 \begin_inset Quotes erd
33934 \end_inset
33935
33936  setting, should be set to
33937 \end_layout
33938
33939 \begin_layout LyX-Code
33940
33941 \family typewriter
33942 build-script $$i
33943 \family default
33944  $$r
33945 \end_layout
33946
33947 \begin_layout Standard
33948 This basically means that \SpecialChar LyX
33949  will call 
33950 \begin_inset Quotes eld
33951 \end_inset
33952
33953 build-script
33954 \begin_inset Quotes erd
33955 \end_inset
33956
33957  (a program or script) with the name of the Noweb file (normally a file
33958  in the \SpecialChar LyX
33959  temp directory) and the directory path of the original \SpecialChar LyX
33960  file.
33961  
33962 \end_layout
33963
33964 \begin_layout Standard
33965 This is an implementation of 
33966 \begin_inset Quotes eld
33967 \end_inset
33968
33969 build-script
33970 \begin_inset Quotes erd
33971 \end_inset
33972
33973  that you can place in a directory on your path:
33974 \end_layout
33975
33976 \begin_layout LyX-Code
33977
33978 \family sans
33979 #!/bin/sh
33980 \end_layout
33981
33982 \begin_layout LyX-Code
33983
33984 \family sans
33985 #
33986 \end_layout
33987
33988 \begin_layout LyX-Code
33989
33990 \family sans
33991 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
33992 \end_layout
33993
33994 \begin_layout Standard
33995 The next part of the converter setting is the 
33996 \begin_inset Quotes eld
33997 \end_inset
33998
33999 Flags
34000 \begin_inset Quotes erd
34001 \end_inset
34002
34003  which is to be set to
34004 \end_layout
34005
34006 \begin_layout LyX-Code
34007
34008 \family typewriter
34009 parselog=$$s/scripts/listerrors
34010 \end_layout
34011
34012 \begin_layout Standard
34013 This will run any errors that are generated by the 
34014 \begin_inset Quotes eld
34015 \end_inset
34016
34017 build-script
34018 \begin_inset Quotes erd
34019 \end_inset
34020
34021  process through the 
34022 \begin_inset Quotes eld
34023 \end_inset
34024
34025 listerrors
34026 \begin_inset Quotes erd
34027 \end_inset
34028
34029  program.
34030 \end_layout
34031
34032 \begin_layout Standard
34033 The build will normally take place in \SpecialChar LyX
34034 's temporary directory, so the files
34035  produced by the conversion will be in that directory.
34036  \SpecialChar LyX
34037  will copy out what it regards as the `main' file, but the 
34038 \family typewriter
34039 Noweb->Program
34040 \family default
34041  conversion may produce several files, and so most of these would then be
34042  deleted when \SpecialChar LyX
34043  was closed.
34044  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
34045  the build-script chunk can place the generated files in that location.
34046 \end_layout
34047
34048 \begin_layout Paragraph
34049 Build instructions in the document
34050 \end_layout
34051
34052 \begin_layout Standard
34053 The last piece of the integration between \SpecialChar LyX
34054  and noweb is the 
34055 \begin_inset Quotes eld
34056 \end_inset
34057
34058 build-script
34059 \begin_inset Quotes erd
34060 \end_inset
34061
34062  chunk.
34063  Generally, the instructions for building your program should be embedded
34064  in a chunk of its own.
34065  The noweb-specific 
34066 \begin_inset Quotes eld
34067 \end_inset
34068
34069 build-script
34070 \begin_inset Quotes erd
34071 \end_inset
34072
34073  above uses the notangle command to look for this chunk (called 
34074 \begin_inset Quotes eld
34075 \end_inset
34076
34077 build-script
34078 \begin_inset Quotes erd
34079 \end_inset
34080
34081 ) and runs its contents through 
34082 \begin_inset Quotes eld
34083 \end_inset
34084
34085 sh
34086 \begin_inset Quotes erd
34087 \end_inset
34088
34089 .
34090 \end_layout
34091
34092 \begin_layout Standard
34093 Typically, such a chunk would look something like this:
34094 \end_layout
34095
34096 \begin_layout LyX-Code
34097 <<build-script>>=
34098 \end_layout
34099
34100 \begin_layout LyX-Code
34101 #!/bin/sh
34102 \begin_inset Newline newline
34103 \end_inset
34104
34105 if [ -z "${NOWEB_SOURCE}" ]
34106 \begin_inset Newline newline
34107 \end_inset
34108
34109 then
34110 \end_layout
34111
34112 \begin_layout LyX-Code
34113 NOWEB_SOURCE=myfile.nw
34114 \begin_inset Newline newline
34115 \end_inset
34116
34117 fi
34118 \begin_inset Newline newline
34119 \end_inset
34120
34121 [...
34122  code to extract files ...
34123  use NOWEB_OUTPUT_DIR here ...]
34124 \begin_inset Newline newline
34125 \end_inset
34126
34127 [...
34128  code to compile files ...]
34129 \begin_inset Newline newline
34130 \end_inset
34131
34132 @
34133 \end_layout
34134
34135 \begin_layout Standard
34136 Look in 
34137 \change_deleted 564990737 1672161716
34138
34139 \emph on
34140 LIBDIR/examples/listerrors.lyx
34141 \emph default
34142  or in 
34143 \emph on
34144 LIBDIR/examples/Literate.lyx
34145 \change_inserted 564990737 1672161716
34146
34147 \family sans
34148 \emph default
34149 \lang american
34150 File\SpecialChar menuseparator
34151 Open Example\SpecialChar menuseparator
34152 Modules\SpecialChar menuseparator
34153 Noweb Listerrors
34154 \change_unchanged
34155
34156 \family default
34157 \lang english
34158  which implement 
34159 \change_deleted 564990737 1672161729
34160 two 
34161 \change_unchanged
34162 versions of the 
34163 \begin_inset Quotes eld
34164 \end_inset
34165
34166 listerrors
34167 \begin_inset Quotes erd
34168 \end_inset
34169
34170  program for some illustrations of how all of these pieces go together or
34171  in 
34172 \change_deleted 564990737 1672161756
34173
34174 \emph on
34175 LIBDIR/examples/noweb2lyx.lyx
34176 \change_inserted 564990737 1672161756
34177
34178 \family sans
34179 \emph default
34180 \lang american
34181 File\SpecialChar menuseparator
34182 Open Example\SpecialChar menuseparator
34183 Modules\SpecialChar menuseparator
34184 Noweb2\SpecialChar LyX
34185
34186 \change_unchanged
34187
34188 \family default
34189 \emph on
34190 \lang english
34191 .
34192
34193 \emph default
34194  Interestingly, these 
34195 \change_deleted 564990737 1672161767
34196 three 
34197 \change_unchanged
34198 files show off the language-indepence of the \SpecialChar LyX
34199  literate programming support
34200  since they are written in Python
34201 \change_deleted 564990737 1672161782
34202 , C
34203 \change_unchanged
34204  and Perl respectively.
34205 \end_layout
34206
34207 \begin_layout Subsubsection
34208 Configuring \SpecialChar LyX
34209
34210 \end_layout
34211
34212 \begin_layout Standard
34213 All the Literate Programming support is configured by the 
34214 \family sans
34215 Tools\SpecialChar menuseparator
34216 Preferences
34217 \family default
34218  panel in the 
34219 \begin_inset Quotes eld
34220 \end_inset
34221
34222 File Handling
34223 \begin_inset Quotes erd
34224 \end_inset
34225
34226  tab.
34227  The important parts are:
34228 \end_layout
34229
34230 \begin_layout Description
34231 the
34232 \begin_inset space ~
34233 \end_inset
34234
34235
34236 \begin_inset Quotes eld
34237 \end_inset
34238
34239 NoWeb
34240 \begin_inset Quotes erd
34241 \end_inset
34242
34243
34244 \begin_inset space ~
34245 \end_inset
34246
34247 format Set up via the File Formats tab, this is where the Noweb-specific
34248  pieces are set up.
34249  The 
34250 \family sans
34251 GUI Name
34252 \family default
34253  is set to 
34254 \family typewriter
34255 NoWeb
34256 \family default
34257 , the file extension is set to 
34258 \family typewriter
34259 .nw
34260 \family default
34261 .
34262  This tells \SpecialChar LyX
34263  to create a file with a 
34264 \family typewriter
34265 .nw
34266 \family default
34267  extension in the first step of the conversion process.
34268 \end_layout
34269
34270 \begin_layout Description
34271 the
34272 \begin_inset space ~
34273 \end_inset
34274
34275
34276 \family sans
34277 Program
34278 \family default
34279
34280 \begin_inset space ~
34281 \end_inset
34282
34283 format This is an empty format whose sole purpose is to be the endpoint
34284  of a conversion (which then allows us to set up a converter for it).
34285 \end_layout
34286
34287 \begin_layout Description
34288
34289 \family sans
34290 NoWeb
34291 \family default
34292 ->
34293 \family sans
34294 \SpecialChar LaTeX
34295
34296 \family default
34297  This converter performs the 
34298 \begin_inset Quotes eld
34299 \end_inset
34300
34301 weaving
34302 \begin_inset Quotes erd
34303 \end_inset
34304
34305  of the literate document.
34306  For Noweb, it is set to 
34307 \begin_inset Quotes eld
34308 \end_inset
34309
34310
34311 \family typewriter
34312 noweave -delay -index $$i > $$o
34313 \family default
34314
34315 \begin_inset Quotes erd
34316 \end_inset
34317
34318
34319 \end_layout
34320
34321 \begin_layout Description
34322
34323 \family sans
34324 NoWeb
34325 \family default
34326 ->
34327 \family sans
34328 Program
34329 \family default
34330  This performs the 
34331 \begin_inset Quotes eld
34332 \end_inset
34333
34334 tangling step
34335 \begin_inset Quotes erd
34336 \end_inset
34337
34338 .
34339  As stated above, the Converter is set to 
34340 \begin_inset Quotes eld
34341 \end_inset
34342
34343
34344 \family typewriter
34345 build-script $$i
34346 \family default
34347  $$r
34348 \begin_inset Quotes erd
34349 \end_inset
34350
34351 , with Flags set to
34352 \begin_inset Newline newline
34353 \end_inset
34354
34355
34356 \begin_inset Quotes eld
34357 \end_inset
34358
34359
34360 \family typewriter
34361 parselog=$$s/scripts/listerrors
34362 \family default
34363
34364 \begin_inset Quotes erd
34365 \end_inset
34366
34367 .
34368 \end_layout
34369
34370 \begin_layout Subsubsection
34371 Debug extensions
34372 \end_layout
34373
34374 \begin_layout Standard
34375 There is also a new function implemented in the \SpecialChar LyX
34376  server, the 
34377 \begin_inset Quotes eld
34378 \end_inset
34379
34380 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
34381  
34382 \end_layout
34383
34384 \begin_layout Standard
34385 When debugging code with ddd/gdb, it is possible to invoke a text editor
34386  at the current execution position with a single key stroke.
34387  The default ddd configuration for that is shift-ctrl-V.
34388  It happens that you can define the editor command line invocation in ddd
34389  by accessing the 
34390 \family sans
34391 Edit\SpecialChar menuseparator
34392 Preferences\SpecialChar menuseparator
34393 Helpers
34394 \family default
34395  dialog and changing the "Edit Sources" entry.
34396 \end_layout
34397
34398 \begin_layout Standard
34399 I take advantage of the newly created \SpecialChar LyX
34400  server function and this ddd feature,
34401  and set 
34402 \begin_inset Quotes eld
34403 \end_inset
34404
34405 Edit Sources
34406 \begin_inset Quotes erd
34407 \end_inset
34408
34409  to:
34410 \end_layout
34411
34412 \begin_layout LyX-Code
34413 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
34414 \end_layout
34415
34416 \begin_layout Standard
34417 With this, whenever you are using ddd and find a point in the program that
34418  you want to edit, you just press shift-ctrl-V (in the ddd window), and
34419  ddd will forward this information to \SpecialChar LyX
34420  through the \SpecialChar LyX
34421  server and then the
34422  \SpecialChar LyX
34423  window will show the same file with the cursor at the same position ddd
34424  was pointing to.
34425  No more guessing or long scrolling to locate a point in the program back
34426  from debugging !
34427 \end_layout
34428
34429 \begin_layout Standard
34430 Note however that you must enable the \SpecialChar LyX
34431  server to get this feature working
34432  (it is disabled by default).
34433  Sec.
34434 \begin_inset space ~
34435 \end_inset
34436
34437
34438 \begin_inset CommandInset ref
34439 LatexCommand ref
34440 reference "sec:Starting-the-Server"
34441
34442 \end_inset
34443
34444  explains how to do that.
34445 \end_layout
34446
34447 \begin_layout Subsubsection
34448 Toolbar extensions
34449 \end_layout
34450
34451 \begin_layout Standard
34452 There are six new buttons that can be added to your \SpecialChar LyX
34453  toolbar.
34454  Four of these buttons are short cuts to layout styles: 
34455 \family sans
34456 Standard
34457 \family default
34458
34459 \family sans
34460 Section
34461 \family default
34462
34463 \family sans
34464 \SpecialChar LaTeX
34465
34466 \family default
34467 , and 
34468 \family sans
34469 \SpecialChar LyX
34470 -Code
34471 \family default
34472 , one for the custom inset 
34473 \family sans
34474 Chunk
34475 \family default
34476 .
34477  The last one is a short cut to the 
34478 \begin_inset Quotes eld
34479 \end_inset
34480
34481 Build Program
34482 \begin_inset Quotes erd
34483 \end_inset
34484
34485  File menu entry.
34486  
34487 \end_layout
34488
34489 \begin_layout Standard
34490 \SpecialChar LyX
34491  has a range of buttons that are available for tool bar customization.
34492  In my toolbar I like to combine the six short cuts above with two more:
34493  One for 
34494 \family sans
34495 Document
34496 \family default
34497 \SpecialChar menuseparator
34498
34499 \family sans
34500 Update
34501 \family default
34502 \SpecialChar menuseparator
34503
34504 \family sans
34505 DVI
34506 \family default
34507  and the other for 
34508 \family sans
34509 Document\SpecialChar menuseparator
34510 View\SpecialChar menuseparator
34511 DVI
34512 \family default
34513  File menu entries.
34514  Here is how it looks like:
34515 \end_layout
34516
34517 \begin_layout LyX-Code
34518 Toolbar
34519 \end_layout
34520
34521 \begin_layout LyX-Code
34522   Layouts
34523 \end_layout
34524
34525 \begin_layout LyX-Code
34526   Icon "layout Standard"
34527 \end_layout
34528
34529 \begin_layout LyX-Code
34530   Icon "layout Section"
34531 \end_layout
34532
34533 \begin_layout LyX-Code
34534   Icon "layout \SpecialChar LaTeX
34535 "
34536 \end_layout
34537
34538 \begin_layout LyX-Code
34539   Icon "layout \SpecialChar LyX
34540 -Code"
34541 \end_layout
34542
34543 \begin_layout LyX-Code
34544   Icon "flex.insert Chunk"
34545 \end_layout
34546
34547 \begin_layout LyX-Code
34548   Separator
34549 \end_layout
34550
34551 \begin_layout LyX-Code
34552   Icon "buffer-view"
34553 \end_layout
34554
34555 \begin_layout LyX-Code
34556   Icon "buffer-typeset"
34557 \end_layout
34558
34559 \begin_layout LyX-Code
34560   Icon "build-program"
34561 \end_layout
34562
34563 \begin_layout LyX-Code
34564   Separator
34565 \end_layout
34566
34567 \begin_layout LyX-Code
34568 .
34569 \end_layout
34570
34571 \begin_layout LyX-Code
34572 .
34573 \end_layout
34574
34575 \begin_layout LyX-Code
34576 .
34577 \end_layout
34578
34579 \begin_layout LyX-Code
34580 End
34581 \end_layout
34582
34583 \begin_layout Subsubsection
34584 Colors customization
34585 \end_layout
34586
34587 \begin_layout Standard
34588 There are a number of colors in \SpecialChar LyX
34589  that can be customized in 
34590 \family sans
34591 Preferences
34592 \family default
34593 .
34594  One of the things that bothers people is the \SpecialChar LaTeX
34595  font color.
34596  The default color is red, since the chunks uses \SpecialChar LaTeX
34597  font, and there is a lot
34598  of chunks in literate documents, you may get tired of seeing everything
34599  in red.
34600  You can change it by going to the tabs 
34601 \family sans
34602 Look&Feel
34603 \family default
34604
34605 \family sans
34606 Colors.
34607 \end_layout
34608
34609 \begin_layout Standard
34610 The next thing is the visible presence of the newline character in the screen.
34611  You can choose the color of this particular character and make it blend
34612  in the background.
34613  I recommend you choosing a color that is close to the background but not
34614  equal, that way you still can see it is there, but it is not bothering
34615  you anymore.
34616 \end_layout
34617
34618 \begin_layout Subsection
34619 \SpecialChar LyX
34620  and knitr/Sweave
34621 \end_layout
34622
34623 \begin_layout Standard
34624 Support for 
34625 \family sans
34626 knitr
34627 \family default
34628  and 
34629 \family sans
34630 Sweave
34631 \family default
34632  is documented in
34633 \change_inserted 564990737 1672161863
34634  
34635 \family sans
34636 \lang american
34637 Help\SpecialChar menuseparator
34638 Specific Manuals\SpecialChar menuseparator
34639 Knitr
34640 \family default
34641  and
34642 \change_unchanged
34643
34644 \lang english
34645  
34646 \change_deleted 564990737 1671643409
34647 the 
34648 \emph on
34649 knitr.lyx
34650 \emph default
34651  example file
34652 \change_inserted 564990737 1672161856
34653
34654 \family sans
34655 \lang british
34656 File\SpecialChar menuseparator
34657 Open Example\SpecialChar menuseparator
34658 Modules\SpecialChar menuseparator
34659 Rnw (knitr)
34660 \change_unchanged
34661
34662 \family default
34663 \lang english
34664  and in 
34665 \change_deleted 564990737 1671643461
34666 the Sweave manual (menu 
34667 \family sans
34668 Help\SpecialChar menuseparator
34669 Specific Manuals
34670 \family default
34671 )
34672 \change_inserted 564990737 1672161856
34673
34674 \family sans
34675 \lang british
34676 Help\SpecialChar menuseparator
34677 Specific Manuals\SpecialChar menuseparator
34678 Sweave
34679 \change_deleted 564990737 1672161921
34680
34681 \family default
34682 \lang english
34683 .
34684
34685 \change_inserted 564990737 1672161917
34686  and 
34687 \family sans
34688 \lang american
34689 File\SpecialChar menuseparator
34690 Open Example\SpecialChar menuseparator
34691 Modules\SpecialChar menuseparator
34692 Sweave
34693 \family default
34694 .
34695 \change_unchanged
34696
34697 \end_layout
34698
34699 \begin_layout Chapter
34700
34701 \change_deleted 564990737 1671355343
34702 Special features
34703 \end_layout
34704
34705 \begin_layout Standard
34706
34707 \change_deleted 564990737 1671355343
34708 You can do everything with \SpecialChar LyX
34709  that you can do with \SpecialChar LaTeX
34710 .
34711  However, \SpecialChar LyX
34712  cannot support every \SpecialChar LaTeX
34713  feature directly.
34714  But you can always use \SpecialChar TeX
34715  Code.
34716  This chapter shows you some more special things you might want to use.
34717  For other special things you can do with figures, tables, floats, boxes
34718  and notes, have a look at the 
34719 \emph on
34720 Embedded
34721 \begin_inset space ~
34722 \end_inset
34723
34724 Objects
34725 \emph default
34726  manual.
34727 \change_unchanged
34728
34729 \end_layout
34730
34731 \end_body
34732 \end_document