]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert entries for the sixteen Maths modules into Chapter 4 Modules of Additional.lyx
[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 Multiple Text Columns
17021 \end_layout
17022
17023 \begin_layout Standard
17024 This feature is independent of the option 
17025 \family sans
17026 Two-column document
17027 \family default
17028  in the document settings under 
17029 \family sans
17030 Text Layout
17031 \family default
17032 .
17033  If you want to have 2
17034 \begin_inset space ~
17035 \end_inset
17036
17037 columns for the whole document, it is recommended to use the 
17038 \family sans
17039 Two-column document
17040 \family default
17041  option.
17042  For all other cases use this feature.
17043 \end_layout
17044
17045 \begin_layout Standard
17046 To use multiple text columns in your document, you have to load the module
17047  
17048 \family sans
17049 Multiple Columns
17050 \family default
17051  (menu 
17052 \family sans
17053 Document\SpecialChar menuseparator
17054 Settings\SpecialChar menuseparator
17055 Modules
17056 \family default
17057 ) and must have the \SpecialChar LaTeX
17058 -package 
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063 multicol
17064 \end_layout
17065
17066 \end_inset
17067
17068  installed.
17069 \end_layout
17070
17071 \begin_layout Standard
17072 Footnotes within multiple columns will be placed at the bottom of the page
17073  and not under each column.
17074  Within the different columns you can use everything, with the limitation
17075  that for floats you need to use the float option 
17076 \family sans
17077 Span columns
17078 \family default
17079 .
17080 \end_layout
17081
17082 \begin_layout Subsection
17083 Basics
17084 \end_layout
17085
17086 \begin_layout Standard
17087 If you want to have 2
17088 \begin_inset space ~
17089 \end_inset
17090
17091 columns in your text, insert a multicolumn inset via the menu 
17092 \family sans
17093 Insert\SpecialChar menuseparator
17094 Custom
17095 \begin_inset space ~
17096 \end_inset
17097
17098 Insets\SpecialChar menuseparator
17099 Multiple
17100 \begin_inset space ~
17101 \end_inset
17102
17103 Columns
17104 \family default
17105  where the columns should start.
17106  Write all text that should be printed in 2
17107 \begin_inset space ~
17108 \end_inset
17109
17110 columns into this inset.
17111 \end_layout
17112
17113 \begin_layout Standard
17114 Here is an example:
17115 \end_layout
17116
17117 \begin_layout Standard
17118 \noindent
17119 \begin_inset Flex Multiple Columns
17120 status open
17121
17122 \begin_layout Plain Layout
17123 \noindent
17124
17125 \series bold
17126 \size small
17127 The Adventure of the Empty House
17128 \series default
17129
17130 \begin_inset Newline newline
17131 \end_inset
17132
17133 by Sir Arthur Conan Doyle
17134 \end_layout
17135
17136 \begin_layout Plain Layout
17137
17138 \size small
17139 It was in the spring of the year 1894 that all London was interested, and
17140  the fashionable world dismayed, by the murder of the Honourable Ronald
17141  Adair under most unusual and inexplicable circumstances.
17142  The public has already learned those particulars of the crime which came
17143  out in the police investigation, but a good deal was suppressed upon that
17144  occasion, since the case for the prosecution was so overwhelmingly strong
17145  that it was not necessary to bring forward all the facts.
17146  Only now, at the end of nearly ten years, am I allowed to supply those
17147  missing links which make up the whole of that remarkable chain.
17148  The crime was of interest in itself, but that interest was as nothing to
17149  me compared to the inconceivable sequel, which afforded me the greatest
17150  shock and surprise of any event in my adventurous life.
17151  Even now, after this long interval, I find myself thrilling as I think
17152  of it, and feeling once more that sudden flood of joy, amazement, and increduli
17153 ty which utterly submerged my mind.
17154  Let me say to that public, which has shown some interest in those glimpses
17155  which I have occasionally given them of the thoughts and actions of a very
17156  remarkable man, that they are not to blame me if I have not shared my knowledge
17157  with them, for I should have considered it my first duty to do so, had
17158  I not been barred by a positive prohibition from his own lips, which was
17159  only withdrawn upon the third of last month.
17160 \end_layout
17161
17162 \end_inset
17163
17164
17165 \end_layout
17166
17167 \begin_layout Standard
17168 To get 3 or more columns, set the cursor into the multicolumn inset and
17169  use the menu 
17170 \family sans
17171 Insert\SpecialChar menuseparator
17172 Number
17173 \begin_inset space ~
17174 \end_inset
17175
17176 of
17177 \begin_inset space ~
17178 \end_inset
17179
17180 Columns
17181 \family default
17182 .
17183  The number of the desired columns is written into that inset (for 3
17184 \begin_inset space ~
17185 \end_inset
17186
17187 columns write 
17188 \begin_inset Quotes eld
17189 \end_inset
17190
17191 3
17192 \begin_inset Quotes erd
17193 \end_inset
17194
17195 ).
17196 \begin_inset Newline newline
17197 \end_inset
17198
17199 Here is an example with 3
17200 \begin_inset space ~
17201 \end_inset
17202
17203 columns:
17204 \end_layout
17205
17206 \begin_layout Standard
17207 \begin_inset Flex Multiple Columns
17208 status open
17209
17210 \begin_layout Plain Layout
17211
17212 \size footnotesize
17213 \begin_inset Argument 1
17214 status open
17215
17216 \begin_layout Plain Layout
17217
17218 3
17219 \end_layout
17220
17221 \end_inset
17222
17223 It can be imagined that my close intimacy with Sherlock Holmes had interested
17224  me deeply in crime, and that after his disappearance I never failed to
17225  read with care the various problems which came before the public.
17226  And I even attempted, more than once, for my own private satisfaction,
17227  to employ his methods in their solution, though with indifferent success.
17228  There was none, however, which appealed to me like this tragedy of Ronald
17229  Adair.
17230  As I read the evidence at the inquest, which led up to a verdict of willful
17231  murder against some person or persons unknown, I realized more clearly
17232  than I had ever done the loss which the community had sustained by the
17233  death of Sherlock Holmes.
17234  There were points about this strange business which would, I was sure,
17235  have specially appealed to him, and the efforts of the police would have
17236  been supplemented, or more probably anticipated, by the trained observation
17237  and the alert mind of the first criminal agent in Europe.
17238  All day, as I drove upon my round, I turned over the case in my mind and
17239  found no explanation which appeared to me to be adequate.
17240  At the risk of telling a twice-told tale, I will recapitulate the facts
17241  as they were known to the public at the conclusion of the inquest.
17242 \end_layout
17243
17244 \end_inset
17245
17246
17247 \end_layout
17248
17249 \begin_layout Standard
17250 You can have up to 10
17251 \begin_inset space ~
17252 \end_inset
17253
17254 columns if you want to, but that might not be very pleasant for the readers
17255  of your document.
17256 \end_layout
17257
17258 \begin_layout Standard
17259 \begin_inset Newpage newpage
17260 \end_inset
17261
17262
17263 \end_layout
17264
17265 \begin_layout Subsection
17266 Columns inside Columns
17267 \end_layout
17268
17269 \begin_layout Standard
17270 You can also have columns inside columns:
17271 \end_layout
17272
17273 \begin_layout Standard
17274 \begin_inset Flex Multiple Columns
17275 status open
17276
17277 \begin_layout Plain Layout
17278
17279 \size footnotesize
17280 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
17281  at that time governor of one of the Australian colonies.
17282  Adair's mother had returned from Australia to undergo the operation for
17283  cataract, and she, her son Ronald, and her daughter Hilda were living together
17284  at 427 Park Lane.
17285 \end_layout
17286
17287 \begin_layout Plain Layout
17288 \begin_inset Flex Multiple Columns
17289 status open
17290
17291 \begin_layout Plain Layout
17292
17293 \size footnotesize
17294 The youth moved in the best society
17295 \begin_inset space ~
17296 \end_inset
17297
17298 – had, so far as was known, no enemies and no particular vices.
17299  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
17300  had been broken off by mutual consent some months before, and there was
17301  no sign that it had left any very profound feeling behind it.
17302  For the rest {sic} the man's life moved in a narrow and conventional circle,
17303  for his habits were quiet and his nature unemotional.
17304  Yet it was upon this easy-going young aristocrat that death came, in most
17305  strange and unexpected form, between the hours of ten and eleven-twenty
17306  on the night of March 30, 1894.
17307 \end_layout
17308
17309 \end_inset
17310
17311
17312 \end_layout
17313
17314 \begin_layout Plain Layout
17315
17316 \size footnotesize
17317 Ronald Adair was fond of cards
17318 \begin_inset space ~
17319 \end_inset
17320
17321 – playing continually, but never for such stakes as would hurt him.
17322  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
17323  It was shown that, after dinner on the day of his death, he had played
17324  a rubber of whist at the latter club.
17325  He had also played there in the afternoon.
17326
17327 \size default
17328  
17329 \size footnotesize
17330 The evidence of those who had played with him
17331 \begin_inset space ~
17332 \end_inset
17333
17334 – Mr.
17335  Murray, Sir John Hardy, and Colonel Moran
17336 \begin_inset space ~
17337 \end_inset
17338
17339 – showed that the game was whist, and that there was a fairly equal fall
17340  of the cards.
17341  Adair might have lost five pounds, but not more.
17342  His fortune was a considerable one, and such a loss could not in any way
17343  affect him.
17344  He had played nearly every day at one club or other, but he was a cautious
17345  player, and usually rose a winner.
17346  It came out in evidence that, in partnership with Colonel Moran, he had
17347  actually won as much as four hundred and twenty pounds in a sitting, some
17348  weeks before, from Godfrey Milner and Lord Balmoral.
17349  So much for his recent history as it came out at the inquest.
17350 \end_layout
17351
17352 \end_inset
17353
17354
17355 \end_layout
17356
17357 \begin_layout Subsection
17358 Advanced Examples
17359 \end_layout
17360
17361 \begin_layout Standard
17362 The examples in this section show some more special features of multiple
17363  columns.
17364 \end_layout
17365
17366 \begin_layout Standard
17367 For more features of multiple columns, have a look at the 
17368 \begin_inset CommandInset href
17369 LatexCommand href
17370 name "documentation"
17371 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
17372 literal "false"
17373
17374 \end_inset
17375
17376  of the \SpecialChar LaTeX
17377 -package 
17378 \begin_inset Flex Code
17379 status collapsed
17380
17381 \begin_layout Plain Layout
17382 multicol
17383 \end_layout
17384
17385 \end_inset
17386
17387 .
17388 \end_layout
17389
17390 \begin_layout Subsubsection
17391 Preface
17392 \end_layout
17393
17394 \begin_layout Standard
17395 To add a preface text for multiple columns, set the cursor into the multicolumn
17396  inset and use the menu 
17397 \family sans
17398 Insert\SpecialChar menuseparator
17399 Preface
17400 \family default
17401 .
17402  Write your preface text into that inset.
17403 \begin_inset Newline newline
17404 \end_inset
17405
17406 This is an example with some preface text:
17407 \end_layout
17408
17409 \begin_layout Standard
17410 \begin_inset VSpace bigskip
17411 \end_inset
17412
17413
17414 \end_layout
17415
17416 \begin_layout Standard
17417 \begin_inset Flex Multiple Columns
17418 status open
17419
17420 \begin_layout Plain Layout
17421 \begin_inset Argument 2
17422 status open
17423
17424 \begin_layout Plain Layout
17425 And the story continues and continues and continues and continues\SpecialChar ldots
17426
17427 \end_layout
17428
17429 \end_inset
17430
17431
17432 \size small
17433 On the evening of the crime, he returned from the club exactly at ten.
17434  His mother and sister were out spending the evening with a relation.
17435  The servant deposed that she heard him enter the front room on the second
17436  floor, generally used as his sitting-room.
17437  She had lit a fire there, and as it smoked she had opened the window.
17438  No sound was heard from the room until eleven-twenty, the hour of the return
17439  of Lady Maynooth and her daughter.
17440  Desiring to say good-night, she attempted to enter her son's room.
17441  The door was locked on the inside, and no answer could be got to their
17442  cries and knocking.
17443  Help was obtained, and the door forced.
17444  The unfortunate young man was found lying near the table.
17445  His head had been horribly mutilated by an expanding revolver bullet, but
17446  no weapon of any sort was to be found in the room.
17447 \end_layout
17448
17449 \end_inset
17450
17451
17452 \end_layout
17453
17454 \begin_layout Standard
17455 You can also use a section heading as the preface if you use a section command
17456  as \SpecialChar TeX
17457  Code.
17458  For example the command
17459 \end_layout
17460
17461 \begin_layout LyX-Code
17462
17463 \backslash
17464 subsection{subsection title}
17465 \end_layout
17466
17467 \begin_layout Standard
17468 creates a subsection.
17469  In this example the preface is a subsubsection:
17470 \end_layout
17471
17472 \begin_layout Standard
17473 \begin_inset Flex Multiple Columns
17474 status open
17475
17476 \begin_layout Plain Layout
17477 \begin_inset Argument 2
17478 status open
17479
17480 \begin_layout Plain Layout
17481 \begin_inset ERT
17482 status collapsed
17483
17484 \begin_layout Plain Layout
17485
17486
17487 \backslash
17488 subsubsection{
17489 \end_layout
17490
17491 \end_inset
17492
17493 This is a subsubsection heading as a preface
17494 \begin_inset ERT
17495 status collapsed
17496
17497 \begin_layout Plain Layout
17498
17499 }
17500 \end_layout
17501
17502 \end_inset
17503
17504
17505 \end_layout
17506
17507 \end_inset
17508
17509
17510 \size small
17511 A minute examination of the circumstances served only to make the case more
17512  complex.
17513  In the first place, no reason could be given why the young man should have
17514  fastened the door upon the inside.
17515  There was the possibility that the murderer had done this, and had afterwards
17516  escaped by the window.
17517  The drop was at least twenty feet, however, and a bed of crocuses in full
17518  bloom lay beneath.
17519  Neither the flowers nor the earth showed any sign of having been disturbed,
17520  nor were there any marks upon the narrow strip of grass which separated
17521  the house from the road.
17522  Apparently, therefore, it was the young man himself who had fastened the
17523  door.
17524  But how did he come by his death? No one could have climbed up to the window
17525  without leaving traces.
17526  Suppose a man had fired through the window, he would indeed be a remarkable
17527  shot who could with a revolver inflict so deadly a wound.
17528  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
17529  a hundred yards of the house.
17530  No one had heard a shot.
17531 \end_layout
17532
17533 \end_inset
17534
17535
17536 \end_layout
17537
17538 \begin_layout Standard
17539 If there is less vertical space than 6
17540 \begin_inset space ~
17541 \end_inset
17542
17543 text lines is left on the page at the beginning of the multiple columns,
17544  a page break will be inserted before the multiple columns.
17545  Depending on the number of lines of the preface text, you might want to
17546  change this space.
17547  This is done by setting the cursor into the mulitcolumn inset behind the
17548  preface (if there is any) and using the menu 
17549 \family sans
17550 Insert\SpecialChar menuseparator
17551 Space
17552 \begin_inset space ~
17553 \end_inset
17554
17555 Before
17556 \begin_inset space ~
17557 \end_inset
17558
17559 Page
17560 \begin_inset space ~
17561 \end_inset
17562
17563 Break
17564 \family default
17565 .
17566  Insert into that inset the amount of space like e.
17567 \begin_inset space \thinspace{}
17568 \end_inset
17569
17570 g.
17571 \begin_inset space \space{}
17572 \end_inset
17573
17574
17575 \begin_inset Quotes eld
17576 \end_inset
17577
17578 5cm
17579 \begin_inset Quotes erd
17580 \end_inset
17581
17582 .
17583 \begin_inset Newline newline
17584 \end_inset
17585
17586 In this example the space is set to 7
17587 \begin_inset space ~
17588 \end_inset
17589
17590 text lines by using 
17591 \begin_inset Flex Code
17592 status collapsed
17593
17594 \begin_layout Plain Layout
17595 7
17596 \backslash
17597 baselineskip
17598 \end_layout
17599
17600 \end_inset
17601
17602  (where the command 
17603 \begin_inset Flex Code
17604 status collapsed
17605
17606 \begin_layout Plain Layout
17607
17608 \backslash
17609 baselineskip
17610 \end_layout
17611
17612 \end_inset
17613
17614  needs to be inserted as \SpecialChar TeX
17615  code):
17616 \end_layout
17617
17618 \begin_layout Standard
17619 \begin_inset Flex Multiple Columns
17620 status open
17621
17622 \begin_layout Plain Layout
17623 \begin_inset Argument 3
17624 status open
17625
17626 \begin_layout Plain Layout
17627 7
17628 \begin_inset ERT
17629 status collapsed
17630
17631 \begin_layout Plain Layout
17632
17633
17634 \backslash
17635 baselineskip
17636 \end_layout
17637
17638 \end_inset
17639
17640
17641 \end_layout
17642
17643 \end_inset
17644
17645
17646 \size small
17647 On the evening of the crime, he returned from the club exactly at ten.
17648  His mother and sister were out spending the evening with a relation.
17649  The servant deposed that she heard him enter the front room on the second
17650  floor, generally used as his sitting-room.
17651  She had lit a fire there, and as it smoked she had opened the window.
17652  No sound was heard from the room until eleven-twenty, the hour of the return
17653  of Lady Maynooth and her daughter.
17654  Desiring to say good-night, she attempted to enter her son's room.
17655  The door was locked on the inside, and no answer could be got to their
17656  cries and knocking.
17657  Help was obtained, and the door forced.
17658  The unfortunate young man was found lying near the table.
17659  His head had been horribly mutilated by an expanding revolver bullet, but
17660  no weapon of any sort was to be found in the room.
17661 \end_layout
17662
17663 \end_inset
17664
17665
17666 \end_layout
17667
17668 \begin_layout Subsubsection
17669 Surrounding Space
17670 \end_layout
17671
17672 \begin_layout Standard
17673 The amount of space before and after multiple columns can be changed by
17674  changing the length 
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679
17680 \backslash
17681 multicolsep
17682 \end_layout
17683
17684 \end_inset
17685
17686 .
17687  For example the command
17688 \end_layout
17689
17690 \begin_layout LyX-Code
17691
17692 \backslash
17693 setlength{
17694 \backslash
17695 multicolsep}{3cm}
17696 \end_layout
17697
17698 \begin_layout Standard
17699 in \SpecialChar TeX
17700  Code changes its value to 3
17701 \begin_inset space \thinspace{}
17702 \end_inset
17703
17704 cm.
17705  The change must be made before the multiple columns' start.
17706  The predefined value is 13
17707 \begin_inset space \thinspace{}
17708 \end_inset
17709
17710 pt.
17711 \end_layout
17712
17713 \begin_layout Standard
17714 For this example 
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719
17720 \backslash
17721 multicolsep
17722 \end_layout
17723
17724 \end_inset
17725
17726  was set to 2.5
17727 \begin_inset space \thinspace{}
17728 \end_inset
17729
17730 cm:
17731 \end_layout
17732
17733 \begin_layout Standard
17734 \begin_inset ERT
17735 status open
17736
17737 \begin_layout Plain Layout
17738
17739
17740 \backslash
17741 setlength{
17742 \backslash
17743 multicolsep}{2.5cm}
17744 \end_layout
17745
17746 \end_inset
17747
17748
17749 \end_layout
17750
17751 \begin_layout Standard
17752 \begin_inset Flex Multiple Columns
17753 status open
17754
17755 \begin_layout Plain Layout
17756
17757 \size small
17758 All day I turned these facts over in my mind, endeavouring to hit upon some
17759  theory which could reconcile them all, and to find that line of least resistanc
17760 e which my poor friend had declared to be the starting-point of every investigat
17761 ion.
17762  I confess that I made little progress.
17763  In the evening I strolled across the Park, and found myself about six o'clock
17764  at the Oxford Street end of Park Lane.
17765  A group of loafers upon the pavements, all staring up at a particular window,
17766  directed me to the house which I had come to see.
17767  A tall, thin man with coloured glasses, whom I strongly suspected of being
17768  a plain-clothes detective, was pointing out some theory of his own, while
17769  the others crowded round to listen to what he said.
17770  I got as near him as I could, but his observations seemed to me to be absurd,
17771  so I withdrew again in some disgust.
17772  As I did so I struck against an elderly, deformed man, who had been behind
17773  me, and I knocked down several books which he was carrying.
17774 \end_layout
17775
17776 \end_inset
17777
17778
17779 \end_layout
17780
17781 \begin_layout Standard
17782 \begin_inset Note Greyedout
17783 status open
17784
17785 \begin_layout Plain Layout
17786
17787 \series bold
17788 Note:
17789 \series default
17790  The values you set with 
17791 \begin_inset Flex Code
17792 status collapsed
17793
17794 \begin_layout Plain Layout
17795
17796 \backslash
17797 setlength
17798 \end_layout
17799
17800 \end_inset
17801
17802  will be used for all following multiple columns until you change them again.
17803 \end_layout
17804
17805 \end_inset
17806
17807
17808 \end_layout
17809
17810 \begin_layout Standard
17811 \begin_inset ERT
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815
17816
17817 \backslash
17818 setlength{
17819 \backslash
17820 multicolsep}{13pt}
17821 \end_layout
17822
17823 \end_inset
17824
17825
17826 \begin_inset Note Note
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 go back to the default
17831 \end_layout
17832
17833 \end_inset
17834
17835
17836 \end_layout
17837
17838 \begin_layout Standard
17839 \begin_inset Newpage newpage
17840 \end_inset
17841
17842
17843 \end_layout
17844
17845 \begin_layout Subsubsection
17846 Column Breaks
17847 \end_layout
17848
17849 \begin_layout Standard
17850 A column break can be forced by inserting the command 
17851 \begin_inset Flex Code
17852 status collapsed
17853
17854 \begin_layout Plain Layout
17855
17856 \backslash
17857 columnbreak{}
17858 \end_layout
17859
17860 \end_inset
17861
17862  as \SpecialChar TeX
17863  Code to that position in the text where the column should be broken.
17864  Note that this leads in most cases to whitespace in the text.
17865 \begin_inset Newline newline
17866 \end_inset
17867
17868 Here is an example:
17869 \end_layout
17870
17871 \begin_layout Standard
17872 \begin_inset Flex Multiple Columns
17873 status open
17874
17875 \begin_layout Plain Layout
17876
17877 \size small
17878 \begin_inset Quotes eld
17879 \end_inset
17880
17881 You're surprised to see me, sir,
17882 \begin_inset Quotes erd
17883 \end_inset
17884
17885  said he, in a strange, croaking voice.
17886 \end_layout
17887
17888 \begin_layout Plain Layout
17889
17890 \size small
17891 I acknowledged that I was.
17892 \end_layout
17893
17894 \begin_layout Plain Layout
17895
17896 \size small
17897 \begin_inset Quotes eld
17898 \end_inset
17899
17900 Well, I've a conscience, sir, and when I chanced to see you go into this
17901  house, as I came hobbling after you, I thought to myself, I'll just step
17902  in and see that kind gentleman, and tell him that if I was a bit gruff
17903  in my manner there was not any harm meant, and that I am much obliged to
17904  him for picking up my books.
17905 \begin_inset Quotes erd
17906 \end_inset
17907
17908
17909 \end_layout
17910
17911 \begin_layout Plain Layout
17912
17913 \size small
17914 \begin_inset Quotes eld
17915 \end_inset
17916
17917 You make too much of a trifle,
17918 \begin_inset Quotes erd
17919 \end_inset
17920
17921  said I.
17922  
17923 \begin_inset Quotes eld
17924 \end_inset
17925
17926 May I ask how you knew who I was?
17927 \begin_inset Quotes erd
17928 \end_inset
17929
17930  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
17931 \begin_inset ERT
17932 status collapsed
17933
17934 \begin_layout Plain Layout
17935
17936
17937 \backslash
17938 columnbreak{}
17939 \end_layout
17940
17941 \end_inset
17942
17943
17944 \end_layout
17945
17946 \begin_layout Plain Layout
17947
17948 \size small
17949 \begin_inset Quotes eld
17950 \end_inset
17951
17952 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
17953  you'll find my little bookshop at the corner of Church Street, and very
17954  happy to see you, I am sure.
17955  Maybe you collect yourself, sir.
17956  Here's 
17957 \noun on
17958 British
17959 \begin_inset space ~
17960 \end_inset
17961
17962 Birds
17963 \noun default
17964 , and 
17965 \noun on
17966 Catullus
17967 \noun default
17968 , and 
17969 \noun on
17970 The Holy War
17971 \noun default
17972
17973 \begin_inset space ~
17974 \end_inset
17975
17976 – a bargain, every one of them.
17977  With five volumes you could just fill that gap on that second shelf.
17978  It looks untidy, does it not, sir?
17979 \begin_inset Quotes erd
17980 \end_inset
17981
17982
17983 \end_layout
17984
17985 \end_inset
17986
17987
17988 \end_layout
17989
17990 \begin_layout Subsubsection
17991 Column Separation
17992 \end_layout
17993
17994 \begin_layout Standard
17995 The width of the columns is automatically calculated, but you can modify
17996  the space between the columns.
17997  This is done by changing the length 
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002
18003 \backslash
18004 columnsep
18005 \end_layout
18006
18007 \end_inset
18008
18009 .
18010  Its predefined value is 10
18011 \begin_inset space \thinspace{}
18012 \end_inset
18013
18014 pt.
18015  Here is an example where 
18016 \begin_inset Flex Code
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020
18021 \backslash
18022 columnsep
18023 \end_layout
18024
18025 \end_inset
18026
18027  is set to 3
18028 \begin_inset space \thinspace{}
18029 \end_inset
18030
18031 cm:
18032 \end_layout
18033
18034 \begin_layout Standard
18035 \begin_inset ERT
18036 status open
18037
18038 \begin_layout Plain Layout
18039
18040
18041 \backslash
18042 setlength{
18043 \backslash
18044 columnsep}{3cm}
18045 \end_layout
18046
18047 \end_inset
18048
18049
18050 \end_layout
18051
18052 \begin_layout Standard
18053 \begin_inset Flex Multiple Columns
18054 status open
18055
18056 \begin_layout Plain Layout
18057
18058 \size small
18059 My observations of No.
18060 \begin_inset space \space{}
18061 \end_inset
18062
18063 427 Park Lane did little to clear up the problem in which I was interested.
18064  The house was separated from the street by a low wall and railing, the
18065  whole not more than five feet high.
18066  It was perfectly easy, therefore, for anyone to get into the garden, but
18067  the window was entirely inaccessible, since there was no water pipe or
18068  anything which could help the most active man to climb it.
18069  More puzzled than ever, I retraced my steps to Kensington.
18070  I had not been in my study five minutes when the maid entered to say that
18071  a person desired to see me.
18072  To my astonishment it was none other than my strange old book collector,
18073  his sharp, wizened face peering out from a frame of white hair, and his
18074  precious volumes, a dozen of them at least, wedged under his right arm.
18075 \end_layout
18076
18077 \end_inset
18078
18079
18080 \end_layout
18081
18082 \begin_layout Standard
18083 \begin_inset ERT
18084 status collapsed
18085
18086 \begin_layout Plain Layout
18087
18088
18089 \backslash
18090 setlength{
18091 \backslash
18092 columnsep}{10pt}
18093 \end_layout
18094
18095 \end_inset
18096
18097
18098 \begin_inset Note Note
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 go back to the default
18103 \end_layout
18104
18105 \end_inset
18106
18107
18108 \end_layout
18109
18110 \begin_layout Subsubsection
18111 Vertical Lines
18112 \end_layout
18113
18114 \begin_layout Standard
18115 Between the columns a rule with a width of the length 
18116 \begin_inset Flex Code
18117 status collapsed
18118
18119 \begin_layout Plain Layout
18120
18121 \backslash
18122 columnseprule
18123 \end_layout
18124
18125 \end_inset
18126
18127  is placed.
18128  If this rule width is set to 0
18129 \begin_inset space \thinspace{}
18130 \end_inset
18131
18132 pt (this is the default), the rule is suppressed.
18133  In the following example the rule is 2
18134 \begin_inset space \thinspace{}
18135 \end_inset
18136
18137 pt wide:
18138 \end_layout
18139
18140 \begin_layout Standard
18141 \begin_inset ERT
18142 status open
18143
18144 \begin_layout Plain Layout
18145
18146
18147 \backslash
18148 setlength{
18149 \backslash
18150 columnseprule}{2pt}
18151 \end_layout
18152
18153 \end_inset
18154
18155
18156 \end_layout
18157
18158 \begin_layout Standard
18159 \begin_inset Flex Multiple Columns
18160 status open
18161
18162 \begin_layout Plain Layout
18163
18164 \size small
18165 \begin_inset Quotes eld
18166 \end_inset
18167
18168 You're surprised to see me, sir,
18169 \begin_inset Quotes erd
18170 \end_inset
18171
18172  said he, in a strange, croaking voice.
18173 \end_layout
18174
18175 \begin_layout Plain Layout
18176
18177 \size small
18178 I acknowledged that I was.
18179 \end_layout
18180
18181 \begin_layout Plain Layout
18182
18183 \size small
18184 \begin_inset Quotes eld
18185 \end_inset
18186
18187 Well, I've a conscience, sir, and when I chanced to see you go into this
18188  house, as I came hobbling after you, I thought to myself, I'll just step
18189  in and see that kind gentleman, and tell him that if I was a bit gruff
18190  in my manner there was not any harm meant, and that I am much obliged to
18191  him for picking up my books.
18192 \begin_inset Quotes erd
18193 \end_inset
18194
18195
18196 \end_layout
18197
18198 \begin_layout Plain Layout
18199
18200 \size small
18201 \begin_inset Quotes eld
18202 \end_inset
18203
18204 You make too much of a trifle,
18205 \begin_inset Quotes erd
18206 \end_inset
18207
18208  said I.
18209  
18210 \begin_inset Quotes eld
18211 \end_inset
18212
18213 May I ask how you knew who I was?
18214 \begin_inset Quotes erd
18215 \end_inset
18216
18217
18218 \end_layout
18219
18220 \begin_layout Plain Layout
18221
18222 \size small
18223 \begin_inset Quotes eld
18224 \end_inset
18225
18226 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
18227  you'll find my little bookshop at the corner of Church Street, and very
18228  happy to see you, I am sure.
18229  Maybe you collect yourself, sir.
18230  Here's 
18231 \noun on
18232 British
18233 \begin_inset space ~
18234 \end_inset
18235
18236 Birds
18237 \noun default
18238 , and 
18239 \noun on
18240 Catullus
18241 \noun default
18242 , and 
18243 \noun on
18244 The Holy War
18245 \noun default
18246
18247 \begin_inset space ~
18248 \end_inset
18249
18250 – a bargain, every one of them.
18251  With five volumes you could just fill that gap on that second shelf.
18252  It looks untidy, does it not, sir?
18253 \begin_inset Quotes erd
18254 \end_inset
18255
18256
18257 \end_layout
18258
18259 \end_inset
18260
18261
18262 \end_layout
18263
18264 \begin_layout Standard
18265 \begin_inset VSpace defskip
18266 \end_inset
18267
18268
18269 \end_layout
18270
18271 \begin_layout Standard
18272 The rule can be colored by redefining the command 
18273 \begin_inset Flex Code
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277
18278 \backslash
18279 columnseprulecolor
18280 \end_layout
18281
18282 \end_inset
18283
18284 .
18285  This is done by inserting the command
18286 \end_layout
18287
18288 \begin_layout LyX-Code
18289
18290 \backslash
18291 renewcommand{
18292 \backslash
18293 columnseprulecolor}{
18294 \backslash
18295 color{red}}
18296 \end_layout
18297
18298 \begin_layout Standard
18299 as \SpecialChar TeX
18300  Code before the multicolumn inset.
18301  Replace 
18302 \begin_inset Flex Code
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 red
18307 \end_layout
18308
18309 \end_inset
18310
18311  in this command by a color of your choice.
18312  You can use all pre- and self-defined colors.
18313  See the 
18314 \emph on
18315 EmbeddedObjects
18316 \emph default
18317  manual, section 
18318 \emph on
18319 Colored
18320 \begin_inset space ~
18321 \end_inset
18322
18323 Tables
18324 \emph default
18325  for more information about pre- and self-defined colors.
18326  To go back to the default color insert the command
18327 \end_layout
18328
18329 \begin_layout LyX-Code
18330
18331 \backslash
18332 renewcommand{
18333 \backslash
18334 columnseprulecolor}{
18335 \backslash
18336 normalcolor}
18337 \end_layout
18338
18339 \begin_layout Standard
18340 Here is the example with a cyan rule and 1
18341 \begin_inset space \thinspace{}
18342 \end_inset
18343
18344 cm column separation:
18345 \end_layout
18346
18347 \begin_layout Standard
18348 \begin_inset ERT
18349 status open
18350
18351 \begin_layout Plain Layout
18352
18353
18354 \backslash
18355 setlength{
18356 \backslash
18357 columnsep}{1cm}
18358 \end_layout
18359
18360 \begin_layout Plain Layout
18361
18362
18363 \backslash
18364 renewcommand{
18365 \backslash
18366 columnseprulecolor}{
18367 \backslash
18368 color{cyan}}
18369 \end_layout
18370
18371 \end_inset
18372
18373
18374 \end_layout
18375
18376 \begin_layout Standard
18377 \begin_inset Flex Multiple Columns
18378 status open
18379
18380 \begin_layout Plain Layout
18381
18382 \size small
18383 \begin_inset Quotes eld
18384 \end_inset
18385
18386 You're surprised to see me, sir,
18387 \begin_inset Quotes erd
18388 \end_inset
18389
18390  said he, in a strange, croaking voice.
18391 \end_layout
18392
18393 \begin_layout Plain Layout
18394
18395 \size small
18396 I acknowledged that I was.
18397 \end_layout
18398
18399 \begin_layout Plain Layout
18400
18401 \size small
18402 \begin_inset Quotes eld
18403 \end_inset
18404
18405 Well, I've a conscience, sir, and when I chanced to see you go into this
18406  house, as I came hobbling after you, I thought to myself, I'll just step
18407  in and see that kind gentleman, and tell him that if I was a bit gruff
18408  in my manner there was not any harm meant, and that I am much obliged to
18409  him for picking up my books.
18410 \begin_inset Quotes erd
18411 \end_inset
18412
18413
18414 \end_layout
18415
18416 \begin_layout Plain Layout
18417
18418 \size small
18419 \begin_inset Quotes eld
18420 \end_inset
18421
18422 You make too much of a trifle,
18423 \begin_inset Quotes erd
18424 \end_inset
18425
18426  said I.
18427  
18428 \begin_inset Quotes eld
18429 \end_inset
18430
18431 May I ask how you knew who I was?
18432 \begin_inset Quotes erd
18433 \end_inset
18434
18435
18436 \end_layout
18437
18438 \begin_layout Plain Layout
18439
18440 \size small
18441 \begin_inset Quotes eld
18442 \end_inset
18443
18444 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
18445  you'll find my little bookshop at the corner of Church Street, and very
18446  happy to see you, I am sure.
18447  Maybe you collect yourself, sir.
18448  Here's 
18449 \noun on
18450 British
18451 \begin_inset space ~
18452 \end_inset
18453
18454 Birds
18455 \noun default
18456 , and 
18457 \noun on
18458 Catullus
18459 \noun default
18460 , and 
18461 \noun on
18462 The Holy War
18463 \noun default
18464
18465 \begin_inset space ~
18466 \end_inset
18467
18468 – a bargain, every one of them.
18469  With five volumes you could just fill that gap on that second shelf.
18470  It looks untidy, does it not, sir?
18471 \begin_inset Quotes erd
18472 \end_inset
18473
18474
18475 \end_layout
18476
18477 \end_inset
18478
18479
18480 \end_layout
18481
18482 \begin_layout Standard
18483 \begin_inset ERT
18484 status collapsed
18485
18486 \begin_layout Plain Layout
18487
18488
18489 \backslash
18490 setlength{
18491 \backslash
18492 columnseprule}{0pt}
18493 \end_layout
18494
18495 \begin_layout Plain Layout
18496
18497
18498 \backslash
18499 renewcommand{
18500 \backslash
18501 columnseprulecolor}{
18502 \backslash
18503 normalcolor}
18504 \end_layout
18505
18506 \end_inset
18507
18508
18509 \begin_inset Note Note
18510 status collapsed
18511
18512 \begin_layout Plain Layout
18513 go back to the default
18514 \end_layout
18515
18516 \end_inset
18517
18518
18519 \end_layout
18520
18521 \begin_layout Section
18522
18523 \change_inserted 564990737 1671270380
18524 Paragraph Styles
18525 \end_layout
18526
18527 \begin_layout Subsection
18528
18529 \change_inserted 564990737 1671270398
18530 Custom
18531 \change_deleted 564990737 1671270396
18532 Non-standard
18533 \change_unchanged
18534  Paragraph Shapes
18535 \end_layout
18536
18537 \begin_layout Standard
18538 \noindent
18539 \SpecialChar LaTeX
18540  as well as any other text processor uses by default rectangular paragraphs.
18541  For special cases like for example posters, invitation cards or poems you
18542  can modify the paragraph shape to one of your choice.
18543  This can be done by using the \SpecialChar LaTeX
18544 -package 
18545 \begin_inset Flex Code
18546 status collapsed
18547
18548 \begin_layout Plain Layout
18549 shapepar
18550 \end_layout
18551
18552 \end_inset
18553
18554  which is loaded by using in the document settings the module 
18555 \family sans
18556 Custom paragraph shapes
18557 \family default
18558 .
18559 \end_layout
18560
18561 \begin_layout Subsubsection
18562 Predefined shapes
18563 \end_layout
18564
18565 \begin_layout Standard
18566
18567 \series bold
18568 shapepar
18569 \series default
18570  provides the following shapes:
18571 \end_layout
18572
18573 \begin_layout Standard
18574 \begin_inset Tabular
18575 <lyxtabular version="3" rows="13" columns="3">
18576 <features booktabs="true" islongtable="true" longtabularalignment="center">
18577 <column alignment="left" valignment="middle" width="16col%">
18578 <column alignment="left" valignment="middle" width="40col%">
18579 <column alignment="left" valignment="middle" width="35col%">
18580 <row endhead="true">
18581 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18582 \begin_inset Text
18583
18584 \begin_layout Plain Layout
18585
18586 \series bold
18587 \size small
18588 Name
18589 \end_layout
18590
18591 \end_inset
18592 </cell>
18593 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18594 \begin_inset Text
18595
18596 \begin_layout Plain Layout
18597
18598 \series bold
18599 \size small
18600 Description
18601 \end_layout
18602
18603 \end_inset
18604 </cell>
18605 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18606 \begin_inset Text
18607
18608 \begin_layout Plain Layout
18609
18610 \series bold
18611 \size small
18612 Annotation
18613 \end_layout
18614
18615 \end_inset
18616 </cell>
18617 </row>
18618 <row interlinespace="default">
18619 <cell alignment="left" valignment="top" usebox="none">
18620 \begin_inset Text
18621
18622 \begin_layout Plain Layout
18623
18624 \size small
18625 CDlabel
18626 \end_layout
18627
18628 \end_inset
18629 </cell>
18630 <cell alignment="left" valignment="top" usebox="none">
18631 \begin_inset Text
18632
18633 \begin_layout Plain Layout
18634
18635 \size small
18636 Circle with circular hole (in the size of a CD/DVD)
18637 \end_layout
18638
18639 \end_inset
18640 </cell>
18641 <cell alignment="left" valignment="top" usebox="none">
18642 \begin_inset Text
18643
18644 \begin_layout Plain Layout
18645
18646 \size small
18647 Cannot be scaled, take care there is not too much text
18648 \end_layout
18649
18650 \end_inset
18651 </cell>
18652 </row>
18653 <row interlinespace="default">
18654 <cell alignment="left" valignment="top" usebox="none">
18655 \begin_inset Text
18656
18657 \begin_layout Plain Layout
18658
18659 \size small
18660 Circle
18661 \end_layout
18662
18663 \end_inset
18664 </cell>
18665 <cell alignment="left" valignment="top" usebox="none">
18666 \begin_inset Text
18667
18668 \begin_layout Plain Layout
18669
18670 \size small
18671 Circle
18672 \end_layout
18673
18674 \end_inset
18675 </cell>
18676 <cell alignment="left" valignment="top" usebox="none">
18677 \begin_inset Text
18678
18679 \begin_layout Plain Layout
18680
18681 \size small
18682 Fragile, calculation might fail
18683 \end_layout
18684
18685 \end_inset
18686 </cell>
18687 </row>
18688 <row interlinespace="default">
18689 <cell alignment="left" valignment="top" usebox="none">
18690 \begin_inset Text
18691
18692 \begin_layout Plain Layout
18693
18694 \size small
18695 Diamond
18696 \end_layout
18697
18698 \end_inset
18699 </cell>
18700 <cell alignment="left" valignment="top" usebox="none">
18701 \begin_inset Text
18702
18703 \begin_layout Plain Layout
18704
18705 \size small
18706 Rhomboid (symbolizing a 
18707 \begin_inset Quotes eld
18708 \end_inset
18709
18710 diamond
18711 \begin_inset Quotes erd
18712 \end_inset
18713
18714 )
18715 \end_layout
18716
18717 \end_inset
18718 </cell>
18719 <cell alignment="left" valignment="top" usebox="none">
18720 \begin_inset Text
18721
18722 \begin_layout Plain Layout
18723
18724 \size small
18725 -
18726 \end_layout
18727
18728 \end_inset
18729 </cell>
18730 </row>
18731 <row interlinespace="default">
18732 <cell alignment="left" valignment="top" usebox="none">
18733 \begin_inset Text
18734
18735 \begin_layout Plain Layout
18736
18737 \size small
18738 Heart
18739 \end_layout
18740
18741 \end_inset
18742 </cell>
18743 <cell alignment="left" valignment="top" usebox="none">
18744 \begin_inset Text
18745
18746 \begin_layout Plain Layout
18747
18748 \size small
18749 Heart-like shape
18750 \end_layout
18751
18752 \end_inset
18753 </cell>
18754 <cell alignment="left" valignment="top" usebox="none">
18755 \begin_inset Text
18756
18757 \begin_layout Plain Layout
18758
18759 \size small
18760 -
18761 \end_layout
18762
18763 \end_inset
18764 </cell>
18765 </row>
18766 <row interlinespace="default">
18767 <cell alignment="left" valignment="top" usebox="none">
18768 \begin_inset Text
18769
18770 \begin_layout Plain Layout
18771
18772 \size small
18773 Hexagon
18774 \end_layout
18775
18776 \end_inset
18777 </cell>
18778 <cell alignment="left" valignment="top" usebox="none">
18779 \begin_inset Text
18780
18781 \begin_layout Plain Layout
18782
18783 \size small
18784 Hexagon
18785 \end_layout
18786
18787 \end_inset
18788 </cell>
18789 <cell alignment="left" valignment="top" usebox="none">
18790 \begin_inset Text
18791
18792 \begin_layout Plain Layout
18793
18794 \size small
18795 -
18796 \end_layout
18797
18798 \end_inset
18799 </cell>
18800 </row>
18801 <row interlinespace="default">
18802 <cell alignment="left" valignment="top" usebox="none">
18803 \begin_inset Text
18804
18805 \begin_layout Plain Layout
18806
18807 \size small
18808 Nut
18809 \end_layout
18810
18811 \end_inset
18812 </cell>
18813 <cell alignment="left" valignment="top" usebox="none">
18814 \begin_inset Text
18815
18816 \begin_layout Plain Layout
18817
18818 \size small
18819 Nut for bolt (hexagon with circular hole)
18820 \end_layout
18821
18822 \end_inset
18823 </cell>
18824 <cell alignment="left" valignment="top" usebox="none">
18825 \begin_inset Text
18826
18827 \begin_layout Plain Layout
18828
18829 \size small
18830 -
18831 \end_layout
18832
18833 \end_inset
18834 </cell>
18835 </row>
18836 <row interlinespace="default">
18837 <cell alignment="left" valignment="top" usebox="none">
18838 \begin_inset Text
18839
18840 \begin_layout Plain Layout
18841
18842 \size small
18843 Square
18844 \end_layout
18845
18846 \end_inset
18847 </cell>
18848 <cell alignment="left" valignment="top" usebox="none">
18849 \begin_inset Text
18850
18851 \begin_layout Plain Layout
18852
18853 \size small
18854 Square
18855 \end_layout
18856
18857 \end_inset
18858 </cell>
18859 <cell alignment="left" valignment="top" usebox="none">
18860 \begin_inset Text
18861
18862 \begin_layout Plain Layout
18863
18864 \size small
18865 -
18866 \end_layout
18867
18868 \end_inset
18869 </cell>
18870 </row>
18871 <row interlinespace="default">
18872 <cell alignment="left" valignment="top" usebox="none">
18873 \begin_inset Text
18874
18875 \begin_layout Plain Layout
18876
18877 \size small
18878 Star
18879 \end_layout
18880
18881 \end_inset
18882 </cell>
18883 <cell alignment="left" valignment="top" usebox="none">
18884 \begin_inset Text
18885
18886 \begin_layout Plain Layout
18887
18888 \size small
18889 Five-point star
18890 \end_layout
18891
18892 \end_inset
18893 </cell>
18894 <cell alignment="left" valignment="top" usebox="none">
18895 \begin_inset Text
18896
18897 \begin_layout Plain Layout
18898
18899 \size small
18900 -
18901 \end_layout
18902
18903 \end_inset
18904 </cell>
18905 </row>
18906 <row interlinespace="default">
18907 <cell alignment="left" valignment="top" usebox="none">
18908 \begin_inset Text
18909
18910 \begin_layout Plain Layout
18911
18912 \size small
18913 Candle
18914 \end_layout
18915
18916 \end_inset
18917 </cell>
18918 <cell alignment="left" valignment="top" usebox="none">
18919 \begin_inset Text
18920
18921 \begin_layout Plain Layout
18922
18923 \size small
18924 Burning candle
18925 \end_layout
18926
18927 \end_inset
18928 </cell>
18929 <cell alignment="left" valignment="top" usebox="none">
18930 \begin_inset Text
18931
18932 \begin_layout Plain Layout
18933
18934 \size small
18935 -
18936 \end_layout
18937
18938 \end_inset
18939 </cell>
18940 </row>
18941 <row interlinespace="default">
18942 <cell alignment="left" valignment="top" usebox="none">
18943 \begin_inset Text
18944
18945 \begin_layout Plain Layout
18946
18947 \size small
18948 Drop down/up
18949 \end_layout
18950
18951 \end_inset
18952 </cell>
18953 <cell alignment="left" valignment="top" usebox="none">
18954 \begin_inset Text
18955
18956 \begin_layout Plain Layout
18957
18958 \size small
18959 Normal/reversed rain drop
18960 \end_layout
18961
18962 \end_inset
18963 </cell>
18964 <cell alignment="left" valignment="top" usebox="none">
18965 \begin_inset Text
18966
18967 \begin_layout Plain Layout
18968
18969 \size small
18970 Fragile, calculation might fail
18971 \end_layout
18972
18973 \end_inset
18974 </cell>
18975 </row>
18976 <row interlinespace="default">
18977 <cell alignment="left" valignment="top" usebox="none">
18978 \begin_inset Text
18979
18980 \begin_layout Plain Layout
18981
18982 \size small
18983 \SpecialChar TeX
18984
18985 \end_layout
18986
18987 \end_inset
18988 </cell>
18989 <cell alignment="left" valignment="top" usebox="none">
18990 \begin_inset Text
18991
18992 \begin_layout Plain Layout
18993
18994 \size small
18995 The \SpecialChar TeX
18996  logo
18997 \end_layout
18998
18999 \end_inset
19000 </cell>
19001 <cell alignment="left" valignment="top" usebox="none">
19002 \begin_inset Text
19003
19004 \begin_layout Plain Layout
19005
19006 \size small
19007 -
19008 \end_layout
19009
19010 \end_inset
19011 </cell>
19012 </row>
19013 <row interlinespace="default">
19014 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19015 \begin_inset Text
19016
19017 \begin_layout Plain Layout
19018
19019 \size small
19020 Triangle up/down/
19021 \begin_inset Newline newline
19022 \end_inset
19023
19024 left/right
19025 \end_layout
19026
19027 \end_inset
19028 </cell>
19029 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19030 \begin_inset Text
19031
19032 \begin_layout Plain Layout
19033
19034 \size small
19035 Triangles in different orientations
19036 \end_layout
19037
19038 \end_inset
19039 </cell>
19040 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19041 \begin_inset Text
19042
19043 \begin_layout Plain Layout
19044
19045 \size small
19046 -
19047 \end_layout
19048
19049 \end_inset
19050 </cell>
19051 </row>
19052 </lyxtabular>
19053
19054 \end_inset
19055
19056
19057 \end_layout
19058
19059 \begin_layout Standard
19060 To use a shape for your paragraph, simply select it in \SpecialChar LyX
19061 's pull-down box
19062  for environments in the toolbar.
19063 \end_layout
19064
19065 \begin_layout Standard
19066 \begin_inset Newpage newpage
19067 \end_inset
19068
19069
19070 \end_layout
19071
19072 \begin_layout Standard
19073 Here is an example paragraph in the shape of a nut:
19074 \end_layout
19075
19076 \begin_layout Standard
19077 \begin_inset VSpace bigskip
19078 \end_inset
19079
19080
19081 \end_layout
19082
19083 \begin_layout Nut
19084
19085 \lang latin
19086 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19087  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19088  voluptua.
19089  At vero eos et accusam et justo duo dolores et ea rebum.
19090  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
19091  sit amet.
19092  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19093  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19094  voluptua.
19095 \end_layout
19096
19097 \begin_layout Standard
19098 \begin_inset VSpace bigskip
19099 \end_inset
19100
19101
19102 \end_layout
19103
19104 \begin_layout Standard
19105 \begin_inset Note Greyedout
19106 status open
19107
19108 \begin_layout Plain Layout
19109
19110 \series bold
19111 Note
19112 \series default
19113
19114 \family sans
19115 shapepar
19116 \family default
19117  paragraphs cannot run over a page break.
19118 \end_layout
19119
19120 \end_inset
19121
19122
19123 \end_layout
19124
19125 \begin_layout Standard
19126 \begin_inset VSpace bigskip
19127 \end_inset
19128
19129
19130 \end_layout
19131
19132 \begin_layout Standard
19133 The package 
19134 \begin_inset Flex Code
19135 status collapsed
19136
19137 \begin_layout Plain Layout
19138 shapepar
19139 \end_layout
19140
19141 \end_inset
19142
19143  takes care that the shape will always be preserved, no matter how much
19144  text is in the paragraph.
19145  Therefore the paragraph size changes with the amount of contained text.
19146  This can lead to paragraph sizes exceeding the page margins.
19147  To demonstrate the size scaling, here is the same example paragraph but
19148  with twice as much text:
19149 \end_layout
19150
19151 \begin_layout Standard
19152 \begin_inset Newpage newpage
19153 \end_inset
19154
19155
19156 \end_layout
19157
19158 \begin_layout Nut
19159
19160 \lang latin
19161 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19162  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19163  voluptua.
19164  At vero eos et accusam et justo duo dolores et ea rebum.
19165  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
19166  sit amet.
19167  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19168  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19169  voluptua.
19170  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19171  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19172  voluptua.
19173  At vero eos et accusam et justo duo dolores et ea rebum.
19174  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
19175  sit amet.
19176  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19177  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19178  voluptua.
19179 \end_layout
19180
19181 \begin_layout Standard
19182 \begin_inset VSpace bigskip
19183 \end_inset
19184
19185
19186 \end_layout
19187
19188 \begin_layout Standard
19189 An exception is the shape 
19190 \family sans
19191 CDlabel
19192 \family default
19193 .
19194  It cannot be scaled because it must fit the size of a CD/DVD.
19195  Therefore the amount of text that fits into the shape is limited.
19196 \begin_inset Newline newline
19197 \end_inset
19198
19199 The 
19200 \family sans
19201 drop
19202 \family default
19203  shapes and the 
19204 \family sans
19205 circle
19206 \family default
19207  shape are fragile, meaning that the calculation of their size can fail,
19208  depending on the amount of text.
19209  You will then get the \SpecialChar LaTeX
19210  error 
19211 \begin_inset Quotes eld
19212 \end_inset
19213
19214 Arithmetic overflow
19215 \begin_inset Quotes erd
19216 \end_inset
19217
19218 .
19219  In this case one can try to remove or add some text; if nothing works one
19220  has to use another shape.
19221 \end_layout
19222
19223 \begin_layout Standard
19224 \begin_inset VSpace bigskip
19225 \end_inset
19226
19227
19228 \end_layout
19229
19230 \begin_layout Standard
19231 For shapes with tips you will maybe see that \SpecialChar LaTeX
19232 's hyphenation routine fails
19233  for text in the tips.
19234  Therefore it is often necessary to add hyphenation points 
19235 \family sans
19236 (
19237 \begin_inset Info
19238 type  "shortcut"
19239 arg   "specialchar-insert hyphenation"
19240 \end_inset
19241
19242
19243 \family default
19244 ) to the corresponding text parts.
19245 \end_layout
19246
19247 \begin_layout Standard
19248 \begin_inset VSpace bigskip
19249 \end_inset
19250
19251
19252 \end_layout
19253
19254 \begin_layout Standard
19255 Shapepar paragraphs are either always centered or placed on the page so
19256  that their left border touches the left page margin.
19257  You can therefore not use the paragraph dialog to align such paragraphs.
19258  A solution is to put the paragraph into a minipage or parbox and align
19259  the box.
19260  The problem is hereby to find the right width for the box.
19261  Because if it is too wide and you center the box, the paragraph is not
19262  centered too because it sticks at the left side of the box.
19263  So you might have to play a bit with the width until it fits.
19264  Here are two heart-shaped paragraphs, the first one is not aligned, the
19265  second one is right-aligned:
19266 \end_layout
19267
19268 \begin_layout Standard
19269 \begin_inset Newpage newpage
19270 \end_inset
19271
19272
19273 \end_layout
19274
19275 \begin_layout Heart
19276 \noindent
19277
19278 \lang latin
19279 Lo\SpecialChar softhyphen
19280 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19281  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19282  voluptua.
19283  At vero eos et accusam et justo duo dolores et ea rebum.
19284  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
19285  sit amet.
19286 \end_layout
19287
19288 \begin_layout Standard
19289 \begin_inset VSpace bigskip
19290 \end_inset
19291
19292
19293 \end_layout
19294
19295 \begin_layout Standard
19296 \noindent
19297 \align right
19298 \begin_inset Box Frameless
19299 position "t"
19300 hor_pos "c"
19301 has_inner_box 1
19302 inner_pos "t"
19303 use_parbox 1
19304 use_makebox 0
19305 width "42col%"
19306 special "none"
19307 height "1in"
19308 height_special "totalheight"
19309 thickness "0.4pt"
19310 separation "3pt"
19311 shadowsize "4pt"
19312 framecolor "black"
19313 backgroundcolor "none"
19314 status open
19315
19316 \begin_layout Heart
19317 \noindent
19318
19319 \lang latin
19320 Lo\SpecialChar softhyphen
19321 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19322  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19323  voluptua.
19324  At vero eos et accusam et justo duo dolores et ea rebum.
19325  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
19326  sit amet.
19327 \end_layout
19328
19329 \end_inset
19330
19331
19332 \end_layout
19333
19334 \begin_layout Subsubsection
19335 Custom shapes
19336 \end_layout
19337
19338 \begin_layout Standard
19339 You can define any shape you want.
19340  Doing this manually is a lot of work because every coordinate must be specified.
19341  But there is a way to let the computer calculate the coordinates:
19342 \end_layout
19343
19344 \begin_layout Enumerate
19345 Install the program 
19346 \begin_inset CommandInset href
19347 LatexCommand href
19348 name "Jpgfdraw"
19349 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
19350 literal "false"
19351
19352 \end_inset
19353
19354 .
19355 \end_layout
19356
19357 \begin_layout Enumerate
19358 In 
19359 \family sans
19360 Jpgfdraw
19361 \family default
19362  go to the menu 
19363 \family sans
19364 TeX/LaTeX\SpecialChar menuseparator
19365 Settings\SpecialChar menuseparator
19366 Set Normal Size
19367 \family default
19368  and select the font size you are using in your document.
19369  For example this document uses the size 12
19370 \begin_inset space \thinspace{}
19371 \end_inset
19372
19373 pt.
19374 \end_layout
19375
19376 \begin_layout Enumerate
19377 Draw a shape.
19378 \end_layout
19379
19380 \begin_layout Enumerate
19381 Use the menu 
19382 \family sans
19383 TeX/LaTeX\SpecialChar menuseparator
19384 Shapepar
19385 \family default
19386  to export the shape to coordinates.
19387  In the appearing dialog use either the outline of your shape for the coordinate
19388 s or the path itself.
19389 \begin_inset Foot
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 For more information see 
19394 \begin_inset CommandInset href
19395 LatexCommand href
19396 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
19397 literal "false"
19398
19399 \end_inset
19400
19401
19402 \end_layout
19403
19404 \end_inset
19405
19406
19407 \end_layout
19408
19409 \begin_layout Standard
19410 The coordinates are written into a \SpecialChar TeX
19411  file.
19412  To use it for your \SpecialChar LyX
19413  document
19414 \end_layout
19415
19416 \begin_layout Enumerate
19417 Place the cursor before the first character of your paragraph (or into a
19418  new empty one).
19419 \end_layout
19420
19421 \begin_layout Enumerate
19422 Open in \SpecialChar LyX
19423  the menu 
19424 \family sans
19425 Insert\SpecialChar menuseparator
19426 File\SpecialChar menuseparator
19427 Child
19428 \begin_inset space ~
19429 \end_inset
19430
19431 Document
19432 \family default
19433 , select the file and use 
19434 \family sans
19435 Input
19436 \family default
19437  as 
19438 \family sans
19439 Include Type.
19440 \end_layout
19441
19442 \begin_layout Standard
19443 \begin_inset VSpace defskip
19444 \end_inset
19445
19446
19447 \end_layout
19448
19449 \begin_layout Standard
19450 \begin_inset Note Greyedout
19451 status open
19452
19453 \begin_layout Plain Layout
19454
19455 \series bold
19456 Note
19457 \series default
19458 : The changed shape only applies to the current paragraph; everything is
19459  reset to normal for the next paragraph.
19460  Therefore the shape definition file must be input into every paragraph
19461  with the desired shape.
19462 \end_layout
19463
19464 \end_inset
19465
19466
19467 \end_layout
19468
19469 \begin_layout Standard
19470 \begin_inset VSpace bigskip
19471 \end_inset
19472
19473
19474 \end_layout
19475
19476 \begin_layout Standard
19477 Here is an example:
19478 \end_layout
19479
19480 \begin_layout Standard
19481 \begin_inset VSpace bigskip
19482 \end_inset
19483
19484
19485 \end_layout
19486
19487 \begin_layout Standard
19488 \begin_inset CommandInset include
19489 LatexCommand input
19490 filename "SpecialParagraphShape.tex"
19491 literal "true"
19492
19493 \end_inset
19494
19495
19496 \lang latin
19497 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19498  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19499  voluptua.
19500  At vero eos et accusam et justo duo dolores et ea rebum.
19501  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
19502  sit amet.
19503  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
19504  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19505  voluptua.
19506 \end_layout
19507
19508 \begin_layout Standard
19509 \begin_inset VSpace bigskip
19510 \end_inset
19511
19512
19513 \end_layout
19514
19515 \begin_layout Standard
19516
19517 \series bold
19518 A tip:
19519 \series default
19520  to draw complexer shapes in 
19521 \family sans
19522 Jpgfdraw
19523 \family default
19524  you can draw the shape in a program of your choice and import the resulting
19525  image to 
19526 \family sans
19527 Jpgfdraw
19528 \family default
19529 .
19530  Then you only need to draw a line or spline along the outline of the image.
19531 \end_layout
19532
19533 \begin_layout Standard
19534 \begin_inset VSpace bigskip
19535 \end_inset
19536
19537
19538 \end_layout
19539
19540 \begin_layout Standard
19541 The module 
19542 \family sans
19543 Custom paragraph shapes
19544 \family default
19545  also provides the two commands 
19546 \family sans
19547 shapepar
19548 \family default
19549  and 
19550 \family sans
19551 Shapepar
19552 \family default
19553  which can be used to define custom shapes coordinate by coordinate.
19554 \begin_inset Foot
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558 These commands are internally used for all shapes described here.
19559 \end_layout
19560
19561 \end_inset
19562
19563  For information how these styles are used and about further customization
19564  possibilities, have a look at the 
19565 \begin_inset CommandInset href
19566 LatexCommand href
19567 name "documentation"
19568 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
19569 literal "false"
19570
19571 \end_inset
19572
19573  of the package 
19574 \begin_inset Flex Code
19575 status collapsed
19576
19577 \begin_layout Plain Layout
19578 shapepar
19579 \end_layout
19580
19581 \end_inset
19582
19583 .
19584 \end_layout
19585
19586 \begin_layout Chapter
19587
19588 \change_deleted 564990737 1671304317
19589 Customizing 
19590 \change_unchanged
19591 Bibliograph
19592 \change_inserted 564990737 1671304322
19593 y
19594 \change_deleted 564990737 1671304331
19595 ies with Bib\SpecialChar TeX
19596  or Biblatex
19597 \change_unchanged
19598
19599 \end_layout
19600
19601 \begin_layout Standard
19602 The most basic information about how to use Bib\SpecialChar TeX
19603  or 
19604 \family sans
19605 Biblatex
19606 \family default
19607  with \SpecialChar LyX
19608  is contained in the section 
19609 \emph on
19610 Bibliography databases
19611 \emph default
19612  of the 
19613 \emph on
19614 User's Guide
19615 \emph default
19616 .
19617  The following subsections explain special bibliography features supported
19618  by \SpecialChar LyX
19619 .
19620 \end_layout
19621
19622 \begin_layout Section
19623 Alternative Citation Styles
19624 \end_layout
19625
19626 \begin_layout Standard
19627 Standard Bib\SpecialChar TeX
19628  uses numbers (e.
19629 \begin_inset space \thinspace{}
19630 \end_inset
19631
19632 g.
19633 \begin_inset space \space{}
19634 \end_inset
19635
19636
19637 \begin_inset Quotes eld
19638 \end_inset
19639
19640 [12]
19641 \begin_inset Quotes erd
19642 \end_inset
19643
19644 ) to refer to a cited work.
19645  However, in many scientific disciplines, other citation styles are in use.
19646  The most common one is the author-year style (e.
19647 \begin_inset space \thinspace{}
19648 \end_inset
19649
19650 g.
19651 \begin_inset space \space{}
19652 \end_inset
19653
19654
19655 \begin_inset Quotes eld
19656 \end_inset
19657
19658 Knuth 1984a
19659 \begin_inset Quotes erd
19660 \end_inset
19661
19662 ).
19663  \SpecialChar LyX
19664  supports three packages that provide this style, 
19665 \begin_inset Flex Code
19666 status collapsed
19667
19668 \begin_layout Plain Layout
19669 biblatex
19670 \end_layout
19671
19672 \end_inset
19673
19674
19675 \begin_inset Flex Code
19676 status collapsed
19677
19678 \begin_layout Plain Layout
19679 natbib
19680 \end_layout
19681
19682 \end_inset
19683
19684 , and 
19685 \begin_inset Flex Code
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 jurabib
19690 \end_layout
19691
19692 \end_inset
19693
19694 .
19695  Each of these packages has their pros and cons, which cannot be listed
19696  in detail.
19697  If you only want to have simple author-year (or author-numerical) style,
19698  or if you want to use one of the countless style files for 
19699 \begin_inset Flex Code
19700 status collapsed
19701
19702 \begin_layout Plain Layout
19703 natbib
19704 \end_layout
19705
19706 \end_inset
19707
19708 , then the established 
19709 \begin_inset Flex Code
19710 status collapsed
19711
19712 \begin_layout Plain Layout
19713 natbib
19714 \end_layout
19715
19716 \end_inset
19717
19718  package is probably your choice.
19719  If you look for specific citation styles common in law studies, you might
19720  consider the 
19721 \begin_inset Flex Code
19722 status collapsed
19723
19724 \begin_layout Plain Layout
19725 jurabib
19726 \end_layout
19727
19728 \end_inset
19729
19730  package.
19731  If you want to have full control over the formatting or look for advanced
19732  features such as ibidem, footnote citations, full title citations, advanced
19733  date formats (such as 400 BC) or full localization to other languages than
19734  English, you should definitely consider 
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 biblatex
19740 \end_layout
19741
19742 \end_inset
19743
19744 , which exceeds all other packages in terms of features, but is also quite
19745  heavy and more resource-hungry.
19746 \end_layout
19747
19748 \begin_layout Standard
19749 The handling of these packages in \SpecialChar LyX
19750  is basically the same.
19751  Go to 
19752 \begin_inset Flex Noun
19753 status collapsed
19754
19755 \begin_layout Plain Layout
19756 Document\SpecialChar menuseparator
19757 Settings
19758 \end_layout
19759
19760 \end_inset
19761
19762  and select under 
19763 \begin_inset Flex Noun
19764 status collapsed
19765
19766 \begin_layout Plain Layout
19767 Bibliography
19768 \end_layout
19769
19770 \end_inset
19771
19772  the 
19773 \begin_inset Flex Noun
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 Style Format
19778 \end_layout
19779
19780 \end_inset
19781
19782  
19783 \begin_inset Flex Noun
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787 Basic (BibTeX)
19788 \end_layout
19789
19790 \end_inset
19791
19792
19793 \begin_inset Flex Noun
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 Biblatex
19798 \end_layout
19799
19800 \end_inset
19801
19802
19803 \begin_inset Flex Noun
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807 Biblatex (Natbib mode)
19808 \end_layout
19809
19810 \end_inset
19811
19812
19813 \begin_inset Flex Noun
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 Natbib (BibTeX)
19818 \end_layout
19819
19820 \end_inset
19821
19822  or 
19823 \begin_inset Flex Noun
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 Jurabib (BibTeX)
19828 \end_layout
19829
19830 \end_inset
19831
19832  (see sec.
19833 \begin_inset space ~
19834 \end_inset
19835
19836 6.5.3 in the User's Guide for more information on these choices).
19837  With all these packages, you will get some extra features in the citation
19838  dialog and you can select the style of the reference (
19839 \begin_inset Quotes eld
19840 \end_inset
19841
19842 Knuth 1984
19843 \begin_inset Quotes erd
19844 \end_inset
19845
19846
19847 \begin_inset Quotes eld
19848 \end_inset
19849
19850 Knuth (1984)
19851 \begin_inset Quotes erd
19852 \end_inset
19853
19854
19855 \begin_inset Quotes eld
19856 \end_inset
19857
19858 Knuth, 1984
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862
19863 \begin_inset Quotes eld
19864 \end_inset
19865
19866 1984
19867 \begin_inset Quotes erd
19868 \end_inset
19869
19870  etc.).
19871  Note that either package needs specifically designed style files.
19872  They all ship their own, but there are lots of additional style files,
19873  and there is even an interactive style file builder
19874 \begin_inset Foot
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878 See 
19879 \begin_inset Flex URL
19880 status open
19881
19882 \begin_layout Plain Layout
19883
19884 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
19885 \end_layout
19886
19887 \end_inset
19888
19889
19890 \end_layout
19891
19892 \end_inset
19893
19894  for 
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 natbib
19900 \end_layout
19901
19902 \end_inset
19903
19904 .
19905 \end_layout
19906
19907 \begin_layout Section
19908 Subdivided Bibliographies
19909 \end_layout
19910
19911 \begin_layout Standard
19912 Sometimes you might need to divide your bibliography into several sections.
19913  If you are for instance a historian, the possibility to separate sources
19914  and scientific works is most likely a 
19915 \begin_inset Quotes eld
19916 \end_inset
19917
19918 must have
19919 \begin_inset Quotes erd
19920 \end_inset
19921
19922 .
19923  Unfortunately, Bib\SpecialChar TeX
19924  itself does not allow you to do this.
19925  But with the help of some \SpecialChar LaTeX
19926  packages, Bib\SpecialChar TeX
19927  can be extended to fit your needs.
19928 \end_layout
19929
19930 \begin_layout Standard
19931 \SpecialChar LyX
19932  provides native support for one of these packages, 
19933 \family typewriter
19934 bibtopic
19935 \family default
19936 .
19937 \begin_inset Foot
19938 status collapsed
19939
19940 \begin_layout Plain Layout
19941 Available from 
19942 \begin_inset Flex URL
19943 status open
19944
19945 \begin_layout Plain Layout
19946
19947 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
19948 \end_layout
19949
19950 \end_inset
19951
19952
19953 \end_layout
19954
19955 \end_inset
19956
19957  The advantage of this package (compared to other packages such as 
19958 \family typewriter
19959 multibib
19960 \family default
19961 ) is that you don't need to define new citation commands.
19962  Instead, you need to prepare different bibliographic databases which include
19963  the entries for the different sections of the bibliography.
19964  For example: If you want to divide your bibliography into the sections
19965  
19966 \begin_inset Quotes eld
19967 \end_inset
19968
19969 Sources
19970 \begin_inset Quotes erd
19971 \end_inset
19972
19973  and 
19974 \begin_inset Quotes eld
19975 \end_inset
19976
19977 Scientific works
19978 \begin_inset Quotes erd
19979 \end_inset
19980
19981 , you first need to create two bibliographic databases, e.
19982 \begin_inset space \thinspace{}
19983 \end_inset
19984
19985 g.
19986 \begin_inset space \space{}
19987 \end_inset
19988
19989
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 sources.bib
19995 \end_layout
19996
19997 \end_inset
19998
19999  and 
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 scientific.bib
20005 \end_layout
20006
20007 \end_inset
20008
20009 .
20010  
20011 \end_layout
20012
20013 \begin_layout Standard
20014 Go to 
20015 \begin_inset Flex Noun
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 Document\SpecialChar menuseparator
20020 Settings
20021 \end_layout
20022
20023 \end_inset
20024
20025  and check under 
20026 \begin_inset Flex Noun
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030 Bibliography
20031 \end_layout
20032
20033 \end_inset
20034
20035  the option 
20036 \begin_inset Flex Noun
20037 status collapsed
20038
20039 \begin_layout Plain Layout
20040 Subdivided bibliography
20041 \end_layout
20042
20043 \end_inset
20044
20045 .
20046  Now you can insert multiple Bib\SpecialChar TeX
20047  bibliographies, one for each section of
20048  your bibliography.
20049  Returning to our example: Insert the Bib\SpecialChar TeX
20050  bibliography 
20051 \begin_inset Flex Code
20052 status collapsed
20053
20054 \begin_layout Plain Layout
20055 sources.bib
20056 \end_layout
20057
20058 \end_inset
20059
20060  and a second one for the database 
20061 \begin_inset Flex Code
20062 status collapsed
20063
20064 \begin_layout Plain Layout
20065 scientific.bib
20066 \end_layout
20067
20068 \end_inset
20069
20070 .
20071  You are free to use the same or different styles for each section.
20072  Additionally, you can choose if the bibliography section should contain
20073  
20074 \begin_inset Quotes eld
20075 \end_inset
20076
20077 all cited references
20078 \begin_inset Quotes erd
20079 \end_inset
20080
20081  of the specified database(s) (which is the default), 
20082 \begin_inset Quotes eld
20083 \end_inset
20084
20085 all uncited references
20086 \begin_inset Quotes erd
20087 \end_inset
20088
20089  or even 
20090 \begin_inset Quotes eld
20091 \end_inset
20092
20093 all references
20094 \begin_inset Quotes erd
20095 \end_inset
20096
20097 .
20098  This might be useful if you would like to separate your bibliography into
20099  three sections: 
20100 \begin_inset Quotes eld
20101 \end_inset
20102
20103 Cited sources
20104 \begin_inset Quotes erd
20105 \end_inset
20106
20107
20108 \begin_inset Quotes eld
20109 \end_inset
20110
20111 Uncited sources
20112 \begin_inset Quotes erd
20113 \end_inset
20114
20115 , and 
20116 \begin_inset Quotes eld
20117 \end_inset
20118
20119 Scientific works
20120 \begin_inset Quotes erd
20121 \end_inset
20122
20123 .
20124  The titles for the sections can be added as ordinary sections or subsections.
20125  Since 
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130 bibtopic
20131 \end_layout
20132
20133 \end_inset
20134
20135  removes the bibliography title, you have to manually re-add that, too (as
20136  a chapter* or section*, for instance).
20137 \end_layout
20138
20139 \begin_layout Standard
20140 With 
20141 \family sans
20142 Biblatex
20143 \family default
20144 , the procedure is a bit different.
20145  Since 
20146 \family typewriter
20147 bibtopic
20148 \family default
20149  does not work with 
20150 \family sans
20151 Biblatex
20152 \family default
20153 , the aforementioned 
20154 \begin_inset Flex Noun
20155 status collapsed
20156
20157 \begin_layout Plain Layout
20158 Subdivided bibliography
20159 \end_layout
20160
20161 \end_inset
20162
20163  option is disabled if you use 
20164 \family sans
20165 Biblatex
20166 \family default
20167 .
20168  However, 
20169 \family sans
20170 Biblatex
20171 \family default
20172  provides its own means to generate subdivided bibliographies.
20173  You can either add keywords to bibliography entries via the 
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 keywords
20179 \end_layout
20180
20181 \end_inset
20182
20183  entry option and then filter bibliography sections by keyword (by adding
20184  
20185 \begin_inset Flex Code
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 keyword=mykeyword
20190 \end_layout
20191
20192 \end_inset
20193
20194  to the 
20195 \begin_inset Flex Noun
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 Options
20200 \end_layout
20201
20202 \end_inset
20203
20204  field of the dialog that opens if you left-click on the 
20205 \begin_inset Flex Noun
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 Biblatex Generated Bibliography
20210 \end_layout
20211
20212 \end_inset
20213
20214  button), or you can filter by entry types (such as 
20215 \emph on
20216 book
20217 \emph default
20218  or 
20219 \emph on
20220 article
20221 \emph default
20222 ) by entering e.
20223 \begin_inset space \thinspace{}
20224 \end_inset
20225
20226 g.
20227  
20228 \begin_inset Flex Code
20229 status collapsed
20230
20231 \begin_layout Plain Layout
20232 type=book
20233 \end_layout
20234
20235 \end_inset
20236
20237  or 
20238 \begin_inset Flex Code
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242 nottype=collection
20243 \end_layout
20244
20245 \end_inset
20246
20247  to the mentioned 
20248 \begin_inset Flex Noun
20249 status collapsed
20250
20251 \begin_layout Plain Layout
20252 Options
20253 \end_layout
20254
20255 \end_inset
20256
20257  field, or you can create so-called 
20258 \begin_inset Quotes eld
20259 \end_inset
20260
20261 Bibliography Categories
20262 \begin_inset Quotes erd
20263 \end_inset
20264
20265  to which you can assign individual entries.
20266  Please refer to the Biblatex manual, section 
20267 \emph on
20268 Subdivided Bibliographies
20269 \emph default
20270 , for details.
20271 \end_layout
20272
20273 \begin_layout Section
20274 Multiple Bibliographies
20275 \begin_inset CommandInset label
20276 LatexCommand label
20277 name "subsec:Multiple-Bibliographies"
20278
20279 \end_inset
20280
20281
20282 \end_layout
20283
20284 \begin_layout Standard
20285 Multiple bibliographies, e.
20286 \begin_inset space \thinspace{}
20287 \end_inset
20288
20289 g.
20290 \begin_inset space \space{}
20291 \end_inset
20292
20293 a bibliography for each part, chapter, section, subsection or child (sub-documen
20294 t) of the document, are also supported by \SpecialChar LyX
20295 .
20296  In order to enable it, go to 
20297 \begin_inset Flex Noun
20298 status collapsed
20299
20300 \begin_layout Plain Layout
20301 Document\SpecialChar menuseparator
20302 Settings\SpecialChar menuseparator
20303 Bibliography
20304 \end_layout
20305
20306 \end_inset
20307
20308  and select the relevant unit (e.
20309 \begin_inset space \thinspace{}
20310 \end_inset
20311
20312 g., 
20313 \begin_inset Quotes eld
20314 \end_inset
20315
20316 per section
20317 \begin_inset Quotes erd
20318 \end_inset
20319
20320 ) in the 
20321 \begin_inset Flex Noun
20322 status collapsed
20323
20324 \begin_layout Plain Layout
20325 Multiple Bibliographies
20326 \end_layout
20327
20328 \end_inset
20329
20330  combo box.
20331  Then add a Bib(la)\SpecialChar TeX
20332  bibliography to each unit (e.
20333 \begin_inset space \thinspace{}
20334 \end_inset
20335
20336 g., section) of your document.
20337  In the output, a separate bibliography, containing only the references
20338  done in the current unit is generated.
20339 \end_layout
20340
20341 \begin_layout Standard
20342 If you use Bib\SpecialChar TeX
20343 , either the 
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 chapterbib
20349 \end_layout
20350
20351 \end_inset
20352
20353  or the 
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 bibtopic
20359 \end_layout
20360
20361 \end_inset
20362
20363  package is used to create multiple bibliographies.
20364  The former package is used if you select 
20365 \begin_inset Quotes eld
20366 \end_inset
20367
20368 per child document
20369 \begin_inset Quotes erd
20370 \end_inset
20371
20372  and do 
20373 \emph on
20374 not
20375 \emph default
20376  check 
20377 \begin_inset Flex Noun
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 Sectioned Bibliography
20382 \end_layout
20383
20384 \end_inset
20385
20386 .
20387  In all other cases, 
20388 \begin_inset Flex Code
20389 status collapsed
20390
20391 \begin_layout Plain Layout
20392 bibtopic
20393 \end_layout
20394
20395 \end_inset
20396
20397  is used.
20398 \begin_inset Foot
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 An alternative approach, if you are willing to use some 
20403 \begin_inset Flex Noun
20404 status collapsed
20405
20406 \begin_layout Plain Layout
20407 \SpecialChar TeX
20408  Code
20409 \end_layout
20410
20411 \end_inset
20412
20413  (see section
20414 \begin_inset space ~
20415 \end_inset
20416
20417
20418 \begin_inset CommandInset ref
20419 LatexCommand ref
20420 reference "sec:Inserting-TeX-Code"
20421
20422 \end_inset
20423
20424 ), is to use the 
20425 \begin_inset Flex Code
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429 bibunits
20430 \end_layout
20431
20432 \end_inset
20433
20434  package.
20435 \end_layout
20436
20437 \end_inset
20438
20439  If 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 bibtopic
20445 \end_layout
20446
20447 \end_inset
20448
20449  is used, \SpecialChar LyX
20450  encloses the specified units in 
20451 \begin_inset Flex Code
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455 bibtopic
20456 \end_layout
20457
20458 \end_inset
20459
20460 's 
20461 \begin_inset Flex Code
20462 status collapsed
20463
20464 \begin_layout Plain Layout
20465
20466 \backslash
20467 begin{btUnit}
20468 \end_layout
20469
20470 \end_inset
20471
20472  and 
20473 \begin_inset Flex Code
20474 status collapsed
20475
20476 \begin_layout Plain Layout
20477
20478 \backslash
20479 end{btUnit}
20480 \end_layout
20481
20482 \end_inset
20483
20484  in order to create the units.
20485  Note that this approach has some limitations.
20486  First, every citation reference has to be inside some 
20487 \begin_inset Flex Code
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 btUnit
20492 \end_layout
20493
20494 \end_inset
20495
20496 .
20497  So citations outside a defined unit (e.
20498 \begin_inset space \thinspace{}
20499 \end_inset
20500
20501 g., before the first section if you use 
20502 \begin_inset Quotes eld
20503 \end_inset
20504
20505 by section
20506 \begin_inset Quotes erd
20507 \end_inset
20508
20509 ) will appear as 
20510 \begin_inset Quotes eld
20511 \end_inset
20512
20513 ???
20514 \begin_inset Quotes erd
20515 \end_inset
20516
20517 .
20518  You can also create your own units by entering 
20519 \begin_inset Flex Code
20520 status collapsed
20521
20522 \begin_layout Plain Layout
20523
20524 \backslash
20525 begin{btUnit}
20526 \end_layout
20527
20528 \end_inset
20529
20530  and 
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535
20536 \backslash
20537 end{btUnit}
20538 \end_layout
20539
20540 \end_inset
20541
20542  as \SpecialChar TeX
20543  code (for instance to work around the mentioned limitation).
20544  Note, though, that 
20545 \begin_inset Flex Code
20546 status collapsed
20547
20548 \begin_layout Plain Layout
20549 btUnit
20550 \end_layout
20551
20552 \end_inset
20553
20554 s cannot be nested.
20555  A second limitation is that 
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 bibtopic
20561 \end_layout
20562
20563 \end_inset
20564
20565  always processes all references of a bibliography database, even if they
20566  are not cited.
20567  This can result in odd labels (e.
20568 \begin_inset space \thinspace{}
20569 \end_inset
20570
20571 g.
20572  
20573 \begin_inset Quotes eld
20574 \end_inset
20575
20576 Miller 2014b
20577 \begin_inset Quotes erd
20578 \end_inset
20579
20580  if two works of this author from 2014 are in the database, even if only
20581  one is cited).
20582 \end_layout
20583
20584 \begin_layout Standard
20585 If you use 
20586 \family sans
20587 Biblatex
20588 \family default
20589 , the 
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 refsection
20595 \end_layout
20596
20597 \end_inset
20598
20599  option is used instead.
20600  If you need specific units, you can start them with the \SpecialChar TeX
20601  code 
20602 \begin_inset Flex Code
20603 status collapsed
20604
20605 \begin_layout Plain Layout
20606
20607 \backslash
20608 newrefsection
20609 \end_layout
20610
20611 \end_inset
20612
20613  or 
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618
20619 \backslash
20620 newrefsegment
20621 \end_layout
20622
20623 \end_inset
20624
20625 , respectively.
20626  If you also want to control the end of the unit, use the environment 
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631
20632 \backslash
20633 begin{refsection}
20634 \end_layout
20635
20636 \end_inset
20637
20638  \SpecialChar ldots
20639  
20640 \begin_inset Flex Code
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644
20645 \backslash
20646 end{refsection}
20647 \end_layout
20648
20649 \end_inset
20650
20651  instead.
20652  Note, though, that 
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 refsection
20658 \end_layout
20659
20660 \end_inset
20661
20662 s cannot be nested.
20663  In addition to the individual bibliography of the current unit, 
20664 \family sans
20665 Biblatex
20666 \family default
20667  also provides an easy way to output all bibliographies, subsequently, at
20668  one place (e.
20669 \begin_inset space \thinspace{}
20670 \end_inset
20671
20672 g., at the end of the document).
20673  Select 
20674 \begin_inset Quotes eld
20675 \end_inset
20676
20677 all reference units
20678 \begin_inset Quotes erd
20679 \end_inset
20680
20681  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
20682  this.
20683  Please refer to the 
20684 \family sans
20685 Biblatex
20686 \family default
20687  manual for more information on this topic.
20688 \end_layout
20689
20690 \begin_layout Chapter
20691
20692 \change_deleted 564990737 1671355654
20693 Itemize 
20694 \change_unchanged
20695 Bullet
20696 \change_inserted 564990737 1671355667
20697 s
20698 \change_deleted 564990737 1671355661
20699  Selection
20700 \change_inserted 564990737 1671355684
20701
20702 \begin_inset CommandInset label
20703 LatexCommand label
20704 name "chap:bullets"
20705
20706 \end_inset
20707
20708
20709 \change_deleted 564990737 1671355684
20710
20711 \begin_inset CommandInset label
20712 LatexCommand label
20713 name "sec:bullet"
20714
20715 \end_inset
20716
20717
20718 \change_unchanged
20719
20720 \end_layout
20721
20722 \begin_layout Standard
20723 by
20724 \noun on
20725  Allan Rae
20726 \end_layout
20727
20728 \begin_layout Section
20729 Introduction
20730 \end_layout
20731
20732 \begin_layout Standard
20733 \SpecialChar LyX
20734  provides 216 bullet shapes that can be accessed from a simple dialog.
20735  Using this dialog you can easily specify what bullet shape to use at each
20736  level of an itemized list.
20737  These settings are document-wide so you won't be able to specify different
20738  sets of bullets for different paragraphs.
20739 \begin_inset Foot
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 Well, actually you can but you'll have to do it by hand.
20744 \end_layout
20745
20746 \end_inset
20747
20748
20749 \end_layout
20750
20751 \begin_layout Section
20752 How it looks
20753 \end_layout
20754
20755 \begin_layout Standard
20756 Open the dialog by selecting the 
20757 \begin_inset Flex Noun
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 Document\SpecialChar menuseparator
20762 Settings
20763 \end_layout
20764
20765 \end_inset
20766
20767  menu item and then select the 
20768 \begin_inset Flex Noun
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 Bullets
20773 \end_layout
20774
20775 \end_inset
20776
20777  tab.
20778 \end_layout
20779
20780 \begin_layout Standard
20781 The dialog provides you with a table of bullet shapes.
20782  A column of buttons on the left of the table provides access to the six
20783  different panels of bullet shapes.
20784  The row of buttons across the top is used to select which bullet depth
20785  you are changing.
20786
20787 \change_deleted 244031559 1603875981
20788  A text entry under the table shows the currently selected bullet shape's
20789  \SpecialChar LaTeX
20790  equivalent and this can be edited if desired.
20791  If you do modify the text you will also need to specify any needed packages
20792  in the \SpecialChar LaTeX
20793  preamble.
20794 \change_unchanged
20795
20796 \end_layout
20797
20798 \begin_layout Standard
20799 The six panels are divided up by the packages they require.
20800  The following table shows the mappings from button name to \SpecialChar LaTeX
20801  package.
20802 \end_layout
20803
20804 \begin_layout Standard
20805 \align center
20806 \begin_inset Tabular
20807 <lyxtabular version="3" rows="7" columns="2">
20808 <features tabularvalignment="middle">
20809 <column alignment="center" valignment="top" width="0pt">
20810 <column alignment="center" valignment="top" width="0pt">
20811 <row>
20812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20813 \begin_inset Text
20814
20815 \begin_layout Plain Layout
20816
20817 \family roman
20818 \series medium
20819 \shape up
20820 \size normal
20821 \emph off
20822 \bar no
20823 \noun off
20824 \color none
20825 Button
20826 \end_layout
20827
20828 \end_inset
20829 </cell>
20830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20831 \begin_inset Text
20832
20833 \begin_layout Plain Layout
20834
20835 \family roman
20836 \series medium
20837 \shape up
20838 \size normal
20839 \emph off
20840 \bar no
20841 \noun off
20842 \color none
20843 Packages Required
20844 \end_layout
20845
20846 \end_inset
20847 </cell>
20848 </row>
20849 <row>
20850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20851 \begin_inset Text
20852
20853 \begin_layout Plain Layout
20854
20855 \family sans
20856 \series medium
20857 \shape up
20858 \size normal
20859 \emph off
20860 \bar no
20861 \noun off
20862 \color none
20863 Standard
20864 \end_layout
20865
20866 \end_inset
20867 </cell>
20868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20869 \begin_inset Text
20870
20871 \begin_layout Plain Layout
20872
20873 \series medium
20874 \shape up
20875 \size normal
20876 \emph off
20877 \bar no
20878 \noun off
20879 \color none
20880 base \SpecialChar LaTeX
20881
20882 \end_layout
20883
20884 \end_inset
20885 </cell>
20886 </row>
20887 <row>
20888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20889 \begin_inset Text
20890
20891 \begin_layout Plain Layout
20892
20893 \family sans
20894 \series medium
20895 \shape up
20896 \size normal
20897 \emph off
20898 \bar no
20899 \noun off
20900 \color none
20901 Maths
20902 \end_layout
20903
20904 \end_inset
20905 </cell>
20906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20907 \begin_inset Text
20908
20909 \begin_layout Plain Layout
20910
20911 \family typewriter
20912 \series medium
20913 \shape up
20914 \size normal
20915 \emph off
20916 \bar no
20917 \noun off
20918 \color none
20919 amssymb.sty
20920 \end_layout
20921
20922 \end_inset
20923 </cell>
20924 </row>
20925 <row>
20926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20927 \begin_inset Text
20928
20929 \begin_layout Plain Layout
20930
20931 \family sans
20932 \series medium
20933 \shape up
20934 \size normal
20935 \emph off
20936 \bar no
20937 \noun off
20938 \color none
20939 Ding1
20940 \end_layout
20941
20942 \end_inset
20943 </cell>
20944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20945 \begin_inset Text
20946
20947 \begin_layout Plain Layout
20948
20949 \family typewriter
20950 \series medium
20951 \shape up
20952 \size normal
20953 \emph off
20954 \bar no
20955 \noun off
20956 \color none
20957 pifont.sty
20958 \end_layout
20959
20960 \end_inset
20961 </cell>
20962 </row>
20963 <row>
20964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20965 \begin_inset Text
20966
20967 \begin_layout Plain Layout
20968
20969 \family sans
20970 \series medium
20971 \shape up
20972 \size normal
20973 \emph off
20974 \bar no
20975 \noun off
20976 \color none
20977 Ding2
20978 \end_layout
20979
20980 \end_inset
20981 </cell>
20982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20983 \begin_inset Text
20984
20985 \begin_layout Plain Layout
20986
20987 \family typewriter
20988 \series medium
20989 \shape up
20990 \size normal
20991 \emph off
20992 \bar no
20993 \noun off
20994 \color none
20995 pifont.sty
20996 \end_layout
20997
20998 \end_inset
20999 </cell>
21000 </row>
21001 <row>
21002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21003 \begin_inset Text
21004
21005 \begin_layout Plain Layout
21006
21007 \family sans
21008 \series medium
21009 \shape up
21010 \size normal
21011 \emph off
21012 \bar no
21013 \noun off
21014 \color none
21015 Ding3
21016 \end_layout
21017
21018 \end_inset
21019 </cell>
21020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21021 \begin_inset Text
21022
21023 \begin_layout Plain Layout
21024
21025 \family typewriter
21026 \series medium
21027 \shape up
21028 \size normal
21029 \emph off
21030 \bar no
21031 \noun off
21032 \color none
21033 pifont.sty
21034 \end_layout
21035
21036 \end_inset
21037 </cell>
21038 </row>
21039 <row>
21040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21041 \begin_inset Text
21042
21043 \begin_layout Plain Layout
21044
21045 \family sans
21046 \series medium
21047 \shape up
21048 \size normal
21049 \emph off
21050 \bar no
21051 \noun off
21052 \color none
21053 Ding4
21054 \end_layout
21055
21056 \end_inset
21057 </cell>
21058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21059 \begin_inset Text
21060
21061 \begin_layout Plain Layout
21062
21063 \family typewriter
21064 \series medium
21065 \shape up
21066 \size normal
21067 \emph off
21068 \bar no
21069 \noun off
21070 \color none
21071 pifont.sty
21072 \end_layout
21073
21074 \end_inset
21075 </cell>
21076 </row>
21077 </lyxtabular>
21078
21079 \end_inset
21080
21081
21082 \end_layout
21083
21084 \begin_layout Standard
21085 \SpecialChar LyX
21086  doesn't stop you using bullets from packages you don't have.
21087  If you get errors from \SpecialChar LaTeX
21088  when you try to view or print the file, then it
21089  is likely you are missing a package.
21090 \begin_inset Foot
21091 status collapsed
21092
21093 \begin_layout Plain Layout
21094 \SpecialChar LyX
21095  doesn't restrict your use since you may be editing locally and exporting
21096  elsewhere.
21097 \end_layout
21098
21099 \end_inset
21100
21101
21102 \end_layout
21103
21104 \begin_layout Section
21105 How to use it
21106 \end_layout
21107
21108 \begin_layout Standard
21109 Select which bullet depth you want to change then select the bullet shape
21110  and size.
21111  Any changes will not be visible in \SpecialChar LyX
21112 , but are visible when viewing the document.
21113 \end_layout
21114
21115 \begin_layout Standard
21116 You can reset a bullet shape to the default simply by clicking your right
21117  mouse button on the appropriate bullet depth button.
21118 \begin_inset Foot
21119 status open
21120
21121 \begin_layout Plain Layout
21122
21123 \change_inserted 564990737 1672138075
21124 \begin_inset CommandInset label
21125 LatexCommand label
21126 name "fn:If-you-really"
21127
21128 \end_inset
21129
21130
21131 \change_unchanged
21132 If you 
21133 \emph on
21134 really
21135 \emph default
21136  want to have multiple sets of paragraphs with different sets of bullets
21137  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
21138  code.
21139  The bullet selection dialog can help though because it provides you with
21140  the \SpecialChar LaTeX
21141  code for a wide range of bullet shapes.
21142  To make your own custom paragraphs you have the following options:
21143 \end_layout
21144
21145 \begin_layout Plain Layout
21146 \begin_inset ERT
21147 status open
21148
21149 \begin_layout Plain Layout
21150
21151
21152 \backslash
21153 let
21154 \backslash
21155 savelabelitemi=
21156 \backslash
21157 labelitemi
21158 \end_layout
21159
21160 \end_inset
21161
21162
21163 \end_layout
21164
21165 \begin_layout Plain Layout
21166 \begin_inset ERT
21167 status open
21168
21169 \begin_layout Plain Layout
21170
21171
21172 \backslash
21173 renewcommand
21174 \backslash
21175 labelitemi[0]{
21176 \backslash
21177 small
21178 \backslash
21179 (
21180 \backslash
21181 sharp
21182 \backslash
21183 )}
21184 \end_layout
21185
21186 \end_inset
21187
21188
21189 \end_layout
21190
21191 \begin_layout Itemize
21192 Use the \SpecialChar LaTeX
21193  command 
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198
21199 \backslash
21200 renewcommand{}{}
21201 \end_layout
21202
21203 \end_inset
21204
21205  to specify a new bullet shape for a given depth.
21206  You'll also need to save the current bullet shape so you can restore it
21207  again afterwards.
21208  In this itemized list the following \SpecialChar LaTeX
21209  code was used to change the bullet
21210  used for the first depth.
21211 \end_layout
21212
21213 \begin_deeper
21214 \begin_layout LyX-Code
21215
21216 \backslash
21217 let
21218 \backslash
21219 savelabelitemi=
21220 \backslash
21221 labelitemi 
21222 \end_layout
21223
21224 \begin_layout LyX-Code
21225
21226 \backslash
21227 renewcommand
21228 \backslash
21229 labelitemi[0]{
21230 \backslash
21231 small
21232 \backslash
21233 (
21234 \backslash
21235 sharp
21236 \backslash
21237 )}
21238 \end_layout
21239
21240 \end_deeper
21241 \begin_layout Itemize
21242 Note that the itemize depth is specified in Roman numerals as part of the
21243  
21244 \family typewriter
21245
21246 \backslash
21247 labelitem
21248 \family default
21249  command.
21250 \end_layout
21251
21252 \begin_layout Itemize
21253 \begin_inset Argument item:1
21254 status open
21255
21256 \begin_layout Plain Layout
21257 \begin_inset ERT
21258 status open
21259
21260 \begin_layout Plain Layout
21261
21262
21263 \backslash
21264 (
21265 \backslash
21266 star
21267 \backslash
21268 )
21269 \end_layout
21270
21271 \end_inset
21272
21273
21274 \end_layout
21275
21276 \end_inset
21277
21278  Specify each individual entry by starting each item with the bullet shape
21279  enclosed in a 
21280 \begin_inset Quotes eld
21281 \end_inset
21282
21283 Custom Item
21284 \begin_inset Quotes erd
21285 \end_inset
21286
21287  inset (available at 
21288 \family sans
21289 Insert\SpecialChar menuseparator
21290 Custom Item
21291 \family default
21292 ) and set as 
21293 \begin_inset Flex Noun
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297 \SpecialChar TeX
21298  Code
21299 \end_layout
21300
21301 \end_inset
21302
21303 .
21304  For example, this item was started with 
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309
21310 \backslash
21311 (
21312 \backslash
21313 star
21314 \backslash
21315 )
21316 \end_layout
21317
21318 \end_inset
21319
21320 .
21321 \end_layout
21322
21323 \begin_layout Plain Layout
21324 \begin_inset ERT
21325 status open
21326
21327 \begin_layout Plain Layout
21328
21329
21330 \backslash
21331 renewcommand
21332 \backslash
21333 labelitemi[0]{
21334 \backslash
21335 savelabelitemi}
21336 \end_layout
21337
21338 \end_inset
21339
21340
21341 \end_layout
21342
21343 \begin_layout Plain Layout
21344 You'll also need to revert the labelitem back to its previous setting for
21345  the global bullet shape settings to remain in effect.
21346  The way used here was:
21347 \end_layout
21348
21349 \begin_layout LyX-Code
21350
21351 \backslash
21352 renewcommand
21353 \backslash
21354 labelitemi[0]{
21355 \backslash
21356 savelabelitemi}
21357 \end_layout
21358
21359 \end_inset
21360
21361
21362 \end_layout
21363
21364 \begin_layout Chapter
21365 Supplemental Tools
21366 \end_layout
21367
21368 \begin_layout Section
21369 Multipart Documents
21370 \end_layout
21371
21372 \begin_layout Subsection
21373 General Operation
21374 \end_layout
21375
21376 \begin_layout Standard
21377 When you are working on a large file with many sections, it is often convenient
21378  to break up the document into several files, or perhaps you have something
21379  where a table may change from time to time, but the preceding text does
21380  not.
21381  In these cases, you should seriously consider using multipart documents.
21382  For example, scientific papers often have five major sections: the introduction
21383 , observations, results, discussion, and conclusion.
21384  Each of these could be its own separate \SpecialChar LyX
21385  file, with one 
21386 \begin_inset Quotes eld
21387 \end_inset
21388
21389 master
21390 \begin_inset Quotes erd
21391 \end_inset
21392
21393  file which contains the title, authors, abstract, references, etc., plus
21394  the five included files.
21395  It is important to note that each of these files is a full \SpecialChar LyX
21396  file which
21397  can be formatted and printed on its own, as well as included in a master
21398  file.
21399  Each of these files must have the same document class, however—don't attempt
21400  to mix book classes with article classes.
21401  You may also include \SpecialChar LaTeX
21402  files; however, these files must not have their own
21403  preamble (i.
21404 \begin_inset space \thinspace{}
21405 \end_inset
21406
21407 e.
21408 \begin_inset space \space{}
21409 \end_inset
21410
21411 everything up to and including the 
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416
21417 \backslash
21418 begin{document}
21419 \end_layout
21420
21421 \end_inset
21422
21423  line as well as the 
21424 \begin_inset Flex Code
21425 status collapsed
21426
21427 \begin_layout Plain Layout
21428
21429 \backslash
21430 end{document}
21431 \end_layout
21432
21433 \end_inset
21434
21435  line must be deleted) or else errors will be generated when you try to
21436  make a DVI file.
21437 \end_layout
21438
21439 \begin_layout Standard
21440 \SpecialChar LyX
21441  allows you to include files quite easily with 
21442 \begin_inset Flex Noun
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446 Insert\SpecialChar menuseparator
21447 Child
21448 \begin_inset space ~
21449 \end_inset
21450
21451 Document
21452 \end_layout
21453
21454 \end_inset
21455
21456 .
21457  When you click on this selection a small box is inserted into the file
21458  at the current cursor location.
21459  Clicking on the box raises a dialog which allows you to select the file
21460  to be included, and the method of its inclusion.
21461  
21462 \end_layout
21463
21464 \begin_layout Standard
21465 The file selection box should by now be obvious.
21466  The three inclusion methods are 
21467 \begin_inset Quotes eld
21468 \end_inset
21469
21470 include
21471 \begin_inset Quotes erd
21472 \end_inset
21473
21474
21475 \begin_inset Quotes eld
21476 \end_inset
21477
21478 input
21479 \begin_inset Quotes erd
21480 \end_inset
21481
21482 , and 
21483 \begin_inset Quotes eld
21484 \end_inset
21485
21486 verbatim
21487 \begin_inset Quotes erd
21488 \end_inset
21489
21490 .
21491  The methods 
21492 \begin_inset Quotes eld
21493 \end_inset
21494
21495 include
21496 \begin_inset Quotes erd
21497 \end_inset
21498
21499  and 
21500 \begin_inset Quotes eld
21501 \end_inset
21502
21503 input
21504 \begin_inset Quotes erd
21505 \end_inset
21506
21507  are similar in many ways, but there are also some notable differences:
21508 \end_layout
21509
21510 \begin_layout Enumerate
21511 Files that are 
21512 \begin_inset Quotes eld
21513 \end_inset
21514
21515 included
21516 \begin_inset Quotes erd
21517 \end_inset
21518
21519  are typeset beginning on a new page, while files that are 
21520 \begin_inset Quotes eld
21521 \end_inset
21522
21523 inputted
21524 \begin_inset Quotes erd
21525 \end_inset
21526
21527  are typeset starting on the current page.
21528 \end_layout
21529
21530 \begin_layout Enumerate
21531 \begin_inset Quotes eld
21532 \end_inset
21533
21534 Included
21535 \begin_inset Quotes erd
21536 \end_inset
21537
21538  files cannot themselves 
21539 \begin_inset Quotes eld
21540 \end_inset
21541
21542 include
21543 \begin_inset Quotes erd
21544 \end_inset
21545
21546  further files (
21547 \begin_inset Quotes eld
21548 \end_inset
21549
21550 grandchilds
21551 \begin_inset Quotes erd
21552 \end_inset
21553
21554 ).
21555  With 
21556 \begin_inset Quotes eld
21557 \end_inset
21558
21559 input
21560 \begin_inset Quotes erd
21561 \end_inset
21562
21563 , on the other hand, infinite sub-inputting is possible.
21564 \end_layout
21565
21566 \begin_layout Enumerate
21567 \begin_inset Quotes eld
21568 \end_inset
21569
21570 Include
21571 \begin_inset Quotes erd
21572 \end_inset
21573
21574  allow for the output of only selected 
21575 \begin_inset Quotes eld
21576 \end_inset
21577
21578 included
21579 \begin_inset Quotes erd
21580 \end_inset
21581
21582  files, while maintaining the actual counters (pagination etc.) and references
21583  (please refer to the section 
21584 \emph on
21585 Child
21586 \begin_inset space ~
21587 \end_inset
21588
21589 Documents
21590 \emph default
21591  of the 
21592 \emph on
21593 Embedded
21594 \begin_inset space ~
21595 \end_inset
21596
21597 Objects
21598 \emph default
21599  manual for details).
21600 \end_layout
21601
21602 \begin_layout Standard
21603 Hence, 
21604 \begin_inset Quotes eld
21605 \end_inset
21606
21607 include
21608 \begin_inset Quotes erd
21609 \end_inset
21610
21611  is the preferred method for chapters that are outsourced to child documents,
21612  while 
21613 \begin_inset Quotes eld
21614 \end_inset
21615
21616 input
21617 \begin_inset Quotes erd
21618 \end_inset
21619
21620  is more suitable for arbitrary file inheritance.
21621 \end_layout
21622
21623 \begin_layout Standard
21624
21625 \begin_inset Quotes eld
21626 \end_inset
21627
21628 verbatim
21629 \begin_inset Quotes erd
21630 \end_inset
21631
21632  included file allows you to include a file typeset exactly as it appears
21633  in the file, i.
21634 \begin_inset space \thinspace{}
21635 \end_inset
21636
21637 e.
21638 \begin_inset space \space{}
21639 \end_inset
21640
21641 in 
21642 \begin_inset Flex Code
21643 status collapsed
21644
21645 \begin_layout Plain Layout
21646 verbatim
21647 \end_layout
21648
21649 \end_inset
21650
21651  mode, with the characters set in a fixed-width typewriter font.
21652  Normally, spaces in this file are invisible, though two consecutive spaces
21653  are conserved, unlike \SpecialChar LyX
21654 's normal treatment of spaces.
21655  However, setting the 
21656 \begin_inset Flex Noun
21657 status collapsed
21658
21659 \begin_layout Plain Layout
21660 Mark
21661 \begin_inset space ~
21662 \end_inset
21663
21664 spaces
21665 \begin_inset space ~
21666 \end_inset
21667
21668 in
21669 \begin_inset space ~
21670 \end_inset
21671
21672 output
21673 \end_layout
21674
21675 \end_inset
21676
21677  checkbox typesets a mark to unambiguously define the presence of a space.
21678  
21679 \end_layout
21680
21681 \begin_layout Standard
21682 Generally, the master file is converted into a full \SpecialChar LaTeX
21683  file before typesetting,
21684  while the included files are converted to \SpecialChar LaTeX
21685  files that do not have all the
21686  preamble information.
21687 \end_layout
21688
21689 \begin_layout Subsection
21690 Cross-References Between Files
21691 \end_layout
21692
21693 \begin_layout Standard
21694 \begin_inset Box Shadowbox
21695 position "t"
21696 hor_pos "c"
21697 has_inner_box 1
21698 inner_pos "t"
21699 use_parbox 0
21700 use_makebox 0
21701 width "100col%"
21702 special "none"
21703 height "1in"
21704 height_special "totalheight"
21705 thickness "0.4pt"
21706 separation "3pt"
21707 shadowsize "4pt"
21708 framecolor "black"
21709 backgroundcolor "none"
21710 status open
21711
21712 \begin_layout Plain Layout
21713 This section is somewhat out of date.
21714  Need to describe default master documents and how children are opened when
21715  the master is.
21716  [[FIXME]]
21717 \end_layout
21718
21719 \end_inset
21720
21721
21722 \end_layout
21723
21724 \begin_layout Standard
21725 It is possible to set up cross-references between the different files.
21726  First, open all the files in question: let's call them A and B in a two
21727  file example, where B is included in A.
21728  Let's say you insert a label in A, then want to reference it in B.
21729  Open the cross-reference dialog whilst in document B, and you can select
21730  the 
21731 \begin_inset Quotes eld
21732 \end_inset
21733
21734 buffer
21735 \begin_inset Quotes erd
21736 \end_inset
21737
21738  to use.
21739 \end_layout
21740
21741 \begin_layout Subsection
21742 Bibliography Lists in all Subdocuments
21743 \end_layout
21744
21745 \begin_layout Standard
21746 If you work with child documents, you might want to have only one main bibliogra
21747 phy at the end, but still be able to have a selected bibliography for the
21748  child if you output it on its own.
21749  Here is how to achieve this.
21750 \end_layout
21751
21752 \begin_layout Standard
21753 For the main document, you just insert a bibliography inset at the place
21754  where the main bibliography has to appear (within the master file or within
21755  a child).
21756  If the bibliography inset is in the master file, the references will be
21757  inherited by all children, so they are available in the citation dialog
21758  within each child.
21759 \end_layout
21760
21761 \begin_layout Standard
21762 For child-specific bibliographies, insert bibliography insets within the
21763  child documents, at the place where the bibliography should appear when
21764  the child is compiled separately.
21765  However, the trick is to insert them into a branch (
21766 \family sans
21767 Insert\SpecialChar menuseparator
21768 Branch\SpecialChar menuseparator
21769 Insert New Branch...
21770 \family default
21771 ), e.
21772 \begin_inset space \thinspace{}
21773 \end_inset
21774
21775 g.
21776  called 
21777 \begin_inset Quotes eld
21778 \end_inset
21779
21780 Childonly
21781 \begin_inset Quotes erd
21782 \end_inset
21783
21784 .
21785  Within the children, activate the branch (
21786 \family sans
21787 Document\SpecialChar menuseparator
21788 Settings...\SpecialChar menuseparator
21789 Branches
21790 \family default
21791 ).
21792  Within the master, deactivate the branch (
21793 \family sans
21794 Document\SpecialChar menuseparator
21795 Settings...\SpecialChar menuseparator
21796 Branches
21797 \family default
21798 ).
21799  Now the child's bibliography will be ignored by the master, but considered
21800  by the child.
21801 \end_layout
21802
21803 \begin_layout Standard
21804 If you need multiple bibliographies (e.
21805 \begin_inset space \thinspace{}
21806 \end_inset
21807
21808 g., one per child in the 
21809 \emph on
21810 main document
21811 \emph default
21812 ), please refer to sec.
21813 \begin_inset space ~
21814 \end_inset
21815
21816
21817 \begin_inset CommandInset ref
21818 LatexCommand ref
21819 reference "subsec:Multiple-Bibliographies"
21820
21821 \end_inset
21822
21823 .
21824 \end_layout
21825
21826 \begin_layout Section
21827 \SpecialChar LyX
21828  Archives
21829 \end_layout
21830
21831 \begin_layout Standard
21832 Users sometimes need to be able to 
21833 \begin_inset Quotes eld
21834 \end_inset
21835
21836 bundle
21837 \begin_inset Quotes erd
21838 \end_inset
21839
21840  a \SpecialChar LyX
21841  file together with all the images (and other files) on which it depends,
21842  either for sending to a publisher or for sharing with a co-author.
21843  \SpecialChar LyX
21844  includes a Python script (
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 lyxpak.py
21850 \end_layout
21851
21852 \end_inset
21853
21854 ) that automates this process.
21855  To use it, you must have either the 
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860 zipfile
21861 \end_layout
21862
21863 \end_inset
21864
21865  or 
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870 tarfile
21871 \end_layout
21872
21873 \end_inset
21874
21875  python modules installed on your system.
21876  By default, the script prefers the 
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 gzip
21882 \end_layout
21883
21884 \end_inset
21885
21886 -compressed 
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891 tar
21892 \end_layout
21893
21894 \end_inset
21895
21896  format on Unix-like systems and the 
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 zip
21902 \end_layout
21903
21904 \end_inset
21905
21906  format on Windows.
21907 \end_layout
21908
21909 \begin_layout Standard
21910 \SpecialChar LyX
21911 's configuration process will set the script up to export a `\SpecialChar LyX
21912  Archive',
21913  and this format will then be available under 
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 File\SpecialChar menuseparator
21919 Export
21920 \end_layout
21921
21922 \end_inset
21923
21924 .
21925 \end_layout
21926
21927 \begin_layout Standard
21928 Independently of the platform, the generation of a particular archive format
21929  can be forced by adding either the 
21930 \begin_inset Flex Code
21931 status collapsed
21932
21933 \begin_layout Plain Layout
21934 -t
21935 \end_layout
21936
21937 \end_inset
21938
21939  (for the 
21940 \begin_inset Flex Code
21941 status collapsed
21942
21943 \begin_layout Plain Layout
21944 tar
21945 \end_layout
21946
21947 \end_inset
21948
21949  format) or 
21950 \begin_inset Flex Code
21951 status collapsed
21952
21953 \begin_layout Plain Layout
21954 -z
21955 \end_layout
21956
21957 \end_inset
21958
21959  (for the 
21960 \begin_inset Flex Code
21961 status collapsed
21962
21963 \begin_layout Plain Layout
21964 zip
21965 \end_layout
21966
21967 \end_inset
21968
21969  format) switch to the 
21970 \begin_inset Flex Code
21971 status collapsed
21972
21973 \begin_layout Plain Layout
21974 \SpecialChar LyX
21975 \SpecialChar menuseparator
21976 \SpecialChar LyX
21977  Archive
21978 \end_layout
21979
21980 \end_inset
21981
21982  converter in 
21983 \begin_inset Flex Code
21984 status collapsed
21985
21986 \begin_layout Plain Layout
21987 Tools\SpecialChar menuseparator
21988 Preferences\SpecialChar menuseparator
21989 File Handling\SpecialChar menuseparator
21990 Converters
21991 \end_layout
21992
21993 \end_inset
21994
21995 .
21996  (Make sure you add the switch after the script name, not before it.)
21997 \end_layout
21998
21999 \begin_layout Section
22000 Fancy Headers and Footers
22001 \end_layout
22002
22003 \begin_layout Standard
22004 The default page layout is rather plain; for an 
22005 \begin_inset Flex Code
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009 article
22010 \end_layout
22011
22012 \end_inset
22013
22014  document class, all you get is a centered page number at the bottom of
22015  the page.
22016  This document uses KOMA-script's book class, so it appears to be a bit
22017  fancier.
22018  But to really put on a show, you need to set the document page style to
22019  
22020 \begin_inset Quotes eld
22021 \end_inset
22022
22023 fancy
22024 \begin_inset Quotes erd
22025 \end_inset
22026
22027 , as mentioned in the 
22028 \emph on
22029 User Guide
22030 \emph default
22031 .
22032  This section describes the \SpecialChar LaTeX
22033  code you need to insert in your \SpecialChar LaTeX
22034  preamble in
22035  order to get the desired effects.
22036 \end_layout
22037
22038 \begin_layout Standard
22039 For more information on fancy headers, see the 
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 fancyhdr
22045 \end_layout
22046
22047 \end_inset
22048
22049  package documentation.
22050  (
22051 \begin_inset Flex URL
22052 status collapsed
22053
22054 \begin_layout Plain Layout
22055
22056 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
22057 \end_layout
22058
22059 \end_inset
22060
22061 )
22062 \end_layout
22063
22064 \begin_layout Standard
22065 The page header is divided into three fields, not surprisingly labeled 
22066 \begin_inset Quotes eld
22067 \end_inset
22068
22069 left
22070 \begin_inset Quotes erd
22071 \end_inset
22072
22073
22074 \begin_inset Quotes eld
22075 \end_inset
22076
22077 center
22078 \begin_inset Quotes erd
22079 \end_inset
22080
22081 , and 
22082 \begin_inset Quotes eld
22083 \end_inset
22084
22085 right
22086 \begin_inset Quotes erd
22087 \end_inset
22088
22089 .
22090  The footer is also divided into these three fields.
22091  The \SpecialChar LaTeX
22092  commands to set these fields in the simplest manner are 
22093 \begin_inset Flex Code
22094 status collapsed
22095
22096 \begin_layout Plain Layout
22097
22098 \backslash
22099 lhead
22100 \end_layout
22101
22102 \end_inset
22103
22104
22105 \begin_inset Flex Code
22106 status collapsed
22107
22108 \begin_layout Plain Layout
22109
22110 \backslash
22111 chead
22112 \end_layout
22113
22114 \end_inset
22115
22116
22117 \begin_inset Flex Code
22118 status collapsed
22119
22120 \begin_layout Plain Layout
22121
22122 \backslash
22123 rhead
22124 \end_layout
22125
22126 \end_inset
22127
22128
22129 \begin_inset Flex Code
22130 status collapsed
22131
22132 \begin_layout Plain Layout
22133
22134 \backslash
22135 lfoot
22136 \end_layout
22137
22138 \end_inset
22139
22140 , etc.
22141  Suppose you wish to put your name in the upper left hand corner of each
22142  page.
22143  Simply insert the following command in the preamble: 
22144 \end_layout
22145
22146 \begin_layout Standard
22147
22148 \family typewriter
22149
22150 \backslash
22151 lhead{John Q.
22152  DocWriter}
22153 \end_layout
22154
22155 \begin_layout Standard
22156 You will now see your name in the upper left.
22157  If a field has a default entry that you would like to get rid of (often
22158  the page number appears in the central footer) simply include a command
22159  with a blank argument, e.
22160 \begin_inset space \thinspace{}
22161 \end_inset
22162
22163 g.:
22164 \end_layout
22165
22166 \begin_layout Standard
22167
22168 \family typewriter
22169
22170 \backslash
22171 cfoot{}
22172 \end_layout
22173
22174 \begin_layout Standard
22175 Let's get really fancy: lets put the section number with the word 
22176 \begin_inset Quotes eld
22177 \end_inset
22178
22179 Section
22180 \begin_inset Quotes erd
22181 \end_inset
22182
22183  (e.
22184 \begin_inset space \thinspace{}
22185 \end_inset
22186
22187 g.
22188 \begin_inset space \space{}
22189 \end_inset
22190
22191 Section 3) in the upper left, the page number (e.
22192 \begin_inset space \thinspace{}
22193 \end_inset
22194
22195 g.
22196 \begin_inset space \space{}
22197 \end_inset
22198
22199 Page 4) in the upper right, your name in the lower left, and the date in
22200  the lower right.
22201  The following commands should now appear in the preamble:
22202 \end_layout
22203
22204 \begin_layout Standard
22205
22206 \family typewriter
22207
22208 \backslash
22209 lhead{Section 
22210 \backslash
22211 thesection}
22212 \end_layout
22213
22214 \begin_layout Standard
22215
22216 \family typewriter
22217
22218 \backslash
22219 chead{}
22220 \end_layout
22221
22222 \begin_layout Standard
22223
22224 \family typewriter
22225
22226 \backslash
22227 rhead{Page 
22228 \backslash
22229 thepage}
22230 \end_layout
22231
22232 \begin_layout Standard
22233
22234 \family typewriter
22235
22236 \backslash
22237 lfoot{John Q.
22238  DocWriter}
22239 \end_layout
22240
22241 \begin_layout Standard
22242
22243 \family typewriter
22244
22245 \backslash
22246 cfoot{}
22247 \end_layout
22248
22249 \begin_layout Standard
22250
22251 \family typewriter
22252
22253 \backslash
22254 rfoot{
22255 \backslash
22256 today}
22257 \end_layout
22258
22259 \begin_layout Standard
22260 The commands 
22261 \begin_inset Flex Code
22262 status collapsed
22263
22264 \begin_layout Plain Layout
22265
22266 \backslash
22267 thesection
22268 \end_layout
22269
22270 \end_inset
22271
22272  and 
22273 \begin_inset Flex Code
22274 status collapsed
22275
22276 \begin_layout Plain Layout
22277
22278 \backslash
22279 thepage
22280 \end_layout
22281
22282 \end_inset
22283
22284  access \SpecialChar LaTeX
22285 's section and page counters, and so print out the current section
22286  and page number.
22287  
22288 \begin_inset Flex Code
22289 status collapsed
22290
22291 \begin_layout Plain Layout
22292
22293 \backslash
22294 today
22295 \end_layout
22296
22297 \end_inset
22298
22299  simply prints out today's date.
22300 \end_layout
22301
22302 \begin_layout Standard
22303 The thicknesses of the horizontal rules drawn beneath the header and above
22304  the footer can also be modified.
22305  If you don't want one of the rules, set its thickness to 0.
22306  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
22307  Use commands
22308 \family typewriter
22309  
22310 \family default
22311 like 
22312 \begin_inset Flex Code
22313 status collapsed
22314
22315 \begin_layout Plain Layout
22316
22317 \backslash
22318 renewcommand{
22319 \backslash
22320 headrulewidth}{0.4pt}
22321 \end_layout
22322
22323 \end_inset
22324
22325  and 
22326 \begin_inset Flex Code
22327 status collapsed
22328
22329 \begin_layout Plain Layout
22330
22331 \backslash
22332 renewcommand{
22333 \backslash
22334 footrulewidth}{0.4pt}
22335 \end_layout
22336
22337 \end_inset
22338
22339  to set the thicknesses.
22340 \end_layout
22341
22342 \begin_layout Standard
22343 You can switch the header/footer settings on and off for individual pages
22344  using commands like 
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349
22350 \backslash
22351 thispagestyle{empty}
22352 \end_layout
22353
22354 \end_inset
22355
22356
22357 \begin_inset Flex Code
22358 status collapsed
22359
22360 \begin_layout Plain Layout
22361
22362 \backslash
22363 thispagestyle{plain}
22364 \end_layout
22365
22366 \end_inset
22367
22368 , and 
22369 \begin_inset Flex Code
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373
22374 \backslash
22375 thispagestyle{fancy}
22376 \end_layout
22377
22378 \end_inset
22379
22380 .
22381  Simply insert them in the text on the page you want changed and mark them
22382  as \SpecialChar TeX
22383  code.
22384  In fact, title pages are marked as plain by default, while following pages
22385  are marked fancy when using the global fancy setting.
22386 \end_layout
22387
22388 \begin_layout Standard
22389 As a final example, it is possible to include an image in the header or
22390  footer.
22391  Suppose you want to put a company logo in the upper lefthand corner.
22392  You might try something like
22393 \end_layout
22394
22395 \begin_layout Standard
22396
22397 \family typewriter
22398
22399 \backslash
22400 lhead{
22401 \backslash
22402 resizebox{1in}{!}{
22403 \backslash
22404 includegraphics{logo.eps}}}
22405 \end_layout
22406
22407 \begin_layout Standard
22408 \noindent
22409 (you may need to preface this with 
22410 \begin_inset Flex Code
22411 status collapsed
22412
22413 \begin_layout Plain Layout
22414
22415 \backslash
22416 usepackage{graphics}
22417 \end_layout
22418
22419 \end_inset
22420
22421  if you don't include graphics elsewhere in your document).
22422 \end_layout
22423
22424 \begin_layout Chapter
22425 \SpecialChar LyX
22426  and the World Wide Web
22427 \end_layout
22428
22429 \begin_layout Standard
22430 \SpecialChar LyX
22431  has long supported the export of documents to various web-friendly formats,
22432  such as HTML.
22433  Before version 2.0, however, HTML export was always accomplished by the
22434  use of external converters.
22435 \begin_inset Foot
22436 status collapsed
22437
22438 \begin_layout Plain Layout
22439 For details on the use of external converters with \SpecialChar LyX
22440 , see the 
22441 \emph on
22442 Converters
22443 \emph default
22444  section of the Customization manual.
22445 \end_layout
22446
22447 \end_inset
22448
22449  These fall into two large groups: there are converters that use \SpecialChar LaTeX
22450  as an
22451  intermediate format, such as 
22452 \begin_inset Flex Code
22453 status collapsed
22454
22455 \begin_layout Plain Layout
22456 htlatex
22457 \end_layout
22458
22459 \end_inset
22460
22461
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 html2latex
22467 \end_layout
22468
22469 \end_inset
22470
22471 , and 
22472 \begin_inset Flex Code
22473 status collapsed
22474
22475 \begin_layout Plain Layout
22476 plastex
22477 \end_layout
22478
22479 \end_inset
22480
22481 , relying upon \SpecialChar LyX
22482  to produce the \SpecialChar LaTeX
22483 ; and there is a converter that works directly
22484  on \SpecialChar LyX
22485  files, 
22486 \begin_inset Flex Code
22487 status collapsed
22488
22489 \begin_layout Plain Layout
22490 e\SpecialChar LyX
22491 er
22492 \end_layout
22493
22494 \end_inset
22495
22496 .
22497  All of these have different advantages and disadvantages.
22498  
22499 \end_layout
22500
22501 \begin_layout Standard
22502 The \SpecialChar LaTeX
22503 -based converters have the advantage that, in principle, they know everythin
22504 g about the exported document that \SpecialChar LaTeX
22505  does.
22506  Such converters do not care, for example, if a certain block of code was
22507  produced by \SpecialChar LyX
22508  or was Evil Red Text.
22509  These converters know about 
22510 \begin_inset Flex Code
22511 status collapsed
22512
22513 \begin_layout Plain Layout
22514 aux
22515 \end_layout
22516
22517 \end_inset
22518
22519  files, counters, and references, and can often make use of the 
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524 bbl
22525 \end_layout
22526
22527 \end_inset
22528
22529  files generated by Bib\SpecialChar TeX
22530 .
22531  On the other hand, \SpecialChar LaTeX
22532  is a very hard language to parse—it is sometimes said
22533  that only \SpecialChar TeX
22534  itself understands \SpecialChar TeX
22535 —and \SpecialChar LaTeX
22536 -based converters will often choke on
22537  what seem to be quite simple constructs; complex ones can throw them completely
22538 , and as of this writing, for example, the 
22539 \emph on
22540 Embedded Objects
22541 \emph default
22542  manual will not export with 
22543 \begin_inset Flex Code
22544 status collapsed
22545
22546 \begin_layout Plain Layout
22547 htlatex
22548 \end_layout
22549
22550 \end_inset
22551
22552 , though the others will.
22553  The other issue concerns how math is handled.
22554  These converters typically convert the formulae into little pictures that
22555  are then linked from the HTML document.
22556  Since these are actually generated by \SpecialChar LaTeX
22557 , they are accurate.
22558  But they do not scale well, and just getting them to look as if they are
22559  actually meant to be in your document—so that the font sizes seem to be
22560  roughly the same—can be a challenge.
22561 \end_layout
22562
22563 \begin_layout Standard
22564 Alex Fernandez's 
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569 e\SpecialChar LyX
22570 er
22571 \end_layout
22572
22573 \end_inset
22574
22575  (
22576 \begin_inset CommandInset href
22577 LatexCommand href
22578 name "http://pinchito.es/elyxer/"
22579 target "http://pinchito.es/elyxer/"
22580 literal "false"
22581
22582 \end_inset
22583
22584 ) solves some of these problems.
22585  In particular, the formulae it produces scale perfectly, since it renders
22586  math using a combination of HTML and CSS rather than converting the formulae
22587  to images.
22588  But even moderately complex formula are rendered less well than with 
22589 \begin_inset Flex Code
22590 status collapsed
22591
22592 \begin_layout Plain Layout
22593 htlatex
22594 \end_layout
22595
22596 \end_inset
22597
22598 ; this reflects the limitations of HTML.
22599 \begin_inset Foot
22600 status collapsed
22601
22602 \begin_layout Plain Layout
22603 That said, 
22604 \begin_inset Flex Code
22605 status collapsed
22606
22607 \begin_layout Plain Layout
22608 e\SpecialChar LyX
22609 er
22610 \end_layout
22611
22612 \end_inset
22613
22614  can also use jsMath and MathJax for equations, but this setting is only
22615  available globally and requires one to have access to a server that runs
22616  the backend.
22617 \end_layout
22618
22619 \end_inset
22620
22621  More importantly (as of version 1.1.1, at least), 
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 e\SpecialChar LyX
22627 er
22628 \end_layout
22629
22630 \end_inset
22631
22632  has limited support for math macros and no support for user-defined paragraph
22633  or character styles.
22634  These limitations make 
22635 \begin_inset Flex Code
22636 status collapsed
22637
22638 \begin_layout Plain Layout
22639 e\SpecialChar LyX
22640 er
22641 \end_layout
22642
22643 \end_inset
22644
22645  unsuitable for many of the documents \SpecialChar LyX
22646  users produce.
22647  In principle, of course, these problems could be solved, but the \SpecialChar LyX
22648  developers
22649  have decided to follow a different path and have made \SpecialChar LyX
22650  itself capable of
22651  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
22652 , DocBook, and plaintext.
22653 \end_layout
22654
22655 \begin_layout Standard
22656 As of this writing, XHTML output remains under development and should probably
22657  be regarded as 
22658 \begin_inset Quotes eld
22659 \end_inset
22660
22661 experimental
22662 \begin_inset Quotes erd
22663 \end_inset
22664
22665 .
22666 \begin_inset Foot
22667 status collapsed
22668
22669 \begin_layout Plain Layout
22670 The file 
22671 \begin_inset Flex Code
22672 status collapsed
22673
22674 \begin_layout Plain Layout
22675 development/HTML/HTML.notes
22676 \end_layout
22677
22678 \end_inset
22679
22680 , which can be found in the \SpecialChar LyX
22681  source tree or 
22682 \begin_inset CommandInset href
22683 LatexCommand href
22684 name "accessed online"
22685 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
22686 literal "false"
22687
22688 \end_inset
22689
22690 , usually contains up-to-date information about the state of XHTML output.
22691  See also the list of XHTML bugs on 
22692 \begin_inset CommandInset href
22693 LatexCommand href
22694 name "the bug tracker"
22695 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"
22696 literal "false"
22697
22698 \end_inset
22699
22700 .
22701 \end_layout
22702
22703 \end_inset
22704
22705  Still, the developers have chosen this approach because it has several
22706  potential advantages over the other two.
22707 \end_layout
22708
22709 \begin_layout Standard
22710 These advantages are primarily due to the fact that the XHTML output routines,
22711  since they are part of \SpecialChar LyX
22712 , know everything \SpecialChar LyX
22713  knows about the document being
22714  exported.
22715 \begin_inset Foot
22716 status collapsed
22717
22718 \begin_layout Plain Layout
22719 Another advantage is that, since these routines are internal to \SpecialChar LyX
22720 , they are
22721  immune to changes in \SpecialChar LyX
22722 's file format, or to changes in the semantics of
22723  existing insets.
22724 \end_layout
22725
22726 \end_inset
22727
22728  So they know about the table of contents (as displayed in the outline),
22729  about the counters associated with different paragraph styles, and about
22730  user-defined styles.
22731  The XHTML output routines know what \SpecialChar LyX
22732  knows about internationalization,
22733  too, so they will output 
22734 \begin_inset Quotes eld
22735 \end_inset
22736
22737 Chapter 1
22738 \begin_inset Quotes erd
22739 \end_inset
22740
22741  or 
22742 \begin_inset Quotes eld
22743 \end_inset
22744
22745
22746 \lang ngerman
22747 Kapitel
22748 \lang english
22749  1
22750 \begin_inset Quotes erd
22751 \end_inset
22752
22753 , depending upon the language in effect at the time.
22754  
22755 \end_layout
22756
22757 \begin_layout Standard
22758 Quite generally, the output routines know what \SpecialChar LyX
22759  knows about document layout,
22760  that is, about how the document is to be rendered on screen.
22761  We use this information when we output the document as XHTML.
22762  In particular, \SpecialChar LyX
22763  
22764 \emph on
22765 automatically
22766 \emph default
22767  generates CSS style information corresponding to the layout information
22768  it uses to render the document on screen: if section headings are supposed
22769  to be sans-serif and bold as seen in \SpecialChar LyX
22770 , then (by default) they will be sans-seri
22771 f and bold when viewed in a web browser, too.
22772  And this is true not just for pre-defined styles, like Section, but for
22773  any style, including user-defined styles.
22774  Indeed, the XHTML output routines make no distinction between user-defined
22775  paragraph and 
22776 \change_deleted 244031559 1603876931
22777 character
22778 \change_inserted 244031559 1603876940
22779 text
22780 \change_unchanged
22781  styles and \SpecialChar LyX
22782 's own pre-defined styles: in each case, everything \SpecialChar LyX
22783  knows about
22784  the styles is contained in the layout files.
22785  And much the same is true as regards pre-defined textual insets, such as
22786  footnotes, and various custom insets.
22787  
22788 \end_layout
22789
22790 \begin_layout Standard
22791 The result is that XHTML output can be customized and extended in exactly
22792  the same way \SpecialChar LaTeX
22793  output can be customized and extended: through layout files
22794  and modules.
22795  See chapter five of the 
22796 \emph on
22797 Customization 
22798 \emph default
22799 manual for the details.
22800 \end_layout
22801
22802 \begin_layout Standard
22803 The remainder of this chapter contains more detailed information on XHTML
22804  output, its limitations, and ways to work around those limitations.
22805 \end_layout
22806
22807 \begin_layout Section
22808 Math Output in XHTML
22809 \end_layout
22810
22811 \begin_layout Standard
22812 \SpecialChar LyX
22813  offers four choices for how math is rendered.
22814  These have various advantages and disadvantages:
22815 \end_layout
22816
22817 \begin_layout Itemize
22818 MathML
22819 \begin_inset Newline newline
22820 \end_inset
22821
22822 MathML is a dialect of XML designed specifically for mathematics on the
22823  web, and it typically renders very well in browsers that support it.
22824  The disadvantage is that not all browsers support MathML, and support is
22825  not complete even in the Gecko-based browsers, such as Firefox.
22826 \begin_inset Newline newline
22827 \end_inset
22828
22829 If \SpecialChar LyX
22830  is unable to render a formula as MathML—for example, if the formula
22831  uses the 
22832 \begin_inset Flex Code
22833 status collapsed
22834
22835 \begin_layout Plain Layout
22836 xymatrix
22837 \end_layout
22838
22839 \end_inset
22840
22841  package or ERT—then it will instead output the formula as an image.
22842  
22843 \end_layout
22844
22845 \begin_layout Itemize
22846 HTML
22847 \begin_inset Newline newline
22848 \end_inset
22849
22850 As mentioned above, 
22851 \begin_inset Flex Code
22852 status collapsed
22853
22854 \begin_layout Plain Layout
22855 elyxer
22856 \end_layout
22857
22858 \end_inset
22859
22860  outputs math as HTML, styled by CSS.
22861 \begin_inset Foot
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 \SpecialChar LyX
22866  has borrowed some of the CSS for its HTML output from 
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871 elyxer
22872 \end_layout
22873
22874 \end_inset
22875
22876 .
22877 \end_layout
22878
22879 \end_inset
22880
22881  For simple formulae, this can work quite well, though with more complicated
22882  formulae it tends to break down.
22883  Still, this method has the advantage that it is very widely supported and
22884  so it may be appropriate for documents that contain only a little, fairly
22885  simple math.
22886 \begin_inset Newline newline
22887 \end_inset
22888
22889 If Lyx is unable to render a formula as HTML—for example, if the formula
22890  uses the 
22891 \begin_inset Flex Code
22892 status collapsed
22893
22894 \begin_layout Plain Layout
22895 xymatrix
22896 \end_layout
22897
22898 \end_inset
22899
22900  package or ERT—then it will instead output the formula as an image.
22901  
22902 \end_layout
22903
22904 \begin_layout Itemize
22905 Images
22906 \begin_inset Newline newline
22907 \end_inset
22908
22909 Like 
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914 htlatex
22915 \end_layout
22916
22917 \end_inset
22918
22919 , \SpecialChar LyX
22920  will output formulae as images, the very same images, in fact, that are
22921  used for instant preview.
22922 \begin_inset Foot
22923 status collapsed
22924
22925 \begin_layout Plain Layout
22926 Instant preview does 
22927 \emph on
22928 not 
22929 \emph default
22930 have to be on for images to be output, however.
22931 \end_layout
22932
22933 \end_inset
22934
22935  The advantage to this method is that the images are simply generated by
22936  \SpecialChar LaTeX
22937 , so they are very accurate.
22938  The disadvantage, as mentioned earlier, is that these are bitmapped images,
22939  so they do not scale terribly well, and one cannot copy them, etc.
22940 \begin_inset Newline newline
22941 \end_inset
22942
22943 The size of the images can be controlled by setting the 
22944 \begin_inset Quotes eld
22945 \end_inset
22946
22947 Math Images Scaling
22948 \begin_inset Quotes erd
22949 \end_inset
22950
22951  parameter under 
22952 \begin_inset Flex Noun
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956 Document\SpecialChar menuseparator
22957 Settings\SpecialChar menuseparator
22958 Formats
22959 \end_layout
22960
22961 \end_inset
22962
22963 .
22964 \begin_inset Foot
22965 status collapsed
22966
22967 \begin_layout Plain Layout
22968 For those who want to know, this controls the resolution of the image in
22969  dots per inch and is based upon a default of 75 dpi.
22970 \end_layout
22971
22972 \end_inset
22973
22974
22975 \begin_inset Newline newline
22976 \end_inset
22977
22978 If \SpecialChar LyX
22979  for some reason fails to create an image for a formula (e.g., if a required
22980  \SpecialChar LaTeX
22981  package is not installed), then it will fall back to outputing the raw
22982  \SpecialChar LaTeX
22983 .
22984 \end_layout
22985
22986 \begin_layout Itemize
22987 \SpecialChar LaTeX
22988
22989 \begin_inset Newline newline
22990 \end_inset
22991
22992 Finally, \SpecialChar LyX
22993  will happily output math as \SpecialChar LaTeX
22994 .
22995  As well as being the output of last resort, this method can be used with
22996  such tools as 
22997 \begin_inset CommandInset href
22998 LatexCommand href
22999 name "jsMath"
23000 target "http://www.math.union.edu/~dpvc/jsMath/"
23001 literal "false"
23002
23003 \end_inset
23004
23005 , which uses JavaScript to render \SpecialChar LaTeX
23006  embedded in HTML documents.
23007  \SpecialChar LyX
23008  wraps the \SpecialChar LaTeX
23009  in either a 
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014 span
23015 \end_layout
23016
23017 \end_inset
23018
23019  (for inline formulas) or 
23020 \begin_inset Flex Code
23021 status collapsed
23022
23023 \begin_layout Plain Layout
23024 div
23025 \end_layout
23026
23027 \end_inset
23028
23029  (for displayed formulas) with 
23030 \begin_inset Flex Code
23031 status collapsed
23032
23033 \begin_layout Plain Layout
23034 class='math'
23035 \end_layout
23036
23037 \end_inset
23038
23039 , as is required for jsMath.
23040 \end_layout
23041
23042 \begin_layout Standard
23043 One of these output methods must be selected under 
23044 \begin_inset Flex Noun
23045 status collapsed
23046
23047 \begin_layout Plain Layout
23048 Document\SpecialChar menuseparator
23049 Settings\SpecialChar menuseparator
23050 Formats
23051 \end_layout
23052
23053 \end_inset
23054
23055 .
23056  By default, \SpecialChar LyX
23057  outputs MathML.
23058  This is a document-wide setting, therefore.
23059 \end_layout
23060
23061 \begin_layout Standard
23062 Eventually, \SpecialChar LyX
23063  will offer the user the option to select an alternate output
23064  method for a particular inset, say, one that isn't being rendered very
23065  well by MathML.
23066 \begin_inset Foot
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 That said, since \SpecialChar LyX
23071  falls back to images if the inset contains ERT, then one
23072  can force output as an image by putting some harmless ERT into the math,
23073  for example: 
23074 \begin_inset Formula $a=b\relax$
23075 \end_inset
23076
23077 .
23078 \end_layout
23079
23080 \end_inset
23081
23082
23083 \end_layout
23084
23085 \begin_layout Section
23086 Bibliography and Citations
23087 \end_layout
23088
23089 \begin_layout Standard
23090 XHTML output fully supports bibliographies and citations.
23091  
23092 \end_layout
23093
23094 \begin_layout Standard
23095 Citation labels are generated by the same machinery that generates \SpecialChar LyX
23096 's on-screen
23097  labels, so the labels will look in the output much as they do in \SpecialChar LyX
23098 , though
23099  better.
23100  If you are using numerical citations, then \SpecialChar LyX
23101  will output numerical labels,
23102  such as [1] or [17], rather than simply showing the citation key in square
23103  brackets, as it does on-screen.
23104  If you are using author-year citations, then \SpecialChar LyX
23105  will add lowercase letters
23106  to the years, just as Bib\SpecialChar TeX
23107  does, if it finds more than one citation for
23108  a given author-year combination.
23109  The labels will be printed with the bibliography entries.
23110  Note that there is, at present, no way to customize the appearance of the
23111  labels, for example, to choose between square brackets and parentheses.
23112 \end_layout
23113
23114 \begin_layout Standard
23115 Bibliography output is handled by the same machinery that handles the presentati
23116 on of reference information in the citation dialog, so you will see in the
23117  XHTML output pretty much what you would see if you were to look at a given
23118  entry in the citation dialog.
23119  The formatting can be customized in your layout file or, preferably, in
23120  a module.
23121  See the 
23122 \emph on
23123 Customization
23124 \emph default
23125  manual for the details.
23126 \end_layout
23127
23128 \begin_layout Standard
23129 The main defect at present is that cross-referenced information is printed
23130  with every entry with which it is associated.
23131  So you can see things like this:
23132 \end_layout
23133
23134 \begin_layout Quote
23135 Jason Stanley, 
23136 \begin_inset Quotes eld
23137 \end_inset
23138
23139 Context and Logical Form
23140 \begin_inset Quotes erd
23141 \end_inset
23142
23143 , in 
23144 \emph on
23145 Language in Context: Selected Essays
23146 \emph default
23147  (Oxford: Oxford University Press, 2007), pp.
23148  30–68.
23149 \end_layout
23150
23151 \begin_layout Quote
23152 Jason Stanley, 
23153 \begin_inset Quotes eld
23154 \end_inset
23155
23156 Semantics in Context
23157 \begin_inset Quotes erd
23158 \end_inset
23159
23160 , in 
23161 \emph on
23162 Language in Context: Selected Essays
23163 \emph default
23164  (Oxford: Oxford University Press, 2007), pp.
23165  201–30.
23166 \end_layout
23167
23168 \begin_layout Standard
23169 This should be fixed before long.
23170 \end_layout
23171
23172 \begin_layout Standard
23173 There is no support at present for sectioned bibliographies.
23174  If you have multiple bibliographies, then \SpecialChar LyX
23175  will print the same bibliography
23176  over and over.
23177 \end_layout
23178
23179 \begin_layout Section
23180 Indexes
23181 \end_layout
23182
23183 \begin_layout Standard
23184 \SpecialChar LyX
23185  will happily export indexes as XHTML, but with certain limitations at the
23186  moment.
23187 \end_layout
23188
23189 \begin_layout Standard
23190 Index export will be most reliable when you do not attempt to use the fancy
23191  constructs that are described in the section on indexes in the 
23192 \emph on
23193 User's Guide
23194 \emph default
23195 .
23196 \begin_inset Foot
23197 status collapsed
23198
23199 \begin_layout Plain Layout
23200 The main issue here is that \SpecialChar LyX
23201  itself does not really handle these.
23202  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
23203 .
23204 \end_layout
23205
23206 \end_inset
23207
23208  We'll describe how they are handled using the subsection headings from
23209  that section.
23210 \end_layout
23211
23212 \begin_layout Itemize
23213 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
23214  makes an effort to support these,
23215  but the entries must be separated by 
23216 \begin_inset Quotes eld
23217 \end_inset
23218
23219  ! 
23220 \begin_inset Quotes erd
23221 \end_inset
23222
23223 , that is, there must be spaces around the exclamation point.
23224  This is because it is otherwise too difficult to check for escaped exclamation
23225  points, ones in math, and so forth.
23226 \end_layout
23227
23228 \begin_layout Itemize
23229 Page Ranges: There is no support at all for page ranges, since these make
23230  no sense with XHMTL.
23231  Instead, you will just get two index entries, one at either end.
23232 \end_layout
23233
23234 \begin_layout Itemize
23235 Cross-referencing: There is no support for cross-referencing.
23236  If \SpecialChar LyX
23237  finds an entry containing the 
23238 \begin_inset Quotes eld
23239 \end_inset
23240
23241 |see\SpecialChar ldots
23242
23243 \begin_inset Quotes erd
23244 \end_inset
23245
23246  construct, it is just dropped, and the rest is treated as an ordinary index
23247  entry.
23248 \end_layout
23249
23250 \begin_layout Itemize
23251 Index Entry Order: \SpecialChar LyX
23252  does support attempts to fix the sorting order.
23253  It will take what is before the first `@' it finds and use that for sorting,
23254  taking what follows the first `@' to be the actual entry.
23255  At present, \SpecialChar LyX
23256  does not check for escaped `@', so do not try to index email
23257  addresses.
23258 \end_layout
23259
23260 \begin_layout Itemize
23261 Index Entry Layout: You can format entries by using the text style dialog,
23262  or by using any other method available within \SpecialChar LyX
23263  itself.
23264  There is no support for constructs like: 
23265 \begin_inset Quotes eld
23266 \end_inset
23267
23268 entry|textbf
23269 \begin_inset Quotes erd
23270 \end_inset
23271
23272 .
23273  Indeed, if \SpecialChar LyX
23274  finds a pipe symbol, `|', in an entry, it will delete it and
23275  everything that follows it.
23276 \end_layout
23277
23278 \begin_layout Itemize
23279 Multiple Indexes: There is no support for multiple indexes.
23280  Rather, all index entries will be printed as one large index.
23281  To avoid our printing several versions of the index, we print only the
23282  main index, so make sure you have one.
23283 \end_layout
23284
23285 \begin_layout Section
23286 Nomenclature and Glossary
23287 \end_layout
23288
23289 \begin_layout Standard
23290 There is at present no support for glossaries.
23291  Adding it would be fairly trivial, and welcome.
23292 \end_layout
23293
23294 \begin_layout Chapter
23295
23296 \change_inserted 1075283030 1616534180
23297 DocBook Output
23298 \end_layout
23299
23300 \begin_layout Standard
23301
23302 \change_inserted 1075283030 1616534386
23303 Apart from HTML, \SpecialChar LyX
23304  can generate documents in the DocBook XML vocabulary.
23305  With versions 2.3 and before, only select templates could be used to generate
23306  DocBook documents (only version 4).
23307  Starting with \SpecialChar LyX
23308  2.4, most \SpecialChar LyX
23309  layouts can generate valid DocBook documents (only
23310  version 5).
23311  This feature is built into \SpecialChar LyX
23312  and does not require the use of external tools.
23313 \end_layout
23314
23315 \begin_layout Standard
23316
23317 \change_inserted 1075283030 1616534437
23318 The result is that the DocBook output can be customized and extended in
23319  exactly the same way \SpecialChar LaTeX
23320  output can be customized and extended: through layout
23321  files and modules.
23322  See chapter five of the 
23323 \emph on
23324 Customization 
23325 \emph default
23326 manual for the details.
23327 \end_layout
23328
23329 \begin_layout Standard
23330
23331 \change_inserted 1075283030 1616534475
23332 Most \SpecialChar LyX
23333  features are supported with DocBook, like math output.
23334 \end_layout
23335
23336 \begin_layout Itemize
23337
23338 \change_inserted 1075283030 1616534741
23339 Math output is performed mostly in MathML (the major exception being constructio
23340 ns not supported by \SpecialChar LyX
23341 , i.e.
23342  ERTs).
23343  All formulae are also available in raw \SpecialChar TeX
23344  in the DocBook output for further
23345  processing.
23346 \end_layout
23347
23348 \begin_layout Itemize
23349
23350 \change_inserted 1075283030 1616534852
23351 Bibliographies and citations are implemented, including with an external
23352  BibTeX file.
23353  Bibliography entries are not prerendered when the detailed information
23354  are available, but rather output with the standard DocBook constructs.
23355  The external DocBook processor is expected to handle the rendering of entries.
23356 \end_layout
23357
23358 \begin_layout Itemize
23359
23360 \change_inserted 1075283030 1616534863
23361 Indexes are supported, including multiple indices.
23362  Grouping (with 
23363 \family typewriter
23364 !
23365 \family default
23366 ), page ranges, and cross-references (
23367 \family typewriter
23368 |see
23369 \family default
23370 ) are supported, with the exception of the same symbols escaped.
23371  Entry order (
23372 \family typewriter
23373 @
23374 \family default
23375 ) and layout (
23376 \family typewriter
23377 |mathbf
23378 \family default
23379 ) are not supported.
23380  There is no support for escaping of index entries.
23381 \end_layout
23382
23383 \begin_layout Itemize
23384
23385 \change_inserted 1075283030 1616534884
23386 Glossaries are implemented.
23387 \end_layout
23388
23389 \begin_layout Standard
23390
23391 \change_inserted 1075283030 1616534894
23392 Two major parameters can be set at the document level.
23393 \end_layout
23394
23395 \begin_layout Itemize
23396
23397 \change_inserted 1075283030 1616534948
23398 Format for tables: \SpecialChar LyX
23399  can generate tables either as HTML (default value) or
23400  CALS, depending on the user's requirements.
23401  Most DocBook processors accept both formats.
23402 \end_layout
23403
23404 \begin_layout Itemize
23405
23406 \change_inserted 1075283030 1616535006
23407 MathML prefix: in DocBook, MathML is included within its own name space,
23408  unlike HTML.
23409  The implication is that there must be an indication of the tags belonging
23410  to the MathML standard.
23411  Three choices are offered: 
23412 \end_layout
23413
23414 \begin_deeper
23415 \begin_layout Itemize
23416
23417 \change_inserted 1075283030 1616535044
23418 Inline: the MathML name space is defined for each formula (using the 
23419 \family typewriter
23420 xmlns
23421 \family default
23422  attribute on each formula)
23423 \end_layout
23424
23425 \begin_layout Itemize
23426
23427 \change_inserted 1075283030 1616535090
23428 With the 
23429 \family typewriter
23430 m
23431 \family default
23432  prefix (default): the MathML name space is defined at the document level
23433  (using the 
23434 \family typewriter
23435 xmlns:m
23436 \family default
23437  attribute on the root element).
23438  Each MathML is prefixed with 
23439 \family typewriter
23440 m
23441 \family default
23442 : for instance, 
23443 \family typewriter
23444 m:math
23445 \end_layout
23446
23447 \begin_layout Itemize
23448
23449 \change_inserted 1075283030 1616620405
23450 With the 
23451 \family typewriter
23452 mml
23453 \family default
23454  prefix: similar to the 
23455 \family typewriter
23456 m
23457 \family default
23458  option, but with 
23459 \family typewriter
23460 mml
23461 \end_layout
23462
23463 \begin_layout Standard
23464
23465 \change_inserted 1075283030 1616620470
23466 This option is especially useful if you want \SpecialChar LyX
23467  to match your personal style
23468  or to work with buggy software that only accepts one prefix for MathML.
23469 \change_unchanged
23470
23471 \end_layout
23472
23473 \end_deeper
23474 \begin_layout Chapter
23475 The \SpecialChar LyX
23476  Server
23477 \end_layout
23478
23479 \begin_layout Section
23480 Introduction
23481 \end_layout
23482
23483 \begin_layout Standard
23484 The `\SpecialChar LyX
23485  server' allows other programs to talk to \SpecialChar LyX
23486 , invoke \SpecialChar LyX
23487  commands, and retrieve
23488  information about the \SpecialChar LyX
23489  internal state.
23490  This is only intended for advanced users, but they should find it useful.
23491  It is by writing to the \SpecialChar LyX
23492  server, for example, that bibliography managers,
23493  such as JabRef, are able to 
23494 \begin_inset Quotes eld
23495 \end_inset
23496
23497 push
23498 \begin_inset Quotes erd
23499 \end_inset
23500
23501  citations to \SpecialChar LyX
23502 .
23503 \end_layout
23504
23505 \begin_layout Section
23506 Starting the \SpecialChar LyX
23507  Server
23508 \begin_inset CommandInset label
23509 LatexCommand label
23510 name "sec:Starting-the-Server"
23511
23512 \end_inset
23513
23514
23515 \end_layout
23516
23517 \begin_layout Standard
23518 The \SpecialChar LyX
23519  server works through the use of a pair of named pipes.
23520  These are usually located in 
23521 \begin_inset Flex Code
23522 status collapsed
23523
23524 \begin_layout Plain Layout
23525 UserDir
23526 \end_layout
23527
23528 \end_inset
23529
23530 , (except on Windows, where 
23531 \emph on
23532 local
23533 \emph default
23534  named pipes are special objects located in 
23535 \begin_inset Flex Code
23536 status collapsed
23537
23538 \begin_layout Plain Layout
23539
23540 \backslash
23541
23542 \backslash
23543 .
23544 \backslash
23545 pipe
23546 \end_layout
23547
23548 \end_inset
23549
23550 ) and have the names 
23551 \begin_inset Quotes eld
23552 \end_inset
23553
23554
23555 \begin_inset Flex Code
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559 lyxpipe.in
23560 \end_layout
23561
23562 \end_inset
23563
23564
23565 \begin_inset Quotes erd
23566 \end_inset
23567
23568  and 
23569 \begin_inset Quotes eld
23570 \end_inset
23571
23572
23573 \begin_inset Flex Code
23574 status collapsed
23575
23576 \begin_layout Plain Layout
23577 lyxpipe.out
23578 \end_layout
23579
23580 \end_inset
23581
23582
23583 \begin_inset Quotes erd
23584 \end_inset
23585
23586 .
23587  External programs write into 
23588 \begin_inset Flex Code
23589 status collapsed
23590
23591 \begin_layout Plain Layout
23592 lyxpipe.in
23593 \end_layout
23594
23595 \end_inset
23596
23597  and read back data from 
23598 \begin_inset Flex Code
23599 status collapsed
23600
23601 \begin_layout Plain Layout
23602 lyxpipe.out
23603 \end_layout
23604
23605 \end_inset
23606
23607 .
23608  The stem of the pipe names can be defined in the 
23609 \begin_inset Flex Noun
23610 status collapsed
23611
23612 \begin_layout Plain Layout
23613 Tools\SpecialChar menuseparator
23614 Preferences
23615 \end_layout
23616
23617 \end_inset
23618
23619  dialog, for example 
23620 \begin_inset Flex Code
23621 status collapsed
23622
23623 \begin_layout Plain Layout
23624 "/home/myhome/lyxpipe"
23625 \end_layout
23626
23627 \end_inset
23628
23629 , or 
23630 \begin_inset Flex Code
23631 status collapsed
23632
23633 \begin_layout Plain Layout
23634 "
23635 \backslash
23636
23637 \backslash
23638 .
23639 \backslash
23640 pipe
23641 \backslash
23642 lyxpipe"
23643 \end_layout
23644
23645 \end_inset
23646
23647  on Windows (where any working path instead of lyxpipe can be used, for
23648  example 
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 "
23654 \backslash
23655
23656 \backslash
23657 .
23658 \backslash
23659 pipe
23660 \backslash
23661 my
23662 \backslash
23663 lyx
23664 \backslash
23665 pipe"
23666 \end_layout
23667
23668 \end_inset
23669
23670  would also work).
23671  You 
23672 \emph on
23673 must
23674 \emph default
23675  configure this manually in order for the server to start.
23676 \end_layout
23677
23678 \begin_layout Standard
23679 \SpecialChar LyX
23680  will add the '
23681 \begin_inset Flex Code
23682 status collapsed
23683
23684 \begin_layout Plain Layout
23685 .in
23686 \end_layout
23687
23688 \end_inset
23689
23690 ' and '
23691 \begin_inset Flex Code
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 .out
23696 \end_layout
23697
23698 \end_inset
23699
23700 ' to create the pipes.
23701  If one of the pipes already exists, \SpecialChar LyX
23702  will assume that another \SpecialChar LyX
23703  process
23704  is already running and will not start the server.
23705  On POSIX (Unix like) systems, if for some other reason, an unused 
23706 \begin_inset Quotes eld
23707 \end_inset
23708
23709 stale
23710 \begin_inset Quotes erd
23711 \end_inset
23712
23713  pipe is left in existence when \SpecialChar LyX
23714  closes, then \SpecialChar LyX
23715  will try to delete it.
23716  If this fails for some reason, you will need to delete the pipes manually
23717  and then restart \SpecialChar LyX
23718 .
23719  On Windows, pipes are deleted by the OS on program termination or crash,
23720  so 
23721 \begin_inset Quotes eld
23722 \end_inset
23723
23724 stale
23725 \begin_inset Quotes erd
23726 \end_inset
23727
23728  pipes should not be possible.
23729 \end_layout
23730
23731 \begin_layout Standard
23732 To have several \SpecialChar LyX
23733  processes with servers at the same time, you have to use
23734  different configurations, perhaps by using separate user directories, each
23735  with its own 
23736 \begin_inset Flex Code
23737 status collapsed
23738
23739 \begin_layout Plain Layout
23740 preferences
23741 \end_layout
23742
23743 \end_inset
23744
23745  file, for each process.
23746 \end_layout
23747
23748 \begin_layout Standard
23749 If you are developing a client program, you might find it useful to enable
23750  debugging information from the \SpecialChar LyX
23751  server.
23752  Do this by starting \SpecialChar LyX
23753  as 
23754 \begin_inset Flex Code
23755 status collapsed
23756
23757 \begin_layout Plain Layout
23758 lyx -dbg lyxserver
23759 \end_layout
23760
23761 \end_inset
23762
23763 .
23764 \end_layout
23765
23766 \begin_layout Standard
23767 You can find a complete example client written in C++ in the source distribution
23768  as 
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 development/lyxserver/server_monitor.cpp
23774 \end_layout
23775
23776 \end_inset
23777
23778 .
23779 \end_layout
23780
23781 \begin_layout Standard
23782 Another useful tool is the command-line based client found in 
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787 src/client/lyxclient
23788 \end_layout
23789
23790 \end_inset
23791
23792 .
23793 \end_layout
23794
23795 \begin_layout Section
23796 Normal communication
23797 \end_layout
23798
23799 \begin_layout Standard
23800 To issue a \SpecialChar LyX
23801  call, the client writes a line of ASCII text into the input
23802  pipe.
23803  This line has the following format:
23804 \end_layout
23805
23806 \begin_layout Quote
23807 LYXCMD:
23808 \emph on
23809 clientname
23810 \emph default
23811 :
23812 \emph on
23813 function
23814 \emph default
23815 :
23816 \emph on
23817 argument
23818 \end_layout
23819
23820 \begin_layout Description
23821 clientname is a name that the client can choose arbitrarily.
23822  Its only use is that \SpecialChar LyX
23823  will echo it if it sends an answer—so a client can
23824  dispatch results from different requesters.
23825 \end_layout
23826
23827 \begin_layout Description
23828 function is the function you want \SpecialChar LyX
23829  to perform.
23830  It is the same as the commands you'd use in the minibuffer.
23831 \end_layout
23832
23833 \begin_layout Description
23834 argument is an optional argument which is meaningful only to some functions
23835  (for instance, the 
23836 \begin_inset Quotes eld
23837 \end_inset
23838
23839 self-insert
23840 \begin_inset Quotes erd
23841 \end_inset
23842
23843  LFUN will insert the argument as text at the cursor position).
23844 \end_layout
23845
23846 \begin_layout Standard
23847 The answer from \SpecialChar LyX
23848  will arrive in the output pipe and be of the form
23849 \end_layout
23850
23851 \begin_layout Quote
23852 INFO:
23853 \emph on
23854 clientname
23855 \emph default
23856 :
23857 \emph on
23858 function
23859 \emph default
23860 :
23861 \emph on
23862 data
23863 \end_layout
23864
23865 \begin_layout Standard
23866 where 
23867 \emph on
23868 clientname
23869 \emph default
23870  and 
23871 \emph on
23872 function
23873 \emph default
23874  are just echoed from the command request, while 
23875 \emph on
23876 data
23877 \emph default
23878  is more or less useful information filled according to how the command
23879  execution worked out.
23880  Some commands, such as 
23881 \begin_inset Quotes eld
23882 \end_inset
23883
23884 font-state
23885 \begin_inset Quotes erd
23886 \end_inset
23887
23888 , will return information about the internal state of \SpecialChar LyX
23889 , while other will
23890  return an empty data-response.
23891  This means that the command execution went fine.
23892 \end_layout
23893
23894 \begin_layout Standard
23895 In case of errors, the response from \SpecialChar LyX
23896  will have this form
23897 \end_layout
23898
23899 \begin_layout Quote
23900 ERROR:
23901 \emph on
23902 clientname
23903 \emph default
23904 :
23905 \emph on
23906 function
23907 \emph default
23908 :
23909 \emph on
23910 error message
23911 \end_layout
23912
23913 \begin_layout Standard
23914 where the 
23915 \emph on
23916 error message
23917 \emph default
23918  should contain an explanation of why the command failed.
23919 \end_layout
23920
23921 \begin_layout Standard
23922 Examples:
23923 \end_layout
23924
23925 \begin_layout LyX-Code
23926 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
23927 \begin_inset Newline newline
23928 \end_inset
23929
23930 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
23931 \begin_inset Newline newline
23932 \end_inset
23933
23934 read a <~/.lyxpipe.out
23935 \begin_inset Newline newline
23936 \end_inset
23937
23938 echo $a
23939 \end_layout
23940
23941 \begin_layout Subsection
23942 AppleScript (Mac OS X)
23943 \end_layout
23944
23945 \begin_layout Standard
23946 Since \SpecialChar LyX
23947  2.1, \SpecialChar LyX
23948  supports basic interactions with AppleScript for normal communicatio
23949 n through the command run.
23950  This command takes a direct argument (the 
23951 \series bold
23952 function
23953 \series default
23954  to perform) and an optional argument.
23955  It either returns the output of the function or triggers an error with
23956  the error message and code.
23957 \end_layout
23958
23959 \begin_layout Standard
23960 Example:
23961 \end_layout
23962
23963 \begin_layout LyX-Code
23964 tell application "\SpecialChar LyX
23965 "
23966 \end_layout
23967
23968 \begin_layout LyX-Code
23969   try
23970 \end_layout
23971
23972 \begin_layout LyX-Code
23973     -- Stores the current file name into f
23974 \end_layout
23975
23976 \begin_layout LyX-Code
23977     set f to (run "server-get-filename" with argument "")
23978 \end_layout
23979
23980 \begin_layout LyX-Code
23981     on error the error_message number the error_number
23982 \end_layout
23983
23984 \begin_layout LyX-Code
23985       display dialog "Error: " & the error_number & ".
23986  " ¬
23987 \end_layout
23988
23989 \begin_layout LyX-Code
23990               & the error_message buttons {"OK"} default button 1
23991 \end_layout
23992
23993 \begin_layout LyX-Code
23994   end try
23995 \end_layout
23996
23997 \begin_layout LyX-Code
23998 end tell
23999 \end_layout
24000
24001 \begin_layout Section
24002 Notification
24003 \end_layout
24004
24005 \begin_layout Standard
24006 \SpecialChar LyX
24007  can notify clients of events going on asynchronously.
24008  Currently it will only do this if the user binds a key sequence with the
24009  function 
24010 \begin_inset Quotes eld
24011 \end_inset
24012
24013 notify
24014 \begin_inset Quotes erd
24015 \end_inset
24016
24017 .
24018  The format of the string \SpecialChar LyX
24019  sends is as follows:
24020 \end_layout
24021
24022 \begin_layout Quote
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 NOTIFY:
24028 \end_layout
24029
24030 \end_inset
24031
24032
24033 \emph on
24034 key-sequence
24035 \end_layout
24036
24037 \begin_layout Standard
24038 where 
24039 \emph on
24040 key-sequence
24041 \emph default
24042  is the printed representation of the key sequence that was actually typed
24043  by the user.
24044 \end_layout
24045
24046 \begin_layout Standard
24047 This mechanism can be used to extend \SpecialChar LyX
24048 's command set and implement macros.
24049  Bind some key sequence to 
24050 \begin_inset Quotes eld
24051 \end_inset
24052
24053 notify
24054 \begin_inset Quotes erd
24055 \end_inset
24056
24057 .
24058  Then start a client that listens on the output pipe, dispatches the command
24059  according to the sequence, and starts a function that may use \SpecialChar LyX
24060  calls and
24061  \SpecialChar LyX
24062  requests to issue a command or a series of commands to \SpecialChar LyX
24063 .
24064 \end_layout
24065
24066 \begin_layout Section
24067 The simple \SpecialChar LyX
24068  Server Protocol
24069 \end_layout
24070
24071 \begin_layout Standard
24072 \SpecialChar LyX
24073  implements a simple protocol that can be used for session management.
24074  All messages are of the form
24075 \end_layout
24076
24077 \begin_layout Quote
24078 LYXSRV:
24079 \emph on
24080 clientname
24081 \emph default
24082 :
24083 \emph on
24084 protocol message
24085 \end_layout
24086
24087 \begin_layout Standard
24088 where 
24089 \emph on
24090 protocol message
24091 \emph default
24092  can be 
24093 \begin_inset Quotes eld
24094 \end_inset
24095
24096 hello
24097 \begin_inset Quotes erd
24098 \end_inset
24099
24100  or 
24101 \begin_inset Quotes eld
24102 \end_inset
24103
24104 bye
24105 \begin_inset Quotes erd
24106 \end_inset
24107
24108 .
24109  If 
24110 \begin_inset Quotes eld
24111 \end_inset
24112
24113 hello
24114 \begin_inset Quotes erd
24115 \end_inset
24116
24117  is received from a client, \SpecialChar LyX
24118  will report back to inform the client that
24119  it's listening to it's messages, while 
24120 \begin_inset Quotes eld
24121 \end_inset
24122
24123 bye
24124 \begin_inset Quotes erd
24125 \end_inset
24126
24127  sent from \SpecialChar LyX
24128  will inform clients that \SpecialChar LyX
24129  is closing.
24130 \end_layout
24131
24132 \begin_layout Section
24133 Reverse DVI/PDF search
24134 \end_layout
24135
24136 \begin_layout Standard
24137 Some DVI/PDF viewers
24138 \begin_inset Foot
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
24143  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
24144 \end_layout
24145
24146 \end_inset
24147
24148  provide 
24149 \emph on
24150 reverse search
24151 \emph default
24152  facility (also called 
24153 \emph on
24154 inverse search
24155 \emph default
24156 ).
24157  This means that you can tell \SpecialChar LyX
24158  to put the cursor to a specific line in the
24159  document by clicking at the respective position in the DVI/PDF output.
24160  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
24161 .
24162  This is done via the \SpecialChar LyX
24163  server either by using the named pipe (
24164 \emph on
24165 lyxpipe
24166 \emph default
24167 ), or the UNIX domain socket (
24168 \emph on
24169 lyxsocket
24170 \emph default
24171 ) that \SpecialChar LyX
24172  creates in its temporary directory (this is the way the 
24173 \begin_inset Flex Code
24174 status collapsed
24175
24176 \begin_layout Plain Layout
24177 lyxclient
24178 \end_layout
24179
24180 \end_inset
24181
24182  program communicates with \SpecialChar LyX
24183 ).
24184  In some cases, you need a helper script that mediates between the viewer
24185  and \SpecialChar LyX
24186 , in others, the viewer can communicate with \SpecialChar LyX
24187  directly.
24188  This depends on the selected viewer and on your operating system.
24189  The same applies to the way viewers need to be configured and the way the
24190  reverse search is actually performed.
24191  In what follows, we will thus describe how to setup reverse search for
24192  specific viewers.
24193  Before we turn to this, though, we will explain what needs to be done generally
24194  to enable reverse search in the DVI/PDF output.
24195 \end_layout
24196
24197 \begin_layout Subsection
24198 Automatic setup
24199 \begin_inset CommandInset label
24200 LatexCommand label
24201 name "subsec:rev-search"
24202
24203 \end_inset
24204
24205
24206 \end_layout
24207
24208 \begin_layout Standard
24209 In most cases \SpecialChar LyX
24210  will do the work for you by pressing the following button
24211  in the toolbar: 
24212 \begin_inset Info
24213 type  "icon"
24214 arg   "buffer-toggle-output-sync"
24215 \end_inset
24216
24217 .
24218  Alternatively, you can also enable the feature by checking 
24219 \family sans
24220 Synchronize with Output
24221 \family default
24222  in 
24223 \begin_inset Flex Noun
24224 status collapsed
24225
24226 \begin_layout Plain Layout
24227 Document\SpecialChar menuseparator
24228 Settings\SpecialChar menuseparator
24229 Formats
24230 \end_layout
24231
24232 \end_inset
24233
24234 .
24235  In such a case \SpecialChar LyX
24236  will automatically insert the necessary Sync\SpecialChar TeX
24237  macro (for
24238  PDF) or load the srcltx package (for DVI) respectively.
24239  This option can be easily reached also on 
24240 \begin_inset Flex Code
24241 status collapsed
24242
24243 \begin_layout Plain Layout
24244 View/Update
24245 \end_layout
24246
24247 \end_inset
24248
24249  Toolbar.
24250 \end_layout
24251
24252 \begin_layout Standard
24253 If you need a different setting, you can select or input a custom macro
24254  from the drop down box just below 
24255 \begin_inset Flex Noun
24256 status collapsed
24257
24258 \begin_layout Plain Layout
24259 Document\SpecialChar menuseparator
24260 Settings\SpecialChar menuseparator
24261 Output\SpecialChar menuseparator
24262 Synchronize with Output
24263 \end_layout
24264
24265 \end_inset
24266
24267 .
24268 \end_layout
24269
24270 \begin_layout Standard
24271 Note that the method 
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276
24277 \backslash
24278 synctex=1
24279 \end_layout
24280
24281 \end_inset
24282
24283  enables gzip compression.
24284  If your viewer does not support it, you should instead use 
24285 \begin_inset Flex Code
24286 status collapsed
24287
24288 \begin_layout Plain Layout
24289
24290 \backslash
24291 synctex=-1
24292 \end_layout
24293
24294 \end_inset
24295
24296 .
24297 \end_layout
24298
24299 \begin_layout Standard
24300 Please also note that including the 
24301 \begin_inset Flex Code
24302 status collapsed
24303
24304 \begin_layout Plain Layout
24305 srcltx
24306 \end_layout
24307
24308 \end_inset
24309
24310  package or 
24311 \begin_inset Flex Code
24312 status collapsed
24313
24314 \begin_layout Plain Layout
24315 src-specials
24316 \end_layout
24317
24318 \end_inset
24319
24320  sometimes has an undesired impact on the typesetting.
24321  Thus, you should switch output synchronization off for the final typesetting
24322  if you use the 
24323 \begin_inset Flex Code
24324 status collapsed
24325
24326 \begin_layout Plain Layout
24327 srcltx
24328 \end_layout
24329
24330 \end_inset
24331
24332  package or 
24333 \begin_inset Flex Code
24334 status collapsed
24335
24336 \begin_layout Plain Layout
24337 src-specials
24338 \end_layout
24339
24340 \end_inset
24341
24342 .
24343  
24344 \end_layout
24345
24346 \begin_layout Standard
24347 In case you need some more special settings that are not covered by the
24348  automatic settings, read the next section about how to set up output synchroniz
24349 ation manually.
24350  If the automatic setup suits your needs, you can readily jump to section
24351 \begin_inset space ~
24352 \end_inset
24353
24354
24355 \begin_inset CommandInset ref
24356 LatexCommand ref
24357 reference "subsec:configuring-viewers"
24358
24359 \end_inset
24360
24361 , where the necessary configuration steps in your viewer – needed both with
24362  the automatic and the manual setup – are described.
24363 \end_layout
24364
24365 \begin_layout Subsection
24366 Manual setup
24367 \end_layout
24368
24369 \begin_layout Standard
24370 \SpecialChar LaTeX
24371  provides several different methods for reverse search.
24372  Some are built-in in the 
24373 \begin_inset Flex Code
24374 status collapsed
24375
24376 \begin_layout Plain Layout
24377 latex/pdflatex
24378 \end_layout
24379
24380 \end_inset
24381
24382  program, some are provided by external packages.
24383  Your choice depends on whether your \SpecialChar LaTeX
24384  distribution already provides a given
24385  method (the built-in methods are rather new) and whether your viewer can
24386  cope with it.
24387  The available methods are described in the following.
24388 \end_layout
24389
24390 \begin_layout Subsubsection*
24391 Built-in DVI-search via src-specials (DVI only) 
24392 \end_layout
24393
24394 \begin_layout Standard
24395 This method provides the DVI file with the necessary information for reverse
24396  search.
24397  It is available in \SpecialChar LaTeX
24398  since quite some time (any somewhat recent \SpecialChar LaTeX
24399  distribution
24400  should include it), and it works reliably.
24401  To enable it, change the 
24402 \begin_inset Flex Noun
24403 status collapsed
24404
24405 \begin_layout Plain Layout
24406 La
24407 \family sans
24408 TeX
24409 \family default
24410  (plain)->DVI
24411 \end_layout
24412
24413 \end_inset
24414
24415  or 
24416 \begin_inset Flex Noun
24417 status collapsed
24418
24419 \begin_layout Plain Layout
24420 La
24421 \family sans
24422 TeX
24423 \family default
24424  (plain)->DraftDVI
24425 \end_layout
24426
24427 \end_inset
24428
24429  converter in 
24430 \begin_inset Flex Noun
24431 status collapsed
24432
24433 \begin_layout Plain Layout
24434 Preferences\SpecialChar menuseparator
24435 File Handling\SpecialChar menuseparator
24436 Converters
24437 \end_layout
24438
24439 \end_inset
24440
24441  to 
24442 \begin_inset Flex Code
24443 status collapsed
24444
24445 \begin_layout Plain Layout
24446 latex -src-specials $$i
24447 \end_layout
24448
24449 \end_inset
24450
24451 .
24452  If this doesn't work, check if your \SpecialChar TeX
24453  engine needs different options (the
24454  syntax might differ in some distributions).
24455 \end_layout
24456
24457 \begin_layout Subsubsection*
24458 External Packages (PDFSync and scrltx) 
24459 \end_layout
24460
24461 \begin_layout Standard
24462 The packages 
24463 \emph on
24464 pdfsync
24465 \emph default
24466  and 
24467 \emph on
24468 scrltx
24469 \emph default
24470  provide reverse search facility for PDF output (via pdflatex) and DVI output,
24471  respectively.
24472  In order to enable it, load the packages in the \SpecialChar LyX
24473  preamble: 
24474 \end_layout
24475
24476 \begin_layout Itemize
24477 \begin_inset Flex Code
24478 status collapsed
24479
24480 \begin_layout Plain Layout
24481
24482 \backslash
24483 usepackage{pdfsync}
24484 \end_layout
24485
24486 \end_inset
24487
24488  for reverse PDF search,
24489 \end_layout
24490
24491 \begin_layout Itemize
24492 \begin_inset Flex Code
24493 status collapsed
24494
24495 \begin_layout Plain Layout
24496
24497 \backslash
24498 usepackage[active]{srcltx}
24499 \end_layout
24500
24501 \end_inset
24502
24503  for reverse DVI search.
24504 \end_layout
24505
24506 \begin_layout Standard
24507 If you want to be able to perform both DVI and PDF reverse searches, you
24508  can also insert in the preamble the following lines
24509 \end_layout
24510
24511 \begin_layout LyX-Code
24512
24513 \backslash
24514 usepackage{ifpdf}
24515 \begin_inset Newline newline
24516 \end_inset
24517
24518
24519 \backslash
24520 ifpdf
24521 \begin_inset Newline newline
24522 \end_inset
24523
24524   
24525 \backslash
24526 usepackage{pdfsync}
24527 \begin_inset Newline newline
24528 \end_inset
24529
24530
24531 \backslash
24532 else
24533 \begin_inset Newline newline
24534 \end_inset
24535
24536   
24537 \backslash
24538 usepackage[active]{srcltx}
24539 \begin_inset Newline newline
24540 \end_inset
24541
24542
24543 \backslash
24544 fi
24545 \end_layout
24546
24547 \begin_layout Standard
24548 This way, you can preview the file as either DVI or PDF (pdflatex) and the
24549  right package will be used.
24550 \end_layout
24551
24552 \begin_layout Standard
24553 Note that PDFSync might affect the output layout of your document.
24554  It is therefore advised to disable PDFsync for final documents.
24555 \end_layout
24556
24557 \begin_layout Subsubsection*
24558 Built-in reverse search via Sync\SpecialChar TeX
24559  (DVI and PDF) 
24560 \end_layout
24561
24562 \begin_layout Standard
24563 Recent versions of 
24564 \begin_inset Flex Code
24565 status collapsed
24566
24567 \begin_layout Plain Layout
24568 (pdf)latex
24569 \end_layout
24570
24571 \end_inset
24572
24573  have built-in support for both PDF and DVI reverse search.
24574  This so-called 
24575 \emph on
24576 Sync\SpecialChar TeX
24577
24578 \emph default
24579  facility is basically the result of the integration of the PDFSync package
24580  to the pdftex program and its merge with the 
24581 \emph on
24582 scr-specials
24583 \emph default
24584  approach.
24585  You need at least \SpecialChar TeX
24586 Live 2008 or a recent Mik\SpecialChar TeX
24587  distribution in order to use
24588  it.
24589 \begin_inset Foot
24590 status collapsed
24591
24592 \begin_layout Plain Layout
24593 For some reason, Mik\SpecialChar TeX
24594  does not understand/obey the command \SpecialChar LyX
24595  inserts into
24596  the preamble when you check the "Enable Forward/Reverse Search" button
24597  in the toolbar and does not generate the necessary info.
24598 \end_layout
24599
24600 \begin_layout Plain Layout
24601 The generation of the required info can be forced by changing the converter
24602  "\SpecialChar LaTeX
24603  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
24604  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
24605  the -synctex=1 switch).
24606 \end_layout
24607
24608 \end_inset
24609
24610  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
24611  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
24612  already provide Sync\SpecialChar TeX
24613  support.
24614 \end_layout
24615
24616 \begin_layout Standard
24617 To enable Sync\SpecialChar TeX
24618  for DVI output, change the 
24619 \begin_inset Flex Noun
24620 status collapsed
24621
24622 \begin_layout Plain Layout
24623 La
24624 \family sans
24625 TeX
24626 \family default
24627  (plain) -> DVI
24628 \end_layout
24629
24630 \end_inset
24631
24632  or 
24633 \begin_inset Flex Noun
24634 status collapsed
24635
24636 \begin_layout Plain Layout
24637 La
24638 \family sans
24639 TeX
24640 \family default
24641  (plain) -> DraftDVI
24642 \end_layout
24643
24644 \end_inset
24645
24646  converter in 
24647 \begin_inset Flex Noun
24648 status collapsed
24649
24650 \begin_layout Plain Layout
24651 Preferences\SpecialChar menuseparator
24652 File Handling\SpecialChar menuseparator
24653 Converters
24654 \end_layout
24655
24656 \end_inset
24657
24658  to 
24659 \begin_inset Flex Code
24660 status collapsed
24661
24662 \begin_layout Plain Layout
24663 latex -synctex=1 $$i
24664 \end_layout
24665
24666 \end_inset
24667
24668 , and for PDF output, change the 
24669 \begin_inset Flex Noun
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673 La
24674 \family sans
24675 TeX
24676 \family default
24677  (pdflatex) -> PDF (pdflatex)
24678 \end_layout
24679
24680 \end_inset
24681
24682  converter to 
24683 \begin_inset Flex Code
24684 status collapsed
24685
24686 \begin_layout Plain Layout
24687 pdflatex -synctex=1 $$i
24688 \end_layout
24689
24690 \end_inset
24691
24692 .
24693  Should your viewer not be considered in the following description, or in
24694  case of missing success, please check the documentation of your viewer
24695  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
24696 .
24697 \begin_inset Foot
24698 status collapsed
24699
24700 \begin_layout Plain Layout
24701 Note that the option 
24702 \begin_inset Flex Code
24703 status collapsed
24704
24705 \begin_layout Plain Layout
24706 -synctex=1
24707 \end_layout
24708
24709 \end_inset
24710
24711  option enables gzip compression.
24712  If your viewer does not support it, you should instead use 
24713 \begin_inset Flex Code
24714 status collapsed
24715
24716 \begin_layout Plain Layout
24717 -synctex=-1
24718 \end_layout
24719
24720 \end_inset
24721
24722 .
24723 \end_layout
24724
24725 \end_inset
24726
24727
24728 \end_layout
24729
24730 \begin_layout Subsection
24731 Configuring and using specific viewers
24732 \begin_inset CommandInset label
24733 LatexCommand label
24734 name "subsec:configuring-viewers"
24735
24736 \end_inset
24737
24738
24739 \end_layout
24740
24741 \begin_layout Subsubsection*
24742 Xdvi (all platforms)
24743 \end_layout
24744
24745 \begin_layout Standard
24746 If you use 
24747 \begin_inset Flex Code
24748 status collapsed
24749
24750 \begin_layout Plain Layout
24751 xdvi
24752 \end_layout
24753
24754 \end_inset
24755
24756 , you don't need to do anything else for performing a reverse DVI search,
24757  as \SpecialChar LyX
24758  already provides the necessary hooks for automatically using the 
24759 \begin_inset Flex Code
24760 status collapsed
24761
24762 \begin_layout Plain Layout
24763 lyxclient
24764 \end_layout
24765
24766 \end_inset
24767
24768  program.
24769  Just setup your document as described above (reverse search is triggered
24770  by Ctrl-click or Alt-click on Mac OSX, respectively).
24771 \end_layout
24772
24773 \begin_layout Standard
24774 However, if for whatever reason you want to use the named pipe instead of
24775  the socket for communicating with \SpecialChar LyX
24776 , simply change the DVI viewer in 
24777 \begin_inset Flex Noun
24778 status collapsed
24779
24780 \begin_layout Plain Layout
24781 Preferences\SpecialChar menuseparator
24782 File Handling\SpecialChar menuseparator
24783 File formats
24784 \end_layout
24785
24786 \end_inset
24787
24788  to
24789 \begin_inset Foot
24790 status collapsed
24791
24792 \begin_layout Plain Layout
24793 On Mac OSX you have to use 
24794 \begin_inset Flex Code
24795 status collapsed
24796
24797 \begin_layout Plain Layout
24798 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
24799 \end_layout
24800
24801 \end_inset
24802
24803
24804 \end_layout
24805
24806 \end_inset
24807
24808  
24809 \begin_inset Flex Code
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813 xdvi -editor "lyxeditor.sh %f %l"
24814 \end_layout
24815
24816 \end_inset
24817
24818 , where 
24819 \begin_inset Flex Code
24820 status collapsed
24821
24822 \begin_layout Plain Layout
24823 lyxeditor.sh
24824 \end_layout
24825
24826 \end_inset
24827
24828  is a suitable script.
24829  For example, a minimal shell script is the following one:
24830 \end_layout
24831
24832 \begin_layout LyX-Code
24833 #!/bin/sh
24834 \begin_inset Newline newline
24835 \end_inset
24836
24837 LYXPIPE="/path/to/lyxpipe"
24838 \begin_inset Newline newline
24839 \end_inset
24840
24841 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
24842 \begin_inset Newline newline
24843 \end_inset
24844
24845 echo "$COMMAND" > "${LYXPIPE}".in || exit
24846 \begin_inset Newline newline
24847 \end_inset
24848
24849 read TMP < "${LYXPIPE}".out || exit
24850 \end_layout
24851
24852 \begin_layout Standard
24853 where 
24854 \begin_inset Flex Code
24855 status collapsed
24856
24857 \begin_layout Plain Layout
24858 /path/to/lyxpipe
24859 \end_layout
24860
24861 \end_inset
24862
24863  is the LyXServer pipe path specified in 
24864 \begin_inset Flex Noun
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868 Preferences\SpecialChar menuseparator
24869 Paths
24870 \end_layout
24871
24872 \end_inset
24873
24874 .
24875 \begin_inset Foot
24876 status collapsed
24877
24878 \begin_layout Plain Layout
24879 In the 
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 development/tools
24885 \end_layout
24886
24887 \end_inset
24888
24889  folder of a source distribution you can find a 
24890 \begin_inset Flex Code
24891 status collapsed
24892
24893 \begin_layout Plain Layout
24894 lyxeditor
24895 \end_layout
24896
24897 \end_inset
24898
24899  script which is able to locate the 
24900 \emph on
24901 lyxpipe
24902 \emph default
24903  based on your preferences.
24904 \end_layout
24905
24906 \end_inset
24907
24908
24909 \end_layout
24910
24911 \begin_layout Subsubsection*
24912 MacDviX (Mac OSX)
24913 \end_layout
24914
24915 \begin_layout Standard
24916 At the end of 
24917 \begin_inset Flex Code
24918 status collapsed
24919
24920 \begin_layout Plain Layout
24921 /Applications/MacDviX_Folder/calleditor.script
24922 \end_layout
24923
24924 \end_inset
24925
24926 , add the following lines:
24927 \end_layout
24928
24929 \begin_layout LyX-Code
24930 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
24931 \begin_inset Newline newline
24932 \end_inset
24933
24934 exit 1
24935 \end_layout
24936
24937 \begin_layout Standard
24938 Modify the lines accordingly if you install \SpecialChar LyX
24939  somewhere else than in the
24940  Applications folder.
24941 \end_layout
24942
24943 \begin_layout Standard
24944 Reverse search is triggered by Alt-click (OPTION-click).
24945 \end_layout
24946
24947 \begin_layout Subsubsection*
24948 Skim (Mac OSX)
24949 \end_layout
24950
24951 \begin_layout Standard
24952 Enter 
24953 \begin_inset Flex Code
24954 status collapsed
24955
24956 \begin_layout Plain Layout
24957 open -a Skim.app $$i
24958 \end_layout
24959
24960 \end_inset
24961
24962  to the viewer setting in 
24963 \begin_inset Flex Noun
24964 status collapsed
24965
24966 \begin_layout Plain Layout
24967 Preferences\SpecialChar menuseparator
24968 File Handling\SpecialChar menuseparator
24969 File formats\SpecialChar menuseparator
24970 PDF (pdflatex)
24971 \end_layout
24972
24973 \end_inset
24974
24975 , and then in 
24976 \begin_inset Flex Noun
24977 status collapsed
24978
24979 \begin_layout Plain Layout
24980 Skim\SpecialChar menuseparator
24981 Preferences\SpecialChar menuseparator
24982 Sync
24983 \end_layout
24984
24985 \end_inset
24986
24987  choose 
24988 \begin_inset Flex Noun
24989 status collapsed
24990
24991 \begin_layout Plain Layout
24992 custom
24993 \end_layout
24994
24995 \end_inset
24996
24997  preset and enter command 
24998 \begin_inset Flex Noun
24999 status collapsed
25000
25001 \begin_layout Plain Layout
25002 /Applications/\SpecialChar LyX
25003 .app/Contents/MacOS/lyxeditor
25004 \end_layout
25005
25006 \end_inset
25007
25008 .
25009 \end_layout
25010
25011 \begin_layout Standard
25012 Reverse search is triggered by COMMAND-SHIFT-click
25013 \end_layout
25014
25015 \begin_layout Subsubsection*
25016 Evince (GNOME)
25017 \end_layout
25018
25019 \begin_layout Standard
25020 Reverse search with evince does not work out of the box, but it can be achieved
25021  by means of some third party helper scripts.
25022  Please refer to 
25023 \begin_inset CommandInset href
25024 LatexCommand href
25025 target "https://wiki.lyx.org/LyX/SyncTeX"
25026 literal "false"
25027
25028 \end_inset
25029
25030  for details.
25031 \end_layout
25032
25033 \begin_layout Subsubsection*
25034 Okular (KDE)
25035 \end_layout
25036
25037 \begin_layout Standard
25038 Go to 
25039 \begin_inset Flex Noun
25040 status collapsed
25041
25042 \begin_layout Plain Layout
25043 Settings\SpecialChar menuseparator
25044 Configure Okular\SpecialChar menuseparator
25045 Editor
25046 \end_layout
25047
25048 \end_inset
25049
25050  and select LyX
25051 \begin_inset Quotes erd
25052 \end_inset
25053
25054  as editor.
25055  This inserts the appropriate command (
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 lyxclient -g %f %l
25061 \end_layout
25062
25063 \end_inset
25064
25065 ).
25066 \end_layout
25067
25068 \begin_layout Standard
25069 Reverse search is triggered by SHIFT-click.
25070
25071 \change_inserted -712698321 1578211026
25072  Note that this only works if Okular is in 
25073 \begin_inset Quotes eld
25074 \end_inset
25075
25076 Browse
25077 \begin_inset Quotes erd
25078 \end_inset
25079
25080  mode (i.
25081 \begin_inset space \thinspace{}
25082 \end_inset
25083
25084 e., the hand symbol is clicked).
25085 \change_unchanged
25086
25087 \end_layout
25088
25089 \begin_layout Subsubsection*
25090 Qpdfview (Unix)
25091 \end_layout
25092
25093 \begin_layout Standard
25094 Qpdfview supports Sync\SpecialChar TeX
25095  since version 0.3.5.
25096  Go to 
25097 \begin_inset Flex Noun
25098 status collapsed
25099
25100 \begin_layout Plain Layout
25101 Edit\SpecialChar menuseparator
25102 Settings\SpecialChar menuseparator
25103 Behavior
25104 \end_layout
25105
25106 \end_inset
25107
25108 , click on the input field of the 
25109 \begin_inset Quotes eld
25110 \end_inset
25111
25112 Source editor
25113 \begin_inset Quotes erd
25114 \end_inset
25115
25116  item and add the command 
25117 \begin_inset Flex Code
25118 status collapsed
25119
25120 \begin_layout Plain Layout
25121 lyxclient -g %1 %2
25122 \end_layout
25123
25124 \end_inset
25125
25126 .
25127 \end_layout
25128
25129 \begin_layout Standard
25130 Reverse search is triggered by double-click or, in more recent versions,
25131  by context menu.
25132 \end_layout
25133
25134 \begin_layout Subsubsection*
25135 YAP (Windows)
25136 \end_layout
25137
25138 \begin_layout Standard
25139 Launch yap, choose its 
25140 \begin_inset Flex Noun
25141 status collapsed
25142
25143 \begin_layout Plain Layout
25144 View\SpecialChar menuseparator
25145 Options
25146 \end_layout
25147
25148 \end_inset
25149
25150  menu and select the 
25151 \begin_inset Quotes eld
25152 \end_inset
25153
25154 Inverse DVI Search
25155 \begin_inset Quotes erd
25156 \end_inset
25157
25158  tab.
25159  Click on the 
25160 \begin_inset Quotes eld
25161 \end_inset
25162
25163 New\SpecialChar ldots
25164
25165 \begin_inset Quotes erd
25166 \end_inset
25167
25168  button and, in the window that opens, enter 
25169 \begin_inset Quotes eld
25170 \end_inset
25171
25172 \SpecialChar LyX
25173  Editor
25174 \begin_inset Quotes erd
25175 \end_inset
25176
25177  (or any other name you like) in the 
25178 \begin_inset Quotes eld
25179 \end_inset
25180
25181 Name:
25182 \begin_inset Quotes erd
25183 \end_inset
25184
25185  field.
25186  Now click on the button labeled 
25187 \begin_inset Quotes eld
25188 \end_inset
25189
25190 \SpecialChar ldots
25191
25192 \begin_inset Quotes erd
25193 \end_inset
25194
25195  to open a file dialog and navigate to the directory containing the batch
25196  file 
25197 \begin_inset Flex Code
25198 status collapsed
25199
25200 \begin_layout Plain Layout
25201 lyxeditor.bat
25202 \end_layout
25203
25204 \end_inset
25205
25206  (see below).
25207  Select 
25208 \begin_inset Flex Code
25209 status collapsed
25210
25211 \begin_layout Plain Layout
25212 lyxeditor.bat
25213 \end_layout
25214
25215 \end_inset
25216
25217  and then specify the program arguments as 
25218 \begin_inset Flex Code
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222 %f %l
25223 \end_layout
25224
25225 \end_inset
25226
25227 .
25228  The 
25229 \begin_inset Flex Code
25230 status collapsed
25231
25232 \begin_layout Plain Layout
25233 lyxeditor.bat
25234 \end_layout
25235
25236 \end_inset
25237
25238  wrapper is used for communicating with \SpecialChar LyX
25239  through the 
25240 \emph on
25241 lyxpipe
25242 \emph default
25243  and is as follows:
25244 \end_layout
25245
25246 \begin_layout LyX-Code
25247 @echo off
25248 \begin_inset Newline newline
25249 \end_inset
25250
25251 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
25252 \backslash
25253
25254 \backslash
25255 .
25256 \backslash
25257 pipe
25258 \backslash
25259 lyxpipe.in
25260 \begin_inset Newline newline
25261 \end_inset
25262
25263 type 
25264 \backslash
25265
25266 \backslash
25267 .
25268 \backslash
25269 pipe
25270 \backslash
25271 lyxpipe.out
25272 \end_layout
25273
25274 \begin_layout Standard
25275 Make sure that the \SpecialChar LyX
25276 Server pipe path you specified in \SpecialChar LyX
25277  is 
25278 \begin_inset Flex Code
25279 status collapsed
25280
25281 \begin_layout Plain Layout
25282
25283 \backslash
25284
25285 \backslash
25286 .
25287 \backslash
25288 pipe
25289 \backslash
25290 lyxpipe
25291 \end_layout
25292
25293 \end_inset
25294
25295 , otherwise change the 
25296 \begin_inset Flex Code
25297 status collapsed
25298
25299 \begin_layout Plain Layout
25300 lyxeditor.bat
25301 \end_layout
25302
25303 \end_inset
25304
25305  wrapper accordingly.
25306 \end_layout
25307
25308 \begin_layout Standard
25309 In yap, reverse search is triggered by double-click.
25310 \end_layout
25311
25312 \begin_layout Subsubsection*
25313 SumatraPDF (Windows)
25314 \end_layout
25315
25316 \begin_layout Standard
25317 In order to use SumatraPDF for inverse search, enter 
25318 \begin_inset Flex Code
25319 status collapsed
25320
25321 \begin_layout Plain Layout
25322 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
25323 \end_layout
25324
25325 \end_inset
25326
25327  in the viewer setting in 
25328 \begin_inset Flex Noun
25329 status collapsed
25330
25331 \begin_layout Plain Layout
25332 Preferences\SpecialChar menuseparator
25333 File Handling\SpecialChar menuseparator
25334 File formats\SpecialChar menuseparator
25335 PDF (pdflatex)
25336 \end_layout
25337
25338 \end_inset
25339
25340 , where 
25341 \begin_inset Flex Code
25342 status collapsed
25343
25344 \begin_layout Plain Layout
25345 lyxeditor.bat
25346 \end_layout
25347
25348 \end_inset
25349
25350  is the previous wrapper.
25351  If SumatraPDF.exe is not in your command PATH, use its full file name.
25352 \end_layout
25353
25354 \begin_layout Standard
25355 Reverse search is triggered by double-click.
25356 \end_layout
25357
25358 \begin_layout Subsubsection*
25359 YAP (Cygwin)
25360 \end_layout
25361
25362 \begin_layout Standard
25363 First of all, make sure that yap is your default DVI viewer in the Windows
25364  environment, then launch it, choose its 
25365 \begin_inset Flex Noun
25366 status collapsed
25367
25368 \begin_layout Plain Layout
25369 View\SpecialChar menuseparator
25370 Options
25371 \end_layout
25372
25373 \end_inset
25374
25375  menu and select the 
25376 \begin_inset Quotes eld
25377 \end_inset
25378
25379 Inverse DVI Search
25380 \begin_inset Quotes erd
25381 \end_inset
25382
25383  tab.
25384  Click on the 
25385 \begin_inset Quotes eld
25386 \end_inset
25387
25388 New\SpecialChar ldots
25389
25390 \begin_inset Quotes erd
25391 \end_inset
25392
25393  button and, in the window that opens, enter 
25394 \begin_inset Quotes eld
25395 \end_inset
25396
25397 \SpecialChar LyX
25398  Editor
25399 \begin_inset Quotes erd
25400 \end_inset
25401
25402  (or any other name you like) in the 
25403 \begin_inset Quotes eld
25404 \end_inset
25405
25406 Name:
25407 \begin_inset Quotes erd
25408 \end_inset
25409
25410  field.
25411  Now click on the button labeled 
25412 \begin_inset Quotes eld
25413 \end_inset
25414
25415 \SpecialChar ldots
25416
25417 \begin_inset Quotes erd
25418 \end_inset
25419
25420  to open a file dialog and navigate to the directory containing the 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425 lyxeditor.exe
25426 \end_layout
25427
25428 \end_inset
25429
25430  program (which is installed by default on Cygwin along with the \SpecialChar LyX
25431  executable).
25432  Select 
25433 \begin_inset Flex Code
25434 status collapsed
25435
25436 \begin_layout Plain Layout
25437 lyxeditor.exe
25438 \end_layout
25439
25440 \end_inset
25441
25442  and then specify the program arguments as 
25443 \begin_inset Flex Code
25444 status collapsed
25445
25446 \begin_layout Plain Layout
25447 -g %f %l
25448 \end_layout
25449
25450 \end_inset
25451
25452 .
25453  In this way, you will be using the 
25454 \emph on
25455 lyxsocket
25456 \emph default
25457  for communicating with \SpecialChar LyX
25458 .
25459  If, for whatever reason, you want to use the 
25460 \emph on
25461 lyxpipe
25462 \emph default
25463 , omit the 
25464 \begin_inset Flex Code
25465 status collapsed
25466
25467 \begin_layout Plain Layout
25468 -g
25469 \end_layout
25470
25471 \end_inset
25472
25473  option and be sure to specify the \SpecialChar LyX
25474 Server pipe path in the \SpecialChar LyX
25475  preferences.
25476 \end_layout
25477
25478 \begin_layout Standard
25479 In yap, reverse search is triggered by double-click.
25480 \end_layout
25481
25482 \begin_layout Subsubsection*
25483 SumatraPDF (Cygwin)
25484 \end_layout
25485
25486 \begin_layout Standard
25487 In order to use SumatraPDF for inverse search, enter 
25488 \begin_inset Flex Code
25489 status collapsed
25490
25491 \begin_layout Plain Layout
25492 SumatraPDF -inverse-search "lyxeditor -g %f %l"
25493 \end_layout
25494
25495 \end_inset
25496
25497  in the viewer setting in 
25498 \begin_inset Flex Noun
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 Preferences\SpecialChar menuseparator
25503 File Handling\SpecialChar menuseparator
25504 File formats\SpecialChar menuseparator
25505 PDF (pdflatex)
25506 \end_layout
25507
25508 \end_inset
25509
25510 .
25511  If SumatraPDF.exe is not in your command PATH, use its full posix path.
25512  The 
25513 \begin_inset Flex Code
25514 status collapsed
25515
25516 \begin_layout Plain Layout
25517 -g
25518 \end_layout
25519
25520 \end_inset
25521
25522  enables communication via the 
25523 \emph on
25524 lyxsocket
25525 \emph default
25526 .
25527  Again, omit the 
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532 -g
25533 \end_layout
25534
25535 \end_inset
25536
25537  option if you want to use the 
25538 \emph on
25539 lyxpipe
25540 \emph default
25541 , and be sure to specify the \SpecialChar LyX
25542 Server pipe path in the \SpecialChar LyX
25543  preferences.
25544 \end_layout
25545
25546 \begin_layout Standard
25547 Reverse search is triggered by double-click.
25548 \end_layout
25549
25550 \begin_layout Section
25551 Forward search
25552 \end_layout
25553
25554 \begin_layout Standard
25555 Forward search is, as the name implies, in a sense the 
25556 \begin_inset Quotes eld
25557 \end_inset
25558
25559 opposite
25560 \begin_inset Quotes erd
25561 \end_inset
25562
25563  of reverse search.
25564  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
25565 .
25566  If forward search is set up (as described in what follows), you can put
25567  the cursor anywhere in your \SpecialChar LyX
25568  document, and hit 
25569 \begin_inset Flex Noun
25570 status collapsed
25571
25572 \begin_layout Plain Layout
25573 Navigate\SpecialChar menuseparator
25574 Forward search
25575 \end_layout
25576
25577 \end_inset
25578
25579  (or select 
25580 \begin_inset Flex Noun
25581 status collapsed
25582
25583 \begin_layout Plain Layout
25584 Forward search
25585 \end_layout
25586
25587 \end_inset
25588
25589  in the context menu via right mouse click), and then the viewer will jump
25590  to that position as well.
25591  This implies, of course, that your viewer supports this function.
25592 \end_layout
25593
25594 \begin_layout Standard
25595 To make forward search possible, you first need to provide the generated
25596  output PDF/DVI file with additional information about the \SpecialChar TeX
25597  sources.
25598  This can be done via the methods described in the section 
25599 \begin_inset CommandInset ref
25600 LatexCommand ref
25601 reference "subsec:rev-search"
25602
25603 \end_inset
25604
25605 .
25606 \end_layout
25607
25608 \begin_layout Standard
25609 Additionally, you need to configure \SpecialChar LyX
25610  for using your viewers in 
25611 \begin_inset Flex Noun
25612 status collapsed
25613
25614 \begin_layout Plain Layout
25615 Tools\SpecialChar menuseparator
25616 Preferences\SpecialChar menuseparator
25617 Output\SpecialChar menuseparator
25618 General
25619 \end_layout
25620
25621 \end_inset
25622
25623 .
25624  We provide a range of tested configurations for some viewers, which you
25625  can select from the drop down list.
25626  If none of these configurations suits you, you have to find out and enter
25627  a suitable configuration yourself.
25628  The definition syntax uses the following placeholders:
25629 \end_layout
25630
25631 \begin_layout Itemize
25632 \noindent
25633 \begin_inset Flex Code
25634 status collapsed
25635
25636 \begin_layout Plain Layout
25637 $$n
25638 \end_layout
25639
25640 \end_inset
25641
25642 : row number
25643 \end_layout
25644
25645 \begin_layout Itemize
25646 \noindent
25647 \begin_inset Flex Code
25648 status collapsed
25649
25650 \begin_layout Plain Layout
25651 $$t
25652 \end_layout
25653
25654 \end_inset
25655
25656 : name of the (temporary) exported .tex file (without path)
25657 \end_layout
25658
25659 \begin_layout Itemize
25660 \noindent
25661 \begin_inset Flex Code
25662 status collapsed
25663
25664 \begin_layout Plain Layout
25665 $$f
25666 \end_layout
25667
25668 \end_inset
25669
25670 : name of the (temporary) exported .tex file (including path)
25671 \end_layout
25672
25673 \begin_layout Itemize
25674 \noindent
25675 \begin_inset Flex Code
25676 status collapsed
25677
25678 \begin_layout Plain Layout
25679 $$o
25680 \end_layout
25681
25682 \end_inset
25683
25684 : name of the exported output file (either dvi or pdf, depending on which
25685  one exists in the temporary directory)
25686 \end_layout
25687
25688 \begin_layout Standard
25689 Note that only some of the viewers provide full and usable forward search
25690  functionality out of the box, among them yap, xdvi, okular
25691 \begin_inset Foot
25692 status collapsed
25693
25694 \begin_layout Plain Layout
25695 You might want to set 
25696 \begin_inset Flex Code
25697 status collapsed
25698
25699 \begin_layout Plain Layout
25700 okular --unique
25701 \end_layout
25702
25703 \end_inset
25704
25705  in 
25706 \begin_inset Flex Noun
25707 status collapsed
25708
25709 \begin_layout Plain Layout
25710 Tools\SpecialChar menuseparator
25711 Preferences\SpecialChar menuseparator
25712 File Handling\SpecialChar menuseparator
25713 File
25714 \begin_inset space ~
25715 \end_inset
25716
25717 Formats
25718 \end_layout
25719
25720 \end_inset
25721
25722
25723 \end_layout
25724
25725 \end_inset
25726
25727 , qpdfview, and SumatraPDF
25728 \begin_inset Foot
25729 status collapsed
25730
25731 \begin_layout Plain Layout
25732 SumatraPDF can also use DDE commands through the external program CMCDDE
25733  — downloadable from 
25734 \begin_inset CommandInset href
25735 LatexCommand href
25736 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
25737 literal "false"
25738
25739 \end_inset
25740
25741
25742 \end_layout
25743
25744 \end_inset
25745
25746 .
25747  Others, such as evince
25748 \begin_inset Foot
25749 status collapsed
25750
25751 \begin_layout Plain Layout
25752 Forward search with evince can be achieved by means of third party helper
25753  scripts.
25754  Please refer to 
25755 \begin_inset CommandInset href
25756 LatexCommand href
25757 target "https://wiki.lyx.org/LyX/SyncTeX"
25758 literal "false"
25759
25760 \end_inset
25761
25762  for details.
25763 \end_layout
25764
25765 \end_inset
25766
25767 , require some extra tools in order to use forward search.
25768  While many of the widespread PDF viewers (most notably Adobe Reader) do
25769  not support forward search at all, some other viewers – e.
25770 \begin_inset space \thinspace{}
25771 \end_inset
25772
25773 g.
25774  xpdf – allow at least to reload the document and jump to a specific page
25775  of the file, so you can at least navigate 
25776 \begin_inset Quotes eld
25777 \end_inset
25778
25779 near
25780 \begin_inset Quotes erd
25781 \end_inset
25782
25783 .
25784  This latter functionality is provided by an external call of synctex (see
25785  the predefined example configurations).
25786  
25787 \end_layout
25788
25789 \begin_layout Standard
25790 Forward search works both with DVI and PDF output.
25791  \SpecialChar LyX
25792  simply checks which preview format you have used before (i.
25793 \begin_inset space \thinspace{}
25794 \end_inset
25795
25796 e., which format is already there in the temporary directory) and chooses
25797  the appropriate configuration for the respective format.
25798 \end_layout
25799
25800 \begin_layout Chapter
25801
25802 \change_deleted 564990737 1671097409
25803 Special Document Classes
25804 \change_unchanged
25805
25806 \end_layout
25807
25808 \begin_layout Section
25809
25810 \change_deleted 564990737 1669742044
25811 A&A Paper
25812 \end_layout
25813
25814 \begin_layout Standard
25815
25816 \change_deleted 564990737 1669742044
25817 by 
25818 \noun on
25819 Peter Sütterlin
25820 \end_layout
25821
25822 \begin_layout Subsection
25823
25824 \change_deleted 564990737 1669742044
25825 Introduction
25826 \end_layout
25827
25828 \begin_layout Standard
25829
25830 \change_deleted 564990737 1669742044
25831 This section describes how \SpecialChar LyX
25832  can be used to write articles for submission
25833  to the scientific journal 
25834 \emph on
25835 Astronomy and Astrophysics
25836 \emph default
25837  (
25838 \begin_inset Flex URL
25839 status collapsed
25840
25841 \begin_layout Plain Layout
25842
25843 https://www.aanda.org/
25844 \end_layout
25845
25846 \end_inset
25847
25848 ) using Version 5.01 of the document class 
25849 \family typewriter
25850 aa.cls
25851 \family default
25852 .
25853  This package can be downloaded from the ftp site
25854 \end_layout
25855
25856 \begin_layout Standard
25857
25858 \change_deleted 564990737 1669742044
25859 \begin_inset VSpace medskip
25860 \end_inset
25861
25862
25863 \end_layout
25864
25865 \begin_layout Standard
25866 \align center
25867
25868 \change_deleted 564990737 1669742044
25869 \begin_inset Flex URL
25870 status collapsed
25871
25872 \begin_layout Plain Layout
25873
25874 ftp://ftp.edpsciences.org/pub/aa/readme.html
25875 \end_layout
25876
25877 \end_inset
25878
25879
25880 \end_layout
25881
25882 \begin_layout Standard
25883
25884 \change_deleted 564990737 1669742044
25885 \begin_inset VSpace medskip
25886 \end_inset
25887
25888
25889 \end_layout
25890
25891 \begin_layout Standard
25892
25893 \change_deleted 564990737 1669742044
25894 A manual comes together with that package, and this text is not meant to
25895  replace the original manual but is merely a short guide in how to realize
25896  the correct form of your paper.
25897  
25898 \end_layout
25899
25900 \begin_layout Standard
25901
25902 \change_deleted 564990737 1669742044
25903 Please note that the publisher of the journal was changed from Springer
25904  to EDP Sciences starting January 1, 2001.
25905  That change involved also some slight changes to the style files, namely
25906  the removal of the thesaurus command.
25907  The \SpecialChar LyX
25908  class aa supports the newest version of these style files, V 5.01.
25909  If you have an older version installed, please upgrade.
25910  For compatibility, the old (version 4) layout has been kept as 
25911 \family sans
25912 article (A&A V4)
25913 \family default
25914 .
25915  Please refer to the comments in 
25916 \family typewriter
25917 \SpecialChar LyX
25918 Dir/layouts/aapaper.layout
25919 \family default
25920 .
25921 \end_layout
25922
25923 \begin_layout Subsection
25924
25925 \change_deleted 564990737 1669742044
25926 Getting started
25927 \end_layout
25928
25929 \begin_layout Standard
25930
25931 \change_deleted 564990737 1669742044
25932 It is recommended you start from the example template distributed with \SpecialChar LyX
25933 .
25934  If you are not using a template, note the following settings:
25935 \end_layout
25936
25937 \begin_layout Itemize
25938
25939 \change_deleted 564990737 1669742044
25940 Select 
25941 \family sans
25942 article (A&A)
25943 \family default
25944  in the 
25945 \family sans
25946 Document\SpecialChar menuseparator
25947 Settings
25948 \family default
25949  dialog (OK, that one was obvious).
25950 \end_layout
25951
25952 \begin_layout Itemize
25953
25954 \change_deleted 564990737 1669742044
25955 Don't change the option 
25956 \family sans
25957 Page
25958 \begin_inset space ~
25959 \end_inset
25960
25961 style
25962 \family default
25963 : Leave it set to 
25964 \family sans
25965 default
25966 \family default
25967 .
25968  The whole layout is done by the macros, you shouldn't change anything.
25969 \end_layout
25970
25971 \begin_layout Subsection
25972
25973 \change_deleted 564990737 1669742044
25974 The header block
25975 \end_layout
25976
25977 \begin_layout Standard
25978
25979 \change_deleted 564990737 1669742044
25980 First thing to enter is the header information.
25981  It consists of seven entries, of which some are optional.
25982  They are
25983 \end_layout
25984
25985 \begin_layout Itemize
25986
25987 \change_deleted 564990737 1669742044
25988
25989 \family sans
25990 Title
25991 \family default
25992 : [required] 
25993 \end_layout
25994
25995 \begin_layout Itemize
25996
25997 \change_deleted 564990737 1669742044
25998
25999 \family sans
26000 Subtitle
26001 \family default
26002 : [optional] 
26003 \end_layout
26004
26005 \begin_layout Itemize
26006
26007 \change_deleted 564990737 1669742044
26008
26009 \family sans
26010 Author
26011 \family default
26012 : [required]
26013 \end_layout
26014
26015 \begin_layout Itemize
26016
26017 \change_deleted 564990737 1669742044
26018
26019 \family sans
26020 Address
26021 \family default
26022 : [required]
26023 \end_layout
26024
26025 \begin_layout Itemize
26026
26027 \change_deleted 564990737 1669742044
26028
26029 \family sans
26030 Offprints
26031 \family default
26032 : [optional] if more than one author: whom to contact for offprint requests.
26033 \end_layout
26034
26035 \begin_layout Itemize
26036
26037 \change_deleted 564990737 1669742044
26038
26039 \family sans
26040 Mail
26041 \family default
26042 : [optional] mail address for contacts.
26043 \end_layout
26044
26045 \begin_layout Itemize
26046
26047 \change_deleted 564990737 1669742044
26048
26049 \family sans
26050 Date
26051 \family default
26052 : [required].
26053  Suggested format is 
26054 \family typewriter
26055 Received: <date>; Accepted <date> 
26056 \end_layout
26057
26058 \begin_layout Standard
26059
26060 \change_deleted 564990737 1669742044
26061 There is no need to issue the 
26062 \family typewriter
26063
26064 \backslash
26065 maketitle
26066 \family default
26067  command, this is done automatically by \SpecialChar LyX
26068  when the header is finished.
26069  Although the order of the single header entries doesn't matter it is advised
26070  to keep the above sequence, just to get the best optics and meets the layout
26071  of the real document.
26072 \end_layout
26073
26074 \begin_layout Standard
26075
26076 \change_deleted 564990737 1669742044
26077 If you want to place footnotes in the header block, e.
26078 \begin_inset space \thinspace{}
26079 \end_inset
26080
26081 g.
26082 \begin_inset space \space{}
26083 \end_inset
26084
26085 to state your present address, just use the standard footnote via the menu
26086  
26087 \family sans
26088 Insert\SpecialChar menuseparator
26089 Footnote.
26090
26091 \family default
26092  \SpecialChar LyX
26093  will automagically use the term 
26094 \family typewriter
26095
26096 \backslash
26097 thanks{}
26098 \family default
26099  in that case.
26100 \end_layout
26101
26102 \begin_layout Standard
26103
26104 \change_deleted 564990737 1669742044
26105 Under 
26106 \family sans
26107 Edit\SpecialChar menuseparator
26108 Text Style
26109 \family default
26110 , you'll find two insets which are relevant for the titling:
26111 \end_layout
26112
26113 \begin_layout Itemize
26114
26115 \change_deleted 564990737 1669742044
26116
26117 \family sans
26118 Institute
26119 \family typewriter
26120  
26121 \family default
26122 to mark corresponding author\SpecialChar breakableslash
26123 institute pairs.
26124  The institutes are numbered sequentially as they appear in the 
26125 \family sans
26126 Address
26127 \family default
26128  field, so you have to put a marker to each author.
26129 \end_layout
26130
26131 \begin_layout Itemize
26132
26133 \change_deleted 564990737 1669742044
26134
26135 \family sans
26136 Email
26137 \family default
26138  to supply an email address for fast contact.
26139 \end_layout
26140
26141 \begin_layout Standard
26142
26143 \change_deleted 564990737 1669742044
26144 In addition to these topics, the macros use one additional \SpecialChar LaTeX
26145  command that
26146  has no counterpart in \SpecialChar LyX
26147 :
26148 \end_layout
26149
26150 \begin_layout Itemize
26151
26152 \change_deleted 564990737 1669742044
26153
26154 \family typewriter
26155
26156 \backslash
26157 and
26158 \family default
26159  to separate different names for more than one author and institute, respectivel
26160 y.
26161 \end_layout
26162
26163 \begin_layout Standard
26164
26165 \change_deleted 564990737 1669742044
26166 The appropriate command has to be entered in \SpecialChar LyX
26167  and marked as \SpecialChar LaTeX
26168  code.
26169  See the examples.
26170  
26171 \end_layout
26172
26173 \begin_layout Subsection
26174
26175 \change_deleted 564990737 1669742044
26176 The abstract
26177 \end_layout
26178
26179 \begin_layout Standard
26180
26181 \change_deleted 564990737 1669742044
26182 The abstract should immediately follow the header block.
26183  With version 5 the abstract environment was changed to a command, and there
26184  is now a restriction to only one paragraph.
26185  In addition, it should contain an entry with the keywords.
26186  This is done via the paragraph style 
26187 \family sans
26188 Keywords
26189 \family default
26190 .
26191  Refer to the example paper.
26192 \end_layout
26193
26194 \begin_layout Subsection
26195
26196 \change_deleted 564990737 1669742044
26197 Supported environments
26198 \end_layout
26199
26200 \begin_layout Standard
26201
26202 \change_deleted 564990737 1669742044
26203 The A&A paper layout supports the following environments for structuring
26204  your text:
26205 \end_layout
26206
26207 \begin_layout Itemize
26208
26209 \change_deleted 564990737 1669742044
26210
26211 \family sans
26212 Standard
26213 \end_layout
26214
26215 \begin_layout Itemize
26216
26217 \change_deleted 564990737 1669742044
26218
26219 \family sans
26220 Section
26221 \end_layout
26222
26223 \begin_layout Itemize
26224
26225 \change_deleted 564990737 1669742044
26226
26227 \family sans
26228 Subsection
26229 \end_layout
26230
26231 \begin_layout Itemize
26232
26233 \change_deleted 564990737 1669742044
26234
26235 \family sans
26236 Subsubsection
26237 \end_layout
26238
26239 \begin_layout Itemize
26240
26241 \change_deleted 564990737 1669742044
26242
26243 \family sans
26244 Itemize
26245 \end_layout
26246
26247 \begin_layout Itemize
26248
26249 \change_deleted 564990737 1669742044
26250
26251 \family sans
26252 Enumerate
26253 \end_layout
26254
26255 \begin_layout Itemize
26256
26257 \change_deleted 564990737 1669742044
26258
26259 \family sans
26260 Description
26261 \end_layout
26262
26263 \begin_layout Itemize
26264
26265 \change_deleted 564990737 1669742044
26266
26267 \family sans
26268 Caption
26269 \end_layout
26270
26271 \begin_layout Itemize
26272
26273 \change_deleted 564990737 1669742044
26274
26275 \family sans
26276 Abstract
26277 \end_layout
26278
26279 \begin_layout Itemize
26280
26281 \change_deleted 564990737 1669742044
26282
26283 \family sans
26284 Acknowledgment
26285 \end_layout
26286
26287 \begin_layout Itemize
26288
26289 \change_deleted 564990737 1669742044
26290
26291 \family sans
26292 Bibliography
26293 \end_layout
26294
26295 \begin_layout Itemize
26296
26297 \change_deleted 564990737 1669742044
26298
26299 \family sans
26300 \SpecialChar LaTeX
26301
26302 \end_layout
26303
26304 \begin_layout Subsection
26305
26306 \change_deleted 564990737 1669742044
26307 Commands not supported by \SpecialChar LyX
26308
26309 \end_layout
26310
26311 \begin_layout Standard
26312
26313 \change_deleted 564990737 1669742044
26314 Some commands are not yet supported by the 
26315 \family sans
26316 paper (A&A)
26317 \family default
26318  layout for \SpecialChar LyX
26319 .
26320  Some have already been mentioned.
26321  For the sake of completeness, they are listed all together here:
26322 \end_layout
26323
26324 \begin_layout Itemize
26325
26326 \change_deleted 564990737 1669742044
26327
26328 \family typewriter
26329
26330 \backslash
26331 and
26332 \end_layout
26333
26334 \begin_layout Itemize
26335
26336 \change_deleted 564990737 1669742044
26337
26338 \family typewriter
26339
26340 \backslash
26341 authorrunning
26342 \end_layout
26343
26344 \begin_layout Itemize
26345
26346 \change_deleted 564990737 1669742044
26347
26348 \family typewriter
26349
26350 \backslash
26351 object{}
26352 \end_layout
26353
26354 \begin_layout Itemize
26355
26356 \change_deleted 564990737 1669742044
26357
26358 \family typewriter
26359
26360 \backslash
26361 titlerunning{}
26362 \end_layout
26363
26364 \begin_layout Standard
26365
26366 \change_deleted 564990737 1669742044
26367 If you want to use any of these commands, you have to enter them yourself.
26368  
26369 \series bold
26370 Do not forget to mark them as \SpecialChar LaTeX
26371  code!
26372 \end_layout
26373
26374 \begin_layout Subsection
26375
26376 \change_deleted 564990737 1669742044
26377 Figure and Table Floats
26378 \end_layout
26379
26380 \begin_layout Standard
26381
26382 \change_deleted 564990737 1669742044
26383 \SpecialChar LyX
26384  provides support for the necessary float environments 
26385 \family sans
26386 figure, figure*, table
26387 \family default
26388  and 
26389 \family sans
26390 table*
26391 \family default
26392 , therefore we won't tell much about it here.
26393  Refer to the 
26394 \emph on
26395 User's
26396 \begin_inset space ~
26397 \end_inset
26398
26399 Guide
26400 \emph default
26401 .
26402  Just remember that tables should be left-aligned.
26403  For that, select the table and change the alignment in 
26404 \family sans
26405 Edit\SpecialChar menuseparator
26406 Paragraph
26407 \begin_inset space ~
26408 \end_inset
26409
26410 Settings.
26411 \end_layout
26412
26413 \begin_layout Standard
26414
26415 \change_deleted 564990737 1669742044
26416 There is only one special thing: the figures with caption besides the figure.
26417  To create such a figure, you have to do the following:
26418 \end_layout
26419
26420 \begin_layout Enumerate
26421
26422 \change_deleted 564990737 1669742044
26423 Create a wide figure float: 
26424 \family sans
26425 Insert\SpecialChar menuseparator
26426 Float\SpecialChar menuseparator
26427 Figure
26428 \family default
26429 , then right click in the figure and select 
26430 \family sans
26431 Span
26432 \begin_inset space ~
26433 \end_inset
26434
26435 columns
26436 \family default
26437 .
26438 \end_layout
26439
26440 \begin_layout Enumerate
26441
26442 \change_deleted 564990737 1669742044
26443 Enter your caption text.
26444 \end_layout
26445
26446 \begin_layout Enumerate
26447
26448 \change_deleted 564990737 1669742044
26449 Press 
26450 \family sans
26451 Return
26452 \family default
26453  to move the cursor above the caption.
26454 \end_layout
26455
26456 \begin_layout Enumerate
26457
26458 \change_deleted 564990737 1669742044
26459 Insert your figure
26460 \end_layout
26461
26462 \begin_layout Enumerate
26463
26464 \change_deleted 564990737 1669742044
26465 Position the cursor behind the figure and insert a horizontal fill: 
26466 \family sans
26467 Insert\SpecialChar menuseparator
26468 Special
26469 \begin_inset space ~
26470 \end_inset
26471
26472 Character\SpecialChar menuseparator
26473 Horizontal
26474 \begin_inset space ~
26475 \end_inset
26476
26477 Fill
26478 \family default
26479 .
26480 \end_layout
26481
26482 \begin_layout Enumerate
26483
26484 \change_deleted 564990737 1669742044
26485 Switch to \SpecialChar LaTeX
26486  mode: 
26487 \family sans
26488 M-c
26489 \begin_inset space ~
26490 \end_inset
26491
26492 t
26493 \family default
26494 .
26495 \end_layout
26496
26497 \begin_layout Enumerate
26498
26499 \change_deleted 564990737 1669742044
26500 Enter 
26501 \family typewriter
26502
26503 \backslash
26504 parbox[b]{55mm}{
26505 \family default
26506 .
26507  
26508 \series bold
26509 Do not close the brace!
26510 \end_layout
26511
26512 \begin_layout Enumerate
26513
26514 \change_deleted 564990737 1669742044
26515 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
26516  mode and insert
26517  the closing brace: 
26518 \family sans
26519 M-c
26520 \begin_inset space ~
26521 \end_inset
26522
26523 t
26524 \family default
26525  
26526 \family typewriter
26527 }
26528 \family default
26529 .
26530 \end_layout
26531
26532 \begin_layout Standard
26533
26534 \change_deleted 564990737 1669742044
26535 Also, refer to the figures in the example paper.
26536 \end_layout
26537
26538 \begin_layout Subsection
26539
26540 \change_deleted 564990737 1669742044
26541 Referee layout
26542 \end_layout
26543
26544 \begin_layout Standard
26545
26546 \change_deleted 564990737 1669742044
26547 For submission, the paper has to be formated in a special double-spacing
26548  layout.
26549  For this purpose, you have to give the option 
26550 \family typewriter
26551 referee
26552 \family default
26553  to the document class.
26554  This must be done using the custom class options field in the 
26555 \family sans
26556 Document\SpecialChar menuseparator
26557 Settings
26558 \family default
26559  dialog.
26560  Just enter the string 
26561 \family typewriter
26562 referee
26563 \family default
26564  there.
26565 \end_layout
26566
26567 \begin_layout Subsection
26568
26569 \change_deleted 564990737 1669742044
26570 The example paper
26571 \end_layout
26572
26573 \begin_layout Standard
26574
26575 \change_deleted 564990737 1669742044
26576 The 
26577 \family sans
26578 Examples
26579 \family default
26580  directory contains an example paper written with \SpecialChar LyX
26581 .
26582  It is the example paper from the original macro package, translated to
26583  \SpecialChar LyX
26584 .
26585  Use it for inspiration, and compare the original \SpecialChar LaTeX
26586  code with \SpecialChar LyX
26587  way of writing.
26588 \end_layout
26589
26590 \begin_layout Section
26591
26592 \change_deleted 564990737 1671097429
26593 Dinbrief
26594 \end_layout
26595
26596 \begin_layout Standard
26597
26598 \change_deleted 564990737 1671097429
26599 The document class 
26600 \family sans
26601 dinbrief
26602 \family default
26603  can be used to type letters according to German conventions.
26604  A template file is included in 
26605 \family typewriter
26606 .../lyx/share/templates
26607 \family default
26608  for you to use as a starting point.
26609 \end_layout
26610
26611 \begin_layout Section
26612
26613 \change_deleted 564990737 1671097429
26614 Elsevier Journals
26615 \end_layout
26616
26617 \begin_layout Standard
26618
26619 \change_deleted 564990737 1671097429
26620 See the \SpecialChar LyX
26621  template file 
26622 \family typewriter
26623 elsarticle.lyx
26624 \family default
26625 .
26626  It contains all infos you need.
26627 \end_layout
26628
26629 \begin_layout Section
26630
26631 \change_deleted 564990737 1669755802
26632 ijmpc and ijmpd
26633 \end_layout
26634
26635 \begin_layout Standard
26636
26637 \change_deleted 564990737 1669755802
26638 by 
26639 \noun on
26640 Panayotis Papasotiriou
26641 \end_layout
26642
26643 \begin_layout Subsection
26644
26645 \change_deleted 564990737 1669755802
26646 Overview
26647 \end_layout
26648
26649 \begin_layout Standard
26650
26651 \change_deleted 564990737 1669755802
26652 The ijmpc package is a set of macros that facilitates electronic manuscript
26653  submission to the 
26654 \emph on
26655 International Journal of Modern Physics C
26656 \emph default
26657 .
26658  Similarly, the ijmpd package is for creating manuscripts to be submitted
26659  to the 
26660 \emph on
26661 International Journal of Modern Physics D
26662 \emph default
26663 .
26664  Both journals are published by World Scientific.
26665  The corresponding document classes are named 
26666 \family typewriter
26667 ws-ijmpc.cls
26668 \family default
26669  and 
26670 \family typewriter
26671 ws-ijmpd.cls
26672 \family default
26673 , respectively.
26674  These files, together with instructions for the authors, can be downloaded
26675  from the sites 
26676 \begin_inset Flex URL
26677 status collapsed
26678
26679 \begin_layout Plain Layout
26680
26681 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
26682 \end_layout
26683
26684 \end_inset
26685
26686  and 
26687 \begin_inset Flex URL
26688 status collapsed
26689
26690 \begin_layout Plain Layout
26691
26692 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
26693 \end_layout
26694
26695 \end_inset
26696
26697 .
26698  Both packages are modified versions of the standard 
26699 \begin_inset Quotes eld
26700 \end_inset
26701
26702 article
26703 \begin_inset Quotes erd
26704 \end_inset
26705
26706  package, and they are almost (but not exactly) identical.
26707  Most of their features are supported by \SpecialChar LyX
26708 .
26709  I have used \SpecialChar LyX
26710  successfully to write articles submitted to both journals
26711  without any problem.
26712 \end_layout
26713
26714 \begin_layout Subsection
26715
26716 \change_deleted 564990737 1669755802
26717 Writing a paper
26718 \end_layout
26719
26720 \begin_layout Standard
26721
26722 \change_deleted 564990737 1669755802
26723 As usual, the easiest way to write a paper is to start with a template.
26724  Click on 
26725 \family sans
26726 File\SpecialChar menuseparator
26727 New from
26728 \family default
26729  
26730 \family sans
26731 Template
26732 \family default
26733 , then choose the 
26734 \family typewriter
26735 ijmpc.lyx
26736 \family default
26737  or 
26738 \family typewriter
26739 ijmpd.lyx
26740 \family default
26741  template.
26742  This will give an (almost) empty document that includes the most common
26743  fields found in a manuscript.
26744  Simply overwrite the existing text (including the brackets, 
26745 \family typewriter
26746 <>
26747 \family default
26748 ) with your text.
26749  You should keep in mind the following remarks.
26750 \end_layout
26751
26752 \begin_layout Enumerate
26753
26754 \change_deleted 564990737 1669755802
26755 \SpecialChar LyX
26756  won't let you change the font size and the page style of the document,
26757  because such modifications are not allowed by both packages.
26758 \end_layout
26759
26760 \begin_layout Enumerate
26761
26762 \change_deleted 564990737 1669755802
26763 The language of the document should not be changed.
26764  Before previewing your paper, be sure that the babel package is not used.
26765  To do this, click on 
26766 \begin_inset Info
26767 type  "menu"
26768 arg   "dialog-show document"
26769 \end_inset
26770
26771  
26772 \family sans
26773 \SpecialChar menuseparator
26774 Language
26775 \family default
26776 , and select 
26777 \begin_inset Quotes eld
26778 \end_inset
26779
26780 None
26781 \begin_inset Quotes erd
26782 \end_inset
26783
26784  as 
26785 \family sans
26786 Language Package
26787 \family default
26788 .
26789 \end_layout
26790
26791 \begin_layout Enumerate
26792
26793 \change_deleted 564990737 1669755802
26794 The 
26795 \begin_inset Quotes eld
26796 \end_inset
26797
26798 Keywords
26799 \begin_inset Quotes erd
26800 \end_inset
26801
26802  style must be used to define keywords.
26803 \end_layout
26804
26805 \begin_layout Enumerate
26806
26807 \change_deleted 564990737 1669755802
26808 The ijmpc package provides a style named 
26809 \begin_inset Quotes eld
26810 \end_inset
26811
26812 Classification Codes
26813 \begin_inset Quotes erd
26814 \end_inset
26815
26816 , which can be used to define classification codes, such as PACS numbers.
26817  Note that this facility is not supported by the ijmpd package.
26818 \end_layout
26819
26820 \begin_layout Enumerate
26821
26822 \change_deleted 564990737 1669755802
26823 Several new environments are available: 
26824 \begin_inset Quotes eld
26825 \end_inset
26826
26827 Definition
26828 \begin_inset Quotes erd
26829 \end_inset
26830
26831
26832 \begin_inset Quotes eld
26833 \end_inset
26834
26835 Step
26836 \begin_inset Quotes erd
26837 \end_inset
26838
26839
26840 \begin_inset Quotes eld
26841 \end_inset
26842
26843 Example
26844 \begin_inset Quotes erd
26845 \end_inset
26846
26847
26848 \begin_inset Quotes eld
26849 \end_inset
26850
26851 Remark
26852 \begin_inset Quotes erd
26853 \end_inset
26854
26855
26856 \begin_inset Quotes eld
26857 \end_inset
26858
26859 Notation
26860 \begin_inset Quotes erd
26861 \end_inset
26862
26863
26864 \begin_inset Quotes eld
26865 \end_inset
26866
26867 Theorem
26868 \begin_inset Quotes erd
26869 \end_inset
26870
26871
26872 \begin_inset Quotes eld
26873 \end_inset
26874
26875 Proof
26876 \begin_inset Quotes erd
26877 \end_inset
26878
26879
26880 \begin_inset Quotes eld
26881 \end_inset
26882
26883 Corollary
26884 \begin_inset Quotes erd
26885 \end_inset
26886
26887
26888 \begin_inset Quotes eld
26889 \end_inset
26890
26891 Lemma
26892 \begin_inset Quotes erd
26893 \end_inset
26894
26895
26896 \begin_inset Quotes eld
26897 \end_inset
26898
26899 Proposition
26900 \begin_inset Quotes erd
26901 \end_inset
26902
26903
26904 \begin_inset Quotes eld
26905 \end_inset
26906
26907 Prop
26908 \begin_inset Quotes erd
26909 \end_inset
26910
26911
26912 \begin_inset Quotes eld
26913 \end_inset
26914
26915 Question
26916 \begin_inset Quotes erd
26917 \end_inset
26918
26919
26920 \begin_inset Quotes eld
26921 \end_inset
26922
26923 Claim
26924 \begin_inset Quotes erd
26925 \end_inset
26926
26927 , and 
26928 \begin_inset Quotes eld
26929 \end_inset
26930
26931 Conjecture
26932 \begin_inset Quotes erd
26933 \end_inset
26934
26935 .
26936  Their use is more or less obvious.
26937  \SpecialChar LyX
26938  supports all these environments; it will use the proper label, text style,
26939  and numbering scheme for each of them.
26940 \end_layout
26941
26942 \begin_layout Enumerate
26943
26944 \change_deleted 564990737 1669755802
26945 Both packages use basic citations; the natbib package should not be used.
26946  In \SpecialChar LyX
26947 , citation references are shown as usual; in the output, citations are
26948  shown as superscripts.
26949  If you want to use a citation as normal text, you should use the 
26950 \family typewriter
26951 refcite
26952 \family default
26953  command, e.
26954 \begin_inset space \thinspace{}
26955 \end_inset
26956
26957 g.
26958 \begin_inset space \space{}
26959 \end_inset
26960
26961
26962 \begin_inset Quotes eld
26963 \end_inset
26964
26965 See Ref.
26966 \begin_inset space \space{}
26967 \end_inset
26968
26969
26970 \family typewriter
26971
26972 \backslash
26973 refcite{key}
26974 \family default
26975
26976 \begin_inset Quotes erd
26977 \end_inset
26978
26979 .
26980 \end_layout
26981
26982 \begin_layout Enumerate
26983
26984 \change_deleted 564990737 1669755802
26985 There is no 
26986 \begin_inset Quotes eld
26987 \end_inset
26988
26989 Acknowledgments
26990 \begin_inset Quotes erd
26991 \end_inset
26992
26993  section in both packages.
26994  To put acknowledgments, just use the 
26995 \begin_inset Quotes eld
26996 \end_inset
26997
26998 Section*
26999 \begin_inset Quotes erd
27000 \end_inset
27001
27002  environment.
27003 \end_layout
27004
27005 \begin_layout Enumerate
27006
27007 \change_deleted 564990737 1669755802
27008 Appendices may be added to the paper, 
27009 \emph on
27010 after
27011 \emph default
27012  the Acknowledgments and 
27013 \shape italic
27014 before
27015 \shape default
27016  the References.
27017  \SpecialChar LyX
27018  provides a special environment, called 
27019 \begin_inset Quotes eld
27020 \end_inset
27021
27022 Appendices Section
27023 \begin_inset Quotes erd
27024 \end_inset
27025
27026  which marks the beginning of the appendices.
27027  This environment should be left blank; it just sends a \SpecialChar LaTeX
27028  command, but nothing
27029  is really printed.
27030  In \SpecialChar LyX
27031 , the word 
27032 \begin_inset Quotes eld
27033 \end_inset
27034
27035 Appendix
27036 \begin_inset Quotes erd
27037 \end_inset
27038
27039  is printed with blue letters, as a signal that all sections after that
27040  point are appendices.
27041  To write an appendix, use the 
27042 \begin_inset Quotes eld
27043 \end_inset
27044
27045 Appendix
27046 \begin_inset Quotes erd
27047 \end_inset
27048
27049  environment.
27050  \SpecialChar LyX
27051  will number each appendix with capital letters, as required by both journals.
27052  Note that 
27053 \begin_inset Quotes eld
27054 \end_inset
27055
27056 Appendices Section
27057 \begin_inset Quotes erd
27058 \end_inset
27059
27060  
27061 \emph on
27062 must
27063 \emph default
27064  be present before the first appendix; if not, all appendices will be numbered
27065  as normal sections in the output.
27066 \end_layout
27067
27068 \begin_layout Enumerate
27069
27070 \change_deleted 564990737 1669755802
27071 The ijmpc and the ijmpd packages use the 
27072 \family typewriter
27073 tbl
27074 \family default
27075  command to implement table captions.
27076  As a result, a table created by \SpecialChar LyX
27077  is printed correctly, but its caption
27078  is ignored.
27079  However, you can use some \SpecialChar TeX
27080  code to overcome this problem, so that captions
27081  are printed as expected.
27082  To do so, create a float table as usual, remove the caption, and replace
27083  it with the \SpecialChar TeX
27084  code 
27085 \family typewriter
27086
27087 \backslash
27088 tbl{
27089 \emph on
27090 your table caption
27091 \emph default
27092 }{
27093 \family default
27094  (sic); you must also the \SpecialChar TeX
27095  code 
27096 \family typewriter
27097 }
27098 \family default
27099  immediately after the tabular material.
27100  Study the example table included in the template files to see how this
27101  trick is implemented.
27102  Alternatively, If you need table captions, you should implement the whole
27103  table float in a 
27104 \family typewriter
27105 .tex
27106 \family default
27107  file, then include this file to the \SpecialChar LyX
27108  document (
27109 \family sans
27110 Insert\SpecialChar menuseparator
27111 File\SpecialChar menuseparator
27112 Child
27113 \begin_inset space ~
27114 \end_inset
27115
27116 Document
27117 \family default
27118 ).
27119  Details on how to create a table float can be found in the files 
27120 \family typewriter
27121 ws-ijmpc.tex
27122 \family default
27123  and 
27124 \family typewriter
27125 ws-ijmpd.tex
27126 \family default
27127 , included in the corresponding packages.
27128 \end_layout
27129
27130 \begin_layout Subsection
27131
27132 \change_deleted 564990737 1669755802
27133 Preparing a paper for submission
27134 \end_layout
27135
27136 \begin_layout Standard
27137
27138 \change_deleted 564990737 1669755802
27139 Before you submit your paper you must export the \SpecialChar LyX
27140  document as a \SpecialChar LaTeX
27141  file (
27142 \family sans
27143 File\SpecialChar menuseparator
27144 Export\SpecialChar menuseparator
27145 \SpecialChar LaTeX
27146
27147 \family default
27148 )
27149 \begin_inset Foot
27150 status open
27151
27152 \begin_layout Plain Layout
27153 Actually you have the choice between \SpecialChar LaTeX
27154  (plain) and pdflatex.
27155  If you intend to use pdflatex to prepare the paper, you should use the
27156  pdflatex option so that included graphics are converted to PDF format,
27157  ready for use by pdflatex.
27158 \end_layout
27159
27160 \end_inset
27161
27162 , then make the following changes to the resulting 
27163 \family typewriter
27164 .tex
27165 \family default
27166  file.
27167 \end_layout
27168
27169 \begin_layout Enumerate
27170
27171 \change_deleted 564990737 1669755802
27172 Remove the comment lines before the 
27173 \family typewriter
27174
27175 \backslash
27176 documentclass
27177 \family default
27178  command.
27179 \end_layout
27180
27181 \begin_layout Enumerate
27182
27183 \change_deleted 564990737 1669755802
27184 Remove everything between (and including) the 
27185 \family typewriter
27186
27187 \backslash
27188 makeatletter
27189 \family default
27190  and 
27191 \family typewriter
27192
27193 \backslash
27194 makeatother
27195 \family default
27196  commands, except for any commands you specifically put into the \SpecialChar LaTeX
27197  preamble.
27198 \end_layout
27199
27200 \begin_layout Standard
27201
27202 \change_deleted 564990737 1669755802
27203 The modified 
27204 \family typewriter
27205 .tex
27206 \family default
27207  file should be saved and processed through \SpecialChar LaTeX
27208  as many times as necessary.
27209  You may also want to check the resulting 
27210 \family typewriter
27211 .dvi
27212 \family default
27213  document.
27214 \change_unchanged
27215
27216 \end_layout
27217
27218 \begin_layout Section
27219
27220 \change_deleted 564990737 1669801478
27221 iopart
27222 \end_layout
27223
27224 \begin_layout Standard
27225
27226 \change_deleted 564990737 1669801478
27227 by 
27228 \noun on
27229 Uwe Stöhr
27230 \end_layout
27231
27232 \begin_layout Subsection
27233
27234 \change_deleted 564990737 1669801478
27235 Overview
27236 \end_layout
27237
27238 \begin_layout Standard
27239
27240 \change_deleted 564990737 1669801478
27241 The iopart package provides a document class to create electronic manuscript
27242  submission to the journals published by the Institute of Physics.
27243  Instructions for the authors how to create a paper using the iopart class
27244  can be downloaded together with the iopart package from the site 
27245 \begin_inset Flex URL
27246 status collapsed
27247
27248 \begin_layout Plain Layout
27249
27250 ftp://ftp.iop.org/pub/journals/latex2e
27251 \end_layout
27252
27253 \end_inset
27254
27255 .
27256 \end_layout
27257
27258 \begin_layout Subsection
27259
27260 \change_deleted 564990737 1669801478
27261 Writing a paper
27262 \end_layout
27263
27264 \begin_layout Standard
27265
27266 \change_deleted 564990737 1669801478
27267 The easiest way to write a paper is to start with the template 
27268 \emph on
27269 IOP-article.lyx
27270 \emph default
27271  that is available via 
27272 \family sans
27273 File\SpecialChar menuseparator
27274 New From Template
27275 \family default
27276  The template explains how to use the special text environments.
27277  Here are the most important advices:
27278 \end_layout
27279
27280 \begin_layout Itemize
27281
27282 \change_deleted 564990737 1669801478
27283 To be able to compile your document to a PDF, PS, or DVI, ensure that the
27284  no AMS packages are loaded in 
27285 \family sans
27286 Document\SpecialChar menuseparator
27287 Settings\SpecialChar menuseparator
27288 Math Options
27289 \family default
27290 !
27291 \end_layout
27292
27293 \begin_layout Itemize
27294
27295 \change_deleted 564990737 1669801478
27296
27297 \size normal
27298 The title environment defines the kind of your paper.
27299  So use one of the following environments for the title:
27300 \end_layout
27301
27302 \begin_deeper
27303 \begin_layout Itemize
27304
27305 \change_deleted 564990737 1669801478
27306
27307 \family sans
27308 \size normal
27309 Title
27310 \family default
27311  for a Paper
27312 \end_layout
27313
27314 \begin_layout Itemize
27315
27316 \change_deleted 564990737 1669801478
27317
27318 \family sans
27319 \size normal
27320 Review
27321 \family default
27322  for a Review
27323 \end_layout
27324
27325 \begin_layout Itemize
27326
27327 \change_deleted 564990737 1669801478
27328
27329 \family sans
27330 \size normal
27331 Topical
27332 \family default
27333  for a Topical review
27334 \end_layout
27335
27336 \begin_layout Itemize
27337
27338 \change_deleted 564990737 1669801478
27339
27340 \family sans
27341 \size normal
27342 Comment
27343 \family default
27344  for a Comment
27345 \end_layout
27346
27347 \begin_layout Itemize
27348
27349 \change_deleted 564990737 1669801478
27350
27351 \family sans
27352 \size normal
27353 Note
27354 \family default
27355  for a Note
27356 \end_layout
27357
27358 \begin_layout Itemize
27359
27360 \change_deleted 564990737 1669801478
27361
27362 \family sans
27363 \size normal
27364 Paper
27365 \family default
27366  for a Paper (same as Title)
27367 \end_layout
27368
27369 \begin_layout Itemize
27370
27371 \change_deleted 564990737 1669801478
27372
27373 \family sans
27374 \size normal
27375 Prelim
27376 \family default
27377  for a Preliminary communication
27378 \end_layout
27379
27380 \begin_layout Itemize
27381
27382 \change_deleted 564990737 1669801478
27383
27384 \family sans
27385 \size normal
27386 Rapid
27387 \family default
27388  for a Rapid communication
27389 \end_layout
27390
27391 \begin_layout Itemize
27392
27393 \change_deleted 564990737 1669801478
27394
27395 \family sans
27396 \size normal
27397 Letter
27398 \family default
27399  for a Letter to the editor
27400 \end_layout
27401
27402 \end_deeper
27403 \begin_layout Itemize
27404
27405 \change_deleted 564990737 1669801478
27406
27407 \size normal
27408 All title environments except of 
27409 \family sans
27410 Letter
27411 \family default
27412  can have an optional short title.
27413 \end_layout
27414
27415 \begin_layout Itemize
27416
27417 \change_deleted 564990737 1669801478
27418 There is a general title environment 
27419 \family sans
27420 Article
27421 \family default
27422  which is not directly supported by \SpecialChar LyX
27423 .
27424  This can be used as \SpecialChar TeX
27425  code when your document doesn't fit into one of the
27426  other title types.
27427 \end_layout
27428
27429 \begin_layout Standard
27430
27431 \change_deleted 564990737 1669801478
27432 For more informations like hints for special table and formula formatting,
27433  look at the IOP author guidelines.
27434 \change_unchanged
27435
27436 \end_layout
27437
27438 \begin_layout Section
27439
27440 \change_deleted 564990737 1670317155
27441 Kluwer
27442 \end_layout
27443
27444 \begin_layout Standard
27445
27446 \change_deleted 564990737 1670317155
27447 by 
27448 \noun on
27449 Panayotis Papasotiriou
27450 \end_layout
27451
27452 \begin_layout Subsection
27453
27454 \change_deleted 564990737 1670317155
27455 Overview
27456 \end_layout
27457
27458 \begin_layout Standard
27459
27460 \change_deleted 564990737 1670317155
27461 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
27462  that facilitates electronic manuscript submission to the journals they
27463  publish.
27464  Most known of them (at least in my domain of interest) are 
27465 \emph on
27466 Astrophysics and Space Science
27467 \emph default
27468  and 
27469 \emph on
27470 Solar Physics
27471 \emph default
27472 , but there are many others (see a complete list at 
27473 \begin_inset Flex URL
27474 status collapsed
27475
27476 \begin_layout Plain Layout
27477
27478 http://www.wkap.nl/jrnllist.htm/JRNLHOME
27479 \end_layout
27480
27481 \end_inset
27482
27483 ).
27484  The Kluwer package may be downloaded from the site 
27485 \begin_inset Flex URL
27486 status collapsed
27487
27488 \begin_layout Plain Layout
27489
27490 http://www.wkap.nl/kaphtml.htm/STYLEFILES
27491 \end_layout
27492
27493 \end_inset
27494
27495 .
27496  A complete user guide is contained in that package (but it can also be
27497  downloaded separately).
27498 \end_layout
27499
27500 \begin_layout Standard
27501
27502 \change_deleted 564990737 1670317155
27503 \SpecialChar LyX
27504  supports many features of the package but not everything.
27505  However, the \SpecialChar TeX
27506  code needed is reduced to some 
27507 \begin_inset Quotes eld
27508 \end_inset
27509
27510 peculiar
27511 \begin_inset Quotes erd
27512 \end_inset
27513
27514  commands of the package (see
27515 \begin_inset space ~
27516 \end_inset
27517
27518
27519 \begin_inset CommandInset ref
27520 LatexCommand ref
27521 reference "subsec:kluwer_peculiarities"
27522
27523 \end_inset
27524
27525 ).
27526  I have recently used \SpecialChar LyX
27527  to write an article submitted to the 
27528 \emph on
27529 Astrophysics and Space Science
27530 \emph default
27531  without any problem.
27532 \end_layout
27533
27534 \begin_layout Subsection
27535
27536 \change_deleted 564990737 1670317155
27537 Writing a paper
27538 \end_layout
27539
27540 \begin_layout Standard
27541
27542 \change_deleted 564990737 1670317155
27543 The easiest way to write a paper is to start with the Kluwer template file.
27544  Click on 
27545 \family sans
27546 File\SpecialChar menuseparator
27547 New from
27548 \family default
27549  
27550 \family sans
27551 Template
27552 \family default
27553 , then choose the 
27554 \family typewriter
27555 kluwer.lyx
27556 \family default
27557  template.
27558  This will give an (almost) empty document that includes the most common
27559  fields found in a manuscript and a short description of their use.
27560  As in most templates, simply overwrite the existing text (including the
27561  brackets, 
27562 \family typewriter
27563 <>
27564 \family default
27565 ) with the correct information.
27566 \end_layout
27567
27568 \begin_layout Subsection
27569
27570 \change_deleted 564990737 1670317155
27571 Preparing a paper for submission
27572 \end_layout
27573
27574 \begin_layout Standard
27575
27576 \change_deleted 564990737 1670317155
27577 As in the AAS\SpecialChar TeX
27578  package, before you submit your paper to a journal you must
27579  
27580 \begin_inset Quotes eld
27581 \end_inset
27582
27583 postprocess
27584 \begin_inset Quotes erd
27585 \end_inset
27586
27587  it as follows.
27588 \end_layout
27589
27590 \begin_layout Enumerate
27591
27592 \change_deleted 564990737 1670317155
27593 Export your paper as a \SpecialChar LaTeX
27594  file.
27595  To do this, click on 
27596 \family sans
27597 File\SpecialChar menuseparator
27598 Export\SpecialChar menuseparator
27599 \SpecialChar LaTeX
27600
27601 \family default
27602 .
27603  
27604 \end_layout
27605
27606 \begin_layout Enumerate
27607
27608 \change_deleted 564990737 1670317155
27609 Edit the resulting 
27610 \family typewriter
27611 .tex
27612 \family default
27613  file with a text editor and make the following changes
27614 \end_layout
27615
27616 \begin_deeper
27617 \begin_layout Enumerate
27618
27619 \change_deleted 564990737 1670317155
27620 remove the comment lines before the 
27621 \family typewriter
27622
27623 \backslash
27624 documentclass
27625 \family default
27626  command,
27627 \end_layout
27628
27629 \begin_layout Enumerate
27630
27631 \change_deleted 564990737 1670317155
27632 remove everything between (and including) the 
27633 \family typewriter
27634
27635 \backslash
27636 makeatletter
27637 \family default
27638  and 
27639 \family typewriter
27640
27641 \backslash
27642 makeatother
27643 \family default
27644  commands, except for any commands you specifically put into the \SpecialChar LaTeX
27645  preamble.
27646 \end_layout
27647
27648 \begin_layout Standard
27649
27650 \change_deleted 564990737 1670317155
27651 Save the resulting 
27652 \family typewriter
27653 .tex
27654 \family default
27655  file.
27656 \end_layout
27657
27658 \end_deeper
27659 \begin_layout Enumerate
27660
27661 \change_deleted 564990737 1670317155
27662 Run the 
27663 \family typewriter
27664 .tex
27665 \family default
27666  file through \SpecialChar LaTeX
27667  as many times as necessary (usually up to three).
27668 \end_layout
27669
27670 \begin_layout Enumerate
27671
27672 \change_deleted 564990737 1670317155
27673 View the resulting 
27674 \family typewriter
27675 .dvi
27676 \family default
27677  document using, e.
27678 \begin_inset space \thinspace{}
27679 \end_inset
27680
27681 g.
27682 \begin_inset space \space{}
27683 \end_inset
27684
27685
27686 \family sans
27687 xdvi
27688 \family default
27689 , and check if everything is OK (it should, if you didn't make any mistake).
27690 \end_layout
27691
27692 \begin_layout Subsection
27693
27694 \change_deleted 564990737 1670317155
27695 \begin_inset Quotes eld
27696 \end_inset
27697
27698 Peculiarities
27699 \begin_inset Quotes erd
27700 \end_inset
27701
27702  of the Kluwer package
27703 \begin_inset CommandInset label
27704 LatexCommand label
27705 name "subsec:kluwer_peculiarities"
27706
27707 \end_inset
27708
27709
27710 \end_layout
27711
27712 \begin_layout Standard
27713
27714 \change_deleted 564990737 1670317155
27715 The Kluwer package has the following 
27716 \begin_inset Quotes eld
27717 \end_inset
27718
27719 peculiarities
27720 \begin_inset Quotes erd
27721 \end_inset
27722
27723 .
27724 \end_layout
27725
27726 \begin_layout Enumerate
27727
27728 \change_deleted 564990737 1670317155
27729 It is possible to write multiple articles in the same \SpecialChar LaTeX
27730  file
27731 \begin_inset Foot
27732 status collapsed
27733
27734 \begin_layout Plain Layout
27735 I can't imagine any good reason to do this.
27736 \end_layout
27737
27738 \end_inset
27739
27740 .
27741  Each article must be included in the environment 
27742 \begin_inset Quotes eld
27743 \end_inset
27744
27745 article
27746 \begin_inset Quotes erd
27747 \end_inset
27748
27749 .
27750  Unfortunately, this environment cannot be omitted, even if you write just
27751  one article.
27752  Therefore, each article starts with the command 
27753 \family typewriter
27754
27755 \backslash
27756 begin{article}
27757 \family default
27758  and, obviously, ends with the command 
27759 \family typewriter
27760
27761 \backslash
27762 end{article}
27763 \family default
27764 .
27765  Although this can be implemented in \SpecialChar LyX
27766 , I didn't included it, since it looks
27767  ugly and can confuse the novice user.
27768  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
27769  code (the
27770  well-known 
27771 \begin_inset Quotes eld
27772 \end_inset
27773
27774 \SpecialChar TeX
27775  code
27776 \begin_inset Quotes erd
27777 \end_inset
27778
27779 ).
27780 \end_layout
27781
27782 \begin_layout Enumerate
27783
27784 \change_deleted 564990737 1670317155
27785 Information given at the beginning of the article (i.
27786 \begin_inset space \thinspace{}
27787 \end_inset
27788
27789 e.
27790 \begin_inset space \space{}
27791 \end_inset
27792
27793 title, subtitle, author, institution, running title, running author, abstract
27794  and keywords) must be included in an environment called 
27795 \begin_inset Quotes eld
27796 \end_inset
27797
27798 opening
27799 \begin_inset Quotes erd
27800 \end_inset
27801
27802 .
27803  This is not implemented in \SpecialChar LyX
27804 , so you must enter title, subtitle etc.
27805 \begin_inset space ~
27806 \end_inset
27807
27808 between two \SpecialChar TeX
27809  code lines (
27810 \family typewriter
27811
27812 \backslash
27813 begin{opening}
27814 \family default
27815  and 
27816 \family typewriter
27817
27818 \backslash
27819 end{opening}
27820 \family default
27821 ).
27822 \end_layout
27823
27824 \begin_layout Enumerate
27825
27826 \change_deleted 564990737 1670317155
27827 According to the user manual, the label of each bibliography item must be
27828  written as 
27829 \family typewriter
27830
27831 \backslash
27832 protect
27833 \backslash
27834 citeauthoryear{
27835 \family default
27836 \emph on
27837 author(s)
27838 \family typewriter
27839 \emph default
27840 }{
27841 \family default
27842 \emph on
27843 year
27844 \family typewriter
27845 \emph default
27846 }
27847 \family default
27848 .
27849 \end_layout
27850
27851 \begin_layout Standard
27852
27853 \change_deleted 564990737 1670317155
27854 The 
27855 \family typewriter
27856 kluwer.lyx
27857 \family default
27858  template takes care of all these 
27859 \begin_inset Quotes eld
27860 \end_inset
27861
27862 peculiarities
27863 \begin_inset Quotes erd
27864 \end_inset
27865
27866 .
27867  If you start a new paper using this template you don't need to do anything
27868  special.
27869  Just 
27870 \end_layout
27871
27872 \begin_layout Enumerate
27873
27874 \change_deleted 564990737 1670317155
27875 don't delete the \SpecialChar TeX
27876  code included in the template, and
27877 \end_layout
27878
27879 \begin_layout Enumerate
27880
27881 \change_deleted 564990737 1670317155
27882 copy the example bibliography item included in the template and modify it
27883  as necessary to enter new bibliography items.
27884 \end_layout
27885
27886 \begin_layout Section
27887
27888 \change_deleted 564990737 1671097446
27889 Paper
27890 \end_layout
27891
27892 \begin_layout Standard
27893
27894 \change_deleted 564990737 1671097446
27895 The document class 
27896 \family sans
27897 paper
27898 \family default
27899  provides an alternative to the standard 
27900 \family sans
27901 article
27902 \family default
27903  class.
27904  It provides similar functionality, but you might prefer this layout with
27905  sans serif sections, headings, and more.
27906 \end_layout
27907
27908 \begin_layout Section
27909
27910 \change_deleted 564990737 1671097446
27911 Springer Journals (
27912 \family sans
27913 svjour
27914 \family default
27915 )
27916 \end_layout
27917
27918 \begin_layout Standard
27919
27920 \change_deleted 564990737 1671097446
27921 by 
27922 \noun on
27923 Martin Vermeer
27924 \end_layout
27925
27926 \begin_layout Subsection
27927
27928 \change_deleted 564990737 1671097446
27929 Description
27930 \end_layout
27931
27932 \begin_layout Standard
27933
27934 \change_deleted 564990737 1671097446
27935 These are the layout files for some of the journal formats used by Springer
27936  Verlag and listed on 
27937 \begin_inset Flex URL
27938 status collapsed
27939
27940 \begin_layout Plain Layout
27941
27942 http://www.springer.de/author/tex/help-journals.html
27943 \end_layout
27944
27945 \end_inset
27946
27947 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
27948  now!).
27949  It is a modular system: the things common to all journals are implemented
27950  in 
27951 \family typewriter
27952 svjour.inc
27953 \family default
27954 , which journal-specific layout files (such as, e.
27955 \begin_inset space \thinspace{}
27956 \end_inset
27957
27958 g.
27959 \begin_inset space \space{}
27960 \end_inset
27961
27962
27963 \family typewriter
27964 svjog.layout
27965 \family default
27966  for Journal of Geodesy) can include.
27967 \end_layout
27968
27969 \begin_layout Standard
27970
27971 \change_deleted 564990737 1671097446
27972 This means that implementing support for any other Springer journal on this
27973  list is as simple as writing your own 
27974 \family typewriter
27975 sv
27976 \family default
27977 <myjournal>
27978 \family typewriter
27979 .layout
27980 \family default
27981  file following the outline given in 
27982 \family typewriter
27983 svjog.layout
27984 \family default
27985 .
27986  
27987 \end_layout
27988
27989 \begin_layout Standard
27990
27991 \change_deleted 564990737 1671097446
27992 It is reasonably well tested only for the Journal of Geodesy.
27993  
27994 \family typewriter
27995 svjour
27996 \family default
27997  and 
27998 \family typewriter
27999 svjog
28000 \family default
28001  come with the standard \SpecialChar LyX
28002  distribution.
28003  Install the relevant class file (downloaded from Springer) in a proper
28004  directory, reconfigure \SpecialChar LaTeX
28005  (in the te\SpecialChar TeX
28006  case by running 
28007 \family typewriter
28008 texhash
28009 \family default
28010 , as root if necessary — doesn't \SpecialChar LyX
28011  take care of this?), reconfigure \SpecialChar LyX
28012  and
28013  it should work.
28014 \end_layout
28015
28016 \begin_layout Subsection
28017
28018 \change_deleted 564990737 1671097446
28019 New styles
28020 \end_layout
28021
28022 \begin_layout Standard
28023
28024 \change_deleted 564990737 1671097446
28025 A large number of theorem-like styles — 
28026 \family sans
28027 Claim, Conjecture,
28028 \family default
28029  
28030 \family sans
28031 \SpecialChar ldots
28032 Theorem
28033 \family default
28034 .
28035 \end_layout
28036
28037 \begin_layout Standard
28038
28039 \change_deleted 564990737 1671097446
28040
28041 \family sans
28042 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
28043 _Title, Author_Running, Institute,
28044  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
28045 \family default
28046 .
28047  See the Springer class file documentation for details.
28048 \end_layout
28049
28050 \begin_layout Subsection
28051
28052 \change_deleted 564990737 1671097446
28053 Supported journals
28054 \end_layout
28055
28056 \begin_layout Itemize
28057
28058 \change_deleted 564990737 1671097446
28059
28060 \emph on
28061 Journal of Geodesy
28062 \emph default
28063
28064 \family typewriter
28065 svjog.layout
28066 \family default
28067  — Martin Vermeer
28068 \end_layout
28069
28070 \begin_layout Itemize
28071
28072 \change_deleted 564990737 1671097446
28073
28074 \emph on
28075 Probability Theory and Related Fields
28076 \emph default
28077
28078 \family typewriter
28079 svprobth.layout
28080 \family default
28081  — Jean-Marc Lasgouttes
28082 \end_layout
28083
28084 \begin_layout Standard
28085
28086 \change_deleted 564990737 1671097446
28087 Add your own, it isn't so hard!
28088 \end_layout
28089
28090 \begin_layout Subsection
28091
28092 \change_deleted 564990737 1671097446
28093 Credits
28094 \end_layout
28095
28096 \begin_layout Standard
28097
28098 \change_deleted 564990737 1671097446
28099 These files are partly based on the older 
28100 \family typewriter
28101 ejour2.layout
28102 \family default
28103 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
28104  2.09 style
28105  file from Springer.
28106  All this, and the 
28107 \family typewriter
28108 ejour2
28109 \family default
28110  layout, are now defunct.
28111  Jean-Marc Lasgouttes helped out big in making me find my way around the
28112  \SpecialChar LyX
28113  layout file mechanism.
28114 \end_layout
28115
28116 \begin_layout Subsection
28117
28118 \change_deleted 564990737 1671097446
28119 Bugs
28120 \end_layout
28121
28122 \begin_layout Standard
28123
28124 \change_deleted 564990737 1671097446
28125 Probably.
28126  But probably less than in the old hacked-\SpecialChar LaTeX
28127  
28128 \family typewriter
28129 ejour2
28130 \family default
28131 .
28132 \end_layout
28133
28134 \begin_layout Chapter
28135 \SpecialChar LyX
28136  Features needing Extra Software
28137 \end_layout
28138
28139 \begin_layout Section
28140 Checking \SpecialChar TeX
28141
28142 \end_layout
28143
28144 \begin_layout Standard
28145 by 
28146 \noun on
28147 Asger Alstrup
28148 \end_layout
28149
28150 \begin_layout Subsection
28151 Introduction
28152 \end_layout
28153
28154 \begin_layout Standard
28155 If you have the 
28156 \family typewriter
28157 chktex
28158 \family default
28159  program installed
28160 \begin_inset Foot
28161 status collapsed
28162
28163 \begin_layout Plain Layout
28164
28165 \family typewriter
28166 chktex
28167 \family default
28168  is not yet available when you are using the \SpecialChar LaTeX
28169  distribution MiK\SpecialChar TeX
28170 .
28171 \end_layout
28172
28173 \end_inset
28174
28175 , you'll find in the 
28176 \family sans
28177 Tools
28178 \family default
28179  menu the entry: 
28180 \family sans
28181 Check
28182 \begin_inset space ~
28183 \end_inset
28184
28185 TeX
28186 \family default
28187 .
28188  You can get 
28189 \family typewriter
28190 chktex
28191 \family default
28192  from CTAN,
28193 \begin_inset Newline newline
28194 \end_inset
28195
28196
28197 \begin_inset CommandInset href
28198 LatexCommand href
28199 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
28200 literal "false"
28201
28202 \end_inset
28203
28204 .
28205 \end_layout
28206
28207 \begin_layout Standard
28208 The 
28209 \family sans
28210 Chk\SpecialChar TeX
28211
28212 \family default
28213  package is a program that was written by 
28214 \begin_inset Flex Noun
28215 status collapsed
28216
28217 \begin_layout Plain Layout
28218 Jens T.
28219 \begin_inset space ~
28220 \end_inset
28221
28222 Berger Thielemann
28223 \end_layout
28224
28225 \end_inset
28226
28227  in frustration because some constructs in \SpecialChar LaTeX
28228  are sometimes non-intuitive,
28229  and easy to forget.
28230  The program runs over your \SpecialChar LaTeX
28231  file, checks the integrity of the file, and
28232  flags some common errors.
28233  In other technical words, it is 
28234 \family typewriter
28235 lint
28236 \family default
28237  for \SpecialChar LaTeX
28238 .
28239 \end_layout
28240
28241 \begin_layout Standard
28242 Well, what is a syntax checker doing in \SpecialChar LyX
28243  which is supposed to produce correct
28244  \SpecialChar LaTeX
28245  anyways? The answer is simple: Just as 
28246 \family typewriter
28247 Lint
28248 \family default
28249  not only checks the 
28250 \emph on
28251 syntax
28252 \emph default
28253  of C programs, but also does 
28254 \emph on
28255 semantic
28256 \emph default
28257  checks for type-errors, 
28258 \family sans
28259 Chk\SpecialChar TeX
28260
28261 \family default
28262  catches some common 
28263 \emph on
28264 typographic
28265 \emph default
28266  errors, in addition to the syntactical ones.
28267  Specifically, 
28268 \family sans
28269 Chk\SpecialChar TeX
28270
28271 \family default
28272  is capable of detecting several common errors, such as
28273 \end_layout
28274
28275 \begin_layout Itemize
28276 Ellipsis detection:
28277 \begin_inset Newline newline
28278 \end_inset
28279
28280 Use \SpecialChar ldots
28281  instead of ...
28282 \end_layout
28283
28284 \begin_layout Itemize
28285 No space in front of/after parenthesis:
28286 \begin_inset Newline newline
28287 \end_inset
28288
28289 ( wrong spacing )
28290 \end_layout
28291
28292 \begin_layout Itemize
28293 Enforcement of normal space after common abbreviations:
28294 \begin_inset Newline newline
28295 \end_inset
28296
28297 e.
28298 \begin_inset space \thinspace{}
28299 \end_inset
28300
28301 g.
28302 \begin_inset space \space{}
28303 \end_inset
28304
28305 is too wide spacing.
28306 \end_layout
28307
28308 \begin_layout Itemize
28309 Enforcement of end-of-sentence space when the last sentence ends with a
28310  capital letter:
28311 \begin_inset Newline newline
28312 \end_inset
28313
28314 This is a TEST.
28315  And this is wrong spacing.
28316 \end_layout
28317
28318 \begin_layout Itemize
28319 Space in front of labels and similar commands:
28320 \begin_inset Newline newline
28321 \end_inset
28322
28323 The label should stick right up to the text to avoid falling to a wrong
28324  page.
28325  
28326 \begin_inset CommandInset label
28327 LatexCommand label
28328 name "sec:chktex"
28329
28330 \end_inset
28331
28332  
28333 \begin_inset Foot
28334 status collapsed
28335
28336 \begin_layout Plain Layout
28337 This footnote is in danger of falling off to a wrong page
28338 \end_layout
28339
28340 \end_inset
28341
28342  The label is separated too much.
28343 \end_layout
28344
28345 \begin_layout Itemize
28346 Space in front of references, instead of hard spaces:
28347 \begin_inset Newline newline
28348 \end_inset
28349
28350 If you have bad luck, the text will break right between the referenced text
28351  and reference number, and that's a pity.
28352  See section 
28353 \begin_inset CommandInset ref
28354 LatexCommand ref
28355 reference "sec:chktex"
28356
28357 \end_inset
28358
28359 .
28360 \end_layout
28361
28362 \begin_layout Itemize
28363 Use of 
28364 \begin_inset Quotes eld
28365 \end_inset
28366
28367 x
28368 \begin_inset Quotes erd
28369 \end_inset
28370
28371  instead of 
28372 \begin_inset Formula $\times$
28373 \end_inset
28374
28375  between numbers:
28376 \begin_inset Newline newline
28377 \end_inset
28378
28379 2x2 looks cheap compared to 
28380 \begin_inset Formula $2\times2$
28381 \end_inset
28382
28383 .
28384 \end_layout
28385
28386 \begin_layout Standard
28387 and more \SpecialChar ldots
28388  It is an invaluable tool when you are 
28389 \begin_inset Quotes eld
28390 \end_inset
28391
28392 finishing up
28393 \begin_inset Quotes erd
28394 \end_inset
28395
28396  your document before printing, and you should run it right after the obligatory
28397  spelling check, and before you go fine tuning the typesetting.
28398 \end_layout
28399
28400 \begin_layout Subsection
28401 How to use it
28402 \end_layout
28403
28404 \begin_layout Standard
28405 If you have the program installed, usage is as simple as choosing 
28406 \family sans
28407 Tools\SpecialChar menuseparator
28408 Check
28409 \begin_inset space ~
28410 \end_inset
28411
28412 TeX
28413 \family default
28414 .
28415  This will make \SpecialChar LyX
28416  generate a \SpecialChar LaTeX
28417  file of your document, start 
28418 \family sans
28419 Chk\SpecialChar TeX
28420
28421 \family default
28422  to check it, and then make \SpecialChar LyX
28423  insert 
28424 \begin_inset Quotes eld
28425 \end_inset
28426
28427 error boxes
28428 \begin_inset Quotes erd
28429 \end_inset
28430
28431  with the warnings from 
28432 \family sans
28433 Chk\SpecialChar TeX
28434
28435 \family default
28436 , if there were any.
28437  The warnings will be placed close to the point of the mistake, and you
28438  can quickly find them by using the 
28439 \family sans
28440 Navigate\SpecialChar menuseparator
28441 Error
28442 \family default
28443  menu item, or the shortcut key 
28444 \family sans
28445 C-g
28446 \family default
28447  from the default 
28448 \family typewriter
28449 cua
28450 \family default
28451  bind file.
28452  Open the error boxes by clicking on them with the mouse, or use the shortcut
28453  key 
28454 \family sans
28455 C-i
28456 \family default
28457  from 
28458 \family typewriter
28459 cua
28460 \family default
28461  bindings, or the corresponding 
28462 \family sans
28463 C-o
28464 \family default
28465  for the alternate 
28466 \family typewriter
28467 emacs
28468 \family default
28469  bind file.
28470  Read the warning and correct the mistake, if it is a mistake.
28471  If you have trouble understanding what the warning is about, you can safely
28472  ignore it.
28473  Remember that there is a hidden layer between the document on screen and
28474  the technical details in invoking 
28475 \family sans
28476 Chk\SpecialChar TeX
28477
28478 \family default
28479 , and this gap can make some warnings seem arcane or just plain silly.
28480 \end_layout
28481
28482 \begin_layout Standard
28483 This document is an excellent testing bed for the feature, and it should
28484  provide quite a few warnings for you to fiddle with.
28485  Since computers are only so smart, expect most of the warnings to be false
28486  alarms, though.
28487 \end_layout
28488
28489 \begin_layout Subsection
28490 How to fine tune it
28491 \end_layout
28492
28493 \begin_layout Standard
28494 Sometimes, you'll find that 
28495 \family sans
28496 Chk\SpecialChar TeX
28497
28498 \family default
28499  makes more noise than suits your mood.
28500  Then you can choose not to use it, wait until your mood changes, or try
28501  to customize 
28502 \family sans
28503 Chk\SpecialChar TeX
28504
28505 \family default
28506  to get better along with you.
28507 \end_layout
28508
28509 \begin_layout Standard
28510 Although 
28511 \family sans
28512 Chk\SpecialChar TeX
28513
28514 \family default
28515  
28516 \emph on
28517 is
28518 \emph default
28519  very configurable and extensible, you should not expect to solve all problems
28520  with 
28521 \family sans
28522 Chk\SpecialChar TeX
28523
28524 \family default
28525  in \SpecialChar LyX
28526  this way.
28527  Since \SpecialChar LyX
28528  has to generate a somewhat special \SpecialChar LaTeX
28529  file to be able to match the
28530  line numbers from the 
28531 \family sans
28532 Chk\SpecialChar TeX
28533
28534 \family default
28535  output
28536 \begin_inset Foot
28537 status collapsed
28538
28539 \begin_layout Plain Layout
28540 You can inspect the specific output from 
28541 \family sans
28542 chktex
28543 \family default
28544  by using 
28545 \family sans
28546 Document\SpecialChar menuseparator
28547 \SpecialChar LaTeX
28548
28549 \begin_inset space ~
28550 \end_inset
28551
28552 Log
28553 \family default
28554  right after a 
28555 \family sans
28556 chktex
28557 \family default
28558  run.
28559 \end_layout
28560
28561 \end_inset
28562
28563  to the internal document structure, some of the warnings will not appear
28564  correctly.
28565  There are two things you can do about this:
28566 \end_layout
28567
28568 \begin_layout Itemize
28569 Fine tune the 
28570 \family sans
28571 Chk\SpecialChar TeX
28572
28573 \family default
28574  invocation command line in 
28575 \begin_inset Flex Noun
28576 status collapsed
28577
28578 \begin_layout Plain Layout
28579 Tools\SpecialChar menuseparator
28580 Preferences\SpecialChar menuseparator
28581 Output\SpecialChar menuseparator
28582 LaTeX\SpecialChar menuseparator
28583 CheckTeX command
28584 \end_layout
28585
28586 \end_inset
28587
28588 , or the global 
28589 \family sans
28590 Chk\SpecialChar TeX
28591
28592 \family default
28593  installation configuration file (usually with the file 
28594 \family typewriter
28595 chktexrc
28596 \family default
28597 ).
28598  See below to learn what warnings can be enabled and disabled on the command
28599  line.
28600 \end_layout
28601
28602 \begin_layout Itemize
28603 Export your document as a raw \SpecialChar LaTeX
28604  file using 
28605 \family sans
28606 File\SpecialChar menuseparator
28607 Export\SpecialChar menuseparator
28608 \SpecialChar LaTeX
28609
28610 \family default
28611  and run 
28612 \family typewriter
28613 chktex
28614 \family default
28615  manually on that.
28616  Invoked in this way, it can be a hassle to find the corresponding place
28617  in the document inside \SpecialChar LyX
28618 , but with a little patience, you should be able
28619  to do it.
28620 \end_layout
28621
28622 \begin_layout Standard
28623 Here follows the warning messages that can be enabled and disabled in 
28624 \family sans
28625 Preferences
28626 \family default
28627 .
28628  Use 
28629 \family typewriter
28630 -n#
28631 \family default
28632  to disable a warning, and 
28633 \family typewriter
28634 -w#
28635 \family default
28636  to enable a warning.
28637  The emphasized entries are disabled by default, because the default is
28638  "
28639 \family typewriter
28640 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
28641 \family default
28642 ".
28643 \end_layout
28644
28645 \begin_layout Standard
28646 Notice that you should only use the options that enable and disable warnings,
28647  because \SpecialChar LyX
28648  relies on some of the other command line parameters to be set
28649  in a specific way to have a chance to communicate with 
28650 \family typewriter
28651 chktex
28652 \family default
28653 .
28654 \end_layout
28655
28656 \begin_layout Enumerate
28657
28658 \size small
28659 \emph on
28660 Command terminated with space.
28661 \end_layout
28662
28663 \begin_layout Enumerate
28664
28665 \size small
28666 Non-breaking space (
28667 \begin_inset Quotes eld
28668 \end_inset
28669
28670
28671 \family typewriter
28672 ~
28673 \family default
28674
28675 \begin_inset Quotes erd
28676 \end_inset
28677
28678 ) should have been used.
28679 \end_layout
28680
28681 \begin_layout Enumerate
28682
28683 \size small
28684 \emph on
28685 You should enclose the previous parenthesis with 
28686 \begin_inset Quotes eld
28687 \end_inset
28688
28689
28690 \family typewriter
28691 {}
28692 \family default
28693
28694 \begin_inset Quotes erd
28695 \end_inset
28696
28697 .
28698 \end_layout
28699
28700 \begin_layout Enumerate
28701
28702 \size small
28703 Italic correction (
28704 \begin_inset Quotes eld
28705 \end_inset
28706
28707
28708 \family typewriter
28709
28710 \backslash
28711 /
28712 \family default
28713
28714 \begin_inset Quotes erd
28715 \end_inset
28716
28717 ) found in non-italic buffer.
28718 \end_layout
28719
28720 \begin_layout Enumerate
28721
28722 \size small
28723 Italic correction (
28724 \begin_inset Quotes eld
28725 \end_inset
28726
28727
28728 \family typewriter
28729
28730 \backslash
28731 /
28732 \family default
28733
28734 \begin_inset Quotes erd
28735 \end_inset
28736
28737 ) found more than once.
28738 \end_layout
28739
28740 \begin_layout Enumerate
28741
28742 \size small
28743 \emph on
28744 No italic correction (
28745 \begin_inset Quotes eld
28746 \end_inset
28747
28748
28749 \family typewriter
28750
28751 \backslash
28752 /
28753 \family default
28754
28755 \begin_inset Quotes erd
28756 \end_inset
28757
28758 ) found.
28759 \end_layout
28760
28761 \begin_layout Enumerate
28762
28763 \size small
28764 Accent command 
28765 \begin_inset Quotes eld
28766 \end_inset
28767
28768
28769 \family typewriter
28770 cmd
28771 \family default
28772
28773 \begin_inset Quotes erd
28774 \end_inset
28775
28776  needs use of 
28777 \begin_inset Quotes eld
28778 \end_inset
28779
28780
28781 \family typewriter
28782 cmd
28783 \family default
28784
28785 \begin_inset Quotes erd
28786 \end_inset
28787
28788 .
28789 \end_layout
28790
28791 \begin_layout Enumerate
28792
28793 \size small
28794 Wrong length of dash may have been used.
28795 \end_layout
28796
28797 \begin_layout Enumerate
28798
28799 \size small
28800 \emph on
28801 \begin_inset Quotes eld
28802 \end_inset
28803
28804
28805 \family typewriter
28806 %s
28807 \family default
28808
28809 \begin_inset Quotes erd
28810 \end_inset
28811
28812  expected, found 
28813 \begin_inset Quotes eld
28814 \end_inset
28815
28816
28817 \family typewriter
28818 %s
28819 \family default
28820
28821 \begin_inset Quotes erd
28822 \end_inset
28823
28824 .
28825 \end_layout
28826
28827 \begin_layout Enumerate
28828
28829 \size small
28830 Solo 
28831 \begin_inset Quotes eld
28832 \end_inset
28833
28834
28835 \family typewriter
28836 %s
28837 \family default
28838
28839 \begin_inset Quotes erd
28840 \end_inset
28841
28842  found.
28843 \end_layout
28844
28845 \begin_layout Enumerate
28846
28847 \size small
28848 You should use 
28849 \begin_inset Quotes eld
28850 \end_inset
28851
28852
28853 \family typewriter
28854 %s
28855 \family default
28856
28857 \begin_inset Quotes erd
28858 \end_inset
28859
28860  to achieve an ellipsis.
28861 \end_layout
28862
28863 \begin_layout Enumerate
28864
28865 \size small
28866 Inter-word spacing (
28867 \begin_inset Quotes eld
28868 \end_inset
28869
28870
28871 \family typewriter
28872
28873 \backslash
28874
28875 \family default
28876  
28877 \begin_inset Quotes eld
28878 \end_inset
28879
28880 ) should perhaps be used.
28881 \end_layout
28882
28883 \begin_layout Enumerate
28884
28885 \size small
28886 Inter-sentence spacing (
28887 \begin_inset Quotes eld
28888 \end_inset
28889
28890
28891 \family typewriter
28892
28893 \backslash
28894 @
28895 \family default
28896
28897 \begin_inset Quotes erd
28898 \end_inset
28899
28900 ) should perhaps be used.
28901 \end_layout
28902
28903 \begin_layout Enumerate
28904
28905 \size small
28906 Could not find argument for command.
28907 \end_layout
28908
28909 \begin_layout Enumerate
28910
28911 \size small
28912 No match found for 
28913 \begin_inset Quotes eld
28914 \end_inset
28915
28916
28917 \family typewriter
28918 %s
28919 \family default
28920
28921 \begin_inset Quotes erd
28922 \end_inset
28923
28924 .
28925 \end_layout
28926
28927 \begin_layout Enumerate
28928
28929 \size small
28930 Math mode still on at end of \SpecialChar LaTeX
28931  file.
28932 \end_layout
28933
28934 \begin_layout Enumerate
28935
28936 \size small
28937 Number of 
28938 \begin_inset Quotes eld
28939 \end_inset
28940
28941
28942 \family typewriter
28943 char
28944 \family default
28945
28946 \begin_inset Quotes erd
28947 \end_inset
28948
28949  doesn't match the number of 
28950 \begin_inset Quotes eld
28951 \end_inset
28952
28953
28954 \family typewriter
28955 char
28956 \family default
28957
28958 \begin_inset Quotes erd
28959 \end_inset
28960
28961 .
28962 \end_layout
28963
28964 \begin_layout Enumerate
28965
28966 \size small
28967 You should use either 
28968 \family typewriter
28969
28970 \begin_inset Quotes eld
28971 \end_inset
28972
28973
28974 \family default
28975  or 
28976 \family typewriter
28977
28978 \begin_inset Quotes erd
28979 \end_inset
28980
28981
28982 \family default
28983  as an alternative to 
28984 \begin_inset Quotes eld
28985 \end_inset
28986
28987
28988 \family typewriter
28989 "
28990 \family default
28991
28992 \begin_inset Quotes erd
28993 \end_inset
28994
28995 .
28996 \end_layout
28997
28998 \begin_layout Enumerate
28999
29000 \size small
29001 You should use "
29002 \family typewriter
29003 '
29004 \family default
29005 " (ASCII 39) instead of "
29006 \family typewriter
29007 ´
29008 \family default
29009 " (ASCII 180).
29010 \end_layout
29011
29012 \begin_layout Enumerate
29013
29014 \size small
29015 User-specified pattern found.
29016 \end_layout
29017
29018 \begin_layout Enumerate
29019
29020 \size small
29021 This command might not be intended.
29022 \end_layout
29023
29024 \begin_layout Enumerate
29025
29026 \size small
29027 \emph on
29028 Comment displayed.
29029 \end_layout
29030
29031 \begin_layout Enumerate
29032
29033 \size small
29034 Either 
29035 \family typewriter
29036 ''
29037 \backslash
29038 ,'
29039 \family default
29040  or 
29041 \family typewriter
29042 '
29043 \backslash
29044 ,''
29045 \family default
29046  will look better.
29047 \end_layout
29048
29049 \begin_layout Enumerate
29050
29051 \size small
29052 Delete this space to maintain correct page references.
29053 \end_layout
29054
29055 \begin_layout Enumerate
29056
29057 \size small
29058 \emph on
29059 You might wish to put this between a pair of 
29060 \begin_inset Quotes eld
29061 \end_inset
29062
29063
29064 \family typewriter
29065 {}
29066 \family default
29067
29068 \begin_inset Quotes erd
29069 \end_inset
29070
29071 .
29072 \end_layout
29073
29074 \begin_layout Enumerate
29075
29076 \size small
29077 You ought to remove spaces in front of punctuation.
29078 \end_layout
29079
29080 \begin_layout Enumerate
29081
29082 \size small
29083 Could not execute \SpecialChar LaTeX
29084  command.
29085 \end_layout
29086
29087 \begin_layout Enumerate
29088
29089 \size small
29090 Don't use 
29091 \family typewriter
29092
29093 \backslash
29094 /
29095 \family default
29096  in front of small punctuation.
29097 \end_layout
29098
29099 \begin_layout Enumerate
29100
29101 \family typewriter
29102 \size small
29103 $
29104 \backslash
29105 times$
29106 \family default
29107  may look prettier here.
29108 \end_layout
29109
29110 \begin_layout Enumerate
29111
29112 \size small
29113 \emph on
29114 Multiple spaces detected in output.
29115 \end_layout
29116
29117 \begin_layout Enumerate
29118
29119 \size small
29120 This text may be ignored.
29121 \end_layout
29122
29123 \begin_layout Enumerate
29124
29125 \size small
29126 Use 
29127 \family typewriter
29128
29129 \begin_inset Quotes eld
29130 \end_inset
29131
29132
29133 \family default
29134  to begin quotation, not 
29135 \family typewriter
29136 '
29137 \family default
29138 .
29139 \end_layout
29140
29141 \begin_layout Enumerate
29142
29143 \size small
29144 Use 
29145 \family typewriter
29146 '
29147 \family default
29148  to end quotation, not 
29149 \family typewriter
29150
29151 \begin_inset Quotes eld
29152 \end_inset
29153
29154
29155 \family default
29156 .
29157 \end_layout
29158
29159 \begin_layout Enumerate
29160
29161 \size small
29162 Don't mix quotes.
29163 \end_layout
29164
29165 \begin_layout Enumerate
29166
29167 \size small
29168 You should perhaps use 
29169 \begin_inset Quotes eld
29170 \end_inset
29171
29172
29173 \family typewriter
29174 cmd
29175 \family default
29176
29177 \begin_inset Quotes erd
29178 \end_inset
29179
29180  instead.
29181 \end_layout
29182
29183 \begin_layout Enumerate
29184
29185 \size small
29186 You should put a space in front of/after parenthesis.
29187 \end_layout
29188
29189 \begin_layout Enumerate
29190
29191 \size small
29192 You should avoid spaces in front of/after parenthesis.
29193 \end_layout
29194
29195 \begin_layout Enumerate
29196
29197 \size small
29198 \emph on
29199 You should not use punctuation in front of/after quotes.
29200 \end_layout
29201
29202 \begin_layout Enumerate
29203
29204 \size small
29205 Double space found.
29206 \end_layout
29207
29208 \begin_layout Enumerate
29209
29210 \size small
29211 You should put punctuation outside inner/inside display math mode.
29212 \end_layout
29213
29214 \begin_layout Enumerate
29215
29216 \size small
29217 You ought to not use primitive \SpecialChar TeX
29218  in \SpecialChar LaTeX
29219  code.
29220 \end_layout
29221
29222 \begin_layout Enumerate
29223
29224 \size small
29225 You should remove spaces in front of 
29226 \begin_inset Quotes eld
29227 \end_inset
29228
29229
29230 \family typewriter
29231 %s
29232 \family default
29233
29234 \begin_inset Quotes erd
29235 \end_inset
29236
29237
29238 \end_layout
29239
29240 \begin_layout Enumerate
29241
29242 \size small
29243 \begin_inset Quotes eld
29244 \end_inset
29245
29246
29247 \family typewriter
29248 %s
29249 \family default
29250
29251 \begin_inset Quotes erd
29252 \end_inset
29253
29254  is normally not followed by 
29255 \begin_inset Quotes eld
29256 \end_inset
29257
29258
29259 \family typewriter
29260 %c
29261 \family default
29262
29263 \begin_inset Quotes erd
29264 \end_inset
29265
29266 .
29267 \end_layout
29268
29269 \begin_layout Standard
29270 In later versions of \SpecialChar LyX
29271 , we hope to provide a more complete interface to this
29272  tool (and it's smaller cousin 
29273 \family typewriter
29274 lacheck
29275 \family default
29276 ) to exploit the full power of it.
29277  But it's not exactly useless as it is now: go try it on one of your existing
29278  documents of a certain length and be surprised.
29279 \end_layout
29280
29281 \begin_layout Section
29282 Version Control in \SpecialChar LyX
29283
29284 \end_layout
29285
29286 \begin_layout Standard
29287 by
29288 \noun on
29289  Lars Gullik Bjønnes 
29290 \noun default
29291 and 
29292 \noun on
29293 Pavel Sanda
29294 \end_layout
29295
29296 \begin_layout Subsection
29297 Introduction
29298 \end_layout
29299
29300 \begin_layout Standard
29301 \SpecialChar LyX
29302  supports some of the most basic RCS/CVS/SVN/GIT commands.
29303  If you need something a bit more sophisticated you will have to do that
29304  manually in a terminal.
29305 \end_layout
29306
29307 \begin_layout Standard
29308 Also note that CVS support is not as good as subversion support, so we advise
29309  using SVN instead.
29310  A good place to start learning Subversion is the SVN Book
29311 \begin_inset Foot
29312 status collapsed
29313
29314 \begin_layout Plain Layout
29315 \begin_inset CommandInset href
29316 LatexCommand href
29317 target "http://svnbook.red-bean.com/"
29318 literal "false"
29319
29320 \end_inset
29321
29322
29323 \end_layout
29324
29325 \end_inset
29326
29327 .
29328  In the case of RCS you should read 
29329 \begin_inset Quotes eld
29330 \end_inset
29331
29332 rcsintro
29333 \begin_inset Quotes erd
29334 \end_inset
29335
29336  (a man file, read it with 
29337 \family typewriter
29338 man rcsintro
29339 \family default
29340 ).
29341  This file describes all the basic features of RCS.
29342  You should especially notice the comment about a RCS directory, and the
29343  notion of a master RCS file (the file ending in 
29344 \family typewriter
29345 ,v
29346 \family default
29347 ).
29348 \end_layout
29349
29350 \begin_layout Standard
29351 Before you begin to use the version control features in \SpecialChar LyX
29352 , you should be
29353  familiar with RCS/CVS/SVN/GIT usage.
29354  The implementation in \SpecialChar LyX
29355  assumes a recent version of the GNU RCS or CVS/SVN
29356  package — no guarantees are made for older versions.
29357  Most of the log messages are not currently displayed after operations —
29358  you can check them in the Messages pane if you are unsure.
29359  Regular users of version control will appreciate the VC toolbar, which
29360  can be enabled via 
29361 \family sans
29362 View\SpecialChar menuseparator
29363 Toolbars\SpecialChar menuseparator
29364 Version
29365 \begin_inset space ~
29366 \end_inset
29367
29368 Control
29369 \family default
29370 .
29371 \end_layout
29372
29373 \begin_layout Standard
29374 For introducing your own external commands consult 
29375 \begin_inset Flex Code
29376 status collapsed
29377
29378 \begin_layout Plain Layout
29379 vc-command
29380 \end_layout
29381
29382 \end_inset
29383
29384  in the manual 
29385 \emph on
29386 \SpecialChar LyX
29387  Functions
29388 \emph default
29389 .
29390 \end_layout
29391
29392 \begin_layout Standard
29393 It is strongly recommended to store documents in uncompressed format if
29394  using version control (uncheck 
29395 \family sans
29396 Document\SpecialChar menuseparator
29397 Compressed
29398 \family default
29399  if it is checked): Uncompressed LyX documents are text files and therefore
29400  for merging two different versions by version control systems.
29401  Compressed LyX documents are binary files, which cannot be merged by version
29402  control systems.
29403 \end_layout
29404
29405 \begin_layout Subsection
29406 RCS commands in \SpecialChar LyX
29407
29408 \end_layout
29409
29410 \begin_layout Standard
29411 The following sections describe the RCS commands supported by \SpecialChar LyX
29412 .
29413  You can find them in the 
29414 \family sans
29415 File\SpecialChar menuseparator
29416 Version
29417 \begin_inset space ~
29418 \end_inset
29419
29420 Control
29421 \family default
29422  submenu.
29423  \SpecialChar LyX
29424  was tested against RCS 5.7/5.8.
29425 \end_layout
29426
29427 \begin_layout Subsubsection
29428
29429 \family sans
29430 Register
29431 \end_layout
29432
29433 \begin_layout Standard
29434 If your document is not under revision control, this is the only item shown
29435  in the menu.
29436  And if it is under revision control, the 
29437 \family sans
29438 Register
29439 \family default
29440  item is not visible.
29441  
29442 \end_layout
29443
29444 \begin_layout Standard
29445 This command registers your document with RCS (unless you are under the
29446  directory managed by CVS)\SpecialChar endofsentence
29447  You are asked interactively to supply an initial
29448  description of the document.
29449  The document is now set in Read-Only mode and you have to 
29450 \family sans
29451 Check
29452 \begin_inset space ~
29453 \end_inset
29454
29455 Out
29456 \begin_inset space ~
29457 \end_inset
29458
29459 For
29460 \begin_inset space ~
29461 \end_inset
29462
29463 Edit
29464 \family default
29465 , before making any changes to it.
29466  A document under revision control has a 
29467 \begin_inset Quotes eld
29468 \end_inset
29469
29470 [RCS:<version> <locker>]
29471 \begin_inset Quotes erd
29472 \end_inset
29473
29474  item tagged to the filename in the minibuffer.
29475 \end_layout
29476
29477 \begin_layout Standard
29478 RCS command that is run:
29479 \end_layout
29480
29481 \begin_layout LyX-Code
29482
29483 \family typewriter
29484 ci -q -u -i -t-"<initial description>" <file-name>
29485 \end_layout
29486
29487 \begin_layout Standard
29488 Read 
29489 \family typewriter
29490 man ci
29491 \family default
29492  to understand the switches.
29493  
29494 \end_layout
29495
29496 \begin_layout Subsubsection
29497
29498 \family sans
29499 Check In Changes
29500 \end_layout
29501
29502 \begin_layout Standard
29503 When you are finished editing a file, you check in your changes.
29504  When you do this, you are asked for a description of the changes.
29505  This is stored in the history log.
29506  The version number is bumped, your changes are applied to the master RCS
29507  file, the document is unlocked and set to Read-Only mode.
29508 \end_layout
29509
29510 \begin_layout Itemize
29511 RCS command: 
29512 \family typewriter
29513 ci -q -u -m"<description>" <file-name>
29514 \end_layout
29515
29516 \begin_layout Subsubsection
29517
29518 \family sans
29519 Check Out For Edit
29520 \end_layout
29521
29522 \begin_layout Standard
29523 By doing this you lock the document so that only you can edit it.
29524  This will also make the document Read-Write only for you.
29525  You will usually continue editing for a while and when you are finished
29526  you check in your changes.
29527  The status line is changed to reflect that you have locked the file.
29528 \end_layout
29529
29530 \begin_layout Itemize
29531 RCS command: 
29532 \family typewriter
29533 co -q -l <file-name>
29534 \end_layout
29535
29536 \begin_layout Subsubsection
29537
29538 \family sans
29539 Revert To Repository Version
29540 \end_layout
29541
29542 \begin_layout Standard
29543 This will discard all changes made to the document since the last check
29544  in.
29545  You get a warning before changes are discarded.
29546 \end_layout
29547
29548 \begin_layout Itemize
29549 RCS command: 
29550 \family typewriter
29551 co -f -u<version> <file-name>
29552 \end_layout
29553
29554 \begin_layout Subsubsection
29555
29556 \family sans
29557 Copy
29558 \end_layout
29559
29560 \begin_layout Standard
29561 This will create a copy of the current document.
29562  Since RCS does not support copy operations natively, the version history
29563  is not preserved, and the copy is added as a new file.
29564  It requires a clean document without any changes since the last checkin.
29565  You are asked for a file name and a description of the copy operation.
29566  After that the copy is created, both locally and in the repository.
29567  If the parent directories of the copied and original document differ, all
29568  relative paths of included files of the copy are adjusted (like in 
29569 \family sans
29570 File\SpecialChar menuseparator
29571 Save As
29572 \family default
29573 \SpecialChar ldots
29574 ).
29575  Finally, the copy is loaded instead of the original document.
29576 \end_layout
29577
29578 \begin_layout Labeling
29579 \labelwidthstring 00.00.0000
29580 RCS
29581 \begin_inset space ~
29582 \end_inset
29583
29584 commands: 
29585 \begin_inset space ~
29586 \end_inset
29587
29588
29589 \begin_inset Newline newline
29590 \end_inset
29591
29592 Copy 
29593 \begin_inset Flex Code
29594 status collapsed
29595
29596 \begin_layout Plain Layout
29597
29598 \family typewriter
29599 \begin_inset Quotes qld
29600 \end_inset
29601
29602 <file-name>
29603 \begin_inset Quotes qld
29604 \end_inset
29605
29606
29607 \end_layout
29608
29609 \end_inset
29610
29611  to 
29612 \begin_inset Flex Code
29613 status collapsed
29614
29615 \begin_layout Plain Layout
29616
29617 \family typewriter
29618 \begin_inset Quotes qld
29619 \end_inset
29620
29621 <new-file-name>
29622 \begin_inset Quotes qld
29623 \end_inset
29624
29625
29626 \end_layout
29627
29628 \end_inset
29629
29630
29631 \begin_inset Newline newline
29632 \end_inset
29633
29634
29635 \begin_inset Flex Code
29636 status collapsed
29637
29638 \begin_layout Plain Layout
29639 ci -q -u 
29640 \family typewriter
29641 -i 
29642 \begin_inset Quotes qld
29643 \end_inset
29644
29645 <new-file-name>
29646 \begin_inset Quotes qld
29647 \end_inset
29648
29649
29650 \end_layout
29651
29652 \end_inset
29653
29654
29655 \end_layout
29656
29657 \begin_layout Subsubsection
29658
29659 \family sans
29660 Undo Last Checkin
29661 \end_layout
29662
29663 \begin_layout Standard
29664 This makes as if the last check in never happened.
29665  No changes are made to the document loaded into \SpecialChar LyX
29666 , but the last version
29667  is removed from the master RCS file.
29668 \end_layout
29669
29670 \begin_layout Itemize
29671 RCS command: 
29672 \family typewriter
29673 rcs -o<version> <file-name>
29674 \end_layout
29675
29676 \begin_layout Subsubsection
29677
29678 \family sans
29679 Show History
29680 \end_layout
29681
29682 \begin_layout Standard
29683 This shows the complete history of the RCS document.
29684  The output of 
29685 \family typewriter
29686 rlog <file-name>
29687 \family default
29688  is shown in a browser.
29689  See 
29690 \family typewriter
29691 man rlog
29692 \family default
29693  for more info.
29694 \end_layout
29695
29696 \begin_layout Subsubsection
29697 Revision info
29698 \end_layout
29699
29700 \begin_layout Standard
29701 \SpecialChar LyX
29702  supports RCS version number, author name, date and time of last commit.
29703  All those are extracted from 
29704 \family typewriter
29705 rlog -r <file-name>
29706 \family default
29707 .
29708  See 
29709 \begin_inset CommandInset ref
29710 LatexCommand ref
29711 reference "subsec:VCS-Revision-Information"
29712
29713 \end_inset
29714
29715  for details.
29716 \end_layout
29717
29718 \begin_layout Subsection
29719 CVS commands in \SpecialChar LyX
29720
29721 \end_layout
29722
29723 \begin_layout Standard
29724 A subset of CVS operations is supported by \SpecialChar LyX
29725 .
29726  You can find the commands in the 
29727 \family sans
29728 File\SpecialChar menuseparator
29729 Version
29730 \begin_inset space ~
29731 \end_inset
29732
29733 Control
29734 \family default
29735  submenu.
29736  The version control system SVN is more powerful, so please use it instead
29737  of CVS if possible.
29738 \end_layout
29739
29740 \begin_layout Subsubsection
29741
29742 \family sans
29743 General CVS usage
29744 \end_layout
29745
29746 \begin_layout Standard
29747 If you start from scratch with CVS you have to create your repository and
29748  checkout the working copy with external tools.
29749  If you're using a client-server setup you may need to login before doing
29750  the first repository checkout.
29751 \end_layout
29752
29753 \begin_layout Standard
29754 If your documents are under revision control and others are using the same
29755  repository problems arise when different changes to the same document at
29756  the same location happen.
29757  Standard CVS repositories don't operate with a file locking mechanism.
29758  This may be surprising, but conflicts only occur if people disagree on
29759  the proper content of the same part of a document.
29760  So, if co-workers are used to communicate regularly, these conflicts occur
29761  rarely.
29762  If they don't communicate they have a fundamental problem anyway.
29763  Nevertheless some people like to work with so called 
29764 \begin_inset Quotes eld
29765 \end_inset
29766
29767 reserved checkouts
29768 \begin_inset Quotes erd
29769 \end_inset
29770
29771 .
29772  If they do so the working copy of all files is readonly when checked out
29773  first and the user starts editing after using a special command to make
29774  the working copy writable.
29775  When the changes are checked in the working copy returns to readonly state.
29776  With \SpecialChar LyX
29777  one has to edit the 
29778 \begin_inset Flex Code
29779 status collapsed
29780
29781 \begin_layout Plain Layout
29782 .cvsrc
29783 \end_layout
29784
29785 \end_inset
29786
29787  file and add the line 
29788 \begin_inset Flex Code
29789 status collapsed
29790
29791 \begin_layout Plain Layout
29792 cvs -r
29793 \end_layout
29794
29795 \end_inset
29796
29797  to work with reserved checkouts.
29798  The benefit is the possibility to see who is using a writable copy of some
29799  document.
29800  It's not guaranteed only one user makes a copy writable.
29801 \end_layout
29802
29803 \begin_layout Standard
29804 \SpecialChar LyX
29805  tries to guess if you're using reserved or non-reserved checkouts.
29806  If your working copy is readonly or it is writable and an additional copy
29807  of your document exists in the CVS/Base sub-directory a reserved otherwise
29808  a non-reserved checkout is assumed.
29809  When a reserved checkout is detected you have to use 
29810 \begin_inset Flex Noun
29811 status collapsed
29812
29813 \begin_layout Plain Layout
29814 Check Out
29815 \end_layout
29816
29817 \end_inset
29818
29819  to make your working copy writable if it's readonly.
29820  After doing so the 
29821 \begin_inset Flex Noun
29822 status collapsed
29823
29824 \begin_layout Plain Layout
29825 Check In
29826 \end_layout
29827
29828 \end_inset
29829
29830  operation is possible and that makes your working copy readonly again after
29831  transferring your changes to the repository.
29832 \end_layout
29833
29834 \begin_layout Standard
29835 More information about CVS can be found here 
29836 \begin_inset Flex URL
29837 status collapsed
29838
29839 \begin_layout Plain Layout
29840
29841 http://www.nongnu.org/cvs
29842 \end_layout
29843
29844 \end_inset
29845
29846  and here 
29847 \begin_inset Flex URL
29848 status collapsed
29849
29850 \begin_layout Plain Layout
29851
29852 http://ximbiot.com/cvs
29853 \end_layout
29854
29855 \end_inset
29856
29857 .
29858 \end_layout
29859
29860 \begin_layout Standard
29861 Read 
29862 \family typewriter
29863 man cvs
29864 \family default
29865  to understand the sub-commands and the switches mentioned below.
29866 \end_layout
29867
29868 \begin_layout Subsubsection
29869
29870 \family sans
29871 Register
29872 \end_layout
29873
29874 \begin_layout Standard
29875 If your document is not under revision control, this is the only item shown
29876  in the menu.
29877  And if it is under revision control, the 
29878 \family sans
29879 Register
29880 \family default
29881  item is not visible.
29882  
29883 \end_layout
29884
29885 \begin_layout Standard
29886 This command registers in CVS your document 
29887 \begin_inset Flex Strong
29888 status collapsed
29889
29890 \begin_layout Plain Layout
29891
29892 \emph on
29893 only
29894 \end_layout
29895
29896 \end_inset
29897
29898  in the case you have already the documents directory under CVS control
29899  (in particular 
29900 \family typewriter
29901 CVS/Entries
29902 \family default
29903  file exists).
29904  This means you have to create or checkout the archive by yourself using
29905  external tools.
29906  (In case you forget that step \SpecialChar LyX
29907  registers the document with RCS.)
29908 \end_layout
29909
29910 \begin_layout Standard
29911 Then you are asked interactively to supply an initial description of the
29912  document.
29913  Don't forget that registered file is not yet checked in.
29914 \end_layout
29915
29916 \begin_layout Standard
29917 CVS command that is run: 
29918 \family typewriter
29919 cvs -q add -m"<entered message>" "<file-name>"
29920 \end_layout
29921
29922 \begin_layout Standard
29923 The term 
29924 \family typewriter
29925 "<file-name>"
29926 \family default
29927  above and for all other CVS commands is an abbreviation for 
29928 \begin_inset Quotes eld
29929 \end_inset
29930
29931 change the current working directory to file location and use the file name
29932  without path component as argument
29933 \begin_inset Quotes erd
29934 \end_inset
29935
29936 .
29937 \end_layout
29938
29939 \begin_layout Subsubsection
29940
29941 \family sans
29942 Check In Changes
29943 \end_layout
29944
29945 \begin_layout Standard
29946 When you are finished editing a file, you commit your changes.
29947  When you do this and you had changed the document, you are asked for a
29948  description of the changes.
29949  After that changes are written to the repository.
29950  In case you didn't change the document and a reserved checkout is detected
29951  the reservation made on 
29952 \begin_inset Flex Noun
29953 status collapsed
29954
29955 \begin_layout Plain Layout
29956 Check Out
29957 \end_layout
29958
29959 \end_inset
29960
29961  is undone.
29962 \end_layout
29963
29964 \begin_layout Labeling
29965 \labelwidthstring 00.00.0000
29966 CVS
29967 \begin_inset space ~
29968 \end_inset
29969
29970 command: 
29971 \begin_inset space ~
29972 \end_inset
29973
29974
29975 \begin_inset Newline newline
29976 \end_inset
29977
29978
29979 \begin_inset Flex Code
29980 status collapsed
29981
29982 \begin_layout Plain Layout
29983 cvs 
29984 \family typewriter
29985 -q commit -m"<description>" "<file-name>"
29986 \end_layout
29987
29988 \end_inset
29989
29990  or
29991 \begin_inset Newline newline
29992 \end_inset
29993
29994
29995 \begin_inset Flex Code
29996 status collapsed
29997
29998 \begin_layout Plain Layout
29999 cvs -q unedit 
30000 \family typewriter
30001 "<file-name>"
30002 \end_layout
30003
30004 \end_inset
30005
30006
30007 \end_layout
30008
30009 \begin_layout Subsubsection
30010
30011 \family sans
30012 Check Out Changes
30013 \end_layout
30014
30015 \begin_layout Standard
30016 When you are sharing a repository with others, you may have to incorporate
30017  their changes into your working copy.
30018 \end_layout
30019
30020 \begin_layout Standard
30021 CVS command: 
30022 \family typewriter
30023 cvs -q update "<file-name>"
30024 \end_layout
30025
30026 \begin_layout Standard
30027 If a readonly checkout is detected the working copy is made writable and
30028  reserved.
30029 \end_layout
30030
30031 \begin_layout Standard
30032 CVS command: 
30033 \family typewriter
30034 cvs -q edit "<file-name>"
30035 \end_layout
30036
30037 \begin_layout Subsubsection
30038
30039 \family sans
30040 Revert To Repository Version
30041 \end_layout
30042
30043 \begin_layout Standard
30044 This will discard all changes made to the document since the last check
30045  in.
30046  You get a warning before changes are discarded.
30047  Firstly the file is deleted, secondly CVS update command is run.
30048 \end_layout
30049
30050 \begin_layout Standard
30051 CVS command: 
30052 \family typewriter
30053 cvs -q update "<file-name>"
30054 \end_layout
30055
30056 \begin_layout Standard
30057 If a reserved checkout is detected and the working copy has no changes only
30058  the reservation is undone.
30059 \end_layout
30060
30061 \begin_layout Standard
30062 CVS command: 
30063 \family typewriter
30064 cvs -q unedit "<file-name>"
30065 \end_layout
30066
30067 \begin_layout Subsubsection
30068
30069 \family sans
30070 Copy
30071 \end_layout
30072
30073 \begin_layout Standard
30074 This will create a copy of the current document.
30075  Since CVS does not support copy operations natively, the version history
30076  is not preserved, and the copy is added as a new file.
30077  It requires a clean document without any changes since the last checkin.
30078  You are asked for a file name and a description of the copy operation.
30079  After that the copy is created, both locally and in the repository.
30080  If the parent directories of the copied and original document differ, all
30081  relative paths of included files of the copy are adjusted (like in 
30082 \family sans
30083 File\SpecialChar menuseparator
30084 Save As
30085 \family default
30086 \SpecialChar ldots
30087 ).
30088  Finally, the copy is loaded instead of the original document.
30089 \end_layout
30090
30091 \begin_layout Labeling
30092 \labelwidthstring 00.00.0000
30093 CVS
30094 \begin_inset space ~
30095 \end_inset
30096
30097 commands: 
30098 \begin_inset space ~
30099 \end_inset
30100
30101
30102 \begin_inset Newline newline
30103 \end_inset
30104
30105 Copy 
30106 \begin_inset Flex Code
30107 status collapsed
30108
30109 \begin_layout Plain Layout
30110 "<file-name>"
30111 \end_layout
30112
30113 \end_inset
30114
30115  to 
30116 \begin_inset Flex Code
30117 status collapsed
30118
30119 \begin_layout Plain Layout
30120 "<new-file-name>"
30121 \end_layout
30122
30123 \end_inset
30124
30125
30126 \begin_inset Newline newline
30127 \end_inset
30128
30129
30130 \begin_inset Flex Code
30131 status collapsed
30132
30133 \begin_layout Plain Layout
30134 cvs -q add "<new-file-name>"
30135 \end_layout
30136
30137 \end_inset
30138
30139
30140 \end_layout
30141
30142 \begin_layout Subsubsection
30143
30144 \family sans
30145 Rename
30146 \end_layout
30147
30148 \begin_layout Standard
30149 This will rename the current document.
30150  Since CVS does not support rename operations natively, the version history
30151  is not preserved, the renamed document is added as a new file, and the
30152  original document is deleted.
30153  It requires a clean document without any changes since the last checkin.
30154  You are asked for a file name and a description of the rename operation.
30155  After that the document is renamed, both locally and in the repository.
30156  If the parent directories of the new and old file names differ, all relative
30157  paths of included files are adjusted (like in 
30158 \family sans
30159 File\SpecialChar menuseparator
30160 Save As
30161 \family default
30162 \SpecialChar ldots
30163 ).
30164  Finally, the document is reloaded using the new name.
30165 \end_layout
30166
30167 \begin_layout Labeling
30168 \labelwidthstring 00.00.0000
30169 CVS
30170 \begin_inset space ~
30171 \end_inset
30172
30173 commands: 
30174 \begin_inset space ~
30175 \end_inset
30176
30177
30178 \begin_inset Newline newline
30179 \end_inset
30180
30181 Rename 
30182 \begin_inset Flex Code
30183 status collapsed
30184
30185 \begin_layout Plain Layout
30186 "<file-name>"
30187 \end_layout
30188
30189 \end_inset
30190
30191  to 
30192 \begin_inset Flex Code
30193 status collapsed
30194
30195 \begin_layout Plain Layout
30196 "<new-file-name>"
30197 \end_layout
30198
30199 \end_inset
30200
30201
30202 \begin_inset Newline newline
30203 \end_inset
30204
30205
30206 \begin_inset Flex Code
30207 status collapsed
30208
30209 \begin_layout Plain Layout
30210 cvs -q add "<new-file-name>"
30211 \end_layout
30212
30213 \end_inset
30214
30215
30216 \begin_inset Newline newline
30217 \end_inset
30218
30219
30220 \begin_inset Flex Code
30221 status collapsed
30222
30223 \begin_layout Plain Layout
30224 cvs -q remove "<file-name>"
30225 \end_layout
30226
30227 \end_inset
30228
30229
30230 \end_layout
30231
30232 \begin_layout Subsubsection
30233 Update of the local directory checkout from repository
30234 \end_layout
30235
30236 \begin_layout Standard
30237 Once your documents gets more complex, containing sub-documents and pictures,
30238  including external 
30239 \begin_inset Flex Code
30240 status collapsed
30241
30242 \begin_layout Plain Layout
30243 .tex
30244 \end_layout
30245
30246 \end_inset
30247
30248  files and so on using version control becomes more complicated.
30249  \SpecialChar LyX
30250  supports updating the whole tree in which resides the document.
30251  This become especially useful once you cooperate with people which neither
30252  have detailed knowledge about CVS usage nor they have ambition to commit
30253  additional material to the repository.
30254  You have to organize the files structure so that all external files are
30255  in the same directory or subdirectories of the document.
30256  It's good practice anyway to store multipart documents in an extra directory.
30257 \end_layout
30258
30259 \begin_layout Standard
30260 The 
30261 \begin_inset Flex Code
30262 status collapsed
30263
30264 \begin_layout Plain Layout
30265 Update local directory from repository
30266 \end_layout
30267
30268 \end_inset
30269
30270  command updates the whole directory.
30271  If local changes are detected user is warned before update starts.
30272  In case of merge conflicts both versions of the conflicting document parts
30273  are placed in the final document.
30274  You have to review and correct the result of the merge.
30275  You'll find the conflicts enclosed in pairs of 
30276 \begin_inset Flex Code
30277 status collapsed
30278
30279 \begin_layout Plain Layout
30280 <<<<<<<
30281 \end_layout
30282
30283 \end_inset
30284
30285  and 
30286 \begin_inset Flex Code
30287 status collapsed
30288
30289 \begin_layout Plain Layout
30290 >>>>>>>
30291 \end_layout
30292
30293 \end_inset
30294
30295  separated by 
30296 \begin_inset Flex Code
30297 status collapsed
30298
30299 \begin_layout Plain Layout
30300 =======
30301 \end_layout
30302
30303 \end_inset
30304
30305 .
30306  The first part is your version as before the update operation with the
30307  document name prepended.
30308  The second one is the repository version with the version number after
30309  the sequence of 
30310 \begin_inset Flex Code
30311 status collapsed
30312
30313 \begin_layout Plain Layout
30314 >
30315 \end_layout
30316
30317 \end_inset
30318
30319  signs.
30320 \end_layout
30321
30322 \begin_layout Labeling
30323 \labelwidthstring 00.00.0000
30324 CVS
30325 \begin_inset space ~
30326 \end_inset
30327
30328 commands: 
30329 \begin_inset space ~
30330 \end_inset
30331
30332
30333 \begin_inset Newline newline
30334 \end_inset
30335
30336
30337 \begin_inset Flex Code
30338 status collapsed
30339
30340 \begin_layout Plain Layout
30341 cd $path; cvs diff 
30342 \family typewriter
30343 "."
30344 \end_layout
30345
30346 \end_inset
30347
30348  (Ask if changes are detected.)
30349 \begin_inset Newline newline
30350 \end_inset
30351
30352
30353 \begin_inset Flex Code
30354 status collapsed
30355
30356 \begin_layout Plain Layout
30357 cd $path; cvs -q update 
30358 \family typewriter
30359 "."
30360 \end_layout
30361
30362 \end_inset
30363
30364
30365 \end_layout
30366
30367 \begin_layout Standard
30368 where 
30369 \begin_inset Flex Code
30370 status collapsed
30371
30372 \begin_layout Plain Layout
30373 $path
30374 \end_layout
30375
30376 \end_inset
30377
30378  stands for the path to the document.
30379 \end_layout
30380
30381 \begin_layout Subsubsection
30382
30383 \family sans
30384 Show History
30385 \end_layout
30386
30387 \begin_layout Standard
30388 This shows the complete history of the CVS document.
30389  The output of 
30390 \family typewriter
30391 cvs log "<file-name>"
30392 \family default
30393  is shown in a browser.
30394 \end_layout
30395
30396 \begin_layout Subsubsection
30397 Revision info
30398 \end_layout
30399
30400 \begin_layout Standard
30401 \SpecialChar LyX
30402  supports CVS version number, author name, date and time of last commit.
30403  All those are extracted from 
30404 \family typewriter
30405 cvs log -r <file-name>
30406 \family default
30407 .
30408  See 
30409 \begin_inset CommandInset ref
30410 LatexCommand ref
30411 reference "subsec:VCS-Revision-Information"
30412
30413 \end_inset
30414
30415  for details.
30416 \end_layout
30417
30418 \begin_layout Subsection
30419 SVN commands in \SpecialChar LyX
30420
30421 \end_layout
30422
30423 \begin_layout Standard
30424 SVN is now partially supported by \SpecialChar LyX
30425 .
30426  You can find the commands in the 
30427 \family sans
30428 File\SpecialChar menuseparator
30429 Version
30430 \begin_inset space ~
30431 \end_inset
30432
30433 Control
30434 \family default
30435  submenu.
30436  Please note that if you use password protected access to repository via
30437  ssh, you will be asked in terminal window.
30438  \SpecialChar LyX
30439  was tested against SVN 1.5, 1.6, 1.7 and 1.8
30440 \begin_inset Foot
30441 status collapsed
30442
30443 \begin_layout Plain Layout
30444 Most of the commands will work with 1.4 too, see 
30445 \begin_inset CommandInset ref
30446 LatexCommand ref
30447 reference "subsec:SVN-Repo-Update"
30448
30449 \end_inset
30450
30451 .
30452  There seems to be currently unresolved permissions problem under SVN 1.8
30453  with reverting changes when file is locked.
30454 \end_layout
30455
30456 \end_inset
30457
30458
30459 \end_layout
30460
30461 \begin_layout Subsubsection
30462
30463 \family sans
30464 Register
30465 \end_layout
30466
30467 \begin_layout Standard
30468 If your document is not under revision control, this is the only item shown
30469  in the menu.
30470  And if it is under revision control, the 
30471 \family sans
30472 Register
30473 \family default
30474  item is not visible.
30475 \end_layout
30476
30477 \begin_layout Standard
30478 This command registers in SVN your document ONLY in case you have already
30479  the documents directory under SVN control (in particular 
30480 \family typewriter
30481 .svn/entries
30482 \family default
30483  file exists).
30484  This means you have to checkout the archive by yourself.
30485 \end_layout
30486
30487 \begin_layout Standard
30488 Then you are asked interactively to supply an initial description of the
30489  document.
30490  Don't forget that registered file is not yet commited.
30491 \end_layout
30492
30493 \begin_layout Standard
30494 SVN command that is run: 
30495 \family typewriter
30496 svn add -q 
30497 \begin_inset Quotes qld
30498 \end_inset
30499
30500 <file-name>
30501 \begin_inset Quotes qld
30502 \end_inset
30503
30504
30505 \end_layout
30506
30507 \begin_layout Standard
30508 Read 
30509 \family typewriter
30510 man svn
30511 \family default
30512  to understand the switches.
30513 \end_layout
30514
30515 \begin_layout Subsubsection
30516
30517 \family sans
30518 Check In Changes
30519 \end_layout
30520
30521 \begin_layout Standard
30522 When you are finished editing a file, you commit your changes.
30523  When you do this, you are asked for a description of the changes.
30524  After that changes are commited.
30525 \end_layout
30526
30527 \begin_layout Standard
30528 SVN command:
30529 \begin_inset Foot
30530 status collapsed
30531
30532 \begin_layout Plain Layout
30533 In case locking is not enabled.
30534  See Section 
30535 \begin_inset CommandInset ref
30536 LatexCommand ref
30537 reference "subsec:SVN-File-Locking"
30538
30539 \end_inset
30540
30541 .
30542 \end_layout
30543
30544 \end_inset
30545
30546  
30547 \family typewriter
30548 svn commit -q -m"<description>" <file-name>
30549 \end_layout
30550
30551 \begin_layout Subsubsection
30552
30553 \family sans
30554 Check Out For Edit
30555 \end_layout
30556
30557 \begin_layout Standard
30558 Updates the changes of this file from the repository.
30559  Be sure you understand SVN merging and conflicts resolving before using
30560  this function, because all conflicts has to be resolved manually by you!
30561 \end_layout
30562
30563 \begin_layout Standard
30564 SVN command:
30565 \begin_inset Foot
30566 status collapsed
30567
30568 \begin_layout Plain Layout
30569 Ditto.
30570 \end_layout
30571
30572 \end_inset
30573
30574  
30575 \family typewriter
30576 svn update --non-interactive 
30577 \begin_inset Quotes qld
30578 \end_inset
30579
30580 <file-name>
30581 \begin_inset Quotes qld
30582 \end_inset
30583
30584
30585 \end_layout
30586
30587 \begin_layout Subsubsection
30588
30589 \family sans
30590 Revert To Repository Version
30591 \end_layout
30592
30593 \begin_layout Standard
30594 This will discard all changes made to the document since the last check
30595  in.
30596  You get a warning before changes are discarded.
30597 \end_layout
30598
30599 \begin_layout Standard
30600 SVN command: 
30601 \family typewriter
30602 svn revert -q 
30603 \begin_inset Quotes qld
30604 \end_inset
30605
30606 <file-name>
30607 \begin_inset Quotes qld
30608 \end_inset
30609
30610
30611 \end_layout
30612
30613 \begin_layout Subsubsection
30614
30615 \family sans
30616 Copy
30617 \end_layout
30618
30619 \begin_layout Standard
30620 This will create a copy of the current document including the version history.
30621  It requires a clean document without any changes since the last checkin.
30622  You are asked for a file name and a description of the copy operation.
30623  After that the copy is created, both locally and in the repository.
30624  If the parent directories of the copied and original document differ, all
30625  relative paths of included files of the copy are adjusted (like in 
30626 \family sans
30627 File\SpecialChar menuseparator
30628 Save As
30629 \family default
30630 \SpecialChar ldots
30631 ).
30632  Finally, the copy is loaded instead of the original document.
30633 \end_layout
30634
30635 \begin_layout Labeling
30636 \labelwidthstring 00.00.0000
30637 SVN
30638 \begin_inset space ~
30639 \end_inset
30640
30641 commands: 
30642 \begin_inset space ~
30643 \end_inset
30644
30645
30646 \begin_inset Newline newline
30647 \end_inset
30648
30649
30650 \begin_inset Flex Code
30651 status collapsed
30652
30653 \begin_layout Plain Layout
30654 svn copy -q 
30655 \family typewriter
30656
30657 \begin_inset Quotes qld
30658 \end_inset
30659
30660 <file-name>
30661 \begin_inset Quotes qld
30662 \end_inset
30663
30664  
30665 \begin_inset Quotes qld
30666 \end_inset
30667
30668 <new-file-name>
30669 \begin_inset Quotes qld
30670 \end_inset
30671
30672
30673 \end_layout
30674
30675 \end_inset
30676
30677
30678 \begin_inset Newline newline
30679 \end_inset
30680
30681
30682 \begin_inset Flex Code
30683 status collapsed
30684
30685 \begin_layout Plain Layout
30686 svn commit
30687 \end_layout
30688
30689 \end_inset
30690
30691
30692 \end_layout
30693
30694 \begin_layout Subsubsection
30695
30696 \family sans
30697 Rename
30698 \end_layout
30699
30700 \begin_layout Standard
30701 This will rename the current document including the version history.
30702  It requires a clean document without any changes since the last checkin.
30703  You are asked for a file name and a description of the rename operation.
30704  After that the document is renamed, both locally and in the repository.
30705  If the parent directories of the new and old file names differ, all relative
30706  paths of included files are adjusted (like in 
30707 \family sans
30708 File\SpecialChar menuseparator
30709 Save As
30710 \family default
30711 \SpecialChar ldots
30712 ).
30713  Finally, the document is reloaded using the new name.
30714 \end_layout
30715
30716 \begin_layout Labeling
30717 \labelwidthstring 00.00.0000
30718 SVN
30719 \begin_inset space ~
30720 \end_inset
30721
30722 commands: 
30723 \begin_inset space ~
30724 \end_inset
30725
30726
30727 \begin_inset Newline newline
30728 \end_inset
30729
30730
30731 \begin_inset Flex Code
30732 status collapsed
30733
30734 \begin_layout Plain Layout
30735 svn move -q 
30736 \family typewriter
30737
30738 \begin_inset Quotes qld
30739 \end_inset
30740
30741 <file-name>
30742 \begin_inset Quotes qld
30743 \end_inset
30744
30745  
30746 \begin_inset Quotes qld
30747 \end_inset
30748
30749 <new-file-name>
30750 \begin_inset Quotes qld
30751 \end_inset
30752
30753
30754 \end_layout
30755
30756 \end_inset
30757
30758
30759 \begin_inset Newline newline
30760 \end_inset
30761
30762
30763 \begin_inset Flex Code
30764 status collapsed
30765
30766 \begin_layout Plain Layout
30767 svn commit
30768 \end_layout
30769
30770 \end_inset
30771
30772
30773 \end_layout
30774
30775 \begin_layout Subsubsection
30776 \begin_inset CommandInset label
30777 LatexCommand label
30778 name "subsec:SVN-Repo-Update"
30779
30780 \end_inset
30781
30782 Update of the local directory checkout from repository
30783 \begin_inset Foot
30784 status collapsed
30785
30786 \begin_layout Plain Layout
30787 Note that this command will work only with subversion 
30788 \begin_inset Formula $\geqq1.5$
30789 \end_inset
30790
30791
30792 \end_layout
30793
30794 \end_inset
30795
30796
30797 \end_layout
30798
30799 \begin_layout Standard
30800 All the commands above have one shortcoming – they deal with the current
30801  document only.
30802  Once your document contains pictures, includes external 
30803 \begin_inset Flex Code
30804 status collapsed
30805
30806 \begin_layout Plain Layout
30807 .tex
30808 \end_layout
30809
30810 \end_inset
30811
30812  files and so on administration becomes more complicated.
30813  \SpecialChar LyX
30814  now supports updating the whole tree in which resides the document
30815 \begin_inset Foot
30816 status collapsed
30817
30818 \begin_layout Plain Layout
30819 One need to organize the files structure so that all external files are
30820  in the same directory or subdirectories of the document.
30821  
30822 \end_layout
30823
30824 \end_inset
30825
30826 .
30827  This become especially useful once you cooperate with people which neither
30828  know about subversion management nor they have ambition to commit additional
30829  material to the repository.
30830  
30831 \end_layout
30832
30833 \begin_layout Standard
30834 \begin_inset Flex Code
30835 status collapsed
30836
30837 \begin_layout Plain Layout
30838 Update local directory from repository
30839 \end_layout
30840
30841 \end_inset
30842
30843  command updates the whole directory and in case of merge conflicts local
30844  version of the files are left, so no unintended data loss occurs.
30845  If local changes are detected user is warned before update starts.
30846 \end_layout
30847
30848 \begin_layout Labeling
30849 \labelwidthstring 00.00.0000
30850 SVN
30851 \begin_inset space ~
30852 \end_inset
30853
30854 commands: 
30855 \begin_inset space ~
30856 \end_inset
30857
30858
30859 \begin_inset Newline newline
30860 \end_inset
30861
30862
30863 \begin_inset Flex Code
30864 status collapsed
30865
30866 \begin_layout Plain Layout
30867 svn diff $path
30868 \end_layout
30869
30870 \end_inset
30871
30872  (Ask if changes are detected.)
30873 \begin_inset Newline newline
30874 \end_inset
30875
30876
30877 \begin_inset Flex Code
30878 status collapsed
30879
30880 \begin_layout Plain Layout
30881 svn update --accept mine-full $path
30882 \end_layout
30883
30884 \end_inset
30885
30886
30887 \end_layout
30888
30889 \begin_layout Standard
30890 where 
30891 \begin_inset Flex Code
30892 status collapsed
30893
30894 \begin_layout Plain Layout
30895 $path
30896 \end_layout
30897
30898 \end_inset
30899
30900  stands for the path to the document.
30901 \end_layout
30902
30903 \begin_layout Subsubsection
30904
30905 \family sans
30906 Show History
30907 \end_layout
30908
30909 \begin_layout Standard
30910 This shows the complete history of the SVN document.
30911  The output of 
30912 \family typewriter
30913 svn log 
30914 \begin_inset Quotes qld
30915 \end_inset
30916
30917 <file-name>
30918 \begin_inset Quotes qld
30919 \end_inset
30920
30921
30922 \family default
30923  is shown in a browser.
30924 \end_layout
30925
30926 \begin_layout Subsubsection
30927 File Locking
30928 \begin_inset CommandInset label
30929 LatexCommand label
30930 name "subsec:SVN-File-Locking"
30931
30932 \end_inset
30933
30934
30935 \end_layout
30936
30937 \begin_layout Standard
30938 The file exchange through various revision control systems brings the problem
30939  of merge conflicts in case two different users try to edit the same (parts
30940  of) document.
30941  When such a conflict happens it needs manual resolving and one reasonable
30942  alternative is to provide some kind of locking mechanism, which guarantees
30943  that only one user is allowed to edit file at the given time.
30944 \end_layout
30945
30946 \begin_layout Standard
30947 SVN has two such mechanisms to provide mutual exclusivity for file access
30948  – locks and automatic setting of write permissions (see sec.
30949  
30950 \begin_inset CommandInset ref
30951 LatexCommand ref
30952 reference "subsec:Automatical-Locking-Property"
30953
30954 \end_inset
30955
30956 ) based on 
30957 \begin_inset Flex Code
30958 status collapsed
30959
30960 \begin_layout Plain Layout
30961 svn:needs-lock
30962 \end_layout
30963
30964 \end_inset
30965
30966  file svn property
30967 \begin_inset Foot
30968 status collapsed
30969
30970 \begin_layout Plain Layout
30971 \begin_inset Flex URL
30972 status open
30973
30974 \begin_layout Plain Layout
30975
30976 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
30977 \end_layout
30978
30979 \end_inset
30980
30981
30982 \end_layout
30983
30984 \end_inset
30985
30986 .
30987  If this property is detected for a given document \SpecialChar LyX
30988  starts to use SVN locks
30989  for document editing automatically and the whole check-in/out mechanism
30990  switches to the same regimen as for RCS.
30991  This in particular means there are two different modes of file use in \SpecialChar LyX
30992 :
30993 \end_layout
30994
30995 \begin_layout Itemize
30996 Unlocked state.
30997  The loaded file is in the read-only mode.
30998  For editing on needs to check-out.
30999  
31000 \emph on
31001 Check-out
31002 \emph default
31003  consists of updating from the repository and gaining write lock.
31004  If the lock is not possible to obtain, we remain in unlocked state.
31005 \end_layout
31006
31007 \begin_layout Itemize
31008 Locked state.
31009  The loaded file is in the 
31010 \begin_inset Quotes els
31011 \end_inset
31012
31013 normal
31014 \begin_inset Quotes ers
31015 \end_inset
31016
31017  edit mode.
31018  No other user is allowed to edit the file.
31019  
31020 \emph on
31021 Check-in
31022 \emph default
31023  consists of commiting changes and releasing write-lock.
31024  If no changes have been made to the document, no commit will be produced
31025 \begin_inset Foot
31026 status collapsed
31027
31028 \begin_layout Plain Layout
31029 Don't be puzzled by the fact that you will be asked for commit message anyway.
31030 \end_layout
31031
31032 \end_inset
31033
31034  and only the write-lock will be released.
31035 \end_layout
31036
31037 \begin_layout Standard
31038 SVN commands:
31039 \end_layout
31040
31041 \begin_layout Labeling
31042 \labelwidthstring 00.00.0000
31043 Check-in:
31044 \family typewriter
31045  svn commit -q -m"<description>" "<file-name>"
31046 \begin_inset Newline newline
31047 \end_inset
31048
31049 svn unlock "<file-name>"
31050 \end_layout
31051
31052 \begin_layout Labeling
31053 \labelwidthstring 00.00.0000
31054 Check-out: 
31055 \family typewriter
31056 svn update "<file-name>"
31057 \begin_inset Newline newline
31058 \end_inset
31059
31060 svn lock "<file-name>"
31061 \end_layout
31062
31063 \begin_layout Subsubsection
31064
31065 \family typewriter
31066 \begin_inset CommandInset label
31067 LatexCommand label
31068 name "subsec:Automatical-Locking-Property"
31069
31070 \end_inset
31071
31072
31073 \family default
31074 Automatic Locking Property
31075 \end_layout
31076
31077 \begin_layout Standard
31078 The above mentioned automatic setting of write permissions of the .lyx file
31079  can be set through
31080 \family sans
31081  File\SpecialChar menuseparator
31082 Version
31083 \begin_inset space ~
31084 \end_inset
31085
31086 Control\SpecialChar menuseparator
31087 Use Locking Property
31088 \family default
31089 .
31090  This command is active only when the file is not locked on the svn server
31091  (i.e.
31092  you need to check-out before proceeding).
31093 \end_layout
31094
31095 \begin_layout Labeling
31096 \labelwidthstring 00.00.0000
31097 SVN
31098 \begin_inset space ~
31099 \end_inset
31100
31101 commands:
31102 \end_layout
31103
31104 \begin_layout Labeling
31105 \labelwidthstring 00.00.0000
31106 Set:
31107 \family typewriter
31108  svn propset svn:needs-lock ON "<file-name>"
31109 \end_layout
31110
31111 \begin_layout Labeling
31112 \labelwidthstring 00.00.0000
31113 Unset: 
31114 \family typewriter
31115 svn propdel svn:needs-lock "<file-name>"
31116 \end_layout
31117
31118 \begin_layout Subsubsection
31119 \begin_inset CommandInset label
31120 LatexCommand label
31121 name "subsec:VCS-Revision-Information"
31122
31123 \end_inset
31124
31125 Revision Information in Documents
31126 \end_layout
31127
31128 \begin_layout Standard
31129 There are more possibilities how to activate revision information in our
31130  document.
31131 \end_layout
31132
31133 \begin_layout Itemize
31134 \SpecialChar LyX
31135  supports directly:
31136 \end_layout
31137
31138 \begin_deeper
31139 \begin_layout Itemize
31140 tree revision information (
31141 \begin_inset Flex Code
31142 status collapsed
31143
31144 \begin_layout Plain Layout
31145 vcs-tree-revision
31146 \end_layout
31147
31148 \end_inset
31149
31150 ).
31151  The result is the output of the 
31152 \begin_inset Flex Code
31153 status collapsed
31154
31155 \begin_layout Plain Layout
31156 svnversion
31157 \end_layout
31158
31159 \end_inset
31160
31161  command, the following table gives you an idea, how to read the results.
31162 \end_layout
31163
31164 \begin_layout Standard
31165 \align center
31166 \begin_inset Tabular
31167 <lyxtabular version="3" rows="6" columns="2">
31168 <features tabularvalignment="middle">
31169 <column alignment="left" valignment="top">
31170 <column alignment="left" valignment="top">
31171 <row>
31172 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31173 \begin_inset Text
31174
31175 \begin_layout Plain Layout
31176
31177 \series bold
31178 Output
31179 \end_layout
31180
31181 \end_inset
31182 </cell>
31183 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31184 \begin_inset Text
31185
31186 \begin_layout Plain Layout
31187
31188 \series bold
31189 Meaning
31190 \end_layout
31191
31192 \end_inset
31193 </cell>
31194 </row>
31195 <row>
31196 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
31197 \begin_inset Text
31198
31199 \begin_layout Plain Layout
31200 4123:4168
31201 \end_layout
31202
31203 \end_inset
31204 </cell>
31205 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31206 \begin_inset Text
31207
31208 \begin_layout Plain Layout
31209 mixed revision working copy
31210 \end_layout
31211
31212 \end_inset
31213 </cell>
31214 </row>
31215 <row>
31216 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
31217 \begin_inset Text
31218
31219 \begin_layout Plain Layout
31220 4168M
31221 \end_layout
31222
31223 \end_inset
31224 </cell>
31225 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31226 \begin_inset Text
31227
31228 \begin_layout Plain Layout
31229 modified working copy
31230 \end_layout
31231
31232 \end_inset
31233 </cell>
31234 </row>
31235 <row>
31236 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
31237 \begin_inset Text
31238
31239 \begin_layout Plain Layout
31240 4123S
31241 \end_layout
31242
31243 \end_inset
31244 </cell>
31245 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31246 \begin_inset Text
31247
31248 \begin_layout Plain Layout
31249 switched working copy
31250 \end_layout
31251
31252 \end_inset
31253 </cell>
31254 </row>
31255 <row>
31256 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
31257 \begin_inset Text
31258
31259 \begin_layout Plain Layout
31260 4123P
31261 \end_layout
31262
31263 \end_inset
31264 </cell>
31265 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31266 \begin_inset Text
31267
31268 \begin_layout Plain Layout
31269 partial working copy, from a sparse checkout
31270 \end_layout
31271
31272 \end_inset
31273 </cell>
31274 </row>
31275 <row>
31276 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31277 \begin_inset Text
31278
31279 \begin_layout Plain Layout
31280 4123:4168MS
31281 \end_layout
31282
31283 \end_inset
31284 </cell>
31285 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31286 \begin_inset Text
31287
31288 \begin_layout Plain Layout
31289 mixed revision, modified, switched working copy
31290 \end_layout
31291
31292 \end_inset
31293 </cell>
31294 </row>
31295 </lyxtabular>
31296
31297 \end_inset
31298
31299
31300 \end_layout
31301
31302 \begin_layout Itemize
31303 file revision information.
31304  The result comes from parsing the output of 
31305 \begin_inset Flex Code
31306 status collapsed
31307
31308 \begin_layout Plain Layout
31309 svn
31310 \begin_inset space ~
31311 \end_inset
31312
31313 info
31314 \begin_inset space ~
31315 \end_inset
31316
31317 --xml
31318 \begin_inset space ~
31319 \end_inset
31320
31321 file.lyx
31322 \end_layout
31323
31324 \end_inset
31325
31326 .
31327  Supported flags are:
31328 \end_layout
31329
31330 \begin_deeper
31331 \begin_layout Itemize
31332 version number of the last commit (
31333 \begin_inset Flex Code
31334 status collapsed
31335
31336 \begin_layout Plain Layout
31337 vcs-revision
31338 \end_layout
31339
31340 \end_inset
31341
31342 )
31343 \end_layout
31344
31345 \begin_layout Itemize
31346 author of the last commit (
31347 \begin_inset Flex Code
31348 status collapsed
31349
31350 \begin_layout Plain Layout
31351 vcs-author
31352 \end_layout
31353
31354 \end_inset
31355
31356 )
31357 \end_layout
31358
31359 \begin_layout Itemize
31360 date of the last commit (
31361 \begin_inset Flex Code
31362 status collapsed
31363
31364 \begin_layout Plain Layout
31365 vcs-date
31366 \end_layout
31367
31368 \end_inset
31369
31370 )
31371 \end_layout
31372
31373 \begin_layout Itemize
31374 time of the last commit (
31375 \begin_inset Flex Code
31376 status collapsed
31377
31378 \begin_layout Plain Layout
31379 vcs-time
31380 \end_layout
31381
31382 \end_inset
31383
31384 )
31385 \end_layout
31386
31387 \end_deeper
31388 \begin_layout Standard
31389 You can obtain this info via InsetInfo (
31390 \change_inserted 5863208 1564400022
31391
31392 \lang american
31393 Insert\SpecialChar menuseparator
31394 Field\SpecialChar menuseparator
31395 Version Control Revision
31396 \change_deleted 5863208 1564399852
31397
31398 \lang english
31399 e.g.
31400  
31401 \begin_inset Flex Code
31402 status collapsed
31403
31404 \begin_layout Plain Layout
31405 info-insert buffer vcs-date
31406 \end_layout
31407
31408 \end_inset
31409
31410
31411 \change_unchanged
31412 ).
31413  The information will be available only when you have the file stored under
31414  svn managment (i.e.
31415  the 
31416 \begin_inset Flex Code
31417 status collapsed
31418
31419 \begin_layout Plain Layout
31420 .svn
31421 \end_layout
31422
31423 \end_inset
31424
31425  directory is available with your document).
31426 \end_layout
31427
31428 \end_deeper
31429 \begin_layout Itemize
31430 Another—a hacking one—possibility is to use svn keywords
31431 \begin_inset Foot
31432 status collapsed
31433
31434 \begin_layout Plain Layout
31435 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
31436 \end_layout
31437
31438 \end_inset
31439
31440 .
31441  In short – you set file keywords property (e.g.
31442  
31443 \family sans
31444 svn propset svn:keywords 'Rev' file.lyx
31445 \family default
31446 ) and then paste keyword \SpecialChar TeX
31447  code
31448 \begin_inset Foot
31449 status collapsed
31450
31451 \begin_layout Plain Layout
31452 This is an easy way how to ensure that \SpecialChar LyX
31453  won't break the line in the middle
31454  of keyword tag.
31455 \end_layout
31456
31457 \end_inset
31458
31459  tag in your document (e.g.
31460  
31461 \begin_inset Flex Code
31462 status collapsed
31463
31464 \begin_layout Plain Layout
31465 $Rev$
31466 \end_layout
31467
31468 \end_inset
31469
31470 ).
31471  This way svn client will automatically substitute revision number (e.g.
31472  
31473 \begin_inset Flex Code
31474 status collapsed
31475
31476 \begin_layout Plain Layout
31477 $Rev: 59 $
31478 \end_layout
31479
31480 \end_inset
31481
31482 ) after each update and commit.
31483  There are more problems with this approach.
31484  Firstly, the '$' character is used in \SpecialChar TeX
31485  world for math equations, so any
31486  occurence of math formula 
31487 \begin_inset Formula $Rev$
31488 \end_inset
31489
31490  become 
31491 \begin_inset Formula $Rev:59$
31492 \end_inset
31493
31494  in your \SpecialChar LyX
31495  document.
31496  Similarly for other keywords like Id, Date, Author, etc.
31497  Secondly svn output is dependent on your locales, so its very easy that
31498  svn would produce some problematic strings once Date is used.
31499  Thirdly you get the whole 'Rev: 59' string in your document instead of
31500  the plain number.
31501  Until subversion implements user's custom keywords it will be hard to use
31502  this approach reliably or let \SpecialChar LyX
31503  to support it directly.
31504 \end_layout
31505
31506 \begin_layout Subsection
31507 SVN and Windows Environment
31508 \end_layout
31509
31510 \begin_layout Quote
31511 My inclination is to say that if the user cannot figure out the command
31512  line operations on their own fairly quickly, they would be well advised
31513  to use TortoiseSVN.
31514  —P.
31515  A.
31516  Rubin
31517 \end_layout
31518
31519 \begin_layout Subsubsection
31520 Preparation
31521 \end_layout
31522
31523 \begin_layout Standard
31524 In addition to installing \SpecialChar LyX
31525 , and having access to a Subversion repository,
31526  the user will need to install the Subversion client program.
31527  A Windows installer for the client program is available from 
31528 \begin_inset CommandInset href
31529 LatexCommand href
31530 name "CollabNet"
31531 target "http://www.collab.net/nonav/downloads/subversion/"
31532 literal "false"
31533
31534 \end_inset
31535
31536 .
31537  The user may also want to install 
31538 \begin_inset CommandInset href
31539 LatexCommand href
31540 name "TortoiseSVN"
31541 target "http://tortoisesvn.tigris.org/"
31542 literal "false"
31543
31544 \end_inset
31545
31546 , which integrates Subversion operations into the context (rightclick) menu
31547  of Windows Explorer.
31548  Operations done outside \SpecialChar LyX
31549  will typically be more convenient using the Explorer
31550  context menu.
31551  Note that TortoiseSVN is not a replacement for the client program, which
31552  is what \SpecialChar LyX
31553  itself will use.
31554 \end_layout
31555
31556 \begin_layout Subsubsection
31557 Bringing a document under Subversion control
31558 \end_layout
31559
31560 \begin_layout Standard
31561 Before a \SpecialChar LyX
31562  document can be brought under version control in Subversion, its
31563  parent directory needs to be under version control.
31564  If the document is being added to a project already in the repository,
31565  this is accomplished by checking the project out to the directory where
31566  the new document will be placed.
31567  If the project itself is not yet under version control (for instance, if
31568  this document starts a new project), the directory must be imported into
31569  the repository.
31570  This is done outside \SpecialChar LyX
31571 .
31572  Both import and checkout are easily accomplished from the Explorer context
31573  menu using TortoiseSVN, or alternatively can be done using the command
31574  line client at a DOS prompt.
31575  The procedure for importing the project using TortoiseSVN is described
31576  below, assuming an existing repository and a new project being started
31577  in 
31578 \family typewriter
31579 C:
31580 \backslash
31581 new project
31582 \family default
31583 .
31584  For information on using the Subversion client program, run 
31585 \family typewriter
31586 svn --help 
31587 \family default
31588 in a DOS shell.
31589 \end_layout
31590
31591 \begin_layout Enumerate
31592 Locate 
31593 \family typewriter
31594 C:
31595 \backslash
31596 new project 
31597 \family default
31598 in Windows Explorer, right click it, and select 
31599 \family sans
31600 TortoiseSVN\SpecialChar menuseparator
31601 Repo-browser
31602 \family default
31603 .
31604  If necessary, adjust the URL for the repository, then click OK.
31605 \end_layout
31606
31607 \begin_layout Enumerate
31608 Right click the level of the repository under which you want to place the
31609  new project folder (typically the top level) and click 
31610 \family sans
31611 Create folder
31612 \family default
31613  Supply a name for the project folder and click OK.
31614  Add a message for the log file if desired, then click OK again.
31615  The new project folder should appear in the repository.
31616  Finally, click OK again to exit the repository browser.
31617 \end_layout
31618
31619 \begin_layout Enumerate
31620 Once again right click 
31621 \family typewriter
31622 C:
31623 \backslash
31624 new project
31625 \family default
31626 , this time selecting SVN Checkout\SpecialChar ldots
31627  Select the URL of the project folder
31628  you just created in the repository, and set the checkout directory to 
31629 \family typewriter
31630 C:
31631 \backslash
31632 new project.
31633
31634 \family default
31635  Click OK.
31636  You will be warned about a non-empty folder; click OK to proceed.
31637  You should now have a 
31638 \family typewriter
31639 .svn
31640 \family default
31641  directory under 
31642 \family typewriter
31643 C:
31644 \backslash
31645 new project.
31646 \end_layout
31647
31648 \begin_layout Enumerate
31649 Create or open your document in \SpecialChar LyX
31650  and click 
31651 \family sans
31652 File\SpecialChar menuseparator
31653 Version
31654 \begin_inset space ~
31655 \end_inset
31656
31657 Control\SpecialChar menuseparator
31658 Register.
31659  
31660 \family default
31661 Add a log message and click OK to commit the document to version control.
31662 \end_layout
31663
31664 \begin_layout Standard
31665 From this point onward, you should have full functionality in the 
31666 \family sans
31667 File\SpecialChar menuseparator
31668 Version
31669 \begin_inset space ~
31670 \end_inset
31671
31672 Control
31673 \family default
31674  menu.
31675  You also have the option of checking the document in and out, viewing its
31676  history, etc.
31677  using the TortoiseSVN context menu in Windows Explorer or the Subversion
31678  client program from a command prompt.
31679 \end_layout
31680
31681 \begin_layout Subsubsection
31682 SSH tunnel used with SVN under Windows
31683 \end_layout
31684
31685 \begin_layout Standard
31686 Compared with Linux setting up an svn client to communicate over ssh under
31687  Windows is a rather troublesome task.
31688  We will at least offer some hints how to setup the client side but prior
31689  knowledge about ssh and the Windows command line is needed, also be prepared
31690  for a great deal of frustration\SpecialChar ldots
31691
31692 \end_layout
31693
31694 \begin_layout Enumerate
31695 Get an svn client for windows, as described in the previous sections.
31696  When it is a fresh install run some svn command (e.g.
31697  
31698 \begin_inset Flex Code
31699 status collapsed
31700
31701 \begin_layout Plain Layout
31702 svn --version
31703 \end_layout
31704
31705 \end_inset
31706
31707 ) to create config files, which you will need to change later on.
31708 \end_layout
31709
31710 \begin_layout Enumerate
31711 Choose an ssh client for Windows.
31712  There are several possibilities, we will use the one from Putty tools
31713 \begin_inset Foot
31714 status collapsed
31715
31716 \begin_layout Plain Layout
31717 \begin_inset Flex URL
31718 status collapsed
31719
31720 \begin_layout Plain Layout
31721
31722 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
31723 \end_layout
31724
31725 \end_inset
31726
31727
31728 \end_layout
31729
31730 \end_inset
31731
31732 .
31733  You will need to set the connection up so that the client doesn't ask for
31734  any password from you.
31735  To keep things easy we will use only keys without any additional password
31736  protection etc.
31737 \end_layout
31738
31739 \begin_deeper
31740 \begin_layout Enumerate
31741 Generate keys by 
31742 \begin_inset Flex Code
31743 status collapsed
31744
31745 \begin_layout Plain Layout
31746 puttygen
31747 \end_layout
31748
31749 \end_inset
31750
31751 .
31752  Save your private .ppk key file and put the public one on the server side.
31753  If the SVN server runs on Linux, note that the format of the public key
31754  is not compatible with Linux openssh and you will need to direcly copy-paste
31755  the key from the 
31756 \begin_inset Quotes eld
31757 \end_inset
31758
31759
31760 \emph on
31761 Public key for pasting into OpenSSH authorized_keys file
31762 \emph default
31763 :
31764 \begin_inset Quotes erd
31765 \end_inset
31766
31767  edit field into the server's 
31768 \begin_inset Flex Code
31769 status collapsed
31770
31771 \begin_layout Plain Layout
31772 ~/.ssh/authorized_keys
31773 \end_layout
31774
31775 \end_inset
31776
31777  / 
31778 \begin_inset Flex Code
31779 status collapsed
31780
31781 \begin_layout Plain Layout
31782 authorized_keys2
31783 \end_layout
31784
31785 \end_inset
31786
31787  file.
31788 \end_layout
31789
31790 \begin_layout Enumerate
31791 Get the Putty's 
31792 \begin_inset Flex Code
31793 status collapsed
31794
31795 \begin_layout Plain Layout
31796 plink
31797 \end_layout
31798
31799 \end_inset
31800
31801 .
31802  In the SVN config file
31803 \begin_inset Foot
31804 status collapsed
31805
31806 \begin_layout Plain Layout
31807 Exact path depends on Windows version, usually somewhere around 
31808 \begin_inset Flex Code
31809 status collapsed
31810
31811 \begin_layout Plain Layout
31812 c:
31813 \backslash
31814 Documents and Settings
31815 \backslash
31816 user
31817 \backslash
31818 Application Data
31819 \backslash
31820 Subversion
31821 \backslash
31822 config
31823 \end_layout
31824
31825 \end_inset
31826
31827  / 
31828 \begin_inset Flex Code
31829 status collapsed
31830
31831 \begin_layout Plain Layout
31832 AppData
31833 \backslash
31834 Roaming
31835 \backslash
31836 Subversion
31837 \end_layout
31838
31839 \end_inset
31840
31841 .
31842 \end_layout
31843
31844 \end_inset
31845
31846 , section [tunnels], setup ssh command, e.g.
31847  
31848 \begin_inset Flex Code
31849 status collapsed
31850
31851 \begin_layout Plain Layout
31852 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
31853 \end_layout
31854
31855 \end_inset
31856
31857 .
31858 \begin_inset Foot
31859 status collapsed
31860
31861 \begin_layout Plain Layout
31862 It will usually take a lot of time to get exact command right and it depends
31863  on many things.
31864  For example do not have some remote server saved as a default session in
31865  Putty etc.
31866  If things fail, try to connect via plink without SVN first.
31867 \end_layout
31868
31869 \end_inset
31870
31871
31872 \end_layout
31873
31874 \end_deeper
31875 \begin_layout Enumerate
31876 Checkout the SVN archive, e.
31877 \begin_inset space \thinspace{}
31878 \end_inset
31879
31880 g.
31881 \begin_inset Newline newline
31882 \end_inset
31883
31884
31885 \begin_inset Flex Code
31886 status collapsed
31887
31888 \begin_layout Plain Layout
31889 svn co svn+ssh://user@server/repository_path
31890 \end_layout
31891
31892 \end_inset
31893
31894 .
31895 \end_layout
31896
31897 \begin_layout Subsubsection
31898 End-of-Line Conversions
31899 \end_layout
31900
31901 \begin_layout Standard
31902 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
31903  will
31904  use different line endings inside the .lyx files.
31905  This is not a problem as far as \SpecialChar LyX
31906  functionality is concerned, but the commit
31907  diffs will be huge and merge-conflicts prone.
31908  Fortunately SVN itself knows
31909 \begin_inset Foot
31910 status collapsed
31911
31912 \begin_layout Plain Layout
31913 \begin_inset Flex URL
31914 status collapsed
31915
31916 \begin_layout Plain Layout
31917
31918 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
31919 \end_layout
31920
31921 \end_inset
31922
31923
31924 \end_layout
31925
31926 \end_inset
31927
31928  how to deal with CR/LF problems when switching .lyx files to the 
31929 \begin_inset Flex Code
31930 status collapsed
31931
31932 \begin_layout Plain Layout
31933 native
31934 \end_layout
31935
31936 \end_inset
31937
31938  mode.
31939 \begin_inset Foot
31940 status collapsed
31941
31942 \begin_layout Plain Layout
31943 For the lazy guys: 
31944 \begin_inset Flex Code
31945 status collapsed
31946
31947 \begin_layout Plain Layout
31948 svn propset svn:eol-style native FILE_NAME
31949 \end_layout
31950
31951 \end_inset
31952
31953
31954 \end_layout
31955
31956 \end_inset
31957
31958
31959 \end_layout
31960
31961 \begin_layout Subsection
31962 GIT commands in \SpecialChar LyX
31963
31964 \end_layout
31965
31966 \begin_layout Standard
31967 A minimal subset of GIT commands is now supported by \SpecialChar LyX
31968 .
31969  You can find the commands in the 
31970 \family sans
31971 File\SpecialChar menuseparator
31972 Version
31973 \begin_inset space ~
31974 \end_inset
31975
31976 Control
31977 \family default
31978  submenu.
31979  Please note that if you use password protected access to repository via
31980  ssh, you will be asked in terminal window.
31981  \SpecialChar LyX
31982  was tested against GIT 1.7.
31983 \begin_inset Foot
31984 status collapsed
31985
31986 \begin_layout Plain Layout
31987 Windows users please note that you need to ensure that git is on the path.
31988  This can be set from within \SpecialChar LyX
31989  at 
31990 \family sans
31991 Tools\SpecialChar menuseparator
31992 Preferences\SpecialChar menuseparator
31993 Paths\SpecialChar menuseparator
31994 PATH prefix
31995 \family default
31996 .
31997 \end_layout
31998
31999 \end_inset
32000
32001
32002 \end_layout
32003
32004 \begin_layout Standard
32005 One big difference of GIT and the other supported version control systems
32006  is the distributed nature of GIT: With traditional version control systems
32007  there is one central server which hosts the repository.
32008  Users commit their changes to the server, and get updates made by other
32009  users from it.
32010  With GIT, users commit to a local repository.
32011  The local repository can be synchronized with one or more remote repositories
32012  using the 
32013 \begin_inset Flex Code
32014 status collapsed
32015
32016 \begin_layout Plain Layout
32017 pull
32018 \end_layout
32019
32020 \end_inset
32021
32022  and 
32023 \begin_inset Flex Code
32024 status collapsed
32025
32026 \begin_layout Plain Layout
32027 push
32028 \end_layout
32029
32030 \end_inset
32031
32032  GIT commands.
32033  \SpecialChar LyX
32034  does not interact in any way with remote GIT repositories.
32035  It works exclusively with the local repository in a very similar way as
32036  with a central CVS or SVN repository.
32037  If you use remote GIT repositories you need to do the 
32038 \begin_inset Flex Code
32039 status collapsed
32040
32041 \begin_layout Plain Layout
32042 pull
32043 \end_layout
32044
32045 \end_inset
32046
32047  and 
32048 \begin_inset Flex Code
32049 status collapsed
32050
32051 \begin_layout Plain Layout
32052 push
32053 \end_layout
32054
32055 \end_inset
32056
32057  operations with your favourite GIT client.
32058 \end_layout
32059
32060 \begin_layout Subsubsection
32061
32062 \family sans
32063 Register
32064 \end_layout
32065
32066 \begin_layout Standard
32067 If your document is not under revision control, this is the only item shown
32068  in the menu.
32069  And if it is under revision control, the 
32070 \family sans
32071 Register
32072 \family default
32073  item is not visible.
32074 \end_layout
32075
32076 \begin_layout Standard
32077 This command registers in GIT your document ONLY in case you have already
32078  the documents directory under GIT control (in particular 
32079 \family typewriter
32080 .git/index
32081 \family default
32082  file exists).
32083  This means you have to checkout the archive by yourself.
32084 \end_layout
32085
32086 \begin_layout Standard
32087 Then you are asked interactively to supply an initial description of the
32088  document.
32089  Don't forget that registered file is not yet committed.
32090 \end_layout
32091
32092 \begin_layout Standard
32093 GIT command that is run: 
32094 \family typewriter
32095 git add 
32096 \begin_inset Quotes qld
32097 \end_inset
32098
32099 <file-name>
32100 \begin_inset Quotes qld
32101 \end_inset
32102
32103
32104 \end_layout
32105
32106 \begin_layout Standard
32107 Read 
32108 \family typewriter
32109 man git
32110 \family default
32111  to understand the switches.
32112 \end_layout
32113
32114 \begin_layout Subsubsection
32115
32116 \family sans
32117 Check In Changes
32118 \end_layout
32119
32120 \begin_layout Standard
32121 When you are finished editing a file, you commit your changes.
32122  When you do this, you are asked for a description of the changes.
32123  After that changes are committed.
32124 \end_layout
32125
32126 \begin_layout Standard
32127 GIT command: 
32128 \family typewriter
32129 git commit -q -m"<description>" <file-name>
32130 \end_layout
32131
32132 \begin_layout Subsubsection
32133
32134 \family sans
32135 Revert To Repository Version
32136 \end_layout
32137
32138 \begin_layout Standard
32139 This will discard all changes made to the document since the last check
32140  in.
32141  You get a warning before changes are discarded.
32142 \end_layout
32143
32144 \begin_layout Standard
32145 GIT command: 
32146 \family typewriter
32147 git checkout -q 
32148 \begin_inset Quotes qld
32149 \end_inset
32150
32151 <file-name>
32152 \begin_inset Quotes qld
32153 \end_inset
32154
32155
32156 \end_layout
32157
32158 \begin_layout Subsubsection
32159
32160 \family sans
32161 Rename
32162 \end_layout
32163
32164 \begin_layout Standard
32165 This will rename the current document including the version history.
32166  It requires a clean document without any changes since the last checkin.
32167  You are asked for a file name and a description of the rename operation.
32168  After that the document is renamed, both locally and in the repository.
32169  If the parent directories of the new and old file names differ, all relative
32170  paths of included files are adjusted (like in 
32171 \family sans
32172 File\SpecialChar menuseparator
32173 Save As
32174 \family default
32175 \SpecialChar ldots
32176 ).
32177  Finally, the document is reloaded using the new name.
32178 \end_layout
32179
32180 \begin_layout Labeling
32181 \labelwidthstring 00.00.0000
32182 GIT
32183 \begin_inset space ~
32184 \end_inset
32185
32186 commands: 
32187 \begin_inset space ~
32188 \end_inset
32189
32190
32191 \begin_inset Newline newline
32192 \end_inset
32193
32194
32195 \begin_inset Flex Code
32196 status collapsed
32197
32198 \begin_layout Plain Layout
32199 git mv 
32200 \family typewriter
32201
32202 \begin_inset Quotes qld
32203 \end_inset
32204
32205 <file-name>
32206 \begin_inset Quotes qld
32207 \end_inset
32208
32209  
32210 \begin_inset Quotes qld
32211 \end_inset
32212
32213 <new-file-name>
32214 \begin_inset Quotes qld
32215 \end_inset
32216
32217
32218 \end_layout
32219
32220 \end_inset
32221
32222
32223 \begin_inset Newline newline
32224 \end_inset
32225
32226
32227 \begin_inset Flex Code
32228 status collapsed
32229
32230 \begin_layout Plain Layout
32231 git commit
32232 \end_layout
32233
32234 \end_inset
32235
32236
32237 \end_layout
32238
32239 \begin_layout Subsubsection
32240
32241 \family sans
32242 Show History
32243 \end_layout
32244
32245 \begin_layout Standard
32246 This shows the complete history of the GIT document.
32247  The output of 
32248 \family typewriter
32249 git log 
32250 \begin_inset Quotes qld
32251 \end_inset
32252
32253 <file-name>
32254 \begin_inset Quotes qld
32255 \end_inset
32256
32257
32258 \family default
32259  is shown in a browser.
32260 \end_layout
32261
32262 \begin_layout Subsubsection
32263 Version Info
32264 \end_layout
32265
32266 \begin_layout Standard
32267 \SpecialChar LyX
32268  supports GIT hash number of the last commit to the file, 
32269 \change_inserted 1119979965 1564297456
32270 its abbreviated form, 
32271 \change_unchanged
32272 author name, date and time of last commit.
32273  All those are extracted from 
32274 \family typewriter
32275 git log -n 1 --pretty=format:%H%n
32276 \change_inserted 1119979965 1564297427
32277 %h%n
32278 \change_unchanged
32279 %an%n%ai
32280 \family default
32281 .
32282  Tree version information is obtained via 
32283 \family typewriter
32284 git describe --abbrev --dirty --long
32285 \family default
32286 .
32287  See 
32288 \begin_inset CommandInset ref
32289 LatexCommand ref
32290 reference "subsec:VCS-Revision-Information"
32291
32292 \end_inset
32293
32294  for other details.
32295 \end_layout
32296
32297 \begin_layout Subsection
32298 Further tuning
32299 \end_layout
32300
32301 \begin_layout Standard
32302 With the recent addition of the 
32303 \begin_inset Flex Code
32304 status collapsed
32305
32306 \begin_layout Plain Layout
32307 vc-command
32308 \end_layout
32309
32310 \end_inset
32311
32312  function \SpecialChar LyX
32313  power users are allowed to create their own commands for revision
32314  control.
32315 \end_layout
32316
32317 \begin_layout Standard
32318 As an example you can see how two TortoiseSVN commands could be integrated
32319  directly:
32320 \end_layout
32321
32322 \begin_layout Description
32323 Commit: 
32324 \begin_inset Flex Code
32325 status collapsed
32326
32327 \begin_layout Plain Layout
32328 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
32329 \end_layout
32330
32331 \end_inset
32332
32333
32334 \end_layout
32335
32336 \begin_layout Description
32337 Revert: 
32338 \begin_inset Flex Code
32339 status collapsed
32340
32341 \begin_layout Plain Layout
32342 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
32343 \end_layout
32344
32345 \end_inset
32346
32347
32348 \end_layout
32349
32350 \begin_layout Subsection
32351 Version control and Document comparison
32352 \end_layout
32353
32354 \begin_layout Standard
32355 One of the typical uses of version control is to inspect the changes between
32356  revisions, usually by creating 
32357 \begin_inset Flex Code
32358 status collapsed
32359
32360 \begin_layout Plain Layout
32361 diff
32362 \end_layout
32363
32364 \end_inset
32365
32366  dumps.
32367  While this is useful for plain text files, it is much less useful in the
32368  case of \SpecialChar LyX
32369  files, which have more a complicated structure.
32370  Hence we provide binding to the Document comparison feature.
32371  There are two ways of calling this feature – either by direct call of 
32372 \begin_inset Flex Code
32373 status collapsed
32374
32375 \begin_layout Plain Layout
32376 vc-compare
32377 \end_layout
32378
32379 \end_inset
32380
32381  \SpecialChar LyX
32382  function (for details see \SpecialChar LyX
32383  functions manual) or by the toolbar icon 
32384 \begin_inset Info
32385 type  "icon"
32386 arg   "vc-compare"
32387 \end_inset
32388
32389  or the menu item 
32390 \begin_inset Info
32391 type  "menu"
32392 arg   "vc-compare"
32393 \end_inset
32394
32395 , respectively.
32396  One can either compare two chosen revisions of the document or he can simply
32397  compare the current version of edited text with older revisions (where
32398  '
32399 \begin_inset Flex Noun
32400 status collapsed
32401
32402 \begin_layout Plain Layout
32403 0
32404 \end_layout
32405
32406 \end_inset
32407
32408 ' revisions back means comparison of the edited file with last commited
32409  revision).
32410  
32411 \end_layout
32412
32413 \begin_layout Standard
32414 This feature is supported for SVN and RCS though due to the more complicated
32415  versioning scheme of RCS there is a constraint – when addressing the revisions
32416  in dialog, numbers always point to the last number in RCS revision number,
32417  i.e.
32418  '35' in '1.2.35'.
32419  We don't currently support GIT addressing of revisions, one can just compare
32420  edited document with its revision X steps backs, where X is addressed as
32421  
32422 \begin_inset Flex Code
32423 status collapsed
32424
32425 \begin_layout Plain Layout
32426 HEAD~X
32427 \end_layout
32428
32429 \end_inset
32430
32431 .
32432 \end_layout
32433
32434 \begin_layout Section
32435
32436 \change_inserted 564990737 1672161575
32437 \begin_inset CommandInset label
32438 LatexCommand label
32439 name "sec:Literate-Programming"
32440
32441 \end_inset
32442
32443
32444 \change_unchanged
32445 Literate Programming
32446 \end_layout
32447
32448 \begin_layout Standard
32449 Updated by 
32450 \noun on
32451 Kayvan Sylvan 
32452 \noun default
32453 (kayvan@sylvan.com)
32454 \noun on
32455
32456 \noun default
32457 original documentation written by 
32458 \noun on
32459 Edmar Wienskoski Jr.
32460
32461 \noun default
32462  (edmar-w-jr@technologist.com)
32463 \end_layout
32464
32465 \begin_layout Subsection
32466 Introduction
32467 \end_layout
32468
32469 \begin_layout Standard
32470 The main purpose of this documentation is to show you how to use \SpecialChar LyX
32471  for literate
32472  programming, where it is assumed that you are familiar with this programming
32473  technique, and know what 
32474 \begin_inset Quotes eld
32475 \end_inset
32476
32477 tangling
32478 \begin_inset Quotes erd
32479 \end_inset
32480
32481  and 
32482 \begin_inset Quotes eld
32483 \end_inset
32484
32485 weaving
32486 \begin_inset Quotes erd
32487 \end_inset
32488
32489  means.
32490  If that is not the case, please follow the web links provided in the following
32491  sections.
32492  There is a lot of good documentation out there covering old development
32493  history to the latest tools tips.
32494 \end_layout
32495
32496 \begin_layout Standard
32497 It is also assumed that you are familiar with \SpecialChar LyX
32498  itself to a point that you
32499  are comfortable changing your \SpecialChar LyX
32500  preferences, and X resources file.
32501  If that is not the case please refer to other \SpecialChar LyX
32502  documentation to cover your
32503  specific needs.
32504 \end_layout
32505
32506 \begin_layout Subsection
32507 Literate Programming
32508 \end_layout
32509
32510 \begin_layout Standard
32511 From the Literate Programming FAQ: 
32512 \end_layout
32513
32514 \begin_layout Quotation
32515 Literate programming is the combination of documentation and source together
32516  in a fashion suited for reading by human beings.
32517  In fact, literate programs should be enjoyable reading, even inviting!
32518  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
32519  and documentation in a single file.
32520  Literate programming tools then parse the file to produce either readable
32521  documentation or compilable source.
32522  The WEB style of literate programming was created by D.
32523 \begin_inset space \thinspace{}
32524 \end_inset
32525
32526 E.
32527  Knuth during the development of his \SpecialChar TeX
32528  typesetting software.
32529  
32530 \end_layout
32531
32532 \begin_layout Standard
32533 Another excerpt says:
32534 \end_layout
32535
32536 \begin_layout Quotation
32537
32538 \emph on
32539 How is literate programming different from verbose commenting?
32540 \end_layout
32541
32542 \begin_layout Quotation
32543 There are three distinguishing characteristics.
32544  In order of importance, they are: 
32545 \end_layout
32546
32547 \begin_deeper
32548 \begin_layout Itemize
32549 flexible order of elaboration 
32550 \end_layout
32551
32552 \begin_layout Itemize
32553 automatic support for browsing 
32554 \end_layout
32555
32556 \begin_layout Itemize
32557 typeset documentation, especially diagrams and mathematics 
32558 \end_layout
32559
32560 \end_deeper
32561 \begin_layout Standard
32562 Now that I sparked your curiosity, take a look in the references.
32563 \end_layout
32564
32565 \begin_layout Subsubsection
32566 References
32567 \end_layout
32568
32569 \begin_layout Standard
32570 The complete Literate Programming FAQ can be found at:
32571 \end_layout
32572
32573 \begin_layout Quote
32574 Literate Programming FAQ 
32575 \begin_inset Flex URL
32576 status open
32577
32578 \begin_layout Plain Layout
32579
32580 http://www.literateprogramming.com/lpfaq.pdf
32581 \end_layout
32582
32583 \end_inset
32584
32585
32586 \end_layout
32587
32588 \begin_layout Standard
32589 The FAQ lists 23 (twenty three!) different literate programming tools.
32590  Where some are specialized or 
32591 \begin_inset Quotes eld
32592 \end_inset
32593
32594 tailored
32595 \begin_inset Quotes erd
32596 \end_inset
32597
32598  for particular programming languages, while other have general scope.
32599  I selected 
32600 \noun on
32601 Noweb
32602 \noun default
32603  for my own use for several reasons:
32604 \end_layout
32605
32606 \begin_layout Itemize
32607 It can generate the documentation either in \SpecialChar LaTeX
32608  or HTML.
32609 \end_layout
32610
32611 \begin_layout Itemize
32612 It has a open architecture, i.
32613 \begin_inset space \thinspace{}
32614 \end_inset
32615
32616 e.
32617 \begin_inset space \space{}
32618 \end_inset
32619
32620 it is easy to plug in new filters
32621 \begin_inset Foot
32622 status collapsed
32623
32624 \begin_layout Plain Layout
32625
32626 \emph on
32627 Filters 
32628 \emph default
32629 are programs that read a given data stream and output a manipulated data
32630  stream.
32631  That way, a WEB file (consisting of literate code) can be turned into a
32632  file consisting only of C program code or \SpecialChar LaTeX
32633  code.
32634 \end_layout
32635
32636 \end_inset
32637
32638  and to perform special processing that you may need.
32639  
32640 \end_layout
32641
32642 \begin_layout Itemize
32643 There is a good selection of filters available already (the HTML is one
32644  of them).
32645 \end_layout
32646
32647 \begin_layout Itemize
32648 It is free.
32649 \end_layout
32650
32651 \begin_layout Standard
32652 The Noweb web page can be found at: 
32653 \end_layout
32654
32655 \begin_layout Quote
32656 Noweb home page 
32657 \begin_inset Flex URL
32658 status collapsed
32659
32660 \begin_layout Plain Layout
32661
32662 https://www.cs.tufts.edu/~nr/noweb/
32663 \end_layout
32664
32665 \end_inset
32666
32667
32668 \end_layout
32669
32670 \begin_layout Standard
32671 Starting from there you can reach many other interesting links and even
32672  some literate program examples.
32673 \end_layout
32674
32675 \begin_layout Subsection
32676 \SpecialChar LyX
32677  and Literate Programming with Noweb
32678 \end_layout
32679
32680 \begin_layout Standard
32681 The \SpecialChar LyX
32682  support for Literate Programming is provided by using the generic \SpecialChar LyX
32683
32684  converters mechanism.
32685  This support is provided in a 
32686 \begin_inset Quotes eld
32687 \end_inset
32688
32689 Noweb independent
32690 \begin_inset Quotes erd
32691 \end_inset
32692
32693  way, i.
32694 \begin_inset space \thinspace{}
32695 \end_inset
32696
32697 e.
32698 \begin_inset space \space{}
32699 \end_inset
32700
32701 you will be able to use this new \SpecialChar LyX
32702  feature with some other literate programming
32703  tool of your choice by just changing your \SpecialChar LyX
32704  preferences.
32705 \end_layout
32706
32707 \begin_layout Subsubsection
32708 Generating documents and code (weaving and tangling)
32709 \end_layout
32710
32711 \begin_layout Paragraph
32712 Using the noweb module
32713 \end_layout
32714
32715 \begin_layout Standard
32716 If you have installed Noweb and \SpecialChar LyX
32717  successfully, whenever you open a new document,
32718  after you have chosen its document class, use the 
32719 \family sans
32720 Document\SpecialChar menuseparator
32721 Settings
32722 \family default
32723  menu to add the 
32724 \begin_inset Quotes eld
32725 \end_inset
32726
32727 noweb
32728 \begin_inset Quotes erd
32729 \end_inset
32730
32731  module.
32732  If Noweb is correctly installed, when you click on the 
32733 \begin_inset Quotes eld
32734 \end_inset
32735
32736 Modules
32737 \begin_inset Quotes erd
32738 \end_inset
32739
32740  link, you will see the 
32741 \begin_inset Quotes eld
32742 \end_inset
32743
32744 noweb
32745 \begin_inset Quotes erd
32746 \end_inset
32747
32748  module in the available list and you can add it to your document.
32749 \end_layout
32750
32751 \begin_layout Paragraph
32752 Typing code in
32753 \end_layout
32754
32755 \begin_layout Standard
32756 \SpecialChar LyX
32757  enables you to write code with a custom inset named 
32758 \begin_inset Flex Noun
32759 status collapsed
32760
32761 \begin_layout Plain Layout
32762 Chunk
32763 \end_layout
32764
32765 \end_inset
32766
32767 .
32768  Noweb delimits chunks like this:
32769 \end_layout
32770
32771 \begin_layout LyX-Code
32772 <<My code>>=
32773 \end_layout
32774
32775 \begin_layout LyX-Code
32776   code
32777 \end_layout
32778
32779 \begin_layout LyX-Code
32780   more code
32781 \end_layout
32782
32783 \begin_layout LyX-Code
32784   even more code
32785 \end_layout
32786
32787 \begin_layout LyX-Code
32788   @
32789 \end_layout
32790
32791 \begin_layout Standard
32792 The problem is that whatever is written in between the << and the 
32793 \family typewriter
32794 @
32795 \family default
32796  must be taken literally, i.
32797 \begin_inset space \thinspace{}
32798 \end_inset
32799
32800 e.
32801 \begin_inset space \space{}
32802 \end_inset
32803
32804 \SpecialChar LyX
32805  should be prevented from making any special interpretation of what has
32806  been written.
32807  This is also handled by 
32808 \begin_inset Flex Noun
32809 status collapsed
32810
32811 \begin_layout Plain Layout
32812 Chunk
32813 \end_layout
32814
32815 \end_inset
32816
32817 , that works like a normal text inset but has a free spacing capability.
32818 \end_layout
32819
32820 \begin_layout Standard
32821 As a special note, you can also use the 
32822 \begin_inset Quotes eld
32823 \end_inset
32824
32825 %def
32826 \begin_inset Quotes erd
32827 \end_inset
32828
32829  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
32830 rence:
32831 \end_layout
32832
32833 \begin_layout LyX-Code
32834 <<My chunk>>=
32835 \end_layout
32836
32837 \begin_layout LyX-Code
32838 def some_function(args):
32839 \end_layout
32840
32841 \begin_layout LyX-Code
32842    "This is the doc string for this function."
32843 \end_layout
32844
32845 \begin_layout LyX-Code
32846    print "My args: ", args
32847 \end_layout
32848
32849 \begin_layout LyX-Code
32850 @ %def some_function
32851 \end_layout
32852
32853 \begin_layout Standard
32854 For an example of this usage and the resulting cross-reference output, look
32855  at the Literate python program in 
32856 \emph on
32857 LIBDIR/examples/listerrors.lyx
32858 \emph default
32859  which should make this all clear.
32860 \end_layout
32861
32862 \begin_layout Paragraph
32863 Generating the documentation
32864 \end_layout
32865
32866 \begin_layout Standard
32867 At this point you already have a new document file with a proper document
32868  class, and with some code and text on it.
32869  How do I print it? The answer is simple, you select 
32870 \family sans
32871 View\SpecialChar menuseparator
32872 DVI,
32873 \family default
32874  etc.
32875  Just like you would do for a plain document.
32876  No special procedure is required.
32877 \end_layout
32878
32879 \begin_layout Standard
32880 To help orientate you, I will now explain what happens inside \SpecialChar LyX
32881 :
32882 \end_layout
32883
32884 \begin_layout Enumerate
32885 When the 
32886 \family sans
32887 Update\SpecialChar menuseparator
32888 DVI
32889 \family default
32890  menu option is chosen, a \SpecialChar LaTeX
32891  file is generated.
32892  
32893 \end_layout
32894
32895 \begin_deeper
32896 \begin_layout Standard
32897 If the document is of any literate class the generated file will be named
32898  with an extension name defined by the 
32899 \begin_inset Quotes eld
32900 \end_inset
32901
32902 literate
32903 \begin_inset Quotes erd
32904 \end_inset
32905
32906  format (defined in the Preferences panel), otherwise the file will have
32907  the usual 
32908 \family typewriter
32909 .tex
32910 \family default
32911  extension.
32912 \end_layout
32913
32914 \end_deeper
32915 \begin_layout Enumerate
32916 Note that the only difference so far is in the name of the file, no special
32917  processing is required by \SpecialChar LyX
32918 .
32919  Given that you formatted the code using the 
32920 \begin_inset Flex Noun
32921 status collapsed
32922
32923 \begin_layout Plain Layout
32924 Chunk
32925 \end_layout
32926
32927 \end_inset
32928
32929  inset that, by itself, takes care of the business.
32930 \end_layout
32931
32932 \begin_layout Enumerate
32933 If the document is of any literate class \SpecialChar LyX
32934  will then use the internal \SpecialChar LyX
32935  to
32936  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
32937  converter
32938 \begin_inset Foot
32939 status collapsed
32940
32941 \begin_layout Plain Layout
32942 The converters are defined in the 
32943 \family sans
32944 Tools\SpecialChar menuseparator
32945 Preferences
32946 \family default
32947  panel, under the 
32948 \begin_inset Quotes eld
32949 \end_inset
32950
32951 Conversion
32952 \begin_inset Quotes erd
32953 \end_inset
32954
32955  tab.
32956  See section 
32957 \emph on
32958 Converters
32959 \emph default
32960  of the 
32961 \emph on
32962 Customization
32963 \emph default
32964  manual for general information about converters.
32965 \end_layout
32966
32967 \end_inset
32968
32969  to generate the \SpecialChar LaTeX
32970  file.
32971 \end_layout
32972
32973 \begin_deeper
32974 \begin_layout Standard
32975 Otherwise it will just skip this step.
32976 \end_layout
32977
32978 \end_deeper
32979 \begin_layout Enumerate
32980 Finally, \SpecialChar LaTeX
32981  is invoked and the regular post processing continues as in a plain
32982  document.
32983 \end_layout
32984
32985 \begin_layout Standard
32986 Independence from a particular 
32987 \begin_inset Quotes eld
32988 \end_inset
32989
32990 literate tool
32991 \begin_inset Quotes erd
32992 \end_inset
32993
32994  is easily achieved by changing the commands that are run by the various
32995  converters.
32996 \end_layout
32997
32998 \begin_layout Paragraph
32999 Generating the code
33000 \end_layout
33001
33002 \begin_layout Standard
33003 When the build menu option is chosen or the corresponding button in the
33004  toolbar is pressed, a \SpecialChar LaTeX
33005  file is generated just like step 1 above.
33006  Next, \SpecialChar LyX
33007  invokes the 
33008 \family typewriter
33009 Noweb->Program
33010 \family default
33011  converter.
33012  This converter needs to be defined by the user and is not installed by
33013  default, though the Program format is.
33014  This converter (like any other converter) will have two parts:
33015 \end_layout
33016
33017 \begin_layout Enumerate
33018 The converter program itself.
33019  This program performs the conversion from the one format to the other (in
33020  this case, from the Noweb format to the Program pseudo-format).
33021 \end_layout
33022
33023 \begin_layout Enumerate
33024 The error log parser.
33025  This is a program whose sole purpose is to rewrite error messages in a
33026  format that \SpecialChar LyX
33027  understands.
33028  This makes it possible for \SpecialChar LyX
33029  to place error boxes in the right places in
33030  the file buffer.
33031 \end_layout
33032
33033 \begin_layout Standard
33034 The first part, the 
33035 \begin_inset Quotes eld
33036 \end_inset
33037
33038 Converter
33039 \begin_inset Quotes erd
33040 \end_inset
33041
33042  setting, should be set to
33043 \end_layout
33044
33045 \begin_layout LyX-Code
33046
33047 \family typewriter
33048 build-script $$i
33049 \family default
33050  $$r
33051 \end_layout
33052
33053 \begin_layout Standard
33054 This basically means that \SpecialChar LyX
33055  will call 
33056 \begin_inset Quotes eld
33057 \end_inset
33058
33059 build-script
33060 \begin_inset Quotes erd
33061 \end_inset
33062
33063  (a program or script) with the name of the Noweb file (normally a file
33064  in the \SpecialChar LyX
33065  temp directory) and the directory path of the original \SpecialChar LyX
33066  file.
33067  
33068 \end_layout
33069
33070 \begin_layout Standard
33071 This is an implementation of 
33072 \begin_inset Quotes eld
33073 \end_inset
33074
33075 build-script
33076 \begin_inset Quotes erd
33077 \end_inset
33078
33079  that you can place in a directory on your path:
33080 \end_layout
33081
33082 \begin_layout LyX-Code
33083
33084 \family sans
33085 #!/bin/sh
33086 \end_layout
33087
33088 \begin_layout LyX-Code
33089
33090 \family sans
33091 #
33092 \end_layout
33093
33094 \begin_layout LyX-Code
33095
33096 \family sans
33097 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
33098 \end_layout
33099
33100 \begin_layout Standard
33101 The next part of the converter setting is the 
33102 \begin_inset Quotes eld
33103 \end_inset
33104
33105 Flags
33106 \begin_inset Quotes erd
33107 \end_inset
33108
33109  which is to be set to
33110 \end_layout
33111
33112 \begin_layout LyX-Code
33113
33114 \family typewriter
33115 parselog=$$s/scripts/listerrors
33116 \end_layout
33117
33118 \begin_layout Standard
33119 This will run any errors that are generated by the 
33120 \begin_inset Quotes eld
33121 \end_inset
33122
33123 build-script
33124 \begin_inset Quotes erd
33125 \end_inset
33126
33127  process through the 
33128 \begin_inset Quotes eld
33129 \end_inset
33130
33131 listerrors
33132 \begin_inset Quotes erd
33133 \end_inset
33134
33135  program.
33136 \end_layout
33137
33138 \begin_layout Standard
33139 The build will normally take place in \SpecialChar LyX
33140 's temporary directory, so the files
33141  produced by the conversion will be in that directory.
33142  \SpecialChar LyX
33143  will copy out what it regards as the `main' file, but the 
33144 \family typewriter
33145 Noweb->Program
33146 \family default
33147  conversion may produce several files, and so most of these would then be
33148  deleted when \SpecialChar LyX
33149  was closed.
33150  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
33151  the build-script chunk can place the generated files in that location.
33152 \end_layout
33153
33154 \begin_layout Paragraph
33155 Build instructions in the document
33156 \end_layout
33157
33158 \begin_layout Standard
33159 The last piece of the integration between \SpecialChar LyX
33160  and noweb is the 
33161 \begin_inset Quotes eld
33162 \end_inset
33163
33164 build-script
33165 \begin_inset Quotes erd
33166 \end_inset
33167
33168  chunk.
33169  Generally, the instructions for building your program should be embedded
33170  in a chunk of its own.
33171  The noweb-specific 
33172 \begin_inset Quotes eld
33173 \end_inset
33174
33175 build-script
33176 \begin_inset Quotes erd
33177 \end_inset
33178
33179  above uses the notangle command to look for this chunk (called 
33180 \begin_inset Quotes eld
33181 \end_inset
33182
33183 build-script
33184 \begin_inset Quotes erd
33185 \end_inset
33186
33187 ) and runs its contents through 
33188 \begin_inset Quotes eld
33189 \end_inset
33190
33191 sh
33192 \begin_inset Quotes erd
33193 \end_inset
33194
33195 .
33196 \end_layout
33197
33198 \begin_layout Standard
33199 Typically, such a chunk would look something like this:
33200 \end_layout
33201
33202 \begin_layout LyX-Code
33203 <<build-script>>=
33204 \end_layout
33205
33206 \begin_layout LyX-Code
33207 #!/bin/sh
33208 \begin_inset Newline newline
33209 \end_inset
33210
33211 if [ -z "${NOWEB_SOURCE}" ]
33212 \begin_inset Newline newline
33213 \end_inset
33214
33215 then
33216 \end_layout
33217
33218 \begin_layout LyX-Code
33219 NOWEB_SOURCE=myfile.nw
33220 \begin_inset Newline newline
33221 \end_inset
33222
33223 fi
33224 \begin_inset Newline newline
33225 \end_inset
33226
33227 [...
33228  code to extract files ...
33229  use NOWEB_OUTPUT_DIR here ...]
33230 \begin_inset Newline newline
33231 \end_inset
33232
33233 [...
33234  code to compile files ...]
33235 \begin_inset Newline newline
33236 \end_inset
33237
33238 @
33239 \end_layout
33240
33241 \begin_layout Standard
33242 Look in 
33243 \change_deleted 564990737 1672161716
33244
33245 \emph on
33246 LIBDIR/examples/listerrors.lyx
33247 \emph default
33248  or in 
33249 \emph on
33250 LIBDIR/examples/Literate.lyx
33251 \change_inserted 564990737 1672161716
33252
33253 \family sans
33254 \emph default
33255 \lang american
33256 File\SpecialChar menuseparator
33257 Open Example\SpecialChar menuseparator
33258 Modules\SpecialChar menuseparator
33259 Noweb Listerrors
33260 \change_unchanged
33261
33262 \family default
33263 \lang english
33264  which implement 
33265 \change_deleted 564990737 1672161729
33266 two 
33267 \change_unchanged
33268 versions of the 
33269 \begin_inset Quotes eld
33270 \end_inset
33271
33272 listerrors
33273 \begin_inset Quotes erd
33274 \end_inset
33275
33276  program for some illustrations of how all of these pieces go together or
33277  in 
33278 \change_deleted 564990737 1672161756
33279
33280 \emph on
33281 LIBDIR/examples/noweb2lyx.lyx
33282 \change_inserted 564990737 1672161756
33283
33284 \family sans
33285 \emph default
33286 \lang american
33287 File\SpecialChar menuseparator
33288 Open Example\SpecialChar menuseparator
33289 Modules\SpecialChar menuseparator
33290 Noweb2\SpecialChar LyX
33291
33292 \change_unchanged
33293
33294 \family default
33295 \emph on
33296 \lang english
33297 .
33298
33299 \emph default
33300  Interestingly, these 
33301 \change_deleted 564990737 1672161767
33302 three 
33303 \change_unchanged
33304 files show off the language-indepence of the \SpecialChar LyX
33305  literate programming support
33306  since they are written in Python
33307 \change_deleted 564990737 1672161782
33308 , C
33309 \change_unchanged
33310  and Perl respectively.
33311 \end_layout
33312
33313 \begin_layout Subsubsection
33314 Configuring \SpecialChar LyX
33315
33316 \end_layout
33317
33318 \begin_layout Standard
33319 All the Literate Programming support is configured by the 
33320 \family sans
33321 Tools\SpecialChar menuseparator
33322 Preferences
33323 \family default
33324  panel in the 
33325 \begin_inset Quotes eld
33326 \end_inset
33327
33328 File Handling
33329 \begin_inset Quotes erd
33330 \end_inset
33331
33332  tab.
33333  The important parts are:
33334 \end_layout
33335
33336 \begin_layout Description
33337 the
33338 \begin_inset space ~
33339 \end_inset
33340
33341
33342 \begin_inset Quotes eld
33343 \end_inset
33344
33345 NoWeb
33346 \begin_inset Quotes erd
33347 \end_inset
33348
33349
33350 \begin_inset space ~
33351 \end_inset
33352
33353 format Set up via the File Formats tab, this is where the Noweb-specific
33354  pieces are set up.
33355  The 
33356 \family sans
33357 GUI Name
33358 \family default
33359  is set to 
33360 \family typewriter
33361 NoWeb
33362 \family default
33363 , the file extension is set to 
33364 \family typewriter
33365 .nw
33366 \family default
33367 .
33368  This tells \SpecialChar LyX
33369  to create a file with a 
33370 \family typewriter
33371 .nw
33372 \family default
33373  extension in the first step of the conversion process.
33374 \end_layout
33375
33376 \begin_layout Description
33377 the
33378 \begin_inset space ~
33379 \end_inset
33380
33381
33382 \family sans
33383 Program
33384 \family default
33385
33386 \begin_inset space ~
33387 \end_inset
33388
33389 format This is an empty format whose sole purpose is to be the endpoint
33390  of a conversion (which then allows us to set up a converter for it).
33391 \end_layout
33392
33393 \begin_layout Description
33394
33395 \family sans
33396 NoWeb
33397 \family default
33398 ->
33399 \family sans
33400 \SpecialChar LaTeX
33401
33402 \family default
33403  This converter performs the 
33404 \begin_inset Quotes eld
33405 \end_inset
33406
33407 weaving
33408 \begin_inset Quotes erd
33409 \end_inset
33410
33411  of the literate document.
33412  For Noweb, it is set to 
33413 \begin_inset Quotes eld
33414 \end_inset
33415
33416
33417 \family typewriter
33418 noweave -delay -index $$i > $$o
33419 \family default
33420
33421 \begin_inset Quotes erd
33422 \end_inset
33423
33424
33425 \end_layout
33426
33427 \begin_layout Description
33428
33429 \family sans
33430 NoWeb
33431 \family default
33432 ->
33433 \family sans
33434 Program
33435 \family default
33436  This performs the 
33437 \begin_inset Quotes eld
33438 \end_inset
33439
33440 tangling step
33441 \begin_inset Quotes erd
33442 \end_inset
33443
33444 .
33445  As stated above, the Converter is set to 
33446 \begin_inset Quotes eld
33447 \end_inset
33448
33449
33450 \family typewriter
33451 build-script $$i
33452 \family default
33453  $$r
33454 \begin_inset Quotes erd
33455 \end_inset
33456
33457 , with Flags set to
33458 \begin_inset Newline newline
33459 \end_inset
33460
33461
33462 \begin_inset Quotes eld
33463 \end_inset
33464
33465
33466 \family typewriter
33467 parselog=$$s/scripts/listerrors
33468 \family default
33469
33470 \begin_inset Quotes erd
33471 \end_inset
33472
33473 .
33474 \end_layout
33475
33476 \begin_layout Subsubsection
33477 Debug extensions
33478 \end_layout
33479
33480 \begin_layout Standard
33481 There is also a new function implemented in the \SpecialChar LyX
33482  server, the 
33483 \begin_inset Quotes eld
33484 \end_inset
33485
33486 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
33487  
33488 \end_layout
33489
33490 \begin_layout Standard
33491 When debugging code with ddd/gdb, it is possible to invoke a text editor
33492  at the current execution position with a single key stroke.
33493  The default ddd configuration for that is shift-ctrl-V.
33494  It happens that you can define the editor command line invocation in ddd
33495  by accessing the 
33496 \family sans
33497 Edit\SpecialChar menuseparator
33498 Preferences\SpecialChar menuseparator
33499 Helpers
33500 \family default
33501  dialog and changing the "Edit Sources" entry.
33502 \end_layout
33503
33504 \begin_layout Standard
33505 I take advantage of the newly created \SpecialChar LyX
33506  server function and this ddd feature,
33507  and set 
33508 \begin_inset Quotes eld
33509 \end_inset
33510
33511 Edit Sources
33512 \begin_inset Quotes erd
33513 \end_inset
33514
33515  to:
33516 \end_layout
33517
33518 \begin_layout LyX-Code
33519 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
33520 \end_layout
33521
33522 \begin_layout Standard
33523 With this, whenever you are using ddd and find a point in the program that
33524  you want to edit, you just press shift-ctrl-V (in the ddd window), and
33525  ddd will forward this information to \SpecialChar LyX
33526  through the \SpecialChar LyX
33527  server and then the
33528  \SpecialChar LyX
33529  window will show the same file with the cursor at the same position ddd
33530  was pointing to.
33531  No more guessing or long scrolling to locate a point in the program back
33532  from debugging !
33533 \end_layout
33534
33535 \begin_layout Standard
33536 Note however that you must enable the \SpecialChar LyX
33537  server to get this feature working
33538  (it is disabled by default).
33539  Sec.
33540 \begin_inset space ~
33541 \end_inset
33542
33543
33544 \begin_inset CommandInset ref
33545 LatexCommand ref
33546 reference "sec:Starting-the-Server"
33547
33548 \end_inset
33549
33550  explains how to do that.
33551 \end_layout
33552
33553 \begin_layout Subsubsection
33554 Toolbar extensions
33555 \end_layout
33556
33557 \begin_layout Standard
33558 There are six new buttons that can be added to your \SpecialChar LyX
33559  toolbar.
33560  Four of these buttons are short cuts to layout styles: 
33561 \family sans
33562 Standard
33563 \family default
33564
33565 \family sans
33566 Section
33567 \family default
33568
33569 \family sans
33570 \SpecialChar LaTeX
33571
33572 \family default
33573 , and 
33574 \family sans
33575 \SpecialChar LyX
33576 -Code
33577 \family default
33578 , one for the custom inset 
33579 \family sans
33580 Chunk
33581 \family default
33582 .
33583  The last one is a short cut to the 
33584 \begin_inset Quotes eld
33585 \end_inset
33586
33587 Build Program
33588 \begin_inset Quotes erd
33589 \end_inset
33590
33591  File menu entry.
33592  
33593 \end_layout
33594
33595 \begin_layout Standard
33596 \SpecialChar LyX
33597  has a range of buttons that are available for tool bar customization.
33598  In my toolbar I like to combine the six short cuts above with two more:
33599  One for 
33600 \family sans
33601 Document
33602 \family default
33603 \SpecialChar menuseparator
33604
33605 \family sans
33606 Update
33607 \family default
33608 \SpecialChar menuseparator
33609
33610 \family sans
33611 DVI
33612 \family default
33613  and the other for 
33614 \family sans
33615 Document\SpecialChar menuseparator
33616 View\SpecialChar menuseparator
33617 DVI
33618 \family default
33619  File menu entries.
33620  Here is how it looks like:
33621 \end_layout
33622
33623 \begin_layout LyX-Code
33624 Toolbar
33625 \end_layout
33626
33627 \begin_layout LyX-Code
33628   Layouts
33629 \end_layout
33630
33631 \begin_layout LyX-Code
33632   Icon "layout Standard"
33633 \end_layout
33634
33635 \begin_layout LyX-Code
33636   Icon "layout Section"
33637 \end_layout
33638
33639 \begin_layout LyX-Code
33640   Icon "layout \SpecialChar LaTeX
33641 "
33642 \end_layout
33643
33644 \begin_layout LyX-Code
33645   Icon "layout \SpecialChar LyX
33646 -Code"
33647 \end_layout
33648
33649 \begin_layout LyX-Code
33650   Icon "flex.insert Chunk"
33651 \end_layout
33652
33653 \begin_layout LyX-Code
33654   Separator
33655 \end_layout
33656
33657 \begin_layout LyX-Code
33658   Icon "buffer-view"
33659 \end_layout
33660
33661 \begin_layout LyX-Code
33662   Icon "buffer-typeset"
33663 \end_layout
33664
33665 \begin_layout LyX-Code
33666   Icon "build-program"
33667 \end_layout
33668
33669 \begin_layout LyX-Code
33670   Separator
33671 \end_layout
33672
33673 \begin_layout LyX-Code
33674 .
33675 \end_layout
33676
33677 \begin_layout LyX-Code
33678 .
33679 \end_layout
33680
33681 \begin_layout LyX-Code
33682 .
33683 \end_layout
33684
33685 \begin_layout LyX-Code
33686 End
33687 \end_layout
33688
33689 \begin_layout Subsubsection
33690 Colors customization
33691 \end_layout
33692
33693 \begin_layout Standard
33694 There are a number of colors in \SpecialChar LyX
33695  that can be customized in 
33696 \family sans
33697 Preferences
33698 \family default
33699 .
33700  One of the things that bothers people is the \SpecialChar LaTeX
33701  font color.
33702  The default color is red, since the chunks uses \SpecialChar LaTeX
33703  font, and there is a lot
33704  of chunks in literate documents, you may get tired of seeing everything
33705  in red.
33706  You can change it by going to the tabs 
33707 \family sans
33708 Look&Feel
33709 \family default
33710
33711 \family sans
33712 Colors.
33713 \end_layout
33714
33715 \begin_layout Standard
33716 The next thing is the visible presence of the newline character in the screen.
33717  You can choose the color of this particular character and make it blend
33718  in the background.
33719  I recommend you choosing a color that is close to the background but not
33720  equal, that way you still can see it is there, but it is not bothering
33721  you anymore.
33722 \end_layout
33723
33724 \begin_layout Subsection
33725 \SpecialChar LyX
33726  and knitr/Sweave
33727 \end_layout
33728
33729 \begin_layout Standard
33730 Support for 
33731 \family sans
33732 knitr
33733 \family default
33734  and 
33735 \family sans
33736 Sweave
33737 \family default
33738  is documented in
33739 \change_inserted 564990737 1672161863
33740  
33741 \family sans
33742 \lang american
33743 Help\SpecialChar menuseparator
33744 Specific Manuals\SpecialChar menuseparator
33745 Knitr
33746 \family default
33747  and
33748 \change_unchanged
33749
33750 \lang english
33751  
33752 \change_deleted 564990737 1671643409
33753 the 
33754 \emph on
33755 knitr.lyx
33756 \emph default
33757  example file
33758 \change_inserted 564990737 1672161856
33759
33760 \family sans
33761 \lang british
33762 File\SpecialChar menuseparator
33763 Open Example\SpecialChar menuseparator
33764 Modules\SpecialChar menuseparator
33765 Rnw (knitr)
33766 \change_unchanged
33767
33768 \family default
33769 \lang english
33770  and in 
33771 \change_deleted 564990737 1671643461
33772 the Sweave manual (menu 
33773 \family sans
33774 Help\SpecialChar menuseparator
33775 Specific Manuals
33776 \family default
33777 )
33778 \change_inserted 564990737 1672161856
33779
33780 \family sans
33781 \lang british
33782 Help\SpecialChar menuseparator
33783 Specific Manuals\SpecialChar menuseparator
33784 Sweave
33785 \change_deleted 564990737 1672161921
33786
33787 \family default
33788 \lang english
33789 .
33790
33791 \change_inserted 564990737 1672161917
33792  and 
33793 \family sans
33794 \lang american
33795 File\SpecialChar menuseparator
33796 Open Example\SpecialChar menuseparator
33797 Modules\SpecialChar menuseparator
33798 Sweave
33799 \family default
33800 .
33801 \change_unchanged
33802
33803 \end_layout
33804
33805 \begin_layout Chapter
33806
33807 \change_deleted 564990737 1671355343
33808 Special features
33809 \end_layout
33810
33811 \begin_layout Standard
33812
33813 \change_deleted 564990737 1671355343
33814 You can do everything with \SpecialChar LyX
33815  that you can do with \SpecialChar LaTeX
33816 .
33817  However, \SpecialChar LyX
33818  cannot support every \SpecialChar LaTeX
33819  feature directly.
33820  But you can always use \SpecialChar TeX
33821  Code.
33822  This chapter shows you some more special things you might want to use.
33823  For other special things you can do with figures, tables, floats, boxes
33824  and notes, have a look at the 
33825 \emph on
33826 Embedded
33827 \begin_inset space ~
33828 \end_inset
33829
33830 Objects
33831 \emph default
33832  manual.
33833 \change_unchanged
33834
33835 \end_layout
33836
33837 \end_body
33838 \end_document