]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert entries for Noweb, Rnw and Sweave in Chapter 4 Modules of Additional.lyx and...
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 graphicboxes
40 enumitem
41 \end_modules
42 \maintain_unincluded_children no
43 \language english
44 \language_package default
45 \inputencoding utf8
46 \fontencoding auto
47 \font_roman "lmodern" "default"
48 \font_sans "lmss" "default"
49 \font_typewriter "lmtt" "default"
50 \font_math "auto" "auto"
51 \font_default_family default
52 \use_non_tex_fonts false
53 \font_sc false
54 \font_roman_osf false
55 \font_sans_osf false
56 \font_typewriter_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \float_placement class
67 \float_alignment class
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX's Additional Features manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX's additional features documentation"
74 \pdf_keywords "LyX, Documentation, Additional"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen false
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize a4
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \index Index
110 \shortcut idx
111 \color #008000
112 \end_index
113 \secnumdepth 3
114 \tocdepth 3
115 \paragraph_separation indent
116 \paragraph_indentation default
117 \is_math_indent 1
118 \math_indentation default
119 \math_numbering_side default
120 \quotes_style english
121 \dynamic_quotes 0
122 \papercolumns 1
123 \papersides 2
124 \paperpagestyle headings
125 \tablestyle default
126 \tracking_changes true
127 \output_changes false
128 \change_bars false
129 \postpone_fragile_content false
130 \html_math_output 0
131 \html_css_as_file 0
132 \html_be_strict true
133 \docbook_table_output 0
134 \docbook_mathml_prefix 1
135 \author -712698321 "Jürgen Spitzmüller"
136 \author 177693 "x"
137 \author 5863208 "ab"
138 \author 244031559 "Yuriy"
139 \author 564990737 "John Lyx"
140 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
141 \author 1075283030 "Thibaut"
142 \author 1119979965 "Joel A. Kulesza"
143 \end_header
144
145 \begin_body
146
147 \begin_layout Title
148 Additional \SpecialChar LyX
149  Features
150 \end_layout
151
152 \begin_layout Subtitle
153 Version 2.
154 \change_deleted 630872221 1622909155
155 3
156 \change_inserted 630872221 1622909155
157 4
158 \change_unchanged
159 .x
160 \end_layout
161
162 \begin_layout Author
163 by the \SpecialChar LyX
164  Team
165 \begin_inset Foot
166 status collapsed
167
168 \begin_layout Plain Layout
169 \noindent
170 Principal maintainer of this file is
171 \noun on
172  Richard Kimberly Heck
173 \noun default
174 .
175  If you have comments or error corrections, please send them to the \SpecialChar LyX
176  Documentati
177 on mailing list, 
178 \begin_inset Flex Code
179 status collapsed
180
181 \begin_layout Plain Layout
182 <lyx-docs@lists.lyx.org>
183 \end_layout
184
185 \end_inset
186
187 .
188 \end_layout
189
190 \end_inset
191
192
193 \end_layout
194
195 \begin_layout Standard
196 \begin_inset CommandInset toc
197 LatexCommand tableofcontents
198
199 \end_inset
200
201
202 \end_layout
203
204 \begin_layout Chapter
205 Introduction
206 \end_layout
207
208 \begin_layout Standard
209 This manual is essentially Part II of the 
210 \emph on
211 User's Guide\SpecialChar endofsentence
212
213 \emph default
214  The reason for separating the two documents is simple: the 
215 \emph on
216 User's Guide
217 \emph default
218  is already quite lengthy, and it contains information on all of the basic
219  features one needs to know in order to prepare most documents.
220  However, the \SpecialChar LyX
221  Team has worked to make \SpecialChar LyX
222  extensible through various configuration
223  files and external packages.
224  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
225  package, you can
226  create a layout file (or module) for it without having to alter \SpecialChar LyX
227  itself.
228  We've already had contributions of several new features this way, and some
229  of them are documented here.
230  There are also some more `advanced' features, such as how to control the
231  presentation of bibliographies and how to work with multi-part documents,
232  that are not covered in the 
233 \emph on
234 User's Guide
235 \emph default
236  and are discussed here.
237 \end_layout
238
239 \begin_layout Standard
240 This manual also documents some special features, like fax support
241 \change_deleted 244031559 1603802929
242 ,
243 \change_inserted 244031559 1603802931
244  and
245 \change_unchanged
246  version control
247 \change_deleted 244031559 1603802954
248 , and SGML support
249 \change_unchanged
250 , which require additional software to work properly.
251  There is also a chapter on \SpecialChar LyX
252 's support for HTML.
253  And lastly, there's a chapter of \SpecialChar LaTeX
254  tools and tips, things you can use to
255  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
256 .
257  After all, \SpecialChar LyX
258  
259 \emph on
260 is
261 \emph default
262  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
263  features.
264 \end_layout
265
266 \begin_layout Standard
267 If you haven't read the 
268 \emph on
269 Introduction
270 \emph default
271  yet, you are definitely in the wrong manual.
272  The 
273 \emph on
274 Introduction
275 \emph default
276  is the first place to go, since it describes the notation and format of
277  all of the manuals.
278  You should also be thoroughly familiar with the 
279 \emph on
280 User's Guide
281 \emph default
282  and all of the basic features of \SpecialChar LyX
283  before attempting to read this one.
284 \end_layout
285
286 \begin_layout Standard
287 Since many of the topics in this manual depend heavily on \SpecialChar LyX
288 's interaction
289  with \SpecialChar LaTeX
290 , this first chapter covers the inner workings of \SpecialChar LyX
291  and how to direct
292  \SpecialChar LyX
293  to generate exactly the \SpecialChar LaTeX
294  code you want.
295  It is obviously for more seasoned \SpecialChar LyX
296  users.
297 \end_layout
298
299 \begin_layout Chapter
300 \SpecialChar LyX
301  and \SpecialChar LaTeX
302
303 \end_layout
304
305 \begin_layout Section
306 How \SpecialChar LyX
307  Uses \SpecialChar LaTeX
308
309 \end_layout
310
311 \begin_layout Standard
312 This chapter is for both \SpecialChar TeX
313 -nicians and the \SpecialChar LaTeX
314 -curious.
315  In it, we'll explain how \SpecialChar LyX
316  and \SpecialChar LaTeX
317  work together to produce printable output.
318  This is the only place in any of the manuals where we assume you know something
319  about \SpecialChar LaTeX
320 .
321 \end_layout
322
323 \begin_layout Standard
324 At one time, \SpecialChar LyX
325  was called a 
326 \begin_inset Quotes eld
327 \end_inset
328
329 WYSIWYM frontend to \SpecialChar LaTeX
330 ,
331 \begin_inset Quotes erd
332 \end_inset
333
334  but that's no longer true.
335  There are frontends to \SpecialChar LaTeX
336  out there.
337 \begin_inset Foot
338 status collapsed
339
340 \begin_layout Plain Layout
341 Some familar ones are \SpecialChar TeX
342 maker and kile, on Linux, and \SpecialChar TeX
343 shop, OSX.
344  There are also the \SpecialChar LaTeX
345  modes for vi and emacs, of course.
346 \end_layout
347
348 \end_inset
349
350  These are basically text editors with the ability to run \SpecialChar LaTeX
351  and mark any
352  errors in the file you're editing.
353  Although \SpecialChar LyX
354  
355 \emph on
356 is
357 \emph default
358  an editor, and it 
359 \emph on
360 does
361 \emph default
362  run \SpecialChar LaTeX
363 , and it also indicates errors in the file, it also does much, much
364  more.
365  For one thing, you don't need to know \SpecialChar LaTeX
366  to use \SpecialChar LyX
367  effectively.
368  And \SpecialChar LyX
369  has added its own extensions to \SpecialChar LaTeX
370 .
371  Try the following sometime: select 
372 \begin_inset Flex Noun
373 status collapsed
374
375 \begin_layout Plain Layout
376 Export\SpecialChar menuseparator
377 LaTeX
378 \end_layout
379
380 \end_inset
381
382  from the 
383 \begin_inset Flex Noun
384 status collapsed
385
386 \begin_layout Plain Layout
387 File
388 \end_layout
389
390 \end_inset
391
392  menu (or 
393 \begin_inset Flex Noun
394 status collapsed
395
396 \begin_layout Plain Layout
397 View\SpecialChar menuseparator
398 Source
399 \begin_inset space ~
400 \end_inset
401
402 Pane
403 \end_layout
404
405 \end_inset
406
407 ), then look at the preamble of the resulting 
408 \begin_inset Flex Code
409 status collapsed
410
411 \begin_layout Plain Layout
412 .tex
413 \end_layout
414
415 \end_inset
416
417  file.
418  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
419 .
420  These macros are defined automatically, according to the features you use
421  in the document.
422 \end_layout
423
424 \begin_layout Standard
425 There are several commands that automatically invoke \SpecialChar LaTeX
426 .
427  They are:
428 \end_layout
429
430 \begin_layout Itemize
431 \begin_inset Flex Noun
432 status collapsed
433
434 \begin_layout Plain Layout
435 Document\SpecialChar menuseparator
436 View
437 \end_layout
438
439 \end_inset
440
441
442 \end_layout
443
444 \begin_layout Itemize
445 \begin_inset Flex Noun
446 status collapsed
447
448 \begin_layout Plain Layout
449 Document\SpecialChar menuseparator
450 Update
451 \end_layout
452
453 \end_inset
454
455
456 \end_layout
457
458 \begin_layout Standard
459 They will only invoke \SpecialChar LaTeX
460  if the file has changed since the last time \SpecialChar LaTeX
461  was
462  run.
463  
464 \end_layout
465
466 \begin_layout Standard
467 When \SpecialChar LyX
468  runs \SpecialChar LaTeX
469  on the file you're editing, it performs these steps:
470 \end_layout
471
472 \begin_layout Enumerate
473 Convert the document to \SpecialChar LaTeX
474  and save to a file with the extension 
475 \begin_inset Flex Code
476 status collapsed
477
478 \begin_layout Plain Layout
479 .tex
480 \end_layout
481
482 \end_inset
483
484  in place of 
485 \begin_inset Flex Code
486 status collapsed
487
488 \begin_layout Plain Layout
489 .lyx
490 \end_layout
491
492 \end_inset
493
494 .
495 \end_layout
496
497 \begin_layout Enumerate
498 Run \SpecialChar LaTeX
499  on the 
500 \begin_inset Flex Code
501 status collapsed
502
503 \begin_layout Plain Layout
504 .tex
505 \end_layout
506
507 \end_inset
508
509  file (maybe several times), and run any other commands (such as 
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 bibtex
515 \end_layout
516
517 \end_inset
518
519  or 
520 \begin_inset Flex Code
521 status collapsed
522
523 \begin_layout Plain Layout
524 makeindex
525 \end_layout
526
527 \end_inset
528
529 ) needed to compile the \SpecialChar LaTeX
530  file.
531 \end_layout
532
533 \begin_layout Enumerate
534 If there are any errors, show the error log.
535 \end_layout
536
537 \begin_layout Standard
538 If you have run \SpecialChar LaTeX
539  using 
540 \begin_inset Flex Noun
541 status collapsed
542
543 \begin_layout Plain Layout
544 View\SpecialChar menuseparator
545 DVI
546 \end_layout
547
548 \end_inset
549
550 , \SpecialChar LyX
551  then runs a DVI viewer to display the DVI-file.
552  If you have used 
553 \begin_inset Flex Noun
554 status collapsed
555
556 \begin_layout Plain Layout
557 View\SpecialChar menuseparator
558 PostScript
559 \end_layout
560
561 \end_inset
562
563 , \SpecialChar LyX
564  performs further steps:
565 \end_layout
566
567 \begin_layout Enumerate
568 Run 
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 dvips
574 \end_layout
575
576 \end_inset
577
578  to convert the DVI file to PostScript.
579 \end_layout
580
581 \begin_layout Enumerate
582 Run a PostScript viewer, such as 
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 ghostview
588 \end_layout
589
590 \end_inset
591
592 , to display the PostScript file.
593 \end_layout
594
595 \begin_layout Standard
596 \SpecialChar LyX
597  does similar things when viewing, or exporting, other formats.
598 \end_layout
599
600 \begin_layout Section
601 Translating \SpecialChar LaTeX
602  files into \SpecialChar LyX
603
604 \end_layout
605
606 \begin_layout Standard
607 You can import a \SpecialChar LaTeX
608  file into \SpecialChar LyX
609  by using the 
610 \begin_inset Flex Noun
611 status collapsed
612
613 \begin_layout Plain Layout
614 File\SpecialChar menuseparator
615 Import\SpecialChar menuseparator
616 LaTeX
617 \end_layout
618
619 \end_inset
620
621  command in \SpecialChar LyX
622 .
623  This will call a program named 
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 tex2lyx
629 \end_layout
630
631 \end_inset
632
633  which will create a file 
634 \begin_inset Flex Code
635 status collapsed
636
637 \begin_layout Plain Layout
638 foo.lyx
639 \end_layout
640
641 \end_inset
642
643  from the file 
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648 foo.tex
649 \end_layout
650
651 \end_inset
652
653 .
654  \SpecialChar LyX
655  will then open that file.
656 \begin_inset Foot
657 status collapsed
658
659 \begin_layout Plain Layout
660 \begin_inset Flex Code
661 status collapsed
662
663 \begin_layout Plain Layout
664 tex2lyx
665 \end_layout
666
667 \end_inset
668
669  can also be run from the command line, of course.
670 \end_layout
671
672 \end_inset
673
674
675 \end_layout
676
677 \begin_layout Standard
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 tex2lyx
683 \end_layout
684
685 \end_inset
686
687  will translate most legal \SpecialChar LaTeX
688 , but not everything.
689  It will put things it doesn't understand into \SpecialChar TeX
690  code, so after translating
691  a file with 
692 \begin_inset Flex Code
693 status collapsed
694
695 \begin_layout Plain Layout
696 tex2lyx
697 \end_layout
698
699 \end_inset
700
701 , you can look for \SpecialChar TeX
702  code and hand-edit it until it looks right.
703 \end_layout
704
705 \begin_layout Standard
706 If you don't know what \SpecialChar TeX
707  code is, read the next section.
708 \end_layout
709
710 \begin_layout Section
711 \begin_inset CommandInset label
712 LatexCommand label
713 name "sec:Inserting-TeX-Code"
714
715 \end_inset
716
717 Inserting \SpecialChar TeX
718  Code into \SpecialChar LyX
719  Documents 
720 \end_layout
721
722 \begin_layout Standard
723 Anything you can do in \SpecialChar LaTeX
724  you can do in \SpecialChar LyX
725 , for a very simple reason: You can
726  always insert \SpecialChar TeX
727  code into any \SpecialChar LyX
728  document.
729  \SpecialChar LyX
730  cannot, and will never be able to, display every possible \SpecialChar LaTeX
731  construct.
732  If ever you need to insert \SpecialChar LaTeX
733  commands into your \SpecialChar LyX
734  document, you can use the
735  
736 \begin_inset Flex Code
737 status collapsed
738
739 \begin_layout Plain Layout
740 \SpecialChar TeX
741  Code
742 \end_layout
743
744 \end_inset
745
746  box, which you can insert into your document with 
747 \begin_inset Flex Noun
748 status collapsed
749
750 \begin_layout Plain Layout
751 Insert\SpecialChar menuseparator
752
753 \family sans
754 TeX
755 \family default
756  Code
757 \end_layout
758
759 \end_inset
760
761  or the keyboard shortcut 
762 \begin_inset Info
763 type  "shortcut"
764 arg   "ert-insert"
765 \end_inset
766
767 .
768 \end_layout
769
770 \begin_layout Standard
771 Here's an example of inserting \SpecialChar LaTeX
772  commands in a \SpecialChar LyX
773  document.
774  The code looks like this:
775 \end_layout
776
777 \begin_layout LyX-Code
778
779 \backslash
780 begin{tabular}{ll}
781 \begin_inset Newline newline
782 \end_inset
783
784
785 \backslash
786 begin{minipage}{5cm}
787 \begin_inset Newline newline
788 \end_inset
789
790 This is an example of a minipage environment.
791  You 
792 \begin_inset Newline newline
793 \end_inset
794
795 can put nearly everything in it, even (non-floating) 
796 \begin_inset Newline newline
797 \end_inset
798
799 figures and tables.
800  
801 \begin_inset Newline newline
802 \end_inset
803
804
805 \backslash
806 end{minipage}
807 \begin_inset Newline newline
808 \end_inset
809
810 &
811 \begin_inset Newline newline
812 \end_inset
813
814
815 \backslash
816 begin{minipage}{5cm}
817 \begin_inset Newline newline
818 \end_inset
819
820
821 \backslash
822 begin{verbatim}
823 \begin_inset Newline newline
824 \end_inset
825
826
827 \backslash
828 begin{minipage}{5cm}
829 \begin_inset Newline newline
830 \end_inset
831
832 This ...
833  
834 \begin_inset Newline newline
835 \end_inset
836
837
838 \backslash
839 end{minipage}
840 \begin_inset Newline newline
841 \end_inset
842
843
844 \backslash
845 end{verbatim}
846 \begin_inset Newline newline
847 \end_inset
848
849
850 \backslash
851 end{minipage}
852 \begin_inset Newline newline
853 \end_inset
854
855
856 \backslash
857 end{tabular}
858 \end_layout
859
860 \begin_layout LyX-Code
861
862 \end_layout
863
864 \begin_layout Standard
865 The 
866 \begin_inset Flex Code
867 status collapsed
868
869 \begin_layout Plain Layout
870 \SpecialChar TeX
871  Code
872 \end_layout
873
874 \end_inset
875
876  box containing this text is directly after this paragraph.
877  Those of you reading the manual in \SpecialChar LyX
878  will only see the \SpecialChar TeX
879  code inset.
880  Those reading a printed version of the manuals will see the actual results:
881 \begin_inset VSpace bigskip
882 \end_inset
883
884
885 \end_layout
886
887 \begin_layout Standard
888 \begin_inset ERT
889 status open
890
891 \begin_layout Plain Layout
892
893
894 \backslash
895 begin{tabular}{ll}
896 \end_layout
897
898 \begin_layout Plain Layout
899
900
901 \backslash
902 begin{minipage}{5cm}
903 \end_layout
904
905 \begin_layout Plain Layout
906
907 This is an example of a minipage environment.
908  You can put nearly everything in it, even (non-floating) figures and tables.
909  
910 \end_layout
911
912 \begin_layout Plain Layout
913
914
915 \backslash
916 end{minipage}
917 \end_layout
918
919 \begin_layout Plain Layout
920
921 &
922 \end_layout
923
924 \begin_layout Plain Layout
925
926
927 \backslash
928 begin{minipage}{5cm}
929 \end_layout
930
931 \begin_layout Plain Layout
932
933
934 \backslash
935 begin{verbatim}
936 \end_layout
937
938 \begin_layout Plain Layout
939
940
941 \backslash
942 begin{minipage}{5cm}
943 \end_layout
944
945 \begin_layout Plain Layout
946
947 This ...
948  
949 \end_layout
950
951 \begin_layout Plain Layout
952
953
954 \backslash
955 end{minipage}
956 \end_layout
957
958 \begin_layout Plain Layout
959
960
961 \backslash
962 end{verbatim}
963 \end_layout
964
965 \begin_layout Plain Layout
966
967
968 \backslash
969 end{minipage}
970 \end_layout
971
972 \begin_layout Plain Layout
973
974
975 \backslash
976 end{tabular}
977 \end_layout
978
979 \end_inset
980
981
982 \begin_inset VSpace bigskip
983 \end_inset
984
985
986 \end_layout
987
988 \begin_layout Standard
989 In addition to using \SpecialChar TeX
990  code, you can also create a separate file containing
991  some complex \SpecialChar LaTeX
992  structure and then use 
993 \begin_inset Flex Noun
994 status collapsed
995
996 \begin_layout Plain Layout
997 Insert\SpecialChar menuseparator
998 Child
999 \begin_inset space ~
1000 \end_inset
1001
1002 Document
1003 \end_layout
1004
1005 \end_inset
1006
1007  to include your file (you should select the type 
1008 \begin_inset Flex Code
1009 status collapsed
1010
1011 \begin_layout Plain Layout
1012 Input
1013 \end_layout
1014
1015 \end_inset
1016
1017 ).
1018  We recommend that you only do this if you have a 
1019 \begin_inset Flex Code
1020 status collapsed
1021
1022 \begin_layout Plain Layout
1023 .tex
1024 \end_layout
1025
1026 \end_inset
1027
1028  file which you 
1029 \emph on
1030 know
1031 \emph default
1032  works already.
1033  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1034  errors.
1035 \end_layout
1036
1037 \begin_layout Standard
1038 There are a few last points to emphasize:
1039 \end_layout
1040
1041 \begin_layout Itemize
1042 \SpecialChar LyX
1043  
1044 \emph on
1045 does not
1046 \emph default
1047  check if your \SpecialChar LaTeX
1048  code is correct.
1049 \end_layout
1050
1051 \begin_layout Itemize
1052 Beware of reinventing the wheel.
1053 \end_layout
1054
1055 \begin_layout Standard
1056 On that last point, \SpecialChar LyX
1057  does have quite a few features tucked into it, and
1058  more are coming.
1059  Be sure to check the manuals to make sure that \SpecialChar LyX
1060  doesn't have such-and-such
1061  feature before you decide you have to do it by hand.
1062  Moreover, there are numerous \SpecialChar LaTeX
1063  packages out there to do all sorts of things,
1064  from labels to envelopes to fancy multipage tables.
1065  Check out 
1066 \change_inserted 244031559 1603815732
1067
1068 \begin_inset CommandInset href
1069 LatexCommand href
1070 name "CTAN"
1071 target "https://www.ctan.org/"
1072 literal "false"
1073
1074 \end_inset
1075
1076
1077 \change_deleted 244031559 1603815732
1078
1079 \begin_inset CommandInset href
1080 LatexCommand href
1081 name "CTAN"
1082 target "http://www.ctan.org/"
1083 literal "false"
1084
1085 \end_inset
1086
1087
1088 \change_unchanged
1089  for details.
1090 \end_layout
1091
1092 \begin_layout Standard
1093 If you do need to do some wild and fancy things within your document, be
1094  sure to check out a good \SpecialChar LaTeX
1095  book for assistance.
1096  There are a number of them listed in the bibliography of the 
1097 \emph on
1098 User's Guide
1099 \emph default
1100 .
1101 \end_layout
1102
1103 \begin_layout Section
1104 \SpecialChar LyX
1105  and the \SpecialChar LaTeX
1106  Preamble
1107 \end_layout
1108
1109 \begin_layout Subsection
1110 About the \SpecialChar LaTeX
1111  Preamble
1112 \end_layout
1113
1114 \begin_layout Standard
1115 If you already know \SpecialChar LaTeX
1116 , there is no need to explain here what the preamble
1117  is good for.
1118  If you don't, the following will give you some ideas—we recommend again
1119  that you consult a \SpecialChar LaTeX
1120  book for further information.
1121  In any case, you should read the points below, because they explain what
1122  you can do and what you don't need to do in the \SpecialChar LaTeX
1123  preamble of a \SpecialChar LyX
1124  document.
1125 \end_layout
1126
1127 \begin_layout Standard
1128 The \SpecialChar LaTeX
1129  preamble comes at the very beginning of a document, 
1130 \emph on
1131 before
1132 \emph default
1133  the text.
1134  It serves to:
1135 \end_layout
1136
1137 \begin_layout Itemize
1138 Declare the document class.
1139  
1140 \begin_inset Newline newline
1141 \end_inset
1142
1143 \SpecialChar LyX
1144  already does this for you.
1145  If you're a seasoned \SpecialChar LaTeX
1146 -nician, and you have a custom document class you
1147  want to use, check out the 
1148 \emph on
1149 Customization Manual
1150 \emph default
1151  for information on how to make \SpecialChar LyX
1152  interface to it.
1153 \end_layout
1154
1155 \begin_layout Itemize
1156 Declare the usage of packages.
1157  
1158 \begin_inset Newline newline
1159 \end_inset
1160
1161 \SpecialChar LaTeX
1162  packages provide special commands, which are only available within a document
1163  when the package has been declared in the preamble.
1164  In addition to providing special commands, the inclusion of a package can
1165  change the document.
1166  For example, the package 
1167 \begin_inset Flex Code
1168 status collapsed
1169
1170 \begin_layout Plain Layout
1171 indentfirst
1172 \end_layout
1173
1174 \end_inset
1175
1176  forces all paragraphs to be indented.
1177  There are other packages for labels, envelopes, margins, etc.
1178  
1179 \end_layout
1180
1181 \begin_layout Itemize
1182 Set counters, variables, lengths and widths.
1183  
1184 \begin_inset Newline newline
1185 \end_inset
1186
1187 There are several \SpecialChar LaTeX
1188  counters and variables that 
1189 \emph on
1190 must
1191 \emph default
1192  be set globally from within the preamble in order to have the desired effect.
1193  (There are variables that you can set and reset inside the document, too.)
1194  Margins are a good example of something that must be set in the preamble.
1195  Another example is the label format for lists.
1196  You can actually set these just about anywhere, but it's best to do it
1197  just once, inside the preamble.
1198 \end_layout
1199
1200 \begin_layout Itemize
1201 Declare user defined commands (with 
1202 \begin_inset Flex Code
1203 status collapsed
1204
1205 \begin_layout Plain Layout
1206
1207 \backslash
1208 newcommand
1209 \end_layout
1210
1211 \end_inset
1212
1213  or 
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218
1219 \backslash
1220 renewcommand
1221 \end_layout
1222
1223 \end_inset
1224
1225 ).
1226 \begin_inset Newline newline
1227 \end_inset
1228
1229 These are abbreviations for \SpecialChar LaTeX
1230  commands which appear very often inside a document.
1231  Although the preamble is a good place to declare such commands, they 
1232 \emph on
1233 can
1234 \emph default
1235  be declared anywhere (before they are used for the first time, of course).
1236  This can be useful if there is a lot of raw \SpecialChar LaTeX
1237  code in your document, which
1238  normally should not be the case.
1239 \end_layout
1240
1241 \begin_layout Standard
1242 \SpecialChar LyX
1243  adds its own set of definitions to the preamble of the 
1244 \begin_inset Flex Code
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 .tex
1249 \end_layout
1250
1251 \end_inset
1252
1253  file it produces.
1254  This makes \SpecialChar LaTeX
1255  files generated by \SpecialChar LyX
1256  portable.
1257 \end_layout
1258
1259 \begin_layout Subsection
1260 Changing the Preamble
1261 \end_layout
1262
1263 \begin_layout Standard
1264 The commands which \SpecialChar LyX
1265  adds to the preamble of a \SpecialChar LaTeX
1266  file are fixed; you can't
1267  change them without patching \SpecialChar LyX
1268  itself.
1269  You can, however, add your own stuff to the preamble by selecting 
1270 \begin_inset Flex Noun
1271 status collapsed
1272
1273 \begin_layout Plain Layout
1274 \SpecialChar LaTeX
1275
1276 \begin_inset space ~
1277 \end_inset
1278
1279 Preamble
1280 \end_layout
1281
1282 \end_inset
1283
1284  in the 
1285 \begin_inset Flex Noun
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 Document\SpecialChar menuseparator
1290 Settings
1291 \end_layout
1292
1293 \end_inset
1294
1295  dialog.
1296  \SpecialChar LyX
1297  adds anything in the 
1298 \begin_inset Flex Noun
1299 status collapsed
1300
1301 \begin_layout Plain Layout
1302 Preamble
1303 \end_layout
1304
1305 \end_inset
1306
1307  dialog to its own built-in preamble.
1308  Before adding your own declarations in the preamble, you should make sure
1309  that \SpecialChar LyX
1310  doesn't already support what you want to do.
1311  (Remember what we said about reinventing the wheel?) Also, 
1312 \emph on
1313 make sure your preamble code is correct
1314 \emph default
1315 .
1316  \SpecialChar LyX
1317  doesn't check it for you.
1318  If there is an error, you're likely to get an error like 
1319 \begin_inset Quotes eld
1320 \end_inset
1321
1322
1323 \begin_inset Flex Code
1324 status collapsed
1325
1326 \begin_layout Plain Layout
1327 Missing 
1328 \backslash
1329 begin{document}
1330 \end_layout
1331
1332 \end_inset
1333
1334
1335 \begin_inset Quotes erd
1336 \end_inset
1337
1338 .
1339  If you see this error, check your preamble.
1340 \end_layout
1341
1342 \begin_layout Subsection
1343 Examples
1344 \end_layout
1345
1346 \begin_layout Standard
1347 Here are some examples of what you can add to a preamble, and what they
1348  do.
1349 \end_layout
1350
1351 \begin_layout Subsubsection
1352 Example #1: Offsets
1353 \end_layout
1354
1355 \begin_layout Standard
1356 There are two variables under \SpecialChar LaTeX
1357  that control page position: 
1358 \begin_inset Flex Code
1359 status collapsed
1360
1361 \begin_layout Plain Layout
1362
1363 \backslash
1364 hoffset
1365 \end_layout
1366
1367 \end_inset
1368
1369  and 
1370 \begin_inset Flex Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374
1375 \backslash
1376 voffset
1377 \end_layout
1378
1379 \end_inset
1380
1381 .
1382  Their names should be self-explanatory.
1383  These variables are useful if you think for a moment about computer labels.
1384  Sometimes, the size of a print medium and the area of the medium that you
1385  can actually print on aren't the same.
1386  This is where 
1387 \begin_inset Flex Code
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391
1392 \backslash
1393 hoffset
1394 \end_layout
1395
1396 \end_inset
1397
1398  and 
1399 \begin_inset Flex Code
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403
1404 \backslash
1405 voffset
1406 \end_layout
1407
1408 \end_inset
1409
1410  come in.
1411 \end_layout
1412
1413 \begin_layout Standard
1414 The default values for 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419
1420 \backslash
1421 hoffset
1422 \end_layout
1423
1424 \end_inset
1425
1426  and 
1427 \begin_inset Flex Code
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431
1432 \backslash
1433 voffset
1434 \end_layout
1435
1436 \end_inset
1437
1438  are both 0
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 points, i.
1443 \begin_inset space \thinspace{}
1444 \end_inset
1445
1446 e.
1447 \begin_inset space \space{}
1448 \end_inset
1449
1450 the page isn't shifted.
1451  Unfortunately, some DVI drivers always seem to shift the page.
1452  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1453  If you're using \SpecialChar LyX
1454  on a system that you don't personally maintain, and your
1455  sysadmin is a doofus, 
1456 \begin_inset Flex Code
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460
1461 \backslash
1462 hoffset
1463 \end_layout
1464
1465 \end_inset
1466
1467  and 
1468 \begin_inset Flex Code
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472
1473 \backslash
1474 voffset
1475 \end_layout
1476
1477 \end_inset
1478
1479  can save the day.
1480  Suppose your left and top margins are always 0.5
1481 \begin_inset space \thinspace{}
1482 \end_inset
1483
1484 inches too big.
1485  You can add this to the preamble:
1486 \end_layout
1487
1488 \begin_layout LyX-Code
1489
1490 \backslash
1491 setlength{
1492 \backslash
1493 hoffset}{-0.5 in}
1494 \end_layout
1495
1496 \begin_layout LyX-Code
1497
1498 \backslash
1499 setlength{
1500 \backslash
1501 voffset}{-0.5 in}
1502 \end_layout
1503
1504 \begin_layout Standard
1505 and your margins should now be correct.
1506 \end_layout
1507
1508 \begin_layout Subsubsection
1509 Example #2: Labels
1510 \end_layout
1511
1512 \begin_layout Standard
1513 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1514  There's a rather nice package, available at your nearest CTAN archive,
1515  for printing sheets of labels: 
1516 \begin_inset Flex Code
1517 status collapsed
1518
1519 \begin_layout Plain Layout
1520 labels.sty
1521 \end_layout
1522
1523 \end_inset
1524
1525 .
1526  Now, your system may not have this package installed by default.
1527  We leave that up to you to check.
1528  You'll also want to read the documentation for it; we're not going to do
1529  that for you.
1530  Since this is an example, however, we'll give you an example of how you
1531  use this package.
1532 \end_layout
1533
1534 \begin_layout Standard
1535 First, make sure you're using the 
1536 \begin_inset Flex Code
1537 status collapsed
1538
1539 \begin_layout Plain Layout
1540 article
1541 \end_layout
1542
1543 \end_inset
1544
1545  document class.
1546  Next, you need to put the following in your preamble:
1547 \end_layout
1548
1549 \begin_layout LyX-Code
1550
1551 \backslash
1552 usepackage{labels}
1553 \end_layout
1554
1555 \begin_layout LyX-Code
1556
1557 \backslash
1558 LabelCols=3
1559 \end_layout
1560
1561 \begin_layout LyX-Code
1562
1563 \backslash
1564 LabelRows=7
1565 \end_layout
1566
1567 \begin_layout LyX-Code
1568
1569 \backslash
1570 LeftBorder=8mm
1571 \end_layout
1572
1573 \begin_layout LyX-Code
1574
1575 \backslash
1576 RightBorder=8mm
1577 \end_layout
1578
1579 \begin_layout LyX-Code
1580
1581 \backslash
1582 TopBorder=9mm
1583 \end_layout
1584
1585 \begin_layout LyX-Code
1586
1587 \backslash
1588 BottomBorder=2mm
1589 \end_layout
1590
1591 \begin_layout Standard
1592 This sets things up for Avery label sheets, stock #5360.
1593  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1594  code, placing
1595  the commands 
1596 \begin_inset Flex Code
1597 status collapsed
1598
1599 \begin_layout Plain Layout
1600
1601 \backslash
1602 begin{labels}
1603 \end_layout
1604
1605 \end_inset
1606
1607  and 
1608 \begin_inset Flex Code
1609 status collapsed
1610
1611 \begin_layout Plain Layout
1612
1613 \backslash
1614 end{labels}
1615 \end_layout
1616
1617 \end_inset
1618
1619  around each label text.
1620  This and other special features of 
1621 \begin_inset Flex Code
1622 status collapsed
1623
1624 \begin_layout Plain Layout
1625 labels.sty
1626 \end_layout
1627
1628 \end_inset
1629
1630  are explained in its documentation.
1631 \end_layout
1632
1633 \begin_layout Standard
1634 Someday, someone may write a \SpecialChar LyX
1635  layout file to support this package directly.
1636  Maybe that someone is you.
1637 \end_layout
1638
1639 \begin_layout Subsubsection
1640 Example #3: Paragraph Indentation
1641 \end_layout
1642
1643 \begin_layout Standard
1644 Americans are trained to indent the first line of 
1645 \emph on
1646 every
1647 \emph default
1648  paragraph.
1649  As with all of their other weird quirks, most Americans will whine and
1650  moan until they can have their way and indent the first line of all paragraphs.
1651  (Yes, we're joking.
1652  (We are?) 
1653 \emph on
1654 Yeah
1655 \emph default
1656 , we are.)
1657 \end_layout
1658
1659 \begin_layout Standard
1660 Of course, this behavior isn't standard typography.
1661  In books, you typically only indent the first line of a paragraph 
1662 \emph on
1663 if
1664 \emph default
1665  it follows another one.
1666  The idea behind indenting the first line of a paragraph is to distinguish
1667  neighboring paragraphs from one another.
1668  If there is no previous paragraph—for example, if it follows a figure or
1669  is the first paragraph in a section—then there is no need for indentation.
1670  
1671 \end_layout
1672
1673 \begin_layout Standard
1674 If you're a typical American (we're still joking!), though, you don't care
1675  about such esoteric things; you want your indentation! Add this to the
1676  preamble:
1677 \end_layout
1678
1679 \begin_layout LyX-Code
1680
1681 \backslash
1682 usepackage{indentfirst}
1683 \end_layout
1684
1685 \begin_layout Standard
1686 If your \SpecialChar TeX
1687  distribution isn't braindead, you'll have this package, and all
1688  of your paragraphs will get the indentation the Founding Fathers intended
1689  they should have.
1690 \end_layout
1691
1692 \begin_layout Subsubsection
1693 Example #4: This Document
1694 \end_layout
1695
1696 \begin_layout Standard
1697 You can also check out the preamble of this document to get an idea of some
1698  of the advanced things you can do.
1699 \end_layout
1700
1701 \begin_layout Section
1702 \SpecialChar LyX
1703  and \SpecialChar LaTeX
1704  Errors
1705 \end_layout
1706
1707 \begin_layout Standard
1708 When \SpecialChar LyX
1709  calls \SpecialChar LaTeX
1710 , it tells \SpecialChar LaTeX
1711  to blithely ignore any errors and keep going.
1712  It then uses the logfile from the \SpecialChar LaTeX
1713  run to do a post-mortem.
1714  After analyzing the logfile, \SpecialChar LyX
1715  displays a dialog listing the errors.
1716  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1717  file
1718  where the error occurred.
1719 \begin_inset Foot
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 Well, usually.
1724  Analyzing the logfile is a tough job, and \SpecialChar LyX
1725  doesn't always go to the right
1726  line.
1727  There are also cases where \SpecialChar LaTeX
1728  reports the error on one line, but the actual
1729  error is earlier.
1730  This is not unlike forgetting a closing brace in a program: You'll get
1731  an error, but only later.
1732 \end_layout
1733
1734 \end_inset
1735
1736
1737 \end_layout
1738
1739 \begin_layout Standard
1740 Some folks also like to look at the log file directly: It is available from
1741  
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 Document\SpecialChar menuseparator
1747 LaTeX
1748 \begin_inset space ~
1749 \end_inset
1750
1751 Log
1752 \end_layout
1753
1754 \end_inset
1755
1756 .
1757  There are some fairly common error messages and warnings.
1758  We'll cover those here.
1759  You should look at a good \SpecialChar LaTeX
1760  book for a complete listing.
1761 \end_layout
1762
1763 \begin_layout Itemize
1764 \begin_inset Flex Code
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 LaTeX Warning
1769 \end_layout
1770
1771 \end_inset
1772
1773
1774 \begin_inset Newline newline
1775 \end_inset
1776
1777 Anything beginning with these words is a warning message for the purpose
1778  of 
1779 \begin_inset Quotes eld
1780 \end_inset
1781
1782 debugging
1783 \begin_inset Quotes erd
1784 \end_inset
1785
1786  the \SpecialChar LaTeX
1787  code itself.
1788  You'll get messages like this if you added or changed cross-references
1789  or bibliography entries, in which case, \SpecialChar LaTeX
1790  is trying to tell you that you
1791  need to make another run.
1792  You can by-and-large ignore these.
1793 \end_layout
1794
1795 \begin_layout Itemize
1796 \begin_inset Flex Code
1797 status collapsed
1798
1799 \begin_layout Plain Layout
1800 LaTeX Font Warning
1801 \end_layout
1802
1803 \end_inset
1804
1805
1806 \begin_inset Newline newline
1807 \end_inset
1808
1809 Another warning message, this time about fonts which \SpecialChar LaTeX
1810  couldn't find.
1811  The rest of the message will often say something about a replacement font
1812  that \SpecialChar LaTeX
1813  used.
1814  You can safely ignore these, too.
1815 \end_layout
1816
1817 \begin_layout Itemize
1818 \begin_inset Flex Code
1819 status collapsed
1820
1821 \begin_layout Plain Layout
1822 Overfull 
1823 \backslash
1824 hbox
1825 \end_layout
1826
1827 \end_inset
1828
1829
1830 \begin_inset Newline newline
1831 \end_inset
1832
1833 \SpecialChar LaTeX
1834  absolutely 
1835 \emph on
1836 loves
1837 \emph default
1838  to spew these out.
1839  It seems to generate at least one of these messages for just about any
1840  document you write.
1841  They are warnings about lines that were too long and run past the right
1842  margin.
1843  This happens if \SpecialChar LaTeX
1844  does not find a reasonable way to break the lines (notoriously
1845  often with typewriter font, since this does not allow for automatic break
1846  points).
1847  In many cases, this is unnoticeable in the final output.
1848  (It can be just a point or two.) Sometimes, however, the lines run rather
1849  visibly into the margin; something you will not want to have in your final
1850  print.
1851  
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855 There are several global ways to try to minimize the overfull lines.
1856  Clicking 
1857 \family sans
1858 Enable micro-typographic extensions
1859 \family default
1860  in 
1861 \family sans
1862 Document\SpecialChar menuseparator
1863 Settings\SpecialChar menuseparator
1864 Fonts
1865 \family default
1866  might already improve things a lot.
1867  Furthermore, \SpecialChar LaTeX
1868  code such as the following in 
1869 \family sans
1870 Document\SpecialChar menuseparator
1871 Settings\SpecialChar menuseparator
1872 Preamble
1873 \family default
1874  usually reduces the overfull lines drastically (we use this in the preamble
1875  of this document):
1876 \end_layout
1877
1878 \begin_deeper
1879 \begin_layout LyX-Code
1880
1881 \backslash
1882 tolerance 1414
1883 \begin_inset Newline newline
1884 \end_inset
1885
1886
1887 \backslash
1888 hbadness 1414
1889 \begin_inset Newline newline
1890 \end_inset
1891
1892
1893 \backslash
1894 emergencystretch 1.5em
1895 \begin_inset Newline newline
1896 \end_inset
1897
1898
1899 \backslash
1900 hfuzz 0.3pt
1901 \end_layout
1902
1903 \begin_layout Standard
1904 In some cases, however, you eventually have to rewrite the text to get the
1905  line breaking right.
1906 \begin_inset Foot
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 For more information, see 
1911 \begin_inset Flex URL
1912 status open
1913
1914 \begin_layout Plain Layout
1915
1916 http://www.tex.ac.uk/FAQ-overfull.html
1917 \end_layout
1918
1919 \end_inset
1920
1921
1922 \end_layout
1923
1924 \end_inset
1925
1926
1927 \end_layout
1928
1929 \begin_layout Standard
1930 In any case, you should check the respective lines, at least for the final
1931  version of your document.
1932  Your eyes will tell you if there's a problem with something that's too
1933  wide.
1934 \begin_inset Foot
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938 You can also enable the `draft' option in 
1939 \begin_inset Flex Noun
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 Document\SpecialChar menuseparator
1944 Settings
1945 \end_layout
1946
1947 \end_inset
1948
1949 , and then \SpecialChar LaTeX
1950  will draw a black box in the margin of lines that are overfull.
1951 \end_layout
1952
1953 \end_inset
1954
1955  
1956 \end_layout
1957
1958 \end_deeper
1959 \begin_layout Itemize
1960 \begin_inset Flex Code
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 Underfull 
1965 \backslash
1966 hbox
1967 \end_layout
1968
1969 \end_inset
1970
1971
1972 \begin_inset Newline newline
1973 \end_inset
1974
1975 Not quite as common as its cousin.
1976  This happens again if \SpecialChar LaTeX
1977  does not find a reasonable break point and consequently
1978  generates too loose lines.
1979  As with the overfull lines, you should check if this is a visible problem.
1980 \end_layout
1981
1982 \begin_layout Itemize
1983 \begin_inset Flex Code
1984 status collapsed
1985
1986 \begin_layout Plain Layout
1987 Overfull 
1988 \backslash
1989 vbox
1990 \end_layout
1991
1992 \end_inset
1993
1994  and 
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 Underfull 
2000 \backslash
2001 vbox
2002 \end_layout
2003
2004 \end_inset
2005
2006
2007 \begin_inset Newline newline
2008 \end_inset
2009
2010 Warnings about troubles breaking the page.
2011  Once again, just look at the output.
2012  Your eyes will tell you where something has gone wrong.
2013 \end_layout
2014
2015 \begin_layout Itemize
2016 \begin_inset Flex Code
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 LaTeX Error: File 
2021 \begin_inset Quotes els
2022 \end_inset
2023
2024 Xxxx
2025 \begin_inset Quotes ers
2026 \end_inset
2027
2028  not found
2029 \end_layout
2030
2031 \end_inset
2032
2033
2034 \begin_inset Newline newline
2035 \end_inset
2036
2037 The file 
2038 \begin_inset Quotes eld
2039 \end_inset
2040
2041 Xxxx
2042 \begin_inset Quotes erd
2043 \end_inset
2044
2045  isn't installed on this system.
2046  This usually appears because some package your document needs isn't installed.
2047  If you didn't touch the preamble or didn't use the 
2048 \begin_inset Flex Code
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052
2053 \backslash
2054 usepackage{}
2055 \end_layout
2056
2057 \end_inset
2058
2059  command, then one of the packages \SpecialChar LyX
2060  tried to load is missing.
2061  Use 
2062 \begin_inset Flex Noun
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 Help\SpecialChar menuseparator
2067 \SpecialChar LaTeX
2068  Configuration
2069 \end_layout
2070
2071 \end_inset
2072
2073  to get a list of packages that \SpecialChar LyX
2074  knows about.
2075  This file is updated whenever you reconfigure \SpecialChar LyX
2076  (using 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 Tools\SpecialChar menuseparator
2082 Reconfigure
2083 \end_layout
2084
2085 \end_inset
2086
2087 ) and tells you which packages have been detected and what they do.
2088 \begin_inset Newline newline
2089 \end_inset
2090
2091 If you did use the 
2092 \begin_inset Flex Code
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096
2097 \backslash
2098 usepackage{}
2099 \end_layout
2100
2101 \end_inset
2102
2103  command and the package in question isn't installed, then you'll need to
2104  install it yourself.
2105 \end_layout
2106
2107 \begin_layout Itemize
2108 \begin_inset Flex Code
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112 LaTeX Error: Unknown option
2113 \end_layout
2114
2115 \end_inset
2116
2117
2118 \begin_inset Newline newline
2119 \end_inset
2120
2121 Error messages beginning with this are trying to tell you that you specified
2122  a bad or undefined option to a package.
2123  Check the package's documentation.
2124 \end_layout
2125
2126 \begin_layout Itemize
2127 \begin_inset Flex Code
2128 status collapsed
2129
2130 \begin_layout Plain Layout
2131 Undefined control sequence
2132 \end_layout
2133
2134 \end_inset
2135
2136
2137 \begin_inset Newline newline
2138 \end_inset
2139
2140 If you've inserted \SpecialChar LaTeX
2141  code into your document, but made a typo, you'll get
2142  one of these.
2143  You may have forgotten to load a package.
2144  In any case, this error message usually means that you used an undefined
2145  command.
2146  
2147 \end_layout
2148
2149 \begin_layout Standard
2150 There are other error and warning messages.
2151  Some are self-explanatory.
2152  These are usually \SpecialChar LaTeX
2153  messages.
2154  Others are downright cryptic.
2155  These are usually \SpecialChar TeX
2156  error messages, and we really have 
2157 \emph on
2158 no clue
2159 \emph default
2160  what they mean or how to decipher them.
2161  No-one does.
2162 \end_layout
2163
2164 \begin_layout Standard
2165 There's a general sequence you should follow if you get error messages:
2166 \end_layout
2167
2168 \begin_layout Enumerate
2169 Look at the \SpecialChar LaTeX
2170  code you inserted for typos.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If there are no typos, check that you used the command(s) correctly.
2175 \end_layout
2176
2177 \begin_layout Enumerate
2178 If you get a bunch of error boxes piled up at the very top of the document—and
2179  especially if you see a 
2180 \begin_inset Quotes eld
2181 \end_inset
2182
2183
2184 \begin_inset Flex Code
2185 status collapsed
2186
2187 \begin_layout Plain Layout
2188 Missing 
2189 \backslash
2190 begin{document}
2191 \end_layout
2192
2193 \end_inset
2194
2195
2196 \begin_inset Quotes erd
2197 \end_inset
2198
2199  error—it means that there are errors in the preamble.
2200  Start debugging your preamble.
2201 \end_layout
2202
2203 \begin_layout Enumerate
2204 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2205  code to the
2206  document, the first suspect is your \SpecialChar LaTeX
2207  distribution itself.
2208  Check for missing packages and install them.
2209 \end_layout
2210
2211 \begin_layout Enumerate
2212 Okay, so there are no missing packages.
2213  Did you use any of the fine-tuning options in \SpecialChar LyX
2214 ? Specifically, did you 
2215 \emph on
2216 misuse
2217 \emph default
2218  any of them, like trying to manually insert lots of 
2219 \begin_inset Flex Code
2220 status collapsed
2221
2222 \begin_layout Plain Layout
2223
2224 \change_deleted 177693 1654669036
2225 Protected
2226 \change_inserted 177693 1654669038
2227 Non-Breaking
2228 \change_unchanged
2229
2230 \begin_inset space ~
2231 \end_inset
2232
2233
2234 \change_deleted 177693 1654669040
2235 Blanks
2236 \change_inserted 177693 1654669041
2237 Spaces
2238 \change_unchanged
2239
2240 \end_layout
2241
2242 \end_inset
2243
2244
2245 \begin_inset Flex Code
2246 status collapsed
2247
2248 \begin_layout Plain Layout
2249 Linebreaks
2250 \end_layout
2251
2252 \end_inset
2253
2254 , or 
2255 \begin_inset Flex Code
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 Pagebreaks
2260 \end_layout
2261
2262 \end_inset
2263
2264 ? Did you try to kludge something together with these instead of using the
2265  appropriate paragraph environment?
2266 \end_layout
2267
2268 \begin_layout Enumerate
2269 All right, you didn't use any of the fine-tuning options, you played by
2270  the rules.
2271  Did you try to pull a fancy maneuver? Did you do something funky inside
2272  a table or an equation, like inserting a graphic into a table cell?
2273 \end_layout
2274
2275 \begin_layout Enumerate
2276 Do you have long sections of text where \SpecialChar LaTeX
2277  cannot find a place to break a
2278  line? By default, \SpecialChar LaTeX
2279  is rather strict about how much extra inter-word spacing
2280  it will add in order to break a line.
2281  Preferably, you should rework the paragraph to avoid the problem.
2282 \end_layout
2283
2284 \begin_layout Enumerate
2285 Did you go overboard with the nesting? \SpecialChar LyX
2286  (currently) doesn't check to make
2287  sure you're in the limits for nesting environments.
2288  If you nested a bunch of environments to the 
2289 \begin_inset Formula $17^{\mathrm{th}}$
2290 \end_inset
2291
2292  level, that's the problem.
2293  (The limit in \SpecialChar LaTeX
2294  is five.)
2295 \end_layout
2296
2297 \begin_layout Enumerate
2298 Okay, you didn't get any error messages, but your output looks awful.
2299  If you have a table or figure that's too wide or long for the page, you
2300  need to:
2301 \end_layout
2302
2303 \begin_deeper
2304 \begin_layout Enumerate
2305 rescale the figure so it fits.
2306 \end_layout
2307
2308 \begin_layout Enumerate
2309 trim down the table so it fits.
2310 \end_layout
2311
2312 \end_deeper
2313 \begin_layout Enumerate
2314 If something else is wrong with the output, and you didn't try to pull anything
2315  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2316 \end_layout
2317
2318 \begin_layout Standard
2319 If all this doesn't help—well, then 
2320 \emph on
2321 perhaps
2322 \emph default
2323  you might have found a bug in \SpecialChar LyX
2324 \SpecialChar ldots
2325 .
2326 \end_layout
2327
2328 \begin_layout Chapter
2329
2330 \change_inserted 564990737 1670439508
2331 Document classes
2332 \end_layout
2333
2334 \begin_layout Section
2335
2336 \change_inserted 564990737 1670439533
2337 \begin_inset CommandInset label
2338 LatexCommand label
2339 name "sec:Collections"
2340
2341 \end_inset
2342
2343 Collections
2344 \end_layout
2345
2346 \begin_layout Subsection
2347 AMS \SpecialChar LaTeX
2348
2349 \end_layout
2350
2351 \begin_layout Standard
2352 by 
2353 \noun on
2354 David Johnson
2355 \noun default
2356 ; updated by 
2357 \noun on
2358 Richard Kimberly Heck
2359 \end_layout
2360
2361 \begin_layout Standard
2362 \begin_inset VSpace bigskip
2363 \end_inset
2364
2365
2366 \end_layout
2367
2368 \begin_layout Standard
2369 \noindent
2370 The AMS \SpecialChar LaTeX
2371  layouts are set up to conform to suggested styles for mathematical
2372  papers to be submitted to American Mathematical Society publications.
2373  The layouts are not tailored to a specific journal, but easily can be.
2374  You should refer to the AMS documentation for specific instructions for
2375  each journal (usually it will entail only changing a single line in the
2376  \SpecialChar TeX
2377  output).
2378  That documentation is available on the Web at 
2379 \begin_inset Flex URL
2380 status open
2381
2382 \begin_layout Plain Layout
2383
2384 http://www.ams.org
2385 \end_layout
2386
2387 \end_inset
2388
2389  or by ftp at 
2390 \begin_inset Flex URL
2391 status open
2392
2393 \begin_layout Plain Layout
2394
2395 ftp://ftp.ams.org/pub/tex/amslatex/
2396 \end_layout
2397
2398 \end_inset
2399
2400 .
2401  These layouts are appropriate, and useful, for any mathematical writing.
2402  
2403 \end_layout
2404
2405 \begin_layout Standard
2406 There are two basic AMS \SpecialChar LaTeX
2407  layouts: 
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsart: The standard AMS article format.
2412 \end_layout
2413
2414 \begin_layout Itemize
2415 amsbook: the standard AMS book (really, monograph) format.
2416  
2417 \end_layout
2418
2419 \begin_layout Standard
2420 The layouts themselves contain only the minimum necessary to use the AMS
2421  classes.
2422  They do not, in particular, contain any of the `theorem' environments used
2423  for setting theorems, lemmas, and the like.
2424  These are contained, instead, in the 
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 Theorems (AMS)
2430 \end_layout
2431
2432 \end_inset
2433
2434  module, which is loaded by default when you select one of the AMS classes.
2435  (It can also be used with other classes and can be removed, if you would
2436  rather use something else.) Less commonly used environments are in the 
2437 \begin_inset Flex Code
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441 Theorems (AMS-Extended)
2442 \end_layout
2443
2444 \end_inset
2445
2446  module, which must be loaded manually.
2447 \end_layout
2448
2449 \begin_layout Standard
2450 By default, theorems and the like are numbered consecutively throughout
2451  the document, but this may be modified by loading the module 
2452 \begin_inset Flex Code
2453 status collapsed
2454
2455 \begin_layout Plain Layout
2456 Theorems (Order by Section)
2457 \end_layout
2458
2459 \end_inset
2460
2461  or, if you are using 
2462 \begin_inset Flex Code
2463 status collapsed
2464
2465 \begin_layout Plain Layout
2466 book (AMS)
2467 \end_layout
2468
2469 \end_inset
2470
2471 , the module 
2472 \begin_inset Flex Code
2473 status collapsed
2474
2475 \begin_layout Plain Layout
2476 Theorems (Order by Chapter)
2477 \end_layout
2478
2479 \end_inset
2480
2481 .
2482  These will number the results as 
2483 \begin_inset Formula $n.m$
2484 \end_inset
2485
2486 , where the first number refers to the section (or chapter) and the second
2487  refers to the total number of results so far in that section (or chapter).
2488  Many environments are also available unnumbered.
2489  These are indicated by an asterisk at the end.
2490  If you happen to want 
2491 \emph on
2492 only
2493 \emph default
2494  unnumbered results, the module 
2495 \begin_inset Flex Code
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 Theorems (Starred)
2500 \end_layout
2501
2502 \end_inset
2503
2504  provides that option.
2505 \end_layout
2506
2507 \begin_layout Standard
2508 Note that these modules do not 
2509 \emph on
2510 have
2511 \emph default
2512  to be used with the AMS classes.
2513  It is perfectly possible to use the 
2514 \begin_inset Flex Code
2515 status collapsed
2516
2517 \begin_layout Plain Layout
2518 Theorems (AMS)
2519 \end_layout
2520
2521 \end_inset
2522
2523  module, and the others mentioned, with other classes, such as 
2524 \begin_inset Flex Code
2525 status collapsed
2526
2527 \begin_layout Plain Layout
2528 article
2529 \end_layout
2530
2531 \end_inset
2532
2533
2534 \begin_inset Flex Code
2535 status collapsed
2536
2537 \begin_layout Plain Layout
2538 report
2539 \end_layout
2540
2541 \end_inset
2542
2543
2544 \begin_inset Flex Code
2545 status collapsed
2546
2547 \begin_layout Plain Layout
2548 book (KOMA-script)
2549 \end_layout
2550
2551 \end_inset
2552
2553 , and so forth.
2554 \end_layout
2555
2556 \begin_layout Subsubsection
2557 What these layouts provide
2558 \end_layout
2559
2560 \begin_layout Standard
2561 There is a long list of included environments provided by these layouts.
2562  In AMS-\SpecialChar LaTeX
2563 , there is, in fact, an opportunity to define an unlimited variety
2564  of `theorem' environments.
2565  However, the AMS recommends the environments that are available in \SpecialChar LyX
2566 .
2567  
2568 \end_layout
2569
2570 \begin_layout Standard
2571 The following environments—as well as the standard environments, such as
2572  
2573 \begin_inset Flex Noun
2574 status collapsed
2575
2576 \begin_layout Plain Layout
2577 section
2578 \end_layout
2579
2580 \end_inset
2581
2582
2583 \begin_inset Flex Noun
2584 status collapsed
2585
2586 \begin_layout Plain Layout
2587 bibliography
2588 \end_layout
2589
2590 \end_inset
2591
2592
2593 \begin_inset Flex Noun
2594 status collapsed
2595
2596 \begin_layout Plain Layout
2597 title
2598 \end_layout
2599
2600 \end_inset
2601
2602
2603 \begin_inset Flex Noun
2604 status collapsed
2605
2606 \begin_layout Plain Layout
2607 author
2608 \end_layout
2609
2610 \end_inset
2611
2612 , and 
2613 \begin_inset Flex Noun
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617 date
2618 \end_layout
2619
2620 \end_inset
2621
2622 —are provided by 
2623 \begin_inset Flex Code
2624 status collapsed
2625
2626 \begin_layout Plain Layout
2627 article (AMS)
2628 \end_layout
2629
2630 \end_inset
2631
2632  and 
2633 \begin_inset Flex Code
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637 book (AMS)
2638 \end_layout
2639
2640 \end_inset
2641
2642 :
2643 \end_layout
2644
2645 \begin_layout Description
2646 Address This should be the author's permanent address.
2647 \end_layout
2648
2649 \begin_layout Description
2650 Current
2651 \begin_inset space ~
2652 \end_inset
2653
2654 Address This should be the author's temporary address at the time of submission,
2655  if different from the Address.
2656 \end_layout
2657
2658 \begin_layout Description
2659 Email Author's e-mail address
2660 \end_layout
2661
2662 \begin_layout Description
2663 URL Author's Web address, if desired.
2664 \end_layout
2665
2666 \begin_layout Description
2667 Keywords Key words or phrases used to identify specific topics discussed
2668  in the paper.
2669 \end_layout
2670
2671 \begin_layout Description
2672 Subjectclass These refer to the AMS Subject Classifications, published and
2673  described in 
2674 \emph on
2675 Mathematical Reviews
2676 \emph default
2677 .
2678  These are also available online at the AMS cites listed above.
2679 \end_layout
2680
2681 \begin_layout Description
2682 Thanks
2683 \end_layout
2684
2685 \begin_layout Description
2686 Dedicatory
2687 \end_layout
2688
2689 \begin_layout Description
2690 Translator
2691 \end_layout
2692
2693 \begin_layout Standard
2694 The following environments are provided by both the 
2695 \begin_inset Flex Code
2696 status collapsed
2697
2698 \begin_layout Plain Layout
2699 Theorems
2700 \end_layout
2701
2702 \end_inset
2703
2704  and 
2705 \begin_inset Flex Code
2706 status collapsed
2707
2708 \begin_layout Plain Layout
2709 Theorems (AMS)
2710 \end_layout
2711
2712 \end_inset
2713
2714  modules, in the latter case in both starred (unnumbered) and unstarred
2715  (numbered) versions.
2716  These same environments are provided only in the starred versions by the
2717  
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 Theorems (Starred)
2723 \end_layout
2724
2725 \end_inset
2726
2727  module:
2728 \end_layout
2729
2730 \begin_layout Theorem
2731 This is typically used for the statements of major results.
2732  
2733 \end_layout
2734
2735 \begin_layout Corollary*
2736 This is used for statements which follow fairly directly from previous statement
2737 s.
2738  Again, these can be major results.
2739  
2740 \end_layout
2741
2742 \begin_layout Lemma
2743 These are smaller results needed to prove other statements.
2744 \end_layout
2745
2746 \begin_layout Proposition
2747 These are less major results which (hopefully) add to the general theory
2748  being discussed.
2749 \end_layout
2750
2751 \begin_layout Conjecture
2752 These are statements provided without justification, which the author does
2753  not know how to prove, but which seem to be true (to the author, at least).
2754 \end_layout
2755
2756 \begin_layout Definition*
2757 Guess what this is for.
2758  The font is different for this environment than for the previous ones.
2759  
2760 \end_layout
2761
2762 \begin_layout Example*
2763 Used for examples illustrating proven results.
2764 \end_layout
2765
2766 \begin_layout Problem
2767 It's not really known what this is for.
2768  You should figure it out.
2769 \end_layout
2770
2771 \begin_layout Exercise*
2772 Write a description for this one.
2773 \end_layout
2774
2775 \begin_layout Remark
2776 This environment is also a type of theorem, usually a lesser sort of observation.
2777 \end_layout
2778
2779 \begin_layout Claim*
2780 Often used in the course of giving a proof of a larger result.
2781 \end_layout
2782
2783 \begin_layout Case
2784 Generally, these are used to break up long arguments, using specific instances
2785  of some condition.
2786  
2787 \end_layout
2788
2789 \begin_layout Case
2790 The numbering scheme for cases is on its own, not together with other numbered
2791  statements.
2792  
2793 \end_layout
2794
2795 \begin_layout Proof
2796 At the end of this environment, a QED symbol (usually a square, but it can
2797  vary with different styles) is placed.
2798  If you want to have other environments within this one—for example, Case
2799  environments—and have the QED symbol appear only after them, then the other
2800  environments need to be nested within the proof environment.
2801  See the section 
2802 \emph on
2803 Nesting Environments
2804 \emph default
2805  of the 
2806 \emph on
2807 User's Guide
2808 \emph default
2809  for information on nesting.
2810 \end_layout
2811
2812 \begin_layout Standard
2813 And these environments are provided by 
2814 \begin_inset Flex Code
2815 status collapsed
2816
2817 \begin_layout Plain Layout
2818 Theorems (AMS-Extended)
2819 \end_layout
2820
2821 \end_inset
2822
2823 :
2824 \end_layout
2825
2826 \begin_layout Criterion*
2827 A required condition.
2828 \end_layout
2829
2830 \begin_layout Algorithm*
2831 A general procedure to be used.
2832 \end_layout
2833
2834 \begin_layout Axiom*
2835 This is a property or statement taken as true within the system being discussed.
2836 \end_layout
2837
2838 \begin_layout Condition*
2839 Sometimes used to state a condition assumed within the present context of
2840  discussion.
2841 \end_layout
2842
2843 \begin_layout Note*
2844 Similar to a Remark.
2845 \end_layout
2846
2847 \begin_layout Notation*
2848 Used for the explanation of, yes, notation.
2849 \end_layout
2850
2851 \begin_layout Summary
2852 Do we really need to tell you? 
2853 \end_layout
2854
2855 \begin_layout Acknowledgement*
2856 Acknowledgement.
2857 \end_layout
2858
2859 \begin_layout Conclusion*
2860 Sometimes used at the end of a long train of argument.
2861 \end_layout
2862
2863 \begin_layout Fact
2864 Used in a way similar to Proposition, though perhaps lower on the scale.
2865 \end_layout
2866
2867 \begin_layout Standard
2868 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2869  and AMS fonts
2870  packages.
2871  They need to be available on your system in order to use these environments.
2872 \end_layout
2873
2874 \begin_layout Subsection
2875
2876 \change_inserted 564990737 1671383236
2877
2878 \lang american
2879 \begin_inset CommandInset label
2880 LatexCommand label
2881 name "subsec:Extra-font-sizes"
2882
2883 \end_inset
2884
2885 Extra font sizes
2886 \end_layout
2887
2888 \begin_layout Standard
2889
2890 \change_inserted 564990737 1671383236
2891
2892 \lang american
2893 The “Extra font sizes” collection provides the document classes 
2894 \family sans
2895 article
2896 \begin_inset space \thinspace{}
2897 \end_inset
2898
2899 (with extra font sizes)
2900 \family default
2901
2902 \family sans
2903 book
2904 \begin_inset space \thinspace{}
2905 \end_inset
2906
2907 (with extra font sizes)
2908 \family default
2909
2910 \family sans
2911 letter
2912 \begin_inset space \thinspace{}
2913 \end_inset
2914
2915 (with extra font sizes)
2916 \family default
2917  and 
2918 \family sans
2919 report
2920 \begin_inset space \thinspace{}
2921 \end_inset
2922
2923 (with extra font sizes)
2924 \family default
2925  which use the 
2926 \family typewriter
2927 article.cls
2928 \family default
2929
2930 \family typewriter
2931 book.cls
2932 \family default
2933
2934 \family typewriter
2935 letter.cls
2936 \family default
2937  and 
2938 \family typewriter
2939 report.cls
2940 \family default
2941  document classes respectively but offer the additional 
2942 \family sans
2943 \bar under
2944 B
2945 \bar default
2946 ase
2947 \begin_inset space ~
2948 \end_inset
2949
2950 Size
2951 \family default
2952  options 8, 9, 14, 17 and 20 in the 
2953 \family sans
2954 \bar under
2955 D
2956 \bar default
2957 ocument\SpecialChar menuseparator
2958
2959 \bar under
2960 S
2961 \bar default
2962 ettings\SpecialChar menuseparator
2963 Fonts
2964 \family default
2965  dialog.
2966 \end_layout
2967
2968 \begin_layout Subsection
2969
2970 \change_inserted 564990737 1671383236
2971
2972 \lang american
2973 Hebrew
2974 \end_layout
2975
2976 \begin_layout Standard
2977
2978 \change_inserted 564990737 1671383236
2979
2980 \lang american
2981 The document classes 
2982 \family sans
2983 article
2984 \begin_inset space \thinspace{}
2985 \end_inset
2986
2987 (Hebrew)
2988 \family default
2989  and 
2990 \family sans
2991 letter
2992 \begin_inset space \thinspace{}
2993 \end_inset
2994
2995 (Hebrew)
2996 \family default
2997  use the 
2998 \family typewriter
2999 article.cl
3000 \family sans
3001 s
3002 \family default
3003  and 
3004 \family typewriter
3005 letter.cls
3006 \family default
3007  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3008 .
3009 \end_layout
3010
3011 \begin_layout Subsection
3012
3013 \change_inserted 564990737 1671383236
3014
3015 \lang american
3016 \begin_inset CommandInset label
3017 LatexCommand label
3018 name "subsec:Japanese"
3019
3020 \end_inset
3021
3022 Japanese
3023 \end_layout
3024
3025 \begin_layout Standard
3026
3027 \change_inserted 564990737 1671383236
3028
3029 \lang american
3030 The document classes 
3031 \family sans
3032 article
3033 \begin_inset space \thinspace{}
3034 \end_inset
3035
3036 (Japanese JS Class)
3037 \family default
3038 ,
3039 \family sans
3040  article
3041 \begin_inset space \thinspace{}
3042 \end_inset
3043
3044 (Japanese Standard Class Vertical Writing)
3045 \family default
3046
3047 \family sans
3048 article
3049 \begin_inset space \thinspace{}
3050 \end_inset
3051
3052 (Japanese Standard Class)
3053 \family default
3054
3055 \family sans
3056 book
3057 \begin_inset space \thinspace{}
3058 \end_inset
3059
3060 (Japanese JS Class)
3061 \family default
3062 ,
3063 \family sans
3064  book
3065 \begin_inset space \thinspace{}
3066 \end_inset
3067
3068 (Japanese Standard Class Vertical Writing)
3069 \family default
3070
3071 \family sans
3072 book
3073 \begin_inset space \thinspace{}
3074 \end_inset
3075
3076 (Japanese Standard Class)
3077 \family default
3078
3079 \family sans
3080 report
3081 \begin_inset space \thinspace{}
3082 \end_inset
3083
3084 (Japanese Vertical Writing)
3085 \family default
3086  and 
3087 \family sans
3088 report
3089 \begin_inset space \thinspace{}
3090 \end_inset
3091
3092 (Japanese Standard Class)
3093 \family default
3094  provide document classes for the Japanese language.
3095 \end_layout
3096
3097 \begin_layout Subsection
3098 Koma-Script
3099 \end_layout
3100
3101 \begin_layout Standard
3102 by 
3103 \noun on
3104 Bernd Rellermeyer
3105 \end_layout
3106
3107 \begin_layout Subsubsection
3108 Overview
3109 \end_layout
3110
3111 \begin_layout Standard
3112 The \SpecialChar LyX
3113  document classes 
3114 \emph on
3115 article (koma-script)
3116 \emph default
3117
3118 \emph on
3119 report (koma-script)
3120 \emph default
3121
3122 \emph on
3123 book
3124 \emph default
3125  
3126 \emph on
3127 (koma-script)
3128 \emph default
3129 , and 
3130 \emph on
3131 letter
3132 \emph default
3133  
3134 \emph on
3135 (koma-script)
3136 \emph default
3137  correspond to the \SpecialChar LaTeX
3138  document classes 
3139 \family typewriter
3140 scrartcl.cls
3141 \family default
3142
3143 \family typewriter
3144 scrreprt.cls
3145 \family default
3146
3147 \family typewriter
3148 scrbook.cls
3149 \family default
3150 , and 
3151 \family typewriter
3152 scrlettr.cls
3153 \family default
3154 , resp.
3155 \begin_inset space ~
3156 \end_inset
3157
3158 of the Koma-Script family.
3159  They are replacements for the standard document classes 
3160 \family typewriter
3161 article.cls
3162 \family default
3163
3164 \family typewriter
3165 report.cls
3166 \family default
3167
3168 \family typewriter
3169 book.cls
3170 \family default
3171  and 
3172 \family typewriter
3173 letter.cls
3174 \family default
3175 , resp., and fit better to European typography conventions in a number of
3176  points.
3177 \end_layout
3178
3179 \begin_layout Itemize
3180 Standard character size is 11pt in 
3181 \emph on
3182 article (koma-script)
3183 \emph default
3184
3185 \emph on
3186 report (koma-script)
3187 \emph default
3188 , and 
3189 \emph on
3190 book (koma-script)
3191 \emph default
3192 , and 12pt in 
3193 \emph on
3194 letter (koma-script)
3195 \emph default
3196 .
3197 \end_layout
3198
3199 \begin_layout Itemize
3200 Headings, labels of the description environment, and a number of elements
3201  of the 
3202 \emph on
3203 letter (koma-script)
3204 \emph default
3205  document class are set in a bold sans serif font.
3206 \begin_inset Foot
3207 status collapsed
3208
3209 \begin_layout Plain Layout
3210 There is a big difference between the bold sans serif old cm fonts and new
3211  ec fonts, especially in the appearance of headings.
3212  In comparison, the ec bold sans serif fonts look a bit thin.
3213  Here the \SpecialChar LaTeX
3214  package 
3215 \family typewriter
3216 cmsd.sty by
3217 \family default
3218  
3219 \shape smallcaps
3220 Walter Schmidt
3221 \shape default
3222  helps to produce the 
3223 \begin_inset Quotes eld
3224 \end_inset
3225
3226 usual
3227 \begin_inset Quotes erd
3228 \end_inset
3229
3230  appearance when using the ec fonts.
3231 \end_layout
3232
3233 \end_inset
3234
3235  The numbering of chapter headings is made in the same way as the numbering
3236  of section headings, that is without the extra line 
3237 \begin_inset Quotes eld
3238 \end_inset
3239
3240 Chapter\SpecialChar ldots
3241
3242 \begin_inset Quotes erd
3243 \end_inset
3244
3245 .
3246  In addition, the appearance of the headings can be modified by using a
3247  number of options (in \SpecialChar LyX
3248  to be entered in the field 
3249 \family sans
3250 Extra
3251 \begin_inset space ~
3252 \end_inset
3253
3254 Options
3255 \family default
3256  of the dialog 
3257 \family sans
3258 Layout\SpecialChar menuseparator
3259 Document
3260 \family default
3261 ).
3262  
3263 \end_layout
3264
3265 \begin_layout Itemize
3266 The main means in the Koma-Script document classes to design the type area
3267  are the options 
3268 \family sans
3269 BCOR
3270 \family default
3271  and 
3272 \family sans
3273 DIV
3274 \family default
3275  (in \SpecialChar LyX
3276  to be entered in the extra class options field in the dialog 
3277 \family sans
3278 Document\SpecialChar menuseparator
3279 Settings
3280 \family default
3281 ).
3282  They make a clearer modification of page margins possible as do the options
3283  of the dialog 
3284 \family sans
3285 Document\SpecialChar menuseparator
3286 Settings
3287 \family default
3288 .
3289  
3290 \end_layout
3291
3292 \begin_layout Itemize
3293 The \SpecialChar LaTeX
3294  document classes of the Koma-Script family define a number of additional
3295  commands.
3296  Those part of it which makes sense in \SpecialChar LyX
3297  is implemented in corresponding
3298  paragraph types.
3299 \end_layout
3300
3301 \begin_layout Standard
3302 Detailed descriptions of the \SpecialChar LaTeX
3303  document classes of the Koma-Script family
3304  can be found in the Koma-Script documentation 
3305 \emph on
3306 scrguide
3307 \emph default
3308  (German) and 
3309 \emph on
3310 scrguien
3311 \emph default
3312  (English).
3313 \end_layout
3314
3315 \begin_layout Subsubsection
3316 article (koma-script), report (koma-script), and book (koma-script)
3317 \end_layout
3318
3319 \begin_layout Standard
3320 The document classes 
3321 \emph on
3322 article (koma-script)
3323 \emph default
3324
3325 \emph on
3326 report (koma-script)
3327 \emph default
3328 , and 
3329 \emph on
3330 book
3331 \emph default
3332  
3333 \emph on
3334 (koma-script)
3335 \emph default
3336  are implemented in the layout files 
3337 \family typewriter
3338 scrartcl.layout
3339 \family default
3340
3341 \family typewriter
3342 scrreprt.layout
3343 \family default
3344 , and 
3345 \family typewriter
3346 scrbook.layout
3347 \family default
3348 , resp.
3349  They contain all the paragraph types of the corresponding standard document
3350  classes 
3351 \emph on
3352 article
3353 \emph default
3354
3355 \emph on
3356 report
3357 \emph default
3358 , and 
3359 \emph on
3360 book
3361 \emph default
3362 , resp., partly modified, with the exception of the \SpecialChar LyX
3363  specific 
3364 \family sans
3365 List
3366 \family default
3367 -type, which is replaced by the new 
3368 \family sans
3369 Labeling
3370 \family default
3371 -type having the same functionality.
3372  Beside the 
3373 \family sans
3374 Labeling
3375 \family default
3376 -Type there is a number of new paragraph types added.
3377  They are 
3378 \emph on
3379 not
3380 \emph default
3381  part of 
3382 \emph on
3383 letter (koma-script)
3384 \emph default
3385 .
3386 \end_layout
3387
3388 \begin_layout Itemize
3389
3390 \family sans
3391 Addpart, Addchap
3392 \family default
3393
3394 \family sans
3395 Addsec
3396 \family default
3397 : are equivalents to 
3398 \family sans
3399 Part*, Chapter*
3400 \family default
3401  and 
3402 \family sans
3403 Section*
3404 \family default
3405 , resp., additionally inserting an entry in the table of contents.
3406  
3407 \family sans
3408 Addpart
3409 \family default
3410  and 
3411 \family sans
3412 Addchap
3413 \family default
3414  are not contained in 
3415 \emph on
3416 article (koma-script)
3417 \emph default
3418 .
3419 \end_layout
3420
3421 \begin_layout Itemize
3422
3423 \family sans
3424 Addchap*
3425 \family default
3426
3427 \family sans
3428 Addsec*
3429 \family default
3430 : behave exactly as 
3431 \family sans
3432 Addchap
3433 \family default
3434  and 
3435 \family sans
3436 Addsec
3437 \family default
3438 , resp., additionally clearing running heads.
3439  
3440 \family sans
3441 Addchap*
3442 \family default
3443  is not contained in 
3444 \emph on
3445 article (koma-script)
3446 \emph default
3447 .
3448 \begin_inset Foot
3449 status collapsed
3450
3451 \begin_layout Plain Layout
3452 There is also an 
3453 \family typewriter
3454
3455 \backslash
3456 addpart*
3457 \family default
3458  command in 
3459 \emph on
3460 book (koma-script)
3461 \emph default
3462  and in 
3463 \emph on
3464 report (koma-script)
3465 \emph default
3466 , but since this is identical to 
3467 \family sans
3468 Part*
3469 \family default
3470 , is has not been implemented in \SpecialChar LyX
3471 .
3472 \end_layout
3473
3474 \end_inset
3475
3476
3477 \end_layout
3478
3479 \begin_layout Itemize
3480
3481 \family sans
3482 Minisec
3483 \family default
3484 : generates a heading directly above the following paragraph in the standard
3485  character size without affecting the structure of the document.
3486 \end_layout
3487
3488 \begin_layout Itemize
3489
3490 \family sans
3491 Captionabove
3492 \family default
3493  and 
3494 \family sans
3495 Captionbelow
3496 \family default
3497  are special captions which respect the different space settings needed
3498  for captions placed above or below an element (if you follow strict typographic
3499  rules, you might want to place table captions always above the table).
3500  You can also use the class option 
3501 \family typewriter
3502 tablecaptionsabove
3503 \family default
3504 , which will switch 
3505 \family sans
3506 caption
3507 \family default
3508  to 
3509 \family sans
3510 captionabove
3511 \family default
3512  for tables and 
3513 \family sans
3514 captionbelow
3515 \family default
3516  for figures.
3517  You need at least Koma-Script version 2.8q to use this.
3518 \end_layout
3519
3520 \begin_layout Itemize
3521
3522 \family sans
3523 Dictum
3524 \family default
3525 : can be used to set a bonmot, e.
3526 \begin_inset space \thinspace{}
3527 \end_inset
3528
3529 g.
3530 \begin_inset space \space{}
3531 \end_inset
3532
3533 at the beginning of a chapter.
3534  If you use the optional argument (
3535 \family sans
3536 Insert\SpecialChar menuseparator
3537 Dictum
3538 \begin_inset space ~
3539 \end_inset
3540
3541 Author
3542 \family default
3543 ), you can insert the dictum's author there.
3544  Dictum and author are separated by a line.
3545  You need at least Koma-Script version 2.8q to use this.
3546  
3547 \family sans
3548 Dictum
3549 \family default
3550  is not contained in 
3551 \emph on
3552 article (koma-script)
3553 \emph default
3554 .
3555 \end_layout
3556
3557 \begin_layout Standard
3558 The following types, together with the standard types 
3559 \family sans
3560 Title
3561 \family default
3562
3563 \family sans
3564 Author
3565 \family default
3566 , and 
3567 \family sans
3568 Date
3569 \family default
3570 , form the title area of the document.
3571  They must be entered ahead of the first 
3572 \begin_inset Quotes eld
3573 \end_inset
3574
3575 ordinary
3576 \begin_inset Quotes erd
3577 \end_inset
3578
3579  paragraph.
3580 \begin_inset Foot
3581 status collapsed
3582
3583 \begin_layout Plain Layout
3584 The corresponding \SpecialChar LaTeX
3585  commands must appear before the 
3586 \family typewriter
3587
3588 \backslash
3589 maketitle
3590 \family default
3591  command.
3592 \end_layout
3593
3594 \end_inset
3595
3596  When such a type is used more than once, the latter usage overwrites the
3597  former one, that means, for every type only the latest usage is valid.
3598  The order of the different types however has, like 
3599 \family sans
3600 Title
3601 \family default
3602
3603 \family sans
3604 Author
3605 \family default
3606 , and 
3607 \family sans
3608 Date
3609 \family default
3610 , no effect on the appearance of the produced document.
3611 \end_layout
3612
3613 \begin_layout Itemize
3614
3615 \family sans
3616 Subject
3617 \family default
3618 : produces a centered paragraph above the ordinary title (
3619 \family sans
3620 Title
3621 \family default
3622
3623 \family sans
3624 Author
3625 \family default
3626
3627 \family sans
3628 Date
3629 \family default
3630 ) for the subject of the document.
3631 \end_layout
3632
3633 \begin_layout Itemize
3634
3635 \family sans
3636 Publishers
3637 \family default
3638 : produces a centered paragraph below the ordinary title (
3639 \family sans
3640 Title
3641 \family default
3642
3643 \family sans
3644 Author
3645 \family default
3646
3647 \family sans
3648 Date
3649 \family default
3650 ) for the publishers' name.
3651 \end_layout
3652
3653 \begin_layout Itemize
3654
3655 \family sans
3656 Dedication
3657 \family default
3658 : in 
3659 \emph on
3660 report (koma-script)
3661 \emph default
3662  and 
3663 \emph on
3664 book (koma-script)
3665 \emph default
3666  produces a centered paragraph on its own page behind the title page, or
3667  in 
3668 \emph on
3669 article (koma-script)
3670 \emph default
3671  produces a centered paragraph below the ordinary title (
3672 \family sans
3673 Title
3674 \family default
3675
3676 \family sans
3677 Author
3678 \family default
3679
3680 \family sans
3681 Date
3682 \family default
3683
3684 \family sans
3685 Publishers
3686 \family default
3687 ) for a dedication.
3688 \end_layout
3689
3690 \begin_layout Itemize
3691
3692 \family sans
3693 Titlehead
3694 \family default
3695 : produces a left aligned paragraph above the ordinary title (
3696 \family sans
3697 Title
3698 \family default
3699
3700 \family sans
3701 Author
3702 \family default
3703
3704 \family sans
3705 Date
3706 \family default
3707
3708 \family sans
3709 Subject
3710 \family default
3711 ) for a document`s head.
3712 \end_layout
3713
3714 \begin_layout Itemize
3715
3716 \family sans
3717 Uppertitleback
3718 \family default
3719 : produces in a double-sided print in 
3720 \emph on
3721 report (koma-script)
3722 \emph default
3723  and 
3724 \emph on
3725 book (koma-script)
3726 \emph default
3727  a left-aligned paragraph at the top of the title page`s back or has no
3728  effect in a single-sided print or in 
3729 \emph on
3730 article (koma-script)
3731 \emph default
3732 .
3733 \end_layout
3734
3735 \begin_layout Itemize
3736
3737 \family sans
3738 Lowertitleback
3739 \family default
3740 : produces in a double-sided print in 
3741 \emph on
3742 report (koma-script)
3743 \emph default
3744  and 
3745 \emph on
3746 book (koma-script)
3747 \emph default
3748  a left-aligned paragraph at the bottom of the title page`s back or has
3749  no effect in a single-sided print or in 
3750 \emph on
3751 article (koma-script)
3752 \emph default
3753 .
3754 \end_layout
3755
3756 \begin_layout Itemize
3757
3758 \family sans
3759 Extratitle
3760 \family default
3761 : produces a special 
3762 \begin_inset Quotes eld
3763 \end_inset
3764
3765 dirty
3766 \begin_inset Quotes erd
3767 \end_inset
3768
3769  page ahead of the actual document containing a paragraph without special
3770  formatting.
3771 \end_layout
3772
3773 \begin_layout Standard
3774 The layout files for the document classes 
3775 \emph on
3776 article (koma-script)
3777 \emph default
3778
3779 \emph on
3780 report (koma-script)
3781 \emph default
3782 , and 
3783 \emph on
3784 book (koma-script)
3785 \emph default
3786  do include the file 
3787 \family typewriter
3788 scrmacros.inc
3789 \family default
3790 .
3791  This is thought of as a place to define your own types.
3792  Copy scrmacros
3793 \family typewriter
3794 .inc
3795 \family default
3796  in your personal layout directory and edit the file!
3797 \end_layout
3798
3799 \begin_layout Subsubsection
3800 letter (koma-script)
3801 \end_layout
3802
3803 \begin_layout Description
3804 Note: This section discusses the obsolete 
3805 \family sans
3806 KOMA-Script-Letter (v.
3807 \begin_inset space ~
3808 \end_inset
3809
3810 1)
3811 \family default
3812 , which is not even included anymore in recent KOMA releases.
3813  Please refer to the next section for the current KOMA-Script-Letter class
3814  (v.
3815 \begin_inset space ~
3816 \end_inset
3817
3818 2)!
3819 \end_layout
3820
3821 \begin_layout Standard
3822 \noindent
3823 The document class 
3824 \emph on
3825 letter (koma-script)
3826 \emph default
3827  is implemented in the layout file 
3828 \family typewriter
3829 scrlettr.layout
3830 \family default
3831 .
3832  It contains all the paragraph types of the corresponding standard document
3833  class 
3834 \emph on
3835 letter
3836 \emph default
3837 , partly modified, with the exception of the \SpecialChar LyX
3838  specific types 
3839 \family sans
3840 \SpecialChar LyX
3841 -Code
3842 \family default
3843  and 
3844 \family sans
3845 Comment
3846 \family default
3847  and the 
3848 \family sans
3849 List
3850 \family default
3851  type, which is replaced by the new 
3852 \family sans
3853 Labeling
3854 \family default
3855  type.
3856  In addition, it contains, in contrast to the standard document class, the
3857  standard types 
3858 \family sans
3859 \SpecialChar LaTeX
3860
3861 \family default
3862
3863 \family sans
3864 Quotation
3865 \family default
3866
3867 \family sans
3868 Quote
3869 \family default
3870 , and 
3871 \family sans
3872 Verse
3873 \family default
3874 .
3875  Furthermore, there are a number of new letter specific types.
3876 \end_layout
3877
3878 \begin_layout Standard
3879 The appearance of the letter produced by this document class can be controlled
3880  by a number of \SpecialChar LaTeX
3881  commands, which you can put in the \SpecialChar LaTeX
3882  preamble.
3883 \begin_inset Foot
3884 status collapsed
3885
3886 \begin_layout Plain Layout
3887 For example, the standard appearance of the letter`s heading, consisting
3888  of name and address, is quite self-willed.
3889  An 
3890 \begin_inset Quotes eld
3891 \end_inset
3892
3893 ordinary
3894 \begin_inset Quotes erd
3895 \end_inset
3896
3897  heading is produced by the following \SpecialChar LaTeX
3898  commands in the preamble:
3899 \end_layout
3900
3901 \begin_layout LyX-Code
3902
3903 \backslash
3904 firsthead{
3905 \backslash
3906 parbox[b]{
3907 \backslash
3908 textwidth}
3909 \end_layout
3910
3911 \begin_layout LyX-Code
3912   {
3913 \backslash
3914 ignorespaces 
3915 \backslash
3916 fromname
3917 \backslash
3918
3919 \backslash
3920  
3921 \backslash
3922 ignorespaces 
3923 \backslash
3924 fromaddress}} 
3925 \end_layout
3926
3927 \begin_layout LyX-Code
3928
3929 \backslash
3930 nexthead{
3931 \backslash
3932 parbox[b]{
3933 \backslash
3934 textwidth}
3935 \end_layout
3936
3937 \begin_layout LyX-Code
3938   {
3939 \backslash
3940 ignorespaces 
3941 \backslash
3942 fromname 
3943 \backslash
3944 hfill 
3945 \backslash
3946 ignorespaces 
3947 \backslash
3948 pagename
3949 \backslash
3950  
3951 \backslash
3952 thepage}}
3953 \end_layout
3954
3955 \end_inset
3956
3957  A detailed German description of such \SpecialChar LaTeX
3958  commands can be found in the Koma-Script
3959  documentation 
3960 \emph on
3961 scrguide
3962 \emph default
3963 .
3964  With it, the letter's author can produce his personal letter layout.
3965 \end_layout
3966
3967 \begin_layout Standard
3968 The types 
3969 \family sans
3970 Letter
3971 \family default
3972  and 
3973 \family sans
3974 Opening
3975 \family default
3976  define the beginning of the letter and must be used in every letter.
3977  To emphasize them in the \SpecialChar LyX
3978  document class, they are marked with the letter
3979  
3980 \shape italic
3981 L
3982 \shape default
3983  or 
3984 \shape italic
3985 O
3986 \shape default
3987 , resp.
3988 \begin_inset space ~
3989 \end_inset
3990
3991 in the left margin.
3992  It is possible to write any number of letters in one file.
3993  An 
3994 \family sans
3995 Opening
3996 \family default
3997  type produces a new letter using the same addressee and a 
3998 \family sans
3999 Letter
4000 \family default
4001  type produces a new addressee.
4002  The types 
4003 \family sans
4004 Closing
4005 \family default
4006
4007 \family sans
4008 PS
4009 \family default
4010
4011 \family sans
4012 CC
4013 \family default
4014 , and 
4015 \family sans
4016 Encl
4017 \family default
4018  are ordinary paragraph types and can also be used several times in one
4019  and the same letter.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Letter
4026 \family default
4027 : produces a paragraph for the addressee and implicitly defines the beginning
4028  of the letter.
4029 \end_layout
4030
4031 \begin_layout Itemize
4032
4033 \family sans
4034 Opening
4035 \family default
4036 : produces a paragraph for the form of address and implicitly produces a
4037  new letter.
4038 \end_layout
4039
4040 \begin_layout Itemize
4041
4042 \family sans
4043 Closing
4044 \family default
4045 : produces a paragraph for a close.
4046 \end_layout
4047
4048 \begin_layout Itemize
4049
4050 \family sans
4051 PS
4052 \family default
4053 : produces a paragraph for a postscript.
4054 \end_layout
4055
4056 \begin_layout Itemize
4057
4058 \family sans
4059 CC
4060 \family default
4061 : produces a paragraph for a distribution list.
4062 \end_layout
4063
4064 \begin_layout Itemize
4065
4066 \family sans
4067 Encl
4068 \family default
4069 : produces a paragraph for enclosures.
4070 \end_layout
4071
4072 \begin_layout Standard
4073 The types 
4074 \family sans
4075 Name
4076 \family default
4077
4078 \family sans
4079 Signature
4080 \family default
4081
4082 \family sans
4083 Address
4084 \family default
4085
4086 \family sans
4087 Telephone
4088 \family default
4089
4090 \family sans
4091 Place
4092 \family default
4093
4094 \family sans
4095 Backaddress
4096 \family default
4097
4098 \family sans
4099 Specialmail
4100 \family default
4101
4102 \family sans
4103 Location
4104 \family default
4105
4106 \family sans
4107 Title
4108 \family default
4109 , and 
4110 \family sans
4111 Subject
4112 \family default
4113  are input types provided with a label to enter information, which will
4114  be processed by the document class.
4115 \begin_inset Foot
4116 status collapsed
4117
4118 \begin_layout Plain Layout
4119 It could be seen as a matter of inconsequence, that the types 
4120 \family sans
4121 Letter
4122 \family default
4123  and 
4124 \family sans
4125 Opening
4126 \family default
4127  described above are not such input types as well.
4128  Because of the special meaning of those types, however, I have implemented
4129  them as ordinary paragraph types with a one letter mark in the left margin.
4130  Moreover, it would affect my feeling of symmetry, if the 
4131 \family sans
4132 Opening
4133 \family default
4134  type and the 
4135 \family sans
4136 Closing
4137 \family default
4138  type had such a serious different appearance.
4139 \end_layout
4140
4141 \end_inset
4142
4143  The types must be used ahead of the corresponding 
4144 \family sans
4145 Opening
4146 \family default
4147  type.
4148 \end_layout
4149
4150 \begin_layout Standard
4151 An implementation of these types in a WYSIWYG fashion does not seem to make
4152  sense, because the real appearance of the produced letter does not only
4153  depend on the usage of the particular type, but also on other factors.
4154  For example, a signature entered in the 
4155 \family sans
4156 Signature
4157 \family default
4158  type will in the standard behavior appear in the produced letter only,
4159  when in the same letter also a 
4160 \family sans
4161 Closing
4162 \family default
4163  type is used.
4164  The entered value of the 
4165 \family sans
4166 Telephone
4167 \family default
4168  type will in the standard behavior not appear in the produced letter at
4169  all.
4170  The possibility to design the letter`s heading freely is already indicated
4171  in a footnote above.
4172 \end_layout
4173
4174 \begin_layout Standard
4175 The input types can also be used as empty paragraphs.
4176  This makes sense e.
4177 \begin_inset space \thinspace{}
4178 \end_inset
4179
4180 g.
4181 \begin_inset space \space{}
4182 \end_inset
4183
4184 for the 
4185 \family sans
4186 Signature
4187 \family default
4188  type.
4189  If the 
4190 \family sans
4191 Signature
4192 \family default
4193  type is not used at all, in the standard behavior the value of the 
4194 \family sans
4195 Name
4196 \family default
4197  type is used as signature, whereas if an empty 
4198 \family sans
4199 Signature
4200 \family default
4201  type is used, no signature value is defined.
4202 \end_layout
4203
4204 \begin_layout Standard
4205 By using the input types it is possible to write a letter template, containing
4206  filled input types with your personal dates (name, address, etc.) and empty
4207  input types for other dates you want to enter.
4208 \end_layout
4209
4210 \begin_layout Itemize
4211
4212 \family sans
4213 Name
4214 \family default
4215 : sender's name, in the standard behavior appears as a centered paragraph
4216  in small caps in the letter`s heading.
4217 \end_layout
4218
4219 \begin_layout Itemize
4220
4221 \family sans
4222 Signature
4223 \family default
4224 : sender's signature, in the standard behavior appears below the 
4225 \family sans
4226 Closing
4227 \family default
4228  type.
4229  If no 
4230 \family sans
4231 Signature
4232 \family default
4233  type is used, the value of the 
4234 \family sans
4235 Name
4236 \family default
4237  type appears instead.
4238 \end_layout
4239
4240 \begin_layout Itemize
4241
4242 \family sans
4243 Address
4244 \family default
4245 : sender's address, in the standard behavior appears in a centered paragraph
4246  in the letter`s heading below the sender's name.
4247 \end_layout
4248
4249 \begin_layout Itemize
4250
4251 \family sans
4252 Telephone
4253 \family default
4254 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4255  variable
4256  
4257 \family typewriter
4258
4259 \backslash
4260 telephonenum
4261 \family default
4262 .
4263 \end_layout
4264
4265 \begin_layout Itemize
4266
4267 \family sans
4268 Place
4269 \family default
4270 : place of the letter`s making.
4271 \end_layout
4272
4273 \begin_layout Itemize
4274
4275 \family sans
4276 Date
4277 \family default
4278 : date of the letter`s making.
4279  
4280 \family sans
4281 Place
4282 \family default
4283  and 
4284 \family sans
4285 Date
4286 \family default
4287 , in the standard behavior, produce the place and the date in a right-aligned
4288  line below the addressee's field.
4289  If an empty 
4290 \family sans
4291 Date
4292 \family default
4293  type is used, neither place nor date appear, independent of the value of
4294  the 
4295 \family sans
4296 Place
4297 \family default
4298  type.
4299  If no 
4300 \family sans
4301 Date
4302 \family default
4303  type is used, the date of the letter `s production is used.
4304 \end_layout
4305
4306 \begin_layout Itemize
4307
4308 \family sans
4309 Backaddress
4310 \family default
4311 : sender`s back address, in the standard behavior appears above the addressee's
4312  field in a small sans serif font.
4313 \end_layout
4314
4315 \begin_layout Itemize
4316
4317 \family sans
4318 Specialmail
4319 \family default
4320 : special mail information, in the standard behavior appears underlined
4321  above the addressee's field below the back address.
4322 \end_layout
4323
4324 \begin_layout Itemize
4325
4326 \family sans
4327 Location
4328 \family default
4329 : additional information, in the standard behavior appears on right side
4330  below the addressee`s field.
4331 \end_layout
4332
4333 \begin_layout Itemize
4334
4335 \family sans
4336 Title
4337 \family default
4338 : the letter's title, in the standard behavior appears in a big, bold, sans
4339  serif font above the subject.
4340 \end_layout
4341
4342 \begin_layout Itemize
4343
4344 \family sans
4345 Subject
4346 \family default
4347 : the letter's subject, in the standard behavior appears in a bold font
4348  above the 
4349 \family sans
4350 Opening
4351 \family default
4352  paragraph.
4353 \end_layout
4354
4355 \begin_layout Standard
4356 The types 
4357 \family sans
4358 Yourref
4359 \family default
4360
4361 \family sans
4362 Yourmail
4363 \family default
4364
4365 \family sans
4366 Myref
4367 \family default
4368
4369 \family sans
4370 Customer
4371 \family default
4372 , and 
4373 \family sans
4374 Invoice
4375 \family default
4376  produce a business letter like line above the 
4377 \family sans
4378 Title
4379 \family default
4380  line containing the fields 
4381 \begin_inset Quotes eld
4382 \end_inset
4383
4384 Your ref.
4385 \begin_inset Quotes erd
4386 \end_inset
4387
4388
4389 \begin_inset Quotes eld
4390 \end_inset
4391
4392 Your letter of
4393 \begin_inset Quotes erd
4394 \end_inset
4395
4396
4397 \begin_inset Quotes eld
4398 \end_inset
4399
4400 Our ref.
4401 \begin_inset Quotes erd
4402 \end_inset
4403
4404
4405 \begin_inset Quotes eld
4406 \end_inset
4407
4408 Customer no.
4409 \begin_inset Quotes erd
4410 \end_inset
4411
4412
4413 \begin_inset Quotes eld
4414 \end_inset
4415
4416 Invoice no.
4417 \begin_inset Quotes erd
4418 \end_inset
4419
4420 , and 
4421 \begin_inset Quotes eld
4422 \end_inset
4423
4424 Date
4425 \begin_inset Quotes erd
4426 \end_inset
4427
4428 .
4429  For the date field, the value of the 
4430 \family sans
4431 Date
4432 \family default
4433  type is used.
4434  If one of these 
4435 \begin_inset Quotes eld
4436 \end_inset
4437
4438 business letter types
4439 \begin_inset Quotes erd
4440 \end_inset
4441
4442  is used, the value of the 
4443 \family sans
4444 Place
4445 \family default
4446  type however does not appear, but only the \SpecialChar LaTeX
4447  variable 
4448 \family typewriter
4449
4450 \backslash
4451 fromplace
4452 \family default
4453  is set.
4454  The ordinary output of place and date in a right-aligned line below the
4455  addressee`s field is suppressed.
4456  The types are implemented as input types provided with a label and must
4457  be used ahead of the corresponding 
4458 \family sans
4459 Opening
4460 \family default
4461  type.
4462 \end_layout
4463
4464 \begin_layout Itemize
4465
4466 \family sans
4467 Yourref
4468 \family default
4469 : Your ref.
4470 \end_layout
4471
4472 \begin_layout Itemize
4473
4474 \family sans
4475 Yourmail
4476 \family default
4477 : Your letter of.
4478 \end_layout
4479
4480 \begin_layout Itemize
4481
4482 \family sans
4483 Myref
4484 \family default
4485 : Our ref.
4486 \end_layout
4487
4488 \begin_layout Itemize
4489
4490 \family sans
4491 Customer
4492 \family default
4493 : Customer no.
4494 \end_layout
4495
4496 \begin_layout Itemize
4497
4498 \family sans
4499 Invoice
4500 \family default
4501 : Invoice no.
4502 \end_layout
4503
4504 \begin_layout Subsubsection
4505 The new letter class: letter (koma-script v.2)
4506 \end_layout
4507
4508 \begin_layout Standard
4509 by 
4510 \noun on
4511 Jürgen Spitzmüller
4512 \end_layout
4513
4514 \begin_layout Standard
4515 \begin_inset VSpace medskip
4516 \end_inset
4517
4518
4519 \end_layout
4520
4521 \begin_layout Standard
4522 \noindent
4523 Koma-Script version 2.8 has introduced a new letter class 
4524 \family typewriter
4525 scrlttr2
4526 \family default
4527  which supersedes the now unsupported 
4528 \family typewriter
4529 scrlettr
4530 \family default
4531 .
4532  It has — on the \SpecialChar LaTeX
4533  side — a completely new interface and is not compatible
4534  with the old class.
4535  Therefore, \SpecialChar LyX
4536  supports both, though it is recommended you use the new class.
4537 \end_layout
4538
4539 \begin_layout Standard
4540 This class covers the same functionality as 
4541 \emph on
4542 letter (koma-script),
4543 \emph default
4544  and a few more.
4545  The basic items are 
4546 \family sans
4547 Address
4548 \family default
4549  (receiver's address, same as 
4550 \family sans
4551 Letter
4552 \family default
4553  in the old layout), 
4554 \family sans
4555 Opening
4556 \family default
4557 , and 
4558 \family sans
4559 Closing
4560 \family default
4561 .
4562  
4563 \family sans
4564 NextAddress
4565 \family default
4566  will start a new letter (i.
4567 \begin_inset space \thinspace{}
4568 \end_inset
4569
4570 e.
4571 \begin_inset space \space{}
4572 \end_inset
4573
4574 you can write several letters per document).
4575  New elements are sender's 
4576 \family sans
4577 E-Mail
4578 \family default
4579
4580 \family sans
4581 URL
4582 \family default
4583
4584 \family sans
4585 Fax
4586 \family default
4587
4588 \family sans
4589 Bank
4590 \family default
4591  and the possibility to use a 
4592 \family sans
4593 Logo
4594 \family default
4595  (via 
4596 \family sans
4597 Insert\SpecialChar menuseparator
4598 Graphics
4599 \family default
4600 ) in the header.
4601 \end_layout
4602
4603 \begin_layout Standard
4604 The biggest improvement is, though, that the letter's layout is configurable
4605  to meet almost any needs.
4606  This can be done via the preamble or with a special style file (Letter
4607  Class Option, extension 
4608 \family typewriter
4609 *.lco
4610 \family default
4611 ), that will be read in as a class option.
4612 \begin_inset Foot
4613 status collapsed
4614
4615 \begin_layout Plain Layout
4616 The KOMA package comes with some default 
4617 \family typewriter
4618 *.lco
4619 \family default
4620  files.
4621  There is, for instance, a 
4622 \family typewriter
4623 DIN.lco
4624 \family default
4625  file that follows german typesetting rules, or a 
4626 \family typewriter
4627 KOMAold.lco
4628 \family default
4629  that provides the default layout of the old 
4630 \family typewriter
4631 scrlettr
4632 \family default
4633  class.
4634  The latter can be loaded with the class option 
4635 \family typewriter
4636 KOMAold
4637 \family default
4638 , inserted via the 
4639 \family sans
4640 Layout\SpecialChar menuseparator
4641 Document\SpecialChar menuseparator
4642 Extra Options
4643 \family default
4644  field.
4645 \end_layout
4646
4647 \end_inset
4648
4649  Have a look at the
4650 \change_deleted 564990737 1671617922
4651  
4652 \emph on
4653 koma-letter2
4654 \change_unchanged
4655
4656 \emph default
4657  template 
4658 \change_deleted 564990737 1671617938
4659 that is included in \SpecialChar LyX
4660  for examples
4661 \change_inserted 564990737 1671617997
4662  in 
4663 \family sans
4664 \bar under
4665 \lang american
4666 F
4667 \bar default
4668 ile\SpecialChar menuseparator
4669 New
4670 \begin_inset space ~
4671 \end_inset
4672
4673 fro
4674 \bar under
4675 m
4676 \bar default
4677
4678 \begin_inset space ~
4679 \end_inset
4680
4681 Template\SpecialChar menuseparator
4682 Letters
4683 \lang english
4684 \SpecialChar menuseparator
4685 KOMA-Script Letter (V.2)
4686 \change_unchanged
4687
4688 \family default
4689 .
4690  A detailed description is to be found in the Koma-Script documentation
4691  (
4692 \emph on
4693 scrguide
4694 \emph default
4695 ).
4696 \end_layout
4697
4698 \begin_layout Subsubsection
4699 Problems
4700 \end_layout
4701
4702 \begin_layout Standard
4703 Visualizing the Koma-Script document classes in \SpecialChar LyX
4704 , the \SpecialChar LyX
4705  internals cause some
4706  problems.
4707 \end_layout
4708
4709 \begin_layout Itemize
4710 The chapter number of a 
4711 \family sans
4712 Chapter
4713 \family default
4714  type appears on a line of its own above the chapter heading instead of
4715  appearing in the same line ahead of it.
4716  The cause for that is the \SpecialChar LyX
4717  internal behavior for the labeltype 
4718 \family sans
4719 Counter_Chapter
4720 \family default
4721  in the layout file.
4722 \end_layout
4723
4724 \begin_layout Itemize
4725 The headings of the types 
4726 \family sans
4727 Addchap
4728 \family default
4729  and 
4730 \family sans
4731 Addsec
4732 \family default
4733  are only put in the 
4734 \begin_inset Quotes eld
4735 \end_inset
4736
4737 true
4738 \begin_inset Quotes erd
4739 \end_inset
4740
4741  \SpecialChar LaTeX
4742  table of contents, but not in the \SpecialChar LyX
4743  table of contents (
4744 \family sans
4745 Document\SpecialChar menuseparator
4746 Table
4747 \begin_inset space ~
4748 \end_inset
4749
4750 of
4751 \begin_inset space ~
4752 \end_inset
4753
4754 Contents
4755 \family default
4756 ).
4757 \end_layout
4758
4759 \begin_layout Itemize
4760 The paragraphs in a 
4761 \emph on
4762 letter
4763 \emph default
4764  document class appear in a skip separation mode, not indented.
4765  This is the standard behavior, no special \SpecialChar LaTeX
4766  commands are needed for that.
4767  But in the 
4768 \family sans
4769 Document\SpecialChar menuseparator
4770 Settings
4771 \family default
4772  dialog the corresponding radio button indicates 
4773 \family sans
4774 Indent
4775 \family default
4776 .
4777  A 
4778 \family sans
4779 Skip
4780 \family default
4781  value always has the effect that extra \SpecialChar LaTeX
4782  commands are inserted in the document
4783  to produce the gap, which is not what is wanted in this case.
4784 \end_layout
4785
4786 \begin_layout Subsection
4787
4788 \change_inserted 564990737 1670924924
4789 Polish M.
4790 \begin_inset space \thinspace{}
4791 \end_inset
4792
4793 W.
4794 \begin_inset space \space{}
4795 \end_inset
4796
4797 collection
4798 \change_deleted 564990737 1670924933
4799 Article (mwart), book (mwbk) and report (mwrep)
4800 \begin_inset Argument status
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804 The 
4805 \family typewriter
4806 mw
4807 \family default
4808  Classes
4809 \end_layout
4810
4811 \end_inset
4812
4813
4814 \change_unchanged
4815
4816 \end_layout
4817
4818 \begin_layout Standard
4819 by 
4820 \noun on
4821 Tomasz Luczak
4822 \end_layout
4823
4824 \begin_layout Standard
4825 The \SpecialChar LyX
4826  document classes 
4827 \emph on
4828 article (mwart)
4829 \emph default
4830
4831 \emph on
4832 report (mwrep)
4833 \emph default
4834  and 
4835 \emph on
4836 book
4837 \emph default
4838  
4839 \emph on
4840 (mwbk)
4841 \emph default
4842  correspond to the \SpecialChar LaTeX
4843  document classes 
4844 \family typewriter
4845 mwart.cls
4846 \family default
4847
4848 \family typewriter
4849 mwrep.cls
4850 \family default
4851  and 
4852 \family typewriter
4853 mwbk.cls
4854 \family default
4855 , resp.
4856  They are replacements for the standard document classes 
4857 \family typewriter
4858 article.cls
4859 \family default
4860
4861 \family typewriter
4862 report.cls
4863 \family default
4864  and 
4865 \family typewriter
4866 book.cls
4867 \family default
4868 , resp., and fit better to Polish typography conventions in a number of points.
4869  
4870 \end_layout
4871
4872 \begin_layout Standard
4873 Basic differences:
4874 \end_layout
4875
4876 \begin_layout Itemize
4877 Unnumbered titles (with star, e.
4878 \begin_inset space \thinspace{}
4879 \end_inset
4880
4881 g.
4882 \begin_inset space \space{}
4883 \end_inset
4884
4885
4886 \family sans
4887 Section*
4888 \family default
4889 ) are added into table of contents,
4890 \end_layout
4891
4892 \begin_layout Itemize
4893 Additional page styles:
4894 \end_layout
4895
4896 \begin_deeper
4897 \begin_layout Description
4898 uheadings header with separated lines,
4899 \end_layout
4900
4901 \begin_layout Description
4902 myheadings custom header, contents headers via commands: 
4903 \family typewriter
4904
4905 \backslash
4906 markright
4907 \family default
4908  and 
4909 \family typewriter
4910
4911 \backslash
4912 markboth
4913 \family default
4914 ,
4915 \end_layout
4916
4917 \begin_layout Description
4918 myuheadings custom header with separated lines,
4919 \end_layout
4920
4921 \begin_layout Description
4922 outer page number is placed on outer side of page
4923 \end_layout
4924
4925 \end_deeper
4926 \begin_layout Itemize
4927 Options 
4928 \end_layout
4929
4930 \begin_deeper
4931 \begin_layout Description
4932 rmheadings serif titles — default,
4933 \end_layout
4934
4935 \begin_layout Description
4936 sfheadings sansserif titles,
4937 \end_layout
4938
4939 \begin_layout Description
4940 authortitle on title page first placed is author next title — default,
4941 \end_layout
4942
4943 \begin_layout Description
4944 titleauthor on title page first placed is title next author,
4945 \end_layout
4946
4947 \begin_layout Description
4948 withmarginpar reserve place on page for margins.
4949 \end_layout
4950
4951 \end_deeper
4952 \begin_layout Section
4953
4954 \change_inserted 564990737 1670439534
4955 Articles
4956 \end_layout
4957
4958 \begin_layout Standard
4959
4960 \change_inserted 564990737 1670794710
4961 See also the document classes in the Collections (section
4962 \begin_inset space ~
4963 \end_inset
4964
4965
4966 \begin_inset CommandInset ref
4967 LatexCommand ref
4968 reference "sec:Collections"
4969
4970 \end_inset
4971
4972 ).
4973 \end_layout
4974
4975 \begin_layout Subsection
4976
4977 \change_inserted 564990737 1670794716
4978
4979 \lang american
4980 A&A Paper
4981 \end_layout
4982
4983 \begin_layout Standard
4984
4985 \change_inserted 564990737 1670794716
4986
4987 \lang american
4988 Original by 
4989 \noun on
4990 Peter Sütterlin
4991 \noun default
4992 ; updated by the \SpecialChar LyX
4993  Team
4994 \end_layout
4995
4996 \begin_layout Subsubsection
4997
4998 \change_inserted 564990737 1670794716
4999
5000 \lang american
5001 Introduction
5002 \end_layout
5003
5004 \begin_layout Standard
5005
5006 \change_inserted 564990737 1670794716
5007
5008 \lang american
5009 This section describes how \SpecialChar LyX
5010  can be used to write articles for submission
5011  to the scientific journal 
5012 \emph on
5013 Astronomy and Astrophysics
5014 \emph default
5015  (
5016 \begin_inset CommandInset href
5017 LatexCommand href
5018 name "aa-package"
5019 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5020 literal "false"
5021
5022 \end_inset
5023
5024 ) using Version 9.1 of the document class 
5025 \family typewriter
5026 aa.cls
5027 \family default
5028 ; information about it is available at 
5029 \begin_inset Flex URL
5030 status collapsed
5031
5032 \begin_layout Plain Layout
5033
5034 \change_inserted 564990737 1670794716
5035
5036 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5037 \change_unchanged
5038
5039 \end_layout
5040
5041 \end_inset
5042
5043 .
5044 \end_layout
5045
5046 \begin_layout Standard
5047
5048 \change_inserted 564990737 1670794716
5049
5050 \lang american
5051 A manual comes together with the package and should be consulted before
5052  installing this document class as described in the 
5053 \emph on
5054 Installing New Document Classe
5055 \emph default
5056 s section of the 
5057 \emph on
5058 Customization
5059 \emph default
5060  manual.
5061  
5062 \end_layout
5063
5064 \begin_layout Standard
5065
5066 \change_inserted 564990737 1670794716
5067
5068 \lang american
5069 \begin_inset Note Greyedout
5070 status open
5071
5072 \begin_layout Plain Layout
5073
5074 \change_inserted 564990737 1670794716
5075
5076 \lang american
5077 Please note that the publisher of the journal was changed from Springer
5078  to EDP Sciences starting January 1, 2001.
5079  That change also involved some slight changes to the style files, namely
5080  the removal of the thesaurus command.
5081  If you have an older version installed, please upgrade.
5082  For information about compatibility with the old (version 4) layout, please
5083  refer to the comments in 
5084 \family typewriter
5085 \SpecialChar LyX
5086 Dir/layouts/aapaper.layout
5087 \family default
5088 .
5089 \end_layout
5090
5091 \end_inset
5092
5093
5094 \end_layout
5095
5096 \begin_layout Subsubsection
5097
5098 \change_inserted 564990737 1670794716
5099
5100 \lang american
5101 Getting started
5102 \end_layout
5103
5104 \begin_layout Standard
5105
5106 \change_inserted 564990737 1671617129
5107
5108 \lang american
5109 It is recommended you start from the template in the menu 
5110 \family sans
5111 \bar under
5112 F
5113 \bar default
5114 ile\SpecialChar menuseparator
5115 New
5116 \begin_inset space ~
5117 \end_inset
5118
5119 fro
5120 \bar under
5121 m
5122 \bar default
5123
5124 \begin_inset space ~
5125 \end_inset
5126
5127 Template
5128 \lang english
5129 \SpecialChar menuseparator
5130 Articles\SpecialChar menuseparator
5131 Astronomy & Astrophysics
5132 \family default
5133 \lang american
5134 .
5135  If you are not using the template, note the following settings:
5136 \end_layout
5137
5138 \begin_layout Itemize
5139
5140 \change_inserted 564990737 1670794716
5141
5142 \lang american
5143 Select 
5144 \family sans
5145 article (A&A)
5146 \family default
5147  in the 
5148 \family sans
5149 \bar under
5150 D
5151 \bar default
5152 ocument\SpecialChar menuseparator
5153
5154 \bar under
5155 S
5156 \bar default
5157 ettings\SpecialChar menuseparator
5158 Document
5159 \begin_inset space ~
5160 \end_inset
5161
5162 Class
5163 \family default
5164  dialog (OK, that one was obvious).
5165 \end_layout
5166
5167 \begin_layout Itemize
5168
5169 \change_inserted 564990737 1670794716
5170
5171 \lang american
5172 Don't change the 
5173 \family sans
5174 Headings
5175 \begin_inset space ~
5176 \end_inset
5177
5178
5179 \bar under
5180 s
5181 \bar default
5182 tyle
5183 \family default
5184  in the 
5185 \family sans
5186 Page
5187 \begin_inset space ~
5188 \end_inset
5189
5190 Layout
5191 \family default
5192  dialog: leave it set to 
5193 \family sans
5194 Default
5195 \family default
5196 .
5197  The whole layout is done by the macros, you shouldn't change anything.
5198 \end_layout
5199
5200 \begin_layout Subsubsection
5201
5202 \change_inserted 564990737 1670794716
5203
5204 \lang american
5205 The header block
5206 \end_layout
5207
5208 \begin_layout Standard
5209
5210 \change_inserted 564990737 1670794716
5211
5212 \lang american
5213 First thing to enter is the header information.
5214  It consists of five entries, of which one is optional.
5215  They are
5216 \end_layout
5217
5218 \begin_layout Itemize
5219
5220 \change_inserted 564990737 1670794716
5221
5222 \family sans
5223 \lang american
5224 Title
5225 \family default
5226 : [required] 
5227 \end_layout
5228
5229 \begin_layout Itemize
5230
5231 \change_inserted 564990737 1670794716
5232
5233 \family sans
5234 \lang american
5235 Subtitle
5236 \family default
5237 : [optional] 
5238 \end_layout
5239
5240 \begin_layout Itemize
5241
5242 \change_inserted 564990737 1670794716
5243
5244 \family sans
5245 \lang american
5246 Author
5247 \family default
5248 : [required]
5249 \end_layout
5250
5251 \begin_layout Itemize
5252
5253 \change_inserted 564990737 1670794716
5254
5255 \family typewriter
5256 \lang american
5257 Institute
5258 \family default
5259 : [required]
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Date
5269 \family default
5270 : [required].
5271  Suggested format is 
5272 \family typewriter
5273 Received: <date>; Accepted <date> 
5274 \end_layout
5275
5276 \begin_layout Standard
5277
5278 \change_inserted 564990737 1670794716
5279
5280 \lang american
5281 Although the order of the single header entries doesn't matter it is advised
5282  to keep the above sequence, just to get the best optics and meets the layout
5283  of the real document.
5284 \end_layout
5285
5286 \begin_layout Standard
5287
5288 \change_inserted 564990737 1670794716
5289
5290 \lang american
5291 If you want to place footnotes in the header block, e.
5292 \begin_inset space \thinspace{}
5293 \end_inset
5294
5295 g.
5296 \begin_inset space \space{}
5297 \end_inset
5298
5299 to state your present address, just use the standard footnote via the menu
5300  
5301 \family sans
5302 \bar under
5303 I
5304 \bar default
5305 nsert\SpecialChar menuseparator
5306
5307 \bar under
5308 F
5309 \bar default
5310 ootnote.
5311
5312 \family default
5313  \SpecialChar LyX
5314  will automagically use the term 
5315 \family typewriter
5316
5317 \backslash
5318 thanks{}
5319 \family default
5320  in that case.
5321 \end_layout
5322
5323 \begin_layout Standard
5324
5325 \change_inserted 564990737 1670794716
5326
5327 \lang american
5328 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5329  commands that
5330  have no counterpart in \SpecialChar LyX
5331 :
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family typewriter
5339 \lang american
5340
5341 \backslash
5342 and
5343 \family default
5344  to separate different names for more than one author and institute, respectivel
5345 y.
5346 \end_layout
5347
5348 \begin_layout Itemize
5349
5350 \change_inserted 564990737 1670794716
5351
5352 \family typewriter
5353 \lang american
5354
5355 \backslash
5356 inst{<nr>}
5357 \family default
5358  to mark corresponding author/institute pairs.
5359  The institutes are numbered sequentially as they appear in the 
5360 \family sans
5361 Institute
5362 \family default
5363  field, so you have to put a marker to each author.
5364 \end_layout
5365
5366 \begin_layout Itemize
5367
5368 \change_inserted 564990737 1670794716
5369
5370 \family typewriter
5371 \lang american
5372
5373 \backslash
5374 email{address}
5375 \family default
5376  to supply an email address for fast contact.
5377 \end_layout
5378
5379 \begin_layout Standard
5380
5381 \change_inserted 564990737 1671642374
5382
5383 \lang american
5384 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5385  code in \SpecialChar LyX
5386 .
5387  See the examples in the template and in 
5388 \family sans
5389 \lang british
5390 File\SpecialChar menuseparator
5391 Open Example\SpecialChar menuseparator
5392 Articles\SpecialChar menuseparator
5393 Astronomy & Astrophysics
5394 \family default
5395 \lang american
5396 .
5397 \change_unchanged
5398
5399 \end_layout
5400
5401 \begin_layout Subsubsection
5402
5403 \change_inserted 564990737 1670794716
5404
5405 \lang american
5406 The abstract
5407 \end_layout
5408
5409 \begin_layout Standard
5410
5411 \change_inserted 564990737 1670794716
5412
5413 \lang american
5414 The abstract should immediately follow the header block and must contain
5415  five tokens: 
5416 \family typewriter
5417
5418 \backslash
5419 abstract{}{}{}{}{}
5420 \family default
5421  
5422 \end_layout
5423
5424 \begin_layout Enumerate
5425
5426 \change_inserted 564990737 1670794716
5427
5428 \family typewriter
5429 \lang american
5430 context heading
5431 \family default
5432  (optional) {} leave it empty if necessary 
5433 \end_layout
5434
5435 \begin_layout Enumerate
5436
5437 \change_inserted 564990737 1670794716
5438
5439 \family typewriter
5440 \lang american
5441 aims heading
5442 \family default
5443  (mandatory) {} 
5444 \end_layout
5445
5446 \begin_layout Enumerate
5447
5448 \change_inserted 564990737 1670794716
5449
5450 \family typewriter
5451 \lang american
5452 methods heading
5453 \family default
5454  (mandatory) {} 
5455 \end_layout
5456
5457 \begin_layout Enumerate
5458
5459 \change_inserted 564990737 1670794716
5460
5461 \family typewriter
5462 \lang american
5463 results heading
5464 \family default
5465  (mandatory) {} 
5466 \end_layout
5467
5468 \begin_layout Enumerate
5469
5470 \change_inserted 564990737 1670794716
5471
5472 \family typewriter
5473 \lang american
5474 conclusions heading
5475 \family default
5476  (optional) {} leave it empty if necessary 
5477 \end_layout
5478
5479 \begin_layout Standard
5480
5481 \change_inserted 564990737 1670794716
5482
5483 \lang american
5484 (NB.
5485  This structure not shown in 
5486 \emph on
5487 aa_sample.lyx.
5488 \emph default
5489 )
5490 \end_layout
5491
5492 \begin_layout Subsubsection
5493
5494 \change_inserted 564990737 1670794716
5495
5496 \lang american
5497 Supported environments
5498 \end_layout
5499
5500 \begin_layout Standard
5501
5502 \change_inserted 564990737 1670794716
5503
5504 \lang american
5505 The A&A paper layout supports the following environments for structuring
5506  your text:
5507 \end_layout
5508
5509 \begin_layout Itemize
5510
5511 \change_inserted 564990737 1670794716
5512
5513 \family sans
5514 \lang american
5515 Standard
5516 \end_layout
5517
5518 \begin_layout Itemize
5519
5520 \change_inserted 564990737 1670794716
5521
5522 \family sans
5523 \lang american
5524 Section
5525 \end_layout
5526
5527 \begin_layout Itemize
5528
5529 \change_inserted 564990737 1670794716
5530
5531 \family sans
5532 \lang american
5533 Subsection
5534 \end_layout
5535
5536 \begin_layout Itemize
5537
5538 \change_inserted 564990737 1670794716
5539
5540 \family sans
5541 \lang american
5542 Subsubsection
5543 \end_layout
5544
5545 \begin_layout Itemize
5546
5547 \change_inserted 564990737 1670794716
5548
5549 \family sans
5550 \lang american
5551 Itemize
5552 \end_layout
5553
5554 \begin_layout Itemize
5555
5556 \change_inserted 564990737 1670794716
5557
5558 \family sans
5559 \lang american
5560 Enumerate
5561 \end_layout
5562
5563 \begin_layout Itemize
5564
5565 \change_inserted 564990737 1670794716
5566
5567 \family sans
5568 \lang american
5569 Description
5570 \end_layout
5571
5572 \begin_layout Itemize
5573
5574 \change_inserted 564990737 1670794716
5575
5576 \family sans
5577 \lang american
5578 Caption
5579 \end_layout
5580
5581 \begin_layout Itemize
5582
5583 \change_inserted 564990737 1670794716
5584
5585 \family sans
5586 \lang american
5587 Abstract
5588 \end_layout
5589
5590 \begin_layout Itemize
5591
5592 \change_inserted 564990737 1670794716
5593
5594 \family sans
5595 \lang american
5596 Acknowledgment
5597 \end_layout
5598
5599 \begin_layout Itemize
5600
5601 \change_inserted 564990737 1670794716
5602
5603 \family sans
5604 \lang american
5605 Bibliography
5606 \end_layout
5607
5608 \begin_layout Itemize
5609
5610 \change_inserted 564990737 1670794716
5611
5612 \family sans
5613 \lang american
5614 \SpecialChar LaTeX
5615
5616 \end_layout
5617
5618 \begin_layout Subsubsection
5619
5620 \change_inserted 564990737 1670794716
5621
5622 \lang american
5623 Commands not supported by \SpecialChar LyX
5624
5625 \end_layout
5626
5627 \begin_layout Standard
5628
5629 \change_inserted 564990737 1670794716
5630
5631 \lang american
5632 Some commands are not yet supported by the 
5633 \family sans
5634 paper (A&A)
5635 \family default
5636  layout for \SpecialChar LyX
5637 .
5638  Some have already been mentioned.
5639  For the sake of completeness, they are listed all together here:
5640 \end_layout
5641
5642 \begin_layout Itemize
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \family typewriter
5647 \lang american
5648
5649 \backslash
5650 and
5651 \end_layout
5652
5653 \begin_layout Itemize
5654
5655 \change_inserted 564990737 1670794716
5656
5657 \family typewriter
5658 \lang american
5659
5660 \backslash
5661 email
5662 \end_layout
5663
5664 \begin_layout Itemize
5665
5666 \change_inserted 564990737 1670794716
5667
5668 \family typewriter
5669 \lang american
5670
5671 \backslash
5672 inst{}
5673 \end_layout
5674
5675 \begin_layout Itemize
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \family typewriter
5680 \lang american
5681
5682 \backslash
5683 keywords{}
5684 \end_layout
5685
5686 \begin_layout Itemize
5687
5688 \change_inserted 564990737 1670794716
5689
5690 \family typewriter
5691 \lang american
5692
5693 \backslash
5694 object{}
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 If you want to use any of these commands, you have to enter them yourself.
5703  
5704 \family typewriter
5705 Do not forget to use
5706 \family sans
5707  
5708 \bar under
5709 I
5710 \bar default
5711 nsert\SpecialChar menuseparator
5712 \SpecialChar TeX
5713
5714 \begin_inset space ~
5715 \end_inset
5716
5717 Code
5718 \family default
5719 \series bold
5720 !
5721 \end_layout
5722
5723 \begin_layout Subsubsection
5724
5725 \change_inserted 564990737 1670794716
5726
5727 \lang american
5728 Figure and Table Floats
5729 \end_layout
5730
5731 \begin_layout Standard
5732
5733 \change_inserted 564990737 1670794716
5734
5735 \lang american
5736 \SpecialChar LyX
5737  provides support for the necessary float environments 
5738 \family sans
5739 figure, figure*, table
5740 \family default
5741  and 
5742 \family sans
5743 table*
5744 \family default
5745 , therefore we won't tell much about it here.
5746  Refer to the 
5747 \emph on
5748 User's
5749 \begin_inset space ~
5750 \end_inset
5751
5752 Guide
5753 \emph default
5754 .
5755  Just remember that tables should be left-aligned.
5756  For that, select the table and change the alignment in 
5757 \family sans
5758 \bar under
5759 E
5760 \bar default
5761 dit\SpecialChar menuseparator
5762
5763 \bar under
5764 P
5765 \bar default
5766 aragraph
5767 \begin_inset space ~
5768 \end_inset
5769
5770 Settings.
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 There is only one special thing: the figures with a caption beside the figure.
5779  To create such a figure, you have to do the following:
5780 \end_layout
5781
5782 \begin_layout Enumerate
5783
5784 \change_inserted 564990737 1670794716
5785
5786 \lang american
5787 Create a wide figure float: 
5788 \family sans
5789 \bar under
5790 I
5791 \bar default
5792 nsert\SpecialChar menuseparator
5793 Flo
5794 \bar under
5795 a
5796 \bar default
5797 t\SpecialChar menuseparator
5798 Figure
5799 \family default
5800 , then, from within the float, use the menu 
5801 \family sans
5802 \bar under
5803 E
5804 \bar default
5805 dit\SpecialChar menuseparator
5806 Flo
5807 \bar under
5808 a
5809 \bar default
5810 t
5811 \begin_inset space ~
5812 \end_inset
5813
5814 Settings
5815 \family default
5816  and check 
5817 \family sans
5818 \bar under
5819 S
5820 \bar default
5821 pan
5822 \begin_inset space ~
5823 \end_inset
5824
5825 columns
5826 \family default
5827  in the 
5828 \family sans
5829 float
5830 \family default
5831  dialog.
5832 \end_layout
5833
5834 \begin_layout Enumerate
5835
5836 \change_inserted 564990737 1670794716
5837
5838 \lang american
5839 Enter your caption text.
5840 \end_layout
5841
5842 \begin_layout Enumerate
5843
5844 \change_inserted 564990737 1670794716
5845
5846 \lang american
5847 Press 
5848 \family sans
5849 Return
5850 \family default
5851  to move the cursor above the caption.
5852 \end_layout
5853
5854 \begin_layout Enumerate
5855
5856 \change_inserted 564990737 1670794716
5857
5858 \lang american
5859 Insert your figure
5860 \end_layout
5861
5862 \begin_layout Enumerate
5863
5864 \change_inserted 564990737 1670794716
5865
5866 \lang american
5867 Position the cursor after the figure and insert a horizontal fill by using
5868  the menu: 
5869 \family sans
5870 \bar under
5871 I
5872 \bar default
5873 nsert\SpecialChar menuseparator
5874 F
5875 \bar under
5876 o
5877 \bar default
5878 rmatting\SpecialChar menuseparator
5879 H
5880 \bar under
5881 o
5882 \bar default
5883 rizontal
5884 \begin_inset space ~
5885 \end_inset
5886
5887 Space
5888 \family default
5889  to open the 
5890 \family sans
5891 space
5892 \family default
5893  dialog and select the 
5894 \family sans
5895 Horizontal fill
5896 \family default
5897  option from the 
5898 \family sans
5899 \bar under
5900 S
5901 \bar default
5902 pacing
5903 \family default
5904  pull-down menu.
5905 \end_layout
5906
5907 \begin_layout Enumerate
5908
5909 \change_inserted 564990737 1670794716
5910
5911 \lang american
5912 Switch to \SpecialChar LaTeX
5913  mode: 
5914 \family sans
5915 M-c
5916 \begin_inset space ~
5917 \end_inset
5918
5919 t
5920 \family default
5921 .
5922 \end_layout
5923
5924 \begin_layout Enumerate
5925
5926 \change_inserted 564990737 1670794716
5927
5928 \lang american
5929 Enter 
5930 \family typewriter
5931
5932 \backslash
5933 parbox[b]{55mm}{
5934 \family default
5935  
5936 \emph on
5937 Do not close the brace!
5938 \end_layout
5939
5940 \begin_layout Enumerate
5941
5942 \change_inserted 564990737 1670794716
5943
5944 \lang american
5945 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5946  mode and insert
5947  the closing brace: 
5948 \family sans
5949 M-c
5950 \begin_inset space ~
5951 \end_inset
5952
5953 t
5954 \family default
5955  
5956 \family typewriter
5957 }
5958 \family default
5959 .
5960 \end_layout
5961
5962 \begin_layout Standard
5963
5964 \change_inserted 564990737 1671642458
5965
5966 \lang american
5967 Also, refer to the figures in the file in 
5968 \family sans
5969 \lang british
5970 File\SpecialChar menuseparator
5971 Open Example\SpecialChar menuseparator
5972 Articles\SpecialChar menuseparator
5973 Astronomy & Astrophysics
5974 \family default
5975 \lang american
5976 .
5977 \end_layout
5978
5979 \begin_layout Subsubsection
5980
5981 \change_inserted 564990737 1670794716
5982
5983 \lang american
5984 Referee layout
5985 \end_layout
5986
5987 \begin_layout Standard
5988
5989 \change_inserted 564990737 1670794716
5990
5991 \lang american
5992 For submission, the paper has to be formatted in a special double-spacing
5993  layout.
5994  For this purpose, you have to add the option 
5995 \family typewriter
5996 referee
5997 \family default
5998  to the 
5999 \family sans
6000 Cus
6001 \bar under
6002 t
6003 \bar default
6004 om Class
6005 \begin_inset space ~
6006 \end_inset
6007
6008 options
6009 \family default
6010  in the 
6011 \family sans
6012 \bar under
6013 D
6014 \bar default
6015 ocument\SpecialChar menuseparator
6016
6017 \bar under
6018 S
6019 \bar default
6020 ettings\SpecialChar menuseparator
6021 Document
6022 \begin_inset space ~
6023 \end_inset
6024
6025 Class
6026 \family default
6027  dialog.
6028  
6029 \end_layout
6030
6031 \begin_layout Subsubsection
6032
6033 \change_inserted 564990737 1670794716
6034
6035 \lang american
6036 The example paper
6037 \end_layout
6038
6039 \begin_layout Standard
6040
6041 \change_inserted 564990737 1671642520
6042
6043 \lang american
6044 The example in 
6045 \family sans
6046 \lang british
6047 File\SpecialChar menuseparator
6048 Open Example\SpecialChar menuseparator
6049 Articles\SpecialChar menuseparator
6050 Astronomy & Astrophysics
6051 \family default
6052 \lang american
6053  was written with \SpecialChar LyX
6054 .
6055  It is the example paper from the original macro package, 
6056 \family typewriter
6057 aa.dem
6058 \family default
6059  in the 
6060 \begin_inset CommandInset href
6061 LatexCommand href
6062 name "aa-package"
6063 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6064 literal "false"
6065
6066 \end_inset
6067
6068 , but translated to \SpecialChar LyX
6069  using the older unstructured abstract type.
6070  Use it for inspiration, and compare the \SpecialChar LaTeX
6071  code in 
6072 \family typewriter
6073 aa.dem
6074 \family default
6075  with the \SpecialChar LyX
6076  way of writing.
6077 \end_layout
6078
6079 \begin_layout Subsection
6080 AAS\SpecialChar TeX
6081
6082 \end_layout
6083
6084 \begin_layout Standard
6085 by 
6086 \noun on
6087 Mike Ressler
6088 \end_layout
6089
6090 \begin_layout Subsubsection
6091 Introduction
6092 \end_layout
6093
6094 \begin_layout Standard
6095 AAS\SpecialChar TeX
6096  is a set of macros produced by the American Astronomical Society to
6097  facilitate electronic manuscript submission to the three journals they
6098  publish: the Astrophysical Journal (including the Letters and Supplement),
6099  the Astronomical Journal, and the Publications of the Astronomical Society
6100  of the Pacific.
6101  \SpecialChar LyX
6102  has proven to be an excellent tool for generating these documents, especially
6103  given its equation, citation, and figure handling capabilities.
6104  \SpecialChar LyX
6105  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6106  is the version described here, or higher.
6107  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6108 2.09 and are fundamentally
6109  incompatible with \SpecialChar LyX
6110 .
6111  The AAS\SpecialChar TeX
6112  package may be downloaded from the AAS\SpecialChar TeX
6113  Web site
6114 \end_layout
6115
6116 \begin_layout Standard
6117 \begin_inset VSpace medskip
6118 \end_inset
6119
6120
6121 \end_layout
6122
6123 \begin_layout Standard
6124 \align center
6125 \begin_inset Flex URL
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129
6130 https://aas.org/aastex/aastex-downloads
6131 \end_layout
6132
6133 \end_inset
6134
6135
6136 \end_layout
6137
6138 \begin_layout Standard
6139 \begin_inset VSpace medskip
6140 \end_inset
6141
6142
6143 \end_layout
6144
6145 \begin_layout Standard
6146 A complete user guide is contained in that package and you should familiarize
6147  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6148 .
6149  \SpecialChar LyX
6150  will not reduce the need to figure out all the AAS\SpecialChar TeX
6151  commands, it will only
6152  reduce the drudgery of typing everything in.
6153  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6154  document conforms
6155  completely to the requirements of the journal to which you are submitting
6156  your paper.
6157 \end_layout
6158
6159 \begin_layout Subsubsection
6160 Starting a New Paper
6161 \end_layout
6162
6163 \begin_layout Standard
6164 I strongly suggest that you start with the AAS\SpecialChar TeX
6165  template file.
6166  Click on 
6167 \family sans
6168 File\SpecialChar menuseparator
6169 New from
6170 \family default
6171  
6172 \family sans
6173 Template
6174 \change_inserted 564990737 1671617265
6175 \SpecialChar menuseparator
6176 Articles\SpecialChar menuseparator
6177 American Astronomical Society
6178 \change_deleted 564990737 1671617310
6179
6180 \family default
6181 , enter the new file name, then choose the 
6182 \family typewriter
6183 aastex6.lyx
6184 \family default
6185  template
6186 \change_unchanged
6187 .
6188  This will show the most common fields found in a manuscript.
6189  Simply overwrite the existing text (including the brackets, 
6190 \family typewriter
6191 <>
6192 \family default
6193 ) with the correct information.
6194  Many of the AAS\SpecialChar TeX
6195  commands and environments can be implemented directly in
6196  \SpecialChar LyX
6197 , but some cannot.
6198  For commands such as these, the \SpecialChar LaTeX
6199  code must be entered directly and marked
6200  as such.
6201  Such commands are referred to as \SpecialChar TeX
6202  code, or Evil Red Text.
6203  I tried to minimize the amount of \SpecialChar TeX
6204  code needed in an AAS\SpecialChar TeX
6205  document.
6206 \end_layout
6207
6208 \begin_layout Subsubsection
6209 Finishing Your Paper
6210 \end_layout
6211
6212 \begin_layout Standard
6213 When the paper is finished to your satisfaction and previews/prints correctly,
6214  there are a few 
6215 \begin_inset Quotes eld
6216 \end_inset
6217
6218 postprocessing
6219 \begin_inset Quotes erd
6220 \end_inset
6221
6222  actions which need to be done before you submit it to the journals.
6223  
6224 \end_layout
6225
6226 \begin_layout Enumerate
6227 Export your paper as a \SpecialChar LaTeX
6228  file (
6229 \family sans
6230 File\SpecialChar menuseparator
6231 Export\SpecialChar menuseparator
6232 \SpecialChar LaTeX
6233
6234 \family default
6235 ).
6236  
6237 \end_layout
6238
6239 \begin_layout Enumerate
6240 Edit the resulting 
6241 \family typewriter
6242 .tex
6243 \family default
6244  file with your favorite text editor
6245 \end_layout
6246
6247 \begin_deeper
6248 \begin_layout Enumerate
6249 remove the comment lines before the 
6250 \family typewriter
6251
6252 \backslash
6253 documentclass
6254 \family default
6255  command
6256 \end_layout
6257
6258 \begin_layout Enumerate
6259 remove the 
6260 \family typewriter
6261
6262 \backslash
6263 usepackage...{fontenc}
6264 \family default
6265  line if it appears (usually just after 
6266 \family typewriter
6267
6268 \backslash
6269 documentclass
6270 \family default
6271 }; also remove the 
6272 \family typewriter
6273
6274 \backslash
6275 secnumdepth
6276 \family default
6277  line if it appears.
6278 \end_layout
6279
6280 \begin_layout Enumerate
6281 remove everything between (and including) the 
6282 \family typewriter
6283
6284 \backslash
6285 makeatletter
6286 \family default
6287  and 
6288 \family typewriter
6289
6290 \backslash
6291 makeatother
6292 \family default
6293  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6294  preamble
6295  (which should appear immediately after the 
6296 \begin_inset Quotes eld
6297 \end_inset
6298
6299 User specified \SpecialChar LaTeX
6300  commands
6301 \begin_inset Quotes erd
6302 \end_inset
6303
6304  comment in the 
6305 \family typewriter
6306 .tex
6307 \family default
6308  file).
6309 \end_layout
6310
6311 \end_deeper
6312 \begin_layout Enumerate
6313 Run the resulting file through \SpecialChar LaTeX
6314  to make sure it still processes correctly.
6315 \end_layout
6316
6317 \begin_layout Enumerate
6318 Reread the journal requirements to make sure your filenames and formats
6319  are correct.
6320 \end_layout
6321
6322 \begin_layout Enumerate
6323 Submit it.
6324 \end_layout
6325
6326 \begin_layout Subsubsection
6327 Comments On Specific Commands
6328 \end_layout
6329
6330 \begin_layout Standard
6331 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6332  commands: the
6333  AAS\SpecialChar TeX
6334  User Guide (
6335 \family typewriter
6336 aasguide.tex
6337 \family default
6338 ) gives a good description of each.
6339  Thus it's probably easiest for me to go down the list as found in the guide
6340  and offer comments where necessary.
6341  So let's begin \SpecialChar ldots
6342
6343 \end_layout
6344
6345 \begin_layout Paragraph
6346 Things that work as expected
6347 \end_layout
6348
6349 \begin_layout Standard
6350 Because they work as you might expect, I simply list them and the section
6351  they are found in: 
6352 \family typewriter
6353
6354 \backslash
6355 documentclass
6356 \family default
6357  (2.1.1), 
6358 \family typewriter
6359
6360 \backslash
6361 begin{document}
6362 \family default
6363  (2.2), 
6364 \family typewriter
6365
6366 \backslash
6367 title
6368 \family default
6369  (2.3), 
6370 \family typewriter
6371
6372 \backslash
6373 author
6374 \family default
6375  (2.3), 
6376 \family typewriter
6377
6378 \backslash
6379 affil
6380 \family default
6381  (2.3), 
6382 \family typewriter
6383
6384 \backslash
6385 abstract
6386 \family default
6387  (2.4), 
6388 \family typewriter
6389
6390 \backslash
6391 keywords
6392 \family default
6393  (2.5), 
6394 \family typewriter
6395
6396 \backslash
6397 section
6398 \family default
6399  (2.7), 
6400 \family typewriter
6401
6402 \backslash
6403 subsection
6404 \family default
6405  (2.7), 
6406 \family typewriter
6407
6408 \backslash
6409 subsubsection
6410 \family default
6411  (2.7), 
6412 \family typewriter
6413
6414 \backslash
6415 paragraph
6416 \family default
6417  (2.7), 
6418 \family typewriter
6419
6420 \backslash
6421 facility
6422 \family default
6423  (2.10), 
6424 \family typewriter
6425
6426 \backslash
6427 begin{displaymath}
6428 \family default
6429  (2.12), 
6430 \family typewriter
6431
6432 \backslash
6433 begin{equation}
6434 \family default
6435  (2.12), 
6436 \family typewriter
6437
6438 \backslash
6439 begin{eqnarray}
6440 \family default
6441  (2.12), 
6442 \family typewriter
6443
6444 \backslash
6445 begin{mathletters}
6446 \family default
6447  (2.12), 
6448 \family typewriter
6449
6450 \backslash
6451 begin{thebibliography}
6452 \family default
6453  (2.13.1), 
6454 \family typewriter
6455
6456 \backslash
6457 bibitem
6458 \family default
6459  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6460  graphicx figure commands (2.14.1), 
6461 \family typewriter
6462
6463 \backslash
6464 begin{table}
6465 \family default
6466  (2.15.4), 
6467 \family typewriter
6468
6469 \backslash
6470 begin{tabular}
6471 \family default
6472  (2.15.4), 
6473 \family typewriter
6474
6475 \backslash
6476 caption
6477 \family default
6478  (2.15.4), 
6479 \family typewriter
6480
6481 \backslash
6482 label
6483 \family default
6484  (2.15.4, amongst other places), 
6485 \family typewriter
6486
6487 \backslash
6488 tablerefs
6489 \family default
6490  (2.15.5), 
6491 \family typewriter
6492
6493 \backslash
6494 tablecomments
6495 \family default
6496  (2.15.5), 
6497 \family typewriter
6498
6499 \backslash
6500 url
6501 \family default
6502  (2.17.4), 
6503 \family typewriter
6504
6505 \backslash
6506 end{document}
6507 \family default
6508  (2.18).
6509 \end_layout
6510
6511 \begin_layout Standard
6512 The following style options also work correctly: 
6513 \family typewriter
6514 longabstract
6515 \family default
6516  (2.4), 
6517 \family typewriter
6518 preprint
6519 \family default
6520  (3.2.1), 
6521 \family typewriter
6522 preprint2
6523 \family default
6524  (3.2.2), 
6525 \family typewriter
6526 eqsecnum
6527 \family default
6528  (3.3), 
6529 \family typewriter
6530 flushrt
6531 \family default
6532  (3.4).
6533  Simply put them in the 
6534 \family sans
6535 Options
6536 \family default
6537  box in 
6538 \family sans
6539 Layout\SpecialChar menuseparator
6540 Document
6541 \family default
6542 .
6543 \end_layout
6544
6545 \begin_layout Paragraph
6546 Things that work, but require more comment
6547 \end_layout
6548
6549 \begin_layout Standard
6550 The following items work, but require a little more discussion:
6551 \end_layout
6552
6553 \begin_layout Itemize
6554 These items are reserved for use by the journal editors, but you can put
6555  them into the \SpecialChar LaTeX
6556  preamble if you feel compelled to do so: 
6557 \family typewriter
6558
6559 \backslash
6560 received
6561 \family default
6562
6563 \family typewriter
6564
6565 \backslash
6566 revised
6567 \family default
6568
6569 \family typewriter
6570
6571 \backslash
6572 accepted
6573 \family default
6574
6575 \family typewriter
6576
6577 \backslash
6578 ccc
6579 \family default
6580
6581 \family typewriter
6582
6583 \backslash
6584 cpright
6585 \family default
6586  (all from 2.1.3)
6587 \end_layout
6588
6589 \begin_layout Itemize
6590 These items may be placed in the \SpecialChar LaTeX
6591  preamble, and are included as blanks in
6592  the template file: 
6593 \family typewriter
6594
6595 \backslash
6596 slugcomment
6597 \family default
6598  (2.1.4), 
6599 \family typewriter
6600
6601 \backslash
6602 shorttitle
6603 \family default
6604  (2.1.5), 
6605 \family typewriter
6606
6607 \backslash
6608 shortauthors
6609 \family default
6610  (2.1.5)
6611 \end_layout
6612
6613 \begin_layout Itemize
6614
6615 \family typewriter
6616
6617 \backslash
6618 email
6619 \family default
6620  (2.3) – can only be used 
6621 \begin_inset Quotes eld
6622 \end_inset
6623
6624 standalone
6625 \begin_inset Quotes erd
6626 \end_inset
6627
6628 , not in the middle of a paragraph.
6629  Use \SpecialChar TeX
6630  code if you need to embed it.
6631 \end_layout
6632
6633 \begin_layout Itemize
6634
6635 \family typewriter
6636
6637 \backslash
6638 and
6639 \family default
6640  (2.3) – will have extra {} after it.
6641  This should not cause an error.
6642 \end_layout
6643
6644 \begin_layout Itemize
6645
6646 \family typewriter
6647
6648 \backslash
6649 notetoeditor
6650 \family default
6651  (2.6) – can only be used 
6652 \begin_inset Quotes eld
6653 \end_inset
6654
6655 standalone
6656 \begin_inset Quotes erd
6657 \end_inset
6658
6659 , not in the middle of a paragraph.
6660  Use \SpecialChar TeX
6661  code if you need to embed it.
6662 \end_layout
6663
6664 \begin_layout Itemize
6665
6666 \family typewriter
6667
6668 \backslash
6669 placetable
6670 \family default
6671  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6672  hand
6673 \end_layout
6674
6675 \begin_layout Itemize
6676
6677 \family typewriter
6678
6679 \backslash
6680 placefigure
6681 \family default
6682  (2.8) – same as for 
6683 \family typewriter
6684
6685 \backslash
6686 placetable
6687 \end_layout
6688
6689 \begin_layout Itemize
6690
6691 \family typewriter
6692
6693 \backslash
6694 acknowledgements
6695 \family default
6696  (2.9) – will have extra {} after it.
6697  This should not cause an error.
6698 \end_layout
6699
6700 \begin_layout Itemize
6701
6702 \family typewriter
6703
6704 \backslash
6705 appendix
6706 \family default
6707  (2.11) – will have extra {} after it.
6708  This should not cause an error.
6709 \end_layout
6710
6711 \begin_layout Itemize
6712
6713 \family typewriter
6714
6715 \backslash
6716 figcaption
6717 \family default
6718  (2.14.2) – you can insert an optional filename argument by placing the cursor
6719  at the beginning of the text and selecting 
6720 \family sans
6721 Insert\SpecialChar menuseparator
6722 Short Title
6723 \family default
6724 .
6725  
6726 \begin_inset Quotes eld
6727 \end_inset
6728
6729 Short Title
6730 \begin_inset Quotes erd
6731 \end_inset
6732
6733  inserts an optional argument of the type needed by 
6734 \family typewriter
6735
6736 \backslash
6737 figcaption
6738 \family default
6739 .
6740  Hopefully it will be renamed someday.
6741 \end_layout
6742
6743 \begin_layout Itemize
6744
6745 \family typewriter
6746
6747 \backslash
6748 objectname
6749 \family default
6750  (2.17.1) – same as 
6751 \family typewriter
6752
6753 \backslash
6754 figcaption
6755 \family default
6756  for the catalog ID optional parameter
6757 \end_layout
6758
6759 \begin_layout Itemize
6760
6761 \family typewriter
6762
6763 \backslash
6764 dataset
6765 \family default
6766  (2.17.1) – same as 
6767 \family typewriter
6768
6769 \backslash
6770 figcaption
6771 \family default
6772  for the catalog ID optional parameter
6773 \end_layout
6774
6775 \begin_layout Paragraph
6776 Things not implemented, use \SpecialChar TeX
6777  code
6778 \end_layout
6779
6780 \begin_layout Standard
6781
6782 \family typewriter
6783
6784 \backslash
6785 eqnum
6786 \family default
6787  (2.12), 
6788 \family typewriter
6789
6790 \backslash
6791 setcounter{equation}
6792 \family default
6793  (2.12), Journal name abbreviations (2.13.4), 
6794 \family typewriter
6795
6796 \backslash
6797 figurenum
6798 \family default
6799  (2.14.1), 
6800 \family typewriter
6801
6802 \backslash
6803 epsscale
6804 \family default
6805  (2.14.1), 
6806 \family typewriter
6807
6808 \backslash
6809 plotone
6810 \family default
6811  (2.14.1), 
6812 \family typewriter
6813
6814 \backslash
6815 plottwo
6816 \family default
6817  (2.14.1), 
6818 \family typewriter
6819
6820 \backslash
6821 tablenum
6822 \family default
6823  (2.15.4), 
6824 \family typewriter
6825
6826 \backslash
6827 tableline
6828 \family default
6829  (2.15.4, insert it as the first element in the lefthand cell after where
6830  you want it.
6831  Don't use any of \SpecialChar LyX
6832 's rules in the table), 
6833 \family typewriter
6834
6835 \backslash
6836 tablenotemark
6837 \family default
6838  (2.15.5), 
6839 \family typewriter
6840
6841 \backslash
6842 tablenotetext
6843 \family default
6844  (2.15.5), much of Misc (2.17, except 
6845 \family typewriter
6846
6847 \backslash
6848 objectname
6849 \family default
6850
6851 \family typewriter
6852
6853 \backslash
6854 dataset
6855 \family default
6856
6857 \family typewriter
6858
6859 \backslash
6860 url
6861 \family default
6862 , and 
6863 \family typewriter
6864
6865 \backslash
6866 email
6867 \family default
6868 ; see above), 
6869 \family typewriter
6870
6871 \backslash
6872 singlespace
6873 \family default
6874  (3.1), 
6875 \family typewriter
6876
6877 \backslash
6878 doublespace
6879 \family default
6880  (3.1), 
6881 \family typewriter
6882
6883 \backslash
6884 onecolumn
6885 \family default
6886  (3.2), 
6887 \family typewriter
6888
6889 \backslash
6890 twocolumn
6891 \family default
6892  (3.2)
6893 \end_layout
6894
6895 \begin_layout Paragraph
6896 Things that cannot be implemented
6897 \end_layout
6898
6899 \begin_layout Standard
6900 \SpecialChar ldots
6901  at least in any meaningful sort of way, so I suggest ignoring them.
6902  They are the references environment (2.13.3), and the deluxetable environment
6903  (2.15).
6904  If you really, really need to use deluxetable, I suggest editing it in
6905  a separate file with a text editor, then using 
6906 \family sans
6907 Insert\SpecialChar menuseparator
6908 Child
6909 \begin_inset space ~
6910 \end_inset
6911
6912 Document
6913 \family default
6914  to include it in your \SpecialChar LyX
6915  document.
6916  See 
6917 \change_deleted 564990737 1671642564
6918 the 
6919 \family typewriter
6920 aas_sample.lyx
6921 \family default
6922  file to see
6923 \change_inserted 564990737 1671642618
6924
6925 \family sans
6926 \lang british
6927 File\SpecialChar menuseparator
6928 Open Example\SpecialChar menuseparator
6929 Articles\SpecialChar menuseparator
6930 American Astronomical Society
6931 \change_unchanged
6932
6933 \family default
6934 \lang english
6935  
6936 \change_inserted 564990737 1671642621
6937 for 
6938 \change_unchanged
6939 an example of this.
6940 \end_layout
6941
6942 \begin_layout Subsubsection
6943 FAQs, Tips, Tricks, and Other Ruminations
6944 \end_layout
6945
6946 \begin_layout Paragraph
6947 Getting \SpecialChar LyX
6948  and AAS\SpecialChar TeX
6949  to cooperate
6950 \end_layout
6951
6952 \begin_layout Standard
6953 It can be a bit tricky to get \SpecialChar LyX
6954  to recognize a new layout and document class.
6955  When all else fails, do this:
6956 \end_layout
6957
6958 \begin_layout Enumerate
6959 Make certain that \SpecialChar LaTeX
6960  can find AAS\SpecialChar TeX
6961 .
6962  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6963  distribution into a
6964  directory completely unrelated to \SpecialChar LaTeX
6965  or AAS\SpecialChar TeX
6966  and run \SpecialChar LaTeX
6967  on 
6968 \family typewriter
6969 sample.tex
6970 \family default
6971 .
6972 \end_layout
6973
6974 \begin_layout Enumerate
6975 Make certain that 
6976 \family typewriter
6977 aastex.layout
6978 \family default
6979  appears in \SpecialChar LyX
6980 's 
6981 \family typewriter
6982 layouts
6983 \family default
6984  folder
6985 \end_layout
6986
6987 \begin_layout Enumerate
6988 Rerun 
6989 \family sans
6990 Tools\SpecialChar menuseparator
6991 Reconfigure
6992 \family default
6993  in \SpecialChar LyX
6994 , then restart \SpecialChar LyX
6995 .
6996 \end_layout
6997
6998 \begin_layout Enumerate
6999 Open a regular new file, not from a template.
7000  Does AAS\SpecialChar TeX
7001  appear in the class list in 
7002 \family sans
7003 Document\SpecialChar menuseparator
7004 Settings
7005 \family default
7006 ?
7007 \end_layout
7008
7009 \begin_layout Standard
7010 If you get a warning from an existing AAS\SpecialChar TeX
7011  document about not being able
7012  to find the AAS\SpecialChar TeX
7013  layout or a message about 
7014 \begin_inset Quotes eld
7015 \end_inset
7016
7017 You should not mix title layouts with normal ones
7018 \begin_inset Quotes erd
7019 \end_inset
7020
7021 , things haven't been installed correctly.
7022 \end_layout
7023
7024 \begin_layout Paragraph
7025 \SpecialChar LaTeX
7026  error processing a table 
7027 \end_layout
7028
7029 \begin_layout Standard
7030 \SpecialChar LyX
7031 , by default, attempts to center the table caption/title.
7032  This seems to produce a bad interaction in AAS\SpecialChar TeX
7033  so you should click somewhere
7034  in the caption/title, then select 
7035 \family sans
7036 Edit\SpecialChar menuseparator
7037 Paragraph
7038 \begin_inset space ~
7039 \end_inset
7040
7041 Settings
7042 \family default
7043 , then set the 
7044 \family sans
7045 Alignment
7046 \family default
7047  to 
7048 \family sans
7049 Block
7050 \family default
7051 .
7052  This took care of it for me.
7053 \end_layout
7054
7055 \begin_layout Paragraph
7056 References
7057 \end_layout
7058
7059 \begin_layout Standard
7060 A couple of things: 1) I have noticed some funny spacing in the reference
7061  entries in the text.
7062  When you enter the bibliography item data, make sure their is 
7063 \emph on
7064 no
7065 \emph default
7066  space between the last author and the parenthesis setting off the year;
7067  
7068 \emph on
7069 e.
7070 \begin_inset space \thinspace{}
7071 \end_inset
7072
7073 g.
7074 \begin_inset space \space{}
7075 \end_inset
7076
7077
7078 \emph default
7079 type 
7080 \family typewriter
7081 Ressler(1992)
7082 \family default
7083 , not 
7084 \family typewriter
7085 Ressler (1992)
7086 \family default
7087 .
7088  2) Entering the references at all is not obvious.
7089  The easiest thing is to start typing your first reference at the end of
7090  the document, then mark it as type 
7091 \family sans
7092 References
7093 \family default
7094 .
7095  That will put a small gray box in front of what you just typed.
7096  Click on the box to fill in the rest of the information.
7097  For new references, go to the end of an existing reference and press return.
7098  That will create a new line with its own box, etc.
7099 \end_layout
7100
7101 \begin_layout Paragraph
7102 Including EPS files
7103 \end_layout
7104
7105 \begin_layout Standard
7106 Even though AAS\SpecialChar TeX
7107  provides its own figure commands (
7108 \family typewriter
7109
7110 \backslash
7111 plotone
7112 \family default
7113 , for example), I much prefer \SpecialChar LaTeX
7114 's standard figure commands (with the default
7115  graphicx).
7116  You can insert the 
7117 \family typewriter
7118
7119 \backslash
7120 plotone
7121 \family default
7122 , etc.
7123 \begin_inset space ~
7124 \end_inset
7125
7126 commands as \SpecialChar TeX
7127  code into a Figure Float box if you desire, but I never have
7128  much luck getting the layout right.
7129  With the standard graphics, \SpecialChar LyX
7130  will insert a 
7131 \family typewriter
7132
7133 \backslash
7134 usepackage{graphicx}
7135 \family default
7136  command into the \SpecialChar LaTeX
7137  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7138  way,
7139  interspersing the figures in the text.
7140  I believe ApJ accepts figures exactly this way now; AJ might still use
7141  the 
7142 \begin_inset Quotes eld
7143 \end_inset
7144
7145 stack everything at the end
7146 \begin_inset Quotes erd
7147 \end_inset
7148
7149  technique.
7150 \end_layout
7151
7152 \begin_layout Paragraph
7153 Things I could have done, but didn't
7154 \end_layout
7155
7156 \begin_layout Standard
7157 There are a few 
7158 \begin_inset Quotes eld
7159 \end_inset
7160
7161 pretty
7162 \begin_inset Quotes erd
7163 \end_inset
7164
7165  things I could have implemented, but chose not to.
7166  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7167  window,
7168  even though it is double-spaced in the paper manuscript.
7169  Also, I chose not to make separate layouts for the preprint and preprint2
7170  styles.
7171  Since I assume you will spend most of your time in the plain manuscript
7172  mode anyway, I decided not to chew up more disk space with this.
7173  
7174 \end_layout
7175
7176 \begin_layout Subsubsection
7177 Final Caveat
7178 \end_layout
7179
7180 \begin_layout Standard
7181 Your mileage may vary.
7182  I've now had papers published by both ApJ and AJ that have had 98% of the
7183  effort done in \SpecialChar LyX
7184 ; the last 2% was the \SpecialChar LaTeX
7185  post-processing and a few cleanups.
7186  I have had no trouble with the submission process, and I'm sure the journals
7187  were never aware that there might be a difference.
7188  So, go forth and publish!
7189 \end_layout
7190
7191 \begin_layout Subsection
7192
7193 \change_inserted 564990737 1671442131
7194
7195 \lang american
7196 Chess
7197 \end_layout
7198
7199 \begin_layout Standard
7200
7201 \change_inserted 564990737 1671642768
7202
7203 \lang american
7204 The document class 
7205 \family sans
7206 article
7207 \begin_inset space \thinspace{}
7208 \end_inset
7209
7210 (Chess)
7211 \family default
7212  uses the 
7213 \family typewriter
7214 article.cls
7215 \family default
7216  document class together with the style 
7217 \family sans
7218 lyxskak.sty
7219 \family default
7220  to facilitate the description of chess games.
7221  See 
7222 \family sans
7223 \lang british
7224 File\SpecialChar menuseparator
7225 Open Example
7226 \lang english
7227 \SpecialChar menuseparator
7228 Articles\SpecialChar menuseparator
7229 Chess
7230 \family default
7231 \lang american
7232  where you will find 
7233 \family sans
7234 \lang english
7235 Game 1
7236 \family default
7237 \lang american
7238  and 
7239 \family sans
7240 \lang english
7241 Game 2
7242 \family default
7243 \lang american
7244 .
7245 \end_layout
7246
7247 \begin_layout Subsection
7248
7249 \change_inserted 564990737 1671042028
7250
7251 \lang american
7252 Elsevier
7253 \end_layout
7254
7255 \begin_layout Standard
7256
7257 \change_inserted 564990737 1671617396
7258
7259 \lang american
7260 The document class 
7261 \family sans
7262 article
7263 \begin_inset space \thinspace{}
7264 \end_inset
7265
7266 (Elsevier)
7267 \family default
7268  provides the 
7269 \family typewriter
7270 elsarticle.cls
7271 \family default
7272  document class.
7273  This provides the following additional environments: 
7274 \family sans
7275 Title
7276 \begin_inset space ~
7277 \end_inset
7278
7279 footnote
7280 \family default
7281
7282 \family sans
7283 Author
7284 \begin_inset space ~
7285 \end_inset
7286
7287 footnote
7288 \family default
7289
7290 \family sans
7291 Corresponding
7292 \begin_inset space ~
7293 \end_inset
7294
7295 author
7296 \family default
7297
7298 \family sans
7299 Address
7300 \family default
7301
7302 \family sans
7303 Email
7304 \family default
7305  and 
7306 \family sans
7307 Keywords
7308 \family default
7309 .
7310  A template is available in the menu 
7311 \family sans
7312 \bar under
7313 F
7314 \bar default
7315 ile\SpecialChar menuseparator
7316 New
7317 \begin_inset space ~
7318 \end_inset
7319
7320 fro
7321 \bar under
7322 m
7323 \bar default
7324
7325 \begin_inset space ~
7326 \end_inset
7327
7328 Template
7329 \lang english
7330 \SpecialChar menuseparator
7331 Articles\SpecialChar menuseparator
7332 Elsevier
7333 \family default
7334 \lang american
7335 .
7336  It has been customized with further environments and contains all the informati
7337 on you may need.
7338  However, the documentation is also available from 
7339 \begin_inset CommandInset href
7340 LatexCommand href
7341 name "CTAN"
7342 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7343 literal "false"
7344
7345 \end_inset
7346
7347 .
7348 \end_layout
7349
7350 \begin_layout Subsection
7351
7352 \change_inserted 564990737 1671042046
7353
7354 \lang american
7355 Paper
7356 \end_layout
7357
7358 \begin_layout Standard
7359
7360 \change_inserted 564990737 1671042046
7361
7362 \lang american
7363 The document class 
7364 \family sans
7365 article
7366 \begin_inset space \thinspace{}
7367 \end_inset
7368
7369 (paper)
7370 \family default
7371  provides an alternative to the 
7372 \family typewriter
7373 article.cls
7374 \family default
7375  document class.
7376  It provides similar functionality, but you might prefer this layout with
7377  sans serif sections, headings, and more.
7378 \end_layout
7379
7380 \begin_layout Subsection
7381 Rev\SpecialChar TeX
7382 4
7383 \end_layout
7384
7385 \begin_layout Standard
7386 by 
7387 \noun on
7388 Amir Karger
7389 \end_layout
7390
7391 \begin_layout Standard
7392 \begin_inset VSpace bigskip
7393 \end_inset
7394
7395
7396 \end_layout
7397
7398 \begin_layout Standard
7399 \noindent
7400 The 
7401 \family sans
7402 Revtex
7403 \begin_inset space ~
7404 \end_inset
7405
7406 4
7407 \family default
7408  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7409  4.0 (the 
7410 \begin_inset Formula $\beta$
7411 \end_inset
7412
7413  release of May, 1999) class.
7414 \end_layout
7415
7416 \begin_layout Standard
7417 \SpecialChar LyX
7418  has a 
7419 \family sans
7420 Revtex
7421 \family default
7422  textclass, which works with Rev\SpecialChar TeX
7423  3.1.
7424  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7425  2.09.
7426  That means that it doesn't interact very well with \SpecialChar LyX
7427 , which requires \SpecialChar LaTeX2e
7428 , although
7429  it has been kludged to work.
7430  Since Rev\SpecialChar TeX
7431  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7432 , \SpecialChar LyX
7433  with the
7434  
7435 \family sans
7436 Rev\SpecialChar TeX
7437
7438 \begin_inset space ~
7439 \end_inset
7440
7441 4
7442 \family default
7443  textclass should also be pretty easy to use.
7444 \end_layout
7445
7446 \begin_layout Standard
7447 These documents are supposed to be used in 
7448 \emph on
7449 addition
7450 \emph default
7451  to the Rev\SpecialChar TeX
7452  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7453  macros,
7454  and assume you'll know what to put in the preamble if necessary.
7455 \end_layout
7456
7457 \begin_layout Subsubsection
7458 Installation
7459 \end_layout
7460
7461 \begin_layout Standard
7462 All you need to do is install Rev\SpecialChar TeX
7463  4, as described in the package's README
7464  file.
7465  The package can be found at The Rev\SpecialChar TeX
7466  4 Web Site 
7467 \begin_inset Flex URL
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471
7472 http://publish.aps.org/revtex4/
7473 \end_layout
7474
7475 \end_inset
7476
7477 .
7478  Install it somewhere that \SpecialChar LaTeX
7479  can see it.
7480  Test it by trying to \SpecialChar LaTeX
7481  a short Rev\SpecialChar TeX
7482  4 document in some random directory (i.
7483 \begin_inset space \thinspace{}
7484 \end_inset
7485
7486 e.
7487 \begin_inset space \space{}
7488 \end_inset
7489
7490 not the directory where you installed the class file.) Then, if you reconfigure
7491  \SpecialChar LyX
7492 , it will find the class file and let you use the Rev\SpecialChar TeX
7493 4 textclass.
7494 \end_layout
7495
7496 \begin_layout Standard
7497 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7498  4 document
7499  using 
7500 \family typewriter
7501 tex2lyx
7502 \family default
7503 , or to use the 
7504 \family sans
7505 Revtex
7506 \begin_inset space ~
7507 \end_inset
7508
7509 4
7510 \family default
7511  template, found in the templates directory.
7512 \end_layout
7513
7514 \begin_layout Subsubsection
7515 Preamble Matter
7516 \end_layout
7517
7518 \begin_layout Standard
7519 Optional arguments to 
7520 \family typewriter
7521
7522 \backslash
7523 documentclass
7524 \family default
7525 , like 
7526 \begin_inset Quotes eld
7527 \end_inset
7528
7529 preprint
7530 \begin_inset Quotes erd
7531 \end_inset
7532
7533  and 
7534 \begin_inset Quotes eld
7535 \end_inset
7536
7537 aps
7538 \begin_inset Quotes erd
7539 \end_inset
7540
7541 , go in the 
7542 \family sans
7543 Extra
7544 \begin_inset space ~
7545 \end_inset
7546
7547 Options
7548 \family default
7549  field in the 
7550 \family sans
7551 Document
7552 \begin_inset space ~
7553 \end_inset
7554
7555 Layout
7556 \family default
7557  dialog, as usual.
7558  Remember that in Rev\SpecialChar TeX
7559 , at least one optional argument is required! 
7560 \end_layout
7561
7562 \begin_layout Standard
7563 Other preamble matter, like 
7564 \family typewriter
7565
7566 \backslash
7567 draft
7568 \family default
7569  etc.
7570 \begin_inset space ~
7571 \end_inset
7572
7573 goes in the 
7574 \family sans
7575 \SpecialChar LaTeX
7576
7577 \begin_inset space ~
7578 \end_inset
7579
7580 Preamble
7581 \family default
7582  dialog, also as usual.
7583 \end_layout
7584
7585 \begin_layout Subsubsection
7586 Layouts
7587 \end_layout
7588
7589 \begin_layout Standard
7590 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7591 4.0.
7592  For example, the Email layout corresponds to 
7593 \family typewriter
7594
7595 \backslash
7596 email{}
7597 \family default
7598 .
7599  Note that (at least as of Rev\SpecialChar TeX
7600  4.0 Beta), the 
7601 \family sans
7602 Address
7603 \family default
7604  and 
7605 \family sans
7606 Affiliation
7607 \family default
7608  layouts are exactly equivalent, so you shouldn't need to use both.
7609 \begin_inset Foot
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 In case you're curious, both were included so that 
7614 \family typewriter
7615 tex2lyx
7616 \family default
7617  would be able to translate both 
7618 \family typewriter
7619
7620 \backslash
7621 address
7622 \family default
7623  and 
7624 \family typewriter
7625
7626 \backslash
7627 affiliation
7628 \family default
7629 .
7630 \end_layout
7631
7632 \end_inset
7633
7634
7635 \end_layout
7636
7637 \begin_layout Subsubsection
7638 Important Notes
7639 \end_layout
7640
7641 \begin_layout Standard
7642 There are a couple of important unique aspects of Rev\SpecialChar TeX
7643  4 which might cause
7644  bugs that will be even more confusing in \SpecialChar LyX
7645 .
7646 \end_layout
7647
7648 \begin_layout Standard
7649 In Rev\SpecialChar TeX
7650 , the 
7651 \family typewriter
7652
7653 \backslash
7654 thanks
7655 \family default
7656  command goes 
7657 \emph on
7658 outside
7659 \emph default
7660  the 
7661 \family typewriter
7662
7663 \backslash
7664 author
7665 \family default
7666  command.
7667  The \SpecialChar LyX
7668  equivalent is that there is a separate Thanks layout.
7669  Do 
7670 \emph on
7671 not
7672 \emph default
7673  write footnotes in the 
7674 \family sans
7675 Author
7676 \family default
7677  layout, or weird things may happen.
7678  See the Rev\SpecialChar TeX
7679  4 documentation for more details.
7680 \end_layout
7681
7682 \begin_layout Standard
7683 Also, the 
7684 \family sans
7685 Author
7686 \begin_inset space ~
7687 \end_inset
7688
7689 Email
7690 \family default
7691
7692 \family sans
7693 Author
7694 \begin_inset space ~
7695 \end_inset
7696
7697 URL
7698 \family default
7699 , and 
7700 \family sans
7701 Thanks
7702 \family default
7703  layouts must be placed 
7704 \emph on
7705 in between
7706 \emph default
7707  the 
7708 \family sans
7709 Author
7710 \family default
7711  layout and the corresponding 
7712 \family sans
7713 Address
7714 \family default
7715  (or equivalent 
7716 \family sans
7717 Affiliation
7718 \family default
7719 ) layout.
7720  If you put the 
7721 \family sans
7722 Thanks
7723 \family default
7724  after the 
7725 \family sans
7726 Address
7727 \family default
7728 , the \SpecialChar LaTeX
7729  won't compile.
7730 \end_layout
7731
7732 \begin_layout Subsection
7733
7734 \change_inserted 564990737 1671042072
7735
7736 \lang american
7737 Springer Journals
7738 \end_layout
7739
7740 \begin_layout Standard
7741
7742 \change_inserted 564990737 1671042072
7743
7744 \lang american
7745 All the 
7746 \family sans
7747 svj*
7748 \family default
7749  classes were replaced in 2013 with a completely new 
7750 \family sans
7751 sr-vorl.cls
7752 \family default
7753 .
7754  This package provides a \SpecialChar LaTeX
7755  class and templates for books to be published
7756  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7757  Research, Springer VS Research, or Springer VS Forschung.
7758  The documentation is available in German from 
7759 \begin_inset CommandInset href
7760 LatexCommand href
7761 name "CTAN"
7762 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7763 literal "false"
7764
7765 \end_inset
7766
7767 .
7768 \end_layout
7769
7770 \begin_layout Section
7771
7772 \change_inserted 564990737 1670439560
7773 Books
7774 \end_layout
7775
7776 \begin_layout Standard
7777
7778 \change_inserted 564990737 1670439581
7779 See also the document classes in the Collections (section
7780 \begin_inset space ~
7781 \end_inset
7782
7783
7784 \begin_inset CommandInset ref
7785 LatexCommand ref
7786 reference "sec:Collections"
7787
7788 \end_inset
7789
7790 ).
7791 \end_layout
7792
7793 \begin_layout Subsection
7794 Memoir
7795 \end_layout
7796
7797 \begin_layout Standard
7798 By 
7799 \noun on
7800 Jürgen Spitzmüller
7801 \end_layout
7802
7803 \begin_layout Subsubsection
7804 Overview
7805 \end_layout
7806
7807 \begin_layout Standard
7808 Memoir is a very powerful and constantly evolving class.
7809  It has been designed with regard to fictional and non-fictional literature.
7810  Its aim is to let the user have maximum control over the typesetting of
7811  his document.
7812  Memoir is based on the standard book class, but it can also emulate the
7813  article class (see below).
7814 \end_layout
7815
7816 \begin_layout Standard
7817 Peter Wilson, the developer of Memoir, is known as the author of lots of
7818  useful packages in the \SpecialChar LaTeX
7819  world.
7820  Most of them have been merged with Memoir.
7821  Therefore, it is much easier to layout the table of contents, appendices,
7822  chapter designs and such.
7823  \SpecialChar LyX
7824 , though, does not support all of these goodies natively.
7825  Some of them might be added to forthcoming releases
7826 \begin_inset Foot
7827 status collapsed
7828
7829 \begin_layout Plain Layout
7830 You are invited to send suggestions to 
7831 \begin_inset Flex URL
7832 status collapsed
7833
7834 \begin_layout Plain Layout
7835
7836 lyx-devel@lists.lyx.org
7837 \end_layout
7838
7839 \end_inset
7840
7841 .
7842 \end_layout
7843
7844 \end_inset
7845
7846 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7847 's framework.
7848  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7849
7850  commands (\SpecialChar TeX
7851  code
7852 \begin_inset Foot
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856 Cf.
7857 \begin_inset ERT
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861
7862
7863 \backslash
7864  
7865 \end_layout
7866
7867 \end_inset
7868
7869 section
7870 \begin_inset space ~
7871 \end_inset
7872
7873
7874 \begin_inset CommandInset ref
7875 LatexCommand ref
7876 reference "sec:Inserting-TeX-Code"
7877
7878 \end_inset
7879
7880  for details.
7881 \end_layout
7882
7883 \end_inset
7884
7885 ).
7886  In this section, we can only list those features that are natively supported
7887  by \SpecialChar LyX
7888 .
7889  For detailed descriptions (and for the rest of features) we recommend you
7890  have a look at the detailed manual of the Memoir class
7891 \begin_inset Foot
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 Cf.
7896 \begin_inset ERT
7897 status collapsed
7898
7899 \begin_layout Plain Layout
7900
7901
7902 \backslash
7903  
7904 \end_layout
7905
7906 \end_inset
7907
7908
7909 \begin_inset Flex URL
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913
7914 CTAN:/macros/latex/memoir/memman.pdf
7915 \end_layout
7916
7917 \end_inset
7918
7919 .
7920 \end_layout
7921
7922 \end_inset
7923
7924 , which is not only a user guide for the class, but also both a comprehensive
7925  description on good typesetting and a superb example for good typesetting
7926  itself.
7927 \end_layout
7928
7929 \begin_layout Subsubsection
7930 Basic features and restrictions
7931 \end_layout
7932
7933 \begin_layout Standard
7934 Memoir supports basically all features of the standard book classes.
7935  There are, however, some differences, as follows:
7936 \end_layout
7937
7938 \begin_layout Description
7939 Font
7940 \begin_inset space ~
7941 \end_inset
7942
7943 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7944 \end_layout
7945
7946 \begin_layout Description
7947 Page
7948 \begin_inset space ~
7949 \end_inset
7950
7951 style: The fancy page style is not supported, due to a command clash between
7952  Memoir and the fancyhdr package (they both define a command with the same
7953  name, which confuses \SpecialChar LaTeX
7954 ).
7955  Instead, Memoir comes with a number of its own page styles (see 
7956 \family sans
7957 Document\SpecialChar menuseparator
7958 Settings\SpecialChar menuseparator
7959 Page
7960 \begin_inset space ~
7961 \end_inset
7962
7963 Style
7964 \family default
7965 ).
7966  If you want to use these for the chapter pages, you have to use the command
7967  
7968 \family typewriter
7969
7970 \backslash
7971 chapterstyle
7972 \family default
7973  in the main text or in preamble (e.
7974 \begin_inset space \thinspace{}
7975 \end_inset
7976
7977 g.
7978 \begin_inset space \space{}
7979 \end_inset
7980
7981
7982 \family typewriter
7983
7984 \backslash
7985 chapterstyle{companion}
7986 \family default
7987 ).
7988 \end_layout
7989
7990 \begin_layout Description
7991 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7992  optional argument in the standard classes.
7993  With this, you can specify an alternative version of the title for the
7994  table of contents and the headers (for instance, if the title is too long).
7995  In \SpecialChar LyX
7996 , you can do this via 
7997 \family sans
7998 Insert\SpecialChar menuseparator
7999 Short
8000 \begin_inset space ~
8001 \end_inset
8002
8003 Title
8004 \family default
8005  at the beginning of a chapter/section.
8006  Memoir features a second optional argument and thus separates the table
8007  of contents from the header.
8008  You can define three variants of a title with this: one for the main text,
8009  one for the table of contents, and one for the headers.
8010  \SpecialChar LyX
8011  makes these available in form of specific 
8012 \family sans
8013 Short Title
8014 \family default
8015  variants in the 
8016 \family sans
8017 Insert
8018 \family default
8019  menu.
8020 \end_layout
8021
8022 \begin_layout Description
8023 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8024  of contents, the list of figures and the list of table start a new page
8025  automatically.
8026  Memoir does not follow this route.
8027  You have to insert a page break yourself, if you want to have one.
8028 \end_layout
8029
8030 \begin_layout Description
8031 Titlepage: For some unknown reason, Memoir uses pagination on the title
8032  page (in the standard classes, title pages are 
8033 \begin_inset Quotes eld
8034 \end_inset
8035
8036 empty
8037 \begin_inset Quotes erd
8038 \end_inset
8039
8040 ).
8041  If you want an empty title page, type 
8042 \family typewriter
8043
8044 \backslash
8045 aliaspagestyle{title}{empty}
8046 \family default
8047  in the preamble.
8048 \end_layout
8049
8050 \begin_layout Description
8051 Article: With the class option 
8052 \emph on
8053 article
8054 \emph default
8055  (to be inserted in 
8056 \family sans
8057 Document\SpecialChar menuseparator
8058 Settings\SpecialChar menuseparator
8059 Class Settings\SpecialChar menuseparator
8060 Custom
8061 \begin_inset space ~
8062 \end_inset
8063
8064 Options
8065 \family default
8066 ), you can emulate article style.
8067  That is, counters (footnotes, figures, tables etc.) will not be reset on
8068  new chapters, chapters don't start a new page (but are—in contrary to 
8069 \begin_inset Quotes eld
8070 \end_inset
8071
8072 real
8073 \begin_inset Quotes erd
8074 \end_inset
8075
8076  article classes—still allowed), parts, though, use their own page, as in
8077  book.
8078 \end_layout
8079
8080 \begin_layout Description
8081 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8082  font commands, which have been used in the old \SpecialChar LaTeX
8083  version 2.09 (e.
8084 \begin_inset space \thinspace{}
8085 \end_inset
8086
8087 g.
8088 \begin_inset space \space{}
8089 \end_inset
8090
8091
8092 \family typewriter
8093
8094 \backslash
8095 rm
8096 \family default
8097
8098 \family typewriter
8099
8100 \backslash
8101 it
8102 \family default
8103 ).
8104  It produces an error and stops \SpecialChar LaTeX
8105  whenever such a command appears.
8106  The class option 
8107 \emph on
8108 oldfontcommands
8109 \emph default
8110  reallows the commands and spits out warnings instead (which does at least
8111  not stop \SpecialChar LaTeX
8112 ).
8113  Since a lot of packages and particularly Bib\SpecialChar TeX
8114  style files are still using
8115  those commands, we have decided to use this option by default.
8116 \end_layout
8117
8118 \begin_layout Subsubsection
8119 Extra features
8120 \end_layout
8121
8122 \begin_layout Standard
8123 We will only describe the features supported by \SpecialChar LyX
8124  (which is not much currently).
8125  Please consult the Memoir manual
8126 \begin_inset Foot
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130 Cf.
8131 \begin_inset ERT
8132 status collapsed
8133
8134 \begin_layout Plain Layout
8135
8136
8137 \backslash
8138  
8139 \end_layout
8140
8141 \end_inset
8142
8143
8144 \begin_inset Flex URL
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148
8149 CTAN:/macros/latex/memoir/memman.pdf
8150 \end_layout
8151
8152 \end_inset
8153
8154 .
8155 \end_layout
8156
8157 \end_inset
8158
8159  for details.
8160 \end_layout
8161
8162 \begin_layout Description
8163 Abstract: You may wonder why an abstract is an extra feature.
8164  Well, it is in book class.
8165  Usually books don't have abstracts.
8166  Memoir, however, has.
8167  You can use it wherever and how often you like.
8168 \end_layout
8169
8170 \begin_layout Description
8171 Chapterprecis: You may know this older typesetting style: The contents of
8172  a chapter are summarized below the title and also in the table of contents
8173  (e.
8174 \begin_inset space \thinspace{}
8175 \end_inset
8176
8177 g.
8178 \begin_inset space \space{}
8179 \end_inset
8180
8181
8182 \emph on
8183 Our hero arrives in Troia; he loses some friends; he finds others
8184 \emph default
8185 ).
8186  Chapterprecis does exactly this.
8187  It is therefore only sensible below a chapter.
8188 \end_layout
8189
8190 \begin_layout Description
8191 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8192  The epigraph environment provides an elegant way of typesetting such a
8193  motto.
8194  The motto itself (text) and its (optional) author (source) are divided
8195  by a short line.
8196  The author (source) can be inserted via 
8197 \family sans
8198 Insert\SpecialChar menuseparator
8199 Epigraph Source
8200 \family default
8201 \emph on
8202 .
8203 \end_layout
8204
8205 \begin_layout Description
8206 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8207  complex figurative poems).
8208  \SpecialChar LyX
8209  can only support a few of them.
8210  One is poemtitle, which is a centered title for poems, which will also
8211  be added to the table of contents (verse is the standard environment for
8212  poems.
8213  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8214  code,
8215  because they have to be nested inside regular verse environments, which
8216  is not possible with \SpecialChar LyX
8217 ).
8218 \end_layout
8219
8220 \begin_layout Description
8221 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8222 \end_layout
8223
8224 \begin_layout Subsection
8225
8226 \change_inserted 564990737 1671442175
8227
8228 \lang american
8229 Recipe Book
8230 \end_layout
8231
8232 \begin_layout Standard
8233
8234 \change_inserted 564990737 1671442175
8235
8236 \lang american
8237 The document class 
8238 \family typewriter
8239 RecipeBook.cls
8240 \family default
8241  uses the 
8242 \family sans
8243 book
8244 \begin_inset space \thinspace{}
8245 \end_inset
8246
8247 (KOMA-Script)
8248 \family default
8249  document class but adds two environments:
8250 \end_layout
8251
8252 \begin_layout Description
8253
8254 \change_inserted 564990737 1671442175
8255
8256 \lang american
8257 Recipe a numbered section environment at the 
8258 \family typewriter
8259 Subsubsection
8260 \family default
8261  level which generates a bold centered heading above a double horizontal
8262  rule
8263 \end_layout
8264
8265 \begin_layout Description
8266
8267 \change_inserted 564990737 1671442175
8268
8269 \lang american
8270 Ingredients a 
8271 \family typewriter
8272 Description
8273 \family default
8274  environment where 
8275 \series bold
8276 \emph on
8277 Ingredients
8278 \series default
8279 \emph default
8280  are what are being described and the environment ends with a horizontal
8281  rule.
8282 \end_layout
8283
8284 \begin_layout Standard
8285
8286 \change_inserted 564990737 1671642866
8287
8288 \family sans
8289 \lang british
8290 File\SpecialChar menuseparator
8291 Open Example\SpecialChar menuseparator
8292 Books\SpecialChar menuseparator
8293 Recipe Book
8294 \family default
8295 \lang american
8296  illustrates its use.
8297 \end_layout
8298
8299 \begin_layout Standard
8300
8301 \change_inserted 564990737 1671442175
8302
8303 \lang american
8304 It is designed for typesetting one or two recipes per page, with dimensions
8305  of 5.5
8306 \begin_inset Quotes qrd
8307 \end_inset
8308
8309  x 8.5
8310 \begin_inset Quotes qrd
8311 \end_inset
8312
8313 .
8314  The hyperlinked table of contents (ToC) and page numbers make browsing
8315  recipes convenient, and the pages can be joined together or printed 2 per
8316  page to normal letterpaper easily.
8317  The size was chosen to work in half-page 3-ring binder cover sheets, because
8318  un-laminated paper just doesn't last in the kitchen.
8319 \end_layout
8320
8321 \begin_layout Standard
8322
8323 \change_inserted 564990737 1671442175
8324
8325 \lang american
8326 The half-letter pages can be printed two per page using your printer driver,
8327  or bound together using 
8328 \family typewriter
8329 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8330 \family default
8331  
8332 \family typewriter
8333 Recipes.pdf
8334 \family default
8335  where 
8336 \family typewriter
8337 Recipes.pdf
8338 \family default
8339  is the compiled version of your recipes.
8340 \end_layout
8341
8342 \begin_layout Section
8343
8344 \change_inserted 564990737 1671442207
8345 Curricula vitarum
8346 \end_layout
8347
8348 \begin_layout Subsection
8349
8350 \change_inserted 564990737 1671442208
8351
8352 \lang american
8353 Europass
8354 \end_layout
8355
8356 \begin_layout Standard
8357
8358 \change_inserted 564990737 1671642942
8359
8360 \lang american
8361 The document class 
8362 \family sans
8363 curriculum
8364 \begin_inset space \space{}
8365 \end_inset
8366
8367 vitae
8368 \begin_inset space \thinspace{}
8369 \end_inset
8370
8371 (Europass)
8372 \family default
8373  provides the 
8374 \family typewriter
8375 europasscv.cls
8376 \family default
8377  document class, an unofficial implementation of the ‘Europass CV’ recommended
8378  by the European Commission in 2013.
8379  
8380 \family sans
8381 \lang british
8382 File\SpecialChar menuseparator
8383 Open Example\SpecialChar menuseparator
8384 Curricula Vitae\SpecialChar menuseparator
8385 Europass CV (2013)
8386 \family default
8387 \lang american
8388  offers guidance on its use.
8389  Its documentation is available from 
8390 \begin_inset CommandInset href
8391 LatexCommand href
8392 name "CTAN"
8393 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8394 literal "false"
8395
8396 \end_inset
8397
8398 .
8399 \end_layout
8400
8401 \begin_layout Subsection
8402
8403 \change_inserted 564990737 1671442208
8404
8405 \lang american
8406 European
8407 \end_layout
8408
8409 \begin_layout Standard
8410
8411 \change_inserted 564990737 1671642984
8412
8413 \lang american
8414 The document class 
8415 \family sans
8416 curriculum
8417 \begin_inset space \space{}
8418 \end_inset
8419
8420 vitae
8421 \begin_inset space \thinspace{}
8422 \end_inset
8423
8424 (Europe)
8425 \family default
8426  provides the 
8427 \family typewriter
8428 europecv.cls
8429 \family default
8430  document class, an unofficial implementation of the “Europass CV” recommended
8431  by the European Commission in 2002.
8432  
8433 \family sans
8434 \lang british
8435 File\SpecialChar menuseparator
8436 Open Example\SpecialChar menuseparator
8437 Curricula Vitae\SpecialChar menuseparator
8438 Europe CV
8439 \family default
8440 \lang american
8441  offers guidance on its use.
8442  Its documentation is available from 
8443 \begin_inset CommandInset href
8444 LatexCommand href
8445 name "CTAN"
8446 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8447 literal "false"
8448
8449 \end_inset
8450
8451 .
8452 \end_layout
8453
8454 \begin_layout Subsection
8455
8456 \change_inserted 564990737 1671442208
8457
8458 \lang american
8459 Modern
8460 \end_layout
8461
8462 \begin_layout Standard
8463
8464 \change_inserted 564990737 1671643003
8465
8466 \lang american
8467 The document class 
8468 \family sans
8469 curriculum
8470 \begin_inset space \space{}
8471 \end_inset
8472
8473 vitae
8474 \begin_inset space \thinspace{}
8475 \end_inset
8476
8477 (modern)
8478 \family default
8479  provides the 
8480 \family typewriter
8481 moderncv.cls
8482 \family default
8483  document class.
8484  This allows the creation of customizable CVs.
8485  
8486 \family sans
8487 \lang british
8488 File\SpecialChar menuseparator
8489 Open Example\SpecialChar menuseparator
8490 Curricula Vitae\SpecialChar menuseparator
8491 Modern CV
8492 \family default
8493 \lang american
8494  offers guidance on its use.
8495  Its documentation is available from 
8496 \begin_inset CommandInset href
8497 LatexCommand href
8498 name "CTAN"
8499 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8500 literal "false"
8501
8502 \end_inset
8503
8504 .
8505 \end_layout
8506
8507 \begin_layout Subsection
8508
8509 \change_inserted 564990737 1671442208
8510
8511 \lang american
8512 Simple
8513 \end_layout
8514
8515 \begin_layout Standard
8516
8517 \change_inserted 564990737 1671643024
8518
8519 \lang american
8520 The document class 
8521 \family sans
8522 curriculum
8523 \begin_inset space \space{}
8524 \end_inset
8525
8526 vitae
8527 \begin_inset space \thinspace{}
8528 \end_inset
8529
8530 (simple)
8531 \family default
8532  provides the 
8533 \family typewriter
8534 simplecv.cls
8535 \family default
8536  document class, originally developed for use with \SpecialChar LyX
8537 .
8538  
8539 \family sans
8540 \lang british
8541 File\SpecialChar menuseparator
8542 Open Example\SpecialChar menuseparator
8543 Curricula Vitae\SpecialChar menuseparator
8544 Simple CV
8545 \family default
8546 \lang american
8547  offers guidance on its use.
8548  Its documentation is available from 
8549 \begin_inset CommandInset href
8550 LatexCommand href
8551 name "CTAN"
8552 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8553 literal "false"
8554
8555 \end_inset
8556
8557
8558 \end_layout
8559
8560 \begin_layout Section
8561
8562 \change_inserted 564990737 1671041968
8563 Letters
8564 \end_layout
8565
8566 \begin_layout Subsection
8567
8568 \change_inserted 564990737 1671041970
8569
8570 \lang american
8571 Din-Brief
8572 \end_layout
8573
8574 \begin_layout Standard
8575
8576 \change_inserted 564990737 1671617528
8577
8578 \lang american
8579 The document class 
8580 \family sans
8581 Din-Brief
8582 \family default
8583  provides the 
8584 \family typewriter
8585 dinbrief.cls
8586 \family default
8587  document class for writing letters according to the 
8588 \emph on
8589 Deutsches Institut für Normung
8590 \emph default
8591  conventions.
8592  The file in the menu 
8593 \family sans
8594 \bar under
8595 F
8596 \bar default
8597 ile\SpecialChar menuseparator
8598 New
8599 \begin_inset space ~
8600 \end_inset
8601
8602 fro
8603 \bar under
8604 m
8605 \bar default
8606
8607 \begin_inset space ~
8608 \end_inset
8609
8610 Template\SpecialChar menuseparator
8611 Letters\SpecialChar menuseparator
8612 DIN-Brief
8613 \family default
8614  offers guidance on its use.
8615  The documentation is available from 
8616 \begin_inset CommandInset href
8617 LatexCommand href
8618 name "CTAN"
8619 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8620 literal "false"
8621
8622 \end_inset
8623
8624 .
8625 \end_layout
8626
8627 \begin_layout Subsection
8628
8629 \change_inserted 564990737 1671458835
8630
8631 \lang american
8632 letter
8633 \end_layout
8634
8635 \begin_layout Standard
8636
8637 \change_inserted 564990737 1671617591
8638
8639 \lang american
8640 The document class 
8641 \family sans
8642 letter
8643 \family default
8644  provides the 
8645 \family sans
8646 letter.cls
8647 \family default
8648  document class for English letters and to create mailing labels.
8649  The file in the menu 
8650 \family sans
8651 \bar under
8652 F
8653 \bar default
8654 ile\SpecialChar menuseparator
8655 New
8656 \begin_inset space ~
8657 \end_inset
8658
8659 fro
8660 \bar under
8661 m
8662 \bar default
8663
8664 \begin_inset space ~
8665 \end_inset
8666
8667 Template\SpecialChar menuseparator
8668 Letters\SpecialChar menuseparator
8669 Letter (Standard Class)
8670 \family default
8671  offers guidance on its use.
8672 \end_layout
8673
8674 \begin_layout Section
8675
8676 \change_inserted 564990737 1670439660
8677 Presentations
8678 \end_layout
8679
8680 \begin_layout Subsection
8681
8682 \change_inserted 564990737 1671458922
8683
8684 \lang american
8685 Beamer
8686 \end_layout
8687
8688 \begin_layout Standard
8689
8690 \change_inserted 564990737 1671617655
8691
8692 \lang american
8693 The document class 
8694 \family sans
8695 presentation
8696 \begin_inset space \thinspace{}
8697 \end_inset
8698
8699 (beamer)
8700 \family default
8701  uses the 
8702 \family typewriter
8703 beamer.cls
8704 \family default
8705  document class for creating presentations.
8706  The file in the menu 
8707 \family sans
8708 \bar under
8709 F
8710 \bar default
8711 ile\SpecialChar menuseparator
8712 New
8713 \begin_inset space ~
8714 \end_inset
8715
8716 fro
8717 \bar under
8718 m
8719 \bar default
8720
8721 \begin_inset space ~
8722 \end_inset
8723
8724 Template\SpecialChar menuseparator
8725 Presentations\SpecialChar menuseparator
8726 Beamer
8727 \family default
8728  offers guidance on its use.
8729  The documentation is available from 
8730 \begin_inset CommandInset href
8731 LatexCommand href
8732 name "CTAN"
8733 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8734 literal "false"
8735
8736 \end_inset
8737
8738 .
8739 \end_layout
8740
8741 \begin_layout Subsection
8742 Foils [aka 
8743 \family sans
8744 Foil\SpecialChar TeX
8745
8746 \family default
8747 ]
8748 \begin_inset CommandInset label
8749 LatexCommand label
8750 name "sec:foiltex"
8751
8752 \end_inset
8753
8754
8755 \end_layout
8756
8757 \begin_layout Standard
8758 by 
8759 \noun on
8760 Allan Rae
8761 \end_layout
8762
8763 \begin_layout Subsubsection
8764 Introduction
8765 \end_layout
8766
8767 \begin_layout Standard
8768 This section describes how to use \SpecialChar LyX
8769  to make slides for overhead projectors.
8770  There are two document classes that can do this: the default slides class
8771  and the 
8772 \family sans
8773 Foil\SpecialChar TeX
8774
8775 \family default
8776  slides class.
8777  This section documents the latter.
8778 \end_layout
8779
8780 \begin_layout Standard
8781 I'm going to say this again, nice and clear, so that there's no misunderstanding
8782 :
8783 \end_layout
8784
8785 \begin_layout Standard
8786 \begin_inset VSpace bigskip
8787 \end_inset
8788
8789
8790 \end_layout
8791
8792 \begin_layout Standard
8793 \align center
8794
8795 \size large
8796 This section documents the class 
8797 \begin_inset Quotes eld
8798 \end_inset
8799
8800
8801 \family sans
8802 FoilTeX
8803 \family default
8804
8805 \begin_inset Quotes erd
8806 \end_inset
8807
8808  
8809 \emph on
8810 only.
8811 \end_layout
8812
8813 \begin_layout Standard
8814 \begin_inset VSpace bigskip
8815 \end_inset
8816
8817
8818 \end_layout
8819
8820 \begin_layout Standard
8821 If you're looking for the documentation for 
8822 \begin_inset Quotes eld
8823 \end_inset
8824
8825
8826 \family sans
8827 slides (default)
8828 \family default
8829
8830 \begin_inset Quotes erd
8831 \end_inset
8832
8833 , check out section
8834 \begin_inset space ~
8835 \end_inset
8836
8837
8838 \begin_inset CommandInset ref
8839 LatexCommand ref
8840 reference "sec:slitex"
8841
8842 \end_inset
8843
8844 .
8845  If your machine doesn't have the 
8846 \family sans
8847 foils
8848 \family default
8849  class 
8850 \family sans
8851 FoilTeX
8852 \family default
8853  installed, you'll probably have to use the default 
8854 \family sans
8855 slides
8856 \family default
8857  class, which isn't quite as good as 
8858 \family sans
8859 foils.
8860 \end_layout
8861
8862 \begin_layout Standard
8863 The 
8864 \family sans
8865 foils
8866 \family default
8867  class is designed for use with version
8868 \begin_inset space ~
8869 \end_inset
8870
8871 2.1 of the 
8872 \family sans
8873 foils.cls
8874 \family default
8875  \SpecialChar LaTeX
8876  class file which is now an integral part of \SpecialChar LaTeX2e
8877 .
8878 \end_layout
8879
8880 \begin_layout Subsubsection
8881 Getting Started
8882 \end_layout
8883
8884 \begin_layout Standard
8885 Obviously, to use this document class, you need to select 
8886 \family sans
8887 FoilTeX
8888 \family default
8889  from the 
8890 \family sans
8891 Class
8892 \family default
8893  entry in the 
8894 \family sans
8895 Document
8896 \begin_inset space ~
8897 \end_inset
8898
8899 Layout
8900 \family default
8901  dialog.
8902  There are some settings in the 
8903 \family sans
8904 Document
8905 \begin_inset space ~
8906 \end_inset
8907
8908 Layout
8909 \family default
8910  dialog that you should know about that are specific to this class:
8911 \end_layout
8912
8913 \begin_layout Itemize
8914 Don't change the options 
8915 \family sans
8916 Sides
8917 \family default
8918  and 
8919 \family sans
8920 Columns
8921 \family default
8922  on the 
8923 \family sans
8924 Document
8925 \begin_inset space ~
8926 \end_inset
8927
8928 Layout
8929 \family default
8930  dialog.
8931  They're ignored by the 
8932 \family sans
8933 foils
8934 \family default
8935  class.
8936 \end_layout
8937
8938 \begin_layout Itemize
8939 The default font size is 20
8940 \begin_inset space \thinspace{}
8941 \end_inset
8942
8943 pt with the other options being 17
8944 \begin_inset space \thinspace{}
8945 \end_inset
8946
8947 pt, 25
8948 \begin_inset space \thinspace{}
8949 \end_inset
8950
8951 pt and 30
8952 \begin_inset space \thinspace{}
8953 \end_inset
8954
8955 pt.
8956 \end_layout
8957
8958 \begin_layout Itemize
8959 The default font is 
8960 \family sans
8961 sans
8962 \family default
8963  
8964 \family sans
8965 serif
8966 \family default
8967  but all math equations are still typeset in the usual roman font.
8968 \end_layout
8969
8970 \begin_layout Itemize
8971
8972 \family sans
8973 Foil\SpecialChar TeX
8974
8975 \family default
8976  supports A4 and Letter paper sizes as well as a special size for working
8977  with 35
8978 \begin_inset space \thinspace{}
8979 \end_inset
8980
8981 mm slides.
8982  It doesn't support A5, B5, legal or executive paper sizes.
8983 \end_layout
8984
8985 \begin_layout Itemize
8986 Don't bother changing the 
8987 \family sans
8988 Float Placement
8989 \family default
8990  settings because they are ignored anyway.
8991  All floats appear where they are defined in the text.
8992 \end_layout
8993
8994 \begin_layout Itemize
8995 The 
8996 \family sans
8997 Pagestyle
8998 \family default
8999  setting behaves a bit differently for this class.
9000  
9001 \family sans
9002 Foil\SpecialChar TeX
9003
9004 \family default
9005  provides extensive footer and header capabilities including a user-defined
9006  logo.
9007  See section
9008 \begin_inset space ~
9009 \end_inset
9010
9011
9012 \begin_inset CommandInset ref
9013 LatexCommand ref
9014 reference "sec:foilfoot"
9015
9016 \end_inset
9017
9018  for more details.
9019  The title page is treated differently to all other pages in the document
9020  and is 
9021 \emph on
9022 always
9023 \emph default
9024  unnumbered and 
9025 \emph on
9026 always
9027 \emph default
9028  has the logo centered at the bottom of the page (if one is defined).
9029  The possible page style choices and what they do are as follows:
9030 \end_layout
9031
9032 \begin_deeper
9033 \begin_layout Labeling
9034 \labelwidthstring MMMMMMM
9035
9036 \family sans
9037 \series bold
9038 empty
9039 \family default
9040 \series default
9041  The final output contains no page numbers, or other headers or footers
9042  (except footnotes of course).
9043  
9044 \end_layout
9045
9046 \begin_layout Labeling
9047 \labelwidthstring MMMMMMM
9048
9049 \family sans
9050 \series bold
9051 plain
9052 \family default
9053 \series default
9054  The final output contains page numbers centered at the bottom of the page.
9055  No other headings or footers (other than footnotes).
9056 \end_layout
9057
9058 \begin_layout Labeling
9059 \labelwidthstring MMMMMMM
9060
9061 \series bold
9062 foilheadings
9063 \series default
9064  Page numbers in lower right corner.
9065  Additional headers and footers are also shown.
9066  This is also the default.
9067 \end_layout
9068
9069 \begin_layout Labeling
9070 \labelwidthstring MMMMMMM
9071
9072 \series bold
9073 fancy
9074 \series default
9075  Gives you access to the 
9076 \family sans
9077 fancyheadings
9078 \family default
9079  package although its use with 
9080 \family sans
9081 Foil\SpecialChar TeX
9082
9083 \family default
9084  is discouraged by the writer of the 
9085 \family sans
9086 Foil\SpecialChar TeX
9087
9088 \family default
9089  package because of some potential page layout clashes.
9090 \end_layout
9091
9092 \end_deeper
9093 \begin_layout Paragraph
9094 Extra Options
9095 \end_layout
9096
9097 \begin_layout Standard
9098 The following options may be used in the extra class options in the 
9099 \family sans
9100 Document\SpecialChar menuseparator
9101 Settings
9102 \family default
9103  dialog.
9104 \end_layout
9105
9106 \begin_layout Labeling
9107 \labelwidthstring MMMMMMx
9108
9109 \series bold
9110 35mmSlide
9111 \series default
9112  This sets up the page layout for 7.33
9113 \begin_inset space \thinspace{}
9114 \end_inset
9115
9116 in by 11
9117 \begin_inset space \thinspace{}
9118 \end_inset
9119
9120 in paper, which is about the same aspect ratio as a 35
9121 \begin_inset space \thinspace{}
9122 \end_inset
9123
9124 mm slide, making it a bit easier to work with this medium.
9125 \end_layout
9126
9127 \begin_layout Labeling
9128 \labelwidthstring MMMMMMx
9129
9130 \series bold
9131 headrule
9132 \series default
9133  Places a rule across the page below the header on every page except the
9134  title page.
9135 \end_layout
9136
9137 \begin_layout Labeling
9138 \labelwidthstring MMMMMMx
9139
9140 \series bold
9141 footrule
9142 \series default
9143  Places a rule across the page above the footer on every page except the
9144  title page.
9145 \end_layout
9146
9147 \begin_layout Labeling
9148 \labelwidthstring MMMMMMx
9149
9150 \series bold
9151 dvips
9152 \series default
9153  This is automatically set each time you create a new 
9154 \family sans
9155 foils
9156 \family default
9157  document.
9158  This option tells 
9159 \family sans
9160 Foil\SpecialChar TeX
9161
9162 \family default
9163  to use the dvips driver to rotate those pages that are set as landscape
9164  foils.
9165 \end_layout
9166
9167 \begin_layout Labeling
9168 \labelwidthstring MMMMMMx
9169
9170 \series bold
9171 landscape
9172 \series default
9173  Simply changes the page dimensions to those of a landscape page but doesn't
9174  do any rotation.
9175  Thus if you use this option you need to use an external program to rotate
9176  each page or feed your paper through your printer as landscape.
9177  Note that this option effectively reverses the roles of the 
9178 \family sans
9179 Foilhead
9180 \family default
9181  and 
9182 \family sans
9183 Rotatefoilhead
9184 \family default
9185  environments (don't worry these are described in the next section).
9186 \end_layout
9187
9188 \begin_layout Labeling
9189 \labelwidthstring MMMMMMx
9190
9191 \series bold
9192 leqno
9193 \series default
9194  Equation numbers on the left.
9195 \end_layout
9196
9197 \begin_layout Labeling
9198 \labelwidthstring MMMMMMx
9199
9200 \series bold
9201 fleqn
9202 \series default
9203  Flush-left equations.
9204 \end_layout
9205
9206 \begin_layout Subsubsection
9207 Supported Environments
9208 \end_layout
9209
9210 \begin_layout Standard
9211 Most of the environments commonly supported in other classes are also supported
9212  by the 
9213 \family sans
9214 foils
9215 \family default
9216  class.
9217  There are several additional environments provided by 
9218 \family sans
9219 Foil\SpecialChar TeX
9220
9221 \family default
9222  as well as a couple added by \SpecialChar LyX
9223 .
9224  The following environments are shared with other classes:
9225 \end_layout
9226
9227 \begin_layout Standard
9228 \begin_inset Flex Multiple Columns
9229 status open
9230
9231 \begin_layout Itemize
9232
9233 \family sans
9234 Standard
9235 \end_layout
9236
9237 \begin_layout Itemize
9238
9239 \family sans
9240 Itemize
9241 \end_layout
9242
9243 \begin_layout Itemize
9244
9245 \family sans
9246 Enumerate
9247 \end_layout
9248
9249 \begin_layout Itemize
9250
9251 \family sans
9252 Description
9253 \end_layout
9254
9255 \begin_layout Itemize
9256
9257 \family sans
9258 List
9259 \end_layout
9260
9261 \begin_layout Itemize
9262
9263 \family sans
9264 \SpecialChar LyX
9265 -Code
9266 \end_layout
9267
9268 \begin_layout Itemize
9269
9270 \family sans
9271 Verse
9272 \end_layout
9273
9274 \begin_layout Itemize
9275
9276 \family sans
9277 Quote
9278 \end_layout
9279
9280 \begin_layout Itemize
9281
9282 \family sans
9283 Quotation
9284 \end_layout
9285
9286 \begin_layout Itemize
9287
9288 \family sans
9289 TitleAuthor
9290 \end_layout
9291
9292 \begin_layout Itemize
9293
9294 \family sans
9295 Date
9296 \end_layout
9297
9298 \begin_layout Itemize
9299
9300 \family sans
9301 Abstract
9302 \end_layout
9303
9304 \begin_layout Itemize
9305
9306 \family sans
9307 Bibliography
9308 \end_layout
9309
9310 \begin_layout Itemize
9311
9312 \family sans
9313 Address
9314 \end_layout
9315
9316 \begin_layout Itemize
9317
9318 \family sans
9319 RightAddress
9320 \end_layout
9321
9322 \end_inset
9323
9324
9325 \end_layout
9326
9327 \begin_layout Standard
9328 That is, all the major environments apart from the sectioning environments.
9329  Since foils are essentially self-contained sections, with a title and body,
9330  
9331 \family sans
9332 Foil\SpecialChar TeX
9333
9334 \family default
9335  provides specific commands for starting new foils and these are:
9336 \end_layout
9337
9338 \begin_layout Itemize
9339
9340 \family sans
9341 Foilhead
9342 \end_layout
9343
9344 \begin_layout Itemize
9345
9346 \family sans
9347 Rotatefoilhead
9348 \end_layout
9349
9350 \begin_layout Standard
9351 \SpecialChar LyX
9352  also provides slightly modified versions of these two environments called:
9353 \end_layout
9354
9355 \begin_layout Itemize
9356
9357 \family sans
9358 ShortFoilhead
9359 \end_layout
9360
9361 \begin_layout Itemize
9362
9363 \family sans
9364 ShortRotatefoilhead
9365 \end_layout
9366
9367 \begin_layout Standard
9368 and the differences will be explained in the next section.
9369 \end_layout
9370
9371 \begin_layout Standard
9372 Since foils are often used in presenting ideas or new theorems and such
9373  
9374 \family sans
9375 Foil\SpecialChar TeX
9376
9377 \family default
9378  also provides a comprehensive box of goodies for presenting them:
9379 \end_layout
9380
9381 \begin_layout Standard
9382 \begin_inset Flex Multiple Columns
9383 status open
9384
9385 \begin_layout Itemize
9386
9387 \family sans
9388 Theorem
9389 \end_layout
9390
9391 \begin_layout Itemize
9392
9393 \family sans
9394 Lemma
9395 \end_layout
9396
9397 \begin_layout Itemize
9398
9399 \family sans
9400 Corollary
9401 \end_layout
9402
9403 \begin_layout Itemize
9404
9405 \family sans
9406 Proposition
9407 \end_layout
9408
9409 \begin_layout Itemize
9410
9411 \family sans
9412 Definition
9413 \end_layout
9414
9415 \begin_layout Itemize
9416
9417 \family sans
9418 Proof
9419 \end_layout
9420
9421 \begin_layout Itemize
9422
9423 \family sans
9424 Theorem*
9425 \end_layout
9426
9427 \begin_layout Itemize
9428
9429 \family sans
9430 Lemma*
9431 \end_layout
9432
9433 \begin_layout Itemize
9434
9435 \family sans
9436 Corollary*
9437 \end_layout
9438
9439 \begin_layout Itemize
9440
9441 \family sans
9442 Proposition*
9443 \end_layout
9444
9445 \begin_layout Itemize
9446
9447 \family sans
9448 Definition*
9449 \end_layout
9450
9451 \end_inset
9452
9453
9454 \end_layout
9455
9456 \begin_layout Standard
9457 The starred versions are unnumbered while the unstarred versions are numbered.
9458  There are also two list environments added by \SpecialChar LyX
9459  and these are:
9460 \end_layout
9461
9462 \begin_layout Itemize
9463
9464 \family sans
9465 TickList
9466 \end_layout
9467
9468 \begin_layout Itemize
9469
9470 \family sans
9471 CrossList
9472 \end_layout
9473
9474 \begin_layout Standard
9475
9476 \family sans
9477 Foil\SpecialChar TeX
9478
9479 \family default
9480  provides some powerful header and footer capabilities that are best set
9481  in the preamble although they may be set at any point in a document.
9482  If you want to change these settings in your document the best place to
9483  do so is at the very top of a foil, i.
9484 \begin_inset space \thinspace{}
9485 \end_inset
9486
9487 e.
9488 \emph on
9489
9490 \begin_inset space \space{}
9491 \end_inset
9492
9493
9494 \emph default
9495 straight after the foilhead.
9496 \end_layout
9497
9498 \begin_layout Standard
9499 For this purpose, the following command styles are provided [
9500 \shape smallcaps
9501 Martin Vermeer
9502 \shape default
9503 ]:
9504 \end_layout
9505
9506 \begin_layout Standard
9507 \begin_inset Flex Multiple Columns
9508 status open
9509
9510 \begin_layout Itemize
9511
9512 \family sans
9513 My
9514 \begin_inset space ~
9515 \end_inset
9516
9517 Logo
9518 \end_layout
9519
9520 \begin_layout Itemize
9521
9522 \family sans
9523 Restriction
9524 \end_layout
9525
9526 \begin_layout Itemize
9527
9528 \family sans
9529 Right
9530 \begin_inset space ~
9531 \end_inset
9532
9533 Footer
9534 \end_layout
9535
9536 \begin_layout Itemize
9537
9538 \family sans
9539 Right
9540 \begin_inset space ~
9541 \end_inset
9542
9543 Header
9544 \end_layout
9545
9546 \begin_layout Itemize
9547
9548 \family sans
9549 Left
9550 \begin_inset space ~
9551 \end_inset
9552
9553 Header
9554 \end_layout
9555
9556 \begin_deeper
9557 \begin_layout Plain Layout
9558 \begin_inset space ~
9559 \end_inset
9560
9561
9562 \end_layout
9563
9564 \end_deeper
9565 \end_inset
9566
9567
9568 \end_layout
9569
9570 \begin_layout Standard
9571 There are also a few commands provided by 
9572 \family sans
9573 Foil\SpecialChar TeX
9574
9575 \family default
9576  that aren't directly supported by \SpecialChar LyX
9577  but I'll tell you what they do and how
9578  to use them in section
9579 \begin_inset space ~
9580 \end_inset
9581
9582
9583 \begin_inset CommandInset ref
9584 LatexCommand ref
9585 reference "sec:unsuppfoils"
9586
9587 \end_inset
9588
9589 .
9590 \end_layout
9591
9592 \begin_layout Subsubsection
9593 Building a Set of Foils
9594 \end_layout
9595
9596 \begin_layout Standard
9597 This section will give a simple introduction to using the different environments
9598  to build a set of foils.
9599  If you want to see an example set of foils, take a look at 
9600 \change_deleted 564990737 1671643085
9601 the 
9602 \family typewriter
9603 Foils.lyx
9604 \family default
9605  file you find in \SpecialChar LyX
9606 's 
9607 \family typewriter
9608 examples
9609 \family default
9610  folder
9611 \change_inserted 564990737 1671643099
9612
9613 \family sans
9614 \lang british
9615 File\SpecialChar menuseparator
9616 Open Example
9617 \lang english
9618 \SpecialChar menuseparator
9619 Presentations\SpecialChar menuseparator
9620 Foils
9621 \change_unchanged
9622
9623 \family default
9624 .
9625 \end_layout
9626
9627 \begin_layout Paragraph
9628 Give It a Title Page
9629 \end_layout
9630
9631 \begin_layout Standard
9632 Unlike other classes that provide 
9633 \family sans
9634 Title
9635 \family default
9636
9637 \family sans
9638 Author
9639 \family default
9640
9641 \family sans
9642 Date
9643 \family default
9644  and 
9645 \family sans
9646 Abstract
9647 \family default
9648  environments, 
9649 \family sans
9650 foils
9651 \family default
9652  creates the title on a page of its own.
9653  If you leave out the 
9654 \family sans
9655 Date
9656 \family default
9657  environment \SpecialChar LaTeX
9658  will substitute the current date (every time you regenerate
9659  the output).
9660 \end_layout
9661
9662 \begin_layout Paragraph
9663 Start a New Foil
9664 \end_layout
9665
9666 \begin_layout Standard
9667 As I mentioned earlier, there are four ways of starting a new foil.
9668  For portrait foils you should use 
9669 \family sans
9670 Foilhead
9671 \family default
9672  or 
9673 \family sans
9674 ShortFoilhead.
9675
9676 \family default
9677  The difference between these two environments is the amount of space between
9678  the title of the foil (the foilhead) and the body of the foil.
9679 \end_layout
9680
9681 \begin_layout Standard
9682 Landscape foils are generated using the 
9683 \family sans
9684 Rotatefoilhead
9685 \family default
9686  and 
9687 \family sans
9688 ShortRotatefoilhead
9689 \family default
9690  environments.
9691  Again the only difference is the spacing between foilhead and body.
9692  Both of the short versions have 0.5
9693 \begin_inset space ~
9694 \end_inset
9695
9696 inches less separation between the foilhead and the body.
9697  
9698 \end_layout
9699
9700 \begin_layout Standard
9701 One problem with the support for landscape foils is the requirement that
9702  you have to use the 
9703 \family typewriter
9704 dvips
9705 \family default
9706  driver to generate the PostScript output otherwise the foils won't be rotated.
9707  It is possible to get landscape foils even if you haven't got the 
9708 \family typewriter
9709 dvips
9710 \family default
9711  driver provided you can feed your foils sideways through your printer ;-)
9712 \end_layout
9713
9714 \begin_layout Paragraph
9715 Theorems, Lemmas, Proofs and more
9716 \end_layout
9717
9718 \begin_layout Standard
9719 You can't have two of the same type of these environments directly following
9720  each other.
9721  If you use a normal paragraph break, , you will just be extending the previous
9722  environment as if you had merged the two environments together.
9723  Rather than that, you need to insert a so-called separator.
9724  Please refer to the section entitled 
9725 \emph on
9726 Separate Nestings
9727 \emph default
9728  in the 
9729 \emph on
9730 User's Guide
9731 \emph default
9732 .
9733 \end_layout
9734
9735 \begin_layout Paragraph
9736 Lists
9737 \end_layout
9738
9739 \begin_layout Standard
9740 You get all the commonly supported list styles found in other classes as
9741  well as two new ones.
9742  I'll only describe the new ones here.
9743  If you want to find out more about the other list environments check out
9744  the 
9745 \emph on
9746 User's Guide.
9747
9748 \emph default
9749  If you intend to use itemized lists you might also want to read about the
9750  
9751 \family sans
9752 Itemize
9753 \begin_inset space ~
9754 \end_inset
9755
9756 Bullet
9757 \begin_inset space ~
9758 \end_inset
9759
9760 Selection
9761 \family default
9762  dialog described above in section
9763 \begin_inset space ~
9764 \end_inset
9765
9766
9767 \change_inserted 564990737 1671355684
9768
9769 \begin_inset CommandInset ref
9770 LatexCommand ref
9771 reference "chap:bullets"
9772
9773 \end_inset
9774
9775
9776 \change_deleted 564990737 1671355684
9777
9778 \begin_inset CommandInset ref
9779 LatexCommand ref
9780 reference "sec:bullet"
9781
9782 \end_inset
9783
9784
9785 \change_unchanged
9786 .
9787 \end_layout
9788
9789 \begin_layout Standard
9790 The two new list styles, 
9791 \family sans
9792 TickList
9793 \family default
9794  and 
9795 \family sans
9796 CrossList
9797 \family default
9798 , are designed to make it easier for you to create lists of do's and don'ts
9799  or right and wrong by providing dedicated environments that use a tick
9800  or a cross as the label of the list.
9801  These lists are in fact dedicated variants of the 
9802 \family sans
9803 Itemize
9804 \family default
9805  environment.
9806  They do however require that you have the 
9807 \family typewriter
9808 psnfss
9809 \family default
9810  packages installed.
9811 \end_layout
9812
9813 \begin_layout Paragraph
9814 Figures and Tables
9815 \end_layout
9816
9817 \begin_layout Standard
9818
9819 \family sans
9820 Foil\SpecialChar TeX
9821
9822 \family default
9823  redefines the floating tables and figures so that they appear exactly where
9824  they are in the text rather than pushing them to the top of the page or
9825  to some user specified location.
9826  In fact if you change the float placement settings they are simply ignored.
9827 \end_layout
9828
9829 \begin_layout Paragraph
9830 Page Headers and Footers
9831 \begin_inset CommandInset label
9832 LatexCommand label
9833 name "sec:foilfoot"
9834
9835 \end_inset
9836
9837
9838 \end_layout
9839
9840 \begin_layout Standard
9841
9842 \family sans
9843 My
9844 \begin_inset space ~
9845 \end_inset
9846
9847 Logo
9848 \family default
9849  and 
9850 \family sans
9851 Restriction
9852 \family default
9853  are two commands used to control the left-footer text string.
9854  The first is meant to allow you to include a graphic logo on your foils
9855  and defaults to 
9856 \begin_inset Quotes eld
9857 \end_inset
9858
9859 -Typeset by 
9860 \family sans
9861 Foil\SpecialChar TeX
9862
9863 \family default
9864 -
9865 \begin_inset Quotes erd
9866 \end_inset
9867
9868 .
9869  While the second is meant to provide a classification for the audience,
9870  
9871 \emph on
9872 e.
9873 \begin_inset space \thinspace{}
9874 \end_inset
9875
9876 g.
9877 \emph default
9878
9879 \begin_inset space \space{}
9880 \end_inset
9881
9882 Confidential.
9883  It is empty by default.
9884 \end_layout
9885
9886 \begin_layout Standard
9887 The remaining page corners can be filled by 
9888 \family sans
9889 Right
9890 \begin_inset space ~
9891 \end_inset
9892
9893 Footer
9894 \family default
9895  (which defaults to page numbers), 
9896 \family sans
9897 Right
9898 \begin_inset space ~
9899 \end_inset
9900
9901 Header
9902 \family default
9903  (top right) and 
9904 \family sans
9905 Left
9906 \begin_inset space ~
9907 \end_inset
9908
9909 Header
9910 \family default
9911  (top left).
9912 \end_layout
9913
9914 \begin_layout Subsubsection
9915 Unsupported 
9916 \family sans
9917 Foil\SpecialChar TeX
9918
9919 \family default
9920  Goodies
9921 \begin_inset CommandInset label
9922 LatexCommand label
9923 name "sec:unsuppfoils"
9924
9925 \end_inset
9926
9927
9928 \end_layout
9929
9930 \begin_layout Standard
9931 All the commands mentioned below need to be set in a 
9932 \family sans
9933 \SpecialChar LaTeX
9934
9935 \family default
9936  environment or as 
9937 \family sans
9938 \SpecialChar TeX
9939
9940 \family default
9941  within another environment.
9942 \end_layout
9943
9944 \begin_layout Paragraph
9945 Lengths
9946 \end_layout
9947
9948 \begin_layout Standard
9949 All lengths are adjusted using the 
9950 \family typewriter
9951
9952 \backslash
9953 setlength{
9954 \family default
9955 \emph on
9956 lengthname
9957 \family typewriter
9958 \emph default
9959 }{
9960 \family default
9961 \emph on
9962 newlength
9963 \family typewriter
9964 \emph default
9965 }
9966 \family default
9967  command.
9968  Where 
9969 \emph on
9970 lengthname
9971 \emph default
9972  should be replaced by the name given to the length you want to change and
9973  
9974 \emph on
9975 newlength
9976 \emph default
9977  is the length value.
9978  All lengths should be specified in units of length such as inches (
9979 \family typewriter
9980 in
9981 \family default
9982 ), millimeters (
9983 \family typewriter
9984 mm
9985 \family default
9986 ) or points (
9987 \family typewriter
9988 pt
9989 \family default
9990 ) or relative to some document or font-based length such as 
9991 \family typewriter
9992
9993 \backslash
9994 textwidth
9995 \family default
9996 .
9997  
9998 \end_layout
9999
10000 \begin_layout Standard
10001 It's possible to change the spacing between a foilhead and the body of the
10002  foil by adjusting the length specified by 
10003 \family typewriter
10004
10005 \backslash
10006 foilheadskip
10007 \family default
10008 .
10009  For example, to make 
10010 \emph on
10011 all
10012 \emph default
10013  foilheads 0.5
10014 \begin_inset space \space{}
10015 \end_inset
10016
10017 in closer to their bodies put the following in the preamble: 
10018 \family typewriter
10019
10020 \backslash
10021 setlength{
10022 \backslash
10023 foilheadskip}{-0.5in}
10024 \end_layout
10025
10026 \begin_layout Standard
10027 The spacings around floats can be adjusted by setting these lengths:
10028 \end_layout
10029
10030 \begin_layout Labeling
10031 \labelwidthstring MMMMMMMMMMM
10032
10033 \family typewriter
10034
10035 \backslash
10036 abovefloatskip
10037 \family default
10038  Separation between the text and the top of the float
10039 \end_layout
10040
10041 \begin_layout Labeling
10042 \labelwidthstring MMMMMMMMMMM
10043
10044 \family typewriter
10045
10046 \backslash
10047 abovecaptionskip
10048 \family default
10049  Separation between the float and the caption
10050 \end_layout
10051
10052 \begin_layout Labeling
10053 \labelwidthstring MMMMMMMMMMM
10054
10055 \family typewriter
10056
10057 \backslash
10058 belowcaptionskip
10059 \family default
10060  Separation between the caption and the following text
10061 \end_layout
10062
10063 \begin_layout Labeling
10064 \labelwidthstring MMMMMMMMMMM
10065
10066 \family typewriter
10067
10068 \backslash
10069 captionwidth
10070 \family default
10071  You can make the captions narrower than the surrounding text by adjusting
10072  this length.
10073  Best done relative to 
10074 \family typewriter
10075
10076 \backslash
10077 textwidth
10078 \family default
10079 .
10080 \end_layout
10081
10082 \begin_layout Standard
10083 There are also several title page related lengths that you may find useful
10084  if you have a long title or several authors:
10085 \end_layout
10086
10087 \begin_layout Labeling
10088 \labelwidthstring MMMMMMMMMMM
10089
10090 \family typewriter
10091
10092 \backslash
10093 abovetitleskip
10094 \family default
10095  Separation from headers to 
10096 \family sans
10097 Title
10098 \end_layout
10099
10100 \begin_layout Labeling
10101 \labelwidthstring MMMMMMMMMMM
10102
10103 \family typewriter
10104
10105 \backslash
10106 titleauthorskip
10107 \family default
10108  between 
10109 \family sans
10110 Title
10111 \family default
10112  and 
10113 \family sans
10114 Author
10115 \family default
10116  environments
10117 \end_layout
10118
10119 \begin_layout Labeling
10120 \labelwidthstring MMMMMMMMMMM
10121
10122 \family typewriter
10123
10124 \backslash
10125 authorauthorskip
10126 \family default
10127  between multiple 
10128 \family sans
10129 Author
10130 \family default
10131  lines
10132 \end_layout
10133
10134 \begin_layout Labeling
10135 \labelwidthstring MMMMMMMMMMM
10136
10137 \family typewriter
10138
10139 \backslash
10140 authordateskip
10141 \family default
10142  between the 
10143 \family sans
10144 Author
10145 \family default
10146  and the 
10147 \family sans
10148 Date
10149 \end_layout
10150
10151 \begin_layout Labeling
10152 \labelwidthstring MMMMMMMMMMM
10153
10154 \family typewriter
10155
10156 \backslash
10157 dateabstractskip
10158 \family default
10159  between the 
10160 \family sans
10161 Date
10162 \family default
10163  and the 
10164 \family sans
10165 Abstract
10166 \end_layout
10167
10168 \begin_layout Standard
10169 The last length related command affects all the list environments.
10170  If you place 
10171 \family typewriter
10172
10173 \backslash
10174 zerolistvertdimens
10175 \family default
10176  
10177 \emph on
10178 inside
10179 \emph default
10180  a list environment then all the vertical spacing between the list items
10181  is removed.
10182  Note that this is a command not a length so it doesn't require 
10183 \family typewriter
10184
10185 \backslash
10186 setlength
10187 \family default
10188  like the stuff mentioned above.
10189 \end_layout
10190
10191 \begin_layout Paragraph
10192 Headers and Footers
10193 \end_layout
10194
10195 \begin_layout Standard
10196 The 
10197 \family typewriter
10198
10199 \backslash
10200 LogoOn
10201 \family default
10202  and 
10203 \family typewriter
10204
10205 \backslash
10206 LogoOff
10207 \family default
10208  commands control whether the logo in the 
10209 \family sans
10210 MyLogo
10211 \family default
10212  definition appear on a given page.
10213  If you put 
10214 \family typewriter
10215
10216 \backslash
10217 LogoOff
10218 \family default
10219  in the preamble then none of the foils will have the logo on them.
10220  If you don't want the logo on a particular page place the 
10221 \family typewriter
10222
10223 \backslash
10224 LogoOff
10225 \family default
10226  directly after the foilhead of that page and the 
10227 \family typewriter
10228
10229 \backslash
10230 LogoOn
10231 \family default
10232  directly after the next foilhead.
10233 \end_layout
10234
10235 \begin_layout Standard
10236 If you decide to use the 
10237 \family sans
10238 fancy
10239 \family default
10240  page style setting in the 
10241 \family sans
10242 Document
10243 \begin_inset space ~
10244 \end_inset
10245
10246 Layout
10247 \family default
10248  dialog you should probably add 
10249 \family typewriter
10250
10251 \backslash
10252 let
10253 \backslash
10254 headwidth
10255 \backslash
10256 textwidth
10257 \family default
10258  to your preamble so headers and footers on landscape pages are correctly
10259  placed when rotated.
10260  This is due to some clashes between the page layouts provided by the 
10261 \family sans
10262 fancyheadings
10263 \family default
10264  package and the 
10265 \family sans
10266 foils
10267 \family default
10268  class.
10269 \end_layout
10270
10271 \begin_layout Subsection
10272
10273 \change_inserted 564990737 1671459032
10274
10275 \lang american
10276 Powerdot
10277 \end_layout
10278
10279 \begin_layout Standard
10280
10281 \change_inserted 564990737 1671643165
10282
10283 \lang american
10284 The document class 
10285 \family sans
10286 presentation
10287 \begin_inset space \thinspace{}
10288 \end_inset
10289
10290 (powerdot)
10291 \family default
10292  uses the 
10293 \family typewriter
10294 powerdot.cls
10295 \family default
10296  document class for creating presentations.
10297  
10298 \family sans
10299 \lang british
10300 File\SpecialChar menuseparator
10301 Open Example\SpecialChar menuseparator
10302 Presentations\SpecialChar menuseparator
10303 Powerdot
10304 \family default
10305 \lang american
10306  offers guidance on its use.
10307  The documentation is available from 
10308 \begin_inset CommandInset href
10309 LatexCommand href
10310 name "CTAN"
10311 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10312 literal "false"
10313
10314 \end_inset
10315
10316 .
10317 \end_layout
10318
10319 \begin_layout Subsection
10320
10321 \change_inserted 564990737 1671459032
10322
10323 \lang american
10324 \begin_inset CommandInset label
10325 LatexCommand label
10326 name "subsec:Seminar"
10327
10328 \end_inset
10329
10330
10331 \family sans
10332 Seminar
10333 \end_layout
10334
10335 \begin_layout Standard
10336
10337 \change_inserted 564990737 1671643194
10338
10339 \lang american
10340 The document class 
10341 \family sans
10342 presentations
10343 \begin_inset space \thinspace{}
10344 \end_inset
10345
10346 (seminar)
10347 \family default
10348  uses the 
10349 \family typewriter
10350 seminar.cls
10351 \family default
10352  document class for creating presentations.
10353  
10354 \family sans
10355 \lang british
10356 File\SpecialChar menuseparator
10357 Open Example\SpecialChar menuseparator
10358 Presentations\SpecialChar menuseparator
10359 Seminar
10360 \family default
10361 \lang american
10362  offers guidance on its use.
10363  The documentation is available from 
10364 \begin_inset CommandInset href
10365 LatexCommand href
10366 name "CTAN"
10367 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10368 literal "false"
10369
10370 \end_inset
10371
10372 .
10373 \end_layout
10374
10375 \begin_layout Subsection
10376 Slides [aka 
10377 \noun on
10378 Sli\SpecialChar TeX
10379
10380 \noun default
10381 ]
10382 \begin_inset CommandInset label
10383 LatexCommand label
10384 name "sec:slitex"
10385
10386 \end_inset
10387
10388
10389 \end_layout
10390
10391 \begin_layout Standard
10392 by 
10393 \noun on
10394 John Weiss
10395 \noun default
10396  
10397 \end_layout
10398
10399 \begin_layout Subsubsection
10400 Introduction
10401 \end_layout
10402
10403 \begin_layout Standard
10404 This section describes how to use \SpecialChar LyX
10405  to make slides for overhead projectors.
10406  There are two document classes that can do this: the default slides class
10407  and the 
10408 \family sans
10409 Foil\SpecialChar TeX
10410
10411 \family default
10412  slides class.
10413  This section documents the former.
10414 \end_layout
10415
10416 \begin_layout Standard
10417 I'm going to say this again, nice and clear, so that there's no misunderstanding
10418 :
10419 \end_layout
10420
10421 \begin_layout Standard
10422 \begin_inset VSpace bigskip
10423 \end_inset
10424
10425
10426 \end_layout
10427
10428 \begin_layout Standard
10429 \align center
10430
10431 \size large
10432 This section documents the class 
10433 \begin_inset Quotes eld
10434 \end_inset
10435
10436
10437 \family sans
10438 slides (default)
10439 \family default
10440
10441 \begin_inset Quotes erd
10442 \end_inset
10443
10444  
10445 \emph on
10446 only.
10447 \end_layout
10448
10449 \begin_layout Standard
10450 \begin_inset VSpace bigskip
10451 \end_inset
10452
10453
10454 \end_layout
10455
10456 \begin_layout Standard
10457 If you're looking for the documentation for 
10458 \begin_inset Quotes eld
10459 \end_inset
10460
10461
10462 \family sans
10463 slides (Foil\SpecialChar TeX
10464 )
10465 \family default
10466
10467 \begin_inset Quotes erd
10468 \end_inset
10469
10470 , check out section
10471 \begin_inset space ~
10472 \end_inset
10473
10474
10475 \begin_inset CommandInset ref
10476 LatexCommand ref
10477 reference "sec:foiltex"
10478
10479 \end_inset
10480
10481 .
10482  The 
10483 \family sans
10484 foils
10485 \family default
10486  class [
10487 \begin_inset Quotes eld
10488 \end_inset
10489
10490
10491 \family sans
10492 slides (Foil\SpecialChar TeX
10493 )
10494 \family default
10495
10496 \begin_inset Quotes erd
10497 \end_inset
10498
10499 ] is actually somewhat better than the default 
10500 \family sans
10501 slides
10502 \family default
10503  class,
10504 \begin_inset Foot
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 \SpecialChar ldots
10509 or so I've been told repeatedly by its advocates.
10510  Having never used it, I have no idea if this claim is true or not.
10511 \end_layout
10512
10513 \end_inset
10514
10515  which this section documents.
10516 \end_layout
10517
10518 \begin_layout Standard
10519 This class is the \SpecialChar LaTeX2e
10520  improvement of the old 
10521 \noun on
10522 Sli\SpecialChar TeX
10523
10524 \noun default
10525  package.
10526  Every \SpecialChar LaTeX2e
10527  distribution includes this class [which I'll just refer to as 
10528 \begin_inset Quotes eld
10529 \end_inset
10530
10531
10532 \family sans
10533 slides
10534 \family default
10535
10536 \begin_inset Quotes erd
10537 \end_inset
10538
10539  from now on], so you're bound to have it.
10540  As I noted earlier, there are other classes, such as 
10541 \family sans
10542 foils
10543 \family default
10544 , which also produce slides for overhead projectors and do a better job
10545  at it.
10546  However, there are some things which 
10547 \family sans
10548 slides
10549 \family default
10550  can do which the others can't, such as generate overlays.
10551  Read on to learn more!
10552 \end_layout
10553
10554 \begin_layout Subsubsection
10555 Getting Started
10556 \begin_inset CommandInset label
10557 LatexCommand label
10558 name "sec:slidesetup"
10559
10560 \end_inset
10561
10562
10563 \end_layout
10564
10565 \begin_layout Standard
10566 Obviously, to use this document class, you need to select 
10567 \begin_inset Quotes eld
10568 \end_inset
10569
10570
10571 \family sans
10572 slides (default)
10573 \family default
10574
10575 \begin_inset Quotes erd
10576 \end_inset
10577
10578  from the class list in the 
10579 \family sans
10580 Document\SpecialChar menuseparator
10581 Settings
10582 \family default
10583  dialog.
10584  There are some other special things you should know about this class:
10585 \end_layout
10586
10587 \begin_layout Itemize
10588 Don't bother changing the options 
10589 \family sans
10590 Sides and Columns
10591 \family default
10592 .
10593  They're not supported by the 
10594 \family sans
10595 slides
10596 \family default
10597  class, anyways.
10598 \end_layout
10599
10600 \begin_layout Itemize
10601 The option 
10602 \family sans
10603 Page
10604 \begin_inset space ~
10605 \end_inset
10606
10607 style
10608 \family default
10609  behaves a bit differently for this class.
10610  The possible choices and what they do are as follows:
10611 \end_layout
10612
10613 \begin_deeper
10614 \begin_layout Description
10615
10616 \family sans
10617 plain
10618 \family default
10619  The final output contains page numbers in the lower right corner.
10620 \end_layout
10621
10622 \begin_layout Description
10623
10624 \family sans
10625 headings
10626 \family default
10627  Like 
10628 \family sans
10629 plain
10630 \family default
10631 , but also prints out any time markers you've put in.
10632  This is the default.
10633 \end_layout
10634
10635 \begin_layout Description
10636
10637 \family sans
10638 empty
10639 \family default
10640  The final output contains no page numbers, time markers, or alignment markers.
10641 \end_layout
10642
10643 \end_deeper
10644 \begin_layout Itemize
10645 The 
10646 \family sans
10647 slides
10648 \family default
10649  class has an extra option: 
10650 \family typewriter
10651 clock
10652 \family default
10653 .
10654  To use it, put 
10655 \begin_inset Quotes eld
10656 \end_inset
10657
10658
10659 \family typewriter
10660 clock
10661 \family default
10662
10663 \begin_inset Quotes erd
10664 \end_inset
10665
10666  in the extra class options.
10667 \end_layout
10668
10669 \begin_deeper
10670 \begin_layout Standard
10671 Using this options allows you to add time markers to 
10672 \family sans
10673 Note
10674 \family default
10675 s.
10676  See section
10677 \begin_inset space ~
10678 \end_inset
10679
10680
10681 \begin_inset CommandInset ref
10682 LatexCommand ref
10683 reference "sec:slideNote"
10684
10685 \end_inset
10686
10687  for more details.
10688 \end_layout
10689
10690 \end_deeper
10691 \begin_layout Standard
10692 You can also use the template file
10693 \change_deleted 564990737 1671617694
10694  
10695 \begin_inset Quotes eld
10696 \end_inset
10697
10698
10699 \family typewriter
10700 slides.lyx
10701 \family default
10702
10703 \begin_inset Quotes erd
10704 \end_inset
10705
10706
10707 \change_unchanged
10708  to automatically set up a document to use the 
10709 \family sans
10710 slides
10711 \family default
10712  class 
10713 \change_deleted 564990737 1671617699
10714 [
10715 \change_unchanged
10716 using 
10717 \family sans
10718 File\SpecialChar menuseparator
10719 New
10720 \begin_inset space ~
10721 \end_inset
10722
10723 from
10724 \begin_inset space ~
10725 \end_inset
10726
10727 Template
10728 \change_inserted 564990737 1671617723
10729 \SpecialChar menuseparator
10730 Presentations\SpecialChar menuseparator
10731 Slides
10732 \change_unchanged
10733
10734 \family default
10735  to open your new document
10736 \change_deleted 564990737 1671617728
10737 ]
10738 \change_unchanged
10739 .
10740  The template file also contains some examples of the special paragraph
10741  environments used by this class.
10742  I'll describe those next.
10743 \end_layout
10744
10745 \begin_layout Subsubsection
10746 Paragraph Environments
10747 \end_layout
10748
10749 \begin_layout Paragraph
10750 Supported Environments
10751 \end_layout
10752
10753 \begin_layout Standard
10754 The first thing you'll notice when you start up a new 
10755 \family sans
10756 slides
10757 \family default
10758  document is the font size and type: it's the equivalent of the size 
10759 \begin_inset Quotes eld
10760 \end_inset
10761
10762
10763 \family sans
10764 Largest
10765 \family default
10766
10767 \begin_inset Quotes erd
10768 \end_inset
10769
10770  in the 
10771 \family sans
10772 Sans
10773 \begin_inset space ~
10774 \end_inset
10775
10776 Serif
10777 \family default
10778  font.
10779  This is also what's used in the output.
10780  Think of this as a 
10781 \begin_inset Quotes eld
10782 \end_inset
10783
10784 visual cue
10785 \begin_inset Quotes erd
10786 \end_inset
10787
10788  to remind you that this is a slide.
10789  Your final slides will use a larger font; ergo, you'll have less space.
10790  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10791 \end_layout
10792
10793 \begin_layout Standard
10794 The next thing that becomes obvious is the changes to the paragraph environment
10795  pull-down box [at the far-left end of the toolbar].
10796  Most of the paragraph environments you're used to seeing are missing.
10797  There are also five new ones.
10798  That's because the 
10799 \family sans
10800 slides
10801 \family default
10802  class itself only supports certain paragraph environments:
10803 \end_layout
10804
10805 \begin_layout Itemize
10806
10807 \family sans
10808 Standard
10809 \end_layout
10810
10811 \begin_layout Itemize
10812
10813 \family sans
10814 Itemize
10815 \end_layout
10816
10817 \begin_layout Itemize
10818
10819 \family sans
10820 Enumerate
10821 \end_layout
10822
10823 \begin_layout Itemize
10824
10825 \family sans
10826 Description
10827 \end_layout
10828
10829 \begin_layout Itemize
10830
10831 \family sans
10832 List
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family sans
10838 Quotation
10839 \end_layout
10840
10841 \begin_layout Itemize
10842
10843 \family sans
10844 Quote
10845 \end_layout
10846
10847 \begin_layout Itemize
10848
10849 \family sans
10850 Verse
10851 \end_layout
10852
10853 \begin_layout Itemize
10854
10855 \family sans
10856 Caption
10857 \end_layout
10858
10859 \begin_layout Itemize
10860
10861 \family sans
10862 \SpecialChar LyX
10863 -Code
10864 \end_layout
10865
10866 \begin_layout Standard
10867 All of the other standard environments, including the section-heading environmen
10868 ts, aren't used in the 
10869 \family sans
10870 slides
10871 \family default
10872  class.
10873 \end_layout
10874
10875 \begin_layout Standard
10876 On the other hand, you'll notice the following new environments:
10877 \end_layout
10878
10879 \begin_layout Itemize
10880
10881 \family sans
10882 Slide
10883 \end_layout
10884
10885 \begin_layout Itemize
10886
10887 \family sans
10888 Overlay
10889 \end_layout
10890
10891 \begin_layout Itemize
10892
10893 \family sans
10894 Note
10895 \end_layout
10896
10897 \begin_layout Itemize
10898
10899 \family sans
10900 InvisibleText
10901 \end_layout
10902
10903 \begin_layout Itemize
10904
10905 \family sans
10906 VisibleText
10907 \end_layout
10908
10909 \begin_layout Standard
10910 These five are kind of quirky, due to a 
10911 \begin_inset Quotes eld
10912 \end_inset
10913
10914 feature
10915 \begin_inset Quotes erd
10916 \end_inset
10917
10918  in \SpecialChar LyX
10919 .
10920  You see, \SpecialChar LyX
10921  doesn't permit you to nest any other paragraph environment into
10922  an empty environment.
10923  Now, that's fine and dandy, but it means that you wouldn't be able to start
10924  a slide with anything except plain text.
10925  To deal with this, I've performed a little 
10926 \begin_inset Quotes eld
10927 \end_inset
10928
10929 \SpecialChar LaTeX
10930  magic.
10931 \begin_inset Quotes erd
10932 \end_inset
10933
10934  
10935 \end_layout
10936
10937 \begin_layout Paragraph
10938 Quirks of the New Environments
10939 \begin_inset CommandInset label
10940 LatexCommand label
10941 name "sec:slideQuirk"
10942
10943 \end_inset
10944
10945
10946 \end_layout
10947
10948 \begin_layout Standard
10949 All five of the new paragraph environments are somewhat quirky due to inherent
10950  limitiations in the current version of \SpecialChar LyX
10951 .
10952  As I just mentioned, \SpecialChar LyX
10953  forbids environments that begin with another environment.
10954  To get around this, the 
10955 \family sans
10956 Slide
10957 \family default
10958  environment isn't a paragraph environment as described in the 
10959 \emph on
10960 User's Guide
10961 \emph default
10962 .
10963  
10964 \end_layout
10965
10966 \begin_layout Standard
10967 You should consider 
10968 \family sans
10969 Slide
10970 \family default
10971
10972 \family sans
10973 Overlay
10974 \family default
10975 , and 
10976 \family sans
10977 Note
10978 \family default
10979  to be 
10980 \begin_inset Quotes eld
10981 \end_inset
10982
10983 pseudo-environments.
10984 \begin_inset Quotes erd
10985 \end_inset
10986
10987  They look like a section heading or a 
10988 \begin_inset Quotes eld
10989 \end_inset
10990
10991
10992 \family sans
10993 Caption
10994 \family default
10995 ,
10996 \begin_inset Quotes erd
10997 \end_inset
10998
10999  but really begin a [and, if necessary, end the previous] paragraph environment.
11000  Likewise, treat 
11001 \family sans
11002 InvisibleText
11003 \family default
11004  and 
11005 \family sans
11006 VisibleText
11007 \family default
11008  as 
11009 \begin_inset Quotes eld
11010 \end_inset
11011
11012 pseudo-commands.
11013 \begin_inset Quotes erd
11014 \end_inset
11015
11016  These two perform some action.
11017 \end_layout
11018
11019 \begin_layout Standard
11020 A common feature of all five environments, 
11021 \family sans
11022 Slide
11023 \family default
11024
11025 \family sans
11026 Overlay
11027 \family default
11028
11029 \family sans
11030 Note
11031 \family default
11032
11033 \family sans
11034 InvisibleText
11035 \family default
11036  and 
11037 \family sans
11038 VisibleText
11039 \family default
11040 , is a rather long-ish label.
11041  The text following this label — ordinarily the contents of the paragraph
11042  environment — is utterly irrelevant for 
11043 \family sans
11044 Slide
11045 \family default
11046
11047 \family sans
11048 Overlay
11049 \family default
11050
11051 \family sans
11052 Note
11053 \family default
11054
11055 \family sans
11056 InvisibleText
11057 \family default
11058  and 
11059 \family sans
11060 VisibleText
11061 \family default
11062 .
11063  \SpecialChar LyX
11064  completely ignores it.
11065  In fact, you can leave these five environments completely empty.
11066  
11067 \end_layout
11068
11069 \begin_layout Standard
11070 While you don't 
11071 \emph on
11072 have
11073 \emph default
11074  to put any text after the rather long-ish label, you might want to.
11075  This could be a short description of the contents of the 
11076 \family sans
11077 Slide
11078 \family default
11079 , for example.
11080  In that case, enter your descriptive comment and hit 
11081 \family sans
11082 Return
11083 \family default
11084  as you normally would.
11085 \end_layout
11086
11087 \begin_layout Standard
11088 If, on the other hand, you don't want to enter any descriptive text, you'll
11089  hit another \SpecialChar LyX
11090  quirk.
11091  \SpecialChar LyX
11092 , like nature, abhors a vacuum, and will not let you start a new paragraph
11093  environment until you put something in the old one.
11094  So, do this:
11095 \end_layout
11096
11097 \begin_layout Itemize
11098 Start entering the text that will 
11099 \emph on
11100 follow
11101 \emph default
11102  the new 
11103 \family sans
11104 Slide
11105 \family default
11106
11107 \family sans
11108 Overlay
11109 \family default
11110
11111 \family sans
11112 Note
11113 \family default
11114
11115 \family sans
11116 InvisibleText
11117 \family default
11118  or 
11119 \family sans
11120 VisibleText
11121 \family default
11122 .
11123  
11124 \end_layout
11125
11126 \begin_layout Itemize
11127 Now move to the beginning of that paragraph.
11128  
11129 \end_layout
11130
11131 \begin_layout Itemize
11132 Next, hit 
11133 \family sans
11134 Return
11135 \family default
11136 .
11137  
11138 \end_layout
11139
11140 \begin_layout Itemize
11141 Finally, change this new, empty paragraph to a 
11142 \family sans
11143 Slide
11144 \family default
11145
11146 \family sans
11147 Overlay
11148 \family default
11149
11150 \family sans
11151 Note
11152 \family default
11153
11154 \family sans
11155 InvisibleText
11156 \family default
11157  or 
11158 \family sans
11159 VisibleText
11160 \family default
11161 .
11162  
11163 \end_layout
11164
11165 \begin_layout Standard
11166 Some future version of \SpecialChar LyX
11167  will, hopefully, resolve this quirkiness\SpecialChar ldots
11168
11169 \end_layout
11170
11171 \begin_layout Subsubsection
11172 Making a Presentation with 
11173 \family sans
11174 Slide
11175 \family default
11176
11177 \family sans
11178 Overlay
11179 \family default
11180  and 
11181 \family sans
11182 Note
11183 \end_layout
11184
11185 \begin_layout Paragraph
11186 Using the 
11187 \family sans
11188 Slide
11189 \family default
11190  Environment
11191 \end_layout
11192
11193 \begin_layout Standard
11194 If you're expecting this section to teach you how to actually make a presentatio
11195 n, you'll be sorely disappointed.
11196  Naturally, I'll describe all of the ways the 
11197 \family sans
11198 slides
11199 \family default
11200  class can assist you in preparing the materials for a presentation.
11201  Filling in the contents, however, is up to you.
11202  [Then again, that 
11203 \emph on
11204 is
11205 \emph default
11206  the \SpecialChar LyX
11207  philosophy.]
11208 \end_layout
11209
11210 \begin_layout Standard
11211 Choosing the 
11212 \family sans
11213 Slide
11214 \family default
11215  environment [in the manner described in section
11216 \begin_inset space ~
11217 \end_inset
11218
11219
11220 \begin_inset CommandInset ref
11221 LatexCommand ref
11222 reference "sec:slideQuirk"
11223
11224 \end_inset
11225
11226 ] tells \SpecialChar LyX
11227  to begin a new slide [duh].
11228  The label for this environment/
11229 \begin_inset Quotes erd
11230 \end_inset
11231
11232 pseudo-command
11233 \begin_inset Quotes erd
11234 \end_inset
11235
11236  is an 
11237 \begin_inset Quotes eld
11238 \end_inset
11239
11240 ASCII line,
11241 \begin_inset Quotes erd
11242 \end_inset
11243
11244  in cool blue, followed by the label, 
11245 \begin_inset Quotes eld
11246 \end_inset
11247
11248 NewSlide:
11249 \begin_inset Quotes erd
11250 \end_inset
11251
11252 .
11253  Any text or paragraph environments that follow this one go on the new slide.
11254  It's that simple.
11255 \end_layout
11256
11257 \begin_layout Standard
11258 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11259
11260  (this can be specified in the 
11261 \family sans
11262 Paragraph Layout
11263 \family default
11264  dialog).
11265  In fact, you'll want to, once you finish entering the contents of one slide.
11266  If you've entered more text than can physically fit on a slide, the extra
11267  overflows onto a new slide.
11268  I don't recommend doing this, however, since the overflow slide won't have
11269  any page number on it.
11270  Furthermore, it may interfere with any 
11271 \family sans
11272 Overlay
11273 \family default
11274  you've made to accompany the oversized 
11275 \family sans
11276 Slide
11277 \family default
11278 .
11279 \end_layout
11280
11281 \begin_layout Standard
11282 The 
11283 \family sans
11284 Overlay
11285 \family default
11286  and 
11287 \family sans
11288 Note
11289 \family default
11290  environments work the same way as the 
11291 \family sans
11292 Slide
11293 \family default
11294  environment.
11295  They both create an 
11296 \begin_inset Quotes eld
11297 \end_inset
11298
11299 ASCII line
11300 \begin_inset Quotes erd
11301 \end_inset
11302
11303  followed by a label [
11304 \begin_inset Quotes eld
11305 \end_inset
11306
11307 NewOverlay:
11308 \begin_inset Quotes erd
11309 \end_inset
11310
11311  and 
11312 \begin_inset Quotes eld
11313 \end_inset
11314
11315 NewNote:
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319 , respectively].
11320  The color is a stunning magenta instead of blue, and the 
11321 \begin_inset Quotes eld
11322 \end_inset
11323
11324 ASCII line
11325 \begin_inset Quotes erd
11326 \end_inset
11327
11328  will look different, in style and in length.
11329  The label fonts of all three also differ from one another.
11330 \end_layout
11331
11332 \begin_layout Standard
11333 As with a 
11334 \family sans
11335 Slide
11336 \family default
11337 , if the contents of a 
11338 \family sans
11339 Note
11340 \family default
11341  or 
11342 \family sans
11343 Overlay
11344 \family default
11345  exceed the physical size of a slide or sheet of paper, the extra will overflow
11346  onto a new sheet.
11347  Again, you should avoid this.
11348  It defeats the whole purpose of 
11349 \family sans
11350 Note
11351 \family default
11352 s and 
11353 \family sans
11354 Overlay
11355 \family default
11356 s.
11357 \end_layout
11358
11359 \begin_layout Paragraph
11360 Using 
11361 \family sans
11362 Overlay
11363 \family default
11364  with 
11365 \family sans
11366 Slide
11367 \end_layout
11368
11369 \begin_layout Standard
11370 The idea behind an 
11371 \family sans
11372 Overlay
11373 \family default
11374  is a slide that sits atop another slide.
11375  Perhaps you wish to discuss a figure on the main 
11376 \family sans
11377 Slide
11378 \family default
11379  before displaying the text associated with it.
11380  One way to accomplish this is tape a flap of dark paper over the part of
11381  the 
11382 \family sans
11383 Slide
11384 \family default
11385  you want to display later.
11386  This method fails, however, if you wish to overlap one graph with another,
11387  for example.
11388  You would then have to fumble while speaking to align the two separate,
11389  overlapping 
11390 \family sans
11391 Slide
11392 \family default
11393 s to align the two graphs.
11394  The use of an 
11395 \family sans
11396 Overlay
11397 \family default
11398  environment in both cases makes life much easier.
11399 \end_layout
11400
11401 \begin_layout Standard
11402 Each 
11403 \family sans
11404 Overlay
11405 \family default
11406  receives the page number of its 
11407 \begin_inset Quotes eld
11408 \end_inset
11409
11410 parent
11411 \begin_inset Quotes erd
11412 \end_inset
11413
11414  
11415 \family sans
11416 Slide
11417 \family default
11418 , appended by 
11419 \begin_inset Quotes eld
11420 \end_inset
11421
11422
11423 \family typewriter
11424 -a
11425 \family default
11426
11427 \begin_inset Quotes erd
11428 \end_inset
11429
11430 .
11431 \begin_inset Foot
11432 status collapsed
11433
11434 \begin_layout Plain Layout
11435 Presumably, mutliple 
11436 \family sans
11437 Overlay
11438 \family default
11439 s would have 
11440 \begin_inset Quotes eld
11441 \end_inset
11442
11443
11444 \family typewriter
11445 -a
11446 \family default
11447
11448 \begin_inset Quotes erd
11449 \end_inset
11450
11451
11452 \begin_inset Quotes eld
11453 \end_inset
11454
11455
11456 \family typewriter
11457 -b
11458 \family default
11459
11460 \begin_inset Quotes erd
11461 \end_inset
11462
11463
11464 \begin_inset Quotes eld
11465 \end_inset
11466
11467
11468 \family typewriter
11469 -c
11470 \family default
11471
11472 \begin_inset Quotes erd
11473 \end_inset
11474
11475 , etc.
11476 \begin_inset space ~
11477 \end_inset
11478
11479 appended to the page number of the parent 
11480 \family sans
11481 Slide
11482 \family default
11483 .
11484  
11485 \end_layout
11486
11487 \end_inset
11488
11489  Clearly, you want the contents of both the 
11490 \family sans
11491 Slide
11492 \family default
11493  and the 
11494 \family sans
11495 Overlay
11496 \family default
11497  to each fit on a single physical slide! You should probably consider an
11498  
11499 \family sans
11500 Overlay
11501 \family default
11502  as 
11503 \begin_inset Quotes eld
11504 \end_inset
11505
11506 part of
11507 \begin_inset Quotes erd
11508 \end_inset
11509
11510  a 
11511 \family sans
11512 Slide
11513 \family default
11514 .
11515  Indeed, the \SpecialChar LyX
11516  
11517 \family sans
11518 slides
11519 \family default
11520  class provides a visual cue for this: the label at the start of an 
11521 \family sans
11522 Overlay
11523 \family default
11524  is shorter than that at the start of a 
11525 \family sans
11526 Slide
11527 \family default
11528 .
11529  Lastly, when you generate printable output, you'll find alignment markers
11530  in all four corners of both the 
11531 \family sans
11532 Overlay
11533 \family default
11534  page and its parent 
11535 \family sans
11536 Slide
11537 \family default
11538 .
11539  These will assist you in lining up the two physical slides.
11540 \end_layout
11541
11542 \begin_layout Standard
11543 The major problem in overlaying two slides is aligning the contents of the
11544  two transparencies.
11545  How much space should you leave for that graph on the second slide? Worse
11546  still, what if you want a graph and a sentence on second slide, but there
11547  is text on the main transparency that goes in between them? You could try
11548  and insert vertical space of the right size.
11549  The better way is to use 
11550 \family sans
11551 InvisibleText
11552 \family default
11553  and 
11554 \family sans
11555 VisibleText
11556 \family default
11557 .
11558 \end_layout
11559
11560 \begin_layout Standard
11561 As their names imply, 
11562 \family sans
11563 InvisibleText
11564 \family default
11565  and 
11566 \family sans
11567 VisibleText
11568 \family default
11569  are two command-like paragraph environments that make all subsequent text
11570  invisible and visible, respectively.
11571  Note from section
11572 \begin_inset space ~
11573 \end_inset
11574
11575
11576 \begin_inset CommandInset ref
11577 LatexCommand ref
11578 reference "sec:slideQuirk"
11579
11580 \end_inset
11581
11582  that you don't place anything 
11583 \emph on
11584 into
11585 \emph default
11586  these two environments, however.
11587  When you create an 
11588 \family sans
11589 InvisibleText
11590 \family default
11591 , it inserts a centered, sky-blue label into the page reading 
11592 \begin_inset Quotes eld
11593 \end_inset
11594
11595 <Invisible Text Follows>
11596 \begin_inset Quotes erd
11597 \end_inset
11598
11599 .
11600  For paragraphs following this label, the parts of the 
11601 \family sans
11602 Slide
11603 \family default
11604  [or 
11605 \family sans
11606 Overlay
11607 \family default
11608 ; it doesn't matter which] where they would be contain instead blank space.
11609  
11610 \end_layout
11611
11612 \begin_layout Standard
11613 For 
11614 \family sans
11615 VisibleText
11616 \family default
11617 , the corresponding centered label is 
11618 \begin_inset Quotes eld
11619 \end_inset
11620
11621 <Visible Text Follows>
11622 \begin_inset Quotes erd
11623 \end_inset
11624
11625  in blazing green.
11626  Paragraphs following this label behave normally.
11627  Note that the beginning of a new 
11628 \family sans
11629 Slide
11630 \family default
11631
11632 \family sans
11633 Overlay
11634 \family default
11635 , or 
11636 \family sans
11637 Note
11638 \family default
11639  automatically shuts off an 
11640 \family sans
11641 InvisibleText
11642 \family default
11643 .
11644  It's therefore not necessary to use 
11645 \family sans
11646 VisibleText
11647 \family default
11648  at the end of a 
11649 \family sans
11650 Slide
11651 \family default
11652 .
11653 \end_layout
11654
11655 \begin_layout Standard
11656 By now, it should be obvious how to create overlay transparencies using
11657  the proper combination of 
11658 \family sans
11659 InvisibleText
11660 \family default
11661  and 
11662 \family sans
11663 VisibleText
11664 \family default
11665  on a 
11666 \family sans
11667 Slide
11668 \family default
11669  and 
11670 \family sans
11671 Overlay
11672 \family default
11673 :
11674 \end_layout
11675
11676 \begin_layout Enumerate
11677 Create a 
11678 \family sans
11679 Slide
11680 \family default
11681 , including everything that will appear on it, whether on the main slide
11682  or on the 
11683 \family sans
11684 Overlay
11685 \family default
11686 .
11687 \end_layout
11688
11689 \begin_layout Enumerate
11690 Before each figure or paragraph that will appear only on the 
11691 \family sans
11692 Overlay
11693 \family default
11694 , insert an 
11695 \family sans
11696 InvisibleText
11697 \family default
11698  environment.
11699  If necessary, insert a 
11700 \family sans
11701 VisibleText
11702 \family default
11703  environment after the 
11704 \family sans
11705 Overlay
11706 \family default
11707 -only text.
11708 \end_layout
11709
11710 \begin_layout Enumerate
11711 Start an 
11712 \family sans
11713 Overlay
11714 \family default
11715  immediately following the 
11716 \family sans
11717 Slide
11718 \family default
11719 .
11720 \end_layout
11721
11722 \begin_layout Enumerate
11723 Copy the contents of this 
11724 \family sans
11725 Slide
11726 \family default
11727  into the 
11728 \family sans
11729 Overlay
11730 \family default
11731 .
11732 \end_layout
11733
11734 \begin_layout Enumerate
11735 Within the 
11736 \family sans
11737 Overlay
11738 \family default
11739 , change all of the 
11740 \family sans
11741 InvisibleText
11742 \family default
11743  lines to 
11744 \family sans
11745 VisibleText
11746 \family default
11747  and vice-versa.
11748 \end_layout
11749
11750 \begin_layout Standard
11751 That's it.
11752  You've just made an 
11753 \family sans
11754 Overlay
11755 \family default
11756 .
11757 \end_layout
11758
11759 \begin_layout Standard
11760 There's one problem with the way I've designed the \SpecialChar LyX
11761  
11762 \family sans
11763 slides
11764 \family default
11765  class: you can't make text in the middle of a paragraph invisible, nor
11766  make text in the middle of an invisible paragraph visible again.
11767  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11768  codes.
11769 \begin_inset Foot
11770 status collapsed
11771
11772 \begin_layout Plain Layout
11773 The commands of interest are: 
11774 \end_layout
11775
11776 \begin_layout Itemize
11777
11778 \family typewriter
11779 {
11780 \backslash
11781 invisible \SpecialChar ldots
11782  }
11783 \end_layout
11784
11785 \begin_layout Itemize
11786
11787 \family typewriter
11788 {
11789 \backslash
11790 visible \SpecialChar ldots
11791  }
11792 \end_layout
11793
11794 \begin_layout Plain Layout
11795 \SpecialChar ldots
11796 and need to be marked as \SpecialChar TeX
11797 .
11798  The text whose 
11799 \begin_inset Quotes eld
11800 \end_inset
11801
11802 visibility
11803 \begin_inset Quotes erd
11804 \end_inset
11805
11806  you wish to change goes in between the brackets [and after the 
11807 \family typewriter
11808
11809 \backslash
11810 invisible
11811 \family default
11812  or 
11813 \family typewriter
11814
11815 \backslash
11816 visible
11817 \family default
11818  command].
11819  If you don't know how to mark text as \SpecialChar TeX
11820 , see the appropriate section of
11821  the 
11822 \emph on
11823 User's Guide
11824 \emph default
11825 .
11826 \end_layout
11827
11828 \end_inset
11829
11830
11831 \end_layout
11832
11833 \begin_layout Paragraph
11834 Using 
11835 \family sans
11836 Note
11837 \family default
11838  with 
11839 \family sans
11840 Slide
11841 \family default
11842
11843 \begin_inset CommandInset label
11844 LatexCommand label
11845 name "sec:slideNote"
11846
11847 \end_inset
11848
11849
11850 \end_layout
11851
11852 \begin_layout Standard
11853 Like an 
11854 \family sans
11855 Overlay
11856 \family default
11857 , a 
11858 \family sans
11859 Note
11860 \family default
11861  is associated with a 
11862 \begin_inset Quotes eld
11863 \end_inset
11864
11865 parent
11866 \begin_inset Quotes erd
11867 \end_inset
11868
11869  
11870 \family sans
11871 Slide
11872 \family default
11873 .
11874  Here, too, the \SpecialChar LyX
11875  
11876 \family sans
11877 slides
11878 \family default
11879  class provides visual cues.
11880  The label for a 
11881 \family sans
11882 Note
11883 \family default
11884  is shorter than that of a 
11885 \family sans
11886 Slide
11887 \family default
11888  [yet longer than that of an 
11889 \family sans
11890 Overlay
11891 \family default
11892 ] and, like the label of an 
11893 \family sans
11894 Overlay
11895 \family default
11896  is shockingly magenta.
11897  Additionally, the printed 
11898 \family sans
11899 Note
11900 \family default
11901  has the page number of its 
11902 \begin_inset Quotes eld
11903 \end_inset
11904
11905 parent
11906 \begin_inset Quotes erd
11907 \end_inset
11908
11909  
11910 \family sans
11911 Slide
11912 \family default
11913 , appended by 
11914 \begin_inset Quotes eld
11915 \end_inset
11916
11917
11918 \family typewriter
11919 -
11920 \family default
11921 1
11922 \begin_inset Quotes erd
11923 \end_inset
11924
11925
11926 \begin_inset Quotes eld
11927 \end_inset
11928
11929
11930 \family typewriter
11931 -
11932 \family default
11933 2
11934 \begin_inset Quotes erd
11935 \end_inset
11936
11937
11938 \begin_inset Quotes eld
11939 \end_inset
11940
11941
11942 \family typewriter
11943 -
11944 \family default
11945 3
11946 \begin_inset Quotes erd
11947 \end_inset
11948
11949 , etc.
11950  You can have multiple 
11951 \family sans
11952 Note
11953 \family default
11954 s associated with a single 
11955 \family sans
11956 Slide
11957 \family default
11958 , and, as with 
11959 \family sans
11960 Slide
11961 \family default
11962  and 
11963 \family sans
11964 Overlay
11965 \family default
11966 , you'll probably want to break up long 
11967 \family sans
11968 Note
11969 \family default
11970 s so that they fit on a single sheet of paper.
11971 \end_layout
11972
11973 \begin_layout Standard
11974 The purpose of a 
11975 \family sans
11976 Note
11977 \family default
11978  is obvious: it contains anything additional you might want to say about
11979  a 
11980 \family sans
11981 Slide
11982 \family default
11983 .
11984  It could also be used as a sheet of reminders for a particular 
11985 \family sans
11986 Slide
11987 \family default
11988 .
11989  In the case of the latter, you might want to make use of time markers.
11990  Currently, the \SpecialChar LyX
11991  
11992 \family sans
11993 slides
11994 \family default
11995  class has no 
11996 \begin_inset Quotes eld
11997 \end_inset
11998
11999 native
12000 \begin_inset Quotes erd
12001 \end_inset
12002
12003  support for time markers, a 
12004 \noun on
12005 Sli\SpecialChar TeX
12006
12007 \noun default
12008  feature.
12009  So, you'll have to resort to using the \SpecialChar LaTeX
12010  codes.
12011 \end_layout
12012
12013 \begin_layout Standard
12014 To use time markers, you'll need to specify the extra class option 
12015 \begin_inset Quotes eld
12016 \end_inset
12017
12018
12019 \family typewriter
12020 clock
12021 \family default
12022
12023 \begin_inset Quotes erd
12024 \end_inset
12025
12026  [see section
12027 \begin_inset space ~
12028 \end_inset
12029
12030
12031 \begin_inset CommandInset ref
12032 LatexCommand ref
12033 reference "sec:slidesetup"
12034
12035 \end_inset
12036
12037 ].
12038  This option turns on timing marks, which will appear in the lower-left-hand
12039  corner of every 
12040 \family sans
12041 Note
12042 \family default
12043  you generate.
12044  To set what appears in the time marker, you use the \SpecialChar LaTeX
12045  commands 
12046 \begin_inset Quotes eld
12047 \end_inset
12048
12049
12050 \family typewriter
12051
12052 \backslash
12053 settime{}
12054 \family default
12055
12056 \begin_inset Quotes erd
12057 \end_inset
12058
12059  and 
12060 \begin_inset Quotes eld
12061 \end_inset
12062
12063
12064 \family typewriter
12065
12066 \backslash
12067 addtime{}
12068 \family default
12069
12070 \begin_inset Quotes erd
12071 \end_inset
12072
12073 .
12074  The arguments of both commands are time measured in seconds.
12075  
12076 \begin_inset Quotes eld
12077 \end_inset
12078
12079
12080 \family typewriter
12081
12082 \backslash
12083 settime{}
12084 \family default
12085
12086 \begin_inset Quotes erd
12087 \end_inset
12088
12089  sets the time marker to a given time.
12090  
12091 \begin_inset Quotes eld
12092 \end_inset
12093
12094
12095 \family typewriter
12096
12097 \backslash
12098 addtime{}
12099 \family default
12100
12101 \begin_inset Quotes erd
12102 \end_inset
12103
12104  increments the time marker by the specified amount.
12105  Using time markers and 
12106 \family sans
12107 Note
12108 \family default
12109 s in this fashion, you can remind yourself how much time to spend on a particula
12110
12111 \family sans
12112 Slide
12113 \family default
12114 .
12115 \end_layout
12116
12117 \begin_layout Standard
12118 There's one last feature to describe.
12119  Clearly, you'd like to print out all of your 
12120 \family sans
12121 Slide
12122 \family default
12123 s and 
12124 \family sans
12125 Overlay
12126 \family default
12127 s on transparencies while printing all of your 
12128 \family sans
12129 Note
12130 \family default
12131 s on plain paper.
12132  However, a 
12133 \family sans
12134 Note
12135 \family default
12136  
12137 \emph on
12138 must
12139 \emph default
12140  follow the 
12141 \family sans
12142 Slide
12143 \family default
12144  with which it is associated.
12145  What's a person to do?
12146 \end_layout
12147
12148 \begin_layout Standard
12149 Luckily, there are two \SpecialChar LaTeX
12150  commands that allow you to select what to print
12151  out.
12152  Both must be placed into the preamble of your document.
12153  The command 
12154 \begin_inset Quotes eld
12155 \end_inset
12156
12157
12158 \family typewriter
12159
12160 \backslash
12161 onlyslides{
12162 \backslash
12163 slides}
12164 \family default
12165
12166 \begin_inset Quotes erd
12167 \end_inset
12168
12169  will cause the output to contain only the 
12170 \family sans
12171 Slide
12172 \family default
12173 s and 
12174 \family sans
12175 Overlay
12176 \family default
12177 s.
12178  Correspondingly, the command 
12179 \begin_inset Quotes eld
12180 \end_inset
12181
12182
12183 \family typewriter
12184
12185 \backslash
12186 onlynotes{
12187 \backslash
12188 notes}
12189 \family default
12190
12191 \begin_inset Quotes erd
12192 \end_inset
12193
12194  prevents the output of anything but 
12195 \family sans
12196 Note
12197 \family default
12198 s.
12199  I'd advise placing both commands in the preamble and initially comment
12200  both out.
12201  You can then preview your entire presentation as you write.
12202  When you're done writing, you can then uncomment one of the two to select
12203  what you want to print.
12204  I like to uncomment 
12205 \begin_inset Quotes eld
12206 \end_inset
12207
12208
12209 \family typewriter
12210
12211 \backslash
12212 onlyslides{
12213 \backslash
12214 slides}
12215 \family default
12216
12217 \begin_inset Quotes erd
12218 \end_inset
12219
12220  , print to a file with 
12221 \begin_inset Quotes eld
12222 \end_inset
12223
12224
12225 \family typewriter
12226 -slides
12227 \family default
12228
12229 \begin_inset Quotes erd
12230 \end_inset
12231
12232  in its name, comment it back out, then uncomment 
12233 \begin_inset Quotes eld
12234 \end_inset
12235
12236
12237 \family typewriter
12238
12239 \backslash
12240 onlynotes{
12241 \backslash
12242 notes}
12243 \family default
12244
12245 \begin_inset Quotes erd
12246 \end_inset
12247
12248  and print to a 
12249 \begin_inset Quotes eld
12250 \end_inset
12251
12252
12253 \family typewriter
12254 *-notes.ps
12255 \family default
12256
12257 \begin_inset Quotes erd
12258 \end_inset
12259
12260  file.
12261  I can then send either file to a printer, loading transparencies or plain
12262  paper as appropriate.
12263 \end_layout
12264
12265 \begin_layout Standard
12266 You can also provide other arguments to the 
12267 \begin_inset Quotes eld
12268 \end_inset
12269
12270
12271 \family typewriter
12272
12273 \backslash
12274 onlyslides{}
12275 \family default
12276
12277 \begin_inset Quotes erd
12278 \end_inset
12279
12280  and 
12281 \begin_inset Quotes eld
12282 \end_inset
12283
12284
12285 \family typewriter
12286
12287 \backslash
12288 onlynotes{}
12289 \family default
12290
12291 \begin_inset Quotes erd
12292 \end_inset
12293
12294  commands.
12295  See a good \SpecialChar LaTeX
12296  book for details.
12297 \end_layout
12298
12299 \begin_layout Subsubsection
12300 The 
12301 \family sans
12302 slides
12303 \family default
12304  Class Template File
12305 \end_layout
12306
12307 \begin_layout Standard
12308 I have also provided a template file
12309 \change_deleted 564990737 1671617750
12310
12311 \begin_inset Quotes eld
12312 \end_inset
12313
12314
12315 \family typewriter
12316 slides.lyx
12317 \family default
12318
12319 \begin_inset Quotes erd
12320 \end_inset
12321
12322 ,
12323 \change_unchanged
12324  with the 
12325 \family sans
12326 slides
12327 \family default
12328  class.
12329  To use it, begin your new presentation with 
12330 \family sans
12331 File\SpecialChar menuseparator
12332 New
12333 \begin_inset space ~
12334 \end_inset
12335
12336 from
12337 \begin_inset space ~
12338 \end_inset
12339
12340 Template
12341 \change_inserted 564990737 1671616988
12342 \SpecialChar menuseparator
12343 Presentations\SpecialChar menuseparator
12344 Slides
12345 \change_unchanged
12346
12347 \family default
12348 .
12349  Your new \SpecialChar LyX
12350  presentation file will contain an example 
12351 \family sans
12352 Slide
12353 \family default
12354  – 
12355 \family sans
12356 Overlay
12357 \family default
12358  – 
12359 \family sans
12360 Note
12361 \family default
12362  triplet.
12363  The 
12364 \family sans
12365 Slide
12366 \family default
12367  and 
12368 \family sans
12369 Overlay
12370 \family default
12371  additionally contain an example of the use of 
12372 \family sans
12373 InvisibleText
12374 \family default
12375  and 
12376 \family sans
12377 VisibleText
12378 \family default
12379 .
12380  Lastly, the preamble will contain:
12381 \end_layout
12382
12383 \begin_layout LyX-Code
12384 % Uncomment to print out only slides and overlays
12385 \end_layout
12386
12387 \begin_layout LyX-Code
12388 %
12389 \end_layout
12390
12391 \begin_layout LyX-Code
12392 %
12393 \backslash
12394 onlyslides{
12395 \backslash
12396 slides}
12397 \begin_inset Newline newline
12398 \end_inset
12399
12400  
12401 \end_layout
12402
12403 \begin_layout LyX-Code
12404 % Uncomment to print out only notes
12405 \end_layout
12406
12407 \begin_layout LyX-Code
12408 %
12409 \end_layout
12410
12411 \begin_layout LyX-Code
12412 %
12413 \backslash
12414 onlynotes{
12415 \backslash
12416 notes}
12417 \end_layout
12418
12419 \begin_layout Standard
12420 One final thing: I created this class to support the \SpecialChar LaTeX2e
12421  
12422 \begin_inset Quotes eld
12423 \end_inset
12424
12425
12426 \noun on
12427 Sli\SpecialChar TeX
12428
12429 \noun default
12430  emulation
12431 \begin_inset Quotes erd
12432 \end_inset
12433
12434  class, one of the built-in \SpecialChar LaTeX2e
12435  classes.
12436  Neither I nor the rest of the \SpecialChar LyX
12437  Team endorse or oppose the use of this built-in
12438  slide class.
12439  It's here if you want it or need it.
12440  There exist other \SpecialChar LaTeX2e
12441  classes for creating presentations, such as the 
12442 \family sans
12443 Foils
12444 \family default
12445  class [see section
12446 \begin_inset space ~
12447 \end_inset
12448
12449
12450 \begin_inset CommandInset ref
12451 LatexCommand ref
12452 reference "sec:foiltex"
12453
12454 \end_inset
12455
12456 ] or the 
12457 \begin_inset Quotes eld
12458 \end_inset
12459
12460
12461 \family typewriter
12462 seminar
12463 \family default
12464
12465 \begin_inset Quotes erd
12466 \end_inset
12467
12468  package [present on some \SpecialChar TeX
12469  distributions].
12470  The latter is not yet supported under \SpecialChar LyX
12471 .
12472 \begin_inset Foot
12473 status collapsed
12474
12475 \begin_layout Plain Layout
12476 Perhaps you can take on the task\SpecialChar ldots
12477
12478 \end_layout
12479
12480 \end_inset
12481
12482  I know nothing about these other classes.
12483  Try them out to see what sort of alternative they provide.
12484 \end_layout
12485
12486 \begin_layout Section
12487
12488 \change_inserted 564990737 1670439661
12489 Reports
12490 \end_layout
12491
12492 \begin_layout Subsection
12493
12494 \change_inserted 564990737 1670439661
12495 report
12496 \end_layout
12497
12498 \begin_layout Standard
12499
12500 \change_inserted 564990737 1670439661
12501 The document class 
12502 \family sans
12503 report
12504 \family default
12505  provides the 
12506 \family sans
12507 report.cls
12508 \family default
12509  document class for preparing reports.
12510  Like the 
12511 \family sans
12512 book
12513 \family default
12514  document class, this provides parts, chapters and sections but does not
12515  provide the paragraph styles needed for a book; like the 
12516 \family sans
12517 article
12518 \family default
12519  document class, it provides the abstract paragraph style.
12520  In two-sided mode, it does not start a new chapter on the right hand page.
12521 \end_layout
12522
12523 \begin_layout Standard
12524
12525 \change_inserted 564990737 1670439674
12526 The remaining 
12527 \family sans
12528 report
12529 \family default
12530  document classes are described in the Collections (section
12531 \begin_inset space ~
12532 \end_inset
12533
12534
12535 \begin_inset CommandInset ref
12536 LatexCommand ref
12537 reference "sec:Collections"
12538
12539 \end_inset
12540
12541 ).
12542 \end_layout
12543
12544 \begin_layout Section
12545
12546 \change_inserted 564990737 1670439674
12547 Scripts (drama)
12548 \end_layout
12549
12550 \begin_layout Subsection
12551 Broadway
12552 \end_layout
12553
12554 \begin_layout Standard
12555 by 
12556 \shape smallcaps
12557 Garst Reese
12558 \end_layout
12559
12560 \begin_layout Subsubsection
12561 Introduction
12562 \end_layout
12563
12564 \begin_layout Standard
12565 Broadway is for writing plays.
12566  The format is more decorative than Hollywood, and much less standardized.
12567  This format should be suitable for workshops.
12568 \end_layout
12569
12570 \begin_layout Subsubsection
12571 Special problems
12572 \end_layout
12573
12574 \begin_layout Standard
12575 The same as in Hollywood.
12576 \end_layout
12577
12578 \begin_layout Subsubsection
12579 Special features
12580 \end_layout
12581
12582 \begin_layout Standard
12583 Insert the 
12584 \family sans
12585 Speaker
12586 \family default
12587  names as labels then cross-reference the label to insert the name.
12588  The cross-reference dialog will show the current cast of characters.
12589 \end_layout
12590
12591 \begin_layout Subsubsection
12592 Paper size and Margins
12593 \end_layout
12594
12595 \begin_layout Standard
12596 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12597 \end_layout
12598
12599 \begin_layout Subsubsection
12600 Environments
12601 \end_layout
12602
12603 \begin_layout Standard
12604 The following environments are available.
12605  You can use broadway.bind to get the bind keys shown at the right.
12606 \end_layout
12607
12608 \begin_layout Itemize
12609
12610 \family sans
12611 Standard
12612 \begin_inset Newline newline
12613 \end_inset
12614
12615
12616 \family default
12617 You should not have to use this, but it is here for anything that does not
12618  fit otherwise.
12619 \end_layout
12620
12621 \begin_layout Itemize
12622
12623 \family sans
12624 Narrative
12625 \begin_inset space \hfill{}
12626 \end_inset
12627
12628 M-z n
12629 \begin_inset Newline newline
12630 \end_inset
12631
12632
12633 \family default
12634 Used to describe stage setting and the action.
12635  First use of speaker names in all CAPs.
12636 \end_layout
12637
12638 \begin_layout Itemize
12639
12640 \family sans
12641 ACT
12642 \begin_inset space \hfill{}
12643 \end_inset
12644
12645 M-z a
12646 \begin_inset Newline newline
12647 \end_inset
12648
12649
12650 \family default
12651 Automatically numbered.
12652  On screen it will be arabic, but will print as Roman.
12653 \end_layout
12654
12655 \begin_layout Itemize
12656
12657 \family sans
12658 ACT*
12659 \begin_inset space \hfill{}
12660 \end_inset
12661
12662 M-z S at
12663 \begin_inset Newline newline
12664 \end_inset
12665
12666
12667 \family default
12668 Subtitle for 
12669 \family sans
12670 ACT.
12671
12672 \family default
12673  It is just centered text.
12674 \end_layout
12675
12676 \begin_layout Itemize
12677
12678 \family sans
12679 SCENE
12680 \begin_inset space \hfill{}
12681 \end_inset
12682
12683 M-z S-S
12684 \begin_inset Newline newline
12685 \end_inset
12686
12687
12688 \family default
12689 Not automatically numbered.
12690  You supply the number.
12691  This is because I couldn't figure out how.
12692 \end_layout
12693
12694 \begin_layout Itemize
12695
12696 \family sans
12697 AT_RISE:
12698 \begin_inset space \hfill{}
12699 \end_inset
12700
12701 M-z S-R
12702 \begin_inset Newline newline
12703 \end_inset
12704
12705
12706 \family default
12707 A special case of Narrative to describe the setting and action as the curtain
12708  rises.
12709 \end_layout
12710
12711 \begin_layout Itemize
12712
12713 \family sans
12714 Speaker
12715 \begin_inset space \hfill{}
12716 \end_inset
12717
12718 M-z s
12719 \begin_inset Newline newline
12720 \end_inset
12721
12722
12723 \family default
12724 The speaker's (actor's) title, centered in all CAPS.
12725 \end_layout
12726
12727 \begin_layout Itemize
12728
12729 \family sans
12730 Parenthetical
12731 \begin_inset space \hfill{}
12732 \end_inset
12733
12734 M-z p
12735 \begin_inset Newline newline
12736 \end_inset
12737
12738
12739 \family default
12740 Instructions to the speaker.
12741  The parentheses are automatically inserted.
12742  The ( will appear on screen, but both will be in the printed play.
12743  This environment is only used within 
12744 \family sans
12745 Dialogue
12746 \family default
12747 .
12748 \end_layout
12749
12750 \begin_layout Itemize
12751
12752 \family sans
12753 Dialogue
12754 \begin_inset space \hfill{}
12755 \end_inset
12756
12757 M-z d
12758 \begin_inset Newline newline
12759 \end_inset
12760
12761
12762 \family default
12763 What the Speaker says.
12764 \end_layout
12765
12766 \begin_layout Itemize
12767
12768 \family sans
12769 CURTAIN
12770 \begin_inset space \hfill{}
12771 \end_inset
12772
12773 M-z S-C
12774 \begin_inset Newline newline
12775 \end_inset
12776
12777
12778 \family default
12779 The curtain comes down.
12780 \end_layout
12781
12782 \begin_layout Itemize
12783
12784 \family sans
12785 Title
12786 \begin_inset space \hfill{}
12787 \end_inset
12788
12789 M-z S-T
12790 \end_layout
12791
12792 \begin_layout Itemize
12793
12794 \family sans
12795 Author
12796 \begin_inset space \hfill{}
12797 \end_inset
12798
12799 M-z S-A
12800 \end_layout
12801
12802 \begin_layout Itemize
12803
12804 \family sans
12805 Right_Address
12806 \begin_inset space \hfill{}
12807 \end_inset
12808
12809 M-z r
12810 \end_layout
12811
12812 \begin_layout Standard
12813 Hello there.
12814 \end_layout
12815
12816 \begin_layout Subsection
12817 Hollywood (Hollywood spec scripts)
12818 \end_layout
12819
12820 \begin_layout Standard
12821 by 
12822 \shape smallcaps
12823 Garst Reese
12824 \end_layout
12825
12826 \begin_layout Subsubsection
12827 Introduction
12828 \end_layout
12829
12830 \begin_layout Standard
12831 Getting the format of a Hollywood script right is a 
12832 \begin_inset Quotes eld
12833 \end_inset
12834
12835 rite of passage.
12836 \begin_inset Quotes erd
12837 \end_inset
12838
12839  It is designed to make the readers focus on content and to be easy and
12840  familiar for the actors to read.
12841  Each page of a script should be one minute of film.
12842  Nothing goes in a script that you cannot see or hear on screen.
12843  The courier 12 pt font should be used throughout.
12844  No italics.
12845 \end_layout
12846
12847 \begin_layout Subsubsection
12848 Special problems
12849 \end_layout
12850
12851 \begin_layout Standard
12852 Speakers' lines should NEVER break in mid-sentence.
12853  If a speaker's lines continue over a page break, repeat the 
12854 \family sans
12855 Speaker
12856 \family default
12857  title followed by (Cont'd).
12858 \end_layout
12859
12860 \begin_layout Subsubsection
12861 Special features
12862 \end_layout
12863
12864 \begin_layout Standard
12865 Insert the 
12866 \family sans
12867 Speaker
12868 \family default
12869  names as labels then cross-reference the label to insert the name.
12870  The cross-reference dialog will show the current cast of characters.
12871  You can use this to insert the speaker name in narratives also.
12872 \end_layout
12873
12874 \begin_layout Subsubsection
12875 Paper size and Margins
12876 \end_layout
12877
12878 \begin_layout Standard
12879 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12880 \end_layout
12881
12882 \begin_layout Subsubsection
12883 Environments
12884 \end_layout
12885
12886 \begin_layout Standard
12887 The following environments are available.
12888  You can use hollywood.bind to get the bind keys shown at the right.
12889 \end_layout
12890
12891 \begin_layout Itemize
12892
12893 \family sans
12894 Standard
12895 \begin_inset Newline newline
12896 \end_inset
12897
12898
12899 \family default
12900 Used where nothing else works.
12901  Try to avoid it.
12902 \end_layout
12903
12904 \begin_layout Itemize
12905
12906 \family sans
12907 FADE_IN
12908 \family default
12909 :
12910 \begin_inset space \hfill{}
12911 \end_inset
12912
12913
12914 \family sans
12915 M-z S-I
12916 \family default
12917
12918 \begin_inset Newline newline
12919 \end_inset
12920
12921 Usually followed by something like 
12922 \begin_inset Quotes eld
12923 \end_inset
12924
12925 on Sally waking up.
12926 \begin_inset Quotes erd
12927 \end_inset
12928
12929
12930 \end_layout
12931
12932 \begin_layout Itemize
12933
12934 \family sans
12935 INT:
12936 \begin_inset space \hfill{}
12937 \end_inset
12938
12939 M-z i
12940 \begin_inset Newline newline
12941 \end_inset
12942
12943
12944 \family default
12945 Introduces a new INTERIOR camera set-up.
12946  Always followed by DAY or NIGHT, or something similar to define the lighting
12947  required.
12948  Everthing on this line in CAPS.
12949 \end_layout
12950
12951 \begin_layout Itemize
12952
12953 \family sans
12954 EXT:
12955 \begin_inset space \hfill{}
12956 \end_inset
12957
12958 M-z e
12959 \begin_inset Newline newline
12960 \end_inset
12961
12962
12963 \family default
12964 Introduces a new EXTERIOR camera set-up.
12965  Everthing on this line in CAPS.
12966 \end_layout
12967
12968 \begin_layout Itemize
12969
12970 \family sans
12971 Speaker
12972 \begin_inset space \hfill{}
12973 \end_inset
12974
12975 M-z s
12976 \begin_inset Newline newline
12977 \end_inset
12978
12979
12980 \family default
12981 The character speaking.
12982 \end_layout
12983
12984 \begin_layout Itemize
12985
12986 \family sans
12987 Parenthetical
12988 \begin_inset space \hfill{}
12989 \end_inset
12990
12991 M-z p
12992 \begin_inset Newline newline
12993 \end_inset
12994
12995
12996 \family default
12997 Instructions to the speaker.
12998  The () are automatically inserted.
12999 \end_layout
13000
13001 \begin_layout Itemize
13002
13003 \family sans
13004 Dialogue
13005 \begin_inset space \hfill{}
13006 \end_inset
13007
13008 M-z d
13009 \begin_inset Newline newline
13010 \end_inset
13011
13012
13013 \family default
13014 What the 
13015 \family sans
13016 Speaker
13017 \family default
13018  says.
13019 \end_layout
13020
13021 \begin_layout Itemize
13022
13023 \family sans
13024 Transition
13025 \begin_inset space \hfill{}
13026 \end_inset
13027
13028 M-z t
13029 \begin_inset Newline newline
13030 \end_inset
13031
13032
13033 \family default
13034 Camera movement instruction.
13035  e.
13036 \begin_inset space \thinspace{}
13037 \end_inset
13038
13039 g.
13040 \begin_inset space \space{}
13041 \end_inset
13042
13043 CUT TO:
13044 \end_layout
13045
13046 \begin_layout Itemize
13047
13048 \family sans
13049 FADE OUT:
13050 \begin_inset space \hfill{}
13051 \end_inset
13052
13053 M-z S-I
13054 \end_layout
13055
13056 \begin_layout Itemize
13057
13058 \family sans
13059 Author
13060 \begin_inset space \hfill{}
13061 \end_inset
13062
13063 M-z S-A
13064 \end_layout
13065
13066 \begin_layout Itemize
13067
13068 \family sans
13069 Title
13070 \begin_inset space \hfill{}
13071 \end_inset
13072
13073 M-z S-T
13074 \end_layout
13075
13076 \begin_layout Itemize
13077
13078 \family sans
13079 Right_Address
13080 \begin_inset space \hfill{}
13081 \end_inset
13082
13083 M-z r
13084 \end_layout
13085
13086 \begin_layout Subsubsection
13087 Script jargon
13088 \end_layout
13089
13090 \begin_layout Itemize
13091 (O.S) — off screen
13092 \end_layout
13093
13094 \begin_layout Itemize
13095 (V.0) — voice over
13096 \end_layout
13097
13098 \begin_layout Itemize
13099 b.
13100 \begin_inset space \thinspace{}
13101 \end_inset
13102
13103 g.
13104  — background
13105 \end_layout
13106
13107 \begin_layout Itemize
13108 C.U.
13109  — close-up
13110 \end_layout
13111
13112 \begin_layout Itemize
13113 PAN — camera movement
13114 \end_layout
13115
13116 \begin_layout Itemize
13117 INSERT — cut to close-up of
13118 \end_layout
13119
13120 \begin_layout Chapter
13121
13122 \change_inserted 564990737 1671185876
13123 Modules
13124 \end_layout
13125
13126 \begin_layout Section
13127
13128 \change_inserted 564990737 1671716212
13129
13130 \lang american
13131 Academic Field Specifics
13132 \end_layout
13133
13134 \begin_layout Subsection
13135
13136 \change_inserted 564990737 1671716212
13137
13138 \lang american
13139 Chemistry: Hazard and Precautionary Statements 
13140 \end_layout
13141
13142 \begin_layout Standard
13143
13144 \change_inserted 564990737 1671716212
13145
13146 \lang american
13147 This module provides two insets to typeset numbers and phrases of chemical
13148  hazard and precautionary statements.
13149  For a description see 
13150 \family sans
13151 \lang british
13152 File\SpecialChar menuseparator
13153 Open Example\SpecialChar menuseparator
13154 Modules\SpecialChar menuseparator
13155 Hazard and Precautionary Statements
13156 \family default
13157  and 
13158 \family sans
13159 Help\SpecialChar menuseparator
13160 Specific Manuals\SpecialChar menuseparator
13161 Hazard and Precautionary Statements
13162 \family default
13163 \lang american
13164 .
13165 \end_layout
13166
13167 \begin_layout Subsection
13168
13169 \change_inserted 564990737 1671716212
13170
13171 \series bold
13172 \lang american
13173 Chemistry: Risk and Safety Statements
13174 \end_layout
13175
13176 \begin_layout Standard
13177
13178 \change_inserted 564990737 1671716212
13179
13180 \lang american
13181 This module provides two insets, 
13182 \family sans
13183 R-S number
13184 \family default
13185  and 
13186 \family sans
13187 R-S phrase
13188 \family default
13189 , accessible via the menu 
13190 \family sans
13191 \bar under
13192 I
13193 \bar default
13194 nsert\SpecialChar menuseparator
13195 Custom
13196 \begin_inset space ~
13197 \end_inset
13198
13199 Insets
13200 \family default
13201  and an environment to typeset numbers and phrases of chemical risk and
13202  safety statements.
13203 \end_layout
13204
13205 \begin_layout Subsection
13206
13207 \change_inserted 564990737 1671716212
13208
13209 \lang american
13210 Linguistics
13211 \end_layout
13212
13213 \begin_layout Standard
13214
13215 \change_inserted 564990737 1671716212
13216
13217 \lang american
13218 This module uses the 
13219 \family sans
13220 covington.sty
13221 \family default
13222  package to add environments useful for linguistics (numbered examples,
13223  glosses, semantic markup, tableau floats).
13224  You can obtain information about this module in 
13225 \family sans
13226 \bar under
13227 H
13228 \bar default
13229 elp\SpecialChar menuseparator
13230 S
13231 \bar under
13232 p
13233 \bar default
13234 ecific
13235 \begin_inset space ~
13236 \end_inset
13237
13238 Manuals\SpecialChar menuseparator
13239
13240 \bar under
13241 L
13242 \bar default
13243 inguistics
13244 \family default
13245  and 
13246 \family sans
13247 \lang british
13248 File\SpecialChar menuseparator
13249 Open Example\SpecialChar menuseparator
13250
13251 \lang american
13252 Modules\SpecialChar menuseparator
13253 Linguistics
13254 \family default
13255 .
13256 \end_layout
13257
13258 \begin_layout Section
13259
13260 \change_inserted 564990737 1671788778
13261
13262 \lang american
13263 Accessibility
13264 \end_layout
13265
13266 \begin_layout Subsection
13267
13268 \change_inserted 564990737 1671788778
13269
13270 \lang american
13271 Braille
13272 \end_layout
13273
13274 \begin_layout Standard
13275
13276 \change_inserted 564990737 1671788778
13277
13278 \lang american
13279 This module supports the Braille writing system.
13280  It requires the \SpecialChar LaTeX
13281  package 
13282 \family typewriter
13283 braille.sty
13284 \family default
13285 .
13286  This and its documentation can be obtained from 
13287 \begin_inset CommandInset href
13288 LatexCommand href
13289 name "CTAN"
13290 target "https://www.ctan.org/pkg/braille"
13291 literal "false"
13292
13293 \end_inset
13294
13295 .
13296  You do not have to reconfigure your system after installing it.
13297  See 
13298 \family sans
13299 \bar under
13300 H
13301 \bar default
13302 elp\SpecialChar menuseparator
13303 S
13304 \bar under
13305 p
13306 \bar default
13307 ecific
13308 \begin_inset space ~
13309 \end_inset
13310
13311 Manuals\SpecialChar menuseparator
13312
13313 \bar under
13314 B
13315 \bar default
13316 raille
13317 \family default
13318  and 
13319 \family sans
13320 File\SpecialChar menuseparator
13321 Open Example\SpecialChar menuseparator
13322 Modules\SpecialChar menuseparator
13323 Braille
13324 \family default
13325 .
13326 \end_layout
13327
13328 \begin_layout Section
13329
13330 \change_inserted 564990737 1671788778
13331
13332 \lang american
13333 Annotation & Revision
13334 \end_layout
13335
13336 \begin_layout Subsection
13337
13338 \change_inserted 564990737 1671788778
13339
13340 \lang american
13341 FiXme Notes
13342 \end_layout
13343
13344 \begin_layout Standard
13345
13346 \change_inserted 564990737 1671788778
13347
13348 \lang american
13349 This module provides “FiXme” (marginal) annotations for document revision
13350  purposes.
13351  A list of annotations can be produced by using the “List of FIXMEs” paragraph
13352  style.
13353  The annotations are customizable via the LaTeX preamble.
13354  See the FiXme documentation which can be obtained from 
13355 \begin_inset CommandInset href
13356 LatexCommand href
13357 name "CTAN"
13358 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13359 literal "false"
13360
13361 \end_inset
13362
13363 .
13364  
13365 \end_layout
13366
13367 \begin_layout Paragraph
13368
13369 \change_inserted 564990737 1671788778
13370
13371 \lang american
13372 Note:
13373 \end_layout
13374
13375 \begin_layout Standard
13376
13377 \change_inserted 564990737 1671788778
13378
13379 \lang american
13380 by default, the notes are only displayed in “draft” mode (if the option
13381  “draft” has been inserted in 
13382 \family sans
13383 Document\SpecialChar menuseparator
13384 Settings\SpecialChar menuseparator
13385 Document Class\SpecialChar menuseparator
13386 Class Options\SpecialChar menuseparator
13387 Custom
13388 \family default
13389 ).
13390  To display them always, insert 
13391 \family typewriter
13392
13393 \backslash
13394 fxsetup{draft}
13395 \family default
13396  in 
13397 \family sans
13398 Document\SpecialChar menuseparator
13399 Settings\SpecialChar menuseparator
13400 \SpecialChar LaTeX
13401  Preamble
13402 \family default
13403 .
13404  
13405 \end_layout
13406
13407 \begin_layout Subsection
13408
13409 \change_inserted 564990737 1671788778
13410
13411 \lang american
13412 PDF Comments
13413 \end_layout
13414
13415 \begin_layout Standard
13416
13417 \change_inserted 564990737 1671788778
13418
13419 \lang american
13420 This module provides various kinds of annotations for PDF output.
13421  See 
13422 \family sans
13423 Help\SpecialChar menuseparator
13424 Specific Manuals\SpecialChar menuseparator
13425 PDF comments and File\SpecialChar menuseparator
13426 Open Example\SpecialChar menuseparator
13427 Modules\SpecialChar menuseparator
13428 PDF Comments
13429 \family default
13430 .
13431 \end_layout
13432
13433 \begin_layout Subsection
13434
13435 \change_inserted 564990737 1671788778
13436
13437 \series bold
13438 \lang american
13439 PDF Form
13440 \end_layout
13441
13442 \begin_layout Standard
13443
13444 \change_inserted 564990737 1671788778
13445
13446 \lang american
13447 This module provides fields and buttons for PDF forms.
13448  See the 
13449 \begin_inset CommandInset href
13450 LatexCommand href
13451 name "hyperref documentation"
13452 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13453 literal "false"
13454
13455 \end_inset
13456
13457
13458 \family sans
13459 Help\SpecialChar menuseparator
13460 Specific Manuals\SpecialChar menuseparator
13461 PDF forms and File\SpecialChar menuseparator
13462 Open Example\SpecialChar menuseparator
13463 Modules\SpecialChar menuseparator
13464 PDF Form
13465 \family default
13466 .
13467 \end_layout
13468
13469 \begin_layout Subsection
13470
13471 \change_inserted 564990737 1671788778
13472
13473 \series bold
13474 \lang american
13475 Ruby (Furigana)
13476 \end_layout
13477
13478 \begin_layout Standard
13479
13480 \change_inserted 564990737 1671788778
13481
13482 \lang american
13483 This module defines an inset to typeset reading aids (ruby, furigana) to
13484  Chinese characters.
13485  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on
13486  the TeX engine) or a fallback definition.
13487  
13488 \end_layout
13489
13490 \begin_layout Subsection
13491
13492 \change_inserted 564990737 1671788778
13493
13494 \series bold
13495 \lang american
13496 TODO notes
13497 \end_layout
13498
13499 \begin_layout Standard
13500
13501 \change_inserted 564990737 1671788778
13502
13503 \lang american
13504 This module provides custom insets to insert TODO items in your document.
13505  In order to generate a “List of TODOs,” the module provides a paragraph
13506  style.
13507  Inserting “final” in 
13508 \family sans
13509 Document\SpecialChar menuseparator
13510 Settings\SpecialChar menuseparator
13511 Document Class\SpecialChar menuseparator
13512 Class Options\SpecialChar menuseparator
13513 Custom
13514 \family default
13515 ) suppresses the output of TODO notes.
13516  See the 
13517 \begin_inset CommandInset href
13518 LatexCommand href
13519 name "todonotes documentation"
13520 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13521 literal "false"
13522
13523 \end_inset
13524
13525 .
13526 \end_layout
13527
13528 \begin_layout Section
13529
13530 \change_inserted 564990737 1671829045
13531
13532 \lang american
13533 Bibliography 
13534 \end_layout
13535
13536 \begin_layout Subsection
13537
13538 \change_inserted 564990737 1671829045
13539
13540 \lang american
13541 APA Style with NatBib
13542 \end_layout
13543
13544 \begin_layout Standard
13545
13546 \change_inserted 564990737 1671829045
13547
13548 \lang american
13549 This module adds support for using natbib together with apacite (the bibliograph
13550 y style need not be apacite — it could be apacite, apacitex, or any bibliography
13551  that works with both the natbib and apacite packages.) 
13552 \end_layout
13553
13554 \begin_layout Section
13555
13556 \change_inserted 564990737 1671829045
13557
13558 \lang american
13559 Boxes
13560 \end_layout
13561
13562 \begin_layout Subsection
13563
13564 \change_inserted 564990737 1671829045
13565
13566 \lang american
13567 Fancy Colored Boxes
13568 \end_layout
13569
13570 \begin_layout Standard
13571
13572 \change_inserted 564990737 1671829045
13573
13574 \lang american
13575 This module adds ten custom insets that support colored boxes via the tcolorbox
13576  package.
13577  See 
13578 \family sans
13579 Help\SpecialChar menuseparator
13580 Specific Manuals\SpecialChar menuseparator
13581 Colored boxes
13582 \family default
13583
13584 \family sans
13585 File\SpecialChar menuseparator
13586 Open Example\SpecialChar menuseparator
13587 Modules\SpecialChar menuseparator
13588 Fancy Color Boxes
13589 \family default
13590  the 
13591 \begin_inset CommandInset href
13592 LatexCommand href
13593 name "tcolorbox documentation"
13594 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13595 literal "false"
13596
13597 \end_inset
13598
13599  for details.
13600  
13601 \end_layout
13602
13603 \begin_layout Subsection
13604
13605 \change_inserted 564990737 1671829045
13606
13607 \lang american
13608 Graphic boxes
13609 \end_layout
13610
13611 \begin_layout Standard
13612
13613 \change_inserted 564990737 1671829045
13614
13615 \lang american
13616 This provides the custom insets 
13617 \family sans
13618 Reflectbox
13619 \family default
13620
13621 \family sans
13622 Resizebox
13623 \family default
13624
13625 \family sans
13626 Rotatebox
13627 \family default
13628  and 
13629 \family sans
13630 Scalebox
13631 \family default
13632  to scale and rotate its content.
13633 \end_layout
13634
13635 \begin_layout Standard
13636
13637 \change_inserted 564990737 1671829045
13638
13639 \family sans
13640 \lang american
13641 Reflectbox
13642 \family default
13643  is a simple way of reversing text without any other enhancement:
13644 \end_layout
13645
13646 \begin_layout Standard
13647
13648 \change_inserted 564990737 1671829045
13649
13650 \lang american
13651 \begin_inset Flex Reflectbox
13652 status open
13653
13654 \begin_layout Plain Layout
13655
13656 \change_inserted 564990737 1671829045
13657
13658 \lang american
13659 Great Western Railway
13660 \change_unchanged
13661
13662 \end_layout
13663
13664 \end_inset
13665
13666
13667 \end_layout
13668
13669 \begin_layout Standard
13670
13671 \change_inserted 564990737 1671829045
13672
13673 \lang american
13674 (You will need to use Ctrl-R to see any of these examples.)
13675 \end_layout
13676
13677 \begin_layout Standard
13678
13679 \change_inserted 564990737 1671829045
13680
13681 \family sans
13682 \lang american
13683 Resizebox
13684 \family default
13685  allows you to specify the dimensions of the text or image; permissible
13686  units are em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; if you
13687  enter 
13688 \family typewriter
13689 !
13690 \family default
13691  for 
13692 \family typewriter
13693 Height
13694 \family default
13695  it scales by the width factor:
13696 \end_layout
13697
13698 \begin_layout Standard
13699
13700 \change_inserted 564990737 1671829045
13701
13702 \lang american
13703 \begin_inset Flex Resizebox
13704 status open
13705
13706 \begin_layout Plain Layout
13707
13708 \change_inserted 564990737 1671829045
13709
13710 \lang american
13711 \begin_inset Argument 1
13712 status open
13713
13714 \begin_layout Plain Layout
13715
13716 \change_inserted 564990737 1671829045
13717
13718 \lang american
13719 48mm
13720 \change_unchanged
13721
13722 \end_layout
13723
13724 \end_inset
13725
13726
13727 \begin_inset Argument 2
13728 status open
13729
13730 \begin_layout Plain Layout
13731
13732 \change_inserted 564990737 1671829045
13733
13734 \lang american
13735 !
13736 \change_unchanged
13737
13738 \end_layout
13739
13740 \end_inset
13741
13742 Great Western Railway
13743 \change_unchanged
13744
13745 \end_layout
13746
13747 \end_inset
13748
13749
13750 \end_layout
13751
13752 \begin_layout Standard
13753
13754 \change_inserted 564990737 1671829045
13755
13756 \family sans
13757 \lang american
13758 Rotatebox
13759 \family default
13760  allows you to rotate text around the reference point of the box.
13761  If you wish to rotate the box around a different origin, place the cursor
13762  inside the box and select Insert\SpecialChar menuseparator
13763 Origin; o
13764 \family typewriter
13765 rigin
13766 \family default
13767  is specified as 
13768 \family typewriter
13769 c
13770 \family default
13771 ,
13772 \family typewriter
13773  l
13774 \family default
13775 ,
13776 \family typewriter
13777  r
13778 \family default
13779 ,
13780 \family typewriter
13781  b
13782 \family default
13783 ,
13784 \family typewriter
13785  t
13786 \family default
13787  or meaningful combinations of these and the counterclockwise rotation angle
13788  is expressed in degrees.
13789  For example:
13790 \end_layout
13791
13792 \begin_layout Standard
13793
13794 \change_inserted 564990737 1671829045
13795
13796 \lang american
13797 \begin_inset Flex Rotatebox
13798 status open
13799
13800 \begin_layout Plain Layout
13801
13802 \change_inserted 564990737 1671829045
13803
13804 \lang american
13805 \begin_inset Argument 1
13806 status open
13807
13808 \begin_layout Plain Layout
13809
13810 \change_inserted 564990737 1671829045
13811
13812 \lang british
13813 =c
13814 \change_unchanged
13815
13816 \end_layout
13817
13818 \end_inset
13819
13820
13821 \begin_inset Argument 2
13822 status open
13823
13824 \begin_layout Plain Layout
13825
13826 \change_inserted 564990737 1671829045
13827
13828 \lang british
13829 30
13830 \change_unchanged
13831
13832 \end_layout
13833
13834 \end_inset
13835
13836 Great Western Railway
13837 \change_unchanged
13838
13839 \end_layout
13840
13841 \end_inset
13842
13843
13844 \end_layout
13845
13846 \begin_layout Standard
13847
13848 \change_inserted 564990737 1671829045
13849
13850 \lang american
13851 You can combine boxes as in:
13852 \end_layout
13853
13854 \begin_layout Standard
13855
13856 \change_inserted 564990737 1671829045
13857
13858 \lang british
13859 \begin_inset Flex Rotatebox
13860 status open
13861
13862 \begin_layout Plain Layout
13863
13864 \change_inserted 564990737 1671829045
13865
13866 \lang british
13867 \begin_inset Argument 1
13868 status open
13869
13870 \begin_layout Plain Layout
13871
13872 \change_inserted 564990737 1671829045
13873
13874 \lang british
13875 =c
13876 \change_unchanged
13877
13878 \end_layout
13879
13880 \end_inset
13881
13882
13883 \begin_inset Argument 2
13884 status open
13885
13886 \begin_layout Plain Layout
13887
13888 \change_inserted 564990737 1671829045
13889
13890 \lang british
13891 -15
13892 \change_unchanged
13893
13894 \end_layout
13895
13896 \end_inset
13897
13898
13899 \begin_inset Flex Resizebox
13900 status open
13901
13902 \begin_layout Plain Layout
13903
13904 \change_inserted 564990737 1671829045
13905
13906 \lang british
13907 \begin_inset Argument 1
13908 status open
13909
13910 \begin_layout Plain Layout
13911
13912 \change_inserted 564990737 1671829045
13913
13914 \lang british
13915 48mm
13916 \change_unchanged
13917
13918 \end_layout
13919
13920 \end_inset
13921
13922
13923 \begin_inset Argument 2
13924 status open
13925
13926 \begin_layout Plain Layout
13927
13928 \change_inserted 564990737 1671829045
13929
13930 \lang british
13931 !
13932 \change_unchanged
13933
13934 \end_layout
13935
13936 \end_inset
13937
13938
13939 \begin_inset Flex Reflectbox
13940 status open
13941
13942 \begin_layout Plain Layout
13943
13944 \change_inserted 564990737 1671829045
13945
13946 \lang british
13947 Great Western Railway
13948 \change_unchanged
13949
13950 \end_layout
13951
13952 \end_inset
13953
13954
13955 \change_unchanged
13956
13957 \end_layout
13958
13959 \end_inset
13960
13961
13962 \change_unchanged
13963
13964 \end_layout
13965
13966 \end_inset
13967
13968
13969 \end_layout
13970
13971 \begin_layout Standard
13972
13973 \change_inserted 564990737 1671829045
13974
13975 \family sans
13976 \lang american
13977 Scalebox
13978 \family default
13979  scales text; select Insert\SpecialChar menuseparator
13980 V-Factor to add a vertical factor.
13981  If the vertical factor is omitted, the horizontal is used.
13982  Adding different horizontal and vertical values creates distortion as in
13983  
13984 \end_layout
13985
13986 \begin_layout Standard
13987
13988 \change_inserted 564990737 1671829045
13989
13990 \family typewriter
13991 \lang american
13992 \begin_inset Flex Scalebox
13993 status open
13994
13995 \begin_layout Plain Layout
13996
13997 \change_inserted 564990737 1671829045
13998
13999 \lang american
14000 \begin_inset Argument 1
14001 status open
14002
14003 \begin_layout Plain Layout
14004
14005 \change_inserted 564990737 1671829045
14006
14007 \lang american
14008 2
14009 \change_unchanged
14010
14011 \end_layout
14012
14013 \end_inset
14014
14015
14016 \begin_inset Argument 2
14017 status open
14018
14019 \begin_layout Plain Layout
14020
14021 \change_inserted 564990737 1671829045
14022
14023 \lang american
14024 1.5
14025 \change_unchanged
14026
14027 \end_layout
14028
14029 \end_inset
14030
14031
14032 \family roman
14033 Great Western Railway
14034 \change_unchanged
14035
14036 \end_layout
14037
14038 \end_inset
14039
14040 .
14041 \end_layout
14042
14043 \begin_layout Standard
14044
14045 \change_inserted 564990737 1671829045
14046
14047 \lang american
14048 A negative horizontal value reverses the text and a negative vertical value
14049  inverts it so that you get 
14050 \end_layout
14051
14052 \begin_layout Standard
14053
14054 \change_inserted 564990737 1671829045
14055
14056 \lang american
14057 \begin_inset Flex Scalebox
14058 status open
14059
14060 \begin_layout Plain Layout
14061
14062 \change_inserted 564990737 1671829045
14063
14064 \lang american
14065 \begin_inset Argument 1
14066 status open
14067
14068 \begin_layout Plain Layout
14069
14070 \change_inserted 564990737 1671829045
14071
14072 \lang british
14073 -1
14074 \change_unchanged
14075
14076 \end_layout
14077
14078 \end_inset
14079
14080
14081 \begin_inset Argument 2
14082 status open
14083
14084 \begin_layout Plain Layout
14085
14086 \change_inserted 564990737 1671829045
14087
14088 \lang british
14089 1
14090 \change_unchanged
14091
14092 \end_layout
14093
14094 \end_inset
14095
14096 Great Western Railway
14097 \change_unchanged
14098
14099 \end_layout
14100
14101 \end_inset
14102
14103  and 
14104 \begin_inset Flex Scalebox
14105 status open
14106
14107 \begin_layout Plain Layout
14108
14109 \change_inserted 564990737 1671829045
14110
14111 \lang american
14112 \begin_inset Argument 1
14113 status open
14114
14115 \begin_layout Plain Layout
14116
14117 \change_inserted 564990737 1671829045
14118
14119 \lang british
14120 1
14121 \change_unchanged
14122
14123 \end_layout
14124
14125 \end_inset
14126
14127
14128 \begin_inset Argument 2
14129 status open
14130
14131 \begin_layout Plain Layout
14132
14133 \change_inserted 564990737 1671829045
14134
14135 \lang british
14136 -1
14137 \change_unchanged
14138
14139 \end_layout
14140
14141 \end_inset
14142
14143 Great Western Railway
14144 \change_unchanged
14145
14146 \end_layout
14147
14148 \end_inset
14149
14150 .
14151 \end_layout
14152
14153 \begin_layout Subsection
14154
14155 \change_inserted 564990737 1671884699
14156
14157 \lang american
14158 Section Boxes
14159 \end_layout
14160
14161 \begin_layout Standard
14162
14163 \change_inserted 564990737 1671884699
14164
14165 \lang american
14166 This module defines Boxes with section header.
14167  It is mainly intended for the SciPoster Document class.
14168  
14169 \end_layout
14170
14171 \begin_layout Subsection
14172
14173 \change_inserted 564990737 1671884699
14174
14175 \lang american
14176 Variable-width Minipages
14177 \end_layout
14178
14179 \begin_layout Standard
14180
14181 \change_inserted 564990737 1671884699
14182
14183 \lang american
14184 This module adds a 
14185 \family sans
14186 Minipage (Var.
14187 \begin_inset space \thinspace{}
14188 \end_inset
14189
14190 Width)
14191 \family default
14192  inset to 
14193 \family sans
14194 Insert\SpecialChar menuseparator
14195 Custom Inset
14196 \family default
14197  using the 
14198 \family sans
14199 varwidth
14200 \family default
14201  LaTeX package.
14202  The 
14203 \family sans
14204 varwidth
14205 \family default
14206  package provides a variable-width minipage, whose resulting width is the
14207  width of its contents (if this does not exceed the specified maximum width).
14208  The inset has two optional arguments which can be added by placing the
14209  cursor inside the minipage and entering 
14210 \family sans
14211 Insert\SpecialChar menuseparator
14212 Vert.
14213 \begin_inset space \thinspace{}
14214 \end_inset
14215
14216 Adjustment
14217 \family default
14218  (
14219 \family typewriter
14220 c|t|b
14221 \family default
14222 ) or 
14223 \family sans
14224 Insert\SpecialChar menuseparator
14225 Max.
14226 \begin_inset space \thinspace{}
14227 \end_inset
14228
14229 Width
14230 \family default
14231  (defaults to 
14232 \family typewriter
14233
14234 \backslash
14235 linewidth
14236 \family default
14237 ).
14238  See 
14239 \family sans
14240 File\SpecialChar menuseparator
14241 Open Example\SpecialChar menuseparator
14242 Variable-width Minipages
14243 \family default
14244 .
14245  
14246 \end_layout
14247
14248 \begin_layout Section
14249
14250 \change_inserted 564990737 1671884699
14251
14252 \lang american
14253 Fixes & Hacks
14254 \end_layout
14255
14256 \begin_layout Subsection
14257
14258 \change_inserted 564990737 1671884699
14259
14260 \lang american
14261 Fix Computer Modern Fonts
14262 \end_layout
14263
14264 \begin_layout Standard
14265
14266 \change_inserted 564990737 1671884699
14267
14268 \lang american
14269 This module uses the 
14270 \family sans
14271 fix-cm
14272 \family default
14273  package to improve the appearance of Computer Modern fonts and make them
14274  available with arbitrary sizes.
14275  See the 
14276 \begin_inset CommandInset href
14277 LatexCommand href
14278 name "fix-cm documentation"
14279 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14280 literal "false"
14281
14282 \end_inset
14283
14284 .
14285  
14286 \end_layout
14287
14288 \begin_layout Subsection
14289
14290 \change_inserted 564990737 1671884699
14291
14292 \lang american
14293 \SpecialChar LaTeX
14294  Kernel Fixes (Obsolete)
14295 \end_layout
14296
14297 \begin_layout Standard
14298
14299 \change_inserted 564990737 1671884699
14300
14301 \lang american
14302 This module loads the \SpecialChar LaTeX
14303  package 
14304 \family sans
14305 fixltx2e
14306 \family default
14307  which contains some bug fixes for \SpecialChar LaTeX
14308 .
14309  If you use this module your typeset document may look different when you
14310  process it, depending on the respective version of 
14311 \family sans
14312 fixltx2e
14313 \family default
14314 .
14315  
14316 \end_layout
14317
14318 \begin_layout Paragraph
14319
14320 \change_inserted 564990737 1671884699
14321
14322 \lang american
14323 Note:
14324 \end_layout
14325
14326 \begin_layout Standard
14327
14328 \change_inserted 564990737 1671884699
14329
14330 \lang american
14331 recent \SpecialChar LaTeX
14332  kernels (as of 2015/01/01) include the functionality of 
14333 \family sans
14334 fixltx2e
14335 \family default
14336 , so the 
14337 \family sans
14338 fixltx2e
14339 \family default
14340  module is obsolete with newer \SpecialChar LaTeX
14341  distributions.
14342  
14343 \end_layout
14344
14345 \begin_layout Subsection
14346
14347 \change_inserted 564990737 1671884699
14348
14349 \lang american
14350 Minimalistic Insets
14351 \end_layout
14352
14353 \begin_layout Standard
14354
14355 \change_inserted 564990737 1671884699
14356
14357 \lang american
14358 This module redefines several insets (Index, Branch, URL) as being Minimalistic.
14359 \end_layout
14360
14361 \begin_layout Subsection
14362
14363 \change_inserted 564990737 1671884699
14364
14365 \lang american
14366 Title and Preamble Hacks
14367 \end_layout
14368
14369 \begin_layout Standard
14370
14371 \change_inserted 564990737 1671884699
14372
14373 \lang american
14374 This module provides two new paragraph styles: 
14375 \end_layout
14376
14377 \begin_layout Enumerate
14378
14379 \change_inserted 564990737 1671884699
14380
14381 \family sans
14382 \lang american
14383 In Preamble
14384 \family default
14385  which puts whatever is entered into it into the preamble.
14386  This can be used, if one wishes, to include preamble code in the body of
14387  a LyX document.
14388  
14389 \end_layout
14390
14391 \begin_layout Enumerate
14392
14393 \change_inserted 564990737 1671884699
14394
14395 \family sans
14396 \lang american
14397 In Title
14398 \family default
14399  which that will put its contents into the body of the LaTeX document, but
14400  before 
14401 \family typewriter
14402
14403 \backslash
14404 maketitle
14405 \family default
14406  is issued.
14407  This is useful for making branches and notes in title-related material.
14408  (However, if you put these in a Standard layout, this signals to LyX to
14409  output 
14410 \family typewriter
14411
14412 \backslash
14413 maketitle
14414 \family default
14415 , which may then come too early.)
14416 \end_layout
14417
14418 \begin_layout Section
14419
14420 \change_inserted 564990737 1672081439
14421
14422 \lang american
14423 Floats & captions
14424 \end_layout
14425
14426 \begin_layout Subsection
14427
14428 \change_inserted 564990737 1672081439
14429
14430 \lang american
14431 Algorithm2e Float
14432 \end_layout
14433
14434 \begin_layout Standard
14435
14436 \change_inserted 564990737 1672081439
14437
14438 \lang american
14439 This module uses the 
14440 \family sans
14441 algorithm2e
14442 \family default
14443  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14444  Use the Algorithm paragraph style to enter and indent the algorithm.
14445  See the 
14446 \begin_inset CommandInset href
14447 LatexCommand href
14448 name "algorithm2e documentation"
14449 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14450 literal "false"
14451
14452 \end_inset
14453
14454 .
14455 \end_layout
14456
14457 \begin_layout Subsection
14458
14459 \change_inserted 564990737 1672081439
14460
14461 \lang american
14462 Bilingual Captions AKA Multilingual Captions
14463 \end_layout
14464
14465 \begin_layout Standard
14466
14467 \change_inserted 564990737 1672081439
14468
14469 \lang american
14470 This module provides the paragraph style 
14471 \family sans
14472 Caption
14473 \begin_inset space ~
14474 \end_inset
14475
14476 setup
14477 \family default
14478  with which to typeset multilingual captions.
14479  Within this paragraph style 
14480 \family sans
14481 Insert\SpecialChar menuseparator
14482 Language
14483 \family default
14484  allows you to enter the desired language using one of the babel names.
14485  See 
14486 \family sans
14487 File\SpecialChar menuseparator
14488 Open Example\SpecialChar menuseparator
14489 Multilingual Captions
14490 \family default
14491  and 
14492 \family sans
14493 Help\SpecialChar menuseparator
14494 Specific Manuals\SpecialChar menuseparator
14495 Multilingual Captions
14496 \family default
14497  further information on its use.
14498 \end_layout
14499
14500 \begin_layout Subsection
14501
14502 \change_inserted 564990737 1672081439
14503
14504 \lang american
14505 Number Figures by Section
14506 \end_layout
14507
14508 \begin_layout Standard
14509
14510 \change_inserted 564990737 1672081439
14511
14512 \lang american
14513 This module resets the figure number at section start and prepends the section
14514  number to the figure number, as in “Figure 2.1.” (By default book and report
14515  document classes number by Chapter and article document classes have a
14516  single sequence.) 
14517 \end_layout
14518
14519 \begin_layout Subsection
14520
14521 \change_inserted 564990737 1672081439
14522
14523 \lang american
14524 Number Tables by Section
14525 \end_layout
14526
14527 \begin_layout Standard
14528
14529 \change_inserted 564990737 1672081439
14530
14531 \lang american
14532 This module resets the table number at section start and prepends the section
14533  number to the table number, as in “Table 2.1.” (By default book and report
14534  document classes number by Chapter and article document classes have a
14535  single sequence.) 
14536 \end_layout
14537
14538 \begin_layout Section
14539
14540 \change_inserted 564990737 1672081439
14541
14542 \lang american
14543 Foot- and Endnotes
14544 \end_layout
14545
14546 \begin_layout Subsection
14547
14548 \change_inserted 564990737 1672081439
14549
14550 \lang american
14551 Endnotes (Basic)
14552 \end_layout
14553
14554 \begin_layout Standard
14555
14556 \change_inserted 564990737 1672081439
14557
14558 \lang american
14559 This module adds an endnote inset, in addition to footnotes.
14560  This uses the 
14561 \family sans
14562 endnotes
14563 \family default
14564  package, which has some limitations but works with older LaTeX distributions
14565  as well.
14566  Use 
14567 \family sans
14568 Insert\SpecialChar menuseparator
14569 Custom Inset\SpecialChar menuseparator
14570 Endnote
14571 \family default
14572  to insert an endnote and 
14573 \family sans
14574 Insert\SpecialChar menuseparator
14575 List/Contents/References\SpecialChar menuseparator
14576 Endnotes
14577 \family default
14578  to insert the endnotes list where you want the endnotes to appear.
14579  See also 
14580 \family sans
14581 Help\SpecialChar menuseparator
14582 Embedded\SpecialChar menuseparator
14583  Objects\SpecialChar menuseparator
14584 Notes\SpecialChar menuseparator
14585 Footnotes
14586 \family default
14587 .
14588 \end_layout
14589
14590 \begin_layout Subsection
14591
14592 \change_inserted 564990737 1672081439
14593
14594 \lang american
14595 Endnotes (Extended)
14596 \end_layout
14597
14598 \begin_layout Standard
14599
14600 \change_inserted 564990737 1672081439
14601
14602 \lang american
14603 This module adds an endnote inset, in addition to footnotes.
14604  This uses the 
14605 \family sans
14606 enotez
14607 \family default
14608  package which is more powerful and customizable than the 
14609 \family sans
14610 endnotes
14611 \family default
14612  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14613  Use 
14614 \family sans
14615 Insert\SpecialChar menuseparator
14616 Custom Inset\SpecialChar menuseparator
14617 Endnote
14618 \family default
14619  to insert an endnote and 
14620 \family sans
14621 Insert\SpecialChar menuseparator
14622 List/Contents/References\SpecialChar menuseparator
14623 Endnotes
14624 \family default
14625  to insert the endnotes list where you want the endnotes to appear.
14626  See also 
14627 \family sans
14628 Help\SpecialChar menuseparator
14629 Embedded\SpecialChar menuseparator
14630  Objects\SpecialChar menuseparator
14631 Notes\SpecialChar menuseparator
14632 Footnotes
14633 \family default
14634 .
14635 \end_layout
14636
14637 \begin_layout Subsection
14638
14639 \change_inserted 564990737 1672081439
14640
14641 \lang american
14642 Footnotes as Endnotes (Basic)
14643 \end_layout
14644
14645 \begin_layout Standard
14646
14647 \change_inserted 564990737 1672081439
14648
14649 \lang american
14650 This module sets all footnotes as endnotes.
14651  This uses the 
14652 \family sans
14653 endnotes
14654 \family default
14655  package, which has some limitations but works with older LaTeX distributions
14656  as well.
14657  Use 
14658 \family sans
14659 Insert\SpecialChar menuseparator
14660 List/Contents/References\SpecialChar menuseparator
14661 Endnotes
14662 \family default
14663  to insert the endnotes list where you want the endnotes to appear.
14664  See also 
14665 \family sans
14666 Help\SpecialChar menuseparator
14667 Embedded\SpecialChar menuseparator
14668  Objects\SpecialChar menuseparator
14669 Notes\SpecialChar menuseparator
14670 Footnotes
14671 \family default
14672 .
14673 \end_layout
14674
14675 \begin_layout Subsection
14676
14677 \change_inserted 564990737 1672081439
14678
14679 \lang american
14680 Footnotes as Endnotes (Extended)
14681 \end_layout
14682
14683 \begin_layout Standard
14684
14685 \change_inserted 564990737 1672081439
14686
14687 \lang american
14688 This module sets all footnotes as endnotes.
14689  This uses the 
14690 \family sans
14691 enotez
14692 \family default
14693  package which is more powerful and customizable than then 
14694 \family sans
14695 endnotes
14696 \family default
14697  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14698  Use 
14699 \family sans
14700 Insert\SpecialChar menuseparator
14701 List/Contents/References\SpecialChar menuseparator
14702 Endnotes
14703 \family default
14704  to insert the endnotes list where you want the endnotes to appear.
14705  See also 
14706 \family sans
14707 Help\SpecialChar menuseparator
14708 Embedded\SpecialChar menuseparator
14709  Objects\SpecialChar menuseparator
14710 Notes\SpecialChar menuseparator
14711 Footnotes
14712 \family default
14713 .
14714 \end_layout
14715
14716 \begin_layout Section
14717
14718 \change_inserted 564990737 1672081439
14719
14720 \lang american
14721 Leisure, Sports and Music
14722 \end_layout
14723
14724 \begin_layout Subsection
14725
14726 \change_inserted 564990737 1672081439
14727
14728 \lang american
14729 Chess Board
14730 \end_layout
14731
14732 \begin_layout Standard
14733
14734 \change_inserted 564990737 1672081439
14735
14736 \lang american
14737 This module provides support for the 
14738 \family sans
14739 chessboard
14740 \family default
14741  package to print chess games.
14742  See 
14743 \family sans
14744 File\SpecialChar menuseparator
14745 Open Example\SpecialChar menuseparator
14746 Articles\SpecialChar menuseparator
14747 Chess
14748 \family default
14749  where you will find 
14750 \family sans
14751 Game 1
14752 \family default
14753  and 
14754 \family sans
14755 Game 2
14756 \family default
14757  and the 
14758 \begin_inset CommandInset href
14759 LatexCommand href
14760 name "chessboard documentation"
14761 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14762 literal "false"
14763
14764 \end_inset
14765
14766 .
14767 \end_layout
14768
14769 \begin_layout Subsection
14770
14771 \change_inserted 564990737 1672081439
14772
14773 \lang american
14774 Lilypond Music Notation
14775 \end_layout
14776
14777 \begin_layout Standard
14778
14779 \change_inserted 564990737 1672081439
14780
14781 \lang american
14782 This module provides an inset via 
14783 \family sans
14784 \bar under
14785 I
14786 \bar default
14787 nsert\SpecialChar menuseparator
14788 Custom Inset\SpecialChar menuseparator
14789 Lilypond
14790 \family default
14791  in which to enter code for the LilyPond music editor.
14792  It will then be processed in the output.
14793  See 
14794 \family sans
14795 Help\SpecialChar menuseparator
14796 Specific Manuals\SpecialChar menuseparator
14797 Lilypond
14798 \family default
14799  and 
14800 \family sans
14801 File\SpecialChar menuseparator
14802 Open Example\SpecialChar menuseparator
14803 Modules\SpecialChar menuseparator
14804 Lilypond Book
14805 \family default
14806 .
14807  It cannot be used if the modules 
14808 \family sans
14809 Rnw
14810 \begin_inset space \thinspace{}
14811 \end_inset
14812
14813 (knitr) or Sweave
14814 \family default
14815  have been loaded.
14816 \end_layout
14817
14818 \begin_layout Section
14819
14820 \change_inserted 564990737 1672138150
14821
14822 \lang american
14823 List enhancements
14824 \end_layout
14825
14826 \begin_layout Subsection
14827
14828 \change_inserted 564990737 1672138150
14829
14830 \lang american
14831 Customizable Lists
14832 \begin_inset CommandInset label
14833 LatexCommand label
14834 name "subsec:Customizable-Lists"
14835
14836 \end_inset
14837
14838
14839 \end_layout
14840
14841 \begin_layout Standard
14842
14843 \change_inserted 564990737 1672138150
14844
14845 \lang american
14846 This module uses the
14847 \family sans
14848  enumitem
14849 \family default
14850  package to enable the customization of various list environments.
14851 \end_layout
14852
14853 \begin_layout Subsubsection
14854
14855 \change_inserted 564990737 1672138150
14856
14857 \lang american
14858 Custom Enumerate Lists
14859 \end_layout
14860
14861 \begin_layout Standard
14862 \noindent
14863
14864 \change_inserted 564990737 1672138150
14865
14866 \lang american
14867 The default numbering of numbered lists can be changed by adding an optional
14868  argument (menu 
14869 \family sans
14870 \bar under
14871 I
14872 \bar default
14873 nsert\SpecialChar menuseparator
14874
14875 \bar under
14876 S
14877 \bar default
14878 hort Title
14879 \family default
14880 ) to the first item of each level in the list.
14881  There you add the command
14882 \end_layout
14883
14884 \begin_layout Standard
14885
14886 \change_inserted 564990737 1672138150
14887
14888 \family sans
14889 \lang american
14890 label=
14891 \backslash
14892 roman{enumi}
14893 \end_layout
14894
14895 \begin_layout Standard
14896
14897 \change_inserted 564990737 1672138150
14898
14899 \lang american
14900 in \SpecialChar TeX
14901  Code (shortcut 
14902 \begin_inset Info
14903 type  "shortcut"
14904 arg   "ert-insert"
14905 \end_inset
14906
14907 ).
14908 \end_layout
14909
14910 \begin_layout Standard
14911
14912 \change_inserted 564990737 1672138150
14913
14914 \family sans
14915 \lang american
14916 enumi
14917 \family default
14918  is the first level counter of the enumeration.
14919  To change the numbering for the list sublevels, replace the “
14920 \family sans
14921 i
14922 \family default
14923 ” in the command by the small Roman numeral of the level (
14924 \family sans
14925 enumi
14926 \family default
14927
14928 \family sans
14929 enumii
14930 \family default
14931
14932 \family sans
14933 enumiii
14934 \family default
14935
14936 \family sans
14937 enumiv
14938 \family default
14939 ).
14940 \end_layout
14941
14942 \begin_layout Standard
14943
14944 \change_inserted 564990737 1672138150
14945
14946 \lang american
14947 The command 
14948 \family sans
14949
14950 \backslash
14951 roman
14952 \family default
14953  outputs the counter as a small Roman numeral.
14954  For capital Roman numerals replace 
14955 \family sans
14956
14957 \backslash
14958 roman
14959 \family default
14960  with 
14961 \family sans
14962
14963 \backslash
14964 Roman
14965 \family default
14966  in the command above.
14967  For Arabic numerals use 
14968 \family sans
14969
14970 \backslash
14971 arabic
14972 \family default
14973 .
14974  To 
14975 \begin_inset Quotes eld
14976 \end_inset
14977
14978 number
14979 \begin_inset Quotes erd
14980 \end_inset
14981
14982  items with capital or small Latin letters use 
14983 \family sans
14984
14985 \backslash
14986 Alph
14987 \family default
14988  or 
14989 \family sans
14990
14991 \backslash
14992 alph
14993 \family default
14994 , respectively.
14995 \end_layout
14996
14997 \begin_layout Standard
14998 \noindent
14999
15000 \change_inserted 564990737 1672138150
15001
15002 \lang american
15003 \begin_inset Note Greyedout
15004 status collapsed
15005
15006 \begin_layout Plain Layout
15007
15008 \change_inserted 564990737 1672138150
15009
15010 \series bold
15011 \lang american
15012 Note:
15013 \series default
15014  You can only number 26
15015 \begin_inset space ~
15016 \end_inset
15017
15018 items with Latin letters, because this numbering is limited to single letters.
15019 \end_layout
15020
15021 \end_inset
15022
15023
15024 \end_layout
15025
15026 \begin_layout Standard
15027
15028 \change_inserted 564990737 1672138150
15029
15030 \lang american
15031 Here is a list with custom numbering:
15032 \end_layout
15033
15034 \begin_layout Enumerate
15035
15036 \change_inserted 564990737 1672138150
15037
15038 \lang american
15039 \begin_inset Argument 1
15040 status collapsed
15041
15042 \begin_layout Plain Layout
15043
15044 \change_inserted 564990737 1672138150
15045
15046 \lang american
15047 \begin_inset ERT
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051
15052 \change_inserted 564990737 1672138150
15053
15054 label=
15055 \backslash
15056 #
15057 \backslash
15058 Alph{enumi}
15059 \backslash
15060 #
15061 \end_layout
15062
15063 \end_inset
15064
15065
15066 \change_unchanged
15067
15068 \end_layout
15069
15070 \end_inset
15071
15072 Level 1
15073 \begin_inset Separator latexpar
15074 \end_inset
15075
15076
15077 \end_layout
15078
15079 \begin_deeper
15080 \begin_layout Enumerate
15081
15082 \change_inserted 564990737 1672138150
15083
15084 \lang american
15085 \begin_inset Argument 1
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089
15090 \change_inserted 564990737 1672138150
15091
15092 \lang american
15093 \begin_inset ERT
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097
15098 \change_inserted 564990737 1672138150
15099
15100 label=
15101 \backslash
15102 Alph{enumi}.
15103 \backslash
15104 arabic{enumii}
15105 \end_layout
15106
15107 \end_inset
15108
15109
15110 \change_unchanged
15111
15112 \end_layout
15113
15114 \end_inset
15115
15116 Level 2
15117 \end_layout
15118
15119 \begin_layout Enumerate
15120
15121 \change_inserted 564990737 1672138150
15122
15123 \lang american
15124 Level 2
15125 \begin_inset Separator latexpar
15126 \end_inset
15127
15128
15129 \end_layout
15130
15131 \begin_deeper
15132 \begin_layout Enumerate
15133
15134 \change_inserted 564990737 1672138150
15135
15136 \lang american
15137 \begin_inset Argument 1
15138 status collapsed
15139
15140 \begin_layout Plain Layout
15141
15142 \change_inserted 564990737 1672138150
15143
15144 \lang american
15145 \begin_inset ERT
15146 status collapsed
15147
15148 \begin_layout Plain Layout
15149
15150 \change_inserted 564990737 1672138150
15151
15152 label=
15153 \backslash
15154 bf{
15155 \backslash
15156 arabic{enumiii}}
15157 \end_layout
15158
15159 \end_inset
15160
15161
15162 \change_unchanged
15163
15164 \end_layout
15165
15166 \end_inset
15167
15168 Level 3
15169 \begin_inset Separator latexpar
15170 \end_inset
15171
15172
15173 \end_layout
15174
15175 \begin_deeper
15176 \begin_layout Enumerate
15177
15178 \change_inserted 564990737 1672138150
15179
15180 \lang american
15181 \begin_inset Argument 1
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185
15186 \change_inserted 564990737 1672138150
15187
15188 \lang american
15189 \begin_inset ERT
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193
15194 \change_inserted 564990737 1672138150
15195
15196 label=
15197 \backslash
15198 emph{
15199 \backslash
15200 roman{enumiv})}
15201 \end_layout
15202
15203 \end_inset
15204
15205
15206 \change_unchanged
15207
15208 \end_layout
15209
15210 \end_inset
15211
15212 Level 4
15213 \end_layout
15214
15215 \end_deeper
15216 \end_deeper
15217 \end_deeper
15218 \begin_layout Standard
15219
15220 \change_inserted 564990737 1672138150
15221
15222 \lang american
15223 For this list these commands were used:
15224 \end_layout
15225
15226 \begin_layout Standard
15227 \noindent
15228
15229 \change_inserted 564990737 1672138150
15230
15231 \family sans
15232 \lang american
15233 label=
15234 \backslash
15235 #
15236 \backslash
15237 Alph{enumi}
15238 \backslash
15239 #
15240 \begin_inset Newline newline
15241 \end_inset
15242
15243 label=
15244 \backslash
15245 Alph{enumi}.
15246 \backslash
15247 arabic{enumii}
15248 \begin_inset Newline newline
15249 \end_inset
15250
15251 label=
15252 \backslash
15253 bf{
15254 \backslash
15255 arabic{enumiii}}
15256 \begin_inset Newline newline
15257 \end_inset
15258
15259 label=
15260 \backslash
15261 emph{
15262 \backslash
15263 roman{enumiv})}
15264 \end_layout
15265
15266 \begin_layout Standard
15267
15268 \change_inserted 564990737 1672138150
15269
15270 \lang american
15271 where the command 
15272 \family sans
15273
15274 \backslash
15275 emph{}
15276 \family default
15277  makes the label emphasized and 
15278 \family sans
15279
15280 \backslash
15281 bf{}
15282 \family default
15283  makes it bold.
15284 \end_layout
15285
15286 \begin_layout Standard
15287
15288 \change_inserted 564990737 1672138150
15289
15290 \lang american
15291 \begin_inset Note Greyedout
15292 status collapsed
15293
15294 \begin_layout Plain Layout
15295
15296 \change_inserted 564990737 1672138150
15297
15298 \series bold
15299 \lang american
15300 Note:
15301 \series default
15302  When you change the label of a list level, it will be used for all following
15303  lists until you change the definition.
15304 \end_layout
15305
15306 \end_inset
15307
15308
15309 \end_layout
15310
15311 \begin_layout Standard
15312
15313 \change_inserted 564990737 1672138150
15314
15315 \lang british
15316 \begin_inset ERT
15317 status open
15318
15319 \begin_layout Plain Layout
15320
15321 \change_inserted 564990737 1672138150
15322
15323
15324 \backslash
15325 renewcommand{
15326 \backslash
15327 labelenumi}{
15328 \backslash
15329 thesection.
15330 \backslash
15331 arabic{enumi}}
15332 \end_layout
15333
15334 \end_inset
15335
15336
15337 \end_layout
15338
15339 \begin_layout Subsubsection
15340
15341 \change_inserted 564990737 1672138150
15342
15343 \lang american
15344 Numbered Paragraphs in Reports
15345 \end_layout
15346
15347 \begin_layout Enumerate
15348
15349 \change_inserted 564990737 1672138213
15350
15351 \lang american
15352 Official reports often include numbered paragraphs; you can achieve this
15353  with a variation on the approach outlined in the footnote
15354 \begin_inset space ~
15355 \end_inset
15356
15357
15358 \begin_inset CommandInset ref
15359 LatexCommand ref
15360 reference "fn:If-you-really"
15361 plural "false"
15362 caps "false"
15363 noprefix "false"
15364
15365 \end_inset
15366
15367 .
15368  Replace 
15369 \family sans
15370 item
15371 \family default
15372  in each command with 
15373 \family sans
15374 enum
15375 \family default
15376 .
15377 \end_layout
15378
15379 \begin_layout Enumerate
15380
15381 \change_inserted 564990737 1672138150
15382
15383 \lang american
15384 These numbered paragraphs were generated by inserting the \SpecialChar TeX
15385  Code
15386 \begin_inset Separator latexpar
15387 \end_inset
15388
15389
15390 \end_layout
15391
15392 \begin_deeper
15393 \begin_layout Standard
15394
15395 \change_inserted 564990737 1672138150
15396
15397 \family sans
15398 \lang american
15399
15400 \backslash
15401 renewcommand{
15402 \backslash
15403 labelenumi}{
15404 \backslash
15405 thesection.
15406 \backslash
15407 arabic{enumi}}
15408 \end_layout
15409
15410 \begin_layout Standard
15411
15412 \change_inserted 564990737 1672138150
15413
15414 \lang american
15415 before the start of the section; 
15416 \family sans
15417
15418 \backslash
15419 thesection
15420 \family default
15421  uses the \SpecialChar LaTeX
15422  section counter to generate the first part of the number.
15423 \end_layout
15424
15425 \end_deeper
15426 \begin_layout Enumerate
15427
15428 \change_inserted 564990737 1672138150
15429
15430 \lang american
15431 I have ignored the subsection heading in this example because, with paragraphs
15432  numbered in this way, subsections are less likely to be used.
15433 \end_layout
15434
15435 \begin_layout Subsubsection
15436
15437 \change_inserted 564990737 1672138150
15438
15439 \lang american
15440 Resumed Enumeration
15441 \end_layout
15442
15443 \begin_layout Standard
15444
15445 \change_inserted 564990737 1672138150
15446
15447 \lang british
15448 \begin_inset ERT
15449 status open
15450
15451 \begin_layout Plain Layout
15452
15453 \change_inserted 564990737 1672138150
15454
15455
15456 \backslash
15457 renewcommand{
15458 \backslash
15459 labelenumi}{
15460 \backslash
15461 arabic{enumi}}
15462 \end_layout
15463
15464 \end_inset
15465
15466
15467 \end_layout
15468
15469 \begin_layout Standard
15470
15471 \change_inserted 564990737 1672138150
15472
15473 \lang american
15474 Enumerations can be resumed after intermediate paragraphs:
15475 \end_layout
15476
15477 \begin_layout Enumerate
15478
15479 \change_inserted 564990737 1672138150
15480
15481 \lang american
15482 \begin_inset Argument 1
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486
15487 \change_inserted 564990737 1672138150
15488
15489 \lang american
15490 \begin_inset ERT
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494
15495 \change_inserted 564990737 1672138150
15496
15497 label=
15498 \backslash
15499 arabic{enumi}.
15500 \end_layout
15501
15502 \end_inset
15503
15504
15505 \change_unchanged
15506
15507 \end_layout
15508
15509 \end_inset
15510
15511 first
15512 \begin_inset Note Note
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516
15517 \change_inserted 564990737 1672138150
15518
15519 \lang american
15520 goes back to default numbering
15521 \end_layout
15522
15523 \end_inset
15524
15525
15526 \end_layout
15527
15528 \begin_layout Enumerate
15529
15530 \change_inserted 564990737 1672138150
15531
15532 \lang american
15533 second
15534 \end_layout
15535
15536 \begin_layout Standard
15537
15538 \change_inserted 564990737 1672138150
15539
15540 \lang american
15541 regular text
15542 \end_layout
15543
15544 \begin_layout Enumerate-Resume
15545
15546 \change_inserted 564990737 1672138150
15547
15548 \lang american
15549 resumed
15550 \end_layout
15551
15552 \begin_layout Standard
15553
15554 \change_inserted 564990737 1672138150
15555
15556 \lang american
15557 To resume an enumeration, use the style 
15558 \family sans
15559 Enumerate-Resume
15560 \family default
15561 .
15562  Its numbering appears in blue within \SpecialChar LyX
15563  to indicate that it is a resumed
15564  list and that the numbering will not be correct in \SpecialChar LyX
15565 , but in the output.
15566 \end_layout
15567
15568 \begin_layout Standard
15569
15570 \change_inserted 564990737 1672138150
15571
15572 \lang american
15573 \begin_inset Note Greyedout
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577
15578 \change_inserted 564990737 1672138150
15579
15580 \series bold
15581 \lang american
15582 Note:
15583 \series default
15584  If there is no previous enumeration to resume, you will get a \SpecialChar LaTeX
15585  error.
15586 \end_layout
15587
15588 \end_inset
15589
15590
15591 \end_layout
15592
15593 \begin_layout Standard
15594
15595 \change_inserted 564990737 1672138150
15596
15597 \lang american
15598 Perhaps you might want to resume the list with a different number from the
15599  next one.
15600  Or you want to start a new enumeration with a defined number.
15601  This is possible by adding an optional argument to the first list item
15602  of a normal enumeration.
15603  There, insert the command
15604 \end_layout
15605
15606 \begin_layout Standard
15607
15608 \change_inserted 564990737 1672138150
15609
15610 \family sans
15611 \lang american
15612 start=number
15613 \end_layout
15614
15615 \begin_layout Standard
15616
15617 \change_inserted 564990737 1672138150
15618
15619 \lang american
15620 where 
15621 \family sans
15622 number
15623 \family default
15624  is the number with which you want to resume the list.
15625  An example:
15626 \end_layout
15627
15628 \begin_layout Enumerate
15629
15630 \change_inserted 564990737 1672138150
15631
15632 \lang american
15633 first item
15634 \end_layout
15635
15636 \begin_layout Enumerate
15637
15638 \change_inserted 564990737 1672138150
15639
15640 \lang american
15641 second item
15642 \end_layout
15643
15644 \begin_layout Standard
15645
15646 \change_inserted 564990737 1672138150
15647
15648 \lang american
15649 Enumeration starting at a given value:
15650 \end_layout
15651
15652 \begin_layout Enumerate
15653
15654 \change_inserted 564990737 1672138150
15655
15656 \lang american
15657 \begin_inset Argument 1
15658 status open
15659
15660 \begin_layout Plain Layout
15661
15662 \change_inserted 564990737 1672138150
15663
15664 \lang american
15665 \begin_inset ERT
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669
15670 \change_inserted 564990737 1672138150
15671
15672 start=4
15673 \end_layout
15674
15675 \end_inset
15676
15677
15678 \change_unchanged
15679
15680 \end_layout
15681
15682 \end_inset
15683
15684 This enumeration starts at 4
15685 \end_layout
15686
15687 \begin_layout Subsubsection
15688
15689 \change_inserted 564990737 1672138150
15690
15691 \lang american
15692 List Spacing
15693 \begin_inset Index idx
15694 range none
15695 pageformat default
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699
15700 \change_inserted 564990737 1672138150
15701
15702 \lang american
15703 Lists ! Spacing
15704 \change_unchanged
15705
15706 \end_layout
15707
15708 \end_inset
15709
15710
15711 \end_layout
15712
15713 \begin_layout Standard
15714
15715 \change_inserted 564990737 1672138150
15716
15717 \lang american
15718 In some cases you might want less or more vertical space between the items
15719  of a list.
15720  For example if the default space is too much in your opinion in this case:
15721 \end_layout
15722
15723 \begin_layout Itemize
15724
15725 \change_inserted 564990737 1672138150
15726
15727 \lang american
15728 A bullet list
15729 \end_layout
15730
15731 \begin_layout Itemize
15732
15733 \change_inserted 564990737 1672138150
15734
15735 \lang american
15736 with standard spacing 
15737 \end_layout
15738
15739 \begin_layout Standard
15740
15741 \change_inserted 564990737 1672138150
15742
15743 \lang american
15744 You can decrease the space by adding an optional argument to the first item
15745  of the list.
15746  Add there the command 
15747 \family sans
15748 nolistsep
15749 \family default
15750  to get no additional list space like in this example:
15751 \end_layout
15752
15753 \begin_layout Itemize
15754
15755 \change_inserted 564990737 1672138150
15756
15757 \lang american
15758 \begin_inset Argument 1
15759 status open
15760
15761 \begin_layout Plain Layout
15762
15763 \change_inserted 564990737 1672138150
15764
15765 \lang american
15766 \begin_inset ERT
15767 status collapsed
15768
15769 \begin_layout Plain Layout
15770
15771 \change_inserted 564990737 1672138150
15772
15773 nolistsep
15774 \end_layout
15775
15776 \end_inset
15777
15778
15779 \change_unchanged
15780
15781 \end_layout
15782
15783 \end_inset
15784
15785 A bullet list
15786 \end_layout
15787
15788 \begin_layout Itemize
15789
15790 \change_inserted 564990737 1672138150
15791
15792 \lang american
15793 without additional
15794 \end_layout
15795
15796 \begin_layout Itemize
15797
15798 \change_inserted 564990737 1672138150
15799
15800 \lang american
15801 vertical space
15802 \end_layout
15803
15804 \begin_layout Standard
15805
15806 \change_inserted 564990737 1672138150
15807
15808 \lang american
15809 To add space you can use several other commands provided by the 
15810 \family sans
15811 enumitem
15812 \family default
15813
15814 \begin_inset Index idx
15815 range none
15816 pageformat default
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820
15821 \change_inserted 564990737 1672138150
15822
15823 \lang american
15824 \SpecialChar LaTeX
15825 -packages ! enumitem
15826 \change_unchanged
15827
15828 \end_layout
15829
15830 \end_inset
15831
15832  package.
15833  For more information see the 
15834 \begin_inset CommandInset href
15835 LatexCommand href
15836 name "enumitem documentation"
15837 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15838 literal "false"
15839
15840 \end_inset
15841
15842 .
15843 \end_layout
15844
15845 \begin_layout Standard
15846
15847 \change_inserted 564990737 1672138150
15848
15849 \lang american
15850 There are also many commands available to change the horizontal spacing
15851  and indentation.
15852  Here is an example where the indentation was changed to that of the paragraphs
15853  in the document and the label separation was set to 2
15854 \begin_inset space \thinspace{}
15855 \end_inset
15856
15857 cm so that the number is in the page margin:
15858 \end_layout
15859
15860 \begin_layout Enumerate
15861
15862 \change_inserted 564990737 1672138150
15863
15864 \lang american
15865 \begin_inset Argument 1
15866 status open
15867
15868 \begin_layout Plain Layout
15869
15870 \change_inserted 564990737 1672138150
15871
15872 \lang american
15873 \begin_inset ERT
15874 status collapsed
15875
15876 \begin_layout Plain Layout
15877
15878 \change_inserted 564990737 1672138150
15879
15880 labelindent=
15881 \backslash
15882 parindent, labelsep=2cm
15883 \end_layout
15884
15885 \end_inset
15886
15887
15888 \change_unchanged
15889
15890 \end_layout
15891
15892 \end_inset
15893
15894 An enumeration
15895 \end_layout
15896
15897 \begin_layout Enumerate
15898
15899 \change_inserted 564990737 1672138150
15900
15901 \lang american
15902 with negative indentation
15903 \end_layout
15904
15905 \begin_layout Subsubsection
15906
15907 \change_inserted 564990737 1672138150
15908
15909 \lang american
15910 Further Customization
15911 \begin_inset Index idx
15912 range none
15913 pageformat default
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917
15918 \change_inserted 564990737 1672138150
15919
15920 \lang american
15921 Lists ! Customization
15922 \change_unchanged
15923
15924 \end_layout
15925
15926 \end_inset
15927
15928
15929 \end_layout
15930
15931 \begin_layout Standard
15932
15933 \change_inserted 564990737 1672138150
15934
15935 \lang american
15936 You can also change the style of description lists.
15937  The command
15938 \end_layout
15939
15940 \begin_layout Standard
15941
15942 \change_inserted 564990737 1672138150
15943
15944 \family sans
15945 \lang american
15946 font=definition
15947 \end_layout
15948
15949 \begin_layout Standard
15950
15951 \change_inserted 564990737 1672138150
15952
15953 \lang american
15954 changes the description label font, the command
15955 \end_layout
15956
15957 \begin_layout Standard
15958
15959 \change_inserted 564990737 1672138150
15960
15961 \family sans
15962 \lang american
15963 style=definitio
15964 \family default
15965 \series bold
15966 n
15967 \end_layout
15968
15969 \begin_layout Standard
15970
15971 \change_inserted 564990737 1672138150
15972
15973 \lang american
15974 sets the list style.
15975 \end_layout
15976
15977 \begin_layout Standard
15978
15979 \change_inserted 564990737 1672138150
15980
15981 \lang american
15982 An example where the command
15983 \end_layout
15984
15985 \begin_layout Standard
15986
15987 \change_inserted 564990737 1672138150
15988
15989 \family sans
15990 \lang american
15991 font=
15992 \backslash
15993 itshape, style=nextline
15994 \end_layout
15995
15996 \begin_layout Standard
15997
15998 \change_inserted 564990737 1672138150
15999
16000 \lang american
16001 is used:
16002 \end_layout
16003
16004 \begin_layout Description
16005
16006 \change_inserted 564990737 1672138150
16007
16008 \lang american
16009 Ionizing
16010 \begin_inset space ~
16011 \end_inset
16012
16013 radiation: 
16014 \begin_inset Argument 1
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018
16019 \change_inserted 564990737 1672138150
16020
16021 \lang american
16022 \begin_inset ERT
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026
16027 \change_inserted 564990737 1672138150
16028
16029 labelindent=0pt, labelsep=1cm, font=
16030 \backslash
16031 itshape, style=nextline
16032 \end_layout
16033
16034 \end_inset
16035
16036
16037 \change_unchanged
16038
16039 \end_layout
16040
16041 \end_inset
16042
16043 Ionizing radiation consists of particles or electromagnetic waves that are
16044  energetic enough to detach electrons from atoms or molecules, therefore
16045  ionizing them.
16046 \end_layout
16047
16048 \begin_layout Description
16049
16050 \change_inserted 564990737 1672138150
16051
16052 \lang american
16053 Reference
16054 \begin_inset space ~
16055 \end_inset
16056
16057 counting: In computer science, reference counting is a technique of storing
16058  the number of references, pointers, or handles to a resource such as an
16059  object, block of memory, disk space or other resource.
16060 \end_layout
16061
16062 \begin_layout Standard
16063
16064 \change_inserted 564990737 1672138150
16065
16066 \lang american
16067 There are many more commands and features provided by the 
16068 \family sans
16069 enumitem
16070 \family default
16071
16072 \begin_inset Index idx
16073 range none
16074 pageformat default
16075 status collapsed
16076
16077 \begin_layout Plain Layout
16078
16079 \change_inserted 564990737 1672138150
16080
16081 \lang american
16082 \SpecialChar LaTeX
16083 -packages ! enumitem
16084 \change_unchanged
16085
16086 \end_layout
16087
16088 \end_inset
16089
16090  package.
16091  For more information see the 
16092 \begin_inset CommandInset href
16093 LatexCommand href
16094 name "enumitem documentation"
16095 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
16096 literal "false"
16097
16098 \end_inset
16099
16100 .
16101 \end_layout
16102
16103 \begin_layout Subsection
16104
16105 \change_inserted 564990737 1672138150
16106
16107 \series bold
16108 \lang american
16109 Paragraph Lists
16110 \end_layout
16111
16112 \begin_layout Standard
16113
16114 \change_inserted 564990737 1672138150
16115
16116 \lang american
16117 This module uses the package 
16118 \family sans
16119 paralist
16120 \family default
16121  to provide nine new list environments.
16122  Itemized and enumerated lists can be typeset within paragraphs, as paragraphs
16123  and in a compact version.
16124  Most environments have optional arguments to format the labels.
16125  Additionally, the \SpecialChar LaTeX
16126  list environments itemize and enumerate are extended
16127  to use a similar optional argument.
16128  For further details see 
16129 \family sans
16130 File\SpecialChar menuseparator
16131 Open Example\SpecialChar menuseparator
16132 Modules\SpecialChar menuseparator
16133 Paragraph Lists (paralist)
16134 \family default
16135
16136 \family sans
16137 Help\SpecialChar menuseparator
16138 Specific Manuals\SpecialChar menuseparator
16139 Paralist
16140 \family default
16141  and the 
16142 \begin_inset CommandInset href
16143 LatexCommand href
16144 name "paralist documentation"
16145 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
16146 literal "false"
16147
16148 \end_inset
16149
16150 .
16151 \end_layout
16152
16153 \begin_layout Section
16154
16155 \change_inserted 564990737 1672161542
16156
16157 \lang american
16158 Literate Programming 
16159 \end_layout
16160
16161 \begin_layout Subsection
16162
16163 \change_inserted 564990737 1672161542
16164
16165 \lang american
16166 Noweb
16167 \end_layout
16168
16169 \begin_layout Standard
16170
16171 \change_inserted 564990737 1672161542
16172
16173 \lang american
16174 This module allows the use of Noweb as a literate programming tool.
16175  The files and the documentation for Noweb can be obtained from 
16176 \begin_inset CommandInset href
16177 LatexCommand href
16178 name "CTAN"
16179 target "https://www.ctan.org/pkg/noweb"
16180 literal "false"
16181
16182 \end_inset
16183
16184 .
16185  Literate programming is described in section
16186 \begin_inset space ~
16187 \end_inset
16188
16189
16190 \begin_inset CommandInset ref
16191 LatexCommand ref
16192 reference "sec:Literate-Programming"
16193
16194 \end_inset
16195
16196  and there are three example files: 
16197 \family sans
16198 File\SpecialChar menuseparator
16199 Open Example\SpecialChar menuseparator
16200 Modules\SpecialChar menuseparator
16201 Noweb
16202 \family default
16203
16204 \family sans
16205 File\SpecialChar menuseparator
16206 Open Example\SpecialChar menuseparator
16207 Modules\SpecialChar menuseparator
16208 Noweb Listerrors
16209 \family default
16210  and 
16211 \family sans
16212 File\SpecialChar menuseparator
16213 Open Example\SpecialChar menuseparator
16214 Modules\SpecialChar menuseparator
16215 Noweb2\SpecialChar LyX
16216
16217 \family default
16218 .
16219 \end_layout
16220
16221 \begin_layout Subsection
16222
16223 \change_inserted 564990737 1672161542
16224
16225 \lang american
16226 Rnw (knitr)
16227 \end_layout
16228
16229 \begin_layout Standard
16230
16231 \change_inserted 564990737 1672161542
16232
16233 \lang american
16234 This module uses the 
16235 \family typewriter
16236 knitr
16237 \family default
16238  and 
16239 \family sans
16240 includernw
16241 \family default
16242  packages.
16243  The
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248
16249 \change_inserted 564990737 1672161542
16250
16251 \lang american
16252 knitr
16253 \end_layout
16254
16255 \end_inset
16256
16257  package in R for dynamic report generation has to be installed for this
16258  module to work: 
16259 \begin_inset Flex Code
16260 status collapsed
16261
16262 \begin_layout Plain Layout
16263
16264 \change_inserted 564990737 1672161542
16265
16266 \lang american
16267 install.packages(“knitr”)
16268 \end_layout
16269
16270 \end_inset
16271
16272 .
16273  
16274 \end_layout
16275
16276 \begin_layout Paragraph
16277
16278 \change_inserted 564990737 1672161542
16279
16280 \lang american
16281 Note 
16282 \end_layout
16283
16284 \begin_layout Standard
16285
16286 \change_inserted 564990737 1672161542
16287
16288 \lang american
16289 it depends on R >= 2.14.1.
16290  For more info see 
16291 \begin_inset Flex URL
16292 status collapsed
16293
16294 \begin_layout Plain Layout
16295
16296 \change_inserted 564990737 1672161542
16297
16298 http://yihui.name/knitr
16299 \end_layout
16300
16301 \end_inset
16302
16303 .
16304  
16305 \end_layout
16306
16307 \begin_layout Standard
16308
16309 \change_inserted 564990737 1672161542
16310
16311 \lang american
16312 The package 
16313 \family sans
16314 includernw
16315 \family default
16316  also has to be installed.
16317  It cannot be used if the modules 
16318 \family sans
16319 LilyPond
16320 \begin_inset space ~
16321 \end_inset
16322
16323 Book
16324 \family default
16325  or 
16326 \family sans
16327 Sweave
16328 \family default
16329  are loaded.
16330  See 
16331 \family sans
16332 Help\SpecialChar menuseparator
16333 Specific Manuals\SpecialChar menuseparator
16334 Knitr
16335 \family default
16336
16337 \family sans
16338 File\SpecialChar menuseparator
16339 Open Example\SpecialChar menuseparator
16340 Modules\SpecialChar menuseparator
16341 Rnw (knitr)
16342 \family default
16343  and section
16344 \begin_inset space ~
16345 \end_inset
16346
16347
16348 \begin_inset CommandInset ref
16349 LatexCommand ref
16350 reference "sec:Literate-Programming"
16351
16352 \end_inset
16353
16354  for information about literate programming.
16355 \end_layout
16356
16357 \begin_layout Subsection
16358
16359 \change_inserted 564990737 1672161542
16360
16361 \lang american
16362 Sweave
16363 \end_layout
16364
16365 \begin_layout Standard
16366
16367 \change_inserted 564990737 1672161542
16368
16369 \lang american
16370 This module allows the use of the statistical language S/R as a literate
16371  programming tool.
16372  It requires the 
16373 \family sans
16374 includernw
16375 \family default
16376  and 
16377 \family sans
16378 fancyvrb
16379 \family default
16380  packages.
16381  Both 
16382 \begin_inset CommandInset href
16383 LatexCommand href
16384 name "includernw"
16385 target "https://www.ctan.org/pkg/includernw"
16386 literal "false"
16387
16388 \end_inset
16389
16390  and 
16391 \begin_inset CommandInset href
16392 LatexCommand href
16393 name "fancyvrb"
16394 target "https://www.ctan.org/pkg/fancyvrb"
16395 literal "false"
16396
16397 \end_inset
16398
16399  are available from CTAN.
16400  It cannot be used if the module 
16401 \family sans
16402 LilyPond
16403 \begin_inset space ~
16404 \end_inset
16405
16406 Book
16407 \family default
16408  has been loaded.
16409  See 
16410 \family sans
16411 Help\SpecialChar menuseparator
16412 Specific Manuals\SpecialChar menuseparator
16413 Sweave,
16414 \family default
16415  
16416 \family sans
16417 File\SpecialChar menuseparator
16418 Open Example\SpecialChar menuseparator
16419 Modules\SpecialChar menuseparator
16420 Sweave
16421 \family default
16422  and section
16423 \begin_inset space ~
16424 \end_inset
16425
16426
16427 \begin_inset CommandInset ref
16428 LatexCommand ref
16429 reference "sec:Literate-Programming"
16430
16431 \end_inset
16432
16433  for information about literate programming.
16434 \end_layout
16435
16436 \begin_layout Section
16437 Multiple Text Columns
16438 \end_layout
16439
16440 \begin_layout Standard
16441 This feature is independent of the option 
16442 \family sans
16443 Two-column document
16444 \family default
16445  in the document settings under 
16446 \family sans
16447 Text Layout
16448 \family default
16449 .
16450  If you want to have 2
16451 \begin_inset space ~
16452 \end_inset
16453
16454 columns for the whole document, it is recommended to use the 
16455 \family sans
16456 Two-column document
16457 \family default
16458  option.
16459  For all other cases use this feature.
16460 \end_layout
16461
16462 \begin_layout Standard
16463 To use multiple text columns in your document, you have to load the module
16464  
16465 \family sans
16466 Multiple Columns
16467 \family default
16468  (menu 
16469 \family sans
16470 Document\SpecialChar menuseparator
16471 Settings\SpecialChar menuseparator
16472 Modules
16473 \family default
16474 ) and must have the \SpecialChar LaTeX
16475 -package 
16476 \begin_inset Flex Code
16477 status collapsed
16478
16479 \begin_layout Plain Layout
16480 multicol
16481 \end_layout
16482
16483 \end_inset
16484
16485  installed.
16486 \end_layout
16487
16488 \begin_layout Standard
16489 Footnotes within multiple columns will be placed at the bottom of the page
16490  and not under each column.
16491  Within the different columns you can use everything, with the limitation
16492  that for floats you need to use the float option 
16493 \family sans
16494 Span columns
16495 \family default
16496 .
16497 \end_layout
16498
16499 \begin_layout Subsection
16500 Basics
16501 \end_layout
16502
16503 \begin_layout Standard
16504 If you want to have 2
16505 \begin_inset space ~
16506 \end_inset
16507
16508 columns in your text, insert a multicolumn inset via the menu 
16509 \family sans
16510 Insert\SpecialChar menuseparator
16511 Custom
16512 \begin_inset space ~
16513 \end_inset
16514
16515 Insets\SpecialChar menuseparator
16516 Multiple
16517 \begin_inset space ~
16518 \end_inset
16519
16520 Columns
16521 \family default
16522  where the columns should start.
16523  Write all text that should be printed in 2
16524 \begin_inset space ~
16525 \end_inset
16526
16527 columns into this inset.
16528 \end_layout
16529
16530 \begin_layout Standard
16531 Here is an example:
16532 \end_layout
16533
16534 \begin_layout Standard
16535 \noindent
16536 \begin_inset Flex Multiple Columns
16537 status open
16538
16539 \begin_layout Plain Layout
16540 \noindent
16541
16542 \series bold
16543 \size small
16544 The Adventure of the Empty House
16545 \series default
16546
16547 \begin_inset Newline newline
16548 \end_inset
16549
16550 by Sir Arthur Conan Doyle
16551 \end_layout
16552
16553 \begin_layout Plain Layout
16554
16555 \size small
16556 It was in the spring of the year 1894 that all London was interested, and
16557  the fashionable world dismayed, by the murder of the Honourable Ronald
16558  Adair under most unusual and inexplicable circumstances.
16559  The public has already learned those particulars of the crime which came
16560  out in the police investigation, but a good deal was suppressed upon that
16561  occasion, since the case for the prosecution was so overwhelmingly strong
16562  that it was not necessary to bring forward all the facts.
16563  Only now, at the end of nearly ten years, am I allowed to supply those
16564  missing links which make up the whole of that remarkable chain.
16565  The crime was of interest in itself, but that interest was as nothing to
16566  me compared to the inconceivable sequel, which afforded me the greatest
16567  shock and surprise of any event in my adventurous life.
16568  Even now, after this long interval, I find myself thrilling as I think
16569  of it, and feeling once more that sudden flood of joy, amazement, and increduli
16570 ty which utterly submerged my mind.
16571  Let me say to that public, which has shown some interest in those glimpses
16572  which I have occasionally given them of the thoughts and actions of a very
16573  remarkable man, that they are not to blame me if I have not shared my knowledge
16574  with them, for I should have considered it my first duty to do so, had
16575  I not been barred by a positive prohibition from his own lips, which was
16576  only withdrawn upon the third of last month.
16577 \end_layout
16578
16579 \end_inset
16580
16581
16582 \end_layout
16583
16584 \begin_layout Standard
16585 To get 3 or more columns, set the cursor into the multicolumn inset and
16586  use the menu 
16587 \family sans
16588 Insert\SpecialChar menuseparator
16589 Number
16590 \begin_inset space ~
16591 \end_inset
16592
16593 of
16594 \begin_inset space ~
16595 \end_inset
16596
16597 Columns
16598 \family default
16599 .
16600  The number of the desired columns is written into that inset (for 3
16601 \begin_inset space ~
16602 \end_inset
16603
16604 columns write 
16605 \begin_inset Quotes eld
16606 \end_inset
16607
16608 3
16609 \begin_inset Quotes erd
16610 \end_inset
16611
16612 ).
16613 \begin_inset Newline newline
16614 \end_inset
16615
16616 Here is an example with 3
16617 \begin_inset space ~
16618 \end_inset
16619
16620 columns:
16621 \end_layout
16622
16623 \begin_layout Standard
16624 \begin_inset Flex Multiple Columns
16625 status open
16626
16627 \begin_layout Plain Layout
16628
16629 \size footnotesize
16630 \begin_inset Argument 1
16631 status open
16632
16633 \begin_layout Plain Layout
16634
16635 3
16636 \end_layout
16637
16638 \end_inset
16639
16640 It can be imagined that my close intimacy with Sherlock Holmes had interested
16641  me deeply in crime, and that after his disappearance I never failed to
16642  read with care the various problems which came before the public.
16643  And I even attempted, more than once, for my own private satisfaction,
16644  to employ his methods in their solution, though with indifferent success.
16645  There was none, however, which appealed to me like this tragedy of Ronald
16646  Adair.
16647  As I read the evidence at the inquest, which led up to a verdict of willful
16648  murder against some person or persons unknown, I realized more clearly
16649  than I had ever done the loss which the community had sustained by the
16650  death of Sherlock Holmes.
16651  There were points about this strange business which would, I was sure,
16652  have specially appealed to him, and the efforts of the police would have
16653  been supplemented, or more probably anticipated, by the trained observation
16654  and the alert mind of the first criminal agent in Europe.
16655  All day, as I drove upon my round, I turned over the case in my mind and
16656  found no explanation which appeared to me to be adequate.
16657  At the risk of telling a twice-told tale, I will recapitulate the facts
16658  as they were known to the public at the conclusion of the inquest.
16659 \end_layout
16660
16661 \end_inset
16662
16663
16664 \end_layout
16665
16666 \begin_layout Standard
16667 You can have up to 10
16668 \begin_inset space ~
16669 \end_inset
16670
16671 columns if you want to, but that might not be very pleasant for the readers
16672  of your document.
16673 \end_layout
16674
16675 \begin_layout Standard
16676 \begin_inset Newpage newpage
16677 \end_inset
16678
16679
16680 \end_layout
16681
16682 \begin_layout Subsection
16683 Columns inside Columns
16684 \end_layout
16685
16686 \begin_layout Standard
16687 You can also have columns inside columns:
16688 \end_layout
16689
16690 \begin_layout Standard
16691 \begin_inset Flex Multiple Columns
16692 status open
16693
16694 \begin_layout Plain Layout
16695
16696 \size footnotesize
16697 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
16698  at that time governor of one of the Australian colonies.
16699  Adair's mother had returned from Australia to undergo the operation for
16700  cataract, and she, her son Ronald, and her daughter Hilda were living together
16701  at 427 Park Lane.
16702 \end_layout
16703
16704 \begin_layout Plain Layout
16705 \begin_inset Flex Multiple Columns
16706 status open
16707
16708 \begin_layout Plain Layout
16709
16710 \size footnotesize
16711 The youth moved in the best society
16712 \begin_inset space ~
16713 \end_inset
16714
16715 – had, so far as was known, no enemies and no particular vices.
16716  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
16717  had been broken off by mutual consent some months before, and there was
16718  no sign that it had left any very profound feeling behind it.
16719  For the rest {sic} the man's life moved in a narrow and conventional circle,
16720  for his habits were quiet and his nature unemotional.
16721  Yet it was upon this easy-going young aristocrat that death came, in most
16722  strange and unexpected form, between the hours of ten and eleven-twenty
16723  on the night of March 30, 1894.
16724 \end_layout
16725
16726 \end_inset
16727
16728
16729 \end_layout
16730
16731 \begin_layout Plain Layout
16732
16733 \size footnotesize
16734 Ronald Adair was fond of cards
16735 \begin_inset space ~
16736 \end_inset
16737
16738 – playing continually, but never for such stakes as would hurt him.
16739  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
16740  It was shown that, after dinner on the day of his death, he had played
16741  a rubber of whist at the latter club.
16742  He had also played there in the afternoon.
16743
16744 \size default
16745  
16746 \size footnotesize
16747 The evidence of those who had played with him
16748 \begin_inset space ~
16749 \end_inset
16750
16751 – Mr.
16752  Murray, Sir John Hardy, and Colonel Moran
16753 \begin_inset space ~
16754 \end_inset
16755
16756 – showed that the game was whist, and that there was a fairly equal fall
16757  of the cards.
16758  Adair might have lost five pounds, but not more.
16759  His fortune was a considerable one, and such a loss could not in any way
16760  affect him.
16761  He had played nearly every day at one club or other, but he was a cautious
16762  player, and usually rose a winner.
16763  It came out in evidence that, in partnership with Colonel Moran, he had
16764  actually won as much as four hundred and twenty pounds in a sitting, some
16765  weeks before, from Godfrey Milner and Lord Balmoral.
16766  So much for his recent history as it came out at the inquest.
16767 \end_layout
16768
16769 \end_inset
16770
16771
16772 \end_layout
16773
16774 \begin_layout Subsection
16775 Advanced Examples
16776 \end_layout
16777
16778 \begin_layout Standard
16779 The examples in this section show some more special features of multiple
16780  columns.
16781 \end_layout
16782
16783 \begin_layout Standard
16784 For more features of multiple columns, have a look at the 
16785 \begin_inset CommandInset href
16786 LatexCommand href
16787 name "documentation"
16788 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
16789 literal "false"
16790
16791 \end_inset
16792
16793  of the \SpecialChar LaTeX
16794 -package 
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799 multicol
16800 \end_layout
16801
16802 \end_inset
16803
16804 .
16805 \end_layout
16806
16807 \begin_layout Subsubsection
16808 Preface
16809 \end_layout
16810
16811 \begin_layout Standard
16812 To add a preface text for multiple columns, set the cursor into the multicolumn
16813  inset and use the menu 
16814 \family sans
16815 Insert\SpecialChar menuseparator
16816 Preface
16817 \family default
16818 .
16819  Write your preface text into that inset.
16820 \begin_inset Newline newline
16821 \end_inset
16822
16823 This is an example with some preface text:
16824 \end_layout
16825
16826 \begin_layout Standard
16827 \begin_inset VSpace bigskip
16828 \end_inset
16829
16830
16831 \end_layout
16832
16833 \begin_layout Standard
16834 \begin_inset Flex Multiple Columns
16835 status open
16836
16837 \begin_layout Plain Layout
16838 \begin_inset Argument 2
16839 status open
16840
16841 \begin_layout Plain Layout
16842 And the story continues and continues and continues and continues\SpecialChar ldots
16843
16844 \end_layout
16845
16846 \end_inset
16847
16848
16849 \size small
16850 On the evening of the crime, he returned from the club exactly at ten.
16851  His mother and sister were out spending the evening with a relation.
16852  The servant deposed that she heard him enter the front room on the second
16853  floor, generally used as his sitting-room.
16854  She had lit a fire there, and as it smoked she had opened the window.
16855  No sound was heard from the room until eleven-twenty, the hour of the return
16856  of Lady Maynooth and her daughter.
16857  Desiring to say good-night, she attempted to enter her son's room.
16858  The door was locked on the inside, and no answer could be got to their
16859  cries and knocking.
16860  Help was obtained, and the door forced.
16861  The unfortunate young man was found lying near the table.
16862  His head had been horribly mutilated by an expanding revolver bullet, but
16863  no weapon of any sort was to be found in the room.
16864 \end_layout
16865
16866 \end_inset
16867
16868
16869 \end_layout
16870
16871 \begin_layout Standard
16872 You can also use a section heading as the preface if you use a section command
16873  as \SpecialChar TeX
16874  Code.
16875  For example the command
16876 \end_layout
16877
16878 \begin_layout LyX-Code
16879
16880 \backslash
16881 subsection{subsection title}
16882 \end_layout
16883
16884 \begin_layout Standard
16885 creates a subsection.
16886  In this example the preface is a subsubsection:
16887 \end_layout
16888
16889 \begin_layout Standard
16890 \begin_inset Flex Multiple Columns
16891 status open
16892
16893 \begin_layout Plain Layout
16894 \begin_inset Argument 2
16895 status open
16896
16897 \begin_layout Plain Layout
16898 \begin_inset ERT
16899 status collapsed
16900
16901 \begin_layout Plain Layout
16902
16903
16904 \backslash
16905 subsubsection{
16906 \end_layout
16907
16908 \end_inset
16909
16910 This is a subsubsection heading as a preface
16911 \begin_inset ERT
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915
16916 }
16917 \end_layout
16918
16919 \end_inset
16920
16921
16922 \end_layout
16923
16924 \end_inset
16925
16926
16927 \size small
16928 A minute examination of the circumstances served only to make the case more
16929  complex.
16930  In the first place, no reason could be given why the young man should have
16931  fastened the door upon the inside.
16932  There was the possibility that the murderer had done this, and had afterwards
16933  escaped by the window.
16934  The drop was at least twenty feet, however, and a bed of crocuses in full
16935  bloom lay beneath.
16936  Neither the flowers nor the earth showed any sign of having been disturbed,
16937  nor were there any marks upon the narrow strip of grass which separated
16938  the house from the road.
16939  Apparently, therefore, it was the young man himself who had fastened the
16940  door.
16941  But how did he come by his death? No one could have climbed up to the window
16942  without leaving traces.
16943  Suppose a man had fired through the window, he would indeed be a remarkable
16944  shot who could with a revolver inflict so deadly a wound.
16945  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
16946  a hundred yards of the house.
16947  No one had heard a shot.
16948 \end_layout
16949
16950 \end_inset
16951
16952
16953 \end_layout
16954
16955 \begin_layout Standard
16956 If there is less vertical space than 6
16957 \begin_inset space ~
16958 \end_inset
16959
16960 text lines is left on the page at the beginning of the multiple columns,
16961  a page break will be inserted before the multiple columns.
16962  Depending on the number of lines of the preface text, you might want to
16963  change this space.
16964  This is done by setting the cursor into the mulitcolumn inset behind the
16965  preface (if there is any) and using the menu 
16966 \family sans
16967 Insert\SpecialChar menuseparator
16968 Space
16969 \begin_inset space ~
16970 \end_inset
16971
16972 Before
16973 \begin_inset space ~
16974 \end_inset
16975
16976 Page
16977 \begin_inset space ~
16978 \end_inset
16979
16980 Break
16981 \family default
16982 .
16983  Insert into that inset the amount of space like e.
16984 \begin_inset space \thinspace{}
16985 \end_inset
16986
16987 g.
16988 \begin_inset space \space{}
16989 \end_inset
16990
16991
16992 \begin_inset Quotes eld
16993 \end_inset
16994
16995 5cm
16996 \begin_inset Quotes erd
16997 \end_inset
16998
16999 .
17000 \begin_inset Newline newline
17001 \end_inset
17002
17003 In this example the space is set to 7
17004 \begin_inset space ~
17005 \end_inset
17006
17007 text lines by using 
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 7
17013 \backslash
17014 baselineskip
17015 \end_layout
17016
17017 \end_inset
17018
17019  (where the command 
17020 \begin_inset Flex Code
17021 status collapsed
17022
17023 \begin_layout Plain Layout
17024
17025 \backslash
17026 baselineskip
17027 \end_layout
17028
17029 \end_inset
17030
17031  needs to be inserted as \SpecialChar TeX
17032  code):
17033 \end_layout
17034
17035 \begin_layout Standard
17036 \begin_inset Flex Multiple Columns
17037 status open
17038
17039 \begin_layout Plain Layout
17040 \begin_inset Argument 3
17041 status open
17042
17043 \begin_layout Plain Layout
17044 7
17045 \begin_inset ERT
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049
17050
17051 \backslash
17052 baselineskip
17053 \end_layout
17054
17055 \end_inset
17056
17057
17058 \end_layout
17059
17060 \end_inset
17061
17062
17063 \size small
17064 On the evening of the crime, he returned from the club exactly at ten.
17065  His mother and sister were out spending the evening with a relation.
17066  The servant deposed that she heard him enter the front room on the second
17067  floor, generally used as his sitting-room.
17068  She had lit a fire there, and as it smoked she had opened the window.
17069  No sound was heard from the room until eleven-twenty, the hour of the return
17070  of Lady Maynooth and her daughter.
17071  Desiring to say good-night, she attempted to enter her son's room.
17072  The door was locked on the inside, and no answer could be got to their
17073  cries and knocking.
17074  Help was obtained, and the door forced.
17075  The unfortunate young man was found lying near the table.
17076  His head had been horribly mutilated by an expanding revolver bullet, but
17077  no weapon of any sort was to be found in the room.
17078 \end_layout
17079
17080 \end_inset
17081
17082
17083 \end_layout
17084
17085 \begin_layout Subsubsection
17086 Surrounding Space
17087 \end_layout
17088
17089 \begin_layout Standard
17090 The amount of space before and after multiple columns can be changed by
17091  changing the length 
17092 \begin_inset Flex Code
17093 status collapsed
17094
17095 \begin_layout Plain Layout
17096
17097 \backslash
17098 multicolsep
17099 \end_layout
17100
17101 \end_inset
17102
17103 .
17104  For example the command
17105 \end_layout
17106
17107 \begin_layout LyX-Code
17108
17109 \backslash
17110 setlength{
17111 \backslash
17112 multicolsep}{3cm}
17113 \end_layout
17114
17115 \begin_layout Standard
17116 in \SpecialChar TeX
17117  Code changes its value to 3
17118 \begin_inset space \thinspace{}
17119 \end_inset
17120
17121 cm.
17122  The change must be made before the multiple columns' start.
17123  The predefined value is 13
17124 \begin_inset space \thinspace{}
17125 \end_inset
17126
17127 pt.
17128 \end_layout
17129
17130 \begin_layout Standard
17131 For this example 
17132 \begin_inset Flex Code
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136
17137 \backslash
17138 multicolsep
17139 \end_layout
17140
17141 \end_inset
17142
17143  was set to 2.5
17144 \begin_inset space \thinspace{}
17145 \end_inset
17146
17147 cm:
17148 \end_layout
17149
17150 \begin_layout Standard
17151 \begin_inset ERT
17152 status open
17153
17154 \begin_layout Plain Layout
17155
17156
17157 \backslash
17158 setlength{
17159 \backslash
17160 multicolsep}{2.5cm}
17161 \end_layout
17162
17163 \end_inset
17164
17165
17166 \end_layout
17167
17168 \begin_layout Standard
17169 \begin_inset Flex Multiple Columns
17170 status open
17171
17172 \begin_layout Plain Layout
17173
17174 \size small
17175 All day I turned these facts over in my mind, endeavouring to hit upon some
17176  theory which could reconcile them all, and to find that line of least resistanc
17177 e which my poor friend had declared to be the starting-point of every investigat
17178 ion.
17179  I confess that I made little progress.
17180  In the evening I strolled across the Park, and found myself about six o'clock
17181  at the Oxford Street end of Park Lane.
17182  A group of loafers upon the pavements, all staring up at a particular window,
17183  directed me to the house which I had come to see.
17184  A tall, thin man with coloured glasses, whom I strongly suspected of being
17185  a plain-clothes detective, was pointing out some theory of his own, while
17186  the others crowded round to listen to what he said.
17187  I got as near him as I could, but his observations seemed to me to be absurd,
17188  so I withdrew again in some disgust.
17189  As I did so I struck against an elderly, deformed man, who had been behind
17190  me, and I knocked down several books which he was carrying.
17191 \end_layout
17192
17193 \end_inset
17194
17195
17196 \end_layout
17197
17198 \begin_layout Standard
17199 \begin_inset Note Greyedout
17200 status open
17201
17202 \begin_layout Plain Layout
17203
17204 \series bold
17205 Note:
17206 \series default
17207  The values you set with 
17208 \begin_inset Flex Code
17209 status collapsed
17210
17211 \begin_layout Plain Layout
17212
17213 \backslash
17214 setlength
17215 \end_layout
17216
17217 \end_inset
17218
17219  will be used for all following multiple columns until you change them again.
17220 \end_layout
17221
17222 \end_inset
17223
17224
17225 \end_layout
17226
17227 \begin_layout Standard
17228 \begin_inset ERT
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232
17233
17234 \backslash
17235 setlength{
17236 \backslash
17237 multicolsep}{13pt}
17238 \end_layout
17239
17240 \end_inset
17241
17242
17243 \begin_inset Note Note
17244 status collapsed
17245
17246 \begin_layout Plain Layout
17247 go back to the default
17248 \end_layout
17249
17250 \end_inset
17251
17252
17253 \end_layout
17254
17255 \begin_layout Standard
17256 \begin_inset Newpage newpage
17257 \end_inset
17258
17259
17260 \end_layout
17261
17262 \begin_layout Subsubsection
17263 Column Breaks
17264 \end_layout
17265
17266 \begin_layout Standard
17267 A column break can be forced by inserting the command 
17268 \begin_inset Flex Code
17269 status collapsed
17270
17271 \begin_layout Plain Layout
17272
17273 \backslash
17274 columnbreak{}
17275 \end_layout
17276
17277 \end_inset
17278
17279  as \SpecialChar TeX
17280  Code to that position in the text where the column should be broken.
17281  Note that this leads in most cases to whitespace in the text.
17282 \begin_inset Newline newline
17283 \end_inset
17284
17285 Here is an example:
17286 \end_layout
17287
17288 \begin_layout Standard
17289 \begin_inset Flex Multiple Columns
17290 status open
17291
17292 \begin_layout Plain Layout
17293
17294 \size small
17295 \begin_inset Quotes eld
17296 \end_inset
17297
17298 You're surprised to see me, sir,
17299 \begin_inset Quotes erd
17300 \end_inset
17301
17302  said he, in a strange, croaking voice.
17303 \end_layout
17304
17305 \begin_layout Plain Layout
17306
17307 \size small
17308 I acknowledged that I was.
17309 \end_layout
17310
17311 \begin_layout Plain Layout
17312
17313 \size small
17314 \begin_inset Quotes eld
17315 \end_inset
17316
17317 Well, I've a conscience, sir, and when I chanced to see you go into this
17318  house, as I came hobbling after you, I thought to myself, I'll just step
17319  in and see that kind gentleman, and tell him that if I was a bit gruff
17320  in my manner there was not any harm meant, and that I am much obliged to
17321  him for picking up my books.
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 You make too much of a trifle,
17335 \begin_inset Quotes erd
17336 \end_inset
17337
17338  said I.
17339  
17340 \begin_inset Quotes eld
17341 \end_inset
17342
17343 May I ask how you knew who I was?
17344 \begin_inset Quotes erd
17345 \end_inset
17346
17347  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
17348 \begin_inset ERT
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352
17353
17354 \backslash
17355 columnbreak{}
17356 \end_layout
17357
17358 \end_inset
17359
17360
17361 \end_layout
17362
17363 \begin_layout Plain Layout
17364
17365 \size small
17366 \begin_inset Quotes eld
17367 \end_inset
17368
17369 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
17370  you'll find my little bookshop at the corner of Church Street, and very
17371  happy to see you, I am sure.
17372  Maybe you collect yourself, sir.
17373  Here's 
17374 \noun on
17375 British
17376 \begin_inset space ~
17377 \end_inset
17378
17379 Birds
17380 \noun default
17381 , and 
17382 \noun on
17383 Catullus
17384 \noun default
17385 , and 
17386 \noun on
17387 The Holy War
17388 \noun default
17389
17390 \begin_inset space ~
17391 \end_inset
17392
17393 – a bargain, every one of them.
17394  With five volumes you could just fill that gap on that second shelf.
17395  It looks untidy, does it not, sir?
17396 \begin_inset Quotes erd
17397 \end_inset
17398
17399
17400 \end_layout
17401
17402 \end_inset
17403
17404
17405 \end_layout
17406
17407 \begin_layout Subsubsection
17408 Column Separation
17409 \end_layout
17410
17411 \begin_layout Standard
17412 The width of the columns is automatically calculated, but you can modify
17413  the space between the columns.
17414  This is done by changing the length 
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419
17420 \backslash
17421 columnsep
17422 \end_layout
17423
17424 \end_inset
17425
17426 .
17427  Its predefined value is 10
17428 \begin_inset space \thinspace{}
17429 \end_inset
17430
17431 pt.
17432  Here is an example where 
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437
17438 \backslash
17439 columnsep
17440 \end_layout
17441
17442 \end_inset
17443
17444  is set to 3
17445 \begin_inset space \thinspace{}
17446 \end_inset
17447
17448 cm:
17449 \end_layout
17450
17451 \begin_layout Standard
17452 \begin_inset ERT
17453 status open
17454
17455 \begin_layout Plain Layout
17456
17457
17458 \backslash
17459 setlength{
17460 \backslash
17461 columnsep}{3cm}
17462 \end_layout
17463
17464 \end_inset
17465
17466
17467 \end_layout
17468
17469 \begin_layout Standard
17470 \begin_inset Flex Multiple Columns
17471 status open
17472
17473 \begin_layout Plain Layout
17474
17475 \size small
17476 My observations of No.
17477 \begin_inset space \space{}
17478 \end_inset
17479
17480 427 Park Lane did little to clear up the problem in which I was interested.
17481  The house was separated from the street by a low wall and railing, the
17482  whole not more than five feet high.
17483  It was perfectly easy, therefore, for anyone to get into the garden, but
17484  the window was entirely inaccessible, since there was no water pipe or
17485  anything which could help the most active man to climb it.
17486  More puzzled than ever, I retraced my steps to Kensington.
17487  I had not been in my study five minutes when the maid entered to say that
17488  a person desired to see me.
17489  To my astonishment it was none other than my strange old book collector,
17490  his sharp, wizened face peering out from a frame of white hair, and his
17491  precious volumes, a dozen of them at least, wedged under his right arm.
17492 \end_layout
17493
17494 \end_inset
17495
17496
17497 \end_layout
17498
17499 \begin_layout Standard
17500 \begin_inset ERT
17501 status collapsed
17502
17503 \begin_layout Plain Layout
17504
17505
17506 \backslash
17507 setlength{
17508 \backslash
17509 columnsep}{10pt}
17510 \end_layout
17511
17512 \end_inset
17513
17514
17515 \begin_inset Note Note
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519 go back to the default
17520 \end_layout
17521
17522 \end_inset
17523
17524
17525 \end_layout
17526
17527 \begin_layout Subsubsection
17528 Vertical Lines
17529 \end_layout
17530
17531 \begin_layout Standard
17532 Between the columns a rule with a width of the length 
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537
17538 \backslash
17539 columnseprule
17540 \end_layout
17541
17542 \end_inset
17543
17544  is placed.
17545  If this rule width is set to 0
17546 \begin_inset space \thinspace{}
17547 \end_inset
17548
17549 pt (this is the default), the rule is suppressed.
17550  In the following example the rule is 2
17551 \begin_inset space \thinspace{}
17552 \end_inset
17553
17554 pt wide:
17555 \end_layout
17556
17557 \begin_layout Standard
17558 \begin_inset ERT
17559 status open
17560
17561 \begin_layout Plain Layout
17562
17563
17564 \backslash
17565 setlength{
17566 \backslash
17567 columnseprule}{2pt}
17568 \end_layout
17569
17570 \end_inset
17571
17572
17573 \end_layout
17574
17575 \begin_layout Standard
17576 \begin_inset Flex Multiple Columns
17577 status open
17578
17579 \begin_layout Plain Layout
17580
17581 \size small
17582 \begin_inset Quotes eld
17583 \end_inset
17584
17585 You're surprised to see me, sir,
17586 \begin_inset Quotes erd
17587 \end_inset
17588
17589  said he, in a strange, croaking voice.
17590 \end_layout
17591
17592 \begin_layout Plain Layout
17593
17594 \size small
17595 I acknowledged that I was.
17596 \end_layout
17597
17598 \begin_layout Plain Layout
17599
17600 \size small
17601 \begin_inset Quotes eld
17602 \end_inset
17603
17604 Well, I've a conscience, sir, and when I chanced to see you go into this
17605  house, as I came hobbling after you, I thought to myself, I'll just step
17606  in and see that kind gentleman, and tell him that if I was a bit gruff
17607  in my manner there was not any harm meant, and that I am much obliged to
17608  him for picking up my books.
17609 \begin_inset Quotes erd
17610 \end_inset
17611
17612
17613 \end_layout
17614
17615 \begin_layout Plain Layout
17616
17617 \size small
17618 \begin_inset Quotes eld
17619 \end_inset
17620
17621 You make too much of a trifle,
17622 \begin_inset Quotes erd
17623 \end_inset
17624
17625  said I.
17626  
17627 \begin_inset Quotes eld
17628 \end_inset
17629
17630 May I ask how you knew who I was?
17631 \begin_inset Quotes erd
17632 \end_inset
17633
17634
17635 \end_layout
17636
17637 \begin_layout Plain Layout
17638
17639 \size small
17640 \begin_inset Quotes eld
17641 \end_inset
17642
17643 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
17644  you'll find my little bookshop at the corner of Church Street, and very
17645  happy to see you, I am sure.
17646  Maybe you collect yourself, sir.
17647  Here's 
17648 \noun on
17649 British
17650 \begin_inset space ~
17651 \end_inset
17652
17653 Birds
17654 \noun default
17655 , and 
17656 \noun on
17657 Catullus
17658 \noun default
17659 , and 
17660 \noun on
17661 The Holy War
17662 \noun default
17663
17664 \begin_inset space ~
17665 \end_inset
17666
17667 – a bargain, every one of them.
17668  With five volumes you could just fill that gap on that second shelf.
17669  It looks untidy, does it not, sir?
17670 \begin_inset Quotes erd
17671 \end_inset
17672
17673
17674 \end_layout
17675
17676 \end_inset
17677
17678
17679 \end_layout
17680
17681 \begin_layout Standard
17682 \begin_inset VSpace defskip
17683 \end_inset
17684
17685
17686 \end_layout
17687
17688 \begin_layout Standard
17689 The rule can be colored by redefining the command 
17690 \begin_inset Flex Code
17691 status collapsed
17692
17693 \begin_layout Plain Layout
17694
17695 \backslash
17696 columnseprulecolor
17697 \end_layout
17698
17699 \end_inset
17700
17701 .
17702  This is done by inserting the command
17703 \end_layout
17704
17705 \begin_layout LyX-Code
17706
17707 \backslash
17708 renewcommand{
17709 \backslash
17710 columnseprulecolor}{
17711 \backslash
17712 color{red}}
17713 \end_layout
17714
17715 \begin_layout Standard
17716 as \SpecialChar TeX
17717  Code before the multicolumn inset.
17718  Replace 
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 red
17724 \end_layout
17725
17726 \end_inset
17727
17728  in this command by a color of your choice.
17729  You can use all pre- and self-defined colors.
17730  See the 
17731 \emph on
17732 EmbeddedObjects
17733 \emph default
17734  manual, section 
17735 \emph on
17736 Colored
17737 \begin_inset space ~
17738 \end_inset
17739
17740 Tables
17741 \emph default
17742  for more information about pre- and self-defined colors.
17743  To go back to the default color insert the command
17744 \end_layout
17745
17746 \begin_layout LyX-Code
17747
17748 \backslash
17749 renewcommand{
17750 \backslash
17751 columnseprulecolor}{
17752 \backslash
17753 normalcolor}
17754 \end_layout
17755
17756 \begin_layout Standard
17757 Here is the example with a cyan rule and 1
17758 \begin_inset space \thinspace{}
17759 \end_inset
17760
17761 cm column separation:
17762 \end_layout
17763
17764 \begin_layout Standard
17765 \begin_inset ERT
17766 status open
17767
17768 \begin_layout Plain Layout
17769
17770
17771 \backslash
17772 setlength{
17773 \backslash
17774 columnsep}{1cm}
17775 \end_layout
17776
17777 \begin_layout Plain Layout
17778
17779
17780 \backslash
17781 renewcommand{
17782 \backslash
17783 columnseprulecolor}{
17784 \backslash
17785 color{cyan}}
17786 \end_layout
17787
17788 \end_inset
17789
17790
17791 \end_layout
17792
17793 \begin_layout Standard
17794 \begin_inset Flex Multiple Columns
17795 status open
17796
17797 \begin_layout Plain Layout
17798
17799 \size small
17800 \begin_inset Quotes eld
17801 \end_inset
17802
17803 You're surprised to see me, sir,
17804 \begin_inset Quotes erd
17805 \end_inset
17806
17807  said he, in a strange, croaking voice.
17808 \end_layout
17809
17810 \begin_layout Plain Layout
17811
17812 \size small
17813 I acknowledged that I was.
17814 \end_layout
17815
17816 \begin_layout Plain Layout
17817
17818 \size small
17819 \begin_inset Quotes eld
17820 \end_inset
17821
17822 Well, I've a conscience, sir, and when I chanced to see you go into this
17823  house, as I came hobbling after you, I thought to myself, I'll just step
17824  in and see that kind gentleman, and tell him that if I was a bit gruff
17825  in my manner there was not any harm meant, and that I am much obliged to
17826  him for picking up my books.
17827 \begin_inset Quotes erd
17828 \end_inset
17829
17830
17831 \end_layout
17832
17833 \begin_layout Plain Layout
17834
17835 \size small
17836 \begin_inset Quotes eld
17837 \end_inset
17838
17839 You make too much of a trifle,
17840 \begin_inset Quotes erd
17841 \end_inset
17842
17843  said I.
17844  
17845 \begin_inset Quotes eld
17846 \end_inset
17847
17848 May I ask how you knew who I was?
17849 \begin_inset Quotes erd
17850 \end_inset
17851
17852
17853 \end_layout
17854
17855 \begin_layout Plain Layout
17856
17857 \size small
17858 \begin_inset Quotes eld
17859 \end_inset
17860
17861 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
17862  you'll find my little bookshop at the corner of Church Street, and very
17863  happy to see you, I am sure.
17864  Maybe you collect yourself, sir.
17865  Here's 
17866 \noun on
17867 British
17868 \begin_inset space ~
17869 \end_inset
17870
17871 Birds
17872 \noun default
17873 , and 
17874 \noun on
17875 Catullus
17876 \noun default
17877 , and 
17878 \noun on
17879 The Holy War
17880 \noun default
17881
17882 \begin_inset space ~
17883 \end_inset
17884
17885 – a bargain, every one of them.
17886  With five volumes you could just fill that gap on that second shelf.
17887  It looks untidy, does it not, sir?
17888 \begin_inset Quotes erd
17889 \end_inset
17890
17891
17892 \end_layout
17893
17894 \end_inset
17895
17896
17897 \end_layout
17898
17899 \begin_layout Standard
17900 \begin_inset ERT
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904
17905
17906 \backslash
17907 setlength{
17908 \backslash
17909 columnseprule}{0pt}
17910 \end_layout
17911
17912 \begin_layout Plain Layout
17913
17914
17915 \backslash
17916 renewcommand{
17917 \backslash
17918 columnseprulecolor}{
17919 \backslash
17920 normalcolor}
17921 \end_layout
17922
17923 \end_inset
17924
17925
17926 \begin_inset Note Note
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 go back to the default
17931 \end_layout
17932
17933 \end_inset
17934
17935
17936 \end_layout
17937
17938 \begin_layout Section
17939
17940 \change_inserted 564990737 1671270380
17941 Paragraph Styles
17942 \end_layout
17943
17944 \begin_layout Subsection
17945
17946 \change_inserted 564990737 1671270398
17947 Custom
17948 \change_deleted 564990737 1671270396
17949 Non-standard
17950 \change_unchanged
17951  Paragraph Shapes
17952 \end_layout
17953
17954 \begin_layout Standard
17955 \noindent
17956 \SpecialChar LaTeX
17957  as well as any other text processor uses by default rectangular paragraphs.
17958  For special cases like for example posters, invitation cards or poems you
17959  can modify the paragraph shape to one of your choice.
17960  This can be done by using the \SpecialChar LaTeX
17961 -package 
17962 \begin_inset Flex Code
17963 status collapsed
17964
17965 \begin_layout Plain Layout
17966 shapepar
17967 \end_layout
17968
17969 \end_inset
17970
17971  which is loaded by using in the document settings the module 
17972 \family sans
17973 Custom paragraph shapes
17974 \family default
17975 .
17976 \end_layout
17977
17978 \begin_layout Subsubsection
17979 Predefined shapes
17980 \end_layout
17981
17982 \begin_layout Standard
17983
17984 \series bold
17985 shapepar
17986 \series default
17987  provides the following shapes:
17988 \end_layout
17989
17990 \begin_layout Standard
17991 \begin_inset Tabular
17992 <lyxtabular version="3" rows="13" columns="3">
17993 <features booktabs="true" islongtable="true" longtabularalignment="center">
17994 <column alignment="left" valignment="middle" width="16col%">
17995 <column alignment="left" valignment="middle" width="40col%">
17996 <column alignment="left" valignment="middle" width="35col%">
17997 <row endhead="true">
17998 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17999 \begin_inset Text
18000
18001 \begin_layout Plain Layout
18002
18003 \series bold
18004 \size small
18005 Name
18006 \end_layout
18007
18008 \end_inset
18009 </cell>
18010 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18011 \begin_inset Text
18012
18013 \begin_layout Plain Layout
18014
18015 \series bold
18016 \size small
18017 Description
18018 \end_layout
18019
18020 \end_inset
18021 </cell>
18022 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18023 \begin_inset Text
18024
18025 \begin_layout Plain Layout
18026
18027 \series bold
18028 \size small
18029 Annotation
18030 \end_layout
18031
18032 \end_inset
18033 </cell>
18034 </row>
18035 <row interlinespace="default">
18036 <cell alignment="left" valignment="top" usebox="none">
18037 \begin_inset Text
18038
18039 \begin_layout Plain Layout
18040
18041 \size small
18042 CDlabel
18043 \end_layout
18044
18045 \end_inset
18046 </cell>
18047 <cell alignment="left" valignment="top" usebox="none">
18048 \begin_inset Text
18049
18050 \begin_layout Plain Layout
18051
18052 \size small
18053 Circle with circular hole (in the size of a CD/DVD)
18054 \end_layout
18055
18056 \end_inset
18057 </cell>
18058 <cell alignment="left" valignment="top" usebox="none">
18059 \begin_inset Text
18060
18061 \begin_layout Plain Layout
18062
18063 \size small
18064 Cannot be scaled, take care there is not too much text
18065 \end_layout
18066
18067 \end_inset
18068 </cell>
18069 </row>
18070 <row interlinespace="default">
18071 <cell alignment="left" valignment="top" usebox="none">
18072 \begin_inset Text
18073
18074 \begin_layout Plain Layout
18075
18076 \size small
18077 Circle
18078 \end_layout
18079
18080 \end_inset
18081 </cell>
18082 <cell alignment="left" valignment="top" usebox="none">
18083 \begin_inset Text
18084
18085 \begin_layout Plain Layout
18086
18087 \size small
18088 Circle
18089 \end_layout
18090
18091 \end_inset
18092 </cell>
18093 <cell alignment="left" valignment="top" usebox="none">
18094 \begin_inset Text
18095
18096 \begin_layout Plain Layout
18097
18098 \size small
18099 Fragile, calculation might fail
18100 \end_layout
18101
18102 \end_inset
18103 </cell>
18104 </row>
18105 <row interlinespace="default">
18106 <cell alignment="left" valignment="top" usebox="none">
18107 \begin_inset Text
18108
18109 \begin_layout Plain Layout
18110
18111 \size small
18112 Diamond
18113 \end_layout
18114
18115 \end_inset
18116 </cell>
18117 <cell alignment="left" valignment="top" usebox="none">
18118 \begin_inset Text
18119
18120 \begin_layout Plain Layout
18121
18122 \size small
18123 Rhomboid (symbolizing a 
18124 \begin_inset Quotes eld
18125 \end_inset
18126
18127 diamond
18128 \begin_inset Quotes erd
18129 \end_inset
18130
18131 )
18132 \end_layout
18133
18134 \end_inset
18135 </cell>
18136 <cell alignment="left" valignment="top" usebox="none">
18137 \begin_inset Text
18138
18139 \begin_layout Plain Layout
18140
18141 \size small
18142 -
18143 \end_layout
18144
18145 \end_inset
18146 </cell>
18147 </row>
18148 <row interlinespace="default">
18149 <cell alignment="left" valignment="top" usebox="none">
18150 \begin_inset Text
18151
18152 \begin_layout Plain Layout
18153
18154 \size small
18155 Heart
18156 \end_layout
18157
18158 \end_inset
18159 </cell>
18160 <cell alignment="left" valignment="top" usebox="none">
18161 \begin_inset Text
18162
18163 \begin_layout Plain Layout
18164
18165 \size small
18166 Heart-like shape
18167 \end_layout
18168
18169 \end_inset
18170 </cell>
18171 <cell alignment="left" valignment="top" usebox="none">
18172 \begin_inset Text
18173
18174 \begin_layout Plain Layout
18175
18176 \size small
18177 -
18178 \end_layout
18179
18180 \end_inset
18181 </cell>
18182 </row>
18183 <row interlinespace="default">
18184 <cell alignment="left" valignment="top" usebox="none">
18185 \begin_inset Text
18186
18187 \begin_layout Plain Layout
18188
18189 \size small
18190 Hexagon
18191 \end_layout
18192
18193 \end_inset
18194 </cell>
18195 <cell alignment="left" valignment="top" usebox="none">
18196 \begin_inset Text
18197
18198 \begin_layout Plain Layout
18199
18200 \size small
18201 Hexagon
18202 \end_layout
18203
18204 \end_inset
18205 </cell>
18206 <cell alignment="left" valignment="top" usebox="none">
18207 \begin_inset Text
18208
18209 \begin_layout Plain Layout
18210
18211 \size small
18212 -
18213 \end_layout
18214
18215 \end_inset
18216 </cell>
18217 </row>
18218 <row interlinespace="default">
18219 <cell alignment="left" valignment="top" usebox="none">
18220 \begin_inset Text
18221
18222 \begin_layout Plain Layout
18223
18224 \size small
18225 Nut
18226 \end_layout
18227
18228 \end_inset
18229 </cell>
18230 <cell alignment="left" valignment="top" usebox="none">
18231 \begin_inset Text
18232
18233 \begin_layout Plain Layout
18234
18235 \size small
18236 Nut for bolt (hexagon with circular hole)
18237 \end_layout
18238
18239 \end_inset
18240 </cell>
18241 <cell alignment="left" valignment="top" usebox="none">
18242 \begin_inset Text
18243
18244 \begin_layout Plain Layout
18245
18246 \size small
18247 -
18248 \end_layout
18249
18250 \end_inset
18251 </cell>
18252 </row>
18253 <row interlinespace="default">
18254 <cell alignment="left" valignment="top" usebox="none">
18255 \begin_inset Text
18256
18257 \begin_layout Plain Layout
18258
18259 \size small
18260 Square
18261 \end_layout
18262
18263 \end_inset
18264 </cell>
18265 <cell alignment="left" valignment="top" usebox="none">
18266 \begin_inset Text
18267
18268 \begin_layout Plain Layout
18269
18270 \size small
18271 Square
18272 \end_layout
18273
18274 \end_inset
18275 </cell>
18276 <cell alignment="left" valignment="top" usebox="none">
18277 \begin_inset Text
18278
18279 \begin_layout Plain Layout
18280
18281 \size small
18282 -
18283 \end_layout
18284
18285 \end_inset
18286 </cell>
18287 </row>
18288 <row interlinespace="default">
18289 <cell alignment="left" valignment="top" usebox="none">
18290 \begin_inset Text
18291
18292 \begin_layout Plain Layout
18293
18294 \size small
18295 Star
18296 \end_layout
18297
18298 \end_inset
18299 </cell>
18300 <cell alignment="left" valignment="top" usebox="none">
18301 \begin_inset Text
18302
18303 \begin_layout Plain Layout
18304
18305 \size small
18306 Five-point star
18307 \end_layout
18308
18309 \end_inset
18310 </cell>
18311 <cell alignment="left" valignment="top" usebox="none">
18312 \begin_inset Text
18313
18314 \begin_layout Plain Layout
18315
18316 \size small
18317 -
18318 \end_layout
18319
18320 \end_inset
18321 </cell>
18322 </row>
18323 <row interlinespace="default">
18324 <cell alignment="left" valignment="top" usebox="none">
18325 \begin_inset Text
18326
18327 \begin_layout Plain Layout
18328
18329 \size small
18330 Candle
18331 \end_layout
18332
18333 \end_inset
18334 </cell>
18335 <cell alignment="left" valignment="top" usebox="none">
18336 \begin_inset Text
18337
18338 \begin_layout Plain Layout
18339
18340 \size small
18341 Burning candle
18342 \end_layout
18343
18344 \end_inset
18345 </cell>
18346 <cell alignment="left" valignment="top" usebox="none">
18347 \begin_inset Text
18348
18349 \begin_layout Plain Layout
18350
18351 \size small
18352 -
18353 \end_layout
18354
18355 \end_inset
18356 </cell>
18357 </row>
18358 <row interlinespace="default">
18359 <cell alignment="left" valignment="top" usebox="none">
18360 \begin_inset Text
18361
18362 \begin_layout Plain Layout
18363
18364 \size small
18365 Drop down/up
18366 \end_layout
18367
18368 \end_inset
18369 </cell>
18370 <cell alignment="left" valignment="top" usebox="none">
18371 \begin_inset Text
18372
18373 \begin_layout Plain Layout
18374
18375 \size small
18376 Normal/reversed rain drop
18377 \end_layout
18378
18379 \end_inset
18380 </cell>
18381 <cell alignment="left" valignment="top" usebox="none">
18382 \begin_inset Text
18383
18384 \begin_layout Plain Layout
18385
18386 \size small
18387 Fragile, calculation might fail
18388 \end_layout
18389
18390 \end_inset
18391 </cell>
18392 </row>
18393 <row interlinespace="default">
18394 <cell alignment="left" valignment="top" usebox="none">
18395 \begin_inset Text
18396
18397 \begin_layout Plain Layout
18398
18399 \size small
18400 \SpecialChar TeX
18401
18402 \end_layout
18403
18404 \end_inset
18405 </cell>
18406 <cell alignment="left" valignment="top" usebox="none">
18407 \begin_inset Text
18408
18409 \begin_layout Plain Layout
18410
18411 \size small
18412 The \SpecialChar TeX
18413  logo
18414 \end_layout
18415
18416 \end_inset
18417 </cell>
18418 <cell alignment="left" valignment="top" usebox="none">
18419 \begin_inset Text
18420
18421 \begin_layout Plain Layout
18422
18423 \size small
18424 -
18425 \end_layout
18426
18427 \end_inset
18428 </cell>
18429 </row>
18430 <row interlinespace="default">
18431 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
18432 \begin_inset Text
18433
18434 \begin_layout Plain Layout
18435
18436 \size small
18437 Triangle up/down/
18438 \begin_inset Newline newline
18439 \end_inset
18440
18441 left/right
18442 \end_layout
18443
18444 \end_inset
18445 </cell>
18446 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
18447 \begin_inset Text
18448
18449 \begin_layout Plain Layout
18450
18451 \size small
18452 Triangles in different orientations
18453 \end_layout
18454
18455 \end_inset
18456 </cell>
18457 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
18458 \begin_inset Text
18459
18460 \begin_layout Plain Layout
18461
18462 \size small
18463 -
18464 \end_layout
18465
18466 \end_inset
18467 </cell>
18468 </row>
18469 </lyxtabular>
18470
18471 \end_inset
18472
18473
18474 \end_layout
18475
18476 \begin_layout Standard
18477 To use a shape for your paragraph, simply select it in \SpecialChar LyX
18478 's pull-down box
18479  for environments in the toolbar.
18480 \end_layout
18481
18482 \begin_layout Standard
18483 \begin_inset Newpage newpage
18484 \end_inset
18485
18486
18487 \end_layout
18488
18489 \begin_layout Standard
18490 Here is an example paragraph in the shape of a nut:
18491 \end_layout
18492
18493 \begin_layout Standard
18494 \begin_inset VSpace bigskip
18495 \end_inset
18496
18497
18498 \end_layout
18499
18500 \begin_layout Nut
18501
18502 \lang latin
18503 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18504  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18505  voluptua.
18506  At vero eos et accusam et justo duo dolores et ea rebum.
18507  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
18508  sit amet.
18509  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18510  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18511  voluptua.
18512 \end_layout
18513
18514 \begin_layout Standard
18515 \begin_inset VSpace bigskip
18516 \end_inset
18517
18518
18519 \end_layout
18520
18521 \begin_layout Standard
18522 \begin_inset Note Greyedout
18523 status open
18524
18525 \begin_layout Plain Layout
18526
18527 \series bold
18528 Note
18529 \series default
18530
18531 \family sans
18532 shapepar
18533 \family default
18534  paragraphs cannot run over a page break.
18535 \end_layout
18536
18537 \end_inset
18538
18539
18540 \end_layout
18541
18542 \begin_layout Standard
18543 \begin_inset VSpace bigskip
18544 \end_inset
18545
18546
18547 \end_layout
18548
18549 \begin_layout Standard
18550 The package 
18551 \begin_inset Flex Code
18552 status collapsed
18553
18554 \begin_layout Plain Layout
18555 shapepar
18556 \end_layout
18557
18558 \end_inset
18559
18560  takes care that the shape will always be preserved, no matter how much
18561  text is in the paragraph.
18562  Therefore the paragraph size changes with the amount of contained text.
18563  This can lead to paragraph sizes exceeding the page margins.
18564  To demonstrate the size scaling, here is the same example paragraph but
18565  with twice as much text:
18566 \end_layout
18567
18568 \begin_layout Standard
18569 \begin_inset Newpage newpage
18570 \end_inset
18571
18572
18573 \end_layout
18574
18575 \begin_layout Nut
18576
18577 \lang latin
18578 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18579  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18580  voluptua.
18581  At vero eos et accusam et justo duo dolores et ea rebum.
18582  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
18583  sit amet.
18584  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18585  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18586  voluptua.
18587  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18588  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18589  voluptua.
18590  At vero eos et accusam et justo duo dolores et ea rebum.
18591  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
18592  sit amet.
18593  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18594  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18595  voluptua.
18596 \end_layout
18597
18598 \begin_layout Standard
18599 \begin_inset VSpace bigskip
18600 \end_inset
18601
18602
18603 \end_layout
18604
18605 \begin_layout Standard
18606 An exception is the shape 
18607 \family sans
18608 CDlabel
18609 \family default
18610 .
18611  It cannot be scaled because it must fit the size of a CD/DVD.
18612  Therefore the amount of text that fits into the shape is limited.
18613 \begin_inset Newline newline
18614 \end_inset
18615
18616 The 
18617 \family sans
18618 drop
18619 \family default
18620  shapes and the 
18621 \family sans
18622 circle
18623 \family default
18624  shape are fragile, meaning that the calculation of their size can fail,
18625  depending on the amount of text.
18626  You will then get the \SpecialChar LaTeX
18627  error 
18628 \begin_inset Quotes eld
18629 \end_inset
18630
18631 Arithmetic overflow
18632 \begin_inset Quotes erd
18633 \end_inset
18634
18635 .
18636  In this case one can try to remove or add some text; if nothing works one
18637  has to use another shape.
18638 \end_layout
18639
18640 \begin_layout Standard
18641 \begin_inset VSpace bigskip
18642 \end_inset
18643
18644
18645 \end_layout
18646
18647 \begin_layout Standard
18648 For shapes with tips you will maybe see that \SpecialChar LaTeX
18649 's hyphenation routine fails
18650  for text in the tips.
18651  Therefore it is often necessary to add hyphenation points 
18652 \family sans
18653 (
18654 \begin_inset Info
18655 type  "shortcut"
18656 arg   "specialchar-insert hyphenation"
18657 \end_inset
18658
18659
18660 \family default
18661 ) to the corresponding text parts.
18662 \end_layout
18663
18664 \begin_layout Standard
18665 \begin_inset VSpace bigskip
18666 \end_inset
18667
18668
18669 \end_layout
18670
18671 \begin_layout Standard
18672 Shapepar paragraphs are either always centered or placed on the page so
18673  that their left border touches the left page margin.
18674  You can therefore not use the paragraph dialog to align such paragraphs.
18675  A solution is to put the paragraph into a minipage or parbox and align
18676  the box.
18677  The problem is hereby to find the right width for the box.
18678  Because if it is too wide and you center the box, the paragraph is not
18679  centered too because it sticks at the left side of the box.
18680  So you might have to play a bit with the width until it fits.
18681  Here are two heart-shaped paragraphs, the first one is not aligned, the
18682  second one is right-aligned:
18683 \end_layout
18684
18685 \begin_layout Standard
18686 \begin_inset Newpage newpage
18687 \end_inset
18688
18689
18690 \end_layout
18691
18692 \begin_layout Heart
18693 \noindent
18694
18695 \lang latin
18696 Lo\SpecialChar softhyphen
18697 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18698  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18699  voluptua.
18700  At vero eos et accusam et justo duo dolores et ea rebum.
18701  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
18702  sit amet.
18703 \end_layout
18704
18705 \begin_layout Standard
18706 \begin_inset VSpace bigskip
18707 \end_inset
18708
18709
18710 \end_layout
18711
18712 \begin_layout Standard
18713 \noindent
18714 \align right
18715 \begin_inset Box Frameless
18716 position "t"
18717 hor_pos "c"
18718 has_inner_box 1
18719 inner_pos "t"
18720 use_parbox 1
18721 use_makebox 0
18722 width "42col%"
18723 special "none"
18724 height "1in"
18725 height_special "totalheight"
18726 thickness "0.4pt"
18727 separation "3pt"
18728 shadowsize "4pt"
18729 framecolor "black"
18730 backgroundcolor "none"
18731 status open
18732
18733 \begin_layout Heart
18734 \noindent
18735
18736 \lang latin
18737 Lo\SpecialChar softhyphen
18738 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18739  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18740  voluptua.
18741  At vero eos et accusam et justo duo dolores et ea rebum.
18742  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
18743  sit amet.
18744 \end_layout
18745
18746 \end_inset
18747
18748
18749 \end_layout
18750
18751 \begin_layout Subsubsection
18752 Custom shapes
18753 \end_layout
18754
18755 \begin_layout Standard
18756 You can define any shape you want.
18757  Doing this manually is a lot of work because every coordinate must be specified.
18758  But there is a way to let the computer calculate the coordinates:
18759 \end_layout
18760
18761 \begin_layout Enumerate
18762 Install the program 
18763 \begin_inset CommandInset href
18764 LatexCommand href
18765 name "Jpgfdraw"
18766 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
18767 literal "false"
18768
18769 \end_inset
18770
18771 .
18772 \end_layout
18773
18774 \begin_layout Enumerate
18775 In 
18776 \family sans
18777 Jpgfdraw
18778 \family default
18779  go to the menu 
18780 \family sans
18781 TeX/LaTeX\SpecialChar menuseparator
18782 Settings\SpecialChar menuseparator
18783 Set Normal Size
18784 \family default
18785  and select the font size you are using in your document.
18786  For example this document uses the size 12
18787 \begin_inset space \thinspace{}
18788 \end_inset
18789
18790 pt.
18791 \end_layout
18792
18793 \begin_layout Enumerate
18794 Draw a shape.
18795 \end_layout
18796
18797 \begin_layout Enumerate
18798 Use the menu 
18799 \family sans
18800 TeX/LaTeX\SpecialChar menuseparator
18801 Shapepar
18802 \family default
18803  to export the shape to coordinates.
18804  In the appearing dialog use either the outline of your shape for the coordinate
18805 s or the path itself.
18806 \begin_inset Foot
18807 status collapsed
18808
18809 \begin_layout Plain Layout
18810 For more information see 
18811 \begin_inset CommandInset href
18812 LatexCommand href
18813 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
18814 literal "false"
18815
18816 \end_inset
18817
18818
18819 \end_layout
18820
18821 \end_inset
18822
18823
18824 \end_layout
18825
18826 \begin_layout Standard
18827 The coordinates are written into a \SpecialChar TeX
18828  file.
18829  To use it for your \SpecialChar LyX
18830  document
18831 \end_layout
18832
18833 \begin_layout Enumerate
18834 Place the cursor before the first character of your paragraph (or into a
18835  new empty one).
18836 \end_layout
18837
18838 \begin_layout Enumerate
18839 Open in \SpecialChar LyX
18840  the menu 
18841 \family sans
18842 Insert\SpecialChar menuseparator
18843 File\SpecialChar menuseparator
18844 Child
18845 \begin_inset space ~
18846 \end_inset
18847
18848 Document
18849 \family default
18850 , select the file and use 
18851 \family sans
18852 Input
18853 \family default
18854  as 
18855 \family sans
18856 Include Type.
18857 \end_layout
18858
18859 \begin_layout Standard
18860 \begin_inset VSpace defskip
18861 \end_inset
18862
18863
18864 \end_layout
18865
18866 \begin_layout Standard
18867 \begin_inset Note Greyedout
18868 status open
18869
18870 \begin_layout Plain Layout
18871
18872 \series bold
18873 Note
18874 \series default
18875 : The changed shape only applies to the current paragraph; everything is
18876  reset to normal for the next paragraph.
18877  Therefore the shape definition file must be input into every paragraph
18878  with the desired shape.
18879 \end_layout
18880
18881 \end_inset
18882
18883
18884 \end_layout
18885
18886 \begin_layout Standard
18887 \begin_inset VSpace bigskip
18888 \end_inset
18889
18890
18891 \end_layout
18892
18893 \begin_layout Standard
18894 Here is an example:
18895 \end_layout
18896
18897 \begin_layout Standard
18898 \begin_inset VSpace bigskip
18899 \end_inset
18900
18901
18902 \end_layout
18903
18904 \begin_layout Standard
18905 \begin_inset CommandInset include
18906 LatexCommand input
18907 filename "SpecialParagraphShape.tex"
18908 literal "true"
18909
18910 \end_inset
18911
18912
18913 \lang latin
18914 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18915  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18916  voluptua.
18917  At vero eos et accusam et justo duo dolores et ea rebum.
18918  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
18919  sit amet.
18920  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
18921  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18922  voluptua.
18923 \end_layout
18924
18925 \begin_layout Standard
18926 \begin_inset VSpace bigskip
18927 \end_inset
18928
18929
18930 \end_layout
18931
18932 \begin_layout Standard
18933
18934 \series bold
18935 A tip:
18936 \series default
18937  to draw complexer shapes in 
18938 \family sans
18939 Jpgfdraw
18940 \family default
18941  you can draw the shape in a program of your choice and import the resulting
18942  image to 
18943 \family sans
18944 Jpgfdraw
18945 \family default
18946 .
18947  Then you only need to draw a line or spline along the outline of the image.
18948 \end_layout
18949
18950 \begin_layout Standard
18951 \begin_inset VSpace bigskip
18952 \end_inset
18953
18954
18955 \end_layout
18956
18957 \begin_layout Standard
18958 The module 
18959 \family sans
18960 Custom paragraph shapes
18961 \family default
18962  also provides the two commands 
18963 \family sans
18964 shapepar
18965 \family default
18966  and 
18967 \family sans
18968 Shapepar
18969 \family default
18970  which can be used to define custom shapes coordinate by coordinate.
18971 \begin_inset Foot
18972 status collapsed
18973
18974 \begin_layout Plain Layout
18975 These commands are internally used for all shapes described here.
18976 \end_layout
18977
18978 \end_inset
18979
18980  For information how these styles are used and about further customization
18981  possibilities, have a look at the 
18982 \begin_inset CommandInset href
18983 LatexCommand href
18984 name "documentation"
18985 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
18986 literal "false"
18987
18988 \end_inset
18989
18990  of the package 
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 shapepar
18996 \end_layout
18997
18998 \end_inset
18999
19000 .
19001 \end_layout
19002
19003 \begin_layout Chapter
19004
19005 \change_deleted 564990737 1671304317
19006 Customizing 
19007 \change_unchanged
19008 Bibliograph
19009 \change_inserted 564990737 1671304322
19010 y
19011 \change_deleted 564990737 1671304331
19012 ies with Bib\SpecialChar TeX
19013  or Biblatex
19014 \change_unchanged
19015
19016 \end_layout
19017
19018 \begin_layout Standard
19019 The most basic information about how to use Bib\SpecialChar TeX
19020  or 
19021 \family sans
19022 Biblatex
19023 \family default
19024  with \SpecialChar LyX
19025  is contained in the section 
19026 \emph on
19027 Bibliography databases
19028 \emph default
19029  of the 
19030 \emph on
19031 User's Guide
19032 \emph default
19033 .
19034  The following subsections explain special bibliography features supported
19035  by \SpecialChar LyX
19036 .
19037 \end_layout
19038
19039 \begin_layout Section
19040 Alternative Citation Styles
19041 \end_layout
19042
19043 \begin_layout Standard
19044 Standard Bib\SpecialChar TeX
19045  uses numbers (e.
19046 \begin_inset space \thinspace{}
19047 \end_inset
19048
19049 g.
19050 \begin_inset space \space{}
19051 \end_inset
19052
19053
19054 \begin_inset Quotes eld
19055 \end_inset
19056
19057 [12]
19058 \begin_inset Quotes erd
19059 \end_inset
19060
19061 ) to refer to a cited work.
19062  However, in many scientific disciplines, other citation styles are in use.
19063  The most common one is the author-year style (e.
19064 \begin_inset space \thinspace{}
19065 \end_inset
19066
19067 g.
19068 \begin_inset space \space{}
19069 \end_inset
19070
19071
19072 \begin_inset Quotes eld
19073 \end_inset
19074
19075 Knuth 1984a
19076 \begin_inset Quotes erd
19077 \end_inset
19078
19079 ).
19080  \SpecialChar LyX
19081  supports three packages that provide this style, 
19082 \begin_inset Flex Code
19083 status collapsed
19084
19085 \begin_layout Plain Layout
19086 biblatex
19087 \end_layout
19088
19089 \end_inset
19090
19091
19092 \begin_inset Flex Code
19093 status collapsed
19094
19095 \begin_layout Plain Layout
19096 natbib
19097 \end_layout
19098
19099 \end_inset
19100
19101 , and 
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 jurabib
19107 \end_layout
19108
19109 \end_inset
19110
19111 .
19112  Each of these packages has their pros and cons, which cannot be listed
19113  in detail.
19114  If you only want to have simple author-year (or author-numerical) style,
19115  or if you want to use one of the countless style files for 
19116 \begin_inset Flex Code
19117 status collapsed
19118
19119 \begin_layout Plain Layout
19120 natbib
19121 \end_layout
19122
19123 \end_inset
19124
19125 , then the established 
19126 \begin_inset Flex Code
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 natbib
19131 \end_layout
19132
19133 \end_inset
19134
19135  package is probably your choice.
19136  If you look for specific citation styles common in law studies, you might
19137  consider the 
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 jurabib
19143 \end_layout
19144
19145 \end_inset
19146
19147  package.
19148  If you want to have full control over the formatting or look for advanced
19149  features such as ibidem, footnote citations, full title citations, advanced
19150  date formats (such as 400 BC) or full localization to other languages than
19151  English, you should definitely consider 
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 biblatex
19157 \end_layout
19158
19159 \end_inset
19160
19161 , which exceeds all other packages in terms of features, but is also quite
19162  heavy and more resource-hungry.
19163 \end_layout
19164
19165 \begin_layout Standard
19166 The handling of these packages in \SpecialChar LyX
19167  is basically the same.
19168  Go to 
19169 \begin_inset Flex Noun
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173 Document\SpecialChar menuseparator
19174 Settings
19175 \end_layout
19176
19177 \end_inset
19178
19179  and select under 
19180 \begin_inset Flex Noun
19181 status collapsed
19182
19183 \begin_layout Plain Layout
19184 Bibliography
19185 \end_layout
19186
19187 \end_inset
19188
19189  the 
19190 \begin_inset Flex Noun
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 Style Format
19195 \end_layout
19196
19197 \end_inset
19198
19199  
19200 \begin_inset Flex Noun
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 Basic (BibTeX)
19205 \end_layout
19206
19207 \end_inset
19208
19209
19210 \begin_inset Flex Noun
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 Biblatex
19215 \end_layout
19216
19217 \end_inset
19218
19219
19220 \begin_inset Flex Noun
19221 status collapsed
19222
19223 \begin_layout Plain Layout
19224 Biblatex (Natbib mode)
19225 \end_layout
19226
19227 \end_inset
19228
19229
19230 \begin_inset Flex Noun
19231 status collapsed
19232
19233 \begin_layout Plain Layout
19234 Natbib (BibTeX)
19235 \end_layout
19236
19237 \end_inset
19238
19239  or 
19240 \begin_inset Flex Noun
19241 status collapsed
19242
19243 \begin_layout Plain Layout
19244 Jurabib (BibTeX)
19245 \end_layout
19246
19247 \end_inset
19248
19249  (see sec.
19250 \begin_inset space ~
19251 \end_inset
19252
19253 6.5.3 in the User's Guide for more information on these choices).
19254  With all these packages, you will get some extra features in the citation
19255  dialog and you can select the style of the reference (
19256 \begin_inset Quotes eld
19257 \end_inset
19258
19259 Knuth 1984
19260 \begin_inset Quotes erd
19261 \end_inset
19262
19263
19264 \begin_inset Quotes eld
19265 \end_inset
19266
19267 Knuth (1984)
19268 \begin_inset Quotes erd
19269 \end_inset
19270
19271
19272 \begin_inset Quotes eld
19273 \end_inset
19274
19275 Knuth, 1984
19276 \begin_inset Quotes erd
19277 \end_inset
19278
19279
19280 \begin_inset Quotes eld
19281 \end_inset
19282
19283 1984
19284 \begin_inset Quotes erd
19285 \end_inset
19286
19287  etc.).
19288  Note that either package needs specifically designed style files.
19289  They all ship their own, but there are lots of additional style files,
19290  and there is even an interactive style file builder
19291 \begin_inset Foot
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 See 
19296 \begin_inset Flex URL
19297 status open
19298
19299 \begin_layout Plain Layout
19300
19301 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
19302 \end_layout
19303
19304 \end_inset
19305
19306
19307 \end_layout
19308
19309 \end_inset
19310
19311  for 
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 natbib
19317 \end_layout
19318
19319 \end_inset
19320
19321 .
19322 \end_layout
19323
19324 \begin_layout Section
19325 Subdivided Bibliographies
19326 \end_layout
19327
19328 \begin_layout Standard
19329 Sometimes you might need to divide your bibliography into several sections.
19330  If you are for instance a historian, the possibility to separate sources
19331  and scientific works is most likely a 
19332 \begin_inset Quotes eld
19333 \end_inset
19334
19335 must have
19336 \begin_inset Quotes erd
19337 \end_inset
19338
19339 .
19340  Unfortunately, Bib\SpecialChar TeX
19341  itself does not allow you to do this.
19342  But with the help of some \SpecialChar LaTeX
19343  packages, Bib\SpecialChar TeX
19344  can be extended to fit your needs.
19345 \end_layout
19346
19347 \begin_layout Standard
19348 \SpecialChar LyX
19349  provides native support for one of these packages, 
19350 \family typewriter
19351 bibtopic
19352 \family default
19353 .
19354 \begin_inset Foot
19355 status collapsed
19356
19357 \begin_layout Plain Layout
19358 Available from 
19359 \begin_inset Flex URL
19360 status open
19361
19362 \begin_layout Plain Layout
19363
19364 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
19365 \end_layout
19366
19367 \end_inset
19368
19369
19370 \end_layout
19371
19372 \end_inset
19373
19374  The advantage of this package (compared to other packages such as 
19375 \family typewriter
19376 multibib
19377 \family default
19378 ) is that you don't need to define new citation commands.
19379  Instead, you need to prepare different bibliographic databases which include
19380  the entries for the different sections of the bibliography.
19381  For example: If you want to divide your bibliography into the sections
19382  
19383 \begin_inset Quotes eld
19384 \end_inset
19385
19386 Sources
19387 \begin_inset Quotes erd
19388 \end_inset
19389
19390  and 
19391 \begin_inset Quotes eld
19392 \end_inset
19393
19394 Scientific works
19395 \begin_inset Quotes erd
19396 \end_inset
19397
19398 , you first need to create two bibliographic databases, e.
19399 \begin_inset space \thinspace{}
19400 \end_inset
19401
19402 g.
19403 \begin_inset space \space{}
19404 \end_inset
19405
19406
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 sources.bib
19412 \end_layout
19413
19414 \end_inset
19415
19416  and 
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 scientific.bib
19422 \end_layout
19423
19424 \end_inset
19425
19426 .
19427  
19428 \end_layout
19429
19430 \begin_layout Standard
19431 Go to 
19432 \begin_inset Flex Noun
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436 Document\SpecialChar menuseparator
19437 Settings
19438 \end_layout
19439
19440 \end_inset
19441
19442  and check under 
19443 \begin_inset Flex Noun
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 Bibliography
19448 \end_layout
19449
19450 \end_inset
19451
19452  the option 
19453 \begin_inset Flex Noun
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 Subdivided bibliography
19458 \end_layout
19459
19460 \end_inset
19461
19462 .
19463  Now you can insert multiple Bib\SpecialChar TeX
19464  bibliographies, one for each section of
19465  your bibliography.
19466  Returning to our example: Insert the Bib\SpecialChar TeX
19467  bibliography 
19468 \begin_inset Flex Code
19469 status collapsed
19470
19471 \begin_layout Plain Layout
19472 sources.bib
19473 \end_layout
19474
19475 \end_inset
19476
19477  and a second one for the database 
19478 \begin_inset Flex Code
19479 status collapsed
19480
19481 \begin_layout Plain Layout
19482 scientific.bib
19483 \end_layout
19484
19485 \end_inset
19486
19487 .
19488  You are free to use the same or different styles for each section.
19489  Additionally, you can choose if the bibliography section should contain
19490  
19491 \begin_inset Quotes eld
19492 \end_inset
19493
19494 all cited references
19495 \begin_inset Quotes erd
19496 \end_inset
19497
19498  of the specified database(s) (which is the default), 
19499 \begin_inset Quotes eld
19500 \end_inset
19501
19502 all uncited references
19503 \begin_inset Quotes erd
19504 \end_inset
19505
19506  or even 
19507 \begin_inset Quotes eld
19508 \end_inset
19509
19510 all references
19511 \begin_inset Quotes erd
19512 \end_inset
19513
19514 .
19515  This might be useful if you would like to separate your bibliography into
19516  three sections: 
19517 \begin_inset Quotes eld
19518 \end_inset
19519
19520 Cited sources
19521 \begin_inset Quotes erd
19522 \end_inset
19523
19524
19525 \begin_inset Quotes eld
19526 \end_inset
19527
19528 Uncited sources
19529 \begin_inset Quotes erd
19530 \end_inset
19531
19532 , and 
19533 \begin_inset Quotes eld
19534 \end_inset
19535
19536 Scientific works
19537 \begin_inset Quotes erd
19538 \end_inset
19539
19540 .
19541  The titles for the sections can be added as ordinary sections or subsections.
19542  Since 
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 bibtopic
19548 \end_layout
19549
19550 \end_inset
19551
19552  removes the bibliography title, you have to manually re-add that, too (as
19553  a chapter* or section*, for instance).
19554 \end_layout
19555
19556 \begin_layout Standard
19557 With 
19558 \family sans
19559 Biblatex
19560 \family default
19561 , the procedure is a bit different.
19562  Since 
19563 \family typewriter
19564 bibtopic
19565 \family default
19566  does not work with 
19567 \family sans
19568 Biblatex
19569 \family default
19570 , the aforementioned 
19571 \begin_inset Flex Noun
19572 status collapsed
19573
19574 \begin_layout Plain Layout
19575 Subdivided bibliography
19576 \end_layout
19577
19578 \end_inset
19579
19580  option is disabled if you use 
19581 \family sans
19582 Biblatex
19583 \family default
19584 .
19585  However, 
19586 \family sans
19587 Biblatex
19588 \family default
19589  provides its own means to generate subdivided bibliographies.
19590  You can either add keywords to bibliography entries via the 
19591 \begin_inset Flex Code
19592 status collapsed
19593
19594 \begin_layout Plain Layout
19595 keywords
19596 \end_layout
19597
19598 \end_inset
19599
19600  entry option and then filter bibliography sections by keyword (by adding
19601  
19602 \begin_inset Flex Code
19603 status collapsed
19604
19605 \begin_layout Plain Layout
19606 keyword=mykeyword
19607 \end_layout
19608
19609 \end_inset
19610
19611  to the 
19612 \begin_inset Flex Noun
19613 status collapsed
19614
19615 \begin_layout Plain Layout
19616 Options
19617 \end_layout
19618
19619 \end_inset
19620
19621  field of the dialog that opens if you left-click on the 
19622 \begin_inset Flex Noun
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 Biblatex Generated Bibliography
19627 \end_layout
19628
19629 \end_inset
19630
19631  button), or you can filter by entry types (such as 
19632 \emph on
19633 book
19634 \emph default
19635  or 
19636 \emph on
19637 article
19638 \emph default
19639 ) by entering e.
19640 \begin_inset space \thinspace{}
19641 \end_inset
19642
19643 g.
19644  
19645 \begin_inset Flex Code
19646 status collapsed
19647
19648 \begin_layout Plain Layout
19649 type=book
19650 \end_layout
19651
19652 \end_inset
19653
19654  or 
19655 \begin_inset Flex Code
19656 status collapsed
19657
19658 \begin_layout Plain Layout
19659 nottype=collection
19660 \end_layout
19661
19662 \end_inset
19663
19664  to the mentioned 
19665 \begin_inset Flex Noun
19666 status collapsed
19667
19668 \begin_layout Plain Layout
19669 Options
19670 \end_layout
19671
19672 \end_inset
19673
19674  field, or you can create so-called 
19675 \begin_inset Quotes eld
19676 \end_inset
19677
19678 Bibliography Categories
19679 \begin_inset Quotes erd
19680 \end_inset
19681
19682  to which you can assign individual entries.
19683  Please refer to the Biblatex manual, section 
19684 \emph on
19685 Subdivided Bibliographies
19686 \emph default
19687 , for details.
19688 \end_layout
19689
19690 \begin_layout Section
19691 Multiple Bibliographies
19692 \begin_inset CommandInset label
19693 LatexCommand label
19694 name "subsec:Multiple-Bibliographies"
19695
19696 \end_inset
19697
19698
19699 \end_layout
19700
19701 \begin_layout Standard
19702 Multiple bibliographies, e.
19703 \begin_inset space \thinspace{}
19704 \end_inset
19705
19706 g.
19707 \begin_inset space \space{}
19708 \end_inset
19709
19710 a bibliography for each part, chapter, section, subsection or child (sub-documen
19711 t) of the document, are also supported by \SpecialChar LyX
19712 .
19713  In order to enable it, go to 
19714 \begin_inset Flex Noun
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 Document\SpecialChar menuseparator
19719 Settings\SpecialChar menuseparator
19720 Bibliography
19721 \end_layout
19722
19723 \end_inset
19724
19725  and select the relevant unit (e.
19726 \begin_inset space \thinspace{}
19727 \end_inset
19728
19729 g., 
19730 \begin_inset Quotes eld
19731 \end_inset
19732
19733 per section
19734 \begin_inset Quotes erd
19735 \end_inset
19736
19737 ) in the 
19738 \begin_inset Flex Noun
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 Multiple Bibliographies
19743 \end_layout
19744
19745 \end_inset
19746
19747  combo box.
19748  Then add a Bib(la)\SpecialChar TeX
19749  bibliography to each unit (e.
19750 \begin_inset space \thinspace{}
19751 \end_inset
19752
19753 g., section) of your document.
19754  In the output, a separate bibliography, containing only the references
19755  done in the current unit is generated.
19756 \end_layout
19757
19758 \begin_layout Standard
19759 If you use Bib\SpecialChar TeX
19760 , either the 
19761 \begin_inset Flex Code
19762 status collapsed
19763
19764 \begin_layout Plain Layout
19765 chapterbib
19766 \end_layout
19767
19768 \end_inset
19769
19770  or the 
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 bibtopic
19776 \end_layout
19777
19778 \end_inset
19779
19780  package is used to create multiple bibliographies.
19781  The former package is used if you select 
19782 \begin_inset Quotes eld
19783 \end_inset
19784
19785 per child document
19786 \begin_inset Quotes erd
19787 \end_inset
19788
19789  and do 
19790 \emph on
19791 not
19792 \emph default
19793  check 
19794 \begin_inset Flex Noun
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 Sectioned Bibliography
19799 \end_layout
19800
19801 \end_inset
19802
19803 .
19804  In all other cases, 
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 bibtopic
19810 \end_layout
19811
19812 \end_inset
19813
19814  is used.
19815 \begin_inset Foot
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 An alternative approach, if you are willing to use some 
19820 \begin_inset Flex Noun
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 \SpecialChar TeX
19825  Code
19826 \end_layout
19827
19828 \end_inset
19829
19830  (see section
19831 \begin_inset space ~
19832 \end_inset
19833
19834
19835 \begin_inset CommandInset ref
19836 LatexCommand ref
19837 reference "sec:Inserting-TeX-Code"
19838
19839 \end_inset
19840
19841 ), is to use the 
19842 \begin_inset Flex Code
19843 status collapsed
19844
19845 \begin_layout Plain Layout
19846 bibunits
19847 \end_layout
19848
19849 \end_inset
19850
19851  package.
19852 \end_layout
19853
19854 \end_inset
19855
19856  If 
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 bibtopic
19862 \end_layout
19863
19864 \end_inset
19865
19866  is used, \SpecialChar LyX
19867  encloses the specified units in 
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 bibtopic
19873 \end_layout
19874
19875 \end_inset
19876
19877 's 
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882
19883 \backslash
19884 begin{btUnit}
19885 \end_layout
19886
19887 \end_inset
19888
19889  and 
19890 \begin_inset Flex Code
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894
19895 \backslash
19896 end{btUnit}
19897 \end_layout
19898
19899 \end_inset
19900
19901  in order to create the units.
19902  Note that this approach has some limitations.
19903  First, every citation reference has to be inside some 
19904 \begin_inset Flex Code
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908 btUnit
19909 \end_layout
19910
19911 \end_inset
19912
19913 .
19914  So citations outside a defined unit (e.
19915 \begin_inset space \thinspace{}
19916 \end_inset
19917
19918 g., before the first section if you use 
19919 \begin_inset Quotes eld
19920 \end_inset
19921
19922 by section
19923 \begin_inset Quotes erd
19924 \end_inset
19925
19926 ) will appear as 
19927 \begin_inset Quotes eld
19928 \end_inset
19929
19930 ???
19931 \begin_inset Quotes erd
19932 \end_inset
19933
19934 .
19935  You can also create your own units by entering 
19936 \begin_inset Flex Code
19937 status collapsed
19938
19939 \begin_layout Plain Layout
19940
19941 \backslash
19942 begin{btUnit}
19943 \end_layout
19944
19945 \end_inset
19946
19947  and 
19948 \begin_inset Flex Code
19949 status collapsed
19950
19951 \begin_layout Plain Layout
19952
19953 \backslash
19954 end{btUnit}
19955 \end_layout
19956
19957 \end_inset
19958
19959  as \SpecialChar TeX
19960  code (for instance to work around the mentioned limitation).
19961  Note, though, that 
19962 \begin_inset Flex Code
19963 status collapsed
19964
19965 \begin_layout Plain Layout
19966 btUnit
19967 \end_layout
19968
19969 \end_inset
19970
19971 s cannot be nested.
19972  A second limitation is that 
19973 \begin_inset Flex Code
19974 status collapsed
19975
19976 \begin_layout Plain Layout
19977 bibtopic
19978 \end_layout
19979
19980 \end_inset
19981
19982  always processes all references of a bibliography database, even if they
19983  are not cited.
19984  This can result in odd labels (e.
19985 \begin_inset space \thinspace{}
19986 \end_inset
19987
19988 g.
19989  
19990 \begin_inset Quotes eld
19991 \end_inset
19992
19993 Miller 2014b
19994 \begin_inset Quotes erd
19995 \end_inset
19996
19997  if two works of this author from 2014 are in the database, even if only
19998  one is cited).
19999 \end_layout
20000
20001 \begin_layout Standard
20002 If you use 
20003 \family sans
20004 Biblatex
20005 \family default
20006 , the 
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011 refsection
20012 \end_layout
20013
20014 \end_inset
20015
20016  option is used instead.
20017  If you need specific units, you can start them with the \SpecialChar TeX
20018  code 
20019 \begin_inset Flex Code
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023
20024 \backslash
20025 newrefsection
20026 \end_layout
20027
20028 \end_inset
20029
20030  or 
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035
20036 \backslash
20037 newrefsegment
20038 \end_layout
20039
20040 \end_inset
20041
20042 , respectively.
20043  If you also want to control the end of the unit, use the environment 
20044 \begin_inset Flex Code
20045 status collapsed
20046
20047 \begin_layout Plain Layout
20048
20049 \backslash
20050 begin{refsection}
20051 \end_layout
20052
20053 \end_inset
20054
20055  \SpecialChar ldots
20056  
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061
20062 \backslash
20063 end{refsection}
20064 \end_layout
20065
20066 \end_inset
20067
20068  instead.
20069  Note, though, that 
20070 \begin_inset Flex Code
20071 status collapsed
20072
20073 \begin_layout Plain Layout
20074 refsection
20075 \end_layout
20076
20077 \end_inset
20078
20079 s cannot be nested.
20080  In addition to the individual bibliography of the current unit, 
20081 \family sans
20082 Biblatex
20083 \family default
20084  also provides an easy way to output all bibliographies, subsequently, at
20085  one place (e.
20086 \begin_inset space \thinspace{}
20087 \end_inset
20088
20089 g., at the end of the document).
20090  Select 
20091 \begin_inset Quotes eld
20092 \end_inset
20093
20094 all reference units
20095 \begin_inset Quotes erd
20096 \end_inset
20097
20098  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
20099  this.
20100  Please refer to the 
20101 \family sans
20102 Biblatex
20103 \family default
20104  manual for more information on this topic.
20105 \end_layout
20106
20107 \begin_layout Chapter
20108
20109 \change_deleted 564990737 1671355654
20110 Itemize 
20111 \change_unchanged
20112 Bullet
20113 \change_inserted 564990737 1671355667
20114 s
20115 \change_deleted 564990737 1671355661
20116  Selection
20117 \change_inserted 564990737 1671355684
20118
20119 \begin_inset CommandInset label
20120 LatexCommand label
20121 name "chap:bullets"
20122
20123 \end_inset
20124
20125
20126 \change_deleted 564990737 1671355684
20127
20128 \begin_inset CommandInset label
20129 LatexCommand label
20130 name "sec:bullet"
20131
20132 \end_inset
20133
20134
20135 \change_unchanged
20136
20137 \end_layout
20138
20139 \begin_layout Standard
20140 by
20141 \noun on
20142  Allan Rae
20143 \end_layout
20144
20145 \begin_layout Section
20146 Introduction
20147 \end_layout
20148
20149 \begin_layout Standard
20150 \SpecialChar LyX
20151  provides 216 bullet shapes that can be accessed from a simple dialog.
20152  Using this dialog you can easily specify what bullet shape to use at each
20153  level of an itemized list.
20154  These settings are document-wide so you won't be able to specify different
20155  sets of bullets for different paragraphs.
20156 \begin_inset Foot
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 Well, actually you can but you'll have to do it by hand.
20161 \end_layout
20162
20163 \end_inset
20164
20165
20166 \end_layout
20167
20168 \begin_layout Section
20169 How it looks
20170 \end_layout
20171
20172 \begin_layout Standard
20173 Open the dialog by selecting the 
20174 \begin_inset Flex Noun
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 Document\SpecialChar menuseparator
20179 Settings
20180 \end_layout
20181
20182 \end_inset
20183
20184  menu item and then select the 
20185 \begin_inset Flex Noun
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 Bullets
20190 \end_layout
20191
20192 \end_inset
20193
20194  tab.
20195 \end_layout
20196
20197 \begin_layout Standard
20198 The dialog provides you with a table of bullet shapes.
20199  A column of buttons on the left of the table provides access to the six
20200  different panels of bullet shapes.
20201  The row of buttons across the top is used to select which bullet depth
20202  you are changing.
20203
20204 \change_deleted 244031559 1603875981
20205  A text entry under the table shows the currently selected bullet shape's
20206  \SpecialChar LaTeX
20207  equivalent and this can be edited if desired.
20208  If you do modify the text you will also need to specify any needed packages
20209  in the \SpecialChar LaTeX
20210  preamble.
20211 \change_unchanged
20212
20213 \end_layout
20214
20215 \begin_layout Standard
20216 The six panels are divided up by the packages they require.
20217  The following table shows the mappings from button name to \SpecialChar LaTeX
20218  package.
20219 \end_layout
20220
20221 \begin_layout Standard
20222 \align center
20223 \begin_inset Tabular
20224 <lyxtabular version="3" rows="7" columns="2">
20225 <features tabularvalignment="middle">
20226 <column alignment="center" valignment="top" width="0pt">
20227 <column alignment="center" valignment="top" width="0pt">
20228 <row>
20229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20230 \begin_inset Text
20231
20232 \begin_layout Plain Layout
20233
20234 \family roman
20235 \series medium
20236 \shape up
20237 \size normal
20238 \emph off
20239 \bar no
20240 \noun off
20241 \color none
20242 Button
20243 \end_layout
20244
20245 \end_inset
20246 </cell>
20247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20248 \begin_inset Text
20249
20250 \begin_layout Plain Layout
20251
20252 \family roman
20253 \series medium
20254 \shape up
20255 \size normal
20256 \emph off
20257 \bar no
20258 \noun off
20259 \color none
20260 Packages Required
20261 \end_layout
20262
20263 \end_inset
20264 </cell>
20265 </row>
20266 <row>
20267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20268 \begin_inset Text
20269
20270 \begin_layout Plain Layout
20271
20272 \family sans
20273 \series medium
20274 \shape up
20275 \size normal
20276 \emph off
20277 \bar no
20278 \noun off
20279 \color none
20280 Standard
20281 \end_layout
20282
20283 \end_inset
20284 </cell>
20285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20286 \begin_inset Text
20287
20288 \begin_layout Plain Layout
20289
20290 \series medium
20291 \shape up
20292 \size normal
20293 \emph off
20294 \bar no
20295 \noun off
20296 \color none
20297 base \SpecialChar LaTeX
20298
20299 \end_layout
20300
20301 \end_inset
20302 </cell>
20303 </row>
20304 <row>
20305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20306 \begin_inset Text
20307
20308 \begin_layout Plain Layout
20309
20310 \family sans
20311 \series medium
20312 \shape up
20313 \size normal
20314 \emph off
20315 \bar no
20316 \noun off
20317 \color none
20318 Maths
20319 \end_layout
20320
20321 \end_inset
20322 </cell>
20323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20324 \begin_inset Text
20325
20326 \begin_layout Plain Layout
20327
20328 \family typewriter
20329 \series medium
20330 \shape up
20331 \size normal
20332 \emph off
20333 \bar no
20334 \noun off
20335 \color none
20336 amssymb.sty
20337 \end_layout
20338
20339 \end_inset
20340 </cell>
20341 </row>
20342 <row>
20343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20344 \begin_inset Text
20345
20346 \begin_layout Plain Layout
20347
20348 \family sans
20349 \series medium
20350 \shape up
20351 \size normal
20352 \emph off
20353 \bar no
20354 \noun off
20355 \color none
20356 Ding1
20357 \end_layout
20358
20359 \end_inset
20360 </cell>
20361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20362 \begin_inset Text
20363
20364 \begin_layout Plain Layout
20365
20366 \family typewriter
20367 \series medium
20368 \shape up
20369 \size normal
20370 \emph off
20371 \bar no
20372 \noun off
20373 \color none
20374 pifont.sty
20375 \end_layout
20376
20377 \end_inset
20378 </cell>
20379 </row>
20380 <row>
20381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20382 \begin_inset Text
20383
20384 \begin_layout Plain Layout
20385
20386 \family sans
20387 \series medium
20388 \shape up
20389 \size normal
20390 \emph off
20391 \bar no
20392 \noun off
20393 \color none
20394 Ding2
20395 \end_layout
20396
20397 \end_inset
20398 </cell>
20399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20400 \begin_inset Text
20401
20402 \begin_layout Plain Layout
20403
20404 \family typewriter
20405 \series medium
20406 \shape up
20407 \size normal
20408 \emph off
20409 \bar no
20410 \noun off
20411 \color none
20412 pifont.sty
20413 \end_layout
20414
20415 \end_inset
20416 </cell>
20417 </row>
20418 <row>
20419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20420 \begin_inset Text
20421
20422 \begin_layout Plain Layout
20423
20424 \family sans
20425 \series medium
20426 \shape up
20427 \size normal
20428 \emph off
20429 \bar no
20430 \noun off
20431 \color none
20432 Ding3
20433 \end_layout
20434
20435 \end_inset
20436 </cell>
20437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20438 \begin_inset Text
20439
20440 \begin_layout Plain Layout
20441
20442 \family typewriter
20443 \series medium
20444 \shape up
20445 \size normal
20446 \emph off
20447 \bar no
20448 \noun off
20449 \color none
20450 pifont.sty
20451 \end_layout
20452
20453 \end_inset
20454 </cell>
20455 </row>
20456 <row>
20457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20458 \begin_inset Text
20459
20460 \begin_layout Plain Layout
20461
20462 \family sans
20463 \series medium
20464 \shape up
20465 \size normal
20466 \emph off
20467 \bar no
20468 \noun off
20469 \color none
20470 Ding4
20471 \end_layout
20472
20473 \end_inset
20474 </cell>
20475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20476 \begin_inset Text
20477
20478 \begin_layout Plain Layout
20479
20480 \family typewriter
20481 \series medium
20482 \shape up
20483 \size normal
20484 \emph off
20485 \bar no
20486 \noun off
20487 \color none
20488 pifont.sty
20489 \end_layout
20490
20491 \end_inset
20492 </cell>
20493 </row>
20494 </lyxtabular>
20495
20496 \end_inset
20497
20498
20499 \end_layout
20500
20501 \begin_layout Standard
20502 \SpecialChar LyX
20503  doesn't stop you using bullets from packages you don't have.
20504  If you get errors from \SpecialChar LaTeX
20505  when you try to view or print the file, then it
20506  is likely you are missing a package.
20507 \begin_inset Foot
20508 status collapsed
20509
20510 \begin_layout Plain Layout
20511 \SpecialChar LyX
20512  doesn't restrict your use since you may be editing locally and exporting
20513  elsewhere.
20514 \end_layout
20515
20516 \end_inset
20517
20518
20519 \end_layout
20520
20521 \begin_layout Section
20522 How to use it
20523 \end_layout
20524
20525 \begin_layout Standard
20526 Select which bullet depth you want to change then select the bullet shape
20527  and size.
20528  Any changes will not be visible in \SpecialChar LyX
20529 , but are visible when viewing the document.
20530 \end_layout
20531
20532 \begin_layout Standard
20533 You can reset a bullet shape to the default simply by clicking your right
20534  mouse button on the appropriate bullet depth button.
20535 \begin_inset Foot
20536 status open
20537
20538 \begin_layout Plain Layout
20539
20540 \change_inserted 564990737 1672138075
20541 \begin_inset CommandInset label
20542 LatexCommand label
20543 name "fn:If-you-really"
20544
20545 \end_inset
20546
20547
20548 \change_unchanged
20549 If you 
20550 \emph on
20551 really
20552 \emph default
20553  want to have multiple sets of paragraphs with different sets of bullets
20554  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
20555  code.
20556  The bullet selection dialog can help though because it provides you with
20557  the \SpecialChar LaTeX
20558  code for a wide range of bullet shapes.
20559  To make your own custom paragraphs you have the following options:
20560 \end_layout
20561
20562 \begin_layout Plain Layout
20563 \begin_inset ERT
20564 status open
20565
20566 \begin_layout Plain Layout
20567
20568
20569 \backslash
20570 let
20571 \backslash
20572 savelabelitemi=
20573 \backslash
20574 labelitemi
20575 \end_layout
20576
20577 \end_inset
20578
20579
20580 \end_layout
20581
20582 \begin_layout Plain Layout
20583 \begin_inset ERT
20584 status open
20585
20586 \begin_layout Plain Layout
20587
20588
20589 \backslash
20590 renewcommand
20591 \backslash
20592 labelitemi[0]{
20593 \backslash
20594 small
20595 \backslash
20596 (
20597 \backslash
20598 sharp
20599 \backslash
20600 )}
20601 \end_layout
20602
20603 \end_inset
20604
20605
20606 \end_layout
20607
20608 \begin_layout Itemize
20609 Use the \SpecialChar LaTeX
20610  command 
20611 \begin_inset Flex Code
20612 status collapsed
20613
20614 \begin_layout Plain Layout
20615
20616 \backslash
20617 renewcommand{}{}
20618 \end_layout
20619
20620 \end_inset
20621
20622  to specify a new bullet shape for a given depth.
20623  You'll also need to save the current bullet shape so you can restore it
20624  again afterwards.
20625  In this itemized list the following \SpecialChar LaTeX
20626  code was used to change the bullet
20627  used for the first depth.
20628 \end_layout
20629
20630 \begin_deeper
20631 \begin_layout LyX-Code
20632
20633 \backslash
20634 let
20635 \backslash
20636 savelabelitemi=
20637 \backslash
20638 labelitemi 
20639 \end_layout
20640
20641 \begin_layout LyX-Code
20642
20643 \backslash
20644 renewcommand
20645 \backslash
20646 labelitemi[0]{
20647 \backslash
20648 small
20649 \backslash
20650 (
20651 \backslash
20652 sharp
20653 \backslash
20654 )}
20655 \end_layout
20656
20657 \end_deeper
20658 \begin_layout Itemize
20659 Note that the itemize depth is specified in Roman numerals as part of the
20660  
20661 \family typewriter
20662
20663 \backslash
20664 labelitem
20665 \family default
20666  command.
20667 \end_layout
20668
20669 \begin_layout Itemize
20670 \begin_inset Argument item:1
20671 status open
20672
20673 \begin_layout Plain Layout
20674 \begin_inset ERT
20675 status open
20676
20677 \begin_layout Plain Layout
20678
20679
20680 \backslash
20681 (
20682 \backslash
20683 star
20684 \backslash
20685 )
20686 \end_layout
20687
20688 \end_inset
20689
20690
20691 \end_layout
20692
20693 \end_inset
20694
20695  Specify each individual entry by starting each item with the bullet shape
20696  enclosed in a 
20697 \begin_inset Quotes eld
20698 \end_inset
20699
20700 Custom Item
20701 \begin_inset Quotes erd
20702 \end_inset
20703
20704  inset (available at 
20705 \family sans
20706 Insert\SpecialChar menuseparator
20707 Custom Item
20708 \family default
20709 ) and set as 
20710 \begin_inset Flex Noun
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 \SpecialChar TeX
20715  Code
20716 \end_layout
20717
20718 \end_inset
20719
20720 .
20721  For example, this item was started with 
20722 \begin_inset Flex Code
20723 status collapsed
20724
20725 \begin_layout Plain Layout
20726
20727 \backslash
20728 (
20729 \backslash
20730 star
20731 \backslash
20732 )
20733 \end_layout
20734
20735 \end_inset
20736
20737 .
20738 \end_layout
20739
20740 \begin_layout Plain Layout
20741 \begin_inset ERT
20742 status open
20743
20744 \begin_layout Plain Layout
20745
20746
20747 \backslash
20748 renewcommand
20749 \backslash
20750 labelitemi[0]{
20751 \backslash
20752 savelabelitemi}
20753 \end_layout
20754
20755 \end_inset
20756
20757
20758 \end_layout
20759
20760 \begin_layout Plain Layout
20761 You'll also need to revert the labelitem back to its previous setting for
20762  the global bullet shape settings to remain in effect.
20763  The way used here was:
20764 \end_layout
20765
20766 \begin_layout LyX-Code
20767
20768 \backslash
20769 renewcommand
20770 \backslash
20771 labelitemi[0]{
20772 \backslash
20773 savelabelitemi}
20774 \end_layout
20775
20776 \end_inset
20777
20778
20779 \end_layout
20780
20781 \begin_layout Chapter
20782 Supplemental Tools
20783 \end_layout
20784
20785 \begin_layout Section
20786 Multipart Documents
20787 \end_layout
20788
20789 \begin_layout Subsection
20790 General Operation
20791 \end_layout
20792
20793 \begin_layout Standard
20794 When you are working on a large file with many sections, it is often convenient
20795  to break up the document into several files, or perhaps you have something
20796  where a table may change from time to time, but the preceding text does
20797  not.
20798  In these cases, you should seriously consider using multipart documents.
20799  For example, scientific papers often have five major sections: the introduction
20800 , observations, results, discussion, and conclusion.
20801  Each of these could be its own separate \SpecialChar LyX
20802  file, with one 
20803 \begin_inset Quotes eld
20804 \end_inset
20805
20806 master
20807 \begin_inset Quotes erd
20808 \end_inset
20809
20810  file which contains the title, authors, abstract, references, etc., plus
20811  the five included files.
20812  It is important to note that each of these files is a full \SpecialChar LyX
20813  file which
20814  can be formatted and printed on its own, as well as included in a master
20815  file.
20816  Each of these files must have the same document class, however—don't attempt
20817  to mix book classes with article classes.
20818  You may also include \SpecialChar LaTeX
20819  files; however, these files must not have their own
20820  preamble (i.
20821 \begin_inset space \thinspace{}
20822 \end_inset
20823
20824 e.
20825 \begin_inset space \space{}
20826 \end_inset
20827
20828 everything up to and including the 
20829 \begin_inset Flex Code
20830 status collapsed
20831
20832 \begin_layout Plain Layout
20833
20834 \backslash
20835 begin{document}
20836 \end_layout
20837
20838 \end_inset
20839
20840  line as well as the 
20841 \begin_inset Flex Code
20842 status collapsed
20843
20844 \begin_layout Plain Layout
20845
20846 \backslash
20847 end{document}
20848 \end_layout
20849
20850 \end_inset
20851
20852  line must be deleted) or else errors will be generated when you try to
20853  make a DVI file.
20854 \end_layout
20855
20856 \begin_layout Standard
20857 \SpecialChar LyX
20858  allows you to include files quite easily with 
20859 \begin_inset Flex Noun
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 Insert\SpecialChar menuseparator
20864 Child
20865 \begin_inset space ~
20866 \end_inset
20867
20868 Document
20869 \end_layout
20870
20871 \end_inset
20872
20873 .
20874  When you click on this selection a small box is inserted into the file
20875  at the current cursor location.
20876  Clicking on the box raises a dialog which allows you to select the file
20877  to be included, and the method of its inclusion.
20878  
20879 \end_layout
20880
20881 \begin_layout Standard
20882 The file selection box should by now be obvious.
20883  The three inclusion methods are 
20884 \begin_inset Quotes eld
20885 \end_inset
20886
20887 include
20888 \begin_inset Quotes erd
20889 \end_inset
20890
20891
20892 \begin_inset Quotes eld
20893 \end_inset
20894
20895 input
20896 \begin_inset Quotes erd
20897 \end_inset
20898
20899 , and 
20900 \begin_inset Quotes eld
20901 \end_inset
20902
20903 verbatim
20904 \begin_inset Quotes erd
20905 \end_inset
20906
20907 .
20908  The methods 
20909 \begin_inset Quotes eld
20910 \end_inset
20911
20912 include
20913 \begin_inset Quotes erd
20914 \end_inset
20915
20916  and 
20917 \begin_inset Quotes eld
20918 \end_inset
20919
20920 input
20921 \begin_inset Quotes erd
20922 \end_inset
20923
20924  are similar in many ways, but there are also some notable differences:
20925 \end_layout
20926
20927 \begin_layout Enumerate
20928 Files that are 
20929 \begin_inset Quotes eld
20930 \end_inset
20931
20932 included
20933 \begin_inset Quotes erd
20934 \end_inset
20935
20936  are typeset beginning on a new page, while files that are 
20937 \begin_inset Quotes eld
20938 \end_inset
20939
20940 inputted
20941 \begin_inset Quotes erd
20942 \end_inset
20943
20944  are typeset starting on the current page.
20945 \end_layout
20946
20947 \begin_layout Enumerate
20948 \begin_inset Quotes eld
20949 \end_inset
20950
20951 Included
20952 \begin_inset Quotes erd
20953 \end_inset
20954
20955  files cannot themselves 
20956 \begin_inset Quotes eld
20957 \end_inset
20958
20959 include
20960 \begin_inset Quotes erd
20961 \end_inset
20962
20963  further files (
20964 \begin_inset Quotes eld
20965 \end_inset
20966
20967 grandchilds
20968 \begin_inset Quotes erd
20969 \end_inset
20970
20971 ).
20972  With 
20973 \begin_inset Quotes eld
20974 \end_inset
20975
20976 input
20977 \begin_inset Quotes erd
20978 \end_inset
20979
20980 , on the other hand, infinite sub-inputting is possible.
20981 \end_layout
20982
20983 \begin_layout Enumerate
20984 \begin_inset Quotes eld
20985 \end_inset
20986
20987 Include
20988 \begin_inset Quotes erd
20989 \end_inset
20990
20991  allow for the output of only selected 
20992 \begin_inset Quotes eld
20993 \end_inset
20994
20995 included
20996 \begin_inset Quotes erd
20997 \end_inset
20998
20999  files, while maintaining the actual counters (pagination etc.) and references
21000  (please refer to the section 
21001 \emph on
21002 Child
21003 \begin_inset space ~
21004 \end_inset
21005
21006 Documents
21007 \emph default
21008  of the 
21009 \emph on
21010 Embedded
21011 \begin_inset space ~
21012 \end_inset
21013
21014 Objects
21015 \emph default
21016  manual for details).
21017 \end_layout
21018
21019 \begin_layout Standard
21020 Hence, 
21021 \begin_inset Quotes eld
21022 \end_inset
21023
21024 include
21025 \begin_inset Quotes erd
21026 \end_inset
21027
21028  is the preferred method for chapters that are outsourced to child documents,
21029  while 
21030 \begin_inset Quotes eld
21031 \end_inset
21032
21033 input
21034 \begin_inset Quotes erd
21035 \end_inset
21036
21037  is more suitable for arbitrary file inheritance.
21038 \end_layout
21039
21040 \begin_layout Standard
21041
21042 \begin_inset Quotes eld
21043 \end_inset
21044
21045 verbatim
21046 \begin_inset Quotes erd
21047 \end_inset
21048
21049  included file allows you to include a file typeset exactly as it appears
21050  in the file, i.
21051 \begin_inset space \thinspace{}
21052 \end_inset
21053
21054 e.
21055 \begin_inset space \space{}
21056 \end_inset
21057
21058 in 
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 verbatim
21064 \end_layout
21065
21066 \end_inset
21067
21068  mode, with the characters set in a fixed-width typewriter font.
21069  Normally, spaces in this file are invisible, though two consecutive spaces
21070  are conserved, unlike \SpecialChar LyX
21071 's normal treatment of spaces.
21072  However, setting the 
21073 \begin_inset Flex Noun
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 Mark
21078 \begin_inset space ~
21079 \end_inset
21080
21081 spaces
21082 \begin_inset space ~
21083 \end_inset
21084
21085 in
21086 \begin_inset space ~
21087 \end_inset
21088
21089 output
21090 \end_layout
21091
21092 \end_inset
21093
21094  checkbox typesets a mark to unambiguously define the presence of a space.
21095  
21096 \end_layout
21097
21098 \begin_layout Standard
21099 Generally, the master file is converted into a full \SpecialChar LaTeX
21100  file before typesetting,
21101  while the included files are converted to \SpecialChar LaTeX
21102  files that do not have all the
21103  preamble information.
21104 \end_layout
21105
21106 \begin_layout Subsection
21107 Cross-References Between Files
21108 \end_layout
21109
21110 \begin_layout Standard
21111 \begin_inset Box Shadowbox
21112 position "t"
21113 hor_pos "c"
21114 has_inner_box 1
21115 inner_pos "t"
21116 use_parbox 0
21117 use_makebox 0
21118 width "100col%"
21119 special "none"
21120 height "1in"
21121 height_special "totalheight"
21122 thickness "0.4pt"
21123 separation "3pt"
21124 shadowsize "4pt"
21125 framecolor "black"
21126 backgroundcolor "none"
21127 status open
21128
21129 \begin_layout Plain Layout
21130 This section is somewhat out of date.
21131  Need to describe default master documents and how children are opened when
21132  the master is.
21133  [[FIXME]]
21134 \end_layout
21135
21136 \end_inset
21137
21138
21139 \end_layout
21140
21141 \begin_layout Standard
21142 It is possible to set up cross-references between the different files.
21143  First, open all the files in question: let's call them A and B in a two
21144  file example, where B is included in A.
21145  Let's say you insert a label in A, then want to reference it in B.
21146  Open the cross-reference dialog whilst in document B, and you can select
21147  the 
21148 \begin_inset Quotes eld
21149 \end_inset
21150
21151 buffer
21152 \begin_inset Quotes erd
21153 \end_inset
21154
21155  to use.
21156 \end_layout
21157
21158 \begin_layout Subsection
21159 Bibliography Lists in all Subdocuments
21160 \end_layout
21161
21162 \begin_layout Standard
21163 If you work with child documents, you might want to have only one main bibliogra
21164 phy at the end, but still be able to have a selected bibliography for the
21165  child if you output it on its own.
21166  Here is how to achieve this.
21167 \end_layout
21168
21169 \begin_layout Standard
21170 For the main document, you just insert a bibliography inset at the place
21171  where the main bibliography has to appear (within the master file or within
21172  a child).
21173  If the bibliography inset is in the master file, the references will be
21174  inherited by all children, so they are available in the citation dialog
21175  within each child.
21176 \end_layout
21177
21178 \begin_layout Standard
21179 For child-specific bibliographies, insert bibliography insets within the
21180  child documents, at the place where the bibliography should appear when
21181  the child is compiled separately.
21182  However, the trick is to insert them into a branch (
21183 \family sans
21184 Insert\SpecialChar menuseparator
21185 Branch\SpecialChar menuseparator
21186 Insert New Branch...
21187 \family default
21188 ), e.
21189 \begin_inset space \thinspace{}
21190 \end_inset
21191
21192 g.
21193  called 
21194 \begin_inset Quotes eld
21195 \end_inset
21196
21197 Childonly
21198 \begin_inset Quotes erd
21199 \end_inset
21200
21201 .
21202  Within the children, activate the branch (
21203 \family sans
21204 Document\SpecialChar menuseparator
21205 Settings...\SpecialChar menuseparator
21206 Branches
21207 \family default
21208 ).
21209  Within the master, deactivate the branch (
21210 \family sans
21211 Document\SpecialChar menuseparator
21212 Settings...\SpecialChar menuseparator
21213 Branches
21214 \family default
21215 ).
21216  Now the child's bibliography will be ignored by the master, but considered
21217  by the child.
21218 \end_layout
21219
21220 \begin_layout Standard
21221 If you need multiple bibliographies (e.
21222 \begin_inset space \thinspace{}
21223 \end_inset
21224
21225 g., one per child in the 
21226 \emph on
21227 main document
21228 \emph default
21229 ), please refer to sec.
21230 \begin_inset space ~
21231 \end_inset
21232
21233
21234 \begin_inset CommandInset ref
21235 LatexCommand ref
21236 reference "subsec:Multiple-Bibliographies"
21237
21238 \end_inset
21239
21240 .
21241 \end_layout
21242
21243 \begin_layout Section
21244 \SpecialChar LyX
21245  Archives
21246 \end_layout
21247
21248 \begin_layout Standard
21249 Users sometimes need to be able to 
21250 \begin_inset Quotes eld
21251 \end_inset
21252
21253 bundle
21254 \begin_inset Quotes erd
21255 \end_inset
21256
21257  a \SpecialChar LyX
21258  file together with all the images (and other files) on which it depends,
21259  either for sending to a publisher or for sharing with a co-author.
21260  \SpecialChar LyX
21261  includes a Python script (
21262 \begin_inset Flex Code
21263 status collapsed
21264
21265 \begin_layout Plain Layout
21266 lyxpak.py
21267 \end_layout
21268
21269 \end_inset
21270
21271 ) that automates this process.
21272  To use it, you must have either the 
21273 \begin_inset Flex Code
21274 status collapsed
21275
21276 \begin_layout Plain Layout
21277 zipfile
21278 \end_layout
21279
21280 \end_inset
21281
21282  or 
21283 \begin_inset Flex Code
21284 status collapsed
21285
21286 \begin_layout Plain Layout
21287 tarfile
21288 \end_layout
21289
21290 \end_inset
21291
21292  python modules installed on your system.
21293  By default, the script prefers the 
21294 \begin_inset Flex Code
21295 status collapsed
21296
21297 \begin_layout Plain Layout
21298 gzip
21299 \end_layout
21300
21301 \end_inset
21302
21303 -compressed 
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 tar
21309 \end_layout
21310
21311 \end_inset
21312
21313  format on Unix-like systems and the 
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 zip
21319 \end_layout
21320
21321 \end_inset
21322
21323  format on Windows.
21324 \end_layout
21325
21326 \begin_layout Standard
21327 \SpecialChar LyX
21328 's configuration process will set the script up to export a `\SpecialChar LyX
21329  Archive',
21330  and this format will then be available under 
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 File\SpecialChar menuseparator
21336 Export
21337 \end_layout
21338
21339 \end_inset
21340
21341 .
21342 \end_layout
21343
21344 \begin_layout Standard
21345 Independently of the platform, the generation of a particular archive format
21346  can be forced by adding either the 
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 -t
21352 \end_layout
21353
21354 \end_inset
21355
21356  (for the 
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 tar
21362 \end_layout
21363
21364 \end_inset
21365
21366  format) or 
21367 \begin_inset Flex Code
21368 status collapsed
21369
21370 \begin_layout Plain Layout
21371 -z
21372 \end_layout
21373
21374 \end_inset
21375
21376  (for the 
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 zip
21382 \end_layout
21383
21384 \end_inset
21385
21386  format) switch to the 
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 \SpecialChar LyX
21392 \SpecialChar menuseparator
21393 \SpecialChar LyX
21394  Archive
21395 \end_layout
21396
21397 \end_inset
21398
21399  converter in 
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 Tools\SpecialChar menuseparator
21405 Preferences\SpecialChar menuseparator
21406 File Handling\SpecialChar menuseparator
21407 Converters
21408 \end_layout
21409
21410 \end_inset
21411
21412 .
21413  (Make sure you add the switch after the script name, not before it.)
21414 \end_layout
21415
21416 \begin_layout Section
21417 Fancy Headers and Footers
21418 \end_layout
21419
21420 \begin_layout Standard
21421 The default page layout is rather plain; for an 
21422 \begin_inset Flex Code
21423 status collapsed
21424
21425 \begin_layout Plain Layout
21426 article
21427 \end_layout
21428
21429 \end_inset
21430
21431  document class, all you get is a centered page number at the bottom of
21432  the page.
21433  This document uses KOMA-script's book class, so it appears to be a bit
21434  fancier.
21435  But to really put on a show, you need to set the document page style to
21436  
21437 \begin_inset Quotes eld
21438 \end_inset
21439
21440 fancy
21441 \begin_inset Quotes erd
21442 \end_inset
21443
21444 , as mentioned in the 
21445 \emph on
21446 User Guide
21447 \emph default
21448 .
21449  This section describes the \SpecialChar LaTeX
21450  code you need to insert in your \SpecialChar LaTeX
21451  preamble in
21452  order to get the desired effects.
21453 \end_layout
21454
21455 \begin_layout Standard
21456 For more information on fancy headers, see the 
21457 \begin_inset Flex Code
21458 status collapsed
21459
21460 \begin_layout Plain Layout
21461 fancyhdr
21462 \end_layout
21463
21464 \end_inset
21465
21466  package documentation.
21467  (
21468 \begin_inset Flex URL
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472
21473 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
21474 \end_layout
21475
21476 \end_inset
21477
21478 )
21479 \end_layout
21480
21481 \begin_layout Standard
21482 The page header is divided into three fields, not surprisingly labeled 
21483 \begin_inset Quotes eld
21484 \end_inset
21485
21486 left
21487 \begin_inset Quotes erd
21488 \end_inset
21489
21490
21491 \begin_inset Quotes eld
21492 \end_inset
21493
21494 center
21495 \begin_inset Quotes erd
21496 \end_inset
21497
21498 , and 
21499 \begin_inset Quotes eld
21500 \end_inset
21501
21502 right
21503 \begin_inset Quotes erd
21504 \end_inset
21505
21506 .
21507  The footer is also divided into these three fields.
21508  The \SpecialChar LaTeX
21509  commands to set these fields in the simplest manner are 
21510 \begin_inset Flex Code
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514
21515 \backslash
21516 lhead
21517 \end_layout
21518
21519 \end_inset
21520
21521
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526
21527 \backslash
21528 chead
21529 \end_layout
21530
21531 \end_inset
21532
21533
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538
21539 \backslash
21540 rhead
21541 \end_layout
21542
21543 \end_inset
21544
21545
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550
21551 \backslash
21552 lfoot
21553 \end_layout
21554
21555 \end_inset
21556
21557 , etc.
21558  Suppose you wish to put your name in the upper left hand corner of each
21559  page.
21560  Simply insert the following command in the preamble: 
21561 \end_layout
21562
21563 \begin_layout Standard
21564
21565 \family typewriter
21566
21567 \backslash
21568 lhead{John Q.
21569  DocWriter}
21570 \end_layout
21571
21572 \begin_layout Standard
21573 You will now see your name in the upper left.
21574  If a field has a default entry that you would like to get rid of (often
21575  the page number appears in the central footer) simply include a command
21576  with a blank argument, e.
21577 \begin_inset space \thinspace{}
21578 \end_inset
21579
21580 g.:
21581 \end_layout
21582
21583 \begin_layout Standard
21584
21585 \family typewriter
21586
21587 \backslash
21588 cfoot{}
21589 \end_layout
21590
21591 \begin_layout Standard
21592 Let's get really fancy: lets put the section number with the word 
21593 \begin_inset Quotes eld
21594 \end_inset
21595
21596 Section
21597 \begin_inset Quotes erd
21598 \end_inset
21599
21600  (e.
21601 \begin_inset space \thinspace{}
21602 \end_inset
21603
21604 g.
21605 \begin_inset space \space{}
21606 \end_inset
21607
21608 Section 3) in the upper left, the page number (e.
21609 \begin_inset space \thinspace{}
21610 \end_inset
21611
21612 g.
21613 \begin_inset space \space{}
21614 \end_inset
21615
21616 Page 4) in the upper right, your name in the lower left, and the date in
21617  the lower right.
21618  The following commands should now appear in the preamble:
21619 \end_layout
21620
21621 \begin_layout Standard
21622
21623 \family typewriter
21624
21625 \backslash
21626 lhead{Section 
21627 \backslash
21628 thesection}
21629 \end_layout
21630
21631 \begin_layout Standard
21632
21633 \family typewriter
21634
21635 \backslash
21636 chead{}
21637 \end_layout
21638
21639 \begin_layout Standard
21640
21641 \family typewriter
21642
21643 \backslash
21644 rhead{Page 
21645 \backslash
21646 thepage}
21647 \end_layout
21648
21649 \begin_layout Standard
21650
21651 \family typewriter
21652
21653 \backslash
21654 lfoot{John Q.
21655  DocWriter}
21656 \end_layout
21657
21658 \begin_layout Standard
21659
21660 \family typewriter
21661
21662 \backslash
21663 cfoot{}
21664 \end_layout
21665
21666 \begin_layout Standard
21667
21668 \family typewriter
21669
21670 \backslash
21671 rfoot{
21672 \backslash
21673 today}
21674 \end_layout
21675
21676 \begin_layout Standard
21677 The commands 
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682
21683 \backslash
21684 thesection
21685 \end_layout
21686
21687 \end_inset
21688
21689  and 
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694
21695 \backslash
21696 thepage
21697 \end_layout
21698
21699 \end_inset
21700
21701  access \SpecialChar LaTeX
21702 's section and page counters, and so print out the current section
21703  and page number.
21704  
21705 \begin_inset Flex Code
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709
21710 \backslash
21711 today
21712 \end_layout
21713
21714 \end_inset
21715
21716  simply prints out today's date.
21717 \end_layout
21718
21719 \begin_layout Standard
21720 The thicknesses of the horizontal rules drawn beneath the header and above
21721  the footer can also be modified.
21722  If you don't want one of the rules, set its thickness to 0.
21723  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
21724  Use commands
21725 \family typewriter
21726  
21727 \family default
21728 like 
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733
21734 \backslash
21735 renewcommand{
21736 \backslash
21737 headrulewidth}{0.4pt}
21738 \end_layout
21739
21740 \end_inset
21741
21742  and 
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747
21748 \backslash
21749 renewcommand{
21750 \backslash
21751 footrulewidth}{0.4pt}
21752 \end_layout
21753
21754 \end_inset
21755
21756  to set the thicknesses.
21757 \end_layout
21758
21759 \begin_layout Standard
21760 You can switch the header/footer settings on and off for individual pages
21761  using commands like 
21762 \begin_inset Flex Code
21763 status collapsed
21764
21765 \begin_layout Plain Layout
21766
21767 \backslash
21768 thispagestyle{empty}
21769 \end_layout
21770
21771 \end_inset
21772
21773
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778
21779 \backslash
21780 thispagestyle{plain}
21781 \end_layout
21782
21783 \end_inset
21784
21785 , and 
21786 \begin_inset Flex Code
21787 status collapsed
21788
21789 \begin_layout Plain Layout
21790
21791 \backslash
21792 thispagestyle{fancy}
21793 \end_layout
21794
21795 \end_inset
21796
21797 .
21798  Simply insert them in the text on the page you want changed and mark them
21799  as \SpecialChar TeX
21800  code.
21801  In fact, title pages are marked as plain by default, while following pages
21802  are marked fancy when using the global fancy setting.
21803 \end_layout
21804
21805 \begin_layout Standard
21806 As a final example, it is possible to include an image in the header or
21807  footer.
21808  Suppose you want to put a company logo in the upper lefthand corner.
21809  You might try something like
21810 \end_layout
21811
21812 \begin_layout Standard
21813
21814 \family typewriter
21815
21816 \backslash
21817 lhead{
21818 \backslash
21819 resizebox{1in}{!}{
21820 \backslash
21821 includegraphics{logo.eps}}}
21822 \end_layout
21823
21824 \begin_layout Standard
21825 \noindent
21826 (you may need to preface this with 
21827 \begin_inset Flex Code
21828 status collapsed
21829
21830 \begin_layout Plain Layout
21831
21832 \backslash
21833 usepackage{graphics}
21834 \end_layout
21835
21836 \end_inset
21837
21838  if you don't include graphics elsewhere in your document).
21839 \end_layout
21840
21841 \begin_layout Chapter
21842 \SpecialChar LyX
21843  and the World Wide Web
21844 \end_layout
21845
21846 \begin_layout Standard
21847 \SpecialChar LyX
21848  has long supported the export of documents to various web-friendly formats,
21849  such as HTML.
21850  Before version 2.0, however, HTML export was always accomplished by the
21851  use of external converters.
21852 \begin_inset Foot
21853 status collapsed
21854
21855 \begin_layout Plain Layout
21856 For details on the use of external converters with \SpecialChar LyX
21857 , see the 
21858 \emph on
21859 Converters
21860 \emph default
21861  section of the Customization manual.
21862 \end_layout
21863
21864 \end_inset
21865
21866  These fall into two large groups: there are converters that use \SpecialChar LaTeX
21867  as an
21868  intermediate format, such as 
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 htlatex
21874 \end_layout
21875
21876 \end_inset
21877
21878
21879 \begin_inset Flex Code
21880 status collapsed
21881
21882 \begin_layout Plain Layout
21883 html2latex
21884 \end_layout
21885
21886 \end_inset
21887
21888 , and 
21889 \begin_inset Flex Code
21890 status collapsed
21891
21892 \begin_layout Plain Layout
21893 plastex
21894 \end_layout
21895
21896 \end_inset
21897
21898 , relying upon \SpecialChar LyX
21899  to produce the \SpecialChar LaTeX
21900 ; and there is a converter that works directly
21901  on \SpecialChar LyX
21902  files, 
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 e\SpecialChar LyX
21908 er
21909 \end_layout
21910
21911 \end_inset
21912
21913 .
21914  All of these have different advantages and disadvantages.
21915  
21916 \end_layout
21917
21918 \begin_layout Standard
21919 The \SpecialChar LaTeX
21920 -based converters have the advantage that, in principle, they know everythin
21921 g about the exported document that \SpecialChar LaTeX
21922  does.
21923  Such converters do not care, for example, if a certain block of code was
21924  produced by \SpecialChar LyX
21925  or was Evil Red Text.
21926  These converters know about 
21927 \begin_inset Flex Code
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931 aux
21932 \end_layout
21933
21934 \end_inset
21935
21936  files, counters, and references, and can often make use of the 
21937 \begin_inset Flex Code
21938 status collapsed
21939
21940 \begin_layout Plain Layout
21941 bbl
21942 \end_layout
21943
21944 \end_inset
21945
21946  files generated by Bib\SpecialChar TeX
21947 .
21948  On the other hand, \SpecialChar LaTeX
21949  is a very hard language to parse—it is sometimes said
21950  that only \SpecialChar TeX
21951  itself understands \SpecialChar TeX
21952 —and \SpecialChar LaTeX
21953 -based converters will often choke on
21954  what seem to be quite simple constructs; complex ones can throw them completely
21955 , and as of this writing, for example, the 
21956 \emph on
21957 Embedded Objects
21958 \emph default
21959  manual will not export with 
21960 \begin_inset Flex Code
21961 status collapsed
21962
21963 \begin_layout Plain Layout
21964 htlatex
21965 \end_layout
21966
21967 \end_inset
21968
21969 , though the others will.
21970  The other issue concerns how math is handled.
21971  These converters typically convert the formulae into little pictures that
21972  are then linked from the HTML document.
21973  Since these are actually generated by \SpecialChar LaTeX
21974 , they are accurate.
21975  But they do not scale well, and just getting them to look as if they are
21976  actually meant to be in your document—so that the font sizes seem to be
21977  roughly the same—can be a challenge.
21978 \end_layout
21979
21980 \begin_layout Standard
21981 Alex Fernandez's 
21982 \begin_inset Flex Code
21983 status collapsed
21984
21985 \begin_layout Plain Layout
21986 e\SpecialChar LyX
21987 er
21988 \end_layout
21989
21990 \end_inset
21991
21992  (
21993 \begin_inset CommandInset href
21994 LatexCommand href
21995 name "http://pinchito.es/elyxer/"
21996 target "http://pinchito.es/elyxer/"
21997 literal "false"
21998
21999 \end_inset
22000
22001 ) solves some of these problems.
22002  In particular, the formulae it produces scale perfectly, since it renders
22003  math using a combination of HTML and CSS rather than converting the formulae
22004  to images.
22005  But even moderately complex formula are rendered less well than with 
22006 \begin_inset Flex Code
22007 status collapsed
22008
22009 \begin_layout Plain Layout
22010 htlatex
22011 \end_layout
22012
22013 \end_inset
22014
22015 ; this reflects the limitations of HTML.
22016 \begin_inset Foot
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 That said, 
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 e\SpecialChar LyX
22026 er
22027 \end_layout
22028
22029 \end_inset
22030
22031  can also use jsMath and MathJax for equations, but this setting is only
22032  available globally and requires one to have access to a server that runs
22033  the backend.
22034 \end_layout
22035
22036 \end_inset
22037
22038  More importantly (as of version 1.1.1, at least), 
22039 \begin_inset Flex Code
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043 e\SpecialChar LyX
22044 er
22045 \end_layout
22046
22047 \end_inset
22048
22049  has limited support for math macros and no support for user-defined paragraph
22050  or character styles.
22051  These limitations make 
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 e\SpecialChar LyX
22057 er
22058 \end_layout
22059
22060 \end_inset
22061
22062  unsuitable for many of the documents \SpecialChar LyX
22063  users produce.
22064  In principle, of course, these problems could be solved, but the \SpecialChar LyX
22065  developers
22066  have decided to follow a different path and have made \SpecialChar LyX
22067  itself capable of
22068  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
22069 , DocBook, and plaintext.
22070 \end_layout
22071
22072 \begin_layout Standard
22073 As of this writing, XHTML output remains under development and should probably
22074  be regarded as 
22075 \begin_inset Quotes eld
22076 \end_inset
22077
22078 experimental
22079 \begin_inset Quotes erd
22080 \end_inset
22081
22082 .
22083 \begin_inset Foot
22084 status collapsed
22085
22086 \begin_layout Plain Layout
22087 The file 
22088 \begin_inset Flex Code
22089 status collapsed
22090
22091 \begin_layout Plain Layout
22092 development/HTML/HTML.notes
22093 \end_layout
22094
22095 \end_inset
22096
22097 , which can be found in the \SpecialChar LyX
22098  source tree or 
22099 \begin_inset CommandInset href
22100 LatexCommand href
22101 name "accessed online"
22102 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
22103 literal "false"
22104
22105 \end_inset
22106
22107 , usually contains up-to-date information about the state of XHTML output.
22108  See also the list of XHTML bugs on 
22109 \begin_inset CommandInset href
22110 LatexCommand href
22111 name "the bug tracker"
22112 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"
22113 literal "false"
22114
22115 \end_inset
22116
22117 .
22118 \end_layout
22119
22120 \end_inset
22121
22122  Still, the developers have chosen this approach because it has several
22123  potential advantages over the other two.
22124 \end_layout
22125
22126 \begin_layout Standard
22127 These advantages are primarily due to the fact that the XHTML output routines,
22128  since they are part of \SpecialChar LyX
22129 , know everything \SpecialChar LyX
22130  knows about the document being
22131  exported.
22132 \begin_inset Foot
22133 status collapsed
22134
22135 \begin_layout Plain Layout
22136 Another advantage is that, since these routines are internal to \SpecialChar LyX
22137 , they are
22138  immune to changes in \SpecialChar LyX
22139 's file format, or to changes in the semantics of
22140  existing insets.
22141 \end_layout
22142
22143 \end_inset
22144
22145  So they know about the table of contents (as displayed in the outline),
22146  about the counters associated with different paragraph styles, and about
22147  user-defined styles.
22148  The XHTML output routines know what \SpecialChar LyX
22149  knows about internationalization,
22150  too, so they will output 
22151 \begin_inset Quotes eld
22152 \end_inset
22153
22154 Chapter 1
22155 \begin_inset Quotes erd
22156 \end_inset
22157
22158  or 
22159 \begin_inset Quotes eld
22160 \end_inset
22161
22162
22163 \lang ngerman
22164 Kapitel
22165 \lang english
22166  1
22167 \begin_inset Quotes erd
22168 \end_inset
22169
22170 , depending upon the language in effect at the time.
22171  
22172 \end_layout
22173
22174 \begin_layout Standard
22175 Quite generally, the output routines know what \SpecialChar LyX
22176  knows about document layout,
22177  that is, about how the document is to be rendered on screen.
22178  We use this information when we output the document as XHTML.
22179  In particular, \SpecialChar LyX
22180  
22181 \emph on
22182 automatically
22183 \emph default
22184  generates CSS style information corresponding to the layout information
22185  it uses to render the document on screen: if section headings are supposed
22186  to be sans-serif and bold as seen in \SpecialChar LyX
22187 , then (by default) they will be sans-seri
22188 f and bold when viewed in a web browser, too.
22189  And this is true not just for pre-defined styles, like Section, but for
22190  any style, including user-defined styles.
22191  Indeed, the XHTML output routines make no distinction between user-defined
22192  paragraph and 
22193 \change_deleted 244031559 1603876931
22194 character
22195 \change_inserted 244031559 1603876940
22196 text
22197 \change_unchanged
22198  styles and \SpecialChar LyX
22199 's own pre-defined styles: in each case, everything \SpecialChar LyX
22200  knows about
22201  the styles is contained in the layout files.
22202  And much the same is true as regards pre-defined textual insets, such as
22203  footnotes, and various custom insets.
22204  
22205 \end_layout
22206
22207 \begin_layout Standard
22208 The result is that XHTML output can be customized and extended in exactly
22209  the same way \SpecialChar LaTeX
22210  output can be customized and extended: through layout files
22211  and modules.
22212  See chapter five of the 
22213 \emph on
22214 Customization 
22215 \emph default
22216 manual for the details.
22217 \end_layout
22218
22219 \begin_layout Standard
22220 The remainder of this chapter contains more detailed information on XHTML
22221  output, its limitations, and ways to work around those limitations.
22222 \end_layout
22223
22224 \begin_layout Section
22225 Math Output in XHTML
22226 \end_layout
22227
22228 \begin_layout Standard
22229 \SpecialChar LyX
22230  offers four choices for how math is rendered.
22231  These have various advantages and disadvantages:
22232 \end_layout
22233
22234 \begin_layout Itemize
22235 MathML
22236 \begin_inset Newline newline
22237 \end_inset
22238
22239 MathML is a dialect of XML designed specifically for mathematics on the
22240  web, and it typically renders very well in browsers that support it.
22241  The disadvantage is that not all browsers support MathML, and support is
22242  not complete even in the Gecko-based browsers, such as Firefox.
22243 \begin_inset Newline newline
22244 \end_inset
22245
22246 If \SpecialChar LyX
22247  is unable to render a formula as MathML—for example, if the formula
22248  uses the 
22249 \begin_inset Flex Code
22250 status collapsed
22251
22252 \begin_layout Plain Layout
22253 xymatrix
22254 \end_layout
22255
22256 \end_inset
22257
22258  package or ERT—then it will instead output the formula as an image.
22259  
22260 \end_layout
22261
22262 \begin_layout Itemize
22263 HTML
22264 \begin_inset Newline newline
22265 \end_inset
22266
22267 As mentioned above, 
22268 \begin_inset Flex Code
22269 status collapsed
22270
22271 \begin_layout Plain Layout
22272 elyxer
22273 \end_layout
22274
22275 \end_inset
22276
22277  outputs math as HTML, styled by CSS.
22278 \begin_inset Foot
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 \SpecialChar LyX
22283  has borrowed some of the CSS for its HTML output from 
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 elyxer
22289 \end_layout
22290
22291 \end_inset
22292
22293 .
22294 \end_layout
22295
22296 \end_inset
22297
22298  For simple formulae, this can work quite well, though with more complicated
22299  formulae it tends to break down.
22300  Still, this method has the advantage that it is very widely supported and
22301  so it may be appropriate for documents that contain only a little, fairly
22302  simple math.
22303 \begin_inset Newline newline
22304 \end_inset
22305
22306 If Lyx is unable to render a formula as HTML—for example, if the formula
22307  uses the 
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312 xymatrix
22313 \end_layout
22314
22315 \end_inset
22316
22317  package or ERT—then it will instead output the formula as an image.
22318  
22319 \end_layout
22320
22321 \begin_layout Itemize
22322 Images
22323 \begin_inset Newline newline
22324 \end_inset
22325
22326 Like 
22327 \begin_inset Flex Code
22328 status collapsed
22329
22330 \begin_layout Plain Layout
22331 htlatex
22332 \end_layout
22333
22334 \end_inset
22335
22336 , \SpecialChar LyX
22337  will output formulae as images, the very same images, in fact, that are
22338  used for instant preview.
22339 \begin_inset Foot
22340 status collapsed
22341
22342 \begin_layout Plain Layout
22343 Instant preview does 
22344 \emph on
22345 not 
22346 \emph default
22347 have to be on for images to be output, however.
22348 \end_layout
22349
22350 \end_inset
22351
22352  The advantage to this method is that the images are simply generated by
22353  \SpecialChar LaTeX
22354 , so they are very accurate.
22355  The disadvantage, as mentioned earlier, is that these are bitmapped images,
22356  so they do not scale terribly well, and one cannot copy them, etc.
22357 \begin_inset Newline newline
22358 \end_inset
22359
22360 The size of the images can be controlled by setting the 
22361 \begin_inset Quotes eld
22362 \end_inset
22363
22364 Math Images Scaling
22365 \begin_inset Quotes erd
22366 \end_inset
22367
22368  parameter under 
22369 \begin_inset Flex Noun
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 Document\SpecialChar menuseparator
22374 Settings\SpecialChar menuseparator
22375 Formats
22376 \end_layout
22377
22378 \end_inset
22379
22380 .
22381 \begin_inset Foot
22382 status collapsed
22383
22384 \begin_layout Plain Layout
22385 For those who want to know, this controls the resolution of the image in
22386  dots per inch and is based upon a default of 75 dpi.
22387 \end_layout
22388
22389 \end_inset
22390
22391
22392 \begin_inset Newline newline
22393 \end_inset
22394
22395 If \SpecialChar LyX
22396  for some reason fails to create an image for a formula (e.g., if a required
22397  \SpecialChar LaTeX
22398  package is not installed), then it will fall back to outputing the raw
22399  \SpecialChar LaTeX
22400 .
22401 \end_layout
22402
22403 \begin_layout Itemize
22404 \SpecialChar LaTeX
22405
22406 \begin_inset Newline newline
22407 \end_inset
22408
22409 Finally, \SpecialChar LyX
22410  will happily output math as \SpecialChar LaTeX
22411 .
22412  As well as being the output of last resort, this method can be used with
22413  such tools as 
22414 \begin_inset CommandInset href
22415 LatexCommand href
22416 name "jsMath"
22417 target "http://www.math.union.edu/~dpvc/jsMath/"
22418 literal "false"
22419
22420 \end_inset
22421
22422 , which uses JavaScript to render \SpecialChar LaTeX
22423  embedded in HTML documents.
22424  \SpecialChar LyX
22425  wraps the \SpecialChar LaTeX
22426  in either a 
22427 \begin_inset Flex Code
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 span
22432 \end_layout
22433
22434 \end_inset
22435
22436  (for inline formulas) or 
22437 \begin_inset Flex Code
22438 status collapsed
22439
22440 \begin_layout Plain Layout
22441 div
22442 \end_layout
22443
22444 \end_inset
22445
22446  (for displayed formulas) with 
22447 \begin_inset Flex Code
22448 status collapsed
22449
22450 \begin_layout Plain Layout
22451 class='math'
22452 \end_layout
22453
22454 \end_inset
22455
22456 , as is required for jsMath.
22457 \end_layout
22458
22459 \begin_layout Standard
22460 One of these output methods must be selected under 
22461 \begin_inset Flex Noun
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 Document\SpecialChar menuseparator
22466 Settings\SpecialChar menuseparator
22467 Formats
22468 \end_layout
22469
22470 \end_inset
22471
22472 .
22473  By default, \SpecialChar LyX
22474  outputs MathML.
22475  This is a document-wide setting, therefore.
22476 \end_layout
22477
22478 \begin_layout Standard
22479 Eventually, \SpecialChar LyX
22480  will offer the user the option to select an alternate output
22481  method for a particular inset, say, one that isn't being rendered very
22482  well by MathML.
22483 \begin_inset Foot
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487 That said, since \SpecialChar LyX
22488  falls back to images if the inset contains ERT, then one
22489  can force output as an image by putting some harmless ERT into the math,
22490  for example: 
22491 \begin_inset Formula $a=b\relax$
22492 \end_inset
22493
22494 .
22495 \end_layout
22496
22497 \end_inset
22498
22499
22500 \end_layout
22501
22502 \begin_layout Section
22503 Bibliography and Citations
22504 \end_layout
22505
22506 \begin_layout Standard
22507 XHTML output fully supports bibliographies and citations.
22508  
22509 \end_layout
22510
22511 \begin_layout Standard
22512 Citation labels are generated by the same machinery that generates \SpecialChar LyX
22513 's on-screen
22514  labels, so the labels will look in the output much as they do in \SpecialChar LyX
22515 , though
22516  better.
22517  If you are using numerical citations, then \SpecialChar LyX
22518  will output numerical labels,
22519  such as [1] or [17], rather than simply showing the citation key in square
22520  brackets, as it does on-screen.
22521  If you are using author-year citations, then \SpecialChar LyX
22522  will add lowercase letters
22523  to the years, just as Bib\SpecialChar TeX
22524  does, if it finds more than one citation for
22525  a given author-year combination.
22526  The labels will be printed with the bibliography entries.
22527  Note that there is, at present, no way to customize the appearance of the
22528  labels, for example, to choose between square brackets and parentheses.
22529 \end_layout
22530
22531 \begin_layout Standard
22532 Bibliography output is handled by the same machinery that handles the presentati
22533 on of reference information in the citation dialog, so you will see in the
22534  XHTML output pretty much what you would see if you were to look at a given
22535  entry in the citation dialog.
22536  The formatting can be customized in your layout file or, preferably, in
22537  a module.
22538  See the 
22539 \emph on
22540 Customization
22541 \emph default
22542  manual for the details.
22543 \end_layout
22544
22545 \begin_layout Standard
22546 The main defect at present is that cross-referenced information is printed
22547  with every entry with which it is associated.
22548  So you can see things like this:
22549 \end_layout
22550
22551 \begin_layout Quote
22552 Jason Stanley, 
22553 \begin_inset Quotes eld
22554 \end_inset
22555
22556 Context and Logical Form
22557 \begin_inset Quotes erd
22558 \end_inset
22559
22560 , in 
22561 \emph on
22562 Language in Context: Selected Essays
22563 \emph default
22564  (Oxford: Oxford University Press, 2007), pp.
22565  30–68.
22566 \end_layout
22567
22568 \begin_layout Quote
22569 Jason Stanley, 
22570 \begin_inset Quotes eld
22571 \end_inset
22572
22573 Semantics in Context
22574 \begin_inset Quotes erd
22575 \end_inset
22576
22577 , in 
22578 \emph on
22579 Language in Context: Selected Essays
22580 \emph default
22581  (Oxford: Oxford University Press, 2007), pp.
22582  201–30.
22583 \end_layout
22584
22585 \begin_layout Standard
22586 This should be fixed before long.
22587 \end_layout
22588
22589 \begin_layout Standard
22590 There is no support at present for sectioned bibliographies.
22591  If you have multiple bibliographies, then \SpecialChar LyX
22592  will print the same bibliography
22593  over and over.
22594 \end_layout
22595
22596 \begin_layout Section
22597 Indexes
22598 \end_layout
22599
22600 \begin_layout Standard
22601 \SpecialChar LyX
22602  will happily export indexes as XHTML, but with certain limitations at the
22603  moment.
22604 \end_layout
22605
22606 \begin_layout Standard
22607 Index export will be most reliable when you do not attempt to use the fancy
22608  constructs that are described in the section on indexes in the 
22609 \emph on
22610 User's Guide
22611 \emph default
22612 .
22613 \begin_inset Foot
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 The main issue here is that \SpecialChar LyX
22618  itself does not really handle these.
22619  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
22620 .
22621 \end_layout
22622
22623 \end_inset
22624
22625  We'll describe how they are handled using the subsection headings from
22626  that section.
22627 \end_layout
22628
22629 \begin_layout Itemize
22630 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
22631  makes an effort to support these,
22632  but the entries must be separated by 
22633 \begin_inset Quotes eld
22634 \end_inset
22635
22636  ! 
22637 \begin_inset Quotes erd
22638 \end_inset
22639
22640 , that is, there must be spaces around the exclamation point.
22641  This is because it is otherwise too difficult to check for escaped exclamation
22642  points, ones in math, and so forth.
22643 \end_layout
22644
22645 \begin_layout Itemize
22646 Page Ranges: There is no support at all for page ranges, since these make
22647  no sense with XHMTL.
22648  Instead, you will just get two index entries, one at either end.
22649 \end_layout
22650
22651 \begin_layout Itemize
22652 Cross-referencing: There is no support for cross-referencing.
22653  If \SpecialChar LyX
22654  finds an entry containing the 
22655 \begin_inset Quotes eld
22656 \end_inset
22657
22658 |see\SpecialChar ldots
22659
22660 \begin_inset Quotes erd
22661 \end_inset
22662
22663  construct, it is just dropped, and the rest is treated as an ordinary index
22664  entry.
22665 \end_layout
22666
22667 \begin_layout Itemize
22668 Index Entry Order: \SpecialChar LyX
22669  does support attempts to fix the sorting order.
22670  It will take what is before the first `@' it finds and use that for sorting,
22671  taking what follows the first `@' to be the actual entry.
22672  At present, \SpecialChar LyX
22673  does not check for escaped `@', so do not try to index email
22674  addresses.
22675 \end_layout
22676
22677 \begin_layout Itemize
22678 Index Entry Layout: You can format entries by using the text style dialog,
22679  or by using any other method available within \SpecialChar LyX
22680  itself.
22681  There is no support for constructs like: 
22682 \begin_inset Quotes eld
22683 \end_inset
22684
22685 entry|textbf
22686 \begin_inset Quotes erd
22687 \end_inset
22688
22689 .
22690  Indeed, if \SpecialChar LyX
22691  finds a pipe symbol, `|', in an entry, it will delete it and
22692  everything that follows it.
22693 \end_layout
22694
22695 \begin_layout Itemize
22696 Multiple Indexes: There is no support for multiple indexes.
22697  Rather, all index entries will be printed as one large index.
22698  To avoid our printing several versions of the index, we print only the
22699  main index, so make sure you have one.
22700 \end_layout
22701
22702 \begin_layout Section
22703 Nomenclature and Glossary
22704 \end_layout
22705
22706 \begin_layout Standard
22707 There is at present no support for glossaries.
22708  Adding it would be fairly trivial, and welcome.
22709 \end_layout
22710
22711 \begin_layout Chapter
22712
22713 \change_inserted 1075283030 1616534180
22714 DocBook Output
22715 \end_layout
22716
22717 \begin_layout Standard
22718
22719 \change_inserted 1075283030 1616534386
22720 Apart from HTML, \SpecialChar LyX
22721  can generate documents in the DocBook XML vocabulary.
22722  With versions 2.3 and before, only select templates could be used to generate
22723  DocBook documents (only version 4).
22724  Starting with \SpecialChar LyX
22725  2.4, most \SpecialChar LyX
22726  layouts can generate valid DocBook documents (only
22727  version 5).
22728  This feature is built into \SpecialChar LyX
22729  and does not require the use of external tools.
22730 \end_layout
22731
22732 \begin_layout Standard
22733
22734 \change_inserted 1075283030 1616534437
22735 The result is that the DocBook output can be customized and extended in
22736  exactly the same way \SpecialChar LaTeX
22737  output can be customized and extended: through layout
22738  files and modules.
22739  See chapter five of the 
22740 \emph on
22741 Customization 
22742 \emph default
22743 manual for the details.
22744 \end_layout
22745
22746 \begin_layout Standard
22747
22748 \change_inserted 1075283030 1616534475
22749 Most \SpecialChar LyX
22750  features are supported with DocBook, like math output.
22751 \end_layout
22752
22753 \begin_layout Itemize
22754
22755 \change_inserted 1075283030 1616534741
22756 Math output is performed mostly in MathML (the major exception being constructio
22757 ns not supported by \SpecialChar LyX
22758 , i.e.
22759  ERTs).
22760  All formulae are also available in raw \SpecialChar TeX
22761  in the DocBook output for further
22762  processing.
22763 \end_layout
22764
22765 \begin_layout Itemize
22766
22767 \change_inserted 1075283030 1616534852
22768 Bibliographies and citations are implemented, including with an external
22769  BibTeX file.
22770  Bibliography entries are not prerendered when the detailed information
22771  are available, but rather output with the standard DocBook constructs.
22772  The external DocBook processor is expected to handle the rendering of entries.
22773 \end_layout
22774
22775 \begin_layout Itemize
22776
22777 \change_inserted 1075283030 1616534863
22778 Indexes are supported, including multiple indices.
22779  Grouping (with 
22780 \family typewriter
22781 !
22782 \family default
22783 ), page ranges, and cross-references (
22784 \family typewriter
22785 |see
22786 \family default
22787 ) are supported, with the exception of the same symbols escaped.
22788  Entry order (
22789 \family typewriter
22790 @
22791 \family default
22792 ) and layout (
22793 \family typewriter
22794 |mathbf
22795 \family default
22796 ) are not supported.
22797  There is no support for escaping of index entries.
22798 \end_layout
22799
22800 \begin_layout Itemize
22801
22802 \change_inserted 1075283030 1616534884
22803 Glossaries are implemented.
22804 \end_layout
22805
22806 \begin_layout Standard
22807
22808 \change_inserted 1075283030 1616534894
22809 Two major parameters can be set at the document level.
22810 \end_layout
22811
22812 \begin_layout Itemize
22813
22814 \change_inserted 1075283030 1616534948
22815 Format for tables: \SpecialChar LyX
22816  can generate tables either as HTML (default value) or
22817  CALS, depending on the user's requirements.
22818  Most DocBook processors accept both formats.
22819 \end_layout
22820
22821 \begin_layout Itemize
22822
22823 \change_inserted 1075283030 1616535006
22824 MathML prefix: in DocBook, MathML is included within its own name space,
22825  unlike HTML.
22826  The implication is that there must be an indication of the tags belonging
22827  to the MathML standard.
22828  Three choices are offered: 
22829 \end_layout
22830
22831 \begin_deeper
22832 \begin_layout Itemize
22833
22834 \change_inserted 1075283030 1616535044
22835 Inline: the MathML name space is defined for each formula (using the 
22836 \family typewriter
22837 xmlns
22838 \family default
22839  attribute on each formula)
22840 \end_layout
22841
22842 \begin_layout Itemize
22843
22844 \change_inserted 1075283030 1616535090
22845 With the 
22846 \family typewriter
22847 m
22848 \family default
22849  prefix (default): the MathML name space is defined at the document level
22850  (using the 
22851 \family typewriter
22852 xmlns:m
22853 \family default
22854  attribute on the root element).
22855  Each MathML is prefixed with 
22856 \family typewriter
22857 m
22858 \family default
22859 : for instance, 
22860 \family typewriter
22861 m:math
22862 \end_layout
22863
22864 \begin_layout Itemize
22865
22866 \change_inserted 1075283030 1616620405
22867 With the 
22868 \family typewriter
22869 mml
22870 \family default
22871  prefix: similar to the 
22872 \family typewriter
22873 m
22874 \family default
22875  option, but with 
22876 \family typewriter
22877 mml
22878 \end_layout
22879
22880 \begin_layout Standard
22881
22882 \change_inserted 1075283030 1616620470
22883 This option is especially useful if you want \SpecialChar LyX
22884  to match your personal style
22885  or to work with buggy software that only accepts one prefix for MathML.
22886 \change_unchanged
22887
22888 \end_layout
22889
22890 \end_deeper
22891 \begin_layout Chapter
22892 The \SpecialChar LyX
22893  Server
22894 \end_layout
22895
22896 \begin_layout Section
22897 Introduction
22898 \end_layout
22899
22900 \begin_layout Standard
22901 The `\SpecialChar LyX
22902  server' allows other programs to talk to \SpecialChar LyX
22903 , invoke \SpecialChar LyX
22904  commands, and retrieve
22905  information about the \SpecialChar LyX
22906  internal state.
22907  This is only intended for advanced users, but they should find it useful.
22908  It is by writing to the \SpecialChar LyX
22909  server, for example, that bibliography managers,
22910  such as JabRef, are able to 
22911 \begin_inset Quotes eld
22912 \end_inset
22913
22914 push
22915 \begin_inset Quotes erd
22916 \end_inset
22917
22918  citations to \SpecialChar LyX
22919 .
22920 \end_layout
22921
22922 \begin_layout Section
22923 Starting the \SpecialChar LyX
22924  Server
22925 \begin_inset CommandInset label
22926 LatexCommand label
22927 name "sec:Starting-the-Server"
22928
22929 \end_inset
22930
22931
22932 \end_layout
22933
22934 \begin_layout Standard
22935 The \SpecialChar LyX
22936  server works through the use of a pair of named pipes.
22937  These are usually located in 
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942 UserDir
22943 \end_layout
22944
22945 \end_inset
22946
22947 , (except on Windows, where 
22948 \emph on
22949 local
22950 \emph default
22951  named pipes are special objects located in 
22952 \begin_inset Flex Code
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956
22957 \backslash
22958
22959 \backslash
22960 .
22961 \backslash
22962 pipe
22963 \end_layout
22964
22965 \end_inset
22966
22967 ) and have the names 
22968 \begin_inset Quotes eld
22969 \end_inset
22970
22971
22972 \begin_inset Flex Code
22973 status collapsed
22974
22975 \begin_layout Plain Layout
22976 lyxpipe.in
22977 \end_layout
22978
22979 \end_inset
22980
22981
22982 \begin_inset Quotes erd
22983 \end_inset
22984
22985  and 
22986 \begin_inset Quotes eld
22987 \end_inset
22988
22989
22990 \begin_inset Flex Code
22991 status collapsed
22992
22993 \begin_layout Plain Layout
22994 lyxpipe.out
22995 \end_layout
22996
22997 \end_inset
22998
22999
23000 \begin_inset Quotes erd
23001 \end_inset
23002
23003 .
23004  External programs write into 
23005 \begin_inset Flex Code
23006 status collapsed
23007
23008 \begin_layout Plain Layout
23009 lyxpipe.in
23010 \end_layout
23011
23012 \end_inset
23013
23014  and read back data from 
23015 \begin_inset Flex Code
23016 status collapsed
23017
23018 \begin_layout Plain Layout
23019 lyxpipe.out
23020 \end_layout
23021
23022 \end_inset
23023
23024 .
23025  The stem of the pipe names can be defined in the 
23026 \begin_inset Flex Noun
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 Tools\SpecialChar menuseparator
23031 Preferences
23032 \end_layout
23033
23034 \end_inset
23035
23036  dialog, for example 
23037 \begin_inset Flex Code
23038 status collapsed
23039
23040 \begin_layout Plain Layout
23041 "/home/myhome/lyxpipe"
23042 \end_layout
23043
23044 \end_inset
23045
23046 , or 
23047 \begin_inset Flex Code
23048 status collapsed
23049
23050 \begin_layout Plain Layout
23051 "
23052 \backslash
23053
23054 \backslash
23055 .
23056 \backslash
23057 pipe
23058 \backslash
23059 lyxpipe"
23060 \end_layout
23061
23062 \end_inset
23063
23064  on Windows (where any working path instead of lyxpipe can be used, for
23065  example 
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 "
23071 \backslash
23072
23073 \backslash
23074 .
23075 \backslash
23076 pipe
23077 \backslash
23078 my
23079 \backslash
23080 lyx
23081 \backslash
23082 pipe"
23083 \end_layout
23084
23085 \end_inset
23086
23087  would also work).
23088  You 
23089 \emph on
23090 must
23091 \emph default
23092  configure this manually in order for the server to start.
23093 \end_layout
23094
23095 \begin_layout Standard
23096 \SpecialChar LyX
23097  will add the '
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 .in
23103 \end_layout
23104
23105 \end_inset
23106
23107 ' and '
23108 \begin_inset Flex Code
23109 status collapsed
23110
23111 \begin_layout Plain Layout
23112 .out
23113 \end_layout
23114
23115 \end_inset
23116
23117 ' to create the pipes.
23118  If one of the pipes already exists, \SpecialChar LyX
23119  will assume that another \SpecialChar LyX
23120  process
23121  is already running and will not start the server.
23122  On POSIX (Unix like) systems, if for some other reason, an unused 
23123 \begin_inset Quotes eld
23124 \end_inset
23125
23126 stale
23127 \begin_inset Quotes erd
23128 \end_inset
23129
23130  pipe is left in existence when \SpecialChar LyX
23131  closes, then \SpecialChar LyX
23132  will try to delete it.
23133  If this fails for some reason, you will need to delete the pipes manually
23134  and then restart \SpecialChar LyX
23135 .
23136  On Windows, pipes are deleted by the OS on program termination or crash,
23137  so 
23138 \begin_inset Quotes eld
23139 \end_inset
23140
23141 stale
23142 \begin_inset Quotes erd
23143 \end_inset
23144
23145  pipes should not be possible.
23146 \end_layout
23147
23148 \begin_layout Standard
23149 To have several \SpecialChar LyX
23150  processes with servers at the same time, you have to use
23151  different configurations, perhaps by using separate user directories, each
23152  with its own 
23153 \begin_inset Flex Code
23154 status collapsed
23155
23156 \begin_layout Plain Layout
23157 preferences
23158 \end_layout
23159
23160 \end_inset
23161
23162  file, for each process.
23163 \end_layout
23164
23165 \begin_layout Standard
23166 If you are developing a client program, you might find it useful to enable
23167  debugging information from the \SpecialChar LyX
23168  server.
23169  Do this by starting \SpecialChar LyX
23170  as 
23171 \begin_inset Flex Code
23172 status collapsed
23173
23174 \begin_layout Plain Layout
23175 lyx -dbg lyxserver
23176 \end_layout
23177
23178 \end_inset
23179
23180 .
23181 \end_layout
23182
23183 \begin_layout Standard
23184 You can find a complete example client written in C++ in the source distribution
23185  as 
23186 \begin_inset Flex Code
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190 development/lyxserver/server_monitor.cpp
23191 \end_layout
23192
23193 \end_inset
23194
23195 .
23196 \end_layout
23197
23198 \begin_layout Standard
23199 Another useful tool is the command-line based client found in 
23200 \begin_inset Flex Code
23201 status collapsed
23202
23203 \begin_layout Plain Layout
23204 src/client/lyxclient
23205 \end_layout
23206
23207 \end_inset
23208
23209 .
23210 \end_layout
23211
23212 \begin_layout Section
23213 Normal communication
23214 \end_layout
23215
23216 \begin_layout Standard
23217 To issue a \SpecialChar LyX
23218  call, the client writes a line of ASCII text into the input
23219  pipe.
23220  This line has the following format:
23221 \end_layout
23222
23223 \begin_layout Quote
23224 LYXCMD:
23225 \emph on
23226 clientname
23227 \emph default
23228 :
23229 \emph on
23230 function
23231 \emph default
23232 :
23233 \emph on
23234 argument
23235 \end_layout
23236
23237 \begin_layout Description
23238 clientname is a name that the client can choose arbitrarily.
23239  Its only use is that \SpecialChar LyX
23240  will echo it if it sends an answer—so a client can
23241  dispatch results from different requesters.
23242 \end_layout
23243
23244 \begin_layout Description
23245 function is the function you want \SpecialChar LyX
23246  to perform.
23247  It is the same as the commands you'd use in the minibuffer.
23248 \end_layout
23249
23250 \begin_layout Description
23251 argument is an optional argument which is meaningful only to some functions
23252  (for instance, the 
23253 \begin_inset Quotes eld
23254 \end_inset
23255
23256 self-insert
23257 \begin_inset Quotes erd
23258 \end_inset
23259
23260  LFUN will insert the argument as text at the cursor position).
23261 \end_layout
23262
23263 \begin_layout Standard
23264 The answer from \SpecialChar LyX
23265  will arrive in the output pipe and be of the form
23266 \end_layout
23267
23268 \begin_layout Quote
23269 INFO:
23270 \emph on
23271 clientname
23272 \emph default
23273 :
23274 \emph on
23275 function
23276 \emph default
23277 :
23278 \emph on
23279 data
23280 \end_layout
23281
23282 \begin_layout Standard
23283 where 
23284 \emph on
23285 clientname
23286 \emph default
23287  and 
23288 \emph on
23289 function
23290 \emph default
23291  are just echoed from the command request, while 
23292 \emph on
23293 data
23294 \emph default
23295  is more or less useful information filled according to how the command
23296  execution worked out.
23297  Some commands, such as 
23298 \begin_inset Quotes eld
23299 \end_inset
23300
23301 font-state
23302 \begin_inset Quotes erd
23303 \end_inset
23304
23305 , will return information about the internal state of \SpecialChar LyX
23306 , while other will
23307  return an empty data-response.
23308  This means that the command execution went fine.
23309 \end_layout
23310
23311 \begin_layout Standard
23312 In case of errors, the response from \SpecialChar LyX
23313  will have this form
23314 \end_layout
23315
23316 \begin_layout Quote
23317 ERROR:
23318 \emph on
23319 clientname
23320 \emph default
23321 :
23322 \emph on
23323 function
23324 \emph default
23325 :
23326 \emph on
23327 error message
23328 \end_layout
23329
23330 \begin_layout Standard
23331 where the 
23332 \emph on
23333 error message
23334 \emph default
23335  should contain an explanation of why the command failed.
23336 \end_layout
23337
23338 \begin_layout Standard
23339 Examples:
23340 \end_layout
23341
23342 \begin_layout LyX-Code
23343 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
23344 \begin_inset Newline newline
23345 \end_inset
23346
23347 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
23348 \begin_inset Newline newline
23349 \end_inset
23350
23351 read a <~/.lyxpipe.out
23352 \begin_inset Newline newline
23353 \end_inset
23354
23355 echo $a
23356 \end_layout
23357
23358 \begin_layout Subsection
23359 AppleScript (Mac OS X)
23360 \end_layout
23361
23362 \begin_layout Standard
23363 Since \SpecialChar LyX
23364  2.1, \SpecialChar LyX
23365  supports basic interactions with AppleScript for normal communicatio
23366 n through the command run.
23367  This command takes a direct argument (the 
23368 \series bold
23369 function
23370 \series default
23371  to perform) and an optional argument.
23372  It either returns the output of the function or triggers an error with
23373  the error message and code.
23374 \end_layout
23375
23376 \begin_layout Standard
23377 Example:
23378 \end_layout
23379
23380 \begin_layout LyX-Code
23381 tell application "\SpecialChar LyX
23382 "
23383 \end_layout
23384
23385 \begin_layout LyX-Code
23386   try
23387 \end_layout
23388
23389 \begin_layout LyX-Code
23390     -- Stores the current file name into f
23391 \end_layout
23392
23393 \begin_layout LyX-Code
23394     set f to (run "server-get-filename" with argument "")
23395 \end_layout
23396
23397 \begin_layout LyX-Code
23398     on error the error_message number the error_number
23399 \end_layout
23400
23401 \begin_layout LyX-Code
23402       display dialog "Error: " & the error_number & ".
23403  " ¬
23404 \end_layout
23405
23406 \begin_layout LyX-Code
23407               & the error_message buttons {"OK"} default button 1
23408 \end_layout
23409
23410 \begin_layout LyX-Code
23411   end try
23412 \end_layout
23413
23414 \begin_layout LyX-Code
23415 end tell
23416 \end_layout
23417
23418 \begin_layout Section
23419 Notification
23420 \end_layout
23421
23422 \begin_layout Standard
23423 \SpecialChar LyX
23424  can notify clients of events going on asynchronously.
23425  Currently it will only do this if the user binds a key sequence with the
23426  function 
23427 \begin_inset Quotes eld
23428 \end_inset
23429
23430 notify
23431 \begin_inset Quotes erd
23432 \end_inset
23433
23434 .
23435  The format of the string \SpecialChar LyX
23436  sends is as follows:
23437 \end_layout
23438
23439 \begin_layout Quote
23440 \begin_inset Flex Code
23441 status collapsed
23442
23443 \begin_layout Plain Layout
23444 NOTIFY:
23445 \end_layout
23446
23447 \end_inset
23448
23449
23450 \emph on
23451 key-sequence
23452 \end_layout
23453
23454 \begin_layout Standard
23455 where 
23456 \emph on
23457 key-sequence
23458 \emph default
23459  is the printed representation of the key sequence that was actually typed
23460  by the user.
23461 \end_layout
23462
23463 \begin_layout Standard
23464 This mechanism can be used to extend \SpecialChar LyX
23465 's command set and implement macros.
23466  Bind some key sequence to 
23467 \begin_inset Quotes eld
23468 \end_inset
23469
23470 notify
23471 \begin_inset Quotes erd
23472 \end_inset
23473
23474 .
23475  Then start a client that listens on the output pipe, dispatches the command
23476  according to the sequence, and starts a function that may use \SpecialChar LyX
23477  calls and
23478  \SpecialChar LyX
23479  requests to issue a command or a series of commands to \SpecialChar LyX
23480 .
23481 \end_layout
23482
23483 \begin_layout Section
23484 The simple \SpecialChar LyX
23485  Server Protocol
23486 \end_layout
23487
23488 \begin_layout Standard
23489 \SpecialChar LyX
23490  implements a simple protocol that can be used for session management.
23491  All messages are of the form
23492 \end_layout
23493
23494 \begin_layout Quote
23495 LYXSRV:
23496 \emph on
23497 clientname
23498 \emph default
23499 :
23500 \emph on
23501 protocol message
23502 \end_layout
23503
23504 \begin_layout Standard
23505 where 
23506 \emph on
23507 protocol message
23508 \emph default
23509  can be 
23510 \begin_inset Quotes eld
23511 \end_inset
23512
23513 hello
23514 \begin_inset Quotes erd
23515 \end_inset
23516
23517  or 
23518 \begin_inset Quotes eld
23519 \end_inset
23520
23521 bye
23522 \begin_inset Quotes erd
23523 \end_inset
23524
23525 .
23526  If 
23527 \begin_inset Quotes eld
23528 \end_inset
23529
23530 hello
23531 \begin_inset Quotes erd
23532 \end_inset
23533
23534  is received from a client, \SpecialChar LyX
23535  will report back to inform the client that
23536  it's listening to it's messages, while 
23537 \begin_inset Quotes eld
23538 \end_inset
23539
23540 bye
23541 \begin_inset Quotes erd
23542 \end_inset
23543
23544  sent from \SpecialChar LyX
23545  will inform clients that \SpecialChar LyX
23546  is closing.
23547 \end_layout
23548
23549 \begin_layout Section
23550 Reverse DVI/PDF search
23551 \end_layout
23552
23553 \begin_layout Standard
23554 Some DVI/PDF viewers
23555 \begin_inset Foot
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
23560  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
23561 \end_layout
23562
23563 \end_inset
23564
23565  provide 
23566 \emph on
23567 reverse search
23568 \emph default
23569  facility (also called 
23570 \emph on
23571 inverse search
23572 \emph default
23573 ).
23574  This means that you can tell \SpecialChar LyX
23575  to put the cursor to a specific line in the
23576  document by clicking at the respective position in the DVI/PDF output.
23577  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
23578 .
23579  This is done via the \SpecialChar LyX
23580  server either by using the named pipe (
23581 \emph on
23582 lyxpipe
23583 \emph default
23584 ), or the UNIX domain socket (
23585 \emph on
23586 lyxsocket
23587 \emph default
23588 ) that \SpecialChar LyX
23589  creates in its temporary directory (this is the way the 
23590 \begin_inset Flex Code
23591 status collapsed
23592
23593 \begin_layout Plain Layout
23594 lyxclient
23595 \end_layout
23596
23597 \end_inset
23598
23599  program communicates with \SpecialChar LyX
23600 ).
23601  In some cases, you need a helper script that mediates between the viewer
23602  and \SpecialChar LyX
23603 , in others, the viewer can communicate with \SpecialChar LyX
23604  directly.
23605  This depends on the selected viewer and on your operating system.
23606  The same applies to the way viewers need to be configured and the way the
23607  reverse search is actually performed.
23608  In what follows, we will thus describe how to setup reverse search for
23609  specific viewers.
23610  Before we turn to this, though, we will explain what needs to be done generally
23611  to enable reverse search in the DVI/PDF output.
23612 \end_layout
23613
23614 \begin_layout Subsection
23615 Automatic setup
23616 \begin_inset CommandInset label
23617 LatexCommand label
23618 name "subsec:rev-search"
23619
23620 \end_inset
23621
23622
23623 \end_layout
23624
23625 \begin_layout Standard
23626 In most cases \SpecialChar LyX
23627  will do the work for you by pressing the following button
23628  in the toolbar: 
23629 \begin_inset Info
23630 type  "icon"
23631 arg   "buffer-toggle-output-sync"
23632 \end_inset
23633
23634 .
23635  Alternatively, you can also enable the feature by checking 
23636 \family sans
23637 Synchronize with Output
23638 \family default
23639  in 
23640 \begin_inset Flex Noun
23641 status collapsed
23642
23643 \begin_layout Plain Layout
23644 Document\SpecialChar menuseparator
23645 Settings\SpecialChar menuseparator
23646 Formats
23647 \end_layout
23648
23649 \end_inset
23650
23651 .
23652  In such a case \SpecialChar LyX
23653  will automatically insert the necessary Sync\SpecialChar TeX
23654  macro (for
23655  PDF) or load the srcltx package (for DVI) respectively.
23656  This option can be easily reached also on 
23657 \begin_inset Flex Code
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661 View/Update
23662 \end_layout
23663
23664 \end_inset
23665
23666  Toolbar.
23667 \end_layout
23668
23669 \begin_layout Standard
23670 If you need a different setting, you can select or input a custom macro
23671  from the drop down box just below 
23672 \begin_inset Flex Noun
23673 status collapsed
23674
23675 \begin_layout Plain Layout
23676 Document\SpecialChar menuseparator
23677 Settings\SpecialChar menuseparator
23678 Output\SpecialChar menuseparator
23679 Synchronize with Output
23680 \end_layout
23681
23682 \end_inset
23683
23684 .
23685 \end_layout
23686
23687 \begin_layout Standard
23688 Note that the method 
23689 \begin_inset Flex Code
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693
23694 \backslash
23695 synctex=1
23696 \end_layout
23697
23698 \end_inset
23699
23700  enables gzip compression.
23701  If your viewer does not support it, you should instead use 
23702 \begin_inset Flex Code
23703 status collapsed
23704
23705 \begin_layout Plain Layout
23706
23707 \backslash
23708 synctex=-1
23709 \end_layout
23710
23711 \end_inset
23712
23713 .
23714 \end_layout
23715
23716 \begin_layout Standard
23717 Please also note that including the 
23718 \begin_inset Flex Code
23719 status collapsed
23720
23721 \begin_layout Plain Layout
23722 srcltx
23723 \end_layout
23724
23725 \end_inset
23726
23727  package or 
23728 \begin_inset Flex Code
23729 status collapsed
23730
23731 \begin_layout Plain Layout
23732 src-specials
23733 \end_layout
23734
23735 \end_inset
23736
23737  sometimes has an undesired impact on the typesetting.
23738  Thus, you should switch output synchronization off for the final typesetting
23739  if you use the 
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744 srcltx
23745 \end_layout
23746
23747 \end_inset
23748
23749  package or 
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754 src-specials
23755 \end_layout
23756
23757 \end_inset
23758
23759 .
23760  
23761 \end_layout
23762
23763 \begin_layout Standard
23764 In case you need some more special settings that are not covered by the
23765  automatic settings, read the next section about how to set up output synchroniz
23766 ation manually.
23767  If the automatic setup suits your needs, you can readily jump to section
23768 \begin_inset space ~
23769 \end_inset
23770
23771
23772 \begin_inset CommandInset ref
23773 LatexCommand ref
23774 reference "subsec:configuring-viewers"
23775
23776 \end_inset
23777
23778 , where the necessary configuration steps in your viewer – needed both with
23779  the automatic and the manual setup – are described.
23780 \end_layout
23781
23782 \begin_layout Subsection
23783 Manual setup
23784 \end_layout
23785
23786 \begin_layout Standard
23787 \SpecialChar LaTeX
23788  provides several different methods for reverse search.
23789  Some are built-in in the 
23790 \begin_inset Flex Code
23791 status collapsed
23792
23793 \begin_layout Plain Layout
23794 latex/pdflatex
23795 \end_layout
23796
23797 \end_inset
23798
23799  program, some are provided by external packages.
23800  Your choice depends on whether your \SpecialChar LaTeX
23801  distribution already provides a given
23802  method (the built-in methods are rather new) and whether your viewer can
23803  cope with it.
23804  The available methods are described in the following.
23805 \end_layout
23806
23807 \begin_layout Subsubsection*
23808 Built-in DVI-search via src-specials (DVI only) 
23809 \end_layout
23810
23811 \begin_layout Standard
23812 This method provides the DVI file with the necessary information for reverse
23813  search.
23814  It is available in \SpecialChar LaTeX
23815  since quite some time (any somewhat recent \SpecialChar LaTeX
23816  distribution
23817  should include it), and it works reliably.
23818  To enable it, change the 
23819 \begin_inset Flex Noun
23820 status collapsed
23821
23822 \begin_layout Plain Layout
23823 La
23824 \family sans
23825 TeX
23826 \family default
23827  (plain)->DVI
23828 \end_layout
23829
23830 \end_inset
23831
23832  or 
23833 \begin_inset Flex Noun
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837 La
23838 \family sans
23839 TeX
23840 \family default
23841  (plain)->DraftDVI
23842 \end_layout
23843
23844 \end_inset
23845
23846  converter in 
23847 \begin_inset Flex Noun
23848 status collapsed
23849
23850 \begin_layout Plain Layout
23851 Preferences\SpecialChar menuseparator
23852 File Handling\SpecialChar menuseparator
23853 Converters
23854 \end_layout
23855
23856 \end_inset
23857
23858  to 
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863 latex -src-specials $$i
23864 \end_layout
23865
23866 \end_inset
23867
23868 .
23869  If this doesn't work, check if your \SpecialChar TeX
23870  engine needs different options (the
23871  syntax might differ in some distributions).
23872 \end_layout
23873
23874 \begin_layout Subsubsection*
23875 External Packages (PDFSync and scrltx) 
23876 \end_layout
23877
23878 \begin_layout Standard
23879 The packages 
23880 \emph on
23881 pdfsync
23882 \emph default
23883  and 
23884 \emph on
23885 scrltx
23886 \emph default
23887  provide reverse search facility for PDF output (via pdflatex) and DVI output,
23888  respectively.
23889  In order to enable it, load the packages in the \SpecialChar LyX
23890  preamble: 
23891 \end_layout
23892
23893 \begin_layout Itemize
23894 \begin_inset Flex Code
23895 status collapsed
23896
23897 \begin_layout Plain Layout
23898
23899 \backslash
23900 usepackage{pdfsync}
23901 \end_layout
23902
23903 \end_inset
23904
23905  for reverse PDF search,
23906 \end_layout
23907
23908 \begin_layout Itemize
23909 \begin_inset Flex Code
23910 status collapsed
23911
23912 \begin_layout Plain Layout
23913
23914 \backslash
23915 usepackage[active]{srcltx}
23916 \end_layout
23917
23918 \end_inset
23919
23920  for reverse DVI search.
23921 \end_layout
23922
23923 \begin_layout Standard
23924 If you want to be able to perform both DVI and PDF reverse searches, you
23925  can also insert in the preamble the following lines
23926 \end_layout
23927
23928 \begin_layout LyX-Code
23929
23930 \backslash
23931 usepackage{ifpdf}
23932 \begin_inset Newline newline
23933 \end_inset
23934
23935
23936 \backslash
23937 ifpdf
23938 \begin_inset Newline newline
23939 \end_inset
23940
23941   
23942 \backslash
23943 usepackage{pdfsync}
23944 \begin_inset Newline newline
23945 \end_inset
23946
23947
23948 \backslash
23949 else
23950 \begin_inset Newline newline
23951 \end_inset
23952
23953   
23954 \backslash
23955 usepackage[active]{srcltx}
23956 \begin_inset Newline newline
23957 \end_inset
23958
23959
23960 \backslash
23961 fi
23962 \end_layout
23963
23964 \begin_layout Standard
23965 This way, you can preview the file as either DVI or PDF (pdflatex) and the
23966  right package will be used.
23967 \end_layout
23968
23969 \begin_layout Standard
23970 Note that PDFSync might affect the output layout of your document.
23971  It is therefore advised to disable PDFsync for final documents.
23972 \end_layout
23973
23974 \begin_layout Subsubsection*
23975 Built-in reverse search via Sync\SpecialChar TeX
23976  (DVI and PDF) 
23977 \end_layout
23978
23979 \begin_layout Standard
23980 Recent versions of 
23981 \begin_inset Flex Code
23982 status collapsed
23983
23984 \begin_layout Plain Layout
23985 (pdf)latex
23986 \end_layout
23987
23988 \end_inset
23989
23990  have built-in support for both PDF and DVI reverse search.
23991  This so-called 
23992 \emph on
23993 Sync\SpecialChar TeX
23994
23995 \emph default
23996  facility is basically the result of the integration of the PDFSync package
23997  to the pdftex program and its merge with the 
23998 \emph on
23999 scr-specials
24000 \emph default
24001  approach.
24002  You need at least \SpecialChar TeX
24003 Live 2008 or a recent Mik\SpecialChar TeX
24004  distribution in order to use
24005  it.
24006 \begin_inset Foot
24007 status collapsed
24008
24009 \begin_layout Plain Layout
24010 For some reason, Mik\SpecialChar TeX
24011  does not understand/obey the command \SpecialChar LyX
24012  inserts into
24013  the preamble when you check the "Enable Forward/Reverse Search" button
24014  in the toolbar and does not generate the necessary info.
24015 \end_layout
24016
24017 \begin_layout Plain Layout
24018 The generation of the required info can be forced by changing the converter
24019  "\SpecialChar LaTeX
24020  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
24021  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
24022  the -synctex=1 switch).
24023 \end_layout
24024
24025 \end_inset
24026
24027  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
24028  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
24029  already provide Sync\SpecialChar TeX
24030  support.
24031 \end_layout
24032
24033 \begin_layout Standard
24034 To enable Sync\SpecialChar TeX
24035  for DVI output, change the 
24036 \begin_inset Flex Noun
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 La
24041 \family sans
24042 TeX
24043 \family default
24044  (plain) -> DVI
24045 \end_layout
24046
24047 \end_inset
24048
24049  or 
24050 \begin_inset Flex Noun
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054 La
24055 \family sans
24056 TeX
24057 \family default
24058  (plain) -> DraftDVI
24059 \end_layout
24060
24061 \end_inset
24062
24063  converter in 
24064 \begin_inset Flex Noun
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068 Preferences\SpecialChar menuseparator
24069 File Handling\SpecialChar menuseparator
24070 Converters
24071 \end_layout
24072
24073 \end_inset
24074
24075  to 
24076 \begin_inset Flex Code
24077 status collapsed
24078
24079 \begin_layout Plain Layout
24080 latex -synctex=1 $$i
24081 \end_layout
24082
24083 \end_inset
24084
24085 , and for PDF output, change the 
24086 \begin_inset Flex Noun
24087 status collapsed
24088
24089 \begin_layout Plain Layout
24090 La
24091 \family sans
24092 TeX
24093 \family default
24094  (pdflatex) -> PDF (pdflatex)
24095 \end_layout
24096
24097 \end_inset
24098
24099  converter to 
24100 \begin_inset Flex Code
24101 status collapsed
24102
24103 \begin_layout Plain Layout
24104 pdflatex -synctex=1 $$i
24105 \end_layout
24106
24107 \end_inset
24108
24109 .
24110  Should your viewer not be considered in the following description, or in
24111  case of missing success, please check the documentation of your viewer
24112  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
24113 .
24114 \begin_inset Foot
24115 status collapsed
24116
24117 \begin_layout Plain Layout
24118 Note that the option 
24119 \begin_inset Flex Code
24120 status collapsed
24121
24122 \begin_layout Plain Layout
24123 -synctex=1
24124 \end_layout
24125
24126 \end_inset
24127
24128  option enables gzip compression.
24129  If your viewer does not support it, you should instead use 
24130 \begin_inset Flex Code
24131 status collapsed
24132
24133 \begin_layout Plain Layout
24134 -synctex=-1
24135 \end_layout
24136
24137 \end_inset
24138
24139 .
24140 \end_layout
24141
24142 \end_inset
24143
24144
24145 \end_layout
24146
24147 \begin_layout Subsection
24148 Configuring and using specific viewers
24149 \begin_inset CommandInset label
24150 LatexCommand label
24151 name "subsec:configuring-viewers"
24152
24153 \end_inset
24154
24155
24156 \end_layout
24157
24158 \begin_layout Subsubsection*
24159 Xdvi (all platforms)
24160 \end_layout
24161
24162 \begin_layout Standard
24163 If you use 
24164 \begin_inset Flex Code
24165 status collapsed
24166
24167 \begin_layout Plain Layout
24168 xdvi
24169 \end_layout
24170
24171 \end_inset
24172
24173 , you don't need to do anything else for performing a reverse DVI search,
24174  as \SpecialChar LyX
24175  already provides the necessary hooks for automatically using the 
24176 \begin_inset Flex Code
24177 status collapsed
24178
24179 \begin_layout Plain Layout
24180 lyxclient
24181 \end_layout
24182
24183 \end_inset
24184
24185  program.
24186  Just setup your document as described above (reverse search is triggered
24187  by Ctrl-click or Alt-click on Mac OSX, respectively).
24188 \end_layout
24189
24190 \begin_layout Standard
24191 However, if for whatever reason you want to use the named pipe instead of
24192  the socket for communicating with \SpecialChar LyX
24193 , simply change the DVI viewer in 
24194 \begin_inset Flex Noun
24195 status collapsed
24196
24197 \begin_layout Plain Layout
24198 Preferences\SpecialChar menuseparator
24199 File Handling\SpecialChar menuseparator
24200 File formats
24201 \end_layout
24202
24203 \end_inset
24204
24205  to
24206 \begin_inset Foot
24207 status collapsed
24208
24209 \begin_layout Plain Layout
24210 On Mac OSX you have to use 
24211 \begin_inset Flex Code
24212 status collapsed
24213
24214 \begin_layout Plain Layout
24215 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
24216 \end_layout
24217
24218 \end_inset
24219
24220
24221 \end_layout
24222
24223 \end_inset
24224
24225  
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 xdvi -editor "lyxeditor.sh %f %l"
24231 \end_layout
24232
24233 \end_inset
24234
24235 , where 
24236 \begin_inset Flex Code
24237 status collapsed
24238
24239 \begin_layout Plain Layout
24240 lyxeditor.sh
24241 \end_layout
24242
24243 \end_inset
24244
24245  is a suitable script.
24246  For example, a minimal shell script is the following one:
24247 \end_layout
24248
24249 \begin_layout LyX-Code
24250 #!/bin/sh
24251 \begin_inset Newline newline
24252 \end_inset
24253
24254 LYXPIPE="/path/to/lyxpipe"
24255 \begin_inset Newline newline
24256 \end_inset
24257
24258 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
24259 \begin_inset Newline newline
24260 \end_inset
24261
24262 echo "$COMMAND" > "${LYXPIPE}".in || exit
24263 \begin_inset Newline newline
24264 \end_inset
24265
24266 read TMP < "${LYXPIPE}".out || exit
24267 \end_layout
24268
24269 \begin_layout Standard
24270 where 
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 /path/to/lyxpipe
24276 \end_layout
24277
24278 \end_inset
24279
24280  is the LyXServer pipe path specified in 
24281 \begin_inset Flex Noun
24282 status collapsed
24283
24284 \begin_layout Plain Layout
24285 Preferences\SpecialChar menuseparator
24286 Paths
24287 \end_layout
24288
24289 \end_inset
24290
24291 .
24292 \begin_inset Foot
24293 status collapsed
24294
24295 \begin_layout Plain Layout
24296 In the 
24297 \begin_inset Flex Code
24298 status collapsed
24299
24300 \begin_layout Plain Layout
24301 development/tools
24302 \end_layout
24303
24304 \end_inset
24305
24306  folder of a source distribution you can find a 
24307 \begin_inset Flex Code
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311 lyxeditor
24312 \end_layout
24313
24314 \end_inset
24315
24316  script which is able to locate the 
24317 \emph on
24318 lyxpipe
24319 \emph default
24320  based on your preferences.
24321 \end_layout
24322
24323 \end_inset
24324
24325
24326 \end_layout
24327
24328 \begin_layout Subsubsection*
24329 MacDviX (Mac OSX)
24330 \end_layout
24331
24332 \begin_layout Standard
24333 At the end of 
24334 \begin_inset Flex Code
24335 status collapsed
24336
24337 \begin_layout Plain Layout
24338 /Applications/MacDviX_Folder/calleditor.script
24339 \end_layout
24340
24341 \end_inset
24342
24343 , add the following lines:
24344 \end_layout
24345
24346 \begin_layout LyX-Code
24347 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
24348 \begin_inset Newline newline
24349 \end_inset
24350
24351 exit 1
24352 \end_layout
24353
24354 \begin_layout Standard
24355 Modify the lines accordingly if you install \SpecialChar LyX
24356  somewhere else than in the
24357  Applications folder.
24358 \end_layout
24359
24360 \begin_layout Standard
24361 Reverse search is triggered by Alt-click (OPTION-click).
24362 \end_layout
24363
24364 \begin_layout Subsubsection*
24365 Skim (Mac OSX)
24366 \end_layout
24367
24368 \begin_layout Standard
24369 Enter 
24370 \begin_inset Flex Code
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374 open -a Skim.app $$i
24375 \end_layout
24376
24377 \end_inset
24378
24379  to the viewer setting in 
24380 \begin_inset Flex Noun
24381 status collapsed
24382
24383 \begin_layout Plain Layout
24384 Preferences\SpecialChar menuseparator
24385 File Handling\SpecialChar menuseparator
24386 File formats\SpecialChar menuseparator
24387 PDF (pdflatex)
24388 \end_layout
24389
24390 \end_inset
24391
24392 , and then in 
24393 \begin_inset Flex Noun
24394 status collapsed
24395
24396 \begin_layout Plain Layout
24397 Skim\SpecialChar menuseparator
24398 Preferences\SpecialChar menuseparator
24399 Sync
24400 \end_layout
24401
24402 \end_inset
24403
24404  choose 
24405 \begin_inset Flex Noun
24406 status collapsed
24407
24408 \begin_layout Plain Layout
24409 custom
24410 \end_layout
24411
24412 \end_inset
24413
24414  preset and enter command 
24415 \begin_inset Flex Noun
24416 status collapsed
24417
24418 \begin_layout Plain Layout
24419 /Applications/\SpecialChar LyX
24420 .app/Contents/MacOS/lyxeditor
24421 \end_layout
24422
24423 \end_inset
24424
24425 .
24426 \end_layout
24427
24428 \begin_layout Standard
24429 Reverse search is triggered by COMMAND-SHIFT-click
24430 \end_layout
24431
24432 \begin_layout Subsubsection*
24433 Evince (GNOME)
24434 \end_layout
24435
24436 \begin_layout Standard
24437 Reverse search with evince does not work out of the box, but it can be achieved
24438  by means of some third party helper scripts.
24439  Please refer to 
24440 \begin_inset CommandInset href
24441 LatexCommand href
24442 target "https://wiki.lyx.org/LyX/SyncTeX"
24443 literal "false"
24444
24445 \end_inset
24446
24447  for details.
24448 \end_layout
24449
24450 \begin_layout Subsubsection*
24451 Okular (KDE)
24452 \end_layout
24453
24454 \begin_layout Standard
24455 Go to 
24456 \begin_inset Flex Noun
24457 status collapsed
24458
24459 \begin_layout Plain Layout
24460 Settings\SpecialChar menuseparator
24461 Configure Okular\SpecialChar menuseparator
24462 Editor
24463 \end_layout
24464
24465 \end_inset
24466
24467  and select LyX
24468 \begin_inset Quotes erd
24469 \end_inset
24470
24471  as editor.
24472  This inserts the appropriate command (
24473 \begin_inset Flex Code
24474 status collapsed
24475
24476 \begin_layout Plain Layout
24477 lyxclient -g %f %l
24478 \end_layout
24479
24480 \end_inset
24481
24482 ).
24483 \end_layout
24484
24485 \begin_layout Standard
24486 Reverse search is triggered by SHIFT-click.
24487
24488 \change_inserted -712698321 1578211026
24489  Note that this only works if Okular is in 
24490 \begin_inset Quotes eld
24491 \end_inset
24492
24493 Browse
24494 \begin_inset Quotes erd
24495 \end_inset
24496
24497  mode (i.
24498 \begin_inset space \thinspace{}
24499 \end_inset
24500
24501 e., the hand symbol is clicked).
24502 \change_unchanged
24503
24504 \end_layout
24505
24506 \begin_layout Subsubsection*
24507 Qpdfview (Unix)
24508 \end_layout
24509
24510 \begin_layout Standard
24511 Qpdfview supports Sync\SpecialChar TeX
24512  since version 0.3.5.
24513  Go to 
24514 \begin_inset Flex Noun
24515 status collapsed
24516
24517 \begin_layout Plain Layout
24518 Edit\SpecialChar menuseparator
24519 Settings\SpecialChar menuseparator
24520 Behavior
24521 \end_layout
24522
24523 \end_inset
24524
24525 , click on the input field of the 
24526 \begin_inset Quotes eld
24527 \end_inset
24528
24529 Source editor
24530 \begin_inset Quotes erd
24531 \end_inset
24532
24533  item and add the command 
24534 \begin_inset Flex Code
24535 status collapsed
24536
24537 \begin_layout Plain Layout
24538 lyxclient -g %1 %2
24539 \end_layout
24540
24541 \end_inset
24542
24543 .
24544 \end_layout
24545
24546 \begin_layout Standard
24547 Reverse search is triggered by double-click or, in more recent versions,
24548  by context menu.
24549 \end_layout
24550
24551 \begin_layout Subsubsection*
24552 YAP (Windows)
24553 \end_layout
24554
24555 \begin_layout Standard
24556 Launch yap, choose its 
24557 \begin_inset Flex Noun
24558 status collapsed
24559
24560 \begin_layout Plain Layout
24561 View\SpecialChar menuseparator
24562 Options
24563 \end_layout
24564
24565 \end_inset
24566
24567  menu and select the 
24568 \begin_inset Quotes eld
24569 \end_inset
24570
24571 Inverse DVI Search
24572 \begin_inset Quotes erd
24573 \end_inset
24574
24575  tab.
24576  Click on the 
24577 \begin_inset Quotes eld
24578 \end_inset
24579
24580 New\SpecialChar ldots
24581
24582 \begin_inset Quotes erd
24583 \end_inset
24584
24585  button and, in the window that opens, enter 
24586 \begin_inset Quotes eld
24587 \end_inset
24588
24589 \SpecialChar LyX
24590  Editor
24591 \begin_inset Quotes erd
24592 \end_inset
24593
24594  (or any other name you like) in the 
24595 \begin_inset Quotes eld
24596 \end_inset
24597
24598 Name:
24599 \begin_inset Quotes erd
24600 \end_inset
24601
24602  field.
24603  Now click on the button labeled 
24604 \begin_inset Quotes eld
24605 \end_inset
24606
24607 \SpecialChar ldots
24608
24609 \begin_inset Quotes erd
24610 \end_inset
24611
24612  to open a file dialog and navigate to the directory containing the batch
24613  file 
24614 \begin_inset Flex Code
24615 status collapsed
24616
24617 \begin_layout Plain Layout
24618 lyxeditor.bat
24619 \end_layout
24620
24621 \end_inset
24622
24623  (see below).
24624  Select 
24625 \begin_inset Flex Code
24626 status collapsed
24627
24628 \begin_layout Plain Layout
24629 lyxeditor.bat
24630 \end_layout
24631
24632 \end_inset
24633
24634  and then specify the program arguments as 
24635 \begin_inset Flex Code
24636 status collapsed
24637
24638 \begin_layout Plain Layout
24639 %f %l
24640 \end_layout
24641
24642 \end_inset
24643
24644 .
24645  The 
24646 \begin_inset Flex Code
24647 status collapsed
24648
24649 \begin_layout Plain Layout
24650 lyxeditor.bat
24651 \end_layout
24652
24653 \end_inset
24654
24655  wrapper is used for communicating with \SpecialChar LyX
24656  through the 
24657 \emph on
24658 lyxpipe
24659 \emph default
24660  and is as follows:
24661 \end_layout
24662
24663 \begin_layout LyX-Code
24664 @echo off
24665 \begin_inset Newline newline
24666 \end_inset
24667
24668 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
24669 \backslash
24670
24671 \backslash
24672 .
24673 \backslash
24674 pipe
24675 \backslash
24676 lyxpipe.in
24677 \begin_inset Newline newline
24678 \end_inset
24679
24680 type 
24681 \backslash
24682
24683 \backslash
24684 .
24685 \backslash
24686 pipe
24687 \backslash
24688 lyxpipe.out
24689 \end_layout
24690
24691 \begin_layout Standard
24692 Make sure that the \SpecialChar LyX
24693 Server pipe path you specified in \SpecialChar LyX
24694  is 
24695 \begin_inset Flex Code
24696 status collapsed
24697
24698 \begin_layout Plain Layout
24699
24700 \backslash
24701
24702 \backslash
24703 .
24704 \backslash
24705 pipe
24706 \backslash
24707 lyxpipe
24708 \end_layout
24709
24710 \end_inset
24711
24712 , otherwise change the 
24713 \begin_inset Flex Code
24714 status collapsed
24715
24716 \begin_layout Plain Layout
24717 lyxeditor.bat
24718 \end_layout
24719
24720 \end_inset
24721
24722  wrapper accordingly.
24723 \end_layout
24724
24725 \begin_layout Standard
24726 In yap, reverse search is triggered by double-click.
24727 \end_layout
24728
24729 \begin_layout Subsubsection*
24730 SumatraPDF (Windows)
24731 \end_layout
24732
24733 \begin_layout Standard
24734 In order to use SumatraPDF for inverse search, enter 
24735 \begin_inset Flex Code
24736 status collapsed
24737
24738 \begin_layout Plain Layout
24739 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
24740 \end_layout
24741
24742 \end_inset
24743
24744  in the viewer setting in 
24745 \begin_inset Flex Noun
24746 status collapsed
24747
24748 \begin_layout Plain Layout
24749 Preferences\SpecialChar menuseparator
24750 File Handling\SpecialChar menuseparator
24751 File formats\SpecialChar menuseparator
24752 PDF (pdflatex)
24753 \end_layout
24754
24755 \end_inset
24756
24757 , where 
24758 \begin_inset Flex Code
24759 status collapsed
24760
24761 \begin_layout Plain Layout
24762 lyxeditor.bat
24763 \end_layout
24764
24765 \end_inset
24766
24767  is the previous wrapper.
24768  If SumatraPDF.exe is not in your command PATH, use its full file name.
24769 \end_layout
24770
24771 \begin_layout Standard
24772 Reverse search is triggered by double-click.
24773 \end_layout
24774
24775 \begin_layout Subsubsection*
24776 YAP (Cygwin)
24777 \end_layout
24778
24779 \begin_layout Standard
24780 First of all, make sure that yap is your default DVI viewer in the Windows
24781  environment, then launch it, choose its 
24782 \begin_inset Flex Noun
24783 status collapsed
24784
24785 \begin_layout Plain Layout
24786 View\SpecialChar menuseparator
24787 Options
24788 \end_layout
24789
24790 \end_inset
24791
24792  menu and select the 
24793 \begin_inset Quotes eld
24794 \end_inset
24795
24796 Inverse DVI Search
24797 \begin_inset Quotes erd
24798 \end_inset
24799
24800  tab.
24801  Click on the 
24802 \begin_inset Quotes eld
24803 \end_inset
24804
24805 New\SpecialChar ldots
24806
24807 \begin_inset Quotes erd
24808 \end_inset
24809
24810  button and, in the window that opens, enter 
24811 \begin_inset Quotes eld
24812 \end_inset
24813
24814 \SpecialChar LyX
24815  Editor
24816 \begin_inset Quotes erd
24817 \end_inset
24818
24819  (or any other name you like) in the 
24820 \begin_inset Quotes eld
24821 \end_inset
24822
24823 Name:
24824 \begin_inset Quotes erd
24825 \end_inset
24826
24827  field.
24828  Now click on the button labeled 
24829 \begin_inset Quotes eld
24830 \end_inset
24831
24832 \SpecialChar ldots
24833
24834 \begin_inset Quotes erd
24835 \end_inset
24836
24837  to open a file dialog and navigate to the directory containing the 
24838 \begin_inset Flex Code
24839 status collapsed
24840
24841 \begin_layout Plain Layout
24842 lyxeditor.exe
24843 \end_layout
24844
24845 \end_inset
24846
24847  program (which is installed by default on Cygwin along with the \SpecialChar LyX
24848  executable).
24849  Select 
24850 \begin_inset Flex Code
24851 status collapsed
24852
24853 \begin_layout Plain Layout
24854 lyxeditor.exe
24855 \end_layout
24856
24857 \end_inset
24858
24859  and then specify the program arguments as 
24860 \begin_inset Flex Code
24861 status collapsed
24862
24863 \begin_layout Plain Layout
24864 -g %f %l
24865 \end_layout
24866
24867 \end_inset
24868
24869 .
24870  In this way, you will be using the 
24871 \emph on
24872 lyxsocket
24873 \emph default
24874  for communicating with \SpecialChar LyX
24875 .
24876  If, for whatever reason, you want to use the 
24877 \emph on
24878 lyxpipe
24879 \emph default
24880 , omit the 
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885 -g
24886 \end_layout
24887
24888 \end_inset
24889
24890  option and be sure to specify the \SpecialChar LyX
24891 Server pipe path in the \SpecialChar LyX
24892  preferences.
24893 \end_layout
24894
24895 \begin_layout Standard
24896 In yap, reverse search is triggered by double-click.
24897 \end_layout
24898
24899 \begin_layout Subsubsection*
24900 SumatraPDF (Cygwin)
24901 \end_layout
24902
24903 \begin_layout Standard
24904 In order to use SumatraPDF for inverse search, enter 
24905 \begin_inset Flex Code
24906 status collapsed
24907
24908 \begin_layout Plain Layout
24909 SumatraPDF -inverse-search "lyxeditor -g %f %l"
24910 \end_layout
24911
24912 \end_inset
24913
24914  in the viewer setting in 
24915 \begin_inset Flex Noun
24916 status collapsed
24917
24918 \begin_layout Plain Layout
24919 Preferences\SpecialChar menuseparator
24920 File Handling\SpecialChar menuseparator
24921 File formats\SpecialChar menuseparator
24922 PDF (pdflatex)
24923 \end_layout
24924
24925 \end_inset
24926
24927 .
24928  If SumatraPDF.exe is not in your command PATH, use its full posix path.
24929  The 
24930 \begin_inset Flex Code
24931 status collapsed
24932
24933 \begin_layout Plain Layout
24934 -g
24935 \end_layout
24936
24937 \end_inset
24938
24939  enables communication via the 
24940 \emph on
24941 lyxsocket
24942 \emph default
24943 .
24944  Again, omit the 
24945 \begin_inset Flex Code
24946 status collapsed
24947
24948 \begin_layout Plain Layout
24949 -g
24950 \end_layout
24951
24952 \end_inset
24953
24954  option if you want to use the 
24955 \emph on
24956 lyxpipe
24957 \emph default
24958 , and be sure to specify the \SpecialChar LyX
24959 Server pipe path in the \SpecialChar LyX
24960  preferences.
24961 \end_layout
24962
24963 \begin_layout Standard
24964 Reverse search is triggered by double-click.
24965 \end_layout
24966
24967 \begin_layout Section
24968 Forward search
24969 \end_layout
24970
24971 \begin_layout Standard
24972 Forward search is, as the name implies, in a sense the 
24973 \begin_inset Quotes eld
24974 \end_inset
24975
24976 opposite
24977 \begin_inset Quotes erd
24978 \end_inset
24979
24980  of reverse search.
24981  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
24982 .
24983  If forward search is set up (as described in what follows), you can put
24984  the cursor anywhere in your \SpecialChar LyX
24985  document, and hit 
24986 \begin_inset Flex Noun
24987 status collapsed
24988
24989 \begin_layout Plain Layout
24990 Navigate\SpecialChar menuseparator
24991 Forward search
24992 \end_layout
24993
24994 \end_inset
24995
24996  (or select 
24997 \begin_inset Flex Noun
24998 status collapsed
24999
25000 \begin_layout Plain Layout
25001 Forward search
25002 \end_layout
25003
25004 \end_inset
25005
25006  in the context menu via right mouse click), and then the viewer will jump
25007  to that position as well.
25008  This implies, of course, that your viewer supports this function.
25009 \end_layout
25010
25011 \begin_layout Standard
25012 To make forward search possible, you first need to provide the generated
25013  output PDF/DVI file with additional information about the \SpecialChar TeX
25014  sources.
25015  This can be done via the methods described in the section 
25016 \begin_inset CommandInset ref
25017 LatexCommand ref
25018 reference "subsec:rev-search"
25019
25020 \end_inset
25021
25022 .
25023 \end_layout
25024
25025 \begin_layout Standard
25026 Additionally, you need to configure \SpecialChar LyX
25027  for using your viewers in 
25028 \begin_inset Flex Noun
25029 status collapsed
25030
25031 \begin_layout Plain Layout
25032 Tools\SpecialChar menuseparator
25033 Preferences\SpecialChar menuseparator
25034 Output\SpecialChar menuseparator
25035 General
25036 \end_layout
25037
25038 \end_inset
25039
25040 .
25041  We provide a range of tested configurations for some viewers, which you
25042  can select from the drop down list.
25043  If none of these configurations suits you, you have to find out and enter
25044  a suitable configuration yourself.
25045  The definition syntax uses the following placeholders:
25046 \end_layout
25047
25048 \begin_layout Itemize
25049 \noindent
25050 \begin_inset Flex Code
25051 status collapsed
25052
25053 \begin_layout Plain Layout
25054 $$n
25055 \end_layout
25056
25057 \end_inset
25058
25059 : row number
25060 \end_layout
25061
25062 \begin_layout Itemize
25063 \noindent
25064 \begin_inset Flex Code
25065 status collapsed
25066
25067 \begin_layout Plain Layout
25068 $$t
25069 \end_layout
25070
25071 \end_inset
25072
25073 : name of the (temporary) exported .tex file (without path)
25074 \end_layout
25075
25076 \begin_layout Itemize
25077 \noindent
25078 \begin_inset Flex Code
25079 status collapsed
25080
25081 \begin_layout Plain Layout
25082 $$f
25083 \end_layout
25084
25085 \end_inset
25086
25087 : name of the (temporary) exported .tex file (including path)
25088 \end_layout
25089
25090 \begin_layout Itemize
25091 \noindent
25092 \begin_inset Flex Code
25093 status collapsed
25094
25095 \begin_layout Plain Layout
25096 $$o
25097 \end_layout
25098
25099 \end_inset
25100
25101 : name of the exported output file (either dvi or pdf, depending on which
25102  one exists in the temporary directory)
25103 \end_layout
25104
25105 \begin_layout Standard
25106 Note that only some of the viewers provide full and usable forward search
25107  functionality out of the box, among them yap, xdvi, okular
25108 \begin_inset Foot
25109 status collapsed
25110
25111 \begin_layout Plain Layout
25112 You might want to set 
25113 \begin_inset Flex Code
25114 status collapsed
25115
25116 \begin_layout Plain Layout
25117 okular --unique
25118 \end_layout
25119
25120 \end_inset
25121
25122  in 
25123 \begin_inset Flex Noun
25124 status collapsed
25125
25126 \begin_layout Plain Layout
25127 Tools\SpecialChar menuseparator
25128 Preferences\SpecialChar menuseparator
25129 File Handling\SpecialChar menuseparator
25130 File
25131 \begin_inset space ~
25132 \end_inset
25133
25134 Formats
25135 \end_layout
25136
25137 \end_inset
25138
25139
25140 \end_layout
25141
25142 \end_inset
25143
25144 , qpdfview, and SumatraPDF
25145 \begin_inset Foot
25146 status collapsed
25147
25148 \begin_layout Plain Layout
25149 SumatraPDF can also use DDE commands through the external program CMCDDE
25150  — downloadable from 
25151 \begin_inset CommandInset href
25152 LatexCommand href
25153 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
25154 literal "false"
25155
25156 \end_inset
25157
25158
25159 \end_layout
25160
25161 \end_inset
25162
25163 .
25164  Others, such as evince
25165 \begin_inset Foot
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169 Forward search with evince can be achieved by means of third party helper
25170  scripts.
25171  Please refer to 
25172 \begin_inset CommandInset href
25173 LatexCommand href
25174 target "https://wiki.lyx.org/LyX/SyncTeX"
25175 literal "false"
25176
25177 \end_inset
25178
25179  for details.
25180 \end_layout
25181
25182 \end_inset
25183
25184 , require some extra tools in order to use forward search.
25185  While many of the widespread PDF viewers (most notably Adobe Reader) do
25186  not support forward search at all, some other viewers – e.
25187 \begin_inset space \thinspace{}
25188 \end_inset
25189
25190 g.
25191  xpdf – allow at least to reload the document and jump to a specific page
25192  of the file, so you can at least navigate 
25193 \begin_inset Quotes eld
25194 \end_inset
25195
25196 near
25197 \begin_inset Quotes erd
25198 \end_inset
25199
25200 .
25201  This latter functionality is provided by an external call of synctex (see
25202  the predefined example configurations).
25203  
25204 \end_layout
25205
25206 \begin_layout Standard
25207 Forward search works both with DVI and PDF output.
25208  \SpecialChar LyX
25209  simply checks which preview format you have used before (i.
25210 \begin_inset space \thinspace{}
25211 \end_inset
25212
25213 e., which format is already there in the temporary directory) and chooses
25214  the appropriate configuration for the respective format.
25215 \end_layout
25216
25217 \begin_layout Chapter
25218
25219 \change_deleted 564990737 1671097409
25220 Special Document Classes
25221 \change_unchanged
25222
25223 \end_layout
25224
25225 \begin_layout Section
25226
25227 \change_deleted 564990737 1669742044
25228 A&A Paper
25229 \end_layout
25230
25231 \begin_layout Standard
25232
25233 \change_deleted 564990737 1669742044
25234 by 
25235 \noun on
25236 Peter Sütterlin
25237 \end_layout
25238
25239 \begin_layout Subsection
25240
25241 \change_deleted 564990737 1669742044
25242 Introduction
25243 \end_layout
25244
25245 \begin_layout Standard
25246
25247 \change_deleted 564990737 1669742044
25248 This section describes how \SpecialChar LyX
25249  can be used to write articles for submission
25250  to the scientific journal 
25251 \emph on
25252 Astronomy and Astrophysics
25253 \emph default
25254  (
25255 \begin_inset Flex URL
25256 status collapsed
25257
25258 \begin_layout Plain Layout
25259
25260 https://www.aanda.org/
25261 \end_layout
25262
25263 \end_inset
25264
25265 ) using Version 5.01 of the document class 
25266 \family typewriter
25267 aa.cls
25268 \family default
25269 .
25270  This package can be downloaded from the ftp site
25271 \end_layout
25272
25273 \begin_layout Standard
25274
25275 \change_deleted 564990737 1669742044
25276 \begin_inset VSpace medskip
25277 \end_inset
25278
25279
25280 \end_layout
25281
25282 \begin_layout Standard
25283 \align center
25284
25285 \change_deleted 564990737 1669742044
25286 \begin_inset Flex URL
25287 status collapsed
25288
25289 \begin_layout Plain Layout
25290
25291 ftp://ftp.edpsciences.org/pub/aa/readme.html
25292 \end_layout
25293
25294 \end_inset
25295
25296
25297 \end_layout
25298
25299 \begin_layout Standard
25300
25301 \change_deleted 564990737 1669742044
25302 \begin_inset VSpace medskip
25303 \end_inset
25304
25305
25306 \end_layout
25307
25308 \begin_layout Standard
25309
25310 \change_deleted 564990737 1669742044
25311 A manual comes together with that package, and this text is not meant to
25312  replace the original manual but is merely a short guide in how to realize
25313  the correct form of your paper.
25314  
25315 \end_layout
25316
25317 \begin_layout Standard
25318
25319 \change_deleted 564990737 1669742044
25320 Please note that the publisher of the journal was changed from Springer
25321  to EDP Sciences starting January 1, 2001.
25322  That change involved also some slight changes to the style files, namely
25323  the removal of the thesaurus command.
25324  The \SpecialChar LyX
25325  class aa supports the newest version of these style files, V 5.01.
25326  If you have an older version installed, please upgrade.
25327  For compatibility, the old (version 4) layout has been kept as 
25328 \family sans
25329 article (A&A V4)
25330 \family default
25331 .
25332  Please refer to the comments in 
25333 \family typewriter
25334 \SpecialChar LyX
25335 Dir/layouts/aapaper.layout
25336 \family default
25337 .
25338 \end_layout
25339
25340 \begin_layout Subsection
25341
25342 \change_deleted 564990737 1669742044
25343 Getting started
25344 \end_layout
25345
25346 \begin_layout Standard
25347
25348 \change_deleted 564990737 1669742044
25349 It is recommended you start from the example template distributed with \SpecialChar LyX
25350 .
25351  If you are not using a template, note the following settings:
25352 \end_layout
25353
25354 \begin_layout Itemize
25355
25356 \change_deleted 564990737 1669742044
25357 Select 
25358 \family sans
25359 article (A&A)
25360 \family default
25361  in the 
25362 \family sans
25363 Document\SpecialChar menuseparator
25364 Settings
25365 \family default
25366  dialog (OK, that one was obvious).
25367 \end_layout
25368
25369 \begin_layout Itemize
25370
25371 \change_deleted 564990737 1669742044
25372 Don't change the option 
25373 \family sans
25374 Page
25375 \begin_inset space ~
25376 \end_inset
25377
25378 style
25379 \family default
25380 : Leave it set to 
25381 \family sans
25382 default
25383 \family default
25384 .
25385  The whole layout is done by the macros, you shouldn't change anything.
25386 \end_layout
25387
25388 \begin_layout Subsection
25389
25390 \change_deleted 564990737 1669742044
25391 The header block
25392 \end_layout
25393
25394 \begin_layout Standard
25395
25396 \change_deleted 564990737 1669742044
25397 First thing to enter is the header information.
25398  It consists of seven entries, of which some are optional.
25399  They are
25400 \end_layout
25401
25402 \begin_layout Itemize
25403
25404 \change_deleted 564990737 1669742044
25405
25406 \family sans
25407 Title
25408 \family default
25409 : [required] 
25410 \end_layout
25411
25412 \begin_layout Itemize
25413
25414 \change_deleted 564990737 1669742044
25415
25416 \family sans
25417 Subtitle
25418 \family default
25419 : [optional] 
25420 \end_layout
25421
25422 \begin_layout Itemize
25423
25424 \change_deleted 564990737 1669742044
25425
25426 \family sans
25427 Author
25428 \family default
25429 : [required]
25430 \end_layout
25431
25432 \begin_layout Itemize
25433
25434 \change_deleted 564990737 1669742044
25435
25436 \family sans
25437 Address
25438 \family default
25439 : [required]
25440 \end_layout
25441
25442 \begin_layout Itemize
25443
25444 \change_deleted 564990737 1669742044
25445
25446 \family sans
25447 Offprints
25448 \family default
25449 : [optional] if more than one author: whom to contact for offprint requests.
25450 \end_layout
25451
25452 \begin_layout Itemize
25453
25454 \change_deleted 564990737 1669742044
25455
25456 \family sans
25457 Mail
25458 \family default
25459 : [optional] mail address for contacts.
25460 \end_layout
25461
25462 \begin_layout Itemize
25463
25464 \change_deleted 564990737 1669742044
25465
25466 \family sans
25467 Date
25468 \family default
25469 : [required].
25470  Suggested format is 
25471 \family typewriter
25472 Received: <date>; Accepted <date> 
25473 \end_layout
25474
25475 \begin_layout Standard
25476
25477 \change_deleted 564990737 1669742044
25478 There is no need to issue the 
25479 \family typewriter
25480
25481 \backslash
25482 maketitle
25483 \family default
25484  command, this is done automatically by \SpecialChar LyX
25485  when the header is finished.
25486  Although the order of the single header entries doesn't matter it is advised
25487  to keep the above sequence, just to get the best optics and meets the layout
25488  of the real document.
25489 \end_layout
25490
25491 \begin_layout Standard
25492
25493 \change_deleted 564990737 1669742044
25494 If you want to place footnotes in the header block, e.
25495 \begin_inset space \thinspace{}
25496 \end_inset
25497
25498 g.
25499 \begin_inset space \space{}
25500 \end_inset
25501
25502 to state your present address, just use the standard footnote via the menu
25503  
25504 \family sans
25505 Insert\SpecialChar menuseparator
25506 Footnote.
25507
25508 \family default
25509  \SpecialChar LyX
25510  will automagically use the term 
25511 \family typewriter
25512
25513 \backslash
25514 thanks{}
25515 \family default
25516  in that case.
25517 \end_layout
25518
25519 \begin_layout Standard
25520
25521 \change_deleted 564990737 1669742044
25522 Under 
25523 \family sans
25524 Edit\SpecialChar menuseparator
25525 Text Style
25526 \family default
25527 , you'll find two insets which are relevant for the titling:
25528 \end_layout
25529
25530 \begin_layout Itemize
25531
25532 \change_deleted 564990737 1669742044
25533
25534 \family sans
25535 Institute
25536 \family typewriter
25537  
25538 \family default
25539 to mark corresponding author\SpecialChar breakableslash
25540 institute pairs.
25541  The institutes are numbered sequentially as they appear in the 
25542 \family sans
25543 Address
25544 \family default
25545  field, so you have to put a marker to each author.
25546 \end_layout
25547
25548 \begin_layout Itemize
25549
25550 \change_deleted 564990737 1669742044
25551
25552 \family sans
25553 Email
25554 \family default
25555  to supply an email address for fast contact.
25556 \end_layout
25557
25558 \begin_layout Standard
25559
25560 \change_deleted 564990737 1669742044
25561 In addition to these topics, the macros use one additional \SpecialChar LaTeX
25562  command that
25563  has no counterpart in \SpecialChar LyX
25564 :
25565 \end_layout
25566
25567 \begin_layout Itemize
25568
25569 \change_deleted 564990737 1669742044
25570
25571 \family typewriter
25572
25573 \backslash
25574 and
25575 \family default
25576  to separate different names for more than one author and institute, respectivel
25577 y.
25578 \end_layout
25579
25580 \begin_layout Standard
25581
25582 \change_deleted 564990737 1669742044
25583 The appropriate command has to be entered in \SpecialChar LyX
25584  and marked as \SpecialChar LaTeX
25585  code.
25586  See the examples.
25587  
25588 \end_layout
25589
25590 \begin_layout Subsection
25591
25592 \change_deleted 564990737 1669742044
25593 The abstract
25594 \end_layout
25595
25596 \begin_layout Standard
25597
25598 \change_deleted 564990737 1669742044
25599 The abstract should immediately follow the header block.
25600  With version 5 the abstract environment was changed to a command, and there
25601  is now a restriction to only one paragraph.
25602  In addition, it should contain an entry with the keywords.
25603  This is done via the paragraph style 
25604 \family sans
25605 Keywords
25606 \family default
25607 .
25608  Refer to the example paper.
25609 \end_layout
25610
25611 \begin_layout Subsection
25612
25613 \change_deleted 564990737 1669742044
25614 Supported environments
25615 \end_layout
25616
25617 \begin_layout Standard
25618
25619 \change_deleted 564990737 1669742044
25620 The A&A paper layout supports the following environments for structuring
25621  your text:
25622 \end_layout
25623
25624 \begin_layout Itemize
25625
25626 \change_deleted 564990737 1669742044
25627
25628 \family sans
25629 Standard
25630 \end_layout
25631
25632 \begin_layout Itemize
25633
25634 \change_deleted 564990737 1669742044
25635
25636 \family sans
25637 Section
25638 \end_layout
25639
25640 \begin_layout Itemize
25641
25642 \change_deleted 564990737 1669742044
25643
25644 \family sans
25645 Subsection
25646 \end_layout
25647
25648 \begin_layout Itemize
25649
25650 \change_deleted 564990737 1669742044
25651
25652 \family sans
25653 Subsubsection
25654 \end_layout
25655
25656 \begin_layout Itemize
25657
25658 \change_deleted 564990737 1669742044
25659
25660 \family sans
25661 Itemize
25662 \end_layout
25663
25664 \begin_layout Itemize
25665
25666 \change_deleted 564990737 1669742044
25667
25668 \family sans
25669 Enumerate
25670 \end_layout
25671
25672 \begin_layout Itemize
25673
25674 \change_deleted 564990737 1669742044
25675
25676 \family sans
25677 Description
25678 \end_layout
25679
25680 \begin_layout Itemize
25681
25682 \change_deleted 564990737 1669742044
25683
25684 \family sans
25685 Caption
25686 \end_layout
25687
25688 \begin_layout Itemize
25689
25690 \change_deleted 564990737 1669742044
25691
25692 \family sans
25693 Abstract
25694 \end_layout
25695
25696 \begin_layout Itemize
25697
25698 \change_deleted 564990737 1669742044
25699
25700 \family sans
25701 Acknowledgment
25702 \end_layout
25703
25704 \begin_layout Itemize
25705
25706 \change_deleted 564990737 1669742044
25707
25708 \family sans
25709 Bibliography
25710 \end_layout
25711
25712 \begin_layout Itemize
25713
25714 \change_deleted 564990737 1669742044
25715
25716 \family sans
25717 \SpecialChar LaTeX
25718
25719 \end_layout
25720
25721 \begin_layout Subsection
25722
25723 \change_deleted 564990737 1669742044
25724 Commands not supported by \SpecialChar LyX
25725
25726 \end_layout
25727
25728 \begin_layout Standard
25729
25730 \change_deleted 564990737 1669742044
25731 Some commands are not yet supported by the 
25732 \family sans
25733 paper (A&A)
25734 \family default
25735  layout for \SpecialChar LyX
25736 .
25737  Some have already been mentioned.
25738  For the sake of completeness, they are listed all together here:
25739 \end_layout
25740
25741 \begin_layout Itemize
25742
25743 \change_deleted 564990737 1669742044
25744
25745 \family typewriter
25746
25747 \backslash
25748 and
25749 \end_layout
25750
25751 \begin_layout Itemize
25752
25753 \change_deleted 564990737 1669742044
25754
25755 \family typewriter
25756
25757 \backslash
25758 authorrunning
25759 \end_layout
25760
25761 \begin_layout Itemize
25762
25763 \change_deleted 564990737 1669742044
25764
25765 \family typewriter
25766
25767 \backslash
25768 object{}
25769 \end_layout
25770
25771 \begin_layout Itemize
25772
25773 \change_deleted 564990737 1669742044
25774
25775 \family typewriter
25776
25777 \backslash
25778 titlerunning{}
25779 \end_layout
25780
25781 \begin_layout Standard
25782
25783 \change_deleted 564990737 1669742044
25784 If you want to use any of these commands, you have to enter them yourself.
25785  
25786 \series bold
25787 Do not forget to mark them as \SpecialChar LaTeX
25788  code!
25789 \end_layout
25790
25791 \begin_layout Subsection
25792
25793 \change_deleted 564990737 1669742044
25794 Figure and Table Floats
25795 \end_layout
25796
25797 \begin_layout Standard
25798
25799 \change_deleted 564990737 1669742044
25800 \SpecialChar LyX
25801  provides support for the necessary float environments 
25802 \family sans
25803 figure, figure*, table
25804 \family default
25805  and 
25806 \family sans
25807 table*
25808 \family default
25809 , therefore we won't tell much about it here.
25810  Refer to the 
25811 \emph on
25812 User's
25813 \begin_inset space ~
25814 \end_inset
25815
25816 Guide
25817 \emph default
25818 .
25819  Just remember that tables should be left-aligned.
25820  For that, select the table and change the alignment in 
25821 \family sans
25822 Edit\SpecialChar menuseparator
25823 Paragraph
25824 \begin_inset space ~
25825 \end_inset
25826
25827 Settings.
25828 \end_layout
25829
25830 \begin_layout Standard
25831
25832 \change_deleted 564990737 1669742044
25833 There is only one special thing: the figures with caption besides the figure.
25834  To create such a figure, you have to do the following:
25835 \end_layout
25836
25837 \begin_layout Enumerate
25838
25839 \change_deleted 564990737 1669742044
25840 Create a wide figure float: 
25841 \family sans
25842 Insert\SpecialChar menuseparator
25843 Float\SpecialChar menuseparator
25844 Figure
25845 \family default
25846 , then right click in the figure and select 
25847 \family sans
25848 Span
25849 \begin_inset space ~
25850 \end_inset
25851
25852 columns
25853 \family default
25854 .
25855 \end_layout
25856
25857 \begin_layout Enumerate
25858
25859 \change_deleted 564990737 1669742044
25860 Enter your caption text.
25861 \end_layout
25862
25863 \begin_layout Enumerate
25864
25865 \change_deleted 564990737 1669742044
25866 Press 
25867 \family sans
25868 Return
25869 \family default
25870  to move the cursor above the caption.
25871 \end_layout
25872
25873 \begin_layout Enumerate
25874
25875 \change_deleted 564990737 1669742044
25876 Insert your figure
25877 \end_layout
25878
25879 \begin_layout Enumerate
25880
25881 \change_deleted 564990737 1669742044
25882 Position the cursor behind the figure and insert a horizontal fill: 
25883 \family sans
25884 Insert\SpecialChar menuseparator
25885 Special
25886 \begin_inset space ~
25887 \end_inset
25888
25889 Character\SpecialChar menuseparator
25890 Horizontal
25891 \begin_inset space ~
25892 \end_inset
25893
25894 Fill
25895 \family default
25896 .
25897 \end_layout
25898
25899 \begin_layout Enumerate
25900
25901 \change_deleted 564990737 1669742044
25902 Switch to \SpecialChar LaTeX
25903  mode: 
25904 \family sans
25905 M-c
25906 \begin_inset space ~
25907 \end_inset
25908
25909 t
25910 \family default
25911 .
25912 \end_layout
25913
25914 \begin_layout Enumerate
25915
25916 \change_deleted 564990737 1669742044
25917 Enter 
25918 \family typewriter
25919
25920 \backslash
25921 parbox[b]{55mm}{
25922 \family default
25923 .
25924  
25925 \series bold
25926 Do not close the brace!
25927 \end_layout
25928
25929 \begin_layout Enumerate
25930
25931 \change_deleted 564990737 1669742044
25932 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
25933  mode and insert
25934  the closing brace: 
25935 \family sans
25936 M-c
25937 \begin_inset space ~
25938 \end_inset
25939
25940 t
25941 \family default
25942  
25943 \family typewriter
25944 }
25945 \family default
25946 .
25947 \end_layout
25948
25949 \begin_layout Standard
25950
25951 \change_deleted 564990737 1669742044
25952 Also, refer to the figures in the example paper.
25953 \end_layout
25954
25955 \begin_layout Subsection
25956
25957 \change_deleted 564990737 1669742044
25958 Referee layout
25959 \end_layout
25960
25961 \begin_layout Standard
25962
25963 \change_deleted 564990737 1669742044
25964 For submission, the paper has to be formated in a special double-spacing
25965  layout.
25966  For this purpose, you have to give the option 
25967 \family typewriter
25968 referee
25969 \family default
25970  to the document class.
25971  This must be done using the custom class options field in the 
25972 \family sans
25973 Document\SpecialChar menuseparator
25974 Settings
25975 \family default
25976  dialog.
25977  Just enter the string 
25978 \family typewriter
25979 referee
25980 \family default
25981  there.
25982 \end_layout
25983
25984 \begin_layout Subsection
25985
25986 \change_deleted 564990737 1669742044
25987 The example paper
25988 \end_layout
25989
25990 \begin_layout Standard
25991
25992 \change_deleted 564990737 1669742044
25993 The 
25994 \family sans
25995 Examples
25996 \family default
25997  directory contains an example paper written with \SpecialChar LyX
25998 .
25999  It is the example paper from the original macro package, translated to
26000  \SpecialChar LyX
26001 .
26002  Use it for inspiration, and compare the original \SpecialChar LaTeX
26003  code with \SpecialChar LyX
26004  way of writing.
26005 \end_layout
26006
26007 \begin_layout Section
26008
26009 \change_deleted 564990737 1671097429
26010 Dinbrief
26011 \end_layout
26012
26013 \begin_layout Standard
26014
26015 \change_deleted 564990737 1671097429
26016 The document class 
26017 \family sans
26018 dinbrief
26019 \family default
26020  can be used to type letters according to German conventions.
26021  A template file is included in 
26022 \family typewriter
26023 .../lyx/share/templates
26024 \family default
26025  for you to use as a starting point.
26026 \end_layout
26027
26028 \begin_layout Section
26029
26030 \change_deleted 564990737 1671097429
26031 Elsevier Journals
26032 \end_layout
26033
26034 \begin_layout Standard
26035
26036 \change_deleted 564990737 1671097429
26037 See the \SpecialChar LyX
26038  template file 
26039 \family typewriter
26040 elsarticle.lyx
26041 \family default
26042 .
26043  It contains all infos you need.
26044 \end_layout
26045
26046 \begin_layout Section
26047
26048 \change_deleted 564990737 1669755802
26049 ijmpc and ijmpd
26050 \end_layout
26051
26052 \begin_layout Standard
26053
26054 \change_deleted 564990737 1669755802
26055 by 
26056 \noun on
26057 Panayotis Papasotiriou
26058 \end_layout
26059
26060 \begin_layout Subsection
26061
26062 \change_deleted 564990737 1669755802
26063 Overview
26064 \end_layout
26065
26066 \begin_layout Standard
26067
26068 \change_deleted 564990737 1669755802
26069 The ijmpc package is a set of macros that facilitates electronic manuscript
26070  submission to the 
26071 \emph on
26072 International Journal of Modern Physics C
26073 \emph default
26074 .
26075  Similarly, the ijmpd package is for creating manuscripts to be submitted
26076  to the 
26077 \emph on
26078 International Journal of Modern Physics D
26079 \emph default
26080 .
26081  Both journals are published by World Scientific.
26082  The corresponding document classes are named 
26083 \family typewriter
26084 ws-ijmpc.cls
26085 \family default
26086  and 
26087 \family typewriter
26088 ws-ijmpd.cls
26089 \family default
26090 , respectively.
26091  These files, together with instructions for the authors, can be downloaded
26092  from the sites 
26093 \begin_inset Flex URL
26094 status collapsed
26095
26096 \begin_layout Plain Layout
26097
26098 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
26099 \end_layout
26100
26101 \end_inset
26102
26103  and 
26104 \begin_inset Flex URL
26105 status collapsed
26106
26107 \begin_layout Plain Layout
26108
26109 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
26110 \end_layout
26111
26112 \end_inset
26113
26114 .
26115  Both packages are modified versions of the standard 
26116 \begin_inset Quotes eld
26117 \end_inset
26118
26119 article
26120 \begin_inset Quotes erd
26121 \end_inset
26122
26123  package, and they are almost (but not exactly) identical.
26124  Most of their features are supported by \SpecialChar LyX
26125 .
26126  I have used \SpecialChar LyX
26127  successfully to write articles submitted to both journals
26128  without any problem.
26129 \end_layout
26130
26131 \begin_layout Subsection
26132
26133 \change_deleted 564990737 1669755802
26134 Writing a paper
26135 \end_layout
26136
26137 \begin_layout Standard
26138
26139 \change_deleted 564990737 1669755802
26140 As usual, the easiest way to write a paper is to start with a template.
26141  Click on 
26142 \family sans
26143 File\SpecialChar menuseparator
26144 New from
26145 \family default
26146  
26147 \family sans
26148 Template
26149 \family default
26150 , then choose the 
26151 \family typewriter
26152 ijmpc.lyx
26153 \family default
26154  or 
26155 \family typewriter
26156 ijmpd.lyx
26157 \family default
26158  template.
26159  This will give an (almost) empty document that includes the most common
26160  fields found in a manuscript.
26161  Simply overwrite the existing text (including the brackets, 
26162 \family typewriter
26163 <>
26164 \family default
26165 ) with your text.
26166  You should keep in mind the following remarks.
26167 \end_layout
26168
26169 \begin_layout Enumerate
26170
26171 \change_deleted 564990737 1669755802
26172 \SpecialChar LyX
26173  won't let you change the font size and the page style of the document,
26174  because such modifications are not allowed by both packages.
26175 \end_layout
26176
26177 \begin_layout Enumerate
26178
26179 \change_deleted 564990737 1669755802
26180 The language of the document should not be changed.
26181  Before previewing your paper, be sure that the babel package is not used.
26182  To do this, click on 
26183 \begin_inset Info
26184 type  "menu"
26185 arg   "dialog-show document"
26186 \end_inset
26187
26188  
26189 \family sans
26190 \SpecialChar menuseparator
26191 Language
26192 \family default
26193 , and select 
26194 \begin_inset Quotes eld
26195 \end_inset
26196
26197 None
26198 \begin_inset Quotes erd
26199 \end_inset
26200
26201  as 
26202 \family sans
26203 Language Package
26204 \family default
26205 .
26206 \end_layout
26207
26208 \begin_layout Enumerate
26209
26210 \change_deleted 564990737 1669755802
26211 The 
26212 \begin_inset Quotes eld
26213 \end_inset
26214
26215 Keywords
26216 \begin_inset Quotes erd
26217 \end_inset
26218
26219  style must be used to define keywords.
26220 \end_layout
26221
26222 \begin_layout Enumerate
26223
26224 \change_deleted 564990737 1669755802
26225 The ijmpc package provides a style named 
26226 \begin_inset Quotes eld
26227 \end_inset
26228
26229 Classification Codes
26230 \begin_inset Quotes erd
26231 \end_inset
26232
26233 , which can be used to define classification codes, such as PACS numbers.
26234  Note that this facility is not supported by the ijmpd package.
26235 \end_layout
26236
26237 \begin_layout Enumerate
26238
26239 \change_deleted 564990737 1669755802
26240 Several new environments are available: 
26241 \begin_inset Quotes eld
26242 \end_inset
26243
26244 Definition
26245 \begin_inset Quotes erd
26246 \end_inset
26247
26248
26249 \begin_inset Quotes eld
26250 \end_inset
26251
26252 Step
26253 \begin_inset Quotes erd
26254 \end_inset
26255
26256
26257 \begin_inset Quotes eld
26258 \end_inset
26259
26260 Example
26261 \begin_inset Quotes erd
26262 \end_inset
26263
26264
26265 \begin_inset Quotes eld
26266 \end_inset
26267
26268 Remark
26269 \begin_inset Quotes erd
26270 \end_inset
26271
26272
26273 \begin_inset Quotes eld
26274 \end_inset
26275
26276 Notation
26277 \begin_inset Quotes erd
26278 \end_inset
26279
26280
26281 \begin_inset Quotes eld
26282 \end_inset
26283
26284 Theorem
26285 \begin_inset Quotes erd
26286 \end_inset
26287
26288
26289 \begin_inset Quotes eld
26290 \end_inset
26291
26292 Proof
26293 \begin_inset Quotes erd
26294 \end_inset
26295
26296
26297 \begin_inset Quotes eld
26298 \end_inset
26299
26300 Corollary
26301 \begin_inset Quotes erd
26302 \end_inset
26303
26304
26305 \begin_inset Quotes eld
26306 \end_inset
26307
26308 Lemma
26309 \begin_inset Quotes erd
26310 \end_inset
26311
26312
26313 \begin_inset Quotes eld
26314 \end_inset
26315
26316 Proposition
26317 \begin_inset Quotes erd
26318 \end_inset
26319
26320
26321 \begin_inset Quotes eld
26322 \end_inset
26323
26324 Prop
26325 \begin_inset Quotes erd
26326 \end_inset
26327
26328
26329 \begin_inset Quotes eld
26330 \end_inset
26331
26332 Question
26333 \begin_inset Quotes erd
26334 \end_inset
26335
26336
26337 \begin_inset Quotes eld
26338 \end_inset
26339
26340 Claim
26341 \begin_inset Quotes erd
26342 \end_inset
26343
26344 , and 
26345 \begin_inset Quotes eld
26346 \end_inset
26347
26348 Conjecture
26349 \begin_inset Quotes erd
26350 \end_inset
26351
26352 .
26353  Their use is more or less obvious.
26354  \SpecialChar LyX
26355  supports all these environments; it will use the proper label, text style,
26356  and numbering scheme for each of them.
26357 \end_layout
26358
26359 \begin_layout Enumerate
26360
26361 \change_deleted 564990737 1669755802
26362 Both packages use basic citations; the natbib package should not be used.
26363  In \SpecialChar LyX
26364 , citation references are shown as usual; in the output, citations are
26365  shown as superscripts.
26366  If you want to use a citation as normal text, you should use the 
26367 \family typewriter
26368 refcite
26369 \family default
26370  command, e.
26371 \begin_inset space \thinspace{}
26372 \end_inset
26373
26374 g.
26375 \begin_inset space \space{}
26376 \end_inset
26377
26378
26379 \begin_inset Quotes eld
26380 \end_inset
26381
26382 See Ref.
26383 \begin_inset space \space{}
26384 \end_inset
26385
26386
26387 \family typewriter
26388
26389 \backslash
26390 refcite{key}
26391 \family default
26392
26393 \begin_inset Quotes erd
26394 \end_inset
26395
26396 .
26397 \end_layout
26398
26399 \begin_layout Enumerate
26400
26401 \change_deleted 564990737 1669755802
26402 There is no 
26403 \begin_inset Quotes eld
26404 \end_inset
26405
26406 Acknowledgments
26407 \begin_inset Quotes erd
26408 \end_inset
26409
26410  section in both packages.
26411  To put acknowledgments, just use the 
26412 \begin_inset Quotes eld
26413 \end_inset
26414
26415 Section*
26416 \begin_inset Quotes erd
26417 \end_inset
26418
26419  environment.
26420 \end_layout
26421
26422 \begin_layout Enumerate
26423
26424 \change_deleted 564990737 1669755802
26425 Appendices may be added to the paper, 
26426 \emph on
26427 after
26428 \emph default
26429  the Acknowledgments and 
26430 \shape italic
26431 before
26432 \shape default
26433  the References.
26434  \SpecialChar LyX
26435  provides a special environment, called 
26436 \begin_inset Quotes eld
26437 \end_inset
26438
26439 Appendices Section
26440 \begin_inset Quotes erd
26441 \end_inset
26442
26443  which marks the beginning of the appendices.
26444  This environment should be left blank; it just sends a \SpecialChar LaTeX
26445  command, but nothing
26446  is really printed.
26447  In \SpecialChar LyX
26448 , the word 
26449 \begin_inset Quotes eld
26450 \end_inset
26451
26452 Appendix
26453 \begin_inset Quotes erd
26454 \end_inset
26455
26456  is printed with blue letters, as a signal that all sections after that
26457  point are appendices.
26458  To write an appendix, use the 
26459 \begin_inset Quotes eld
26460 \end_inset
26461
26462 Appendix
26463 \begin_inset Quotes erd
26464 \end_inset
26465
26466  environment.
26467  \SpecialChar LyX
26468  will number each appendix with capital letters, as required by both journals.
26469  Note that 
26470 \begin_inset Quotes eld
26471 \end_inset
26472
26473 Appendices Section
26474 \begin_inset Quotes erd
26475 \end_inset
26476
26477  
26478 \emph on
26479 must
26480 \emph default
26481  be present before the first appendix; if not, all appendices will be numbered
26482  as normal sections in the output.
26483 \end_layout
26484
26485 \begin_layout Enumerate
26486
26487 \change_deleted 564990737 1669755802
26488 The ijmpc and the ijmpd packages use the 
26489 \family typewriter
26490 tbl
26491 \family default
26492  command to implement table captions.
26493  As a result, a table created by \SpecialChar LyX
26494  is printed correctly, but its caption
26495  is ignored.
26496  However, you can use some \SpecialChar TeX
26497  code to overcome this problem, so that captions
26498  are printed as expected.
26499  To do so, create a float table as usual, remove the caption, and replace
26500  it with the \SpecialChar TeX
26501  code 
26502 \family typewriter
26503
26504 \backslash
26505 tbl{
26506 \emph on
26507 your table caption
26508 \emph default
26509 }{
26510 \family default
26511  (sic); you must also the \SpecialChar TeX
26512  code 
26513 \family typewriter
26514 }
26515 \family default
26516  immediately after the tabular material.
26517  Study the example table included in the template files to see how this
26518  trick is implemented.
26519  Alternatively, If you need table captions, you should implement the whole
26520  table float in a 
26521 \family typewriter
26522 .tex
26523 \family default
26524  file, then include this file to the \SpecialChar LyX
26525  document (
26526 \family sans
26527 Insert\SpecialChar menuseparator
26528 File\SpecialChar menuseparator
26529 Child
26530 \begin_inset space ~
26531 \end_inset
26532
26533 Document
26534 \family default
26535 ).
26536  Details on how to create a table float can be found in the files 
26537 \family typewriter
26538 ws-ijmpc.tex
26539 \family default
26540  and 
26541 \family typewriter
26542 ws-ijmpd.tex
26543 \family default
26544 , included in the corresponding packages.
26545 \end_layout
26546
26547 \begin_layout Subsection
26548
26549 \change_deleted 564990737 1669755802
26550 Preparing a paper for submission
26551 \end_layout
26552
26553 \begin_layout Standard
26554
26555 \change_deleted 564990737 1669755802
26556 Before you submit your paper you must export the \SpecialChar LyX
26557  document as a \SpecialChar LaTeX
26558  file (
26559 \family sans
26560 File\SpecialChar menuseparator
26561 Export\SpecialChar menuseparator
26562 \SpecialChar LaTeX
26563
26564 \family default
26565 )
26566 \begin_inset Foot
26567 status open
26568
26569 \begin_layout Plain Layout
26570 Actually you have the choice between \SpecialChar LaTeX
26571  (plain) and pdflatex.
26572  If you intend to use pdflatex to prepare the paper, you should use the
26573  pdflatex option so that included graphics are converted to PDF format,
26574  ready for use by pdflatex.
26575 \end_layout
26576
26577 \end_inset
26578
26579 , then make the following changes to the resulting 
26580 \family typewriter
26581 .tex
26582 \family default
26583  file.
26584 \end_layout
26585
26586 \begin_layout Enumerate
26587
26588 \change_deleted 564990737 1669755802
26589 Remove the comment lines before the 
26590 \family typewriter
26591
26592 \backslash
26593 documentclass
26594 \family default
26595  command.
26596 \end_layout
26597
26598 \begin_layout Enumerate
26599
26600 \change_deleted 564990737 1669755802
26601 Remove everything between (and including) the 
26602 \family typewriter
26603
26604 \backslash
26605 makeatletter
26606 \family default
26607  and 
26608 \family typewriter
26609
26610 \backslash
26611 makeatother
26612 \family default
26613  commands, except for any commands you specifically put into the \SpecialChar LaTeX
26614  preamble.
26615 \end_layout
26616
26617 \begin_layout Standard
26618
26619 \change_deleted 564990737 1669755802
26620 The modified 
26621 \family typewriter
26622 .tex
26623 \family default
26624  file should be saved and processed through \SpecialChar LaTeX
26625  as many times as necessary.
26626  You may also want to check the resulting 
26627 \family typewriter
26628 .dvi
26629 \family default
26630  document.
26631 \change_unchanged
26632
26633 \end_layout
26634
26635 \begin_layout Section
26636
26637 \change_deleted 564990737 1669801478
26638 iopart
26639 \end_layout
26640
26641 \begin_layout Standard
26642
26643 \change_deleted 564990737 1669801478
26644 by 
26645 \noun on
26646 Uwe Stöhr
26647 \end_layout
26648
26649 \begin_layout Subsection
26650
26651 \change_deleted 564990737 1669801478
26652 Overview
26653 \end_layout
26654
26655 \begin_layout Standard
26656
26657 \change_deleted 564990737 1669801478
26658 The iopart package provides a document class to create electronic manuscript
26659  submission to the journals published by the Institute of Physics.
26660  Instructions for the authors how to create a paper using the iopart class
26661  can be downloaded together with the iopart package from the site 
26662 \begin_inset Flex URL
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666
26667 ftp://ftp.iop.org/pub/journals/latex2e
26668 \end_layout
26669
26670 \end_inset
26671
26672 .
26673 \end_layout
26674
26675 \begin_layout Subsection
26676
26677 \change_deleted 564990737 1669801478
26678 Writing a paper
26679 \end_layout
26680
26681 \begin_layout Standard
26682
26683 \change_deleted 564990737 1669801478
26684 The easiest way to write a paper is to start with the template 
26685 \emph on
26686 IOP-article.lyx
26687 \emph default
26688  that is available via 
26689 \family sans
26690 File\SpecialChar menuseparator
26691 New From Template
26692 \family default
26693  The template explains how to use the special text environments.
26694  Here are the most important advices:
26695 \end_layout
26696
26697 \begin_layout Itemize
26698
26699 \change_deleted 564990737 1669801478
26700 To be able to compile your document to a PDF, PS, or DVI, ensure that the
26701  no AMS packages are loaded in 
26702 \family sans
26703 Document\SpecialChar menuseparator
26704 Settings\SpecialChar menuseparator
26705 Math Options
26706 \family default
26707 !
26708 \end_layout
26709
26710 \begin_layout Itemize
26711
26712 \change_deleted 564990737 1669801478
26713
26714 \size normal
26715 The title environment defines the kind of your paper.
26716  So use one of the following environments for the title:
26717 \end_layout
26718
26719 \begin_deeper
26720 \begin_layout Itemize
26721
26722 \change_deleted 564990737 1669801478
26723
26724 \family sans
26725 \size normal
26726 Title
26727 \family default
26728  for a Paper
26729 \end_layout
26730
26731 \begin_layout Itemize
26732
26733 \change_deleted 564990737 1669801478
26734
26735 \family sans
26736 \size normal
26737 Review
26738 \family default
26739  for a Review
26740 \end_layout
26741
26742 \begin_layout Itemize
26743
26744 \change_deleted 564990737 1669801478
26745
26746 \family sans
26747 \size normal
26748 Topical
26749 \family default
26750  for a Topical review
26751 \end_layout
26752
26753 \begin_layout Itemize
26754
26755 \change_deleted 564990737 1669801478
26756
26757 \family sans
26758 \size normal
26759 Comment
26760 \family default
26761  for a Comment
26762 \end_layout
26763
26764 \begin_layout Itemize
26765
26766 \change_deleted 564990737 1669801478
26767
26768 \family sans
26769 \size normal
26770 Note
26771 \family default
26772  for a Note
26773 \end_layout
26774
26775 \begin_layout Itemize
26776
26777 \change_deleted 564990737 1669801478
26778
26779 \family sans
26780 \size normal
26781 Paper
26782 \family default
26783  for a Paper (same as Title)
26784 \end_layout
26785
26786 \begin_layout Itemize
26787
26788 \change_deleted 564990737 1669801478
26789
26790 \family sans
26791 \size normal
26792 Prelim
26793 \family default
26794  for a Preliminary communication
26795 \end_layout
26796
26797 \begin_layout Itemize
26798
26799 \change_deleted 564990737 1669801478
26800
26801 \family sans
26802 \size normal
26803 Rapid
26804 \family default
26805  for a Rapid communication
26806 \end_layout
26807
26808 \begin_layout Itemize
26809
26810 \change_deleted 564990737 1669801478
26811
26812 \family sans
26813 \size normal
26814 Letter
26815 \family default
26816  for a Letter to the editor
26817 \end_layout
26818
26819 \end_deeper
26820 \begin_layout Itemize
26821
26822 \change_deleted 564990737 1669801478
26823
26824 \size normal
26825 All title environments except of 
26826 \family sans
26827 Letter
26828 \family default
26829  can have an optional short title.
26830 \end_layout
26831
26832 \begin_layout Itemize
26833
26834 \change_deleted 564990737 1669801478
26835 There is a general title environment 
26836 \family sans
26837 Article
26838 \family default
26839  which is not directly supported by \SpecialChar LyX
26840 .
26841  This can be used as \SpecialChar TeX
26842  code when your document doesn't fit into one of the
26843  other title types.
26844 \end_layout
26845
26846 \begin_layout Standard
26847
26848 \change_deleted 564990737 1669801478
26849 For more informations like hints for special table and formula formatting,
26850  look at the IOP author guidelines.
26851 \change_unchanged
26852
26853 \end_layout
26854
26855 \begin_layout Section
26856
26857 \change_deleted 564990737 1670317155
26858 Kluwer
26859 \end_layout
26860
26861 \begin_layout Standard
26862
26863 \change_deleted 564990737 1670317155
26864 by 
26865 \noun on
26866 Panayotis Papasotiriou
26867 \end_layout
26868
26869 \begin_layout Subsection
26870
26871 \change_deleted 564990737 1670317155
26872 Overview
26873 \end_layout
26874
26875 \begin_layout Standard
26876
26877 \change_deleted 564990737 1670317155
26878 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
26879  that facilitates electronic manuscript submission to the journals they
26880  publish.
26881  Most known of them (at least in my domain of interest) are 
26882 \emph on
26883 Astrophysics and Space Science
26884 \emph default
26885  and 
26886 \emph on
26887 Solar Physics
26888 \emph default
26889 , but there are many others (see a complete list at 
26890 \begin_inset Flex URL
26891 status collapsed
26892
26893 \begin_layout Plain Layout
26894
26895 http://www.wkap.nl/jrnllist.htm/JRNLHOME
26896 \end_layout
26897
26898 \end_inset
26899
26900 ).
26901  The Kluwer package may be downloaded from the site 
26902 \begin_inset Flex URL
26903 status collapsed
26904
26905 \begin_layout Plain Layout
26906
26907 http://www.wkap.nl/kaphtml.htm/STYLEFILES
26908 \end_layout
26909
26910 \end_inset
26911
26912 .
26913  A complete user guide is contained in that package (but it can also be
26914  downloaded separately).
26915 \end_layout
26916
26917 \begin_layout Standard
26918
26919 \change_deleted 564990737 1670317155
26920 \SpecialChar LyX
26921  supports many features of the package but not everything.
26922  However, the \SpecialChar TeX
26923  code needed is reduced to some 
26924 \begin_inset Quotes eld
26925 \end_inset
26926
26927 peculiar
26928 \begin_inset Quotes erd
26929 \end_inset
26930
26931  commands of the package (see
26932 \begin_inset space ~
26933 \end_inset
26934
26935
26936 \begin_inset CommandInset ref
26937 LatexCommand ref
26938 reference "subsec:kluwer_peculiarities"
26939
26940 \end_inset
26941
26942 ).
26943  I have recently used \SpecialChar LyX
26944  to write an article submitted to the 
26945 \emph on
26946 Astrophysics and Space Science
26947 \emph default
26948  without any problem.
26949 \end_layout
26950
26951 \begin_layout Subsection
26952
26953 \change_deleted 564990737 1670317155
26954 Writing a paper
26955 \end_layout
26956
26957 \begin_layout Standard
26958
26959 \change_deleted 564990737 1670317155
26960 The easiest way to write a paper is to start with the Kluwer template file.
26961  Click on 
26962 \family sans
26963 File\SpecialChar menuseparator
26964 New from
26965 \family default
26966  
26967 \family sans
26968 Template
26969 \family default
26970 , then choose the 
26971 \family typewriter
26972 kluwer.lyx
26973 \family default
26974  template.
26975  This will give an (almost) empty document that includes the most common
26976  fields found in a manuscript and a short description of their use.
26977  As in most templates, simply overwrite the existing text (including the
26978  brackets, 
26979 \family typewriter
26980 <>
26981 \family default
26982 ) with the correct information.
26983 \end_layout
26984
26985 \begin_layout Subsection
26986
26987 \change_deleted 564990737 1670317155
26988 Preparing a paper for submission
26989 \end_layout
26990
26991 \begin_layout Standard
26992
26993 \change_deleted 564990737 1670317155
26994 As in the AAS\SpecialChar TeX
26995  package, before you submit your paper to a journal you must
26996  
26997 \begin_inset Quotes eld
26998 \end_inset
26999
27000 postprocess
27001 \begin_inset Quotes erd
27002 \end_inset
27003
27004  it as follows.
27005 \end_layout
27006
27007 \begin_layout Enumerate
27008
27009 \change_deleted 564990737 1670317155
27010 Export your paper as a \SpecialChar LaTeX
27011  file.
27012  To do this, click on 
27013 \family sans
27014 File\SpecialChar menuseparator
27015 Export\SpecialChar menuseparator
27016 \SpecialChar LaTeX
27017
27018 \family default
27019 .
27020  
27021 \end_layout
27022
27023 \begin_layout Enumerate
27024
27025 \change_deleted 564990737 1670317155
27026 Edit the resulting 
27027 \family typewriter
27028 .tex
27029 \family default
27030  file with a text editor and make the following changes
27031 \end_layout
27032
27033 \begin_deeper
27034 \begin_layout Enumerate
27035
27036 \change_deleted 564990737 1670317155
27037 remove the comment lines before the 
27038 \family typewriter
27039
27040 \backslash
27041 documentclass
27042 \family default
27043  command,
27044 \end_layout
27045
27046 \begin_layout Enumerate
27047
27048 \change_deleted 564990737 1670317155
27049 remove everything between (and including) the 
27050 \family typewriter
27051
27052 \backslash
27053 makeatletter
27054 \family default
27055  and 
27056 \family typewriter
27057
27058 \backslash
27059 makeatother
27060 \family default
27061  commands, except for any commands you specifically put into the \SpecialChar LaTeX
27062  preamble.
27063 \end_layout
27064
27065 \begin_layout Standard
27066
27067 \change_deleted 564990737 1670317155
27068 Save the resulting 
27069 \family typewriter
27070 .tex
27071 \family default
27072  file.
27073 \end_layout
27074
27075 \end_deeper
27076 \begin_layout Enumerate
27077
27078 \change_deleted 564990737 1670317155
27079 Run the 
27080 \family typewriter
27081 .tex
27082 \family default
27083  file through \SpecialChar LaTeX
27084  as many times as necessary (usually up to three).
27085 \end_layout
27086
27087 \begin_layout Enumerate
27088
27089 \change_deleted 564990737 1670317155
27090 View the resulting 
27091 \family typewriter
27092 .dvi
27093 \family default
27094  document using, e.
27095 \begin_inset space \thinspace{}
27096 \end_inset
27097
27098 g.
27099 \begin_inset space \space{}
27100 \end_inset
27101
27102
27103 \family sans
27104 xdvi
27105 \family default
27106 , and check if everything is OK (it should, if you didn't make any mistake).
27107 \end_layout
27108
27109 \begin_layout Subsection
27110
27111 \change_deleted 564990737 1670317155
27112 \begin_inset Quotes eld
27113 \end_inset
27114
27115 Peculiarities
27116 \begin_inset Quotes erd
27117 \end_inset
27118
27119  of the Kluwer package
27120 \begin_inset CommandInset label
27121 LatexCommand label
27122 name "subsec:kluwer_peculiarities"
27123
27124 \end_inset
27125
27126
27127 \end_layout
27128
27129 \begin_layout Standard
27130
27131 \change_deleted 564990737 1670317155
27132 The Kluwer package has the following 
27133 \begin_inset Quotes eld
27134 \end_inset
27135
27136 peculiarities
27137 \begin_inset Quotes erd
27138 \end_inset
27139
27140 .
27141 \end_layout
27142
27143 \begin_layout Enumerate
27144
27145 \change_deleted 564990737 1670317155
27146 It is possible to write multiple articles in the same \SpecialChar LaTeX
27147  file
27148 \begin_inset Foot
27149 status collapsed
27150
27151 \begin_layout Plain Layout
27152 I can't imagine any good reason to do this.
27153 \end_layout
27154
27155 \end_inset
27156
27157 .
27158  Each article must be included in the environment 
27159 \begin_inset Quotes eld
27160 \end_inset
27161
27162 article
27163 \begin_inset Quotes erd
27164 \end_inset
27165
27166 .
27167  Unfortunately, this environment cannot be omitted, even if you write just
27168  one article.
27169  Therefore, each article starts with the command 
27170 \family typewriter
27171
27172 \backslash
27173 begin{article}
27174 \family default
27175  and, obviously, ends with the command 
27176 \family typewriter
27177
27178 \backslash
27179 end{article}
27180 \family default
27181 .
27182  Although this can be implemented in \SpecialChar LyX
27183 , I didn't included it, since it looks
27184  ugly and can confuse the novice user.
27185  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
27186  code (the
27187  well-known 
27188 \begin_inset Quotes eld
27189 \end_inset
27190
27191 \SpecialChar TeX
27192  code
27193 \begin_inset Quotes erd
27194 \end_inset
27195
27196 ).
27197 \end_layout
27198
27199 \begin_layout Enumerate
27200
27201 \change_deleted 564990737 1670317155
27202 Information given at the beginning of the article (i.
27203 \begin_inset space \thinspace{}
27204 \end_inset
27205
27206 e.
27207 \begin_inset space \space{}
27208 \end_inset
27209
27210 title, subtitle, author, institution, running title, running author, abstract
27211  and keywords) must be included in an environment called 
27212 \begin_inset Quotes eld
27213 \end_inset
27214
27215 opening
27216 \begin_inset Quotes erd
27217 \end_inset
27218
27219 .
27220  This is not implemented in \SpecialChar LyX
27221 , so you must enter title, subtitle etc.
27222 \begin_inset space ~
27223 \end_inset
27224
27225 between two \SpecialChar TeX
27226  code lines (
27227 \family typewriter
27228
27229 \backslash
27230 begin{opening}
27231 \family default
27232  and 
27233 \family typewriter
27234
27235 \backslash
27236 end{opening}
27237 \family default
27238 ).
27239 \end_layout
27240
27241 \begin_layout Enumerate
27242
27243 \change_deleted 564990737 1670317155
27244 According to the user manual, the label of each bibliography item must be
27245  written as 
27246 \family typewriter
27247
27248 \backslash
27249 protect
27250 \backslash
27251 citeauthoryear{
27252 \family default
27253 \emph on
27254 author(s)
27255 \family typewriter
27256 \emph default
27257 }{
27258 \family default
27259 \emph on
27260 year
27261 \family typewriter
27262 \emph default
27263 }
27264 \family default
27265 .
27266 \end_layout
27267
27268 \begin_layout Standard
27269
27270 \change_deleted 564990737 1670317155
27271 The 
27272 \family typewriter
27273 kluwer.lyx
27274 \family default
27275  template takes care of all these 
27276 \begin_inset Quotes eld
27277 \end_inset
27278
27279 peculiarities
27280 \begin_inset Quotes erd
27281 \end_inset
27282
27283 .
27284  If you start a new paper using this template you don't need to do anything
27285  special.
27286  Just 
27287 \end_layout
27288
27289 \begin_layout Enumerate
27290
27291 \change_deleted 564990737 1670317155
27292 don't delete the \SpecialChar TeX
27293  code included in the template, and
27294 \end_layout
27295
27296 \begin_layout Enumerate
27297
27298 \change_deleted 564990737 1670317155
27299 copy the example bibliography item included in the template and modify it
27300  as necessary to enter new bibliography items.
27301 \end_layout
27302
27303 \begin_layout Section
27304
27305 \change_deleted 564990737 1671097446
27306 Paper
27307 \end_layout
27308
27309 \begin_layout Standard
27310
27311 \change_deleted 564990737 1671097446
27312 The document class 
27313 \family sans
27314 paper
27315 \family default
27316  provides an alternative to the standard 
27317 \family sans
27318 article
27319 \family default
27320  class.
27321  It provides similar functionality, but you might prefer this layout with
27322  sans serif sections, headings, and more.
27323 \end_layout
27324
27325 \begin_layout Section
27326
27327 \change_deleted 564990737 1671097446
27328 Springer Journals (
27329 \family sans
27330 svjour
27331 \family default
27332 )
27333 \end_layout
27334
27335 \begin_layout Standard
27336
27337 \change_deleted 564990737 1671097446
27338 by 
27339 \noun on
27340 Martin Vermeer
27341 \end_layout
27342
27343 \begin_layout Subsection
27344
27345 \change_deleted 564990737 1671097446
27346 Description
27347 \end_layout
27348
27349 \begin_layout Standard
27350
27351 \change_deleted 564990737 1671097446
27352 These are the layout files for some of the journal formats used by Springer
27353  Verlag and listed on 
27354 \begin_inset Flex URL
27355 status collapsed
27356
27357 \begin_layout Plain Layout
27358
27359 http://www.springer.de/author/tex/help-journals.html
27360 \end_layout
27361
27362 \end_inset
27363
27364 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
27365  now!).
27366  It is a modular system: the things common to all journals are implemented
27367  in 
27368 \family typewriter
27369 svjour.inc
27370 \family default
27371 , which journal-specific layout files (such as, e.
27372 \begin_inset space \thinspace{}
27373 \end_inset
27374
27375 g.
27376 \begin_inset space \space{}
27377 \end_inset
27378
27379
27380 \family typewriter
27381 svjog.layout
27382 \family default
27383  for Journal of Geodesy) can include.
27384 \end_layout
27385
27386 \begin_layout Standard
27387
27388 \change_deleted 564990737 1671097446
27389 This means that implementing support for any other Springer journal on this
27390  list is as simple as writing your own 
27391 \family typewriter
27392 sv
27393 \family default
27394 <myjournal>
27395 \family typewriter
27396 .layout
27397 \family default
27398  file following the outline given in 
27399 \family typewriter
27400 svjog.layout
27401 \family default
27402 .
27403  
27404 \end_layout
27405
27406 \begin_layout Standard
27407
27408 \change_deleted 564990737 1671097446
27409 It is reasonably well tested only for the Journal of Geodesy.
27410  
27411 \family typewriter
27412 svjour
27413 \family default
27414  and 
27415 \family typewriter
27416 svjog
27417 \family default
27418  come with the standard \SpecialChar LyX
27419  distribution.
27420  Install the relevant class file (downloaded from Springer) in a proper
27421  directory, reconfigure \SpecialChar LaTeX
27422  (in the te\SpecialChar TeX
27423  case by running 
27424 \family typewriter
27425 texhash
27426 \family default
27427 , as root if necessary — doesn't \SpecialChar LyX
27428  take care of this?), reconfigure \SpecialChar LyX
27429  and
27430  it should work.
27431 \end_layout
27432
27433 \begin_layout Subsection
27434
27435 \change_deleted 564990737 1671097446
27436 New styles
27437 \end_layout
27438
27439 \begin_layout Standard
27440
27441 \change_deleted 564990737 1671097446
27442 A large number of theorem-like styles — 
27443 \family sans
27444 Claim, Conjecture,
27445 \family default
27446  
27447 \family sans
27448 \SpecialChar ldots
27449 Theorem
27450 \family default
27451 .
27452 \end_layout
27453
27454 \begin_layout Standard
27455
27456 \change_deleted 564990737 1671097446
27457
27458 \family sans
27459 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
27460 _Title, Author_Running, Institute,
27461  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
27462 \family default
27463 .
27464  See the Springer class file documentation for details.
27465 \end_layout
27466
27467 \begin_layout Subsection
27468
27469 \change_deleted 564990737 1671097446
27470 Supported journals
27471 \end_layout
27472
27473 \begin_layout Itemize
27474
27475 \change_deleted 564990737 1671097446
27476
27477 \emph on
27478 Journal of Geodesy
27479 \emph default
27480
27481 \family typewriter
27482 svjog.layout
27483 \family default
27484  — Martin Vermeer
27485 \end_layout
27486
27487 \begin_layout Itemize
27488
27489 \change_deleted 564990737 1671097446
27490
27491 \emph on
27492 Probability Theory and Related Fields
27493 \emph default
27494
27495 \family typewriter
27496 svprobth.layout
27497 \family default
27498  — Jean-Marc Lasgouttes
27499 \end_layout
27500
27501 \begin_layout Standard
27502
27503 \change_deleted 564990737 1671097446
27504 Add your own, it isn't so hard!
27505 \end_layout
27506
27507 \begin_layout Subsection
27508
27509 \change_deleted 564990737 1671097446
27510 Credits
27511 \end_layout
27512
27513 \begin_layout Standard
27514
27515 \change_deleted 564990737 1671097446
27516 These files are partly based on the older 
27517 \family typewriter
27518 ejour2.layout
27519 \family default
27520 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
27521  2.09 style
27522  file from Springer.
27523  All this, and the 
27524 \family typewriter
27525 ejour2
27526 \family default
27527  layout, are now defunct.
27528  Jean-Marc Lasgouttes helped out big in making me find my way around the
27529  \SpecialChar LyX
27530  layout file mechanism.
27531 \end_layout
27532
27533 \begin_layout Subsection
27534
27535 \change_deleted 564990737 1671097446
27536 Bugs
27537 \end_layout
27538
27539 \begin_layout Standard
27540
27541 \change_deleted 564990737 1671097446
27542 Probably.
27543  But probably less than in the old hacked-\SpecialChar LaTeX
27544  
27545 \family typewriter
27546 ejour2
27547 \family default
27548 .
27549 \end_layout
27550
27551 \begin_layout Chapter
27552 \SpecialChar LyX
27553  Features needing Extra Software
27554 \end_layout
27555
27556 \begin_layout Section
27557 Checking \SpecialChar TeX
27558
27559 \end_layout
27560
27561 \begin_layout Standard
27562 by 
27563 \noun on
27564 Asger Alstrup
27565 \end_layout
27566
27567 \begin_layout Subsection
27568 Introduction
27569 \end_layout
27570
27571 \begin_layout Standard
27572 If you have the 
27573 \family typewriter
27574 chktex
27575 \family default
27576  program installed
27577 \begin_inset Foot
27578 status collapsed
27579
27580 \begin_layout Plain Layout
27581
27582 \family typewriter
27583 chktex
27584 \family default
27585  is not yet available when you are using the \SpecialChar LaTeX
27586  distribution MiK\SpecialChar TeX
27587 .
27588 \end_layout
27589
27590 \end_inset
27591
27592 , you'll find in the 
27593 \family sans
27594 Tools
27595 \family default
27596  menu the entry: 
27597 \family sans
27598 Check
27599 \begin_inset space ~
27600 \end_inset
27601
27602 TeX
27603 \family default
27604 .
27605  You can get 
27606 \family typewriter
27607 chktex
27608 \family default
27609  from CTAN,
27610 \begin_inset Newline newline
27611 \end_inset
27612
27613
27614 \begin_inset CommandInset href
27615 LatexCommand href
27616 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
27617 literal "false"
27618
27619 \end_inset
27620
27621 .
27622 \end_layout
27623
27624 \begin_layout Standard
27625 The 
27626 \family sans
27627 Chk\SpecialChar TeX
27628
27629 \family default
27630  package is a program that was written by 
27631 \begin_inset Flex Noun
27632 status collapsed
27633
27634 \begin_layout Plain Layout
27635 Jens T.
27636 \begin_inset space ~
27637 \end_inset
27638
27639 Berger Thielemann
27640 \end_layout
27641
27642 \end_inset
27643
27644  in frustration because some constructs in \SpecialChar LaTeX
27645  are sometimes non-intuitive,
27646  and easy to forget.
27647  The program runs over your \SpecialChar LaTeX
27648  file, checks the integrity of the file, and
27649  flags some common errors.
27650  In other technical words, it is 
27651 \family typewriter
27652 lint
27653 \family default
27654  for \SpecialChar LaTeX
27655 .
27656 \end_layout
27657
27658 \begin_layout Standard
27659 Well, what is a syntax checker doing in \SpecialChar LyX
27660  which is supposed to produce correct
27661  \SpecialChar LaTeX
27662  anyways? The answer is simple: Just as 
27663 \family typewriter
27664 Lint
27665 \family default
27666  not only checks the 
27667 \emph on
27668 syntax
27669 \emph default
27670  of C programs, but also does 
27671 \emph on
27672 semantic
27673 \emph default
27674  checks for type-errors, 
27675 \family sans
27676 Chk\SpecialChar TeX
27677
27678 \family default
27679  catches some common 
27680 \emph on
27681 typographic
27682 \emph default
27683  errors, in addition to the syntactical ones.
27684  Specifically, 
27685 \family sans
27686 Chk\SpecialChar TeX
27687
27688 \family default
27689  is capable of detecting several common errors, such as
27690 \end_layout
27691
27692 \begin_layout Itemize
27693 Ellipsis detection:
27694 \begin_inset Newline newline
27695 \end_inset
27696
27697 Use \SpecialChar ldots
27698  instead of ...
27699 \end_layout
27700
27701 \begin_layout Itemize
27702 No space in front of/after parenthesis:
27703 \begin_inset Newline newline
27704 \end_inset
27705
27706 ( wrong spacing )
27707 \end_layout
27708
27709 \begin_layout Itemize
27710 Enforcement of normal space after common abbreviations:
27711 \begin_inset Newline newline
27712 \end_inset
27713
27714 e.
27715 \begin_inset space \thinspace{}
27716 \end_inset
27717
27718 g.
27719 \begin_inset space \space{}
27720 \end_inset
27721
27722 is too wide spacing.
27723 \end_layout
27724
27725 \begin_layout Itemize
27726 Enforcement of end-of-sentence space when the last sentence ends with a
27727  capital letter:
27728 \begin_inset Newline newline
27729 \end_inset
27730
27731 This is a TEST.
27732  And this is wrong spacing.
27733 \end_layout
27734
27735 \begin_layout Itemize
27736 Space in front of labels and similar commands:
27737 \begin_inset Newline newline
27738 \end_inset
27739
27740 The label should stick right up to the text to avoid falling to a wrong
27741  page.
27742  
27743 \begin_inset CommandInset label
27744 LatexCommand label
27745 name "sec:chktex"
27746
27747 \end_inset
27748
27749  
27750 \begin_inset Foot
27751 status collapsed
27752
27753 \begin_layout Plain Layout
27754 This footnote is in danger of falling off to a wrong page
27755 \end_layout
27756
27757 \end_inset
27758
27759  The label is separated too much.
27760 \end_layout
27761
27762 \begin_layout Itemize
27763 Space in front of references, instead of hard spaces:
27764 \begin_inset Newline newline
27765 \end_inset
27766
27767 If you have bad luck, the text will break right between the referenced text
27768  and reference number, and that's a pity.
27769  See section 
27770 \begin_inset CommandInset ref
27771 LatexCommand ref
27772 reference "sec:chktex"
27773
27774 \end_inset
27775
27776 .
27777 \end_layout
27778
27779 \begin_layout Itemize
27780 Use of 
27781 \begin_inset Quotes eld
27782 \end_inset
27783
27784 x
27785 \begin_inset Quotes erd
27786 \end_inset
27787
27788  instead of 
27789 \begin_inset Formula $\times$
27790 \end_inset
27791
27792  between numbers:
27793 \begin_inset Newline newline
27794 \end_inset
27795
27796 2x2 looks cheap compared to 
27797 \begin_inset Formula $2\times2$
27798 \end_inset
27799
27800 .
27801 \end_layout
27802
27803 \begin_layout Standard
27804 and more \SpecialChar ldots
27805  It is an invaluable tool when you are 
27806 \begin_inset Quotes eld
27807 \end_inset
27808
27809 finishing up
27810 \begin_inset Quotes erd
27811 \end_inset
27812
27813  your document before printing, and you should run it right after the obligatory
27814  spelling check, and before you go fine tuning the typesetting.
27815 \end_layout
27816
27817 \begin_layout Subsection
27818 How to use it
27819 \end_layout
27820
27821 \begin_layout Standard
27822 If you have the program installed, usage is as simple as choosing 
27823 \family sans
27824 Tools\SpecialChar menuseparator
27825 Check
27826 \begin_inset space ~
27827 \end_inset
27828
27829 TeX
27830 \family default
27831 .
27832  This will make \SpecialChar LyX
27833  generate a \SpecialChar LaTeX
27834  file of your document, start 
27835 \family sans
27836 Chk\SpecialChar TeX
27837
27838 \family default
27839  to check it, and then make \SpecialChar LyX
27840  insert 
27841 \begin_inset Quotes eld
27842 \end_inset
27843
27844 error boxes
27845 \begin_inset Quotes erd
27846 \end_inset
27847
27848  with the warnings from 
27849 \family sans
27850 Chk\SpecialChar TeX
27851
27852 \family default
27853 , if there were any.
27854  The warnings will be placed close to the point of the mistake, and you
27855  can quickly find them by using the 
27856 \family sans
27857 Navigate\SpecialChar menuseparator
27858 Error
27859 \family default
27860  menu item, or the shortcut key 
27861 \family sans
27862 C-g
27863 \family default
27864  from the default 
27865 \family typewriter
27866 cua
27867 \family default
27868  bind file.
27869  Open the error boxes by clicking on them with the mouse, or use the shortcut
27870  key 
27871 \family sans
27872 C-i
27873 \family default
27874  from 
27875 \family typewriter
27876 cua
27877 \family default
27878  bindings, or the corresponding 
27879 \family sans
27880 C-o
27881 \family default
27882  for the alternate 
27883 \family typewriter
27884 emacs
27885 \family default
27886  bind file.
27887  Read the warning and correct the mistake, if it is a mistake.
27888  If you have trouble understanding what the warning is about, you can safely
27889  ignore it.
27890  Remember that there is a hidden layer between the document on screen and
27891  the technical details in invoking 
27892 \family sans
27893 Chk\SpecialChar TeX
27894
27895 \family default
27896 , and this gap can make some warnings seem arcane or just plain silly.
27897 \end_layout
27898
27899 \begin_layout Standard
27900 This document is an excellent testing bed for the feature, and it should
27901  provide quite a few warnings for you to fiddle with.
27902  Since computers are only so smart, expect most of the warnings to be false
27903  alarms, though.
27904 \end_layout
27905
27906 \begin_layout Subsection
27907 How to fine tune it
27908 \end_layout
27909
27910 \begin_layout Standard
27911 Sometimes, you'll find that 
27912 \family sans
27913 Chk\SpecialChar TeX
27914
27915 \family default
27916  makes more noise than suits your mood.
27917  Then you can choose not to use it, wait until your mood changes, or try
27918  to customize 
27919 \family sans
27920 Chk\SpecialChar TeX
27921
27922 \family default
27923  to get better along with you.
27924 \end_layout
27925
27926 \begin_layout Standard
27927 Although 
27928 \family sans
27929 Chk\SpecialChar TeX
27930
27931 \family default
27932  
27933 \emph on
27934 is
27935 \emph default
27936  very configurable and extensible, you should not expect to solve all problems
27937  with 
27938 \family sans
27939 Chk\SpecialChar TeX
27940
27941 \family default
27942  in \SpecialChar LyX
27943  this way.
27944  Since \SpecialChar LyX
27945  has to generate a somewhat special \SpecialChar LaTeX
27946  file to be able to match the
27947  line numbers from the 
27948 \family sans
27949 Chk\SpecialChar TeX
27950
27951 \family default
27952  output
27953 \begin_inset Foot
27954 status collapsed
27955
27956 \begin_layout Plain Layout
27957 You can inspect the specific output from 
27958 \family sans
27959 chktex
27960 \family default
27961  by using 
27962 \family sans
27963 Document\SpecialChar menuseparator
27964 \SpecialChar LaTeX
27965
27966 \begin_inset space ~
27967 \end_inset
27968
27969 Log
27970 \family default
27971  right after a 
27972 \family sans
27973 chktex
27974 \family default
27975  run.
27976 \end_layout
27977
27978 \end_inset
27979
27980  to the internal document structure, some of the warnings will not appear
27981  correctly.
27982  There are two things you can do about this:
27983 \end_layout
27984
27985 \begin_layout Itemize
27986 Fine tune the 
27987 \family sans
27988 Chk\SpecialChar TeX
27989
27990 \family default
27991  invocation command line in 
27992 \begin_inset Flex Noun
27993 status collapsed
27994
27995 \begin_layout Plain Layout
27996 Tools\SpecialChar menuseparator
27997 Preferences\SpecialChar menuseparator
27998 Output\SpecialChar menuseparator
27999 LaTeX\SpecialChar menuseparator
28000 CheckTeX command
28001 \end_layout
28002
28003 \end_inset
28004
28005 , or the global 
28006 \family sans
28007 Chk\SpecialChar TeX
28008
28009 \family default
28010  installation configuration file (usually with the file 
28011 \family typewriter
28012 chktexrc
28013 \family default
28014 ).
28015  See below to learn what warnings can be enabled and disabled on the command
28016  line.
28017 \end_layout
28018
28019 \begin_layout Itemize
28020 Export your document as a raw \SpecialChar LaTeX
28021  file using 
28022 \family sans
28023 File\SpecialChar menuseparator
28024 Export\SpecialChar menuseparator
28025 \SpecialChar LaTeX
28026
28027 \family default
28028  and run 
28029 \family typewriter
28030 chktex
28031 \family default
28032  manually on that.
28033  Invoked in this way, it can be a hassle to find the corresponding place
28034  in the document inside \SpecialChar LyX
28035 , but with a little patience, you should be able
28036  to do it.
28037 \end_layout
28038
28039 \begin_layout Standard
28040 Here follows the warning messages that can be enabled and disabled in 
28041 \family sans
28042 Preferences
28043 \family default
28044 .
28045  Use 
28046 \family typewriter
28047 -n#
28048 \family default
28049  to disable a warning, and 
28050 \family typewriter
28051 -w#
28052 \family default
28053  to enable a warning.
28054  The emphasized entries are disabled by default, because the default is
28055  "
28056 \family typewriter
28057 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
28058 \family default
28059 ".
28060 \end_layout
28061
28062 \begin_layout Standard
28063 Notice that you should only use the options that enable and disable warnings,
28064  because \SpecialChar LyX
28065  relies on some of the other command line parameters to be set
28066  in a specific way to have a chance to communicate with 
28067 \family typewriter
28068 chktex
28069 \family default
28070 .
28071 \end_layout
28072
28073 \begin_layout Enumerate
28074
28075 \size small
28076 \emph on
28077 Command terminated with space.
28078 \end_layout
28079
28080 \begin_layout Enumerate
28081
28082 \size small
28083 Non-breaking space (
28084 \begin_inset Quotes eld
28085 \end_inset
28086
28087
28088 \family typewriter
28089 ~
28090 \family default
28091
28092 \begin_inset Quotes erd
28093 \end_inset
28094
28095 ) should have been used.
28096 \end_layout
28097
28098 \begin_layout Enumerate
28099
28100 \size small
28101 \emph on
28102 You should enclose the previous parenthesis with 
28103 \begin_inset Quotes eld
28104 \end_inset
28105
28106
28107 \family typewriter
28108 {}
28109 \family default
28110
28111 \begin_inset Quotes erd
28112 \end_inset
28113
28114 .
28115 \end_layout
28116
28117 \begin_layout Enumerate
28118
28119 \size small
28120 Italic correction (
28121 \begin_inset Quotes eld
28122 \end_inset
28123
28124
28125 \family typewriter
28126
28127 \backslash
28128 /
28129 \family default
28130
28131 \begin_inset Quotes erd
28132 \end_inset
28133
28134 ) found in non-italic buffer.
28135 \end_layout
28136
28137 \begin_layout Enumerate
28138
28139 \size small
28140 Italic correction (
28141 \begin_inset Quotes eld
28142 \end_inset
28143
28144
28145 \family typewriter
28146
28147 \backslash
28148 /
28149 \family default
28150
28151 \begin_inset Quotes erd
28152 \end_inset
28153
28154 ) found more than once.
28155 \end_layout
28156
28157 \begin_layout Enumerate
28158
28159 \size small
28160 \emph on
28161 No italic correction (
28162 \begin_inset Quotes eld
28163 \end_inset
28164
28165
28166 \family typewriter
28167
28168 \backslash
28169 /
28170 \family default
28171
28172 \begin_inset Quotes erd
28173 \end_inset
28174
28175 ) found.
28176 \end_layout
28177
28178 \begin_layout Enumerate
28179
28180 \size small
28181 Accent command 
28182 \begin_inset Quotes eld
28183 \end_inset
28184
28185
28186 \family typewriter
28187 cmd
28188 \family default
28189
28190 \begin_inset Quotes erd
28191 \end_inset
28192
28193  needs use of 
28194 \begin_inset Quotes eld
28195 \end_inset
28196
28197
28198 \family typewriter
28199 cmd
28200 \family default
28201
28202 \begin_inset Quotes erd
28203 \end_inset
28204
28205 .
28206 \end_layout
28207
28208 \begin_layout Enumerate
28209
28210 \size small
28211 Wrong length of dash may have been used.
28212 \end_layout
28213
28214 \begin_layout Enumerate
28215
28216 \size small
28217 \emph on
28218 \begin_inset Quotes eld
28219 \end_inset
28220
28221
28222 \family typewriter
28223 %s
28224 \family default
28225
28226 \begin_inset Quotes erd
28227 \end_inset
28228
28229  expected, found 
28230 \begin_inset Quotes eld
28231 \end_inset
28232
28233
28234 \family typewriter
28235 %s
28236 \family default
28237
28238 \begin_inset Quotes erd
28239 \end_inset
28240
28241 .
28242 \end_layout
28243
28244 \begin_layout Enumerate
28245
28246 \size small
28247 Solo 
28248 \begin_inset Quotes eld
28249 \end_inset
28250
28251
28252 \family typewriter
28253 %s
28254 \family default
28255
28256 \begin_inset Quotes erd
28257 \end_inset
28258
28259  found.
28260 \end_layout
28261
28262 \begin_layout Enumerate
28263
28264 \size small
28265 You should use 
28266 \begin_inset Quotes eld
28267 \end_inset
28268
28269
28270 \family typewriter
28271 %s
28272 \family default
28273
28274 \begin_inset Quotes erd
28275 \end_inset
28276
28277  to achieve an ellipsis.
28278 \end_layout
28279
28280 \begin_layout Enumerate
28281
28282 \size small
28283 Inter-word spacing (
28284 \begin_inset Quotes eld
28285 \end_inset
28286
28287
28288 \family typewriter
28289
28290 \backslash
28291
28292 \family default
28293  
28294 \begin_inset Quotes eld
28295 \end_inset
28296
28297 ) should perhaps be used.
28298 \end_layout
28299
28300 \begin_layout Enumerate
28301
28302 \size small
28303 Inter-sentence spacing (
28304 \begin_inset Quotes eld
28305 \end_inset
28306
28307
28308 \family typewriter
28309
28310 \backslash
28311 @
28312 \family default
28313
28314 \begin_inset Quotes erd
28315 \end_inset
28316
28317 ) should perhaps be used.
28318 \end_layout
28319
28320 \begin_layout Enumerate
28321
28322 \size small
28323 Could not find argument for command.
28324 \end_layout
28325
28326 \begin_layout Enumerate
28327
28328 \size small
28329 No match found for 
28330 \begin_inset Quotes eld
28331 \end_inset
28332
28333
28334 \family typewriter
28335 %s
28336 \family default
28337
28338 \begin_inset Quotes erd
28339 \end_inset
28340
28341 .
28342 \end_layout
28343
28344 \begin_layout Enumerate
28345
28346 \size small
28347 Math mode still on at end of \SpecialChar LaTeX
28348  file.
28349 \end_layout
28350
28351 \begin_layout Enumerate
28352
28353 \size small
28354 Number of 
28355 \begin_inset Quotes eld
28356 \end_inset
28357
28358
28359 \family typewriter
28360 char
28361 \family default
28362
28363 \begin_inset Quotes erd
28364 \end_inset
28365
28366  doesn't match the number of 
28367 \begin_inset Quotes eld
28368 \end_inset
28369
28370
28371 \family typewriter
28372 char
28373 \family default
28374
28375 \begin_inset Quotes erd
28376 \end_inset
28377
28378 .
28379 \end_layout
28380
28381 \begin_layout Enumerate
28382
28383 \size small
28384 You should use either 
28385 \family typewriter
28386
28387 \begin_inset Quotes eld
28388 \end_inset
28389
28390
28391 \family default
28392  or 
28393 \family typewriter
28394
28395 \begin_inset Quotes erd
28396 \end_inset
28397
28398
28399 \family default
28400  as an alternative to 
28401 \begin_inset Quotes eld
28402 \end_inset
28403
28404
28405 \family typewriter
28406 "
28407 \family default
28408
28409 \begin_inset Quotes erd
28410 \end_inset
28411
28412 .
28413 \end_layout
28414
28415 \begin_layout Enumerate
28416
28417 \size small
28418 You should use "
28419 \family typewriter
28420 '
28421 \family default
28422 " (ASCII 39) instead of "
28423 \family typewriter
28424 ´
28425 \family default
28426 " (ASCII 180).
28427 \end_layout
28428
28429 \begin_layout Enumerate
28430
28431 \size small
28432 User-specified pattern found.
28433 \end_layout
28434
28435 \begin_layout Enumerate
28436
28437 \size small
28438 This command might not be intended.
28439 \end_layout
28440
28441 \begin_layout Enumerate
28442
28443 \size small
28444 \emph on
28445 Comment displayed.
28446 \end_layout
28447
28448 \begin_layout Enumerate
28449
28450 \size small
28451 Either 
28452 \family typewriter
28453 ''
28454 \backslash
28455 ,'
28456 \family default
28457  or 
28458 \family typewriter
28459 '
28460 \backslash
28461 ,''
28462 \family default
28463  will look better.
28464 \end_layout
28465
28466 \begin_layout Enumerate
28467
28468 \size small
28469 Delete this space to maintain correct page references.
28470 \end_layout
28471
28472 \begin_layout Enumerate
28473
28474 \size small
28475 \emph on
28476 You might wish to put this between a pair of 
28477 \begin_inset Quotes eld
28478 \end_inset
28479
28480
28481 \family typewriter
28482 {}
28483 \family default
28484
28485 \begin_inset Quotes erd
28486 \end_inset
28487
28488 .
28489 \end_layout
28490
28491 \begin_layout Enumerate
28492
28493 \size small
28494 You ought to remove spaces in front of punctuation.
28495 \end_layout
28496
28497 \begin_layout Enumerate
28498
28499 \size small
28500 Could not execute \SpecialChar LaTeX
28501  command.
28502 \end_layout
28503
28504 \begin_layout Enumerate
28505
28506 \size small
28507 Don't use 
28508 \family typewriter
28509
28510 \backslash
28511 /
28512 \family default
28513  in front of small punctuation.
28514 \end_layout
28515
28516 \begin_layout Enumerate
28517
28518 \family typewriter
28519 \size small
28520 $
28521 \backslash
28522 times$
28523 \family default
28524  may look prettier here.
28525 \end_layout
28526
28527 \begin_layout Enumerate
28528
28529 \size small
28530 \emph on
28531 Multiple spaces detected in output.
28532 \end_layout
28533
28534 \begin_layout Enumerate
28535
28536 \size small
28537 This text may be ignored.
28538 \end_layout
28539
28540 \begin_layout Enumerate
28541
28542 \size small
28543 Use 
28544 \family typewriter
28545
28546 \begin_inset Quotes eld
28547 \end_inset
28548
28549
28550 \family default
28551  to begin quotation, not 
28552 \family typewriter
28553 '
28554 \family default
28555 .
28556 \end_layout
28557
28558 \begin_layout Enumerate
28559
28560 \size small
28561 Use 
28562 \family typewriter
28563 '
28564 \family default
28565  to end quotation, not 
28566 \family typewriter
28567
28568 \begin_inset Quotes eld
28569 \end_inset
28570
28571
28572 \family default
28573 .
28574 \end_layout
28575
28576 \begin_layout Enumerate
28577
28578 \size small
28579 Don't mix quotes.
28580 \end_layout
28581
28582 \begin_layout Enumerate
28583
28584 \size small
28585 You should perhaps use 
28586 \begin_inset Quotes eld
28587 \end_inset
28588
28589
28590 \family typewriter
28591 cmd
28592 \family default
28593
28594 \begin_inset Quotes erd
28595 \end_inset
28596
28597  instead.
28598 \end_layout
28599
28600 \begin_layout Enumerate
28601
28602 \size small
28603 You should put a space in front of/after parenthesis.
28604 \end_layout
28605
28606 \begin_layout Enumerate
28607
28608 \size small
28609 You should avoid spaces in front of/after parenthesis.
28610 \end_layout
28611
28612 \begin_layout Enumerate
28613
28614 \size small
28615 \emph on
28616 You should not use punctuation in front of/after quotes.
28617 \end_layout
28618
28619 \begin_layout Enumerate
28620
28621 \size small
28622 Double space found.
28623 \end_layout
28624
28625 \begin_layout Enumerate
28626
28627 \size small
28628 You should put punctuation outside inner/inside display math mode.
28629 \end_layout
28630
28631 \begin_layout Enumerate
28632
28633 \size small
28634 You ought to not use primitive \SpecialChar TeX
28635  in \SpecialChar LaTeX
28636  code.
28637 \end_layout
28638
28639 \begin_layout Enumerate
28640
28641 \size small
28642 You should remove spaces in front of 
28643 \begin_inset Quotes eld
28644 \end_inset
28645
28646
28647 \family typewriter
28648 %s
28649 \family default
28650
28651 \begin_inset Quotes erd
28652 \end_inset
28653
28654
28655 \end_layout
28656
28657 \begin_layout Enumerate
28658
28659 \size small
28660 \begin_inset Quotes eld
28661 \end_inset
28662
28663
28664 \family typewriter
28665 %s
28666 \family default
28667
28668 \begin_inset Quotes erd
28669 \end_inset
28670
28671  is normally not followed by 
28672 \begin_inset Quotes eld
28673 \end_inset
28674
28675
28676 \family typewriter
28677 %c
28678 \family default
28679
28680 \begin_inset Quotes erd
28681 \end_inset
28682
28683 .
28684 \end_layout
28685
28686 \begin_layout Standard
28687 In later versions of \SpecialChar LyX
28688 , we hope to provide a more complete interface to this
28689  tool (and it's smaller cousin 
28690 \family typewriter
28691 lacheck
28692 \family default
28693 ) to exploit the full power of it.
28694  But it's not exactly useless as it is now: go try it on one of your existing
28695  documents of a certain length and be surprised.
28696 \end_layout
28697
28698 \begin_layout Section
28699 Version Control in \SpecialChar LyX
28700
28701 \end_layout
28702
28703 \begin_layout Standard
28704 by
28705 \noun on
28706  Lars Gullik Bjønnes 
28707 \noun default
28708 and 
28709 \noun on
28710 Pavel Sanda
28711 \end_layout
28712
28713 \begin_layout Subsection
28714 Introduction
28715 \end_layout
28716
28717 \begin_layout Standard
28718 \SpecialChar LyX
28719  supports some of the most basic RCS/CVS/SVN/GIT commands.
28720  If you need something a bit more sophisticated you will have to do that
28721  manually in a terminal.
28722 \end_layout
28723
28724 \begin_layout Standard
28725 Also note that CVS support is not as good as subversion support, so we advise
28726  using SVN instead.
28727  A good place to start learning Subversion is the SVN Book
28728 \begin_inset Foot
28729 status collapsed
28730
28731 \begin_layout Plain Layout
28732 \begin_inset CommandInset href
28733 LatexCommand href
28734 target "http://svnbook.red-bean.com/"
28735 literal "false"
28736
28737 \end_inset
28738
28739
28740 \end_layout
28741
28742 \end_inset
28743
28744 .
28745  In the case of RCS you should read 
28746 \begin_inset Quotes eld
28747 \end_inset
28748
28749 rcsintro
28750 \begin_inset Quotes erd
28751 \end_inset
28752
28753  (a man file, read it with 
28754 \family typewriter
28755 man rcsintro
28756 \family default
28757 ).
28758  This file describes all the basic features of RCS.
28759  You should especially notice the comment about a RCS directory, and the
28760  notion of a master RCS file (the file ending in 
28761 \family typewriter
28762 ,v
28763 \family default
28764 ).
28765 \end_layout
28766
28767 \begin_layout Standard
28768 Before you begin to use the version control features in \SpecialChar LyX
28769 , you should be
28770  familiar with RCS/CVS/SVN/GIT usage.
28771  The implementation in \SpecialChar LyX
28772  assumes a recent version of the GNU RCS or CVS/SVN
28773  package — no guarantees are made for older versions.
28774  Most of the log messages are not currently displayed after operations —
28775  you can check them in the Messages pane if you are unsure.
28776  Regular users of version control will appreciate the VC toolbar, which
28777  can be enabled via 
28778 \family sans
28779 View\SpecialChar menuseparator
28780 Toolbars\SpecialChar menuseparator
28781 Version
28782 \begin_inset space ~
28783 \end_inset
28784
28785 Control
28786 \family default
28787 .
28788 \end_layout
28789
28790 \begin_layout Standard
28791 For introducing your own external commands consult 
28792 \begin_inset Flex Code
28793 status collapsed
28794
28795 \begin_layout Plain Layout
28796 vc-command
28797 \end_layout
28798
28799 \end_inset
28800
28801  in the manual 
28802 \emph on
28803 \SpecialChar LyX
28804  Functions
28805 \emph default
28806 .
28807 \end_layout
28808
28809 \begin_layout Standard
28810 It is strongly recommended to store documents in uncompressed format if
28811  using version control (uncheck 
28812 \family sans
28813 Document\SpecialChar menuseparator
28814 Compressed
28815 \family default
28816  if it is checked): Uncompressed LyX documents are text files and therefore
28817  for merging two different versions by version control systems.
28818  Compressed LyX documents are binary files, which cannot be merged by version
28819  control systems.
28820 \end_layout
28821
28822 \begin_layout Subsection
28823 RCS commands in \SpecialChar LyX
28824
28825 \end_layout
28826
28827 \begin_layout Standard
28828 The following sections describe the RCS commands supported by \SpecialChar LyX
28829 .
28830  You can find them in the 
28831 \family sans
28832 File\SpecialChar menuseparator
28833 Version
28834 \begin_inset space ~
28835 \end_inset
28836
28837 Control
28838 \family default
28839  submenu.
28840  \SpecialChar LyX
28841  was tested against RCS 5.7/5.8.
28842 \end_layout
28843
28844 \begin_layout Subsubsection
28845
28846 \family sans
28847 Register
28848 \end_layout
28849
28850 \begin_layout Standard
28851 If your document is not under revision control, this is the only item shown
28852  in the menu.
28853  And if it is under revision control, the 
28854 \family sans
28855 Register
28856 \family default
28857  item is not visible.
28858  
28859 \end_layout
28860
28861 \begin_layout Standard
28862 This command registers your document with RCS (unless you are under the
28863  directory managed by CVS)\SpecialChar endofsentence
28864  You are asked interactively to supply an initial
28865  description of the document.
28866  The document is now set in Read-Only mode and you have to 
28867 \family sans
28868 Check
28869 \begin_inset space ~
28870 \end_inset
28871
28872 Out
28873 \begin_inset space ~
28874 \end_inset
28875
28876 For
28877 \begin_inset space ~
28878 \end_inset
28879
28880 Edit
28881 \family default
28882 , before making any changes to it.
28883  A document under revision control has a 
28884 \begin_inset Quotes eld
28885 \end_inset
28886
28887 [RCS:<version> <locker>]
28888 \begin_inset Quotes erd
28889 \end_inset
28890
28891  item tagged to the filename in the minibuffer.
28892 \end_layout
28893
28894 \begin_layout Standard
28895 RCS command that is run:
28896 \end_layout
28897
28898 \begin_layout LyX-Code
28899
28900 \family typewriter
28901 ci -q -u -i -t-"<initial description>" <file-name>
28902 \end_layout
28903
28904 \begin_layout Standard
28905 Read 
28906 \family typewriter
28907 man ci
28908 \family default
28909  to understand the switches.
28910  
28911 \end_layout
28912
28913 \begin_layout Subsubsection
28914
28915 \family sans
28916 Check In Changes
28917 \end_layout
28918
28919 \begin_layout Standard
28920 When you are finished editing a file, you check in your changes.
28921  When you do this, you are asked for a description of the changes.
28922  This is stored in the history log.
28923  The version number is bumped, your changes are applied to the master RCS
28924  file, the document is unlocked and set to Read-Only mode.
28925 \end_layout
28926
28927 \begin_layout Itemize
28928 RCS command: 
28929 \family typewriter
28930 ci -q -u -m"<description>" <file-name>
28931 \end_layout
28932
28933 \begin_layout Subsubsection
28934
28935 \family sans
28936 Check Out For Edit
28937 \end_layout
28938
28939 \begin_layout Standard
28940 By doing this you lock the document so that only you can edit it.
28941  This will also make the document Read-Write only for you.
28942  You will usually continue editing for a while and when you are finished
28943  you check in your changes.
28944  The status line is changed to reflect that you have locked the file.
28945 \end_layout
28946
28947 \begin_layout Itemize
28948 RCS command: 
28949 \family typewriter
28950 co -q -l <file-name>
28951 \end_layout
28952
28953 \begin_layout Subsubsection
28954
28955 \family sans
28956 Revert To Repository Version
28957 \end_layout
28958
28959 \begin_layout Standard
28960 This will discard all changes made to the document since the last check
28961  in.
28962  You get a warning before changes are discarded.
28963 \end_layout
28964
28965 \begin_layout Itemize
28966 RCS command: 
28967 \family typewriter
28968 co -f -u<version> <file-name>
28969 \end_layout
28970
28971 \begin_layout Subsubsection
28972
28973 \family sans
28974 Copy
28975 \end_layout
28976
28977 \begin_layout Standard
28978 This will create a copy of the current document.
28979  Since RCS does not support copy operations natively, the version history
28980  is not preserved, and the copy is added as a new file.
28981  It requires a clean document without any changes since the last checkin.
28982  You are asked for a file name and a description of the copy operation.
28983  After that the copy is created, both locally and in the repository.
28984  If the parent directories of the copied and original document differ, all
28985  relative paths of included files of the copy are adjusted (like in 
28986 \family sans
28987 File\SpecialChar menuseparator
28988 Save As
28989 \family default
28990 \SpecialChar ldots
28991 ).
28992  Finally, the copy is loaded instead of the original document.
28993 \end_layout
28994
28995 \begin_layout Labeling
28996 \labelwidthstring 00.00.0000
28997 RCS
28998 \begin_inset space ~
28999 \end_inset
29000
29001 commands: 
29002 \begin_inset space ~
29003 \end_inset
29004
29005
29006 \begin_inset Newline newline
29007 \end_inset
29008
29009 Copy 
29010 \begin_inset Flex Code
29011 status collapsed
29012
29013 \begin_layout Plain Layout
29014
29015 \family typewriter
29016 \begin_inset Quotes qld
29017 \end_inset
29018
29019 <file-name>
29020 \begin_inset Quotes qld
29021 \end_inset
29022
29023
29024 \end_layout
29025
29026 \end_inset
29027
29028  to 
29029 \begin_inset Flex Code
29030 status collapsed
29031
29032 \begin_layout Plain Layout
29033
29034 \family typewriter
29035 \begin_inset Quotes qld
29036 \end_inset
29037
29038 <new-file-name>
29039 \begin_inset Quotes qld
29040 \end_inset
29041
29042
29043 \end_layout
29044
29045 \end_inset
29046
29047
29048 \begin_inset Newline newline
29049 \end_inset
29050
29051
29052 \begin_inset Flex Code
29053 status collapsed
29054
29055 \begin_layout Plain Layout
29056 ci -q -u 
29057 \family typewriter
29058 -i 
29059 \begin_inset Quotes qld
29060 \end_inset
29061
29062 <new-file-name>
29063 \begin_inset Quotes qld
29064 \end_inset
29065
29066
29067 \end_layout
29068
29069 \end_inset
29070
29071
29072 \end_layout
29073
29074 \begin_layout Subsubsection
29075
29076 \family sans
29077 Undo Last Checkin
29078 \end_layout
29079
29080 \begin_layout Standard
29081 This makes as if the last check in never happened.
29082  No changes are made to the document loaded into \SpecialChar LyX
29083 , but the last version
29084  is removed from the master RCS file.
29085 \end_layout
29086
29087 \begin_layout Itemize
29088 RCS command: 
29089 \family typewriter
29090 rcs -o<version> <file-name>
29091 \end_layout
29092
29093 \begin_layout Subsubsection
29094
29095 \family sans
29096 Show History
29097 \end_layout
29098
29099 \begin_layout Standard
29100 This shows the complete history of the RCS document.
29101  The output of 
29102 \family typewriter
29103 rlog <file-name>
29104 \family default
29105  is shown in a browser.
29106  See 
29107 \family typewriter
29108 man rlog
29109 \family default
29110  for more info.
29111 \end_layout
29112
29113 \begin_layout Subsubsection
29114 Revision info
29115 \end_layout
29116
29117 \begin_layout Standard
29118 \SpecialChar LyX
29119  supports RCS version number, author name, date and time of last commit.
29120  All those are extracted from 
29121 \family typewriter
29122 rlog -r <file-name>
29123 \family default
29124 .
29125  See 
29126 \begin_inset CommandInset ref
29127 LatexCommand ref
29128 reference "subsec:VCS-Revision-Information"
29129
29130 \end_inset
29131
29132  for details.
29133 \end_layout
29134
29135 \begin_layout Subsection
29136 CVS commands in \SpecialChar LyX
29137
29138 \end_layout
29139
29140 \begin_layout Standard
29141 A subset of CVS operations is supported by \SpecialChar LyX
29142 .
29143  You can find the commands in the 
29144 \family sans
29145 File\SpecialChar menuseparator
29146 Version
29147 \begin_inset space ~
29148 \end_inset
29149
29150 Control
29151 \family default
29152  submenu.
29153  The version control system SVN is more powerful, so please use it instead
29154  of CVS if possible.
29155 \end_layout
29156
29157 \begin_layout Subsubsection
29158
29159 \family sans
29160 General CVS usage
29161 \end_layout
29162
29163 \begin_layout Standard
29164 If you start from scratch with CVS you have to create your repository and
29165  checkout the working copy with external tools.
29166  If you're using a client-server setup you may need to login before doing
29167  the first repository checkout.
29168 \end_layout
29169
29170 \begin_layout Standard
29171 If your documents are under revision control and others are using the same
29172  repository problems arise when different changes to the same document at
29173  the same location happen.
29174  Standard CVS repositories don't operate with a file locking mechanism.
29175  This may be surprising, but conflicts only occur if people disagree on
29176  the proper content of the same part of a document.
29177  So, if co-workers are used to communicate regularly, these conflicts occur
29178  rarely.
29179  If they don't communicate they have a fundamental problem anyway.
29180  Nevertheless some people like to work with so called 
29181 \begin_inset Quotes eld
29182 \end_inset
29183
29184 reserved checkouts
29185 \begin_inset Quotes erd
29186 \end_inset
29187
29188 .
29189  If they do so the working copy of all files is readonly when checked out
29190  first and the user starts editing after using a special command to make
29191  the working copy writable.
29192  When the changes are checked in the working copy returns to readonly state.
29193  With \SpecialChar LyX
29194  one has to edit the 
29195 \begin_inset Flex Code
29196 status collapsed
29197
29198 \begin_layout Plain Layout
29199 .cvsrc
29200 \end_layout
29201
29202 \end_inset
29203
29204  file and add the line 
29205 \begin_inset Flex Code
29206 status collapsed
29207
29208 \begin_layout Plain Layout
29209 cvs -r
29210 \end_layout
29211
29212 \end_inset
29213
29214  to work with reserved checkouts.
29215  The benefit is the possibility to see who is using a writable copy of some
29216  document.
29217  It's not guaranteed only one user makes a copy writable.
29218 \end_layout
29219
29220 \begin_layout Standard
29221 \SpecialChar LyX
29222  tries to guess if you're using reserved or non-reserved checkouts.
29223  If your working copy is readonly or it is writable and an additional copy
29224  of your document exists in the CVS/Base sub-directory a reserved otherwise
29225  a non-reserved checkout is assumed.
29226  When a reserved checkout is detected you have to use 
29227 \begin_inset Flex Noun
29228 status collapsed
29229
29230 \begin_layout Plain Layout
29231 Check Out
29232 \end_layout
29233
29234 \end_inset
29235
29236  to make your working copy writable if it's readonly.
29237  After doing so the 
29238 \begin_inset Flex Noun
29239 status collapsed
29240
29241 \begin_layout Plain Layout
29242 Check In
29243 \end_layout
29244
29245 \end_inset
29246
29247  operation is possible and that makes your working copy readonly again after
29248  transferring your changes to the repository.
29249 \end_layout
29250
29251 \begin_layout Standard
29252 More information about CVS can be found here 
29253 \begin_inset Flex URL
29254 status collapsed
29255
29256 \begin_layout Plain Layout
29257
29258 http://www.nongnu.org/cvs
29259 \end_layout
29260
29261 \end_inset
29262
29263  and here 
29264 \begin_inset Flex URL
29265 status collapsed
29266
29267 \begin_layout Plain Layout
29268
29269 http://ximbiot.com/cvs
29270 \end_layout
29271
29272 \end_inset
29273
29274 .
29275 \end_layout
29276
29277 \begin_layout Standard
29278 Read 
29279 \family typewriter
29280 man cvs
29281 \family default
29282  to understand the sub-commands and the switches mentioned below.
29283 \end_layout
29284
29285 \begin_layout Subsubsection
29286
29287 \family sans
29288 Register
29289 \end_layout
29290
29291 \begin_layout Standard
29292 If your document is not under revision control, this is the only item shown
29293  in the menu.
29294  And if it is under revision control, the 
29295 \family sans
29296 Register
29297 \family default
29298  item is not visible.
29299  
29300 \end_layout
29301
29302 \begin_layout Standard
29303 This command registers in CVS your document 
29304 \begin_inset Flex Strong
29305 status collapsed
29306
29307 \begin_layout Plain Layout
29308
29309 \emph on
29310 only
29311 \end_layout
29312
29313 \end_inset
29314
29315  in the case you have already the documents directory under CVS control
29316  (in particular 
29317 \family typewriter
29318 CVS/Entries
29319 \family default
29320  file exists).
29321  This means you have to create or checkout the archive by yourself using
29322  external tools.
29323  (In case you forget that step \SpecialChar LyX
29324  registers the document with RCS.)
29325 \end_layout
29326
29327 \begin_layout Standard
29328 Then you are asked interactively to supply an initial description of the
29329  document.
29330  Don't forget that registered file is not yet checked in.
29331 \end_layout
29332
29333 \begin_layout Standard
29334 CVS command that is run: 
29335 \family typewriter
29336 cvs -q add -m"<entered message>" "<file-name>"
29337 \end_layout
29338
29339 \begin_layout Standard
29340 The term 
29341 \family typewriter
29342 "<file-name>"
29343 \family default
29344  above and for all other CVS commands is an abbreviation for 
29345 \begin_inset Quotes eld
29346 \end_inset
29347
29348 change the current working directory to file location and use the file name
29349  without path component as argument
29350 \begin_inset Quotes erd
29351 \end_inset
29352
29353 .
29354 \end_layout
29355
29356 \begin_layout Subsubsection
29357
29358 \family sans
29359 Check In Changes
29360 \end_layout
29361
29362 \begin_layout Standard
29363 When you are finished editing a file, you commit your changes.
29364  When you do this and you had changed the document, you are asked for a
29365  description of the changes.
29366  After that changes are written to the repository.
29367  In case you didn't change the document and a reserved checkout is detected
29368  the reservation made on 
29369 \begin_inset Flex Noun
29370 status collapsed
29371
29372 \begin_layout Plain Layout
29373 Check Out
29374 \end_layout
29375
29376 \end_inset
29377
29378  is undone.
29379 \end_layout
29380
29381 \begin_layout Labeling
29382 \labelwidthstring 00.00.0000
29383 CVS
29384 \begin_inset space ~
29385 \end_inset
29386
29387 command: 
29388 \begin_inset space ~
29389 \end_inset
29390
29391
29392 \begin_inset Newline newline
29393 \end_inset
29394
29395
29396 \begin_inset Flex Code
29397 status collapsed
29398
29399 \begin_layout Plain Layout
29400 cvs 
29401 \family typewriter
29402 -q commit -m"<description>" "<file-name>"
29403 \end_layout
29404
29405 \end_inset
29406
29407  or
29408 \begin_inset Newline newline
29409 \end_inset
29410
29411
29412 \begin_inset Flex Code
29413 status collapsed
29414
29415 \begin_layout Plain Layout
29416 cvs -q unedit 
29417 \family typewriter
29418 "<file-name>"
29419 \end_layout
29420
29421 \end_inset
29422
29423
29424 \end_layout
29425
29426 \begin_layout Subsubsection
29427
29428 \family sans
29429 Check Out Changes
29430 \end_layout
29431
29432 \begin_layout Standard
29433 When you are sharing a repository with others, you may have to incorporate
29434  their changes into your working copy.
29435 \end_layout
29436
29437 \begin_layout Standard
29438 CVS command: 
29439 \family typewriter
29440 cvs -q update "<file-name>"
29441 \end_layout
29442
29443 \begin_layout Standard
29444 If a readonly checkout is detected the working copy is made writable and
29445  reserved.
29446 \end_layout
29447
29448 \begin_layout Standard
29449 CVS command: 
29450 \family typewriter
29451 cvs -q edit "<file-name>"
29452 \end_layout
29453
29454 \begin_layout Subsubsection
29455
29456 \family sans
29457 Revert To Repository Version
29458 \end_layout
29459
29460 \begin_layout Standard
29461 This will discard all changes made to the document since the last check
29462  in.
29463  You get a warning before changes are discarded.
29464  Firstly the file is deleted, secondly CVS update command is run.
29465 \end_layout
29466
29467 \begin_layout Standard
29468 CVS command: 
29469 \family typewriter
29470 cvs -q update "<file-name>"
29471 \end_layout
29472
29473 \begin_layout Standard
29474 If a reserved checkout is detected and the working copy has no changes only
29475  the reservation is undone.
29476 \end_layout
29477
29478 \begin_layout Standard
29479 CVS command: 
29480 \family typewriter
29481 cvs -q unedit "<file-name>"
29482 \end_layout
29483
29484 \begin_layout Subsubsection
29485
29486 \family sans
29487 Copy
29488 \end_layout
29489
29490 \begin_layout Standard
29491 This will create a copy of the current document.
29492  Since CVS does not support copy operations natively, the version history
29493  is not preserved, and the copy is added as a new file.
29494  It requires a clean document without any changes since the last checkin.
29495  You are asked for a file name and a description of the copy operation.
29496  After that the copy is created, both locally and in the repository.
29497  If the parent directories of the copied and original document differ, all
29498  relative paths of included files of the copy are adjusted (like in 
29499 \family sans
29500 File\SpecialChar menuseparator
29501 Save As
29502 \family default
29503 \SpecialChar ldots
29504 ).
29505  Finally, the copy is loaded instead of the original document.
29506 \end_layout
29507
29508 \begin_layout Labeling
29509 \labelwidthstring 00.00.0000
29510 CVS
29511 \begin_inset space ~
29512 \end_inset
29513
29514 commands: 
29515 \begin_inset space ~
29516 \end_inset
29517
29518
29519 \begin_inset Newline newline
29520 \end_inset
29521
29522 Copy 
29523 \begin_inset Flex Code
29524 status collapsed
29525
29526 \begin_layout Plain Layout
29527 "<file-name>"
29528 \end_layout
29529
29530 \end_inset
29531
29532  to 
29533 \begin_inset Flex Code
29534 status collapsed
29535
29536 \begin_layout Plain Layout
29537 "<new-file-name>"
29538 \end_layout
29539
29540 \end_inset
29541
29542
29543 \begin_inset Newline newline
29544 \end_inset
29545
29546
29547 \begin_inset Flex Code
29548 status collapsed
29549
29550 \begin_layout Plain Layout
29551 cvs -q add "<new-file-name>"
29552 \end_layout
29553
29554 \end_inset
29555
29556
29557 \end_layout
29558
29559 \begin_layout Subsubsection
29560
29561 \family sans
29562 Rename
29563 \end_layout
29564
29565 \begin_layout Standard
29566 This will rename the current document.
29567  Since CVS does not support rename operations natively, the version history
29568  is not preserved, the renamed document is added as a new file, and the
29569  original document is deleted.
29570  It requires a clean document without any changes since the last checkin.
29571  You are asked for a file name and a description of the rename operation.
29572  After that the document is renamed, both locally and in the repository.
29573  If the parent directories of the new and old file names differ, all relative
29574  paths of included files are adjusted (like in 
29575 \family sans
29576 File\SpecialChar menuseparator
29577 Save As
29578 \family default
29579 \SpecialChar ldots
29580 ).
29581  Finally, the document is reloaded using the new name.
29582 \end_layout
29583
29584 \begin_layout Labeling
29585 \labelwidthstring 00.00.0000
29586 CVS
29587 \begin_inset space ~
29588 \end_inset
29589
29590 commands: 
29591 \begin_inset space ~
29592 \end_inset
29593
29594
29595 \begin_inset Newline newline
29596 \end_inset
29597
29598 Rename 
29599 \begin_inset Flex Code
29600 status collapsed
29601
29602 \begin_layout Plain Layout
29603 "<file-name>"
29604 \end_layout
29605
29606 \end_inset
29607
29608  to 
29609 \begin_inset Flex Code
29610 status collapsed
29611
29612 \begin_layout Plain Layout
29613 "<new-file-name>"
29614 \end_layout
29615
29616 \end_inset
29617
29618
29619 \begin_inset Newline newline
29620 \end_inset
29621
29622
29623 \begin_inset Flex Code
29624 status collapsed
29625
29626 \begin_layout Plain Layout
29627 cvs -q add "<new-file-name>"
29628 \end_layout
29629
29630 \end_inset
29631
29632
29633 \begin_inset Newline newline
29634 \end_inset
29635
29636
29637 \begin_inset Flex Code
29638 status collapsed
29639
29640 \begin_layout Plain Layout
29641 cvs -q remove "<file-name>"
29642 \end_layout
29643
29644 \end_inset
29645
29646
29647 \end_layout
29648
29649 \begin_layout Subsubsection
29650 Update of the local directory checkout from repository
29651 \end_layout
29652
29653 \begin_layout Standard
29654 Once your documents gets more complex, containing sub-documents and pictures,
29655  including external 
29656 \begin_inset Flex Code
29657 status collapsed
29658
29659 \begin_layout Plain Layout
29660 .tex
29661 \end_layout
29662
29663 \end_inset
29664
29665  files and so on using version control becomes more complicated.
29666  \SpecialChar LyX
29667  supports updating the whole tree in which resides the document.
29668  This become especially useful once you cooperate with people which neither
29669  have detailed knowledge about CVS usage nor they have ambition to commit
29670  additional material to the repository.
29671  You have to organize the files structure so that all external files are
29672  in the same directory or subdirectories of the document.
29673  It's good practice anyway to store multipart documents in an extra directory.
29674 \end_layout
29675
29676 \begin_layout Standard
29677 The 
29678 \begin_inset Flex Code
29679 status collapsed
29680
29681 \begin_layout Plain Layout
29682 Update local directory from repository
29683 \end_layout
29684
29685 \end_inset
29686
29687  command updates the whole directory.
29688  If local changes are detected user is warned before update starts.
29689  In case of merge conflicts both versions of the conflicting document parts
29690  are placed in the final document.
29691  You have to review and correct the result of the merge.
29692  You'll find the conflicts enclosed in pairs of 
29693 \begin_inset Flex Code
29694 status collapsed
29695
29696 \begin_layout Plain Layout
29697 <<<<<<<
29698 \end_layout
29699
29700 \end_inset
29701
29702  and 
29703 \begin_inset Flex Code
29704 status collapsed
29705
29706 \begin_layout Plain Layout
29707 >>>>>>>
29708 \end_layout
29709
29710 \end_inset
29711
29712  separated by 
29713 \begin_inset Flex Code
29714 status collapsed
29715
29716 \begin_layout Plain Layout
29717 =======
29718 \end_layout
29719
29720 \end_inset
29721
29722 .
29723  The first part is your version as before the update operation with the
29724  document name prepended.
29725  The second one is the repository version with the version number after
29726  the sequence of 
29727 \begin_inset Flex Code
29728 status collapsed
29729
29730 \begin_layout Plain Layout
29731 >
29732 \end_layout
29733
29734 \end_inset
29735
29736  signs.
29737 \end_layout
29738
29739 \begin_layout Labeling
29740 \labelwidthstring 00.00.0000
29741 CVS
29742 \begin_inset space ~
29743 \end_inset
29744
29745 commands: 
29746 \begin_inset space ~
29747 \end_inset
29748
29749
29750 \begin_inset Newline newline
29751 \end_inset
29752
29753
29754 \begin_inset Flex Code
29755 status collapsed
29756
29757 \begin_layout Plain Layout
29758 cd $path; cvs diff 
29759 \family typewriter
29760 "."
29761 \end_layout
29762
29763 \end_inset
29764
29765  (Ask if changes are detected.)
29766 \begin_inset Newline newline
29767 \end_inset
29768
29769
29770 \begin_inset Flex Code
29771 status collapsed
29772
29773 \begin_layout Plain Layout
29774 cd $path; cvs -q update 
29775 \family typewriter
29776 "."
29777 \end_layout
29778
29779 \end_inset
29780
29781
29782 \end_layout
29783
29784 \begin_layout Standard
29785 where 
29786 \begin_inset Flex Code
29787 status collapsed
29788
29789 \begin_layout Plain Layout
29790 $path
29791 \end_layout
29792
29793 \end_inset
29794
29795  stands for the path to the document.
29796 \end_layout
29797
29798 \begin_layout Subsubsection
29799
29800 \family sans
29801 Show History
29802 \end_layout
29803
29804 \begin_layout Standard
29805 This shows the complete history of the CVS document.
29806  The output of 
29807 \family typewriter
29808 cvs log "<file-name>"
29809 \family default
29810  is shown in a browser.
29811 \end_layout
29812
29813 \begin_layout Subsubsection
29814 Revision info
29815 \end_layout
29816
29817 \begin_layout Standard
29818 \SpecialChar LyX
29819  supports CVS version number, author name, date and time of last commit.
29820  All those are extracted from 
29821 \family typewriter
29822 cvs log -r <file-name>
29823 \family default
29824 .
29825  See 
29826 \begin_inset CommandInset ref
29827 LatexCommand ref
29828 reference "subsec:VCS-Revision-Information"
29829
29830 \end_inset
29831
29832  for details.
29833 \end_layout
29834
29835 \begin_layout Subsection
29836 SVN commands in \SpecialChar LyX
29837
29838 \end_layout
29839
29840 \begin_layout Standard
29841 SVN is now partially supported by \SpecialChar LyX
29842 .
29843  You can find the commands in the 
29844 \family sans
29845 File\SpecialChar menuseparator
29846 Version
29847 \begin_inset space ~
29848 \end_inset
29849
29850 Control
29851 \family default
29852  submenu.
29853  Please note that if you use password protected access to repository via
29854  ssh, you will be asked in terminal window.
29855  \SpecialChar LyX
29856  was tested against SVN 1.5, 1.6, 1.7 and 1.8
29857 \begin_inset Foot
29858 status collapsed
29859
29860 \begin_layout Plain Layout
29861 Most of the commands will work with 1.4 too, see 
29862 \begin_inset CommandInset ref
29863 LatexCommand ref
29864 reference "subsec:SVN-Repo-Update"
29865
29866 \end_inset
29867
29868 .
29869  There seems to be currently unresolved permissions problem under SVN 1.8
29870  with reverting changes when file is locked.
29871 \end_layout
29872
29873 \end_inset
29874
29875
29876 \end_layout
29877
29878 \begin_layout Subsubsection
29879
29880 \family sans
29881 Register
29882 \end_layout
29883
29884 \begin_layout Standard
29885 If your document is not under revision control, this is the only item shown
29886  in the menu.
29887  And if it is under revision control, the 
29888 \family sans
29889 Register
29890 \family default
29891  item is not visible.
29892 \end_layout
29893
29894 \begin_layout Standard
29895 This command registers in SVN your document ONLY in case you have already
29896  the documents directory under SVN control (in particular 
29897 \family typewriter
29898 .svn/entries
29899 \family default
29900  file exists).
29901  This means you have to checkout the archive by yourself.
29902 \end_layout
29903
29904 \begin_layout Standard
29905 Then you are asked interactively to supply an initial description of the
29906  document.
29907  Don't forget that registered file is not yet commited.
29908 \end_layout
29909
29910 \begin_layout Standard
29911 SVN command that is run: 
29912 \family typewriter
29913 svn add -q 
29914 \begin_inset Quotes qld
29915 \end_inset
29916
29917 <file-name>
29918 \begin_inset Quotes qld
29919 \end_inset
29920
29921
29922 \end_layout
29923
29924 \begin_layout Standard
29925 Read 
29926 \family typewriter
29927 man svn
29928 \family default
29929  to understand the switches.
29930 \end_layout
29931
29932 \begin_layout Subsubsection
29933
29934 \family sans
29935 Check In Changes
29936 \end_layout
29937
29938 \begin_layout Standard
29939 When you are finished editing a file, you commit your changes.
29940  When you do this, you are asked for a description of the changes.
29941  After that changes are commited.
29942 \end_layout
29943
29944 \begin_layout Standard
29945 SVN command:
29946 \begin_inset Foot
29947 status collapsed
29948
29949 \begin_layout Plain Layout
29950 In case locking is not enabled.
29951  See Section 
29952 \begin_inset CommandInset ref
29953 LatexCommand ref
29954 reference "subsec:SVN-File-Locking"
29955
29956 \end_inset
29957
29958 .
29959 \end_layout
29960
29961 \end_inset
29962
29963  
29964 \family typewriter
29965 svn commit -q -m"<description>" <file-name>
29966 \end_layout
29967
29968 \begin_layout Subsubsection
29969
29970 \family sans
29971 Check Out For Edit
29972 \end_layout
29973
29974 \begin_layout Standard
29975 Updates the changes of this file from the repository.
29976  Be sure you understand SVN merging and conflicts resolving before using
29977  this function, because all conflicts has to be resolved manually by you!
29978 \end_layout
29979
29980 \begin_layout Standard
29981 SVN command:
29982 \begin_inset Foot
29983 status collapsed
29984
29985 \begin_layout Plain Layout
29986 Ditto.
29987 \end_layout
29988
29989 \end_inset
29990
29991  
29992 \family typewriter
29993 svn update --non-interactive 
29994 \begin_inset Quotes qld
29995 \end_inset
29996
29997 <file-name>
29998 \begin_inset Quotes qld
29999 \end_inset
30000
30001
30002 \end_layout
30003
30004 \begin_layout Subsubsection
30005
30006 \family sans
30007 Revert To Repository Version
30008 \end_layout
30009
30010 \begin_layout Standard
30011 This will discard all changes made to the document since the last check
30012  in.
30013  You get a warning before changes are discarded.
30014 \end_layout
30015
30016 \begin_layout Standard
30017 SVN command: 
30018 \family typewriter
30019 svn revert -q 
30020 \begin_inset Quotes qld
30021 \end_inset
30022
30023 <file-name>
30024 \begin_inset Quotes qld
30025 \end_inset
30026
30027
30028 \end_layout
30029
30030 \begin_layout Subsubsection
30031
30032 \family sans
30033 Copy
30034 \end_layout
30035
30036 \begin_layout Standard
30037 This will create a copy of the current document including the version history.
30038  It requires a clean document without any changes since the last checkin.
30039  You are asked for a file name and a description of the copy operation.
30040  After that the copy is created, both locally and in the repository.
30041  If the parent directories of the copied and original document differ, all
30042  relative paths of included files of the copy are adjusted (like in 
30043 \family sans
30044 File\SpecialChar menuseparator
30045 Save As
30046 \family default
30047 \SpecialChar ldots
30048 ).
30049  Finally, the copy is loaded instead of the original document.
30050 \end_layout
30051
30052 \begin_layout Labeling
30053 \labelwidthstring 00.00.0000
30054 SVN
30055 \begin_inset space ~
30056 \end_inset
30057
30058 commands: 
30059 \begin_inset space ~
30060 \end_inset
30061
30062
30063 \begin_inset Newline newline
30064 \end_inset
30065
30066
30067 \begin_inset Flex Code
30068 status collapsed
30069
30070 \begin_layout Plain Layout
30071 svn copy -q 
30072 \family typewriter
30073
30074 \begin_inset Quotes qld
30075 \end_inset
30076
30077 <file-name>
30078 \begin_inset Quotes qld
30079 \end_inset
30080
30081  
30082 \begin_inset Quotes qld
30083 \end_inset
30084
30085 <new-file-name>
30086 \begin_inset Quotes qld
30087 \end_inset
30088
30089
30090 \end_layout
30091
30092 \end_inset
30093
30094
30095 \begin_inset Newline newline
30096 \end_inset
30097
30098
30099 \begin_inset Flex Code
30100 status collapsed
30101
30102 \begin_layout Plain Layout
30103 svn commit
30104 \end_layout
30105
30106 \end_inset
30107
30108
30109 \end_layout
30110
30111 \begin_layout Subsubsection
30112
30113 \family sans
30114 Rename
30115 \end_layout
30116
30117 \begin_layout Standard
30118 This will rename the current document including the version history.
30119  It requires a clean document without any changes since the last checkin.
30120  You are asked for a file name and a description of the rename operation.
30121  After that the document is renamed, both locally and in the repository.
30122  If the parent directories of the new and old file names differ, all relative
30123  paths of included files are adjusted (like in 
30124 \family sans
30125 File\SpecialChar menuseparator
30126 Save As
30127 \family default
30128 \SpecialChar ldots
30129 ).
30130  Finally, the document is reloaded using the new name.
30131 \end_layout
30132
30133 \begin_layout Labeling
30134 \labelwidthstring 00.00.0000
30135 SVN
30136 \begin_inset space ~
30137 \end_inset
30138
30139 commands: 
30140 \begin_inset space ~
30141 \end_inset
30142
30143
30144 \begin_inset Newline newline
30145 \end_inset
30146
30147
30148 \begin_inset Flex Code
30149 status collapsed
30150
30151 \begin_layout Plain Layout
30152 svn move -q 
30153 \family typewriter
30154
30155 \begin_inset Quotes qld
30156 \end_inset
30157
30158 <file-name>
30159 \begin_inset Quotes qld
30160 \end_inset
30161
30162  
30163 \begin_inset Quotes qld
30164 \end_inset
30165
30166 <new-file-name>
30167 \begin_inset Quotes qld
30168 \end_inset
30169
30170
30171 \end_layout
30172
30173 \end_inset
30174
30175
30176 \begin_inset Newline newline
30177 \end_inset
30178
30179
30180 \begin_inset Flex Code
30181 status collapsed
30182
30183 \begin_layout Plain Layout
30184 svn commit
30185 \end_layout
30186
30187 \end_inset
30188
30189
30190 \end_layout
30191
30192 \begin_layout Subsubsection
30193 \begin_inset CommandInset label
30194 LatexCommand label
30195 name "subsec:SVN-Repo-Update"
30196
30197 \end_inset
30198
30199 Update of the local directory checkout from repository
30200 \begin_inset Foot
30201 status collapsed
30202
30203 \begin_layout Plain Layout
30204 Note that this command will work only with subversion 
30205 \begin_inset Formula $\geqq1.5$
30206 \end_inset
30207
30208
30209 \end_layout
30210
30211 \end_inset
30212
30213
30214 \end_layout
30215
30216 \begin_layout Standard
30217 All the commands above have one shortcoming – they deal with the current
30218  document only.
30219  Once your document contains pictures, includes external 
30220 \begin_inset Flex Code
30221 status collapsed
30222
30223 \begin_layout Plain Layout
30224 .tex
30225 \end_layout
30226
30227 \end_inset
30228
30229  files and so on administration becomes more complicated.
30230  \SpecialChar LyX
30231  now supports updating the whole tree in which resides the document
30232 \begin_inset Foot
30233 status collapsed
30234
30235 \begin_layout Plain Layout
30236 One need to organize the files structure so that all external files are
30237  in the same directory or subdirectories of the document.
30238  
30239 \end_layout
30240
30241 \end_inset
30242
30243 .
30244  This become especially useful once you cooperate with people which neither
30245  know about subversion management nor they have ambition to commit additional
30246  material to the repository.
30247  
30248 \end_layout
30249
30250 \begin_layout Standard
30251 \begin_inset Flex Code
30252 status collapsed
30253
30254 \begin_layout Plain Layout
30255 Update local directory from repository
30256 \end_layout
30257
30258 \end_inset
30259
30260  command updates the whole directory and in case of merge conflicts local
30261  version of the files are left, so no unintended data loss occurs.
30262  If local changes are detected user is warned before update starts.
30263 \end_layout
30264
30265 \begin_layout Labeling
30266 \labelwidthstring 00.00.0000
30267 SVN
30268 \begin_inset space ~
30269 \end_inset
30270
30271 commands: 
30272 \begin_inset space ~
30273 \end_inset
30274
30275
30276 \begin_inset Newline newline
30277 \end_inset
30278
30279
30280 \begin_inset Flex Code
30281 status collapsed
30282
30283 \begin_layout Plain Layout
30284 svn diff $path
30285 \end_layout
30286
30287 \end_inset
30288
30289  (Ask if changes are detected.)
30290 \begin_inset Newline newline
30291 \end_inset
30292
30293
30294 \begin_inset Flex Code
30295 status collapsed
30296
30297 \begin_layout Plain Layout
30298 svn update --accept mine-full $path
30299 \end_layout
30300
30301 \end_inset
30302
30303
30304 \end_layout
30305
30306 \begin_layout Standard
30307 where 
30308 \begin_inset Flex Code
30309 status collapsed
30310
30311 \begin_layout Plain Layout
30312 $path
30313 \end_layout
30314
30315 \end_inset
30316
30317  stands for the path to the document.
30318 \end_layout
30319
30320 \begin_layout Subsubsection
30321
30322 \family sans
30323 Show History
30324 \end_layout
30325
30326 \begin_layout Standard
30327 This shows the complete history of the SVN document.
30328  The output of 
30329 \family typewriter
30330 svn log 
30331 \begin_inset Quotes qld
30332 \end_inset
30333
30334 <file-name>
30335 \begin_inset Quotes qld
30336 \end_inset
30337
30338
30339 \family default
30340  is shown in a browser.
30341 \end_layout
30342
30343 \begin_layout Subsubsection
30344 File Locking
30345 \begin_inset CommandInset label
30346 LatexCommand label
30347 name "subsec:SVN-File-Locking"
30348
30349 \end_inset
30350
30351
30352 \end_layout
30353
30354 \begin_layout Standard
30355 The file exchange through various revision control systems brings the problem
30356  of merge conflicts in case two different users try to edit the same (parts
30357  of) document.
30358  When such a conflict happens it needs manual resolving and one reasonable
30359  alternative is to provide some kind of locking mechanism, which guarantees
30360  that only one user is allowed to edit file at the given time.
30361 \end_layout
30362
30363 \begin_layout Standard
30364 SVN has two such mechanisms to provide mutual exclusivity for file access
30365  – locks and automatic setting of write permissions (see sec.
30366  
30367 \begin_inset CommandInset ref
30368 LatexCommand ref
30369 reference "subsec:Automatical-Locking-Property"
30370
30371 \end_inset
30372
30373 ) based on 
30374 \begin_inset Flex Code
30375 status collapsed
30376
30377 \begin_layout Plain Layout
30378 svn:needs-lock
30379 \end_layout
30380
30381 \end_inset
30382
30383  file svn property
30384 \begin_inset Foot
30385 status collapsed
30386
30387 \begin_layout Plain Layout
30388 \begin_inset Flex URL
30389 status open
30390
30391 \begin_layout Plain Layout
30392
30393 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
30394 \end_layout
30395
30396 \end_inset
30397
30398
30399 \end_layout
30400
30401 \end_inset
30402
30403 .
30404  If this property is detected for a given document \SpecialChar LyX
30405  starts to use SVN locks
30406  for document editing automatically and the whole check-in/out mechanism
30407  switches to the same regimen as for RCS.
30408  This in particular means there are two different modes of file use in \SpecialChar LyX
30409 :
30410 \end_layout
30411
30412 \begin_layout Itemize
30413 Unlocked state.
30414  The loaded file is in the read-only mode.
30415  For editing on needs to check-out.
30416  
30417 \emph on
30418 Check-out
30419 \emph default
30420  consists of updating from the repository and gaining write lock.
30421  If the lock is not possible to obtain, we remain in unlocked state.
30422 \end_layout
30423
30424 \begin_layout Itemize
30425 Locked state.
30426  The loaded file is in the 
30427 \begin_inset Quotes els
30428 \end_inset
30429
30430 normal
30431 \begin_inset Quotes ers
30432 \end_inset
30433
30434  edit mode.
30435  No other user is allowed to edit the file.
30436  
30437 \emph on
30438 Check-in
30439 \emph default
30440  consists of commiting changes and releasing write-lock.
30441  If no changes have been made to the document, no commit will be produced
30442 \begin_inset Foot
30443 status collapsed
30444
30445 \begin_layout Plain Layout
30446 Don't be puzzled by the fact that you will be asked for commit message anyway.
30447 \end_layout
30448
30449 \end_inset
30450
30451  and only the write-lock will be released.
30452 \end_layout
30453
30454 \begin_layout Standard
30455 SVN commands:
30456 \end_layout
30457
30458 \begin_layout Labeling
30459 \labelwidthstring 00.00.0000
30460 Check-in:
30461 \family typewriter
30462  svn commit -q -m"<description>" "<file-name>"
30463 \begin_inset Newline newline
30464 \end_inset
30465
30466 svn unlock "<file-name>"
30467 \end_layout
30468
30469 \begin_layout Labeling
30470 \labelwidthstring 00.00.0000
30471 Check-out: 
30472 \family typewriter
30473 svn update "<file-name>"
30474 \begin_inset Newline newline
30475 \end_inset
30476
30477 svn lock "<file-name>"
30478 \end_layout
30479
30480 \begin_layout Subsubsection
30481
30482 \family typewriter
30483 \begin_inset CommandInset label
30484 LatexCommand label
30485 name "subsec:Automatical-Locking-Property"
30486
30487 \end_inset
30488
30489
30490 \family default
30491 Automatic Locking Property
30492 \end_layout
30493
30494 \begin_layout Standard
30495 The above mentioned automatic setting of write permissions of the .lyx file
30496  can be set through
30497 \family sans
30498  File\SpecialChar menuseparator
30499 Version
30500 \begin_inset space ~
30501 \end_inset
30502
30503 Control\SpecialChar menuseparator
30504 Use Locking Property
30505 \family default
30506 .
30507  This command is active only when the file is not locked on the svn server
30508  (i.e.
30509  you need to check-out before proceeding).
30510 \end_layout
30511
30512 \begin_layout Labeling
30513 \labelwidthstring 00.00.0000
30514 SVN
30515 \begin_inset space ~
30516 \end_inset
30517
30518 commands:
30519 \end_layout
30520
30521 \begin_layout Labeling
30522 \labelwidthstring 00.00.0000
30523 Set:
30524 \family typewriter
30525  svn propset svn:needs-lock ON "<file-name>"
30526 \end_layout
30527
30528 \begin_layout Labeling
30529 \labelwidthstring 00.00.0000
30530 Unset: 
30531 \family typewriter
30532 svn propdel svn:needs-lock "<file-name>"
30533 \end_layout
30534
30535 \begin_layout Subsubsection
30536 \begin_inset CommandInset label
30537 LatexCommand label
30538 name "subsec:VCS-Revision-Information"
30539
30540 \end_inset
30541
30542 Revision Information in Documents
30543 \end_layout
30544
30545 \begin_layout Standard
30546 There are more possibilities how to activate revision information in our
30547  document.
30548 \end_layout
30549
30550 \begin_layout Itemize
30551 \SpecialChar LyX
30552  supports directly:
30553 \end_layout
30554
30555 \begin_deeper
30556 \begin_layout Itemize
30557 tree revision information (
30558 \begin_inset Flex Code
30559 status collapsed
30560
30561 \begin_layout Plain Layout
30562 vcs-tree-revision
30563 \end_layout
30564
30565 \end_inset
30566
30567 ).
30568  The result is the output of the 
30569 \begin_inset Flex Code
30570 status collapsed
30571
30572 \begin_layout Plain Layout
30573 svnversion
30574 \end_layout
30575
30576 \end_inset
30577
30578  command, the following table gives you an idea, how to read the results.
30579 \end_layout
30580
30581 \begin_layout Standard
30582 \align center
30583 \begin_inset Tabular
30584 <lyxtabular version="3" rows="6" columns="2">
30585 <features tabularvalignment="middle">
30586 <column alignment="left" valignment="top">
30587 <column alignment="left" valignment="top">
30588 <row>
30589 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30590 \begin_inset Text
30591
30592 \begin_layout Plain Layout
30593
30594 \series bold
30595 Output
30596 \end_layout
30597
30598 \end_inset
30599 </cell>
30600 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30601 \begin_inset Text
30602
30603 \begin_layout Plain Layout
30604
30605 \series bold
30606 Meaning
30607 \end_layout
30608
30609 \end_inset
30610 </cell>
30611 </row>
30612 <row>
30613 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
30614 \begin_inset Text
30615
30616 \begin_layout Plain Layout
30617 4123:4168
30618 \end_layout
30619
30620 \end_inset
30621 </cell>
30622 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30623 \begin_inset Text
30624
30625 \begin_layout Plain Layout
30626 mixed revision working copy
30627 \end_layout
30628
30629 \end_inset
30630 </cell>
30631 </row>
30632 <row>
30633 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
30634 \begin_inset Text
30635
30636 \begin_layout Plain Layout
30637 4168M
30638 \end_layout
30639
30640 \end_inset
30641 </cell>
30642 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30643 \begin_inset Text
30644
30645 \begin_layout Plain Layout
30646 modified working copy
30647 \end_layout
30648
30649 \end_inset
30650 </cell>
30651 </row>
30652 <row>
30653 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
30654 \begin_inset Text
30655
30656 \begin_layout Plain Layout
30657 4123S
30658 \end_layout
30659
30660 \end_inset
30661 </cell>
30662 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30663 \begin_inset Text
30664
30665 \begin_layout Plain Layout
30666 switched working copy
30667 \end_layout
30668
30669 \end_inset
30670 </cell>
30671 </row>
30672 <row>
30673 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
30674 \begin_inset Text
30675
30676 \begin_layout Plain Layout
30677 4123P
30678 \end_layout
30679
30680 \end_inset
30681 </cell>
30682 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30683 \begin_inset Text
30684
30685 \begin_layout Plain Layout
30686 partial working copy, from a sparse checkout
30687 \end_layout
30688
30689 \end_inset
30690 </cell>
30691 </row>
30692 <row>
30693 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30694 \begin_inset Text
30695
30696 \begin_layout Plain Layout
30697 4123:4168MS
30698 \end_layout
30699
30700 \end_inset
30701 </cell>
30702 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30703 \begin_inset Text
30704
30705 \begin_layout Plain Layout
30706 mixed revision, modified, switched working copy
30707 \end_layout
30708
30709 \end_inset
30710 </cell>
30711 </row>
30712 </lyxtabular>
30713
30714 \end_inset
30715
30716
30717 \end_layout
30718
30719 \begin_layout Itemize
30720 file revision information.
30721  The result comes from parsing the output of 
30722 \begin_inset Flex Code
30723 status collapsed
30724
30725 \begin_layout Plain Layout
30726 svn
30727 \begin_inset space ~
30728 \end_inset
30729
30730 info
30731 \begin_inset space ~
30732 \end_inset
30733
30734 --xml
30735 \begin_inset space ~
30736 \end_inset
30737
30738 file.lyx
30739 \end_layout
30740
30741 \end_inset
30742
30743 .
30744  Supported flags are:
30745 \end_layout
30746
30747 \begin_deeper
30748 \begin_layout Itemize
30749 version number of the last commit (
30750 \begin_inset Flex Code
30751 status collapsed
30752
30753 \begin_layout Plain Layout
30754 vcs-revision
30755 \end_layout
30756
30757 \end_inset
30758
30759 )
30760 \end_layout
30761
30762 \begin_layout Itemize
30763 author of the last commit (
30764 \begin_inset Flex Code
30765 status collapsed
30766
30767 \begin_layout Plain Layout
30768 vcs-author
30769 \end_layout
30770
30771 \end_inset
30772
30773 )
30774 \end_layout
30775
30776 \begin_layout Itemize
30777 date of the last commit (
30778 \begin_inset Flex Code
30779 status collapsed
30780
30781 \begin_layout Plain Layout
30782 vcs-date
30783 \end_layout
30784
30785 \end_inset
30786
30787 )
30788 \end_layout
30789
30790 \begin_layout Itemize
30791 time of the last commit (
30792 \begin_inset Flex Code
30793 status collapsed
30794
30795 \begin_layout Plain Layout
30796 vcs-time
30797 \end_layout
30798
30799 \end_inset
30800
30801 )
30802 \end_layout
30803
30804 \end_deeper
30805 \begin_layout Standard
30806 You can obtain this info via InsetInfo (
30807 \change_inserted 5863208 1564400022
30808
30809 \lang american
30810 Insert\SpecialChar menuseparator
30811 Field\SpecialChar menuseparator
30812 Version Control Revision
30813 \change_deleted 5863208 1564399852
30814
30815 \lang english
30816 e.g.
30817  
30818 \begin_inset Flex Code
30819 status collapsed
30820
30821 \begin_layout Plain Layout
30822 info-insert buffer vcs-date
30823 \end_layout
30824
30825 \end_inset
30826
30827
30828 \change_unchanged
30829 ).
30830  The information will be available only when you have the file stored under
30831  svn managment (i.e.
30832  the 
30833 \begin_inset Flex Code
30834 status collapsed
30835
30836 \begin_layout Plain Layout
30837 .svn
30838 \end_layout
30839
30840 \end_inset
30841
30842  directory is available with your document).
30843 \end_layout
30844
30845 \end_deeper
30846 \begin_layout Itemize
30847 Another—a hacking one—possibility is to use svn keywords
30848 \begin_inset Foot
30849 status collapsed
30850
30851 \begin_layout Plain Layout
30852 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
30853 \end_layout
30854
30855 \end_inset
30856
30857 .
30858  In short – you set file keywords property (e.g.
30859  
30860 \family sans
30861 svn propset svn:keywords 'Rev' file.lyx
30862 \family default
30863 ) and then paste keyword \SpecialChar TeX
30864  code
30865 \begin_inset Foot
30866 status collapsed
30867
30868 \begin_layout Plain Layout
30869 This is an easy way how to ensure that \SpecialChar LyX
30870  won't break the line in the middle
30871  of keyword tag.
30872 \end_layout
30873
30874 \end_inset
30875
30876  tag in your document (e.g.
30877  
30878 \begin_inset Flex Code
30879 status collapsed
30880
30881 \begin_layout Plain Layout
30882 $Rev$
30883 \end_layout
30884
30885 \end_inset
30886
30887 ).
30888  This way svn client will automatically substitute revision number (e.g.
30889  
30890 \begin_inset Flex Code
30891 status collapsed
30892
30893 \begin_layout Plain Layout
30894 $Rev: 59 $
30895 \end_layout
30896
30897 \end_inset
30898
30899 ) after each update and commit.
30900  There are more problems with this approach.
30901  Firstly, the '$' character is used in \SpecialChar TeX
30902  world for math equations, so any
30903  occurence of math formula 
30904 \begin_inset Formula $Rev$
30905 \end_inset
30906
30907  become 
30908 \begin_inset Formula $Rev:59$
30909 \end_inset
30910
30911  in your \SpecialChar LyX
30912  document.
30913  Similarly for other keywords like Id, Date, Author, etc.
30914  Secondly svn output is dependent on your locales, so its very easy that
30915  svn would produce some problematic strings once Date is used.
30916  Thirdly you get the whole 'Rev: 59' string in your document instead of
30917  the plain number.
30918  Until subversion implements user's custom keywords it will be hard to use
30919  this approach reliably or let \SpecialChar LyX
30920  to support it directly.
30921 \end_layout
30922
30923 \begin_layout Subsection
30924 SVN and Windows Environment
30925 \end_layout
30926
30927 \begin_layout Quote
30928 My inclination is to say that if the user cannot figure out the command
30929  line operations on their own fairly quickly, they would be well advised
30930  to use TortoiseSVN.
30931  —P.
30932  A.
30933  Rubin
30934 \end_layout
30935
30936 \begin_layout Subsubsection
30937 Preparation
30938 \end_layout
30939
30940 \begin_layout Standard
30941 In addition to installing \SpecialChar LyX
30942 , and having access to a Subversion repository,
30943  the user will need to install the Subversion client program.
30944  A Windows installer for the client program is available from 
30945 \begin_inset CommandInset href
30946 LatexCommand href
30947 name "CollabNet"
30948 target "http://www.collab.net/nonav/downloads/subversion/"
30949 literal "false"
30950
30951 \end_inset
30952
30953 .
30954  The user may also want to install 
30955 \begin_inset CommandInset href
30956 LatexCommand href
30957 name "TortoiseSVN"
30958 target "http://tortoisesvn.tigris.org/"
30959 literal "false"
30960
30961 \end_inset
30962
30963 , which integrates Subversion operations into the context (rightclick) menu
30964  of Windows Explorer.
30965  Operations done outside \SpecialChar LyX
30966  will typically be more convenient using the Explorer
30967  context menu.
30968  Note that TortoiseSVN is not a replacement for the client program, which
30969  is what \SpecialChar LyX
30970  itself will use.
30971 \end_layout
30972
30973 \begin_layout Subsubsection
30974 Bringing a document under Subversion control
30975 \end_layout
30976
30977 \begin_layout Standard
30978 Before a \SpecialChar LyX
30979  document can be brought under version control in Subversion, its
30980  parent directory needs to be under version control.
30981  If the document is being added to a project already in the repository,
30982  this is accomplished by checking the project out to the directory where
30983  the new document will be placed.
30984  If the project itself is not yet under version control (for instance, if
30985  this document starts a new project), the directory must be imported into
30986  the repository.
30987  This is done outside \SpecialChar LyX
30988 .
30989  Both import and checkout are easily accomplished from the Explorer context
30990  menu using TortoiseSVN, or alternatively can be done using the command
30991  line client at a DOS prompt.
30992  The procedure for importing the project using TortoiseSVN is described
30993  below, assuming an existing repository and a new project being started
30994  in 
30995 \family typewriter
30996 C:
30997 \backslash
30998 new project
30999 \family default
31000 .
31001  For information on using the Subversion client program, run 
31002 \family typewriter
31003 svn --help 
31004 \family default
31005 in a DOS shell.
31006 \end_layout
31007
31008 \begin_layout Enumerate
31009 Locate 
31010 \family typewriter
31011 C:
31012 \backslash
31013 new project 
31014 \family default
31015 in Windows Explorer, right click it, and select 
31016 \family sans
31017 TortoiseSVN\SpecialChar menuseparator
31018 Repo-browser
31019 \family default
31020 .
31021  If necessary, adjust the URL for the repository, then click OK.
31022 \end_layout
31023
31024 \begin_layout Enumerate
31025 Right click the level of the repository under which you want to place the
31026  new project folder (typically the top level) and click 
31027 \family sans
31028 Create folder
31029 \family default
31030  Supply a name for the project folder and click OK.
31031  Add a message for the log file if desired, then click OK again.
31032  The new project folder should appear in the repository.
31033  Finally, click OK again to exit the repository browser.
31034 \end_layout
31035
31036 \begin_layout Enumerate
31037 Once again right click 
31038 \family typewriter
31039 C:
31040 \backslash
31041 new project
31042 \family default
31043 , this time selecting SVN Checkout\SpecialChar ldots
31044  Select the URL of the project folder
31045  you just created in the repository, and set the checkout directory to 
31046 \family typewriter
31047 C:
31048 \backslash
31049 new project.
31050
31051 \family default
31052  Click OK.
31053  You will be warned about a non-empty folder; click OK to proceed.
31054  You should now have a 
31055 \family typewriter
31056 .svn
31057 \family default
31058  directory under 
31059 \family typewriter
31060 C:
31061 \backslash
31062 new project.
31063 \end_layout
31064
31065 \begin_layout Enumerate
31066 Create or open your document in \SpecialChar LyX
31067  and click 
31068 \family sans
31069 File\SpecialChar menuseparator
31070 Version
31071 \begin_inset space ~
31072 \end_inset
31073
31074 Control\SpecialChar menuseparator
31075 Register.
31076  
31077 \family default
31078 Add a log message and click OK to commit the document to version control.
31079 \end_layout
31080
31081 \begin_layout Standard
31082 From this point onward, you should have full functionality in the 
31083 \family sans
31084 File\SpecialChar menuseparator
31085 Version
31086 \begin_inset space ~
31087 \end_inset
31088
31089 Control
31090 \family default
31091  menu.
31092  You also have the option of checking the document in and out, viewing its
31093  history, etc.
31094  using the TortoiseSVN context menu in Windows Explorer or the Subversion
31095  client program from a command prompt.
31096 \end_layout
31097
31098 \begin_layout Subsubsection
31099 SSH tunnel used with SVN under Windows
31100 \end_layout
31101
31102 \begin_layout Standard
31103 Compared with Linux setting up an svn client to communicate over ssh under
31104  Windows is a rather troublesome task.
31105  We will at least offer some hints how to setup the client side but prior
31106  knowledge about ssh and the Windows command line is needed, also be prepared
31107  for a great deal of frustration\SpecialChar ldots
31108
31109 \end_layout
31110
31111 \begin_layout Enumerate
31112 Get an svn client for windows, as described in the previous sections.
31113  When it is a fresh install run some svn command (e.g.
31114  
31115 \begin_inset Flex Code
31116 status collapsed
31117
31118 \begin_layout Plain Layout
31119 svn --version
31120 \end_layout
31121
31122 \end_inset
31123
31124 ) to create config files, which you will need to change later on.
31125 \end_layout
31126
31127 \begin_layout Enumerate
31128 Choose an ssh client for Windows.
31129  There are several possibilities, we will use the one from Putty tools
31130 \begin_inset Foot
31131 status collapsed
31132
31133 \begin_layout Plain Layout
31134 \begin_inset Flex URL
31135 status collapsed
31136
31137 \begin_layout Plain Layout
31138
31139 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
31140 \end_layout
31141
31142 \end_inset
31143
31144
31145 \end_layout
31146
31147 \end_inset
31148
31149 .
31150  You will need to set the connection up so that the client doesn't ask for
31151  any password from you.
31152  To keep things easy we will use only keys without any additional password
31153  protection etc.
31154 \end_layout
31155
31156 \begin_deeper
31157 \begin_layout Enumerate
31158 Generate keys by 
31159 \begin_inset Flex Code
31160 status collapsed
31161
31162 \begin_layout Plain Layout
31163 puttygen
31164 \end_layout
31165
31166 \end_inset
31167
31168 .
31169  Save your private .ppk key file and put the public one on the server side.
31170  If the SVN server runs on Linux, note that the format of the public key
31171  is not compatible with Linux openssh and you will need to direcly copy-paste
31172  the key from the 
31173 \begin_inset Quotes eld
31174 \end_inset
31175
31176
31177 \emph on
31178 Public key for pasting into OpenSSH authorized_keys file
31179 \emph default
31180 :
31181 \begin_inset Quotes erd
31182 \end_inset
31183
31184  edit field into the server's 
31185 \begin_inset Flex Code
31186 status collapsed
31187
31188 \begin_layout Plain Layout
31189 ~/.ssh/authorized_keys
31190 \end_layout
31191
31192 \end_inset
31193
31194  / 
31195 \begin_inset Flex Code
31196 status collapsed
31197
31198 \begin_layout Plain Layout
31199 authorized_keys2
31200 \end_layout
31201
31202 \end_inset
31203
31204  file.
31205 \end_layout
31206
31207 \begin_layout Enumerate
31208 Get the Putty's 
31209 \begin_inset Flex Code
31210 status collapsed
31211
31212 \begin_layout Plain Layout
31213 plink
31214 \end_layout
31215
31216 \end_inset
31217
31218 .
31219  In the SVN config file
31220 \begin_inset Foot
31221 status collapsed
31222
31223 \begin_layout Plain Layout
31224 Exact path depends on Windows version, usually somewhere around 
31225 \begin_inset Flex Code
31226 status collapsed
31227
31228 \begin_layout Plain Layout
31229 c:
31230 \backslash
31231 Documents and Settings
31232 \backslash
31233 user
31234 \backslash
31235 Application Data
31236 \backslash
31237 Subversion
31238 \backslash
31239 config
31240 \end_layout
31241
31242 \end_inset
31243
31244  / 
31245 \begin_inset Flex Code
31246 status collapsed
31247
31248 \begin_layout Plain Layout
31249 AppData
31250 \backslash
31251 Roaming
31252 \backslash
31253 Subversion
31254 \end_layout
31255
31256 \end_inset
31257
31258 .
31259 \end_layout
31260
31261 \end_inset
31262
31263 , section [tunnels], setup ssh command, e.g.
31264  
31265 \begin_inset Flex Code
31266 status collapsed
31267
31268 \begin_layout Plain Layout
31269 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
31270 \end_layout
31271
31272 \end_inset
31273
31274 .
31275 \begin_inset Foot
31276 status collapsed
31277
31278 \begin_layout Plain Layout
31279 It will usually take a lot of time to get exact command right and it depends
31280  on many things.
31281  For example do not have some remote server saved as a default session in
31282  Putty etc.
31283  If things fail, try to connect via plink without SVN first.
31284 \end_layout
31285
31286 \end_inset
31287
31288
31289 \end_layout
31290
31291 \end_deeper
31292 \begin_layout Enumerate
31293 Checkout the SVN archive, e.
31294 \begin_inset space \thinspace{}
31295 \end_inset
31296
31297 g.
31298 \begin_inset Newline newline
31299 \end_inset
31300
31301
31302 \begin_inset Flex Code
31303 status collapsed
31304
31305 \begin_layout Plain Layout
31306 svn co svn+ssh://user@server/repository_path
31307 \end_layout
31308
31309 \end_inset
31310
31311 .
31312 \end_layout
31313
31314 \begin_layout Subsubsection
31315 End-of-Line Conversions
31316 \end_layout
31317
31318 \begin_layout Standard
31319 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
31320  will
31321  use different line endings inside the .lyx files.
31322  This is not a problem as far as \SpecialChar LyX
31323  functionality is concerned, but the commit
31324  diffs will be huge and merge-conflicts prone.
31325  Fortunately SVN itself knows
31326 \begin_inset Foot
31327 status collapsed
31328
31329 \begin_layout Plain Layout
31330 \begin_inset Flex URL
31331 status collapsed
31332
31333 \begin_layout Plain Layout
31334
31335 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
31336 \end_layout
31337
31338 \end_inset
31339
31340
31341 \end_layout
31342
31343 \end_inset
31344
31345  how to deal with CR/LF problems when switching .lyx files to the 
31346 \begin_inset Flex Code
31347 status collapsed
31348
31349 \begin_layout Plain Layout
31350 native
31351 \end_layout
31352
31353 \end_inset
31354
31355  mode.
31356 \begin_inset Foot
31357 status collapsed
31358
31359 \begin_layout Plain Layout
31360 For the lazy guys: 
31361 \begin_inset Flex Code
31362 status collapsed
31363
31364 \begin_layout Plain Layout
31365 svn propset svn:eol-style native FILE_NAME
31366 \end_layout
31367
31368 \end_inset
31369
31370
31371 \end_layout
31372
31373 \end_inset
31374
31375
31376 \end_layout
31377
31378 \begin_layout Subsection
31379 GIT commands in \SpecialChar LyX
31380
31381 \end_layout
31382
31383 \begin_layout Standard
31384 A minimal subset of GIT commands is now supported by \SpecialChar LyX
31385 .
31386  You can find the commands in the 
31387 \family sans
31388 File\SpecialChar menuseparator
31389 Version
31390 \begin_inset space ~
31391 \end_inset
31392
31393 Control
31394 \family default
31395  submenu.
31396  Please note that if you use password protected access to repository via
31397  ssh, you will be asked in terminal window.
31398  \SpecialChar LyX
31399  was tested against GIT 1.7.
31400 \begin_inset Foot
31401 status collapsed
31402
31403 \begin_layout Plain Layout
31404 Windows users please note that you need to ensure that git is on the path.
31405  This can be set from within \SpecialChar LyX
31406  at 
31407 \family sans
31408 Tools\SpecialChar menuseparator
31409 Preferences\SpecialChar menuseparator
31410 Paths\SpecialChar menuseparator
31411 PATH prefix
31412 \family default
31413 .
31414 \end_layout
31415
31416 \end_inset
31417
31418
31419 \end_layout
31420
31421 \begin_layout Standard
31422 One big difference of GIT and the other supported version control systems
31423  is the distributed nature of GIT: With traditional version control systems
31424  there is one central server which hosts the repository.
31425  Users commit their changes to the server, and get updates made by other
31426  users from it.
31427  With GIT, users commit to a local repository.
31428  The local repository can be synchronized with one or more remote repositories
31429  using the 
31430 \begin_inset Flex Code
31431 status collapsed
31432
31433 \begin_layout Plain Layout
31434 pull
31435 \end_layout
31436
31437 \end_inset
31438
31439  and 
31440 \begin_inset Flex Code
31441 status collapsed
31442
31443 \begin_layout Plain Layout
31444 push
31445 \end_layout
31446
31447 \end_inset
31448
31449  GIT commands.
31450  \SpecialChar LyX
31451  does not interact in any way with remote GIT repositories.
31452  It works exclusively with the local repository in a very similar way as
31453  with a central CVS or SVN repository.
31454  If you use remote GIT repositories you need to do the 
31455 \begin_inset Flex Code
31456 status collapsed
31457
31458 \begin_layout Plain Layout
31459 pull
31460 \end_layout
31461
31462 \end_inset
31463
31464  and 
31465 \begin_inset Flex Code
31466 status collapsed
31467
31468 \begin_layout Plain Layout
31469 push
31470 \end_layout
31471
31472 \end_inset
31473
31474  operations with your favourite GIT client.
31475 \end_layout
31476
31477 \begin_layout Subsubsection
31478
31479 \family sans
31480 Register
31481 \end_layout
31482
31483 \begin_layout Standard
31484 If your document is not under revision control, this is the only item shown
31485  in the menu.
31486  And if it is under revision control, the 
31487 \family sans
31488 Register
31489 \family default
31490  item is not visible.
31491 \end_layout
31492
31493 \begin_layout Standard
31494 This command registers in GIT your document ONLY in case you have already
31495  the documents directory under GIT control (in particular 
31496 \family typewriter
31497 .git/index
31498 \family default
31499  file exists).
31500  This means you have to checkout the archive by yourself.
31501 \end_layout
31502
31503 \begin_layout Standard
31504 Then you are asked interactively to supply an initial description of the
31505  document.
31506  Don't forget that registered file is not yet committed.
31507 \end_layout
31508
31509 \begin_layout Standard
31510 GIT command that is run: 
31511 \family typewriter
31512 git add 
31513 \begin_inset Quotes qld
31514 \end_inset
31515
31516 <file-name>
31517 \begin_inset Quotes qld
31518 \end_inset
31519
31520
31521 \end_layout
31522
31523 \begin_layout Standard
31524 Read 
31525 \family typewriter
31526 man git
31527 \family default
31528  to understand the switches.
31529 \end_layout
31530
31531 \begin_layout Subsubsection
31532
31533 \family sans
31534 Check In Changes
31535 \end_layout
31536
31537 \begin_layout Standard
31538 When you are finished editing a file, you commit your changes.
31539  When you do this, you are asked for a description of the changes.
31540  After that changes are committed.
31541 \end_layout
31542
31543 \begin_layout Standard
31544 GIT command: 
31545 \family typewriter
31546 git commit -q -m"<description>" <file-name>
31547 \end_layout
31548
31549 \begin_layout Subsubsection
31550
31551 \family sans
31552 Revert To Repository Version
31553 \end_layout
31554
31555 \begin_layout Standard
31556 This will discard all changes made to the document since the last check
31557  in.
31558  You get a warning before changes are discarded.
31559 \end_layout
31560
31561 \begin_layout Standard
31562 GIT command: 
31563 \family typewriter
31564 git checkout -q 
31565 \begin_inset Quotes qld
31566 \end_inset
31567
31568 <file-name>
31569 \begin_inset Quotes qld
31570 \end_inset
31571
31572
31573 \end_layout
31574
31575 \begin_layout Subsubsection
31576
31577 \family sans
31578 Rename
31579 \end_layout
31580
31581 \begin_layout Standard
31582 This will rename the current document including the version history.
31583  It requires a clean document without any changes since the last checkin.
31584  You are asked for a file name and a description of the rename operation.
31585  After that the document is renamed, both locally and in the repository.
31586  If the parent directories of the new and old file names differ, all relative
31587  paths of included files are adjusted (like in 
31588 \family sans
31589 File\SpecialChar menuseparator
31590 Save As
31591 \family default
31592 \SpecialChar ldots
31593 ).
31594  Finally, the document is reloaded using the new name.
31595 \end_layout
31596
31597 \begin_layout Labeling
31598 \labelwidthstring 00.00.0000
31599 GIT
31600 \begin_inset space ~
31601 \end_inset
31602
31603 commands: 
31604 \begin_inset space ~
31605 \end_inset
31606
31607
31608 \begin_inset Newline newline
31609 \end_inset
31610
31611
31612 \begin_inset Flex Code
31613 status collapsed
31614
31615 \begin_layout Plain Layout
31616 git mv 
31617 \family typewriter
31618
31619 \begin_inset Quotes qld
31620 \end_inset
31621
31622 <file-name>
31623 \begin_inset Quotes qld
31624 \end_inset
31625
31626  
31627 \begin_inset Quotes qld
31628 \end_inset
31629
31630 <new-file-name>
31631 \begin_inset Quotes qld
31632 \end_inset
31633
31634
31635 \end_layout
31636
31637 \end_inset
31638
31639
31640 \begin_inset Newline newline
31641 \end_inset
31642
31643
31644 \begin_inset Flex Code
31645 status collapsed
31646
31647 \begin_layout Plain Layout
31648 git commit
31649 \end_layout
31650
31651 \end_inset
31652
31653
31654 \end_layout
31655
31656 \begin_layout Subsubsection
31657
31658 \family sans
31659 Show History
31660 \end_layout
31661
31662 \begin_layout Standard
31663 This shows the complete history of the GIT document.
31664  The output of 
31665 \family typewriter
31666 git log 
31667 \begin_inset Quotes qld
31668 \end_inset
31669
31670 <file-name>
31671 \begin_inset Quotes qld
31672 \end_inset
31673
31674
31675 \family default
31676  is shown in a browser.
31677 \end_layout
31678
31679 \begin_layout Subsubsection
31680 Version Info
31681 \end_layout
31682
31683 \begin_layout Standard
31684 \SpecialChar LyX
31685  supports GIT hash number of the last commit to the file, 
31686 \change_inserted 1119979965 1564297456
31687 its abbreviated form, 
31688 \change_unchanged
31689 author name, date and time of last commit.
31690  All those are extracted from 
31691 \family typewriter
31692 git log -n 1 --pretty=format:%H%n
31693 \change_inserted 1119979965 1564297427
31694 %h%n
31695 \change_unchanged
31696 %an%n%ai
31697 \family default
31698 .
31699  Tree version information is obtained via 
31700 \family typewriter
31701 git describe --abbrev --dirty --long
31702 \family default
31703 .
31704  See 
31705 \begin_inset CommandInset ref
31706 LatexCommand ref
31707 reference "subsec:VCS-Revision-Information"
31708
31709 \end_inset
31710
31711  for other details.
31712 \end_layout
31713
31714 \begin_layout Subsection
31715 Further tuning
31716 \end_layout
31717
31718 \begin_layout Standard
31719 With the recent addition of the 
31720 \begin_inset Flex Code
31721 status collapsed
31722
31723 \begin_layout Plain Layout
31724 vc-command
31725 \end_layout
31726
31727 \end_inset
31728
31729  function \SpecialChar LyX
31730  power users are allowed to create their own commands for revision
31731  control.
31732 \end_layout
31733
31734 \begin_layout Standard
31735 As an example you can see how two TortoiseSVN commands could be integrated
31736  directly:
31737 \end_layout
31738
31739 \begin_layout Description
31740 Commit: 
31741 \begin_inset Flex Code
31742 status collapsed
31743
31744 \begin_layout Plain Layout
31745 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
31746 \end_layout
31747
31748 \end_inset
31749
31750
31751 \end_layout
31752
31753 \begin_layout Description
31754 Revert: 
31755 \begin_inset Flex Code
31756 status collapsed
31757
31758 \begin_layout Plain Layout
31759 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
31760 \end_layout
31761
31762 \end_inset
31763
31764
31765 \end_layout
31766
31767 \begin_layout Subsection
31768 Version control and Document comparison
31769 \end_layout
31770
31771 \begin_layout Standard
31772 One of the typical uses of version control is to inspect the changes between
31773  revisions, usually by creating 
31774 \begin_inset Flex Code
31775 status collapsed
31776
31777 \begin_layout Plain Layout
31778 diff
31779 \end_layout
31780
31781 \end_inset
31782
31783  dumps.
31784  While this is useful for plain text files, it is much less useful in the
31785  case of \SpecialChar LyX
31786  files, which have more a complicated structure.
31787  Hence we provide binding to the Document comparison feature.
31788  There are two ways of calling this feature – either by direct call of 
31789 \begin_inset Flex Code
31790 status collapsed
31791
31792 \begin_layout Plain Layout
31793 vc-compare
31794 \end_layout
31795
31796 \end_inset
31797
31798  \SpecialChar LyX
31799  function (for details see \SpecialChar LyX
31800  functions manual) or by the toolbar icon 
31801 \begin_inset Info
31802 type  "icon"
31803 arg   "vc-compare"
31804 \end_inset
31805
31806  or the menu item 
31807 \begin_inset Info
31808 type  "menu"
31809 arg   "vc-compare"
31810 \end_inset
31811
31812 , respectively.
31813  One can either compare two chosen revisions of the document or he can simply
31814  compare the current version of edited text with older revisions (where
31815  '
31816 \begin_inset Flex Noun
31817 status collapsed
31818
31819 \begin_layout Plain Layout
31820 0
31821 \end_layout
31822
31823 \end_inset
31824
31825 ' revisions back means comparison of the edited file with last commited
31826  revision).
31827  
31828 \end_layout
31829
31830 \begin_layout Standard
31831 This feature is supported for SVN and RCS though due to the more complicated
31832  versioning scheme of RCS there is a constraint – when addressing the revisions
31833  in dialog, numbers always point to the last number in RCS revision number,
31834  i.e.
31835  '35' in '1.2.35'.
31836  We don't currently support GIT addressing of revisions, one can just compare
31837  edited document with its revision X steps backs, where X is addressed as
31838  
31839 \begin_inset Flex Code
31840 status collapsed
31841
31842 \begin_layout Plain Layout
31843 HEAD~X
31844 \end_layout
31845
31846 \end_inset
31847
31848 .
31849 \end_layout
31850
31851 \begin_layout Section
31852
31853 \change_inserted 564990737 1672161575
31854 \begin_inset CommandInset label
31855 LatexCommand label
31856 name "sec:Literate-Programming"
31857
31858 \end_inset
31859
31860
31861 \change_unchanged
31862 Literate Programming
31863 \end_layout
31864
31865 \begin_layout Standard
31866 Updated by 
31867 \noun on
31868 Kayvan Sylvan 
31869 \noun default
31870 (kayvan@sylvan.com)
31871 \noun on
31872
31873 \noun default
31874 original documentation written by 
31875 \noun on
31876 Edmar Wienskoski Jr.
31877
31878 \noun default
31879  (edmar-w-jr@technologist.com)
31880 \end_layout
31881
31882 \begin_layout Subsection
31883 Introduction
31884 \end_layout
31885
31886 \begin_layout Standard
31887 The main purpose of this documentation is to show you how to use \SpecialChar LyX
31888  for literate
31889  programming, where it is assumed that you are familiar with this programming
31890  technique, and know what 
31891 \begin_inset Quotes eld
31892 \end_inset
31893
31894 tangling
31895 \begin_inset Quotes erd
31896 \end_inset
31897
31898  and 
31899 \begin_inset Quotes eld
31900 \end_inset
31901
31902 weaving
31903 \begin_inset Quotes erd
31904 \end_inset
31905
31906  means.
31907  If that is not the case, please follow the web links provided in the following
31908  sections.
31909  There is a lot of good documentation out there covering old development
31910  history to the latest tools tips.
31911 \end_layout
31912
31913 \begin_layout Standard
31914 It is also assumed that you are familiar with \SpecialChar LyX
31915  itself to a point that you
31916  are comfortable changing your \SpecialChar LyX
31917  preferences, and X resources file.
31918  If that is not the case please refer to other \SpecialChar LyX
31919  documentation to cover your
31920  specific needs.
31921 \end_layout
31922
31923 \begin_layout Subsection
31924 Literate Programming
31925 \end_layout
31926
31927 \begin_layout Standard
31928 From the Literate Programming FAQ: 
31929 \end_layout
31930
31931 \begin_layout Quotation
31932 Literate programming is the combination of documentation and source together
31933  in a fashion suited for reading by human beings.
31934  In fact, literate programs should be enjoyable reading, even inviting!
31935  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
31936  and documentation in a single file.
31937  Literate programming tools then parse the file to produce either readable
31938  documentation or compilable source.
31939  The WEB style of literate programming was created by D.
31940 \begin_inset space \thinspace{}
31941 \end_inset
31942
31943 E.
31944  Knuth during the development of his \SpecialChar TeX
31945  typesetting software.
31946  
31947 \end_layout
31948
31949 \begin_layout Standard
31950 Another excerpt says:
31951 \end_layout
31952
31953 \begin_layout Quotation
31954
31955 \emph on
31956 How is literate programming different from verbose commenting?
31957 \end_layout
31958
31959 \begin_layout Quotation
31960 There are three distinguishing characteristics.
31961  In order of importance, they are: 
31962 \end_layout
31963
31964 \begin_deeper
31965 \begin_layout Itemize
31966 flexible order of elaboration 
31967 \end_layout
31968
31969 \begin_layout Itemize
31970 automatic support for browsing 
31971 \end_layout
31972
31973 \begin_layout Itemize
31974 typeset documentation, especially diagrams and mathematics 
31975 \end_layout
31976
31977 \end_deeper
31978 \begin_layout Standard
31979 Now that I sparked your curiosity, take a look in the references.
31980 \end_layout
31981
31982 \begin_layout Subsubsection
31983 References
31984 \end_layout
31985
31986 \begin_layout Standard
31987 The complete Literate Programming FAQ can be found at:
31988 \end_layout
31989
31990 \begin_layout Quote
31991 Literate Programming FAQ 
31992 \begin_inset Flex URL
31993 status open
31994
31995 \begin_layout Plain Layout
31996
31997 http://www.literateprogramming.com/lpfaq.pdf
31998 \end_layout
31999
32000 \end_inset
32001
32002
32003 \end_layout
32004
32005 \begin_layout Standard
32006 The FAQ lists 23 (twenty three!) different literate programming tools.
32007  Where some are specialized or 
32008 \begin_inset Quotes eld
32009 \end_inset
32010
32011 tailored
32012 \begin_inset Quotes erd
32013 \end_inset
32014
32015  for particular programming languages, while other have general scope.
32016  I selected 
32017 \noun on
32018 Noweb
32019 \noun default
32020  for my own use for several reasons:
32021 \end_layout
32022
32023 \begin_layout Itemize
32024 It can generate the documentation either in \SpecialChar LaTeX
32025  or HTML.
32026 \end_layout
32027
32028 \begin_layout Itemize
32029 It has a open architecture, i.
32030 \begin_inset space \thinspace{}
32031 \end_inset
32032
32033 e.
32034 \begin_inset space \space{}
32035 \end_inset
32036
32037 it is easy to plug in new filters
32038 \begin_inset Foot
32039 status collapsed
32040
32041 \begin_layout Plain Layout
32042
32043 \emph on
32044 Filters 
32045 \emph default
32046 are programs that read a given data stream and output a manipulated data
32047  stream.
32048  That way, a WEB file (consisting of literate code) can be turned into a
32049  file consisting only of C program code or \SpecialChar LaTeX
32050  code.
32051 \end_layout
32052
32053 \end_inset
32054
32055  and to perform special processing that you may need.
32056  
32057 \end_layout
32058
32059 \begin_layout Itemize
32060 There is a good selection of filters available already (the HTML is one
32061  of them).
32062 \end_layout
32063
32064 \begin_layout Itemize
32065 It is free.
32066 \end_layout
32067
32068 \begin_layout Standard
32069 The Noweb web page can be found at: 
32070 \end_layout
32071
32072 \begin_layout Quote
32073 Noweb home page 
32074 \begin_inset Flex URL
32075 status collapsed
32076
32077 \begin_layout Plain Layout
32078
32079 https://www.cs.tufts.edu/~nr/noweb/
32080 \end_layout
32081
32082 \end_inset
32083
32084
32085 \end_layout
32086
32087 \begin_layout Standard
32088 Starting from there you can reach many other interesting links and even
32089  some literate program examples.
32090 \end_layout
32091
32092 \begin_layout Subsection
32093 \SpecialChar LyX
32094  and Literate Programming with Noweb
32095 \end_layout
32096
32097 \begin_layout Standard
32098 The \SpecialChar LyX
32099  support for Literate Programming is provided by using the generic \SpecialChar LyX
32100
32101  converters mechanism.
32102  This support is provided in a 
32103 \begin_inset Quotes eld
32104 \end_inset
32105
32106 Noweb independent
32107 \begin_inset Quotes erd
32108 \end_inset
32109
32110  way, i.
32111 \begin_inset space \thinspace{}
32112 \end_inset
32113
32114 e.
32115 \begin_inset space \space{}
32116 \end_inset
32117
32118 you will be able to use this new \SpecialChar LyX
32119  feature with some other literate programming
32120  tool of your choice by just changing your \SpecialChar LyX
32121  preferences.
32122 \end_layout
32123
32124 \begin_layout Subsubsection
32125 Generating documents and code (weaving and tangling)
32126 \end_layout
32127
32128 \begin_layout Paragraph
32129 Using the noweb module
32130 \end_layout
32131
32132 \begin_layout Standard
32133 If you have installed Noweb and \SpecialChar LyX
32134  successfully, whenever you open a new document,
32135  after you have chosen its document class, use the 
32136 \family sans
32137 Document\SpecialChar menuseparator
32138 Settings
32139 \family default
32140  menu to add the 
32141 \begin_inset Quotes eld
32142 \end_inset
32143
32144 noweb
32145 \begin_inset Quotes erd
32146 \end_inset
32147
32148  module.
32149  If Noweb is correctly installed, when you click on the 
32150 \begin_inset Quotes eld
32151 \end_inset
32152
32153 Modules
32154 \begin_inset Quotes erd
32155 \end_inset
32156
32157  link, you will see the 
32158 \begin_inset Quotes eld
32159 \end_inset
32160
32161 noweb
32162 \begin_inset Quotes erd
32163 \end_inset
32164
32165  module in the available list and you can add it to your document.
32166 \end_layout
32167
32168 \begin_layout Paragraph
32169 Typing code in
32170 \end_layout
32171
32172 \begin_layout Standard
32173 \SpecialChar LyX
32174  enables you to write code with a custom inset named 
32175 \begin_inset Flex Noun
32176 status collapsed
32177
32178 \begin_layout Plain Layout
32179 Chunk
32180 \end_layout
32181
32182 \end_inset
32183
32184 .
32185  Noweb delimits chunks like this:
32186 \end_layout
32187
32188 \begin_layout LyX-Code
32189 <<My code>>=
32190 \end_layout
32191
32192 \begin_layout LyX-Code
32193   code
32194 \end_layout
32195
32196 \begin_layout LyX-Code
32197   more code
32198 \end_layout
32199
32200 \begin_layout LyX-Code
32201   even more code
32202 \end_layout
32203
32204 \begin_layout LyX-Code
32205   @
32206 \end_layout
32207
32208 \begin_layout Standard
32209 The problem is that whatever is written in between the << and the 
32210 \family typewriter
32211 @
32212 \family default
32213  must be taken literally, i.
32214 \begin_inset space \thinspace{}
32215 \end_inset
32216
32217 e.
32218 \begin_inset space \space{}
32219 \end_inset
32220
32221 \SpecialChar LyX
32222  should be prevented from making any special interpretation of what has
32223  been written.
32224  This is also handled by 
32225 \begin_inset Flex Noun
32226 status collapsed
32227
32228 \begin_layout Plain Layout
32229 Chunk
32230 \end_layout
32231
32232 \end_inset
32233
32234 , that works like a normal text inset but has a free spacing capability.
32235 \end_layout
32236
32237 \begin_layout Standard
32238 As a special note, you can also use the 
32239 \begin_inset Quotes eld
32240 \end_inset
32241
32242 %def
32243 \begin_inset Quotes erd
32244 \end_inset
32245
32246  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
32247 rence:
32248 \end_layout
32249
32250 \begin_layout LyX-Code
32251 <<My chunk>>=
32252 \end_layout
32253
32254 \begin_layout LyX-Code
32255 def some_function(args):
32256 \end_layout
32257
32258 \begin_layout LyX-Code
32259    "This is the doc string for this function."
32260 \end_layout
32261
32262 \begin_layout LyX-Code
32263    print "My args: ", args
32264 \end_layout
32265
32266 \begin_layout LyX-Code
32267 @ %def some_function
32268 \end_layout
32269
32270 \begin_layout Standard
32271 For an example of this usage and the resulting cross-reference output, look
32272  at the Literate python program in 
32273 \emph on
32274 LIBDIR/examples/listerrors.lyx
32275 \emph default
32276  which should make this all clear.
32277 \end_layout
32278
32279 \begin_layout Paragraph
32280 Generating the documentation
32281 \end_layout
32282
32283 \begin_layout Standard
32284 At this point you already have a new document file with a proper document
32285  class, and with some code and text on it.
32286  How do I print it? The answer is simple, you select 
32287 \family sans
32288 View\SpecialChar menuseparator
32289 DVI,
32290 \family default
32291  etc.
32292  Just like you would do for a plain document.
32293  No special procedure is required.
32294 \end_layout
32295
32296 \begin_layout Standard
32297 To help orientate you, I will now explain what happens inside \SpecialChar LyX
32298 :
32299 \end_layout
32300
32301 \begin_layout Enumerate
32302 When the 
32303 \family sans
32304 Update\SpecialChar menuseparator
32305 DVI
32306 \family default
32307  menu option is chosen, a \SpecialChar LaTeX
32308  file is generated.
32309  
32310 \end_layout
32311
32312 \begin_deeper
32313 \begin_layout Standard
32314 If the document is of any literate class the generated file will be named
32315  with an extension name defined by the 
32316 \begin_inset Quotes eld
32317 \end_inset
32318
32319 literate
32320 \begin_inset Quotes erd
32321 \end_inset
32322
32323  format (defined in the Preferences panel), otherwise the file will have
32324  the usual 
32325 \family typewriter
32326 .tex
32327 \family default
32328  extension.
32329 \end_layout
32330
32331 \end_deeper
32332 \begin_layout Enumerate
32333 Note that the only difference so far is in the name of the file, no special
32334  processing is required by \SpecialChar LyX
32335 .
32336  Given that you formatted the code using the 
32337 \begin_inset Flex Noun
32338 status collapsed
32339
32340 \begin_layout Plain Layout
32341 Chunk
32342 \end_layout
32343
32344 \end_inset
32345
32346  inset that, by itself, takes care of the business.
32347 \end_layout
32348
32349 \begin_layout Enumerate
32350 If the document is of any literate class \SpecialChar LyX
32351  will then use the internal \SpecialChar LyX
32352  to
32353  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
32354  converter
32355 \begin_inset Foot
32356 status collapsed
32357
32358 \begin_layout Plain Layout
32359 The converters are defined in the 
32360 \family sans
32361 Tools\SpecialChar menuseparator
32362 Preferences
32363 \family default
32364  panel, under the 
32365 \begin_inset Quotes eld
32366 \end_inset
32367
32368 Conversion
32369 \begin_inset Quotes erd
32370 \end_inset
32371
32372  tab.
32373  See section 
32374 \emph on
32375 Converters
32376 \emph default
32377  of the 
32378 \emph on
32379 Customization
32380 \emph default
32381  manual for general information about converters.
32382 \end_layout
32383
32384 \end_inset
32385
32386  to generate the \SpecialChar LaTeX
32387  file.
32388 \end_layout
32389
32390 \begin_deeper
32391 \begin_layout Standard
32392 Otherwise it will just skip this step.
32393 \end_layout
32394
32395 \end_deeper
32396 \begin_layout Enumerate
32397 Finally, \SpecialChar LaTeX
32398  is invoked and the regular post processing continues as in a plain
32399  document.
32400 \end_layout
32401
32402 \begin_layout Standard
32403 Independence from a particular 
32404 \begin_inset Quotes eld
32405 \end_inset
32406
32407 literate tool
32408 \begin_inset Quotes erd
32409 \end_inset
32410
32411  is easily achieved by changing the commands that are run by the various
32412  converters.
32413 \end_layout
32414
32415 \begin_layout Paragraph
32416 Generating the code
32417 \end_layout
32418
32419 \begin_layout Standard
32420 When the build menu option is chosen or the corresponding button in the
32421  toolbar is pressed, a \SpecialChar LaTeX
32422  file is generated just like step 1 above.
32423  Next, \SpecialChar LyX
32424  invokes the 
32425 \family typewriter
32426 Noweb->Program
32427 \family default
32428  converter.
32429  This converter needs to be defined by the user and is not installed by
32430  default, though the Program format is.
32431  This converter (like any other converter) will have two parts:
32432 \end_layout
32433
32434 \begin_layout Enumerate
32435 The converter program itself.
32436  This program performs the conversion from the one format to the other (in
32437  this case, from the Noweb format to the Program pseudo-format).
32438 \end_layout
32439
32440 \begin_layout Enumerate
32441 The error log parser.
32442  This is a program whose sole purpose is to rewrite error messages in a
32443  format that \SpecialChar LyX
32444  understands.
32445  This makes it possible for \SpecialChar LyX
32446  to place error boxes in the right places in
32447  the file buffer.
32448 \end_layout
32449
32450 \begin_layout Standard
32451 The first part, the 
32452 \begin_inset Quotes eld
32453 \end_inset
32454
32455 Converter
32456 \begin_inset Quotes erd
32457 \end_inset
32458
32459  setting, should be set to
32460 \end_layout
32461
32462 \begin_layout LyX-Code
32463
32464 \family typewriter
32465 build-script $$i
32466 \family default
32467  $$r
32468 \end_layout
32469
32470 \begin_layout Standard
32471 This basically means that \SpecialChar LyX
32472  will call 
32473 \begin_inset Quotes eld
32474 \end_inset
32475
32476 build-script
32477 \begin_inset Quotes erd
32478 \end_inset
32479
32480  (a program or script) with the name of the Noweb file (normally a file
32481  in the \SpecialChar LyX
32482  temp directory) and the directory path of the original \SpecialChar LyX
32483  file.
32484  
32485 \end_layout
32486
32487 \begin_layout Standard
32488 This is an implementation of 
32489 \begin_inset Quotes eld
32490 \end_inset
32491
32492 build-script
32493 \begin_inset Quotes erd
32494 \end_inset
32495
32496  that you can place in a directory on your path:
32497 \end_layout
32498
32499 \begin_layout LyX-Code
32500
32501 \family sans
32502 #!/bin/sh
32503 \end_layout
32504
32505 \begin_layout LyX-Code
32506
32507 \family sans
32508 #
32509 \end_layout
32510
32511 \begin_layout LyX-Code
32512
32513 \family sans
32514 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
32515 \end_layout
32516
32517 \begin_layout Standard
32518 The next part of the converter setting is the 
32519 \begin_inset Quotes eld
32520 \end_inset
32521
32522 Flags
32523 \begin_inset Quotes erd
32524 \end_inset
32525
32526  which is to be set to
32527 \end_layout
32528
32529 \begin_layout LyX-Code
32530
32531 \family typewriter
32532 parselog=$$s/scripts/listerrors
32533 \end_layout
32534
32535 \begin_layout Standard
32536 This will run any errors that are generated by the 
32537 \begin_inset Quotes eld
32538 \end_inset
32539
32540 build-script
32541 \begin_inset Quotes erd
32542 \end_inset
32543
32544  process through the 
32545 \begin_inset Quotes eld
32546 \end_inset
32547
32548 listerrors
32549 \begin_inset Quotes erd
32550 \end_inset
32551
32552  program.
32553 \end_layout
32554
32555 \begin_layout Standard
32556 The build will normally take place in \SpecialChar LyX
32557 's temporary directory, so the files
32558  produced by the conversion will be in that directory.
32559  \SpecialChar LyX
32560  will copy out what it regards as the `main' file, but the 
32561 \family typewriter
32562 Noweb->Program
32563 \family default
32564  conversion may produce several files, and so most of these would then be
32565  deleted when \SpecialChar LyX
32566  was closed.
32567  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
32568  the build-script chunk can place the generated files in that location.
32569 \end_layout
32570
32571 \begin_layout Paragraph
32572 Build instructions in the document
32573 \end_layout
32574
32575 \begin_layout Standard
32576 The last piece of the integration between \SpecialChar LyX
32577  and noweb is the 
32578 \begin_inset Quotes eld
32579 \end_inset
32580
32581 build-script
32582 \begin_inset Quotes erd
32583 \end_inset
32584
32585  chunk.
32586  Generally, the instructions for building your program should be embedded
32587  in a chunk of its own.
32588  The noweb-specific 
32589 \begin_inset Quotes eld
32590 \end_inset
32591
32592 build-script
32593 \begin_inset Quotes erd
32594 \end_inset
32595
32596  above uses the notangle command to look for this chunk (called 
32597 \begin_inset Quotes eld
32598 \end_inset
32599
32600 build-script
32601 \begin_inset Quotes erd
32602 \end_inset
32603
32604 ) and runs its contents through 
32605 \begin_inset Quotes eld
32606 \end_inset
32607
32608 sh
32609 \begin_inset Quotes erd
32610 \end_inset
32611
32612 .
32613 \end_layout
32614
32615 \begin_layout Standard
32616 Typically, such a chunk would look something like this:
32617 \end_layout
32618
32619 \begin_layout LyX-Code
32620 <<build-script>>=
32621 \end_layout
32622
32623 \begin_layout LyX-Code
32624 #!/bin/sh
32625 \begin_inset Newline newline
32626 \end_inset
32627
32628 if [ -z "${NOWEB_SOURCE}" ]
32629 \begin_inset Newline newline
32630 \end_inset
32631
32632 then
32633 \end_layout
32634
32635 \begin_layout LyX-Code
32636 NOWEB_SOURCE=myfile.nw
32637 \begin_inset Newline newline
32638 \end_inset
32639
32640 fi
32641 \begin_inset Newline newline
32642 \end_inset
32643
32644 [...
32645  code to extract files ...
32646  use NOWEB_OUTPUT_DIR here ...]
32647 \begin_inset Newline newline
32648 \end_inset
32649
32650 [...
32651  code to compile files ...]
32652 \begin_inset Newline newline
32653 \end_inset
32654
32655 @
32656 \end_layout
32657
32658 \begin_layout Standard
32659 Look in 
32660 \change_deleted 564990737 1672161716
32661
32662 \emph on
32663 LIBDIR/examples/listerrors.lyx
32664 \emph default
32665  or in 
32666 \emph on
32667 LIBDIR/examples/Literate.lyx
32668 \change_inserted 564990737 1672161716
32669
32670 \family sans
32671 \emph default
32672 \lang american
32673 File\SpecialChar menuseparator
32674 Open Example\SpecialChar menuseparator
32675 Modules\SpecialChar menuseparator
32676 Noweb Listerrors
32677 \change_unchanged
32678
32679 \family default
32680 \lang english
32681  which implement 
32682 \change_deleted 564990737 1672161729
32683 two 
32684 \change_unchanged
32685 versions of the 
32686 \begin_inset Quotes eld
32687 \end_inset
32688
32689 listerrors
32690 \begin_inset Quotes erd
32691 \end_inset
32692
32693  program for some illustrations of how all of these pieces go together or
32694  in 
32695 \change_deleted 564990737 1672161756
32696
32697 \emph on
32698 LIBDIR/examples/noweb2lyx.lyx
32699 \change_inserted 564990737 1672161756
32700
32701 \family sans
32702 \emph default
32703 \lang american
32704 File\SpecialChar menuseparator
32705 Open Example\SpecialChar menuseparator
32706 Modules\SpecialChar menuseparator
32707 Noweb2\SpecialChar LyX
32708
32709 \change_unchanged
32710
32711 \family default
32712 \emph on
32713 \lang english
32714 .
32715
32716 \emph default
32717  Interestingly, these 
32718 \change_deleted 564990737 1672161767
32719 three 
32720 \change_unchanged
32721 files show off the language-indepence of the \SpecialChar LyX
32722  literate programming support
32723  since they are written in Python
32724 \change_deleted 564990737 1672161782
32725 , C
32726 \change_unchanged
32727  and Perl respectively.
32728 \end_layout
32729
32730 \begin_layout Subsubsection
32731 Configuring \SpecialChar LyX
32732
32733 \end_layout
32734
32735 \begin_layout Standard
32736 All the Literate Programming support is configured by the 
32737 \family sans
32738 Tools\SpecialChar menuseparator
32739 Preferences
32740 \family default
32741  panel in the 
32742 \begin_inset Quotes eld
32743 \end_inset
32744
32745 File Handling
32746 \begin_inset Quotes erd
32747 \end_inset
32748
32749  tab.
32750  The important parts are:
32751 \end_layout
32752
32753 \begin_layout Description
32754 the
32755 \begin_inset space ~
32756 \end_inset
32757
32758
32759 \begin_inset Quotes eld
32760 \end_inset
32761
32762 NoWeb
32763 \begin_inset Quotes erd
32764 \end_inset
32765
32766
32767 \begin_inset space ~
32768 \end_inset
32769
32770 format Set up via the File Formats tab, this is where the Noweb-specific
32771  pieces are set up.
32772  The 
32773 \family sans
32774 GUI Name
32775 \family default
32776  is set to 
32777 \family typewriter
32778 NoWeb
32779 \family default
32780 , the file extension is set to 
32781 \family typewriter
32782 .nw
32783 \family default
32784 .
32785  This tells \SpecialChar LyX
32786  to create a file with a 
32787 \family typewriter
32788 .nw
32789 \family default
32790  extension in the first step of the conversion process.
32791 \end_layout
32792
32793 \begin_layout Description
32794 the
32795 \begin_inset space ~
32796 \end_inset
32797
32798
32799 \family sans
32800 Program
32801 \family default
32802
32803 \begin_inset space ~
32804 \end_inset
32805
32806 format This is an empty format whose sole purpose is to be the endpoint
32807  of a conversion (which then allows us to set up a converter for it).
32808 \end_layout
32809
32810 \begin_layout Description
32811
32812 \family sans
32813 NoWeb
32814 \family default
32815 ->
32816 \family sans
32817 \SpecialChar LaTeX
32818
32819 \family default
32820  This converter performs the 
32821 \begin_inset Quotes eld
32822 \end_inset
32823
32824 weaving
32825 \begin_inset Quotes erd
32826 \end_inset
32827
32828  of the literate document.
32829  For Noweb, it is set to 
32830 \begin_inset Quotes eld
32831 \end_inset
32832
32833
32834 \family typewriter
32835 noweave -delay -index $$i > $$o
32836 \family default
32837
32838 \begin_inset Quotes erd
32839 \end_inset
32840
32841
32842 \end_layout
32843
32844 \begin_layout Description
32845
32846 \family sans
32847 NoWeb
32848 \family default
32849 ->
32850 \family sans
32851 Program
32852 \family default
32853  This performs the 
32854 \begin_inset Quotes eld
32855 \end_inset
32856
32857 tangling step
32858 \begin_inset Quotes erd
32859 \end_inset
32860
32861 .
32862  As stated above, the Converter is set to 
32863 \begin_inset Quotes eld
32864 \end_inset
32865
32866
32867 \family typewriter
32868 build-script $$i
32869 \family default
32870  $$r
32871 \begin_inset Quotes erd
32872 \end_inset
32873
32874 , with Flags set to
32875 \begin_inset Newline newline
32876 \end_inset
32877
32878
32879 \begin_inset Quotes eld
32880 \end_inset
32881
32882
32883 \family typewriter
32884 parselog=$$s/scripts/listerrors
32885 \family default
32886
32887 \begin_inset Quotes erd
32888 \end_inset
32889
32890 .
32891 \end_layout
32892
32893 \begin_layout Subsubsection
32894 Debug extensions
32895 \end_layout
32896
32897 \begin_layout Standard
32898 There is also a new function implemented in the \SpecialChar LyX
32899  server, the 
32900 \begin_inset Quotes eld
32901 \end_inset
32902
32903 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
32904  
32905 \end_layout
32906
32907 \begin_layout Standard
32908 When debugging code with ddd/gdb, it is possible to invoke a text editor
32909  at the current execution position with a single key stroke.
32910  The default ddd configuration for that is shift-ctrl-V.
32911  It happens that you can define the editor command line invocation in ddd
32912  by accessing the 
32913 \family sans
32914 Edit\SpecialChar menuseparator
32915 Preferences\SpecialChar menuseparator
32916 Helpers
32917 \family default
32918  dialog and changing the "Edit Sources" entry.
32919 \end_layout
32920
32921 \begin_layout Standard
32922 I take advantage of the newly created \SpecialChar LyX
32923  server function and this ddd feature,
32924  and set 
32925 \begin_inset Quotes eld
32926 \end_inset
32927
32928 Edit Sources
32929 \begin_inset Quotes erd
32930 \end_inset
32931
32932  to:
32933 \end_layout
32934
32935 \begin_layout LyX-Code
32936 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
32937 \end_layout
32938
32939 \begin_layout Standard
32940 With this, whenever you are using ddd and find a point in the program that
32941  you want to edit, you just press shift-ctrl-V (in the ddd window), and
32942  ddd will forward this information to \SpecialChar LyX
32943  through the \SpecialChar LyX
32944  server and then the
32945  \SpecialChar LyX
32946  window will show the same file with the cursor at the same position ddd
32947  was pointing to.
32948  No more guessing or long scrolling to locate a point in the program back
32949  from debugging !
32950 \end_layout
32951
32952 \begin_layout Standard
32953 Note however that you must enable the \SpecialChar LyX
32954  server to get this feature working
32955  (it is disabled by default).
32956  Sec.
32957 \begin_inset space ~
32958 \end_inset
32959
32960
32961 \begin_inset CommandInset ref
32962 LatexCommand ref
32963 reference "sec:Starting-the-Server"
32964
32965 \end_inset
32966
32967  explains how to do that.
32968 \end_layout
32969
32970 \begin_layout Subsubsection
32971 Toolbar extensions
32972 \end_layout
32973
32974 \begin_layout Standard
32975 There are six new buttons that can be added to your \SpecialChar LyX
32976  toolbar.
32977  Four of these buttons are short cuts to layout styles: 
32978 \family sans
32979 Standard
32980 \family default
32981
32982 \family sans
32983 Section
32984 \family default
32985
32986 \family sans
32987 \SpecialChar LaTeX
32988
32989 \family default
32990 , and 
32991 \family sans
32992 \SpecialChar LyX
32993 -Code
32994 \family default
32995 , one for the custom inset 
32996 \family sans
32997 Chunk
32998 \family default
32999 .
33000  The last one is a short cut to the 
33001 \begin_inset Quotes eld
33002 \end_inset
33003
33004 Build Program
33005 \begin_inset Quotes erd
33006 \end_inset
33007
33008  File menu entry.
33009  
33010 \end_layout
33011
33012 \begin_layout Standard
33013 \SpecialChar LyX
33014  has a range of buttons that are available for tool bar customization.
33015  In my toolbar I like to combine the six short cuts above with two more:
33016  One for 
33017 \family sans
33018 Document
33019 \family default
33020 \SpecialChar menuseparator
33021
33022 \family sans
33023 Update
33024 \family default
33025 \SpecialChar menuseparator
33026
33027 \family sans
33028 DVI
33029 \family default
33030  and the other for 
33031 \family sans
33032 Document\SpecialChar menuseparator
33033 View\SpecialChar menuseparator
33034 DVI
33035 \family default
33036  File menu entries.
33037  Here is how it looks like:
33038 \end_layout
33039
33040 \begin_layout LyX-Code
33041 Toolbar
33042 \end_layout
33043
33044 \begin_layout LyX-Code
33045   Layouts
33046 \end_layout
33047
33048 \begin_layout LyX-Code
33049   Icon "layout Standard"
33050 \end_layout
33051
33052 \begin_layout LyX-Code
33053   Icon "layout Section"
33054 \end_layout
33055
33056 \begin_layout LyX-Code
33057   Icon "layout \SpecialChar LaTeX
33058 "
33059 \end_layout
33060
33061 \begin_layout LyX-Code
33062   Icon "layout \SpecialChar LyX
33063 -Code"
33064 \end_layout
33065
33066 \begin_layout LyX-Code
33067   Icon "flex.insert Chunk"
33068 \end_layout
33069
33070 \begin_layout LyX-Code
33071   Separator
33072 \end_layout
33073
33074 \begin_layout LyX-Code
33075   Icon "buffer-view"
33076 \end_layout
33077
33078 \begin_layout LyX-Code
33079   Icon "buffer-typeset"
33080 \end_layout
33081
33082 \begin_layout LyX-Code
33083   Icon "build-program"
33084 \end_layout
33085
33086 \begin_layout LyX-Code
33087   Separator
33088 \end_layout
33089
33090 \begin_layout LyX-Code
33091 .
33092 \end_layout
33093
33094 \begin_layout LyX-Code
33095 .
33096 \end_layout
33097
33098 \begin_layout LyX-Code
33099 .
33100 \end_layout
33101
33102 \begin_layout LyX-Code
33103 End
33104 \end_layout
33105
33106 \begin_layout Subsubsection
33107 Colors customization
33108 \end_layout
33109
33110 \begin_layout Standard
33111 There are a number of colors in \SpecialChar LyX
33112  that can be customized in 
33113 \family sans
33114 Preferences
33115 \family default
33116 .
33117  One of the things that bothers people is the \SpecialChar LaTeX
33118  font color.
33119  The default color is red, since the chunks uses \SpecialChar LaTeX
33120  font, and there is a lot
33121  of chunks in literate documents, you may get tired of seeing everything
33122  in red.
33123  You can change it by going to the tabs 
33124 \family sans
33125 Look&Feel
33126 \family default
33127
33128 \family sans
33129 Colors.
33130 \end_layout
33131
33132 \begin_layout Standard
33133 The next thing is the visible presence of the newline character in the screen.
33134  You can choose the color of this particular character and make it blend
33135  in the background.
33136  I recommend you choosing a color that is close to the background but not
33137  equal, that way you still can see it is there, but it is not bothering
33138  you anymore.
33139 \end_layout
33140
33141 \begin_layout Subsection
33142 \SpecialChar LyX
33143  and knitr/Sweave
33144 \end_layout
33145
33146 \begin_layout Standard
33147 Support for 
33148 \family sans
33149 knitr
33150 \family default
33151  and 
33152 \family sans
33153 Sweave
33154 \family default
33155  is documented in
33156 \change_inserted 564990737 1672161863
33157  
33158 \family sans
33159 \lang american
33160 Help\SpecialChar menuseparator
33161 Specific Manuals\SpecialChar menuseparator
33162 Knitr
33163 \family default
33164  and
33165 \change_unchanged
33166
33167 \lang english
33168  
33169 \change_deleted 564990737 1671643409
33170 the 
33171 \emph on
33172 knitr.lyx
33173 \emph default
33174  example file
33175 \change_inserted 564990737 1672161856
33176
33177 \family sans
33178 \lang british
33179 File\SpecialChar menuseparator
33180 Open Example\SpecialChar menuseparator
33181 Modules\SpecialChar menuseparator
33182 Rnw (knitr)
33183 \change_unchanged
33184
33185 \family default
33186 \lang english
33187  and in 
33188 \change_deleted 564990737 1671643461
33189 the Sweave manual (menu 
33190 \family sans
33191 Help\SpecialChar menuseparator
33192 Specific Manuals
33193 \family default
33194 )
33195 \change_inserted 564990737 1672161856
33196
33197 \family sans
33198 \lang british
33199 Help\SpecialChar menuseparator
33200 Specific Manuals\SpecialChar menuseparator
33201 Sweave
33202 \change_deleted 564990737 1672161921
33203
33204 \family default
33205 \lang english
33206 .
33207
33208 \change_inserted 564990737 1672161917
33209  and 
33210 \family sans
33211 \lang american
33212 File\SpecialChar menuseparator
33213 Open Example\SpecialChar menuseparator
33214 Modules\SpecialChar menuseparator
33215 Sweave
33216 \family default
33217 .
33218 \change_unchanged
33219
33220 \end_layout
33221
33222 \begin_layout Chapter
33223
33224 \change_deleted 564990737 1671355343
33225 Special features
33226 \end_layout
33227
33228 \begin_layout Standard
33229
33230 \change_deleted 564990737 1671355343
33231 You can do everything with \SpecialChar LyX
33232  that you can do with \SpecialChar LaTeX
33233 .
33234  However, \SpecialChar LyX
33235  cannot support every \SpecialChar LaTeX
33236  feature directly.
33237  But you can always use \SpecialChar TeX
33238  Code.
33239  This chapter shows you some more special things you might want to use.
33240  For other special things you can do with figures, tables, floats, boxes
33241  and notes, have a look at the 
33242 \emph on
33243 Embedded
33244 \begin_inset space ~
33245 \end_inset
33246
33247 Objects
33248 \emph default
33249  manual.
33250 \change_unchanged
33251
33252 \end_layout
33253
33254 \end_body
33255 \end_document