]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
* UG - note about gnuplot from Tobias Hilbricht
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
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 hanging
42 initials
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \float_placement class
69 \float_alignment class
70 \paperfontsize 12
71 \spacing single
72 \use_hyperref true
73 \pdf_title "LyX's Additional Features manual"
74 \pdf_author "LyX Team"
75 \pdf_subject "LyX's additional features documentation"
76 \pdf_keywords "LyX, Documentation, Additional"
77 \pdf_bookmarks true
78 \pdf_bookmarksnumbered true
79 \pdf_bookmarksopen false
80 \pdf_bookmarksopenlevel 1
81 \pdf_breaklinks false
82 \pdf_pdfborder false
83 \pdf_colorlinks true
84 \pdf_backref false
85 \pdf_pdfusetitle false
86 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
87 \papersize a4
88 \use_geometry false
89 \use_package amsmath 1
90 \use_package amssymb 1
91 \use_package cancel 1
92 \use_package esint 1
93 \use_package mathdots 1
94 \use_package mathtools 1
95 \use_package mhchem 1
96 \use_package stackrel 1
97 \use_package stmaryrd 1
98 \use_package undertilde 1
99 \cite_engine basic
100 \cite_engine_type default
101 \biblio_style plain
102 \use_bibtopic false
103 \use_indices false
104 \paperorientation portrait
105 \suppress_date false
106 \justification true
107 \use_refstyle 0
108 \use_formatted_ref 0
109 \use_minted 0
110 \use_lineno 0
111 \notefontcolor #0000ff
112 \index Index
113 \shortcut idx
114 \color #008000
115 \end_index
116 \secnumdepth 3
117 \tocdepth 3
118 \paragraph_separation indent
119 \paragraph_indentation default
120 \is_math_indent 1
121 \math_indentation default
122 \math_numbering_side default
123 \quotes_style english
124 \dynamic_quotes 0
125 \papercolumns 1
126 \papersides 2
127 \paperpagestyle headings
128 \tablestyle default
129 \tracking_changes false
130 \output_changes false
131 \change_bars false
132 \postpone_fragile_content false
133 \html_math_output 0
134 \html_css_as_file 0
135 \html_be_strict true
136 \docbook_table_output 0
137 \docbook_mathml_prefix 1
138 \end_header
139
140 \begin_body
141
142 \begin_layout Title
143 Additional \SpecialChar LyX
144  Features
145 \end_layout
146
147 \begin_layout Subtitle
148 Version 2.4.x
149 \end_layout
150
151 \begin_layout Author
152 by the \SpecialChar LyX
153  Team
154 \begin_inset Foot
155 status collapsed
156
157 \begin_layout Plain Layout
158 \noindent
159 Principal maintainer of this file is
160 \noun on
161  Richard Kimberly Heck
162 \noun default
163 .
164  If you have comments or error corrections,
165  please send them to the \SpecialChar LyX
166  Documentation mailing list,
167  
168 \begin_inset Flex Code
169 status collapsed
170
171 \begin_layout Plain Layout
172 <lyx-docs@lists.lyx.org>
173 \end_layout
174
175 \end_inset
176
177 .
178 \end_layout
179
180 \end_inset
181
182
183 \end_layout
184
185 \begin_layout Standard
186 \begin_inset CommandInset toc
187 LatexCommand tableofcontents
188
189 \end_inset
190
191
192 \end_layout
193
194 \begin_layout Chapter
195 Introduction
196 \end_layout
197
198 \begin_layout Standard
199 This manual is essentially Part II of the 
200 \emph on
201 User's Guide\SpecialChar endofsentence
202
203 \emph default
204  The reason for separating the two documents is simple:
205  the 
206 \emph on
207 User's Guide
208 \emph default
209  is already quite lengthy,
210  and it contains information on all of the basic features one needs to know in order to prepare most documents.
211  However,
212  the \SpecialChar LyX
213  Team has worked to make \SpecialChar LyX
214  extensible through various configuration files and external packages.
215  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
216  package,
217  you can create a layout file (or module) for it without having to alter \SpecialChar LyX
218  itself.
219  We've already had contributions of several new features this way,
220  and some of them are documented here.
221  There are also some more `advanced' features,
222  such as how to control the presentation of bibliographies and how to work with multi-part documents,
223  that are not covered in the 
224 \emph on
225 User's Guide
226 \emph default
227  and are discussed here.
228 \end_layout
229
230 \begin_layout Standard
231 This manual also documents some special features,
232  like fax support and version control,
233  which require additional software to work properly.
234  There is also a chapter on \SpecialChar LyX
235 's support for HTML.
236  And lastly,
237  there's a chapter of \SpecialChar LaTeX
238  tools and tips,
239  things you can use to spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
240 .
241  After all,
242  \SpecialChar LyX
243  
244 \emph on
245 is
246 \emph default
247  only WYSIWYM and will only ever interface to some,
248  not all,
249  \SpecialChar LaTeX
250  features.
251 \end_layout
252
253 \begin_layout Standard
254 If you haven't read the 
255 \emph on
256 Introduction
257 \emph default
258  yet,
259  you are definitely in the wrong manual.
260  The 
261 \emph on
262 Introduction
263 \emph default
264  is the first place to go,
265  since it describes the notation and format of all of the manuals.
266  You should also be thoroughly familiar with the 
267 \emph on
268 User's Guide
269 \emph default
270  and all of the basic features of \SpecialChar LyX
271  before attempting to read this one.
272 \end_layout
273
274 \begin_layout Standard
275 Since many of the topics in this manual depend heavily on \SpecialChar LyX
276 's interaction with \SpecialChar LaTeX
277 ,
278  this first chapter covers the inner workings of \SpecialChar LyX
279  and how to direct \SpecialChar LyX
280  to generate exactly the \SpecialChar LaTeX
281  code you want.
282  It is obviously for more seasoned \SpecialChar LyX
283  users.
284 \end_layout
285
286 \begin_layout Chapter
287 \SpecialChar LyX
288  and \SpecialChar LaTeX
289
290 \end_layout
291
292 \begin_layout Section
293 How \SpecialChar LyX
294  Uses \SpecialChar LaTeX
295
296 \end_layout
297
298 \begin_layout Standard
299 This chapter is for both \SpecialChar TeX
300 -nicians and the \SpecialChar LaTeX
301 -curious.
302  In it,
303  we'll explain how \SpecialChar LyX
304  and \SpecialChar LaTeX
305  work together to produce printable output.
306  This is the only place in any of the manuals where we assume you know something about \SpecialChar LaTeX
307 .
308 \end_layout
309
310 \begin_layout Standard
311 At one time,
312  \SpecialChar LyX
313  was called a 
314 \begin_inset Quotes eld
315 \end_inset
316
317 WYSIWYM frontend to \SpecialChar LaTeX
318 ,
319 \begin_inset Quotes erd
320 \end_inset
321
322  but that's no longer true.
323  There are frontends to \SpecialChar LaTeX
324  out there.
325 \begin_inset Foot
326 status collapsed
327
328 \begin_layout Plain Layout
329 Some familar ones are \SpecialChar TeX
330 maker and kile,
331  on Linux,
332  and \SpecialChar TeX
333 shop,
334  OSX.
335  There are also the \SpecialChar LaTeX
336  modes for vi and emacs,
337  of course.
338 \end_layout
339
340 \end_inset
341
342  These are basically text editors with the ability to run \SpecialChar LaTeX
343  and mark any errors in the file you're editing.
344  Although \SpecialChar LyX
345  
346 \emph on
347 is
348 \emph default
349  an editor,
350  and it 
351 \emph on
352 does
353 \emph default
354  run \SpecialChar LaTeX
355 ,
356  and it also indicates errors in the file,
357  it also does much,
358  much more.
359  For one thing,
360  you don't need to know \SpecialChar LaTeX
361  to use \SpecialChar LyX
362  effectively.
363  And \SpecialChar LyX
364  has added its own extensions to \SpecialChar LaTeX
365 .
366  Try the following sometime:
367  select 
368 \family sans
369 Export\SpecialChar menuseparator
370 LaTeX
371 \family default
372  from the 
373 \family sans
374 File
375 \family default
376  menu (or 
377 \family sans
378 View\SpecialChar menuseparator
379 Source
380 \begin_inset space ~
381 \end_inset
382
383 Pane
384 \family default
385 ),
386  then look at the preamble of the resulting 
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 .tex
392 \end_layout
393
394 \end_inset
395
396  file.
397  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
398 .
399  These macros are defined automatically,
400  according to the features you use in the document.
401 \end_layout
402
403 \begin_layout Standard
404 There are several commands that automatically invoke \SpecialChar LaTeX
405 .
406  They are:
407 \end_layout
408
409 \begin_layout Itemize
410
411 \family sans
412 Document\SpecialChar menuseparator
413 View
414 \end_layout
415
416 \begin_layout Itemize
417
418 \family sans
419 Document\SpecialChar menuseparator
420 Update
421 \end_layout
422
423 \begin_layout Standard
424 They will only invoke \SpecialChar LaTeX
425  if the file has changed since the last time \SpecialChar LaTeX
426  was run.
427  
428 \end_layout
429
430 \begin_layout Standard
431 When \SpecialChar LyX
432  runs \SpecialChar LaTeX
433  on the file you're editing,
434  it performs these steps:
435 \end_layout
436
437 \begin_layout Enumerate
438 Convert the document to \SpecialChar LaTeX
439  and save to a file with the extension 
440 \begin_inset Flex Code
441 status collapsed
442
443 \begin_layout Plain Layout
444 .tex
445 \end_layout
446
447 \end_inset
448
449  in place of 
450 \begin_inset Flex Code
451 status collapsed
452
453 \begin_layout Plain Layout
454 .lyx
455 \end_layout
456
457 \end_inset
458
459 .
460 \end_layout
461
462 \begin_layout Enumerate
463 Run \SpecialChar LaTeX
464  on the 
465 \begin_inset Flex Code
466 status collapsed
467
468 \begin_layout Plain Layout
469 .tex
470 \end_layout
471
472 \end_inset
473
474  file (maybe several times),
475  and run any other commands (such as 
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 bibtex
481 \end_layout
482
483 \end_inset
484
485  or 
486 \begin_inset Flex Code
487 status collapsed
488
489 \begin_layout Plain Layout
490 makeindex
491 \end_layout
492
493 \end_inset
494
495 ) needed to compile the \SpecialChar LaTeX
496  file.
497 \end_layout
498
499 \begin_layout Enumerate
500 If there are any errors,
501  show the error log.
502 \end_layout
503
504 \begin_layout Standard
505 If you have run \SpecialChar LaTeX
506  using 
507 \family sans
508 View\SpecialChar menuseparator
509 DVI
510 \family default
511 ,
512  \SpecialChar LyX
513  then runs a DVI viewer to display the DVI-file.
514  If you have used 
515 \family sans
516 View\SpecialChar menuseparator
517 PostScript
518 \family default
519 ,
520  \SpecialChar LyX
521  performs further steps:
522 \end_layout
523
524 \begin_layout Enumerate
525 Run 
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 dvips
531 \end_layout
532
533 \end_inset
534
535  to convert the DVI file to PostScript.
536 \end_layout
537
538 \begin_layout Enumerate
539 Run a PostScript viewer,
540  such as 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 ghostview
546 \end_layout
547
548 \end_inset
549
550 ,
551  to display the PostScript file.
552 \end_layout
553
554 \begin_layout Standard
555 \SpecialChar LyX
556  does similar things when viewing,
557  or exporting,
558  other formats.
559 \end_layout
560
561 \begin_layout Section
562 Translating \SpecialChar LaTeX
563  files into \SpecialChar LyX
564
565 \end_layout
566
567 \begin_layout Standard
568 You can import a \SpecialChar LaTeX
569  file into \SpecialChar LyX
570  by using the 
571 \family sans
572 File\SpecialChar menuseparator
573 Import\SpecialChar menuseparator
574 LaTeX
575 \family default
576  command in \SpecialChar LyX
577 .
578  This will call a program named 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 tex2lyx
584 \end_layout
585
586 \end_inset
587
588  which will create a file 
589 \begin_inset Flex Code
590 status collapsed
591
592 \begin_layout Plain Layout
593 foo.lyx
594 \end_layout
595
596 \end_inset
597
598  from the file 
599 \begin_inset Flex Code
600 status collapsed
601
602 \begin_layout Plain Layout
603 foo.tex
604 \end_layout
605
606 \end_inset
607
608 .
609  \SpecialChar LyX
610  will then open that file.
611 \begin_inset Foot
612 status collapsed
613
614 \begin_layout Plain Layout
615 \begin_inset Flex Code
616 status collapsed
617
618 \begin_layout Plain Layout
619 tex2lyx
620 \end_layout
621
622 \end_inset
623
624  can also be run from the command line,
625  of course.
626 \end_layout
627
628 \end_inset
629
630
631 \end_layout
632
633 \begin_layout Standard
634 \begin_inset Flex Code
635 status collapsed
636
637 \begin_layout Plain Layout
638 tex2lyx
639 \end_layout
640
641 \end_inset
642
643  will translate most legal \SpecialChar LaTeX
644 ,
645  but not everything.
646  It will put things it doesn't understand into \SpecialChar TeX
647  code,
648  so after translating a file with 
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 tex2lyx
654 \end_layout
655
656 \end_inset
657
658 ,
659  you can look for \SpecialChar TeX
660  code and hand-edit it until it looks right.
661 \end_layout
662
663 \begin_layout Standard
664 If you don't know what \SpecialChar TeX
665  code is,
666  read the next section.
667 \end_layout
668
669 \begin_layout Section
670 \begin_inset CommandInset label
671 LatexCommand label
672 name "sec:Inserting-TeX-Code"
673
674 \end_inset
675
676 Inserting \SpecialChar TeX
677  Code into \SpecialChar LyX
678  Documents 
679 \end_layout
680
681 \begin_layout Standard
682 Anything you can do in \SpecialChar LaTeX
683  you can do in \SpecialChar LyX
684 ,
685  for a very simple reason:
686  You can always insert \SpecialChar TeX
687  code into any \SpecialChar LyX
688  document.
689  \SpecialChar LyX
690  cannot,
691  and will never be able to,
692  display every possible \SpecialChar LaTeX
693  construct.
694  If ever you need to insert \SpecialChar LaTeX
695  commands into your \SpecialChar LyX
696  document,
697  you can use the 
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 \SpecialChar TeX
703  Code
704 \end_layout
705
706 \end_inset
707
708  box,
709  which you can insert into your document with 
710 \family sans
711 Insert\SpecialChar menuseparator
712 TeX Code
713 \family default
714  or the keyboard shortcut 
715 \begin_inset Info
716 type  "shortcut"
717 arg   "ert-insert"
718 \end_inset
719
720 .
721 \end_layout
722
723 \begin_layout Standard
724 Here's an example of inserting \SpecialChar LaTeX
725  commands in a \SpecialChar LyX
726  document.
727  The code looks like this:
728 \end_layout
729
730 \begin_layout LyX-Code
731
732 \backslash
733 begin{tabular}{ll}
734 \begin_inset Newline newline
735 \end_inset
736
737
738 \backslash
739 begin{minipage}{5cm}
740 \begin_inset Newline newline
741 \end_inset
742
743 This is an example of a minipage environment.
744  You 
745 \begin_inset Newline newline
746 \end_inset
747
748 can put nearly everything in it,
749  even (non-floating) 
750 \begin_inset Newline newline
751 \end_inset
752
753 figures and tables.
754  
755 \begin_inset Newline newline
756 \end_inset
757
758
759 \backslash
760 end{minipage}
761 \begin_inset Newline newline
762 \end_inset
763
764 &
765 \begin_inset Newline newline
766 \end_inset
767
768
769 \backslash
770 begin{minipage}{5cm}
771 \begin_inset Newline newline
772 \end_inset
773
774
775 \backslash
776 begin{verbatim}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This ...
787  
788 \begin_inset Newline newline
789 \end_inset
790
791
792 \backslash
793 end{minipage}
794 \begin_inset Newline newline
795 \end_inset
796
797
798 \backslash
799 end{verbatim}
800 \begin_inset Newline newline
801 \end_inset
802
803
804 \backslash
805 end{minipage}
806 \begin_inset Newline newline
807 \end_inset
808
809
810 \backslash
811 end{tabular}
812 \end_layout
813
814 \begin_layout LyX-Code
815
816 \end_layout
817
818 \begin_layout Standard
819 The 
820 \begin_inset Flex Code
821 status collapsed
822
823 \begin_layout Plain Layout
824 \SpecialChar TeX
825  Code
826 \end_layout
827
828 \end_inset
829
830  box containing this text is directly after this paragraph.
831  Those of you reading the manual in \SpecialChar LyX
832  will only see the \SpecialChar TeX
833  code inset.
834  Those reading a printed version of the manuals will see the actual results:
835 \begin_inset VSpace bigskip
836 \end_inset
837
838
839 \end_layout
840
841 \begin_layout Standard
842 \begin_inset ERT
843 status open
844
845 \begin_layout Plain Layout
846
847
848 \backslash
849 begin{tabular}{ll}
850 \end_layout
851
852 \begin_layout Plain Layout
853
854
855 \backslash
856 begin{minipage}{5cm}
857 \end_layout
858
859 \begin_layout Plain Layout
860
861 This is an example of a minipage environment.
862  You can put nearly everything in it,
863  even (non-floating) figures and tables.
864  
865 \end_layout
866
867 \begin_layout Plain Layout
868
869
870 \backslash
871 end{minipage}
872 \end_layout
873
874 \begin_layout Plain Layout
875
876 &
877 \end_layout
878
879 \begin_layout Plain Layout
880
881
882 \backslash
883 begin{minipage}{5cm}
884 \end_layout
885
886 \begin_layout Plain Layout
887
888
889 \backslash
890 begin{verbatim}
891 \end_layout
892
893 \begin_layout Plain Layout
894
895
896 \backslash
897 begin{minipage}{5cm}
898 \end_layout
899
900 \begin_layout Plain Layout
901
902 This ...
903  
904 \end_layout
905
906 \begin_layout Plain Layout
907
908
909 \backslash
910 end{minipage}
911 \end_layout
912
913 \begin_layout Plain Layout
914
915
916 \backslash
917 end{verbatim}
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 end{minipage}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 end{tabular}
932 \end_layout
933
934 \end_inset
935
936
937 \begin_inset VSpace bigskip
938 \end_inset
939
940
941 \end_layout
942
943 \begin_layout Standard
944 In addition to using \SpecialChar TeX
945  code,
946  you can also create a separate file containing some complex \SpecialChar LaTeX
947  structure and then use 
948 \family sans
949 Insert\SpecialChar menuseparator
950 Child
951 \begin_inset space ~
952 \end_inset
953
954 Document 
955 \family default
956 to include your file (you should select the type 
957 \begin_inset Flex Code
958 status collapsed
959
960 \begin_layout Plain Layout
961 Input
962 \end_layout
963
964 \end_inset
965
966 ).
967  We recommend that you only do this if you have a 
968 \begin_inset Flex Code
969 status collapsed
970
971 \begin_layout Plain Layout
972 .tex
973 \end_layout
974
975 \end_inset
976
977  file which you 
978 \emph on
979 know
980 \emph default
981  works already.
982  Otherwise,
983  you'll have a big job tracking down \SpecialChar LaTeX
984  errors.
985 \end_layout
986
987 \begin_layout Standard
988 There are a few last points to emphasize:
989 \end_layout
990
991 \begin_layout Itemize
992 \SpecialChar LyX
993  
994 \emph on
995 does not
996 \emph default
997  check if your \SpecialChar LaTeX
998  code is correct.
999 \end_layout
1000
1001 \begin_layout Itemize
1002 Beware of reinventing the wheel.
1003 \end_layout
1004
1005 \begin_layout Standard
1006 On that last point,
1007  \SpecialChar LyX
1008  does have quite a few features tucked into it,
1009  and more are coming.
1010  Be sure to check the manuals to make sure that \SpecialChar LyX
1011  doesn't have such-and-such feature before you decide you have to do it by hand.
1012  Moreover,
1013  there are numerous \SpecialChar LaTeX
1014  packages out there to do all sorts of things,
1015  from labels to envelopes to fancy multipage tables.
1016  Check out 
1017 \begin_inset CommandInset href
1018 LatexCommand href
1019 name "CTAN"
1020 target "https://www.ctan.org/"
1021 literal "false"
1022
1023 \end_inset
1024
1025  for details.
1026 \end_layout
1027
1028 \begin_layout Standard
1029 If you do need to do some wild and fancy things within your document,
1030  be sure to check out a good \SpecialChar LaTeX
1031  book for assistance.
1032  There are a number of them listed in the bibliography of the 
1033 \emph on
1034 User's Guide
1035 \emph default
1036 .
1037 \end_layout
1038
1039 \begin_layout Section
1040 \SpecialChar LyX
1041  and the \SpecialChar LaTeX
1042  Preamble
1043 \end_layout
1044
1045 \begin_layout Subsection
1046 About the \SpecialChar LaTeX
1047  Preamble
1048 \end_layout
1049
1050 \begin_layout Standard
1051 If you already know \SpecialChar LaTeX
1052 ,
1053  there is no need to explain here what the preamble is good for.
1054  If you don't,
1055  the following will give you some ideas—
1056 we recommend again that you consult a \SpecialChar LaTeX
1057  book for further information.
1058  In any case,
1059  you should read the points below,
1060  because they explain what you can do and what you don't need to do in the \SpecialChar LaTeX
1061  preamble of a \SpecialChar LyX
1062  document.
1063 \end_layout
1064
1065 \begin_layout Standard
1066 The \SpecialChar LaTeX
1067  preamble comes at the very beginning of a document,
1068  
1069 \emph on
1070 before
1071 \emph default
1072  the text.
1073  It serves to:
1074 \end_layout
1075
1076 \begin_layout Itemize
1077 Declare the document class.
1078  
1079 \begin_inset Newline newline
1080 \end_inset
1081
1082 \SpecialChar LyX
1083  already does this for you.
1084  If you're a seasoned \SpecialChar LaTeX
1085 -nician,
1086  and you have a custom document class you want to use,
1087  check out the 
1088 \emph on
1089 Customization Manual
1090 \emph default
1091  for information on how to make \SpecialChar LyX
1092  interface to it.
1093 \end_layout
1094
1095 \begin_layout Itemize
1096 Declare the usage of packages.
1097  
1098 \begin_inset Newline newline
1099 \end_inset
1100
1101 \SpecialChar LaTeX
1102  packages provide special commands,
1103  which are only available within a document when the package has been declared in the preamble.
1104  In addition to providing special commands,
1105  the inclusion of a package can change the document.
1106  For example,
1107  the package 
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 indentfirst
1113 \end_layout
1114
1115 \end_inset
1116
1117  forces all paragraphs to be indented.
1118  There are other packages for labels,
1119  envelopes,
1120  margins,
1121  etc.
1122  
1123 \end_layout
1124
1125 \begin_layout Itemize
1126 Set counters,
1127  variables,
1128  lengths and widths.
1129  
1130 \begin_inset Newline newline
1131 \end_inset
1132
1133 There are several \SpecialChar LaTeX
1134  counters and variables that 
1135 \emph on
1136 must
1137 \emph default
1138  be set globally from within the preamble in order to have the desired effect.
1139  (There are variables that you can set and reset inside the document,
1140  too.) Margins are a good example of something that must be set in the preamble.
1141  Another example is the label format for lists.
1142  You can actually set these just about anywhere,
1143  but it's best to do it just once,
1144  inside the preamble.
1145 \end_layout
1146
1147 \begin_layout Itemize
1148 Declare user defined commands (with 
1149 \begin_inset Flex Code
1150 status collapsed
1151
1152 \begin_layout Plain Layout
1153
1154 \backslash
1155 newcommand
1156 \end_layout
1157
1158 \end_inset
1159
1160  or 
1161 \begin_inset Flex Code
1162 status collapsed
1163
1164 \begin_layout Plain Layout
1165
1166 \backslash
1167 renewcommand
1168 \end_layout
1169
1170 \end_inset
1171
1172 ).
1173 \begin_inset Newline newline
1174 \end_inset
1175
1176 These are abbreviations for \SpecialChar LaTeX
1177  commands which appear very often inside a document.
1178  Although the preamble is a good place to declare such commands,
1179  they 
1180 \emph on
1181 can
1182 \emph default
1183  be declared anywhere (before they are used for the first time,
1184  of course).
1185  This can be useful if there is a lot of raw \SpecialChar LaTeX
1186  code in your document,
1187  which normally should not be the case.
1188 \end_layout
1189
1190 \begin_layout Standard
1191 \SpecialChar LyX
1192  adds its own set of definitions to the preamble of the 
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 .tex
1198 \end_layout
1199
1200 \end_inset
1201
1202  file it produces.
1203  This makes \SpecialChar LaTeX
1204  files generated by \SpecialChar LyX
1205  portable.
1206 \end_layout
1207
1208 \begin_layout Subsection
1209 Changing the Preamble
1210 \end_layout
1211
1212 \begin_layout Standard
1213 The commands which \SpecialChar LyX
1214  adds to the preamble of a \SpecialChar LaTeX
1215  file are fixed;
1216  you can't change them without patching \SpecialChar LyX
1217  itself.
1218  You can,
1219  however,
1220  add your own stuff to the preamble by selecting 
1221 \begin_inset Flex Noun
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 \SpecialChar LaTeX
1226
1227 \begin_inset space ~
1228 \end_inset
1229
1230 Preamble
1231 \end_layout
1232
1233 \end_inset
1234
1235  in the 
1236 \family sans
1237 Document\SpecialChar menuseparator
1238 Settings
1239 \family default
1240  dialog.
1241  \SpecialChar LyX
1242  adds anything in the 
1243 \begin_inset Flex Noun
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 Preamble
1248 \end_layout
1249
1250 \end_inset
1251
1252  dialog to its own built-in preamble.
1253  Before adding your own declarations in the preamble,
1254  you should make sure that \SpecialChar LyX
1255  doesn't already support what you want to do.
1256  (Remember what we said about reinventing the wheel?) Also,
1257  
1258 \emph on
1259 make sure your preamble code is correct
1260 \emph default
1261 .
1262  \SpecialChar LyX
1263  doesn't check it for you.
1264  If there is an error,
1265  you're likely to get an error like 
1266 \begin_inset Quotes eld
1267 \end_inset
1268
1269
1270 \begin_inset Flex Code
1271 status collapsed
1272
1273 \begin_layout Plain Layout
1274 Missing 
1275 \backslash
1276 begin{document}
1277 \end_layout
1278
1279 \end_inset
1280
1281
1282 \begin_inset Quotes erd
1283 \end_inset
1284
1285 .
1286  If you see this error,
1287  check your preamble.
1288 \end_layout
1289
1290 \begin_layout Subsection
1291 Examples
1292 \end_layout
1293
1294 \begin_layout Standard
1295 Here are some examples of what you can add to a preamble,
1296  and what they do.
1297 \end_layout
1298
1299 \begin_layout Subsubsection
1300 Example #1:
1301  Offsets
1302 \end_layout
1303
1304 \begin_layout Standard
1305 There are two variables under \SpecialChar LaTeX
1306  that control page position:
1307  
1308 \begin_inset Flex Code
1309 status collapsed
1310
1311 \begin_layout Plain Layout
1312
1313 \backslash
1314 hoffset
1315 \end_layout
1316
1317 \end_inset
1318
1319  and 
1320 \begin_inset Flex Code
1321 status collapsed
1322
1323 \begin_layout Plain Layout
1324
1325 \backslash
1326 voffset
1327 \end_layout
1328
1329 \end_inset
1330
1331 .
1332  Their names should be self-explanatory.
1333  These variables are useful if you think for a moment about computer labels.
1334  Sometimes,
1335  the size of a print medium and the area of the medium that you can actually print on aren't the same.
1336  This is where 
1337 \begin_inset Flex Code
1338 status collapsed
1339
1340 \begin_layout Plain Layout
1341
1342 \backslash
1343 hoffset
1344 \end_layout
1345
1346 \end_inset
1347
1348  and 
1349 \begin_inset Flex Code
1350 status collapsed
1351
1352 \begin_layout Plain Layout
1353
1354 \backslash
1355 voffset
1356 \end_layout
1357
1358 \end_inset
1359
1360  come in.
1361 \end_layout
1362
1363 \begin_layout Standard
1364 The default values for 
1365 \begin_inset Flex Code
1366 status collapsed
1367
1368 \begin_layout Plain Layout
1369
1370 \backslash
1371 hoffset
1372 \end_layout
1373
1374 \end_inset
1375
1376  and 
1377 \begin_inset Flex Code
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381
1382 \backslash
1383 voffset
1384 \end_layout
1385
1386 \end_inset
1387
1388  are both 0
1389 \begin_inset space \thinspace{}
1390 \end_inset
1391
1392 points,
1393  i.
1394 \begin_inset space \thinspace{}
1395 \end_inset
1396
1397 e.
1398 \begin_inset space \space{}
1399 \end_inset
1400
1401 the page isn't shifted.
1402  Unfortunately,
1403  some DVI drivers always seem to shift the page.
1404  We have no idea why,
1405  or why the sysadmin hasn't fixed such behavior.
1406  If you're using \SpecialChar LyX
1407  on a system that you don't personally maintain,
1408  and your sysadmin is a doofus,
1409  
1410 \begin_inset Flex Code
1411 status collapsed
1412
1413 \begin_layout Plain Layout
1414
1415 \backslash
1416 hoffset
1417 \end_layout
1418
1419 \end_inset
1420
1421  and 
1422 \begin_inset Flex Code
1423 status collapsed
1424
1425 \begin_layout Plain Layout
1426
1427 \backslash
1428 voffset
1429 \end_layout
1430
1431 \end_inset
1432
1433  can save the day.
1434  Suppose your left and top margins are always 0.5
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 inches too big.
1439  You can add this to the preamble:
1440 \end_layout
1441
1442 \begin_layout LyX-Code
1443
1444 \backslash
1445 setlength{
1446 \backslash
1447 hoffset}{-0.5 in}
1448 \end_layout
1449
1450 \begin_layout LyX-Code
1451
1452 \backslash
1453 setlength{
1454 \backslash
1455 voffset}{-0.5 in}
1456 \end_layout
1457
1458 \begin_layout Standard
1459 and your margins should now be correct.
1460 \end_layout
1461
1462 \begin_layout Subsubsection
1463 Example #2:
1464  Labels
1465 \end_layout
1466
1467 \begin_layout Standard
1468 Speaking of labels,
1469  suppose you wanted to print out a bunch of address labels.
1470  There's a rather nice package,
1471  available at your nearest CTAN archive,
1472  for printing sheets of labels:
1473  
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 labels.sty
1479 \end_layout
1480
1481 \end_inset
1482
1483 .
1484  Now,
1485  your system may not have this package installed by default.
1486  We leave that up to you to check.
1487  You'll also want to read the documentation for it;
1488  we're not going to do that for you.
1489  Since this is an example,
1490  however,
1491  we'll give you an example of how you use this package.
1492 \end_layout
1493
1494 \begin_layout Standard
1495 First,
1496  make sure you're using the 
1497 \begin_inset Flex Code
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 article
1502 \end_layout
1503
1504 \end_inset
1505
1506  document class.
1507  Next,
1508  you need to put the following in your preamble:
1509 \end_layout
1510
1511 \begin_layout LyX-Code
1512
1513 \backslash
1514 usepackage{labels}
1515 \end_layout
1516
1517 \begin_layout LyX-Code
1518
1519 \backslash
1520 LabelCols=3
1521 \end_layout
1522
1523 \begin_layout LyX-Code
1524
1525 \backslash
1526 LabelRows=7
1527 \end_layout
1528
1529 \begin_layout LyX-Code
1530
1531 \backslash
1532 LeftBorder=8mm
1533 \end_layout
1534
1535 \begin_layout LyX-Code
1536
1537 \backslash
1538 RightBorder=8mm
1539 \end_layout
1540
1541 \begin_layout LyX-Code
1542
1543 \backslash
1544 TopBorder=9mm
1545 \end_layout
1546
1547 \begin_layout LyX-Code
1548
1549 \backslash
1550 BottomBorder=2mm
1551 \end_layout
1552
1553 \begin_layout Standard
1554 This sets things up for Avery label sheets,
1555  stock #5360.
1556  You're now ready to print labels,
1557  but you'll need to insert \SpecialChar LaTeX
1558  code,
1559  placing the commands 
1560 \begin_inset Flex Code
1561 status collapsed
1562
1563 \begin_layout Plain Layout
1564
1565 \backslash
1566 begin{labels}
1567 \end_layout
1568
1569 \end_inset
1570
1571  and 
1572 \begin_inset Flex Code
1573 status collapsed
1574
1575 \begin_layout Plain Layout
1576
1577 \backslash
1578 end{labels}
1579 \end_layout
1580
1581 \end_inset
1582
1583  around each label text.
1584  This and other special features of 
1585 \begin_inset Flex Code
1586 status collapsed
1587
1588 \begin_layout Plain Layout
1589 labels.sty
1590 \end_layout
1591
1592 \end_inset
1593
1594  are explained in its documentation.
1595 \end_layout
1596
1597 \begin_layout Standard
1598 Someday,
1599  someone may write a \SpecialChar LyX
1600  layout file to support this package directly.
1601  Maybe that someone is you.
1602 \end_layout
1603
1604 \begin_layout Subsubsection
1605 Example #3:
1606  Paragraph Indentation
1607 \end_layout
1608
1609 \begin_layout Standard
1610 Americans are trained to indent the first line of 
1611 \emph on
1612 every
1613 \emph default
1614  paragraph.
1615  As with all of their other weird quirks,
1616  most Americans will whine and moan until they can have their way and indent the first line of all paragraphs.
1617  (Yes,
1618  we're joking.
1619  (We are?) 
1620 \emph on
1621 Yeah
1622 \emph default
1623 ,
1624  we are.)
1625 \end_layout
1626
1627 \begin_layout Standard
1628 Of course,
1629  this behavior isn't standard typography.
1630  In books,
1631  you typically only indent the first line of a paragraph 
1632 \emph on
1633 if
1634 \emph default
1635  it follows another one.
1636  The idea behind indenting the first line of a paragraph is to distinguish neighboring paragraphs from one another.
1637  If there is no previous paragraph—
1638 for example,
1639  if it follows a figure or is the first paragraph in a section—
1640 then there is no need for indentation.
1641  
1642 \end_layout
1643
1644 \begin_layout Standard
1645 If you're a typical American (we're still joking!),
1646  though,
1647  you don't care about such esoteric things;
1648  you want your indentation!
1649  Add this to the preamble:
1650 \end_layout
1651
1652 \begin_layout LyX-Code
1653
1654 \backslash
1655 usepackage{indentfirst}
1656 \end_layout
1657
1658 \begin_layout Standard
1659 If your \SpecialChar TeX
1660  distribution isn't braindead,
1661  you'll have this package,
1662  and all of your paragraphs will get the indentation the Founding Fathers intended they should have.
1663 \end_layout
1664
1665 \begin_layout Subsubsection
1666 Example #4:
1667  This Document
1668 \end_layout
1669
1670 \begin_layout Standard
1671 You can also check out the preamble of this document to get an idea of some of the advanced things you can do.
1672 \end_layout
1673
1674 \begin_layout Section
1675 \SpecialChar LyX
1676  and \SpecialChar LaTeX
1677  Errors
1678 \end_layout
1679
1680 \begin_layout Standard
1681 When \SpecialChar LyX
1682  calls \SpecialChar LaTeX
1683 ,
1684  it tells \SpecialChar LaTeX
1685  to blithely ignore any errors and keep going.
1686  It then uses the logfile from the \SpecialChar LaTeX
1687  run to do a post-mortem.
1688  After analyzing the logfile,
1689  \SpecialChar LyX
1690  displays a dialog listing the errors.
1691  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1692  file where the error occurred.
1693 \begin_inset Foot
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 Well,
1698  usually.
1699  Analyzing the logfile is a tough job,
1700  and \SpecialChar LyX
1701  doesn't always go to the right line.
1702  There are also cases where \SpecialChar LaTeX
1703  reports the error on one line,
1704  but the actual error is earlier.
1705  This is not unlike forgetting a closing brace in a program:
1706  You'll get an error,
1707  but only later.
1708 \end_layout
1709
1710 \end_inset
1711
1712
1713 \end_layout
1714
1715 \begin_layout Standard
1716 Some folks also like to look at the log file directly:
1717  It is available from 
1718 \family sans
1719 Document\SpecialChar menuseparator
1720 LaTeX
1721 \begin_inset space ~
1722 \end_inset
1723
1724 Log
1725 \family default
1726 .
1727  There are some fairly common error messages and warnings.
1728  We'll cover those here.
1729  You should look at a good \SpecialChar LaTeX
1730  book for a complete listing.
1731 \end_layout
1732
1733 \begin_layout Itemize
1734 \begin_inset Flex Code
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 LaTeX Warning
1739 \end_layout
1740
1741 \end_inset
1742
1743
1744 \begin_inset Newline newline
1745 \end_inset
1746
1747 Anything beginning with these words is a warning message for the purpose of 
1748 \begin_inset Quotes eld
1749 \end_inset
1750
1751 debugging
1752 \begin_inset Quotes erd
1753 \end_inset
1754
1755  the \SpecialChar LaTeX
1756  code itself.
1757  You'll get messages like this if you added or changed cross-references or bibliography entries,
1758  in which case,
1759  \SpecialChar LaTeX
1760  is trying to tell you that you need to make another run.
1761  You can by-and-large ignore these.
1762 \end_layout
1763
1764 \begin_layout Itemize
1765 \begin_inset Flex Code
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 LaTeX Font Warning
1770 \end_layout
1771
1772 \end_inset
1773
1774
1775 \begin_inset Newline newline
1776 \end_inset
1777
1778 Another warning message,
1779  this time about fonts which \SpecialChar LaTeX
1780  couldn't find.
1781  The rest of the message will often say something about a replacement font that \SpecialChar LaTeX
1782  used.
1783  You can safely ignore these,
1784  too.
1785 \end_layout
1786
1787 \begin_layout Itemize
1788 \begin_inset Flex Code
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 Overfull 
1793 \backslash
1794 hbox
1795 \end_layout
1796
1797 \end_inset
1798
1799
1800 \begin_inset Newline newline
1801 \end_inset
1802
1803 \SpecialChar LaTeX
1804  absolutely 
1805 \emph on
1806 loves
1807 \emph default
1808  to spew these out.
1809  It seems to generate at least one of these messages for just about any document you write.
1810  They are warnings about lines that were too long and run past the right margin.
1811  This happens if \SpecialChar LaTeX
1812  does not find a reasonable way to break the lines (notoriously often with typewriter font,
1813  since this does not allow for automatic break points).
1814  In many cases,
1815  this is unnoticeable in the final output.
1816  (It can be just a point or two.) Sometimes,
1817  however,
1818  the lines run rather visibly into the margin;
1819  something you will not want to have in your final print.
1820  
1821 \begin_inset Newline newline
1822 \end_inset
1823
1824 There are several global ways to try to minimize the overfull lines.
1825  Clicking 
1826 \family sans
1827 Enable micro-typographic extensions
1828 \family default
1829  in 
1830 \family sans
1831 Document\SpecialChar menuseparator
1832 Settings\SpecialChar menuseparator
1833 Fonts
1834 \family default
1835  might already improve things a lot.
1836  Furthermore,
1837  \SpecialChar LaTeX
1838  code such as the following in 
1839 \family sans
1840 Document\SpecialChar menuseparator
1841 Settings\SpecialChar menuseparator
1842 Preamble
1843 \family default
1844  usually reduces the overfull lines drastically (we use this in the preamble of this document):
1845 \end_layout
1846
1847 \begin_deeper
1848 \begin_layout LyX-Code
1849
1850 \backslash
1851 tolerance 1414
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855
1856 \backslash
1857 hbadness 1414
1858 \begin_inset Newline newline
1859 \end_inset
1860
1861
1862 \backslash
1863 emergencystretch 1.5em
1864 \begin_inset Newline newline
1865 \end_inset
1866
1867
1868 \backslash
1869 hfuzz 0.3pt
1870 \end_layout
1871
1872 \begin_layout Standard
1873 In some cases,
1874  however,
1875  you eventually have to rewrite the text to get the line breaking right.
1876 \begin_inset Foot
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 For more information,
1881  see 
1882 \begin_inset Flex URL
1883 status open
1884
1885 \begin_layout Plain Layout
1886
1887 http://www.tex.ac.uk/FAQ-overfull.html
1888 \end_layout
1889
1890 \end_inset
1891
1892
1893 \end_layout
1894
1895 \end_inset
1896
1897
1898 \end_layout
1899
1900 \begin_layout Standard
1901 In any case,
1902  you should check the respective lines,
1903  at least for the final version of your document.
1904  Your eyes will tell you if there's a problem with something that's too wide.
1905 \begin_inset Foot
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 You can also enable the `draft' option in 
1910 \family sans
1911 Document\SpecialChar menuseparator
1912 Settings
1913 \family default
1914 ,
1915  and then \SpecialChar LaTeX
1916  will draw a black box in the margin of lines that are overfull.
1917 \end_layout
1918
1919 \end_inset
1920
1921  
1922 \end_layout
1923
1924 \end_deeper
1925 \begin_layout Itemize
1926 \begin_inset Flex Code
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 Underfull 
1931 \backslash
1932 hbox
1933 \end_layout
1934
1935 \end_inset
1936
1937
1938 \begin_inset Newline newline
1939 \end_inset
1940
1941 Not quite as common as its cousin.
1942  This happens again if \SpecialChar LaTeX
1943  does not find a reasonable break point and consequently generates too loose lines.
1944  As with the overfull lines,
1945  you should check if this is a visible problem.
1946 \end_layout
1947
1948 \begin_layout Itemize
1949 \begin_inset Flex Code
1950 status collapsed
1951
1952 \begin_layout Plain Layout
1953 Overfull 
1954 \backslash
1955 vbox
1956 \end_layout
1957
1958 \end_inset
1959
1960  and 
1961 \begin_inset Flex Code
1962 status collapsed
1963
1964 \begin_layout Plain Layout
1965 Underfull 
1966 \backslash
1967 vbox
1968 \end_layout
1969
1970 \end_inset
1971
1972
1973 \begin_inset Newline newline
1974 \end_inset
1975
1976 Warnings about troubles breaking the page.
1977  Once again,
1978  just look at the output.
1979  Your eyes will tell you where something has gone wrong.
1980 \end_layout
1981
1982 \begin_layout Itemize
1983 \begin_inset Flex Code
1984 status collapsed
1985
1986 \begin_layout Plain Layout
1987 LaTeX Error:
1988  File 
1989 \begin_inset Quotes els
1990 \end_inset
1991
1992 Xxxx
1993 \begin_inset Quotes ers
1994 \end_inset
1995
1996  not found
1997 \end_layout
1998
1999 \end_inset
2000
2001
2002 \begin_inset Newline newline
2003 \end_inset
2004
2005 The file 
2006 \begin_inset Quotes eld
2007 \end_inset
2008
2009 Xxxx
2010 \begin_inset Quotes erd
2011 \end_inset
2012
2013  isn't installed on this system.
2014  This usually appears because some package your document needs isn't installed.
2015  If you didn't touch the preamble or didn't use the 
2016 \begin_inset Flex Code
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020
2021 \backslash
2022 usepackage{}
2023 \end_layout
2024
2025 \end_inset
2026
2027  command,
2028  then one of the packages \SpecialChar LyX
2029  tried to load is missing.
2030  Use 
2031 \family sans
2032 Help\SpecialChar menuseparator
2033 LaTeX Configuration
2034 \family default
2035  to get a list of packages that \SpecialChar LyX
2036  knows about.
2037  This file is updated whenever you reconfigure \SpecialChar LyX
2038  (using 
2039 \family sans
2040 Tools\SpecialChar menuseparator
2041 Reconfigure
2042 \family default
2043 ) and tells you which packages have been detected and what they do.
2044 \begin_inset Newline newline
2045 \end_inset
2046
2047 If you did 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 and the package in question isn't installed,
2060  then you'll need to install it yourself.
2061 \end_layout
2062
2063 \begin_layout Itemize
2064 \begin_inset Flex Code
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 LaTeX Error:
2069  Unknown option
2070 \end_layout
2071
2072 \end_inset
2073
2074
2075 \begin_inset Newline newline
2076 \end_inset
2077
2078 Error messages beginning with this are trying to tell you that you specified a bad or undefined option to a package.
2079  Check the package's documentation.
2080 \end_layout
2081
2082 \begin_layout Itemize
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 Undefined control sequence
2088 \end_layout
2089
2090 \end_inset
2091
2092
2093 \begin_inset Newline newline
2094 \end_inset
2095
2096 If you've inserted \SpecialChar LaTeX
2097  code into your document,
2098  but made a typo,
2099  you'll get one of these.
2100  You may have forgotten to load a package.
2101  In any case,
2102  this error message usually means that you used an undefined command.
2103  
2104 \end_layout
2105
2106 \begin_layout Standard
2107 There are other error and warning messages.
2108  Some are self-explanatory.
2109  These are usually \SpecialChar LaTeX
2110  messages.
2111  Others are downright cryptic.
2112  These are usually \SpecialChar TeX
2113  error messages,
2114  and we really have 
2115 \emph on
2116 no clue
2117 \emph default
2118  what they mean or how to decipher them.
2119  No-one does.
2120 \end_layout
2121
2122 \begin_layout Standard
2123 There's a general sequence you should follow if you get error messages:
2124 \end_layout
2125
2126 \begin_layout Enumerate
2127 Look at the \SpecialChar LaTeX
2128  code you inserted for typos.
2129 \end_layout
2130
2131 \begin_layout Enumerate
2132 If there are no typos,
2133  check that you used the command(s) correctly.
2134 \end_layout
2135
2136 \begin_layout Enumerate
2137 If you get a bunch of error boxes piled up at the very top of the document—
2138 and especially if you see a 
2139 \begin_inset Quotes eld
2140 \end_inset
2141
2142
2143 \begin_inset Flex Code
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 Missing 
2148 \backslash
2149 begin{document}
2150 \end_layout
2151
2152 \end_inset
2153
2154
2155 \begin_inset Quotes erd
2156 \end_inset
2157
2158  error—
2159 it means that there are errors in the preamble.
2160  Start debugging your preamble.
2161 \end_layout
2162
2163 \begin_layout Enumerate
2164 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2165  code to the document,
2166  the first suspect is your \SpecialChar LaTeX
2167  distribution itself.
2168  Check for missing packages and install them.
2169 \end_layout
2170
2171 \begin_layout Enumerate
2172 Okay,
2173  so there are no missing packages.
2174  Did you use any of the fine-tuning options in \SpecialChar LyX
2175 ?
2176  Specifically,
2177  did you 
2178 \emph on
2179 misuse
2180 \emph default
2181  any of them,
2182  like trying to manually insert lots of 
2183 \begin_inset Flex Code
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187 Non-Breaking
2188 \begin_inset space ~
2189 \end_inset
2190
2191 Spaces
2192 \end_layout
2193
2194 \end_inset
2195
2196 ,
2197  
2198 \begin_inset Flex Code
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 Linebreaks
2203 \end_layout
2204
2205 \end_inset
2206
2207 ,
2208  or 
2209 \begin_inset Flex Code
2210 status collapsed
2211
2212 \begin_layout Plain Layout
2213 Pagebreaks
2214 \end_layout
2215
2216 \end_inset
2217
2218 ?
2219  Did you try to kludge something together with these instead of using the appropriate paragraph environment?
2220 \end_layout
2221
2222 \begin_layout Enumerate
2223 All right,
2224  you didn't use any of the fine-tuning options,
2225  you played by the rules.
2226  Did you try to pull a fancy maneuver?
2227  Did you do something funky inside a table or an equation,
2228  like inserting a graphic into a table cell?
2229 \end_layout
2230
2231 \begin_layout Enumerate
2232 Do you have long sections of text where \SpecialChar LaTeX
2233  cannot find a place to break a line?
2234  By default,
2235  \SpecialChar LaTeX
2236  is rather strict about how much extra inter-word spacing it will add in order to break a line.
2237  Preferably,
2238  you should rework the paragraph to avoid the problem.
2239 \end_layout
2240
2241 \begin_layout Enumerate
2242 Did you go overboard with the nesting?
2243  \SpecialChar LyX
2244  (currently) doesn't check to make sure you're in the limits for nesting environments.
2245  If you nested a bunch of environments to the 
2246 \begin_inset Formula $17^{\mathrm{th}}$
2247 \end_inset
2248
2249  level,
2250  that's the problem.
2251  (The limit in \SpecialChar LaTeX
2252  is five.)
2253 \end_layout
2254
2255 \begin_layout Enumerate
2256 Okay,
2257  you didn't get any error messages,
2258  but your output looks awful.
2259  If you have a table or figure that's too wide or long for the page,
2260  you need to:
2261 \end_layout
2262
2263 \begin_deeper
2264 \begin_layout Enumerate
2265 rescale the figure so it fits.
2266 \end_layout
2267
2268 \begin_layout Enumerate
2269 trim down the table so it fits.
2270 \end_layout
2271
2272 \end_deeper
2273 \begin_layout Enumerate
2274 If something else is wrong with the output,
2275  and you didn't try to pull anything fancy or kludge the fine-tuning options,
2276  we're not sure what's wrong.
2277 \end_layout
2278
2279 \begin_layout Standard
2280 If all this doesn't help—
2281 well,
2282  then 
2283 \emph on
2284 perhaps
2285 \emph default
2286  you might have found a bug in \SpecialChar LyX
2287 \SpecialChar ldots
2288 .
2289 \end_layout
2290
2291 \begin_layout Chapter
2292 Document classes
2293 \end_layout
2294
2295 \begin_layout Standard
2296 As explained in the 
2297 \emph on
2298 User's Guide
2299 \emph default
2300 ,
2301  \SpecialChar LaTeX
2302  originally offered four standard document classes,
2303  article,
2304  report,
2305  book and letter,
2306  but individuals and organizations,
2307  most notably the American Mathematical Society in the early days,
2308  have made many contributions to extending the range of document classes.
2309  In this chapter we summarize the main externally maintained classes,
2310  some of which are marked “Unavailable:” in the pull-down 
2311 \family sans
2312 Document
2313 \begin_inset space ~
2314 \end_inset
2315
2316
2317 \bar under
2318 c
2319 \bar default
2320 lass
2321 \family default
2322  list in the 
2323 \family sans
2324 \bar under
2325 D
2326 \bar default
2327 ocument\SpecialChar menuseparator
2328
2329 \bar under
2330 S
2331 \bar default
2332 ettings\SpecialChar menuseparator
2333 Document
2334 \begin_inset space ~
2335 \end_inset
2336
2337 class
2338 \family default
2339  dialog and which you will need to install as described in the 
2340 \emph on
2341 Installing New Document Classes
2342 \emph default
2343  chapter of the 
2344 \emph on
2345 Customization
2346 \emph default
2347  manual if you want to use them.
2348 \end_layout
2349
2350 \begin_layout Section
2351 \begin_inset CommandInset label
2352 LatexCommand label
2353 name "sec:Collections"
2354
2355 \end_inset
2356
2357 Collections
2358 \end_layout
2359
2360 \begin_layout Subsection
2361 \begin_inset CommandInset label
2362 LatexCommand label
2363 name "subsec:AMS-LaTeX-(American-Mathematical"
2364
2365 \end_inset
2366
2367 AMS-\SpecialChar LaTeX
2368  (American Mathematical Society)
2369 \end_layout
2370
2371 \begin_layout Standard
2372 The \SpecialChar LyX
2373  supported document classes 
2374 \family sans
2375 American Mathematical Society (AMS) 
2376 \family default
2377 in category 
2378 \family sans
2379 Articles
2380 \family default
2381  and 
2382 \family sans
2383 American Mathematical Society (AMS)
2384 \family default
2385  in category 
2386 \family sans
2387 Books
2388 \family default
2389  are maintained by the Society;
2390  use of their features is described in the Math manual and on their website 
2391 \begin_inset Flex URL
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395
2396 http://www.ams.org/publications/authors/tex/amslatex
2397 \end_layout
2398
2399 \end_inset
2400
2401 .
2402  The following summary was originally provided by 
2403 \noun on
2404 David Johnson
2405 \noun default
2406  and updated by 
2407 \noun on
2408 Richard Kimberly Heck
2409 \noun default
2410  and the \SpecialChar LyX
2411  Team
2412 \noun on
2413 .
2414 \end_layout
2415
2416 \begin_layout Standard
2417 \begin_inset VSpace bigskip
2418 \end_inset
2419
2420
2421 \end_layout
2422
2423 \begin_layout Standard
2424 \noindent
2425 The AMS \SpecialChar LaTeX
2426  layouts are set up to conform to suggested styles for mathematical papers to be submitted to American Mathematical Society publications.
2427  The layouts are not tailored to a specific journal,
2428  but easily can be.
2429  You should refer to the AMS documentation for specific instructions for each journal (usually it will entail only changing a single line in the \SpecialChar TeX
2430  output).
2431  That documentation is available on the Web at 
2432 \begin_inset Flex URL
2433 status open
2434
2435 \begin_layout Plain Layout
2436
2437 http://www.ams.org
2438 \end_layout
2439
2440 \end_inset
2441
2442  or by ftp at 
2443 \begin_inset Flex URL
2444 status open
2445
2446 \begin_layout Plain Layout
2447
2448 ftp://ftp.ams.org/pub/tex/amslatex/
2449 \end_layout
2450
2451 \end_inset
2452
2453 .
2454  These layouts are appropriate,
2455  and useful,
2456  for any mathematical writing.
2457  
2458 \end_layout
2459
2460 \begin_layout Standard
2461 There are three basic AMS \SpecialChar LaTeX
2462  layouts:
2463  
2464 \end_layout
2465
2466 \begin_layout Itemize
2467 amsart:
2468  The standard AMS article format;
2469  see 
2470 \family sans
2471 File\SpecialChar menuseparator
2472 Open Example\SpecialChar menuseparator
2473 Articles\SpecialChar menuseparator
2474 American Mathematical Society (AMS)
2475 \family default
2476 .
2477 \end_layout
2478
2479 \begin_layout Itemize
2480 amsbook:
2481  the standard AMS book (really,
2482  monograph) format;
2483  see 
2484 \family sans
2485 File\SpecialChar menuseparator
2486 Open Example\SpecialChar menuseparator
2487 Books\SpecialChar menuseparator
2488 American Mathematical Society (AMS)
2489 \family default
2490 .
2491 \end_layout
2492
2493 \begin_layout Itemize
2494 amsproc:
2495  the standard AMS proceedings format.
2496 \end_layout
2497
2498 \begin_layout Standard
2499 \SpecialChar LyX
2500  only supports the first two natively;
2501  see the 
2502 \emph on
2503 Installing New Document Classes
2504 \emph default
2505  chapter of the 
2506 \emph on
2507 Customization
2508 \emph default
2509  manual if you want to use 
2510 \family sans
2511 amsproc
2512 \family default
2513 .
2514 \end_layout
2515
2516 \begin_layout Standard
2517 The layouts themselves contain only the minimum necessary to use the AMS classes.
2518  They do not,
2519  in particular,
2520  contain any of the `theorem' environments used for setting theorems,
2521  lemmas,
2522  and the like.
2523  These are contained,
2524  instead,
2525  in the 
2526 \family sans
2527 AMS Theorems
2528 \family default
2529  module,
2530  which is loaded by default when you select one of the AMS classes.
2531  (It can also be used with other classes and can be removed,
2532  if you would rather use something else.) Less commonly used environments are in the 
2533 \family sans
2534 AMS Theorems (Extended)
2535 \family default
2536  module,
2537  which must be loaded manually.
2538 \end_layout
2539
2540 \begin_layout Standard
2541 By default,
2542  theorems and the like are numbered consecutively throughout the document,
2543  but this may be modified by loading the module 
2544 \family sans
2545 Standard Theorems (Numbered by Section)
2546 \family default
2547  or,
2548  if you are using 
2549 \begin_inset Flex Code
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 book (AMS)
2554 \end_layout
2555
2556 \end_inset
2557
2558 ,
2559  the module 
2560 \family sans
2561 Standard Theorems (Numbered by Chapter)
2562 \family default
2563 .
2564  These will number the results as 
2565 \begin_inset Formula $n.m$
2566 \end_inset
2567
2568 ,
2569  where the first number refers to the section (or chapter) and the second refers to the total number of results so far in that section (or chapter).
2570  Many environments are also available unnumbered.
2571  These are indicated by an asterisk at the end.
2572  If you happen to want 
2573 \emph on
2574 only
2575 \emph default
2576  unnumbered results,
2577  the module 
2578 \family sans
2579 Standard Theorems (Unnumbered)
2580 \family default
2581  provides that option.
2582 \end_layout
2583
2584 \begin_layout Standard
2585 Note that these modules do not 
2586 \emph on
2587 have
2588 \emph default
2589  to be used with the AMS classes.
2590  It is perfectly possible to use the 
2591 \family sans
2592 AMS Theorems
2593 \family default
2594  module,
2595  and the others mentioned,
2596  with other classes,
2597  such as 
2598 \begin_inset Flex Code
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 Article (Standard Class)
2603 \end_layout
2604
2605 \end_inset
2606
2607 ,
2608  
2609 \begin_inset Flex Code
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 Report (Standard Class)
2614 \end_layout
2615
2616 \end_inset
2617
2618 ,
2619  
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 KOMA-Script Book
2625 \end_layout
2626
2627 \end_inset
2628
2629 ,
2630  and so forth.
2631 \end_layout
2632
2633 \begin_layout Subsubsection
2634 What these layouts provide
2635 \end_layout
2636
2637 \begin_layout Standard
2638 There is a long list of included environments provided by these layouts.
2639  In AMS-\SpecialChar LaTeX
2640 ,
2641  there is,
2642  in fact,
2643  an opportunity to define an unlimited variety of `theorem' environments.
2644  However,
2645  the AMS recommends the environments that are available in \SpecialChar LyX
2646 .
2647  
2648 \end_layout
2649
2650 \begin_layout Standard
2651 The following environments—
2652 as well as the standard environments,
2653  such as 
2654 \begin_inset Flex Noun
2655 status collapsed
2656
2657 \begin_layout Plain Layout
2658 section
2659 \end_layout
2660
2661 \end_inset
2662
2663 ,
2664  
2665 \begin_inset Flex Noun
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 bibliography
2670 \end_layout
2671
2672 \end_inset
2673
2674 ,
2675  
2676 \begin_inset Flex Noun
2677 status collapsed
2678
2679 \begin_layout Plain Layout
2680 title
2681 \end_layout
2682
2683 \end_inset
2684
2685 ,
2686  
2687 \begin_inset Flex Noun
2688 status collapsed
2689
2690 \begin_layout Plain Layout
2691 author
2692 \end_layout
2693
2694 \end_inset
2695
2696 ,
2697  and 
2698 \begin_inset Flex Noun
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702 date
2703 \end_layout
2704
2705 \end_inset
2706
2707
2708 are provided by 
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 article (AMS)
2714 \end_layout
2715
2716 \end_inset
2717
2718  and 
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 book (AMS)
2724 \end_layout
2725
2726 \end_inset
2727
2728 :
2729 \end_layout
2730
2731 \begin_layout Description
2732 Address This should be the author's permanent address.
2733 \end_layout
2734
2735 \begin_layout Description
2736 Current
2737 \begin_inset space ~
2738 \end_inset
2739
2740 Address This should be the author's temporary address at the time of submission,
2741  if different from the Address.
2742 \end_layout
2743
2744 \begin_layout Description
2745 Email Author's e-mail address
2746 \end_layout
2747
2748 \begin_layout Description
2749 URL Author's Web address,
2750  if desired.
2751 \end_layout
2752
2753 \begin_layout Description
2754 Keywords Key words or phrases used to identify specific topics discussed in the paper.
2755 \end_layout
2756
2757 \begin_layout Description
2758 Subjectclass These refer to the AMS Subject Classifications,
2759  published and described in 
2760 \emph on
2761 Mathematical Reviews
2762 \emph default
2763 .
2764  These are also available online at the AMS cites listed above.
2765 \end_layout
2766
2767 \begin_layout Description
2768 Thanks
2769 \end_layout
2770
2771 \begin_layout Description
2772 Dedicatory
2773 \end_layout
2774
2775 \begin_layout Description
2776 Translator
2777 \end_layout
2778
2779 \begin_layout Standard
2780 The following environments are provided by both the 
2781 \family sans
2782 Standard Theorems
2783 \family default
2784  and 
2785 \family sans
2786 AMS Theorems
2787 \family default
2788  modules,
2789  in the latter case in both unnumbered and numbered versions.
2790  These same environments are provided only in the starred versions by the 
2791 \family sans
2792 Standard Theorems (Unnumbered)
2793 \family default
2794  module:
2795 \end_layout
2796
2797 \begin_layout Theorem
2798 This is typically used for the statements of major results.
2799  
2800 \end_layout
2801
2802 \begin_layout Corollary*
2803 This is used for statements which follow fairly directly from previous statements.
2804  Again,
2805  these can be major results.
2806  
2807 \end_layout
2808
2809 \begin_layout Lemma
2810 These are smaller results needed to prove other statements.
2811 \end_layout
2812
2813 \begin_layout Proposition
2814 These are less major results which (hopefully) add to the general theory being discussed.
2815 \end_layout
2816
2817 \begin_layout Conjecture
2818 These are statements provided without justification,
2819  which the author does not know how to prove,
2820  but which seem to be true (to the author,
2821  at least).
2822 \end_layout
2823
2824 \begin_layout Definition*
2825 Guess what this is for.
2826  The font is different for this environment than for the previous ones.
2827  
2828 \end_layout
2829
2830 \begin_layout Example*
2831 Used for examples illustrating proven results.
2832 \end_layout
2833
2834 \begin_layout Problem
2835 It's not really known what this is for.
2836  You should figure it out.
2837 \end_layout
2838
2839 \begin_layout Exercise*
2840 Write a description for this one.
2841 \end_layout
2842
2843 \begin_layout Remark
2844 This environment is also a type of theorem,
2845  usually a lesser sort of observation.
2846 \end_layout
2847
2848 \begin_layout Claim*
2849 Often used in the course of giving a proof of a larger result.
2850 \end_layout
2851
2852 \begin_layout Case
2853 Generally,
2854  these are used to break up long arguments,
2855  using specific instances of some condition.
2856  
2857 \end_layout
2858
2859 \begin_layout Case
2860 The numbering scheme for cases is on its own,
2861  not together with other numbered statements.
2862  
2863 \end_layout
2864
2865 \begin_layout Proof
2866 At the end of this environment,
2867  a QED symbol (usually a square,
2868  but it can vary with different styles) is placed.
2869  If you want to have other environments within this one—
2870 for example,
2871  Case environments—
2872 and have the QED symbol appear only after them,
2873  then the other environments need to be nested within the proof environment.
2874  See the section 
2875 \emph on
2876 Nesting Environments
2877 \emph default
2878  of the 
2879 \emph on
2880 User's Guide
2881 \emph default
2882  for information on nesting.
2883 \end_layout
2884
2885 \begin_layout Fact
2886 Used in a way similar to Proposition,
2887  though perhaps lower on the scale.
2888 \end_layout
2889
2890 \begin_layout Standard
2891 And these environments are provided by 
2892 \family sans
2893 AMS Theorems (Extended
2894 \family default
2895 ):
2896 \end_layout
2897
2898 \begin_layout Criterion*
2899 A required condition.
2900 \end_layout
2901
2902 \begin_layout Algorithm*
2903 A general procedure to be used.
2904 \end_layout
2905
2906 \begin_layout Axiom*
2907 This is a property or statement taken as true within the system being discussed.
2908 \end_layout
2909
2910 \begin_layout Condition*
2911 Sometimes used to state a condition assumed within the present context of discussion.
2912 \end_layout
2913
2914 \begin_layout Note*
2915 Similar to a Remark.
2916 \end_layout
2917
2918 \begin_layout Notation*
2919 Used for the explanation of,
2920  yes,
2921  notation.
2922 \end_layout
2923
2924 \begin_layout Summary
2925 Do we really need to tell you?
2926  
2927 \end_layout
2928
2929 \begin_layout Conclusion*
2930 Sometimes used at the end of a long train of argument.
2931 \end_layout
2932
2933 \begin_layout Assumption*
2934 Assumption
2935 \end_layout
2936
2937 \begin_layout Question*
2938 Question
2939 \end_layout
2940
2941 \begin_layout Standard
2942 There are ten more Maths modules available including several offering options ordered on 
2943 \family sans
2944 (Numbered by Type \SpecialChar ldots
2945 )
2946 \family default
2947 .
2948 \end_layout
2949
2950 \begin_layout Standard
2951 In addition,
2952  the AMS classes automatically provide the AMS \SpecialChar LaTeX
2953  and AMS fonts packages.
2954  They need to be available on your system in order to use these environments.
2955 \end_layout
2956
2957 \begin_layout Subsection
2958 \begin_inset CommandInset label
2959 LatexCommand label
2960 name "subsec:Extra-font-sizes"
2961
2962 \end_inset
2963
2964 Extra font sizes
2965 \end_layout
2966
2967 \begin_layout Standard
2968 The “Extra font sizes” collection provides the document classes 
2969 \family sans
2970 article
2971 \begin_inset space \thinspace{}
2972 \end_inset
2973
2974 (with extra font sizes)
2975 \family default
2976 ,
2977  
2978 \family sans
2979 book
2980 \begin_inset space \thinspace{}
2981 \end_inset
2982
2983 (with extra font sizes)
2984 \family default
2985 ,
2986  
2987 \family sans
2988 letter
2989 \begin_inset space \thinspace{}
2990 \end_inset
2991
2992 (with extra font sizes)
2993 \family default
2994  and 
2995 \family sans
2996 report
2997 \begin_inset space \thinspace{}
2998 \end_inset
2999
3000 (with extra font sizes)
3001 \family default
3002  which use the 
3003 \family typewriter
3004 article.cls
3005 \family default
3006 ,
3007  
3008 \family typewriter
3009 book.cls
3010 \family default
3011 ,
3012  
3013 \family typewriter
3014 letter.cls
3015 \family default
3016  and 
3017 \family typewriter
3018 report.cls
3019 \family default
3020  document classes respectively but offer the additional 
3021 \family sans
3022 \bar under
3023 B
3024 \bar default
3025 ase
3026 \begin_inset space ~
3027 \end_inset
3028
3029 Size
3030 \family default
3031  options 8,
3032  9,
3033  14,
3034  17 and 20 in the 
3035 \family sans
3036 \bar under
3037 D
3038 \bar default
3039 ocument\SpecialChar menuseparator
3040
3041 \bar under
3042 S
3043 \bar default
3044 ettings\SpecialChar menuseparator
3045 Fonts
3046 \family default
3047  dialog.
3048 \end_layout
3049
3050 \begin_layout Subsection
3051 Hebrew
3052 \begin_inset CommandInset label
3053 LatexCommand label
3054 name "subsec:Hebrew"
3055
3056 \end_inset
3057
3058
3059 \end_layout
3060
3061 \begin_layout Standard
3062 The document classes 
3063 \family sans
3064 Hebrew Article
3065 \family default
3066  and 
3067 \family sans
3068 Hebrew Letter
3069 \family default
3070  use the 
3071 \family typewriter
3072 article.cl
3073 \family sans
3074 s
3075 \family default
3076  and 
3077 \family typewriter
3078 letter.cls
3079 \family default
3080  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3081 .
3082 \end_layout
3083
3084 \begin_layout Subsection
3085 \begin_inset CommandInset label
3086 LatexCommand label
3087 name "subsec:Japanese"
3088
3089 \end_inset
3090
3091 Japanese (Standard Classes)
3092 \end_layout
3093
3094 \begin_layout Standard
3095 \SpecialChar LyX
3096  included a collection of several bundles that aim to facilitate typesetting Japanese documents.
3097  The bundles have been developed at different times,
3098  they thus support different typesetting engines and features.
3099  This collection is the oldest one.
3100  It adjusts the \SpecialChar LaTeX
3101  standard classes to requirements of Japanese typesetting,
3102  for horizontal and vertical writing.
3103  The collection includes 
3104 \family sans
3105 Japanese Article
3106 \begin_inset space \thinspace{}
3107 \end_inset
3108
3109 (Standard Class)
3110 \family default
3111 ,
3112  
3113 \family sans
3114 Japanese Article
3115 \begin_inset space \thinspace{}
3116 \end_inset
3117
3118 (Standard Class,
3119  vertical Writing)
3120 \family default
3121 ,
3122  
3123 \family sans
3124 Japanese Book
3125 \begin_inset space \thinspace{}
3126 \end_inset
3127
3128 (Standard Class)
3129 \family default
3130 ,
3131  
3132 \family sans
3133 Japanese Book
3134 \begin_inset space \thinspace{}
3135 \end_inset
3136
3137 (Standard Class,
3138  vertical Writing)
3139 \family default
3140 ,
3141  
3142 \family sans
3143 Japanese Report
3144 \begin_inset space \thinspace{}
3145 \end_inset
3146
3147 (Japanese Standard Class)
3148 \family default
3149 ,
3150  and
3151 \family sans
3152  Japanese Report
3153 \begin_inset space \thinspace{}
3154 \end_inset
3155
3156 (Standard Class,
3157  vertical Writing)
3158 \family default
3159 ,
3160  which all work with 
3161 \begin_inset Quotes eld
3162 \end_inset
3163
3164 classic
3165 \begin_inset Quotes erd
3166 \end_inset
3167
3168  engines tailored for Japanese,
3169  p\SpecialChar LaTeX
3170  and up\SpecialChar LaTeX
3171 .
3172 \end_layout
3173
3174 \begin_layout Standard
3175 For the use with the more modern Lua\SpecialChar LaTeX
3176  typesetting engine,
3177  the collection also includes dedicated classes 
3178 \family sans
3179 Japanese Article
3180 \begin_inset space \thinspace{}
3181 \end_inset
3182
3183 (Standard Class for LuaTeX),
3184  Japanese Article
3185 \begin_inset space \thinspace{}
3186 \end_inset
3187
3188 (Standard Class for LuaTeX,
3189  vertical Writing),
3190  Japanese Book
3191 \begin_inset space \thinspace{}
3192 \end_inset
3193
3194 (Standard Class for LuaTeX)
3195 \family default
3196 ,
3197  
3198 \family sans
3199 Japanese Book
3200 \begin_inset space \thinspace{}
3201 \end_inset
3202
3203 (Standard Class for LuaTeX,
3204  vertical Writing)
3205 \family default
3206 ,
3207  
3208 \family sans
3209 Japanese Report
3210 \begin_inset space \thinspace{}
3211 \end_inset
3212
3213 (Japanese Standard Class for LuaTeX)
3214 \family default
3215 ,
3216  and 
3217 \family sans
3218 Japanese Report
3219 \begin_inset space \thinspace{}
3220 \end_inset
3221
3222 (Japanese Standard Class for LuaTeX,
3223  vertical Writing)
3224 \family default
3225 ,
3226  provided by the 
3227 \family sans
3228 luatexja
3229 \family default
3230  \SpecialChar LaTeX
3231  package.
3232 \end_layout
3233
3234 \begin_layout Standard
3235 Templates for the Lua\SpecialChar LaTeX
3236  classes can be found in 
3237 \family sans
3238 File\SpecialChar menuseparator
3239 New From Template
3240 \family default
3241  in the respective category (
3242 \family sans
3243 Articles
3244 \family default
3245 ,
3246  
3247 \family sans
3248 Books
3249 \family default
3250 ,
3251  or 
3252 \family sans
3253 Reports
3254 \family default
3255 ).
3256 \end_layout
3257
3258 \begin_layout Subsection
3259 \begin_inset CommandInset label
3260 LatexCommand label
3261 name "subsec:Japanese-JS"
3262
3263 \end_inset
3264
3265 Japanese (JS Bundle)
3266 \end_layout
3267
3268 \begin_layout Standard
3269 This collection includes improved versions of the classes included in 
3270 \family sans
3271 Japanese (Standard Classes)
3272 \family default
3273  (see
3274 \begin_inset space ~
3275 \end_inset
3276
3277
3278 \begin_inset CommandInset ref
3279 LatexCommand ref
3280 reference "subsec:Japanese"
3281
3282 \end_inset
3283
3284 ).
3285  It includes 
3286 \family sans
3287 Japanese Article
3288 \begin_inset space \thinspace{}
3289 \end_inset
3290
3291 (JS Bundle) 
3292 \family default
3293 and 
3294 \family sans
3295 Japanese Book
3296 \begin_inset space \thinspace{}
3297 \end_inset
3298
3299 (JS Bundle)
3300 \family default
3301 .
3302  A report class can be obtained by using 
3303 \family sans
3304 Japanese Book
3305 \begin_inset space \thinspace{}
3306 \end_inset
3307
3308 (JS Bundle)
3309 \family default
3310  with option 
3311 \family sans
3312 report
3313 \family default
3314  in 
3315 \family sans
3316 Document\SpecialChar menuseparator
3317 Settings\SpecialChar menuseparator
3318 Document Class\SpecialChar menuseparator
3319 Class Options\SpecialChar menuseparator
3320 Custom
3321 \family default
3322 .
3323  All these classes work with 
3324 \begin_inset Quotes eld
3325 \end_inset
3326
3327 classic
3328 \begin_inset Quotes erd
3329 \end_inset
3330
3331  engines tailored for Japanese,
3332  p\SpecialChar LaTeX
3333  and up\SpecialChar LaTeX
3334 .
3335 \end_layout
3336
3337 \begin_layout Standard
3338 For the use with the more modern Lua\SpecialChar LaTeX
3339  typesetting engine,
3340  the collection also includes dedicated classes 
3341 \family sans
3342 Japanese Article (JS Bundle for LuaTeX),
3343  Japanese Book
3344 \begin_inset space \thinspace{}
3345 \end_inset
3346
3347 (JS Bundle for LuaTeX)
3348 \family default
3349 ,
3350  and 
3351 \family sans
3352 Japanese Report
3353 \begin_inset space \thinspace{}
3354 \end_inset
3355
3356 (JS Bundle)
3357 \family default
3358 ,
3359  provided by the 
3360 \family sans
3361 luatexja
3362 \family default
3363  \SpecialChar LaTeX
3364  package.
3365 \end_layout
3366
3367 \begin_layout Standard
3368 Templates for the Lua\SpecialChar LaTeX
3369  classes can be found in 
3370 \family sans
3371 File\SpecialChar menuseparator
3372 New From Template
3373 \family default
3374  in the respective category (
3375 \family sans
3376 Articles
3377 \family default
3378 ,
3379  
3380 \family sans
3381 Books
3382 \family default
3383 ,
3384  or 
3385 \family sans
3386 Reports
3387 \family default
3388 ).
3389 \end_layout
3390
3391 \begin_layout Subsection
3392 \begin_inset CommandInset label
3393 LatexCommand label
3394 name "subsec:Japanese-BX"
3395
3396 \end_inset
3397
3398 Japanese (BX Bundle)
3399 \end_layout
3400
3401 \begin_layout Standard
3402 This bundle contains the document classes 
3403 \family sans
3404 Japanese Article
3405 \begin_inset space \thinspace{}
3406 \end_inset
3407
3408 (BX Bundle)
3409 \family default
3410 ,
3411
3412 \family sans
3413  Japanese Book
3414 \begin_inset space \thinspace{}
3415 \end_inset
3416
3417 (BX Bundle)
3418 \family default
3419 ,
3420  and 
3421 \family sans
3422 Japanese Report
3423 \begin_inset space \thinspace{}
3424 \end_inset
3425
3426 (BX Bundle)
3427 \family default
3428  which provide alternative document classes for Japanese documents.
3429  Furthermore,
3430  a class 
3431 \family sans
3432 Japanese Slides (BX Bundle)
3433 \family default
3434  for presentation slides,
3435  is included.
3436  As opposed to the classes of the 
3437 \family sans
3438 Standard Classes
3439 \family default
3440  and 
3441 \family sans
3442 JS 
3443 \family default
3444 bundles (sec.
3445  
3446 \begin_inset CommandInset ref
3447 LatexCommand ref
3448 reference "subsec:Japanese"
3449
3450 \end_inset
3451
3452  and 
3453 \begin_inset CommandInset ref
3454 LatexCommand ref
3455 reference "subsec:Japanese-JS"
3456
3457 \end_inset
3458
3459 ),
3460  which support only p\SpecialChar LaTeX
3461  and up\SpecialChar LaTeX
3462  out of the box (and Lua\SpecialChar LaTeX
3463  only through the extra classes added by the 
3464 \family sans
3465 luatexja
3466 \family default
3467  \SpecialChar LaTeX
3468  package),
3469  the classes of this bundle also support pdf\SpecialChar LaTeX
3470 ,
3471  Xe\SpecialChar LaTeX
3472  and Lua\SpecialChar LaTeX
3473  directly,
3474  with the aid of suitable packages that provide capability of Japanese typesetting.
3475 \end_layout
3476
3477 \begin_layout Subsection
3478 \begin_inset CommandInset label
3479 LatexCommand label
3480 name "subsec:Japanese-JLReq"
3481
3482 \end_inset
3483
3484 Japanese (JLReq Class)
3485 \end_layout
3486
3487 \begin_layout Standard
3488 This bundle draws on the 
3489 \family sans
3490 jlreq
3491 \family default
3492  class which faithfully traces the standard of 
3493 \emph on
3494 Requirements for Japanese Text Layout
3495 \emph default
3496  set by the World Wide Web Consortium (W3C,
3497  see 
3498 \begin_inset Flex URL
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502
3503 https://www.w3.org/TR/jlreq/?lang=en
3504 \end_layout
3505
3506 \end_inset
3507
3508 ).
3509  It can be used with Lua\SpecialChar LaTeX
3510  as well as p\SpecialChar LaTeX
3511  and up\SpecialChar LaTeX
3512 .
3513 \end_layout
3514
3515 \begin_layout Standard
3516 LyX provides layouts for 
3517 \family sans
3518 Japanese Article
3519 \begin_inset space \thinspace{}
3520 \end_inset
3521
3522 (JLReq Class)
3523 \family default
3524 ,
3525
3526 \family sans
3527  Japanese Book
3528 \begin_inset space \thinspace{}
3529 \end_inset
3530
3531 (JLReq Class)
3532 \family default
3533 ,
3534  and 
3535 \family sans
3536 Japanese Report
3537 \begin_inset space \thinspace{}
3538 \end_inset
3539
3540 (JLReq Class)
3541 \family default
3542  which are all derived from the 
3543 \family sans
3544 jlreq
3545 \family default
3546  \SpecialChar LaTeX
3547  class via specific class options.
3548 \end_layout
3549
3550 \begin_layout Standard
3551 An example article document is available at 
3552 \family sans
3553 File\SpecialChar menuseparator
3554 Open Example\SpecialChar menuseparator
3555 Articles\SpecialChar menuseparator
3556 Japanese Article (JLReq Class)
3557 \family default
3558 .
3559  English documentation is available at 
3560 \begin_inset Flex URL
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564
3565 http://mirrors.ctan.org/macros/jptex/latex/jlreq/jlreq.pdf
3566 \end_layout
3567
3568 \end_inset
3569
3570 .
3571 \end_layout
3572
3573 \begin_layout Subsection
3574 \begin_inset CommandInset label
3575 LatexCommand label
3576 name "subsec:KOMA-Script"
3577
3578 \end_inset
3579
3580 KOMA-Script
3581 \end_layout
3582
3583 \begin_layout Standard
3584 Original by 
3585 \noun on
3586 Bernd Rellermeyer
3587 \noun default
3588 ;
3589  updated by 
3590 \noun on
3591 Jürgen Spitzmüller
3592 \noun default
3593  and the \SpecialChar LyX
3594  Team
3595 \end_layout
3596
3597 \begin_layout Subsubsection
3598 Overview
3599 \end_layout
3600
3601 \begin_layout Standard
3602 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
3603  it was formally launched with the addition of a letter class in 1994.
3604  Since then,
3605  a second letter class has been added.
3606  Frank Neukam's classes were inspired by the principles of typography and this has been fully integrated into the design of the KOMA-Script classes.
3607 \end_layout
3608
3609 \begin_layout Standard
3610 The \SpecialChar LyX
3611  document classes 
3612 \emph on
3613 KOMA-Script Article
3614 \emph default
3615 ,
3616  
3617 \emph on
3618 KOMA-Script Report
3619 \emph default
3620 ,
3621  
3622 \emph on
3623 KOMA-Script Book
3624 \emph default
3625 ,
3626  and 
3627 \emph on
3628 KOMA-Script Letter
3629 \emph default
3630  correspond to the \SpecialChar LaTeX
3631  document classes 
3632 \family typewriter
3633 scrartcl.cls
3634 \family default
3635 ,
3636  
3637 \family typewriter
3638 scrreprt.cls
3639 \family default
3640 ,
3641  
3642 \family typewriter
3643 scrbook.cls
3644 \family default
3645 ,
3646  and 
3647 \family typewriter
3648 scrlettr.cls
3649 \family default
3650 ,
3651  resp.
3652 \begin_inset space ~
3653 \end_inset
3654
3655 of the Koma-Script family.
3656  They are replacements for the standard document classes 
3657 \family typewriter
3658 article.cls
3659 \family default
3660 ,
3661  
3662 \family typewriter
3663 report.cls
3664 \family default
3665 ,
3666  
3667 \family typewriter
3668 book.cls
3669 \family default
3670  and 
3671 \family typewriter
3672 letter.cls
3673 \family default
3674 ,
3675  resp.,
3676  and fit better to European typography conventions in a number of points.
3677 \end_layout
3678
3679 \begin_layout Itemize
3680 The base character sizes when you select a KOMA-Script class are 11pt in 
3681 \emph on
3682 KOMA-Script Article
3683 \emph default
3684 ,
3685  
3686 \emph on
3687 KOMA-Script Report
3688 \emph default
3689 ,
3690  and 
3691 \emph on
3692 KOMA-Script Book
3693 \emph default
3694  and 12pt in 
3695 \emph on
3696 KOMA-Script Letter
3697 \emph default
3698 .
3699 \end_layout
3700
3701 \begin_layout Itemize
3702 Headings,
3703  labels of the description environment,
3704  and a number of elements of the 
3705 \emph on
3706 KOMA-Script Letter
3707 \emph default
3708  document class are set in a bold sans serif font.
3709 \begin_inset Foot
3710 status collapsed
3711
3712 \begin_layout Plain Layout
3713 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
3714  especially in the appearance of headings.
3715  In comparison,
3716  the ec bold sans serif fonts look a bit thin.
3717  Here the \SpecialChar LaTeX
3718  package 
3719 \family typewriter
3720 cmsd.sty by
3721 \family default
3722  
3723 \shape smallcaps
3724 Walter Schmidt
3725 \shape default
3726  helps to produce the 
3727 \begin_inset Quotes eld
3728 \end_inset
3729
3730 usual
3731 \begin_inset Quotes erd
3732 \end_inset
3733
3734  appearance when using the ec fonts.
3735 \end_layout
3736
3737 \end_inset
3738
3739  The numbering of chapter headings is made in the same way as the numbering of section headings,
3740  that is without the extra line 
3741 \begin_inset Quotes eld
3742 \end_inset
3743
3744 Chapter\SpecialChar ldots
3745
3746 \begin_inset Quotes erd
3747 \end_inset
3748
3749 .
3750  In addition,
3751  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
3752  to be entered in the field 
3753 \family sans
3754 Extra
3755 \begin_inset space ~
3756 \end_inset
3757
3758 Options
3759 \family default
3760  of the dialog 
3761 \family sans
3762 Layout\SpecialChar menuseparator
3763 Document
3764 \family default
3765 ).
3766  
3767 \end_layout
3768
3769 \begin_layout Itemize
3770 The layout of a KOMA-Script page follows one of two traditional typesetting conventions based on dividing the page into strips or drawing a circle.
3771  The default is to imagine that a page is divided horizontally and vertically into strips and allocate strips to the margins leaving the unused strips for the text area.
3772  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
3773  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
3774 \end_layout
3775
3776 \begin_deeper
3777 \begin_layout Standard
3778 Whatever the factor,
3779  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
3780  leaving a text area occupying around half the page.
3781  Since most two-sided documents have a binding,
3782  this can make the inner margins appear too narrow;
3783  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
3784 \end_layout
3785
3786 \begin_layout Standard
3787 The main means in the Koma-Script document classes to design the type area are the options 
3788 \family sans
3789 BCOR
3790 \family default
3791  and 
3792 \family sans
3793 DIV
3794 \family default
3795  entered in 
3796 \family sans
3797 Document\SpecialChar menuseparator
3798 Settings\SpecialChar menuseparator
3799 Document Class\SpecialChar menuseparator
3800 Class Options\SpecialChar menuseparator
3801 Custom
3802 \family default
3803 .
3804 \end_layout
3805
3806 \begin_layout Standard
3807 In this document,
3808  the binding correction is 7.5mm which is added in the form 
3809 \family typewriter
3810 BCOR7.5mm
3811 \family default
3812  to 
3813 \family sans
3814 Class
3815 \begin_inset space ~
3816 \end_inset
3817
3818 options\SpecialChar menuseparator
3819 Cus
3820 \bar under
3821 t
3822 \bar default
3823 om
3824 \family default
3825  dialog.
3826  To change the factor to 11,
3827  for example,
3828  add the entry 
3829 \family typewriter
3830 DIV=11
3831 \family default
3832  to the comma separated list of entries in the 
3833 \family sans
3834 Cus
3835 \bar under
3836 t
3837 \bar default
3838 om
3839 \family default
3840  
3841 \family sans
3842 Class
3843 \begin_inset space ~
3844 \end_inset
3845
3846 options
3847 \family default
3848 .
3849  If you want the default value of this factor for a page size other than A4,
3850  add the entry 
3851 \family typewriter
3852 DIV=calc
3853 \family default
3854 .
3855 \end_layout
3856
3857 \begin_layout Standard
3858 To use the circle method of calculating the page layout,
3859  use 
3860 \family typewriter
3861 DIV=classic
3862 \family default
3863  instead.
3864 \end_layout
3865
3866 \end_deeper
3867 \begin_layout Itemize
3868 The \SpecialChar LaTeX
3869  document classes of the Koma-Script family define a number of additional commands.
3870  Those part of it which makes sense in \SpecialChar LyX
3871  is implemented in corresponding paragraph types.
3872 \end_layout
3873
3874 \begin_layout Standard
3875 Detailed descriptions of the \SpecialChar LaTeX
3876  document classes of the Koma-Script family can be found in the Koma-Script documentation 
3877 \emph on
3878 scrguide
3879 \emph default
3880  (German) and 
3881 \emph on
3882 scrguien
3883 \emph default
3884  (English).
3885 \end_layout
3886
3887 \begin_layout Subsubsection
3888
3889 \series bold
3890 \begin_inset CommandInset label
3891 LatexCommand label
3892 name "subsec:article-(KOMA-Script),-report"
3893
3894 \end_inset
3895
3896
3897 \series default
3898 \emph on
3899 KOMA-Script Article
3900 \emph default
3901 ,
3902  
3903 \emph on
3904 KOMA-Script Report
3905 \emph default
3906 ,
3907  and 
3908 \emph on
3909 KOMA-Script Book
3910 \end_layout
3911
3912 \begin_layout Standard
3913 The document classes 
3914 \emph on
3915 KOMA-Script Article
3916 \emph default
3917 ,
3918  
3919 \emph on
3920 KOMA-Script Report
3921 \emph default
3922 ,
3923  and 
3924 \emph on
3925 KOMA-Script Book
3926 \emph default
3927  are implemented in the layout files 
3928 \family typewriter
3929 scrartcl.layout
3930 \family default
3931 ,
3932  
3933 \family typewriter
3934 scrreprt.layout
3935 \family default
3936 ,
3937  and 
3938 \family typewriter
3939 scrbook.layout
3940 \family default
3941 ,
3942  resp.
3943  They contain all the paragraph types of the corresponding standard document classes 
3944 \emph on
3945 article
3946 \emph default
3947 ,
3948  
3949 \emph on
3950 report
3951 \emph default
3952 ,
3953  and 
3954 \emph on
3955 book
3956 \emph default
3957 ,
3958  resp.,
3959  partly modified,
3960  with the exception of the \SpecialChar LyX
3961  specific 
3962 \family sans
3963 List
3964 \family default
3965 -type,
3966  which is replaced by the new 
3967 \family sans
3968 Labeling
3969 \family default
3970 -type having the same functionality.
3971  Beside the 
3972 \family sans
3973 Labeling
3974 \family default
3975 -Type there is a number of new paragraph types added.
3976  They are 
3977 \emph on
3978 not
3979 \emph default
3980  part of 
3981 \emph on
3982 letter (koma-script)
3983 \emph default
3984 .
3985 \end_layout
3986
3987 \begin_layout Itemize
3988
3989 \family sans
3990 Addpart,
3991  Addchap
3992 \family default
3993 ,
3994  
3995 \family sans
3996 Addsec
3997 \family default
3998 :
3999  are equivalents to 
4000 \family sans
4001 Part*,
4002  Chapter*
4003 \family default
4004  and 
4005 \family sans
4006 Section*
4007 \family default
4008 ,
4009  resp.,
4010  additionally inserting an entry in the table of contents.
4011  
4012 \family sans
4013 Addpart
4014 \family default
4015  and 
4016 \family sans
4017 Addchap
4018 \family default
4019  are not contained in 
4020 \emph on
4021 article (koma-script)
4022 \emph default
4023 .
4024 \end_layout
4025
4026 \begin_layout Itemize
4027
4028 \family sans
4029 Addchap*
4030 \family default
4031 ,
4032  
4033 \family sans
4034 Addsec*
4035 \family default
4036 :
4037  behave exactly as 
4038 \family sans
4039 Addchap
4040 \family default
4041  and 
4042 \family sans
4043 Addsec
4044 \family default
4045 ,
4046  resp.,
4047  additionally clearing running heads.
4048  
4049 \family sans
4050 Addchap*
4051 \family default
4052  is not contained in 
4053 \emph on
4054 article (koma-script)
4055 \emph default
4056 .
4057 \begin_inset Foot
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 There is also an 
4062 \family typewriter
4063
4064 \backslash
4065 addpart*
4066 \family default
4067  command in 
4068 \emph on
4069 book (koma-script)
4070 \emph default
4071  and in 
4072 \emph on
4073 report (koma-script)
4074 \emph default
4075 ,
4076  but since this is identical to 
4077 \family sans
4078 Part*
4079 \family default
4080 ,
4081  is has not been implemented in \SpecialChar LyX
4082 .
4083 \end_layout
4084
4085 \end_inset
4086
4087
4088 \end_layout
4089
4090 \begin_layout Itemize
4091
4092 \family sans
4093 Minisec
4094 \family default
4095 :
4096  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
4097 \end_layout
4098
4099 \begin_layout Itemize
4100
4101 \family sans
4102 Captionabove
4103 \family default
4104  and 
4105 \family sans
4106 Captionbelow
4107 \family default
4108  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
4109  you might want to place table captions always above the table).
4110  You can also use the class option 
4111 \family typewriter
4112 tablecaptionsabove
4113 \family default
4114 ,
4115  which will switch 
4116 \family sans
4117 caption
4118 \family default
4119  to 
4120 \family sans
4121 captionabove
4122 \family default
4123  for tables and 
4124 \family sans
4125 captionbelow
4126 \family default
4127  for figures.
4128  You need at least Koma-Script version 2.8q to use this.
4129 \end_layout
4130
4131 \begin_layout Itemize
4132
4133 \family sans
4134 Dictum
4135 \family default
4136 :
4137  can be used to set a bonmot,
4138  e.
4139 \begin_inset space \thinspace{}
4140 \end_inset
4141
4142 g.
4143 \begin_inset space \space{}
4144 \end_inset
4145
4146 at the beginning of a chapter.
4147  If you use the optional argument (
4148 \family sans
4149 Insert\SpecialChar menuseparator
4150 Dictum
4151 \begin_inset space ~
4152 \end_inset
4153
4154 Author
4155 \family default
4156 ),
4157  you can insert the dictum's author there.
4158  Dictum and author are separated by a line.
4159  You need at least Koma-Script version 2.8q to use this.
4160  
4161 \family sans
4162 Dictum
4163 \family default
4164  is not contained in 
4165 \emph on
4166 article (koma-script)
4167 \emph default
4168 .
4169 \end_layout
4170
4171 \begin_layout Standard
4172 The following types,
4173  together with the standard types 
4174 \family sans
4175 Title
4176 \family default
4177 ,
4178  
4179 \family sans
4180 Author
4181 \family default
4182 ,
4183  and 
4184 \family sans
4185 Date
4186 \family default
4187 ,
4188  form the title area of the document.
4189  They must be entered ahead of the first 
4190 \begin_inset Quotes eld
4191 \end_inset
4192
4193 ordinary
4194 \begin_inset Quotes erd
4195 \end_inset
4196
4197  paragraph.
4198 \begin_inset Foot
4199 status collapsed
4200
4201 \begin_layout Plain Layout
4202 The corresponding \SpecialChar LaTeX
4203  commands must appear before the 
4204 \family typewriter
4205
4206 \backslash
4207 maketitle
4208 \family default
4209  command.
4210 \end_layout
4211
4212 \end_inset
4213
4214  When such a type is used more than once,
4215  the latter usage overwrites the former one,
4216  that means,
4217  for every type only the latest usage is valid.
4218  The order of the different types however has,
4219  like 
4220 \family sans
4221 Title
4222 \family default
4223 ,
4224  
4225 \family sans
4226 Author
4227 \family default
4228 ,
4229  and 
4230 \family sans
4231 Date
4232 \family default
4233 ,
4234  no effect on the appearance of the produced document.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Subject
4241 \family default
4242 :
4243  produces a centered paragraph above the ordinary title (
4244 \family sans
4245 Title
4246 \family default
4247 ,
4248  
4249 \family sans
4250 Author
4251 \family default
4252 ,
4253  
4254 \family sans
4255 Date
4256 \family default
4257 ) for the subject of the document.
4258 \end_layout
4259
4260 \begin_layout Itemize
4261
4262 \family sans
4263 Publishers
4264 \family default
4265 :
4266  produces a centered paragraph below the ordinary title (
4267 \family sans
4268 Title
4269 \family default
4270 ,
4271  
4272 \family sans
4273 Author
4274 \family default
4275 ,
4276  
4277 \family sans
4278 Date
4279 \family default
4280 ) for the publishers' name.
4281 \end_layout
4282
4283 \begin_layout Itemize
4284
4285 \family sans
4286 Dedication
4287 \family default
4288 :
4289  in 
4290 \emph on
4291 report (koma-script)
4292 \emph default
4293  and 
4294 \emph on
4295 book (koma-script)
4296 \emph default
4297  produces a centered paragraph on its own page behind the title page,
4298  or in 
4299 \emph on
4300 article (koma-script)
4301 \emph default
4302  produces a centered paragraph below the ordinary title (
4303 \family sans
4304 Title
4305 \family default
4306 ,
4307  
4308 \family sans
4309 Author
4310 \family default
4311 ,
4312  
4313 \family sans
4314 Date
4315 \family default
4316 ,
4317  
4318 \family sans
4319 Publishers
4320 \family default
4321 ) for a dedication.
4322 \end_layout
4323
4324 \begin_layout Itemize
4325
4326 \family sans
4327 Titlehead
4328 \family default
4329 :
4330  produces a left aligned paragraph above the ordinary title (
4331 \family sans
4332 Title
4333 \family default
4334 ,
4335  
4336 \family sans
4337 Author
4338 \family default
4339 ,
4340  
4341 \family sans
4342 Date
4343 \family default
4344 ,
4345  
4346 \family sans
4347 Subject
4348 \family default
4349 ) for a document`s head.
4350 \end_layout
4351
4352 \begin_layout Itemize
4353
4354 \family sans
4355 Uppertitleback
4356 \family default
4357 :
4358  produces in a double-sided print in 
4359 \emph on
4360 report (koma-script)
4361 \emph default
4362  and 
4363 \emph on
4364 book (koma-script)
4365 \emph default
4366  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
4367 \emph on
4368 article (koma-script)
4369 \emph default
4370 .
4371 \end_layout
4372
4373 \begin_layout Itemize
4374
4375 \family sans
4376 Lowertitleback
4377 \family default
4378 :
4379  produces in a double-sided print in 
4380 \emph on
4381 report (koma-script)
4382 \emph default
4383  and 
4384 \emph on
4385 book (koma-script)
4386 \emph default
4387  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
4388 \emph on
4389 article (koma-script)
4390 \emph default
4391 .
4392 \end_layout
4393
4394 \begin_layout Itemize
4395
4396 \family sans
4397 Extratitle
4398 \family default
4399 :
4400  produces a special 
4401 \begin_inset Quotes eld
4402 \end_inset
4403
4404 dirty
4405 \begin_inset Quotes erd
4406 \end_inset
4407
4408  page ahead of the actual document containing a paragraph without special formatting.
4409 \end_layout
4410
4411 \begin_layout Standard
4412 KOMA-Script offers a wide range of 
4413 \family sans
4414 Cus
4415 \bar under
4416 t
4417 \bar default
4418 om Class
4419 \begin_inset space ~
4420 \end_inset
4421
4422 options
4423 \family default
4424  for the 
4425 \family sans
4426 \bar under
4427 D
4428 \bar default
4429 ocument\SpecialChar menuseparator
4430
4431 \bar under
4432 S
4433 \bar default
4434 ettings\SpecialChar menuseparator
4435 Document
4436 \begin_inset space ~
4437 \end_inset
4438
4439 class
4440 \family default
4441  dialog which you can apply to the whole document,
4442  among them
4443 \end_layout
4444
4445 \begin_layout Description
4446
4447 \family typewriter
4448 \series medium
4449 draft=true
4450 \family default
4451 \series default
4452  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
4453  the default setting is 
4454 \family typewriter
4455 false
4456 \end_layout
4457
4458 \begin_layout Description
4459
4460 \family typewriter
4461 \series medium
4462 headings=
4463 \family default
4464 \series default
4465  which may take the values 
4466 \family typewriter
4467 big
4468 \family default
4469 ,
4470  
4471 \family typewriter
4472 normal
4473 \family default
4474  or 
4475 \family typewriter
4476 small
4477 \family default
4478 ;
4479  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
4480 \end_layout
4481
4482 \begin_layout Description
4483
4484 \family typewriter
4485 \series medium
4486 numbers=
4487 \family default
4488 \series default
4489  which may take the values 
4490 \family typewriter
4491 auto
4492 \family default
4493  (the default),
4494  
4495 \family typewriter
4496 enddot
4497 \family default
4498  or 
4499 \family typewriter
4500 noenddot
4501 \family default
4502 ;
4503  the first leaves it up to KOMA-Script to add periods after chapter,
4504  section numbers,
4505  etc.;
4506  the second forces the addition of periods and third suppresses them
4507 \end_layout
4508
4509 \begin_layout Standard
4510 and the math options:
4511 \end_layout
4512
4513 \begin_layout Description
4514
4515 \family typewriter
4516 \series medium
4517 leqno
4518 \family default
4519 \series default
4520  which causes equations to be numbered on the left rather than on the right,
4521  and
4522 \end_layout
4523
4524 \begin_layout Description
4525
4526 \family typewriter
4527 \series medium
4528 fleqn
4529 \family default
4530 \series default
4531  which causes equations to be left justified rather than centered.
4532 \end_layout
4533
4534 \begin_layout Standard
4535 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
4536  commands and packages;
4537  for example,
4538  if you want your captions in bold add
4539 \end_layout
4540
4541 \begin_layout Standard
4542
4543 \family typewriter
4544
4545 \backslash
4546 setkomafont{captionlabel}{
4547 \backslash
4548 bfseries}
4549 \end_layout
4550
4551 \begin_layout Standard
4552 to 
4553 \family sans
4554 \bar under
4555 D
4556 \bar default
4557 ocument\SpecialChar menuseparator
4558
4559 \bar under
4560 S
4561 \bar default
4562 ettings
4563 \family default
4564 \SpecialChar menuseparator
4565
4566 \family sans
4567 \SpecialChar LaTeX
4568
4569 \begin_inset space ~
4570 \end_inset
4571
4572 Preamble
4573 \family default
4574 ) and the problem is solved.
4575 \end_layout
4576
4577 \begin_layout Standard
4578 If you are writing a book,
4579  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
4580  If you use the Chapter* environment,
4581  your Foreword and Preface will not appear in the Table of Contents;
4582  to make them to appear in the Table of contents,
4583  you need to use Chapter environments and add the \SpecialChar TeX
4584  code
4585 \end_layout
4586
4587 \begin_layout Standard
4588
4589 \family typewriter
4590
4591 \backslash
4592 frontmatter
4593 \end_layout
4594
4595 \begin_layout Standard
4596 at the very start of the book (not in the \SpecialChar LaTeX
4597  Preamble) and
4598 \end_layout
4599
4600 \begin_layout Standard
4601
4602 \family typewriter
4603
4604 \backslash
4605 mainmatter
4606 \end_layout
4607
4608 \begin_layout Standard
4609 before the first chapter of the body of the text.
4610  Alternatively,
4611  you might also use 
4612 \family sans
4613 Chapter* (TOC)
4614 \family default
4615 .
4616 \end_layout
4617
4618 \begin_layout Standard
4619 You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
4620  if any.
4621 \begin_inset Foot
4622 status open
4623
4624 \begin_layout Plain Layout
4625 Appendices are normally “numbered” with letters.
4626 \end_layout
4627
4628 \end_inset
4629
4630  If you use the Chapter* environment,
4631  they will not appear in the Table of Contents;
4632  so add the \SpecialChar TeX
4633  code
4634 \end_layout
4635
4636 \begin_layout Standard
4637
4638 \family typewriter
4639
4640 \backslash
4641 backmatter
4642 \end_layout
4643
4644 \begin_layout Standard
4645 before the first of these headings and use the Chapter environment.
4646  These commands will have no effect on the numbering in \SpecialChar LyX
4647 ,
4648  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
4649 \end_layout
4650
4651 \begin_layout Standard
4652 The layout files for the document classes 
4653 \emph on
4654 article (koma-script)
4655 \emph default
4656 ,
4657  
4658 \emph on
4659 report (koma-script)
4660 \emph default
4661 ,
4662  and 
4663 \emph on
4664 book (koma-script)
4665 \emph default
4666  do include the file 
4667 \family typewriter
4668 scrmacros.inc
4669 \family default
4670 .
4671  This is thought of as a place to define your own types.
4672  Copy scrmacros
4673 \family typewriter
4674 .inc
4675 \family default
4676  in your personal layout directory and edit the file!
4677 \end_layout
4678
4679 \begin_layout Subsubsection
4680 \begin_inset CommandInset label
4681 LatexCommand label
4682 name "subsec:The-new-letter"
4683
4684 \end_inset
4685
4686 The new letter class:
4687  KOMA-Script Letter (V.
4688  2)
4689 \end_layout
4690
4691 \begin_layout Standard
4692 by 
4693 \noun on
4694 Jürgen Spitzmüller
4695 \end_layout
4696
4697 \begin_layout Standard
4698 \begin_inset VSpace medskip
4699 \end_inset
4700
4701
4702 \end_layout
4703
4704 \begin_layout Standard
4705 \noindent
4706 Koma-Script version 2.8 has introduced a new letter class 
4707 \family typewriter
4708 scrlttr2
4709 \family default
4710  which supersedes the now unsupported 
4711 \family typewriter
4712 scrlettr
4713 \family default
4714 .
4715  It has —
4716  on the \SpecialChar LaTeX
4717  side —
4718  a completely new interface and is not compatible with the old class.
4719  Therefore,
4720  \SpecialChar LyX
4721  supports both,
4722  though it is recommended you use the new class.
4723 \end_layout
4724
4725 \begin_layout Standard
4726 This class covers the same functionality as 
4727 \emph on
4728 letter (koma-script),
4729
4730 \emph default
4731  and a few more.
4732  The basic items are 
4733 \family sans
4734 Address
4735 \family default
4736  (receiver's address,
4737  same as 
4738 \family sans
4739 Letter
4740 \family default
4741  in the old layout),
4742  
4743 \family sans
4744 Opening
4745 \family default
4746 ,
4747  and 
4748 \family sans
4749 Closing
4750 \family default
4751 .
4752  
4753 \family sans
4754 NextAddress
4755 \family default
4756  will start a new letter (i.
4757 \begin_inset space \thinspace{}
4758 \end_inset
4759
4760 e.
4761 \begin_inset space \space{}
4762 \end_inset
4763
4764 you can write several letters per document).
4765  New elements are sender's 
4766 \family sans
4767 E-Mail
4768 \family default
4769 ,
4770  
4771 \family sans
4772 URL
4773 \family default
4774 ,
4775  
4776 \family sans
4777 Fax
4778 \family default
4779 ,
4780  
4781 \family sans
4782 Bank
4783 \family default
4784  and the possibility to use a 
4785 \family sans
4786 Logo
4787 \family default
4788  (via 
4789 \family sans
4790 Insert\SpecialChar menuseparator
4791 Graphics
4792 \family default
4793 ) in the header.
4794 \end_layout
4795
4796 \begin_layout Standard
4797 The biggest improvement is,
4798  though,
4799  that the letter's layout is configurable to meet almost any needs.
4800  This can be done via the preamble or with a special style file (Letter Class Option,
4801  extension 
4802 \family typewriter
4803 *.lco
4804 \family default
4805 ),
4806  that will be read in as a class option.
4807 \begin_inset Foot
4808 status collapsed
4809
4810 \begin_layout Plain Layout
4811 The KOMA package comes with some default 
4812 \family typewriter
4813 *.lco
4814 \family default
4815  files.
4816  There is,
4817  for instance,
4818  a 
4819 \family typewriter
4820 DIN.lco
4821 \family default
4822  file that follows german typesetting rules,
4823  or a 
4824 \family typewriter
4825 KOMAold.lco
4826 \family default
4827  that provides the default layout of the old 
4828 \family typewriter
4829 scrlettr
4830 \family default
4831  class.
4832  The latter can be loaded with the class option 
4833 \family typewriter
4834 KOMAold
4835 \family default
4836 ,
4837  inserted via the 
4838 \family sans
4839 Layout\SpecialChar menuseparator
4840 Document\SpecialChar menuseparator
4841 Extra Options
4842 \family default
4843  field.
4844 \end_layout
4845
4846 \end_inset
4847
4848  Have a look at the template in 
4849 \family sans
4850 \bar under
4851 F
4852 \bar default
4853 ile\SpecialChar menuseparator
4854 New
4855 \begin_inset space ~
4856 \end_inset
4857
4858 fro
4859 \bar under
4860 m
4861 \bar default
4862
4863 \begin_inset space ~
4864 \end_inset
4865
4866 Template\SpecialChar menuseparator
4867 Letters\SpecialChar menuseparator
4868 KOMA-Script Letter (V.2)
4869 \family default
4870 .
4871  A detailed description is to be found in the Koma-Script documentation (
4872 \emph on
4873 scrguide
4874 \emph default
4875 ).
4876 \end_layout
4877
4878 \begin_layout Subsubsection
4879 Problems
4880 \end_layout
4881
4882 \begin_layout Standard
4883 Visualizing the Koma-Script document classes in \SpecialChar LyX
4884 ,
4885  the \SpecialChar LyX
4886  internals cause some problems.
4887 \end_layout
4888
4889 \begin_layout Itemize
4890 The chapter number of a 
4891 \family sans
4892 Chapter
4893 \family default
4894  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
4895  The cause for that is the \SpecialChar LyX
4896  internal behavior for the labeltype 
4897 \family sans
4898 Counter_Chapter
4899 \family default
4900  in the layout file.
4901 \end_layout
4902
4903 \begin_layout Itemize
4904 The headings of the types 
4905 \family sans
4906 Addchap
4907 \family default
4908  and 
4909 \family sans
4910 Addsec
4911 \family default
4912  are only put in the 
4913 \begin_inset Quotes eld
4914 \end_inset
4915
4916 true
4917 \begin_inset Quotes erd
4918 \end_inset
4919
4920  \SpecialChar LaTeX
4921  table of contents,
4922  but not in the \SpecialChar LyX
4923  table of contents (
4924 \family sans
4925 Document\SpecialChar menuseparator
4926 Table
4927 \begin_inset space ~
4928 \end_inset
4929
4930 of
4931 \begin_inset space ~
4932 \end_inset
4933
4934 Contents
4935 \family default
4936 ).
4937 \end_layout
4938
4939 \begin_layout Itemize
4940 The paragraphs in a 
4941 \emph on
4942 letter
4943 \emph default
4944  document class appear in a skip separation mode,
4945  not indented.
4946  This is the standard behavior,
4947  no special \SpecialChar LaTeX
4948  commands are needed for that.
4949  But in the 
4950 \family sans
4951 Document\SpecialChar menuseparator
4952 Settings
4953 \family default
4954  dialog the corresponding radio button indicates 
4955 \family sans
4956 Indent
4957 \family default
4958 .
4959  A 
4960 \family sans
4961 Skip
4962 \family default
4963  value always has the effect that extra \SpecialChar LaTeX
4964  commands are inserted in the document to produce the gap,
4965  which is not what is wanted in this case.
4966 \end_layout
4967
4968 \begin_layout Subsection
4969 \begin_inset CommandInset label
4970 LatexCommand label
4971 name "subsec:Polish-M.W.collection"
4972
4973 \end_inset
4974
4975 Polish M.
4976 \begin_inset space \thinspace{}
4977 \end_inset
4978
4979 W.
4980 \begin_inset space \space{}
4981 \end_inset
4982
4983 collection
4984 \end_layout
4985
4986 \begin_layout Standard
4987 by 
4988 \noun on
4989 Tomasz Luczak
4990 \end_layout
4991
4992 \begin_layout Standard
4993 The \SpecialChar LyX
4994  document classes 
4995 \emph on
4996 Polish Article (MW Bundle)
4997 \emph default
4998 ,
4999  
5000 \emph on
5001 Polish Report (MW Bundle)
5002 \emph default
5003  and 
5004 \emph on
5005 Polish Book (MW Bundle)
5006 \emph default
5007  correspond to the \SpecialChar LaTeX
5008  document classes 
5009 \family typewriter
5010 mwart.cls
5011 \family default
5012 ,
5013  
5014 \family typewriter
5015 mwrep.cls
5016 \family default
5017  and 
5018 \family typewriter
5019 mwbk.cls
5020 \family default
5021 ,
5022  resp.
5023  They are replacements for the standard document classes 
5024 \family typewriter
5025 article.cls
5026 \family default
5027 ,
5028  
5029 \family typewriter
5030 report.cls
5031 \family default
5032  and 
5033 \family typewriter
5034 book.cls
5035 \family default
5036 ,
5037  resp.,
5038  and fit better to Polish typography conventions in a number of points.
5039  
5040 \end_layout
5041
5042 \begin_layout Standard
5043 Basic differences:
5044 \end_layout
5045
5046 \begin_layout Itemize
5047 Unnumbered titles (with star,
5048  e.
5049 \begin_inset space \thinspace{}
5050 \end_inset
5051
5052 g.
5053 \begin_inset space \space{}
5054 \end_inset
5055
5056
5057 \family sans
5058 Section*
5059 \family default
5060 ) are added into table of contents,
5061 \end_layout
5062
5063 \begin_layout Itemize
5064 Additional page styles:
5065 \end_layout
5066
5067 \begin_deeper
5068 \begin_layout Description
5069 uheadings header with separated lines,
5070 \end_layout
5071
5072 \begin_layout Description
5073 myheadings custom header,
5074  contents headers via commands:
5075  
5076 \family typewriter
5077
5078 \backslash
5079 markright
5080 \family default
5081  and 
5082 \family typewriter
5083
5084 \backslash
5085 markboth
5086 \family default
5087 ,
5088 \end_layout
5089
5090 \begin_layout Description
5091 myuheadings custom header with separated lines,
5092 \end_layout
5093
5094 \begin_layout Description
5095 outer page number is placed on outer side of page
5096 \end_layout
5097
5098 \end_deeper
5099 \begin_layout Itemize
5100 Options 
5101 \end_layout
5102
5103 \begin_deeper
5104 \begin_layout Description
5105 rmheadings serif titles —
5106  default,
5107 \end_layout
5108
5109 \begin_layout Description
5110 sfheadings sansserif titles,
5111 \end_layout
5112
5113 \begin_layout Description
5114 authortitle on title page first placed is author next title —
5115  default,
5116 \end_layout
5117
5118 \begin_layout Description
5119 titleauthor on title page first placed is title next author,
5120 \end_layout
5121
5122 \begin_layout Description
5123 withmarginpar reserve place on page for margins.
5124 \end_layout
5125
5126 \end_deeper
5127 \begin_layout Subsection
5128 Tufte Collection
5129 \end_layout
5130
5131 \begin_layout Standard
5132 The document classes 
5133 \family sans
5134 Tufte Book
5135 \family default
5136  and 
5137 \family sans
5138 Tufte Handout
5139 \family default
5140  use the 
5141 \family typewriter
5142 tufte-book.cls
5143 \family default
5144  and 
5145 \family typewriter
5146 tufte-handout.cls
5147 \family default
5148  document classes.
5149  Detailed information about these document classes can be found in 
5150 \family sans
5151 File\SpecialChar menuseparator
5152 Open Example\SpecialChar menuseparator
5153 Books\SpecialChar menuseparator
5154 Tufte Book
5155 \family default
5156  and 
5157 \family sans
5158 File\SpecialChar menuseparator
5159 Open Example\SpecialChar menuseparator
5160 Handouts\SpecialChar menuseparator
5161 Tufte Handout
5162 \family default
5163 .
5164 \end_layout
5165
5166 \begin_layout Section
5167 Articles
5168 \end_layout
5169
5170 \begin_layout Standard
5171 See also the document classes in the Collections (section
5172 \begin_inset space ~
5173 \end_inset
5174
5175
5176 \begin_inset CommandInset ref
5177 LatexCommand ref
5178 reference "sec:Collections"
5179 nolink "false"
5180
5181 \end_inset
5182
5183 ).
5184 \end_layout
5185
5186 \begin_layout Subsection
5187 Astronomy & Astrophysics
5188 \end_layout
5189
5190 \begin_layout Standard
5191 Original by 
5192 \noun on
5193 Peter Sütterlin
5194 \noun default
5195 ;
5196  updated by the \SpecialChar LyX
5197  Team
5198 \end_layout
5199
5200 \begin_layout Subsubsection
5201 Introduction
5202 \end_layout
5203
5204 \begin_layout Standard
5205 This section describes how \SpecialChar LyX
5206  can be used to write articles for submission to the scientific journal 
5207 \emph on
5208 Astronomy & Astrophysics
5209 \emph default
5210  (
5211 \begin_inset CommandInset href
5212 LatexCommand href
5213 name "aa-package"
5214 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5215 literal "false"
5216
5217 \end_inset
5218
5219 ) using Version 9.1 of the document class 
5220 \family typewriter
5221 aa.cls
5222 \family default
5223 ;
5224  information about it is available at 
5225 \begin_inset Flex URL
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229
5230 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5231 \end_layout
5232
5233 \end_inset
5234
5235 .
5236 \end_layout
5237
5238 \begin_layout Standard
5239 A manual comes together with the package and should be consulted before installing this document class as described in the 
5240 \emph on
5241 Installing New Document Classe
5242 \emph default
5243 s section of the 
5244 \emph on
5245 Customization
5246 \emph default
5247  manual.
5248 \end_layout
5249
5250 \begin_layout Standard
5251 \begin_inset Note Greyedout
5252 status open
5253
5254 \begin_layout Plain Layout
5255 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
5256  2001.
5257  That change also involved some slight changes to the style files,
5258  namely the removal of the thesaurus command.
5259  If you have an older version installed,
5260  please upgrade.
5261  For information about compatibility with the old (version 4) layout,
5262  please refer to the comments in 
5263 \family typewriter
5264 \SpecialChar LyX
5265 Dir/layouts/aapaper.layout
5266 \family default
5267 .
5268 \end_layout
5269
5270 \end_inset
5271
5272
5273 \end_layout
5274
5275 \begin_layout Subsubsection
5276 Getting started
5277 \end_layout
5278
5279 \begin_layout Standard
5280 It is recommended you start from the template in the menu 
5281 \family sans
5282 \bar under
5283 F
5284 \bar default
5285 ile\SpecialChar menuseparator
5286 New
5287 \begin_inset space ~
5288 \end_inset
5289
5290 fro
5291 \bar under
5292 m
5293 \bar default
5294
5295 \begin_inset space ~
5296 \end_inset
5297
5298 Template\SpecialChar menuseparator
5299 Articles\SpecialChar menuseparator
5300 Astronomy & Astrophysics
5301 \family default
5302 .
5303  If you are not using the template,
5304  note the following settings:
5305 \end_layout
5306
5307 \begin_layout Itemize
5308 Select 
5309 \family sans
5310 Astronomy & Astrophysics
5311 \family default
5312  in the 
5313 \family sans
5314 \bar under
5315 D
5316 \bar default
5317 ocument\SpecialChar menuseparator
5318
5319 \bar under
5320 S
5321 \bar default
5322 ettings\SpecialChar menuseparator
5323 Document
5324 \begin_inset space ~
5325 \end_inset
5326
5327 Class
5328 \family default
5329  dialog (OK,
5330  that one was obvious).
5331 \end_layout
5332
5333 \begin_layout Itemize
5334 Don't change the 
5335 \family sans
5336 Headings
5337 \begin_inset space ~
5338 \end_inset
5339
5340
5341 \bar under
5342 s
5343 \bar default
5344 tyle
5345 \family default
5346  in the 
5347 \family sans
5348 Page
5349 \begin_inset space ~
5350 \end_inset
5351
5352 Layout
5353 \family default
5354  dialog:
5355  leave it set to 
5356 \family sans
5357 Default
5358 \family default
5359 .
5360  The whole layout is done by the macros,
5361  you shouldn't change anything.
5362 \end_layout
5363
5364 \begin_layout Subsubsection
5365 The header block
5366 \end_layout
5367
5368 \begin_layout Standard
5369 First thing to enter is the header information.
5370  It consists of seven entries,
5371  of which one is optional.
5372  They are
5373 \end_layout
5374
5375 \begin_layout Itemize
5376
5377 \family sans
5378 Title
5379 \family default
5380 :
5381  [required]
5382 \end_layout
5383
5384 \begin_layout Itemize
5385
5386 \family sans
5387 Subtitle
5388 \family default
5389 :
5390  [optional]
5391 \end_layout
5392
5393 \begin_layout Itemize
5394
5395 \family sans
5396 Author
5397 \family default
5398 :
5399  [required]
5400 \end_layout
5401
5402 \begin_layout Itemize
5403
5404 \family sans
5405 Address
5406 \family default
5407 :
5408  [required]
5409 \end_layout
5410
5411 \begin_layout Itemize
5412
5413 \family sans
5414 Offprints
5415 \family default
5416  [optional].
5417  Determines to whom correspondence and reprints are to be sent.
5418 \end_layout
5419
5420 \begin_layout Itemize
5421
5422 \family sans
5423 Mail
5424 \family default
5425  [optional] Snail mail address for contacts.
5426 \end_layout
5427
5428 \begin_layout Itemize
5429
5430 \family sans
5431 Date
5432 \family default
5433 :
5434  [required].
5435  Suggested format is 
5436 \family typewriter
5437 Received:
5438  <date>;
5439  Accepted <date>
5440 \end_layout
5441
5442 \begin_layout Standard
5443 There is no need to issue the 
5444 \family typewriter
5445
5446 \backslash
5447 maketitle
5448 \family default
5449  command,
5450  this is done automatically by \SpecialChar LyX
5451  when the header is finished.
5452  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
5453  just to get the best optics and meets the layout of the real document.
5454 \end_layout
5455
5456 \begin_layout Standard
5457 If you want to place footnotes in the header block,
5458  e.
5459 \begin_inset space \thinspace{}
5460 \end_inset
5461
5462 g.
5463 \begin_inset space \space{}
5464 \end_inset
5465
5466 to state your present address,
5467  just use the standard footnote via the menu 
5468 \family sans
5469 \bar under
5470 I
5471 \bar default
5472 nsert\SpecialChar menuseparator
5473
5474 \bar under
5475 F
5476 \bar default
5477 ootnote.
5478
5479 \family default
5480  \SpecialChar LyX
5481  will automagically use the term 
5482 \family typewriter
5483
5484 \backslash
5485 thanks{}
5486 \family default
5487  in that case.
5488 \end_layout
5489
5490 \begin_layout Standard
5491 Under 
5492 \family sans
5493 Edit\SpecialChar menuseparator
5494 Text Style
5495 \family default
5496 ,
5497  you'll find two insets which are relevant for the titling:
5498 \end_layout
5499
5500 \begin_layout Itemize
5501
5502 \family sans
5503 Institute
5504 \family typewriter
5505  
5506 \family default
5507 to mark corresponding author\SpecialChar breakableslash
5508 institute pairs.
5509  The institutes are numbered sequentially as they appear in the 
5510 \family sans
5511 Address
5512 \family default
5513  field,
5514  so you have to put a marker to each author.
5515 \end_layout
5516
5517 \begin_layout Itemize
5518
5519 \family sans
5520 Email
5521 \family default
5522  to supply an email address for fast contact.
5523 \end_layout
5524
5525 \begin_layout Standard
5526 In addition to these topics,
5527  the macros use one additional \SpecialChar LaTeX
5528  commands that has no counterpart in \SpecialChar LyX
5529 :
5530 \end_layout
5531
5532 \begin_layout Itemize
5533
5534 \family typewriter
5535
5536 \backslash
5537 and
5538 \family default
5539  to separate different names for more than one author and institute,
5540  respectively.
5541 \end_layout
5542
5543 \begin_layout Standard
5544 The appropriate command has to be entered as \SpecialChar TeX
5545  code in \SpecialChar LyX
5546 .
5547  See the examples in the template and in 
5548 \family sans
5549 File\SpecialChar menuseparator
5550 Open Example\SpecialChar menuseparator
5551 Articles\SpecialChar menuseparator
5552 Astronomy & Astrophysics
5553 \family default
5554 .
5555 \end_layout
5556
5557 \begin_layout Subsubsection
5558 The abstract
5559 \end_layout
5560
5561 \begin_layout Standard
5562 The abstract should immediately follow the header block.
5563  With version 5 the abstract environment was changed to a command,
5564  and there is now a restriction to only one paragraph.
5565  In addition,
5566  it should contain an entry with the keywords.
5567  This is done via the paragraph style 
5568 \family sans
5569 Keywords
5570 \family default
5571 .
5572  Refer to the example paper.
5573 \end_layout
5574
5575 \begin_layout Subsubsection
5576 Supported environments
5577 \end_layout
5578
5579 \begin_layout Standard
5580 The A&A paper layout supports the following environments for structuring your text:
5581 \end_layout
5582
5583 \begin_layout Standard
5584
5585 \family sans
5586 \begin_inset Flex Multiple Columns
5587 status open
5588
5589 \begin_layout Itemize
5590
5591 \family sans
5592 Standard
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \family sans
5598 Section
5599 \end_layout
5600
5601 \begin_layout Itemize
5602
5603 \family sans
5604 Subsection
5605 \end_layout
5606
5607 \begin_layout Itemize
5608
5609 \family sans
5610 Subsubsection
5611 \end_layout
5612
5613 \begin_layout Itemize
5614
5615 \family sans
5616 Itemize
5617 \end_layout
5618
5619 \begin_layout Itemize
5620
5621 \family sans
5622 Enumerate
5623 \end_layout
5624
5625 \begin_layout Itemize
5626
5627 \family sans
5628 Description
5629 \end_layout
5630
5631 \begin_layout Itemize
5632
5633 \family sans
5634 Caption
5635 \end_layout
5636
5637 \begin_layout Itemize
5638
5639 \family sans
5640 Abstract
5641 \end_layout
5642
5643 \begin_layout Itemize
5644
5645 \family sans
5646 Acknowledgment
5647 \end_layout
5648
5649 \begin_layout Itemize
5650
5651 \family sans
5652 Bibliography
5653 \end_layout
5654
5655 \begin_layout Itemize
5656 LaTeX
5657 \end_layout
5658
5659 \end_inset
5660
5661
5662 \end_layout
5663
5664 \begin_layout Subsubsection
5665 Commands not supported by \SpecialChar LyX
5666
5667 \end_layout
5668
5669 \begin_layout Standard
5670 Some commands are not yet supported by the 
5671 \family sans
5672 Astronomy & Astrophysics
5673 \family default
5674  layout for \SpecialChar LyX
5675 .
5676  Some have already been mentioned.
5677  For the sake of completeness,
5678  they are listed all together here:
5679 \end_layout
5680
5681 \begin_layout Itemize
5682
5683 \family typewriter
5684
5685 \backslash
5686 and
5687 \end_layout
5688
5689 \begin_layout Itemize
5690
5691 \family typewriter
5692
5693 \backslash
5694 authorrunning
5695 \end_layout
5696
5697 \begin_layout Itemize
5698
5699 \family typewriter
5700
5701 \backslash
5702 object{}
5703 \end_layout
5704
5705 \begin_layout Itemize
5706
5707 \family typewriter
5708
5709 \backslash
5710 titlerunning{}
5711 \end_layout
5712
5713 \begin_layout Standard
5714 If you want to use any of these commands,
5715  you have to enter them yourself.
5716  Do not forget to use
5717 \family sans
5718  
5719 \bar under
5720 I
5721 \bar default
5722 nsert\SpecialChar menuseparator
5723 \SpecialChar TeX
5724
5725 \begin_inset space ~
5726 \end_inset
5727
5728 Code
5729 \family default
5730 !
5731 \end_layout
5732
5733 \begin_layout Subsubsection
5734 Figure and Table Floats
5735 \end_layout
5736
5737 \begin_layout Standard
5738 \SpecialChar LyX
5739  provides support for the necessary float environments 
5740 \family sans
5741 figure,
5742  figure*,
5743  table
5744 \family default
5745  and 
5746 \family sans
5747 table*
5748 \family default
5749 ,
5750  therefore we won't tell much about it here.
5751  Refer to the 
5752 \emph on
5753 User's
5754 \begin_inset space ~
5755 \end_inset
5756
5757 Guide
5758 \emph default
5759 .
5760  Just remember that tables should be left-aligned.
5761  For that,
5762  select the table and change the alignment in 
5763 \family sans
5764 \bar under
5765 E
5766 \bar default
5767 dit\SpecialChar menuseparator
5768
5769 \bar under
5770 P
5771 \bar default
5772 aragraph
5773 \begin_inset space ~
5774 \end_inset
5775
5776 Settings
5777 \family default
5778  (
5779 \begin_inset Info
5780 type  "icon"
5781 arg   "layout-paragraph"
5782 \end_inset
5783
5784 )
5785 \family sans
5786 .
5787 \end_layout
5788
5789 \begin_layout Standard
5790 There is only one special thing:
5791  the figures with a caption beside the figure.
5792  To create such a figure,
5793  you have to do the following:
5794 \end_layout
5795
5796 \begin_layout Enumerate
5797 Create a wide figure float:
5798  
5799 \family sans
5800 \bar under
5801 I
5802 \bar default
5803 nsert\SpecialChar menuseparator
5804 Flo
5805 \bar under
5806 a
5807 \bar default
5808 t\SpecialChar menuseparator
5809 Figure
5810 \family default
5811 ,
5812  then,
5813  from within the float,
5814  use the menu 
5815 \family sans
5816 \bar under
5817 E
5818 \bar default
5819 dit\SpecialChar menuseparator
5820 Flo
5821 \bar under
5822 a
5823 \bar default
5824 t
5825 \begin_inset space ~
5826 \end_inset
5827
5828 Settings
5829 \family default
5830  and check 
5831 \family sans
5832 \bar under
5833 S
5834 \bar default
5835 pan
5836 \begin_inset space ~
5837 \end_inset
5838
5839 columns
5840 \family default
5841  in the 
5842 \family sans
5843 float
5844 \family default
5845  dialog.
5846 \end_layout
5847
5848 \begin_layout Enumerate
5849 Enter your caption text.
5850 \end_layout
5851
5852 \begin_layout Enumerate
5853 Press 
5854 \family sans
5855 Return
5856 \family default
5857  to move the cursor above the caption.
5858 \end_layout
5859
5860 \begin_layout Enumerate
5861 Insert your figure
5862 \end_layout
5863
5864 \begin_layout Enumerate
5865 Position the cursor after the figure and insert a horizontal fill by using the menu:
5866  
5867 \family sans
5868 \bar under
5869 I
5870 \bar default
5871 nsert\SpecialChar menuseparator
5872 F
5873 \bar under
5874 o
5875 \bar default
5876 rmatting\SpecialChar menuseparator
5877 H
5878 \bar under
5879 o
5880 \bar default
5881 rizontal
5882 \begin_inset space ~
5883 \end_inset
5884
5885 Space
5886 \family default
5887  to open the 
5888 \family sans
5889 space
5890 \family default
5891  dialog and select the 
5892 \family sans
5893 Horizontal fill
5894 \family default
5895  option from the 
5896 \family sans
5897 \bar under
5898 S
5899 \bar default
5900 pacing
5901 \family default
5902  context menu.
5903 \end_layout
5904
5905 \begin_layout Enumerate
5906 Switch to \SpecialChar LaTeX
5907  mode:
5908  
5909 \family sans
5910 M-c
5911 \begin_inset space ~
5912 \end_inset
5913
5914 t
5915 \family default
5916 .
5917 \end_layout
5918
5919 \begin_layout Enumerate
5920 Enter 
5921 \family typewriter
5922
5923 \backslash
5924 parbox[b]{55mm}{
5925 \family default
5926  
5927 \emph on
5928 Do not close the brace!
5929 \end_layout
5930
5931 \begin_layout Enumerate
5932 Position the cursor behind the caption text,
5933  switch to \SpecialChar LaTeX
5934  mode and insert the closing brace:
5935  
5936 \family sans
5937 M-c
5938 \begin_inset space ~
5939 \end_inset
5940
5941 t
5942 \family default
5943  
5944 \family typewriter
5945 }
5946 \family default
5947 .
5948 \end_layout
5949
5950 \begin_layout Standard
5951 Also,
5952  refer to the figures in the file in 
5953 \family sans
5954 File\SpecialChar menuseparator
5955 Open Example\SpecialChar menuseparator
5956 Articles\SpecialChar menuseparator
5957 Astronomy & Astrophysics
5958 \family default
5959 .
5960 \end_layout
5961
5962 \begin_layout Subsubsection
5963 Referee layout
5964 \end_layout
5965
5966 \begin_layout Standard
5967 For submission,
5968  the paper has to be formatted in a special double-spacing layout.
5969  For this purpose,
5970  you have to add the option 
5971 \family typewriter
5972 referee
5973 \family default
5974  to the 
5975 \family sans
5976 Cus
5977 \bar under
5978 t
5979 \bar default
5980 om Class
5981 \begin_inset space ~
5982 \end_inset
5983
5984 options
5985 \family default
5986  in the 
5987 \family sans
5988 \bar under
5989 D
5990 \bar default
5991 ocument\SpecialChar menuseparator
5992
5993 \bar under
5994 S
5995 \bar default
5996 ettings\SpecialChar menuseparator
5997 Document
5998 \begin_inset space ~
5999 \end_inset
6000
6001 Class
6002 \family default
6003  dialog.
6004 \end_layout
6005
6006 \begin_layout Subsubsection
6007 The example paper
6008 \end_layout
6009
6010 \begin_layout Standard
6011 The example in 
6012 \family sans
6013 File\SpecialChar menuseparator
6014 Open Example\SpecialChar menuseparator
6015 Articles\SpecialChar menuseparator
6016 Astronomy & Astrophysics
6017 \family default
6018  was written with \SpecialChar LyX
6019 .
6020  It is the example paper from the original macro package,
6021  
6022 \family typewriter
6023 aa.dem
6024 \family default
6025  in the 
6026 \begin_inset CommandInset href
6027 LatexCommand href
6028 name "aa-package"
6029 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6030 literal "false"
6031
6032 \end_inset
6033
6034 ,
6035  but translated to \SpecialChar LyX
6036  using the older unstructured abstract type.
6037  Use it for inspiration,
6038  and compare the \SpecialChar LaTeX
6039  code in 
6040 \family typewriter
6041 aa.dem
6042 \family default
6043  with the \SpecialChar LyX
6044  way of writing.
6045 \end_layout
6046
6047 \begin_layout Subsection
6048 AAS\SpecialChar TeX
6049
6050 \end_layout
6051
6052 \begin_layout Standard
6053 by 
6054 \noun on
6055 Mike Ressler
6056 \end_layout
6057
6058 \begin_layout Subsubsection
6059 Introduction
6060 \end_layout
6061
6062 \begin_layout Standard
6063 AAS\SpecialChar TeX
6064  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
6065  the Astrophysical Journal (including the Letters and Supplement),
6066  the Astronomical Journal,
6067  and the Publications of the Astronomical Society of the Pacific.
6068  \SpecialChar LyX
6069  has proven to be an excellent tool for generating these documents,
6070  especially given its equation,
6071  citation,
6072  and figure handling capabilities.
6073  \SpecialChar LyX
6074  requires version 5.0 (or higher) of these macros;
6075  preferably 6.0,
6076  which is the version described here,
6077  or higher.
6078  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6079 2.09 and are fundamentally incompatible with \SpecialChar LyX
6080 .
6081  The AAS\SpecialChar TeX
6082  package may be downloaded from the AAS\SpecialChar TeX
6083  Web site
6084 \end_layout
6085
6086 \begin_layout Standard
6087 \begin_inset VSpace medskip
6088 \end_inset
6089
6090
6091 \end_layout
6092
6093 \begin_layout Standard
6094 \align center
6095 \begin_inset Flex URL
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099
6100 https://aas.org/aastex/aastex-downloads
6101 \end_layout
6102
6103 \end_inset
6104
6105
6106 \end_layout
6107
6108 \begin_layout Standard
6109 \begin_inset VSpace medskip
6110 \end_inset
6111
6112
6113 \end_layout
6114
6115 \begin_layout Standard
6116 A complete user guide is contained in that package and you should familiarize yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6117 .
6118  \SpecialChar LyX
6119  will not reduce the need to figure out all the AAS\SpecialChar TeX
6120  commands,
6121  it will only reduce the drudgery of typing everything in.
6122  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6123  document conforms completely to the requirements of the journal to which you are submitting your paper.
6124 \end_layout
6125
6126 \begin_layout Subsubsection
6127 Starting a New Paper
6128 \end_layout
6129
6130 \begin_layout Standard
6131 I strongly suggest that you start with the AAS\SpecialChar TeX
6132  template file.
6133  Click on 
6134 \family sans
6135 File\SpecialChar menuseparator
6136 New from
6137 \family default
6138  
6139 \family sans
6140 Template\SpecialChar menuseparator
6141 Articles\SpecialChar menuseparator
6142 American Astronomical Society
6143 \family default
6144 .
6145  This will show the most common fields found in a manuscript.
6146  Simply overwrite the existing text (including the brackets,
6147  
6148 \family typewriter
6149 <>
6150 \family default
6151 ) with the correct information.
6152  Many of the AAS\SpecialChar TeX
6153  commands and environments can be implemented directly in \SpecialChar LyX
6154 ,
6155  but some cannot.
6156  For commands such as these,
6157  the \SpecialChar LaTeX
6158  code must be entered directly and marked as such.
6159  Such commands are referred to as \SpecialChar TeX
6160  code,
6161  or Evil Red Text.
6162  I tried to minimize the amount of \SpecialChar TeX
6163  code needed in an AAS\SpecialChar TeX
6164  document.
6165 \end_layout
6166
6167 \begin_layout Subsubsection
6168 Finishing Your Paper
6169 \end_layout
6170
6171 \begin_layout Standard
6172 When the paper is finished to your satisfaction and previews/prints correctly,
6173  there are a few 
6174 \begin_inset Quotes eld
6175 \end_inset
6176
6177 postprocessing
6178 \begin_inset Quotes erd
6179 \end_inset
6180
6181  actions which need to be done before you submit it to the journals.
6182  
6183 \end_layout
6184
6185 \begin_layout Enumerate
6186 Export your paper as a \SpecialChar LaTeX
6187  file (
6188 \family sans
6189 File\SpecialChar menuseparator
6190 Export\SpecialChar menuseparator
6191 \SpecialChar LaTeX
6192
6193 \family default
6194 ).
6195  
6196 \end_layout
6197
6198 \begin_layout Enumerate
6199 Edit the resulting 
6200 \family typewriter
6201 .tex
6202 \family default
6203  file with your favorite text editor
6204 \end_layout
6205
6206 \begin_deeper
6207 \begin_layout Enumerate
6208 remove the comment lines before the 
6209 \family typewriter
6210
6211 \backslash
6212 documentclass
6213 \family default
6214  command
6215 \end_layout
6216
6217 \begin_layout Enumerate
6218 remove the 
6219 \family typewriter
6220
6221 \backslash
6222 usepackage...{fontenc}
6223 \family default
6224  line if it appears (usually just after 
6225 \family typewriter
6226
6227 \backslash
6228 documentclass
6229 \family default
6230 };
6231  also remove the 
6232 \family typewriter
6233
6234 \backslash
6235 secnumdepth
6236 \family default
6237  line if it appears.
6238 \end_layout
6239
6240 \begin_layout Enumerate
6241 remove everything between (and including) the 
6242 \family typewriter
6243
6244 \backslash
6245 makeatletter
6246 \family default
6247  and 
6248 \family typewriter
6249
6250 \backslash
6251 makeatother
6252 \family default
6253  commands,
6254  except for any commands you specifically put into the \SpecialChar LaTeX
6255  preamble (which should appear immediately after the 
6256 \begin_inset Quotes eld
6257 \end_inset
6258
6259 User specified \SpecialChar LaTeX
6260  commands
6261 \begin_inset Quotes erd
6262 \end_inset
6263
6264  comment in the 
6265 \family typewriter
6266 .tex
6267 \family default
6268  file).
6269 \end_layout
6270
6271 \end_deeper
6272 \begin_layout Enumerate
6273 Run the resulting file through \SpecialChar LaTeX
6274  to make sure it still processes correctly.
6275 \end_layout
6276
6277 \begin_layout Enumerate
6278 Reread the journal requirements to make sure your filenames and formats are correct.
6279 \end_layout
6280
6281 \begin_layout Enumerate
6282 Submit it.
6283 \end_layout
6284
6285 \begin_layout Subsubsection
6286 Comments On Specific Commands
6287 \end_layout
6288
6289 \begin_layout Standard
6290 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6291  commands:
6292  the AAS\SpecialChar TeX
6293  User Guide (
6294 \family typewriter
6295 aasguide.tex
6296 \family default
6297 ) gives a good description of each.
6298  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
6299  So let's begin \SpecialChar ldots
6300
6301 \end_layout
6302
6303 \begin_layout Paragraph
6304 Things that work as expected
6305 \end_layout
6306
6307 \begin_layout Standard
6308 Because they work as you might expect,
6309  I simply list them and the section they are found in:
6310  
6311 \family typewriter
6312
6313 \backslash
6314 documentclass
6315 \family default
6316  (2.1.1),
6317  
6318 \family typewriter
6319
6320 \backslash
6321 begin{document}
6322 \family default
6323  (2.2),
6324  
6325 \family typewriter
6326
6327 \backslash
6328 title
6329 \family default
6330  (2.3),
6331  
6332 \family typewriter
6333
6334 \backslash
6335 author
6336 \family default
6337  (2.3),
6338  
6339 \family typewriter
6340
6341 \backslash
6342 affil
6343 \family default
6344  (2.3),
6345  
6346 \family typewriter
6347
6348 \backslash
6349 abstract
6350 \family default
6351  (2.4),
6352  
6353 \family typewriter
6354
6355 \backslash
6356 keywords
6357 \family default
6358  (2.5),
6359  
6360 \family typewriter
6361
6362 \backslash
6363 section
6364 \family default
6365  (2.7),
6366  
6367 \family typewriter
6368
6369 \backslash
6370 subsection
6371 \family default
6372  (2.7),
6373  
6374 \family typewriter
6375
6376 \backslash
6377 subsubsection
6378 \family default
6379  (2.7),
6380  
6381 \family typewriter
6382
6383 \backslash
6384 paragraph
6385 \family default
6386  (2.7),
6387  
6388 \family typewriter
6389
6390 \backslash
6391 facility
6392 \family default
6393  (2.10),
6394  
6395 \family typewriter
6396
6397 \backslash
6398 begin{displaymath}
6399 \family default
6400  (2.12),
6401  
6402 \family typewriter
6403
6404 \backslash
6405 begin{equation}
6406 \family default
6407  (2.12),
6408  
6409 \family typewriter
6410
6411 \backslash
6412 begin{eqnarray}
6413 \family default
6414  (2.12),
6415  
6416 \family typewriter
6417
6418 \backslash
6419 begin{mathletters}
6420 \family default
6421  (2.12),
6422  
6423 \family typewriter
6424
6425 \backslash
6426 begin{thebibliography}
6427 \family default
6428  (2.13.1),
6429  
6430 \family typewriter
6431
6432 \backslash
6433 bibitem
6434 \family default
6435  (2.13.2),
6436  all the cite commands and their variations (2.13.2),
6437  the generic graphicx figure commands (2.14.1),
6438  
6439 \family typewriter
6440
6441 \backslash
6442 begin{table}
6443 \family default
6444  (2.15.4),
6445  
6446 \family typewriter
6447
6448 \backslash
6449 begin{tabular}
6450 \family default
6451  (2.15.4),
6452  
6453 \family typewriter
6454
6455 \backslash
6456 caption
6457 \family default
6458  (2.15.4),
6459  
6460 \family typewriter
6461
6462 \backslash
6463 label
6464 \family default
6465  (2.15.4,
6466  amongst other places),
6467  
6468 \family typewriter
6469
6470 \backslash
6471 tablerefs
6472 \family default
6473  (2.15.5),
6474  
6475 \family typewriter
6476
6477 \backslash
6478 tablecomments
6479 \family default
6480  (2.15.5),
6481  
6482 \family typewriter
6483
6484 \backslash
6485 url
6486 \family default
6487  (2.17.4),
6488  
6489 \family typewriter
6490
6491 \backslash
6492 end{document}
6493 \family default
6494  (2.18).
6495 \end_layout
6496
6497 \begin_layout Standard
6498 The following style options also work correctly:
6499  
6500 \family typewriter
6501 longabstract
6502 \family default
6503  (2.4),
6504  
6505 \family typewriter
6506 preprint
6507 \family default
6508  (3.2.1),
6509  
6510 \family typewriter
6511 preprint2
6512 \family default
6513  (3.2.2),
6514  
6515 \family typewriter
6516 eqsecnum
6517 \family default
6518  (3.3),
6519  
6520 \family typewriter
6521 flushrt
6522 \family default
6523  (3.4).
6524  Simply put them in the 
6525 \family sans
6526 Options
6527 \family default
6528  box in 
6529 \family sans
6530 Layout\SpecialChar menuseparator
6531 Document
6532 \family default
6533 .
6534 \end_layout
6535
6536 \begin_layout Paragraph
6537 Things that work,
6538  but require more comment
6539 \end_layout
6540
6541 \begin_layout Standard
6542 The following items work,
6543  but require a little more discussion:
6544 \end_layout
6545
6546 \begin_layout Itemize
6547 These items are reserved for use by the journal editors,
6548  but you can put them into the \SpecialChar LaTeX
6549  preamble if you feel compelled to do so:
6550  
6551 \family typewriter
6552
6553 \backslash
6554 received
6555 \family default
6556 ,
6557  
6558 \family typewriter
6559
6560 \backslash
6561 revised
6562 \family default
6563 ,
6564  
6565 \family typewriter
6566
6567 \backslash
6568 accepted
6569 \family default
6570 ,
6571  
6572 \family typewriter
6573
6574 \backslash
6575 ccc
6576 \family default
6577 ,
6578  
6579 \family typewriter
6580
6581 \backslash
6582 cpright
6583 \family default
6584  (all from 2.1.3)
6585 \end_layout
6586
6587 \begin_layout Itemize
6588 These items may be placed in the \SpecialChar LaTeX
6589  preamble,
6590  and are included as blanks in the template file:
6591  
6592 \family typewriter
6593
6594 \backslash
6595 slugcomment
6596 \family default
6597  (2.1.4),
6598  
6599 \family typewriter
6600
6601 \backslash
6602 shorttitle
6603 \family default
6604  (2.1.5),
6605  
6606 \family typewriter
6607
6608 \backslash
6609 shortauthors
6610 \family default
6611  (2.1.5)
6612 \end_layout
6613
6614 \begin_layout Itemize
6615
6616 \family typewriter
6617
6618 \backslash
6619 email
6620 \family default
6621  (2.3) – can only be used 
6622 \begin_inset Quotes eld
6623 \end_inset
6624
6625 standalone
6626 \begin_inset Quotes erd
6627 \end_inset
6628
6629 ,
6630  not in the middle of a paragraph.
6631  Use \SpecialChar TeX
6632  code if you need to embed it.
6633 \end_layout
6634
6635 \begin_layout Itemize
6636
6637 \family typewriter
6638
6639 \backslash
6640 and
6641 \family default
6642  (2.3) – will have extra {} after it.
6643  This should not cause an error.
6644 \end_layout
6645
6646 \begin_layout Itemize
6647
6648 \family typewriter
6649
6650 \backslash
6651 notetoeditor
6652 \family default
6653  (2.6) – can only be used 
6654 \begin_inset Quotes eld
6655 \end_inset
6656
6657 standalone
6658 \begin_inset Quotes erd
6659 \end_inset
6660
6661 ,
6662  not in the middle of a paragraph.
6663  Use \SpecialChar TeX
6664  code if you need to embed it.
6665 \end_layout
6666
6667 \begin_layout Itemize
6668
6669 \family typewriter
6670
6671 \backslash
6672 placetable
6673 \family default
6674  (2.8) – can't insert a cross-reference tag,
6675  you must type the tag name by hand
6676 \end_layout
6677
6678 \begin_layout Itemize
6679
6680 \family typewriter
6681
6682 \backslash
6683 placefigure
6684 \family default
6685  (2.8) – same as for 
6686 \family typewriter
6687
6688 \backslash
6689 placetable
6690 \end_layout
6691
6692 \begin_layout Itemize
6693
6694 \family typewriter
6695
6696 \backslash
6697 acknowledgements
6698 \family default
6699  (2.9) – will have extra {} after it.
6700  This should not cause an error.
6701 \end_layout
6702
6703 \begin_layout Itemize
6704
6705 \family typewriter
6706
6707 \backslash
6708 appendix
6709 \family default
6710  (2.11) – will have extra {} after it.
6711  This should not cause an error.
6712 \end_layout
6713
6714 \begin_layout Itemize
6715
6716 \family typewriter
6717
6718 \backslash
6719 figcaption
6720 \family default
6721  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
6722 \family sans
6723 Insert\SpecialChar menuseparator
6724 Short Title
6725 \family default
6726 .
6727  
6728 \begin_inset Quotes eld
6729 \end_inset
6730
6731 Short Title
6732 \begin_inset Quotes erd
6733 \end_inset
6734
6735  inserts an optional argument of the type needed by 
6736 \family typewriter
6737
6738 \backslash
6739 figcaption
6740 \family default
6741 .
6742  Hopefully it will be renamed someday.
6743 \end_layout
6744
6745 \begin_layout Itemize
6746
6747 \family typewriter
6748
6749 \backslash
6750 objectname
6751 \family default
6752  (2.17.1) – same as 
6753 \family typewriter
6754
6755 \backslash
6756 figcaption
6757 \family default
6758  for the catalog ID optional parameter
6759 \end_layout
6760
6761 \begin_layout Itemize
6762
6763 \family typewriter
6764
6765 \backslash
6766 dataset
6767 \family default
6768  (2.17.1) – same as 
6769 \family typewriter
6770
6771 \backslash
6772 figcaption
6773 \family default
6774  for the catalog ID optional parameter
6775 \end_layout
6776
6777 \begin_layout Paragraph
6778 Things not implemented,
6779  use \SpecialChar TeX
6780  code
6781 \end_layout
6782
6783 \begin_layout Standard
6784
6785 \family typewriter
6786
6787 \backslash
6788 eqnum
6789 \family default
6790  (2.12),
6791  
6792 \family typewriter
6793
6794 \backslash
6795 setcounter{equation}
6796 \family default
6797  (2.12),
6798  Journal name abbreviations (2.13.4),
6799  
6800 \family typewriter
6801
6802 \backslash
6803 figurenum
6804 \family default
6805  (2.14.1),
6806  
6807 \family typewriter
6808
6809 \backslash
6810 epsscale
6811 \family default
6812  (2.14.1),
6813  
6814 \family typewriter
6815
6816 \backslash
6817 plotone
6818 \family default
6819  (2.14.1),
6820  
6821 \family typewriter
6822
6823 \backslash
6824 plottwo
6825 \family default
6826  (2.14.1),
6827  
6828 \family typewriter
6829
6830 \backslash
6831 tablenum
6832 \family default
6833  (2.15.4),
6834  
6835 \family typewriter
6836
6837 \backslash
6838 tableline
6839 \family default
6840  (2.15.4,
6841  insert it as the first element in the lefthand cell after where you want it.
6842  Don't use any of \SpecialChar LyX
6843 's rules in the table),
6844  
6845 \family typewriter
6846
6847 \backslash
6848 tablenotemark
6849 \family default
6850  (2.15.5),
6851  
6852 \family typewriter
6853
6854 \backslash
6855 tablenotetext
6856 \family default
6857  (2.15.5),
6858  much of Misc (2.17,
6859  except 
6860 \family typewriter
6861
6862 \backslash
6863 objectname
6864 \family default
6865 ,
6866  
6867 \family typewriter
6868
6869 \backslash
6870 dataset
6871 \family default
6872 ,
6873  
6874 \family typewriter
6875
6876 \backslash
6877 url
6878 \family default
6879 ,
6880  and 
6881 \family typewriter
6882
6883 \backslash
6884 email
6885 \family default
6886 ;
6887  see above),
6888  
6889 \family typewriter
6890
6891 \backslash
6892 singlespace
6893 \family default
6894  (3.1),
6895  
6896 \family typewriter
6897
6898 \backslash
6899 doublespace
6900 \family default
6901  (3.1),
6902  
6903 \family typewriter
6904
6905 \backslash
6906 onecolumn
6907 \family default
6908  (3.2),
6909  
6910 \family typewriter
6911
6912 \backslash
6913 twocolumn
6914 \family default
6915  (3.2)
6916 \end_layout
6917
6918 \begin_layout Paragraph
6919 Things that cannot be implemented
6920 \end_layout
6921
6922 \begin_layout Standard
6923 \SpecialChar ldots
6924  at least in any meaningful sort of way,
6925  so I suggest ignoring them.
6926  They are the references environment (2.13.3),
6927  and the deluxetable environment (2.15).
6928  If you really,
6929  really need to use deluxetable,
6930  I suggest editing it in a separate file with a text editor,
6931  then using 
6932 \family sans
6933 Insert\SpecialChar menuseparator
6934 Child
6935 \begin_inset space ~
6936 \end_inset
6937
6938 Document
6939 \family default
6940  to include it in your \SpecialChar LyX
6941  document.
6942  See 
6943 \family sans
6944 File\SpecialChar menuseparator
6945 Open Example\SpecialChar menuseparator
6946 Articles\SpecialChar menuseparator
6947 American Astronomical Society
6948 \family default
6949  for an example of this.
6950 \end_layout
6951
6952 \begin_layout Subsubsection
6953 FAQs,
6954  Tips,
6955  Tricks,
6956  and Other Ruminations
6957 \end_layout
6958
6959 \begin_layout Paragraph
6960 Getting \SpecialChar LyX
6961  and AAS\SpecialChar TeX
6962  to cooperate
6963 \end_layout
6964
6965 \begin_layout Standard
6966 It can be a bit tricky to get \SpecialChar LyX
6967  to recognize a new layout and document class.
6968  When all else fails,
6969  do this:
6970 \end_layout
6971
6972 \begin_layout Enumerate
6973 Make certain that \SpecialChar LaTeX
6974  can find AAS\SpecialChar TeX
6975 .
6976  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6977  distribution into a directory completely unrelated to \SpecialChar LaTeX
6978  or AAS\SpecialChar TeX
6979  and run \SpecialChar LaTeX
6980  on 
6981 \family typewriter
6982 sample.tex
6983 \family default
6984 .
6985 \end_layout
6986
6987 \begin_layout Enumerate
6988 Make certain that 
6989 \family typewriter
6990 aastex63.layout
6991 \family default
6992  appears in \SpecialChar LyX
6993 's 
6994 \family typewriter
6995 layouts
6996 \family default
6997  folder
6998 \end_layout
6999
7000 \begin_layout Enumerate
7001 Rerun 
7002 \family sans
7003 Tools\SpecialChar menuseparator
7004 Reconfigure
7005 \family default
7006  in \SpecialChar LyX
7007 ,
7008  then restart \SpecialChar LyX
7009 .
7010 \end_layout
7011
7012 \begin_layout Enumerate
7013 Open a regular new file,
7014  not from a template.
7015  Does 
7016 \family sans
7017 American Astronomical Society (AASTeX V.
7018 \begin_inset space \thinspace{}
7019 \end_inset
7020
7021 6.3.1)
7022 \family default
7023  appear in the class list in 
7024 \family sans
7025 Document\SpecialChar menuseparator
7026 Settings
7027 \family default
7028 ?
7029 \end_layout
7030
7031 \begin_layout Standard
7032 If you get a warning from an existing AAS\SpecialChar TeX
7033  document about not being able to find the AAS\SpecialChar TeX
7034  layout or a message about 
7035 \begin_inset Quotes eld
7036 \end_inset
7037
7038 You should not mix title layouts with normal ones
7039 \begin_inset Quotes erd
7040 \end_inset
7041
7042 ,
7043  things haven't been installed correctly.
7044 \end_layout
7045
7046 \begin_layout Paragraph
7047 \SpecialChar LaTeX
7048  error processing a table 
7049 \end_layout
7050
7051 \begin_layout Standard
7052 \SpecialChar LyX
7053 ,
7054  by default,
7055  attempts to center the table caption/title.
7056  This seems to produce a bad interaction in AAS\SpecialChar TeX
7057  so you should click somewhere in the caption/title,
7058  then select 
7059 \family sans
7060 Edit\SpecialChar menuseparator
7061 Paragraph
7062 \begin_inset space ~
7063 \end_inset
7064
7065 Settings
7066 \family default
7067 ,
7068  then set the 
7069 \family sans
7070 Alignment
7071 \family default
7072  to 
7073 \family sans
7074 Block
7075 \family default
7076 .
7077  This took care of it for me.
7078 \end_layout
7079
7080 \begin_layout Paragraph
7081 References
7082 \end_layout
7083
7084 \begin_layout Standard
7085 A couple of things:
7086  
7087 \end_layout
7088
7089 \begin_layout Enumerate
7090 I have noticed some funny spacing in the reference entries in the text.
7091  When you enter the bibliography item data,
7092  make sure their is 
7093 \emph on
7094 no
7095 \emph default
7096  space between the last author and the parenthesis setting off the year;
7097  
7098 \emph on
7099 e.
7100 \begin_inset space \thinspace{}
7101 \end_inset
7102
7103 g.
7104 \begin_inset space \space{}
7105 \end_inset
7106
7107
7108 \emph default
7109 type 
7110 \family typewriter
7111 Ressler(1992)
7112 \family default
7113 ,
7114  not 
7115 \family typewriter
7116 Ressler (1992)
7117 \family default
7118 .
7119  
7120 \end_layout
7121
7122 \begin_layout Enumerate
7123 Entering the references at all is not obvious.
7124  The easiest thing is to start typing your first reference at the end of the document,
7125  then mark it as type 
7126 \family sans
7127 References
7128 \family default
7129 .
7130  That will put a small gray box in front of what you just typed.
7131  Click on the box to fill in the rest of the information.
7132  For new references,
7133  go to the end of an existing reference and press return.
7134  That will create a new line with its own box,
7135  etc.
7136 \end_layout
7137
7138 \begin_layout Paragraph
7139 Including EPS files
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Even though AAS\SpecialChar TeX
7144  provides its own figure commands (
7145 \family typewriter
7146
7147 \backslash
7148 plotone
7149 \family default
7150 ,
7151  for example),
7152  I much prefer \SpecialChar LaTeX
7153 's standard figure commands (with the default graphicx).
7154  You can insert the 
7155 \family typewriter
7156
7157 \backslash
7158 plotone
7159 \family default
7160 ,
7161  etc.
7162 \begin_inset space ~
7163 \end_inset
7164
7165 commands as \SpecialChar TeX
7166  code into a Figure Float box if you desire,
7167  but I never have much luck getting the layout right.
7168  With the standard graphics,
7169  \SpecialChar LyX
7170  will insert a 
7171 \family typewriter
7172
7173 \backslash
7174 usepackage{graphicx}
7175 \family default
7176  command into the \SpecialChar LaTeX
7177  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7178  way,
7179  interspersing the figures in the text.
7180  I believe ApJ accepts figures exactly this way now;
7181  AJ might still use the 
7182 \begin_inset Quotes eld
7183 \end_inset
7184
7185 stack everything at the end
7186 \begin_inset Quotes erd
7187 \end_inset
7188
7189  technique.
7190 \end_layout
7191
7192 \begin_layout Paragraph
7193 Things I could have done,
7194  but didn't
7195 \end_layout
7196
7197 \begin_layout Standard
7198 There are a few 
7199 \begin_inset Quotes eld
7200 \end_inset
7201
7202 pretty
7203 \begin_inset Quotes erd
7204 \end_inset
7205
7206  things I could have implemented,
7207  but chose not to.
7208  For instance,
7209  I saw no point in double-spacing the text in the \SpecialChar LyX
7210  window,
7211  even though it is double-spaced in the paper manuscript.
7212  Also,
7213  I chose not to make separate layouts for the preprint and preprint2 styles.
7214  Since I assume you will spend most of your time in the plain manuscript mode anyway,
7215  I decided not to chew up more disk space with this.
7216  
7217 \end_layout
7218
7219 \begin_layout Subsubsection
7220 Final Caveat
7221 \end_layout
7222
7223 \begin_layout Standard
7224 Your mileage may vary.
7225  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
7226 ;
7227  the last 2% was the \SpecialChar LaTeX
7228  post-processing and a few cleanups.
7229  I have had no trouble with the submission process,
7230  and I'm sure the journals were never aware that there might be a difference.
7231  So,
7232  go forth and publish!
7233 \end_layout
7234
7235 \begin_layout Subsection
7236 Chess
7237 \end_layout
7238
7239 \begin_layout Standard
7240 The document class 
7241 \family sans
7242 Chess
7243 \family default
7244  uses the standard article document class together with the package 
7245 \family sans
7246 lyxskak
7247 \family default
7248  to facilitate the description of chess games.
7249  See 
7250 \family sans
7251 File\SpecialChar menuseparator
7252 Open Example\SpecialChar menuseparator
7253 Articles\SpecialChar menuseparator
7254 Chess
7255 \family default
7256  where you will find 
7257 \family sans
7258 Game 1
7259 \family default
7260  and 
7261 \family sans
7262 Game 2
7263 \family default
7264 .
7265 \end_layout
7266
7267 \begin_layout Subsection
7268 Elsevier
7269 \end_layout
7270
7271 \begin_layout Standard
7272 The document class 
7273 \family sans
7274 Elsevier
7275 \family default
7276  provides support for the 
7277 \family typewriter
7278 elsarticle
7279 \family default
7280  \SpecialChar LaTeX
7281  class for journals in the Elsevier publishing house.
7282  This provides the following additional environments:
7283  
7284 \family sans
7285 Title
7286 \begin_inset space ~
7287 \end_inset
7288
7289 footnote
7290 \family default
7291 ,
7292  
7293 \family sans
7294 Author
7295 \begin_inset space ~
7296 \end_inset
7297
7298 footnote
7299 \family default
7300 ,
7301  
7302 \family sans
7303 Corresponding
7304 \begin_inset space ~
7305 \end_inset
7306
7307 author
7308 \family default
7309 ,
7310  
7311 \family sans
7312 Address
7313 \family default
7314 ,
7315  
7316 \family sans
7317 Email
7318 \family default
7319  and 
7320 \family sans
7321 Keywords
7322 \family default
7323 .
7324 \end_layout
7325
7326 \begin_layout Standard
7327 A template is available in the menu 
7328 \family sans
7329 \bar under
7330 F
7331 \bar default
7332 ile\SpecialChar menuseparator
7333 New
7334 \begin_inset space ~
7335 \end_inset
7336
7337 fro
7338 \bar under
7339 m
7340 \bar default
7341
7342 \begin_inset space ~
7343 \end_inset
7344
7345 Template\SpecialChar menuseparator
7346 Articles\SpecialChar menuseparator
7347 Elsevier
7348 \family default
7349 .
7350  It has been customized with further environments and contains all the information you may need.
7351  However,
7352  the documentation is also available from 
7353 \begin_inset CommandInset href
7354 LatexCommand href
7355 name "CTAN"
7356 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7357 literal "false"
7358
7359 \end_inset
7360
7361 .
7362 \end_layout
7363
7364 \begin_layout Subsection
7365 Paper
7366 \end_layout
7367
7368 \begin_layout Standard
7369 The document class 
7370 \family sans
7371 Paper (Standard Class)
7372 \family default
7373  provides an alternative to the 
7374 \family sans
7375 Article (Standard Class)
7376 \family default
7377  document class.
7378  It provides similar functionality,
7379  but you might prefer this layout with sans serif sections,
7380  headings,
7381  and more.
7382 \end_layout
7383
7384 \begin_layout Subsection
7385 Rev\SpecialChar TeX
7386 4
7387 \end_layout
7388
7389 \begin_layout Standard
7390 by 
7391 \noun on
7392 Amir Karger
7393 \end_layout
7394
7395 \begin_layout Standard
7396 \begin_inset VSpace bigskip
7397 \end_inset
7398
7399
7400 \end_layout
7401
7402 \begin_layout Standard
7403 \noindent
7404 The 
7405 \family sans
7406 RevTeX (V.
7407 \begin_inset space \thinspace{}
7408 \end_inset
7409
7410 4)
7411 \family default
7412  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7413  4.0 (the 
7414 \begin_inset Formula $\beta$
7415 \end_inset
7416
7417  release of May,
7418  1999) class.
7419 \end_layout
7420
7421 \begin_layout Standard
7422 \SpecialChar LyX
7423  has a 
7424 \family sans
7425 REVTeX (obsolete)
7426 \family default
7427  textclass,
7428  which works with Rev\SpecialChar TeX
7429  3.1.
7430  However,
7431  v3.1 is basically obsolete,
7432  as it works with \SpecialChar LaTeX
7433  2.09.
7434  That means that it doesn't interact very well with \SpecialChar LyX
7435 ,
7436  which requires \SpecialChar LaTeX2e
7437 ,
7438  although it has been kludged to work.
7439  Since Rev\SpecialChar TeX
7440  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7441 ,
7442  \SpecialChar LyX
7443  with the 
7444 \family sans
7445 Revtex
7446 \begin_inset space ~
7447 \end_inset
7448
7449 4TeX (V.
7450 \begin_inset space \thinspace{}
7451 \end_inset
7452
7453 4)
7454 \family default
7455  textclass should also be pretty easy to use.
7456 \end_layout
7457
7458 \begin_layout Standard
7459 These documents are supposed to be used in 
7460 \emph on
7461 addition
7462 \emph default
7463  to the Rev\SpecialChar TeX
7464  4.0 documents,
7465  so we don't describe any of the special Rev\SpecialChar TeX
7466  macros,
7467  and assume you'll know what to put in the preamble if necessary.
7468 \end_layout
7469
7470 \begin_layout Subsubsection
7471 Installation
7472 \end_layout
7473
7474 \begin_layout Standard
7475 All you need to do is install Rev\SpecialChar TeX
7476  4,
7477  as described in the package's README file.
7478  The package can be found at The Rev\SpecialChar TeX
7479  4 Web Site 
7480 \begin_inset Flex URL
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484
7485 http://publish.aps.org/revtex4/
7486 \end_layout
7487
7488 \end_inset
7489
7490 .
7491  Install it somewhere that \SpecialChar LaTeX
7492  can see it.
7493  Test it by trying to \SpecialChar LaTeX
7494  a short Rev\SpecialChar TeX
7495  4 document in some random directory (i.
7496 \begin_inset space \thinspace{}
7497 \end_inset
7498
7499 e.
7500 \begin_inset space \space{}
7501 \end_inset
7502
7503 not the directory where you installed the class file.) Then,
7504  if you reconfigure \SpecialChar LyX
7505 ,
7506  it will find the class file and let you use the Rev\SpecialChar TeX
7507 4 textclass.
7508 \end_layout
7509
7510 \begin_layout Standard
7511 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7512  4 document using 
7513 \family typewriter
7514 tex2lyx
7515 \family default
7516 ,
7517  or to use the 
7518 \family sans
7519 Revtex
7520 \begin_inset space ~
7521 \end_inset
7522
7523 4
7524 \family default
7525  template,
7526  found in 
7527 \family sans
7528 File\SpecialChar menuseparator
7529 New From Templates\SpecialChar menuseparator
7530 Articles
7531 \family default
7532 .
7533 \end_layout
7534
7535 \begin_layout Subsubsection
7536 Preamble Matter
7537 \end_layout
7538
7539 \begin_layout Standard
7540 Optional arguments to 
7541 \family typewriter
7542
7543 \backslash
7544 documentclass
7545 \family default
7546 ,
7547  like 
7548 \begin_inset Quotes eld
7549 \end_inset
7550
7551 preprint
7552 \begin_inset Quotes erd
7553 \end_inset
7554
7555  and 
7556 \begin_inset Quotes eld
7557 \end_inset
7558
7559 aps
7560 \begin_inset Quotes erd
7561 \end_inset
7562
7563 ,
7564  go in the 
7565 \family sans
7566 Extra
7567 \begin_inset space ~
7568 \end_inset
7569
7570 Options
7571 \family default
7572  field in the 
7573 \family sans
7574 Document
7575 \begin_inset space ~
7576 \end_inset
7577
7578 Layout
7579 \family default
7580  dialog,
7581  as usual.
7582  Remember that in Rev\SpecialChar TeX
7583 ,
7584  at least one optional argument is required!
7585  
7586 \end_layout
7587
7588 \begin_layout Standard
7589 Other preamble matter,
7590  like 
7591 \family typewriter
7592
7593 \backslash
7594 draft
7595 \family default
7596  etc.
7597 \begin_inset space ~
7598 \end_inset
7599
7600 goes in the 
7601 \family sans
7602 \SpecialChar LaTeX
7603
7604 \begin_inset space ~
7605 \end_inset
7606
7607 Preamble
7608 \family default
7609  dialog,
7610  also as usual.
7611 \end_layout
7612
7613 \begin_layout Subsubsection
7614 Layouts
7615 \end_layout
7616
7617 \begin_layout Standard
7618 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7619 4.0.
7620  For example,
7621  the Email layout corresponds to 
7622 \family typewriter
7623
7624 \backslash
7625 email{}
7626 \family default
7627 .
7628  Note that (at least as of Rev\SpecialChar TeX
7629  4.0 Beta),
7630  the 
7631 \family sans
7632 Address
7633 \family default
7634  and 
7635 \family sans
7636 Affiliation
7637 \family default
7638  layouts are exactly equivalent,
7639  so you shouldn't need to use both.
7640 \begin_inset Foot
7641 status collapsed
7642
7643 \begin_layout Plain Layout
7644 In case you're curious,
7645  both were included so that 
7646 \family typewriter
7647 tex2lyx
7648 \family default
7649  would be able to translate both 
7650 \family typewriter
7651
7652 \backslash
7653 address
7654 \family default
7655  and 
7656 \family typewriter
7657
7658 \backslash
7659 affiliation
7660 \family default
7661 .
7662 \end_layout
7663
7664 \end_inset
7665
7666
7667 \end_layout
7668
7669 \begin_layout Subsubsection
7670 Important Notes
7671 \end_layout
7672
7673 \begin_layout Standard
7674 There are a couple of important unique aspects of Rev\SpecialChar TeX
7675  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
7676 .
7677 \end_layout
7678
7679 \begin_layout Standard
7680 In Rev\SpecialChar TeX
7681 ,
7682  the 
7683 \family typewriter
7684
7685 \backslash
7686 thanks
7687 \family default
7688  command goes 
7689 \emph on
7690 outside
7691 \emph default
7692  the 
7693 \family typewriter
7694
7695 \backslash
7696 author
7697 \family default
7698  command.
7699  The \SpecialChar LyX
7700  equivalent is that there is a separate Thanks layout.
7701  Do 
7702 \emph on
7703 not
7704 \emph default
7705  write footnotes in the 
7706 \family sans
7707 Author
7708 \family default
7709  layout,
7710  or weird things may happen.
7711  See the Rev\SpecialChar TeX
7712  4 documentation for more details.
7713 \end_layout
7714
7715 \begin_layout Standard
7716 Also,
7717  the 
7718 \family sans
7719 Author
7720 \begin_inset space ~
7721 \end_inset
7722
7723 Email
7724 \family default
7725 ,
7726  
7727 \family sans
7728 Author
7729 \begin_inset space ~
7730 \end_inset
7731
7732 URL
7733 \family default
7734 ,
7735  and 
7736 \family sans
7737 Thanks
7738 \family default
7739  layouts must be placed 
7740 \emph on
7741 in between
7742 \emph default
7743  the 
7744 \family sans
7745 Author
7746 \family default
7747  layout and the corresponding 
7748 \family sans
7749 Address
7750 \family default
7751  (or equivalent 
7752 \family sans
7753 Affiliation
7754 \family default
7755 ) layout.
7756  If you put the 
7757 \family sans
7758 Thanks
7759 \family default
7760  after the 
7761 \family sans
7762 Address
7763 \family default
7764 ,
7765  the \SpecialChar LaTeX
7766  won't compile.
7767 \end_layout
7768
7769 \begin_layout Subsection
7770 Springer Journals
7771 \end_layout
7772
7773 \begin_layout Standard
7774 All the 
7775 \family sans
7776 svj*
7777 \family default
7778  classes were replaced with a completely new class,
7779  
7780 \family sans
7781 sn-jnl.cls
7782 \family default
7783 .
7784  Please find information at 
7785 \begin_inset Flex URL
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789
7790 https://www.springernature.com/gp/authors/campaigns/latex-author-support
7791 \end_layout
7792
7793 \end_inset
7794
7795 .
7796  Native \SpecialChar LyX
7797  support is not available yet.
7798 \end_layout
7799
7800 \begin_layout Section
7801 Books
7802 \end_layout
7803
7804 \begin_layout Standard
7805 See also the document classes in the Collections (section
7806 \begin_inset space ~
7807 \end_inset
7808
7809
7810 \begin_inset CommandInset ref
7811 LatexCommand ref
7812 reference "sec:Collections"
7813 nolink "false"
7814
7815 \end_inset
7816
7817 ).
7818 \end_layout
7819
7820 \begin_layout Subsection
7821 Memoir
7822 \end_layout
7823
7824 \begin_layout Standard
7825 By 
7826 \noun on
7827 Jürgen Spitzmüller
7828 \end_layout
7829
7830 \begin_layout Subsubsection
7831 Overview
7832 \end_layout
7833
7834 \begin_layout Standard
7835 Memoir is a very powerful and constantly evolving class.
7836  It has been designed with regard to fictional and non-fictional literature.
7837  Its aim is to let the user have maximum control over the typesetting of his document.
7838  Memoir is based on the standard book class,
7839  but it can also emulate the article class (see below).
7840 \end_layout
7841
7842 \begin_layout Standard
7843 Peter Wilson,
7844  the developer of Memoir,
7845  is known as the author of lots of useful packages in the \SpecialChar LaTeX
7846  world.
7847  Most of them have been merged with Memoir.
7848  Therefore,
7849  it is much easier to layout the table of contents,
7850  appendices,
7851  chapter designs and such.
7852  \SpecialChar LyX
7853 ,
7854  though,
7855  does not support all of these goodies natively.
7856  Some of them might be added to forthcoming releases
7857 \begin_inset Foot
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861 You are invited to send suggestions to 
7862 \begin_inset Flex URL
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866
7867 lyx-devel@lists.lyx.org
7868 \end_layout
7869
7870 \end_inset
7871
7872 .
7873 \end_layout
7874
7875 \end_inset
7876
7877 ,
7878  lots will probably never be supported,
7879  due to the limitations of \SpecialChar LyX
7880 's framework.
7881  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7882  commands (\SpecialChar TeX
7883  code
7884 \begin_inset Foot
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 Cf.
7889 \begin_inset ERT
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893
7894
7895 \backslash
7896  
7897 \end_layout
7898
7899 \end_inset
7900
7901 section
7902 \begin_inset space ~
7903 \end_inset
7904
7905
7906 \begin_inset CommandInset ref
7907 LatexCommand ref
7908 reference "sec:Inserting-TeX-Code"
7909 nolink "false"
7910
7911 \end_inset
7912
7913  for details.
7914 \end_layout
7915
7916 \end_inset
7917
7918 ).
7919  In this section,
7920  we can only list those features that are natively supported by \SpecialChar LyX
7921 .
7922  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
7923 \begin_inset Foot
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 Cf.
7928 \begin_inset ERT
7929 status collapsed
7930
7931 \begin_layout Plain Layout
7932
7933
7934 \backslash
7935  
7936 \end_layout
7937
7938 \end_inset
7939
7940
7941 \begin_inset Flex URL
7942 status collapsed
7943
7944 \begin_layout Plain Layout
7945
7946 CTAN:/macros/latex/memoir/memman.pdf
7947 \end_layout
7948
7949 \end_inset
7950
7951 .
7952 \end_layout
7953
7954 \end_inset
7955
7956 ,
7957  which is not only a user guide for the class,
7958  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
7959 \end_layout
7960
7961 \begin_layout Subsubsection
7962 Basic features and restrictions
7963 \end_layout
7964
7965 \begin_layout Standard
7966 Memoir supports basically all features of the standard book classes.
7967  There are,
7968  however,
7969  some differences,
7970  as follows:
7971 \end_layout
7972
7973 \begin_layout Description
7974 Font
7975 \begin_inset space ~
7976 \end_inset
7977
7978 sizes:
7979  Memoir has a broader range of font sizes:
7980  9,
7981  10,
7982  11,
7983  12,
7984  14,
7985  17
7986 \end_layout
7987
7988 \begin_layout Description
7989 Page
7990 \begin_inset space ~
7991 \end_inset
7992
7993 style:
7994  The fancy page style is not supported,
7995  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
7996  which confuses \SpecialChar LaTeX
7997 ).
7998  Instead,
7999  Memoir comes with a number of its own page styles (see 
8000 \family sans
8001 Document\SpecialChar menuseparator
8002 Settings\SpecialChar menuseparator
8003 Page
8004 \begin_inset space ~
8005 \end_inset
8006
8007 Style
8008 \family default
8009 ).
8010  If you want to use these for the chapter pages,
8011  you have to use the command 
8012 \family typewriter
8013
8014 \backslash
8015 chapterstyle
8016 \family default
8017  in the main text or in preamble (e.
8018 \begin_inset space \thinspace{}
8019 \end_inset
8020
8021 g.
8022 \begin_inset space \space{}
8023 \end_inset
8024
8025
8026 \family typewriter
8027
8028 \backslash
8029 chapterstyle{companion}
8030 \family default
8031 ).
8032 \end_layout
8033
8034 \begin_layout Description
8035 Sectioning:
8036  Sectionings (chapter,
8037  section,
8038  subsection etc.) come with an optional argument in the standard classes.
8039  With this,
8040  you can specify an alternative version of the title for the table of contents and the headers (for instance,
8041  if the title is too long).
8042  In \SpecialChar LyX
8043 ,
8044  you can do this via 
8045 \family sans
8046 Insert\SpecialChar menuseparator
8047 Short
8048 \begin_inset space ~
8049 \end_inset
8050
8051 Title
8052 \family default
8053  at the beginning of a chapter/section.
8054  Memoir features a second optional argument and thus separates the table of contents from the header.
8055  You can define three variants of a title with this:
8056  one for the main text,
8057  one for the table of contents,
8058  and one for the headers.
8059  \SpecialChar LyX
8060  makes these available in form of specific 
8061 \family sans
8062 Short Title
8063 \family default
8064  variants in the 
8065 \family sans
8066 Insert
8067 \family default
8068  menu.
8069 \end_layout
8070
8071 \begin_layout Description
8072 TOC/LOT/LOF:
8073  In the standard classes (and in many other classes),
8074  the table of contents,
8075  the list of figures and the list of table start a new page automatically.
8076  Memoir does not follow this route.
8077  You have to insert a page break yourself,
8078  if you want to have one.
8079 \end_layout
8080
8081 \begin_layout Description
8082 Titlepage:
8083  For some unknown reason,
8084  Memoir uses pagination on the title page (in the standard classes,
8085  title pages are 
8086 \begin_inset Quotes eld
8087 \end_inset
8088
8089 empty
8090 \begin_inset Quotes erd
8091 \end_inset
8092
8093 ).
8094  If you want an empty title page,
8095  type 
8096 \family typewriter
8097
8098 \backslash
8099 aliaspagestyle{title}{empty}
8100 \family default
8101  in the preamble.
8102 \end_layout
8103
8104 \begin_layout Description
8105 Article:
8106  With the class option 
8107 \emph on
8108 article
8109 \emph default
8110  (to be inserted in 
8111 \family sans
8112 Document\SpecialChar menuseparator
8113 Settings\SpecialChar menuseparator
8114 Class Settings\SpecialChar menuseparator
8115 Custom
8116 \begin_inset space ~
8117 \end_inset
8118
8119 Options
8120 \family default
8121 ),
8122  you can emulate article style.
8123  That is,
8124  counters (footnotes,
8125  figures,
8126  tables etc.) will not be reset on new chapters,
8127  chapters don't start a new page (but are—
8128 in contrary to 
8129 \begin_inset Quotes eld
8130 \end_inset
8131
8132 real
8133 \begin_inset Quotes erd
8134 \end_inset
8135
8136  article classes—
8137 still allowed),
8138  parts,
8139  though,
8140  use their own page,
8141  as in book.
8142 \end_layout
8143
8144 \begin_layout Description
8145 Oldfontcommands:
8146  By default,
8147  Memoir does not allow the use of the deprecated font commands,
8148  which have been used in the old \SpecialChar LaTeX
8149  version 2.09 (e.
8150 \begin_inset space \thinspace{}
8151 \end_inset
8152
8153 g.
8154 \begin_inset space \space{}
8155 \end_inset
8156
8157
8158 \family typewriter
8159
8160 \backslash
8161 rm
8162 \family default
8163 ,
8164  
8165 \family typewriter
8166
8167 \backslash
8168 it
8169 \family default
8170 ).
8171  It produces an error and stops \SpecialChar LaTeX
8172  whenever such a command appears.
8173  The class option 
8174 \emph on
8175 oldfontcommands
8176 \emph default
8177  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
8178 ).
8179  Since a lot of packages and particularly Bib\SpecialChar TeX
8180  style files are still using those commands,
8181  we have decided to use this option by default.
8182 \end_layout
8183
8184 \begin_layout Subsubsection
8185 Extra features
8186 \end_layout
8187
8188 \begin_layout Standard
8189 We will only describe the features supported by \SpecialChar LyX
8190  (which is not much currently).
8191  Please consult the Memoir manual
8192 \begin_inset Foot
8193 status collapsed
8194
8195 \begin_layout Plain Layout
8196 Cf.
8197 \begin_inset ERT
8198 status collapsed
8199
8200 \begin_layout Plain Layout
8201
8202
8203 \backslash
8204  
8205 \end_layout
8206
8207 \end_inset
8208
8209
8210 \begin_inset Flex URL
8211 status collapsed
8212
8213 \begin_layout Plain Layout
8214
8215 CTAN:/macros/latex/memoir/memman.pdf
8216 \end_layout
8217
8218 \end_inset
8219
8220 .
8221 \end_layout
8222
8223 \end_inset
8224
8225  for details.
8226 \end_layout
8227
8228 \begin_layout Description
8229 Abstract:
8230  You may wonder why an abstract is an extra feature.
8231  Well,
8232  it is in book class.
8233  Usually books don't have abstracts.
8234  Memoir,
8235  however,
8236  has.
8237  You can use it wherever and how often you like.
8238 \end_layout
8239
8240 \begin_layout Description
8241 Chapterprecis:
8242  You may know this older typesetting style:
8243  The contents of a chapter are summarized below the title and also in the table of contents (e.
8244 \begin_inset space \thinspace{}
8245 \end_inset
8246
8247 g.
8248 \begin_inset space \space{}
8249 \end_inset
8250
8251
8252 \emph on
8253 Our hero arrives in Troia;
8254  he loses some friends;
8255  he finds others
8256 \emph default
8257 ).
8258  Chapterprecis does exactly this.
8259  It is therefore only sensible below a chapter.
8260 \end_layout
8261
8262 \begin_layout Description
8263 Epigraph:
8264  An epigraph is a smart slogan or motto at the beginning of a chapter.
8265  The epigraph environment provides an elegant way of typesetting such a motto.
8266  The motto itself (text) and its (optional) author (source) are divided by a short line.
8267  The author (source) can be inserted via 
8268 \family sans
8269 Insert\SpecialChar menuseparator
8270 Epigraph Source
8271 \family default
8272 \emph on
8273 .
8274 \end_layout
8275
8276 \begin_layout Description
8277 Poemtitle:
8278  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
8279  \SpecialChar LyX
8280  can only support a few of them.
8281  One is poemtitle,
8282  which is a centered title for poems,
8283  which will also be added to the table of contents (verse is the standard environment for poems.
8284  Memoir has some enhanced versions of verse,
8285  but you need to use \SpecialChar TeX
8286  code,
8287  because they have to be nested inside regular verse environments,
8288  which is not possible with \SpecialChar LyX
8289 ).
8290 \end_layout
8291
8292 \begin_layout Description
8293 Poemtitle*:
8294  Same as poemtitle,
8295  but it adds no entry to the table of contents.
8296 \end_layout
8297
8298 \begin_layout Subsection
8299 Recipe Book
8300 \end_layout
8301
8302 \begin_layout Standard
8303 The document class 
8304 \family sans
8305 Recipe Book
8306 \family default
8307  uses the 
8308 \family sans
8309 KOMA-Script Book
8310 \family default
8311  document class but adds two environments:
8312 \end_layout
8313
8314 \begin_layout Description
8315 Recipe a numbered section environment at the 
8316 \family typewriter
8317 Subsubsection
8318 \family default
8319  level which generates a bold centered heading above a double horizontal rule
8320 \end_layout
8321
8322 \begin_layout Description
8323 Ingredients a 
8324 \family typewriter
8325 Description
8326 \family default
8327  environment where 
8328 \series bold
8329 \emph on
8330 Ingredients
8331 \series default
8332 \emph default
8333  are what are being described and the environment ends with a horizontal rule.
8334 \end_layout
8335
8336 \begin_layout Standard
8337
8338 \family sans
8339 File\SpecialChar menuseparator
8340 Open Example\SpecialChar menuseparator
8341 Books\SpecialChar menuseparator
8342 Recipe Book
8343 \family default
8344  illustrates its use.
8345 \end_layout
8346
8347 \begin_layout Standard
8348 The class is designed for typesetting one or two recipes per page.
8349  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient.
8350  
8351 \end_layout
8352
8353 \begin_layout Section
8354 Curricula vitae
8355 \end_layout
8356
8357 \begin_layout Subsection
8358 Europass (2013)
8359 \end_layout
8360
8361 \begin_layout Standard
8362 The document class 
8363 \family sans
8364 Europass (2013)
8365 \family default
8366  provides the 
8367 \family typewriter
8368 europasscv.cls
8369 \family default
8370  document class,
8371  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
8372  
8373 \family sans
8374 File\SpecialChar menuseparator
8375 Open Example\SpecialChar menuseparator
8376 Curricula Vitae\SpecialChar menuseparator
8377 Europass (2013)
8378 \family default
8379  offers guidance on its use.
8380  Its documentation is available from 
8381 \begin_inset CommandInset href
8382 LatexCommand href
8383 name "CTAN"
8384 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8385 literal "false"
8386
8387 \end_inset
8388
8389 .
8390 \end_layout
8391
8392 \begin_layout Subsection
8393 Europe CV
8394 \end_layout
8395
8396 \begin_layout Standard
8397 The document class 
8398 \family sans
8399 Europe CV
8400 \family default
8401  provides the 
8402 \family typewriter
8403 europecv.cls
8404 \family default
8405  document class,
8406  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
8407  
8408 \family sans
8409 File\SpecialChar menuseparator
8410 Open Example\SpecialChar menuseparator
8411 Curricula Vitae\SpecialChar menuseparator
8412 Europe CV
8413 \family default
8414  offers guidance on its use.
8415  Its documentation is available from 
8416 \begin_inset CommandInset href
8417 LatexCommand href
8418 name "CTAN"
8419 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8420 literal "false"
8421
8422 \end_inset
8423
8424 .
8425 \end_layout
8426
8427 \begin_layout Subsection
8428 Modern CV
8429 \end_layout
8430
8431 \begin_layout Standard
8432 The document class 
8433 \family sans
8434 Modern CV
8435 \family default
8436  provides the 
8437 \family typewriter
8438 moderncv.cls
8439 \family default
8440  document class.
8441  This allows the creation of customizable CVs.
8442  
8443 \family sans
8444 File\SpecialChar menuseparator
8445 Open Example\SpecialChar menuseparator
8446 Curricula Vitae\SpecialChar menuseparator
8447 Modern CV
8448 \family default
8449  offers guidance on its use.
8450  Its documentation is available from 
8451 \begin_inset CommandInset href
8452 LatexCommand href
8453 name "CTAN"
8454 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8455 literal "false"
8456
8457 \end_inset
8458
8459 .
8460 \end_layout
8461
8462 \begin_layout Subsection
8463 Simple CV
8464 \end_layout
8465
8466 \begin_layout Standard
8467 The document class 
8468 \family sans
8469 Simple CV
8470 \family default
8471  provides the 
8472 \family typewriter
8473 simplecv.cls
8474 \family default
8475  document class,
8476  originally developed for use with \SpecialChar LyX
8477 .
8478  
8479 \family sans
8480 File\SpecialChar menuseparator
8481 Open Example\SpecialChar menuseparator
8482 Curricula Vitae\SpecialChar menuseparator
8483 Simple CV
8484 \family default
8485  offers guidance on its use.
8486  Its documentation is available from 
8487 \begin_inset CommandInset href
8488 LatexCommand href
8489 name "CTAN"
8490 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8491 literal "false"
8492
8493 \end_inset
8494
8495
8496 \end_layout
8497
8498 \begin_layout Section
8499 Letters
8500 \end_layout
8501
8502 \begin_layout Standard
8503 See also the 
8504 \family sans
8505 KOMA-Script Letter (V.
8506  2)
8507 \family default
8508  (section
8509 \begin_inset space ~
8510 \end_inset
8511
8512
8513 \begin_inset CommandInset ref
8514 LatexCommand ref
8515 reference "subsec:The-new-letter"
8516 nolink "false"
8517
8518 \end_inset
8519
8520 ),
8521  the 
8522 \family sans
8523 Letter (Standard Class with Extra Font Sizes)
8524 \family default
8525  (section
8526 \begin_inset space ~
8527 \end_inset
8528
8529
8530 \begin_inset CommandInset ref
8531 LatexCommand ref
8532 reference "subsec:Extra-font-sizes"
8533 nolink "false"
8534
8535 \end_inset
8536
8537 ) and the 
8538 \family sans
8539 Hebrew Letter
8540 \family default
8541  (section
8542 \begin_inset space ~
8543 \end_inset
8544
8545
8546 \begin_inset CommandInset ref
8547 LatexCommand ref
8548 reference "subsec:Hebrew"
8549 plural "false"
8550 caps "false"
8551 noprefix "false"
8552 nolink "false"
8553
8554 \end_inset
8555
8556 ) document classes .
8557 \end_layout
8558
8559 \begin_layout Subsection
8560 DIN-Brief
8561 \end_layout
8562
8563 \begin_layout Standard
8564 The document class 
8565 \family sans
8566 DIN-Brief
8567 \family default
8568  provides support for the 
8569 \family typewriter
8570 dinbrief.cls
8571 \family default
8572  \SpecialChar LaTeX
8573  class for writing letters according to the standards of the German Standards Institute (
8574 \emph on
8575 Deutsches Institut für Normung,
8576  DIN)
8577 \emph default
8578 .
8579  The file in the menu 
8580 \family sans
8581 \bar under
8582 F
8583 \bar default
8584 ile\SpecialChar menuseparator
8585 New
8586 \begin_inset space ~
8587 \end_inset
8588
8589 fro
8590 \bar under
8591 m
8592 \bar default
8593
8594 \begin_inset space ~
8595 \end_inset
8596
8597 Template\SpecialChar menuseparator
8598 Letters\SpecialChar menuseparator
8599 DIN-Brief
8600 \family default
8601  offers guidance on its use.
8602  The documentation is available from 
8603 \begin_inset CommandInset href
8604 LatexCommand href
8605 name "CTAN"
8606 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8607 literal "false"
8608
8609 \end_inset
8610
8611 .
8612 \end_layout
8613
8614 \begin_layout Subsection
8615 French letter
8616 \begin_inset space \space{}
8617 \end_inset
8618
8619 (frletter)
8620 \end_layout
8621
8622 \begin_layout Standard
8623 The document class 
8624 \family sans
8625 French letter
8626 \begin_inset space \space{}
8627 \end_inset
8628
8629 (frletter)
8630 \family default
8631  provides support for the 
8632 \family typewriter
8633 frletter.cls
8634 \family default
8635  \SpecialChar LaTeX
8636  class for writing letters according to French conventions.
8637  The file in the menu 
8638 \family sans
8639 \bar under
8640 F
8641 \bar default
8642 ile\SpecialChar menuseparator
8643 New
8644 \begin_inset space ~
8645 \end_inset
8646
8647 fro
8648 \bar under
8649 m
8650 \bar default
8651
8652 \begin_inset space ~
8653 \end_inset
8654
8655 Template\SpecialChar menuseparator
8656 Letters\SpecialChar menuseparator
8657 French letter
8658 \begin_inset space \space{}
8659 \end_inset
8660
8661 (frletter)
8662 \family default
8663  offers guidance on its use.
8664 \end_layout
8665
8666 \begin_layout Subsection
8667 French letter
8668 \begin_inset space \space{}
8669 \end_inset
8670
8671 (lettre)
8672 \end_layout
8673
8674 \begin_layout Standard
8675 The document class 
8676 \family sans
8677 French letter
8678 \begin_inset space \space{}
8679 \end_inset
8680
8681 (lettre)
8682 \family default
8683  provides support for 
8684 \family typewriter
8685 lettre.cls
8686 \family default
8687 ,
8688  another \SpecialChar LaTeX
8689  class for writing letters,
8690  but also faxes and envelopes,
8691  in French.
8692  The file in the menu 
8693 \family sans
8694 \bar under
8695 F
8696 \bar default
8697 ile\SpecialChar menuseparator
8698 New
8699 \begin_inset space ~
8700 \end_inset
8701
8702 fro
8703 \bar under
8704 m
8705 \bar default
8706
8707 \begin_inset space ~
8708 \end_inset
8709
8710 Template\SpecialChar menuseparator
8711 Letters\SpecialChar menuseparator
8712 French letter
8713 \begin_inset space \space{}
8714 \end_inset
8715
8716 (lettre)
8717 \family default
8718  offers guidance on its use.
8719  The documentation is available from 
8720 \begin_inset CommandInset href
8721 LatexCommand href
8722 name "CTAN"
8723 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
8724 literal "false"
8725
8726 \end_inset
8727
8728 .
8729 \end_layout
8730
8731 \begin_layout Subsection
8732 G-Brief (V.
8733 \begin_inset space \thinspace{}
8734 \end_inset
8735
8736 2)
8737 \end_layout
8738
8739 \begin_layout Standard
8740 The document class 
8741 \family sans
8742 G-Brief (V.
8743 \begin_inset space \thinspace{}
8744 \end_inset
8745
8746 2)
8747 \family default
8748  provides support for the 
8749 \family typewriter
8750 g-brief2.cls
8751 \family default
8752  \SpecialChar LaTeX
8753  class for writing letters in German.
8754  The file in the menu 
8755 \family sans
8756 \bar under
8757 F
8758 \bar default
8759 ile\SpecialChar menuseparator
8760 New
8761 \begin_inset space ~
8762 \end_inset
8763
8764 fro
8765 \bar under
8766 m
8767 \bar default
8768
8769 \begin_inset space ~
8770 \end_inset
8771
8772 Template\SpecialChar menuseparator
8773 Letters\SpecialChar menuseparator
8774 G-Brief (V.
8775 \begin_inset space \thinspace{}
8776 \end_inset
8777
8778 2)
8779 \family default
8780  offers guidance on its use.
8781  The documentation is available from 
8782 \begin_inset CommandInset href
8783 LatexCommand href
8784 name "CTAN"
8785 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
8786 literal "false"
8787
8788 \end_inset
8789
8790 .
8791 \end_layout
8792
8793 \begin_layout Section
8794 Presentations
8795 \end_layout
8796
8797 \begin_layout Subsection
8798 Beamer
8799 \end_layout
8800
8801 \begin_layout Standard
8802 The document class 
8803 \family sans
8804 Beamer
8805 \family default
8806  uses the 
8807 \family typewriter
8808 beamer.cls
8809 \family default
8810  \SpecialChar LaTeX
8811  class for creating presentations.
8812  The file in the menu 
8813 \family sans
8814 \bar under
8815 F
8816 \bar default
8817 ile\SpecialChar menuseparator
8818 New
8819 \begin_inset space ~
8820 \end_inset
8821
8822 fro
8823 \bar under
8824 m
8825 \bar default
8826
8827 \begin_inset space ~
8828 \end_inset
8829
8830 Template\SpecialChar menuseparator
8831 Presentations\SpecialChar menuseparator
8832 Beamer
8833 \family default
8834  or 
8835 \family sans
8836 Help\SpecialChar menuseparator
8837 Specific Manuals\SpecialChar menuseparator
8838 Beamer Presentations
8839 \family default
8840  offers guidance on its use.
8841  The documentation is available from 
8842 \begin_inset CommandInset href
8843 LatexCommand href
8844 name "CTAN"
8845 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8846 literal "false"
8847
8848 \end_inset
8849
8850 .
8851 \end_layout
8852
8853 \begin_layout Subsection
8854
8855 \family sans
8856 Foil\SpecialChar TeX
8857
8858 \family default
8859
8860 \begin_inset CommandInset label
8861 LatexCommand label
8862 name "sec:foiltex"
8863
8864 \end_inset
8865
8866
8867 \end_layout
8868
8869 \begin_layout Standard
8870 Original by 
8871 \noun on
8872 Allan Rae
8873 \noun default
8874 ;
8875  updated by the \SpecialChar LyX
8876  Team
8877 \end_layout
8878
8879 \begin_layout Subsubsection
8880 Introduction
8881 \end_layout
8882
8883 \begin_layout Standard
8884 The document class 
8885 \family sans
8886 Foil\SpecialChar TeX
8887
8888 \family default
8889  uses the 
8890 \family typewriter
8891 foils.cls
8892 \family default
8893  document class to make slides for overhead projectors.
8894  There are two document classes that can do this:
8895  the 
8896 \family sans
8897 Slides
8898 \family default
8899  document class (section
8900 \begin_inset space ~
8901 \end_inset
8902
8903
8904 \begin_inset CommandInset ref
8905 LatexCommand ref
8906 reference "sec:slitex"
8907 plural "false"
8908 caps "false"
8909 noprefix "false"
8910 nolink "false"
8911
8912 \end_inset
8913
8914 ) and the 
8915 \family sans
8916 Foil\SpecialChar TeX
8917
8918 \family default
8919  slides class.
8920  As of 2023 the former has continued to be maintained whereas 
8921 \family sans
8922 Foil\SpecialChar TeX
8923
8924 \family default
8925  has not been maintained since 2008.
8926  This section documents the latter.
8927  If your machine doesn’t have the 
8928 \family sans
8929 Foil\SpecialChar TeX
8930
8931 \family default
8932  document class installed,
8933  you’ll probably have to use the 
8934 \family sans
8935 Slides
8936 \family default
8937  document class.
8938  If you want to install the 
8939 \family typewriter
8940 foils.cls
8941 \family default
8942  document class,
8943  it is available from 
8944 \begin_inset CommandInset href
8945 LatexCommand href
8946 name "CTAN"
8947 target "https://www.ctan.org/pkg/foiltex"
8948 literal "false"
8949
8950 \end_inset
8951
8952 .
8953  You should also read the 
8954 \emph on
8955 Installing New Document Classes
8956 \emph default
8957  chapter of the 
8958 \emph on
8959 Customization
8960 \emph default
8961  manual.
8962 \end_layout
8963
8964 \begin_layout Subsubsection
8965 Getting Started
8966 \end_layout
8967
8968 \begin_layout Standard
8969 Obviously,
8970  to use this document class,
8971  you need to select 
8972 \family sans
8973 FoilTeX
8974 \family default
8975  from the 
8976 \family sans
8977 Class
8978 \family default
8979  entry in the 
8980 \family sans
8981 Document
8982 \begin_inset space ~
8983 \end_inset
8984
8985 Layout
8986 \family default
8987  dialog.
8988  There are some settings in the 
8989 \family sans
8990 Document
8991 \begin_inset space ~
8992 \end_inset
8993
8994 Layout
8995 \family default
8996  dialog that you should know about that are specific to this class:
8997 \end_layout
8998
8999 \begin_layout Itemize
9000 Don't change the options 
9001 \family sans
9002 Sides
9003 \family default
9004  and 
9005 \family sans
9006 Columns
9007 \family default
9008  on the 
9009 \family sans
9010 Document
9011 \begin_inset space ~
9012 \end_inset
9013
9014 Layout
9015 \family default
9016  dialog.
9017  They're ignored by the 
9018 \family sans
9019 foils
9020 \family default
9021  class.
9022 \end_layout
9023
9024 \begin_layout Itemize
9025 The default font size is 20
9026 \begin_inset space \thinspace{}
9027 \end_inset
9028
9029 pt with the other options being 17
9030 \begin_inset space \thinspace{}
9031 \end_inset
9032
9033 pt,
9034  25
9035 \begin_inset space \thinspace{}
9036 \end_inset
9037
9038 pt and 30
9039 \begin_inset space \thinspace{}
9040 \end_inset
9041
9042 pt.
9043 \end_layout
9044
9045 \begin_layout Itemize
9046 The default font is 
9047 \family sans
9048 sans
9049 \family default
9050  
9051 \family sans
9052 serif
9053 \family default
9054  but all math equations are still typeset in the usual roman font.
9055 \end_layout
9056
9057 \begin_layout Itemize
9058
9059 \family sans
9060 Foil\SpecialChar TeX
9061
9062 \family default
9063  supports A4 and Letter paper sizes as well as a special size for working with 35
9064 \begin_inset space \thinspace{}
9065 \end_inset
9066
9067 mm slides.
9068  It doesn't support A5,
9069  B5,
9070  legal or executive paper sizes.
9071 \end_layout
9072
9073 \begin_layout Itemize
9074 Don't bother changing the 
9075 \family sans
9076 Float Placement
9077 \family default
9078  settings because they are ignored anyway.
9079  All floats appear where they are defined in the text.
9080 \end_layout
9081
9082 \begin_layout Itemize
9083 The 
9084 \family sans
9085 Pagestyle
9086 \family default
9087  setting behaves a bit differently for this class.
9088  
9089 \family sans
9090 Foil\SpecialChar TeX
9091
9092 \family default
9093  provides extensive footer and header capabilities including a user-defined logo.
9094  See section
9095 \begin_inset space ~
9096 \end_inset
9097
9098
9099 \begin_inset CommandInset ref
9100 LatexCommand ref
9101 reference "sec:foilfoot"
9102 nolink "false"
9103
9104 \end_inset
9105
9106  for more details.
9107  The title page is treated differently to all other pages in the document and is 
9108 \emph on
9109 always
9110 \emph default
9111  unnumbered and 
9112 \emph on
9113 always
9114 \emph default
9115  has the logo centered at the bottom of the page (if one is defined).
9116  The possible page style choices and what they do are as follows:
9117 \end_layout
9118
9119 \begin_deeper
9120 \begin_layout Labeling
9121 \labelwidthstring MMMMMMM
9122
9123 \family sans
9124 \series bold
9125 empty
9126 \family default
9127 \series default
9128  The final output contains no page numbers,
9129  or other headers or footers (except footnotes of course).
9130  
9131 \end_layout
9132
9133 \begin_layout Labeling
9134 \labelwidthstring MMMMMMM
9135
9136 \family sans
9137 \series bold
9138 plain
9139 \family default
9140 \series default
9141  The final output contains page numbers centered at the bottom of the page.
9142  No other headings or footers (other than footnotes).
9143 \end_layout
9144
9145 \begin_layout Labeling
9146 \labelwidthstring MMMMMMM
9147
9148 \series bold
9149 foilheadings
9150 \series default
9151  Page numbers in lower right corner.
9152  Additional headers and footers are also shown.
9153  This is also the default.
9154 \end_layout
9155
9156 \begin_layout Labeling
9157 \labelwidthstring MMMMMMM
9158
9159 \series bold
9160 fancy
9161 \series default
9162  Gives you access to the 
9163 \family sans
9164 fancyheadings
9165 \family default
9166  package although its use with 
9167 \family sans
9168 Foil\SpecialChar TeX
9169
9170 \family default
9171  is discouraged by the writer of the 
9172 \family sans
9173 Foil\SpecialChar TeX
9174
9175 \family default
9176  package because of some potential page layout clashes.
9177 \end_layout
9178
9179 \end_deeper
9180 \begin_layout Paragraph
9181 Extra Options
9182 \end_layout
9183
9184 \begin_layout Standard
9185 The following options may be used in the extra class options in the 
9186 \family sans
9187 Document\SpecialChar menuseparator
9188 Settings
9189 \family default
9190  dialog.
9191 \end_layout
9192
9193 \begin_layout Labeling
9194 \labelwidthstring MMMMMMx
9195
9196 \series bold
9197 35mmSlide
9198 \series default
9199  This sets up the page layout for 7.33
9200 \begin_inset space \thinspace{}
9201 \end_inset
9202
9203 in by 11
9204 \begin_inset space \thinspace{}
9205 \end_inset
9206
9207 in paper,
9208  which is about the same aspect ratio as a 35
9209 \begin_inset space \thinspace{}
9210 \end_inset
9211
9212 mm slide,
9213  making it a bit easier to work with this medium.
9214 \end_layout
9215
9216 \begin_layout Labeling
9217 \labelwidthstring MMMMMMx
9218
9219 \series bold
9220 headrule
9221 \series default
9222  Places a rule across the page below the header on every page except the title page.
9223 \end_layout
9224
9225 \begin_layout Labeling
9226 \labelwidthstring MMMMMMx
9227
9228 \series bold
9229 footrule
9230 \series default
9231  Places a rule across the page above the footer on every page except the title page.
9232 \end_layout
9233
9234 \begin_layout Labeling
9235 \labelwidthstring MMMMMMx
9236
9237 \series bold
9238 dvips
9239 \series default
9240  This is automatically set each time you create a new 
9241 \family sans
9242 foils
9243 \family default
9244  document.
9245  This option tells 
9246 \family sans
9247 Foil\SpecialChar TeX
9248
9249 \family default
9250  to use the dvips driver to rotate those pages that are set as landscape foils.
9251 \end_layout
9252
9253 \begin_layout Labeling
9254 \labelwidthstring MMMMMMx
9255
9256 \series bold
9257 landscape
9258 \series default
9259  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
9260  Thus if you use this option you need to use an external program to rotate each page or feed your paper through your printer as landscape.
9261  Note that this option effectively reverses the roles of the 
9262 \family sans
9263 Foilhead
9264 \family default
9265  and 
9266 \family sans
9267 Rotatefoilhead
9268 \family default
9269  environments (don't worry these are described in the next section).
9270 \end_layout
9271
9272 \begin_layout Labeling
9273 \labelwidthstring MMMMMMx
9274
9275 \series bold
9276 leqno
9277 \series default
9278  Equation numbers on the left.
9279 \end_layout
9280
9281 \begin_layout Labeling
9282 \labelwidthstring MMMMMMx
9283
9284 \series bold
9285 fleqn
9286 \series default
9287  Flush-left equations.
9288 \end_layout
9289
9290 \begin_layout Subsubsection
9291 Supported Environments
9292 \end_layout
9293
9294 \begin_layout Standard
9295 Most of the environments commonly supported in other classes are also supported by the 
9296 \family sans
9297 Foil\SpecialChar TeX
9298
9299 \family default
9300  class.
9301  There are several additional environments provided by 
9302 \family sans
9303 Foil\SpecialChar TeX
9304
9305 \family default
9306  as well as a couple added by \SpecialChar LyX
9307 .
9308  The following environments are shared with other classes:
9309 \end_layout
9310
9311 \begin_layout Standard
9312 \begin_inset Flex Multiple Columns
9313 status open
9314
9315 \begin_layout Itemize
9316
9317 \family sans
9318 Standard
9319 \end_layout
9320
9321 \begin_layout Itemize
9322
9323 \family sans
9324 Itemize
9325 \end_layout
9326
9327 \begin_layout Itemize
9328
9329 \family sans
9330 Enumerate
9331 \end_layout
9332
9333 \begin_layout Itemize
9334
9335 \family sans
9336 Description
9337 \end_layout
9338
9339 \begin_layout Itemize
9340
9341 \family sans
9342 List
9343 \end_layout
9344
9345 \begin_layout Itemize
9346
9347 \family sans
9348 \SpecialChar LyX
9349 -Code
9350 \end_layout
9351
9352 \begin_layout Itemize
9353
9354 \family sans
9355 Verse
9356 \end_layout
9357
9358 \begin_layout Itemize
9359
9360 \family sans
9361 Quote
9362 \end_layout
9363
9364 \begin_layout Itemize
9365
9366 \family sans
9367 Quotation
9368 \end_layout
9369
9370 \begin_layout Itemize
9371
9372 \family sans
9373 Title
9374 \end_layout
9375
9376 \begin_layout Itemize
9377
9378 \family sans
9379 Author
9380 \end_layout
9381
9382 \begin_layout Itemize
9383
9384 \family sans
9385 Date
9386 \end_layout
9387
9388 \begin_layout Itemize
9389
9390 \family sans
9391 Abstract
9392 \end_layout
9393
9394 \begin_layout Itemize
9395
9396 \family sans
9397 Bibliography
9398 \end_layout
9399
9400 \begin_layout Itemize
9401
9402 \family sans
9403 Address
9404 \end_layout
9405
9406 \begin_layout Itemize
9407
9408 \family sans
9409 RightAddress
9410 \end_layout
9411
9412 \end_inset
9413
9414
9415 \end_layout
9416
9417 \begin_layout Standard
9418 That is,
9419  all the major environments apart from the sectioning environments.
9420  Since foils are essentially self-contained sections,
9421  with a title and body,
9422  
9423 \family sans
9424 Foil\SpecialChar TeX
9425
9426 \family default
9427  provides specific commands for starting new foils and these are:
9428 \end_layout
9429
9430 \begin_layout Itemize
9431
9432 \family sans
9433 Foilhead
9434 \end_layout
9435
9436 \begin_layout Itemize
9437
9438 \family sans
9439 Rotatefoilhead
9440 \end_layout
9441
9442 \begin_layout Standard
9443 \SpecialChar LyX
9444  also provides slightly modified versions of these two environments called:
9445 \end_layout
9446
9447 \begin_layout Itemize
9448
9449 \family sans
9450 ShortFoilhead
9451 \end_layout
9452
9453 \begin_layout Itemize
9454
9455 \family sans
9456 ShortRotatefoilhead
9457 \end_layout
9458
9459 \begin_layout Standard
9460 and the differences will be explained in the next section.
9461 \end_layout
9462
9463 \begin_layout Standard
9464 Since foils are often used in presenting ideas or new theorems and such 
9465 \family sans
9466 Foil\SpecialChar TeX
9467
9468 \family default
9469  also provides a comprehensive box of goodies for presenting them:
9470 \end_layout
9471
9472 \begin_layout Standard
9473 \begin_inset Flex Multiple Columns
9474 status open
9475
9476 \begin_layout Itemize
9477
9478 \family sans
9479 Theorem
9480 \end_layout
9481
9482 \begin_layout Itemize
9483
9484 \family sans
9485 Lemma
9486 \end_layout
9487
9488 \begin_layout Itemize
9489
9490 \family sans
9491 Corollary
9492 \end_layout
9493
9494 \begin_layout Itemize
9495
9496 \family sans
9497 Proposition
9498 \end_layout
9499
9500 \begin_layout Itemize
9501
9502 \family sans
9503 Definition
9504 \end_layout
9505
9506 \begin_layout Itemize
9507
9508 \family sans
9509 Proof
9510 \end_layout
9511
9512 \begin_layout Itemize
9513
9514 \family sans
9515 Theorem*
9516 \end_layout
9517
9518 \begin_layout Itemize
9519
9520 \family sans
9521 Lemma*
9522 \end_layout
9523
9524 \begin_layout Itemize
9525
9526 \family sans
9527 Corollary*
9528 \end_layout
9529
9530 \begin_layout Itemize
9531
9532 \family sans
9533 Proposition*
9534 \end_layout
9535
9536 \begin_layout Itemize
9537
9538 \family sans
9539 Definition*
9540 \end_layout
9541
9542 \end_inset
9543
9544
9545 \end_layout
9546
9547 \begin_layout Standard
9548 The starred versions are unnumbered while the unstarred versions are numbered.
9549  There are also two list environments added by \SpecialChar LyX
9550  and these are:
9551 \end_layout
9552
9553 \begin_layout Itemize
9554
9555 \family sans
9556 TickList
9557 \end_layout
9558
9559 \begin_layout Itemize
9560
9561 \family sans
9562 CrossList
9563 \end_layout
9564
9565 \begin_layout Standard
9566
9567 \family sans
9568 Foil\SpecialChar TeX
9569
9570 \family default
9571  provides some powerful header and footer capabilities that are best set in the preamble although they may be set at any point in a document.
9572  If you want to change these settings in your document the best place to do so is at the very top of a foil,
9573  i.
9574 \begin_inset space \thinspace{}
9575 \end_inset
9576
9577 e.
9578 \emph on
9579
9580 \begin_inset space \space{}
9581 \end_inset
9582
9583
9584 \emph default
9585 straight after the foilhead.
9586 \end_layout
9587
9588 \begin_layout Standard
9589 For this purpose,
9590  the following command styles are provided [
9591 \shape smallcaps
9592 Martin Vermeer
9593 \shape default
9594 ]:
9595 \end_layout
9596
9597 \begin_layout Standard
9598 \begin_inset Flex Multiple Columns
9599 status open
9600
9601 \begin_layout Itemize
9602
9603 \family sans
9604 My
9605 \begin_inset space ~
9606 \end_inset
9607
9608 Logo
9609 \end_layout
9610
9611 \begin_layout Itemize
9612
9613 \family sans
9614 Restriction
9615 \end_layout
9616
9617 \begin_layout Itemize
9618
9619 \family sans
9620 Right
9621 \begin_inset space ~
9622 \end_inset
9623
9624 Footer
9625 \end_layout
9626
9627 \begin_layout Itemize
9628
9629 \family sans
9630 Right
9631 \begin_inset space ~
9632 \end_inset
9633
9634 Header
9635 \end_layout
9636
9637 \begin_layout Itemize
9638
9639 \family sans
9640 Left
9641 \begin_inset space ~
9642 \end_inset
9643
9644 Header
9645 \end_layout
9646
9647 \begin_deeper
9648 \begin_layout Plain Layout
9649 \begin_inset space ~
9650 \end_inset
9651
9652
9653 \end_layout
9654
9655 \end_deeper
9656 \end_inset
9657
9658
9659 \end_layout
9660
9661 \begin_layout Standard
9662 There are also a few commands provided by 
9663 \family sans
9664 Foil\SpecialChar TeX
9665
9666 \family default
9667  that aren't directly supported by \SpecialChar LyX
9668  but I'll tell you what they do and how to use them in section
9669 \begin_inset space ~
9670 \end_inset
9671
9672
9673 \begin_inset CommandInset ref
9674 LatexCommand ref
9675 reference "sec:unsuppfoils"
9676 nolink "false"
9677
9678 \end_inset
9679
9680 .
9681 \end_layout
9682
9683 \begin_layout Subsubsection
9684 Building a Set of Foils
9685 \end_layout
9686
9687 \begin_layout Standard
9688 This section will give a simple introduction to using the different environments to build a set of foils.
9689  If you want to see an example set of foils,
9690  take a look at 
9691 \family sans
9692 File\SpecialChar menuseparator
9693 Open Example\SpecialChar menuseparator
9694 Presentations\SpecialChar menuseparator
9695 Foils
9696 \family default
9697 .
9698 \end_layout
9699
9700 \begin_layout Paragraph
9701 Give It a Title Page
9702 \end_layout
9703
9704 \begin_layout Standard
9705 Unlike other classes that provide 
9706 \family sans
9707 Title
9708 \family default
9709 ,
9710  
9711 \family sans
9712 Author
9713 \family default
9714 ,
9715  
9716 \family sans
9717 Date
9718 \family default
9719  and 
9720 \family sans
9721 Abstract
9722 \family default
9723  environments,
9724  
9725 \family sans
9726 \lang ngerman
9727 FoilTeX
9728 \family default
9729 \lang english
9730  creates the title on a page of its own.
9731  If you leave out the 
9732 \family sans
9733 Date
9734 \family default
9735  environment \SpecialChar LaTeX
9736  will substitute the current date (every time you regenerate the output).
9737 \end_layout
9738
9739 \begin_layout Paragraph
9740 Start a New Foil
9741 \end_layout
9742
9743 \begin_layout Standard
9744 As I mentioned earlier,
9745  there are four ways of starting a new foil.
9746  For portrait foils you should use 
9747 \family sans
9748 Foilhead
9749 \family default
9750  or 
9751 \family sans
9752 ShortFoilhead.
9753
9754 \family default
9755  The difference between these two environments is the amount of space between the title of the foil (the foilhead) and the body of the foil.
9756 \end_layout
9757
9758 \begin_layout Standard
9759 Landscape foils are generated using the 
9760 \family sans
9761 Rotatefoilhead
9762 \family default
9763  and 
9764 \family sans
9765 ShortRotatefoilhead
9766 \family default
9767  environments.
9768  Again the only difference is the spacing between foilhead and body.
9769  Both of the short versions have 0.5
9770 \begin_inset space ~
9771 \end_inset
9772
9773 inches less separation between the foilhead and the body.
9774  
9775 \end_layout
9776
9777 \begin_layout Standard
9778 One problem with the support for landscape foils is the requirement that you have to use the 
9779 \family typewriter
9780 dvips
9781 \family default
9782  driver to generate the PostScript output otherwise the foils won't be rotated.
9783  It is possible to get landscape foils even if you haven't got the 
9784 \family typewriter
9785 dvips
9786 \family default
9787  driver provided you can feed your foils sideways through your printer ;-)
9788 \end_layout
9789
9790 \begin_layout Paragraph
9791 Theorems,
9792  Lemmas,
9793  Proofs and more
9794 \end_layout
9795
9796 \begin_layout Standard
9797 You can't have two of the same type of these environments directly following each other.
9798  If you use a normal paragraph break,
9799  ,
9800  you will just be extending the previous environment as if you had merged the two environments together.
9801  Rather than that,
9802  you need to insert a so-called separator.
9803  Please refer to the section entitled 
9804 \emph on
9805 Separate Nestings
9806 \emph default
9807  in the 
9808 \emph on
9809 User's Guide
9810 \emph default
9811 .
9812 \end_layout
9813
9814 \begin_layout Paragraph
9815 Lists
9816 \end_layout
9817
9818 \begin_layout Standard
9819 You get all the commonly supported list styles found in other classes as well as two new ones.
9820  I'll only describe the new ones here.
9821  If you want to find out more about the other list environments check out the 
9822 \emph on
9823 User's Guide.
9824
9825 \emph default
9826  If you intend to use itemized lists you might also want to read about the 
9827 \family sans
9828 Itemize
9829 \begin_inset space ~
9830 \end_inset
9831
9832 Bullet
9833 \begin_inset space ~
9834 \end_inset
9835
9836 Selection
9837 \family default
9838  dialog described above in section
9839 \begin_inset space ~
9840 \end_inset
9841
9842
9843 \begin_inset CommandInset ref
9844 LatexCommand ref
9845 reference "chap:bullets"
9846 nolink "false"
9847
9848 \end_inset
9849
9850 .
9851 \end_layout
9852
9853 \begin_layout Standard
9854 The two new list styles,
9855  
9856 \family sans
9857 TickList
9858 \family default
9859  and 
9860 \family sans
9861 CrossList
9862 \family default
9863 ,
9864  are designed to make it easier for you to create lists of do's and don'ts or right and wrong by providing dedicated environments that use a tick or a cross as the label of the list.
9865  These lists are in fact dedicated variants of the 
9866 \family sans
9867 Itemize
9868 \family default
9869  environment.
9870  They do however require that you have the 
9871 \family typewriter
9872 psnfss
9873 \family default
9874  packages installed.
9875 \end_layout
9876
9877 \begin_layout Paragraph
9878 Figures and Tables
9879 \end_layout
9880
9881 \begin_layout Standard
9882
9883 \family sans
9884 Foil\SpecialChar TeX
9885
9886 \family default
9887  redefines the floating tables and figures so that they appear exactly where they are in the text rather than pushing them to the top of the page or to some user specified location.
9888  In fact if you change the float placement settings they are simply ignored.
9889 \end_layout
9890
9891 \begin_layout Paragraph
9892 Page Headers and Footers
9893 \begin_inset CommandInset label
9894 LatexCommand label
9895 name "sec:foilfoot"
9896
9897 \end_inset
9898
9899
9900 \end_layout
9901
9902 \begin_layout Standard
9903
9904 \family sans
9905 My
9906 \begin_inset space ~
9907 \end_inset
9908
9909 Logo
9910 \family default
9911  and 
9912 \family sans
9913 Restriction
9914 \family default
9915  are two commands used to control the left-footer text string.
9916  The first is meant to allow you to include a graphic logo on your foils and defaults to 
9917 \begin_inset Quotes eld
9918 \end_inset
9919
9920 -Typeset by 
9921 \family sans
9922 Foil\SpecialChar TeX
9923
9924 \family default
9925 -
9926 \begin_inset Quotes erd
9927 \end_inset
9928
9929 .
9930  While the second is meant to provide a classification for the audience,
9931  
9932 \emph on
9933 e.
9934 \begin_inset space \thinspace{}
9935 \end_inset
9936
9937 g.
9938 \emph default
9939
9940 \begin_inset space \space{}
9941 \end_inset
9942
9943 Confidential.
9944  It is empty by default.
9945 \end_layout
9946
9947 \begin_layout Standard
9948 The remaining page corners can be filled by 
9949 \family sans
9950 Right
9951 \begin_inset space ~
9952 \end_inset
9953
9954 Footer
9955 \family default
9956  (which defaults to page numbers),
9957  
9958 \family sans
9959 Right
9960 \begin_inset space ~
9961 \end_inset
9962
9963 Header
9964 \family default
9965  (top right) and 
9966 \family sans
9967 Left
9968 \begin_inset space ~
9969 \end_inset
9970
9971 Header
9972 \family default
9973  (top left).
9974 \end_layout
9975
9976 \begin_layout Subsubsection
9977 Unsupported 
9978 \family sans
9979 Foil\SpecialChar TeX
9980
9981 \family default
9982  Goodies
9983 \begin_inset CommandInset label
9984 LatexCommand label
9985 name "sec:unsuppfoils"
9986
9987 \end_inset
9988
9989
9990 \end_layout
9991
9992 \begin_layout Standard
9993 All the commands mentioned below need to be set in a 
9994 \family sans
9995 \SpecialChar LaTeX
9996
9997 \family default
9998  environment or as 
9999 \family sans
10000 \SpecialChar TeX
10001
10002 \family default
10003  within another environment.
10004 \end_layout
10005
10006 \begin_layout Paragraph
10007 Lengths
10008 \end_layout
10009
10010 \begin_layout Standard
10011 All lengths are adjusted using the 
10012 \family typewriter
10013
10014 \backslash
10015 setlength{
10016 \family default
10017 \emph on
10018 lengthname
10019 \family typewriter
10020 \emph default
10021 }{
10022 \family default
10023 \emph on
10024 newlength
10025 \family typewriter
10026 \emph default
10027 }
10028 \family default
10029  command.
10030  Where 
10031 \emph on
10032 lengthname
10033 \emph default
10034  should be replaced by the name given to the length you want to change and 
10035 \emph on
10036 newlength
10037 \emph default
10038  is the length value.
10039  All lengths should be specified in units of length such as inches (
10040 \family typewriter
10041 in
10042 \family default
10043 ),
10044  millimeters (
10045 \family typewriter
10046 mm
10047 \family default
10048 ) or points (
10049 \family typewriter
10050 pt
10051 \family default
10052 ) or relative to some document or font-based length such as 
10053 \family typewriter
10054
10055 \backslash
10056 textwidth
10057 \family default
10058 .
10059  
10060 \end_layout
10061
10062 \begin_layout Standard
10063 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
10064 \family typewriter
10065
10066 \backslash
10067 foilheadskip
10068 \family default
10069 .
10070  For example,
10071  to make 
10072 \emph on
10073 all
10074 \emph default
10075  foilheads 0.5
10076 \begin_inset space \space{}
10077 \end_inset
10078
10079 in closer to their bodies put the following in the preamble:
10080  
10081 \family typewriter
10082
10083 \backslash
10084 setlength{
10085 \backslash
10086 foilheadskip}{-0.5in}
10087 \end_layout
10088
10089 \begin_layout Standard
10090 The spacings around floats can be adjusted by setting these lengths:
10091 \end_layout
10092
10093 \begin_layout Labeling
10094 \labelwidthstring MMMMMMMMMMM
10095
10096 \family typewriter
10097
10098 \backslash
10099 abovefloatskip
10100 \family default
10101  Separation between the text and the top of the float
10102 \end_layout
10103
10104 \begin_layout Labeling
10105 \labelwidthstring MMMMMMMMMMM
10106
10107 \family typewriter
10108
10109 \backslash
10110 abovecaptionskip
10111 \family default
10112  Separation between the float and the caption
10113 \end_layout
10114
10115 \begin_layout Labeling
10116 \labelwidthstring MMMMMMMMMMM
10117
10118 \family typewriter
10119
10120 \backslash
10121 belowcaptionskip
10122 \family default
10123  Separation between the caption and the following text
10124 \end_layout
10125
10126 \begin_layout Labeling
10127 \labelwidthstring MMMMMMMMMMM
10128
10129 \family typewriter
10130
10131 \backslash
10132 captionwidth
10133 \family default
10134  You can make the captions narrower than the surrounding text by adjusting this length.
10135  Best done relative to 
10136 \family typewriter
10137
10138 \backslash
10139 textwidth
10140 \family default
10141 .
10142 \end_layout
10143
10144 \begin_layout Standard
10145 There are also several title page related lengths that you may find useful if you have a long title or several authors:
10146 \end_layout
10147
10148 \begin_layout Labeling
10149 \labelwidthstring MMMMMMMMMMM
10150
10151 \family typewriter
10152
10153 \backslash
10154 abovetitleskip
10155 \family default
10156  Separation from headers to 
10157 \family sans
10158 Title
10159 \end_layout
10160
10161 \begin_layout Labeling
10162 \labelwidthstring MMMMMMMMMMM
10163
10164 \family typewriter
10165
10166 \backslash
10167 titleauthorskip
10168 \family default
10169  between 
10170 \family sans
10171 Title
10172 \family default
10173  and 
10174 \family sans
10175 Author
10176 \family default
10177  environments
10178 \end_layout
10179
10180 \begin_layout Labeling
10181 \labelwidthstring MMMMMMMMMMM
10182
10183 \family typewriter
10184
10185 \backslash
10186 authorauthorskip
10187 \family default
10188  between multiple 
10189 \family sans
10190 Author
10191 \family default
10192  lines
10193 \end_layout
10194
10195 \begin_layout Labeling
10196 \labelwidthstring MMMMMMMMMMM
10197
10198 \family typewriter
10199
10200 \backslash
10201 authordateskip
10202 \family default
10203  between the 
10204 \family sans
10205 Author
10206 \family default
10207  and the 
10208 \family sans
10209 Date
10210 \end_layout
10211
10212 \begin_layout Labeling
10213 \labelwidthstring MMMMMMMMMMM
10214
10215 \family typewriter
10216
10217 \backslash
10218 dateabstractskip
10219 \family default
10220  between the 
10221 \family sans
10222 Date
10223 \family default
10224  and the 
10225 \family sans
10226 Abstract
10227 \end_layout
10228
10229 \begin_layout Standard
10230 The last length related command affects all the list environments.
10231  If you place 
10232 \family typewriter
10233
10234 \backslash
10235 zerolistvertdimens
10236 \family default
10237  
10238 \emph on
10239 inside
10240 \emph default
10241  a list environment then all the vertical spacing between the list items is removed.
10242  Note that this is a command not a length so it doesn't require 
10243 \family typewriter
10244
10245 \backslash
10246 setlength
10247 \family default
10248  like the stuff mentioned above.
10249 \end_layout
10250
10251 \begin_layout Paragraph
10252 Headers and Footers
10253 \end_layout
10254
10255 \begin_layout Standard
10256 The 
10257 \family typewriter
10258
10259 \backslash
10260 LogoOn
10261 \family default
10262  and 
10263 \family typewriter
10264
10265 \backslash
10266 LogoOff
10267 \family default
10268  commands control whether the logo in the 
10269 \family sans
10270 MyLogo
10271 \family default
10272  definition appear on a given page.
10273  If you put 
10274 \family typewriter
10275
10276 \backslash
10277 LogoOff
10278 \family default
10279  in the preamble then none of the foils will have the logo on them.
10280  If you don't want the logo on a particular page place the 
10281 \family typewriter
10282
10283 \backslash
10284 LogoOff
10285 \family default
10286  directly after the foilhead of that page and the 
10287 \family typewriter
10288
10289 \backslash
10290 LogoOn
10291 \family default
10292  directly after the next foilhead.
10293 \end_layout
10294
10295 \begin_layout Standard
10296 If you decide to use the 
10297 \family sans
10298 fancy
10299 \family default
10300  page style setting in the 
10301 \family sans
10302 Document
10303 \begin_inset space ~
10304 \end_inset
10305
10306 Layout
10307 \family default
10308  dialog you should probably add 
10309 \family typewriter
10310
10311 \backslash
10312 let
10313 \backslash
10314 headwidth
10315 \backslash
10316 textwidth
10317 \family default
10318  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
10319  This is due to some clashes between the page layouts provided by the 
10320 \family sans
10321 fancyheadings
10322 \family default
10323  package and the 
10324 \family sans
10325 \lang ngerman
10326 FoilTeX
10327 \family default
10328 \lang english
10329  class.
10330 \end_layout
10331
10332 \begin_layout Subsection
10333 Powerdot
10334 \end_layout
10335
10336 \begin_layout Standard
10337 The document class 
10338 \family sans
10339 Powerdot
10340 \family default
10341  uses the 
10342 \family typewriter
10343 powerdot.cls
10344 \family default
10345  \SpecialChar LaTeX
10346  class for creating presentations.
10347  
10348 \family sans
10349 File\SpecialChar menuseparator
10350 Open Example\SpecialChar menuseparator
10351 Presentations\SpecialChar menuseparator
10352 Powerdot
10353 \family default
10354  offers guidance on its use.
10355  The documentation is available from 
10356 \begin_inset CommandInset href
10357 LatexCommand href
10358 name "CTAN"
10359 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10360 literal "false"
10361
10362 \end_inset
10363
10364 .
10365 \end_layout
10366
10367 \begin_layout Subsection
10368 \begin_inset CommandInset label
10369 LatexCommand label
10370 name "subsec:Seminar"
10371
10372 \end_inset
10373
10374
10375 \family sans
10376 Seminar
10377 \end_layout
10378
10379 \begin_layout Standard
10380 The document class 
10381 \family sans
10382 Seminar
10383 \family default
10384  uses the 
10385 \family typewriter
10386 seminar.cls
10387 \family default
10388  document class for creating presentations.
10389  
10390 \family sans
10391 File\SpecialChar menuseparator
10392 Open Example\SpecialChar menuseparator
10393 Presentations\SpecialChar menuseparator
10394 Seminar
10395 \family default
10396  offers guidance on its use.
10397  The documentation is available from 
10398 \begin_inset CommandInset href
10399 LatexCommand href
10400 name "CTAN"
10401 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10402 literal "false"
10403
10404 \end_inset
10405
10406 .
10407 \end_layout
10408
10409 \begin_layout Subsection
10410 Slides [aka 
10411 \noun on
10412 Sli\SpecialChar TeX
10413
10414 \noun default
10415 ]
10416 \begin_inset CommandInset label
10417 LatexCommand label
10418 name "sec:slitex"
10419
10420 \end_inset
10421
10422
10423 \end_layout
10424
10425 \begin_layout Standard
10426 Original by 
10427 \noun on
10428 John Weiss
10429 \noun default
10430 ;
10431  updated by the \SpecialChar LyX
10432  Team
10433 \end_layout
10434
10435 \begin_layout Subsubsection
10436 Introduction
10437 \end_layout
10438
10439 \begin_layout Standard
10440 This section describes how to use \SpecialChar LyX
10441  to make slides for overhead projectors.
10442  There are two document classes that can do this:
10443  the 
10444 \family sans
10445 Slides
10446 \family default
10447  document class and the 
10448 \family sans
10449 Foil\SpecialChar TeX
10450
10451 \family default
10452  document class.
10453  This section documents the former.
10454  If you’re looking for the documentation for 
10455 \family sans
10456 Foil\SpecialChar TeX
10457
10458 \family default
10459 ,
10460  check out section
10461 \begin_inset space ~
10462 \end_inset
10463
10464
10465 \begin_inset CommandInset ref
10466 LatexCommand ref
10467 reference "sec:foiltex"
10468 plural "false"
10469 caps "false"
10470 noprefix "false"
10471 nolink "false"
10472
10473 \end_inset
10474
10475 .
10476  As of 2023 
10477 \family sans
10478 Slides
10479 \family default
10480  has continued to be maintained whereas 
10481 \family sans
10482 Foil\SpecialChar TeX
10483
10484 \family default
10485  has not been maintained since 2008.
10486  
10487 \end_layout
10488
10489 \begin_layout Subsubsection
10490 Getting Started
10491 \begin_inset CommandInset label
10492 LatexCommand label
10493 name "sec:slidesetup"
10494
10495 \end_inset
10496
10497
10498 \end_layout
10499
10500 \begin_layout Standard
10501 Obviously,
10502  to use this document class,
10503  you need to select 
10504 \begin_inset Quotes eld
10505 \end_inset
10506
10507
10508 \family sans
10509 Slides
10510 \family default
10511
10512 \begin_inset Quotes erd
10513 \end_inset
10514
10515  from the class list in the 
10516 \family sans
10517 Document\SpecialChar menuseparator
10518 Settings
10519 \family default
10520  dialog.
10521  There are some other special things you should know about this class:
10522 \end_layout
10523
10524 \begin_layout Itemize
10525 Don't bother changing the options 
10526 \family sans
10527 Sides and Columns
10528 \family default
10529 .
10530  They're not supported by the 
10531 \family sans
10532 Slides
10533 \family default
10534  class,
10535  anyways.
10536 \end_layout
10537
10538 \begin_layout Itemize
10539 The option 
10540 \family sans
10541 Page
10542 \begin_inset space ~
10543 \end_inset
10544
10545 style
10546 \family default
10547  behaves a bit differently for this class.
10548  The possible choices and what they do are as follows:
10549 \end_layout
10550
10551 \begin_deeper
10552 \begin_layout Description
10553
10554 \family sans
10555 plain
10556 \family default
10557  The final output contains page numbers in the lower right corner.
10558 \end_layout
10559
10560 \begin_layout Description
10561
10562 \family sans
10563 headings
10564 \family default
10565  Like 
10566 \family sans
10567 plain
10568 \family default
10569 ,
10570  but also prints out any time markers you've put in.
10571  This is the default.
10572 \end_layout
10573
10574 \begin_layout Description
10575
10576 \family sans
10577 empty
10578 \family default
10579  The final output contains no page numbers,
10580  time markers,
10581  or alignment markers.
10582 \end_layout
10583
10584 \end_deeper
10585 \begin_layout Itemize
10586 The 
10587 \family sans
10588 Slides
10589 \family default
10590  class has an extra option:
10591  
10592 \family typewriter
10593 clock
10594 \family default
10595 .
10596  To use it,
10597  put 
10598 \begin_inset Quotes eld
10599 \end_inset
10600
10601
10602 \family typewriter
10603 clock
10604 \family default
10605
10606 \begin_inset Quotes erd
10607 \end_inset
10608
10609  in the extra class options.
10610 \end_layout
10611
10612 \begin_deeper
10613 \begin_layout Standard
10614 Using this options allows you to add time markers to 
10615 \family sans
10616 Note
10617 \family default
10618 s.
10619  See section
10620 \begin_inset space ~
10621 \end_inset
10622
10623
10624 \begin_inset CommandInset ref
10625 LatexCommand ref
10626 reference "sec:slideNote"
10627 nolink "false"
10628
10629 \end_inset
10630
10631  for more details.
10632 \end_layout
10633
10634 \end_deeper
10635 \begin_layout Standard
10636 You can also use the template file to automatically set up a document to use the 
10637 \family sans
10638 slides
10639 \family default
10640  class using 
10641 \family sans
10642 File\SpecialChar menuseparator
10643 New
10644 \begin_inset space ~
10645 \end_inset
10646
10647 from
10648 \begin_inset space ~
10649 \end_inset
10650
10651 Template\SpecialChar menuseparator
10652 Presentations\SpecialChar menuseparator
10653 Slides
10654 \family default
10655  to open your new document.
10656  The template file also contains some examples of the special paragraph environments used by this class.
10657  I'll describe those next.
10658 \end_layout
10659
10660 \begin_layout Subsubsection
10661 Paragraph Environments
10662 \end_layout
10663
10664 \begin_layout Paragraph
10665 Supported Environments
10666 \end_layout
10667
10668 \begin_layout Standard
10669 The first thing you'll notice when you start up a new 
10670 \family sans
10671 Slides
10672 \family default
10673  document is the font size and type:
10674  it's the equivalent of the size 
10675 \begin_inset Quotes eld
10676 \end_inset
10677
10678
10679 \family sans
10680 Largest
10681 \family default
10682
10683 \begin_inset Quotes erd
10684 \end_inset
10685
10686  in the 
10687 \family sans
10688 Sans
10689 \begin_inset space ~
10690 \end_inset
10691
10692 Serif
10693 \family default
10694  font.
10695  This is also what's used in the output.
10696  Think of this as a 
10697 \begin_inset Quotes eld
10698 \end_inset
10699
10700 visual cue
10701 \begin_inset Quotes erd
10702 \end_inset
10703
10704  to remind you that this is a slide.
10705  Your final slides will use a larger font;
10706  ergo,
10707  you'll have less space.
10708  Of course,
10709  the larger default screen font isn't WYSIWYG,
10710  only a reminder.
10711 \end_layout
10712
10713 \begin_layout Standard
10714 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
10715  Most of the paragraph environments you're used to seeing are missing.
10716  There are also five new ones.
10717  That's because the 
10718 \family sans
10719 Slides
10720 \family default
10721  class itself only supports certain paragraph environments:
10722 \end_layout
10723
10724 \begin_layout Standard
10725
10726 \family sans
10727 \begin_inset Flex Multiple Columns
10728 status open
10729
10730 \begin_layout Itemize
10731
10732 \family sans
10733 Standard
10734 \end_layout
10735
10736 \begin_layout Itemize
10737
10738 \family sans
10739 Itemize
10740 \end_layout
10741
10742 \begin_layout Itemize
10743
10744 \family sans
10745 Enumerate
10746 \end_layout
10747
10748 \begin_layout Itemize
10749
10750 \family sans
10751 Description
10752 \end_layout
10753
10754 \begin_layout Itemize
10755
10756 \family sans
10757 List
10758 \end_layout
10759
10760 \begin_layout Itemize
10761
10762 \family sans
10763 Quotation
10764 \end_layout
10765
10766 \begin_layout Itemize
10767
10768 \family sans
10769 Quote
10770 \end_layout
10771
10772 \begin_layout Itemize
10773
10774 \family sans
10775 Verse
10776 \end_layout
10777
10778 \begin_layout Itemize
10779
10780 \family sans
10781 Caption
10782 \end_layout
10783
10784 \begin_layout Itemize
10785
10786 \family sans
10787 \SpecialChar LyX
10788 -Code
10789 \end_layout
10790
10791 \end_inset
10792
10793
10794 \end_layout
10795
10796 \begin_layout Standard
10797 All of the other standard environments,
10798  including the section-heading environments,
10799  aren't used in the 
10800 \family sans
10801 Slides
10802 \family default
10803  class.
10804 \end_layout
10805
10806 \begin_layout Standard
10807 On the other hand,
10808  you'll notice the following new environments:
10809 \end_layout
10810
10811 \begin_layout Standard
10812
10813 \family sans
10814 \begin_inset Flex Multiple Columns
10815 status open
10816
10817 \begin_layout Itemize
10818
10819 \family sans
10820 Slide
10821 \end_layout
10822
10823 \begin_layout Itemize
10824
10825 \family sans
10826 Overlay
10827 \end_layout
10828
10829 \begin_layout Itemize
10830
10831 \family sans
10832 Note
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family sans
10838 InvisibleText
10839 \end_layout
10840
10841 \begin_layout Itemize
10842
10843 \family sans
10844 VisibleText
10845 \end_layout
10846
10847 \begin_deeper
10848 \begin_layout Plain Layout
10849 \begin_inset space ~
10850 \end_inset
10851
10852
10853 \end_layout
10854
10855 \end_deeper
10856 \end_inset
10857
10858
10859 \end_layout
10860
10861 \begin_layout Standard
10862 These five are kind of quirky,
10863  due to a 
10864 \begin_inset Quotes eld
10865 \end_inset
10866
10867 feature
10868 \begin_inset Quotes erd
10869 \end_inset
10870
10871  in \SpecialChar LyX
10872 .
10873  You see,
10874  \SpecialChar LyX
10875  doesn't permit you to nest any other paragraph environment into an empty environment.
10876  Now,
10877  that's fine and dandy,
10878  but it means that you wouldn't be able to start a slide with anything except plain text.
10879  To deal with this,
10880  I've performed a little 
10881 \begin_inset Quotes eld
10882 \end_inset
10883
10884 \SpecialChar LaTeX
10885  magic.
10886 \begin_inset Quotes erd
10887 \end_inset
10888
10889  
10890 \end_layout
10891
10892 \begin_layout Paragraph
10893 Quirks of the New Environments
10894 \begin_inset CommandInset label
10895 LatexCommand label
10896 name "sec:slideQuirk"
10897
10898 \end_inset
10899
10900
10901 \end_layout
10902
10903 \begin_layout Standard
10904 All five of the new paragraph environments are somewhat quirky due to inherent limitations in the current version of \SpecialChar LyX
10905 .
10906  As I just mentioned,
10907  \SpecialChar LyX
10908  forbids environments that begin with another environment.
10909  To get around this,
10910  the 
10911 \family sans
10912 Slide
10913 \family default
10914  environment isn't a paragraph environment as described in the 
10915 \emph on
10916 User's Guide
10917 \emph default
10918 .
10919  
10920 \end_layout
10921
10922 \begin_layout Standard
10923 You should consider 
10924 \family sans
10925 Slide
10926 \family default
10927 ,
10928  
10929 \family sans
10930 Overlay
10931 \family default
10932 ,
10933  and 
10934 \family sans
10935 Note
10936 \family default
10937  to be 
10938 \begin_inset Quotes eld
10939 \end_inset
10940
10941 pseudo-environments.
10942 \begin_inset Quotes erd
10943 \end_inset
10944
10945  They look like a section heading or a 
10946 \begin_inset Quotes eld
10947 \end_inset
10948
10949
10950 \family sans
10951 Caption
10952 \family default
10953 ,
10954 \begin_inset Quotes erd
10955 \end_inset
10956
10957  but really begin a [and,
10958  if necessary,
10959  end the previous] paragraph environment.
10960  Likewise,
10961  treat 
10962 \family sans
10963 InvisibleText
10964 \family default
10965  and 
10966 \family sans
10967 VisibleText
10968 \family default
10969  as 
10970 \begin_inset Quotes eld
10971 \end_inset
10972
10973 pseudo-commands.
10974 \begin_inset Quotes erd
10975 \end_inset
10976
10977  These two perform some action.
10978 \end_layout
10979
10980 \begin_layout Standard
10981 A common feature of all five environments,
10982  
10983 \family sans
10984 Slide
10985 \family default
10986 ,
10987  
10988 \family sans
10989 Overlay
10990 \family default
10991 ,
10992  
10993 \family sans
10994 Note
10995 \family default
10996 ,
10997  
10998 \family sans
10999 InvisibleText
11000 \family default
11001  and 
11002 \family sans
11003 VisibleText
11004 \family default
11005 ,
11006  is a rather long-ish label.
11007  The text following this label —
11008  ordinarily the contents of the paragraph environment —
11009  is utterly irrelevant for 
11010 \family sans
11011 Slide
11012 \family default
11013 ,
11014  
11015 \family sans
11016 Overlay
11017 \family default
11018 ,
11019  
11020 \family sans
11021 Note
11022 \family default
11023 ,
11024  
11025 \family sans
11026 InvisibleText
11027 \family default
11028  and 
11029 \family sans
11030 VisibleText
11031 \family default
11032 .
11033  \SpecialChar LyX
11034  completely ignores it.
11035  In fact,
11036  you can leave these five environments completely empty.
11037  
11038 \end_layout
11039
11040 \begin_layout Standard
11041 While you don't 
11042 \emph on
11043 have
11044 \emph default
11045  to put any text after the rather long-ish label,
11046  you might want to.
11047  This could be a short description of the contents of the 
11048 \family sans
11049 Slide
11050 \family default
11051 ,
11052  for example.
11053  In that case,
11054  enter your descriptive comment and hit 
11055 \family sans
11056 Return
11057 \family default
11058  as you normally would.
11059 \end_layout
11060
11061 \begin_layout Subsubsection
11062 Making a Presentation with 
11063 \family sans
11064 Slide
11065 \family default
11066 ,
11067  
11068 \family sans
11069 Overlay
11070 \family default
11071  and 
11072 \family sans
11073 Note
11074 \end_layout
11075
11076 \begin_layout Paragraph
11077 Using the 
11078 \family sans
11079 Slide
11080 \family default
11081  Environment
11082 \end_layout
11083
11084 \begin_layout Standard
11085 If you're expecting this section to teach you how to actually make a presentation,
11086  you'll be sorely disappointed.
11087  Naturally,
11088  I'll describe all of the ways the 
11089 \family sans
11090 Slides
11091 \family default
11092  class can assist you in preparing the materials for a presentation.
11093  Filling in the contents,
11094  however,
11095  is up to you.
11096  [Then again,
11097  that 
11098 \emph on
11099 is
11100 \emph default
11101  the \SpecialChar LyX
11102  philosophy.]
11103 \end_layout
11104
11105 \begin_layout Standard
11106 Choosing the 
11107 \family sans
11108 Slide
11109 \family default
11110  environment [in the manner described in section
11111 \begin_inset space ~
11112 \end_inset
11113
11114
11115 \begin_inset CommandInset ref
11116 LatexCommand ref
11117 reference "sec:slideQuirk"
11118 nolink "false"
11119
11120 \end_inset
11121
11122 ] tells \SpecialChar LyX
11123  to begin a new slide [duh].
11124  The label for this environment/
11125 \begin_inset Quotes eld
11126 \end_inset
11127
11128 pseudo-command
11129 \begin_inset Quotes erd
11130 \end_inset
11131
11132  is an 
11133 \begin_inset Quotes eld
11134 \end_inset
11135
11136 ASCII line,
11137 \begin_inset Quotes erd
11138 \end_inset
11139
11140  in cool blue,
11141  followed by the label,
11142  
11143 \begin_inset Quotes eld
11144 \end_inset
11145
11146 NewSlide:
11147 \begin_inset Quotes erd
11148 \end_inset
11149
11150 .
11151  Any text or paragraph environments that follow this one go on the new slide.
11152  It's that simple.
11153 \end_layout
11154
11155 \begin_layout Standard
11156 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11157  (this can be specified in the 
11158 \family sans
11159 Paragraph Layout
11160 \family default
11161  dialog).
11162  In fact,
11163  you'll want to,
11164  once you finish entering the contents of one slide.
11165  If you've entered more text than can physically fit on a slide,
11166  the extra overflows onto a new slide.
11167  I don't recommend doing this,
11168  however,
11169  since the overflow slide won't have any page number on it.
11170  Furthermore,
11171  it may interfere with any 
11172 \family sans
11173 Overlay
11174 \family default
11175  you've made to accompany the oversized 
11176 \family sans
11177 Slide
11178 \family default
11179 .
11180 \end_layout
11181
11182 \begin_layout Standard
11183 The 
11184 \family sans
11185 Overlay
11186 \family default
11187  and 
11188 \family sans
11189 Note
11190 \family default
11191  environments work the same way as the 
11192 \family sans
11193 Slide
11194 \family default
11195  environment.
11196  They both create an 
11197 \begin_inset Quotes eld
11198 \end_inset
11199
11200 ASCII line
11201 \begin_inset Quotes erd
11202 \end_inset
11203
11204  followed by a label [
11205 \begin_inset Quotes eld
11206 \end_inset
11207
11208 NewOverlay:
11209 \begin_inset Quotes erd
11210 \end_inset
11211
11212  and 
11213 \begin_inset Quotes eld
11214 \end_inset
11215
11216 NewNote:
11217 \begin_inset Quotes erd
11218 \end_inset
11219
11220 ,
11221  respectively].
11222  The color is a stunning magenta instead of blue,
11223  and the 
11224 \begin_inset Quotes eld
11225 \end_inset
11226
11227 ASCII line
11228 \begin_inset Quotes erd
11229 \end_inset
11230
11231  will look different,
11232  in style and in length.
11233  The label fonts of all three also differ from one another.
11234 \end_layout
11235
11236 \begin_layout Standard
11237 As with a 
11238 \family sans
11239 Slide
11240 \family default
11241 ,
11242  if the contents of a 
11243 \family sans
11244 Note
11245 \family default
11246  or 
11247 \family sans
11248 Overlay
11249 \family default
11250  exceed the physical size of a slide or sheet of paper,
11251  the extra will overflow onto a new sheet.
11252  Again,
11253  you should avoid this.
11254  It defeats the whole purpose of 
11255 \family sans
11256 Note
11257 \family default
11258 s and 
11259 \family sans
11260 Overlay
11261 \family default
11262 s.
11263 \end_layout
11264
11265 \begin_layout Paragraph
11266 Using 
11267 \family sans
11268 Overlay
11269 \family default
11270  with 
11271 \family sans
11272 Slide
11273 \end_layout
11274
11275 \begin_layout Standard
11276 The idea behind an 
11277 \family sans
11278 Overlay
11279 \family default
11280  is a slide that sits atop another slide.
11281  Perhaps you wish to discuss a figure on the main 
11282 \family sans
11283 Slide
11284 \family default
11285  before displaying the text associated with it.
11286  One way to accomplish this is tape a flap of dark paper over the part of the 
11287 \family sans
11288 Slide
11289 \family default
11290  you want to display later.
11291  This method fails,
11292  however,
11293  if you wish to overlap one graph with another,
11294  for example.
11295  You would then have to fumble while speaking to align the two separate,
11296  overlapping 
11297 \family sans
11298 Slide
11299 \family default
11300 s to align the two graphs.
11301  The use of an 
11302 \family sans
11303 Overlay
11304 \family default
11305  environment in both cases makes life much easier.
11306 \end_layout
11307
11308 \begin_layout Standard
11309 Each 
11310 \family sans
11311 Overlay
11312 \family default
11313  receives the page number of its 
11314 \begin_inset Quotes eld
11315 \end_inset
11316
11317 parent
11318 \begin_inset Quotes erd
11319 \end_inset
11320
11321  
11322 \family sans
11323 Slide
11324 \family default
11325 ,
11326  appended by 
11327 \begin_inset Quotes eld
11328 \end_inset
11329
11330
11331 \family typewriter
11332 -a
11333 \family default
11334
11335 \begin_inset Quotes erd
11336 \end_inset
11337
11338 .
11339 \begin_inset Foot
11340 status collapsed
11341
11342 \begin_layout Plain Layout
11343 Presumably,
11344  mutliple 
11345 \family sans
11346 Overlay
11347 \family default
11348 s would have 
11349 \begin_inset Quotes eld
11350 \end_inset
11351
11352
11353 \family typewriter
11354 -a
11355 \family default
11356
11357 \begin_inset Quotes erd
11358 \end_inset
11359
11360 ,
11361  
11362 \begin_inset Quotes eld
11363 \end_inset
11364
11365
11366 \family typewriter
11367 -b
11368 \family default
11369
11370 \begin_inset Quotes erd
11371 \end_inset
11372
11373 ,
11374  
11375 \begin_inset Quotes eld
11376 \end_inset
11377
11378
11379 \family typewriter
11380 -c
11381 \family default
11382
11383 \begin_inset Quotes erd
11384 \end_inset
11385
11386 ,
11387  etc.
11388 \begin_inset space ~
11389 \end_inset
11390
11391 appended to the page number of the parent 
11392 \family sans
11393 Slide
11394 \family default
11395 .
11396  
11397 \end_layout
11398
11399 \end_inset
11400
11401  Clearly,
11402  you want the contents of both the 
11403 \family sans
11404 Slide
11405 \family default
11406  and the 
11407 \family sans
11408 Overlay
11409 \family default
11410  to each fit on a single physical slide!
11411  You should probably consider an 
11412 \family sans
11413 Overlay
11414 \family default
11415  as 
11416 \begin_inset Quotes eld
11417 \end_inset
11418
11419 part of
11420 \begin_inset Quotes erd
11421 \end_inset
11422
11423  a 
11424 \family sans
11425 Slide
11426 \family default
11427 .
11428  Indeed,
11429  the \SpecialChar LyX
11430  
11431 \family sans
11432 slides
11433 \family default
11434  class provides a visual cue for this:
11435  the label at the start of an 
11436 \family sans
11437 Overlay
11438 \family default
11439  is shorter than that at the start of a 
11440 \family sans
11441 Slide
11442 \family default
11443 .
11444  Lastly,
11445  when you generate printable output,
11446  you'll find alignment markers in all four corners of both the 
11447 \family sans
11448 Overlay
11449 \family default
11450  page and its parent 
11451 \family sans
11452 Slide
11453 \family default
11454 .
11455  These will assist you in lining up the two physical slides.
11456 \end_layout
11457
11458 \begin_layout Standard
11459 The major problem in overlaying two slides is aligning the contents of the two transparencies.
11460  How much space should you leave for that graph on the second slide?
11461  Worse still,
11462  what if you want a graph and a sentence on second slide,
11463  but there is text on the main transparency that goes in between them?
11464  You could try and insert vertical space of the right size.
11465  The better way is to use 
11466 \family sans
11467 InvisibleText
11468 \family default
11469  and 
11470 \family sans
11471 VisibleText
11472 \family default
11473 .
11474 \end_layout
11475
11476 \begin_layout Standard
11477 As their names imply,
11478  
11479 \family sans
11480 InvisibleText
11481 \family default
11482  and 
11483 \family sans
11484 VisibleText
11485 \family default
11486  are two command-like paragraph environments that make all subsequent text invisible and visible,
11487  respectively.
11488  Note from section
11489 \begin_inset space ~
11490 \end_inset
11491
11492
11493 \begin_inset CommandInset ref
11494 LatexCommand ref
11495 reference "sec:slideQuirk"
11496 nolink "false"
11497
11498 \end_inset
11499
11500  that you don't place anything 
11501 \emph on
11502 into
11503 \emph default
11504  these two environments,
11505  however.
11506  When you create an 
11507 \family sans
11508 InvisibleText
11509 \family default
11510 ,
11511  it inserts a centered,
11512  sky-blue label into the page reading 
11513 \begin_inset Quotes eld
11514 \end_inset
11515
11516 <Invisible Text Follows>
11517 \begin_inset Quotes erd
11518 \end_inset
11519
11520 .
11521  For paragraphs following this label,
11522  the parts of the 
11523 \family sans
11524 Slide
11525 \family default
11526  [or 
11527 \family sans
11528 Overlay
11529 \family default
11530 ;
11531  it doesn't matter which] where they would be contain instead blank space.
11532  
11533 \end_layout
11534
11535 \begin_layout Standard
11536 For 
11537 \family sans
11538 VisibleText
11539 \family default
11540 ,
11541  the corresponding centered label is 
11542 \begin_inset Quotes eld
11543 \end_inset
11544
11545 <Visible Text Follows>
11546 \begin_inset Quotes erd
11547 \end_inset
11548
11549  in blazing green.
11550  Paragraphs following this label behave normally.
11551  Note that the beginning of a new 
11552 \family sans
11553 Slide
11554 \family default
11555 ,
11556  
11557 \family sans
11558 Overlay
11559 \family default
11560 ,
11561  or 
11562 \family sans
11563 Note
11564 \family default
11565  automatically shuts off an 
11566 \family sans
11567 InvisibleText
11568 \family default
11569 .
11570  It's therefore not necessary to use 
11571 \family sans
11572 VisibleText
11573 \family default
11574  at the end of a 
11575 \family sans
11576 Slide
11577 \family default
11578 .
11579 \end_layout
11580
11581 \begin_layout Standard
11582 By now,
11583  it should be obvious how to create overlay transparencies using the proper combination of 
11584 \family sans
11585 InvisibleText
11586 \family default
11587  and 
11588 \family sans
11589 VisibleText
11590 \family default
11591  on a 
11592 \family sans
11593 Slide
11594 \family default
11595  and 
11596 \family sans
11597 Overlay
11598 \family default
11599 :
11600 \end_layout
11601
11602 \begin_layout Enumerate
11603 Create a 
11604 \family sans
11605 Slide
11606 \family default
11607 ,
11608  including everything that will appear on it,
11609  whether on the main slide or on the 
11610 \family sans
11611 Overlay
11612 \family default
11613 .
11614 \end_layout
11615
11616 \begin_layout Enumerate
11617 Before each figure or paragraph that will appear only on the 
11618 \family sans
11619 Overlay
11620 \family default
11621 ,
11622  insert an 
11623 \family sans
11624 InvisibleText
11625 \family default
11626  environment.
11627  If necessary,
11628  insert a 
11629 \family sans
11630 VisibleText
11631 \family default
11632  environment after the 
11633 \family sans
11634 Overlay
11635 \family default
11636 -only text.
11637 \end_layout
11638
11639 \begin_layout Enumerate
11640 Start an 
11641 \family sans
11642 Overlay
11643 \family default
11644  immediately following the 
11645 \family sans
11646 Slide
11647 \family default
11648 .
11649 \end_layout
11650
11651 \begin_layout Enumerate
11652 Copy the contents of this 
11653 \family sans
11654 Slide
11655 \family default
11656  into the 
11657 \family sans
11658 Overlay
11659 \family default
11660 .
11661 \end_layout
11662
11663 \begin_layout Enumerate
11664 Within the 
11665 \family sans
11666 Overlay
11667 \family default
11668 ,
11669  change all of the 
11670 \family sans
11671 InvisibleText
11672 \family default
11673  lines to 
11674 \family sans
11675 VisibleText
11676 \family default
11677  and vice-versa.
11678 \end_layout
11679
11680 \begin_layout Standard
11681 That's it.
11682  You've just made an 
11683 \family sans
11684 Overlay
11685 \family default
11686 .
11687 \end_layout
11688
11689 \begin_layout Standard
11690 There's one problem with the way I've designed the \SpecialChar LyX
11691  
11692 \family sans
11693 slides
11694 \family default
11695  class:
11696  you can't make text in the middle of a paragraph invisible,
11697  nor make text in the middle of an invisible paragraph visible again.
11698  To accomplish this feat,
11699  you'll need to use some inlined \SpecialChar LaTeX
11700  codes.
11701 \begin_inset Foot
11702 status open
11703
11704 \begin_layout Plain Layout
11705 The commands of interest are:
11706  
11707 \end_layout
11708
11709 \begin_layout Itemize
11710
11711 \family typewriter
11712 {
11713 \backslash
11714 invisible \SpecialChar ldots
11715  }
11716 \end_layout
11717
11718 \begin_layout Itemize
11719
11720 \family typewriter
11721 {
11722 \backslash
11723 visible \SpecialChar ldots
11724  }
11725 \end_layout
11726
11727 \begin_layout Plain Layout
11728 \SpecialChar ldots
11729 and need to be marked as \SpecialChar TeX
11730 .
11731  The text whose 
11732 \begin_inset Quotes eld
11733 \end_inset
11734
11735 visibility
11736 \begin_inset Quotes erd
11737 \end_inset
11738
11739  you wish to change goes in between the brackets [and after the 
11740 \family typewriter
11741
11742 \backslash
11743 invisible
11744 \family default
11745  or 
11746 \family typewriter
11747
11748 \backslash
11749 visible
11750 \family default
11751  command].
11752  If you don't know how to mark text as \SpecialChar TeX
11753 ,
11754  see the appropriate section of the 
11755 \emph on
11756 User's Guide
11757 \emph default
11758 .
11759 \end_layout
11760
11761 \end_inset
11762
11763
11764 \end_layout
11765
11766 \begin_layout Paragraph
11767 Using 
11768 \family sans
11769 Note
11770 \family default
11771  with 
11772 \family sans
11773 Slide
11774 \family default
11775
11776 \begin_inset CommandInset label
11777 LatexCommand label
11778 name "sec:slideNote"
11779
11780 \end_inset
11781
11782
11783 \end_layout
11784
11785 \begin_layout Standard
11786 Like an 
11787 \family sans
11788 Overlay
11789 \family default
11790 ,
11791  a 
11792 \family sans
11793 Note
11794 \family default
11795  is associated with a 
11796 \begin_inset Quotes eld
11797 \end_inset
11798
11799 parent
11800 \begin_inset Quotes erd
11801 \end_inset
11802
11803  
11804 \family sans
11805 Slide
11806 \family default
11807 .
11808  Here,
11809  too,
11810  the \SpecialChar LyX
11811  
11812 \family sans
11813 slides
11814 \family default
11815  class provides visual cues.
11816  The label for a 
11817 \family sans
11818 Note
11819 \family default
11820  is shorter than that of a 
11821 \family sans
11822 Slide
11823 \family default
11824  [yet longer than that of an 
11825 \family sans
11826 Overlay
11827 \family default
11828 ] and,
11829  like the label of an 
11830 \family sans
11831 Overlay
11832 \family default
11833  is shockingly magenta.
11834  Additionally,
11835  the printed 
11836 \family sans
11837 Note
11838 \family default
11839  has the page number of its 
11840 \begin_inset Quotes eld
11841 \end_inset
11842
11843 parent
11844 \begin_inset Quotes erd
11845 \end_inset
11846
11847  
11848 \family sans
11849 Slide
11850 \family default
11851 ,
11852  appended by 
11853 \begin_inset Quotes eld
11854 \end_inset
11855
11856
11857 \family typewriter
11858 -
11859 \family default
11860 1
11861 \begin_inset Quotes erd
11862 \end_inset
11863
11864 ,
11865  
11866 \begin_inset Quotes eld
11867 \end_inset
11868
11869
11870 \family typewriter
11871 -
11872 \family default
11873 2
11874 \begin_inset Quotes erd
11875 \end_inset
11876
11877 ,
11878  
11879 \begin_inset Quotes eld
11880 \end_inset
11881
11882
11883 \family typewriter
11884 -
11885 \family default
11886 3
11887 \begin_inset Quotes erd
11888 \end_inset
11889
11890 ,
11891  etc.
11892  You can have multiple 
11893 \family sans
11894 Note
11895 \family default
11896 s associated with a single 
11897 \family sans
11898 Slide
11899 \family default
11900 ,
11901  and,
11902  as with 
11903 \family sans
11904 Slide
11905 \family default
11906  and 
11907 \family sans
11908 Overlay
11909 \family default
11910 ,
11911  you'll probably want to break up long 
11912 \family sans
11913 Note
11914 \family default
11915 s so that they fit on a single sheet of paper.
11916 \end_layout
11917
11918 \begin_layout Standard
11919 The purpose of a 
11920 \family sans
11921 Note
11922 \family default
11923  is obvious:
11924  it contains anything additional you might want to say about a 
11925 \family sans
11926 Slide
11927 \family default
11928 .
11929  It could also be used as a sheet of reminders for a particular 
11930 \family sans
11931 Slide
11932 \family default
11933 .
11934  In the case of the latter,
11935  you might want to make use of time markers.
11936  Currently,
11937  the \SpecialChar LyX
11938  
11939 \family sans
11940 slides
11941 \family default
11942  class has no 
11943 \begin_inset Quotes eld
11944 \end_inset
11945
11946 native
11947 \begin_inset Quotes erd
11948 \end_inset
11949
11950  support for time markers,
11951  a 
11952 \noun on
11953 Sli\SpecialChar TeX
11954
11955 \noun default
11956  feature.
11957  So,
11958  you'll have to resort to using the \SpecialChar LaTeX
11959  codes.
11960 \end_layout
11961
11962 \begin_layout Standard
11963 To use time markers,
11964  you'll need to specify the extra class option 
11965 \begin_inset Quotes eld
11966 \end_inset
11967
11968
11969 \family typewriter
11970 clock
11971 \family default
11972
11973 \begin_inset Quotes erd
11974 \end_inset
11975
11976  [see section
11977 \begin_inset space ~
11978 \end_inset
11979
11980
11981 \begin_inset CommandInset ref
11982 LatexCommand ref
11983 reference "sec:slidesetup"
11984 nolink "false"
11985
11986 \end_inset
11987
11988 ].
11989  This option turns on timing marks,
11990  which will appear in the lower-left-hand corner of every 
11991 \family sans
11992 Note
11993 \family default
11994  you generate.
11995  To set what appears in the time marker,
11996  you use the \SpecialChar LaTeX
11997  commands 
11998 \begin_inset Quotes eld
11999 \end_inset
12000
12001
12002 \family typewriter
12003
12004 \backslash
12005 settime{}
12006 \family default
12007
12008 \begin_inset Quotes erd
12009 \end_inset
12010
12011  and 
12012 \begin_inset Quotes eld
12013 \end_inset
12014
12015
12016 \family typewriter
12017
12018 \backslash
12019 addtime{}
12020 \family default
12021
12022 \begin_inset Quotes erd
12023 \end_inset
12024
12025 .
12026  The arguments of both commands are time measured in seconds.
12027  
12028 \begin_inset Quotes eld
12029 \end_inset
12030
12031
12032 \family typewriter
12033
12034 \backslash
12035 settime{}
12036 \family default
12037
12038 \begin_inset Quotes erd
12039 \end_inset
12040
12041  sets the time marker to a given time.
12042  
12043 \begin_inset Quotes eld
12044 \end_inset
12045
12046
12047 \family typewriter
12048
12049 \backslash
12050 addtime{}
12051 \family default
12052
12053 \begin_inset Quotes erd
12054 \end_inset
12055
12056  increments the time marker by the specified amount.
12057  Using time markers and 
12058 \family sans
12059 Note
12060 \family default
12061 s in this fashion,
12062  you can remind yourself how much time to spend on a particular 
12063 \family sans
12064 Slide
12065 \family default
12066 .
12067 \end_layout
12068
12069 \begin_layout Standard
12070 There's one last feature to describe.
12071  Clearly,
12072  you'd like to print out all of your 
12073 \family sans
12074 Slide
12075 \family default
12076 s and 
12077 \family sans
12078 Overlay
12079 \family default
12080 s on transparencies while printing all of your 
12081 \family sans
12082 Note
12083 \family default
12084 s on plain paper.
12085  However,
12086  a 
12087 \family sans
12088 Note
12089 \family default
12090  
12091 \emph on
12092 must
12093 \emph default
12094  follow the 
12095 \family sans
12096 Slide
12097 \family default
12098  with which it is associated.
12099  What's a person to do?
12100 \end_layout
12101
12102 \begin_layout Standard
12103 Luckily,
12104  there are two \SpecialChar LaTeX
12105  commands that allow you to select what to print out.
12106  Both must be placed into the preamble of your document.
12107  The command 
12108 \begin_inset Quotes eld
12109 \end_inset
12110
12111
12112 \family typewriter
12113
12114 \backslash
12115 onlyslides{
12116 \backslash
12117 slides}
12118 \family default
12119
12120 \begin_inset Quotes erd
12121 \end_inset
12122
12123  will cause the output to contain only the 
12124 \family sans
12125 Slide
12126 \family default
12127 s and 
12128 \family sans
12129 Overlay
12130 \family default
12131 s.
12132  Correspondingly,
12133  the command 
12134 \begin_inset Quotes eld
12135 \end_inset
12136
12137
12138 \family typewriter
12139
12140 \backslash
12141 onlynotes{
12142 \backslash
12143 notes}
12144 \family default
12145
12146 \begin_inset Quotes erd
12147 \end_inset
12148
12149  prevents the output of anything but 
12150 \family sans
12151 Note
12152 \family default
12153 s.
12154  I'd advise placing both commands in the preamble and initially comment both out.
12155  You can then preview your entire presentation as you write.
12156  When you're done writing,
12157  you can then uncomment one of the two to select what you want to print.
12158  I like to uncomment 
12159 \begin_inset Quotes eld
12160 \end_inset
12161
12162
12163 \family typewriter
12164
12165 \backslash
12166 onlyslides{
12167 \backslash
12168 slides}
12169 \family default
12170
12171 \begin_inset Quotes erd
12172 \end_inset
12173
12174  ,
12175  print to a file with 
12176 \begin_inset Quotes eld
12177 \end_inset
12178
12179
12180 \family typewriter
12181 -slides
12182 \family default
12183
12184 \begin_inset Quotes erd
12185 \end_inset
12186
12187  in its name,
12188  comment it back out,
12189  then uncomment 
12190 \begin_inset Quotes eld
12191 \end_inset
12192
12193
12194 \family typewriter
12195
12196 \backslash
12197 onlynotes{
12198 \backslash
12199 notes}
12200 \family default
12201
12202 \begin_inset Quotes erd
12203 \end_inset
12204
12205  and print to a 
12206 \begin_inset Quotes eld
12207 \end_inset
12208
12209
12210 \family typewriter
12211 *-notes.ps
12212 \family default
12213
12214 \begin_inset Quotes erd
12215 \end_inset
12216
12217  file.
12218  I can then send either file to a printer,
12219  loading transparencies or plain paper as appropriate.
12220 \end_layout
12221
12222 \begin_layout Standard
12223 You can also provide other arguments to the 
12224 \begin_inset Quotes eld
12225 \end_inset
12226
12227
12228 \family typewriter
12229
12230 \backslash
12231 onlyslides{}
12232 \family default
12233
12234 \begin_inset Quotes erd
12235 \end_inset
12236
12237  and 
12238 \begin_inset Quotes eld
12239 \end_inset
12240
12241
12242 \family typewriter
12243
12244 \backslash
12245 onlynotes{}
12246 \family default
12247
12248 \begin_inset Quotes erd
12249 \end_inset
12250
12251  commands.
12252  See a good \SpecialChar LaTeX
12253  book for details.
12254 \end_layout
12255
12256 \begin_layout Subsubsection
12257 The 
12258 \family sans
12259 slides
12260 \family default
12261  Class Template File
12262 \end_layout
12263
12264 \begin_layout Standard
12265 I have also provided a template file with the 
12266 \family sans
12267 slides
12268 \family default
12269  class.
12270  To use it,
12271  begin your new presentation with 
12272 \family sans
12273 File\SpecialChar menuseparator
12274 New
12275 \begin_inset space ~
12276 \end_inset
12277
12278 from
12279 \begin_inset space ~
12280 \end_inset
12281
12282 Template\SpecialChar menuseparator
12283 Presentations\SpecialChar menuseparator
12284 Slides
12285 \family default
12286 .
12287  Your new \SpecialChar LyX
12288  presentation file will contain an example 
12289 \family sans
12290 Slide
12291 \family default
12292  – 
12293 \family sans
12294 Overlay
12295 \family default
12296  – 
12297 \family sans
12298 Note
12299 \family default
12300  triplet.
12301  The 
12302 \family sans
12303 Slide
12304 \family default
12305  and 
12306 \family sans
12307 Overlay
12308 \family default
12309  additionally contain an example of the use of 
12310 \family sans
12311 InvisibleText
12312 \family default
12313  and 
12314 \family sans
12315 VisibleText
12316 \family default
12317 .
12318  Lastly,
12319  the preamble will contain:
12320 \end_layout
12321
12322 \begin_layout LyX-Code
12323 % Uncomment to print out only slides and overlays
12324 \end_layout
12325
12326 \begin_layout LyX-Code
12327 %
12328 \end_layout
12329
12330 \begin_layout LyX-Code
12331 %
12332 \backslash
12333 onlyslides{
12334 \backslash
12335 slides}
12336 \begin_inset Newline newline
12337 \end_inset
12338
12339  
12340 \end_layout
12341
12342 \begin_layout LyX-Code
12343 % Uncomment to print out only notes
12344 \end_layout
12345
12346 \begin_layout LyX-Code
12347 %
12348 \end_layout
12349
12350 \begin_layout LyX-Code
12351 %
12352 \backslash
12353 onlynotes{
12354 \backslash
12355 notes}
12356 \end_layout
12357
12358 \begin_layout Standard
12359 One final thing:
12360  I created this class to support the \SpecialChar LaTeX2e
12361  
12362 \begin_inset Quotes eld
12363 \end_inset
12364
12365
12366 \noun on
12367 Sli\SpecialChar TeX
12368
12369 \noun default
12370  emulation
12371 \begin_inset Quotes erd
12372 \end_inset
12373
12374  class,
12375  one of the built-in \SpecialChar LaTeX2e
12376  classes.
12377  Neither I nor the rest of the \SpecialChar LyX
12378  Team endorse or oppose the use of this built-in slide class.
12379  It's here if you want it or need it.
12380  There exist other \SpecialChar LaTeX2e
12381  classes for creating presentations,
12382  such 
12383 \family sans
12384 Foils
12385 \family default
12386  (see section
12387 \begin_inset space ~
12388 \end_inset
12389
12390
12391 \begin_inset CommandInset ref
12392 LatexCommand ref
12393 reference "sec:foiltex"
12394 nolink "false"
12395
12396 \end_inset
12397
12398 ) or 
12399 \family sans
12400 Seminar
12401 \family default
12402  (see section
12403 \begin_inset space ~
12404 \end_inset
12405
12406
12407 \begin_inset CommandInset ref
12408 LatexCommand ref
12409 reference "subsec:Seminar"
12410 plural "false"
12411 caps "false"
12412 noprefix "false"
12413 nolink "false"
12414
12415 \end_inset
12416
12417 ).
12418  Try them out to see what sort of alternative they provide.
12419 \end_layout
12420
12421 \begin_layout Section
12422 Reports
12423 \end_layout
12424
12425 \begin_layout Subsection
12426 report
12427 \end_layout
12428
12429 \begin_layout Standard
12430 Report classes are sort of a hybrid between book and article classes:
12431  like book classes,
12432  they provide parts,
12433  chapters and sections but does not provide frontmatter,
12434  mainmatter,
12435  and backmatter;
12436  like article classes,
12437  they provide abstract paragraph styles and are one-sided by default.
12438  Also,
12439  they do not start a new chapter on the right hand page (even in two-side mode).
12440 \end_layout
12441
12442 \begin_layout Standard
12443 All externally maintained 
12444 \family sans
12445 report
12446 \family default
12447  document classes that are officially supported by \SpecialChar LyX
12448  are described in the Collections (section
12449 \begin_inset space ~
12450 \end_inset
12451
12452
12453 \begin_inset CommandInset ref
12454 LatexCommand ref
12455 reference "sec:Collections"
12456 nolink "false"
12457
12458 \end_inset
12459
12460 ):
12461 \end_layout
12462
12463 \begin_layout Itemize
12464 For 
12465 \family sans
12466 Japanese Report (Standard Class,
12467  vertical Writing)
12468 \family default
12469  and 
12470 \family sans
12471 Japanese Report (Standard Class)
12472 \family default
12473 ,
12474  see section
12475 \begin_inset space ~
12476 \end_inset
12477
12478
12479 \begin_inset CommandInset ref
12480 LatexCommand ref
12481 reference "subsec:Japanese"
12482 nolink "false"
12483
12484 \end_inset
12485
12486 .
12487 \end_layout
12488
12489 \begin_layout Itemize
12490 For 
12491 \family sans
12492 KOMA-Script Report
12493 \family default
12494 ,
12495  see section
12496 \begin_inset space ~
12497 \end_inset
12498
12499
12500 \begin_inset CommandInset ref
12501 LatexCommand ref
12502 reference "subsec:KOMA-Script"
12503 nolink "false"
12504
12505 \end_inset
12506
12507 .
12508 \end_layout
12509
12510 \begin_layout Itemize
12511 For 
12512 \family sans
12513 Report (Standard Class with Extra Font Sizes)
12514 \family default
12515 ,
12516  see section
12517 \begin_inset space ~
12518 \end_inset
12519
12520
12521 \begin_inset CommandInset ref
12522 LatexCommand ref
12523 reference "subsec:Extra-font-sizes"
12524 nolink "false"
12525
12526 \end_inset
12527
12528 .
12529 \end_layout
12530
12531 \begin_layout Itemize
12532 For 
12533 \family sans
12534 Polish Report (MW Bundle)
12535 \family default
12536 ,
12537  see section
12538 \begin_inset space ~
12539 \end_inset
12540
12541
12542 \begin_inset CommandInset ref
12543 LatexCommand ref
12544 reference "subsec:Polish-M.W.collection"
12545 plural "false"
12546 caps "false"
12547 noprefix "false"
12548 nolink "false"
12549
12550 \end_inset
12551
12552 .
12553 \end_layout
12554
12555 \begin_layout Section
12556 Scripts
12557 \end_layout
12558
12559 \begin_layout Standard
12560 In the 
12561 \family sans
12562 Scripts
12563 \family default
12564  category,
12565  we assemble document classes that help to write drama or movie scripts.
12566  The category is also open for other scripts,
12567  such as lecture scripts,
12568  for which no classes are officially supported yet by \SpecialChar LyX
12569  though.
12570 \end_layout
12571
12572 \begin_layout Subsection
12573 Broadway
12574 \end_layout
12575
12576 \begin_layout Standard
12577 by 
12578 \shape smallcaps
12579 Garst Reese
12580 \end_layout
12581
12582 \begin_layout Subsubsection
12583 Introduction
12584 \end_layout
12585
12586 \begin_layout Standard
12587
12588 \family sans
12589 Broadway
12590 \family default
12591  is for writing plays.
12592  The format is more decorative than 
12593 \family sans
12594 Hollywood
12595 \family default
12596  (see sec.
12597 \begin_inset space ~
12598 \end_inset
12599
12600
12601 \begin_inset CommandInset ref
12602 LatexCommand ref
12603 reference "subsec:Hollywood"
12604
12605 \end_inset
12606
12607 ),
12608  and much less standardized.
12609  This format should be suitable for workshops.
12610 \end_layout
12611
12612 \begin_layout Subsubsection
12613 Special problems
12614 \end_layout
12615
12616 \begin_layout Standard
12617 The same as in 
12618 \family sans
12619 Hollywood
12620 \family default
12621  (see section
12622 \begin_inset space ~
12623 \end_inset
12624
12625
12626 \begin_inset CommandInset ref
12627 LatexCommand ref
12628 reference "subsec:Special-problems-Hollywood"
12629
12630 \end_inset
12631
12632 ).
12633 \end_layout
12634
12635 \begin_layout Subsubsection
12636 Special features
12637 \end_layout
12638
12639 \begin_layout Standard
12640 Insert the 
12641 \family sans
12642 Speaker
12643 \family default
12644  names as labels then cross-reference the label to insert the name.
12645  The cross-reference dialog will show the current cast of characters.
12646 \end_layout
12647
12648 \begin_layout Subsubsection
12649 Paper size and Margins
12650 \end_layout
12651
12652 \begin_layout Standard
12653 USLetter,
12654  left 1.6in,
12655  right 0.75in,
12656  top 0.5in,
12657  bottom 0.75in
12658 \end_layout
12659
12660 \begin_layout Subsubsection
12661 Environments
12662 \end_layout
12663
12664 \begin_layout Standard
12665 The following environments are available.
12666  You can use 
12667 \family typewriter
12668 broadway.bind
12669 \family default
12670  to get the bind keys shown at the right.
12671 \end_layout
12672
12673 \begin_layout Itemize
12674
12675 \family sans
12676 Standard
12677 \begin_inset Newline newline
12678 \end_inset
12679
12680
12681 \family default
12682 You should not have to use this,
12683  but it is here for anything that does not fit otherwise.
12684 \end_layout
12685
12686 \begin_layout Itemize
12687
12688 \family sans
12689 Narrative
12690 \begin_inset space \hfill{}
12691 \end_inset
12692
12693 M-z n
12694 \begin_inset Newline newline
12695 \end_inset
12696
12697
12698 \family default
12699 Used to describe stage setting and the action.
12700  First use of speaker names in all CAPs.
12701 \end_layout
12702
12703 \begin_layout Itemize
12704
12705 \family sans
12706 ACT
12707 \begin_inset space \hfill{}
12708 \end_inset
12709
12710 M-z a
12711 \begin_inset Newline newline
12712 \end_inset
12713
12714
12715 \family default
12716 Automatically numbered.
12717  On screen it will be arabic,
12718  but will print as Roman.
12719 \end_layout
12720
12721 \begin_layout Itemize
12722
12723 \family sans
12724 ACT*
12725 \begin_inset space \hfill{}
12726 \end_inset
12727
12728 M-z S at
12729 \begin_inset Newline newline
12730 \end_inset
12731
12732
12733 \family default
12734 Subtitle for 
12735 \family sans
12736 ACT.
12737
12738 \family default
12739  It is just centered text.
12740 \end_layout
12741
12742 \begin_layout Itemize
12743
12744 \family sans
12745 SCENE
12746 \begin_inset space \hfill{}
12747 \end_inset
12748
12749 M-z S-S
12750 \begin_inset Newline newline
12751 \end_inset
12752
12753
12754 \family default
12755 Not automatically numbered.
12756  You supply the number.
12757  This is because I couldn't figure out how.
12758 \end_layout
12759
12760 \begin_layout Itemize
12761
12762 \family sans
12763 AT_RISE:
12764 \begin_inset space \hfill{}
12765 \end_inset
12766
12767 M-z S-R
12768 \begin_inset Newline newline
12769 \end_inset
12770
12771
12772 \family default
12773 A special case of Narrative to describe the setting and action as the curtain rises.
12774 \end_layout
12775
12776 \begin_layout Itemize
12777
12778 \family sans
12779 Speaker
12780 \begin_inset space \hfill{}
12781 \end_inset
12782
12783 M-z s
12784 \begin_inset Newline newline
12785 \end_inset
12786
12787
12788 \family default
12789 The speaker's (actor's) title,
12790  centered in all CAPS.
12791 \end_layout
12792
12793 \begin_layout Itemize
12794
12795 \family sans
12796 Parenthetical
12797 \begin_inset space \hfill{}
12798 \end_inset
12799
12800 M-z p
12801 \begin_inset Newline newline
12802 \end_inset
12803
12804
12805 \family default
12806 Instructions to the speaker.
12807  The parentheses are automatically inserted.
12808  The ( will appear on screen,
12809  but both will be in the printed play.
12810  This environment is only used within 
12811 \family sans
12812 Dialogue
12813 \family default
12814 .
12815 \end_layout
12816
12817 \begin_layout Itemize
12818
12819 \family sans
12820 Dialogue
12821 \begin_inset space \hfill{}
12822 \end_inset
12823
12824 M-z d
12825 \begin_inset Newline newline
12826 \end_inset
12827
12828
12829 \family default
12830 What the Speaker says.
12831 \end_layout
12832
12833 \begin_layout Itemize
12834
12835 \family sans
12836 CURTAIN
12837 \begin_inset space \hfill{}
12838 \end_inset
12839
12840 M-z S-C
12841 \begin_inset Newline newline
12842 \end_inset
12843
12844
12845 \family default
12846 The curtain comes down.
12847 \end_layout
12848
12849 \begin_layout Itemize
12850
12851 \family sans
12852 Title
12853 \begin_inset space \hfill{}
12854 \end_inset
12855
12856 M-z S-T
12857 \end_layout
12858
12859 \begin_layout Itemize
12860
12861 \family sans
12862 Author
12863 \begin_inset space \hfill{}
12864 \end_inset
12865
12866 M-z S-A
12867 \end_layout
12868
12869 \begin_layout Itemize
12870
12871 \family sans
12872 Right_Address
12873 \begin_inset space \hfill{}
12874 \end_inset
12875
12876 M-z r
12877 \end_layout
12878
12879 \begin_layout Standard
12880 Hello there.
12881 \end_layout
12882
12883 \begin_layout Subsection
12884 \begin_inset CommandInset label
12885 LatexCommand label
12886 name "subsec:Hollywood"
12887
12888 \end_inset
12889
12890 Hollywood (Hollywood spec scripts)
12891 \end_layout
12892
12893 \begin_layout Standard
12894 by 
12895 \shape smallcaps
12896 Garst Reese
12897 \end_layout
12898
12899 \begin_layout Subsubsection
12900 Introduction
12901 \end_layout
12902
12903 \begin_layout Standard
12904 Getting the format of a Hollywood script right is a 
12905 \begin_inset Quotes eld
12906 \end_inset
12907
12908 rite of passage.
12909 \begin_inset Quotes erd
12910 \end_inset
12911
12912  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
12913  Each page of a script should be one minute of film.
12914  Nothing goes in a script that you cannot see or hear on screen.
12915  The courier 12 pt font should be used throughout.
12916  No italics.
12917 \end_layout
12918
12919 \begin_layout Subsubsection
12920 \begin_inset CommandInset label
12921 LatexCommand label
12922 name "subsec:Special-problems-Hollywood"
12923
12924 \end_inset
12925
12926 Special problems
12927 \end_layout
12928
12929 \begin_layout Standard
12930 Speakers' lines should 
12931 \emph on
12932 never
12933 \emph default
12934  break in mid-sentence.
12935  If a speaker's lines continue over a page break,
12936  repeat the 
12937 \family sans
12938 Speaker
12939 \family default
12940  title followed by (Cont'd).
12941 \end_layout
12942
12943 \begin_layout Subsubsection
12944 Special features
12945 \end_layout
12946
12947 \begin_layout Standard
12948 Insert the 
12949 \family sans
12950 Speaker
12951 \family default
12952  names as labels then cross-reference the label to insert the name.
12953  The cross-reference dialog will show the current cast of characters.
12954  You can use this to insert the speaker name in narratives also.
12955 \end_layout
12956
12957 \begin_layout Subsubsection
12958 Paper size and Margins
12959 \end_layout
12960
12961 \begin_layout Standard
12962 USLetter,
12963  left 1.6in,
12964  right 0.75in,
12965  top 0.5in,
12966  bottom 0.75in
12967 \end_layout
12968
12969 \begin_layout Subsubsection
12970 Environments
12971 \end_layout
12972
12973 \begin_layout Standard
12974 The following environments are available.
12975  You can use 
12976 \family typewriter
12977 hollywood.bind
12978 \family default
12979  to get the bind keys shown at the right.
12980 \end_layout
12981
12982 \begin_layout Itemize
12983
12984 \family sans
12985 Standard
12986 \begin_inset Newline newline
12987 \end_inset
12988
12989
12990 \family default
12991 Used where nothing else works.
12992  Try to avoid it.
12993 \end_layout
12994
12995 \begin_layout Itemize
12996
12997 \family sans
12998 FADE_IN
12999 \family default
13000 :
13001 \begin_inset space \hfill{}
13002 \end_inset
13003
13004
13005 \family sans
13006 M-z S-I
13007 \family default
13008
13009 \begin_inset Newline newline
13010 \end_inset
13011
13012 Usually followed by something like 
13013 \begin_inset Quotes eld
13014 \end_inset
13015
13016 on Sally waking up.
13017 \begin_inset Quotes erd
13018 \end_inset
13019
13020
13021 \end_layout
13022
13023 \begin_layout Itemize
13024
13025 \family sans
13026 INT:
13027 \begin_inset space \hfill{}
13028 \end_inset
13029
13030 M-z i
13031 \begin_inset Newline newline
13032 \end_inset
13033
13034
13035 \family default
13036 Introduces a new INTERIOR camera set-up.
13037  Always followed by DAY or NIGHT,
13038  or something similar to define the lighting required.
13039  Everthing on this line in CAPS.
13040 \end_layout
13041
13042 \begin_layout Itemize
13043
13044 \family sans
13045 EXT:
13046 \begin_inset space \hfill{}
13047 \end_inset
13048
13049 M-z e
13050 \begin_inset Newline newline
13051 \end_inset
13052
13053
13054 \family default
13055 Introduces a new EXTERIOR camera set-up.
13056  Everthing on this line in CAPS.
13057 \end_layout
13058
13059 \begin_layout Itemize
13060
13061 \family sans
13062 Speaker
13063 \begin_inset space \hfill{}
13064 \end_inset
13065
13066 M-z s
13067 \begin_inset Newline newline
13068 \end_inset
13069
13070
13071 \family default
13072 The character speaking.
13073 \end_layout
13074
13075 \begin_layout Itemize
13076
13077 \family sans
13078 Parenthetical
13079 \begin_inset space \hfill{}
13080 \end_inset
13081
13082 M-z p
13083 \begin_inset Newline newline
13084 \end_inset
13085
13086
13087 \family default
13088 Instructions to the speaker.
13089  The () are automatically inserted.
13090 \end_layout
13091
13092 \begin_layout Itemize
13093
13094 \family sans
13095 Dialogue
13096 \begin_inset space \hfill{}
13097 \end_inset
13098
13099 M-z d
13100 \begin_inset Newline newline
13101 \end_inset
13102
13103
13104 \family default
13105 What the 
13106 \family sans
13107 Speaker
13108 \family default
13109  says.
13110 \end_layout
13111
13112 \begin_layout Itemize
13113
13114 \family sans
13115 Transition
13116 \begin_inset space \hfill{}
13117 \end_inset
13118
13119 M-z t
13120 \begin_inset Newline newline
13121 \end_inset
13122
13123
13124 \family default
13125 Camera movement instruction.
13126  e.
13127 \begin_inset space \thinspace{}
13128 \end_inset
13129
13130 g.
13131 \begin_inset space \space{}
13132 \end_inset
13133
13134 CUT TO:
13135 \end_layout
13136
13137 \begin_layout Itemize
13138
13139 \family sans
13140 FADE OUT:
13141 \begin_inset space \hfill{}
13142 \end_inset
13143
13144 M-z S-I
13145 \end_layout
13146
13147 \begin_layout Itemize
13148
13149 \family sans
13150 Author
13151 \begin_inset space \hfill{}
13152 \end_inset
13153
13154 M-z S-A
13155 \end_layout
13156
13157 \begin_layout Itemize
13158
13159 \family sans
13160 Title
13161 \begin_inset space \hfill{}
13162 \end_inset
13163
13164 M-z S-T
13165 \end_layout
13166
13167 \begin_layout Itemize
13168
13169 \family sans
13170 Right_Address
13171 \begin_inset space \hfill{}
13172 \end_inset
13173
13174 M-z r
13175 \end_layout
13176
13177 \begin_layout Subsubsection
13178 Script jargon
13179 \end_layout
13180
13181 \begin_layout Itemize
13182 (O.S) —
13183  off screen
13184 \end_layout
13185
13186 \begin_layout Itemize
13187 (V.0) —
13188  voice over
13189 \end_layout
13190
13191 \begin_layout Itemize
13192 b.
13193 \begin_inset space \thinspace{}
13194 \end_inset
13195
13196 g.
13197  —
13198  background
13199 \end_layout
13200
13201 \begin_layout Itemize
13202 C.U.
13203  —
13204  close-up
13205 \end_layout
13206
13207 \begin_layout Itemize
13208 PAN —
13209  camera movement
13210 \end_layout
13211
13212 \begin_layout Itemize
13213 INSERT —
13214  cut to close-up of
13215 \end_layout
13216
13217 \begin_layout Chapter
13218 Modules
13219 \end_layout
13220
13221 \begin_layout Section
13222 Academic Field Specifics
13223 \end_layout
13224
13225 \begin_layout Subsection
13226 Chemistry:
13227  Hazard and Precautionary Statements
13228 \end_layout
13229
13230 \begin_layout Standard
13231 This module provides two insets and a paragraph style to typeset numbers and phrases of chemical hazard and precautionary statements.
13232  For a description see 
13233 \family sans
13234 File\SpecialChar menuseparator
13235 Open Example\SpecialChar menuseparator
13236 Modules\SpecialChar menuseparator
13237 Hazard and Precautionary Statements
13238 \family default
13239  and 
13240 \family sans
13241 Help\SpecialChar menuseparator
13242 Specific Manuals\SpecialChar menuseparator
13243 Hazard and Precautionary Statements
13244 \family default
13245 .
13246 \end_layout
13247
13248 \begin_layout Subsection
13249
13250 \series bold
13251 Chemistry:
13252  Risk and Safety Statements
13253 \end_layout
13254
13255 \begin_layout Standard
13256 This module provides two insets,
13257  
13258 \family sans
13259 R-S number
13260 \family default
13261  and 
13262 \family sans
13263 R-S phrase
13264 \family default
13265 ,
13266  accessible via the menu 
13267 \family sans
13268 \bar under
13269 I
13270 \bar default
13271 nsert\SpecialChar menuseparator
13272 Custom
13273 \begin_inset space ~
13274 \end_inset
13275
13276 Insets
13277 \family default
13278  and an environment to typeset numbers and phrases of chemical risk and safety statements.
13279 \end_layout
13280
13281 \begin_layout Subsection
13282 Linguistics
13283 \end_layout
13284
13285 \begin_layout Standard
13286 This module provides specific environments useful for linguistics (numbered examples,
13287  glosses,
13288  semantic markup,
13289  OT tableau floats).
13290  You can obtain information about this module in 
13291 \family sans
13292 \bar under
13293 H
13294 \bar default
13295 elp\SpecialChar menuseparator
13296 S
13297 \bar under
13298 p
13299 \bar default
13300 ecific
13301 \begin_inset space ~
13302 \end_inset
13303
13304 Manuals\SpecialChar menuseparator
13305
13306 \bar under
13307 L
13308 \bar default
13309 inguistics
13310 \family default
13311  and 
13312 \family sans
13313 File\SpecialChar menuseparator
13314 Open Example\SpecialChar menuseparator
13315 Modules\SpecialChar menuseparator
13316 Linguistics
13317 \family default
13318 .
13319 \end_layout
13320
13321 \begin_layout Section
13322 Accessibility
13323 \end_layout
13324
13325 \begin_layout Subsection
13326 Braille
13327 \end_layout
13328
13329 \begin_layout Standard
13330 This module supports the Braille script.
13331  It requires the \SpecialChar LaTeX
13332  package 
13333 \family typewriter
13334 braille.sty
13335 \family default
13336 .
13337  This and its documentation can be obtained from 
13338 \begin_inset CommandInset href
13339 LatexCommand href
13340 name "CTAN"
13341 target "https://www.ctan.org/pkg/braille"
13342 literal "false"
13343
13344 \end_inset
13345
13346 .
13347  See 
13348 \family sans
13349 \bar under
13350 H
13351 \bar default
13352 elp\SpecialChar menuseparator
13353 S
13354 \bar under
13355 p
13356 \bar default
13357 ecific
13358 \begin_inset space ~
13359 \end_inset
13360
13361 Manuals\SpecialChar menuseparator
13362
13363 \bar under
13364 B
13365 \bar default
13366 raille
13367 \family default
13368  and 
13369 \family sans
13370 File\SpecialChar menuseparator
13371 Open Example\SpecialChar menuseparator
13372 Modules\SpecialChar menuseparator
13373 Braille
13374 \family default
13375 .
13376 \end_layout
13377
13378 \begin_layout Section
13379 Annotation & Revision
13380 \end_layout
13381
13382 \begin_layout Subsection
13383 FiXme Notes
13384 \end_layout
13385
13386 \begin_layout Standard
13387 This module provides “FiXme” (marginal) annotations for document revision purposes.
13388  A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
13389  The annotations are customizable via the LaTeX preamble.
13390  See the 
13391 \family typewriter
13392 fixme
13393 \family default
13394  documentation which can be obtained from 
13395 \begin_inset CommandInset href
13396 LatexCommand href
13397 name "CTAN"
13398 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13399 literal "false"
13400
13401 \end_inset
13402
13403 .
13404 \end_layout
13405
13406 \begin_layout Paragraph
13407 Note:
13408 \end_layout
13409
13410 \begin_layout Standard
13411 by default,
13412  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
13413 \family sans
13414 Document\SpecialChar menuseparator
13415 Settings\SpecialChar menuseparator
13416 Document Class\SpecialChar menuseparator
13417 Class Options\SpecialChar menuseparator
13418 Custom
13419 \family default
13420 ).
13421  To display them always,
13422  insert 
13423 \family typewriter
13424
13425 \backslash
13426 fxsetup{draft}
13427 \family default
13428  in 
13429 \family sans
13430 Document\SpecialChar menuseparator
13431 Settings\SpecialChar menuseparator
13432 \SpecialChar LaTeX
13433  Preamble
13434 \family default
13435 .
13436 \end_layout
13437
13438 \begin_layout Subsection
13439 PDF Comments
13440 \end_layout
13441
13442 \begin_layout Standard
13443 This module provides various kinds of annotations for PDF output.
13444  See 
13445 \family sans
13446 Help\SpecialChar menuseparator
13447 Specific Manuals\SpecialChar menuseparator
13448 PDF comments 
13449 \family default
13450 and
13451 \family sans
13452  File\SpecialChar menuseparator
13453 Open Example\SpecialChar menuseparator
13454 Modules\SpecialChar menuseparator
13455 PDF Comments
13456 \family default
13457 .
13458 \end_layout
13459
13460 \begin_layout Subsection
13461
13462 \series bold
13463 PDF Form
13464 \end_layout
13465
13466 \begin_layout Standard
13467 This module provides fields and buttons for PDF forms.
13468  See the 
13469 \begin_inset CommandInset href
13470 LatexCommand href
13471 name "hyperref documentation"
13472 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13473 literal "false"
13474
13475 \end_inset
13476
13477 ,
13478  
13479 \family sans
13480 Help\SpecialChar menuseparator
13481 Specific Manuals\SpecialChar menuseparator
13482 PDF forms 
13483 \family default
13484 and
13485 \family sans
13486  File\SpecialChar menuseparator
13487 Open Example\SpecialChar menuseparator
13488 Modules\SpecialChar menuseparator
13489 PDF Form
13490 \family default
13491 .
13492 \end_layout
13493
13494 \begin_layout Subsection
13495
13496 \series bold
13497 Ruby (Furigana)
13498 \end_layout
13499
13500 \begin_layout Standard
13501 This module defines an inset to typeset reading aids (ruby,
13502  furigana) to Chinese characters.
13503  It uses the 
13504 \family typewriter
13505 okumakro
13506 \family default
13507 ,
13508  
13509 \family typewriter
13510 luatexja-ruby
13511 \family default
13512  or 
13513 \family typewriter
13514 ruby
13515 \family default
13516  package (depending on the TeX engine) or a fallback definition.
13517 \end_layout
13518
13519 \begin_layout Subsection
13520
13521 \series bold
13522 TODO notes
13523 \end_layout
13524
13525 \begin_layout Standard
13526 This module provides custom insets to insert TODO items in your document.
13527  In order to generate a “List of TODOs,” the module provides a paragraph style.
13528  Inserting 
13529 \family typewriter
13530 final
13531 \family default
13532  in 
13533 \family sans
13534 Document\SpecialChar menuseparator
13535 Settings\SpecialChar menuseparator
13536 Document Class\SpecialChar menuseparator
13537 Class Options\SpecialChar menuseparator
13538 Custom
13539 \family default
13540 ) suppresses the output of TODO notes.
13541  See the 
13542 \begin_inset CommandInset href
13543 LatexCommand href
13544 name "todonotes documentation"
13545 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13546 literal "false"
13547
13548 \end_inset
13549
13550 .
13551 \end_layout
13552
13553 \begin_layout Section
13554 Bibliography
13555 \end_layout
13556
13557 \begin_layout Subsection
13558 APA Style with Natbib
13559 \end_layout
13560
13561 \begin_layout Standard
13562 This module adds support for using natbib together with apacite (the bibliography style need not be 
13563 \family typewriter
13564 apacite
13565 \family default
13566  —
13567  it could be 
13568 \family typewriter
13569 apacite
13570 \family default
13571 ,
13572  
13573 \family typewriter
13574 apacitex
13575 \family default
13576 ,
13577  or any bibliography that works with both the natbib and apacite packages.)
13578 \end_layout
13579
13580 \begin_layout Section
13581 Boxes
13582 \end_layout
13583
13584 \begin_layout Subsection
13585 Fancy Colored Boxes
13586 \end_layout
13587
13588 \begin_layout Standard
13589 This module adds ten custom insets that support colored boxes via the 
13590 \family typewriter
13591 tcolorbox
13592 \family default
13593  package.
13594  See 
13595 \family sans
13596 Help\SpecialChar menuseparator
13597 Specific Manuals\SpecialChar menuseparator
13598 Colored boxes
13599 \family default
13600 ,
13601  
13602 \family sans
13603 File\SpecialChar menuseparator
13604 Open Example\SpecialChar menuseparator
13605 Modules\SpecialChar menuseparator
13606 Fancy Color Boxes
13607 \family default
13608  and the 
13609 \begin_inset CommandInset href
13610 LatexCommand href
13611 name "tcolorbox documentation"
13612 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13613 literal "false"
13614
13615 \end_inset
13616
13617  for details.
13618 \end_layout
13619
13620 \begin_layout Subsection
13621 Graphic boxes
13622 \end_layout
13623
13624 \begin_layout Standard
13625 This provides the custom insets 
13626 \family sans
13627 Reflectbox
13628 \family default
13629 ,
13630  
13631 \family sans
13632 Resizebox
13633 \family default
13634 ,
13635  
13636 \family sans
13637 Rotatebox
13638 \family default
13639  and 
13640 \family sans
13641 Scalebox
13642 \family default
13643  to scale and rotate its content.
13644 \end_layout
13645
13646 \begin_layout Standard
13647
13648 \family sans
13649 Reflectbox
13650 \family default
13651  is a simple way of reversing text without any other enhancement:
13652 \end_layout
13653
13654 \begin_layout Standard
13655 \begin_inset Flex Reflectbox
13656 status open
13657
13658 \begin_layout Plain Layout
13659 Great Western Railway
13660 \end_layout
13661
13662 \end_inset
13663
13664
13665 \end_layout
13666
13667 \begin_layout Standard
13668 (You will need to use Ctrl-R to see any of these examples.)
13669 \end_layout
13670
13671 \begin_layout Standard
13672
13673 \family sans
13674 Resizebox
13675 \family default
13676  allows you to specify the dimensions of the text or image;
13677  permissible units are em,
13678  ex,
13679  in,
13680  pt,
13681  pc,
13682  cm,
13683  mm,
13684  dd,
13685  cc,
13686  nd,
13687  nc,
13688  bp,
13689  or sp;
13690  if you enter 
13691 \family typewriter
13692 !
13693
13694 \family default
13695  for 
13696 \family typewriter
13697 Height
13698 \family default
13699  it scales by the width factor:
13700 \end_layout
13701
13702 \begin_layout Standard
13703 \begin_inset Flex Resizebox
13704 status open
13705
13706 \begin_layout Plain Layout
13707 \begin_inset Argument 1
13708 status open
13709
13710 \begin_layout Plain Layout
13711 48mm
13712 \end_layout
13713
13714 \end_inset
13715
13716
13717 \begin_inset Argument 2
13718 status open
13719
13720 \begin_layout Plain Layout
13721 !
13722 \end_layout
13723
13724 \end_inset
13725
13726 Great Western Railway
13727 \end_layout
13728
13729 \end_inset
13730
13731
13732 \end_layout
13733
13734 \begin_layout Standard
13735
13736 \family sans
13737 Rotatebox
13738 \family default
13739  allows you to rotate its contents around the reference point of the box.
13740  If you wish to rotate the box around a different origin,
13741  place the cursor inside the box and select Insert\SpecialChar menuseparator
13742 Origin;
13743  o
13744 \family typewriter
13745 rigin
13746 \family default
13747  is specified as 
13748 \family typewriter
13749 c
13750 \family default
13751 ,
13752
13753 \family typewriter
13754  l
13755 \family default
13756 ,
13757
13758 \family typewriter
13759  r
13760 \family default
13761 ,
13762
13763 \family typewriter
13764  b
13765 \family default
13766 ,
13767
13768 \family typewriter
13769  t
13770 \family default
13771  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
13772  For example:
13773 \end_layout
13774
13775 \begin_layout Standard
13776 \begin_inset Flex Rotatebox
13777 status open
13778
13779 \begin_layout Plain Layout
13780 \begin_inset Argument 1
13781 status open
13782
13783 \begin_layout Plain Layout
13784 origin=c
13785 \end_layout
13786
13787 \end_inset
13788
13789
13790 \begin_inset Argument 2
13791 status open
13792
13793 \begin_layout Plain Layout
13794 30
13795 \end_layout
13796
13797 \end_inset
13798
13799 Great Western Railway
13800 \end_layout
13801
13802 \end_inset
13803
13804
13805 \end_layout
13806
13807 \begin_layout Standard
13808 You can combine boxes as in:
13809 \end_layout
13810
13811 \begin_layout Standard
13812 \begin_inset Flex Rotatebox
13813 status open
13814
13815 \begin_layout Plain Layout
13816 \begin_inset Argument 1
13817 status open
13818
13819 \begin_layout Plain Layout
13820 origin=c
13821 \end_layout
13822
13823 \end_inset
13824
13825
13826 \begin_inset Argument 2
13827 status open
13828
13829 \begin_layout Plain Layout
13830 -15
13831 \end_layout
13832
13833 \end_inset
13834
13835
13836 \begin_inset Flex Resizebox
13837 status open
13838
13839 \begin_layout Plain Layout
13840 \begin_inset Argument 1
13841 status open
13842
13843 \begin_layout Plain Layout
13844 48mm
13845 \end_layout
13846
13847 \end_inset
13848
13849
13850 \begin_inset Argument 2
13851 status open
13852
13853 \begin_layout Plain Layout
13854 !
13855 \end_layout
13856
13857 \end_inset
13858
13859
13860 \begin_inset Flex Reflectbox
13861 status open
13862
13863 \begin_layout Plain Layout
13864 Great Western Railway
13865 \end_layout
13866
13867 \end_inset
13868
13869
13870 \end_layout
13871
13872 \end_inset
13873
13874
13875 \end_layout
13876
13877 \end_inset
13878
13879
13880 \end_layout
13881
13882 \begin_layout Standard
13883
13884 \family sans
13885 Scalebox
13886 \family default
13887  scales its contents;
13888  select Insert\SpecialChar menuseparator
13889 V-Factor to add a vertical factor.
13890  If the vertical factor is omitted,
13891  the horizontal is used.
13892  Adding different horizontal and vertical values creates distortion as in
13893 \end_layout
13894
13895 \begin_layout Standard
13896
13897 \family typewriter
13898 \begin_inset Flex Scalebox
13899 status open
13900
13901 \begin_layout Plain Layout
13902 \begin_inset Argument 1
13903 status open
13904
13905 \begin_layout Plain Layout
13906 2
13907 \end_layout
13908
13909 \end_inset
13910
13911
13912 \begin_inset Argument 2
13913 status open
13914
13915 \begin_layout Plain Layout
13916 1.5
13917 \end_layout
13918
13919 \end_inset
13920
13921
13922 \family roman
13923 Great Western Railway
13924 \end_layout
13925
13926 \end_inset
13927
13928 .
13929 \end_layout
13930
13931 \begin_layout Standard
13932 A negative horizontal value reverses the text on the horizontal axis,
13933  a negative vertical value on the vertical axis,
13934  so that you get
13935 \end_layout
13936
13937 \begin_layout Standard
13938 \begin_inset Flex Scalebox
13939 status open
13940
13941 \begin_layout Plain Layout
13942 \begin_inset Argument 1
13943 status open
13944
13945 \begin_layout Plain Layout
13946 -1
13947 \end_layout
13948
13949 \end_inset
13950
13951
13952 \begin_inset Argument 2
13953 status open
13954
13955 \begin_layout Plain Layout
13956 1
13957 \end_layout
13958
13959 \end_inset
13960
13961 Great Western Railway
13962 \end_layout
13963
13964 \end_inset
13965
13966  and 
13967 \begin_inset Flex Scalebox
13968 status open
13969
13970 \begin_layout Plain Layout
13971 \begin_inset Argument 1
13972 status open
13973
13974 \begin_layout Plain Layout
13975 1
13976 \end_layout
13977
13978 \end_inset
13979
13980
13981 \begin_inset Argument 2
13982 status open
13983
13984 \begin_layout Plain Layout
13985 -1
13986 \end_layout
13987
13988 \end_inset
13989
13990 Great Western Railway
13991 \end_layout
13992
13993 \end_inset
13994
13995 .
13996 \end_layout
13997
13998 \begin_layout Subsection
13999 Section Boxes
14000 \end_layout
14001
14002 \begin_layout Standard
14003 This module defines Boxes with section header.
14004  It is mainly intended for the SciPoster Document class.
14005 \end_layout
14006
14007 \begin_layout Subsection
14008 Variable-width Minipages
14009 \end_layout
14010
14011 \begin_layout Standard
14012 This module adds a 
14013 \family sans
14014 Minipage (Var.
14015 \begin_inset space \thinspace{}
14016 \end_inset
14017
14018 Width)
14019 \family default
14020  inset to 
14021 \family sans
14022 Insert\SpecialChar menuseparator
14023 Custom Inset
14024 \family default
14025  using the 
14026 \family typewriter
14027 varwidth
14028 \family default
14029  LaTeX package.
14030  The 
14031 \family typewriter
14032 varwidth
14033 \family default
14034  package provides a variable-width minipage,
14035  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
14036  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
14037 \family sans
14038 Insert\SpecialChar menuseparator
14039 Vert.
14040 \begin_inset space \thinspace{}
14041 \end_inset
14042
14043 Adjustment
14044 \family default
14045  (
14046 \family typewriter
14047 c|t|b
14048 \family default
14049 ) or 
14050 \family sans
14051 Insert\SpecialChar menuseparator
14052 Max.
14053 \begin_inset space \thinspace{}
14054 \end_inset
14055
14056 Width
14057 \family default
14058  (defaults to 
14059 \family typewriter
14060
14061 \backslash
14062 linewidth
14063 \family default
14064 ).
14065  See 
14066 \family sans
14067 File\SpecialChar menuseparator
14068 Open Example\SpecialChar menuseparator
14069 Variable-width Minipages
14070 \family default
14071 .
14072 \end_layout
14073
14074 \begin_layout Section
14075 Fixes & Hacks
14076 \end_layout
14077
14078 \begin_layout Subsection
14079 Fix Computer Modern Fonts
14080 \end_layout
14081
14082 \begin_layout Standard
14083 This module uses the 
14084 \family sans
14085 fix-cm
14086 \family default
14087  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
14088  See the 
14089 \begin_inset CommandInset href
14090 LatexCommand href
14091 name "fix-cm documentation"
14092 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14093 literal "false"
14094
14095 \end_inset
14096
14097 .
14098 \end_layout
14099
14100 \begin_layout Subsection
14101 \SpecialChar LaTeX
14102  Kernel Fixes (Obsolete)
14103 \end_layout
14104
14105 \begin_layout Standard
14106 This module loads the \SpecialChar LaTeX
14107  package 
14108 \family sans
14109 fixltx2e
14110 \family default
14111  which contains some bug fixes for \SpecialChar LaTeX
14112 .
14113  If you use this module your typeset document may look different when you process it,
14114  depending on the respective version of 
14115 \family sans
14116 fixltx2e
14117 \family default
14118 .
14119 \end_layout
14120
14121 \begin_layout Paragraph
14122 Note:
14123 \end_layout
14124
14125 \begin_layout Standard
14126 recent \SpecialChar LaTeX
14127  kernels (as of 2015/01/01) include the functionality of 
14128 \family sans
14129 fixltx2e
14130 \family default
14131 ,
14132  so the 
14133 \family sans
14134 fixltx2e
14135 \family default
14136  module is obsolete with newer \SpecialChar LaTeX
14137  distributions.
14138 \end_layout
14139
14140 \begin_layout Subsection
14141 Minimalistic Insets
14142 \end_layout
14143
14144 \begin_layout Standard
14145 This module redefines several insets (Index,
14146  Branch,
14147  URL) as being Minimalistic.
14148 \end_layout
14149
14150 \begin_layout Subsection
14151 Title and Preamble Hacks
14152 \end_layout
14153
14154 \begin_layout Standard
14155 This module provides two new paragraph styles:
14156 \end_layout
14157
14158 \begin_layout Enumerate
14159
14160 \family sans
14161 In Preamble
14162 \family default
14163  which puts whatever is entered into it into the preamble.
14164  This can be used,
14165  if one wishes,
14166  to include preamble code in the body of a LyX document.
14167 \end_layout
14168
14169 \begin_layout Enumerate
14170
14171 \family sans
14172 In Title
14173 \family default
14174  which that will put its contents into the body of the LaTeX document,
14175  but before 
14176 \family typewriter
14177
14178 \backslash
14179 maketitle
14180 \family default
14181  is issued.
14182  This is useful for making branches and notes in title-related material.
14183  (However,
14184  if you put these in a 
14185 \family sans
14186 Standard
14187 \family default
14188  layout,
14189  this signals to LyX to output 
14190 \family typewriter
14191
14192 \backslash
14193 maketitle
14194 \family default
14195 ,
14196  which may then come too early.)
14197 \end_layout
14198
14199 \begin_layout Section
14200 Floats & captions
14201 \end_layout
14202
14203 \begin_layout Subsection
14204 Algorithm2e Float
14205 \end_layout
14206
14207 \begin_layout Standard
14208 This module uses the 
14209 \family sans
14210 algorithm2e
14211 \family default
14212  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14213  Use the Algorithm paragraph style to enter and indent the algorithm.
14214  See the 
14215 \begin_inset CommandInset href
14216 LatexCommand href
14217 name "algorithm2e documentation"
14218 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14219 literal "false"
14220
14221 \end_inset
14222
14223 .
14224 \end_layout
14225
14226 \begin_layout Subsection
14227 Bilingual Captions AKA Multilingual Captions
14228 \end_layout
14229
14230 \begin_layout Standard
14231 This module provides the paragraph style 
14232 \family sans
14233 Caption
14234 \begin_inset space ~
14235 \end_inset
14236
14237 setup
14238 \family default
14239  with which to typeset bilingual captions.
14240  Within this paragraph style 
14241 \family sans
14242 Insert\SpecialChar menuseparator
14243 Language
14244 \family default
14245  allows you to enter the desired second language using one of the babel names.
14246  See 
14247 \family sans
14248 File\SpecialChar menuseparator
14249 Open Example\SpecialChar menuseparator
14250 Modules\SpecialChar menuseparator
14251 Multilingual Captions
14252 \family default
14253  and 
14254 \family sans
14255 Help\SpecialChar menuseparator
14256 Specific Manuals\SpecialChar menuseparator
14257 Multilingual Captions
14258 \family default
14259  further information on its use.
14260 \end_layout
14261
14262 \begin_layout Subsection
14263 Number Figures by Section
14264 \end_layout
14265
14266 \begin_layout Standard
14267 This module resets the figure number at section start and prepends the section number to the figure number,
14268  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14269 \end_layout
14270
14271 \begin_layout Subsection
14272 Number Tables by Section
14273 \end_layout
14274
14275 \begin_layout Standard
14276 This module resets the table number at section start and prepends the section number to the table number,
14277  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14278 \end_layout
14279
14280 \begin_layout Section
14281 Foot- and Endnotes
14282 \end_layout
14283
14284 \begin_layout Subsection
14285 Endnotes (Basic)
14286 \end_layout
14287
14288 \begin_layout Standard
14289 This module adds an endnote inset,
14290  in addition to footnotes.
14291  This uses the 
14292 \family sans
14293 endnotes
14294 \family default
14295  package,
14296  which has some limitations but works with older \SpecialChar LaTeX
14297  distributions as well.
14298  Use 
14299 \family sans
14300 Insert\SpecialChar menuseparator
14301 Custom Inset\SpecialChar menuseparator
14302 Endnote
14303 \family default
14304  to insert an endnote and 
14305 \family sans
14306 Insert\SpecialChar menuseparator
14307 List/Contents/References\SpecialChar menuseparator
14308 Endnotes
14309 \family default
14310  to insert the endnotes list where you want the endnotes to appear.
14311  See also 
14312 \family sans
14313 Help\SpecialChar menuseparator
14314 Embedded Objects
14315 \family default
14316 ,
14317  section 
14318 \emph on
14319 4.2 Footnotes
14320 \emph default
14321 .
14322 \end_layout
14323
14324 \begin_layout Subsection
14325 Endnotes (Extended)
14326 \end_layout
14327
14328 \begin_layout Standard
14329 This module adds an endnote inset,
14330  in addition to footnotes.
14331  This uses the 
14332 \family sans
14333 enotez
14334 \family default
14335  package which is more powerful and customizable than the 
14336 \family sans
14337 endnotes
14338 \family default
14339  package,
14340  but requires a fairly modern \SpecialChar LaTeX
14341  distribution (with \SpecialChar LaTeX
14342 3).
14343  Use 
14344 \family sans
14345 Insert\SpecialChar menuseparator
14346 Custom Inset\SpecialChar menuseparator
14347 Endnote
14348 \family default
14349  to insert an endnote and 
14350 \family sans
14351 Insert\SpecialChar menuseparator
14352 List/Contents/References\SpecialChar menuseparator
14353 Endnotes
14354 \family default
14355  to insert the endnotes list where you want the endnotes to appear.
14356  See also 
14357 \family sans
14358 Help\SpecialChar menuseparator
14359 Embedded Objects
14360 \family default
14361 ,
14362  section 
14363 \emph on
14364 4.2 Footnotes
14365 \emph default
14366 ..
14367 \end_layout
14368
14369 \begin_layout Subsection
14370 Footnotes as Endnotes (Basic)
14371 \end_layout
14372
14373 \begin_layout Standard
14374 This module sets all footnotes as endnotes.
14375  This uses the 
14376 \family sans
14377 endnotes
14378 \family default
14379  package,
14380  which has some limitations but works with older \SpecialChar LaTeX
14381  distributions as well.
14382  Use 
14383 \family sans
14384 Insert\SpecialChar menuseparator
14385 List/Contents/References\SpecialChar menuseparator
14386 Endnotes
14387 \family default
14388  to insert the endnotes list where you want the endnotes to appear.
14389  See also 
14390 \family sans
14391 Help\SpecialChar menuseparator
14392 Embedded Objects
14393 \family default
14394 ,
14395  section 
14396 \emph on
14397 4.2 Footnotes
14398 \emph default
14399 .
14400 \end_layout
14401
14402 \begin_layout Subsection
14403 Footnotes as Endnotes (Extended)
14404 \end_layout
14405
14406 \begin_layout Standard
14407 This module sets all footnotes as endnotes.
14408  This uses the 
14409 \family sans
14410 enotez
14411 \family default
14412  package which is more powerful and customizable than then 
14413 \family sans
14414 endnotes
14415 \family default
14416  package,
14417  but requires a fairly modern \SpecialChar LaTeX
14418  distribution (with \SpecialChar LaTeX
14419 3).
14420  Use 
14421 \family sans
14422 Insert\SpecialChar menuseparator
14423 List/Contents/References\SpecialChar menuseparator
14424 Endnotes
14425 \family default
14426  to insert the endnotes list where you want the endnotes to appear.
14427  See also 
14428 \family sans
14429 Help\SpecialChar menuseparator
14430 Embedded Objects
14431 \family default
14432 ,
14433  section 
14434 \emph on
14435 4.2 Footnotes
14436 \emph default
14437 .
14438 \end_layout
14439
14440 \begin_layout Section
14441 Leisure,
14442  Sports and Music
14443 \end_layout
14444
14445 \begin_layout Subsection
14446 Chess Board
14447 \end_layout
14448
14449 \begin_layout Standard
14450 This module provides support for the 
14451 \family sans
14452 chessboard
14453 \family default
14454  package to print chess games.
14455  See 
14456 \family sans
14457 File\SpecialChar menuseparator
14458 Open Example\SpecialChar menuseparator
14459 Articles\SpecialChar menuseparator
14460 Chess
14461 \family default
14462  where you will find 
14463 \family sans
14464 Game 1
14465 \family default
14466  and 
14467 \family sans
14468 Game 2
14469 \family default
14470  and the 
14471 \begin_inset CommandInset href
14472 LatexCommand href
14473 name "chessboard documentation"
14474 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14475 literal "false"
14476
14477 \end_inset
14478
14479 .
14480 \end_layout
14481
14482 \begin_layout Subsection
14483 Lilypond Music Notation
14484 \end_layout
14485
14486 \begin_layout Standard
14487 This module provides an inset via 
14488 \family sans
14489 \bar under
14490 I
14491 \bar default
14492 nsert\SpecialChar menuseparator
14493 Custom Inset\SpecialChar menuseparator
14494 Lilypond
14495 \family default
14496  in which to enter code for the LilyPond music editor.
14497  It will then be processed in the output.
14498  See 
14499 \family sans
14500 Help\SpecialChar menuseparator
14501 Specific Manuals\SpecialChar menuseparator
14502 Lilypond
14503 \family default
14504  and 
14505 \family sans
14506 File\SpecialChar menuseparator
14507 Open Example\SpecialChar menuseparator
14508 Modules\SpecialChar menuseparator
14509 Lilypond Book
14510 \family default
14511 .
14512  It cannot be used if the modules 
14513 \family sans
14514 Rnw
14515 \begin_inset space \thinspace{}
14516 \end_inset
14517
14518 (knitr) 
14519 \family default
14520 or
14521 \family sans
14522  Sweave
14523 \family default
14524  have been loaded.
14525 \end_layout
14526
14527 \begin_layout Section
14528 List enhancements
14529 \end_layout
14530
14531 \begin_layout Subsection
14532 Customizable Lists
14533 \begin_inset CommandInset label
14534 LatexCommand label
14535 name "subsec:Customizable-Lists"
14536
14537 \end_inset
14538
14539
14540 \end_layout
14541
14542 \begin_layout Standard
14543 This module uses the
14544 \family sans
14545  enumitem
14546 \family default
14547  package to enable the customization of various list environments.
14548 \end_layout
14549
14550 \begin_layout Subsubsection
14551 Custom Enumerate Lists
14552 \end_layout
14553
14554 \begin_layout Standard
14555 \noindent
14556 The default numbering of numbered lists can be changed by adding an optional argument (menu 
14557 \family sans
14558 \bar under
14559 I
14560 \bar default
14561 nsert\SpecialChar menuseparator
14562
14563 \bar under
14564 S
14565 \bar default
14566 hort Title
14567 \family default
14568 ) to the first item of each level in the list.
14569  There you add the command
14570 \end_layout
14571
14572 \begin_layout Standard
14573
14574 \family sans
14575 label=
14576 \backslash
14577 roman{enumi}
14578 \end_layout
14579
14580 \begin_layout Standard
14581 in \SpecialChar TeX
14582  Code (shortcut 
14583 \begin_inset Info
14584 type  "shortcut"
14585 arg   "ert-insert"
14586 \end_inset
14587
14588 ).
14589 \end_layout
14590
14591 \begin_layout Standard
14592
14593 \family sans
14594 enumi
14595 \family default
14596  is the first level counter of the enumeration.
14597  To change the numbering for the list sublevels,
14598  replace the “
14599 \family sans
14600 i
14601 \family default
14602 ” in the command by the small Roman numeral of the level (
14603 \family sans
14604 enumi
14605 \family default
14606 ,
14607  
14608 \family sans
14609 enumii
14610 \family default
14611 ,
14612  
14613 \family sans
14614 enumiii
14615 \family default
14616 ,
14617  
14618 \family sans
14619 enumiv
14620 \family default
14621 ).
14622 \end_layout
14623
14624 \begin_layout Standard
14625 The command 
14626 \family sans
14627
14628 \backslash
14629 roman
14630 \family default
14631  outputs the counter as a small Roman numeral.
14632  For capital Roman numerals replace 
14633 \family sans
14634
14635 \backslash
14636 roman
14637 \family default
14638  with 
14639 \family sans
14640
14641 \backslash
14642 Roman
14643 \family default
14644  in the command above.
14645  For Arabic numerals use 
14646 \family sans
14647
14648 \backslash
14649 arabic
14650 \family default
14651 .
14652  To 
14653 \begin_inset Quotes eld
14654 \end_inset
14655
14656 number
14657 \begin_inset Quotes erd
14658 \end_inset
14659
14660  items with capital or small Latin letters use 
14661 \family sans
14662
14663 \backslash
14664 Alph
14665 \family default
14666  or 
14667 \family sans
14668
14669 \backslash
14670 alph
14671 \family default
14672 ,
14673  respectively.
14674 \end_layout
14675
14676 \begin_layout Standard
14677 \noindent
14678 \begin_inset Note Greyedout
14679 status open
14680
14681 \begin_layout Plain Layout
14682
14683 \series bold
14684 Note:
14685
14686 \series default
14687  You can only number 26
14688 \begin_inset space ~
14689 \end_inset
14690
14691 items with Latin letters,
14692  because this numbering is limited to single letters.
14693 \end_layout
14694
14695 \end_inset
14696
14697
14698 \end_layout
14699
14700 \begin_layout Standard
14701 Here is a list with custom numbering:
14702 \end_layout
14703
14704 \begin_layout Enumerate
14705 \begin_inset Argument 1
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 \begin_inset ERT
14710 status collapsed
14711
14712 \begin_layout Plain Layout
14713
14714 label=
14715 \backslash
14716 #
14717 \backslash
14718 Alph{enumi}
14719 \backslash
14720 #
14721 \end_layout
14722
14723 \end_inset
14724
14725
14726 \end_layout
14727
14728 \end_inset
14729
14730 Level 1
14731 \begin_inset Separator latexpar
14732 \end_inset
14733
14734
14735 \end_layout
14736
14737 \begin_deeper
14738 \begin_layout Enumerate
14739 \begin_inset Argument 1
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 \begin_inset ERT
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747
14748 label=
14749 \backslash
14750 Alph{enumi}.
14751 \backslash
14752 arabic{enumii}
14753 \end_layout
14754
14755 \end_inset
14756
14757
14758 \end_layout
14759
14760 \end_inset
14761
14762 Level 2
14763 \end_layout
14764
14765 \begin_layout Enumerate
14766 Level 2
14767 \begin_inset Separator latexpar
14768 \end_inset
14769
14770
14771 \end_layout
14772
14773 \begin_deeper
14774 \begin_layout Enumerate
14775 \begin_inset Argument 1
14776 status collapsed
14777
14778 \begin_layout Plain Layout
14779 \begin_inset ERT
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783
14784 label=
14785 \backslash
14786 bfseries{
14787 \backslash
14788 arabic{enumiii}}
14789 \end_layout
14790
14791 \end_inset
14792
14793
14794 \end_layout
14795
14796 \end_inset
14797
14798 Level 3
14799 \begin_inset Separator latexpar
14800 \end_inset
14801
14802
14803 \end_layout
14804
14805 \begin_deeper
14806 \begin_layout Enumerate
14807 \begin_inset Argument 1
14808 status collapsed
14809
14810 \begin_layout Plain Layout
14811 \begin_inset ERT
14812 status collapsed
14813
14814 \begin_layout Plain Layout
14815
14816 label=
14817 \backslash
14818 emph{
14819 \backslash
14820 roman{enumiv})}
14821 \end_layout
14822
14823 \end_inset
14824
14825
14826 \end_layout
14827
14828 \end_inset
14829
14830 Level 4
14831 \end_layout
14832
14833 \end_deeper
14834 \end_deeper
14835 \end_deeper
14836 \begin_layout Standard
14837 For this list these commands were used:
14838 \end_layout
14839
14840 \begin_layout Standard
14841 \noindent
14842
14843 \family sans
14844 label=
14845 \backslash
14846 #
14847 \backslash
14848 Alph{enumi}
14849 \backslash
14850 #
14851 \begin_inset Newline newline
14852 \end_inset
14853
14854 label=
14855 \backslash
14856 Alph{enumi}.
14857 \backslash
14858 arabic{enumii}
14859 \begin_inset Newline newline
14860 \end_inset
14861
14862 label=
14863 \backslash
14864 bfseries{
14865 \backslash
14866 arabic{enumiii}}
14867 \begin_inset Newline newline
14868 \end_inset
14869
14870 label=
14871 \backslash
14872 emph{
14873 \backslash
14874 roman{enumiv})}
14875 \end_layout
14876
14877 \begin_layout Standard
14878 where the command 
14879 \family sans
14880
14881 \backslash
14882 emph{}
14883 \family default
14884  makes the label emphasized and 
14885 \family sans
14886
14887 \backslash
14888 bfseries{}
14889 \family default
14890  makes it bold.
14891 \end_layout
14892
14893 \begin_layout Standard
14894 \begin_inset Note Greyedout
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898
14899 \series bold
14900 Note:
14901
14902 \series default
14903  When you change the label of a list level,
14904  it will be used for all following lists until you change the definition.
14905 \end_layout
14906
14907 \end_inset
14908
14909
14910 \end_layout
14911
14912 \begin_layout Standard
14913 \begin_inset ERT
14914 status open
14915
14916 \begin_layout Plain Layout
14917
14918
14919 \backslash
14920 renewcommand{
14921 \backslash
14922 labelenumi}{
14923 \backslash
14924 thesection.
14925 \backslash
14926 arabic{enumi}}
14927 \end_layout
14928
14929 \end_inset
14930
14931
14932 \end_layout
14933
14934 \begin_layout Subsubsection
14935 Numbered Paragraphs in Reports
14936 \end_layout
14937
14938 \begin_layout Enumerate
14939 Official reports often include numbered paragraphs;
14940  you can achieve this with a variation on the approach outlined in section
14941 \begin_inset space ~
14942 \end_inset
14943
14944
14945 \begin_inset CommandInset ref
14946 LatexCommand ref
14947 reference "sec:How-to-use"
14948
14949 \end_inset
14950
14951 .
14952  Replace 
14953 \family sans
14954 item
14955 \family default
14956  in each command with 
14957 \family sans
14958 enum
14959 \family default
14960 .
14961 \end_layout
14962
14963 \begin_layout Enumerate
14964 These numbered paragraphs were generated by inserting the \SpecialChar TeX
14965  Code
14966 \begin_inset Separator latexpar
14967 \end_inset
14968
14969
14970 \end_layout
14971
14972 \begin_deeper
14973 \begin_layout Standard
14974
14975 \family sans
14976
14977 \backslash
14978 renewcommand{
14979 \backslash
14980 labelenumi}{
14981 \backslash
14982 thesection.
14983 \backslash
14984 arabic{enumi}}
14985 \end_layout
14986
14987 \begin_layout Standard
14988 before the start of the section;
14989  
14990 \family sans
14991
14992 \backslash
14993 thesection
14994 \family default
14995  uses the \SpecialChar LaTeX
14996  section counter to generate the first part of the number.
14997 \end_layout
14998
14999 \end_deeper
15000 \begin_layout Enumerate
15001 I have ignored the subsection heading in this example because,
15002  with paragraphs numbered in this way,
15003  subsections are less likely to be used.
15004 \end_layout
15005
15006 \begin_layout Subsubsection
15007 Resumed Enumeration
15008 \end_layout
15009
15010 \begin_layout Standard
15011 \begin_inset ERT
15012 status open
15013
15014 \begin_layout Plain Layout
15015
15016
15017 \backslash
15018 renewcommand{
15019 \backslash
15020 labelenumi}{
15021 \backslash
15022 arabic{enumi}}
15023 \end_layout
15024
15025 \end_inset
15026
15027
15028 \end_layout
15029
15030 \begin_layout Standard
15031 Enumerations can be resumed after intermediate paragraphs:
15032 \end_layout
15033
15034 \begin_layout Enumerate
15035 \begin_inset Argument 1
15036 status collapsed
15037
15038 \begin_layout Plain Layout
15039 \begin_inset ERT
15040 status collapsed
15041
15042 \begin_layout Plain Layout
15043
15044 label=
15045 \backslash
15046 arabic{enumi}.
15047 \end_layout
15048
15049 \end_inset
15050
15051
15052 \end_layout
15053
15054 \end_inset
15055
15056 first
15057 \begin_inset Note Note
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 goes back to default numbering
15062 \end_layout
15063
15064 \end_inset
15065
15066
15067 \end_layout
15068
15069 \begin_layout Enumerate
15070 second
15071 \end_layout
15072
15073 \begin_layout Standard
15074 regular text
15075 \end_layout
15076
15077 \begin_layout Enumerate-Resume
15078 resumed
15079 \end_layout
15080
15081 \begin_layout Standard
15082 To resume an enumeration,
15083  use the style 
15084 \family sans
15085 Enumerate-Resume
15086 \family default
15087 .
15088 \end_layout
15089
15090 \begin_layout Standard
15091 \begin_inset Note Greyedout
15092 status open
15093
15094 \begin_layout Plain Layout
15095
15096 \series bold
15097 Note:
15098
15099 \series default
15100  If there is no previous enumeration to resume,
15101  you will get a \SpecialChar LaTeX
15102  error.
15103 \end_layout
15104
15105 \end_inset
15106
15107
15108 \end_layout
15109
15110 \begin_layout Standard
15111 Perhaps you might want to resume the list with a different number from the next one.
15112  Or you want to start a new enumeration with a defined number.
15113  This is possible by adding an optional argument to the first list item of a normal enumeration.
15114  There,
15115  insert the command
15116 \end_layout
15117
15118 \begin_layout Standard
15119
15120 \family sans
15121 start=number
15122 \end_layout
15123
15124 \begin_layout Standard
15125 where 
15126 \family sans
15127 number
15128 \family default
15129  is the number with which you want to resume the list.
15130  An example:
15131 \end_layout
15132
15133 \begin_layout Enumerate
15134 first item
15135 \end_layout
15136
15137 \begin_layout Enumerate
15138 second item
15139 \end_layout
15140
15141 \begin_layout Standard
15142 Enumeration starting at a given value:
15143 \end_layout
15144
15145 \begin_layout Enumerate
15146 \begin_inset Argument 1
15147 status open
15148
15149 \begin_layout Plain Layout
15150 \begin_inset ERT
15151 status collapsed
15152
15153 \begin_layout Plain Layout
15154
15155 start=4
15156 \end_layout
15157
15158 \end_inset
15159
15160
15161 \end_layout
15162
15163 \end_inset
15164
15165 This enumeration starts at 4
15166 \end_layout
15167
15168 \begin_layout Subsubsection
15169 List Spacing
15170 \begin_inset Index idx
15171 range none
15172 pageformat default
15173 status collapsed
15174
15175 \begin_layout Plain Layout
15176 Lists !
15177  Spacing
15178 \end_layout
15179
15180 \end_inset
15181
15182
15183 \end_layout
15184
15185 \begin_layout Standard
15186 In some cases you might want less or more vertical space between the items of a list.
15187  For example if the default space is too much in your opinion in this case:
15188 \end_layout
15189
15190 \begin_layout Itemize
15191 A bullet list
15192 \end_layout
15193
15194 \begin_layout Itemize
15195 with standard spacing
15196 \end_layout
15197
15198 \begin_layout Standard
15199 You can decrease the space by adding an optional argument to the first item of the list.
15200  Add there the command 
15201 \family sans
15202 nolistsep
15203 \family default
15204  to get no additional list space like in this example:
15205 \end_layout
15206
15207 \begin_layout Itemize
15208 \begin_inset Argument 1
15209 status open
15210
15211 \begin_layout Plain Layout
15212 \begin_inset ERT
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216
15217 nolistsep
15218 \end_layout
15219
15220 \end_inset
15221
15222
15223 \end_layout
15224
15225 \end_inset
15226
15227 A bullet list
15228 \end_layout
15229
15230 \begin_layout Itemize
15231 without additional
15232 \end_layout
15233
15234 \begin_layout Itemize
15235 vertical space
15236 \end_layout
15237
15238 \begin_layout Standard
15239 To add space you can use several other commands provided by the 
15240 \family sans
15241 enumitem
15242 \family default
15243
15244 \begin_inset Index idx
15245 range none
15246 pageformat default
15247 status collapsed
15248
15249 \begin_layout Plain Layout
15250 \SpecialChar LaTeX
15251 -packages !
15252  enumitem
15253 \end_layout
15254
15255 \end_inset
15256
15257  package.
15258  For more information see the 
15259 \begin_inset CommandInset href
15260 LatexCommand href
15261 name "enumitem documentation"
15262 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15263 literal "false"
15264
15265 \end_inset
15266
15267 .
15268 \end_layout
15269
15270 \begin_layout Standard
15271 There are also many commands available to change the horizontal spacing and indentation.
15272  Here is an example where the indentation was changed to that of the paragraphs in the document and the label separation was set to 2
15273 \begin_inset space \thinspace{}
15274 \end_inset
15275
15276 cm so that the number is in the page margin:
15277 \end_layout
15278
15279 \begin_layout Enumerate
15280 \begin_inset Argument 1
15281 status open
15282
15283 \begin_layout Plain Layout
15284 \begin_inset ERT
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288
15289 labelindent=
15290 \backslash
15291 parindent,
15292  labelsep=2cm
15293 \end_layout
15294
15295 \end_inset
15296
15297
15298 \end_layout
15299
15300 \end_inset
15301
15302 An enumeration
15303 \end_layout
15304
15305 \begin_layout Enumerate
15306 with negative indentation
15307 \end_layout
15308
15309 \begin_layout Subsubsection
15310 Further Customization
15311 \begin_inset Index idx
15312 range none
15313 pageformat default
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 Lists !
15318  Customization
15319 \end_layout
15320
15321 \end_inset
15322
15323
15324 \end_layout
15325
15326 \begin_layout Standard
15327 You can also change the style of description lists.
15328  The command
15329 \end_layout
15330
15331 \begin_layout Standard
15332
15333 \family sans
15334 font=definition
15335 \end_layout
15336
15337 \begin_layout Standard
15338 changes the description label font,
15339  the command
15340 \end_layout
15341
15342 \begin_layout Standard
15343
15344 \family sans
15345 style=definitio
15346 \family default
15347 \series bold
15348 n
15349 \end_layout
15350
15351 \begin_layout Standard
15352 sets the list style.
15353 \end_layout
15354
15355 \begin_layout Standard
15356 An example where the command
15357 \end_layout
15358
15359 \begin_layout Standard
15360
15361 \family sans
15362 font=
15363 \backslash
15364 itshape,
15365  style=nextline
15366 \end_layout
15367
15368 \begin_layout Standard
15369 is used:
15370 \end_layout
15371
15372 \begin_layout Description
15373 Ionizing
15374 \begin_inset space ~
15375 \end_inset
15376
15377 radiation:
15378  
15379 \begin_inset Argument 1
15380 status collapsed
15381
15382 \begin_layout Plain Layout
15383 \begin_inset ERT
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387
15388 labelindent=0pt,
15389  labelsep=1cm,
15390  font=
15391 \backslash
15392 itshape,
15393  style=nextline
15394 \end_layout
15395
15396 \end_inset
15397
15398
15399 \end_layout
15400
15401 \end_inset
15402
15403 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
15404  therefore ionizing them.
15405 \end_layout
15406
15407 \begin_layout Description
15408 Reference
15409 \begin_inset space ~
15410 \end_inset
15411
15412 counting:
15413  In computer science,
15414  reference counting is a technique of storing the number of references,
15415  pointers,
15416  or handles to a resource such as an object,
15417  block of memory,
15418  disk space or other resource.
15419 \end_layout
15420
15421 \begin_layout Standard
15422 There are many more commands and features provided by the 
15423 \family sans
15424 enumitem
15425 \family default
15426
15427 \begin_inset Index idx
15428 range none
15429 pageformat default
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 \SpecialChar LaTeX
15434 -packages !
15435  enumitem
15436 \end_layout
15437
15438 \end_inset
15439
15440  package.
15441  For more information see the 
15442 \begin_inset CommandInset href
15443 LatexCommand href
15444 name "enumitem documentation"
15445 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15446 literal "false"
15447
15448 \end_inset
15449
15450 .
15451 \end_layout
15452
15453 \begin_layout Subsection
15454
15455 \series bold
15456 Paragraph Lists
15457 \end_layout
15458
15459 \begin_layout Standard
15460 This module uses the package 
15461 \family sans
15462 paralist
15463 \family default
15464  to provide nine new list environments.
15465  Itemized and enumerated lists can be typeset within paragraphs,
15466  as paragraphs and in a compact version.
15467  Most environments have optional arguments to format the labels.
15468  Additionally,
15469  the \SpecialChar LaTeX
15470  list environments itemize and enumerate are extended to use a similar optional argument.
15471  For further details see 
15472 \family sans
15473 File\SpecialChar menuseparator
15474 Open Example\SpecialChar menuseparator
15475 Modules\SpecialChar menuseparator
15476 Paragraph Lists (paralist)
15477 \family default
15478 ,
15479  
15480 \family sans
15481 Help\SpecialChar menuseparator
15482 Specific Manuals\SpecialChar menuseparator
15483 Paralist
15484 \family default
15485  and the 
15486 \begin_inset CommandInset href
15487 LatexCommand href
15488 name "paralist documentation"
15489 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
15490 literal "false"
15491
15492 \end_inset
15493
15494 .
15495 \end_layout
15496
15497 \begin_layout Section
15498 Literate Programming
15499 \end_layout
15500
15501 \begin_layout Subsection
15502 Noweb
15503 \end_layout
15504
15505 \begin_layout Standard
15506 This module allows the use of Noweb as a literate programming tool.
15507  The files and the documentation for Noweb can be obtained from 
15508 \begin_inset CommandInset href
15509 LatexCommand href
15510 name "CTAN"
15511 target "https://www.ctan.org/pkg/noweb"
15512 literal "false"
15513
15514 \end_inset
15515
15516 .
15517  Literate programming is described in section
15518 \begin_inset space ~
15519 \end_inset
15520
15521
15522 \begin_inset CommandInset ref
15523 LatexCommand ref
15524 reference "sec:Literate-Programming"
15525 nolink "false"
15526
15527 \end_inset
15528
15529  and there are three example files:
15530  
15531 \family sans
15532 File\SpecialChar menuseparator
15533 Open Example\SpecialChar menuseparator
15534 Modules\SpecialChar menuseparator
15535 Noweb
15536 \family default
15537 ,
15538  
15539 \family sans
15540 File\SpecialChar menuseparator
15541 Open Example\SpecialChar menuseparator
15542 Modules\SpecialChar menuseparator
15543 Noweb Listerrors
15544 \family default
15545  and 
15546 \family sans
15547 File\SpecialChar menuseparator
15548 Open Example\SpecialChar menuseparator
15549 Modules\SpecialChar menuseparator
15550 Noweb2\SpecialChar LyX
15551
15552 \family default
15553 .
15554 \end_layout
15555
15556 \begin_layout Subsection
15557 Rnw (knitr)
15558 \end_layout
15559
15560 \begin_layout Standard
15561 This module uses the 
15562 \family typewriter
15563 knitr
15564 \family default
15565  and 
15566 \family sans
15567 includernw
15568 \family default
15569  packages.
15570  The
15571 \begin_inset Flex Code
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 knitr
15576 \end_layout
15577
15578 \end_inset
15579
15580  package in R for dynamic report generation has to be installed for this module to work:
15581  
15582 \begin_inset Flex Code
15583 status collapsed
15584
15585 \begin_layout Plain Layout
15586 install.packages(“knitr”)
15587 \end_layout
15588
15589 \end_inset
15590
15591 .
15592 \end_layout
15593
15594 \begin_layout Paragraph
15595 Note
15596 \end_layout
15597
15598 \begin_layout Itemize
15599 it depends on R >= 2.14.1.
15600  For more info see 
15601 \begin_inset Flex URL
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605
15606 http://yihui.name/knitr
15607 \end_layout
15608
15609 \end_inset
15610
15611 .
15612 \end_layout
15613
15614 \begin_layout Itemize
15615 The package 
15616 \family sans
15617 includernw
15618 \family default
15619  also has to be installed.
15620 \end_layout
15621
15622 \begin_layout Itemize
15623 It cannot be used if the modules 
15624 \family sans
15625 LilyPond
15626 \begin_inset space ~
15627 \end_inset
15628
15629 Book
15630 \family default
15631  or 
15632 \family sans
15633 Sweave
15634 \family default
15635  are loaded.
15636 \end_layout
15637
15638 \begin_layout Standard
15639 See 
15640 \family sans
15641 Help\SpecialChar menuseparator
15642 Specific Manuals\SpecialChar menuseparator
15643 Knitr
15644 \family default
15645 ,
15646  
15647 \family sans
15648 File\SpecialChar menuseparator
15649 Open Example\SpecialChar menuseparator
15650 Modules\SpecialChar menuseparator
15651 Rnw (knitr)
15652 \family default
15653  and section
15654 \begin_inset space ~
15655 \end_inset
15656
15657
15658 \begin_inset CommandInset ref
15659 LatexCommand ref
15660 reference "sec:Literate-Programming"
15661 nolink "false"
15662
15663 \end_inset
15664
15665  for information about literate programming.
15666 \end_layout
15667
15668 \begin_layout Subsection
15669 Sweave
15670 \end_layout
15671
15672 \begin_layout Standard
15673 This module allows the use of the statistical language S/R as a literate programming tool.
15674  It requires the 
15675 \family sans
15676 includernw
15677 \family default
15678  and 
15679 \family sans
15680 fancyvrb
15681 \family default
15682  packages.
15683  Both 
15684 \begin_inset CommandInset href
15685 LatexCommand href
15686 name "includernw"
15687 target "https://www.ctan.org/pkg/includernw"
15688 literal "false"
15689
15690 \end_inset
15691
15692  and 
15693 \begin_inset CommandInset href
15694 LatexCommand href
15695 name "fancyvrb"
15696 target "https://www.ctan.org/pkg/fancyvrb"
15697 literal "false"
15698
15699 \end_inset
15700
15701  are available from CTAN.
15702  It cannot be used if the module 
15703 \family sans
15704 LilyPond
15705 \begin_inset space ~
15706 \end_inset
15707
15708 Book
15709 \family default
15710  has been loaded.
15711  See 
15712 \family sans
15713 Help\SpecialChar menuseparator
15714 Specific Manuals\SpecialChar menuseparator
15715 Sweave,
15716
15717 \family default
15718  
15719 \family sans
15720 File\SpecialChar menuseparator
15721 Open Example\SpecialChar menuseparator
15722 Modules\SpecialChar menuseparator
15723 Sweave
15724 \family default
15725  and section
15726 \begin_inset space ~
15727 \end_inset
15728
15729
15730 \begin_inset CommandInset ref
15731 LatexCommand ref
15732 reference "sec:Literate-Programming"
15733 nolink "false"
15734
15735 \end_inset
15736
15737  for information about literate programming.
15738 \end_layout
15739
15740 \begin_layout Section
15741 Maths
15742 \end_layout
15743
15744 \begin_layout Subsection
15745 AMS Theorems
15746 \end_layout
15747
15748 \begin_layout Standard
15749 This modules defines theorem environments and the proof environment using the extended AMS machinery.
15750  Both numbered and unnumbered types are provided.
15751  By default,
15752  the theorems are numbered consecutively throughout the document.
15753  This can be changed by loading one of the 
15754 \family sans
15755 AMS Theorems (Numbered by \SpecialChar ldots
15756 )
15757 \family default
15758  modules.
15759  It cannot be used if the modules 
15760 \family sans
15761 Standard Theorems
15762 \family default
15763  or 
15764 \family sans
15765 Standard Theorems (Unnumbered)
15766 \family default
15767  have been loaded.
15768 \end_layout
15769
15770 \begin_layout Subsection
15771 AMS Theorems (Extended)
15772 \end_layout
15773
15774 \begin_layout Standard
15775 This module defines some additional theorem environments for use with the 
15776 \family sans
15777 AMS Theorems
15778 \family default
15779  package (which must be loaded).
15780  It includes 
15781 \family sans
15782 Criterion
15783 \family default
15784 ,
15785  
15786 \family sans
15787 Algorithm
15788 \family default
15789 ,
15790  
15791 \family sans
15792 Axiom
15793 \family default
15794 ,
15795  
15796 \family sans
15797 Condition
15798 \family default
15799 ,
15800  
15801 \family sans
15802 Note
15803 \family default
15804 ,
15805  
15806 \family sans
15807 Notation
15808 \family default
15809 ,
15810  
15811 \family sans
15812 Summary
15813 \family default
15814 ,
15815  
15816 \family sans
15817 Conclusion
15818 \family default
15819 ,
15820  
15821 \family sans
15822 Fact
15823 \family default
15824 ,
15825  
15826 \family sans
15827 Assumption
15828 \family default
15829 ,
15830  
15831 \family sans
15832 Case
15833 \family default
15834  and 
15835 \family sans
15836 Question
15837 \family default
15838  in both numbered and unnumbered forms.
15839 \end_layout
15840
15841 \begin_layout Subsection
15842 AMS Theorems (Extended,
15843  Numbered by Type within Chapters)
15844 \end_layout
15845
15846 \begin_layout Standard
15847 This module defines some additional theorem environments for use with the 
15848 \family sans
15849 AMS Theorems (Numbered by Type within Chapters)
15850 \family default
15851  module (which must be loaded).
15852  It includes 
15853 \family sans
15854 Criterion
15855 \family default
15856 ,
15857  
15858 \family sans
15859 Algorithm
15860 \family default
15861 ,
15862  
15863 \family sans
15864 Axiom
15865 \family default
15866 ,
15867  
15868 \family sans
15869 Condition
15870 \family default
15871 ,
15872  
15873 \family sans
15874 Note
15875 \family default
15876 ,
15877  
15878 \family sans
15879 Notation
15880 \family default
15881 ,
15882  
15883 \family sans
15884 Summary
15885 \family default
15886 ,
15887  
15888 \family sans
15889 Conclusion
15890 \family default
15891 ,
15892  
15893 \family sans
15894 Assumption
15895 \family default
15896  and 
15897 \family sans
15898 Case
15899 \family default
15900  in both numbered and unnumbered forms.
15901 \end_layout
15902
15903 \begin_layout Standard
15904 Unlike the 
15905 \family sans
15906 AMS Theorems (Extended)
15907 \family default
15908  module,
15909  the different theorem types provided here each have a separate counter,
15910  restarted with each new chapter (e.g.,
15911  
15912 \emph on
15913 Criterion 1.1
15914 \emph default
15915 ,
15916  
15917 \emph on
15918 Criterion 1.2
15919 \emph default
15920 ,
15921  
15922 \emph on
15923 Axiom 1.1
15924 \emph default
15925 ,
15926  
15927 \emph on
15928 Assumption 1.1
15929 \emph default
15930 ,
15931  
15932 \emph on
15933 Criterion 2.1
15934 \emph default
15935 ,
15936  
15937 \emph on
15938 Criterion 2.2
15939 \emph default
15940 ,
15941
15942 \emph on
15943  Axiom 2.1
15944 \emph default
15945 ,
15946  \SpecialChar ldots
15947 ,
15948  as opposed to 
15949 \emph on
15950 Criterion 1
15951 \emph default
15952 ,
15953  
15954 \emph on
15955 Criterion 2
15956 \emph default
15957 ,
15958  
15959 \emph on
15960 Axiom 3
15961 \emph default
15962 ,
15963  
15964 \emph on
15965 Assumption 4
15966 \emph default
15967 ,
15968  \SpecialChar ldots
15969 ).
15970 \end_layout
15971
15972 \begin_layout Subsection
15973 AMS Theorems (Extended,
15974  Numbered by Type)
15975 \end_layout
15976
15977 \begin_layout Standard
15978 This module defines some additional theorem environments for use with the 
15979 \family sans
15980 AMS Theorems (Numbered by Type)
15981 \family default
15982  package (which must be loaded).
15983  It includes 
15984 \family sans
15985 Criterion
15986 \family default
15987 ,
15988  
15989 \family sans
15990 Algorithm
15991 \family default
15992 ,
15993  
15994 \family sans
15995 Axiom
15996 \family default
15997 ,
15998  
15999 \family sans
16000 Condition
16001 \family default
16002 ,
16003  
16004 \family sans
16005 Note
16006 \family default
16007 ,
16008  
16009 \family sans
16010 Notation
16011 \family default
16012 ,
16013  
16014 \family sans
16015 Summary
16016 \family default
16017 ,
16018  
16019 \family sans
16020 Conclusion
16021 \family default
16022 ,
16023  
16024 \family sans
16025 Assumption
16026 \family default
16027  and 
16028 \family sans
16029 Case
16030 \family default
16031  in both numbered and unnumbered forms.
16032 \end_layout
16033
16034 \begin_layout Standard
16035 Unlike the 
16036 \family sans
16037 AMS Theorems (Extended)
16038 \family default
16039  module,
16040  the different theorem types provided here each have a separate counter (e.g.,
16041  
16042 \emph on
16043 Criterion 1
16044 \emph default
16045 ,
16046  
16047 \emph on
16048 Criterion 2
16049 \emph default
16050 ,
16051  
16052 \emph on
16053 Axiom 1
16054 \emph default
16055 ,
16056  
16057 \emph on
16058 Assumption 1
16059 \emph default
16060 ,
16061  
16062 \emph on
16063 Criterion 3
16064 \emph default
16065 ,
16066  \SpecialChar ldots
16067 ,
16068  as opposed to 
16069 \emph on
16070 Criterion 1
16071 \emph default
16072 ,
16073  
16074 \emph on
16075 Criterion 2
16076 \emph default
16077 ,
16078  
16079 \emph on
16080 Axiom 3
16081 \emph default
16082 ,
16083  
16084 \emph on
16085 Assumption 4
16086 \emph default
16087 ,
16088  \SpecialChar ldots
16089 ).
16090 \end_layout
16091
16092 \begin_layout Subsection
16093 AMS Theorems (Numbered by Type within Chapters)
16094 \end_layout
16095
16096 \begin_layout Standard
16097 This module defines theorem environments and the proof environment using the extended AMS machinery.
16098  Both numbered and unnumbered types are provided.
16099 \end_layout
16100
16101 \begin_layout Standard
16102 Unlike the 
16103 \family sans
16104 AMS Theorems
16105 \family default
16106  module,
16107  the different theorem types provided here each have a separate counter (e.g.,
16108  
16109 \emph on
16110 Theorem 1.1
16111 \emph default
16112 ,
16113  
16114 \emph on
16115 Theorem 1.2
16116 \emph default
16117 ,
16118  
16119 \emph on
16120 Lemma 1.1
16121 \emph default
16122 ,
16123  
16124 \emph on
16125 Proposition 1.1
16126 \emph default
16127 ,
16128  
16129 \emph on
16130 Theorem 1.3
16131 \emph default
16132 ,
16133  
16134 \emph on
16135 Lemma 1.2
16136 \emph default
16137 ,
16138  \SpecialChar ldots
16139 ,
16140  as opposed to 
16141 \emph on
16142 Theorem 1
16143 \emph default
16144 ,
16145  
16146 \emph on
16147 Theorem 2
16148 \emph default
16149 ,
16150  
16151 \emph on
16152 Lemma 3
16153 \emph default
16154 ,
16155  
16156 \emph on
16157 Proposition 4
16158 \emph default
16159 ,
16160  \SpecialChar ldots
16161 ).
16162  The numbering restarts for each chapter:
16163  
16164 \emph on
16165 Theorem 1.1
16166 \emph default
16167 ,
16168  
16169 \emph on
16170 Theorem 2.1
16171 \emph default
16172 ,
16173  \SpecialChar ldots
16174
16175 \end_layout
16176
16177 \begin_layout Standard
16178 It cannot be used if the modules 
16179 \family sans
16180 AMS Theorems
16181 \family default
16182 ,
16183  
16184 \family sans
16185 Standard Theorems
16186 \family default
16187 ,
16188
16189 \family sans
16190  Standard Theorems (Numbered by Type)
16191 \family default
16192  or
16193 \family sans
16194  Standard Theorems (Unnumbered)
16195 \family default
16196  have been loaded.
16197 \end_layout
16198
16199 \begin_layout Subsection
16200 AMS Theorems (Numbered by Type)
16201 \end_layout
16202
16203 \begin_layout Standard
16204 This module defines theorem environments and the proof environment using the extended AMS machinery.
16205  Both numbered and unnumbered types are provided.
16206  Unlike the 
16207 \family sans
16208 AMS Theorems
16209 \family default
16210  module,
16211  the different theorem types provided here each have a separate counter (e.g.,
16212  
16213 \emph on
16214 Theorem 1
16215 \emph default
16216 ,
16217  
16218 \emph on
16219 Theorem 2
16220 \emph default
16221 ,
16222  
16223 \emph on
16224 Lemma 1
16225 \emph default
16226 ,
16227  
16228 \emph on
16229 Proposition 1
16230 \emph default
16231 ,
16232  
16233 \emph on
16234 Theorem 3
16235 \emph default
16236 ,
16237  
16238 \emph on
16239 Lemma 2
16240 \emph default
16241 ,
16242  \SpecialChar ldots
16243 ,
16244  as opposed to 
16245 \emph on
16246 Theorem 1
16247 \emph default
16248 ,
16249  
16250 \emph on
16251 Theorem 2
16252 \emph default
16253 ,
16254  
16255 \emph on
16256 Lemma 3
16257 \emph default
16258 ,
16259  
16260 \emph on
16261 Proposition 4
16262 \emph default
16263 ,
16264  \SpecialChar ldots
16265 ).
16266  The numbering’s scope is the whole document.
16267  For chapter- and section-wide numbering,
16268  use one of the ‘within Sections’/‘within Chapters’ modules,
16269  respectively.
16270 \end_layout
16271
16272 \begin_layout Standard
16273 It cannot be used if the modules 
16274 \family sans
16275 AMS Theorems
16276 \family default
16277 ,
16278  
16279 \family sans
16280 Standard Theorems
16281 \family default
16282 ,
16283
16284 \family sans
16285  Standard Theorems (Numbered by Type)
16286 \family default
16287  or
16288 \family sans
16289  Standard Theorems (Unnumbered)
16290 \family default
16291  have been loaded.
16292 \end_layout
16293
16294 \begin_layout Subsection
16295 Number Equations by Section
16296 \end_layout
16297
16298 \begin_layout Standard
16299 This module resets the equation number at section start and prepends the section number to the equation number,
16300  as in 
16301 \emph on
16302 (2.1)
16303 \emph default
16304 .
16305 \end_layout
16306
16307 \begin_layout Subsection
16308 Standard Theorems
16309 \end_layout
16310
16311 \begin_layout Standard
16312 This module defines some theorem environments for use with non-AMS classes.
16313  By default,
16314  the theorems are numbered consecutively throughout the document.
16315  This can be changed by loading one of the 
16316 \family sans
16317 Standard Theorems (Numbered by \SpecialChar ldots
16318 )
16319 \family default
16320  modules.
16321 \end_layout
16322
16323 \begin_layout Standard
16324 It cannot be used if the modules 
16325 \family sans
16326 AMS Theorems
16327 \family default
16328  or
16329 \family sans
16330  Standard Theorems (Unnumbered)
16331 \family default
16332  have been loaded.
16333 \end_layout
16334
16335 \begin_layout Subsection
16336 Standard Theorems (Nameable)
16337 \end_layout
16338
16339 \begin_layout Standard
16340 This module facilitates the use of named theorems.
16341  The name of the theorem can be inserted via 
16342 \family sans
16343 Insert\SpecialChar menuseparator
16344 Additional Theorem Text
16345 \family default
16346 .
16347 \end_layout
16348
16349 \begin_layout Subsection
16350 Standard Theorems (Numbered by Chapter)
16351 \end_layout
16352
16353 \begin_layout Standard
16354 This module numbers theorems and the like by chapter (i.e.,
16355  the counter is reset at each chapter start).
16356  Use this module only with document classes that provide a chapter environment.
16357 \end_layout
16358
16359 \begin_layout Standard
16360 One of the modules 
16361 \family sans
16362 AMS Theorems
16363 \family default
16364  or 
16365 \family sans
16366 Standard Theorems
16367 \family default
16368  must be loaded.
16369 \end_layout
16370
16371 \begin_layout Standard
16372 It cannot be used if the module
16373 \family sans
16374  Standard Theorems (Numbered by Section)
16375 \family default
16376  has been loaded.
16377 \end_layout
16378
16379 \begin_layout Subsection
16380 Standard Theorems (Numbered by Section)
16381 \end_layout
16382
16383 \begin_layout Standard
16384 This module numbers theorems and the like by section (i.e.,
16385  the counter is reset at each section start).
16386  One of the modules 
16387 \family sans
16388 AMS Theorems
16389 \family default
16390  or 
16391 \family sans
16392 Standard Theorems
16393 \family default
16394  must be loaded.
16395  It cannot be used if the module
16396 \family sans
16397  Standard Theorems (Numbered by Chapter)
16398 \family default
16399  has been loaded.
16400 \end_layout
16401
16402 \begin_layout Subsection
16403 Standard Theorems (Numbered by Type within Chapters)
16404 \end_layout
16405
16406 \begin_layout Standard
16407 This module defines some theorem environments for use with non-AMS classes.
16408  Unlike the
16409 \family sans
16410  AMS Theorems
16411 \family default
16412  and 
16413 \family sans
16414 Standard Theorems
16415 \family default
16416  modules,
16417  the different theorem types provided here each have a separate counter (e.g.,
16418  
16419 \emph on
16420 Theorem 1
16421 \emph default
16422 ,
16423  
16424 \emph on
16425 Theorem 2
16426 \emph default
16427 ,
16428  
16429 \emph on
16430 Lemma 1
16431 \emph default
16432 ,
16433  
16434 \emph on
16435 Proposition 1
16436 \emph default
16437 ,
16438  
16439 \emph on
16440 Theorem 3
16441 \emph default
16442 ,
16443  
16444 \emph on
16445 Lemma 2
16446 \emph default
16447 ,
16448  \SpecialChar ldots
16449 ,
16450  as opposed to 
16451 \emph on
16452 Theorem 1
16453 \emph default
16454 ,
16455  
16456 \emph on
16457 Theorem 2
16458 \emph default
16459 ,
16460  
16461 \emph on
16462 Lemma 3
16463 \emph default
16464 ,
16465  
16466 \emph on
16467 Proposition 4
16468 \emph default
16469 ,
16470  \SpecialChar ldots
16471 ).
16472  The numbering is reset at each chapter start.
16473 \end_layout
16474
16475 \begin_layout Standard
16476 One of the modules 
16477 \family sans
16478 AMS Theorems (Numbered by Type)
16479 \family default
16480  or 
16481 \family sans
16482 Standard Theorems (Numbered by Type)
16483 \family default
16484  must be loaded.
16485 \end_layout
16486
16487 \begin_layout Standard
16488 It cannot be used if any of the modules
16489 \family sans
16490  AMS Theorems
16491 \family default
16492 ,
16493  
16494 \family sans
16495 Standard Theorems
16496 \family default
16497 ,
16498  
16499 \family sans
16500 Standard Theorems (Unnumbered)
16501 \family default
16502 ,
16503
16504 \family sans
16505  Standard Theorems (Numbered by Sections)
16506 \family default
16507  or 
16508 \family sans
16509 Standard Theorems (Numbered by Type within Sections)
16510 \family default
16511  have been loaded.
16512 \end_layout
16513
16514 \begin_layout Subsection
16515 Standard Theorems (Numbered by Type within Sections)
16516 \end_layout
16517
16518 \begin_layout Standard
16519 This module defines some theorem environments for use with non-AMS classes.
16520  Unlike the
16521 \family sans
16522  AMS Theorems
16523 \family default
16524  and 
16525 \family sans
16526 Standard Theorems
16527 \family default
16528  modules,
16529  the different theorem types provided here each have a separate counter (e.g.,
16530  
16531 \emph on
16532 Theorem 1
16533 \emph default
16534 ,
16535  
16536 \emph on
16537 Theorem 2
16538 \emph default
16539 ,
16540  
16541 \emph on
16542 Lemma 1
16543 \emph default
16544 ,
16545  
16546 \emph on
16547 Proposition 1
16548 \emph default
16549 ,
16550  
16551 \emph on
16552 Theorem 3
16553 \emph default
16554 ,
16555  
16556 \emph on
16557 Lemma 2
16558 \emph default
16559 ,
16560  \SpecialChar ldots
16561 ,
16562  as opposed to 
16563 \emph on
16564 Theorem 1
16565 \emph default
16566 ,
16567  
16568 \emph on
16569 Theorem 2
16570 \emph default
16571 ,
16572  
16573 \emph on
16574 Lemma 3
16575 \emph default
16576 ,
16577  
16578 \emph on
16579 Proposition 4
16580 \emph default
16581 ,
16582  \SpecialChar ldots
16583 ).
16584  The numbering is reset at each section start.
16585 \end_layout
16586
16587 \begin_layout Standard
16588 One of the modules 
16589 \family sans
16590 AMS Theorems (Numbered by Type)
16591 \family default
16592  or 
16593 \family sans
16594 Standard Theorems (Numbered by Type)
16595 \family default
16596  must be loaded.
16597 \end_layout
16598
16599 \begin_layout Standard
16600 It cannot be used if any of the modules
16601 \family sans
16602  AMS Theorems
16603 \family default
16604 ,
16605  
16606 \family sans
16607 Standard Theorems
16608 \family default
16609 ,
16610  
16611 \family sans
16612 Standard Theorems (Unnumbered)
16613 \family default
16614 ,
16615
16616 \family sans
16617  Standard Theorems (Numbered by Chapters)
16618 \family default
16619  or 
16620 \family sans
16621 Standard Theorems (Numbered by Type within Chapters)
16622 \family default
16623  have been loaded.
16624 \end_layout
16625
16626 \begin_layout Subsection
16627 Standard Theorems (Numbered by Type)
16628 \end_layout
16629
16630 \begin_layout Standard
16631 This module defines some theorem environments for use with non-AMS classes.
16632  Unlike the 
16633 \family sans
16634 AMS Theorems
16635 \family default
16636  and 
16637 \family sans
16638 Standard Theorems
16639 \family default
16640  modules,
16641  the different theorem types provided here each have a separate counter (e.g.,
16642  
16643 \emph on
16644 Theorem 1
16645 \emph default
16646 ,
16647  
16648 \emph on
16649 Theorem 2
16650 \emph default
16651 ,
16652  
16653 \emph on
16654 Lemma 1
16655 \emph default
16656 ,
16657  
16658 \emph on
16659 Proposition 1
16660 \emph default
16661 ,
16662  
16663 \emph on
16664 Theorem 3
16665 \emph default
16666 ,
16667  
16668 \emph on
16669 Lemma 2
16670 \emph default
16671 ,
16672  \SpecialChar ldots
16673 ,
16674  as opposed to 
16675 \emph on
16676 Theorem 1
16677 \emph default
16678 ,
16679  
16680 \emph on
16681 Theorem 2
16682 \emph default
16683 ,
16684  
16685 \emph on
16686 Lemma 3
16687 \emph default
16688 ,
16689  
16690 \emph on
16691 Proposition 4
16692 \emph default
16693 ,
16694  \SpecialChar ldots
16695 ).
16696  The numbering’s scope is the whole document.
16697  For chapter- and section-wide numbering,
16698  use one of the “within Chapters”/“within Sections” modules,
16699  respectively.
16700 \end_layout
16701
16702 \begin_layout Standard
16703 It cannot be used if any of the modules
16704 \family sans
16705  AMS Theorems
16706 \family default
16707 ,
16708  
16709 \family sans
16710 Standard Theorems
16711 \family default
16712 ,
16713  
16714 \family sans
16715 Standard Theorems (Unnumbered)
16716 \family default
16717  or
16718 \family sans
16719  AMS Theorems (Numbered by Type)
16720 \family default
16721  have been loaded.
16722 \end_layout
16723
16724 \begin_layout Subsection
16725 Standard Theorems (Unnumbered)
16726 \end_layout
16727
16728 \begin_layout Standard
16729 This module defines only unnumbered theorem environments and the proof environment,
16730  using the extended AMS machinery.
16731  It cannot be used if either of the modules
16732 \family sans
16733  AMS Theorems
16734 \family default
16735  or
16736 \family sans
16737  Standard Theorems
16738 \family default
16739  have been loaded.
16740 \end_layout
16741
16742 \begin_layout Subsection
16743 Subequations
16744 \end_layout
16745
16746 \begin_layout Standard
16747 This module provides a straightforward way to segregate subequations in LyX.
16748  See 
16749 \family sans
16750 Help\SpecialChar menuseparator
16751 Math\SpecialChar menuseparator
16752 Subnumbering
16753 \family default
16754 .
16755 \end_layout
16756
16757 \begin_layout Section
16758 Page Layout
16759 \end_layout
16760
16761 \begin_layout Subsection
16762 Custom Header/Footer Text
16763 \end_layout
16764
16765 \begin_layout Standard
16766 This module requires the 
16767 \family sans
16768 Page
16769 \begin_inset space ~
16770 \end_inset
16771
16772
16773 \bar under
16774 s
16775 \bar default
16776 tyle
16777 \family default
16778  option in the 
16779 \family sans
16780 \bar under
16781 D
16782 \bar default
16783 ocument\SpecialChar menuseparator
16784
16785 \bar under
16786 S
16787 \bar default
16788 ettings\SpecialChar menuseparator
16789 Page
16790 \begin_inset space ~
16791 \end_inset
16792
16793 Layout
16794 \family default
16795  dialog to be set to 
16796 \family typewriter
16797 fancy
16798 \family default
16799 .
16800  It adds six environments to document classes which support the 
16801 \family typewriter
16802 fancyhdr
16803 \family default
16804  package:
16805 \end_layout
16806
16807 \begin_layout Itemize
16808
16809 \family sans
16810 Left Header
16811 \end_layout
16812
16813 \begin_layout Itemize
16814
16815 \family sans
16816 Center Header
16817 \end_layout
16818
16819 \begin_layout Itemize
16820
16821 \family sans
16822 Right Header
16823 \end_layout
16824
16825 \begin_layout Itemize
16826
16827 \family sans
16828 Left Footer
16829 \end_layout
16830
16831 \begin_layout Itemize
16832
16833 \family sans
16834 Center Footer
16835 \end_layout
16836
16837 \begin_layout Itemize
16838
16839 \family sans
16840 Right Footer
16841 \end_layout
16842
16843 \begin_layout Subsubsection
16844 Fancy Headers and Footers
16845 \end_layout
16846
16847 \begin_layout Standard
16848 The default page layout is rather plain;
16849  for an 
16850 \family sans
16851 Article (Standard Class)
16852 \family default
16853  document class,
16854  all you get is a centered page number at the bottom of the page.
16855  This document uses the 
16856 \family sans
16857 KOMA-Script Book
16858 \family default
16859  class;
16860  so it appears to be a bit fancier.
16861 \end_layout
16862
16863 \begin_layout Standard
16864 Once the 
16865 \family sans
16866 Page
16867 \begin_inset space ~
16868 \end_inset
16869
16870
16871 \bar under
16872 s
16873 \bar default
16874 tyle
16875 \family default
16876  in 
16877 \family sans
16878 \bar under
16879 D
16880 \bar default
16881 ocument\SpecialChar menuseparator
16882
16883 \bar under
16884 S
16885 \bar default
16886 ettings\SpecialChar menuseparator
16887 Page Layout
16888 \family default
16889  is set to 
16890 \begin_inset Quotes eld
16891 \end_inset
16892
16893 fancy
16894 \begin_inset Quotes erd
16895 \end_inset
16896
16897 ,
16898  you will find that the page header is divided into three fields,
16899  not surprisingly labeled 
16900 \begin_inset Quotes eld
16901 \end_inset
16902
16903 left
16904 \begin_inset Quotes erd
16905 \end_inset
16906
16907 ,
16908  
16909 \begin_inset Quotes eld
16910 \end_inset
16911
16912 center
16913 \begin_inset Quotes erd
16914 \end_inset
16915
16916 ,
16917  and 
16918 \begin_inset Quotes eld
16919 \end_inset
16920
16921 right
16922 \begin_inset Quotes erd
16923 \end_inset
16924
16925 .
16926  The footer is also divided into these three fields.
16927  The \SpecialChar LaTeX
16928  commands to set these fields in the simplest manner are 
16929 \family typewriter
16930
16931 \backslash
16932 lhead
16933 \family default
16934 ,
16935  
16936 \family typewriter
16937
16938 \backslash
16939 chead
16940 \family default
16941 ,
16942  
16943 \family typewriter
16944
16945 \backslash
16946 rhead
16947 \family default
16948 ,
16949  
16950 \family typewriter
16951
16952 \backslash
16953 lfoot
16954 \family default
16955 ,
16956  etc.
16957  Suppose you wish to put your name in the upper left hand corner of each page.
16958  Simply insert the following command in the preamble:
16959 \end_layout
16960
16961 \begin_layout LyX-Code
16962
16963 \backslash
16964 lhead{John Q.
16965  DocWriter}
16966 \end_layout
16967
16968 \begin_layout Standard
16969 You will now see your name in the upper left.
16970  If a field has a default entry that you would like to get rid of (often the page number appears in the central footer) simply include a command with a blank argument,
16971  e.
16972 \begin_inset space \thinspace{}
16973 \end_inset
16974
16975 g.:
16976 \end_layout
16977
16978 \begin_layout LyX-Code
16979
16980 \backslash
16981 cfoot{}
16982 \end_layout
16983
16984 \begin_layout Standard
16985 There is,
16986  however,
16987  an easier way to make simple changes.
16988  If you load the 
16989 \family sans
16990 \bar under
16991 D
16992 \bar default
16993 ocument\SpecialChar menuseparator
16994
16995 \bar under
16996 S
16997 \bar default
16998 ettings\SpecialChar menuseparator
16999 Modules\SpecialChar menuseparator
17000 Page Layout\SpecialChar menuseparator
17001 Custom Header/Footer Text
17002 \family default
17003  module,
17004  you will find you have six new environments corresponding to the six fields described above.
17005 \end_layout
17006
17007 \begin_layout Standard
17008 Let's get really fancy:
17009  lets put the section number with the word 
17010 \begin_inset Quotes eld
17011 \end_inset
17012
17013 Section
17014 \begin_inset Quotes erd
17015 \end_inset
17016
17017  (e.
17018 \begin_inset space \thinspace{}
17019 \end_inset
17020
17021 g.
17022 \begin_inset space \space{}
17023 \end_inset
17024
17025 Section 3) in the upper left,
17026  the page number (e.
17027 \begin_inset space \thinspace{}
17028 \end_inset
17029
17030 g.
17031 \begin_inset space \space{}
17032 \end_inset
17033
17034 Page 4) in the upper right,
17035  your name in the lower left,
17036  and the date in the lower right.
17037  Use your newly enabled environments to add these entries:
17038 \end_layout
17039
17040 \begin_layout LyX-Code
17041
17042 \family sans
17043 Left
17044 \begin_inset space ~
17045 \end_inset
17046
17047 header:
17048
17049 \family default
17050 \series bold
17051  
17052 \family roman
17053 \series default
17054 Section
17055 \family typewriter
17056  
17057 \family default
17058
17059 \backslash
17060 thesection
17061 \end_layout
17062
17063 \begin_layout LyX-Code
17064
17065 \family sans
17066 Center header:
17067 \end_layout
17068
17069 \begin_layout LyX-Code
17070
17071 \family sans
17072 Right header:
17073
17074 \family default
17075  
17076 \family roman
17077 Page
17078 \family typewriter
17079  
17080 \family default
17081
17082 \backslash
17083 thepage
17084 \end_layout
17085
17086 \begin_layout LyX-Code
17087
17088 \family sans
17089 Left footer:
17090
17091 \family default
17092  
17093 \family roman
17094 John Q.
17095  DocWriter
17096 \end_layout
17097
17098 \begin_layout LyX-Code
17099
17100 \family sans
17101 Center footer:
17102 \end_layout
17103
17104 \begin_layout LyX-Code
17105
17106 \family sans
17107 Right footer:
17108
17109 \family default
17110 \series bold
17111  
17112 \series default
17113
17114 \backslash
17115 today
17116 \end_layout
17117
17118 \begin_layout Standard
17119 Make sure you enter the commands 
17120 \family typewriter
17121
17122 \backslash
17123 thesection
17124 \family default
17125 ,
17126  
17127 \family typewriter
17128
17129 \backslash
17130 thepage
17131 \family default
17132  and 
17133 \family typewriter
17134
17135 \backslash
17136 today
17137 \family default
17138  as \SpecialChar TeX
17139  Code commands
17140 \series bold
17141 .
17142
17143 \series default
17144  The commands 
17145 \family typewriter
17146
17147 \backslash
17148 thesection
17149 \family default
17150  and
17151 \family typewriter
17152  
17153 \backslash
17154 thepage
17155 \family default
17156  access \SpecialChar LaTeX
17157 ’s section and page counters,
17158  and so print out the current section and page numbers.
17159  
17160 \family typewriter
17161
17162 \backslash
17163 today
17164 \family default
17165  simply prints out today’s date.
17166 \end_layout
17167
17168 \begin_layout Standard
17169 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
17170  If you don't want one of the rules,
17171  set its thickness to 0.
17172  The header rule has a default thickness of 0.4pt,
17173  the footer rule is 0pt.
17174  For this you will need to use \SpecialChar TeX
17175  Code commands like
17176 \end_layout
17177
17178 \begin_layout Standard
17179
17180 \family typewriter
17181
17182 \backslash
17183 renewcommand{
17184 \backslash
17185 headrulewidth}{0.4pt}
17186 \family default
17187  and
17188 \end_layout
17189
17190 \begin_layout Standard
17191
17192 \family typewriter
17193
17194 \backslash
17195 renewcommand{
17196 \backslash
17197 footrulewidth}{0.4pt}
17198 \family default
17199  to set the thicknesses.
17200 \end_layout
17201
17202 \begin_layout Standard
17203 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
17204  Code commands like 
17205 \family typewriter
17206
17207 \backslash
17208 thispagestyle{empty}
17209 \family default
17210 ,
17211  
17212 \family typewriter
17213
17214 \backslash
17215 thispagestyle{plain}
17216 \family default
17217 ,
17218  and 
17219 \family typewriter
17220
17221 \backslash
17222 thispagestyle{fancy}
17223 \family default
17224 .
17225  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
17226  code.
17227  In fact,
17228  title pages are marked as plain by default,
17229  while following pages are marked fancy when using the global fancy setting.
17230 \end_layout
17231
17232 \begin_layout Standard
17233 If you want a header or footer to be on the outer side of a two sided document,
17234  you need to use something like:
17235 \end_layout
17236
17237 \begin_layout LyX-Code
17238
17239 \backslash
17240 fancyfoot{}
17241 \end_layout
17242
17243 \begin_layout LyX-Code
17244
17245 \backslash
17246 fancyfoot[LE,RO]{
17247 \backslash
17248 thepage}
17249 \end_layout
17250
17251 \begin_layout Standard
17252 The first command clears all existing footers avoiding any conflicts with your new command.
17253 \end_layout
17254
17255 \begin_layout Standard
17256 You can enter any of these commands,
17257  the simpler ones in any of your new environments,
17258  the more complex ones as \SpecialChar TeX
17259  Code commands,
17260  at any point in your document and they will take effect on the next page.
17261 \end_layout
17262
17263 \begin_layout Standard
17264 As a final example,
17265  it is possible to include an image in the header or footer.
17266  Suppose you want to put a company logo in the upper left hand corner.
17267  You might try something like this in 
17268 \family sans
17269 Document\SpecialChar menuseparator
17270 Settings\SpecialChar menuseparator
17271 LaTeX Preamble
17272 \family default
17273 :
17274 \end_layout
17275
17276 \begin_layout LyX-Code
17277
17278 \backslash
17279 lhead{
17280 \backslash
17281 resizebox{1in}{!}{
17282 \backslash
17283 includegraphics{logo.png}}}
17284 \end_layout
17285
17286 \begin_layout Standard
17287 \noindent
17288 You may need to preface this with 
17289 \family typewriter
17290
17291 \backslash
17292 usepackage{graphics}
17293 \family default
17294  if you don't include graphics elsewhere in your document.
17295 \end_layout
17296
17297 \begin_layout Standard
17298 For more information on fancy headers,
17299  you can get the 
17300 \begin_inset Flex Code
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304 fancyhdr
17305 \end_layout
17306
17307 \end_inset
17308
17309  documentation from 
17310 \begin_inset CommandInset href
17311 LatexCommand href
17312 name "CTAN"
17313 target "http://www.ctan.org/pkg/fancyhdr"
17314 literal "false"
17315
17316 \end_inset
17317
17318 .
17319 \end_layout
17320
17321 \begin_layout Subsection
17322 Landscape Document Parts
17323 \end_layout
17324
17325 \begin_layout Standard
17326 This module outputs parts of the document in landscape mode using 
17327 \family sans
17328 Insert\SpecialChar menuseparator
17329 Custom Insets\SpecialChar menuseparator
17330 Landscape
17331 \family default
17332  or 
17333 \family sans
17334 Insert\SpecialChar menuseparator
17335 Custom Insets\SpecialChar menuseparator
17336 Landscape (Floating)
17337 \family default
17338 .
17339 \end_layout
17340
17341 \begin_layout Subsection
17342 \begin_inset CommandInset label
17343 LatexCommand label
17344 name "sec:Multiple-Columns"
17345
17346 \end_inset
17347
17348 Multiple Columns
17349 \end_layout
17350
17351 \begin_layout Standard
17352 This module uses the 
17353 \family sans
17354 multicol
17355 \family default
17356
17357 \begin_inset Index idx
17358 range none
17359 pageformat default
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 \SpecialChar LaTeX
17364 -packages !
17365  multicol
17366 \end_layout
17367
17368 \end_inset
17369
17370  package and is independent of the option 
17371 \family sans
17372 Two-
17373 \bar under
17374 c
17375 \bar default
17376 olumn document
17377 \family default
17378  in the 
17379 \family sans
17380 \bar under
17381 D
17382 \bar default
17383 ocument\SpecialChar menuseparator
17384
17385 \bar under
17386 S
17387 \bar default
17388 ettings\SpecialChar menuseparator
17389 Text
17390 \begin_inset space ~
17391 \end_inset
17392
17393 Layout
17394 \family default
17395  dialog.
17396  If you want to have two columns for the whole document,
17397  you are recommended to use the 
17398 \family sans
17399 Two-
17400 \bar under
17401 c
17402 \bar default
17403 olumn document
17404 \family default
17405  option.
17406  For all other cases use this module.
17407 \end_layout
17408
17409 \begin_layout Standard
17410 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
17411  Within the different columns you can use everything,
17412  with the limitation that for floats you need to check the option 
17413 \family sans
17414 \bar under
17415 S
17416 \bar default
17417 pan
17418 \begin_inset space ~
17419 \end_inset
17420
17421 columns
17422 \family default
17423  in 
17424 \family sans
17425 \bar under
17426 E
17427 \bar default
17428 dit\SpecialChar menuseparator
17429 Flo
17430 \bar under
17431 a
17432 \bar default
17433 t
17434 \begin_inset space ~
17435 \end_inset
17436
17437 Settings
17438 \family default
17439 .
17440 \end_layout
17441
17442 \begin_layout Subsubsection
17443 Basics
17444 \end_layout
17445
17446 \begin_layout Standard
17447 If you want to have two columns in your text,
17448  insert a multicolumn inset via the menu 
17449 \family sans
17450 Insert\SpecialChar menuseparator
17451 Custom
17452 \begin_inset space ~
17453 \end_inset
17454
17455 Insets\SpecialChar menuseparator
17456 Multiple
17457 \begin_inset space ~
17458 \end_inset
17459
17460 Columns
17461 \family default
17462  where the columns should start.
17463  Write all text that should be printed in 2
17464 \begin_inset space ~
17465 \end_inset
17466
17467 columns into this inset.
17468 \end_layout
17469
17470 \begin_layout Standard
17471 Here is an example:
17472 \end_layout
17473
17474 \begin_layout Standard
17475 \noindent
17476 \begin_inset Flex Multiple Columns
17477 status open
17478
17479 \begin_layout Plain Layout
17480 \noindent
17481
17482 \series bold
17483 \size small
17484 The Adventure of the Empty House
17485 \series default
17486
17487 \begin_inset Newline newline
17488 \end_inset
17489
17490 by 
17491 \noun on
17492 Sir Arthur Conan Doyle
17493 \end_layout
17494
17495 \begin_layout Plain Layout
17496
17497 \size small
17498 It was in the spring of the year 1894 that all London was interested,
17499  and the fashionable world dismayed,
17500  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
17501  The public has already learned those particulars of the crime which came out in the police investigation,
17502  but a good deal was suppressed upon that occasion,
17503  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
17504  Only now,
17505  at the end of nearly ten years,
17506  am I allowed to supply those missing links which make up the whole of that remarkable chain.
17507  The crime was of interest in itself,
17508  but that interest was as nothing to me compared to the inconceivable sequel,
17509  which afforded me the greatest shock and surprise of any event in my adventurous life.
17510  Even now,
17511  after this long interval,
17512  I find myself thrilling as I think of it,
17513  and feeling once more that sudden flood of joy,
17514  amazement,
17515  and incredulity which utterly submerged my mind.
17516  Let me say to that public,
17517  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
17518  that they are not to blame me if I have not shared my knowledge with them,
17519  for I should have considered it my first duty to do so,
17520  had I not been barred by a positive prohibition from his own lips,
17521  which was only withdrawn upon the third of last month.
17522 \end_layout
17523
17524 \end_inset
17525
17526
17527 \end_layout
17528
17529 \begin_layout Standard
17530 To get 3 or more columns,
17531  set the cursor into the multicolumn inset and use the menu 
17532 \family sans
17533 Insert\SpecialChar menuseparator
17534 Number
17535 \begin_inset space ~
17536 \end_inset
17537
17538 of
17539 \begin_inset space ~
17540 \end_inset
17541
17542 Columns
17543 \family default
17544 .
17545  The number of the desired columns is written into that inset (for 3
17546 \begin_inset space ~
17547 \end_inset
17548
17549 columns write 
17550 \begin_inset Quotes eld
17551 \end_inset
17552
17553 3
17554 \begin_inset Quotes erd
17555 \end_inset
17556
17557 ).
17558 \begin_inset Newline newline
17559 \end_inset
17560
17561 Here is an example with 3
17562 \begin_inset space ~
17563 \end_inset
17564
17565 columns:
17566 \end_layout
17567
17568 \begin_layout Standard
17569 \begin_inset Flex Multiple Columns
17570 status open
17571
17572 \begin_layout Plain Layout
17573
17574 \size footnotesize
17575 \begin_inset Argument 1
17576 status open
17577
17578 \begin_layout Plain Layout
17579
17580 3
17581 \end_layout
17582
17583 \end_inset
17584
17585 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
17586  and that after his disappearance I never failed to read with care the various problems which came before the public.
17587  And I even attempted,
17588  more than once,
17589  for my own private satisfaction,
17590  to employ his methods in their solution,
17591  though with indifferent success.
17592  There was none,
17593  however,
17594  which appealed to me like this tragedy of Ronald Adair.
17595  As I read the evidence at the inquest,
17596  which led up to a verdict of willful murder against some person or persons unknown,
17597  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
17598  There were points about this strange business which would,
17599  I was sure,
17600  have specially appealed to him,
17601  and the efforts of the police would have been supplemented,
17602  or more probably anticipated,
17603  by the trained observation and the alert mind of the first criminal agent in Europe.
17604  All day,
17605  as I drove upon my round,
17606  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
17607  At the risk of telling a twice-told tale,
17608  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
17609 \end_layout
17610
17611 \end_inset
17612
17613
17614 \end_layout
17615
17616 \begin_layout Standard
17617 You can have up to 10
17618 \begin_inset space ~
17619 \end_inset
17620
17621 columns if you want to,
17622  but that might not be very pleasant for the readers of your document.
17623 \end_layout
17624
17625 \begin_layout Subsubsection
17626 Columns inside Columns
17627 \end_layout
17628
17629 \begin_layout Standard
17630 You can also have columns inside columns:
17631 \end_layout
17632
17633 \begin_layout Standard
17634 \begin_inset Flex Multiple Columns
17635 status open
17636
17637 \begin_layout Plain Layout
17638
17639 \size footnotesize
17640 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
17641  at that time governor of one of the Australian colonies.
17642  Adair's mother had returned from Australia to undergo the operation for cataract,
17643  and she,
17644  her son Ronald,
17645  and her daughter Hilda were living together at 427 Park Lane.
17646 \end_layout
17647
17648 \begin_layout Plain Layout
17649 \begin_inset Flex Multiple Columns
17650 status open
17651
17652 \begin_layout Plain Layout
17653
17654 \size footnotesize
17655 The youth moved in the best society
17656 \begin_inset space ~
17657 \end_inset
17658
17659 – had,
17660  so far as was known,
17661  no enemies and no particular vices.
17662  He had been engaged to Miss Edith Woodley,
17663  of Carstairs,
17664  but the engagement had been broken off by mutual consent some months before,
17665  and there was no sign that it had left any very profound feeling behind it.
17666  For the rest {sic} the man's life moved in a narrow and conventional circle,
17667  for his habits were quiet and his nature unemotional.
17668  Yet it was upon this easy-going young aristocrat that death came,
17669  in most strange and unexpected form,
17670  between the hours of ten and eleven-twenty on the night of March 30,
17671  1894.
17672 \end_layout
17673
17674 \end_inset
17675
17676
17677 \end_layout
17678
17679 \begin_layout Plain Layout
17680
17681 \size footnotesize
17682 Ronald Adair was fond of cards
17683 \begin_inset space ~
17684 \end_inset
17685
17686 – playing continually,
17687  but never for such stakes as would hurt him.
17688  He was a member of the Baldwin,
17689  the Cavendish,
17690  and the Bagatelle card clubs.
17691  It was shown that,
17692  after dinner on the day of his death,
17693  he had played a rubber of whist at the latter club.
17694  He had also played there in the afternoon.
17695
17696 \size default
17697  
17698 \size footnotesize
17699 The evidence of those who had played with him
17700 \begin_inset space ~
17701 \end_inset
17702
17703 – Mr.
17704  Murray,
17705  Sir John Hardy,
17706  and Colonel Moran
17707 \begin_inset space ~
17708 \end_inset
17709
17710 – showed that the game was whist,
17711  and that there was a fairly equal fall of the cards.
17712  Adair might have lost five pounds,
17713  but not more.
17714  His fortune was a considerable one,
17715  and such a loss could not in any way affect him.
17716  He had played nearly every day at one club or other,
17717  but he was a cautious player,
17718  and usually rose a winner.
17719  It came out in evidence that,
17720  in partnership with Colonel Moran,
17721  he had actually won as much as four hundred and twenty pounds in a sitting,
17722  some weeks before,
17723  from Godfrey Milner and Lord Balmoral.
17724  So much for his recent history as it came out at the inquest.
17725 \end_layout
17726
17727 \end_inset
17728
17729
17730 \end_layout
17731
17732 \begin_layout Subsubsection
17733 Advanced Examples
17734 \end_layout
17735
17736 \begin_layout Standard
17737 The examples in this section show some more special features of multiple columns.
17738 \end_layout
17739
17740 \begin_layout Standard
17741 For more features of multiple columns,
17742  have a look at the 
17743 \begin_inset CommandInset href
17744 LatexCommand href
17745 name "documentation"
17746 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
17747 literal "false"
17748
17749 \end_inset
17750
17751  of the \SpecialChar LaTeX
17752 -package 
17753 \begin_inset Flex Code
17754 status collapsed
17755
17756 \begin_layout Plain Layout
17757 multicol
17758 \end_layout
17759
17760 \end_inset
17761
17762 .
17763 \end_layout
17764
17765 \begin_layout Paragraph
17766 Preface
17767 \end_layout
17768
17769 \begin_layout Standard
17770 To add a preface text for multiple columns,
17771  set the cursor into the multicolumn inset and use the menu 
17772 \family sans
17773 Insert\SpecialChar menuseparator
17774 Preface
17775 \family default
17776 .
17777  Write your preface text into that inset.
17778 \begin_inset Newline newline
17779 \end_inset
17780
17781 This is an example with some preface text:
17782 \end_layout
17783
17784 \begin_layout Standard
17785 \begin_inset VSpace bigskip
17786 \end_inset
17787
17788
17789 \end_layout
17790
17791 \begin_layout Standard
17792 \begin_inset Flex Multiple Columns
17793 status open
17794
17795 \begin_layout Plain Layout
17796 \begin_inset Argument 2
17797 status open
17798
17799 \begin_layout Plain Layout
17800 And the story continues and continues and continues and continues\SpecialChar ldots
17801
17802 \end_layout
17803
17804 \end_inset
17805
17806
17807 \size small
17808 On the evening of the crime,
17809  he returned from the club exactly at ten.
17810  His mother and sister were out spending the evening with a relation.
17811  The servant deposed that she heard him enter the front room on the second floor,
17812  generally used as his sitting-room.
17813  She had lit a fire there,
17814  and as it smoked she had opened the window.
17815  No sound was heard from the room until eleven-twenty,
17816  the hour of the return of Lady Maynooth and her daughter.
17817  Desiring to say good-night,
17818  she attempted to enter her son's room.
17819  The door was locked on the inside,
17820  and no answer could be got to their cries and knocking.
17821  Help was obtained,
17822  and the door forced.
17823  The unfortunate young man was found lying near the table.
17824  His head had been horribly mutilated by an expanding revolver bullet,
17825  but no weapon of any sort was to be found in the room.
17826 \end_layout
17827
17828 \end_inset
17829
17830
17831 \end_layout
17832
17833 \begin_layout Standard
17834 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
17835  Code.
17836  For example the command
17837 \end_layout
17838
17839 \begin_layout LyX-Code
17840
17841 \backslash
17842 subsection{subsection title}
17843 \end_layout
17844
17845 \begin_layout Standard
17846 creates a subsection.
17847  In this example the preface is a subsubsection:
17848 \end_layout
17849
17850 \begin_layout Standard
17851 \begin_inset Flex Multiple Columns
17852 status open
17853
17854 \begin_layout Plain Layout
17855 \begin_inset Argument 2
17856 status open
17857
17858 \begin_layout Plain Layout
17859 \begin_inset ERT
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863
17864
17865 \backslash
17866 subsubsection{
17867 \end_layout
17868
17869 \end_inset
17870
17871 This is a subsubsection heading as a preface
17872 \begin_inset ERT
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876
17877 }
17878 \end_layout
17879
17880 \end_inset
17881
17882
17883 \end_layout
17884
17885 \end_inset
17886
17887
17888 \size small
17889 A minute examination of the circumstances served only to make the case more complex.
17890  In the first place,
17891  no reason could be given why the young man should have fastened the door upon the inside.
17892  There was the possibility that the murderer had done this,
17893  and had afterwards escaped by the window.
17894  The drop was at least twenty feet,
17895  however,
17896  and a bed of crocuses in full bloom lay beneath.
17897  Neither the flowers nor the earth showed any sign of having been disturbed,
17898  nor were there any marks upon the narrow strip of grass which separated the house from the road.
17899  Apparently,
17900  therefore,
17901  it was the young man himself who had fastened the door.
17902  But how did he come by his death?
17903  No one could have climbed up to the window without leaving traces.
17904  Suppose a man had fired through the window,
17905  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
17906  Again,
17907  Park Lane is a frequented thoroughfare;
17908  there is a cab stand within a hundred yards of the house.
17909  No one had heard a shot.
17910 \end_layout
17911
17912 \end_inset
17913
17914
17915 \end_layout
17916
17917 \begin_layout Standard
17918 If there is less vertical space than six text lines is left on the page at the beginning of the multiple columns,
17919  a page break will be inserted before the multiple columns.
17920  Depending on the number of lines of the preface text,
17921  you might want to change this space.
17922  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
17923 \family sans
17924 Insert\SpecialChar menuseparator
17925 Space
17926 \begin_inset space ~
17927 \end_inset
17928
17929 Before
17930 \begin_inset space ~
17931 \end_inset
17932
17933 Page
17934 \begin_inset space ~
17935 \end_inset
17936
17937 Break
17938 \family default
17939 .
17940  Insert into that inset the amount of space like e.
17941 \begin_inset space \thinspace{}
17942 \end_inset
17943
17944 g.
17945 \begin_inset space \space{}
17946 \end_inset
17947
17948
17949 \begin_inset Quotes eld
17950 \end_inset
17951
17952 5cm
17953 \begin_inset Quotes erd
17954 \end_inset
17955
17956 .
17957 \begin_inset Newline newline
17958 \end_inset
17959
17960 In this example the space is set to 7
17961 \begin_inset space ~
17962 \end_inset
17963
17964 text lines by using 
17965 \begin_inset Flex Code
17966 status collapsed
17967
17968 \begin_layout Plain Layout
17969 7
17970 \backslash
17971 baselineskip
17972 \end_layout
17973
17974 \end_inset
17975
17976  (where the command 
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981
17982 \backslash
17983 baselineskip
17984 \end_layout
17985
17986 \end_inset
17987
17988  needs to be inserted as \SpecialChar TeX
17989  code):
17990 \end_layout
17991
17992 \begin_layout Standard
17993 \begin_inset Flex Multiple Columns
17994 status open
17995
17996 \begin_layout Plain Layout
17997 \begin_inset Argument 3
17998 status open
17999
18000 \begin_layout Plain Layout
18001 7
18002 \begin_inset ERT
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006
18007
18008 \backslash
18009 baselineskip
18010 \end_layout
18011
18012 \end_inset
18013
18014
18015 \end_layout
18016
18017 \end_inset
18018
18019
18020 \size small
18021 On the evening of the crime,
18022  he returned from the club exactly at ten.
18023  His mother and sister were out spending the evening with a relation.
18024  The servant deposed that she heard him enter the front room on the second floor,
18025  generally used as his sitting-room.
18026  She had lit a fire there,
18027  and as it smoked she had opened the window.
18028  No sound was heard from the room until eleven-twenty,
18029  the hour of the return of Lady Maynooth and her daughter.
18030  Desiring to say good-night,
18031  she attempted to enter her son's room.
18032  The door was locked on the inside,
18033  and no answer could be got to their cries and knocking.
18034  Help was obtained,
18035  and the door forced.
18036  The unfortunate young man was found lying near the table.
18037  His head had been horribly mutilated by an expanding revolver bullet,
18038  but no weapon of any sort was to be found in the room.
18039 \end_layout
18040
18041 \end_inset
18042
18043
18044 \end_layout
18045
18046 \begin_layout Paragraph
18047 Surrounding Space
18048 \end_layout
18049
18050 \begin_layout Standard
18051 The amount of space before and after multiple columns can be changed by changing the length 
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056
18057 \backslash
18058 multicolsep
18059 \end_layout
18060
18061 \end_inset
18062
18063 .
18064  For example the command
18065 \end_layout
18066
18067 \begin_layout LyX-Code
18068
18069 \backslash
18070 setlength{
18071 \backslash
18072 multicolsep}{3cm}
18073 \end_layout
18074
18075 \begin_layout Standard
18076 in \SpecialChar TeX
18077  Code changes its value to 3
18078 \begin_inset space \thinspace{}
18079 \end_inset
18080
18081 cm.
18082  The change must be made before the multiple columns' start.
18083  The predefined value is 13
18084 \begin_inset space \thinspace{}
18085 \end_inset
18086
18087 pt.
18088 \end_layout
18089
18090 \begin_layout Standard
18091 For this example 
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096
18097 \backslash
18098 multicolsep
18099 \end_layout
18100
18101 \end_inset
18102
18103  was set to 2.5
18104 \begin_inset space \thinspace{}
18105 \end_inset
18106
18107 cm:
18108 \end_layout
18109
18110 \begin_layout Standard
18111 \begin_inset ERT
18112 status open
18113
18114 \begin_layout Plain Layout
18115
18116
18117 \backslash
18118 setlength{
18119 \backslash
18120 multicolsep}{2.5cm}
18121 \end_layout
18122
18123 \end_inset
18124
18125
18126 \end_layout
18127
18128 \begin_layout Standard
18129 \begin_inset Flex Multiple Columns
18130 status open
18131
18132 \begin_layout Plain Layout
18133
18134 \size small
18135 All day I turned these facts over in my mind,
18136  endeavouring to hit upon some theory which could reconcile them all,
18137  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
18138  I confess that I made little progress.
18139  In the evening I strolled across the Park,
18140  and found myself about six o'clock at the Oxford Street end of Park Lane.
18141  A group of loafers upon the pavements,
18142  all staring up at a particular window,
18143  directed me to the house which I had come to see.
18144  A tall,
18145  thin man with coloured glasses,
18146  whom I strongly suspected of being a plain-clothes detective,
18147  was pointing out some theory of his own,
18148  while the others crowded round to listen to what he said.
18149  I got as near him as I could,
18150  but his observations seemed to me to be absurd,
18151  so I withdrew again in some disgust.
18152  As I did so I struck against an elderly,
18153  deformed man,
18154  who had been behind me,
18155  and I knocked down several books which he was carrying.
18156 \end_layout
18157
18158 \end_inset
18159
18160
18161 \end_layout
18162
18163 \begin_layout Standard
18164 \begin_inset Note Greyedout
18165 status open
18166
18167 \begin_layout Plain Layout
18168
18169 \series bold
18170 Note:
18171
18172 \series default
18173  The values you set with 
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178
18179 \backslash
18180 setlength
18181 \end_layout
18182
18183 \end_inset
18184
18185  will be used for all following multiple columns until you change them again.
18186 \end_layout
18187
18188 \end_inset
18189
18190
18191 \end_layout
18192
18193 \begin_layout Standard
18194 \begin_inset ERT
18195 status collapsed
18196
18197 \begin_layout Plain Layout
18198
18199
18200 \backslash
18201 setlength{
18202 \backslash
18203 multicolsep}{13pt}
18204 \end_layout
18205
18206 \end_inset
18207
18208
18209 \begin_inset Note Note
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 go back to the default
18214 \end_layout
18215
18216 \end_inset
18217
18218
18219 \end_layout
18220
18221 \begin_layout Paragraph
18222 Column Breaks
18223 \end_layout
18224
18225 \begin_layout Standard
18226 A column break can be forced by inserting the command 
18227 \begin_inset Flex Code
18228 status collapsed
18229
18230 \begin_layout Plain Layout
18231
18232 \backslash
18233 columnbreak{}
18234 \end_layout
18235
18236 \end_inset
18237
18238  as \SpecialChar TeX
18239  Code to that position in the text where the column should be broken.
18240  Note that this leads in most cases to whitespace in the text.
18241 \begin_inset Newline newline
18242 \end_inset
18243
18244 Here is an example:
18245 \end_layout
18246
18247 \begin_layout Standard
18248 \begin_inset Flex Multiple Columns
18249 status open
18250
18251 \begin_layout Plain Layout
18252
18253 \size small
18254 \begin_inset Quotes eld
18255 \end_inset
18256
18257 You're surprised to see me,
18258  sir,
18259 \begin_inset Quotes erd
18260 \end_inset
18261
18262  said he,
18263  in a strange,
18264  croaking voice.
18265 \end_layout
18266
18267 \begin_layout Plain Layout
18268
18269 \size small
18270 I acknowledged that I was.
18271 \end_layout
18272
18273 \begin_layout Plain Layout
18274
18275 \size small
18276 \begin_inset Quotes eld
18277 \end_inset
18278
18279 Well,
18280  I've a conscience,
18281  sir,
18282  and when I chanced to see you go into this house,
18283  as I came hobbling after you,
18284  I thought to myself,
18285  I'll just step in and see that kind gentleman,
18286  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18287  and that I am much obliged to him for picking up my books.
18288 \begin_inset Quotes erd
18289 \end_inset
18290
18291
18292 \end_layout
18293
18294 \begin_layout Plain Layout
18295
18296 \size small
18297 \begin_inset Quotes eld
18298 \end_inset
18299
18300 You make too much of a trifle,
18301 \begin_inset Quotes erd
18302 \end_inset
18303
18304  said I.
18305  
18306 \begin_inset Quotes eld
18307 \end_inset
18308
18309 May I ask how you knew who I was?
18310 \begin_inset Quotes erd
18311 \end_inset
18312
18313  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
18314 \begin_inset ERT
18315 status collapsed
18316
18317 \begin_layout Plain Layout
18318
18319
18320 \backslash
18321 columnbreak{}
18322 \end_layout
18323
18324 \end_inset
18325
18326
18327 \end_layout
18328
18329 \begin_layout Plain Layout
18330
18331 \size small
18332 \begin_inset Quotes eld
18333 \end_inset
18334
18335 Well,
18336  sir,
18337  if it isn't too great a liberty,
18338  I am a neighbour of yours,
18339  for you'll find my little bookshop at the corner of Church Street,
18340  and very happy to see you,
18341  I am sure.
18342  Maybe you collect yourself,
18343  sir.
18344  Here's 
18345 \noun on
18346 British
18347 \begin_inset space ~
18348 \end_inset
18349
18350 Birds
18351 \noun default
18352 ,
18353  and 
18354 \noun on
18355 Catullus
18356 \noun default
18357 ,
18358  and 
18359 \noun on
18360 The Holy War
18361 \noun default
18362
18363 \begin_inset space ~
18364 \end_inset
18365
18366 – a bargain,
18367  every one of them.
18368  With five volumes you could just fill that gap on that second shelf.
18369  It looks untidy,
18370  does it not,
18371  sir?
18372 \begin_inset Quotes erd
18373 \end_inset
18374
18375
18376 \end_layout
18377
18378 \end_inset
18379
18380
18381 \end_layout
18382
18383 \begin_layout Paragraph
18384 Column Separation
18385 \end_layout
18386
18387 \begin_layout Standard
18388 The width of the columns is automatically calculated,
18389  but you can modify the space between the columns.
18390  This is done by changing the length 
18391 \begin_inset Flex Code
18392 status collapsed
18393
18394 \begin_layout Plain Layout
18395
18396 \backslash
18397 columnsep
18398 \end_layout
18399
18400 \end_inset
18401
18402 .
18403  Its predefined value is 10
18404 \begin_inset space \thinspace{}
18405 \end_inset
18406
18407 pt.
18408  Here is an example where 
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413
18414 \backslash
18415 columnsep
18416 \end_layout
18417
18418 \end_inset
18419
18420  is set to 3
18421 \begin_inset space \thinspace{}
18422 \end_inset
18423
18424 cm:
18425 \end_layout
18426
18427 \begin_layout Standard
18428 \begin_inset ERT
18429 status open
18430
18431 \begin_layout Plain Layout
18432
18433
18434 \backslash
18435 setlength{
18436 \backslash
18437 columnsep}{3cm}
18438 \end_layout
18439
18440 \end_inset
18441
18442
18443 \end_layout
18444
18445 \begin_layout Standard
18446 \begin_inset Flex Multiple Columns
18447 status open
18448
18449 \begin_layout Plain Layout
18450
18451 \size small
18452 My observations of No.
18453 \begin_inset space \space{}
18454 \end_inset
18455
18456 427 Park Lane did little to clear up the problem in which I was interested.
18457  The house was separated from the street by a low wall and railing,
18458  the whole not more than five feet high.
18459  It was perfectly easy,
18460  therefore,
18461  for anyone to get into the garden,
18462  but the window was entirely inaccessible,
18463  since there was no water pipe or anything which could help the most active man to climb it.
18464  More puzzled than ever,
18465  I retraced my steps to Kensington.
18466  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
18467  To my astonishment it was none other than my strange old book collector,
18468  his sharp,
18469  wizened face peering out from a frame of white hair,
18470  and his precious volumes,
18471  a dozen of them at least,
18472  wedged under his right arm.
18473 \end_layout
18474
18475 \end_inset
18476
18477
18478 \end_layout
18479
18480 \begin_layout Standard
18481 \begin_inset ERT
18482 status collapsed
18483
18484 \begin_layout Plain Layout
18485
18486
18487 \backslash
18488 setlength{
18489 \backslash
18490 columnsep}{10pt}
18491 \end_layout
18492
18493 \end_inset
18494
18495
18496 \begin_inset Note Note
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 go back to the default
18501 \end_layout
18502
18503 \end_inset
18504
18505
18506 \end_layout
18507
18508 \begin_layout Paragraph
18509 Vertical Lines
18510 \end_layout
18511
18512 \begin_layout Standard
18513 Between the columns a rule with a width of the length 
18514 \begin_inset Flex Code
18515 status collapsed
18516
18517 \begin_layout Plain Layout
18518
18519 \backslash
18520 columnseprule
18521 \end_layout
18522
18523 \end_inset
18524
18525  is placed.
18526  If this rule width is set to 0
18527 \begin_inset space \thinspace{}
18528 \end_inset
18529
18530 pt (this is the default),
18531  the rule is suppressed.
18532  In the following example the rule is 2
18533 \begin_inset space \thinspace{}
18534 \end_inset
18535
18536 pt wide:
18537 \end_layout
18538
18539 \begin_layout Standard
18540 \begin_inset ERT
18541 status open
18542
18543 \begin_layout Plain Layout
18544
18545
18546 \backslash
18547 setlength{
18548 \backslash
18549 columnseprule}{2pt}
18550 \end_layout
18551
18552 \end_inset
18553
18554
18555 \end_layout
18556
18557 \begin_layout Standard
18558 \begin_inset Flex Multiple Columns
18559 status open
18560
18561 \begin_layout Plain Layout
18562
18563 \size small
18564 \begin_inset Quotes eld
18565 \end_inset
18566
18567 You're surprised to see me,
18568  sir,
18569 \begin_inset Quotes erd
18570 \end_inset
18571
18572  said he,
18573  in a strange,
18574  croaking voice.
18575 \end_layout
18576
18577 \begin_layout Plain Layout
18578
18579 \size small
18580 I acknowledged that I was.
18581 \end_layout
18582
18583 \begin_layout Plain Layout
18584
18585 \size small
18586 \begin_inset Quotes eld
18587 \end_inset
18588
18589 Well,
18590  I've a conscience,
18591  sir,
18592  and when I chanced to see you go into this house,
18593  as I came hobbling after you,
18594  I thought to myself,
18595  I'll just step in and see that kind gentleman,
18596  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18597  and that I am much obliged to him for picking up my books.
18598 \begin_inset Quotes erd
18599 \end_inset
18600
18601
18602 \end_layout
18603
18604 \begin_layout Plain Layout
18605
18606 \size small
18607 \begin_inset Quotes eld
18608 \end_inset
18609
18610 You make too much of a trifle,
18611 \begin_inset Quotes erd
18612 \end_inset
18613
18614  said I.
18615  
18616 \begin_inset Quotes eld
18617 \end_inset
18618
18619 May I ask how you knew who I was?
18620 \begin_inset Quotes erd
18621 \end_inset
18622
18623
18624 \end_layout
18625
18626 \begin_layout Plain Layout
18627
18628 \size small
18629 \begin_inset Quotes eld
18630 \end_inset
18631
18632 Well,
18633  sir,
18634  if it isn't too great a liberty,
18635  I am a neighbour of yours,
18636  for you'll find my little bookshop at the corner of Church Street,
18637  and very happy to see you,
18638  I am sure.
18639  Maybe you collect yourself,
18640  sir.
18641  Here's 
18642 \noun on
18643 British
18644 \begin_inset space ~
18645 \end_inset
18646
18647 Birds
18648 \noun default
18649 ,
18650  and 
18651 \noun on
18652 Catullus
18653 \noun default
18654 ,
18655  and 
18656 \noun on
18657 The Holy War
18658 \noun default
18659
18660 \begin_inset space ~
18661 \end_inset
18662
18663 – a bargain,
18664  every one of them.
18665  With five volumes you could just fill that gap on that second shelf.
18666  It looks untidy,
18667  does it not,
18668  sir?
18669 \begin_inset Quotes erd
18670 \end_inset
18671
18672
18673 \end_layout
18674
18675 \end_inset
18676
18677
18678 \end_layout
18679
18680 \begin_layout Standard
18681 \begin_inset VSpace defskip
18682 \end_inset
18683
18684
18685 \end_layout
18686
18687 \begin_layout Standard
18688 The rule can be colored by redefining the command 
18689 \begin_inset Flex Code
18690 status collapsed
18691
18692 \begin_layout Plain Layout
18693
18694 \backslash
18695 columnseprulecolor
18696 \end_layout
18697
18698 \end_inset
18699
18700 .
18701  This is done by inserting the command
18702 \end_layout
18703
18704 \begin_layout LyX-Code
18705
18706 \backslash
18707 renewcommand{
18708 \backslash
18709 columnseprulecolor}{
18710 \backslash
18711 color{red}}
18712 \end_layout
18713
18714 \begin_layout Standard
18715 as \SpecialChar TeX
18716  Code before the multicolumn inset.
18717  Replace 
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 red
18723 \end_layout
18724
18725 \end_inset
18726
18727  in this command by a color of your choice.
18728  You can use all pre- and self-defined colors.
18729  See the 
18730 \emph on
18731 EmbeddedObjects
18732 \emph default
18733  manual,
18734  section 
18735 \emph on
18736 Colored
18737 \begin_inset space ~
18738 \end_inset
18739
18740 Tables
18741 \emph default
18742  for more information about pre- and self-defined colors.
18743  To go back to the default color insert the command
18744 \end_layout
18745
18746 \begin_layout LyX-Code
18747
18748 \backslash
18749 renewcommand{
18750 \backslash
18751 columnseprulecolor}{
18752 \backslash
18753 normalcolor}
18754 \end_layout
18755
18756 \begin_layout Standard
18757 Here is the example with a cyan rule and 1
18758 \begin_inset space \thinspace{}
18759 \end_inset
18760
18761 cm column separation:
18762 \end_layout
18763
18764 \begin_layout Standard
18765 \begin_inset ERT
18766 status open
18767
18768 \begin_layout Plain Layout
18769
18770
18771 \backslash
18772 setlength{
18773 \backslash
18774 columnsep}{1cm}
18775 \end_layout
18776
18777 \begin_layout Plain Layout
18778
18779
18780 \backslash
18781 renewcommand{
18782 \backslash
18783 columnseprulecolor}{
18784 \backslash
18785 color{cyan}}
18786 \end_layout
18787
18788 \end_inset
18789
18790
18791 \end_layout
18792
18793 \begin_layout Standard
18794 \begin_inset Flex Multiple Columns
18795 status open
18796
18797 \begin_layout Plain Layout
18798
18799 \size small
18800 \begin_inset Quotes eld
18801 \end_inset
18802
18803 You're surprised to see me,
18804  sir,
18805 \begin_inset Quotes erd
18806 \end_inset
18807
18808  said he,
18809  in a strange,
18810  croaking voice.
18811 \end_layout
18812
18813 \begin_layout Plain Layout
18814
18815 \size small
18816 I acknowledged that I was.
18817 \end_layout
18818
18819 \begin_layout Plain Layout
18820
18821 \size small
18822 \begin_inset Quotes eld
18823 \end_inset
18824
18825 Well,
18826  I've a conscience,
18827  sir,
18828  and when I chanced to see you go into this house,
18829  as I came hobbling after you,
18830  I thought to myself,
18831  I'll just step in and see that kind gentleman,
18832  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18833  and that I am much obliged to him for picking up my books.
18834 \begin_inset Quotes erd
18835 \end_inset
18836
18837
18838 \end_layout
18839
18840 \begin_layout Plain Layout
18841
18842 \size small
18843 \begin_inset Quotes eld
18844 \end_inset
18845
18846 You make too much of a trifle,
18847 \begin_inset Quotes erd
18848 \end_inset
18849
18850  said I.
18851  
18852 \begin_inset Quotes eld
18853 \end_inset
18854
18855 May I ask how you knew who I was?
18856 \begin_inset Quotes erd
18857 \end_inset
18858
18859
18860 \end_layout
18861
18862 \begin_layout Plain Layout
18863
18864 \size small
18865 \begin_inset Quotes eld
18866 \end_inset
18867
18868 Well,
18869  sir,
18870  if it isn't too great a liberty,
18871  I am a neighbour of yours,
18872  for you'll find my little bookshop at the corner of Church Street,
18873  and very happy to see you,
18874  I am sure.
18875  Maybe you collect yourself,
18876  sir.
18877  Here's 
18878 \noun on
18879 British
18880 \begin_inset space ~
18881 \end_inset
18882
18883 Birds
18884 \noun default
18885 ,
18886  and 
18887 \noun on
18888 Catullus
18889 \noun default
18890 ,
18891  and 
18892 \noun on
18893 The Holy War
18894 \noun default
18895
18896 \begin_inset space ~
18897 \end_inset
18898
18899 – a bargain,
18900  every one of them.
18901  With five volumes you could just fill that gap on that second shelf.
18902  It looks untidy,
18903  does it not,
18904  sir?
18905 \begin_inset Quotes erd
18906 \end_inset
18907
18908
18909 \end_layout
18910
18911 \end_inset
18912
18913
18914 \end_layout
18915
18916 \begin_layout Standard
18917 \begin_inset ERT
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921
18922
18923 \backslash
18924 setlength{
18925 \backslash
18926 columnseprule}{0pt}
18927 \end_layout
18928
18929 \begin_layout Plain Layout
18930
18931
18932 \backslash
18933 renewcommand{
18934 \backslash
18935 columnseprulecolor}{
18936 \backslash
18937 normalcolor}
18938 \end_layout
18939
18940 \end_inset
18941
18942
18943 \begin_inset Note Note
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 go back to the default
18948 \end_layout
18949
18950 \end_inset
18951
18952
18953 \end_layout
18954
18955 \begin_layout Section
18956 Paragraph Styles
18957 \end_layout
18958
18959 \begin_layout Subsection
18960 Custom Paragraph Shapes
18961 \end_layout
18962
18963 \begin_layout Standard
18964 \noindent
18965 \SpecialChar LaTeX
18966  as well as any other text processor uses by default rectangular paragraphs.
18967  For special cases like for example posters,
18968  invitation cards or poems you can modify the paragraph shape to one of your choice.
18969  This module uses the 
18970 \family sans
18971 shapepar
18972 \family default
18973  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
18974 \end_layout
18975
18976 \begin_layout Subsubsection
18977 Predefined shapes
18978 \end_layout
18979
18980 \begin_layout Standard
18981
18982 \family sans
18983 The shapepar
18984 \family default
18985  package provides the following shapes:
18986 \end_layout
18987
18988 \begin_layout Standard
18989 \begin_inset Tabular
18990 <lyxtabular version="3" rows="13" columns="3">
18991 <features booktabs="true" islongtable="true" longtabularalignment="center">
18992 <column alignment="left" valignment="middle" width="16col%">
18993 <column alignment="left" valignment="middle" width="40col%">
18994 <column alignment="left" valignment="middle" width="35col%">
18995 <row endhead="true">
18996 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18997 \begin_inset Text
18998
18999 \begin_layout Plain Layout
19000
19001 \series bold
19002 \size small
19003 Name
19004 \end_layout
19005
19006 \end_inset
19007 </cell>
19008 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19009 \begin_inset Text
19010
19011 \begin_layout Plain Layout
19012
19013 \series bold
19014 \size small
19015 Description
19016 \end_layout
19017
19018 \end_inset
19019 </cell>
19020 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19021 \begin_inset Text
19022
19023 \begin_layout Plain Layout
19024
19025 \series bold
19026 \size small
19027 Annotation
19028 \end_layout
19029
19030 \end_inset
19031 </cell>
19032 </row>
19033 <row interlinespace="default">
19034 <cell alignment="left" valignment="top" usebox="none">
19035 \begin_inset Text
19036
19037 \begin_layout Plain Layout
19038
19039 \size small
19040 CDlabel
19041 \end_layout
19042
19043 \end_inset
19044 </cell>
19045 <cell alignment="left" valignment="top" usebox="none">
19046 \begin_inset Text
19047
19048 \begin_layout Plain Layout
19049
19050 \size small
19051 Circle with circular hole (in the size of a CD/DVD)
19052 \end_layout
19053
19054 \end_inset
19055 </cell>
19056 <cell alignment="left" valignment="top" usebox="none">
19057 \begin_inset Text
19058
19059 \begin_layout Plain Layout
19060
19061 \size small
19062 Cannot be scaled,
19063  take care there is not too much text
19064 \end_layout
19065
19066 \end_inset
19067 </cell>
19068 </row>
19069 <row interlinespace="default">
19070 <cell alignment="left" valignment="top" usebox="none">
19071 \begin_inset Text
19072
19073 \begin_layout Plain Layout
19074
19075 \size small
19076 Circle
19077 \end_layout
19078
19079 \end_inset
19080 </cell>
19081 <cell alignment="left" valignment="top" usebox="none">
19082 \begin_inset Text
19083
19084 \begin_layout Plain Layout
19085
19086 \size small
19087 Circle
19088 \end_layout
19089
19090 \end_inset
19091 </cell>
19092 <cell alignment="left" valignment="top" usebox="none">
19093 \begin_inset Text
19094
19095 \begin_layout Plain Layout
19096
19097 \size small
19098 Fragile,
19099  calculation might fail
19100 \end_layout
19101
19102 \end_inset
19103 </cell>
19104 </row>
19105 <row interlinespace="default">
19106 <cell alignment="left" valignment="top" usebox="none">
19107 \begin_inset Text
19108
19109 \begin_layout Plain Layout
19110
19111 \size small
19112 Diamond
19113 \end_layout
19114
19115 \end_inset
19116 </cell>
19117 <cell alignment="left" valignment="top" usebox="none">
19118 \begin_inset Text
19119
19120 \begin_layout Plain Layout
19121
19122 \size small
19123 Rhomboid (symbolizing a 
19124 \begin_inset Quotes eld
19125 \end_inset
19126
19127 diamond
19128 \begin_inset Quotes erd
19129 \end_inset
19130
19131 )
19132 \end_layout
19133
19134 \end_inset
19135 </cell>
19136 <cell alignment="left" valignment="top" usebox="none">
19137 \begin_inset Text
19138
19139 \begin_layout Plain Layout
19140
19141 \size small
19142 -
19143 \end_layout
19144
19145 \end_inset
19146 </cell>
19147 </row>
19148 <row interlinespace="default">
19149 <cell alignment="left" valignment="top" usebox="none">
19150 \begin_inset Text
19151
19152 \begin_layout Plain Layout
19153
19154 \size small
19155 Heart
19156 \end_layout
19157
19158 \end_inset
19159 </cell>
19160 <cell alignment="left" valignment="top" usebox="none">
19161 \begin_inset Text
19162
19163 \begin_layout Plain Layout
19164
19165 \size small
19166 Heart-like shape
19167 \end_layout
19168
19169 \end_inset
19170 </cell>
19171 <cell alignment="left" valignment="top" usebox="none">
19172 \begin_inset Text
19173
19174 \begin_layout Plain Layout
19175
19176 \size small
19177 -
19178 \end_layout
19179
19180 \end_inset
19181 </cell>
19182 </row>
19183 <row interlinespace="default">
19184 <cell alignment="left" valignment="top" usebox="none">
19185 \begin_inset Text
19186
19187 \begin_layout Plain Layout
19188
19189 \size small
19190 Hexagon
19191 \end_layout
19192
19193 \end_inset
19194 </cell>
19195 <cell alignment="left" valignment="top" usebox="none">
19196 \begin_inset Text
19197
19198 \begin_layout Plain Layout
19199
19200 \size small
19201 Hexagon
19202 \end_layout
19203
19204 \end_inset
19205 </cell>
19206 <cell alignment="left" valignment="top" usebox="none">
19207 \begin_inset Text
19208
19209 \begin_layout Plain Layout
19210
19211 \size small
19212 -
19213 \end_layout
19214
19215 \end_inset
19216 </cell>
19217 </row>
19218 <row interlinespace="default">
19219 <cell alignment="left" valignment="top" usebox="none">
19220 \begin_inset Text
19221
19222 \begin_layout Plain Layout
19223
19224 \size small
19225 Nut
19226 \end_layout
19227
19228 \end_inset
19229 </cell>
19230 <cell alignment="left" valignment="top" usebox="none">
19231 \begin_inset Text
19232
19233 \begin_layout Plain Layout
19234
19235 \size small
19236 Nut for bolt (hexagon with circular hole)
19237 \end_layout
19238
19239 \end_inset
19240 </cell>
19241 <cell alignment="left" valignment="top" usebox="none">
19242 \begin_inset Text
19243
19244 \begin_layout Plain Layout
19245
19246 \size small
19247 -
19248 \end_layout
19249
19250 \end_inset
19251 </cell>
19252 </row>
19253 <row interlinespace="default">
19254 <cell alignment="left" valignment="top" usebox="none">
19255 \begin_inset Text
19256
19257 \begin_layout Plain Layout
19258
19259 \size small
19260 Square
19261 \end_layout
19262
19263 \end_inset
19264 </cell>
19265 <cell alignment="left" valignment="top" usebox="none">
19266 \begin_inset Text
19267
19268 \begin_layout Plain Layout
19269
19270 \size small
19271 Square
19272 \end_layout
19273
19274 \end_inset
19275 </cell>
19276 <cell alignment="left" valignment="top" usebox="none">
19277 \begin_inset Text
19278
19279 \begin_layout Plain Layout
19280
19281 \size small
19282 -
19283 \end_layout
19284
19285 \end_inset
19286 </cell>
19287 </row>
19288 <row interlinespace="default">
19289 <cell alignment="left" valignment="top" usebox="none">
19290 \begin_inset Text
19291
19292 \begin_layout Plain Layout
19293
19294 \size small
19295 Star
19296 \end_layout
19297
19298 \end_inset
19299 </cell>
19300 <cell alignment="left" valignment="top" usebox="none">
19301 \begin_inset Text
19302
19303 \begin_layout Plain Layout
19304
19305 \size small
19306 Five-point star
19307 \end_layout
19308
19309 \end_inset
19310 </cell>
19311 <cell alignment="left" valignment="top" usebox="none">
19312 \begin_inset Text
19313
19314 \begin_layout Plain Layout
19315
19316 \size small
19317 -
19318 \end_layout
19319
19320 \end_inset
19321 </cell>
19322 </row>
19323 <row interlinespace="default">
19324 <cell alignment="left" valignment="top" usebox="none">
19325 \begin_inset Text
19326
19327 \begin_layout Plain Layout
19328
19329 \size small
19330 Candle
19331 \end_layout
19332
19333 \end_inset
19334 </cell>
19335 <cell alignment="left" valignment="top" usebox="none">
19336 \begin_inset Text
19337
19338 \begin_layout Plain Layout
19339
19340 \size small
19341 Burning candle
19342 \end_layout
19343
19344 \end_inset
19345 </cell>
19346 <cell alignment="left" valignment="top" usebox="none">
19347 \begin_inset Text
19348
19349 \begin_layout Plain Layout
19350
19351 \size small
19352 -
19353 \end_layout
19354
19355 \end_inset
19356 </cell>
19357 </row>
19358 <row interlinespace="default">
19359 <cell alignment="left" valignment="top" usebox="none">
19360 \begin_inset Text
19361
19362 \begin_layout Plain Layout
19363
19364 \size small
19365 Drop down/up
19366 \end_layout
19367
19368 \end_inset
19369 </cell>
19370 <cell alignment="left" valignment="top" usebox="none">
19371 \begin_inset Text
19372
19373 \begin_layout Plain Layout
19374
19375 \size small
19376 Normal/reversed rain drop
19377 \end_layout
19378
19379 \end_inset
19380 </cell>
19381 <cell alignment="left" valignment="top" usebox="none">
19382 \begin_inset Text
19383
19384 \begin_layout Plain Layout
19385
19386 \size small
19387 Fragile,
19388  calculation might fail
19389 \end_layout
19390
19391 \end_inset
19392 </cell>
19393 </row>
19394 <row interlinespace="default">
19395 <cell alignment="left" valignment="top" usebox="none">
19396 \begin_inset Text
19397
19398 \begin_layout Plain Layout
19399
19400 \size small
19401 \SpecialChar TeX
19402
19403 \end_layout
19404
19405 \end_inset
19406 </cell>
19407 <cell alignment="left" valignment="top" usebox="none">
19408 \begin_inset Text
19409
19410 \begin_layout Plain Layout
19411
19412 \size small
19413 The \SpecialChar TeX
19414  logo
19415 \end_layout
19416
19417 \end_inset
19418 </cell>
19419 <cell alignment="left" valignment="top" usebox="none">
19420 \begin_inset Text
19421
19422 \begin_layout Plain Layout
19423
19424 \size small
19425 -
19426 \end_layout
19427
19428 \end_inset
19429 </cell>
19430 </row>
19431 <row interlinespace="default">
19432 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19433 \begin_inset Text
19434
19435 \begin_layout Plain Layout
19436
19437 \size small
19438 Triangle up/down/
19439 \begin_inset Newline newline
19440 \end_inset
19441
19442 left/right
19443 \end_layout
19444
19445 \end_inset
19446 </cell>
19447 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19448 \begin_inset Text
19449
19450 \begin_layout Plain Layout
19451
19452 \size small
19453 Triangles in different orientations
19454 \end_layout
19455
19456 \end_inset
19457 </cell>
19458 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19459 \begin_inset Text
19460
19461 \begin_layout Plain Layout
19462
19463 \size small
19464 -
19465 \end_layout
19466
19467 \end_inset
19468 </cell>
19469 </row>
19470 </lyxtabular>
19471
19472 \end_inset
19473
19474
19475 \end_layout
19476
19477 \begin_layout Standard
19478 To use a shape for your paragraph,
19479  simply select it in \SpecialChar LyX
19480 's pull-down box for environments in the toolbar.
19481 \end_layout
19482
19483 \begin_layout Standard
19484 \begin_inset Newpage newpage
19485 \end_inset
19486
19487
19488 \end_layout
19489
19490 \begin_layout Standard
19491 Here is an example paragraph in the shape of a nut:
19492 \end_layout
19493
19494 \begin_layout Standard
19495 \begin_inset VSpace bigskip
19496 \end_inset
19497
19498
19499 \end_layout
19500
19501 \begin_layout Nut
19502
19503 \lang latin
19504 Lorem ipsum dolor sit amet,
19505  consetetur sadipscing elitr,
19506  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19507  sed diam voluptua.
19508  At vero eos et accusam et justo duo dolores et ea rebum.
19509  Stet clita kasd gubergren,
19510  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19511  Lorem ipsum dolor sit amet,
19512  consetetur sadipscing elitr,
19513  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19514  sed diam voluptua.
19515 \end_layout
19516
19517 \begin_layout Standard
19518 \begin_inset VSpace bigskip
19519 \end_inset
19520
19521
19522 \end_layout
19523
19524 \begin_layout Standard
19525 \begin_inset Note Greyedout
19526 status open
19527
19528 \begin_layout Plain Layout
19529
19530 \series bold
19531 Note
19532 \series default
19533 :
19534  
19535 \family sans
19536 shapepar
19537 \family default
19538  paragraphs cannot run over a page break.
19539 \end_layout
19540
19541 \end_inset
19542
19543
19544 \end_layout
19545
19546 \begin_layout Standard
19547 \begin_inset VSpace bigskip
19548 \end_inset
19549
19550
19551 \end_layout
19552
19553 \begin_layout Standard
19554 The package 
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559 shapepar
19560 \end_layout
19561
19562 \end_inset
19563
19564  takes care that the shape will always be preserved,
19565  no matter how much text is in the paragraph.
19566  Therefore the paragraph size changes with the amount of contained text.
19567  This can lead to paragraph sizes exceeding the page margins.
19568  To demonstrate the size scaling,
19569  here is the same example paragraph but with twice as much text:
19570 \end_layout
19571
19572 \begin_layout Standard
19573 \begin_inset Newpage newpage
19574 \end_inset
19575
19576
19577 \end_layout
19578
19579 \begin_layout Nut
19580
19581 \lang latin
19582 Lorem ipsum dolor sit amet,
19583  consetetur sadipscing elitr,
19584  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19585  sed diam voluptua.
19586  At vero eos et accusam et justo duo dolores et ea rebum.
19587  Stet clita kasd gubergren,
19588  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19589  Lorem ipsum dolor sit amet,
19590  consetetur sadipscing elitr,
19591  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19592  sed diam voluptua.
19593  Lorem ipsum dolor sit amet,
19594  consetetur sadipscing elitr,
19595  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19596  sed diam voluptua.
19597  At vero eos et accusam et justo duo dolores et ea rebum.
19598  Stet clita kasd gubergren,
19599  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19600  Lorem ipsum dolor sit amet,
19601  consetetur sadipscing elitr,
19602  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19603  sed diam voluptua.
19604 \end_layout
19605
19606 \begin_layout Standard
19607 \begin_inset VSpace bigskip
19608 \end_inset
19609
19610
19611 \end_layout
19612
19613 \begin_layout Standard
19614 An exception is the shape 
19615 \family sans
19616 CDlabel
19617 \family default
19618 .
19619  It cannot be scaled because it must fit the size of a CD/DVD.
19620  Therefore the amount of text that fits into the shape is limited.
19621 \end_layout
19622
19623 \begin_layout Standard
19624 The 
19625 \family sans
19626 drop
19627 \family default
19628  shapes and the 
19629 \family sans
19630 circle
19631 \family default
19632  shape are fragile,
19633  meaning that the calculation of their size can fail,
19634  depending on the amount of text.
19635  You will then get the \SpecialChar LaTeX
19636  error 
19637 \begin_inset Quotes eld
19638 \end_inset
19639
19640 Arithmetic overflow
19641 \begin_inset Quotes erd
19642 \end_inset
19643
19644 .
19645  In this case one can try to remove or add some text;
19646  if nothing works one has to use another shape.
19647 \end_layout
19648
19649 \begin_layout Standard
19650 For shapes with tips you will maybe see that \SpecialChar LaTeX
19651 's hyphenation routine fails for text in the tips.
19652  Therefore it is often necessary to add hyphenation points 
19653 \family sans
19654 (
19655 \begin_inset Info
19656 type  "shortcut"
19657 arg   "specialchar-insert hyphenation"
19658 \end_inset
19659
19660
19661 \family default
19662 ) to the corresponding text parts.
19663 \end_layout
19664
19665 \begin_layout Standard
19666 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
19667  You can therefore not use the paragraph dialog to align such paragraphs.
19668  A solution is to put the paragraph into a minipage or parbox and align the box.
19669  The problem is hereby to find the right width for the box.
19670  Because if it is too wide and you center the box,
19671  the paragraph is not centered too because it sticks at the left side of the box.
19672  So you might have to play a bit with the width until it fits.
19673  Here are two heart-shaped paragraphs,
19674  the first one is not aligned,
19675  the second one is right-aligned:
19676 \end_layout
19677
19678 \begin_layout Standard
19679 \begin_inset Newpage newpage
19680 \end_inset
19681
19682
19683 \end_layout
19684
19685 \begin_layout Heart
19686 \noindent
19687
19688 \lang latin
19689 Lo\SpecialChar softhyphen
19690 rem ipsum dolor sit amet,
19691  consetetur sadipscing elitr,
19692  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19693  sed diam voluptua.
19694  At vero eos et accusam et justo duo dolores et ea rebum.
19695  Stet clita kasd gubergren,
19696  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19697 \end_layout
19698
19699 \begin_layout Standard
19700 \begin_inset VSpace bigskip
19701 \end_inset
19702
19703
19704 \end_layout
19705
19706 \begin_layout Standard
19707 \noindent
19708 \align right
19709 \begin_inset Box Frameless
19710 position "t"
19711 hor_pos "c"
19712 has_inner_box 1
19713 inner_pos "t"
19714 use_parbox 1
19715 use_makebox 0
19716 width "42col%"
19717 special "none"
19718 height "1in"
19719 height_special "totalheight"
19720 thickness "0.4pt"
19721 separation "3pt"
19722 shadowsize "4pt"
19723 framecolor "black"
19724 backgroundcolor "none"
19725 status open
19726
19727 \begin_layout Heart
19728 \noindent
19729
19730 \lang latin
19731 Lo\SpecialChar softhyphen
19732 rem ipsum dolor sit amet,
19733  consetetur sadipscing elitr,
19734  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19735  sed diam voluptua.
19736  At vero eos et accusam et justo duo dolores et ea rebum.
19737  Stet clita kasd gubergren,
19738  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19739 \end_layout
19740
19741 \end_inset
19742
19743
19744 \end_layout
19745
19746 \begin_layout Subsubsection
19747 Custom shapes
19748 \end_layout
19749
19750 \begin_layout Standard
19751 You can define any shape you want.
19752  Doing this manually is a lot of work because every coordinate must be specified.
19753  But there is a way to let the computer calculate the coordinates:
19754 \end_layout
19755
19756 \begin_layout Enumerate
19757 Install the program 
19758 \begin_inset CommandInset href
19759 LatexCommand href
19760 name "Jpgfdraw"
19761 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
19762 literal "false"
19763
19764 \end_inset
19765
19766 .
19767 \end_layout
19768
19769 \begin_layout Enumerate
19770 In 
19771 \family sans
19772 Jpgfdraw
19773 \family default
19774  go to the menu 
19775 \family sans
19776 TeX/LaTeX\SpecialChar menuseparator
19777 Settings\SpecialChar menuseparator
19778 Set Normal Size
19779 \family default
19780  and select the font size you are using in your document.
19781  For example this document uses the size 12
19782 \begin_inset space \thinspace{}
19783 \end_inset
19784
19785 pt.
19786 \end_layout
19787
19788 \begin_layout Enumerate
19789 Draw a shape.
19790 \end_layout
19791
19792 \begin_layout Enumerate
19793 Use the menu 
19794 \family sans
19795 TeX/LaTeX\SpecialChar menuseparator
19796 Shapepar
19797 \family default
19798  to export the shape to coordinates.
19799  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
19800 \begin_inset Foot
19801 status collapsed
19802
19803 \begin_layout Plain Layout
19804 For more information see 
19805 \begin_inset CommandInset href
19806 LatexCommand href
19807 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
19808 literal "false"
19809
19810 \end_inset
19811
19812
19813 \end_layout
19814
19815 \end_inset
19816
19817
19818 \end_layout
19819
19820 \begin_layout Standard
19821 The coordinates are written into a \SpecialChar TeX
19822  file.
19823  To use it for your \SpecialChar LyX
19824  document
19825 \end_layout
19826
19827 \begin_layout Enumerate
19828 Place the cursor before the first character of your paragraph (or into a new empty one).
19829 \end_layout
19830
19831 \begin_layout Enumerate
19832 Open in \SpecialChar LyX
19833  the menu 
19834 \family sans
19835 Insert\SpecialChar menuseparator
19836 File\SpecialChar menuseparator
19837 Child
19838 \begin_inset space ~
19839 \end_inset
19840
19841 Document
19842 \family default
19843 ,
19844  select the file and use 
19845 \family sans
19846 Input
19847 \family default
19848  as 
19849 \family sans
19850 Include Type.
19851 \end_layout
19852
19853 \begin_layout Standard
19854 \begin_inset VSpace defskip
19855 \end_inset
19856
19857
19858 \end_layout
19859
19860 \begin_layout Standard
19861 \begin_inset Note Greyedout
19862 status open
19863
19864 \begin_layout Plain Layout
19865
19866 \series bold
19867 Note
19868 \series default
19869 :
19870  The changed shape only applies to the current paragraph;
19871  everything is reset to normal for the next paragraph.
19872  Therefore the shape definition file must be input into every paragraph with the desired shape.
19873 \end_layout
19874
19875 \end_inset
19876
19877
19878 \end_layout
19879
19880 \begin_layout Standard
19881 \begin_inset VSpace bigskip
19882 \end_inset
19883
19884
19885 \end_layout
19886
19887 \begin_layout Standard
19888 Here is an example:
19889 \end_layout
19890
19891 \begin_layout Standard
19892 \begin_inset VSpace bigskip
19893 \end_inset
19894
19895
19896 \end_layout
19897
19898 \begin_layout Standard
19899 \begin_inset CommandInset include
19900 LatexCommand input
19901 filename "SpecialParagraphShape.tex"
19902 literal "true"
19903
19904 \end_inset
19905
19906
19907 \lang latin
19908 Lorem ipsum dolor sit amet,
19909  consetetur sadipscing elitr,
19910  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19911  sed diam voluptua.
19912  At vero eos et accusam et justo duo dolores et ea rebum.
19913  Stet clita kasd gubergren,
19914  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19915  Lorem ipsum dolor sit amet,
19916  consetetur sadipscing elitr,
19917  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19918  sed diam voluptua.
19919 \end_layout
19920
19921 \begin_layout Standard
19922 \begin_inset VSpace bigskip
19923 \end_inset
19924
19925
19926 \end_layout
19927
19928 \begin_layout Standard
19929
19930 \series bold
19931 A tip:
19932
19933 \series default
19934  to draw complexer shapes in 
19935 \family sans
19936 Jpgfdraw
19937 \family default
19938  you can draw the shape in a program of your choice and import the resulting image to 
19939 \family sans
19940 Jpgfdraw
19941 \family default
19942 .
19943  Then you only need to draw a line or spline along the outline of the image.
19944 \end_layout
19945
19946 \begin_layout Standard
19947 The module 
19948 \family sans
19949 Custom paragraph shapes
19950 \family default
19951  also provides the two commands 
19952 \family sans
19953 shapepar
19954 \family default
19955  and 
19956 \family sans
19957 Shapepar
19958 \family default
19959  which can be used to define custom shapes coordinate by coordinate.
19960 \begin_inset Foot
19961 status collapsed
19962
19963 \begin_layout Plain Layout
19964 These commands are internally used for all shapes described here.
19965 \end_layout
19966
19967 \end_inset
19968
19969  For information how these styles are used and about further customization possibilities,
19970  have a look at the 
19971 \begin_inset CommandInset href
19972 LatexCommand href
19973 name "documentation"
19974 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
19975 literal "false"
19976
19977 \end_inset
19978
19979  of the package 
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 shapepar
19985 \end_layout
19986
19987 \end_inset
19988
19989 .
19990 \end_layout
19991
19992 \begin_layout Subsection
19993 Hanging Paragraphs
19994 \end_layout
19995
19996 \begin_layout Hanging
19997 This module adds the 
19998 \family sans
19999 Hanging
20000 \family default
20001  paragraph style,
20002  that is,
20003  one where all but the first line of the paragraph is indented.
20004  This may not appear in your \SpecialChar LyX
20005  document but will appear in the final output.
20006 \end_layout
20007
20008 \begin_layout Subsection
20009 \begin_inset CommandInset label
20010 LatexCommand label
20011 name "subsec:Initials"
20012
20013 \end_inset
20014
20015 Initials (Drop Caps)
20016 \end_layout
20017
20018 \begin_layout Initial
20019 \begin_inset Argument 2
20020 status open
20021
20022 \begin_layout Plain Layout
20023 T
20024 \end_layout
20025
20026 \end_inset
20027
20028
20029 \begin_inset Argument 3
20030 status open
20031
20032 \begin_layout Plain Layout
20033 his
20034 \end_layout
20035
20036 \end_inset
20037
20038  module adds a drop capitals paragraph style 
20039 \family sans
20040 Initials
20041 \family default
20042  for paragraph environments which you can use wherever you want to have drop capitals.
20043  You then have three more items in the 
20044 \family sans
20045 Insert
20046 \family default
20047  menu:
20048 \end_layout
20049
20050 \begin_layout Itemize
20051
20052 \family sans
20053 Initial
20054 \family default
20055  which creates an inset for the drop capital
20056 \end_layout
20057
20058 \begin_layout Itemize
20059
20060 \family sans
20061 Rest of initial
20062 \family default
20063  which creates an inset for the rest of the word
20064 \end_layout
20065
20066 \begin_layout Itemize
20067
20068 \family sans
20069 Options
20070 \family default
20071  which allow you configure the formatting of the drop capital.
20072 \end_layout
20073
20074 \begin_layout Standard
20075 To customize the appearance of the style,
20076  see 
20077 \family sans
20078 Help\SpecialChar menuseparator
20079 Embedded Objects\SpecialChar menuseparator
20080 Objects Surrounded by Text\SpecialChar menuseparator
20081 Initials
20082 \family default
20083 .
20084 \end_layout
20085
20086 \begin_layout Section
20087 Text Markup
20088 \end_layout
20089
20090 \begin_layout Subsection
20091 Hyphenatable Text Markup (Soul)
20092 \end_layout
20093
20094 \begin_layout Standard
20095 This modul defines text styles to highlight,
20096  space-out,
20097  strike-through,
20098  underline and capitalize/small-cap text by means of the 
20099 \family sans
20100 soul
20101 \family default
20102  package.
20103 \end_layout
20104
20105 \begin_layout Standard
20106 As opposed to the markup provided by the Text Properties dialog,
20107  words marked-up with 
20108 \family sans
20109 soul
20110 \family default
20111  are hyphenated.
20112  See the 
20113 \begin_inset CommandInset href
20114 LatexCommand href
20115 name "soul documentation"
20116 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
20117 literal "false"
20118
20119 \end_inset
20120
20121 .
20122 \end_layout
20123
20124 \begin_layout Subsection
20125 Logical Markup
20126 \end_layout
20127
20128 \begin_layout Standard
20129 This module defines some character styles for logical markup:
20130  
20131 \noun on
20132
20133 \begin_inset Flex Noun
20134 status collapsed
20135
20136 \begin_layout Plain Layout
20137
20138 \noun on
20139 noun
20140 \end_layout
20141
20142 \end_inset
20143
20144
20145 \noun default
20146 ,
20147  
20148 \emph on
20149
20150 \begin_inset Flex Emph
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154
20155 \emph on
20156 emph
20157 \end_layout
20158
20159 \end_inset
20160
20161
20162 \emph default
20163 ,
20164  
20165 \begin_inset Flex Strong
20166 status collapsed
20167
20168 \begin_layout Plain Layout
20169 strong
20170 \end_layout
20171
20172 \end_inset
20173
20174 ,
20175  and 
20176 \begin_inset Flex Code
20177 status collapsed
20178
20179 \begin_layout Plain Layout
20180 code
20181 \end_layout
20182
20183 \end_inset
20184
20185  which are accessed via the 
20186 \family sans
20187 \bar under
20188 E
20189 \bar default
20190 dit\SpecialChar menuseparator
20191 Custom
20192 \begin_inset space ~
20193 \end_inset
20194
20195 Text
20196 \begin_inset space ~
20197 \end_inset
20198
20199
20200 \bar under
20201 S
20202 \bar default
20203 tyles
20204 \family default
20205  menu.
20206 \end_layout
20207
20208 \begin_layout Chapter
20209 Bibliography
20210 \end_layout
20211
20212 \begin_layout Standard
20213 The most basic information about how to use Bib\SpecialChar TeX
20214  or 
20215 \family sans
20216 Biblatex
20217 \family default
20218  with \SpecialChar LyX
20219  is contained in the section 
20220 \emph on
20221 Bibliography databases
20222 \emph default
20223  of the 
20224 \emph on
20225 User's Guide
20226 \emph default
20227 .
20228  The following subsections explain special bibliography features supported by \SpecialChar LyX
20229 .
20230 \end_layout
20231
20232 \begin_layout Section
20233 Alternative Citation Styles
20234 \end_layout
20235
20236 \begin_layout Standard
20237 Standard Bib\SpecialChar TeX
20238  uses numbers (e.
20239 \begin_inset space \thinspace{}
20240 \end_inset
20241
20242 g.
20243 \begin_inset space \space{}
20244 \end_inset
20245
20246
20247 \begin_inset Quotes eld
20248 \end_inset
20249
20250 [12]
20251 \begin_inset Quotes erd
20252 \end_inset
20253
20254 ) to refer to a cited work.
20255  However,
20256  in many scientific disciplines,
20257  other citation styles are in use.
20258  The most common one is the author-year style (e.
20259 \begin_inset space \thinspace{}
20260 \end_inset
20261
20262 g.
20263 \begin_inset space \space{}
20264 \end_inset
20265
20266
20267 \begin_inset Quotes eld
20268 \end_inset
20269
20270 Knuth 1984a
20271 \begin_inset Quotes erd
20272 \end_inset
20273
20274 ).
20275  \SpecialChar LyX
20276  supports three packages that provide this style,
20277  
20278 \begin_inset Flex Code
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 biblatex
20283 \end_layout
20284
20285 \end_inset
20286
20287 ,
20288  
20289 \begin_inset Flex Code
20290 status collapsed
20291
20292 \begin_layout Plain Layout
20293 natbib
20294 \end_layout
20295
20296 \end_inset
20297
20298 ,
20299  and 
20300 \begin_inset Flex Code
20301 status collapsed
20302
20303 \begin_layout Plain Layout
20304 jurabib
20305 \end_layout
20306
20307 \end_inset
20308
20309 .
20310  Each of these packages has their pros and cons,
20311  which cannot be listed in detail.
20312  If you only want to have simple author-year (or author-numerical) style,
20313  or if you want to use one of the countless style files for 
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 natbib
20319 \end_layout
20320
20321 \end_inset
20322
20323 ,
20324  then the established 
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 natbib
20330 \end_layout
20331
20332 \end_inset
20333
20334  package is probably your choice.
20335  If you look for specific citation styles common in law studies,
20336  you might consider the 
20337 \begin_inset Flex Code
20338 status collapsed
20339
20340 \begin_layout Plain Layout
20341 jurabib
20342 \end_layout
20343
20344 \end_inset
20345
20346  package.
20347  If you want to have full control over the formatting or look for advanced features such as ibidem,
20348  footnote citations,
20349  full title citations,
20350  advanced date formats (such as 400 BC) or full localization to other languages than English,
20351  you should definitely consider 
20352 \begin_inset Flex Code
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356 biblatex
20357 \end_layout
20358
20359 \end_inset
20360
20361 ,
20362  which exceeds all other packages in terms of features,
20363  but is also quite heavy and more resource-hungry.
20364 \end_layout
20365
20366 \begin_layout Standard
20367 The handling of these packages in \SpecialChar LyX
20368  is basically the same.
20369  Go to 
20370 \family sans
20371 Document\SpecialChar menuseparator
20372 Settings
20373 \family default
20374  and select under 
20375 \family sans
20376 Bibliography
20377 \family default
20378  the 
20379 \family sans
20380 Style Format
20381 \family default
20382  
20383 \family sans
20384 Basic (BibTeX)
20385 \family default
20386 ,
20387  
20388 \family sans
20389 Biblatex
20390 \family default
20391 ,
20392  
20393 \family sans
20394 Biblatex (Natbib mode)
20395 \family default
20396 ,
20397  
20398 \family sans
20399 Natbib (BibTeX)
20400 \family default
20401  or 
20402 \family sans
20403 Jurabib (BibTeX)
20404 \family default
20405  (see sec.
20406 \begin_inset space ~
20407 \end_inset
20408
20409 6.5.3 in the User's Guide for more information on these choices).
20410  With all these packages,
20411  you will get some extra features in the citation dialog and you can select the style of the reference (
20412 \begin_inset Quotes eld
20413 \end_inset
20414
20415 Knuth 1984
20416 \begin_inset Quotes erd
20417 \end_inset
20418
20419 ,
20420  
20421 \begin_inset Quotes eld
20422 \end_inset
20423
20424 Knuth (1984)
20425 \begin_inset Quotes erd
20426 \end_inset
20427
20428 ,
20429  
20430 \begin_inset Quotes eld
20431 \end_inset
20432
20433 Knuth,
20434  1984
20435 \begin_inset Quotes erd
20436 \end_inset
20437
20438 ,
20439  
20440 \begin_inset Quotes eld
20441 \end_inset
20442
20443 1984
20444 \begin_inset Quotes erd
20445 \end_inset
20446
20447  etc.).
20448  Note that either package needs specifically designed style files.
20449  They all ship their own,
20450  but there are lots of additional style files,
20451  and there is even an interactive style file builder
20452 \begin_inset Foot
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 See 
20457 \begin_inset Flex URL
20458 status open
20459
20460 \begin_layout Plain Layout
20461
20462 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
20463 \end_layout
20464
20465 \end_inset
20466
20467
20468 \end_layout
20469
20470 \end_inset
20471
20472  for 
20473 \begin_inset Flex Code
20474 status collapsed
20475
20476 \begin_layout Plain Layout
20477 natbib
20478 \end_layout
20479
20480 \end_inset
20481
20482 .
20483 \end_layout
20484
20485 \begin_layout Section
20486 Subdivided Bibliographies
20487 \end_layout
20488
20489 \begin_layout Standard
20490 Sometimes you might need to divide your bibliography into several sections.
20491  If you are for instance a historian,
20492  the possibility to separate sources and scientific works is most likely a 
20493 \begin_inset Quotes eld
20494 \end_inset
20495
20496 must have
20497 \begin_inset Quotes erd
20498 \end_inset
20499
20500 .
20501  Unfortunately,
20502  Bib\SpecialChar TeX
20503  itself does not allow you to do this.
20504  But with the help of some \SpecialChar LaTeX
20505  packages,
20506  Bib\SpecialChar TeX
20507  can be extended to fit your needs.
20508 \end_layout
20509
20510 \begin_layout Standard
20511 \SpecialChar LyX
20512  provides native support for one of these packages,
20513  
20514 \family typewriter
20515 bibtopic
20516 \family default
20517 .
20518 \begin_inset Foot
20519 status collapsed
20520
20521 \begin_layout Plain Layout
20522 Available from 
20523 \begin_inset Flex URL
20524 status open
20525
20526 \begin_layout Plain Layout
20527
20528 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
20529 \end_layout
20530
20531 \end_inset
20532
20533
20534 \end_layout
20535
20536 \end_inset
20537
20538  The advantage of this package (compared to other packages such as 
20539 \family typewriter
20540 multibib
20541 \family default
20542 ) is that you don't need to define new citation commands.
20543  Instead,
20544  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
20545  For example:
20546  If you want to divide your bibliography into the sections 
20547 \begin_inset Quotes eld
20548 \end_inset
20549
20550 Sources
20551 \begin_inset Quotes erd
20552 \end_inset
20553
20554  and 
20555 \begin_inset Quotes eld
20556 \end_inset
20557
20558 Scientific works
20559 \begin_inset Quotes erd
20560 \end_inset
20561
20562 ,
20563  you first need to create two bibliographic databases,
20564  e.
20565 \begin_inset space \thinspace{}
20566 \end_inset
20567
20568 g.
20569 \begin_inset space \space{}
20570 \end_inset
20571
20572
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 sources.bib
20578 \end_layout
20579
20580 \end_inset
20581
20582  and 
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 scientific.bib
20588 \end_layout
20589
20590 \end_inset
20591
20592 .
20593  
20594 \end_layout
20595
20596 \begin_layout Standard
20597 Go to 
20598 \family sans
20599 Document\SpecialChar menuseparator
20600 Settings
20601 \family default
20602  and check under 
20603 \family sans
20604 Bibliography
20605 \family default
20606  the option 
20607 \family sans
20608 Subdivided bibliography
20609 \family default
20610 .
20611  Now you can insert multiple Bib\SpecialChar TeX
20612  bibliographies,
20613  one for each section of your bibliography.
20614  Returning to our example:
20615  Insert the Bib\SpecialChar TeX
20616  bibliography 
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 sources.bib
20622 \end_layout
20623
20624 \end_inset
20625
20626  and a second one for the database 
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 scientific.bib
20632 \end_layout
20633
20634 \end_inset
20635
20636 .
20637  You are free to use the same or different styles for each section.
20638  Additionally,
20639  you can choose if the bibliography section should contain 
20640 \begin_inset Quotes eld
20641 \end_inset
20642
20643 all cited references
20644 \begin_inset Quotes erd
20645 \end_inset
20646
20647  of the specified database(s) (which is the default),
20648  
20649 \begin_inset Quotes eld
20650 \end_inset
20651
20652 all uncited references
20653 \begin_inset Quotes erd
20654 \end_inset
20655
20656  or even 
20657 \begin_inset Quotes eld
20658 \end_inset
20659
20660 all references
20661 \begin_inset Quotes erd
20662 \end_inset
20663
20664 .
20665  This might be useful if you would like to separate your bibliography into three sections:
20666  
20667 \begin_inset Quotes eld
20668 \end_inset
20669
20670 Cited sources
20671 \begin_inset Quotes erd
20672 \end_inset
20673
20674 ,
20675  
20676 \begin_inset Quotes eld
20677 \end_inset
20678
20679 Uncited sources
20680 \begin_inset Quotes erd
20681 \end_inset
20682
20683 ,
20684  and 
20685 \begin_inset Quotes eld
20686 \end_inset
20687
20688 Scientific works
20689 \begin_inset Quotes erd
20690 \end_inset
20691
20692 .
20693  The titles for the sections can be added as ordinary sections or subsections.
20694  Since 
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 bibtopic
20700 \end_layout
20701
20702 \end_inset
20703
20704  removes the bibliography title,
20705  you have to manually re-add that,
20706  too (as a chapter* or section*,
20707  for instance).
20708 \end_layout
20709
20710 \begin_layout Standard
20711 With 
20712 \family sans
20713 Biblatex
20714 \family default
20715 ,
20716  the procedure is a bit different.
20717  Since 
20718 \family typewriter
20719 bibtopic
20720 \family default
20721  does not work with 
20722 \family sans
20723 Biblatex
20724 \family default
20725 ,
20726  the aforementioned 
20727 \begin_inset Flex Noun
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 Subdivided bibliography
20732 \end_layout
20733
20734 \end_inset
20735
20736  option is disabled if you use 
20737 \family sans
20738 Biblatex
20739 \family default
20740 .
20741  However,
20742  
20743 \family sans
20744 Biblatex
20745 \family default
20746  provides its own means to generate subdivided bibliographies.
20747  You can either add keywords to bibliography entries via the 
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 keywords
20753 \end_layout
20754
20755 \end_inset
20756
20757  entry option and then filter bibliography sections by keyword (by adding 
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 keyword=mykeyword
20763 \end_layout
20764
20765 \end_inset
20766
20767  to the 
20768 \begin_inset Flex Noun
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 Options
20773 \end_layout
20774
20775 \end_inset
20776
20777  field of the dialog that opens if you left-click on the 
20778 \begin_inset Flex Noun
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782 Biblatex Generated Bibliography
20783 \end_layout
20784
20785 \end_inset
20786
20787  button),
20788  or you can filter by entry types (such as 
20789 \emph on
20790 book
20791 \emph default
20792  or 
20793 \emph on
20794 article
20795 \emph default
20796 ) by entering e.
20797 \begin_inset space \thinspace{}
20798 \end_inset
20799
20800 g.
20801  
20802 \begin_inset Flex Code
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806 type=book
20807 \end_layout
20808
20809 \end_inset
20810
20811  or 
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 nottype=collection
20817 \end_layout
20818
20819 \end_inset
20820
20821  to the mentioned 
20822 \begin_inset Flex Noun
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 Options
20827 \end_layout
20828
20829 \end_inset
20830
20831  field,
20832  or you can create so-called 
20833 \begin_inset Quotes eld
20834 \end_inset
20835
20836 Bibliography Categories
20837 \begin_inset Quotes erd
20838 \end_inset
20839
20840  to which you can assign individual entries.
20841  Please refer to the Biblatex manual,
20842  section 
20843 \emph on
20844 Subdivided Bibliographies
20845 \emph default
20846 ,
20847  for details.
20848 \end_layout
20849
20850 \begin_layout Section
20851 Multiple Bibliographies
20852 \begin_inset CommandInset label
20853 LatexCommand label
20854 name "subsec:Multiple-Bibliographies"
20855
20856 \end_inset
20857
20858
20859 \end_layout
20860
20861 \begin_layout Standard
20862 Multiple bibliographies,
20863  e.
20864 \begin_inset space \thinspace{}
20865 \end_inset
20866
20867 g.
20868 \begin_inset space \space{}
20869 \end_inset
20870
20871 a bibliography for each part,
20872  chapter,
20873  section,
20874  subsection or child (sub-document) of the document,
20875  are also supported by \SpecialChar LyX
20876 .
20877  In order to enable it,
20878  go to 
20879 \family sans
20880 Document\SpecialChar menuseparator
20881 Settings\SpecialChar menuseparator
20882 Bibliography
20883 \family default
20884  and select the relevant unit (e.
20885 \begin_inset space \thinspace{}
20886 \end_inset
20887
20888 g.,
20889  
20890 \begin_inset Quotes eld
20891 \end_inset
20892
20893 per section
20894 \begin_inset Quotes erd
20895 \end_inset
20896
20897 ) in the 
20898 \begin_inset Flex Noun
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 Multiple Bibliographies
20903 \end_layout
20904
20905 \end_inset
20906
20907  combo box.
20908  Then add a Bib(la)\SpecialChar TeX
20909  bibliography to each unit (e.
20910 \begin_inset space \thinspace{}
20911 \end_inset
20912
20913 g.,
20914  section) of your document.
20915  In the output,
20916  a separate bibliography,
20917  containing only the references done in the current unit is generated.
20918 \end_layout
20919
20920 \begin_layout Standard
20921 If you use Bib\SpecialChar TeX
20922 ,
20923  either the 
20924 \begin_inset Flex Code
20925 status collapsed
20926
20927 \begin_layout Plain Layout
20928 chapterbib
20929 \end_layout
20930
20931 \end_inset
20932
20933  or the 
20934 \begin_inset Flex Code
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938 bibtopic
20939 \end_layout
20940
20941 \end_inset
20942
20943  package is used to create multiple bibliographies.
20944  The former package is used if you select 
20945 \begin_inset Quotes eld
20946 \end_inset
20947
20948 per child document
20949 \begin_inset Quotes erd
20950 \end_inset
20951
20952  and do 
20953 \emph on
20954 not
20955 \emph default
20956  check 
20957 \begin_inset Flex Noun
20958 status collapsed
20959
20960 \begin_layout Plain Layout
20961 Sectioned Bibliography
20962 \end_layout
20963
20964 \end_inset
20965
20966 .
20967  In all other cases,
20968  
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 bibtopic
20974 \end_layout
20975
20976 \end_inset
20977
20978  is used.
20979 \begin_inset Foot
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983 An alternative approach,
20984  if you are willing to use some 
20985 \begin_inset Flex Noun
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 \SpecialChar TeX
20990  Code
20991 \end_layout
20992
20993 \end_inset
20994
20995  (see section
20996 \begin_inset space ~
20997 \end_inset
20998
20999
21000 \begin_inset CommandInset ref
21001 LatexCommand ref
21002 reference "sec:Inserting-TeX-Code"
21003 nolink "false"
21004
21005 \end_inset
21006
21007 ),
21008  is to use the 
21009 \begin_inset Flex Code
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 bibunits
21014 \end_layout
21015
21016 \end_inset
21017
21018  package.
21019 \end_layout
21020
21021 \end_inset
21022
21023  If 
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 bibtopic
21029 \end_layout
21030
21031 \end_inset
21032
21033  is used,
21034  \SpecialChar LyX
21035  encloses the specified units in 
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 bibtopic
21041 \end_layout
21042
21043 \end_inset
21044
21045 's 
21046 \begin_inset Flex Code
21047 status collapsed
21048
21049 \begin_layout Plain Layout
21050
21051 \backslash
21052 begin{btUnit}
21053 \end_layout
21054
21055 \end_inset
21056
21057  and 
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062
21063 \backslash
21064 end{btUnit}
21065 \end_layout
21066
21067 \end_inset
21068
21069  in order to create the units.
21070  Note that this approach has some limitations.
21071  First,
21072  every citation reference has to be inside some 
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 btUnit
21078 \end_layout
21079
21080 \end_inset
21081
21082 .
21083  So citations outside a defined unit (e.
21084 \begin_inset space \thinspace{}
21085 \end_inset
21086
21087 g.,
21088  before the first section if you use 
21089 \begin_inset Quotes eld
21090 \end_inset
21091
21092 by section
21093 \begin_inset Quotes erd
21094 \end_inset
21095
21096 ) will appear as 
21097 \begin_inset Quotes eld
21098 \end_inset
21099
21100 ???
21101 \begin_inset Quotes erd
21102 \end_inset
21103
21104 .
21105  You can also create your own units by entering 
21106 \begin_inset Flex Code
21107 status collapsed
21108
21109 \begin_layout Plain Layout
21110
21111 \backslash
21112 begin{btUnit}
21113 \end_layout
21114
21115 \end_inset
21116
21117  and 
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122
21123 \backslash
21124 end{btUnit}
21125 \end_layout
21126
21127 \end_inset
21128
21129  as \SpecialChar TeX
21130  code (for instance to work around the mentioned limitation).
21131  Note,
21132  though,
21133  that 
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 btUnit
21139 \end_layout
21140
21141 \end_inset
21142
21143 s cannot be nested.
21144  A second limitation is that 
21145 \begin_inset Flex Code
21146 status collapsed
21147
21148 \begin_layout Plain Layout
21149 bibtopic
21150 \end_layout
21151
21152 \end_inset
21153
21154  always processes all references of a bibliography database,
21155  even if they are not cited.
21156  This can result in odd labels (e.
21157 \begin_inset space \thinspace{}
21158 \end_inset
21159
21160 g.
21161  
21162 \begin_inset Quotes eld
21163 \end_inset
21164
21165 Miller 2014b
21166 \begin_inset Quotes erd
21167 \end_inset
21168
21169  if two works of this author from 2014 are in the database,
21170  even if only one is cited).
21171 \end_layout
21172
21173 \begin_layout Standard
21174 If you use 
21175 \family sans
21176 Biblatex
21177 \family default
21178 ,
21179  the 
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 refsection
21185 \end_layout
21186
21187 \end_inset
21188
21189  option is used instead.
21190  If you need specific units,
21191  you can start them with the \SpecialChar TeX
21192  code 
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197
21198 \backslash
21199 newrefsection
21200 \end_layout
21201
21202 \end_inset
21203
21204  or 
21205 \begin_inset Flex Code
21206 status collapsed
21207
21208 \begin_layout Plain Layout
21209
21210 \backslash
21211 newrefsegment
21212 \end_layout
21213
21214 \end_inset
21215
21216 ,
21217  respectively.
21218  If you also want to control the end of the unit,
21219  use the environment 
21220 \begin_inset Flex Code
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224
21225 \backslash
21226 begin{refsection}
21227 \end_layout
21228
21229 \end_inset
21230
21231  \SpecialChar ldots
21232  
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237
21238 \backslash
21239 end{refsection}
21240 \end_layout
21241
21242 \end_inset
21243
21244  instead.
21245  Note,
21246  though,
21247  that 
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 refsection
21253 \end_layout
21254
21255 \end_inset
21256
21257 s cannot be nested.
21258  In addition to the individual bibliography of the current unit,
21259  
21260 \family sans
21261 Biblatex
21262 \family default
21263  also provides an easy way to output all bibliographies,
21264  subsequently,
21265  at one place (e.
21266 \begin_inset space \thinspace{}
21267 \end_inset
21268
21269 g.,
21270  at the end of the document).
21271  Select 
21272 \begin_inset Quotes eld
21273 \end_inset
21274
21275 all reference units
21276 \begin_inset Quotes erd
21277 \end_inset
21278
21279  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
21280  Please refer to the 
21281 \family sans
21282 Biblatex
21283 \family default
21284  manual for more information on this topic.
21285 \end_layout
21286
21287 \begin_layout Chapter
21288 Bullets
21289 \begin_inset CommandInset label
21290 LatexCommand label
21291 name "chap:bullets"
21292
21293 \end_inset
21294
21295
21296 \end_layout
21297
21298 \begin_layout Standard
21299 by
21300 \noun on
21301  Allan Rae
21302 \end_layout
21303
21304 \begin_layout Section
21305 Introduction
21306 \end_layout
21307
21308 \begin_layout Standard
21309 \SpecialChar LyX
21310  provides 216 bullet shapes that can be accessed from a simple dialog.
21311  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
21312  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
21313 \begin_inset Foot
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 Well,
21318  actually you can but you'll have to do it by hand.
21319 \end_layout
21320
21321 \end_inset
21322
21323
21324 \end_layout
21325
21326 \begin_layout Section
21327 How it looks
21328 \end_layout
21329
21330 \begin_layout Standard
21331 Open the dialog by selecting the 
21332 \family sans
21333 Document\SpecialChar menuseparator
21334 Settings
21335 \family default
21336  menu item and then select the 
21337 \begin_inset Flex Noun
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341 Bullets
21342 \end_layout
21343
21344 \end_inset
21345
21346  tab.
21347 \end_layout
21348
21349 \begin_layout Standard
21350 The dialog provides you with a table of bullet shapes.
21351  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
21352  The row of buttons across the top is used to select which bullet depth you are changing.
21353 \end_layout
21354
21355 \begin_layout Standard
21356 If you select 
21357 \family sans
21358 Custom bullet
21359 \family default
21360 ,
21361  a text entry under the table will be activated in which you can enter a bullet shape's \SpecialChar LaTeX
21362  equivalent.
21363  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
21364  preamble.
21365 \end_layout
21366
21367 \begin_layout Standard
21368 The six panels are divided up by the packages they require.
21369  The following table shows the mappings from button name to \SpecialChar LaTeX
21370  package.
21371 \end_layout
21372
21373 \begin_layout Standard
21374 \align center
21375 \begin_inset Tabular
21376 <lyxtabular version="3" rows="7" columns="2">
21377 <features tabularvalignment="middle">
21378 <column alignment="center" valignment="top" width="0pt">
21379 <column alignment="center" valignment="top" width="0pt">
21380 <row>
21381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21382 \begin_inset Text
21383
21384 \begin_layout Plain Layout
21385
21386 \family roman
21387 \series medium
21388 \shape up
21389 \size normal
21390 \emph off
21391 \bar no
21392 \noun off
21393 \color none
21394 Button
21395 \end_layout
21396
21397 \end_inset
21398 </cell>
21399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21400 \begin_inset Text
21401
21402 \begin_layout Plain Layout
21403
21404 \family roman
21405 \series medium
21406 \shape up
21407 \size normal
21408 \emph off
21409 \bar no
21410 \noun off
21411 \color none
21412 Packages Required
21413 \end_layout
21414
21415 \end_inset
21416 </cell>
21417 </row>
21418 <row>
21419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21420 \begin_inset Text
21421
21422 \begin_layout Plain Layout
21423
21424 \family sans
21425 \series medium
21426 \shape up
21427 \size normal
21428 \emph off
21429 \bar no
21430 \noun off
21431 \color none
21432 Standard
21433 \end_layout
21434
21435 \end_inset
21436 </cell>
21437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21438 \begin_inset Text
21439
21440 \begin_layout Plain Layout
21441
21442 \series medium
21443 \shape up
21444 \size normal
21445 \emph off
21446 \bar no
21447 \noun off
21448 \color none
21449 base \SpecialChar LaTeX
21450
21451 \end_layout
21452
21453 \end_inset
21454 </cell>
21455 </row>
21456 <row>
21457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21458 \begin_inset Text
21459
21460 \begin_layout Plain Layout
21461
21462 \family sans
21463 \series medium
21464 \shape up
21465 \size normal
21466 \emph off
21467 \bar no
21468 \noun off
21469 \color none
21470 Maths
21471 \end_layout
21472
21473 \end_inset
21474 </cell>
21475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21476 \begin_inset Text
21477
21478 \begin_layout Plain Layout
21479
21480 \family typewriter
21481 \series medium
21482 \shape up
21483 \size normal
21484 \emph off
21485 \bar no
21486 \noun off
21487 \color none
21488 amssymb.sty
21489 \end_layout
21490
21491 \end_inset
21492 </cell>
21493 </row>
21494 <row>
21495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21496 \begin_inset Text
21497
21498 \begin_layout Plain Layout
21499
21500 \family sans
21501 \series medium
21502 \shape up
21503 \size normal
21504 \emph off
21505 \bar no
21506 \noun off
21507 \color none
21508 Ding1
21509 \end_layout
21510
21511 \end_inset
21512 </cell>
21513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21514 \begin_inset Text
21515
21516 \begin_layout Plain Layout
21517
21518 \family typewriter
21519 \series medium
21520 \shape up
21521 \size normal
21522 \emph off
21523 \bar no
21524 \noun off
21525 \color none
21526 pifont.sty
21527 \end_layout
21528
21529 \end_inset
21530 </cell>
21531 </row>
21532 <row>
21533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21534 \begin_inset Text
21535
21536 \begin_layout Plain Layout
21537
21538 \family sans
21539 \series medium
21540 \shape up
21541 \size normal
21542 \emph off
21543 \bar no
21544 \noun off
21545 \color none
21546 Ding2
21547 \end_layout
21548
21549 \end_inset
21550 </cell>
21551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21552 \begin_inset Text
21553
21554 \begin_layout Plain Layout
21555
21556 \family typewriter
21557 \series medium
21558 \shape up
21559 \size normal
21560 \emph off
21561 \bar no
21562 \noun off
21563 \color none
21564 pifont.sty
21565 \end_layout
21566
21567 \end_inset
21568 </cell>
21569 </row>
21570 <row>
21571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21572 \begin_inset Text
21573
21574 \begin_layout Plain Layout
21575
21576 \family sans
21577 \series medium
21578 \shape up
21579 \size normal
21580 \emph off
21581 \bar no
21582 \noun off
21583 \color none
21584 Ding3
21585 \end_layout
21586
21587 \end_inset
21588 </cell>
21589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21590 \begin_inset Text
21591
21592 \begin_layout Plain Layout
21593
21594 \family typewriter
21595 \series medium
21596 \shape up
21597 \size normal
21598 \emph off
21599 \bar no
21600 \noun off
21601 \color none
21602 pifont.sty
21603 \end_layout
21604
21605 \end_inset
21606 </cell>
21607 </row>
21608 <row>
21609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21610 \begin_inset Text
21611
21612 \begin_layout Plain Layout
21613
21614 \family sans
21615 \series medium
21616 \shape up
21617 \size normal
21618 \emph off
21619 \bar no
21620 \noun off
21621 \color none
21622 Ding4
21623 \end_layout
21624
21625 \end_inset
21626 </cell>
21627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21628 \begin_inset Text
21629
21630 \begin_layout Plain Layout
21631
21632 \family typewriter
21633 \series medium
21634 \shape up
21635 \size normal
21636 \emph off
21637 \bar no
21638 \noun off
21639 \color none
21640 pifont.sty
21641 \end_layout
21642
21643 \end_inset
21644 </cell>
21645 </row>
21646 </lyxtabular>
21647
21648 \end_inset
21649
21650
21651 \end_layout
21652
21653 \begin_layout Standard
21654 \SpecialChar LyX
21655  doesn't stop you using bullets from packages you don't have.
21656  If you get errors from \SpecialChar LaTeX
21657  when you try to view or print the file,
21658  then it is likely you are missing a package.
21659 \begin_inset Foot
21660 status collapsed
21661
21662 \begin_layout Plain Layout
21663 \SpecialChar LyX
21664  doesn't restrict your use since you may be editing locally and exporting elsewhere.
21665 \end_layout
21666
21667 \end_inset
21668
21669
21670 \end_layout
21671
21672 \begin_layout Section
21673 \begin_inset CommandInset label
21674 LatexCommand label
21675 name "sec:How-to-use"
21676
21677 \end_inset
21678
21679 How to use it
21680 \end_layout
21681
21682 \begin_layout Standard
21683 Select which bullet depth you want to change then select the bullet shape and size.
21684  Any changes will not be visible in \SpecialChar LyX
21685 ,
21686  but are visible when viewing the document.
21687 \end_layout
21688
21689 \begin_layout Standard
21690 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
21691 \begin_inset CommandInset label
21692 LatexCommand label
21693 name "fn:If-you-really"
21694
21695 \end_inset
21696
21697
21698 \end_layout
21699
21700 \begin_layout Standard
21701 If you 
21702 \emph on
21703 really
21704 \emph default
21705  want to have multiple sets of paragraphs with different sets of bullets in each,
21706  then you're going to have to get your hands dirty with \SpecialChar TeX
21707  code.
21708  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
21709  code for a wide range of bullet shapes.
21710  To make your own custom paragraphs you have the following options:
21711 \end_layout
21712
21713 \begin_layout Standard
21714 \begin_inset ERT
21715 status open
21716
21717 \begin_layout Plain Layout
21718
21719
21720 \backslash
21721 let
21722 \backslash
21723 savelabelitemi=
21724 \backslash
21725 labelitemi
21726 \end_layout
21727
21728 \end_inset
21729
21730
21731 \end_layout
21732
21733 \begin_layout Standard
21734 \begin_inset ERT
21735 status open
21736
21737 \begin_layout Plain Layout
21738
21739
21740 \backslash
21741 renewcommand
21742 \backslash
21743 labelitemi[0]{
21744 \backslash
21745 small
21746 \backslash
21747 (
21748 \backslash
21749 sharp
21750 \backslash
21751 )}
21752 \end_layout
21753
21754 \end_inset
21755
21756
21757 \end_layout
21758
21759 \begin_layout Itemize
21760 Use the \SpecialChar LaTeX
21761  command 
21762 \begin_inset Flex Code
21763 status collapsed
21764
21765 \begin_layout Plain Layout
21766
21767 \backslash
21768 renewcommand
21769 \end_layout
21770
21771 \end_inset
21772
21773  to specify a new bullet shape for a given depth.
21774  You'll also need to save the current bullet shape so you can restore it again afterwards.
21775  In this itemized list the following \SpecialChar LaTeX
21776  code was used to change the bullet used for the first depth.
21777 \end_layout
21778
21779 \begin_deeper
21780 \begin_layout LyX-Code
21781
21782 \backslash
21783 let
21784 \backslash
21785 savelabelitemi=
21786 \backslash
21787 labelitemi 
21788 \end_layout
21789
21790 \begin_layout LyX-Code
21791
21792 \backslash
21793 renewcommand
21794 \backslash
21795 labelitemi[0]{
21796 \backslash
21797 small
21798 \backslash
21799 (
21800 \backslash
21801 sharp
21802 \backslash
21803 )}
21804 \end_layout
21805
21806 \end_deeper
21807 \begin_layout Itemize
21808 Note that the itemize depth is specified in Roman numerals as part of the 
21809 \family typewriter
21810
21811 \backslash
21812 labelitem
21813 \family default
21814  command.
21815 \end_layout
21816
21817 \begin_layout Itemize
21818 \begin_inset Argument item:1
21819 status open
21820
21821 \begin_layout Plain Layout
21822 \begin_inset ERT
21823 status open
21824
21825 \begin_layout Plain Layout
21826
21827
21828 \backslash
21829 (
21830 \backslash
21831 star
21832 \backslash
21833 )
21834 \end_layout
21835
21836 \end_inset
21837
21838
21839 \end_layout
21840
21841 \end_inset
21842
21843  Specify each individual entry by starting each item with the bullet shape enclosed in a 
21844 \begin_inset Quotes eld
21845 \end_inset
21846
21847 Custom Item
21848 \begin_inset Quotes erd
21849 \end_inset
21850
21851  inset (available at 
21852 \family sans
21853 Insert\SpecialChar menuseparator
21854 Custom Item
21855 \family default
21856 ) and set as 
21857 \begin_inset Flex Noun
21858 status collapsed
21859
21860 \begin_layout Plain Layout
21861 \SpecialChar TeX
21862  Code
21863 \end_layout
21864
21865 \end_inset
21866
21867 .
21868  For example,
21869  this item was started with 
21870 \begin_inset Flex Code
21871 status collapsed
21872
21873 \begin_layout Plain Layout
21874
21875 \backslash
21876 (
21877 \backslash
21878 star
21879 \backslash
21880 )
21881 \end_layout
21882
21883 \end_inset
21884
21885 .
21886 \end_layout
21887
21888 \begin_layout Standard
21889 \begin_inset ERT
21890 status open
21891
21892 \begin_layout Plain Layout
21893
21894
21895 \backslash
21896 renewcommand
21897 \backslash
21898 labelitemi[0]{
21899 \backslash
21900 savelabelitemi}
21901 \end_layout
21902
21903 \end_inset
21904
21905
21906 \end_layout
21907
21908 \begin_layout Standard
21909 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
21910  The way used here was:
21911 \end_layout
21912
21913 \begin_layout LyX-Code
21914
21915 \backslash
21916 renewcommand
21917 \backslash
21918 labelitemi[0]{
21919 \backslash
21920 savelabelitemi}
21921 \end_layout
21922
21923 \begin_layout Chapter
21924 Supplemental Tools
21925 \end_layout
21926
21927 \begin_layout Section
21928 Multipart Documents
21929 \end_layout
21930
21931 \begin_layout Subsection
21932 General Operation
21933 \end_layout
21934
21935 \begin_layout Standard
21936 When you are working on a large file with many sections,
21937  it is often convenient to break up the document into several files,
21938  or perhaps you have something where a table may change from time to time,
21939  but the preceding text does not.
21940  In these cases,
21941  you should seriously consider using multipart documents.
21942  For example,
21943  scientific papers often have five major sections:
21944  the introduction,
21945  observations,
21946  results,
21947  discussion,
21948  and conclusion.
21949  Each of these could be its own separate \SpecialChar LyX
21950  file,
21951  with one 
21952 \begin_inset Quotes eld
21953 \end_inset
21954
21955 master
21956 \begin_inset Quotes erd
21957 \end_inset
21958
21959  file which contains the title,
21960  authors,
21961  abstract,
21962  references,
21963  etc.,
21964  plus the five included files.
21965  It is important to note that each of these files is a full \SpecialChar LyX
21966  file which can be formatted and printed on its own,
21967  as well as included in a master file.
21968  Each of these files must have the same document class,
21969  however—
21970 don't attempt to mix book classes with article classes.
21971  You may also include \SpecialChar LaTeX
21972  files;
21973  however,
21974  these files must not have their own preamble (i.
21975 \begin_inset space \thinspace{}
21976 \end_inset
21977
21978 e.
21979 \begin_inset space \space{}
21980 \end_inset
21981
21982 everything up to and including the 
21983 \begin_inset Flex Code
21984 status collapsed
21985
21986 \begin_layout Plain Layout
21987
21988 \backslash
21989 begin{document}
21990 \end_layout
21991
21992 \end_inset
21993
21994  line as well as the 
21995 \begin_inset Flex Code
21996 status collapsed
21997
21998 \begin_layout Plain Layout
21999
22000 \backslash
22001 end{document}
22002 \end_layout
22003
22004 \end_inset
22005
22006  line must be deleted) or else errors will be generated when you try to make a DVI file.
22007 \end_layout
22008
22009 \begin_layout Standard
22010 \SpecialChar LyX
22011  allows you to include files quite easily with 
22012 \family sans
22013 Insert\SpecialChar menuseparator
22014 Child
22015 \begin_inset space ~
22016 \end_inset
22017
22018 Document
22019 \family default
22020 .
22021  When you click on this selection a small box is inserted into the file at the current cursor location.
22022  Clicking on the box raises a dialog which allows you to select the file to be included,
22023  and the method of its inclusion.
22024  
22025 \end_layout
22026
22027 \begin_layout Standard
22028 The file selection box should by now be obvious.
22029  The three inclusion methods are 
22030 \begin_inset Quotes eld
22031 \end_inset
22032
22033 include
22034 \begin_inset Quotes erd
22035 \end_inset
22036
22037 ,
22038  
22039 \begin_inset Quotes eld
22040 \end_inset
22041
22042 input
22043 \begin_inset Quotes erd
22044 \end_inset
22045
22046 ,
22047  and 
22048 \begin_inset Quotes eld
22049 \end_inset
22050
22051 verbatim
22052 \begin_inset Quotes erd
22053 \end_inset
22054
22055 .
22056  The methods 
22057 \begin_inset Quotes eld
22058 \end_inset
22059
22060 include
22061 \begin_inset Quotes erd
22062 \end_inset
22063
22064  and 
22065 \begin_inset Quotes eld
22066 \end_inset
22067
22068 input
22069 \begin_inset Quotes erd
22070 \end_inset
22071
22072  are similar in many ways,
22073  but there are also some notable differences:
22074 \end_layout
22075
22076 \begin_layout Enumerate
22077 Files that are 
22078 \begin_inset Quotes eld
22079 \end_inset
22080
22081 included
22082 \begin_inset Quotes erd
22083 \end_inset
22084
22085  are typeset beginning on a new page,
22086  while files that are 
22087 \begin_inset Quotes eld
22088 \end_inset
22089
22090 inputted
22091 \begin_inset Quotes erd
22092 \end_inset
22093
22094  are typeset starting on the current page.
22095 \end_layout
22096
22097 \begin_layout Enumerate
22098 \begin_inset Quotes eld
22099 \end_inset
22100
22101 Included
22102 \begin_inset Quotes erd
22103 \end_inset
22104
22105  files cannot themselves 
22106 \begin_inset Quotes eld
22107 \end_inset
22108
22109 include
22110 \begin_inset Quotes erd
22111 \end_inset
22112
22113  further files (
22114 \begin_inset Quotes eld
22115 \end_inset
22116
22117 grandchilds
22118 \begin_inset Quotes erd
22119 \end_inset
22120
22121 ).
22122  With 
22123 \begin_inset Quotes eld
22124 \end_inset
22125
22126 input
22127 \begin_inset Quotes erd
22128 \end_inset
22129
22130 ,
22131  on the other hand,
22132  infinite sub-inputting is possible.
22133 \end_layout
22134
22135 \begin_layout Enumerate
22136 \begin_inset Quotes eld
22137 \end_inset
22138
22139 Include
22140 \begin_inset Quotes erd
22141 \end_inset
22142
22143  allow for the output of only selected 
22144 \begin_inset Quotes eld
22145 \end_inset
22146
22147 included
22148 \begin_inset Quotes erd
22149 \end_inset
22150
22151  files,
22152  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
22153 \emph on
22154 Child
22155 \begin_inset space ~
22156 \end_inset
22157
22158 Documents
22159 \emph default
22160  of the 
22161 \emph on
22162 Embedded
22163 \begin_inset space ~
22164 \end_inset
22165
22166 Objects
22167 \emph default
22168  manual for details).
22169 \end_layout
22170
22171 \begin_layout Standard
22172 Hence,
22173  
22174 \begin_inset Quotes eld
22175 \end_inset
22176
22177 include
22178 \begin_inset Quotes erd
22179 \end_inset
22180
22181  is the preferred method for chapters that are outsourced to child documents,
22182  while 
22183 \begin_inset Quotes eld
22184 \end_inset
22185
22186 input
22187 \begin_inset Quotes erd
22188 \end_inset
22189
22190  is more suitable for arbitrary file inheritance.
22191 \end_layout
22192
22193 \begin_layout Standard
22194
22195 \begin_inset Quotes eld
22196 \end_inset
22197
22198 verbatim
22199 \begin_inset Quotes erd
22200 \end_inset
22201
22202  included file allows you to include a file typeset exactly as it appears in the file,
22203  i.
22204 \begin_inset space \thinspace{}
22205 \end_inset
22206
22207 e.
22208 \begin_inset space \space{}
22209 \end_inset
22210
22211 in 
22212 \begin_inset Flex Code
22213 status collapsed
22214
22215 \begin_layout Plain Layout
22216 verbatim
22217 \end_layout
22218
22219 \end_inset
22220
22221  mode,
22222  with the characters set in a fixed-width typewriter font.
22223  Normally,
22224  spaces in this file are invisible,
22225  though two consecutive spaces are conserved,
22226  unlike \SpecialChar LyX
22227 's normal treatment of spaces.
22228  However,
22229  setting the 
22230 \begin_inset Flex Noun
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 Mark
22235 \begin_inset space ~
22236 \end_inset
22237
22238 spaces
22239 \begin_inset space ~
22240 \end_inset
22241
22242 in
22243 \begin_inset space ~
22244 \end_inset
22245
22246 output
22247 \end_layout
22248
22249 \end_inset
22250
22251  checkbox typesets a mark to unambiguously define the presence of a space.
22252  
22253 \end_layout
22254
22255 \begin_layout Standard
22256 Generally,
22257  the master file is converted into a full \SpecialChar LaTeX
22258  file before typesetting,
22259  while the included files are converted to \SpecialChar LaTeX
22260  files that do not have all the preamble information.
22261 \end_layout
22262
22263 \begin_layout Subsection
22264 Cross-References Between Files
22265 \end_layout
22266
22267 \begin_layout Standard
22268 \begin_inset Box Shadowbox
22269 position "t"
22270 hor_pos "c"
22271 has_inner_box 1
22272 inner_pos "t"
22273 use_parbox 0
22274 use_makebox 0
22275 width "100col%"
22276 special "none"
22277 height "1in"
22278 height_special "totalheight"
22279 thickness "0.4pt"
22280 separation "3pt"
22281 shadowsize "4pt"
22282 framecolor "black"
22283 backgroundcolor "none"
22284 status open
22285
22286 \begin_layout Plain Layout
22287 This section is somewhat out of date.
22288  Need to describe default master documents and how children are opened when the master is.
22289  [[FIXME]]
22290 \end_layout
22291
22292 \end_inset
22293
22294
22295 \end_layout
22296
22297 \begin_layout Standard
22298 It is possible to set up cross-references between the different files.
22299  First,
22300  open all the files in question:
22301  let's call them A and B in a two file example,
22302  where B is included in A.
22303  Let's say you insert a label in A,
22304  then want to reference it in B.
22305  Open the cross-reference dialog whilst in document B,
22306  and you can select the 
22307 \begin_inset Quotes eld
22308 \end_inset
22309
22310 buffer
22311 \begin_inset Quotes erd
22312 \end_inset
22313
22314  to use.
22315 \end_layout
22316
22317 \begin_layout Subsection
22318 Bibliography Lists in all Subdocuments
22319 \end_layout
22320
22321 \begin_layout Standard
22322 If you work with child documents,
22323  you might want to have only one main bibliography at the end,
22324  but still be able to have a selected bibliography for the child if you output it on its own.
22325  Here is how to achieve this.
22326 \end_layout
22327
22328 \begin_layout Standard
22329 For the main document,
22330  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
22331  If the bibliography inset is in the master file,
22332  the references will be inherited by all children,
22333  so they are available in the citation dialog within each child.
22334 \end_layout
22335
22336 \begin_layout Standard
22337 For child-specific bibliographies,
22338  insert bibliography insets within the child documents,
22339  at the place where the bibliography should appear when the child is compiled separately.
22340  However,
22341  the trick is to insert them into a branch (
22342 \family sans
22343 Insert\SpecialChar menuseparator
22344 Branch\SpecialChar menuseparator
22345 Insert New Branch...
22346 \family default
22347 ),
22348  e.
22349 \begin_inset space \thinspace{}
22350 \end_inset
22351
22352 g.
22353  called 
22354 \begin_inset Quotes eld
22355 \end_inset
22356
22357 Childonly
22358 \begin_inset Quotes erd
22359 \end_inset
22360
22361 .
22362  Within the children,
22363  activate the branch (
22364 \family sans
22365 Document\SpecialChar menuseparator
22366 Settings...\SpecialChar menuseparator
22367 Branches
22368 \family default
22369 ).
22370  Within the master,
22371  deactivate the branch (
22372 \family sans
22373 Document\SpecialChar menuseparator
22374 Settings...\SpecialChar menuseparator
22375 Branches
22376 \family default
22377 ).
22378  Now the child's bibliography will be ignored by the master,
22379  but considered by the child.
22380 \end_layout
22381
22382 \begin_layout Standard
22383 If you need multiple bibliographies (e.
22384 \begin_inset space \thinspace{}
22385 \end_inset
22386
22387 g.,
22388  one per child in the 
22389 \emph on
22390 main document
22391 \emph default
22392 ),
22393  please refer to sec.
22394 \begin_inset space ~
22395 \end_inset
22396
22397
22398 \begin_inset CommandInset ref
22399 LatexCommand ref
22400 reference "subsec:Multiple-Bibliographies"
22401 nolink "false"
22402
22403 \end_inset
22404
22405 .
22406 \end_layout
22407
22408 \begin_layout Section
22409 \SpecialChar LyX
22410  Archives
22411 \end_layout
22412
22413 \begin_layout Standard
22414 Users sometimes need to be able to 
22415 \begin_inset Quotes eld
22416 \end_inset
22417
22418 bundle
22419 \begin_inset Quotes erd
22420 \end_inset
22421
22422  a \SpecialChar LyX
22423  file together with all the images (and other files) on which it depends,
22424  either for sending to a publisher or for sharing with a co-author.
22425  \SpecialChar LyX
22426  includes a Python script (
22427 \begin_inset Flex Code
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 lyxpak.py
22432 \end_layout
22433
22434 \end_inset
22435
22436 ) that automates this process.
22437  To use it,
22438  you must have either the 
22439 \begin_inset Flex Code
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 zipfile
22444 \end_layout
22445
22446 \end_inset
22447
22448  or 
22449 \begin_inset Flex Code
22450 status collapsed
22451
22452 \begin_layout Plain Layout
22453 tarfile
22454 \end_layout
22455
22456 \end_inset
22457
22458  python modules installed on your system.
22459  By default,
22460  the script prefers the 
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 gzip
22466 \end_layout
22467
22468 \end_inset
22469
22470 -compressed 
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 tar
22476 \end_layout
22477
22478 \end_inset
22479
22480  format on Unix-like systems and the 
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 zip
22486 \end_layout
22487
22488 \end_inset
22489
22490  format on Windows.
22491 \end_layout
22492
22493 \begin_layout Standard
22494 \SpecialChar LyX
22495 's configuration process will set the script up to export a `\SpecialChar LyX
22496  Archive',
22497  and this format will then be available under 
22498 \family sans
22499 File\SpecialChar menuseparator
22500 Export
22501 \family default
22502 .
22503 \end_layout
22504
22505 \begin_layout Standard
22506 Independently of the platform,
22507  the generation of a particular archive format can be forced by adding either the 
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 -t
22513 \end_layout
22514
22515 \end_inset
22516
22517  (for the 
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522 tar
22523 \end_layout
22524
22525 \end_inset
22526
22527  format) or 
22528 \begin_inset Flex Code
22529 status collapsed
22530
22531 \begin_layout Plain Layout
22532 -z
22533 \end_layout
22534
22535 \end_inset
22536
22537  (for the 
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 zip
22543 \end_layout
22544
22545 \end_inset
22546
22547  format) switch to the 
22548 \begin_inset Flex Code
22549 status collapsed
22550
22551 \begin_layout Plain Layout
22552 \SpecialChar LyX
22553 ->\SpecialChar LyX
22554  Archive
22555 \end_layout
22556
22557 \end_inset
22558
22559  converter in 
22560 \family sans
22561 Tools\SpecialChar menuseparator
22562 Preferences\SpecialChar menuseparator
22563 File Handling\SpecialChar menuseparator
22564 Converters
22565 \family default
22566 .
22567  (Make sure you add the switch after the script name,
22568  not before it.)
22569 \end_layout
22570
22571 \begin_layout Chapter
22572 \SpecialChar LyX
22573  and the World Wide Web
22574 \end_layout
22575
22576 \begin_layout Standard
22577 \SpecialChar LyX
22578  has long supported the export of documents to various web-friendly formats,
22579  such as HTML.
22580  Before version 2.0,
22581  however,
22582  HTML export was always accomplished by the use of external converters.
22583 \begin_inset Foot
22584 status collapsed
22585
22586 \begin_layout Plain Layout
22587 For details on the use of external converters with \SpecialChar LyX
22588 ,
22589  see the 
22590 \emph on
22591 Converters
22592 \emph default
22593  section of the Customization manual.
22594 \end_layout
22595
22596 \end_inset
22597
22598  These fall into two large groups:
22599  there are converters that use \SpecialChar LaTeX
22600  as an intermediate format,
22601  such as 
22602 \begin_inset Flex Code
22603 status collapsed
22604
22605 \begin_layout Plain Layout
22606 htlatex
22607 \end_layout
22608
22609 \end_inset
22610
22611 ,
22612  
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 html2latex
22618 \end_layout
22619
22620 \end_inset
22621
22622 ,
22623  and 
22624 \begin_inset Flex Code
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628 plastex
22629 \end_layout
22630
22631 \end_inset
22632
22633 ,
22634  relying upon \SpecialChar LyX
22635  to produce the \SpecialChar LaTeX
22636 ;
22637  and there is a converter that works directly on \SpecialChar LyX
22638  files,
22639  
22640 \begin_inset Flex Code
22641 status collapsed
22642
22643 \begin_layout Plain Layout
22644 e\SpecialChar LyX
22645 er
22646 \end_layout
22647
22648 \end_inset
22649
22650 .
22651  All of these have different advantages and disadvantages.
22652  
22653 \end_layout
22654
22655 \begin_layout Standard
22656 The \SpecialChar LaTeX
22657 -based converters have the advantage that,
22658  in principle,
22659  they know everything about the exported document that \SpecialChar LaTeX
22660  does.
22661  Such converters do not care,
22662  for example,
22663  if a certain block of code was produced by \SpecialChar LyX
22664  or was Evil Red Text.
22665  These converters know about 
22666 \begin_inset Flex Code
22667 status collapsed
22668
22669 \begin_layout Plain Layout
22670 aux
22671 \end_layout
22672
22673 \end_inset
22674
22675  files,
22676  counters,
22677  and references,
22678  and can often make use of the 
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 bbl
22684 \end_layout
22685
22686 \end_inset
22687
22688  files generated by Bib\SpecialChar TeX
22689 .
22690  On the other hand,
22691  \SpecialChar LaTeX
22692  is a very hard language to parse—
22693 it is sometimes said that only \SpecialChar TeX
22694  itself understands \SpecialChar TeX
22695
22696 and \SpecialChar LaTeX
22697 -based converters will often choke on what seem to be quite simple constructs;
22698  complex ones can throw them completely,
22699  and as of this writing,
22700  for example,
22701  the 
22702 \emph on
22703 Embedded Objects
22704 \emph default
22705  manual will not export with 
22706 \begin_inset Flex Code
22707 status collapsed
22708
22709 \begin_layout Plain Layout
22710 htlatex
22711 \end_layout
22712
22713 \end_inset
22714
22715 ,
22716  though the others will.
22717  The other issue concerns how math is handled.
22718  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
22719  Since these are actually generated by \SpecialChar LaTeX
22720 ,
22721  they are accurate.
22722  But they do not scale well,
22723  and just getting them to look as if they are actually meant to be in your document—
22724 so that the font sizes seem to be roughly the same—
22725 can be a challenge.
22726 \end_layout
22727
22728 \begin_layout Standard
22729 Alex Fernandez's 
22730 \begin_inset Flex Code
22731 status collapsed
22732
22733 \begin_layout Plain Layout
22734 e\SpecialChar LyX
22735 er
22736 \end_layout
22737
22738 \end_inset
22739
22740  (
22741 \begin_inset CommandInset href
22742 LatexCommand href
22743 name "http://pinchito.es/elyxer/"
22744 target "http://pinchito.es/elyxer/"
22745 literal "false"
22746
22747 \end_inset
22748
22749 ) solves some of these problems.
22750  In particular,
22751  the formulae it produces scale perfectly,
22752  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
22753  But even moderately complex formula are rendered less well than with 
22754 \begin_inset Flex Code
22755 status collapsed
22756
22757 \begin_layout Plain Layout
22758 htlatex
22759 \end_layout
22760
22761 \end_inset
22762
22763 ;
22764  this reflects the limitations of HTML.
22765 \begin_inset Foot
22766 status collapsed
22767
22768 \begin_layout Plain Layout
22769 That said,
22770  
22771 \begin_inset Flex Code
22772 status collapsed
22773
22774 \begin_layout Plain Layout
22775 e\SpecialChar LyX
22776 er
22777 \end_layout
22778
22779 \end_inset
22780
22781  can also use jsMath and MathJax for equations,
22782  but this setting is only available globally and requires one to have access to a server that runs the backend.
22783 \end_layout
22784
22785 \end_inset
22786
22787  More importantly (as of version 1.1.1,
22788  at least),
22789  
22790 \begin_inset Flex Code
22791 status collapsed
22792
22793 \begin_layout Plain Layout
22794 e\SpecialChar LyX
22795 er
22796 \end_layout
22797
22798 \end_inset
22799
22800  has limited support for math macros and no support for user-defined paragraph or character styles.
22801  These limitations make 
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806 e\SpecialChar LyX
22807 er
22808 \end_layout
22809
22810 \end_inset
22811
22812  unsuitable for many of the documents \SpecialChar LyX
22813  users produce.
22814  In principle,
22815  of course,
22816  these problems could be solved,
22817  but the \SpecialChar LyX
22818  developers have decided to follow a different path and have made \SpecialChar LyX
22819  itself capable of writing XHTML,
22820  just as it is capable of writing \SpecialChar LaTeX
22821 ,
22822  DocBook,
22823  and plaintext.
22824 \end_layout
22825
22826 \begin_layout Standard
22827 As of this writing,
22828  XHTML output remains under development and should probably be regarded as 
22829 \begin_inset Quotes eld
22830 \end_inset
22831
22832 experimental
22833 \begin_inset Quotes erd
22834 \end_inset
22835
22836 .
22837 \begin_inset Foot
22838 status collapsed
22839
22840 \begin_layout Plain Layout
22841 The file 
22842 \begin_inset Flex Code
22843 status collapsed
22844
22845 \begin_layout Plain Layout
22846 development/HTML/HTML.notes
22847 \end_layout
22848
22849 \end_inset
22850
22851 ,
22852  which can be found in the \SpecialChar LyX
22853  source tree or 
22854 \begin_inset CommandInset href
22855 LatexCommand href
22856 name "accessed online"
22857 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
22858 literal "false"
22859
22860 \end_inset
22861
22862 ,
22863  usually contains up-to-date information about the state of XHTML output.
22864  See also the list of XHTML bugs on 
22865 \begin_inset CommandInset href
22866 LatexCommand href
22867 name "the bug tracker"
22868 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"
22869 literal "false"
22870
22871 \end_inset
22872
22873 .
22874 \end_layout
22875
22876 \end_inset
22877
22878  Still,
22879  the developers have chosen this approach because it has several potential advantages over the other two.
22880 \end_layout
22881
22882 \begin_layout Standard
22883 These advantages are primarily due to the fact that the XHTML output routines,
22884  since they are part of \SpecialChar LyX
22885 ,
22886  know everything \SpecialChar LyX
22887  knows about the document being exported.
22888 \begin_inset Foot
22889 status collapsed
22890
22891 \begin_layout Plain Layout
22892 Another advantage is that,
22893  since these routines are internal to \SpecialChar LyX
22894 ,
22895  they are immune to changes in \SpecialChar LyX
22896 's file format,
22897  or to changes in the semantics of existing insets.
22898 \end_layout
22899
22900 \end_inset
22901
22902  So they know about the table of contents (as displayed in the outline),
22903  about the counters associated with different paragraph styles,
22904  and about user-defined styles.
22905  The XHTML output routines know what \SpecialChar LyX
22906  knows about internationalization,
22907  too,
22908  so they will output 
22909 \begin_inset Quotes eld
22910 \end_inset
22911
22912 Chapter 1
22913 \begin_inset Quotes erd
22914 \end_inset
22915
22916  or 
22917 \begin_inset Quotes eld
22918 \end_inset
22919
22920
22921 \lang ngerman
22922 Kapitel
22923 \lang english
22924  1
22925 \begin_inset Quotes erd
22926 \end_inset
22927
22928 ,
22929  depending upon the language in effect at the time.
22930  
22931 \end_layout
22932
22933 \begin_layout Standard
22934 Quite generally,
22935  the output routines know what \SpecialChar LyX
22936  knows about document layout,
22937  that is,
22938  about how the document is to be rendered on screen.
22939  We use this information when we output the document as XHTML.
22940  In particular,
22941  \SpecialChar LyX
22942  
22943 \emph on
22944 automatically
22945 \emph default
22946  generates CSS style information corresponding to the layout information it uses to render the document on screen:
22947  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
22948 ,
22949  then (by default) they will be sans-serif and bold when viewed in a web browser,
22950  too.
22951  And this is true not just for pre-defined styles,
22952  like Section,
22953  but for any style,
22954  including user-defined styles.
22955  Indeed,
22956  the XHTML output routines make no distinction between user-defined paragraph and text styles and \SpecialChar LyX
22957 's own pre-defined styles:
22958  in each case,
22959  everything \SpecialChar LyX
22960  knows about the styles is contained in the layout files.
22961  And much the same is true as regards pre-defined textual insets,
22962  such as footnotes,
22963  and various custom insets.
22964 \end_layout
22965
22966 \begin_layout Standard
22967 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
22968  output can be customized and extended:
22969  through layout files and modules.
22970  See chapter five of the 
22971 \emph on
22972 Customization 
22973 \emph default
22974 manual for the details.
22975 \end_layout
22976
22977 \begin_layout Standard
22978 The remainder of this chapter contains more detailed information on XHTML output,
22979  its limitations,
22980  and ways to work around those limitations.
22981 \end_layout
22982
22983 \begin_layout Section
22984 Math Output in XHTML
22985 \end_layout
22986
22987 \begin_layout Standard
22988 \SpecialChar LyX
22989  offers four choices for how math is rendered.
22990  These have various advantages and disadvantages:
22991 \end_layout
22992
22993 \begin_layout Itemize
22994 MathML
22995 \begin_inset Newline newline
22996 \end_inset
22997
22998 MathML is a dialect of XML designed specifically for mathematics on the web,
22999  and it typically renders very well in browsers that support it.
23000  The disadvantage is that not all browsers support MathML,
23001  and support is not complete even in the Gecko-based browsers,
23002  such as Firefox.
23003 \begin_inset Newline newline
23004 \end_inset
23005
23006 If \SpecialChar LyX
23007  is unable to render a formula as MathML—
23008 for example,
23009  if the formula uses the 
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014 xymatrix
23015 \end_layout
23016
23017 \end_inset
23018
23019  package or ERT—
23020 then it will instead output the formula as an image.
23021  
23022 \end_layout
23023
23024 \begin_layout Itemize
23025 HTML
23026 \begin_inset Newline newline
23027 \end_inset
23028
23029 As mentioned above,
23030  
23031 \begin_inset Flex Code
23032 status collapsed
23033
23034 \begin_layout Plain Layout
23035 elyxer
23036 \end_layout
23037
23038 \end_inset
23039
23040  outputs math as HTML,
23041  styled by CSS.
23042 \begin_inset Foot
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 \SpecialChar LyX
23047  has borrowed some of the CSS for its HTML output from 
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052 elyxer
23053 \end_layout
23054
23055 \end_inset
23056
23057 .
23058 \end_layout
23059
23060 \end_inset
23061
23062  For simple formulae,
23063  this can work quite well,
23064  though with more complicated formulae it tends to break down.
23065  Still,
23066  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
23067  fairly simple math.
23068 \begin_inset Newline newline
23069 \end_inset
23070
23071 If Lyx is unable to render a formula as HTML—
23072 for example,
23073  if the formula uses the 
23074 \begin_inset Flex Code
23075 status collapsed
23076
23077 \begin_layout Plain Layout
23078 xymatrix
23079 \end_layout
23080
23081 \end_inset
23082
23083  package or ERT—
23084 then it will instead output the formula as an image.
23085  
23086 \end_layout
23087
23088 \begin_layout Itemize
23089 Images
23090 \begin_inset Newline newline
23091 \end_inset
23092
23093 Like 
23094 \begin_inset Flex Code
23095 status collapsed
23096
23097 \begin_layout Plain Layout
23098 htlatex
23099 \end_layout
23100
23101 \end_inset
23102
23103 ,
23104  \SpecialChar LyX
23105  will output formulae as images,
23106  the very same images,
23107  in fact,
23108  that are used for instant preview.
23109 \begin_inset Foot
23110 status collapsed
23111
23112 \begin_layout Plain Layout
23113 Instant preview does 
23114 \emph on
23115 not 
23116 \emph default
23117 have to be on for images to be output,
23118  however.
23119 \end_layout
23120
23121 \end_inset
23122
23123  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
23124 ,
23125  so they are very accurate.
23126  The disadvantage,
23127  as mentioned earlier,
23128  is that these are bitmapped images,
23129  so they do not scale terribly well,
23130  and one cannot copy them,
23131  etc.
23132 \begin_inset Newline newline
23133 \end_inset
23134
23135 The size of the images can be controlled by setting the 
23136 \begin_inset Quotes eld
23137 \end_inset
23138
23139 Math Images Scaling
23140 \begin_inset Quotes erd
23141 \end_inset
23142
23143  parameter under 
23144 \family sans
23145 Document\SpecialChar menuseparator
23146 Settings\SpecialChar menuseparator
23147
23148 \family default
23149 Output
23150 \family sans
23151 \SpecialChar menuseparator
23152
23153 \family default
23154 HTML.
23155 \begin_inset Foot
23156 status collapsed
23157
23158 \begin_layout Plain Layout
23159 For those who want to know,
23160  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
23161 \end_layout
23162
23163 \end_inset
23164
23165
23166 \begin_inset Newline newline
23167 \end_inset
23168
23169 If \SpecialChar LyX
23170  for some reason fails to create an image for a formula (e.g.,
23171  if a required \SpecialChar LaTeX
23172  package is not installed),
23173  then it will fall back to outputing the raw \SpecialChar LaTeX
23174 .
23175 \end_layout
23176
23177 \begin_layout Itemize
23178 \SpecialChar LaTeX
23179
23180 \begin_inset Newline newline
23181 \end_inset
23182
23183 Finally,
23184  \SpecialChar LyX
23185  will happily output math as \SpecialChar LaTeX
23186 .
23187  As well as being the output of last resort,
23188  this method can be used with such tools as 
23189 \begin_inset CommandInset href
23190 LatexCommand href
23191 name "jsMath"
23192 target "http://www.math.union.edu/~dpvc/jsMath/"
23193 literal "false"
23194
23195 \end_inset
23196
23197 ,
23198  which uses JavaScript to render \SpecialChar LaTeX
23199  embedded in HTML documents.
23200  \SpecialChar LyX
23201  wraps the \SpecialChar LaTeX
23202  in either a 
23203 \begin_inset Flex Code
23204 status collapsed
23205
23206 \begin_layout Plain Layout
23207 span
23208 \end_layout
23209
23210 \end_inset
23211
23212  (for inline formulas) or 
23213 \begin_inset Flex Code
23214 status collapsed
23215
23216 \begin_layout Plain Layout
23217 div
23218 \end_layout
23219
23220 \end_inset
23221
23222  (for displayed formulas) with 
23223 \begin_inset Flex Code
23224 status collapsed
23225
23226 \begin_layout Plain Layout
23227 class='math'
23228 \end_layout
23229
23230 \end_inset
23231
23232 ,
23233  as is required for jsMath.
23234 \end_layout
23235
23236 \begin_layout Standard
23237 One of these output methods must be selected under 
23238 \family sans
23239 Document\SpecialChar menuseparator
23240 Settings\SpecialChar menuseparator
23241 Formats
23242 \family default
23243 .
23244  By default,
23245  \SpecialChar LyX
23246  outputs MathML.
23247  This is a document-wide setting,
23248  therefore.
23249 \end_layout
23250
23251 \begin_layout Standard
23252 Eventually,
23253  \SpecialChar LyX
23254  will offer the user the option to select an alternate output method for a particular inset,
23255  say,
23256  one that isn't being rendered very well by MathML.
23257 \begin_inset Foot
23258 status collapsed
23259
23260 \begin_layout Plain Layout
23261 That said,
23262  since \SpecialChar LyX
23263  falls back to images if the inset contains ERT,
23264  then one can force output as an image by putting some harmless ERT into the math,
23265  for example:
23266  
23267 \begin_inset Formula $a=b\relax$
23268 \end_inset
23269
23270 .
23271 \end_layout
23272
23273 \end_inset
23274
23275
23276 \end_layout
23277
23278 \begin_layout Section
23279 Bibliography and Citations
23280 \end_layout
23281
23282 \begin_layout Standard
23283 XHTML output fully supports bibliographies and citations.
23284  
23285 \end_layout
23286
23287 \begin_layout Standard
23288 Citation labels are generated by the same machinery that generates \SpecialChar LyX
23289 's on-screen labels,
23290  so the labels will look in the output much as they do in \SpecialChar LyX
23291 ,
23292  though better.
23293  If you are using numerical citations,
23294  then \SpecialChar LyX
23295  will output numerical labels,
23296  such as [1] or [17],
23297  rather than simply showing the citation key in square brackets,
23298  as it does on-screen.
23299  If you are using author-year citations,
23300  then \SpecialChar LyX
23301  will add lowercase letters to the years,
23302  just as Bib\SpecialChar TeX
23303  does,
23304  if it finds more than one citation for a given author-year combination.
23305  The labels will be printed with the bibliography entries.
23306  Note that there is,
23307  at present,
23308  no way to customize the appearance of the labels,
23309  for example,
23310  to choose between square brackets and parentheses.
23311 \end_layout
23312
23313 \begin_layout Standard
23314 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
23315  so you will see in the XHTML output pretty much what you would see if you were to look at a given entry in the citation dialog.
23316  The formatting can be customized in your layout file or,
23317  preferably,
23318  in a module.
23319  See the 
23320 \emph on
23321 Customization
23322 \emph default
23323  manual for the details.
23324 \end_layout
23325
23326 \begin_layout Standard
23327 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
23328  So you can see things like this:
23329 \end_layout
23330
23331 \begin_layout Quote
23332 Jason Stanley,
23333  
23334 \begin_inset Quotes eld
23335 \end_inset
23336
23337 Context and Logical Form
23338 \begin_inset Quotes erd
23339 \end_inset
23340
23341 ,
23342  in 
23343 \emph on
23344 Language in Context:
23345  Selected Essays
23346 \emph default
23347  (Oxford:
23348  Oxford University Press,
23349  2007),
23350  pp.
23351  30–68.
23352 \end_layout
23353
23354 \begin_layout Quote
23355 Jason Stanley,
23356  
23357 \begin_inset Quotes eld
23358 \end_inset
23359
23360 Semantics in Context
23361 \begin_inset Quotes erd
23362 \end_inset
23363
23364 ,
23365  in 
23366 \emph on
23367 Language in Context:
23368  Selected Essays
23369 \emph default
23370  (Oxford:
23371  Oxford University Press,
23372  2007),
23373  pp.
23374  201–30.
23375 \end_layout
23376
23377 \begin_layout Standard
23378 This should be fixed before long.
23379 \end_layout
23380
23381 \begin_layout Standard
23382 There is no support at present for sectioned bibliographies.
23383  If you have multiple bibliographies,
23384  then \SpecialChar LyX
23385  will print the same bibliography over and over.
23386 \end_layout
23387
23388 \begin_layout Section
23389 Indexes
23390 \end_layout
23391
23392 \begin_layout Standard
23393 \SpecialChar LyX
23394  will happily export indexes as XHTML,
23395  but with certain limitations at the moment.
23396 \end_layout
23397
23398 \begin_layout Standard
23399 Index export will be most reliable when you do not attempt to use the fancy constructs that are described in the section on indexes in the 
23400 \emph on
23401 User's Guide
23402 \emph default
23403 .
23404 \begin_inset Foot
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408 The main issue here is that \SpecialChar LyX
23409  itself does not really handle these.
23410  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
23411 .
23412 \end_layout
23413
23414 \end_inset
23415
23416  We'll describe how they are handled using the subsection headings from that section.
23417 \end_layout
23418
23419 \begin_layout Itemize
23420 Grouping Index Entries (aka,
23421  sub-entries):
23422  \SpecialChar LyX
23423  makes an effort to support these,
23424  but the entries must be separated by 
23425 \begin_inset Quotes eld
23426 \end_inset
23427
23428  !
23429  
23430 \begin_inset Quotes erd
23431 \end_inset
23432
23433 ,
23434  that is,
23435  there must be spaces around the exclamation point.
23436  This is because it is otherwise too difficult to check for escaped exclamation points,
23437  ones in math,
23438  and so forth.
23439 \end_layout
23440
23441 \begin_layout Itemize
23442 Page Ranges:
23443  There is no support at all for page ranges,
23444  since these make no sense with XHMTL.
23445  Instead,
23446  you will just get two index entries,
23447  one at either end.
23448 \end_layout
23449
23450 \begin_layout Itemize
23451 Cross-referencing:
23452  There is no support for cross-referencing.
23453  If \SpecialChar LyX
23454  finds an entry containing the 
23455 \begin_inset Quotes eld
23456 \end_inset
23457
23458 |see\SpecialChar ldots
23459
23460 \begin_inset Quotes erd
23461 \end_inset
23462
23463  construct,
23464  it is just dropped,
23465  and the rest is treated as an ordinary index entry.
23466 \end_layout
23467
23468 \begin_layout Itemize
23469 Index Entry Order:
23470  \SpecialChar LyX
23471  does support attempts to fix the sorting order.
23472  It will take what is before the first `@' it finds and use that for sorting,
23473  taking what follows the first `@' to be the actual entry.
23474  At present,
23475  \SpecialChar LyX
23476  does not check for escaped `@',
23477  so do not try to index email addresses.
23478 \end_layout
23479
23480 \begin_layout Itemize
23481 Index Entry Layout:
23482  You can format entries by using the text style dialog,
23483  or by using any other method available within \SpecialChar LyX
23484  itself.
23485  There is no support for constructs like:
23486  
23487 \begin_inset Quotes eld
23488 \end_inset
23489
23490 entry|textbf
23491 \begin_inset Quotes erd
23492 \end_inset
23493
23494 .
23495  Indeed,
23496  if \SpecialChar LyX
23497  finds a pipe symbol,
23498  `|',
23499  in an entry,
23500  it will delete it and everything that follows it.
23501 \end_layout
23502
23503 \begin_layout Itemize
23504 Multiple Indexes:
23505  There is no support for multiple indexes.
23506  Rather,
23507  all index entries will be printed as one large index.
23508  To avoid our printing several versions of the index,
23509  we print only the main index,
23510  so make sure you have one.
23511 \end_layout
23512
23513 \begin_layout Section
23514 Nomenclature and Glossary
23515 \end_layout
23516
23517 \begin_layout Standard
23518 There is at present no support for glossaries.
23519  Adding it would be fairly trivial,
23520  and welcome.
23521 \end_layout
23522
23523 \begin_layout Chapter
23524 DocBook Output
23525 \end_layout
23526
23527 \begin_layout Standard
23528 Apart from HTML,
23529  \SpecialChar LyX
23530  can generate documents in the DocBook XML vocabulary.
23531  With versions 2.3 and before,
23532  only select templates could be used to generate DocBook documents (only version 4).
23533  Starting with \SpecialChar LyX
23534  2.4,
23535  most \SpecialChar LyX
23536  layouts can generate valid DocBook documents (only version 5).
23537  This feature is built into \SpecialChar LyX
23538  and does not require the use of external tools.
23539 \end_layout
23540
23541 \begin_layout Standard
23542 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
23543  output can be customized and extended:
23544  through layout files and modules.
23545  See chapter five of the 
23546 \emph on
23547 Customization 
23548 \emph default
23549 manual for the details.
23550 \end_layout
23551
23552 \begin_layout Standard
23553 Most \SpecialChar LyX
23554  features are supported with DocBook,
23555  like math output.
23556 \end_layout
23557
23558 \begin_layout Itemize
23559 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
23560 ,
23561  i.e.
23562  ERTs).
23563  All formulae are also available in raw \SpecialChar TeX
23564  in the DocBook output for further processing.
23565 \end_layout
23566
23567 \begin_layout Itemize
23568 Bibliographies and citations are implemented,
23569  including with an external BibTeX file.
23570  Bibliography entries are not prerendered when the detailed information are available,
23571  but rather output with the standard DocBook constructs.
23572  The external DocBook processor is expected to handle the rendering of entries.
23573 \end_layout
23574
23575 \begin_layout Itemize
23576 Indexes are supported,
23577  including multiple indices.
23578  Grouping (with 
23579 \family typewriter
23580 !
23581 \family default
23582 ),
23583  page ranges,
23584  and cross-references (
23585 \family typewriter
23586 |see
23587 \family default
23588 ) are supported,
23589  with the exception of the same symbols escaped.
23590  Entry order (
23591 \family typewriter
23592 @
23593 \family default
23594 ) and layout (
23595 \family typewriter
23596 |mathbf
23597 \family default
23598 ) are not supported.
23599  There is no support for escaping of index entries.
23600 \end_layout
23601
23602 \begin_layout Itemize
23603 Glossaries are implemented.
23604 \end_layout
23605
23606 \begin_layout Standard
23607 Two major parameters can be set at the document level.
23608 \end_layout
23609
23610 \begin_layout Itemize
23611 Format for tables:
23612  \SpecialChar LyX
23613  can generate tables either as HTML (default value) or CALS,
23614  depending on the user's requirements.
23615  Most DocBook processors accept both formats.
23616 \end_layout
23617
23618 \begin_layout Itemize
23619 MathML prefix:
23620  in DocBook,
23621  MathML is included within its own name space,
23622  unlike HTML.
23623  The implication is that there must be an indication of the tags belonging to the MathML standard.
23624  Three choices are offered:
23625 \end_layout
23626
23627 \begin_deeper
23628 \begin_layout Itemize
23629 Inline:
23630  the MathML name space is defined for each formula (using the 
23631 \family typewriter
23632 xmlns
23633 \family default
23634  attribute on each formula)
23635 \end_layout
23636
23637 \begin_layout Itemize
23638 With the 
23639 \family typewriter
23640 m
23641 \family default
23642  prefix (default):
23643  the MathML name space is defined at the document level (using the 
23644 \family typewriter
23645 xmlns:m
23646 \family default
23647  attribute on the root element).
23648  Each MathML is prefixed with 
23649 \family typewriter
23650 m
23651 \family default
23652 :
23653  for instance,
23654  
23655 \family typewriter
23656 m:math
23657 \end_layout
23658
23659 \begin_layout Itemize
23660 With the 
23661 \family typewriter
23662 mml
23663 \family default
23664  prefix:
23665  similar to the 
23666 \family typewriter
23667 m
23668 \family default
23669  option,
23670  but with 
23671 \family typewriter
23672 mml
23673 \end_layout
23674
23675 \begin_layout Standard
23676 This option is especially useful if you want \SpecialChar LyX
23677  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
23678 \end_layout
23679
23680 \end_deeper
23681 \begin_layout Chapter
23682 The \SpecialChar LyX
23683  Server
23684 \end_layout
23685
23686 \begin_layout Section
23687 Introduction
23688 \end_layout
23689
23690 \begin_layout Standard
23691 The `\SpecialChar LyX
23692  server' allows other programs to talk to \SpecialChar LyX
23693 ,
23694  invoke \SpecialChar LyX
23695  commands,
23696  and retrieve information about the \SpecialChar LyX
23697  internal state.
23698  This is only intended for advanced users,
23699  but they should find it useful.
23700  It is by writing to the \SpecialChar LyX
23701  server,
23702  for example,
23703  that bibliography managers,
23704  such as JabRef,
23705  are able to 
23706 \begin_inset Quotes eld
23707 \end_inset
23708
23709 push
23710 \begin_inset Quotes erd
23711 \end_inset
23712
23713  citations to \SpecialChar LyX
23714 .
23715 \end_layout
23716
23717 \begin_layout Section
23718 Starting the \SpecialChar LyX
23719  Server
23720 \begin_inset CommandInset label
23721 LatexCommand label
23722 name "sec:Starting-the-Server"
23723
23724 \end_inset
23725
23726
23727 \end_layout
23728
23729 \begin_layout Standard
23730 The \SpecialChar LyX
23731  server works through the use of a pair of named pipes.
23732  These are usually located in 
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 UserDir
23738 \end_layout
23739
23740 \end_inset
23741
23742 ,
23743  (except on Windows,
23744  where 
23745 \emph on
23746 local
23747 \emph default
23748  named pipes are special objects located in 
23749 \begin_inset Flex Code
23750 status collapsed
23751
23752 \begin_layout Plain Layout
23753
23754 \backslash
23755
23756 \backslash
23757 .
23758 \backslash
23759 pipe
23760 \end_layout
23761
23762 \end_inset
23763
23764 ) and have the names 
23765 \begin_inset Quotes eld
23766 \end_inset
23767
23768
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 lyxpipe.in
23774 \end_layout
23775
23776 \end_inset
23777
23778
23779 \begin_inset Quotes erd
23780 \end_inset
23781
23782  and 
23783 \begin_inset Quotes eld
23784 \end_inset
23785
23786
23787 \begin_inset Flex Code
23788 status collapsed
23789
23790 \begin_layout Plain Layout
23791 lyxpipe.out
23792 \end_layout
23793
23794 \end_inset
23795
23796
23797 \begin_inset Quotes erd
23798 \end_inset
23799
23800 .
23801  External programs write into 
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 lyxpipe.in
23807 \end_layout
23808
23809 \end_inset
23810
23811  and read back data from 
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 lyxpipe.out
23817 \end_layout
23818
23819 \end_inset
23820
23821 .
23822  The stem of the pipe names can be defined in the 
23823 \family sans
23824 Tools\SpecialChar menuseparator
23825 Preferences\SpecialChar menuseparator
23826 Paths
23827 \family default
23828  dialog,
23829  for example 
23830 \begin_inset Flex Code
23831 status collapsed
23832
23833 \begin_layout Plain Layout
23834 "/home/myhome/lyxpipe"
23835 \end_layout
23836
23837 \end_inset
23838
23839 ,
23840  or 
23841 \begin_inset Flex Code
23842 status collapsed
23843
23844 \begin_layout Plain Layout
23845 "
23846 \backslash
23847
23848 \backslash
23849 .
23850 \backslash
23851 pipe
23852 \backslash
23853 lyxpipe"
23854 \end_layout
23855
23856 \end_inset
23857
23858  on Windows (where any working path instead of lyxpipe can be used,
23859  for example 
23860 \begin_inset Flex Code
23861 status collapsed
23862
23863 \begin_layout Plain Layout
23864 "
23865 \backslash
23866
23867 \backslash
23868 .
23869 \backslash
23870 pipe
23871 \backslash
23872 my
23873 \backslash
23874 lyx
23875 \backslash
23876 pipe"
23877 \end_layout
23878
23879 \end_inset
23880
23881  would also work).
23882  You 
23883 \emph on
23884 must
23885 \emph default
23886  configure this manually in order for the server to start.
23887 \end_layout
23888
23889 \begin_layout Standard
23890 \SpecialChar LyX
23891  will add the '
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896 .in
23897 \end_layout
23898
23899 \end_inset
23900
23901 ' and '
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906 .out
23907 \end_layout
23908
23909 \end_inset
23910
23911 ' to create the pipes.
23912  If one of the pipes already exists,
23913  \SpecialChar LyX
23914  will assume that another \SpecialChar LyX
23915  process is already running and will not start the server.
23916  On POSIX (Unix like) systems,
23917  if for some other reason,
23918  an unused 
23919 \begin_inset Quotes eld
23920 \end_inset
23921
23922 stale
23923 \begin_inset Quotes erd
23924 \end_inset
23925
23926  pipe is left in existence when \SpecialChar LyX
23927  closes,
23928  then \SpecialChar LyX
23929  will try to delete it.
23930  If this fails for some reason,
23931  you will need to delete the pipes manually and then restart \SpecialChar LyX
23932 .
23933  On Windows,
23934  pipes are deleted by the OS on program termination or crash,
23935  so 
23936 \begin_inset Quotes eld
23937 \end_inset
23938
23939 stale
23940 \begin_inset Quotes erd
23941 \end_inset
23942
23943  pipes should not be possible.
23944 \end_layout
23945
23946 \begin_layout Standard
23947 To have several \SpecialChar LyX
23948  processes with servers at the same time,
23949  you have to use different configurations,
23950  perhaps by using separate user directories,
23951  each with its own 
23952 \begin_inset Flex Code
23953 status collapsed
23954
23955 \begin_layout Plain Layout
23956 preferences
23957 \end_layout
23958
23959 \end_inset
23960
23961  file,
23962  for each process.
23963 \end_layout
23964
23965 \begin_layout Standard
23966 If you are developing a client program,
23967  you might find it useful to enable debugging information from the \SpecialChar LyX
23968  server.
23969  Do this by starting \SpecialChar LyX
23970  as 
23971 \begin_inset Flex Code
23972 status collapsed
23973
23974 \begin_layout Plain Layout
23975 lyx -dbg lyxserver
23976 \end_layout
23977
23978 \end_inset
23979
23980 .
23981 \end_layout
23982
23983 \begin_layout Standard
23984 You can find a complete example client written in C++ in the source distribution as 
23985 \begin_inset Flex Code
23986 status collapsed
23987
23988 \begin_layout Plain Layout
23989 development/lyxserver/server_monitor.cpp
23990 \end_layout
23991
23992 \end_inset
23993
23994 .
23995 \end_layout
23996
23997 \begin_layout Standard
23998 Another useful tool is the command-line based client found in 
23999 \begin_inset Flex Code
24000 status collapsed
24001
24002 \begin_layout Plain Layout
24003 src/client/lyxclient
24004 \end_layout
24005
24006 \end_inset
24007
24008 .
24009 \end_layout
24010
24011 \begin_layout Section
24012 Normal communication
24013 \end_layout
24014
24015 \begin_layout Standard
24016 To issue a \SpecialChar LyX
24017  call,
24018  the client writes a line of ASCII text into the input pipe.
24019  This line has the following format:
24020 \end_layout
24021
24022 \begin_layout Quote
24023 LYXCMD:
24024 \emph on
24025 clientname
24026 \emph default
24027 :
24028 \emph on
24029 function
24030 \emph default
24031 :
24032 \emph on
24033 argument
24034 \end_layout
24035
24036 \begin_layout Description
24037 clientname is a name that the client can choose arbitrarily.
24038  Its only use is that \SpecialChar LyX
24039  will echo it if it sends an answer—
24040 so a client can dispatch results from different requesters.
24041 \end_layout
24042
24043 \begin_layout Description
24044 function is the function you want \SpecialChar LyX
24045  to perform.
24046  It is the same as the commands you'd use in the minibuffer.
24047 \end_layout
24048
24049 \begin_layout Description
24050 argument is an optional argument which is meaningful only to some functions (for instance,
24051  the 
24052 \begin_inset Quotes eld
24053 \end_inset
24054
24055 self-insert
24056 \begin_inset Quotes erd
24057 \end_inset
24058
24059  LFUN will insert the argument as text at the cursor position).
24060 \end_layout
24061
24062 \begin_layout Standard
24063 The answer from \SpecialChar LyX
24064  will arrive in the output pipe and be of the form
24065 \end_layout
24066
24067 \begin_layout Quote
24068 INFO:
24069 \emph on
24070 clientname
24071 \emph default
24072 :
24073 \emph on
24074 function
24075 \emph default
24076 :
24077 \emph on
24078 data
24079 \end_layout
24080
24081 \begin_layout Standard
24082 where 
24083 \emph on
24084 clientname
24085 \emph default
24086  and 
24087 \emph on
24088 function
24089 \emph default
24090  are just echoed from the command request,
24091  while 
24092 \emph on
24093 data
24094 \emph default
24095  is more or less useful information filled according to how the command execution worked out.
24096  Some commands,
24097  such as 
24098 \begin_inset Quotes eld
24099 \end_inset
24100
24101 font-state
24102 \begin_inset Quotes erd
24103 \end_inset
24104
24105 ,
24106  will return information about the internal state of \SpecialChar LyX
24107 ,
24108  while other will return an empty data-response.
24109  This means that the command execution went fine.
24110 \end_layout
24111
24112 \begin_layout Standard
24113 In case of errors,
24114  the response from \SpecialChar LyX
24115  will have this form
24116 \end_layout
24117
24118 \begin_layout Quote
24119 ERROR:
24120 \emph on
24121 clientname
24122 \emph default
24123 :
24124 \emph on
24125 function
24126 \emph default
24127 :
24128 \emph on
24129 error message
24130 \end_layout
24131
24132 \begin_layout Standard
24133 where the 
24134 \emph on
24135 error message
24136 \emph default
24137  should contain an explanation of why the command failed.
24138 \end_layout
24139
24140 \begin_layout Standard
24141 Examples:
24142 \end_layout
24143
24144 \begin_layout LyX-Code
24145 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24146 \begin_inset Newline newline
24147 \end_inset
24148
24149 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24150 \begin_inset Newline newline
24151 \end_inset
24152
24153 read a <~/.lyxpipe.out
24154 \begin_inset Newline newline
24155 \end_inset
24156
24157 echo $a
24158 \end_layout
24159
24160 \begin_layout Subsection
24161 AppleScript (Mac OS X)
24162 \end_layout
24163
24164 \begin_layout Standard
24165 Since \SpecialChar LyX
24166  2.1,
24167  \SpecialChar LyX
24168  supports basic interactions with AppleScript for normal communication through the command run.
24169  This command takes a direct argument (the 
24170 \series bold
24171 function
24172 \series default
24173  to perform) and an optional argument.
24174  It either returns the output of the function or triggers an error with the error message and code.
24175 \end_layout
24176
24177 \begin_layout Standard
24178 Example:
24179 \end_layout
24180
24181 \begin_layout LyX-Code
24182 tell application "\SpecialChar LyX
24183 "
24184 \end_layout
24185
24186 \begin_layout LyX-Code
24187   try
24188 \end_layout
24189
24190 \begin_layout LyX-Code
24191     -- Stores the current file name into f
24192 \end_layout
24193
24194 \begin_layout LyX-Code
24195     set f to (run "server-get-filename" with argument "")
24196 \end_layout
24197
24198 \begin_layout LyX-Code
24199     on error the error_message number the error_number
24200 \end_layout
24201
24202 \begin_layout LyX-Code
24203       display dialog "Error:
24204  " & the error_number & ".
24205  " ¬
24206 \end_layout
24207
24208 \begin_layout LyX-Code
24209               & the error_message buttons {"OK"} default button 1
24210 \end_layout
24211
24212 \begin_layout LyX-Code
24213   end try
24214 \end_layout
24215
24216 \begin_layout LyX-Code
24217 end tell
24218 \end_layout
24219
24220 \begin_layout Section
24221 Notification
24222 \end_layout
24223
24224 \begin_layout Standard
24225 \SpecialChar LyX
24226  can notify clients of events going on asynchronously.
24227  Currently it will only do this if the user binds a key sequence with the function 
24228 \begin_inset Quotes eld
24229 \end_inset
24230
24231 notify
24232 \begin_inset Quotes erd
24233 \end_inset
24234
24235 .
24236  The format of the string \SpecialChar LyX
24237  sends is as follows:
24238 \end_layout
24239
24240 \begin_layout Quote
24241 \begin_inset Flex Code
24242 status collapsed
24243
24244 \begin_layout Plain Layout
24245 NOTIFY:
24246 \end_layout
24247
24248 \end_inset
24249
24250
24251 \emph on
24252 key-sequence
24253 \end_layout
24254
24255 \begin_layout Standard
24256 where 
24257 \emph on
24258 key-sequence
24259 \emph default
24260  is the printed representation of the key sequence that was actually typed by the user.
24261 \end_layout
24262
24263 \begin_layout Standard
24264 This mechanism can be used to extend \SpecialChar LyX
24265 's command set and implement macros.
24266  Bind some key sequence to 
24267 \begin_inset Quotes eld
24268 \end_inset
24269
24270 notify
24271 \begin_inset Quotes erd
24272 \end_inset
24273
24274 .
24275  Then start a client that listens on the output pipe,
24276  dispatches the command according to the sequence,
24277  and starts a function that may use \SpecialChar LyX
24278  calls and \SpecialChar LyX
24279  requests to issue a command or a series of commands to \SpecialChar LyX
24280 .
24281 \end_layout
24282
24283 \begin_layout Section
24284 The simple \SpecialChar LyX
24285  Server Protocol
24286 \end_layout
24287
24288 \begin_layout Standard
24289 \SpecialChar LyX
24290  implements a simple protocol that can be used for session management.
24291  All messages are of the form
24292 \end_layout
24293
24294 \begin_layout Quote
24295 LYXSRV:
24296 \emph on
24297 clientname
24298 \emph default
24299 :
24300 \emph on
24301 protocol message
24302 \end_layout
24303
24304 \begin_layout Standard
24305 where 
24306 \emph on
24307 protocol message
24308 \emph default
24309  can be 
24310 \begin_inset Quotes eld
24311 \end_inset
24312
24313 hello
24314 \begin_inset Quotes erd
24315 \end_inset
24316
24317  or 
24318 \begin_inset Quotes eld
24319 \end_inset
24320
24321 bye
24322 \begin_inset Quotes erd
24323 \end_inset
24324
24325 .
24326  If 
24327 \begin_inset Quotes eld
24328 \end_inset
24329
24330 hello
24331 \begin_inset Quotes erd
24332 \end_inset
24333
24334  is received from a client,
24335  \SpecialChar LyX
24336  will report back to inform the client that it's listening to it's messages,
24337  while 
24338 \begin_inset Quotes eld
24339 \end_inset
24340
24341 bye
24342 \begin_inset Quotes erd
24343 \end_inset
24344
24345  sent from \SpecialChar LyX
24346  will inform clients that \SpecialChar LyX
24347  is closing.
24348 \end_layout
24349
24350 \begin_layout Section
24351 Reverse DVI/PDF search
24352 \end_layout
24353
24354 \begin_layout Standard
24355 Some DVI/PDF viewers
24356 \begin_inset Foot
24357 status collapsed
24358
24359 \begin_layout Plain Layout
24360 The following viewers offer the reverse PDF search feature:
24361  Okular on KDE/Linux,
24362  Qpdfview on Unix,
24363  Skim on Mac OSX and SumatraPDF on Windows.
24364 \end_layout
24365
24366 \end_inset
24367
24368  provide 
24369 \emph on
24370 reverse search
24371 \emph default
24372  facility (also called 
24373 \emph on
24374 inverse search
24375 \emph default
24376 ).
24377  This means that you can tell \SpecialChar LyX
24378  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
24379  To achieve this,
24380  the viewer must be able to communicate with \SpecialChar LyX
24381 .
24382  This is done via the \SpecialChar LyX
24383  server either by using the named pipe (
24384 \emph on
24385 lyxpipe
24386 \emph default
24387 ),
24388  or the UNIX domain socket (
24389 \emph on
24390 lyxsocket
24391 \emph default
24392 ) that \SpecialChar LyX
24393  creates in its temporary directory (this is the way the 
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398 lyxclient
24399 \end_layout
24400
24401 \end_inset
24402
24403  program communicates with \SpecialChar LyX
24404 ).
24405  In some cases,
24406  you need a helper script that mediates between the viewer and \SpecialChar LyX
24407 ,
24408  in others,
24409  the viewer can communicate with \SpecialChar LyX
24410  directly.
24411  This depends on the selected viewer and on your operating system.
24412  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
24413  In what follows,
24414  we will thus describe how to setup reverse search for specific viewers.
24415  Before we turn to this,
24416  though,
24417  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
24418 \end_layout
24419
24420 \begin_layout Subsection
24421 Automatic setup
24422 \begin_inset CommandInset label
24423 LatexCommand label
24424 name "subsec:rev-search"
24425
24426 \end_inset
24427
24428
24429 \end_layout
24430
24431 \begin_layout Standard
24432 In most cases \SpecialChar LyX
24433  will do the work for you by pressing the following button in the toolbar:
24434  
24435 \begin_inset Info
24436 type  "icon"
24437 arg   "buffer-toggle-output-sync"
24438 \end_inset
24439
24440 .
24441  Alternatively,
24442  you can also enable the feature by checking 
24443 \family sans
24444 Synchronize with Output
24445 \family default
24446  in 
24447 \family sans
24448 Document\SpecialChar menuseparator
24449 Settings\SpecialChar menuseparator
24450 Output\SpecialChar menuseparator
24451 LaTeX
24452 \family default
24453 .
24454  In such a case \SpecialChar LyX
24455  will automatically insert the necessary Sync\SpecialChar TeX
24456  macro (for PDF) or load the srcltx package (for DVI) respectively.
24457  This option can be easily reached also on 
24458 \begin_inset Flex Code
24459 status collapsed
24460
24461 \begin_layout Plain Layout
24462 View/Update
24463 \end_layout
24464
24465 \end_inset
24466
24467  Toolbar.
24468 \end_layout
24469
24470 \begin_layout Standard
24471 If you need a different setting,
24472  you can select or input a custom macro from the drop down box just below 
24473 \family sans
24474 Document\SpecialChar menuseparator
24475 Settings\SpecialChar menuseparator
24476 Output\SpecialChar menuseparator
24477 Synchronize with Output
24478 \family default
24479 .
24480 \end_layout
24481
24482 \begin_layout Standard
24483 Note that the method 
24484 \begin_inset Flex Code
24485 status collapsed
24486
24487 \begin_layout Plain Layout
24488
24489 \backslash
24490 synctex=1
24491 \end_layout
24492
24493 \end_inset
24494
24495  enables gzip compression.
24496  If your viewer does not support it,
24497  you should instead use 
24498 \begin_inset Flex Code
24499 status collapsed
24500
24501 \begin_layout Plain Layout
24502
24503 \backslash
24504 synctex=-1
24505 \end_layout
24506
24507 \end_inset
24508
24509 .
24510 \end_layout
24511
24512 \begin_layout Standard
24513 Please also note that including the 
24514 \begin_inset Flex Code
24515 status collapsed
24516
24517 \begin_layout Plain Layout
24518 srcltx
24519 \end_layout
24520
24521 \end_inset
24522
24523  package or 
24524 \begin_inset Flex Code
24525 status collapsed
24526
24527 \begin_layout Plain Layout
24528 src-specials
24529 \end_layout
24530
24531 \end_inset
24532
24533  sometimes has an undesired impact on the typesetting.
24534  Thus,
24535  you should switch output synchronization off for the final typesetting if you use the 
24536 \begin_inset Flex Code
24537 status collapsed
24538
24539 \begin_layout Plain Layout
24540 srcltx
24541 \end_layout
24542
24543 \end_inset
24544
24545  package or 
24546 \begin_inset Flex Code
24547 status collapsed
24548
24549 \begin_layout Plain Layout
24550 src-specials
24551 \end_layout
24552
24553 \end_inset
24554
24555 .
24556  
24557 \end_layout
24558
24559 \begin_layout Standard
24560 In case you need some more special settings that are not covered by the automatic settings,
24561  read the next section about how to set up output synchronization manually.
24562  If the automatic setup suits your needs,
24563  you can readily jump to section
24564 \begin_inset space ~
24565 \end_inset
24566
24567
24568 \begin_inset CommandInset ref
24569 LatexCommand ref
24570 reference "subsec:configuring-viewers"
24571 nolink "false"
24572
24573 \end_inset
24574
24575 ,
24576  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
24577 \end_layout
24578
24579 \begin_layout Subsection
24580 Manual setup
24581 \end_layout
24582
24583 \begin_layout Standard
24584 \SpecialChar LaTeX
24585  provides several different methods for reverse search.
24586  Some are built-in in the 
24587 \begin_inset Flex Code
24588 status collapsed
24589
24590 \begin_layout Plain Layout
24591 latex/pdflatex
24592 \end_layout
24593
24594 \end_inset
24595
24596  program,
24597  some are provided by external packages.
24598  Your choice depends on whether your \SpecialChar LaTeX
24599  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
24600  The available methods are described in the following.
24601 \end_layout
24602
24603 \begin_layout Subsubsection*
24604 Built-in DVI-search via src-specials (DVI only) 
24605 \end_layout
24606
24607 \begin_layout Standard
24608 This method provides the DVI file with the necessary information for reverse search.
24609  It is available in \SpecialChar LaTeX
24610  since quite some time (any somewhat recent \SpecialChar LaTeX
24611  distribution should include it),
24612  and it works reliably.
24613  To enable it,
24614  change the 
24615 \begin_inset Flex Noun
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 La
24620 \family sans
24621 TeX
24622 \family default
24623  (plain)->DVI
24624 \end_layout
24625
24626 \end_inset
24627
24628  or 
24629 \begin_inset Flex Noun
24630 status collapsed
24631
24632 \begin_layout Plain Layout
24633 La
24634 \family sans
24635 TeX
24636 \family default
24637  (plain)->DraftDVI
24638 \end_layout
24639
24640 \end_inset
24641
24642  converter in 
24643 \family sans
24644 Preferences\SpecialChar menuseparator
24645 File Handling\SpecialChar menuseparator
24646 Converters
24647 \family default
24648  to 
24649 \begin_inset Flex Code
24650 status collapsed
24651
24652 \begin_layout Plain Layout
24653 latex -src-specials $$i
24654 \end_layout
24655
24656 \end_inset
24657
24658 .
24659  If this doesn't work,
24660  check if your \SpecialChar TeX
24661  engine needs different options (the syntax might differ in some distributions).
24662 \end_layout
24663
24664 \begin_layout Subsubsection*
24665 External Packages (PDFSync and scrltx) 
24666 \end_layout
24667
24668 \begin_layout Standard
24669 The packages 
24670 \emph on
24671 pdfsync
24672 \emph default
24673  and 
24674 \emph on
24675 scrltx
24676 \emph default
24677  provide reverse search facility for PDF output (via pdflatex) and DVI output,
24678  respectively.
24679  In order to enable it,
24680  load the packages in the \SpecialChar LyX
24681  preamble:
24682  
24683 \end_layout
24684
24685 \begin_layout Itemize
24686 \begin_inset Flex Code
24687 status collapsed
24688
24689 \begin_layout Plain Layout
24690
24691 \backslash
24692 usepackage{pdfsync}
24693 \end_layout
24694
24695 \end_inset
24696
24697  for reverse PDF search,
24698 \end_layout
24699
24700 \begin_layout Itemize
24701 \begin_inset Flex Code
24702 status collapsed
24703
24704 \begin_layout Plain Layout
24705
24706 \backslash
24707 usepackage[active]{srcltx}
24708 \end_layout
24709
24710 \end_inset
24711
24712  for reverse DVI search.
24713 \end_layout
24714
24715 \begin_layout Standard
24716 If you want to be able to perform both DVI and PDF reverse searches,
24717  you can also insert in the preamble the following lines
24718 \end_layout
24719
24720 \begin_layout LyX-Code
24721
24722 \backslash
24723 usepackage{ifpdf}
24724 \begin_inset Newline newline
24725 \end_inset
24726
24727
24728 \backslash
24729 ifpdf
24730 \begin_inset Newline newline
24731 \end_inset
24732
24733   
24734 \backslash
24735 usepackage{pdfsync}
24736 \begin_inset Newline newline
24737 \end_inset
24738
24739
24740 \backslash
24741 else
24742 \begin_inset Newline newline
24743 \end_inset
24744
24745   
24746 \backslash
24747 usepackage[active]{srcltx}
24748 \begin_inset Newline newline
24749 \end_inset
24750
24751
24752 \backslash
24753 fi
24754 \end_layout
24755
24756 \begin_layout Standard
24757 This way,
24758  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
24759 \end_layout
24760
24761 \begin_layout Standard
24762 Note that PDFSync might affect the output layout of your document.
24763  It is therefore advised to disable PDFsync for final documents.
24764 \end_layout
24765
24766 \begin_layout Subsubsection*
24767 Built-in reverse search via Sync\SpecialChar TeX
24768  (DVI and PDF) 
24769 \end_layout
24770
24771 \begin_layout Standard
24772 Recent versions of 
24773 \begin_inset Flex Code
24774 status collapsed
24775
24776 \begin_layout Plain Layout
24777 (pdf)latex
24778 \end_layout
24779
24780 \end_inset
24781
24782  have built-in support for both PDF and DVI reverse search.
24783  This so-called 
24784 \emph on
24785 Sync\SpecialChar TeX
24786
24787 \emph default
24788  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
24789 \emph on
24790 scr-specials
24791 \emph default
24792  approach.
24793  You need at least \SpecialChar TeX
24794 Live 2008 or a recent Mik\SpecialChar TeX
24795  distribution in order to use it.
24796 \begin_inset Foot
24797 status collapsed
24798
24799 \begin_layout Plain Layout
24800 For some reason,
24801  Mik\SpecialChar TeX
24802  does not understand/obey the command \SpecialChar LyX
24803  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
24804 \end_layout
24805
24806 \begin_layout Plain Layout
24807 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
24808  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
24809  by adding the -synctex=1 switch).
24810 \end_layout
24811
24812 \end_inset
24813
24814  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
24815  Skim on the Mac,
24816  SumatraPDF on Windows;
24817  see the next section for details) already provide Sync\SpecialChar TeX
24818  support.
24819 \end_layout
24820
24821 \begin_layout Standard
24822 To enable Sync\SpecialChar TeX
24823  for DVI output,
24824  change the 
24825 \begin_inset Flex Noun
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 La
24830 \family sans
24831 TeX
24832 \family default
24833  (plain) -> DVI
24834 \end_layout
24835
24836 \end_inset
24837
24838  or 
24839 \begin_inset Flex Noun
24840 status collapsed
24841
24842 \begin_layout Plain Layout
24843 La
24844 \family sans
24845 TeX
24846 \family default
24847  (plain) -> DraftDVI
24848 \end_layout
24849
24850 \end_inset
24851
24852  converter in 
24853 \family sans
24854 Preferences\SpecialChar menuseparator
24855 File Handling\SpecialChar menuseparator
24856 Converters 
24857 \family default
24858 to 
24859 \begin_inset Flex Code
24860 status collapsed
24861
24862 \begin_layout Plain Layout
24863 latex -synctex=1 $$i
24864 \end_layout
24865
24866 \end_inset
24867
24868 ,
24869  and for PDF output,
24870  change the 
24871 \begin_inset Flex Noun
24872 status collapsed
24873
24874 \begin_layout Plain Layout
24875 La
24876 \family sans
24877 TeX
24878 \family default
24879  (pdflatex) -> PDF (pdflatex)
24880 \end_layout
24881
24882 \end_inset
24883
24884  converter to 
24885 \begin_inset Flex Code
24886 status collapsed
24887
24888 \begin_layout Plain Layout
24889 pdflatex -synctex=1 $$i
24890 \end_layout
24891
24892 \end_inset
24893
24894 .
24895  Should your viewer not be considered in the following description,
24896  or in case of missing success,
24897  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
24898 .
24899 \begin_inset Foot
24900 status collapsed
24901
24902 \begin_layout Plain Layout
24903 Note that the option 
24904 \begin_inset Flex Code
24905 status collapsed
24906
24907 \begin_layout Plain Layout
24908 -synctex=1
24909 \end_layout
24910
24911 \end_inset
24912
24913  option enables gzip compression.
24914  If your viewer does not support it,
24915  you should instead use 
24916 \begin_inset Flex Code
24917 status collapsed
24918
24919 \begin_layout Plain Layout
24920 -synctex=-1
24921 \end_layout
24922
24923 \end_inset
24924
24925 .
24926 \end_layout
24927
24928 \end_inset
24929
24930
24931 \end_layout
24932
24933 \begin_layout Subsection
24934 Configuring and using specific viewers
24935 \begin_inset CommandInset label
24936 LatexCommand label
24937 name "subsec:configuring-viewers"
24938
24939 \end_inset
24940
24941
24942 \end_layout
24943
24944 \begin_layout Subsubsection*
24945 Xdvi (all platforms)
24946 \end_layout
24947
24948 \begin_layout Standard
24949 If you use 
24950 \begin_inset Flex Code
24951 status collapsed
24952
24953 \begin_layout Plain Layout
24954 xdvi
24955 \end_layout
24956
24957 \end_inset
24958
24959 ,
24960  you don't need to do anything else for performing a reverse DVI search,
24961  as \SpecialChar LyX
24962  already provides the necessary hooks for automatically using the 
24963 \begin_inset Flex Code
24964 status collapsed
24965
24966 \begin_layout Plain Layout
24967 lyxclient
24968 \end_layout
24969
24970 \end_inset
24971
24972  program.
24973  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
24974  respectively).
24975 \end_layout
24976
24977 \begin_layout Standard
24978 However,
24979  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
24980 ,
24981  simply change the DVI viewer in 
24982 \family sans
24983 Preferences\SpecialChar menuseparator
24984 File Handling\SpecialChar menuseparator
24985 File formats
24986 \family default
24987  to
24988 \begin_inset Foot
24989 status collapsed
24990
24991 \begin_layout Plain Layout
24992 On Mac OSX you have to use 
24993 \begin_inset Flex Code
24994 status collapsed
24995
24996 \begin_layout Plain Layout
24997 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
24998 \end_layout
24999
25000 \end_inset
25001
25002
25003 \end_layout
25004
25005 \end_inset
25006
25007  
25008 \begin_inset Flex Code
25009 status collapsed
25010
25011 \begin_layout Plain Layout
25012 xdvi -editor "lyxeditor.sh %f %l"
25013 \end_layout
25014
25015 \end_inset
25016
25017 ,
25018  where 
25019 \begin_inset Flex Code
25020 status collapsed
25021
25022 \begin_layout Plain Layout
25023 lyxeditor.sh
25024 \end_layout
25025
25026 \end_inset
25027
25028  is a suitable script.
25029  For example,
25030  a minimal shell script is the following one:
25031 \end_layout
25032
25033 \begin_layout LyX-Code
25034 #!/bin/sh
25035 \begin_inset Newline newline
25036 \end_inset
25037
25038 LYXPIPE="/path/to/lyxpipe"
25039 \begin_inset Newline newline
25040 \end_inset
25041
25042 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25043 \begin_inset Newline newline
25044 \end_inset
25045
25046 echo "$COMMAND" > "${LYXPIPE}".in || exit
25047 \begin_inset Newline newline
25048 \end_inset
25049
25050 read TMP < "${LYXPIPE}".out || exit
25051 \end_layout
25052
25053 \begin_layout Standard
25054 where 
25055 \begin_inset Flex Code
25056 status collapsed
25057
25058 \begin_layout Plain Layout
25059 /path/to/lyxpipe
25060 \end_layout
25061
25062 \end_inset
25063
25064  is the LyXServer pipe path specified in 
25065 \family sans
25066 Preferences\SpecialChar menuseparator
25067 Paths
25068 \family default
25069 .
25070 \begin_inset Foot
25071 status collapsed
25072
25073 \begin_layout Plain Layout
25074 In the 
25075 \begin_inset Flex Code
25076 status collapsed
25077
25078 \begin_layout Plain Layout
25079 development/tools
25080 \end_layout
25081
25082 \end_inset
25083
25084  folder of a source distribution you can find a 
25085 \begin_inset Flex Code
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089 lyxeditor
25090 \end_layout
25091
25092 \end_inset
25093
25094  script which is able to locate the 
25095 \emph on
25096 lyxpipe
25097 \emph default
25098  based on your preferences.
25099 \end_layout
25100
25101 \end_inset
25102
25103
25104 \end_layout
25105
25106 \begin_layout Subsubsection*
25107 MacDviX (Mac OSX)
25108 \end_layout
25109
25110 \begin_layout Standard
25111 At the end of 
25112 \begin_inset Flex Code
25113 status collapsed
25114
25115 \begin_layout Plain Layout
25116 /Applications/MacDviX_Folder/calleditor.script
25117 \end_layout
25118
25119 \end_inset
25120
25121 ,
25122  add the following lines:
25123 \end_layout
25124
25125 \begin_layout LyX-Code
25126 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
25127 \begin_inset Newline newline
25128 \end_inset
25129
25130 exit 1
25131 \end_layout
25132
25133 \begin_layout Standard
25134 Modify the lines accordingly if you install \SpecialChar LyX
25135  somewhere else than in the Applications folder.
25136 \end_layout
25137
25138 \begin_layout Standard
25139 Reverse search is triggered by Alt-click (OPTION-click).
25140 \end_layout
25141
25142 \begin_layout Subsubsection*
25143 Skim (Mac OSX)
25144 \end_layout
25145
25146 \begin_layout Standard
25147 Enter 
25148 \begin_inset Flex Code
25149 status collapsed
25150
25151 \begin_layout Plain Layout
25152 open -a Skim.app $$i
25153 \end_layout
25154
25155 \end_inset
25156
25157  to the viewer setting in 
25158 \family sans
25159 Preferences\SpecialChar menuseparator
25160 File Handling\SpecialChar menuseparator
25161 File formats\SpecialChar menuseparator
25162 PDF (pdflatex)
25163 \family default
25164 ,
25165  and then in 
25166 \family sans
25167 Skim\SpecialChar menuseparator
25168 Preferences\SpecialChar menuseparator
25169 Sync
25170 \family default
25171  choose 
25172 \family sans
25173 custom
25174 \family default
25175  preset and enter command 
25176 \begin_inset Flex Noun
25177 status collapsed
25178
25179 \begin_layout Plain Layout
25180 /Applications/\SpecialChar LyX
25181 .app/Contents/MacOS/lyxeditor
25182 \end_layout
25183
25184 \end_inset
25185
25186 .
25187 \end_layout
25188
25189 \begin_layout Standard
25190 Reverse search is triggered by COMMAND-SHIFT-click
25191 \end_layout
25192
25193 \begin_layout Subsubsection*
25194 Evince (GNOME)
25195 \end_layout
25196
25197 \begin_layout Standard
25198 Reverse search with evince does not work out of the box,
25199  but it can be achieved by means of some third party helper scripts.
25200  Please refer to 
25201 \begin_inset CommandInset href
25202 LatexCommand href
25203 target "https://wiki.lyx.org/LyX/SyncTeX"
25204 literal "false"
25205
25206 \end_inset
25207
25208  for details.
25209 \end_layout
25210
25211 \begin_layout Subsubsection*
25212 Okular (KDE)
25213 \end_layout
25214
25215 \begin_layout Standard
25216 Go to 
25217 \family sans
25218 Settings\SpecialChar menuseparator
25219 Configure Okular\SpecialChar menuseparator
25220 Editor
25221 \family default
25222  and select LyX
25223 \begin_inset Quotes erd
25224 \end_inset
25225
25226  as editor.
25227  This inserts the appropriate command (
25228 \begin_inset Flex Code
25229 status collapsed
25230
25231 \begin_layout Plain Layout
25232 lyxclient -g %f %l
25233 \end_layout
25234
25235 \end_inset
25236
25237 ).
25238 \end_layout
25239
25240 \begin_layout Standard
25241 Reverse search is triggered by SHIFT-click.
25242  Note that this only works if Okular is in 
25243 \begin_inset Quotes eld
25244 \end_inset
25245
25246 Browse
25247 \begin_inset Quotes erd
25248 \end_inset
25249
25250  mode (i.
25251 \begin_inset space \thinspace{}
25252 \end_inset
25253
25254 e.,
25255  the hand symbol is clicked).
25256 \end_layout
25257
25258 \begin_layout Subsubsection*
25259 Qpdfview (Unix)
25260 \end_layout
25261
25262 \begin_layout Standard
25263 Qpdfview supports Sync\SpecialChar TeX
25264  since version 0.3.5.
25265  Go to 
25266 \family sans
25267 Edit\SpecialChar menuseparator
25268 Settings\SpecialChar menuseparator
25269 Behavior
25270 \family default
25271 ,
25272  click on the input field of the 
25273 \begin_inset Quotes eld
25274 \end_inset
25275
25276 Source editor
25277 \begin_inset Quotes erd
25278 \end_inset
25279
25280  item and add the command 
25281 \begin_inset Flex Code
25282 status collapsed
25283
25284 \begin_layout Plain Layout
25285 lyxclient -g %1 %2
25286 \end_layout
25287
25288 \end_inset
25289
25290 .
25291 \end_layout
25292
25293 \begin_layout Standard
25294 Reverse search is triggered by double-click or,
25295  in more recent versions,
25296  by context menu.
25297 \end_layout
25298
25299 \begin_layout Subsubsection*
25300 YAP (Windows)
25301 \end_layout
25302
25303 \begin_layout Standard
25304 Launch yap,
25305  choose its 
25306 \family sans
25307 View\SpecialChar menuseparator
25308 Options
25309 \family default
25310  menu and select the 
25311 \begin_inset Quotes eld
25312 \end_inset
25313
25314 Inverse DVI Search
25315 \begin_inset Quotes erd
25316 \end_inset
25317
25318  tab.
25319  Click on the 
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323 New\SpecialChar ldots
25324
25325 \begin_inset Quotes erd
25326 \end_inset
25327
25328  button and,
25329  in the window that opens,
25330  enter 
25331 \begin_inset Quotes eld
25332 \end_inset
25333
25334 \SpecialChar LyX
25335  Editor
25336 \begin_inset Quotes erd
25337 \end_inset
25338
25339  (or any other name you like) in the 
25340 \begin_inset Quotes eld
25341 \end_inset
25342
25343 Name:
25344 \begin_inset Quotes erd
25345 \end_inset
25346
25347  field.
25348  Now click on the button labeled 
25349 \begin_inset Quotes eld
25350 \end_inset
25351
25352 \SpecialChar ldots
25353
25354 \begin_inset Quotes erd
25355 \end_inset
25356
25357  to open a file dialog and navigate to the directory containing the batch file 
25358 \begin_inset Flex Code
25359 status collapsed
25360
25361 \begin_layout Plain Layout
25362 lyxeditor.bat
25363 \end_layout
25364
25365 \end_inset
25366
25367  (see below).
25368  Select 
25369 \begin_inset Flex Code
25370 status collapsed
25371
25372 \begin_layout Plain Layout
25373 lyxeditor.bat
25374 \end_layout
25375
25376 \end_inset
25377
25378  and then specify the program arguments as 
25379 \begin_inset Flex Code
25380 status collapsed
25381
25382 \begin_layout Plain Layout
25383 %f %l
25384 \end_layout
25385
25386 \end_inset
25387
25388 .
25389  The 
25390 \begin_inset Flex Code
25391 status collapsed
25392
25393 \begin_layout Plain Layout
25394 lyxeditor.bat
25395 \end_layout
25396
25397 \end_inset
25398
25399  wrapper is used for communicating with \SpecialChar LyX
25400  through the 
25401 \emph on
25402 lyxpipe
25403 \emph default
25404  and is as follows:
25405 \end_layout
25406
25407 \begin_layout LyX-Code
25408 @echo off
25409 \begin_inset Newline newline
25410 \end_inset
25411
25412 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
25413 \backslash
25414
25415 \backslash
25416 .
25417 \backslash
25418 pipe
25419 \backslash
25420 lyxpipe.in
25421 \begin_inset Newline newline
25422 \end_inset
25423
25424 type 
25425 \backslash
25426
25427 \backslash
25428 .
25429 \backslash
25430 pipe
25431 \backslash
25432 lyxpipe.out
25433 \end_layout
25434
25435 \begin_layout Standard
25436 Make sure that the \SpecialChar LyX
25437 Server pipe path you specified in \SpecialChar LyX
25438  is 
25439 \begin_inset Flex Code
25440 status collapsed
25441
25442 \begin_layout Plain Layout
25443
25444 \backslash
25445
25446 \backslash
25447 .
25448 \backslash
25449 pipe
25450 \backslash
25451 lyxpipe
25452 \end_layout
25453
25454 \end_inset
25455
25456 ,
25457  otherwise change the 
25458 \begin_inset Flex Code
25459 status collapsed
25460
25461 \begin_layout Plain Layout
25462 lyxeditor.bat
25463 \end_layout
25464
25465 \end_inset
25466
25467  wrapper accordingly.
25468 \end_layout
25469
25470 \begin_layout Standard
25471 In yap,
25472  reverse search is triggered by double-click.
25473 \end_layout
25474
25475 \begin_layout Subsubsection*
25476 SumatraPDF (Windows)
25477 \end_layout
25478
25479 \begin_layout Standard
25480 In order to use SumatraPDF for inverse search,
25481  enter 
25482 \begin_inset Flex Code
25483 status collapsed
25484
25485 \begin_layout Plain Layout
25486 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
25487 \end_layout
25488
25489 \end_inset
25490
25491  in the viewer setting in 
25492 \family sans
25493 Preferences\SpecialChar menuseparator
25494 File Handling\SpecialChar menuseparator
25495 File formats\SpecialChar menuseparator
25496 PDF (pdflatex)
25497 \family default
25498 ,
25499  where 
25500 \begin_inset Flex Code
25501 status collapsed
25502
25503 \begin_layout Plain Layout
25504 lyxeditor.bat
25505 \end_layout
25506
25507 \end_inset
25508
25509  is the previous wrapper.
25510  If SumatraPDF.exe is not in your command PATH,
25511  use its full file name.
25512 \end_layout
25513
25514 \begin_layout Standard
25515 Reverse search is triggered by double-click.
25516 \end_layout
25517
25518 \begin_layout Subsubsection*
25519 YAP (Cygwin)
25520 \end_layout
25521
25522 \begin_layout Standard
25523 First of all,
25524  make sure that yap is your default DVI viewer in the Windows environment,
25525  then launch it,
25526  choose its 
25527 \family sans
25528 View\SpecialChar menuseparator
25529 Options
25530 \family default
25531  menu and select the 
25532 \begin_inset Quotes eld
25533 \end_inset
25534
25535 Inverse DVI Search
25536 \begin_inset Quotes erd
25537 \end_inset
25538
25539  tab.
25540  Click on the 
25541 \begin_inset Quotes eld
25542 \end_inset
25543
25544 New\SpecialChar ldots
25545
25546 \begin_inset Quotes erd
25547 \end_inset
25548
25549  button and,
25550  in the window that opens,
25551  enter 
25552 \begin_inset Quotes eld
25553 \end_inset
25554
25555 \SpecialChar LyX
25556  Editor
25557 \begin_inset Quotes erd
25558 \end_inset
25559
25560  (or any other name you like) in the 
25561 \begin_inset Quotes eld
25562 \end_inset
25563
25564 Name:
25565 \begin_inset Quotes erd
25566 \end_inset
25567
25568  field.
25569  Now click on the button labeled 
25570 \begin_inset Quotes eld
25571 \end_inset
25572
25573 \SpecialChar ldots
25574
25575 \begin_inset Quotes erd
25576 \end_inset
25577
25578  to open a file dialog and navigate to the directory containing the 
25579 \begin_inset Flex Code
25580 status collapsed
25581
25582 \begin_layout Plain Layout
25583 lyxeditor.exe
25584 \end_layout
25585
25586 \end_inset
25587
25588  program (which is installed by default on Cygwin along with the \SpecialChar LyX
25589  executable).
25590  Select 
25591 \begin_inset Flex Code
25592 status collapsed
25593
25594 \begin_layout Plain Layout
25595 lyxeditor.exe
25596 \end_layout
25597
25598 \end_inset
25599
25600  and then specify the program arguments as 
25601 \begin_inset Flex Code
25602 status collapsed
25603
25604 \begin_layout Plain Layout
25605 -g %f %l
25606 \end_layout
25607
25608 \end_inset
25609
25610 .
25611  In this way,
25612  you will be using the 
25613 \emph on
25614 lyxsocket
25615 \emph default
25616  for communicating with \SpecialChar LyX
25617 .
25618  If,
25619  for whatever reason,
25620  you want to use the 
25621 \emph on
25622 lyxpipe
25623 \emph default
25624 ,
25625  omit the 
25626 \begin_inset Flex Code
25627 status collapsed
25628
25629 \begin_layout Plain Layout
25630 -g
25631 \end_layout
25632
25633 \end_inset
25634
25635  option and be sure to specify the \SpecialChar LyX
25636 Server pipe path in the \SpecialChar LyX
25637  preferences.
25638 \end_layout
25639
25640 \begin_layout Standard
25641 In yap,
25642  reverse search is triggered by double-click.
25643 \end_layout
25644
25645 \begin_layout Subsubsection*
25646 SumatraPDF (Cygwin)
25647 \end_layout
25648
25649 \begin_layout Standard
25650 In order to use SumatraPDF for inverse search,
25651  enter 
25652 \begin_inset Flex Code
25653 status collapsed
25654
25655 \begin_layout Plain Layout
25656 SumatraPDF -inverse-search "lyxeditor -g %f %l"
25657 \end_layout
25658
25659 \end_inset
25660
25661  in the viewer setting in 
25662 \family sans
25663 Preferences\SpecialChar menuseparator
25664 File Handling\SpecialChar menuseparator
25665 File formats\SpecialChar menuseparator
25666 PDF (pdflatex)
25667 \family default
25668 .
25669  If SumatraPDF.exe is not in your command PATH,
25670  use its full posix path.
25671  The 
25672 \begin_inset Flex Code
25673 status collapsed
25674
25675 \begin_layout Plain Layout
25676 -g
25677 \end_layout
25678
25679 \end_inset
25680
25681  enables communication via the 
25682 \emph on
25683 lyxsocket
25684 \emph default
25685 .
25686  Again,
25687  omit the 
25688 \begin_inset Flex Code
25689 status collapsed
25690
25691 \begin_layout Plain Layout
25692 -g
25693 \end_layout
25694
25695 \end_inset
25696
25697  option if you want to use the 
25698 \emph on
25699 lyxpipe
25700 \emph default
25701 ,
25702  and be sure to specify the \SpecialChar LyX
25703 Server pipe path in the \SpecialChar LyX
25704  preferences.
25705 \end_layout
25706
25707 \begin_layout Standard
25708 Reverse search is triggered by double-click.
25709 \end_layout
25710
25711 \begin_layout Section
25712 Forward search
25713 \end_layout
25714
25715 \begin_layout Standard
25716 Forward search is,
25717  as the name implies,
25718  in a sense the 
25719 \begin_inset Quotes eld
25720 \end_inset
25721
25722 opposite
25723 \begin_inset Quotes erd
25724 \end_inset
25725
25726  of reverse search.
25727  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
25728 .
25729  If forward search is set up (as described in what follows),
25730  you can put the cursor anywhere in your \SpecialChar LyX
25731  document,
25732  and hit 
25733 \family sans
25734 Navigate\SpecialChar menuseparator
25735 Forward search
25736 \family default
25737  (or select 
25738 \family sans
25739 Forward search
25740 \family default
25741  in the context menu via right mouse click),
25742  and then the viewer will jump to that position as well.
25743  This implies,
25744  of course,
25745  that your viewer supports this function.
25746 \end_layout
25747
25748 \begin_layout Standard
25749 To make forward search possible,
25750  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
25751  sources.
25752  This can be done via the methods described in the section 
25753 \begin_inset CommandInset ref
25754 LatexCommand ref
25755 reference "subsec:rev-search"
25756 nolink "false"
25757
25758 \end_inset
25759
25760 .
25761 \end_layout
25762
25763 \begin_layout Standard
25764 Additionally,
25765  you need to configure \SpecialChar LyX
25766  for using your viewers in 
25767 \family sans
25768 Tools\SpecialChar menuseparator
25769 Preferences\SpecialChar menuseparator
25770 Output\SpecialChar menuseparator
25771 General
25772 \family default
25773 .
25774  We provide a range of tested configurations for some viewers,
25775  which you can select from the drop down list.
25776  If none of these configurations suits you,
25777  you have to find out and enter a suitable configuration yourself.
25778  The definition syntax uses the following placeholders:
25779 \end_layout
25780
25781 \begin_layout Itemize
25782 \noindent
25783 \begin_inset Flex Code
25784 status collapsed
25785
25786 \begin_layout Plain Layout
25787 $$n
25788 \end_layout
25789
25790 \end_inset
25791
25792 :
25793  row number
25794 \end_layout
25795
25796 \begin_layout Itemize
25797 \noindent
25798 \begin_inset Flex Code
25799 status collapsed
25800
25801 \begin_layout Plain Layout
25802 $$t
25803 \end_layout
25804
25805 \end_inset
25806
25807 :
25808  name of the (temporary) exported .tex file (without path)
25809 \end_layout
25810
25811 \begin_layout Itemize
25812 \noindent
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 $$f
25818 \end_layout
25819
25820 \end_inset
25821
25822 :
25823  name of the (temporary) exported .tex file (including path)
25824 \end_layout
25825
25826 \begin_layout Itemize
25827 \noindent
25828 \begin_inset Flex Code
25829 status collapsed
25830
25831 \begin_layout Plain Layout
25832 $$o
25833 \end_layout
25834
25835 \end_inset
25836
25837 :
25838  name of the exported output file (either dvi or pdf,
25839  depending on which one exists in the temporary directory)
25840 \end_layout
25841
25842 \begin_layout Standard
25843 Note that only some of the viewers provide full and usable forward search functionality out of the box,
25844  among them yap,
25845  xdvi,
25846  okular
25847 \begin_inset Foot
25848 status collapsed
25849
25850 \begin_layout Plain Layout
25851 You might want to set 
25852 \begin_inset Flex Code
25853 status collapsed
25854
25855 \begin_layout Plain Layout
25856 okular --unique
25857 \end_layout
25858
25859 \end_inset
25860
25861  in 
25862 \family sans
25863 Tools\SpecialChar menuseparator
25864 Preferences\SpecialChar menuseparator
25865 File Handling\SpecialChar menuseparator
25866 File
25867 \begin_inset space ~
25868 \end_inset
25869
25870 Formats
25871 \end_layout
25872
25873 \end_inset
25874
25875 ,
25876  qpdfview,
25877  and SumatraPDF
25878 \begin_inset Foot
25879 status collapsed
25880
25881 \begin_layout Plain Layout
25882 SumatraPDF can also use DDE commands through the external program CMCDDE —
25883  downloadable from 
25884 \begin_inset CommandInset href
25885 LatexCommand href
25886 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
25887 literal "false"
25888
25889 \end_inset
25890
25891
25892 \end_layout
25893
25894 \end_inset
25895
25896 .
25897  Others,
25898  such as evince
25899 \begin_inset Foot
25900 status collapsed
25901
25902 \begin_layout Plain Layout
25903 Forward search with evince can be achieved by means of third party helper scripts.
25904  Please refer to 
25905 \begin_inset CommandInset href
25906 LatexCommand href
25907 target "https://wiki.lyx.org/LyX/SyncTeX"
25908 literal "false"
25909
25910 \end_inset
25911
25912  for details.
25913 \end_layout
25914
25915 \end_inset
25916
25917 ,
25918  require some extra tools in order to use forward search.
25919  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
25920  some other viewers – e.
25921 \begin_inset space \thinspace{}
25922 \end_inset
25923
25924 g.
25925  xpdf – allow at least to reload the document and jump to a specific page of the file,
25926  so you can at least navigate 
25927 \begin_inset Quotes eld
25928 \end_inset
25929
25930 near
25931 \begin_inset Quotes erd
25932 \end_inset
25933
25934 .
25935  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
25936  
25937 \end_layout
25938
25939 \begin_layout Standard
25940 Forward search works both with DVI and PDF output.
25941  \SpecialChar LyX
25942  simply checks which preview format you have used before (i.
25943 \begin_inset space \thinspace{}
25944 \end_inset
25945
25946 e.,
25947  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.
25948 \end_layout
25949
25950 \begin_layout Chapter
25951 \SpecialChar LyX
25952  Features needing Extra Software
25953 \end_layout
25954
25955 \begin_layout Section
25956 Checking \SpecialChar TeX
25957
25958 \end_layout
25959
25960 \begin_layout Standard
25961 by 
25962 \noun on
25963 Asger Alstrup
25964 \end_layout
25965
25966 \begin_layout Subsection
25967 Introduction
25968 \end_layout
25969
25970 \begin_layout Standard
25971 If you have the 
25972 \family typewriter
25973 chktex
25974 \family default
25975  program installed
25976 \begin_inset Foot
25977 status collapsed
25978
25979 \begin_layout Plain Layout
25980
25981 \family typewriter
25982 chktex
25983 \family default
25984  is not yet available when you are using the \SpecialChar LaTeX
25985  distribution MiK\SpecialChar TeX
25986 .
25987 \end_layout
25988
25989 \end_inset
25990
25991 ,
25992  you'll find in the 
25993 \family sans
25994 Tools
25995 \family default
25996  menu the entry:
25997  
25998 \family sans
25999 Check
26000 \begin_inset space ~
26001 \end_inset
26002
26003 TeX
26004 \family default
26005 .
26006  You can get 
26007 \family typewriter
26008 chktex
26009 \family default
26010  from CTAN,
26011 \begin_inset Newline newline
26012 \end_inset
26013
26014
26015 \begin_inset CommandInset href
26016 LatexCommand href
26017 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
26018 literal "false"
26019
26020 \end_inset
26021
26022 .
26023 \end_layout
26024
26025 \begin_layout Standard
26026 The 
26027 \family sans
26028 Chk\SpecialChar TeX
26029
26030 \family default
26031  package is a program that was written by 
26032 \begin_inset Flex Noun
26033 status collapsed
26034
26035 \begin_layout Plain Layout
26036 Jens T.
26037 \begin_inset space ~
26038 \end_inset
26039
26040 Berger Thielemann
26041 \end_layout
26042
26043 \end_inset
26044
26045  in frustration because some constructs in \SpecialChar LaTeX
26046  are sometimes non-intuitive,
26047  and easy to forget.
26048  The program runs over your \SpecialChar LaTeX
26049  file,
26050  checks the integrity of the file,
26051  and flags some common errors.
26052  In other technical words,
26053  it is 
26054 \family typewriter
26055 lint
26056 \family default
26057  for \SpecialChar LaTeX
26058 .
26059 \end_layout
26060
26061 \begin_layout Standard
26062 Well,
26063  what is a syntax checker doing in \SpecialChar LyX
26064  which is supposed to produce correct \SpecialChar LaTeX
26065  anyways?
26066  The answer is simple:
26067  Just as 
26068 \family typewriter
26069 Lint
26070 \family default
26071  not only checks the 
26072 \emph on
26073 syntax
26074 \emph default
26075  of C programs,
26076  but also does 
26077 \emph on
26078 semantic
26079 \emph default
26080  checks for type-errors,
26081  
26082 \family sans
26083 Chk\SpecialChar TeX
26084
26085 \family default
26086  catches some common 
26087 \emph on
26088 typographic
26089 \emph default
26090  errors,
26091  in addition to the syntactical ones.
26092  Specifically,
26093  
26094 \family sans
26095 Chk\SpecialChar TeX
26096
26097 \family default
26098  is capable of detecting several common errors,
26099  such as
26100 \end_layout
26101
26102 \begin_layout Itemize
26103 Ellipsis detection:
26104 \begin_inset Newline newline
26105 \end_inset
26106
26107 Use \SpecialChar ldots
26108  instead of ...
26109 \end_layout
26110
26111 \begin_layout Itemize
26112 No space in front of/after parenthesis:
26113 \begin_inset Newline newline
26114 \end_inset
26115
26116 ( wrong spacing )
26117 \end_layout
26118
26119 \begin_layout Itemize
26120 Enforcement of normal space after common abbreviations:
26121 \begin_inset Newline newline
26122 \end_inset
26123
26124 e.
26125 \begin_inset space \thinspace{}
26126 \end_inset
26127
26128 g.
26129 \begin_inset space \space{}
26130 \end_inset
26131
26132 is too wide spacing.
26133 \end_layout
26134
26135 \begin_layout Itemize
26136 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
26137 \begin_inset Newline newline
26138 \end_inset
26139
26140 This is a TEST.
26141  And this is wrong spacing.
26142 \end_layout
26143
26144 \begin_layout Itemize
26145 Space in front of labels and similar commands:
26146 \begin_inset Newline newline
26147 \end_inset
26148
26149 The label should stick right up to the text to avoid falling to a wrong page.
26150  
26151 \begin_inset CommandInset label
26152 LatexCommand label
26153 name "sec:chktex"
26154
26155 \end_inset
26156
26157  
26158 \begin_inset Foot
26159 status collapsed
26160
26161 \begin_layout Plain Layout
26162 This footnote is in danger of falling off to a wrong page
26163 \end_layout
26164
26165 \end_inset
26166
26167  The label is separated too much.
26168 \end_layout
26169
26170 \begin_layout Itemize
26171 Space in front of references,
26172  instead of hard spaces:
26173 \begin_inset Newline newline
26174 \end_inset
26175
26176 If you have bad luck,
26177  the text will break right between the referenced text and reference number,
26178  and that's a pity.
26179  See section 
26180 \begin_inset CommandInset ref
26181 LatexCommand ref
26182 reference "sec:chktex"
26183 nolink "false"
26184
26185 \end_inset
26186
26187 .
26188 \end_layout
26189
26190 \begin_layout Itemize
26191 Use of 
26192 \begin_inset Quotes eld
26193 \end_inset
26194
26195 x
26196 \begin_inset Quotes erd
26197 \end_inset
26198
26199  instead of 
26200 \begin_inset Formula $\times$
26201 \end_inset
26202
26203  between numbers:
26204 \begin_inset Newline newline
26205 \end_inset
26206
26207 2x2 looks cheap compared to 
26208 \begin_inset Formula $2\times2$
26209 \end_inset
26210
26211 .
26212 \end_layout
26213
26214 \begin_layout Standard
26215 and more \SpecialChar ldots
26216  It is an invaluable tool when you are 
26217 \begin_inset Quotes eld
26218 \end_inset
26219
26220 finishing up
26221 \begin_inset Quotes erd
26222 \end_inset
26223
26224  your document before printing,
26225  and you should run it right after the obligatory spelling check,
26226  and before you go fine tuning the typesetting.
26227 \end_layout
26228
26229 \begin_layout Subsection
26230 How to use it
26231 \end_layout
26232
26233 \begin_layout Standard
26234 If you have the program installed,
26235  usage is as simple as choosing 
26236 \family sans
26237 Tools\SpecialChar menuseparator
26238 Check
26239 \begin_inset space ~
26240 \end_inset
26241
26242 TeX
26243 \family default
26244 .
26245  This will make \SpecialChar LyX
26246  generate a \SpecialChar LaTeX
26247  file of your document,
26248  start 
26249 \family sans
26250 Chk\SpecialChar TeX
26251
26252 \family default
26253  to check it,
26254  and then make \SpecialChar LyX
26255  insert 
26256 \begin_inset Quotes eld
26257 \end_inset
26258
26259 error boxes
26260 \begin_inset Quotes erd
26261 \end_inset
26262
26263  with the warnings from 
26264 \family sans
26265 Chk\SpecialChar TeX
26266
26267 \family default
26268 ,
26269  if there were any.
26270  The warnings will be placed close to the point of the mistake,
26271  and you can quickly find them by using the 
26272 \family sans
26273 Navigate\SpecialChar menuseparator
26274 Error
26275 \family default
26276  menu item,
26277  or the shortcut key 
26278 \family sans
26279 C-g
26280 \family default
26281  from the default 
26282 \family typewriter
26283 cua
26284 \family default
26285  bind file.
26286  Open the error boxes by clicking on them with the mouse,
26287  or use the shortcut key 
26288 \family sans
26289 C-i
26290 \family default
26291  from 
26292 \family typewriter
26293 cua
26294 \family default
26295  bindings,
26296  or the corresponding 
26297 \family sans
26298 C-o
26299 \family default
26300  for the alternate 
26301 \family typewriter
26302 emacs
26303 \family default
26304  bind file.
26305  Read the warning and correct the mistake,
26306  if it is a mistake.
26307  If you have trouble understanding what the warning is about,
26308  you can safely ignore it.
26309  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
26310 \family sans
26311 Chk\SpecialChar TeX
26312
26313 \family default
26314 ,
26315  and this gap can make some warnings seem arcane or just plain silly.
26316 \end_layout
26317
26318 \begin_layout Standard
26319 This document is an excellent testing bed for the feature,
26320  and it should provide quite a few warnings for you to fiddle with.
26321  Since computers are only so smart,
26322  expect most of the warnings to be false alarms,
26323  though.
26324 \end_layout
26325
26326 \begin_layout Subsection
26327 How to fine tune it
26328 \end_layout
26329
26330 \begin_layout Standard
26331 Sometimes,
26332  you'll find that 
26333 \family sans
26334 Chk\SpecialChar TeX
26335
26336 \family default
26337  makes more noise than suits your mood.
26338  Then you can choose not to use it,
26339  wait until your mood changes,
26340  or try to customize 
26341 \family sans
26342 Chk\SpecialChar TeX
26343
26344 \family default
26345  to get better along with you.
26346 \end_layout
26347
26348 \begin_layout Standard
26349 Although 
26350 \family sans
26351 Chk\SpecialChar TeX
26352
26353 \family default
26354  
26355 \emph on
26356 is
26357 \emph default
26358  very configurable and extensible,
26359  you should not expect to solve all problems with 
26360 \family sans
26361 Chk\SpecialChar TeX
26362
26363 \family default
26364  in \SpecialChar LyX
26365  this way.
26366  Since \SpecialChar LyX
26367  has to generate a somewhat special \SpecialChar LaTeX
26368  file to be able to match the line numbers from the 
26369 \family sans
26370 Chk\SpecialChar TeX
26371
26372 \family default
26373  output
26374 \begin_inset Foot
26375 status collapsed
26376
26377 \begin_layout Plain Layout
26378 You can inspect the specific output from 
26379 \family sans
26380 chktex
26381 \family default
26382  by using 
26383 \family sans
26384 Document\SpecialChar menuseparator
26385 \SpecialChar LaTeX
26386
26387 \begin_inset space ~
26388 \end_inset
26389
26390 Log
26391 \family default
26392  right after a 
26393 \family sans
26394 chktex
26395 \family default
26396  run.
26397 \end_layout
26398
26399 \end_inset
26400
26401  to the internal document structure,
26402  some of the warnings will not appear correctly.
26403  There are two things you can do about this:
26404 \end_layout
26405
26406 \begin_layout Itemize
26407 Fine tune the 
26408 \family sans
26409 Chk\SpecialChar TeX
26410
26411 \family default
26412  invocation command line in 
26413 \family sans
26414 Tools\SpecialChar menuseparator
26415 Preferences\SpecialChar menuseparator
26416 Output\SpecialChar menuseparator
26417 LaTeX\SpecialChar menuseparator
26418 CheckTeX command
26419 \family default
26420 ,
26421  or the global 
26422 \family sans
26423 Chk\SpecialChar TeX
26424
26425 \family default
26426  installation configuration file (usually with the file 
26427 \family typewriter
26428 chktexrc
26429 \family default
26430 ).
26431  See below to learn what warnings can be enabled and disabled on the command line.
26432 \end_layout
26433
26434 \begin_layout Itemize
26435 Export your document as a raw \SpecialChar LaTeX
26436  file using 
26437 \family sans
26438 File\SpecialChar menuseparator
26439 Export\SpecialChar menuseparator
26440 \SpecialChar LaTeX
26441
26442 \family default
26443  and run 
26444 \family typewriter
26445 chktex
26446 \family default
26447  manually on that.
26448  Invoked in this way,
26449  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
26450 ,
26451  but with a little patience,
26452  you should be able to do it.
26453 \end_layout
26454
26455 \begin_layout Standard
26456 Here follows the warning messages that can be enabled and disabled in 
26457 \family sans
26458 Preferences
26459 \family default
26460 .
26461  Use 
26462 \family typewriter
26463 -n#
26464 \family default
26465  to disable a warning,
26466  and 
26467 \family typewriter
26468 -w#
26469 \family default
26470  to enable a warning.
26471  The emphasized entries are disabled by default,
26472  because the default is "
26473 \family typewriter
26474 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
26475 \family default
26476 ".
26477 \end_layout
26478
26479 \begin_layout Standard
26480 Notice that you should only use the options that enable and disable warnings,
26481  because \SpecialChar LyX
26482  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
26483 \family typewriter
26484 chktex
26485 \family default
26486 .
26487 \end_layout
26488
26489 \begin_layout Enumerate
26490
26491 \size small
26492 \emph on
26493 Command terminated with space.
26494 \end_layout
26495
26496 \begin_layout Enumerate
26497
26498 \size small
26499 Non-breaking space (
26500 \begin_inset Quotes eld
26501 \end_inset
26502
26503
26504 \family typewriter
26505 ~
26506 \family default
26507
26508 \begin_inset Quotes erd
26509 \end_inset
26510
26511 ) should have been used.
26512 \end_layout
26513
26514 \begin_layout Enumerate
26515
26516 \size small
26517 \emph on
26518 You should enclose the previous parenthesis with 
26519 \begin_inset Quotes eld
26520 \end_inset
26521
26522
26523 \family typewriter
26524 {}
26525 \family default
26526
26527 \begin_inset Quotes erd
26528 \end_inset
26529
26530 .
26531 \end_layout
26532
26533 \begin_layout Enumerate
26534
26535 \size small
26536 Italic correction (
26537 \begin_inset Quotes eld
26538 \end_inset
26539
26540
26541 \family typewriter
26542
26543 \backslash
26544 /
26545 \family default
26546
26547 \begin_inset Quotes erd
26548 \end_inset
26549
26550 ) found in non-italic buffer.
26551 \end_layout
26552
26553 \begin_layout Enumerate
26554
26555 \size small
26556 Italic correction (
26557 \begin_inset Quotes eld
26558 \end_inset
26559
26560
26561 \family typewriter
26562
26563 \backslash
26564 /
26565 \family default
26566
26567 \begin_inset Quotes erd
26568 \end_inset
26569
26570 ) found more than once.
26571 \end_layout
26572
26573 \begin_layout Enumerate
26574
26575 \size small
26576 \emph on
26577 No italic correction (
26578 \begin_inset Quotes eld
26579 \end_inset
26580
26581
26582 \family typewriter
26583
26584 \backslash
26585 /
26586 \family default
26587
26588 \begin_inset Quotes erd
26589 \end_inset
26590
26591 ) found.
26592 \end_layout
26593
26594 \begin_layout Enumerate
26595
26596 \size small
26597 Accent command 
26598 \begin_inset Quotes eld
26599 \end_inset
26600
26601
26602 \family typewriter
26603 cmd
26604 \family default
26605
26606 \begin_inset Quotes erd
26607 \end_inset
26608
26609  needs use of 
26610 \begin_inset Quotes eld
26611 \end_inset
26612
26613
26614 \family typewriter
26615 cmd
26616 \family default
26617
26618 \begin_inset Quotes erd
26619 \end_inset
26620
26621 .
26622 \end_layout
26623
26624 \begin_layout Enumerate
26625
26626 \size small
26627 Wrong length of dash may have been used.
26628 \end_layout
26629
26630 \begin_layout Enumerate
26631
26632 \size small
26633 \emph on
26634 \begin_inset Quotes eld
26635 \end_inset
26636
26637
26638 \family typewriter
26639 %s
26640 \family default
26641
26642 \begin_inset Quotes erd
26643 \end_inset
26644
26645  expected,
26646  found 
26647 \begin_inset Quotes eld
26648 \end_inset
26649
26650
26651 \family typewriter
26652 %s
26653 \family default
26654
26655 \begin_inset Quotes erd
26656 \end_inset
26657
26658 .
26659 \end_layout
26660
26661 \begin_layout Enumerate
26662
26663 \size small
26664 Solo 
26665 \begin_inset Quotes eld
26666 \end_inset
26667
26668
26669 \family typewriter
26670 %s
26671 \family default
26672
26673 \begin_inset Quotes erd
26674 \end_inset
26675
26676  found.
26677 \end_layout
26678
26679 \begin_layout Enumerate
26680
26681 \size small
26682 You should use 
26683 \begin_inset Quotes eld
26684 \end_inset
26685
26686
26687 \family typewriter
26688 %s
26689 \family default
26690
26691 \begin_inset Quotes erd
26692 \end_inset
26693
26694  to achieve an ellipsis.
26695 \end_layout
26696
26697 \begin_layout Enumerate
26698
26699 \size small
26700 Inter-word spacing (
26701 \begin_inset Quotes eld
26702 \end_inset
26703
26704
26705 \family typewriter
26706
26707 \backslash
26708
26709 \family default
26710  
26711 \begin_inset Quotes eld
26712 \end_inset
26713
26714 ) should perhaps be used.
26715 \end_layout
26716
26717 \begin_layout Enumerate
26718
26719 \size small
26720 Inter-sentence spacing (
26721 \begin_inset Quotes eld
26722 \end_inset
26723
26724
26725 \family typewriter
26726
26727 \backslash
26728 @
26729 \family default
26730
26731 \begin_inset Quotes erd
26732 \end_inset
26733
26734 ) should perhaps be used.
26735 \end_layout
26736
26737 \begin_layout Enumerate
26738
26739 \size small
26740 Could not find argument for command.
26741 \end_layout
26742
26743 \begin_layout Enumerate
26744
26745 \size small
26746 No match found for 
26747 \begin_inset Quotes eld
26748 \end_inset
26749
26750
26751 \family typewriter
26752 %s
26753 \family default
26754
26755 \begin_inset Quotes erd
26756 \end_inset
26757
26758 .
26759 \end_layout
26760
26761 \begin_layout Enumerate
26762
26763 \size small
26764 Math mode still on at end of \SpecialChar LaTeX
26765  file.
26766 \end_layout
26767
26768 \begin_layout Enumerate
26769
26770 \size small
26771 Number of 
26772 \begin_inset Quotes eld
26773 \end_inset
26774
26775
26776 \family typewriter
26777 char
26778 \family default
26779
26780 \begin_inset Quotes erd
26781 \end_inset
26782
26783  doesn't match the number of 
26784 \begin_inset Quotes eld
26785 \end_inset
26786
26787
26788 \family typewriter
26789 char
26790 \family default
26791
26792 \begin_inset Quotes erd
26793 \end_inset
26794
26795 .
26796 \end_layout
26797
26798 \begin_layout Enumerate
26799
26800 \size small
26801 You should use either 
26802 \family typewriter
26803
26804 \begin_inset Quotes eld
26805 \end_inset
26806
26807
26808 \family default
26809  or 
26810 \family typewriter
26811
26812 \begin_inset Quotes erd
26813 \end_inset
26814
26815
26816 \family default
26817  as an alternative to 
26818 \begin_inset Quotes eld
26819 \end_inset
26820
26821
26822 \family typewriter
26823 "
26824 \family default
26825
26826 \begin_inset Quotes erd
26827 \end_inset
26828
26829 .
26830 \end_layout
26831
26832 \begin_layout Enumerate
26833
26834 \size small
26835 You should use "
26836 \family typewriter
26837 '
26838 \family default
26839 " (ASCII 39) instead of "
26840 \family typewriter
26841 ´
26842 \family default
26843 " (ASCII 180).
26844 \end_layout
26845
26846 \begin_layout Enumerate
26847
26848 \size small
26849 User-specified pattern found.
26850 \end_layout
26851
26852 \begin_layout Enumerate
26853
26854 \size small
26855 This command might not be intended.
26856 \end_layout
26857
26858 \begin_layout Enumerate
26859
26860 \size small
26861 \emph on
26862 Comment displayed.
26863 \end_layout
26864
26865 \begin_layout Enumerate
26866
26867 \size small
26868 Either 
26869 \family typewriter
26870 ''
26871 \backslash
26872 ,'
26873 \family default
26874  or 
26875 \family typewriter
26876 '
26877 \backslash
26878 ,''
26879 \family default
26880  will look better.
26881 \end_layout
26882
26883 \begin_layout Enumerate
26884
26885 \size small
26886 Delete this space to maintain correct page references.
26887 \end_layout
26888
26889 \begin_layout Enumerate
26890
26891 \size small
26892 \emph on
26893 You might wish to put this between a pair of 
26894 \begin_inset Quotes eld
26895 \end_inset
26896
26897
26898 \family typewriter
26899 {}
26900 \family default
26901
26902 \begin_inset Quotes erd
26903 \end_inset
26904
26905 .
26906 \end_layout
26907
26908 \begin_layout Enumerate
26909
26910 \size small
26911 You ought to remove spaces in front of punctuation.
26912 \end_layout
26913
26914 \begin_layout Enumerate
26915
26916 \size small
26917 Could not execute \SpecialChar LaTeX
26918  command.
26919 \end_layout
26920
26921 \begin_layout Enumerate
26922
26923 \size small
26924 Don't use 
26925 \family typewriter
26926
26927 \backslash
26928 /
26929 \family default
26930  in front of small punctuation.
26931 \end_layout
26932
26933 \begin_layout Enumerate
26934
26935 \family typewriter
26936 \size small
26937 $
26938 \backslash
26939 times$
26940 \family default
26941  may look prettier here.
26942 \end_layout
26943
26944 \begin_layout Enumerate
26945
26946 \size small
26947 \emph on
26948 Multiple spaces detected in output.
26949 \end_layout
26950
26951 \begin_layout Enumerate
26952
26953 \size small
26954 This text may be ignored.
26955 \end_layout
26956
26957 \begin_layout Enumerate
26958
26959 \size small
26960 Use 
26961 \family typewriter
26962
26963 \begin_inset Quotes eld
26964 \end_inset
26965
26966
26967 \family default
26968  to begin quotation,
26969  not 
26970 \family typewriter
26971 '
26972 \family default
26973 .
26974 \end_layout
26975
26976 \begin_layout Enumerate
26977
26978 \size small
26979 Use 
26980 \family typewriter
26981 '
26982 \family default
26983  to end quotation,
26984  not 
26985 \family typewriter
26986
26987 \begin_inset Quotes eld
26988 \end_inset
26989
26990
26991 \family default
26992 .
26993 \end_layout
26994
26995 \begin_layout Enumerate
26996
26997 \size small
26998 Don't mix quotes.
26999 \end_layout
27000
27001 \begin_layout Enumerate
27002
27003 \size small
27004 You should perhaps use 
27005 \begin_inset Quotes eld
27006 \end_inset
27007
27008
27009 \family typewriter
27010 cmd
27011 \family default
27012
27013 \begin_inset Quotes erd
27014 \end_inset
27015
27016  instead.
27017 \end_layout
27018
27019 \begin_layout Enumerate
27020
27021 \size small
27022 You should put a space in front of/after parenthesis.
27023 \end_layout
27024
27025 \begin_layout Enumerate
27026
27027 \size small
27028 You should avoid spaces in front of/after parenthesis.
27029 \end_layout
27030
27031 \begin_layout Enumerate
27032
27033 \size small
27034 \emph on
27035 You should not use punctuation in front of/after quotes.
27036 \end_layout
27037
27038 \begin_layout Enumerate
27039
27040 \size small
27041 Double space found.
27042 \end_layout
27043
27044 \begin_layout Enumerate
27045
27046 \size small
27047 You should put punctuation outside inner/inside display math mode.
27048 \end_layout
27049
27050 \begin_layout Enumerate
27051
27052 \size small
27053 You ought to not use primitive \SpecialChar TeX
27054  in \SpecialChar LaTeX
27055  code.
27056 \end_layout
27057
27058 \begin_layout Enumerate
27059
27060 \size small
27061 You should remove spaces in front of 
27062 \begin_inset Quotes eld
27063 \end_inset
27064
27065
27066 \family typewriter
27067 %s
27068 \family default
27069
27070 \begin_inset Quotes erd
27071 \end_inset
27072
27073
27074 \end_layout
27075
27076 \begin_layout Enumerate
27077
27078 \size small
27079 \begin_inset Quotes eld
27080 \end_inset
27081
27082
27083 \family typewriter
27084 %s
27085 \family default
27086
27087 \begin_inset Quotes erd
27088 \end_inset
27089
27090  is normally not followed by 
27091 \begin_inset Quotes eld
27092 \end_inset
27093
27094
27095 \family typewriter
27096 %c
27097 \family default
27098
27099 \begin_inset Quotes erd
27100 \end_inset
27101
27102 .
27103 \end_layout
27104
27105 \begin_layout Standard
27106 In later versions of \SpecialChar LyX
27107 ,
27108  we hope to provide a more complete interface to this tool (and it's smaller cousin 
27109 \family typewriter
27110 lacheck
27111 \family default
27112 ) to exploit the full power of it.
27113  But it's not exactly useless as it is now:
27114  go try it on one of your existing documents of a certain length and be surprised.
27115 \end_layout
27116
27117 \begin_layout Section
27118 Version Control in \SpecialChar LyX
27119
27120 \end_layout
27121
27122 \begin_layout Standard
27123 by
27124 \noun on
27125  Lars Gullik Bjønnes 
27126 \noun default
27127 and 
27128 \noun on
27129 Pavel Sanda
27130 \end_layout
27131
27132 \begin_layout Subsection
27133 Introduction
27134 \end_layout
27135
27136 \begin_layout Standard
27137 \SpecialChar LyX
27138  supports some of the most basic RCS/CVS/SVN/GIT commands.
27139  If you need something a bit more sophisticated you will have to do that manually in a terminal or your favourite client.
27140 \end_layout
27141
27142 \begin_layout Standard
27143 Also note that CVS support is not as good as subversion support,
27144  so we advise using SVN instead.
27145  A good place to start learning Subversion is the SVN Book
27146 \begin_inset Foot
27147 status collapsed
27148
27149 \begin_layout Plain Layout
27150 \begin_inset CommandInset href
27151 LatexCommand href
27152 target "http://svnbook.red-bean.com/"
27153 literal "false"
27154
27155 \end_inset
27156
27157
27158 \end_layout
27159
27160 \end_inset
27161
27162 .
27163  In the case of RCS you should read 
27164 \begin_inset Quotes eld
27165 \end_inset
27166
27167 rcsintro
27168 \begin_inset Quotes erd
27169 \end_inset
27170
27171  (a man file,
27172  read it with 
27173 \family typewriter
27174 man rcsintro
27175 \family default
27176 ).
27177  This file describes all the basic features of RCS.
27178  You should especially notice the comment about a RCS directory,
27179  and the notion of a master RCS file (the file ending in 
27180 \family typewriter
27181 ,v
27182 \family default
27183 ).
27184 \end_layout
27185
27186 \begin_layout Standard
27187 Before you begin to use the version control features in \SpecialChar LyX
27188 ,
27189  you should be familiar with RCS/CVS/SVN/GIT usage.
27190  The implementation in \SpecialChar LyX
27191  assumes a recent version of the GNU RCS or CVS/SVN package —
27192  no guarantees are made for older versions.
27193  Most of the log messages are not currently displayed after operations —
27194  you can check them in the Messages pane if you are unsure.
27195  Regular users of version control will appreciate the VC toolbar,
27196  which can be enabled via 
27197 \family sans
27198 View\SpecialChar menuseparator
27199 Toolbars\SpecialChar menuseparator
27200 Version
27201 \begin_inset space ~
27202 \end_inset
27203
27204 Control
27205 \family default
27206 .
27207 \end_layout
27208
27209 \begin_layout Standard
27210 For introducing your own external commands consult 
27211 \begin_inset Flex Code
27212 status collapsed
27213
27214 \begin_layout Plain Layout
27215 vc-command
27216 \end_layout
27217
27218 \end_inset
27219
27220  in the manual 
27221 \emph on
27222 \SpecialChar LyX
27223  Functions
27224 \emph default
27225 .
27226 \end_layout
27227
27228 \begin_layout Standard
27229 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
27230 \family sans
27231 Document\SpecialChar menuseparator
27232 Compressed
27233 \family default
27234  if it is checked):
27235  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
27236  Compressed LyX documents are binary files,
27237  which cannot be merged by version control systems.
27238  Also to avoid unnecessary merge conflicts we advise to disable 
27239 \family sans
27240 Document\SpecialChar menuseparator
27241 Settings\SpecialChar menuseparator
27242 Output\SpecialChar menuseparator
27243 Save transient properties
27244 \family default
27245  when more users work on the same document.
27246 \end_layout
27247
27248 \begin_layout Subsection
27249 RCS commands in \SpecialChar LyX
27250
27251 \end_layout
27252
27253 \begin_layout Standard
27254 The following sections describe the RCS commands supported by \SpecialChar LyX
27255 .
27256  You can find them in the 
27257 \family sans
27258 File\SpecialChar menuseparator
27259 Version
27260 \begin_inset space ~
27261 \end_inset
27262
27263 Control
27264 \family default
27265  submenu.
27266  \SpecialChar LyX
27267  was tested against RCS 5.7/5.8/5.10.
27268 \end_layout
27269
27270 \begin_layout Subsubsection
27271
27272 \family sans
27273 Register
27274 \end_layout
27275
27276 \begin_layout Standard
27277 If your document is not under revision control,
27278  this is the only item shown in the menu.
27279  And if it is under revision control,
27280  the 
27281 \family sans
27282 Register
27283 \family default
27284  item is not visible.
27285  
27286 \end_layout
27287
27288 \begin_layout Standard
27289 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
27290  You are asked interactively to supply an initial description of the document.
27291  The document is now set in Read-Only mode and you have to 
27292 \family sans
27293 Check
27294 \begin_inset space ~
27295 \end_inset
27296
27297 Out
27298 \begin_inset space ~
27299 \end_inset
27300
27301 For
27302 \begin_inset space ~
27303 \end_inset
27304
27305 Edit
27306 \family default
27307 ,
27308  before making any changes to it.
27309  A document under revision control has a 
27310 \begin_inset Quotes eld
27311 \end_inset
27312
27313 [RCS:<version> <locker>]
27314 \begin_inset Quotes erd
27315 \end_inset
27316
27317  item tagged to the filename in the minibuffer.
27318 \end_layout
27319
27320 \begin_layout Standard
27321 RCS command that is run:
27322 \end_layout
27323
27324 \begin_layout LyX-Code
27325
27326 \family typewriter
27327 ci -q -u -i -t-"<initial description>" <file-name>
27328 \end_layout
27329
27330 \begin_layout Standard
27331 Read 
27332 \family typewriter
27333 man ci
27334 \family default
27335  to understand the switches.
27336  
27337 \end_layout
27338
27339 \begin_layout Subsubsection
27340
27341 \family sans
27342 Check In Changes
27343 \end_layout
27344
27345 \begin_layout Standard
27346 When you are finished editing a file,
27347  you check in your changes.
27348  When you do this,
27349  you are asked for a description of the changes.
27350  This is stored in the history log.
27351  The version number is bumped,
27352  your changes are applied to the master RCS file,
27353  the document is unlocked and set to Read-Only mode.
27354 \end_layout
27355
27356 \begin_layout Itemize
27357 RCS command:
27358  
27359 \family typewriter
27360 ci -q -u -m"<description>" <file-name>
27361 \end_layout
27362
27363 \begin_layout Subsubsection
27364
27365 \family sans
27366 Check Out For Edit
27367 \end_layout
27368
27369 \begin_layout Standard
27370 By doing this you lock the document so that only you can edit it.
27371  This will also make the document Read-Write only for you.
27372  You will usually continue editing for a while and when you are finished you check in your changes.
27373  The status line is changed to reflect that you have locked the file.
27374 \end_layout
27375
27376 \begin_layout Itemize
27377 RCS command:
27378  
27379 \family typewriter
27380 co -q -l <file-name>
27381 \end_layout
27382
27383 \begin_layout Subsubsection
27384
27385 \family sans
27386 Revert To Repository Version
27387 \end_layout
27388
27389 \begin_layout Standard
27390 This will discard all changes made to the document since the last check in.
27391  You get a warning before changes are discarded.
27392 \end_layout
27393
27394 \begin_layout Itemize
27395 RCS command:
27396  
27397 \family typewriter
27398 co -f -u<version> <file-name>
27399 \end_layout
27400
27401 \begin_layout Subsubsection
27402
27403 \family sans
27404 Copy
27405 \end_layout
27406
27407 \begin_layout Standard
27408 This will create a copy of the current document.
27409  Since RCS does not support copy operations natively,
27410  the version history is not preserved,
27411  and the copy is added as a new file.
27412  It requires a clean document without any changes since the last checkin.
27413  You are asked for a file name and a description of the copy operation.
27414  After that the copy is created,
27415  both locally and in the repository.
27416  If the parent directories of the copied and original document differ,
27417  all relative paths of included files of the copy are adjusted (like in 
27418 \family sans
27419 File\SpecialChar menuseparator
27420 Save As
27421 \family default
27422 \SpecialChar ldots
27423 ).
27424  Finally,
27425  the copy is loaded instead of the original document.
27426 \end_layout
27427
27428 \begin_layout Labeling
27429 \labelwidthstring 00.00.0000
27430 RCS
27431 \begin_inset space ~
27432 \end_inset
27433
27434 commands:
27435  
27436 \begin_inset space ~
27437 \end_inset
27438
27439
27440 \begin_inset Newline newline
27441 \end_inset
27442
27443 Copy 
27444 \begin_inset Flex Code
27445 status collapsed
27446
27447 \begin_layout Plain Layout
27448
27449 \family typewriter
27450 \begin_inset Quotes qld
27451 \end_inset
27452
27453 <file-name>
27454 \begin_inset Quotes qld
27455 \end_inset
27456
27457
27458 \end_layout
27459
27460 \end_inset
27461
27462  to 
27463 \begin_inset Flex Code
27464 status collapsed
27465
27466 \begin_layout Plain Layout
27467
27468 \family typewriter
27469 \begin_inset Quotes qld
27470 \end_inset
27471
27472 <new-file-name>
27473 \begin_inset Quotes qld
27474 \end_inset
27475
27476
27477 \end_layout
27478
27479 \end_inset
27480
27481
27482 \begin_inset Newline newline
27483 \end_inset
27484
27485
27486 \begin_inset Flex Code
27487 status collapsed
27488
27489 \begin_layout Plain Layout
27490 ci -q -u 
27491 \family typewriter
27492 -i 
27493 \begin_inset Quotes qld
27494 \end_inset
27495
27496 <new-file-name>
27497 \begin_inset Quotes qld
27498 \end_inset
27499
27500
27501 \end_layout
27502
27503 \end_inset
27504
27505
27506 \end_layout
27507
27508 \begin_layout Subsubsection
27509
27510 \family sans
27511 Undo Last Checkin
27512 \end_layout
27513
27514 \begin_layout Standard
27515 This makes as if the last check in never happened.
27516  No changes are made to the document loaded into \SpecialChar LyX
27517 ,
27518  but the last version is removed from the master RCS file.
27519 \end_layout
27520
27521 \begin_layout Itemize
27522 RCS command:
27523  
27524 \family typewriter
27525 rcs -o<version> <file-name>
27526 \end_layout
27527
27528 \begin_layout Subsubsection
27529
27530 \family sans
27531 Show History
27532 \end_layout
27533
27534 \begin_layout Standard
27535 This shows the complete history of the RCS document.
27536  The output of 
27537 \family typewriter
27538 rlog <file-name>
27539 \family default
27540  is shown in a browser.
27541  See 
27542 \family typewriter
27543 man rlog
27544 \family default
27545  for more info.
27546 \end_layout
27547
27548 \begin_layout Subsubsection
27549 Revision info
27550 \end_layout
27551
27552 \begin_layout Standard
27553 \SpecialChar LyX
27554  supports RCS version number,
27555  author name,
27556  date and time of last commit.
27557  All those are extracted from 
27558 \family typewriter
27559 rlog -r <file-name>
27560 \family default
27561 .
27562  See 
27563 \begin_inset CommandInset ref
27564 LatexCommand ref
27565 reference "subsec:VCS-Revision-Information"
27566 nolink "false"
27567
27568 \end_inset
27569
27570  for details.
27571 \end_layout
27572
27573 \begin_layout Subsection
27574 CVS commands in \SpecialChar LyX
27575
27576 \end_layout
27577
27578 \begin_layout Standard
27579 A subset of CVS operations is supported by \SpecialChar LyX
27580 .
27581  You can find the commands in the 
27582 \family sans
27583 File\SpecialChar menuseparator
27584 Version
27585 \begin_inset space ~
27586 \end_inset
27587
27588 Control
27589 \family default
27590  submenu.
27591  The version control system SVN is more powerful,
27592  so please use it instead of CVS if possible.
27593 \end_layout
27594
27595 \begin_layout Subsubsection
27596
27597 \family sans
27598 General CVS usage
27599 \end_layout
27600
27601 \begin_layout Standard
27602 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
27603  If you're using a client-server setup you may need to login before doing the first repository checkout.
27604 \end_layout
27605
27606 \begin_layout Standard
27607 If your documents are under revision control and others are using the same repository problems arise when different changes to the same document at the same location happen.
27608  Standard CVS repositories don't operate with a file locking mechanism.
27609  This may be surprising,
27610  but conflicts only occur if people disagree on the proper content of the same part of a document.
27611  So,
27612  if co-workers are used to communicate regularly,
27613  these conflicts occur rarely.
27614  If they don't communicate they have a fundamental problem anyway.
27615  Nevertheless some people like to work with so called 
27616 \begin_inset Quotes eld
27617 \end_inset
27618
27619 reserved checkouts
27620 \begin_inset Quotes erd
27621 \end_inset
27622
27623 .
27624  If they do so the working copy of all files is readonly when checked out first and the user starts editing after using a special command to make the working copy writable.
27625  When the changes are checked in the working copy returns to readonly state.
27626  With \SpecialChar LyX
27627  one has to edit the 
27628 \begin_inset Flex Code
27629 status collapsed
27630
27631 \begin_layout Plain Layout
27632 .cvsrc
27633 \end_layout
27634
27635 \end_inset
27636
27637  file and add the line 
27638 \begin_inset Flex Code
27639 status collapsed
27640
27641 \begin_layout Plain Layout
27642 cvs -r
27643 \end_layout
27644
27645 \end_inset
27646
27647  to work with reserved checkouts.
27648  The benefit is the possibility to see who is using a writable copy of some document.
27649  It's not guaranteed only one user makes a copy writable.
27650 \end_layout
27651
27652 \begin_layout Standard
27653 \SpecialChar LyX
27654  tries to guess if you're using reserved or non-reserved checkouts.
27655  If your working copy is readonly or it is writable and an additional copy of your document exists in the CVS/Base sub-directory a reserved otherwise a non-reserved checkout is assumed.
27656  When a reserved checkout is detected you have to use 
27657 \begin_inset Flex Noun
27658 status collapsed
27659
27660 \begin_layout Plain Layout
27661 Check Out
27662 \end_layout
27663
27664 \end_inset
27665
27666  to make your working copy writable if it's readonly.
27667  After doing so the 
27668 \begin_inset Flex Noun
27669 status collapsed
27670
27671 \begin_layout Plain Layout
27672 Check In
27673 \end_layout
27674
27675 \end_inset
27676
27677  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
27678 \end_layout
27679
27680 \begin_layout Standard
27681 More information about CVS can be found here 
27682 \begin_inset Flex URL
27683 status collapsed
27684
27685 \begin_layout Plain Layout
27686
27687 http://www.nongnu.org/cvs
27688 \end_layout
27689
27690 \end_inset
27691
27692  and here 
27693 \begin_inset Flex URL
27694 status collapsed
27695
27696 \begin_layout Plain Layout
27697
27698 http://ximbiot.com/cvs
27699 \end_layout
27700
27701 \end_inset
27702
27703 .
27704 \end_layout
27705
27706 \begin_layout Standard
27707 Read 
27708 \family typewriter
27709 man cvs
27710 \family default
27711  to understand the sub-commands and the switches mentioned below.
27712 \end_layout
27713
27714 \begin_layout Subsubsection
27715
27716 \family sans
27717 Register
27718 \end_layout
27719
27720 \begin_layout Standard
27721 If your document is not under revision control,
27722  this is the only item shown in the menu.
27723  And if it is under revision control,
27724  the 
27725 \family sans
27726 Register
27727 \family default
27728  item is not visible.
27729  
27730 \end_layout
27731
27732 \begin_layout Standard
27733 This command registers in CVS your document 
27734 \begin_inset Flex Strong
27735 status collapsed
27736
27737 \begin_layout Plain Layout
27738
27739 \emph on
27740 only
27741 \end_layout
27742
27743 \end_inset
27744
27745  in the case you have already the documents directory under CVS control (in particular 
27746 \family typewriter
27747 CVS/Entries
27748 \family default
27749  file exists).
27750  This means you have to create or checkout the archive by yourself using external tools.
27751  (In case you forget that step \SpecialChar LyX
27752  registers the document with RCS.)
27753 \end_layout
27754
27755 \begin_layout Standard
27756 Then you are asked interactively to supply an initial description of the document.
27757  Don't forget that registered file is not yet checked in.
27758 \end_layout
27759
27760 \begin_layout Standard
27761 CVS command that is run:
27762  
27763 \family typewriter
27764 cvs -q add -m"<entered message>" "<file-name>"
27765 \end_layout
27766
27767 \begin_layout Standard
27768 The term 
27769 \family typewriter
27770 "<file-name>"
27771 \family default
27772  above and for all other CVS commands is an abbreviation for 
27773 \begin_inset Quotes eld
27774 \end_inset
27775
27776 change the current working directory to file location and use the file name without path component as argument
27777 \begin_inset Quotes erd
27778 \end_inset
27779
27780 .
27781 \end_layout
27782
27783 \begin_layout Subsubsection
27784
27785 \family sans
27786 Check In Changes
27787 \end_layout
27788
27789 \begin_layout Standard
27790 When you are finished editing a file,
27791  you commit your changes.
27792  When you do this and you had changed the document,
27793  you are asked for a description of the changes.
27794  After that changes are written to the repository.
27795  In case you didn't change the document and a reserved checkout is detected the reservation made on 
27796 \begin_inset Flex Noun
27797 status collapsed
27798
27799 \begin_layout Plain Layout
27800 Check Out
27801 \end_layout
27802
27803 \end_inset
27804
27805  is undone.
27806 \end_layout
27807
27808 \begin_layout Labeling
27809 \labelwidthstring 00.00.0000
27810 CVS
27811 \begin_inset space ~
27812 \end_inset
27813
27814 command:
27815  
27816 \begin_inset space ~
27817 \end_inset
27818
27819
27820 \begin_inset Newline newline
27821 \end_inset
27822
27823
27824 \begin_inset Flex Code
27825 status collapsed
27826
27827 \begin_layout Plain Layout
27828 cvs 
27829 \family typewriter
27830 -q commit -m"<description>" "<file-name>"
27831 \end_layout
27832
27833 \end_inset
27834
27835  or
27836 \begin_inset Newline newline
27837 \end_inset
27838
27839
27840 \begin_inset Flex Code
27841 status collapsed
27842
27843 \begin_layout Plain Layout
27844 cvs -q unedit 
27845 \family typewriter
27846 "<file-name>"
27847 \end_layout
27848
27849 \end_inset
27850
27851
27852 \end_layout
27853
27854 \begin_layout Subsubsection
27855
27856 \family sans
27857 Check Out Changes
27858 \end_layout
27859
27860 \begin_layout Standard
27861 When you are sharing a repository with others,
27862  you may have to incorporate their changes into your working copy.
27863 \end_layout
27864
27865 \begin_layout Standard
27866 CVS command:
27867  
27868 \family typewriter
27869 cvs -q update "<file-name>"
27870 \end_layout
27871
27872 \begin_layout Standard
27873 If a readonly checkout is detected the working copy is made writable and reserved.
27874 \end_layout
27875
27876 \begin_layout Standard
27877 CVS command:
27878  
27879 \family typewriter
27880 cvs -q edit "<file-name>"
27881 \end_layout
27882
27883 \begin_layout Subsubsection
27884
27885 \family sans
27886 Revert To Repository Version
27887 \end_layout
27888
27889 \begin_layout Standard
27890 This will discard all changes made to the document since the last check in.
27891  You get a warning before changes are discarded.
27892  Firstly the file is deleted,
27893  secondly CVS update command is run.
27894 \end_layout
27895
27896 \begin_layout Standard
27897 CVS command:
27898  
27899 \family typewriter
27900 cvs -q update "<file-name>"
27901 \end_layout
27902
27903 \begin_layout Standard
27904 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
27905 \end_layout
27906
27907 \begin_layout Standard
27908 CVS command:
27909  
27910 \family typewriter
27911 cvs -q unedit "<file-name>"
27912 \end_layout
27913
27914 \begin_layout Subsubsection
27915
27916 \family sans
27917 Copy
27918 \end_layout
27919
27920 \begin_layout Standard
27921 This will create a copy of the current document.
27922  Since CVS does not support copy operations natively,
27923  the version history is not preserved,
27924  and the copy is added as a new file.
27925  It requires a clean document without any changes since the last checkin.
27926  You are asked for a file name and a description of the copy operation.
27927  After that the copy is created,
27928  both locally and in the repository.
27929  If the parent directories of the copied and original document differ,
27930  all relative paths of included files of the copy are adjusted (like in 
27931 \family sans
27932 File\SpecialChar menuseparator
27933 Save As
27934 \family default
27935 \SpecialChar ldots
27936 ).
27937  Finally,
27938  the copy is loaded instead of the original document.
27939 \end_layout
27940
27941 \begin_layout Labeling
27942 \labelwidthstring 00.00.0000
27943 CVS
27944 \begin_inset space ~
27945 \end_inset
27946
27947 commands:
27948  
27949 \begin_inset space ~
27950 \end_inset
27951
27952
27953 \begin_inset Newline newline
27954 \end_inset
27955
27956 Copy 
27957 \begin_inset Flex Code
27958 status collapsed
27959
27960 \begin_layout Plain Layout
27961 "<file-name>"
27962 \end_layout
27963
27964 \end_inset
27965
27966  to 
27967 \begin_inset Flex Code
27968 status collapsed
27969
27970 \begin_layout Plain Layout
27971 "<new-file-name>"
27972 \end_layout
27973
27974 \end_inset
27975
27976
27977 \begin_inset Newline newline
27978 \end_inset
27979
27980
27981 \begin_inset Flex Code
27982 status collapsed
27983
27984 \begin_layout Plain Layout
27985 cvs -q add "<new-file-name>"
27986 \end_layout
27987
27988 \end_inset
27989
27990
27991 \end_layout
27992
27993 \begin_layout Subsubsection
27994
27995 \family sans
27996 Rename
27997 \end_layout
27998
27999 \begin_layout Standard
28000 This will rename the current document.
28001  Since CVS does not support rename operations natively,
28002  the version history is not preserved,
28003  the renamed document is added as a new file,
28004  and the original document is deleted.
28005  It requires a clean document without any changes since the last checkin.
28006  You are asked for a file name and a description of the rename operation.
28007  After that the document is renamed,
28008  both locally and in the repository.
28009  If the parent directories of the new and old file names differ,
28010  all relative paths of included files are adjusted (like in 
28011 \family sans
28012 File\SpecialChar menuseparator
28013 Save As
28014 \family default
28015 \SpecialChar ldots
28016 ).
28017  Finally,
28018  the document is reloaded using the new name.
28019 \end_layout
28020
28021 \begin_layout Labeling
28022 \labelwidthstring 00.00.0000
28023 CVS
28024 \begin_inset space ~
28025 \end_inset
28026
28027 commands:
28028  
28029 \begin_inset space ~
28030 \end_inset
28031
28032
28033 \begin_inset Newline newline
28034 \end_inset
28035
28036 Rename 
28037 \begin_inset Flex Code
28038 status collapsed
28039
28040 \begin_layout Plain Layout
28041 "<file-name>"
28042 \end_layout
28043
28044 \end_inset
28045
28046  to 
28047 \begin_inset Flex Code
28048 status collapsed
28049
28050 \begin_layout Plain Layout
28051 "<new-file-name>"
28052 \end_layout
28053
28054 \end_inset
28055
28056
28057 \begin_inset Newline newline
28058 \end_inset
28059
28060
28061 \begin_inset Flex Code
28062 status collapsed
28063
28064 \begin_layout Plain Layout
28065 cvs -q add "<new-file-name>"
28066 \end_layout
28067
28068 \end_inset
28069
28070
28071 \begin_inset Newline newline
28072 \end_inset
28073
28074
28075 \begin_inset Flex Code
28076 status collapsed
28077
28078 \begin_layout Plain Layout
28079 cvs -q remove "<file-name>"
28080 \end_layout
28081
28082 \end_inset
28083
28084
28085 \end_layout
28086
28087 \begin_layout Subsubsection
28088 Update of the local directory checkout from repository
28089 \end_layout
28090
28091 \begin_layout Standard
28092 Once your documents gets more complex,
28093  containing sub-documents and pictures,
28094  including external 
28095 \begin_inset Flex Code
28096 status collapsed
28097
28098 \begin_layout Plain Layout
28099 .tex
28100 \end_layout
28101
28102 \end_inset
28103
28104  files and so on using version control becomes more complicated.
28105  \SpecialChar LyX
28106  supports updating the whole tree in which resides the document.
28107  This become especially useful once you cooperate with people which neither have detailed knowledge about CVS usage nor they have ambition to commit additional material to the repository.
28108  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28109  It's good practice anyway to store multipart documents in an extra directory.
28110 \end_layout
28111
28112 \begin_layout Standard
28113 The 
28114 \begin_inset Flex Code
28115 status collapsed
28116
28117 \begin_layout Plain Layout
28118 Update local directory from repository
28119 \end_layout
28120
28121 \end_inset
28122
28123  command updates the whole directory.
28124  If local changes are detected user is warned before update starts.
28125  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
28126  You have to review and correct the result of the merge.
28127  You'll find the conflicts enclosed in pairs of 
28128 \begin_inset Flex Code
28129 status collapsed
28130
28131 \begin_layout Plain Layout
28132 <<<<<<<
28133 \end_layout
28134
28135 \end_inset
28136
28137  and 
28138 \begin_inset Flex Code
28139 status collapsed
28140
28141 \begin_layout Plain Layout
28142 >>>>>>>
28143 \end_layout
28144
28145 \end_inset
28146
28147  separated by 
28148 \begin_inset Flex Code
28149 status collapsed
28150
28151 \begin_layout Plain Layout
28152 =======
28153 \end_layout
28154
28155 \end_inset
28156
28157 .
28158  The first part is your version as before the update operation with the document name prepended.
28159  The second one is the repository version with the version number after the sequence of 
28160 \begin_inset Flex Code
28161 status collapsed
28162
28163 \begin_layout Plain Layout
28164 >
28165 \end_layout
28166
28167 \end_inset
28168
28169  signs.
28170 \end_layout
28171
28172 \begin_layout Labeling
28173 \labelwidthstring 00.00.0000
28174 CVS
28175 \begin_inset space ~
28176 \end_inset
28177
28178 commands:
28179  
28180 \begin_inset space ~
28181 \end_inset
28182
28183
28184 \begin_inset Newline newline
28185 \end_inset
28186
28187
28188 \begin_inset Flex Code
28189 status collapsed
28190
28191 \begin_layout Plain Layout
28192 cd $path;
28193  cvs diff 
28194 \family typewriter
28195 "."
28196 \end_layout
28197
28198 \end_inset
28199
28200  (Ask if changes are detected.)
28201 \begin_inset Newline newline
28202 \end_inset
28203
28204
28205 \begin_inset Flex Code
28206 status collapsed
28207
28208 \begin_layout Plain Layout
28209 cd $path;
28210  cvs -q update 
28211 \family typewriter
28212 "."
28213 \end_layout
28214
28215 \end_inset
28216
28217
28218 \end_layout
28219
28220 \begin_layout Standard
28221 where 
28222 \begin_inset Flex Code
28223 status collapsed
28224
28225 \begin_layout Plain Layout
28226 $path
28227 \end_layout
28228
28229 \end_inset
28230
28231  stands for the path to the document.
28232 \end_layout
28233
28234 \begin_layout Subsubsection
28235
28236 \family sans
28237 Show History
28238 \end_layout
28239
28240 \begin_layout Standard
28241 This shows the complete history of the CVS document.
28242  The output of 
28243 \family typewriter
28244 cvs log "<file-name>"
28245 \family default
28246  is shown in a browser.
28247 \end_layout
28248
28249 \begin_layout Subsubsection
28250 Revision info
28251 \end_layout
28252
28253 \begin_layout Standard
28254 \SpecialChar LyX
28255  supports CVS version number,
28256  author name,
28257  date and time of last commit.
28258  All those are extracted from 
28259 \family typewriter
28260 cvs log -r <file-name>
28261 \family default
28262 .
28263  See 
28264 \begin_inset CommandInset ref
28265 LatexCommand ref
28266 reference "subsec:VCS-Revision-Information"
28267 nolink "false"
28268
28269 \end_inset
28270
28271  for details.
28272 \end_layout
28273
28274 \begin_layout Subsection
28275 SVN commands in \SpecialChar LyX
28276
28277 \end_layout
28278
28279 \begin_layout Standard
28280 SVN is now partially supported by \SpecialChar LyX
28281 .
28282  You can find the commands in the 
28283 \family sans
28284 File\SpecialChar menuseparator
28285 Version
28286 \begin_inset space ~
28287 \end_inset
28288
28289 Control
28290 \family default
28291  submenu.
28292  Please note that if you use password protected access to repository via ssh,
28293  you will be asked in terminal window.
28294  \SpecialChar LyX
28295  was tested against SVN 1.5,
28296  1.6,
28297  1.7 and 1.8
28298 \begin_inset Foot
28299 status collapsed
28300
28301 \begin_layout Plain Layout
28302 Most of the commands will work with 1.4 too,
28303  see 
28304 \begin_inset CommandInset ref
28305 LatexCommand ref
28306 reference "subsec:SVN-Repo-Update"
28307 nolink "false"
28308
28309 \end_inset
28310
28311 .
28312  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
28313 \end_layout
28314
28315 \end_inset
28316
28317
28318 \end_layout
28319
28320 \begin_layout Subsubsection
28321
28322 \family sans
28323 Register
28324 \end_layout
28325
28326 \begin_layout Standard
28327 If your document is not under revision control,
28328  this is the only item shown in the menu.
28329  And if it is under revision control,
28330  the 
28331 \family sans
28332 Register
28333 \family default
28334  item is not visible.
28335 \end_layout
28336
28337 \begin_layout Standard
28338 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
28339 \family typewriter
28340 .svn/entries
28341 \family default
28342  file exists).
28343  This means you have to checkout the archive by yourself.
28344 \end_layout
28345
28346 \begin_layout Standard
28347 Then you are asked interactively to supply an initial description of the document.
28348  Don't forget that registered file is not yet commited.
28349 \end_layout
28350
28351 \begin_layout Standard
28352 SVN command that is run:
28353  
28354 \family typewriter
28355 svn add -q 
28356 \begin_inset Quotes qld
28357 \end_inset
28358
28359 <file-name>
28360 \begin_inset Quotes qld
28361 \end_inset
28362
28363
28364 \end_layout
28365
28366 \begin_layout Standard
28367 Read 
28368 \family typewriter
28369 man svn
28370 \family default
28371  to understand the switches.
28372 \end_layout
28373
28374 \begin_layout Subsubsection
28375
28376 \family sans
28377 Check In Changes
28378 \end_layout
28379
28380 \begin_layout Standard
28381 When you are finished editing a file,
28382  you commit your changes.
28383  When you do this,
28384  you are asked for a description of the changes.
28385  After that changes are commited.
28386 \end_layout
28387
28388 \begin_layout Standard
28389 SVN command:
28390 \begin_inset Foot
28391 status collapsed
28392
28393 \begin_layout Plain Layout
28394 In case locking is not enabled.
28395  See Section 
28396 \begin_inset CommandInset ref
28397 LatexCommand ref
28398 reference "subsec:SVN-File-Locking"
28399 nolink "false"
28400
28401 \end_inset
28402
28403 .
28404 \end_layout
28405
28406 \end_inset
28407
28408  
28409 \family typewriter
28410 svn commit -q -m"<description>" <file-name>
28411 \end_layout
28412
28413 \begin_layout Subsubsection
28414
28415 \family sans
28416 Check Out For Edit
28417 \end_layout
28418
28419 \begin_layout Standard
28420 Updates the changes of this file from the repository.
28421  Be sure you understand SVN merging and conflicts resolving before using this function,
28422  because all conflicts has to be resolved manually by you!
28423 \end_layout
28424
28425 \begin_layout Standard
28426 SVN command:
28427 \begin_inset Foot
28428 status collapsed
28429
28430 \begin_layout Plain Layout
28431 Ditto.
28432 \end_layout
28433
28434 \end_inset
28435
28436  
28437 \family typewriter
28438 svn update --non-interactive 
28439 \begin_inset Quotes qld
28440 \end_inset
28441
28442 <file-name>
28443 \begin_inset Quotes qld
28444 \end_inset
28445
28446
28447 \end_layout
28448
28449 \begin_layout Subsubsection
28450
28451 \family sans
28452 Revert To Repository Version
28453 \end_layout
28454
28455 \begin_layout Standard
28456 This will discard all changes made to the document since the last check in.
28457  You get a warning before changes are discarded.
28458 \end_layout
28459
28460 \begin_layout Standard
28461 SVN command:
28462  
28463 \family typewriter
28464 svn revert -q 
28465 \begin_inset Quotes qld
28466 \end_inset
28467
28468 <file-name>
28469 \begin_inset Quotes qld
28470 \end_inset
28471
28472
28473 \end_layout
28474
28475 \begin_layout Subsubsection
28476
28477 \family sans
28478 Copy
28479 \end_layout
28480
28481 \begin_layout Standard
28482 This will create a copy of the current document including the version history.
28483  It requires a clean document without any changes since the last checkin.
28484  You are asked for a file name and a description of the copy operation.
28485  After that the copy is created,
28486  both locally and in the repository.
28487  If the parent directories of the copied and original document differ,
28488  all relative paths of included files of the copy are adjusted (like in 
28489 \family sans
28490 File\SpecialChar menuseparator
28491 Save As
28492 \family default
28493 \SpecialChar ldots
28494 ).
28495  Finally,
28496  the copy is loaded instead of the original document.
28497 \end_layout
28498
28499 \begin_layout Labeling
28500 \labelwidthstring 00.00.0000
28501 SVN
28502 \begin_inset space ~
28503 \end_inset
28504
28505 commands:
28506  
28507 \begin_inset space ~
28508 \end_inset
28509
28510
28511 \begin_inset Newline newline
28512 \end_inset
28513
28514
28515 \begin_inset Flex Code
28516 status collapsed
28517
28518 \begin_layout Plain Layout
28519 svn copy -q 
28520 \family typewriter
28521
28522 \begin_inset Quotes qld
28523 \end_inset
28524
28525 <file-name>
28526 \begin_inset Quotes qld
28527 \end_inset
28528
28529  
28530 \begin_inset Quotes qld
28531 \end_inset
28532
28533 <new-file-name>
28534 \begin_inset Quotes qld
28535 \end_inset
28536
28537
28538 \end_layout
28539
28540 \end_inset
28541
28542
28543 \begin_inset Newline newline
28544 \end_inset
28545
28546
28547 \begin_inset Flex Code
28548 status collapsed
28549
28550 \begin_layout Plain Layout
28551 svn commit
28552 \end_layout
28553
28554 \end_inset
28555
28556
28557 \end_layout
28558
28559 \begin_layout Subsubsection
28560
28561 \family sans
28562 Rename
28563 \end_layout
28564
28565 \begin_layout Standard
28566 This will rename the current document including the version history.
28567  It requires a clean document without any changes since the last checkin.
28568  You are asked for a file name and a description of the rename operation.
28569  After that the document is renamed,
28570  both locally and in the repository.
28571  If the parent directories of the new and old file names differ,
28572  all relative paths of included files are adjusted (like in 
28573 \family sans
28574 File\SpecialChar menuseparator
28575 Save As
28576 \family default
28577 \SpecialChar ldots
28578 ).
28579  Finally,
28580  the document is reloaded using the new name.
28581 \end_layout
28582
28583 \begin_layout Labeling
28584 \labelwidthstring 00.00.0000
28585 SVN
28586 \begin_inset space ~
28587 \end_inset
28588
28589 commands:
28590  
28591 \begin_inset space ~
28592 \end_inset
28593
28594
28595 \begin_inset Newline newline
28596 \end_inset
28597
28598
28599 \begin_inset Flex Code
28600 status collapsed
28601
28602 \begin_layout Plain Layout
28603 svn move -q 
28604 \family typewriter
28605
28606 \begin_inset Quotes qld
28607 \end_inset
28608
28609 <file-name>
28610 \begin_inset Quotes qld
28611 \end_inset
28612
28613  
28614 \begin_inset Quotes qld
28615 \end_inset
28616
28617 <new-file-name>
28618 \begin_inset Quotes qld
28619 \end_inset
28620
28621
28622 \end_layout
28623
28624 \end_inset
28625
28626
28627 \begin_inset Newline newline
28628 \end_inset
28629
28630
28631 \begin_inset Flex Code
28632 status collapsed
28633
28634 \begin_layout Plain Layout
28635 svn commit
28636 \end_layout
28637
28638 \end_inset
28639
28640
28641 \end_layout
28642
28643 \begin_layout Subsubsection
28644 \begin_inset CommandInset label
28645 LatexCommand label
28646 name "subsec:SVN-Repo-Update"
28647
28648 \end_inset
28649
28650 Update of the local directory checkout from repository
28651 \begin_inset Foot
28652 status collapsed
28653
28654 \begin_layout Plain Layout
28655 Note that this command will work only with subversion 
28656 \begin_inset Formula $\geqq1.5$
28657 \end_inset
28658
28659
28660 \end_layout
28661
28662 \end_inset
28663
28664
28665 \end_layout
28666
28667 \begin_layout Standard
28668 All the commands above have one shortcoming – they deal with the current document only.
28669  Once your document contains pictures,
28670  includes external 
28671 \begin_inset Flex Code
28672 status collapsed
28673
28674 \begin_layout Plain Layout
28675 .tex
28676 \end_layout
28677
28678 \end_inset
28679
28680  files and so on administration becomes more complicated.
28681  \SpecialChar LyX
28682  now supports updating the whole tree in which resides the document
28683 \begin_inset Foot
28684 status collapsed
28685
28686 \begin_layout Plain Layout
28687 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28688  
28689 \end_layout
28690
28691 \end_inset
28692
28693 .
28694  This become especially useful once you cooperate with people which neither know about subversion management nor they have ambition to commit additional material to the repository.
28695  
28696 \end_layout
28697
28698 \begin_layout Standard
28699 \begin_inset Flex Code
28700 status collapsed
28701
28702 \begin_layout Plain Layout
28703 Update local directory from repository
28704 \end_layout
28705
28706 \end_inset
28707
28708  command updates the whole directory and in case of merge conflicts local version of the files are left,
28709  so no unintended data loss occurs.
28710  If local changes are detected user is warned before update starts.
28711 \end_layout
28712
28713 \begin_layout Labeling
28714 \labelwidthstring 00.00.0000
28715 SVN
28716 \begin_inset space ~
28717 \end_inset
28718
28719 commands:
28720  
28721 \begin_inset space ~
28722 \end_inset
28723
28724
28725 \begin_inset Newline newline
28726 \end_inset
28727
28728
28729 \begin_inset Flex Code
28730 status collapsed
28731
28732 \begin_layout Plain Layout
28733 svn diff $path
28734 \end_layout
28735
28736 \end_inset
28737
28738  (Ask if changes are detected.)
28739 \begin_inset Newline newline
28740 \end_inset
28741
28742
28743 \begin_inset Flex Code
28744 status collapsed
28745
28746 \begin_layout Plain Layout
28747 svn update --accept mine-full $path
28748 \end_layout
28749
28750 \end_inset
28751
28752
28753 \end_layout
28754
28755 \begin_layout Standard
28756 where 
28757 \begin_inset Flex Code
28758 status collapsed
28759
28760 \begin_layout Plain Layout
28761 $path
28762 \end_layout
28763
28764 \end_inset
28765
28766  stands for the path to the document.
28767 \end_layout
28768
28769 \begin_layout Subsubsection
28770
28771 \family sans
28772 Show History
28773 \end_layout
28774
28775 \begin_layout Standard
28776 This shows the complete history of the SVN document.
28777  The output of 
28778 \family typewriter
28779 svn log 
28780 \begin_inset Quotes qld
28781 \end_inset
28782
28783 <file-name>
28784 \begin_inset Quotes qld
28785 \end_inset
28786
28787
28788 \family default
28789  is shown in a browser.
28790 \end_layout
28791
28792 \begin_layout Subsubsection
28793 File Locking
28794 \begin_inset CommandInset label
28795 LatexCommand label
28796 name "subsec:SVN-File-Locking"
28797
28798 \end_inset
28799
28800
28801 \end_layout
28802
28803 \begin_layout Standard
28804 The file exchange through various revision control systems brings the problem of merge conflicts in case two different users try to edit the same (parts of) document.
28805  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
28806  which guarantees that only one user is allowed to edit file at the given time.
28807 \end_layout
28808
28809 \begin_layout Standard
28810 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
28811  
28812 \begin_inset CommandInset ref
28813 LatexCommand ref
28814 reference "subsec:Automatical-Locking-Property"
28815 nolink "false"
28816
28817 \end_inset
28818
28819 ) based on 
28820 \begin_inset Flex Code
28821 status collapsed
28822
28823 \begin_layout Plain Layout
28824 svn:needs-lock
28825 \end_layout
28826
28827 \end_inset
28828
28829  file svn property
28830 \begin_inset Foot
28831 status collapsed
28832
28833 \begin_layout Plain Layout
28834 \begin_inset Flex URL
28835 status open
28836
28837 \begin_layout Plain Layout
28838
28839 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
28840 \end_layout
28841
28842 \end_inset
28843
28844
28845 \end_layout
28846
28847 \end_inset
28848
28849 .
28850  If this property is detected for a given document \SpecialChar LyX
28851  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
28852  This in particular means there are two different modes of file use in \SpecialChar LyX
28853 :
28854 \end_layout
28855
28856 \begin_layout Itemize
28857 Unlocked state.
28858  The loaded file is in the read-only mode.
28859  For editing on needs to check-out.
28860  
28861 \emph on
28862 Check-out
28863 \emph default
28864  consists of updating from the repository and gaining write lock.
28865  If the lock is not possible to obtain,
28866  we remain in unlocked state.
28867 \end_layout
28868
28869 \begin_layout Itemize
28870 Locked state.
28871  The loaded file is in the 
28872 \begin_inset Quotes els
28873 \end_inset
28874
28875 normal
28876 \begin_inset Quotes ers
28877 \end_inset
28878
28879  edit mode.
28880  No other user is allowed to edit the file.
28881  
28882 \emph on
28883 Check-in
28884 \emph default
28885  consists of commiting changes and releasing write-lock.
28886  If no changes have been made to the document,
28887  no commit will be produced
28888 \begin_inset Foot
28889 status collapsed
28890
28891 \begin_layout Plain Layout
28892 Don't be puzzled by the fact that you will be asked for commit message anyway.
28893 \end_layout
28894
28895 \end_inset
28896
28897  and only the write-lock will be released.
28898 \end_layout
28899
28900 \begin_layout Standard
28901 SVN commands:
28902 \end_layout
28903
28904 \begin_layout Labeling
28905 \labelwidthstring 00.00.0000
28906 Check-in:
28907
28908 \family typewriter
28909  svn commit -q -m"<description>" "<file-name>"
28910 \begin_inset Newline newline
28911 \end_inset
28912
28913 svn unlock "<file-name>"
28914 \end_layout
28915
28916 \begin_layout Labeling
28917 \labelwidthstring 00.00.0000
28918 Check-out:
28919  
28920 \family typewriter
28921 svn update "<file-name>"
28922 \begin_inset Newline newline
28923 \end_inset
28924
28925 svn lock "<file-name>"
28926 \end_layout
28927
28928 \begin_layout Subsubsection
28929
28930 \family typewriter
28931 \begin_inset CommandInset label
28932 LatexCommand label
28933 name "subsec:Automatical-Locking-Property"
28934
28935 \end_inset
28936
28937
28938 \family default
28939 Automatic Locking Property
28940 \end_layout
28941
28942 \begin_layout Standard
28943 The above mentioned automatic setting of write permissions of the .lyx file can be set through
28944 \family sans
28945  File\SpecialChar menuseparator
28946 Version
28947 \begin_inset space ~
28948 \end_inset
28949
28950 Control\SpecialChar menuseparator
28951 Use Locking Property
28952 \family default
28953 .
28954  This command is active only when the file is not locked on the svn server (i.e.
28955  you need to check-out before proceeding).
28956 \end_layout
28957
28958 \begin_layout Labeling
28959 \labelwidthstring 00.00.0000
28960 SVN
28961 \begin_inset space ~
28962 \end_inset
28963
28964 commands:
28965 \end_layout
28966
28967 \begin_layout Labeling
28968 \labelwidthstring 00.00.0000
28969 Set:
28970
28971 \family typewriter
28972  svn propset svn:needs-lock ON "<file-name>"
28973 \end_layout
28974
28975 \begin_layout Labeling
28976 \labelwidthstring 00.00.0000
28977 Unset:
28978  
28979 \family typewriter
28980 svn propdel svn:needs-lock "<file-name>"
28981 \end_layout
28982
28983 \begin_layout Subsubsection
28984 \begin_inset CommandInset label
28985 LatexCommand label
28986 name "subsec:VCS-Revision-Information"
28987
28988 \end_inset
28989
28990 Revision Information in Documents
28991 \end_layout
28992
28993 \begin_layout Standard
28994 There are more possibilities how to activate revision information in our document.
28995 \end_layout
28996
28997 \begin_layout Itemize
28998 \SpecialChar LyX
28999  supports directly:
29000 \end_layout
29001
29002 \begin_deeper
29003 \begin_layout Itemize
29004 tree revision information (
29005 \begin_inset Flex Code
29006 status collapsed
29007
29008 \begin_layout Plain Layout
29009 vcs-tree-revision
29010 \end_layout
29011
29012 \end_inset
29013
29014 ).
29015  The result is the output of the 
29016 \begin_inset Flex Code
29017 status collapsed
29018
29019 \begin_layout Plain Layout
29020 svnversion
29021 \end_layout
29022
29023 \end_inset
29024
29025  command,
29026  the following table gives you an idea,
29027  how to read the results.
29028 \end_layout
29029
29030 \begin_layout Standard
29031 \align center
29032 \begin_inset Tabular
29033 <lyxtabular version="3" rows="6" columns="2">
29034 <features tabularvalignment="middle">
29035 <column alignment="left" valignment="top">
29036 <column alignment="left" valignment="top">
29037 <row>
29038 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29039 \begin_inset Text
29040
29041 \begin_layout Plain Layout
29042
29043 \series bold
29044 Output
29045 \end_layout
29046
29047 \end_inset
29048 </cell>
29049 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29050 \begin_inset Text
29051
29052 \begin_layout Plain Layout
29053
29054 \series bold
29055 Meaning
29056 \end_layout
29057
29058 \end_inset
29059 </cell>
29060 </row>
29061 <row>
29062 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29063 \begin_inset Text
29064
29065 \begin_layout Plain Layout
29066 4123:4168
29067 \end_layout
29068
29069 \end_inset
29070 </cell>
29071 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29072 \begin_inset Text
29073
29074 \begin_layout Plain Layout
29075 mixed revision working copy
29076 \end_layout
29077
29078 \end_inset
29079 </cell>
29080 </row>
29081 <row>
29082 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29083 \begin_inset Text
29084
29085 \begin_layout Plain Layout
29086 4168M
29087 \end_layout
29088
29089 \end_inset
29090 </cell>
29091 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29092 \begin_inset Text
29093
29094 \begin_layout Plain Layout
29095 modified working copy
29096 \end_layout
29097
29098 \end_inset
29099 </cell>
29100 </row>
29101 <row>
29102 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29103 \begin_inset Text
29104
29105 \begin_layout Plain Layout
29106 4123S
29107 \end_layout
29108
29109 \end_inset
29110 </cell>
29111 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29112 \begin_inset Text
29113
29114 \begin_layout Plain Layout
29115 switched working copy
29116 \end_layout
29117
29118 \end_inset
29119 </cell>
29120 </row>
29121 <row>
29122 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29123 \begin_inset Text
29124
29125 \begin_layout Plain Layout
29126 4123P
29127 \end_layout
29128
29129 \end_inset
29130 </cell>
29131 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29132 \begin_inset Text
29133
29134 \begin_layout Plain Layout
29135 partial working copy,
29136  from a sparse checkout
29137 \end_layout
29138
29139 \end_inset
29140 </cell>
29141 </row>
29142 <row>
29143 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29144 \begin_inset Text
29145
29146 \begin_layout Plain Layout
29147 4123:4168MS
29148 \end_layout
29149
29150 \end_inset
29151 </cell>
29152 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29153 \begin_inset Text
29154
29155 \begin_layout Plain Layout
29156 mixed revision,
29157  modified,
29158  switched working copy
29159 \end_layout
29160
29161 \end_inset
29162 </cell>
29163 </row>
29164 </lyxtabular>
29165
29166 \end_inset
29167
29168
29169 \end_layout
29170
29171 \begin_layout Itemize
29172 file revision information.
29173  The result comes from parsing the output of 
29174 \begin_inset Flex Code
29175 status collapsed
29176
29177 \begin_layout Plain Layout
29178 svn
29179 \begin_inset space ~
29180 \end_inset
29181
29182 info
29183 \begin_inset space ~
29184 \end_inset
29185
29186 --xml
29187 \begin_inset space ~
29188 \end_inset
29189
29190 file.lyx
29191 \end_layout
29192
29193 \end_inset
29194
29195 .
29196  Supported flags are:
29197 \end_layout
29198
29199 \begin_deeper
29200 \begin_layout Itemize
29201 version number of the last commit (
29202 \begin_inset Flex Code
29203 status collapsed
29204
29205 \begin_layout Plain Layout
29206 vcs-revision
29207 \end_layout
29208
29209 \end_inset
29210
29211 )
29212 \end_layout
29213
29214 \begin_layout Itemize
29215 author of the last commit (
29216 \begin_inset Flex Code
29217 status collapsed
29218
29219 \begin_layout Plain Layout
29220 vcs-author
29221 \end_layout
29222
29223 \end_inset
29224
29225 )
29226 \end_layout
29227
29228 \begin_layout Itemize
29229 date of the last commit (
29230 \begin_inset Flex Code
29231 status collapsed
29232
29233 \begin_layout Plain Layout
29234 vcs-date
29235 \end_layout
29236
29237 \end_inset
29238
29239 )
29240 \end_layout
29241
29242 \begin_layout Itemize
29243 time of the last commit (
29244 \begin_inset Flex Code
29245 status collapsed
29246
29247 \begin_layout Plain Layout
29248 vcs-time
29249 \end_layout
29250
29251 \end_inset
29252
29253 )
29254 \end_layout
29255
29256 \end_deeper
29257 \begin_layout Standard
29258 You can obtain this info via InsetInfo (
29259 \family sans
29260 Insert\SpecialChar menuseparator
29261 Field\SpecialChar menuseparator
29262 Version Control Revision
29263 \family default
29264 ).
29265  The information will be available only when you have the file stored under svn managment (i.e.
29266  the 
29267 \begin_inset Flex Code
29268 status collapsed
29269
29270 \begin_layout Plain Layout
29271 .svn
29272 \end_layout
29273
29274 \end_inset
29275
29276  directory is available with your document).
29277 \end_layout
29278
29279 \end_deeper
29280 \begin_layout Itemize
29281 Another—
29282 a hacking one—
29283 possibility is to use svn keywords
29284 \begin_inset Foot
29285 status collapsed
29286
29287 \begin_layout Plain Layout
29288 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
29289 \end_layout
29290
29291 \end_inset
29292
29293 .
29294  In short – you set file keywords property (e.g.
29295  
29296 \family sans
29297 svn propset svn:keywords 'Rev' file.lyx
29298 \family default
29299 ) and then paste keyword \SpecialChar TeX
29300  code
29301 \begin_inset Foot
29302 status collapsed
29303
29304 \begin_layout Plain Layout
29305 This is an easy way how to ensure that \SpecialChar LyX
29306  won't break the line in the middle of keyword tag.
29307 \end_layout
29308
29309 \end_inset
29310
29311  tag in your document (e.g.
29312  
29313 \begin_inset Flex Code
29314 status collapsed
29315
29316 \begin_layout Plain Layout
29317 $Rev$
29318 \end_layout
29319
29320 \end_inset
29321
29322 ).
29323  This way svn client will automatically substitute revision number (e.g.
29324  
29325 \begin_inset Flex Code
29326 status collapsed
29327
29328 \begin_layout Plain Layout
29329 $Rev:
29330  59 $
29331 \end_layout
29332
29333 \end_inset
29334
29335 ) after each update and commit.
29336  There are more problems with this approach.
29337  Firstly,
29338  the '$' character is used in \SpecialChar TeX
29339  world for math equations,
29340  so any occurence of math formula 
29341 \begin_inset Formula $Rev$
29342 \end_inset
29343
29344  become 
29345 \begin_inset Formula $Rev:59$
29346 \end_inset
29347
29348  in your \SpecialChar LyX
29349  document.
29350  Similarly for other keywords like Id,
29351  Date,
29352  Author,
29353  etc.
29354  Secondly svn output is dependent on your locales,
29355  so its very easy that svn would produce some problematic strings once Date is used.
29356  Thirdly you get the whole 'Rev:
29357  59' string in your document instead of the plain number.
29358  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
29359  to support it directly.
29360 \end_layout
29361
29362 \begin_layout Subsection
29363 SVN and Windows Environment
29364 \end_layout
29365
29366 \begin_layout Quote
29367 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
29368  they would be well advised to use TortoiseSVN.
29369  —
29370 P.
29371  A.
29372  Rubin
29373 \end_layout
29374
29375 \begin_layout Subsubsection
29376 Preparation
29377 \end_layout
29378
29379 \begin_layout Standard
29380 In addition to installing \SpecialChar LyX
29381 ,
29382  and having access to a Subversion repository,
29383  the user will need to install the Subversion client program.
29384  A Windows installer for the client program is available from 
29385 \begin_inset CommandInset href
29386 LatexCommand href
29387 name "CollabNet"
29388 target "http://www.collab.net/nonav/downloads/subversion/"
29389 literal "false"
29390
29391 \end_inset
29392
29393 .
29394  The user may also want to install 
29395 \begin_inset CommandInset href
29396 LatexCommand href
29397 name "TortoiseSVN"
29398 target "http://tortoisesvn.tigris.org/"
29399 literal "false"
29400
29401 \end_inset
29402
29403 ,
29404  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
29405  Operations done outside \SpecialChar LyX
29406  will typically be more convenient using the Explorer context menu.
29407  Note that TortoiseSVN is not a replacement for the client program,
29408  which is what \SpecialChar LyX
29409  itself will use.
29410 \end_layout
29411
29412 \begin_layout Subsubsection
29413 Bringing a document under Subversion control
29414 \end_layout
29415
29416 \begin_layout Standard
29417 Before a \SpecialChar LyX
29418  document can be brought under version control in Subversion,
29419  its parent directory needs to be under version control.
29420  If the document is being added to a project already in the repository,
29421  this is accomplished by checking the project out to the directory where the new document will be placed.
29422  If the project itself is not yet under version control (for instance,
29423  if this document starts a new project),
29424  the directory must be imported into the repository.
29425  This is done outside \SpecialChar LyX
29426 .
29427  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
29428  or alternatively can be done using the command line client at a DOS prompt.
29429  The procedure for importing the project using TortoiseSVN is described below,
29430  assuming an existing repository and a new project being started in 
29431 \family typewriter
29432 C:
29433 \backslash
29434 new project
29435 \family default
29436 .
29437  For information on using the Subversion client program,
29438  run 
29439 \family typewriter
29440 svn --help 
29441 \family default
29442 in a DOS shell.
29443 \end_layout
29444
29445 \begin_layout Enumerate
29446 Locate 
29447 \family typewriter
29448 C:
29449 \backslash
29450 new project 
29451 \family default
29452 in Windows Explorer,
29453  right click it,
29454  and select 
29455 \family sans
29456 TortoiseSVN\SpecialChar menuseparator
29457 Repo-browser
29458 \family default
29459 .
29460  If necessary,
29461  adjust the URL for the repository,
29462  then click OK.
29463 \end_layout
29464
29465 \begin_layout Enumerate
29466 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
29467 \family sans
29468 Create folder
29469 \family default
29470  Supply a name for the project folder and click OK.
29471  Add a message for the log file if desired,
29472  then click OK again.
29473  The new project folder should appear in the repository.
29474  Finally,
29475  click OK again to exit the repository browser.
29476 \end_layout
29477
29478 \begin_layout Enumerate
29479 Once again right click 
29480 \family typewriter
29481 C:
29482 \backslash
29483 new project
29484 \family default
29485 ,
29486  this time selecting SVN Checkout\SpecialChar ldots
29487  Select the URL of the project folder you just created in the repository,
29488  and set the checkout directory to 
29489 \family typewriter
29490 C:
29491 \backslash
29492 new project.
29493
29494 \family default
29495  Click OK.
29496  You will be warned about a non-empty folder;
29497  click OK to proceed.
29498  You should now have a 
29499 \family typewriter
29500 .svn
29501 \family default
29502  directory under 
29503 \family typewriter
29504 C:
29505 \backslash
29506 new project.
29507 \end_layout
29508
29509 \begin_layout Enumerate
29510 Create or open your document in \SpecialChar LyX
29511  and click 
29512 \family sans
29513 File\SpecialChar menuseparator
29514 Version
29515 \begin_inset space ~
29516 \end_inset
29517
29518 Control\SpecialChar menuseparator
29519 Register.
29520  
29521 \family default
29522 Add a log message and click OK to commit the document to version control.
29523 \end_layout
29524
29525 \begin_layout Standard
29526 From this point onward,
29527  you should have full functionality in the 
29528 \family sans
29529 File\SpecialChar menuseparator
29530 Version
29531 \begin_inset space ~
29532 \end_inset
29533
29534 Control
29535 \family default
29536  menu.
29537  You also have the option of checking the document in and out,
29538  viewing its history,
29539  etc.
29540  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
29541 \end_layout
29542
29543 \begin_layout Subsubsection
29544 SSH tunnel used with SVN under Windows
29545 \end_layout
29546
29547 \begin_layout Standard
29548 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
29549  We will at least offer some hints how to setup the client side but prior knowledge about ssh and the Windows command line is needed,
29550  also be prepared for a great deal of frustration\SpecialChar ldots
29551
29552 \end_layout
29553
29554 \begin_layout Enumerate
29555 Get an svn client for windows,
29556  as described in the previous sections.
29557  When it is a fresh install run some svn command (e.g.
29558  
29559 \begin_inset Flex Code
29560 status collapsed
29561
29562 \begin_layout Plain Layout
29563 svn --version
29564 \end_layout
29565
29566 \end_inset
29567
29568 ) to create config files,
29569  which you will need to change later on.
29570 \end_layout
29571
29572 \begin_layout Enumerate
29573 Choose an ssh client for Windows.
29574  There are several possibilities,
29575  we will use the one from Putty tools
29576 \begin_inset Foot
29577 status collapsed
29578
29579 \begin_layout Plain Layout
29580 \begin_inset Flex URL
29581 status collapsed
29582
29583 \begin_layout Plain Layout
29584
29585 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
29586 \end_layout
29587
29588 \end_inset
29589
29590
29591 \end_layout
29592
29593 \end_inset
29594
29595 .
29596  You will need to set the connection up so that the client doesn't ask for any password from you.
29597  To keep things easy we will use only keys without any additional password protection etc.
29598 \end_layout
29599
29600 \begin_deeper
29601 \begin_layout Enumerate
29602 Generate keys by 
29603 \begin_inset Flex Code
29604 status collapsed
29605
29606 \begin_layout Plain Layout
29607 puttygen
29608 \end_layout
29609
29610 \end_inset
29611
29612 .
29613  Save your private .ppk key file and put the public one on the server side.
29614  If the SVN server runs on Linux,
29615  note that the format of the public key is not compatible with Linux openssh and you will need to direcly copy-paste the key from the 
29616 \begin_inset Quotes eld
29617 \end_inset
29618
29619
29620 \emph on
29621 Public key for pasting into OpenSSH authorized_keys file
29622 \emph default
29623 :
29624 \begin_inset Quotes erd
29625 \end_inset
29626
29627  edit field into the server's 
29628 \begin_inset Flex Code
29629 status collapsed
29630
29631 \begin_layout Plain Layout
29632 ~/.ssh/authorized_keys
29633 \end_layout
29634
29635 \end_inset
29636
29637  / 
29638 \begin_inset Flex Code
29639 status collapsed
29640
29641 \begin_layout Plain Layout
29642 authorized_keys2
29643 \end_layout
29644
29645 \end_inset
29646
29647  file.
29648 \end_layout
29649
29650 \begin_layout Enumerate
29651 Get the Putty's 
29652 \begin_inset Flex Code
29653 status collapsed
29654
29655 \begin_layout Plain Layout
29656 plink
29657 \end_layout
29658
29659 \end_inset
29660
29661 .
29662  In the SVN config file
29663 \begin_inset Foot
29664 status collapsed
29665
29666 \begin_layout Plain Layout
29667 Exact path depends on Windows version,
29668  usually somewhere around 
29669 \begin_inset Flex Code
29670 status collapsed
29671
29672 \begin_layout Plain Layout
29673 c:
29674 \backslash
29675 Documents and Settings
29676 \backslash
29677 user
29678 \backslash
29679 Application Data
29680 \backslash
29681 Subversion
29682 \backslash
29683 config
29684 \end_layout
29685
29686 \end_inset
29687
29688  / 
29689 \begin_inset Flex Code
29690 status collapsed
29691
29692 \begin_layout Plain Layout
29693 AppData
29694 \backslash
29695 Roaming
29696 \backslash
29697 Subversion
29698 \end_layout
29699
29700 \end_inset
29701
29702 .
29703 \end_layout
29704
29705 \end_inset
29706
29707 ,
29708  section [tunnels],
29709  setup ssh command,
29710  e.g.
29711  
29712 \begin_inset Flex Code
29713 status collapsed
29714
29715 \begin_layout Plain Layout
29716 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
29717 \end_layout
29718
29719 \end_inset
29720
29721 .
29722 \begin_inset Foot
29723 status collapsed
29724
29725 \begin_layout Plain Layout
29726 It will usually take a lot of time to get exact command right and it depends on many things.
29727  For example do not have some remote server saved as a default session in Putty etc.
29728  If things fail,
29729  try to connect via plink without SVN first.
29730 \end_layout
29731
29732 \end_inset
29733
29734
29735 \end_layout
29736
29737 \end_deeper
29738 \begin_layout Enumerate
29739 Checkout the SVN archive,
29740  e.
29741 \begin_inset space \thinspace{}
29742 \end_inset
29743
29744 g.
29745 \begin_inset Newline newline
29746 \end_inset
29747
29748
29749 \begin_inset Flex Code
29750 status collapsed
29751
29752 \begin_layout Plain Layout
29753 svn co svn+ssh://user@server/repository_path
29754 \end_layout
29755
29756 \end_inset
29757
29758 .
29759 \end_layout
29760
29761 \begin_layout Subsubsection
29762 End-of-Line Conversions
29763 \end_layout
29764
29765 \begin_layout Standard
29766 When the collaborators are mixing Linux and Windows environments,
29767  \SpecialChar LyX
29768  will use different line endings inside the .lyx files.
29769  This is not a problem as far as \SpecialChar LyX
29770  functionality is concerned,
29771  but the commit diffs will be huge and merge-conflicts prone.
29772  Fortunately SVN itself knows
29773 \begin_inset Foot
29774 status collapsed
29775
29776 \begin_layout Plain Layout
29777 \begin_inset Flex URL
29778 status collapsed
29779
29780 \begin_layout Plain Layout
29781
29782 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
29783 \end_layout
29784
29785 \end_inset
29786
29787
29788 \end_layout
29789
29790 \end_inset
29791
29792  how to deal with CR/LF problems when switching .lyx files to the 
29793 \begin_inset Flex Code
29794 status collapsed
29795
29796 \begin_layout Plain Layout
29797 native
29798 \end_layout
29799
29800 \end_inset
29801
29802  mode.
29803 \begin_inset Foot
29804 status collapsed
29805
29806 \begin_layout Plain Layout
29807 For the lazy guys:
29808  
29809 \begin_inset Flex Code
29810 status collapsed
29811
29812 \begin_layout Plain Layout
29813 svn propset svn:eol-style native FILE_NAME
29814 \end_layout
29815
29816 \end_inset
29817
29818
29819 \end_layout
29820
29821 \end_inset
29822
29823
29824 \end_layout
29825
29826 \begin_layout Subsection
29827 GIT commands in \SpecialChar LyX
29828
29829 \end_layout
29830
29831 \begin_layout Standard
29832 A minimal subset of GIT commands is now supported by \SpecialChar LyX
29833 .
29834  You can find the commands in the 
29835 \family sans
29836 File\SpecialChar menuseparator
29837 Version
29838 \begin_inset space ~
29839 \end_inset
29840
29841 Control
29842 \family default
29843  submenu.
29844  Please note that if you use password protected access to repository via ssh,
29845  you will be asked in terminal window.
29846  \SpecialChar LyX
29847  was tested against GIT 1.7/2.30.
29848 \begin_inset Foot
29849 status collapsed
29850
29851 \begin_layout Plain Layout
29852 Windows users please note that you need to ensure that git is on the path.
29853  This can be set from within \SpecialChar LyX
29854  at 
29855 \family sans
29856 Tools\SpecialChar menuseparator
29857 Preferences\SpecialChar menuseparator
29858 Paths\SpecialChar menuseparator
29859 PATH prefix
29860 \family default
29861 .
29862 \end_layout
29863
29864 \end_inset
29865
29866
29867 \end_layout
29868
29869 \begin_layout Standard
29870 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
29871  With traditional version control systems there is one central server which hosts the repository.
29872  Users commit their changes to the server,
29873  and get updates made by other users from it.
29874  With GIT,
29875  users commit to a local repository.
29876  The local repository can be synchronized with one or more remote repositories using the 
29877 \begin_inset Flex Code
29878 status collapsed
29879
29880 \begin_layout Plain Layout
29881 pull
29882 \end_layout
29883
29884 \end_inset
29885
29886  and 
29887 \begin_inset Flex Code
29888 status collapsed
29889
29890 \begin_layout Plain Layout
29891 push
29892 \end_layout
29893
29894 \end_inset
29895
29896  GIT commands.
29897  \SpecialChar LyX
29898  does not interact in any way with remote GIT repositories.
29899  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
29900  If you use remote GIT repositories you need to do the 
29901 \begin_inset Flex Code
29902 status collapsed
29903
29904 \begin_layout Plain Layout
29905 pull
29906 \end_layout
29907
29908 \end_inset
29909
29910  and 
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915 push
29916 \end_layout
29917
29918 \end_inset
29919
29920  operations with your favourite GIT client.
29921 \end_layout
29922
29923 \begin_layout Subsubsection
29924
29925 \family sans
29926 Register
29927 \end_layout
29928
29929 \begin_layout Standard
29930 If your document is not under revision control,
29931  this is the only item shown in the menu.
29932  And if it is under revision control,
29933  the 
29934 \family sans
29935 Register
29936 \family default
29937  item is not visible.
29938 \end_layout
29939
29940 \begin_layout Standard
29941 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
29942 \family typewriter
29943 .git/index
29944 \family default
29945  file exists
29946 \begin_inset Foot
29947 status open
29948
29949 \begin_layout Plain Layout
29950 For that both 
29951 \family typewriter
29952 git init
29953 \family default
29954  *and* initial repository commit (or at least 
29955 \family typewriter
29956 git add
29957 \family default
29958 ) needs to be manually done.
29959 \end_layout
29960
29961 \end_inset
29962
29963 ).
29964  This means you have to checkout the archive by yourself.
29965 \end_layout
29966
29967 \begin_layout Standard
29968 Then you are asked interactively to supply an initial description of the document.
29969  Don't forget that registered file is not yet committed.
29970 \end_layout
29971
29972 \begin_layout Standard
29973 GIT command that is run:
29974  
29975 \family typewriter
29976 git add 
29977 \begin_inset Quotes qld
29978 \end_inset
29979
29980 <file-name>
29981 \begin_inset Quotes qld
29982 \end_inset
29983
29984
29985 \end_layout
29986
29987 \begin_layout Standard
29988 Read 
29989 \family typewriter
29990 man git
29991 \family default
29992  to understand the switches.
29993 \end_layout
29994
29995 \begin_layout Subsubsection
29996
29997 \family sans
29998 Check In Changes
29999 \end_layout
30000
30001 \begin_layout Standard
30002 When you are finished editing a file,
30003  you commit your changes.
30004  When you do this,
30005  you are asked for a description of the changes.
30006  After that changes are committed.
30007 \end_layout
30008
30009 \begin_layout Standard
30010 GIT command:
30011  
30012 \family typewriter
30013 git commit -q -m"<description>" <file-name>
30014 \end_layout
30015
30016 \begin_layout Subsubsection
30017
30018 \family sans
30019 Revert To Repository Version
30020 \end_layout
30021
30022 \begin_layout Standard
30023 This will discard all changes made to the document since the last check in.
30024  You get a warning before changes are discarded.
30025 \end_layout
30026
30027 \begin_layout Standard
30028 GIT command:
30029  
30030 \family typewriter
30031 git checkout -q 
30032 \begin_inset Quotes qld
30033 \end_inset
30034
30035 <file-name>
30036 \begin_inset Quotes qld
30037 \end_inset
30038
30039
30040 \end_layout
30041
30042 \begin_layout Subsubsection
30043
30044 \family sans
30045 Rename
30046 \end_layout
30047
30048 \begin_layout Standard
30049 This will rename the current document including the version history.
30050  It requires a clean document without any changes since the last checkin.
30051  You are asked for a file name and a description of the rename operation.
30052  After that the document is renamed,
30053  both locally and in the repository.
30054  If the parent directories of the new and old file names differ,
30055  all relative paths of included files are adjusted (like in 
30056 \family sans
30057 File\SpecialChar menuseparator
30058 Save As
30059 \family default
30060 \SpecialChar ldots
30061 ).
30062  Finally,
30063  the document is reloaded using the new name.
30064 \end_layout
30065
30066 \begin_layout Labeling
30067 \labelwidthstring 00.00.0000
30068 GIT
30069 \begin_inset space ~
30070 \end_inset
30071
30072 commands:
30073  
30074 \begin_inset space ~
30075 \end_inset
30076
30077
30078 \begin_inset Newline newline
30079 \end_inset
30080
30081
30082 \begin_inset Flex Code
30083 status collapsed
30084
30085 \begin_layout Plain Layout
30086 git mv 
30087 \family typewriter
30088
30089 \begin_inset Quotes qld
30090 \end_inset
30091
30092 <file-name>
30093 \begin_inset Quotes qld
30094 \end_inset
30095
30096  
30097 \begin_inset Quotes qld
30098 \end_inset
30099
30100 <new-file-name>
30101 \begin_inset Quotes qld
30102 \end_inset
30103
30104
30105 \end_layout
30106
30107 \end_inset
30108
30109
30110 \begin_inset Newline newline
30111 \end_inset
30112
30113
30114 \begin_inset Flex Code
30115 status collapsed
30116
30117 \begin_layout Plain Layout
30118 git commit
30119 \end_layout
30120
30121 \end_inset
30122
30123
30124 \end_layout
30125
30126 \begin_layout Subsubsection
30127
30128 \family sans
30129 Show History
30130 \end_layout
30131
30132 \begin_layout Standard
30133 This shows the complete history of the GIT document.
30134  The output of 
30135 \family typewriter
30136 git log 
30137 \begin_inset Quotes qld
30138 \end_inset
30139
30140 <file-name>
30141 \begin_inset Quotes qld
30142 \end_inset
30143
30144
30145 \family default
30146  is shown in a browser.
30147 \end_layout
30148
30149 \begin_layout Subsubsection
30150 Version Info
30151 \end_layout
30152
30153 \begin_layout Standard
30154 \SpecialChar LyX
30155  supports GIT hash number of the last commit to the file,
30156  its abbreviated form,
30157  author name,
30158  date and time of last commit.
30159  All those are extracted from 
30160 \family typewriter
30161 git log -n 1 --pretty=format:%H%n%h%n%an%n%ai
30162 \family default
30163 .
30164  Tree version information is obtained via 
30165 \family typewriter
30166 git describe --abbrev --dirty --long
30167 \family default
30168 .
30169  See 
30170 \begin_inset CommandInset ref
30171 LatexCommand ref
30172 reference "subsec:VCS-Revision-Information"
30173 nolink "false"
30174
30175 \end_inset
30176
30177  for other details.
30178 \end_layout
30179
30180 \begin_layout Subsection
30181 Further tuning
30182 \end_layout
30183
30184 \begin_layout Standard
30185 With the recent addition of the 
30186 \begin_inset Flex Code
30187 status collapsed
30188
30189 \begin_layout Plain Layout
30190 vc-command
30191 \end_layout
30192
30193 \end_inset
30194
30195  function \SpecialChar LyX
30196  power users are allowed to create their own commands for revision control.
30197 \end_layout
30198
30199 \begin_layout Standard
30200 As an example you can see how two TortoiseSVN commands could be integrated directly:
30201 \end_layout
30202
30203 \begin_layout Description
30204 Commit:
30205  
30206 \begin_inset Flex Code
30207 status collapsed
30208
30209 \begin_layout Plain Layout
30210 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
30211 \end_layout
30212
30213 \end_inset
30214
30215
30216 \end_layout
30217
30218 \begin_layout Description
30219 Revert:
30220  
30221 \begin_inset Flex Code
30222 status collapsed
30223
30224 \begin_layout Plain Layout
30225 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
30226 \end_layout
30227
30228 \end_inset
30229
30230
30231 \end_layout
30232
30233 \begin_layout Subsection
30234 Version control and Document comparison
30235 \end_layout
30236
30237 \begin_layout Standard
30238 One of the typical uses of version control is to inspect the changes between revisions,
30239  usually by creating 
30240 \begin_inset Flex Code
30241 status collapsed
30242
30243 \begin_layout Plain Layout
30244 diff
30245 \end_layout
30246
30247 \end_inset
30248
30249  dumps.
30250  While this is useful for plain text files,
30251  it is much less useful in the case of \SpecialChar LyX
30252  files,
30253  which have more a complicated structure.
30254  Hence we provide binding to the Document comparison feature.
30255  There are two ways of calling this feature – either by direct call of 
30256 \begin_inset Flex Code
30257 status collapsed
30258
30259 \begin_layout Plain Layout
30260 vc-compare
30261 \end_layout
30262
30263 \end_inset
30264
30265  \SpecialChar LyX
30266  function (for details see \SpecialChar LyX
30267  functions manual) or by the toolbar icon 
30268 \begin_inset Info
30269 type  "icon"
30270 arg   "vc-compare"
30271 \end_inset
30272
30273  or the menu item 
30274 \begin_inset Info
30275 type  "menu"
30276 arg   "vc-compare"
30277 \end_inset
30278
30279 ,
30280  respectively.
30281  One can either compare two chosen revisions of the document or he can simply compare the current version of edited text with older revisions (where '
30282 \begin_inset Flex Noun
30283 status collapsed
30284
30285 \begin_layout Plain Layout
30286 0
30287 \end_layout
30288
30289 \end_inset
30290
30291 ' revisions back means comparison of the edited file with last commited revision).
30292  
30293 \end_layout
30294
30295 \begin_layout Standard
30296 This feature is supported for SVN and RCS though due to the more complicated versioning scheme of RCS there is a constraint – when addressing the revisions in dialog,
30297  numbers always point to the last number in RCS revision number,
30298  i.e.
30299  '35' in '1.2.35'.
30300  We don't currently support GIT addressing of revisions,
30301  one can just compare edited document with its revision X steps backs,
30302  where X is addressed as 
30303 \begin_inset Flex Code
30304 status collapsed
30305
30306 \begin_layout Plain Layout
30307 HEAD~X
30308 \end_layout
30309
30310 \end_inset
30311
30312 .
30313 \end_layout
30314
30315 \begin_layout Section
30316 \begin_inset CommandInset label
30317 LatexCommand label
30318 name "sec:Literate-Programming"
30319
30320 \end_inset
30321
30322 Literate Programming
30323 \end_layout
30324
30325 \begin_layout Standard
30326 Updated by 
30327 \noun on
30328 Kayvan Sylvan 
30329 \noun default
30330 (kayvan@sylvan.com)
30331 \noun on
30332 ,
30333  
30334 \noun default
30335 original documentation written by 
30336 \noun on
30337 Edmar Wienskoski Jr.
30338
30339 \noun default
30340  (edmar-w-jr@technologist.com)
30341 \end_layout
30342
30343 \begin_layout Subsection
30344 Introduction
30345 \end_layout
30346
30347 \begin_layout Standard
30348 The main purpose of this documentation is to show you how to use \SpecialChar LyX
30349  for literate programming,
30350  where it is assumed that you are familiar with this programming technique,
30351  and know what 
30352 \begin_inset Quotes eld
30353 \end_inset
30354
30355 tangling
30356 \begin_inset Quotes erd
30357 \end_inset
30358
30359  and 
30360 \begin_inset Quotes eld
30361 \end_inset
30362
30363 weaving
30364 \begin_inset Quotes erd
30365 \end_inset
30366
30367  means.
30368  If that is not the case,
30369  please follow the web links provided in the following sections.
30370  There is a lot of good documentation out there covering old development history to the latest tools tips.
30371 \end_layout
30372
30373 \begin_layout Standard
30374 It is also assumed that you are familiar with \SpecialChar LyX
30375  itself to a point that you are comfortable changing your \SpecialChar LyX
30376  preferences,
30377  and X resources file.
30378  If that is not the case please refer to other \SpecialChar LyX
30379  documentation to cover your specific needs.
30380 \end_layout
30381
30382 \begin_layout Subsection
30383 Literate Programming
30384 \end_layout
30385
30386 \begin_layout Standard
30387 From the Literate Programming FAQ:
30388  
30389 \end_layout
30390
30391 \begin_layout Quotation
30392 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
30393  In fact,
30394  literate programs should be enjoyable reading,
30395  even inviting!
30396  (Sorry Bob,
30397  I couldn't resist!) In general,
30398  literate programs combine source and documentation in a single file.
30399  Literate programming tools then parse the file to produce either readable documentation or compilable source.
30400  The WEB style of literate programming was created by D.
30401 \begin_inset space \thinspace{}
30402 \end_inset
30403
30404 E.
30405  Knuth during the development of his \SpecialChar TeX
30406  typesetting software.
30407  
30408 \end_layout
30409
30410 \begin_layout Standard
30411 Another excerpt says:
30412 \end_layout
30413
30414 \begin_layout Quotation
30415
30416 \emph on
30417 How is literate programming different from verbose commenting?
30418 \end_layout
30419
30420 \begin_layout Quotation
30421 There are three distinguishing characteristics.
30422  In order of importance,
30423  they are:
30424  
30425 \end_layout
30426
30427 \begin_deeper
30428 \begin_layout Itemize
30429 flexible order of elaboration 
30430 \end_layout
30431
30432 \begin_layout Itemize
30433 automatic support for browsing 
30434 \end_layout
30435
30436 \begin_layout Itemize
30437 typeset documentation,
30438  especially diagrams and mathematics 
30439 \end_layout
30440
30441 \end_deeper
30442 \begin_layout Standard
30443 Now that I sparked your curiosity,
30444  take a look in the references.
30445 \end_layout
30446
30447 \begin_layout Subsubsection
30448 References
30449 \end_layout
30450
30451 \begin_layout Standard
30452 The complete Literate Programming FAQ can be found at:
30453 \end_layout
30454
30455 \begin_layout Quote
30456 Literate Programming FAQ 
30457 \begin_inset Flex URL
30458 status open
30459
30460 \begin_layout Plain Layout
30461
30462 http://www.literateprogramming.com/lpfaq.pdf
30463 \end_layout
30464
30465 \end_inset
30466
30467
30468 \end_layout
30469
30470 \begin_layout Standard
30471 The FAQ lists 23 (twenty three!) different literate programming tools.
30472  Where some are specialized or 
30473 \begin_inset Quotes eld
30474 \end_inset
30475
30476 tailored
30477 \begin_inset Quotes erd
30478 \end_inset
30479
30480  for particular programming languages,
30481  while other have general scope.
30482  I selected 
30483 \noun on
30484 Noweb
30485 \noun default
30486  for my own use for several reasons:
30487 \end_layout
30488
30489 \begin_layout Itemize
30490 It can generate the documentation either in \SpecialChar LaTeX
30491  or HTML.
30492 \end_layout
30493
30494 \begin_layout Itemize
30495 It has a open architecture,
30496  i.
30497 \begin_inset space \thinspace{}
30498 \end_inset
30499
30500 e.
30501 \begin_inset space \space{}
30502 \end_inset
30503
30504 it is easy to plug in new filters
30505 \begin_inset Foot
30506 status collapsed
30507
30508 \begin_layout Plain Layout
30509
30510 \emph on
30511 Filters 
30512 \emph default
30513 are programs that read a given data stream and output a manipulated data stream.
30514  That way,
30515  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
30516  code.
30517 \end_layout
30518
30519 \end_inset
30520
30521  and to perform special processing that you may need.
30522  
30523 \end_layout
30524
30525 \begin_layout Itemize
30526 There is a good selection of filters available already (the HTML is one of them).
30527 \end_layout
30528
30529 \begin_layout Itemize
30530 It is free.
30531 \end_layout
30532
30533 \begin_layout Standard
30534 The Noweb web page can be found at:
30535  
30536 \end_layout
30537
30538 \begin_layout Quote
30539 Noweb home page 
30540 \begin_inset Flex URL
30541 status collapsed
30542
30543 \begin_layout Plain Layout
30544
30545 https://www.cs.tufts.edu/~nr/noweb/
30546 \end_layout
30547
30548 \end_inset
30549
30550
30551 \end_layout
30552
30553 \begin_layout Standard
30554 Starting from there you can reach many other interesting links and even some literate program examples.
30555 \end_layout
30556
30557 \begin_layout Subsection
30558 \SpecialChar LyX
30559  and Literate Programming with Noweb
30560 \end_layout
30561
30562 \begin_layout Standard
30563 The \SpecialChar LyX
30564  support for Literate Programming is provided by using the generic \SpecialChar LyX
30565  converters mechanism.
30566  This support is provided in a 
30567 \begin_inset Quotes eld
30568 \end_inset
30569
30570 Noweb independent
30571 \begin_inset Quotes erd
30572 \end_inset
30573
30574  way,
30575  i.
30576 \begin_inset space \thinspace{}
30577 \end_inset
30578
30579 e.
30580 \begin_inset space \space{}
30581 \end_inset
30582
30583 you will be able to use this new \SpecialChar LyX
30584  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
30585  preferences.
30586 \end_layout
30587
30588 \begin_layout Subsubsection
30589 Generating documents and code (weaving and tangling)
30590 \end_layout
30591
30592 \begin_layout Paragraph
30593 Using the noweb module
30594 \end_layout
30595
30596 \begin_layout Standard
30597 If you have installed Noweb and \SpecialChar LyX
30598  successfully,
30599  whenever you open a new document,
30600  after you have chosen its document class,
30601  use the 
30602 \family sans
30603 Document\SpecialChar menuseparator
30604 Settings
30605 \family default
30606  menu to add the 
30607 \begin_inset Quotes eld
30608 \end_inset
30609
30610 noweb
30611 \begin_inset Quotes erd
30612 \end_inset
30613
30614  module.
30615  If Noweb is correctly installed,
30616  when you click on the 
30617 \begin_inset Quotes eld
30618 \end_inset
30619
30620 Modules
30621 \begin_inset Quotes erd
30622 \end_inset
30623
30624  link,
30625  you will see the 
30626 \begin_inset Quotes eld
30627 \end_inset
30628
30629 noweb
30630 \begin_inset Quotes erd
30631 \end_inset
30632
30633  module in the available list and you can add it to your document.
30634 \end_layout
30635
30636 \begin_layout Paragraph
30637 Typing code in
30638 \end_layout
30639
30640 \begin_layout Standard
30641 \SpecialChar LyX
30642  enables you to write code with a custom inset named 
30643 \begin_inset Flex Noun
30644 status collapsed
30645
30646 \begin_layout Plain Layout
30647 Chunk
30648 \end_layout
30649
30650 \end_inset
30651
30652 .
30653  Noweb delimits chunks like this:
30654 \end_layout
30655
30656 \begin_layout LyX-Code
30657 <<My code>>=
30658 \end_layout
30659
30660 \begin_layout LyX-Code
30661   code
30662 \end_layout
30663
30664 \begin_layout LyX-Code
30665   more code
30666 \end_layout
30667
30668 \begin_layout LyX-Code
30669   even more code
30670 \end_layout
30671
30672 \begin_layout LyX-Code
30673   @
30674 \end_layout
30675
30676 \begin_layout Standard
30677 The problem is that whatever is written in between the << and the 
30678 \family typewriter
30679 @
30680 \family default
30681  must be taken literally,
30682  i.
30683 \begin_inset space \thinspace{}
30684 \end_inset
30685
30686 e.
30687 \begin_inset space \space{}
30688 \end_inset
30689
30690 \SpecialChar LyX
30691  should be prevented from making any special interpretation of what has been written.
30692  This is also handled by 
30693 \begin_inset Flex Noun
30694 status collapsed
30695
30696 \begin_layout Plain Layout
30697 Chunk
30698 \end_layout
30699
30700 \end_inset
30701
30702 ,
30703  that works like a normal text inset but has a free spacing capability.
30704 \end_layout
30705
30706 \begin_layout Standard
30707 As a special note,
30708  you can also use the 
30709 \begin_inset Quotes eld
30710 \end_inset
30711
30712 %def
30713 \begin_inset Quotes erd
30714 \end_inset
30715
30716  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
30717 \end_layout
30718
30719 \begin_layout LyX-Code
30720 <<My chunk>>=
30721 \end_layout
30722
30723 \begin_layout LyX-Code
30724 def some_function(args):
30725 \end_layout
30726
30727 \begin_layout LyX-Code
30728    "This is the doc string for this function."
30729 \end_layout
30730
30731 \begin_layout LyX-Code
30732    print "My args:
30733  ",
30734  args
30735 \end_layout
30736
30737 \begin_layout LyX-Code
30738 @ %def some_function
30739 \end_layout
30740
30741 \begin_layout Standard
30742 For an example of this usage and the resulting cross-reference output,
30743  look at the Literate python program in 
30744 \emph on
30745 LIBDIR/examples/listerrors.lyx
30746 \emph default
30747  which should make this all clear.
30748 \end_layout
30749
30750 \begin_layout Paragraph
30751 Generating the documentation
30752 \end_layout
30753
30754 \begin_layout Standard
30755 At this point you already have a new document file with a proper document class,
30756  and with some code and text on it.
30757  How do I print it?
30758  The answer is simple,
30759  you select 
30760 \family sans
30761 View\SpecialChar menuseparator
30762 DVI,
30763
30764 \family default
30765  etc.
30766  Just like you would do for a plain document.
30767  No special procedure is required.
30768 \end_layout
30769
30770 \begin_layout Standard
30771 To help orientate you,
30772  I will now explain what happens inside \SpecialChar LyX
30773 :
30774 \end_layout
30775
30776 \begin_layout Enumerate
30777 When the 
30778 \family sans
30779 Update\SpecialChar menuseparator
30780 DVI
30781 \family default
30782  menu option is chosen,
30783  a \SpecialChar LaTeX
30784  file is generated.
30785  
30786 \end_layout
30787
30788 \begin_deeper
30789 \begin_layout Standard
30790 If the document is of any literate class the generated file will be named with an extension name defined by the 
30791 \begin_inset Quotes eld
30792 \end_inset
30793
30794 literate
30795 \begin_inset Quotes erd
30796 \end_inset
30797
30798  format (defined in the Preferences panel),
30799  otherwise the file will have the usual 
30800 \family typewriter
30801 .tex
30802 \family default
30803  extension.
30804 \end_layout
30805
30806 \end_deeper
30807 \begin_layout Enumerate
30808 Note that the only difference so far is in the name of the file,
30809  no special processing is required by \SpecialChar LyX
30810 .
30811  Given that you formatted the code using the 
30812 \begin_inset Flex Noun
30813 status collapsed
30814
30815 \begin_layout Plain Layout
30816 Chunk
30817 \end_layout
30818
30819 \end_inset
30820
30821  inset that,
30822  by itself,
30823  takes care of the business.
30824 \end_layout
30825
30826 \begin_layout Enumerate
30827 If the document is of any literate class \SpecialChar LyX
30828  will then use the internal \SpecialChar LyX
30829  to Noweb converter,
30830  followed by the Noweb to \SpecialChar LaTeX
30831  converter
30832 \begin_inset Foot
30833 status collapsed
30834
30835 \begin_layout Plain Layout
30836 The converters are defined in the 
30837 \family sans
30838 Tools\SpecialChar menuseparator
30839 Preferences
30840 \family default
30841  panel,
30842  under the 
30843 \begin_inset Quotes eld
30844 \end_inset
30845
30846 Conversion
30847 \begin_inset Quotes erd
30848 \end_inset
30849
30850  tab.
30851  See section 
30852 \emph on
30853 Converters
30854 \emph default
30855  of the 
30856 \emph on
30857 Customization
30858 \emph default
30859  manual for general information about converters.
30860 \end_layout
30861
30862 \end_inset
30863
30864  to generate the \SpecialChar LaTeX
30865  file.
30866 \end_layout
30867
30868 \begin_deeper
30869 \begin_layout Standard
30870 Otherwise it will just skip this step.
30871 \end_layout
30872
30873 \end_deeper
30874 \begin_layout Enumerate
30875 Finally,
30876  \SpecialChar LaTeX
30877  is invoked and the regular post processing continues as in a plain document.
30878 \end_layout
30879
30880 \begin_layout Standard
30881 Independence from a particular 
30882 \begin_inset Quotes eld
30883 \end_inset
30884
30885 literate tool
30886 \begin_inset Quotes erd
30887 \end_inset
30888
30889  is easily achieved by changing the commands that are run by the various converters.
30890 \end_layout
30891
30892 \begin_layout Paragraph
30893 Generating the code
30894 \end_layout
30895
30896 \begin_layout Standard
30897 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
30898  a \SpecialChar LaTeX
30899  file is generated just like step 1 above.
30900  Next,
30901  \SpecialChar LyX
30902  invokes the 
30903 \family typewriter
30904 Noweb->Program
30905 \family default
30906  converter.
30907  This converter needs to be defined by the user and is not installed by default,
30908  though the Program format is.
30909  This converter (like any other converter) will have two parts:
30910 \end_layout
30911
30912 \begin_layout Enumerate
30913 The converter program itself.
30914  This program performs the conversion from the one format to the other (in this case,
30915  from the Noweb format to the Program pseudo-format).
30916 \end_layout
30917
30918 \begin_layout Enumerate
30919 The error log parser.
30920  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
30921  understands.
30922  This makes it possible for \SpecialChar LyX
30923  to place error boxes in the right places in the file buffer.
30924 \end_layout
30925
30926 \begin_layout Standard
30927 The first part,
30928  the 
30929 \begin_inset Quotes eld
30930 \end_inset
30931
30932 Converter
30933 \begin_inset Quotes erd
30934 \end_inset
30935
30936  setting,
30937  should be set to
30938 \end_layout
30939
30940 \begin_layout LyX-Code
30941
30942 \family typewriter
30943 build-script $$i
30944 \family default
30945  $$r
30946 \end_layout
30947
30948 \begin_layout Standard
30949 This basically means that \SpecialChar LyX
30950  will call 
30951 \begin_inset Quotes eld
30952 \end_inset
30953
30954 build-script
30955 \begin_inset Quotes erd
30956 \end_inset
30957
30958  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
30959  temp directory) and the directory path of the original \SpecialChar LyX
30960  file.
30961  
30962 \end_layout
30963
30964 \begin_layout Standard
30965 This is an implementation of 
30966 \begin_inset Quotes eld
30967 \end_inset
30968
30969 build-script
30970 \begin_inset Quotes erd
30971 \end_inset
30972
30973  that you can place in a directory on your path:
30974 \end_layout
30975
30976 \begin_layout LyX-Code
30977
30978 \family sans
30979 #!/bin/sh
30980 \end_layout
30981
30982 \begin_layout LyX-Code
30983
30984 \family sans
30985 #
30986 \end_layout
30987
30988 \begin_layout LyX-Code
30989
30990 \family sans
30991 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
30992 \end_layout
30993
30994 \begin_layout Standard
30995 The next part of the converter setting is the 
30996 \begin_inset Quotes eld
30997 \end_inset
30998
30999 Flags
31000 \begin_inset Quotes erd
31001 \end_inset
31002
31003  which is to be set to
31004 \end_layout
31005
31006 \begin_layout LyX-Code
31007
31008 \family typewriter
31009 parselog=$$s/scripts/listerrors
31010 \end_layout
31011
31012 \begin_layout Standard
31013 This will run any errors that are generated by the 
31014 \begin_inset Quotes eld
31015 \end_inset
31016
31017 build-script
31018 \begin_inset Quotes erd
31019 \end_inset
31020
31021  process through the 
31022 \begin_inset Quotes eld
31023 \end_inset
31024
31025 listerrors
31026 \begin_inset Quotes erd
31027 \end_inset
31028
31029  program.
31030 \end_layout
31031
31032 \begin_layout Standard
31033 The build will normally take place in \SpecialChar LyX
31034 's temporary directory,
31035  so the files produced by the conversion will be in that directory.
31036  \SpecialChar LyX
31037  will copy out what it regards as the `main' file,
31038  but the 
31039 \family typewriter
31040 Noweb->Program
31041 \family default
31042  conversion may produce several files,
31043  and so most of these would then be deleted when \SpecialChar LyX
31044  was closed.
31045  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that the build-script chunk can place the generated files in that location.
31046 \end_layout
31047
31048 \begin_layout Paragraph
31049 Build instructions in the document
31050 \end_layout
31051
31052 \begin_layout Standard
31053 The last piece of the integration between \SpecialChar LyX
31054  and noweb is the 
31055 \begin_inset Quotes eld
31056 \end_inset
31057
31058 build-script
31059 \begin_inset Quotes erd
31060 \end_inset
31061
31062  chunk.
31063  Generally,
31064  the instructions for building your program should be embedded in a chunk of its own.
31065  The noweb-specific 
31066 \begin_inset Quotes eld
31067 \end_inset
31068
31069 build-script
31070 \begin_inset Quotes erd
31071 \end_inset
31072
31073  above uses the notangle command to look for this chunk (called 
31074 \begin_inset Quotes eld
31075 \end_inset
31076
31077 build-script
31078 \begin_inset Quotes erd
31079 \end_inset
31080
31081 ) and runs its contents through 
31082 \begin_inset Quotes eld
31083 \end_inset
31084
31085 sh
31086 \begin_inset Quotes erd
31087 \end_inset
31088
31089 .
31090 \end_layout
31091
31092 \begin_layout Standard
31093 Typically,
31094  such a chunk would look something like this:
31095 \end_layout
31096
31097 \begin_layout LyX-Code
31098 <<build-script>>=
31099 \end_layout
31100
31101 \begin_layout LyX-Code
31102 #!/bin/sh
31103 \begin_inset Newline newline
31104 \end_inset
31105
31106 if [ -z "${NOWEB_SOURCE}" ]
31107 \begin_inset Newline newline
31108 \end_inset
31109
31110 then
31111 \end_layout
31112
31113 \begin_layout LyX-Code
31114 NOWEB_SOURCE=myfile.nw
31115 \begin_inset Newline newline
31116 \end_inset
31117
31118 fi
31119 \begin_inset Newline newline
31120 \end_inset
31121
31122 [...
31123  code to extract files ...
31124  use NOWEB_OUTPUT_DIR here ...]
31125 \begin_inset Newline newline
31126 \end_inset
31127
31128 [...
31129  code to compile files ...]
31130 \begin_inset Newline newline
31131 \end_inset
31132
31133 @
31134 \end_layout
31135
31136 \begin_layout Standard
31137 Look in 
31138 \family sans
31139 File\SpecialChar menuseparator
31140 Open Example\SpecialChar menuseparator
31141 Modules\SpecialChar menuseparator
31142 Noweb Listerrors
31143 \family default
31144  or in 
31145 \family sans
31146 File\SpecialChar menuseparator
31147 Open Example\SpecialChar menuseparator
31148 Modules\SpecialChar menuseparator
31149 Noweb2LyX
31150 \family default
31151  which implement versions of the 
31152 \begin_inset Quotes eld
31153 \end_inset
31154
31155 listerrors
31156 \begin_inset Quotes erd
31157 \end_inset
31158
31159  program for some illustrations of how all of these pieces go together 
31160 \emph on
31161 .
31162
31163 \emph default
31164  Interestingly,
31165  these files show off the language independency of the \SpecialChar LyX
31166  literate programming support since they are written in Python and Perl respectively.
31167 \end_layout
31168
31169 \begin_layout Subsubsection
31170 Configuring \SpecialChar LyX
31171
31172 \end_layout
31173
31174 \begin_layout Standard
31175 All the Literate Programming support is configured by the 
31176 \family sans
31177 Tools\SpecialChar menuseparator
31178 Preferences
31179 \family default
31180  panel in the 
31181 \begin_inset Quotes eld
31182 \end_inset
31183
31184 File Handling
31185 \begin_inset Quotes erd
31186 \end_inset
31187
31188  tab.
31189  The important parts are:
31190 \end_layout
31191
31192 \begin_layout Description
31193 the
31194 \begin_inset space ~
31195 \end_inset
31196
31197
31198 \begin_inset Quotes eld
31199 \end_inset
31200
31201 NoWeb
31202 \begin_inset Quotes erd
31203 \end_inset
31204
31205
31206 \begin_inset space ~
31207 \end_inset
31208
31209 format Set up via the File Formats tab,
31210  this is where the Noweb-specific pieces are set up.
31211  The 
31212 \family sans
31213 GUI Name
31214 \family default
31215  is set to 
31216 \family typewriter
31217 NoWeb
31218 \family default
31219 ,
31220  the file extension is set to 
31221 \family typewriter
31222 .nw
31223 \family default
31224 .
31225  This tells \SpecialChar LyX
31226  to create a file with a 
31227 \family typewriter
31228 .nw
31229 \family default
31230  extension in the first step of the conversion process.
31231 \end_layout
31232
31233 \begin_layout Description
31234 the
31235 \begin_inset space ~
31236 \end_inset
31237
31238
31239 \family sans
31240 Program
31241 \family default
31242
31243 \begin_inset space ~
31244 \end_inset
31245
31246 format This is an empty format whose sole purpose is to be the endpoint of a conversion (which then allows us to set up a converter for it).
31247 \end_layout
31248
31249 \begin_layout Description
31250
31251 \family sans
31252 NoWeb
31253 \family default
31254 ->
31255 \family sans
31256 \SpecialChar LaTeX
31257
31258 \family default
31259  This converter performs the 
31260 \begin_inset Quotes eld
31261 \end_inset
31262
31263 weaving
31264 \begin_inset Quotes erd
31265 \end_inset
31266
31267  of the literate document.
31268  For Noweb,
31269  it is set to 
31270 \begin_inset Quotes eld
31271 \end_inset
31272
31273
31274 \family typewriter
31275 noweave -delay -index $$i > $$o
31276 \family default
31277
31278 \begin_inset Quotes erd
31279 \end_inset
31280
31281
31282 \end_layout
31283
31284 \begin_layout Description
31285
31286 \family sans
31287 NoWeb
31288 \family default
31289 ->
31290 \family sans
31291 Program
31292 \family default
31293  This performs the 
31294 \begin_inset Quotes eld
31295 \end_inset
31296
31297 tangling step
31298 \begin_inset Quotes erd
31299 \end_inset
31300
31301 .
31302  As stated above,
31303  the Converter is set to 
31304 \begin_inset Quotes eld
31305 \end_inset
31306
31307
31308 \family typewriter
31309 build-script $$i
31310 \family default
31311  $$r
31312 \begin_inset Quotes erd
31313 \end_inset
31314
31315 ,
31316  with Flags set to
31317 \begin_inset Newline newline
31318 \end_inset
31319
31320
31321 \begin_inset Quotes eld
31322 \end_inset
31323
31324
31325 \family typewriter
31326 parselog=$$s/scripts/listerrors
31327 \family default
31328
31329 \begin_inset Quotes erd
31330 \end_inset
31331
31332 .
31333 \end_layout
31334
31335 \begin_layout Subsubsection
31336 Debug extensions
31337 \end_layout
31338
31339 \begin_layout Standard
31340 There is also a new function implemented in the \SpecialChar LyX
31341  server,
31342  the 
31343 \begin_inset Quotes eld
31344 \end_inset
31345
31346 server-goto-file-row" function,
31347  to be used with ddd/gdb or other debugger.
31348  
31349 \end_layout
31350
31351 \begin_layout Standard
31352 When debugging code with ddd/gdb,
31353  it is possible to invoke a text editor at the current execution position with a single key stroke.
31354  The default ddd configuration for that is shift-ctrl-V.
31355  It happens that you can define the editor command line invocation in ddd by accessing the 
31356 \family sans
31357 Edit\SpecialChar menuseparator
31358 Preferences\SpecialChar menuseparator
31359 Helpers
31360 \family default
31361  dialog and changing the "Edit Sources" entry.
31362 \end_layout
31363
31364 \begin_layout Standard
31365 I take advantage of the newly created \SpecialChar LyX
31366  server function and this ddd feature,
31367  and set 
31368 \begin_inset Quotes eld
31369 \end_inset
31370
31371 Edit Sources
31372 \begin_inset Quotes erd
31373 \end_inset
31374
31375  to:
31376 \end_layout
31377
31378 \begin_layout LyX-Code
31379 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
31380 \end_layout
31381
31382 \begin_layout Standard
31383 With this,
31384  whenever you are using ddd and find a point in the program that you want to edit,
31385  you just press shift-ctrl-V (in the ddd window),
31386  and ddd will forward this information to \SpecialChar LyX
31387  through the \SpecialChar LyX
31388  server and then the \SpecialChar LyX
31389  window will show the same file with the cursor at the same position ddd was pointing to.
31390  No more guessing or long scrolling to locate a point in the program back from debugging !
31391 \end_layout
31392
31393 \begin_layout Standard
31394 Note however that you must enable the \SpecialChar LyX
31395  server to get this feature working (it is disabled by default).
31396  Sec.
31397 \begin_inset space ~
31398 \end_inset
31399
31400
31401 \begin_inset CommandInset ref
31402 LatexCommand ref
31403 reference "sec:Starting-the-Server"
31404 nolink "false"
31405
31406 \end_inset
31407
31408  explains how to do that.
31409 \end_layout
31410
31411 \begin_layout Subsubsection
31412 Toolbar extensions
31413 \end_layout
31414
31415 \begin_layout Standard
31416 There are six new buttons that can be added to your \SpecialChar LyX
31417  toolbar.
31418  Four of these buttons are short cuts to layout styles:
31419  
31420 \family sans
31421 Standard
31422 \family default
31423 ,
31424  
31425 \family sans
31426 Section
31427 \family default
31428 ,
31429  
31430 \family sans
31431 \SpecialChar LaTeX
31432
31433 \family default
31434 ,
31435  and 
31436 \family sans
31437 \SpecialChar LyX
31438 -Code
31439 \family default
31440 ,
31441  one for the custom inset 
31442 \family sans
31443 Chunk
31444 \family default
31445 .
31446  The last one is a short cut to the 
31447 \begin_inset Quotes eld
31448 \end_inset
31449
31450 Build Program
31451 \begin_inset Quotes erd
31452 \end_inset
31453
31454  File menu entry.
31455  
31456 \end_layout
31457
31458 \begin_layout Standard
31459 \SpecialChar LyX
31460  has a range of buttons that are available for tool bar customization.
31461  In my toolbar I like to combine the six short cuts above with two more:
31462  One for 
31463 \family sans
31464 Document
31465 \family default
31466 \SpecialChar menuseparator
31467
31468 \family sans
31469 Update
31470 \family default
31471 \SpecialChar menuseparator
31472
31473 \family sans
31474 DVI
31475 \family default
31476  and the other for 
31477 \family sans
31478 Document\SpecialChar menuseparator
31479 View\SpecialChar menuseparator
31480 DVI
31481 \family default
31482  File menu entries.
31483  Here is how it looks like:
31484 \end_layout
31485
31486 \begin_layout LyX-Code
31487 Toolbar
31488 \end_layout
31489
31490 \begin_layout LyX-Code
31491   Layouts
31492 \end_layout
31493
31494 \begin_layout LyX-Code
31495   Icon "layout Standard"
31496 \end_layout
31497
31498 \begin_layout LyX-Code
31499   Icon "layout Section"
31500 \end_layout
31501
31502 \begin_layout LyX-Code
31503   Icon "layout \SpecialChar LaTeX
31504 "
31505 \end_layout
31506
31507 \begin_layout LyX-Code
31508   Icon "layout \SpecialChar LyX
31509 -Code"
31510 \end_layout
31511
31512 \begin_layout LyX-Code
31513   Icon "flex.insert Chunk"
31514 \end_layout
31515
31516 \begin_layout LyX-Code
31517   Separator
31518 \end_layout
31519
31520 \begin_layout LyX-Code
31521   Icon "buffer-view"
31522 \end_layout
31523
31524 \begin_layout LyX-Code
31525   Icon "buffer-typeset"
31526 \end_layout
31527
31528 \begin_layout LyX-Code
31529   Icon "build-program"
31530 \end_layout
31531
31532 \begin_layout LyX-Code
31533   Separator
31534 \end_layout
31535
31536 \begin_layout LyX-Code
31537 .
31538 \end_layout
31539
31540 \begin_layout LyX-Code
31541 .
31542 \end_layout
31543
31544 \begin_layout LyX-Code
31545 .
31546 \end_layout
31547
31548 \begin_layout LyX-Code
31549 End
31550 \end_layout
31551
31552 \begin_layout Subsubsection
31553 Colors customization
31554 \end_layout
31555
31556 \begin_layout Standard
31557 There are a number of colors in \SpecialChar LyX
31558  that can be customized in 
31559 \family sans
31560 Preferences
31561 \family default
31562 .
31563  One of the things that bothers people is the \SpecialChar LaTeX
31564  font color.
31565  The default color is red,
31566  since the chunks uses \SpecialChar LaTeX
31567  font,
31568  and there is a lot of chunks in literate documents,
31569  you may get tired of seeing everything in red.
31570  You can change it by going to the tabs 
31571 \family sans
31572 Look&Feel
31573 \family default
31574 ,
31575  
31576 \family sans
31577 Colors.
31578 \end_layout
31579
31580 \begin_layout Standard
31581 The next thing is the visible presence of the newline character in the screen.
31582  You can choose the color of this particular character and make it blend in the background.
31583  I recommend you choosing a color that is close to the background but not equal,
31584  that way you still can see it is there,
31585  but it is not bothering you anymore.
31586 \end_layout
31587
31588 \begin_layout Subsection
31589 \SpecialChar LyX
31590  and knitr/Sweave
31591 \end_layout
31592
31593 \begin_layout Standard
31594 Support for 
31595 \family sans
31596 knitr
31597 \family default
31598  and 
31599 \family sans
31600 Sweave
31601 \family default
31602  is documented in 
31603 \family sans
31604 Help\SpecialChar menuseparator
31605 Specific Manuals\SpecialChar menuseparator
31606 Knitr
31607 \family default
31608  and 
31609 \family sans
31610 File\SpecialChar menuseparator
31611 Open Example\SpecialChar menuseparator
31612 Modules\SpecialChar menuseparator
31613 Rnw (knitr)
31614 \family default
31615  and in 
31616 \family sans
31617 Help\SpecialChar menuseparator
31618 Specific Manuals\SpecialChar menuseparator
31619 Sweave
31620 \family default
31621  and 
31622 \family sans
31623 File\SpecialChar menuseparator
31624 Open Example\SpecialChar menuseparator
31625 Modules\SpecialChar menuseparator
31626 Sweave
31627 \family default
31628 .
31629 \end_layout
31630
31631 \begin_layout Standard
31632 \begin_inset CommandInset index_print
31633 LatexCommand printindex
31634 type "idx"
31635 name "Index"
31636
31637 \end_inset
31638
31639
31640 \end_layout
31641
31642 \end_body
31643 \end_document