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