]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Typo in doc
[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 \end_layout
3053
3054 \begin_layout Standard
3055 The document classes 
3056 \family sans
3057 article
3058 \begin_inset space \thinspace{}
3059 \end_inset
3060
3061 (Hebrew)
3062 \family default
3063  and 
3064 \family sans
3065 letter
3066 \begin_inset space \thinspace{}
3067 \end_inset
3068
3069 (Hebrew)
3070 \family default
3071  use the 
3072 \family typewriter
3073 article.cl
3074 \family sans
3075 s
3076 \family default
3077  and 
3078 \family typewriter
3079 letter.cls
3080 \family default
3081  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3082 .
3083 \end_layout
3084
3085 \begin_layout Subsection
3086 \begin_inset CommandInset label
3087 LatexCommand label
3088 name "subsec:Japanese"
3089
3090 \end_inset
3091
3092 Japanese (Standard Classes)
3093 \end_layout
3094
3095 \begin_layout Standard
3096 \SpecialChar LyX
3097  included a collection of several bundles that aim to facilitate typesetting Japanese documents.
3098  The bundles have been developed at different times,
3099  they thus support different typesetting engines and features.
3100  This collection is the oldest one.
3101  It adjusts the \SpecialChar LaTeX
3102  standard classes to requirements of Japanese typesetting,
3103  for horizontal and vertical writing.
3104  The collection includes 
3105 \family sans
3106 Japanese Article
3107 \begin_inset space \thinspace{}
3108 \end_inset
3109
3110 (Standard Class)
3111 \family default
3112 ,
3113  
3114 \family sans
3115 Japanese Article
3116 \begin_inset space \thinspace{}
3117 \end_inset
3118
3119 (Standard Class,
3120  vertical Writing)
3121 \family default
3122 ,
3123  
3124 \family sans
3125 Japanese Book
3126 \begin_inset space \thinspace{}
3127 \end_inset
3128
3129 (Standard Class)
3130 \family default
3131 ,
3132  
3133 \family sans
3134 Japanese Book
3135 \begin_inset space \thinspace{}
3136 \end_inset
3137
3138 (Standard Class,
3139  vertical Writing)
3140 \family default
3141 ,
3142  
3143 \family sans
3144 Japanese Report
3145 \begin_inset space \thinspace{}
3146 \end_inset
3147
3148 (Japanese Standard Class)
3149 \family default
3150 ,
3151  and
3152 \family sans
3153  Japanese Report
3154 \begin_inset space \thinspace{}
3155 \end_inset
3156
3157 (Standard Class,
3158  vertical Writing)
3159 \family default
3160 ,
3161  which all work with 
3162 \begin_inset Quotes eld
3163 \end_inset
3164
3165 classic
3166 \begin_inset Quotes erd
3167 \end_inset
3168
3169  engines tailored for Japanese,
3170  p\SpecialChar LaTeX
3171  and up\SpecialChar LaTeX
3172 .
3173 \end_layout
3174
3175 \begin_layout Standard
3176 For the use with the more modern Lua\SpecialChar LaTeX
3177  typesetting engine,
3178  the collection also includes dedicated classes 
3179 \family sans
3180 Japanese Article
3181 \begin_inset space \thinspace{}
3182 \end_inset
3183
3184 (Standard Class for LuaTeX),
3185  Japanese Article
3186 \begin_inset space \thinspace{}
3187 \end_inset
3188
3189 (Standard Class for LuaTeX,
3190  vertical Writing),
3191  Japanese Book
3192 \begin_inset space \thinspace{}
3193 \end_inset
3194
3195 (Standard Class for LuaTeX)
3196 \family default
3197 ,
3198  
3199 \family sans
3200 Japanese Book
3201 \begin_inset space \thinspace{}
3202 \end_inset
3203
3204 (Standard Class for LuaTeX,
3205  vertical Writing)
3206 \family default
3207 ,
3208  
3209 \family sans
3210 Japanese Report
3211 \begin_inset space \thinspace{}
3212 \end_inset
3213
3214 (Japanese Standard Class for LuaTeX)
3215 \family default
3216 ,
3217  and 
3218 \family sans
3219 Japanese Report
3220 \begin_inset space \thinspace{}
3221 \end_inset
3222
3223 (Japanese Standard Class for LuaTeX,
3224  vertical Writing)
3225 \family default
3226 ,
3227  provided by the 
3228 \family sans
3229 luatexja
3230 \family default
3231  \SpecialChar LaTeX
3232  package.
3233 \end_layout
3234
3235 \begin_layout Standard
3236 Templates for the Lua\SpecialChar LaTeX
3237  classes can be found in 
3238 \family sans
3239 File\SpecialChar menuseparator
3240 New From Template
3241 \family default
3242  in the respective category (
3243 \family sans
3244 Articles
3245 \family default
3246 ,
3247  
3248 \family sans
3249 Books
3250 \family default
3251 ,
3252  or 
3253 \family sans
3254 Reports
3255 \family default
3256 ).
3257 \end_layout
3258
3259 \begin_layout Subsection
3260 \begin_inset CommandInset label
3261 LatexCommand label
3262 name "subsec:Japanese-JS"
3263
3264 \end_inset
3265
3266 Japanese (JS Bundle)
3267 \end_layout
3268
3269 \begin_layout Standard
3270 This collection includes improved versions of the classes included in 
3271 \family sans
3272 Japanese (Standard Classes)
3273 \family default
3274  (see
3275 \begin_inset space ~
3276 \end_inset
3277
3278
3279 \begin_inset CommandInset ref
3280 LatexCommand ref
3281 reference "subsec:Japanese"
3282
3283 \end_inset
3284
3285 ).
3286  It includes 
3287 \family sans
3288 Japanese Article
3289 \begin_inset space \thinspace{}
3290 \end_inset
3291
3292 (JS Bundle) 
3293 \family default
3294 and 
3295 \family sans
3296 Japanese Book
3297 \begin_inset space \thinspace{}
3298 \end_inset
3299
3300 (JS Bundle)
3301 \family default
3302 .
3303  A report class can be obtained by using 
3304 \family sans
3305 Japanese Book
3306 \begin_inset space \thinspace{}
3307 \end_inset
3308
3309 (JS Bundle)
3310 \family default
3311  with option 
3312 \family sans
3313 report
3314 \family default
3315  in 
3316 \family sans
3317 Document\SpecialChar menuseparator
3318 Settings\SpecialChar menuseparator
3319 Document Class\SpecialChar menuseparator
3320 Class Options\SpecialChar menuseparator
3321 Custom
3322 \family default
3323 .
3324  All these classes work with 
3325 \begin_inset Quotes eld
3326 \end_inset
3327
3328 classic
3329 \begin_inset Quotes erd
3330 \end_inset
3331
3332  engines tailored for Japanese,
3333  p\SpecialChar LaTeX
3334  and up\SpecialChar LaTeX
3335 .
3336 \end_layout
3337
3338 \begin_layout Standard
3339 For the use with the more modern Lua\SpecialChar LaTeX
3340  typesetting engine,
3341  the collection also includes dedicated classes 
3342 \family sans
3343 Japanese Article (JS Bundle for LuaTeX),
3344  Japanese Book
3345 \begin_inset space \thinspace{}
3346 \end_inset
3347
3348 (JS Bundle for LuaTeX)
3349 \family default
3350 ,
3351  and 
3352 \family sans
3353 Japanese Report
3354 \begin_inset space \thinspace{}
3355 \end_inset
3356
3357 (JS Bundle)
3358 \family default
3359 ,
3360  provided by the 
3361 \family sans
3362 luatexja
3363 \family default
3364  \SpecialChar LaTeX
3365  package.
3366 \end_layout
3367
3368 \begin_layout Standard
3369 Templates for the Lua\SpecialChar LaTeX
3370  classes can be found in 
3371 \family sans
3372 File\SpecialChar menuseparator
3373 New From Template
3374 \family default
3375  in the respective category (
3376 \family sans
3377 Articles
3378 \family default
3379 ,
3380  
3381 \family sans
3382 Books
3383 \family default
3384 ,
3385  or 
3386 \family sans
3387 Reports
3388 \family default
3389 ).
3390 \end_layout
3391
3392 \begin_layout Subsection
3393 \begin_inset CommandInset label
3394 LatexCommand label
3395 name "subsec:Japanese-BX"
3396
3397 \end_inset
3398
3399 Japanese (BX Bundle)
3400 \end_layout
3401
3402 \begin_layout Standard
3403 This bundle contains the document classes 
3404 \family sans
3405 Japanese Article
3406 \begin_inset space \thinspace{}
3407 \end_inset
3408
3409 (BX Bundle)
3410 \family default
3411 ,
3412
3413 \family sans
3414  Japanese Book
3415 \begin_inset space \thinspace{}
3416 \end_inset
3417
3418 (BX Bundle)
3419 \family default
3420 ,
3421  and 
3422 \family sans
3423 Japanese Report
3424 \begin_inset space \thinspace{}
3425 \end_inset
3426
3427 (BX Bundle)
3428 \family default
3429  which provide alternative document classes for Japanese documents.
3430  Furthermore,
3431  a class 
3432 \family sans
3433 Japanese Slides (BX Bundle)
3434 \family default
3435  for presentation slides,
3436  is included.
3437  As opposed to the classes of the 
3438 \family sans
3439 Standard Classes
3440 \family default
3441  and 
3442 \family sans
3443 JS 
3444 \family default
3445 bundles (sec.
3446  
3447 \begin_inset CommandInset ref
3448 LatexCommand ref
3449 reference "subsec:Japanese"
3450
3451 \end_inset
3452
3453  and 
3454 \begin_inset CommandInset ref
3455 LatexCommand ref
3456 reference "subsec:Japanese-JS"
3457
3458 \end_inset
3459
3460 ),
3461  which support only p\SpecialChar LaTeX
3462  and up\SpecialChar LaTeX
3463  out of the box (and Lua\SpecialChar LaTeX
3464  only through the extra classes added by the 
3465 \family sans
3466 luatexja
3467 \family default
3468  \SpecialChar LaTeX
3469  package),
3470  the classes of this bundle also support pdf\SpecialChar LaTeX
3471 ,
3472  Xe\SpecialChar LaTeX
3473  and Lua\SpecialChar LaTeX
3474  directly,
3475  with the aid of suitable packages that provide capability of Japanese typesetting.
3476 \end_layout
3477
3478 \begin_layout Subsection
3479 \begin_inset CommandInset label
3480 LatexCommand label
3481 name "subsec:Japanese-JLReq"
3482
3483 \end_inset
3484
3485 Japanese (JLReq Class)
3486 \end_layout
3487
3488 \begin_layout Standard
3489 This bundle draws on the 
3490 \family sans
3491 jlreq
3492 \family default
3493  class which faithfully traces the standard of 
3494 \emph on
3495 Requirements for Japanese Text Layout
3496 \emph default
3497  set by the World Wide Web Consortium (W3C,
3498  see 
3499 \begin_inset Flex URL
3500 status collapsed
3501
3502 \begin_layout Plain Layout
3503
3504 https://www.w3.org/TR/jlreq/?lang=en
3505 \end_layout
3506
3507 \end_inset
3508
3509 ).
3510  It can be used with Lua\SpecialChar LaTeX
3511  as well as p\SpecialChar LaTeX
3512  and up\SpecialChar LaTeX
3513 .
3514 \end_layout
3515
3516 \begin_layout Standard
3517 LyX provides layouts for 
3518 \family sans
3519 Japanese Article
3520 \begin_inset space \thinspace{}
3521 \end_inset
3522
3523 (JLReq Class)
3524 \family default
3525 ,
3526
3527 \family sans
3528  Japanese Book
3529 \begin_inset space \thinspace{}
3530 \end_inset
3531
3532 (JLReq Class)
3533 \family default
3534 ,
3535  and 
3536 \family sans
3537 Japanese Report
3538 \begin_inset space \thinspace{}
3539 \end_inset
3540
3541 (JLReq Class)
3542 \family default
3543  which are all derived from the 
3544 \family sans
3545 jlreq
3546 \family default
3547  \SpecialChar LaTeX
3548  class via specific class options.
3549 \end_layout
3550
3551 \begin_layout Standard
3552 An example article document is available at 
3553 \family sans
3554 File\SpecialChar menuseparator
3555 Open Example\SpecialChar menuseparator
3556 Articles\SpecialChar menuseparator
3557 Japanese Article (JLReq Class)
3558 \family default
3559 .
3560  English documentation is available at 
3561 \begin_inset Flex URL
3562 status collapsed
3563
3564 \begin_layout Plain Layout
3565
3566 http://mirrors.ctan.org/macros/jptex/latex/jlreq/jlreq.pdf
3567 \end_layout
3568
3569 \end_inset
3570
3571 .
3572 \end_layout
3573
3574 \begin_layout Subsection
3575 \begin_inset CommandInset label
3576 LatexCommand label
3577 name "subsec:KOMA-Script"
3578
3579 \end_inset
3580
3581 KOMA-Script
3582 \end_layout
3583
3584 \begin_layout Standard
3585 Original by 
3586 \noun on
3587 Bernd Rellermeyer
3588 \noun default
3589 ;
3590  updated by 
3591 \noun on
3592 Jürgen Spitzmüller
3593 \noun default
3594  and the \SpecialChar LyX
3595  Team
3596 \end_layout
3597
3598 \begin_layout Subsubsection
3599 Overview
3600 \end_layout
3601
3602 \begin_layout Standard
3603 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
3604  it was formally launched with the addition of a letter class in 1994.
3605  Since then,
3606  a second letter class has been added.
3607  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.
3608 \end_layout
3609
3610 \begin_layout Standard
3611 The \SpecialChar LyX
3612  document classes 
3613 \emph on
3614 KOMA-Script Article
3615 \emph default
3616 ,
3617  
3618 \emph on
3619 KOMA-Script Report
3620 \emph default
3621 ,
3622  
3623 \emph on
3624 KOMA-Script Book
3625 \emph default
3626 ,
3627  and 
3628 \emph on
3629 KOMA-Script Letter
3630 \emph default
3631  correspond to the \SpecialChar LaTeX
3632  document classes 
3633 \family typewriter
3634 scrartcl.cls
3635 \family default
3636 ,
3637  
3638 \family typewriter
3639 scrreprt.cls
3640 \family default
3641 ,
3642  
3643 \family typewriter
3644 scrbook.cls
3645 \family default
3646 ,
3647  and 
3648 \family typewriter
3649 scrlettr.cls
3650 \family default
3651 ,
3652  resp.
3653 \begin_inset space ~
3654 \end_inset
3655
3656 of the Koma-Script family.
3657  They are replacements for the standard document classes 
3658 \family typewriter
3659 article.cls
3660 \family default
3661 ,
3662  
3663 \family typewriter
3664 report.cls
3665 \family default
3666 ,
3667  
3668 \family typewriter
3669 book.cls
3670 \family default
3671  and 
3672 \family typewriter
3673 letter.cls
3674 \family default
3675 ,
3676  resp.,
3677  and fit better to European typography conventions in a number of points.
3678 \end_layout
3679
3680 \begin_layout Itemize
3681 The base character sizes when you select a KOMA-Script class are 11pt in 
3682 \emph on
3683 KOMA-Script Article
3684 \emph default
3685 ,
3686  
3687 \emph on
3688 KOMA-Script Report
3689 \emph default
3690 ,
3691  and 
3692 \emph on
3693 KOMA-Script Book
3694 \emph default
3695  and 12pt in 
3696 \emph on
3697 KOMA-Script Letter
3698 \emph default
3699 .
3700 \end_layout
3701
3702 \begin_layout Itemize
3703 Headings,
3704  labels of the description environment,
3705  and a number of elements of the 
3706 \emph on
3707 KOMA-Script Letter
3708 \emph default
3709  document class are set in a bold sans serif font.
3710 \begin_inset Foot
3711 status collapsed
3712
3713 \begin_layout Plain Layout
3714 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
3715  especially in the appearance of headings.
3716  In comparison,
3717  the ec bold sans serif fonts look a bit thin.
3718  Here the \SpecialChar LaTeX
3719  package 
3720 \family typewriter
3721 cmsd.sty by
3722 \family default
3723  
3724 \shape smallcaps
3725 Walter Schmidt
3726 \shape default
3727  helps to produce the 
3728 \begin_inset Quotes eld
3729 \end_inset
3730
3731 usual
3732 \begin_inset Quotes erd
3733 \end_inset
3734
3735  appearance when using the ec fonts.
3736 \end_layout
3737
3738 \end_inset
3739
3740  The numbering of chapter headings is made in the same way as the numbering of section headings,
3741  that is without the extra line 
3742 \begin_inset Quotes eld
3743 \end_inset
3744
3745 Chapter\SpecialChar ldots
3746
3747 \begin_inset Quotes erd
3748 \end_inset
3749
3750 .
3751  In addition,
3752  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
3753  to be entered in the field 
3754 \family sans
3755 Extra
3756 \begin_inset space ~
3757 \end_inset
3758
3759 Options
3760 \family default
3761  of the dialog 
3762 \family sans
3763 Layout\SpecialChar menuseparator
3764 Document
3765 \family default
3766 ).
3767  
3768 \end_layout
3769
3770 \begin_layout Itemize
3771 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.
3772  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.
3773  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
3774  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
3775 \end_layout
3776
3777 \begin_deeper
3778 \begin_layout Standard
3779 Whatever the factor,
3780  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
3781  leaving a text area occupying around half the page.
3782  Since most two-sided documents have a binding,
3783  this can make the inner margins appear too narrow;
3784  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
3785 \end_layout
3786
3787 \begin_layout Standard
3788 The main means in the Koma-Script document classes to design the type area are the options 
3789 \family sans
3790 BCOR
3791 \family default
3792  and 
3793 \family sans
3794 DIV
3795 \family default
3796  entered in 
3797 \family sans
3798 Document\SpecialChar menuseparator
3799 Settings\SpecialChar menuseparator
3800 Document Class\SpecialChar menuseparator
3801 Class Options\SpecialChar menuseparator
3802 Custom
3803 \family default
3804 .
3805 \end_layout
3806
3807 \begin_layout Standard
3808 In this document,
3809  the binding correction is 7.5mm which is added in the form 
3810 \family typewriter
3811 BCOR7.5mm
3812 \family default
3813  to 
3814 \family sans
3815 Class
3816 \begin_inset space ~
3817 \end_inset
3818
3819 options\SpecialChar menuseparator
3820 Cus
3821 \bar under
3822 t
3823 \bar default
3824 om
3825 \family default
3826  dialog.
3827  To change the factor to 11,
3828  for example,
3829  add the entry 
3830 \family typewriter
3831 DIV=11
3832 \family default
3833  to the comma separated list of entries in the 
3834 \family sans
3835 Cus
3836 \bar under
3837 t
3838 \bar default
3839 om
3840 \family default
3841  
3842 \family sans
3843 Class
3844 \begin_inset space ~
3845 \end_inset
3846
3847 options
3848 \family default
3849 .
3850  If you want the default value of this factor for a page size other than A4,
3851  add the entry 
3852 \family typewriter
3853 DIV=calc
3854 \family default
3855 .
3856 \end_layout
3857
3858 \begin_layout Standard
3859 To use the circle method of calculating the page layout,
3860  use 
3861 \family typewriter
3862 DIV=classic
3863 \family default
3864  instead.
3865 \end_layout
3866
3867 \end_deeper
3868 \begin_layout Itemize
3869 The \SpecialChar LaTeX
3870  document classes of the Koma-Script family define a number of additional commands.
3871  Those part of it which makes sense in \SpecialChar LyX
3872  is implemented in corresponding paragraph types.
3873 \end_layout
3874
3875 \begin_layout Standard
3876 Detailed descriptions of the \SpecialChar LaTeX
3877  document classes of the Koma-Script family can be found in the Koma-Script documentation 
3878 \emph on
3879 scrguide
3880 \emph default
3881  (German) and 
3882 \emph on
3883 scrguien
3884 \emph default
3885  (English).
3886 \end_layout
3887
3888 \begin_layout Subsubsection
3889
3890 \series bold
3891 \begin_inset CommandInset label
3892 LatexCommand label
3893 name "subsec:article-(KOMA-Script),-report"
3894
3895 \end_inset
3896
3897
3898 \series default
3899 \emph on
3900 KOMA-Script Article
3901 \emph default
3902 ,
3903  
3904 \emph on
3905 KOMA-Script Report
3906 \emph default
3907 ,
3908  and 
3909 \emph on
3910 KOMA-Script Book
3911 \end_layout
3912
3913 \begin_layout Standard
3914 The document classes 
3915 \emph on
3916 KOMA-Script Article
3917 \emph default
3918 ,
3919  
3920 \emph on
3921 KOMA-Script Report
3922 \emph default
3923 ,
3924  and 
3925 \emph on
3926 KOMA-Script Book
3927 \emph default
3928  are implemented in the layout files 
3929 \family typewriter
3930 scrartcl.layout
3931 \family default
3932 ,
3933  
3934 \family typewriter
3935 scrreprt.layout
3936 \family default
3937 ,
3938  and 
3939 \family typewriter
3940 scrbook.layout
3941 \family default
3942 ,
3943  resp.
3944  They contain all the paragraph types of the corresponding standard document classes 
3945 \emph on
3946 article
3947 \emph default
3948 ,
3949  
3950 \emph on
3951 report
3952 \emph default
3953 ,
3954  and 
3955 \emph on
3956 book
3957 \emph default
3958 ,
3959  resp.,
3960  partly modified,
3961  with the exception of the \SpecialChar LyX
3962  specific 
3963 \family sans
3964 List
3965 \family default
3966 -type,
3967  which is replaced by the new 
3968 \family sans
3969 Labeling
3970 \family default
3971 -type having the same functionality.
3972  Beside the 
3973 \family sans
3974 Labeling
3975 \family default
3976 -Type there is a number of new paragraph types added.
3977  They are 
3978 \emph on
3979 not
3980 \emph default
3981  part of 
3982 \emph on
3983 letter (koma-script)
3984 \emph default
3985 .
3986 \end_layout
3987
3988 \begin_layout Itemize
3989
3990 \family sans
3991 Addpart,
3992  Addchap
3993 \family default
3994 ,
3995  
3996 \family sans
3997 Addsec
3998 \family default
3999 :
4000  are equivalents to 
4001 \family sans
4002 Part*,
4003  Chapter*
4004 \family default
4005  and 
4006 \family sans
4007 Section*
4008 \family default
4009 ,
4010  resp.,
4011  additionally inserting an entry in the table of contents.
4012  
4013 \family sans
4014 Addpart
4015 \family default
4016  and 
4017 \family sans
4018 Addchap
4019 \family default
4020  are not contained in 
4021 \emph on
4022 article (koma-script)
4023 \emph default
4024 .
4025 \end_layout
4026
4027 \begin_layout Itemize
4028
4029 \family sans
4030 Addchap*
4031 \family default
4032 ,
4033  
4034 \family sans
4035 Addsec*
4036 \family default
4037 :
4038  behave exactly as 
4039 \family sans
4040 Addchap
4041 \family default
4042  and 
4043 \family sans
4044 Addsec
4045 \family default
4046 ,
4047  resp.,
4048  additionally clearing running heads.
4049  
4050 \family sans
4051 Addchap*
4052 \family default
4053  is not contained in 
4054 \emph on
4055 article (koma-script)
4056 \emph default
4057 .
4058 \begin_inset Foot
4059 status collapsed
4060
4061 \begin_layout Plain Layout
4062 There is also an 
4063 \family typewriter
4064
4065 \backslash
4066 addpart*
4067 \family default
4068  command in 
4069 \emph on
4070 book (koma-script)
4071 \emph default
4072  and in 
4073 \emph on
4074 report (koma-script)
4075 \emph default
4076 ,
4077  but since this is identical to 
4078 \family sans
4079 Part*
4080 \family default
4081 ,
4082  is has not been implemented in \SpecialChar LyX
4083 .
4084 \end_layout
4085
4086 \end_inset
4087
4088
4089 \end_layout
4090
4091 \begin_layout Itemize
4092
4093 \family sans
4094 Minisec
4095 \family default
4096 :
4097  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
4098 \end_layout
4099
4100 \begin_layout Itemize
4101
4102 \family sans
4103 Captionabove
4104 \family default
4105  and 
4106 \family sans
4107 Captionbelow
4108 \family default
4109  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
4110  you might want to place table captions always above the table).
4111  You can also use the class option 
4112 \family typewriter
4113 tablecaptionsabove
4114 \family default
4115 ,
4116  which will switch 
4117 \family sans
4118 caption
4119 \family default
4120  to 
4121 \family sans
4122 captionabove
4123 \family default
4124  for tables and 
4125 \family sans
4126 captionbelow
4127 \family default
4128  for figures.
4129  You need at least Koma-Script version 2.8q to use this.
4130 \end_layout
4131
4132 \begin_layout Itemize
4133
4134 \family sans
4135 Dictum
4136 \family default
4137 :
4138  can be used to set a bonmot,
4139  e.
4140 \begin_inset space \thinspace{}
4141 \end_inset
4142
4143 g.
4144 \begin_inset space \space{}
4145 \end_inset
4146
4147 at the beginning of a chapter.
4148  If you use the optional argument (
4149 \family sans
4150 Insert\SpecialChar menuseparator
4151 Dictum
4152 \begin_inset space ~
4153 \end_inset
4154
4155 Author
4156 \family default
4157 ),
4158  you can insert the dictum's author there.
4159  Dictum and author are separated by a line.
4160  You need at least Koma-Script version 2.8q to use this.
4161  
4162 \family sans
4163 Dictum
4164 \family default
4165  is not contained in 
4166 \emph on
4167 article (koma-script)
4168 \emph default
4169 .
4170 \end_layout
4171
4172 \begin_layout Standard
4173 The following types,
4174  together with the standard types 
4175 \family sans
4176 Title
4177 \family default
4178 ,
4179  
4180 \family sans
4181 Author
4182 \family default
4183 ,
4184  and 
4185 \family sans
4186 Date
4187 \family default
4188 ,
4189  form the title area of the document.
4190  They must be entered ahead of the first 
4191 \begin_inset Quotes eld
4192 \end_inset
4193
4194 ordinary
4195 \begin_inset Quotes erd
4196 \end_inset
4197
4198  paragraph.
4199 \begin_inset Foot
4200 status collapsed
4201
4202 \begin_layout Plain Layout
4203 The corresponding \SpecialChar LaTeX
4204  commands must appear before the 
4205 \family typewriter
4206
4207 \backslash
4208 maketitle
4209 \family default
4210  command.
4211 \end_layout
4212
4213 \end_inset
4214
4215  When such a type is used more than once,
4216  the latter usage overwrites the former one,
4217  that means,
4218  for every type only the latest usage is valid.
4219  The order of the different types however has,
4220  like 
4221 \family sans
4222 Title
4223 \family default
4224 ,
4225  
4226 \family sans
4227 Author
4228 \family default
4229 ,
4230  and 
4231 \family sans
4232 Date
4233 \family default
4234 ,
4235  no effect on the appearance of the produced document.
4236 \end_layout
4237
4238 \begin_layout Itemize
4239
4240 \family sans
4241 Subject
4242 \family default
4243 :
4244  produces a centered paragraph above the ordinary title (
4245 \family sans
4246 Title
4247 \family default
4248 ,
4249  
4250 \family sans
4251 Author
4252 \family default
4253 ,
4254  
4255 \family sans
4256 Date
4257 \family default
4258 ) for the subject of the document.
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Publishers
4265 \family default
4266 :
4267  produces a centered paragraph below the ordinary title (
4268 \family sans
4269 Title
4270 \family default
4271 ,
4272  
4273 \family sans
4274 Author
4275 \family default
4276 ,
4277  
4278 \family sans
4279 Date
4280 \family default
4281 ) for the publishers' name.
4282 \end_layout
4283
4284 \begin_layout Itemize
4285
4286 \family sans
4287 Dedication
4288 \family default
4289 :
4290  in 
4291 \emph on
4292 report (koma-script)
4293 \emph default
4294  and 
4295 \emph on
4296 book (koma-script)
4297 \emph default
4298  produces a centered paragraph on its own page behind the title page,
4299  or in 
4300 \emph on
4301 article (koma-script)
4302 \emph default
4303  produces a centered paragraph below the ordinary title (
4304 \family sans
4305 Title
4306 \family default
4307 ,
4308  
4309 \family sans
4310 Author
4311 \family default
4312 ,
4313  
4314 \family sans
4315 Date
4316 \family default
4317 ,
4318  
4319 \family sans
4320 Publishers
4321 \family default
4322 ) for a dedication.
4323 \end_layout
4324
4325 \begin_layout Itemize
4326
4327 \family sans
4328 Titlehead
4329 \family default
4330 :
4331  produces a left aligned paragraph above the ordinary title (
4332 \family sans
4333 Title
4334 \family default
4335 ,
4336  
4337 \family sans
4338 Author
4339 \family default
4340 ,
4341  
4342 \family sans
4343 Date
4344 \family default
4345 ,
4346  
4347 \family sans
4348 Subject
4349 \family default
4350 ) for a document`s head.
4351 \end_layout
4352
4353 \begin_layout Itemize
4354
4355 \family sans
4356 Uppertitleback
4357 \family default
4358 :
4359  produces in a double-sided print in 
4360 \emph on
4361 report (koma-script)
4362 \emph default
4363  and 
4364 \emph on
4365 book (koma-script)
4366 \emph default
4367  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
4368 \emph on
4369 article (koma-script)
4370 \emph default
4371 .
4372 \end_layout
4373
4374 \begin_layout Itemize
4375
4376 \family sans
4377 Lowertitleback
4378 \family default
4379 :
4380  produces in a double-sided print in 
4381 \emph on
4382 report (koma-script)
4383 \emph default
4384  and 
4385 \emph on
4386 book (koma-script)
4387 \emph default
4388  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
4389 \emph on
4390 article (koma-script)
4391 \emph default
4392 .
4393 \end_layout
4394
4395 \begin_layout Itemize
4396
4397 \family sans
4398 Extratitle
4399 \family default
4400 :
4401  produces a special 
4402 \begin_inset Quotes eld
4403 \end_inset
4404
4405 dirty
4406 \begin_inset Quotes erd
4407 \end_inset
4408
4409  page ahead of the actual document containing a paragraph without special formatting.
4410 \end_layout
4411
4412 \begin_layout Standard
4413 KOMA-Script offers a wide range of 
4414 \family sans
4415 Cus
4416 \bar under
4417 t
4418 \bar default
4419 om Class
4420 \begin_inset space ~
4421 \end_inset
4422
4423 options
4424 \family default
4425  for the 
4426 \family sans
4427 \bar under
4428 D
4429 \bar default
4430 ocument\SpecialChar menuseparator
4431
4432 \bar under
4433 S
4434 \bar default
4435 ettings\SpecialChar menuseparator
4436 Document
4437 \begin_inset space ~
4438 \end_inset
4439
4440 class
4441 \family default
4442  dialog which you can apply to the whole document,
4443  among them
4444 \end_layout
4445
4446 \begin_layout Description
4447
4448 \family typewriter
4449 \series medium
4450 draft=true
4451 \family default
4452 \series default
4453  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
4454  the default setting is 
4455 \family typewriter
4456 false
4457 \end_layout
4458
4459 \begin_layout Description
4460
4461 \family typewriter
4462 \series medium
4463 headings=
4464 \family default
4465 \series default
4466  which may take the values 
4467 \family typewriter
4468 big
4469 \family default
4470 ,
4471  
4472 \family typewriter
4473 normal
4474 \family default
4475  or 
4476 \family typewriter
4477 small
4478 \family default
4479 ;
4480  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
4481 \end_layout
4482
4483 \begin_layout Description
4484
4485 \family typewriter
4486 \series medium
4487 numbers=
4488 \family default
4489 \series default
4490  which may take the values 
4491 \family typewriter
4492 auto
4493 \family default
4494  (the default),
4495  
4496 \family typewriter
4497 enddot
4498 \family default
4499  or 
4500 \family typewriter
4501 noenddot
4502 \family default
4503 ;
4504  the first leaves it up to KOMA-Script to add periods after chapter,
4505  section numbers,
4506  etc.;
4507  the second forces the addition of periods and third suppresses them
4508 \end_layout
4509
4510 \begin_layout Standard
4511 and the math options:
4512 \end_layout
4513
4514 \begin_layout Description
4515
4516 \family typewriter
4517 \series medium
4518 leqno
4519 \family default
4520 \series default
4521  which causes equations to be numbered on the left rather than on the right,
4522  and
4523 \end_layout
4524
4525 \begin_layout Description
4526
4527 \family typewriter
4528 \series medium
4529 fleqn
4530 \family default
4531 \series default
4532  which causes equations to be left justified rather than centered.
4533 \end_layout
4534
4535 \begin_layout Standard
4536 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
4537  commands and packages;
4538  for example,
4539  if you want your captions in bold add
4540 \end_layout
4541
4542 \begin_layout Standard
4543
4544 \family typewriter
4545
4546 \backslash
4547 setkomafont{captionlabel}{
4548 \backslash
4549 bfseries}
4550 \end_layout
4551
4552 \begin_layout Standard
4553 to 
4554 \family sans
4555 \bar under
4556 D
4557 \bar default
4558 ocument\SpecialChar menuseparator
4559
4560 \bar under
4561 S
4562 \bar default
4563 ettings
4564 \family default
4565 \SpecialChar menuseparator
4566
4567 \family sans
4568 \SpecialChar LaTeX
4569
4570 \begin_inset space ~
4571 \end_inset
4572
4573 Preamble
4574 \family default
4575 ) and the problem is solved.
4576 \end_layout
4577
4578 \begin_layout Standard
4579 If you are writing a book,
4580  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
4581  If you use the Chapter* environment,
4582  your Foreword and Preface will not appear in the Table of Contents;
4583  to make them to appear in the Table of contents,
4584  you need to use Chapter environments and add the \SpecialChar TeX
4585  code
4586 \end_layout
4587
4588 \begin_layout Standard
4589
4590 \family typewriter
4591
4592 \backslash
4593 frontmatter
4594 \end_layout
4595
4596 \begin_layout Standard
4597 at the very start of the book (not in the \SpecialChar LaTeX
4598  Preamble) and
4599 \end_layout
4600
4601 \begin_layout Standard
4602
4603 \family typewriter
4604
4605 \backslash
4606 mainmatter
4607 \end_layout
4608
4609 \begin_layout Standard
4610 before the first chapter of the body of the text.
4611  Alternatively,
4612  you might also use 
4613 \family sans
4614 Chapter* (TOC)
4615 \family default
4616 .
4617 \end_layout
4618
4619 \begin_layout Standard
4620 You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
4621  if any.
4622 \begin_inset Foot
4623 status open
4624
4625 \begin_layout Plain Layout
4626 Appendices are normally “numbered” with letters.
4627 \end_layout
4628
4629 \end_inset
4630
4631  If you use the Chapter* environment,
4632  they will not appear in the Table of Contents;
4633  so add the \SpecialChar TeX
4634  code
4635 \end_layout
4636
4637 \begin_layout Standard
4638
4639 \family typewriter
4640
4641 \backslash
4642 backmatter
4643 \end_layout
4644
4645 \begin_layout Standard
4646 before the first of these headings and use the Chapter environment.
4647  These commands will have no effect on the numbering in \SpecialChar LyX
4648 ,
4649  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
4650 \end_layout
4651
4652 \begin_layout Standard
4653 The layout files for the document classes 
4654 \emph on
4655 article (koma-script)
4656 \emph default
4657 ,
4658  
4659 \emph on
4660 report (koma-script)
4661 \emph default
4662 ,
4663  and 
4664 \emph on
4665 book (koma-script)
4666 \emph default
4667  do include the file 
4668 \family typewriter
4669 scrmacros.inc
4670 \family default
4671 .
4672  This is thought of as a place to define your own types.
4673  Copy scrmacros
4674 \family typewriter
4675 .inc
4676 \family default
4677  in your personal layout directory and edit the file!
4678 \end_layout
4679
4680 \begin_layout Subsubsection
4681 \begin_inset CommandInset label
4682 LatexCommand label
4683 name "subsec:The-new-letter"
4684
4685 \end_inset
4686
4687 The new letter class:
4688  KOMA-Script Letter (V.
4689  2)
4690 \end_layout
4691
4692 \begin_layout Standard
4693 by 
4694 \noun on
4695 Jürgen Spitzmüller
4696 \end_layout
4697
4698 \begin_layout Standard
4699 \begin_inset VSpace medskip
4700 \end_inset
4701
4702
4703 \end_layout
4704
4705 \begin_layout Standard
4706 \noindent
4707 Koma-Script version 2.8 has introduced a new letter class 
4708 \family typewriter
4709 scrlttr2
4710 \family default
4711  which supersedes the now unsupported 
4712 \family typewriter
4713 scrlettr
4714 \family default
4715 .
4716  It has —
4717  on the \SpecialChar LaTeX
4718  side —
4719  a completely new interface and is not compatible with the old class.
4720  Therefore,
4721  \SpecialChar LyX
4722  supports both,
4723  though it is recommended you use the new class.
4724 \end_layout
4725
4726 \begin_layout Standard
4727 This class covers the same functionality as 
4728 \emph on
4729 letter (koma-script),
4730
4731 \emph default
4732  and a few more.
4733  The basic items are 
4734 \family sans
4735 Address
4736 \family default
4737  (receiver's address,
4738  same as 
4739 \family sans
4740 Letter
4741 \family default
4742  in the old layout),
4743  
4744 \family sans
4745 Opening
4746 \family default
4747 ,
4748  and 
4749 \family sans
4750 Closing
4751 \family default
4752 .
4753  
4754 \family sans
4755 NextAddress
4756 \family default
4757  will start a new letter (i.
4758 \begin_inset space \thinspace{}
4759 \end_inset
4760
4761 e.
4762 \begin_inset space \space{}
4763 \end_inset
4764
4765 you can write several letters per document).
4766  New elements are sender's 
4767 \family sans
4768 E-Mail
4769 \family default
4770 ,
4771  
4772 \family sans
4773 URL
4774 \family default
4775 ,
4776  
4777 \family sans
4778 Fax
4779 \family default
4780 ,
4781  
4782 \family sans
4783 Bank
4784 \family default
4785  and the possibility to use a 
4786 \family sans
4787 Logo
4788 \family default
4789  (via 
4790 \family sans
4791 Insert\SpecialChar menuseparator
4792 Graphics
4793 \family default
4794 ) in the header.
4795 \end_layout
4796
4797 \begin_layout Standard
4798 The biggest improvement is,
4799  though,
4800  that the letter's layout is configurable to meet almost any needs.
4801  This can be done via the preamble or with a special style file (Letter Class Option,
4802  extension 
4803 \family typewriter
4804 *.lco
4805 \family default
4806 ),
4807  that will be read in as a class option.
4808 \begin_inset Foot
4809 status collapsed
4810
4811 \begin_layout Plain Layout
4812 The KOMA package comes with some default 
4813 \family typewriter
4814 *.lco
4815 \family default
4816  files.
4817  There is,
4818  for instance,
4819  a 
4820 \family typewriter
4821 DIN.lco
4822 \family default
4823  file that follows german typesetting rules,
4824  or a 
4825 \family typewriter
4826 KOMAold.lco
4827 \family default
4828  that provides the default layout of the old 
4829 \family typewriter
4830 scrlettr
4831 \family default
4832  class.
4833  The latter can be loaded with the class option 
4834 \family typewriter
4835 KOMAold
4836 \family default
4837 ,
4838  inserted via the 
4839 \family sans
4840 Layout\SpecialChar menuseparator
4841 Document\SpecialChar menuseparator
4842 Extra Options
4843 \family default
4844  field.
4845 \end_layout
4846
4847 \end_inset
4848
4849  Have a look at the template in 
4850 \family sans
4851 \bar under
4852 F
4853 \bar default
4854 ile\SpecialChar menuseparator
4855 New
4856 \begin_inset space ~
4857 \end_inset
4858
4859 fro
4860 \bar under
4861 m
4862 \bar default
4863
4864 \begin_inset space ~
4865 \end_inset
4866
4867 Template\SpecialChar menuseparator
4868 Letters\SpecialChar menuseparator
4869 KOMA-Script Letter (V.2)
4870 \family default
4871 .
4872  A detailed description is to be found in the Koma-Script documentation (
4873 \emph on
4874 scrguide
4875 \emph default
4876 ).
4877 \end_layout
4878
4879 \begin_layout Subsubsection
4880 Problems
4881 \end_layout
4882
4883 \begin_layout Standard
4884 Visualizing the Koma-Script document classes in \SpecialChar LyX
4885 ,
4886  the \SpecialChar LyX
4887  internals cause some problems.
4888 \end_layout
4889
4890 \begin_layout Itemize
4891 The chapter number of a 
4892 \family sans
4893 Chapter
4894 \family default
4895  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
4896  The cause for that is the \SpecialChar LyX
4897  internal behavior for the labeltype 
4898 \family sans
4899 Counter_Chapter
4900 \family default
4901  in the layout file.
4902 \end_layout
4903
4904 \begin_layout Itemize
4905 The headings of the types 
4906 \family sans
4907 Addchap
4908 \family default
4909  and 
4910 \family sans
4911 Addsec
4912 \family default
4913  are only put in the 
4914 \begin_inset Quotes eld
4915 \end_inset
4916
4917 true
4918 \begin_inset Quotes erd
4919 \end_inset
4920
4921  \SpecialChar LaTeX
4922  table of contents,
4923  but not in the \SpecialChar LyX
4924  table of contents (
4925 \family sans
4926 Document\SpecialChar menuseparator
4927 Table
4928 \begin_inset space ~
4929 \end_inset
4930
4931 of
4932 \begin_inset space ~
4933 \end_inset
4934
4935 Contents
4936 \family default
4937 ).
4938 \end_layout
4939
4940 \begin_layout Itemize
4941 The paragraphs in a 
4942 \emph on
4943 letter
4944 \emph default
4945  document class appear in a skip separation mode,
4946  not indented.
4947  This is the standard behavior,
4948  no special \SpecialChar LaTeX
4949  commands are needed for that.
4950  But in the 
4951 \family sans
4952 Document\SpecialChar menuseparator
4953 Settings
4954 \family default
4955  dialog the corresponding radio button indicates 
4956 \family sans
4957 Indent
4958 \family default
4959 .
4960  A 
4961 \family sans
4962 Skip
4963 \family default
4964  value always has the effect that extra \SpecialChar LaTeX
4965  commands are inserted in the document to produce the gap,
4966  which is not what is wanted in this case.
4967 \end_layout
4968
4969 \begin_layout Subsection
4970 \begin_inset CommandInset label
4971 LatexCommand label
4972 name "subsec:Polish-M.W.collection"
4973
4974 \end_inset
4975
4976 Polish M.
4977 \begin_inset space \thinspace{}
4978 \end_inset
4979
4980 W.
4981 \begin_inset space \space{}
4982 \end_inset
4983
4984 collection
4985 \end_layout
4986
4987 \begin_layout Standard
4988 by 
4989 \noun on
4990 Tomasz Luczak
4991 \end_layout
4992
4993 \begin_layout Standard
4994 The \SpecialChar LyX
4995  document classes 
4996 \emph on
4997 Polish Article (MW Bundle)
4998 \emph default
4999 ,
5000  
5001 \emph on
5002 Polish Report (MW Bundle)
5003 \emph default
5004  and 
5005 \emph on
5006 Polish Book (MW Bundle)
5007 \emph default
5008  correspond to the \SpecialChar LaTeX
5009  document classes 
5010 \family typewriter
5011 mwart.cls
5012 \family default
5013 ,
5014  
5015 \family typewriter
5016 mwrep.cls
5017 \family default
5018  and 
5019 \family typewriter
5020 mwbk.cls
5021 \family default
5022 ,
5023  resp.
5024  They are replacements for the standard document classes 
5025 \family typewriter
5026 article.cls
5027 \family default
5028 ,
5029  
5030 \family typewriter
5031 report.cls
5032 \family default
5033  and 
5034 \family typewriter
5035 book.cls
5036 \family default
5037 ,
5038  resp.,
5039  and fit better to Polish typography conventions in a number of points.
5040  
5041 \end_layout
5042
5043 \begin_layout Standard
5044 Basic differences:
5045 \end_layout
5046
5047 \begin_layout Itemize
5048 Unnumbered titles (with star,
5049  e.
5050 \begin_inset space \thinspace{}
5051 \end_inset
5052
5053 g.
5054 \begin_inset space \space{}
5055 \end_inset
5056
5057
5058 \family sans
5059 Section*
5060 \family default
5061 ) are added into table of contents,
5062 \end_layout
5063
5064 \begin_layout Itemize
5065 Additional page styles:
5066 \end_layout
5067
5068 \begin_deeper
5069 \begin_layout Description
5070 uheadings header with separated lines,
5071 \end_layout
5072
5073 \begin_layout Description
5074 myheadings custom header,
5075  contents headers via commands:
5076  
5077 \family typewriter
5078
5079 \backslash
5080 markright
5081 \family default
5082  and 
5083 \family typewriter
5084
5085 \backslash
5086 markboth
5087 \family default
5088 ,
5089 \end_layout
5090
5091 \begin_layout Description
5092 myuheadings custom header with separated lines,
5093 \end_layout
5094
5095 \begin_layout Description
5096 outer page number is placed on outer side of page
5097 \end_layout
5098
5099 \end_deeper
5100 \begin_layout Itemize
5101 Options 
5102 \end_layout
5103
5104 \begin_deeper
5105 \begin_layout Description
5106 rmheadings serif titles —
5107  default,
5108 \end_layout
5109
5110 \begin_layout Description
5111 sfheadings sansserif titles,
5112 \end_layout
5113
5114 \begin_layout Description
5115 authortitle on title page first placed is author next title —
5116  default,
5117 \end_layout
5118
5119 \begin_layout Description
5120 titleauthor on title page first placed is title next author,
5121 \end_layout
5122
5123 \begin_layout Description
5124 withmarginpar reserve place on page for margins.
5125 \end_layout
5126
5127 \end_deeper
5128 \begin_layout Subsection
5129 Tufte Collection
5130 \end_layout
5131
5132 \begin_layout Standard
5133 The document classes 
5134 \family sans
5135 Tufte Book
5136 \family default
5137  and 
5138 \family sans
5139 Tufte Handout
5140 \family default
5141  use the 
5142 \family typewriter
5143 tufte-book.cls
5144 \family default
5145  and 
5146 \family typewriter
5147 tufte-handout.cls
5148 \family default
5149  document classes.
5150  Detailed information about these document classes can be found in 
5151 \family sans
5152 File\SpecialChar menuseparator
5153 Open Example\SpecialChar menuseparator
5154 Books\SpecialChar menuseparator
5155 Tufte Book
5156 \family default
5157  and 
5158 \family sans
5159 File\SpecialChar menuseparator
5160 Open Example\SpecialChar menuseparator
5161 Handouts\SpecialChar menuseparator
5162 Tufte Handout
5163 \family default
5164 .
5165 \end_layout
5166
5167 \begin_layout Section
5168 Articles
5169 \end_layout
5170
5171 \begin_layout Standard
5172 See also the document classes in the Collections (section
5173 \begin_inset space ~
5174 \end_inset
5175
5176
5177 \begin_inset CommandInset ref
5178 LatexCommand ref
5179 reference "sec:Collections"
5180 nolink "false"
5181
5182 \end_inset
5183
5184 ).
5185 \end_layout
5186
5187 \begin_layout Subsection
5188 Astronomy & Astrophysics
5189 \end_layout
5190
5191 \begin_layout Standard
5192 Original by 
5193 \noun on
5194 Peter Sütterlin
5195 \noun default
5196 ;
5197  updated by the \SpecialChar LyX
5198  Team
5199 \end_layout
5200
5201 \begin_layout Subsubsection
5202 Introduction
5203 \end_layout
5204
5205 \begin_layout Standard
5206 This section describes how \SpecialChar LyX
5207  can be used to write articles for submission to the scientific journal 
5208 \emph on
5209 Astronomy & Astrophysics
5210 \emph default
5211  (
5212 \begin_inset CommandInset href
5213 LatexCommand href
5214 name "aa-package"
5215 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5216 literal "false"
5217
5218 \end_inset
5219
5220 ) using Version 9.1 of the document class 
5221 \family typewriter
5222 aa.cls
5223 \family default
5224 ;
5225  information about it is available at 
5226 \begin_inset Flex URL
5227 status collapsed
5228
5229 \begin_layout Plain Layout
5230
5231 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5232 \end_layout
5233
5234 \end_inset
5235
5236 .
5237 \end_layout
5238
5239 \begin_layout Standard
5240 A manual comes together with the package and should be consulted before installing this document class as described in the 
5241 \emph on
5242 Installing New Document Classe
5243 \emph default
5244 s section of the 
5245 \emph on
5246 Customization
5247 \emph default
5248  manual.
5249 \end_layout
5250
5251 \begin_layout Standard
5252 \begin_inset Note Greyedout
5253 status open
5254
5255 \begin_layout Plain Layout
5256 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
5257  2001.
5258  That change also involved some slight changes to the style files,
5259  namely the removal of the thesaurus command.
5260  If you have an older version installed,
5261  please upgrade.
5262  For information about compatibility with the old (version 4) layout,
5263  please refer to the comments in 
5264 \family typewriter
5265 \SpecialChar LyX
5266 Dir/layouts/aapaper.layout
5267 \family default
5268 .
5269 \end_layout
5270
5271 \end_inset
5272
5273
5274 \end_layout
5275
5276 \begin_layout Subsubsection
5277 Getting started
5278 \end_layout
5279
5280 \begin_layout Standard
5281 It is recommended you start from the template in the menu 
5282 \family sans
5283 \bar under
5284 F
5285 \bar default
5286 ile\SpecialChar menuseparator
5287 New
5288 \begin_inset space ~
5289 \end_inset
5290
5291 fro
5292 \bar under
5293 m
5294 \bar default
5295
5296 \begin_inset space ~
5297 \end_inset
5298
5299 Template\SpecialChar menuseparator
5300 Articles\SpecialChar menuseparator
5301 Astronomy & Astrophysics
5302 \family default
5303 .
5304  If you are not using the template,
5305  note the following settings:
5306 \end_layout
5307
5308 \begin_layout Itemize
5309 Select 
5310 \family sans
5311 Astronomy & Astrophysics
5312 \family default
5313  in the 
5314 \family sans
5315 \bar under
5316 D
5317 \bar default
5318 ocument\SpecialChar menuseparator
5319
5320 \bar under
5321 S
5322 \bar default
5323 ettings\SpecialChar menuseparator
5324 Document
5325 \begin_inset space ~
5326 \end_inset
5327
5328 Class
5329 \family default
5330  dialog (OK,
5331  that one was obvious).
5332 \end_layout
5333
5334 \begin_layout Itemize
5335 Don't change the 
5336 \family sans
5337 Headings
5338 \begin_inset space ~
5339 \end_inset
5340
5341
5342 \bar under
5343 s
5344 \bar default
5345 tyle
5346 \family default
5347  in the 
5348 \family sans
5349 Page
5350 \begin_inset space ~
5351 \end_inset
5352
5353 Layout
5354 \family default
5355  dialog:
5356  leave it set to 
5357 \family sans
5358 Default
5359 \family default
5360 .
5361  The whole layout is done by the macros,
5362  you shouldn't change anything.
5363 \end_layout
5364
5365 \begin_layout Subsubsection
5366 The header block
5367 \end_layout
5368
5369 \begin_layout Standard
5370 First thing to enter is the header information.
5371  It consists of seven entries,
5372  of which one is optional.
5373  They are
5374 \end_layout
5375
5376 \begin_layout Itemize
5377
5378 \family sans
5379 Title
5380 \family default
5381 :
5382  [required]
5383 \end_layout
5384
5385 \begin_layout Itemize
5386
5387 \family sans
5388 Subtitle
5389 \family default
5390 :
5391  [optional]
5392 \end_layout
5393
5394 \begin_layout Itemize
5395
5396 \family sans
5397 Author
5398 \family default
5399 :
5400  [required]
5401 \end_layout
5402
5403 \begin_layout Itemize
5404
5405 \family sans
5406 Address
5407 \family default
5408 :
5409  [required]
5410 \end_layout
5411
5412 \begin_layout Itemize
5413
5414 \family sans
5415 Offprints
5416 \family default
5417  [optional].
5418  Determines to whom correspondence and reprints are to be sent.
5419 \end_layout
5420
5421 \begin_layout Itemize
5422
5423 \family sans
5424 Mail
5425 \family default
5426  [optional] Snail mail address for contacts.
5427 \end_layout
5428
5429 \begin_layout Itemize
5430
5431 \family sans
5432 Date
5433 \family default
5434 :
5435  [required].
5436  Suggested format is 
5437 \family typewriter
5438 Received:
5439  <date>;
5440  Accepted <date>
5441 \end_layout
5442
5443 \begin_layout Standard
5444 There is no need to issue the 
5445 \family typewriter
5446
5447 \backslash
5448 maketitle
5449 \family default
5450  command,
5451  this is done automatically by \SpecialChar LyX
5452  when the header is finished.
5453  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
5454  just to get the best optics and meets the layout of the real document.
5455 \end_layout
5456
5457 \begin_layout Standard
5458 If you want to place footnotes in the header block,
5459  e.
5460 \begin_inset space \thinspace{}
5461 \end_inset
5462
5463 g.
5464 \begin_inset space \space{}
5465 \end_inset
5466
5467 to state your present address,
5468  just use the standard footnote via the menu 
5469 \family sans
5470 \bar under
5471 I
5472 \bar default
5473 nsert\SpecialChar menuseparator
5474
5475 \bar under
5476 F
5477 \bar default
5478 ootnote.
5479
5480 \family default
5481  \SpecialChar LyX
5482  will automagically use the term 
5483 \family typewriter
5484
5485 \backslash
5486 thanks{}
5487 \family default
5488  in that case.
5489 \end_layout
5490
5491 \begin_layout Standard
5492 Under 
5493 \family sans
5494 Edit\SpecialChar menuseparator
5495 Text Style
5496 \family default
5497 ,
5498  you'll find two insets which are relevant for the titling:
5499 \end_layout
5500
5501 \begin_layout Itemize
5502
5503 \family sans
5504 Institute
5505 \family typewriter
5506  
5507 \family default
5508 to mark corresponding author\SpecialChar breakableslash
5509 institute pairs.
5510  The institutes are numbered sequentially as they appear in the 
5511 \family sans
5512 Address
5513 \family default
5514  field,
5515  so you have to put a marker to each author.
5516 \end_layout
5517
5518 \begin_layout Itemize
5519
5520 \family sans
5521 Email
5522 \family default
5523  to supply an email address for fast contact.
5524 \end_layout
5525
5526 \begin_layout Standard
5527 In addition to these topics,
5528  the macros use one additional \SpecialChar LaTeX
5529  commands that has no counterpart in \SpecialChar LyX
5530 :
5531 \end_layout
5532
5533 \begin_layout Itemize
5534
5535 \family typewriter
5536
5537 \backslash
5538 and
5539 \family default
5540  to separate different names for more than one author and institute,
5541  respectively.
5542 \end_layout
5543
5544 \begin_layout Standard
5545 The appropriate command has to be entered as \SpecialChar TeX
5546  code in \SpecialChar LyX
5547 .
5548  See the examples in the template and in 
5549 \family sans
5550 File\SpecialChar menuseparator
5551 Open Example\SpecialChar menuseparator
5552 Articles\SpecialChar menuseparator
5553 Astronomy & Astrophysics
5554 \family default
5555 .
5556 \end_layout
5557
5558 \begin_layout Subsubsection
5559 The abstract
5560 \end_layout
5561
5562 \begin_layout Standard
5563 The abstract should immediately follow the header block.
5564  With version 5 the abstract environment was changed to a command,
5565  and there is now a restriction to only one paragraph.
5566  In addition,
5567  it should contain an entry with the keywords.
5568  This is done via the paragraph style 
5569 \family sans
5570 Keywords
5571 \family default
5572 .
5573  Refer to the example paper.
5574 \end_layout
5575
5576 \begin_layout Subsubsection
5577 Supported environments
5578 \end_layout
5579
5580 \begin_layout Standard
5581 The A&A paper layout supports the following environments for structuring your text:
5582 \end_layout
5583
5584 \begin_layout Standard
5585
5586 \family sans
5587 \begin_inset Flex Multiple Columns
5588 status open
5589
5590 \begin_layout Itemize
5591
5592 \family sans
5593 Standard
5594 \end_layout
5595
5596 \begin_layout Itemize
5597
5598 \family sans
5599 Section
5600 \end_layout
5601
5602 \begin_layout Itemize
5603
5604 \family sans
5605 Subsection
5606 \end_layout
5607
5608 \begin_layout Itemize
5609
5610 \family sans
5611 Subsubsection
5612 \end_layout
5613
5614 \begin_layout Itemize
5615
5616 \family sans
5617 Itemize
5618 \end_layout
5619
5620 \begin_layout Itemize
5621
5622 \family sans
5623 Enumerate
5624 \end_layout
5625
5626 \begin_layout Itemize
5627
5628 \family sans
5629 Description
5630 \end_layout
5631
5632 \begin_layout Itemize
5633
5634 \family sans
5635 Caption
5636 \end_layout
5637
5638 \begin_layout Itemize
5639
5640 \family sans
5641 Abstract
5642 \end_layout
5643
5644 \begin_layout Itemize
5645
5646 \family sans
5647 Acknowledgment
5648 \end_layout
5649
5650 \begin_layout Itemize
5651
5652 \family sans
5653 Bibliography
5654 \end_layout
5655
5656 \begin_layout Itemize
5657 LaTeX
5658 \end_layout
5659
5660 \end_inset
5661
5662
5663 \end_layout
5664
5665 \begin_layout Subsubsection
5666 Commands not supported by \SpecialChar LyX
5667
5668 \end_layout
5669
5670 \begin_layout Standard
5671 Some commands are not yet supported by the 
5672 \family sans
5673 Astronomy & Astrophysics
5674 \family default
5675  layout for \SpecialChar LyX
5676 .
5677  Some have already been mentioned.
5678  For the sake of completeness,
5679  they are listed all together here:
5680 \end_layout
5681
5682 \begin_layout Itemize
5683
5684 \family typewriter
5685
5686 \backslash
5687 and
5688 \end_layout
5689
5690 \begin_layout Itemize
5691
5692 \family typewriter
5693
5694 \backslash
5695 authorrunning
5696 \end_layout
5697
5698 \begin_layout Itemize
5699
5700 \family typewriter
5701
5702 \backslash
5703 object{}
5704 \end_layout
5705
5706 \begin_layout Itemize
5707
5708 \family typewriter
5709
5710 \backslash
5711 titlerunning{}
5712 \end_layout
5713
5714 \begin_layout Standard
5715 If you want to use any of these commands,
5716  you have to enter them yourself.
5717  Do not forget to use
5718 \family sans
5719  
5720 \bar under
5721 I
5722 \bar default
5723 nsert\SpecialChar menuseparator
5724 \SpecialChar TeX
5725
5726 \begin_inset space ~
5727 \end_inset
5728
5729 Code
5730 \family default
5731 !
5732 \end_layout
5733
5734 \begin_layout Subsubsection
5735 Figure and Table Floats
5736 \end_layout
5737
5738 \begin_layout Standard
5739 \SpecialChar LyX
5740  provides support for the necessary float environments 
5741 \family sans
5742 figure,
5743  figure*,
5744  table
5745 \family default
5746  and 
5747 \family sans
5748 table*
5749 \family default
5750 ,
5751  therefore we won't tell much about it here.
5752  Refer to the 
5753 \emph on
5754 User's
5755 \begin_inset space ~
5756 \end_inset
5757
5758 Guide
5759 \emph default
5760 .
5761  Just remember that tables should be left-aligned.
5762  For that,
5763  select the table and change the alignment in 
5764 \family sans
5765 \bar under
5766 E
5767 \bar default
5768 dit\SpecialChar menuseparator
5769
5770 \bar under
5771 P
5772 \bar default
5773 aragraph
5774 \begin_inset space ~
5775 \end_inset
5776
5777 Settings
5778 \family default
5779  (
5780 \begin_inset Info
5781 type  "icon"
5782 arg   "layout-paragraph"
5783 \end_inset
5784
5785 )
5786 \family sans
5787 .
5788 \end_layout
5789
5790 \begin_layout Standard
5791 There is only one special thing:
5792  the figures with a caption beside the figure.
5793  To create such a figure,
5794  you have to do the following:
5795 \end_layout
5796
5797 \begin_layout Enumerate
5798 Create a wide figure float:
5799  
5800 \family sans
5801 \bar under
5802 I
5803 \bar default
5804 nsert\SpecialChar menuseparator
5805 Flo
5806 \bar under
5807 a
5808 \bar default
5809 t\SpecialChar menuseparator
5810 Figure
5811 \family default
5812 ,
5813  then,
5814  from within the float,
5815  use the menu 
5816 \family sans
5817 \bar under
5818 E
5819 \bar default
5820 dit\SpecialChar menuseparator
5821 Flo
5822 \bar under
5823 a
5824 \bar default
5825 t
5826 \begin_inset space ~
5827 \end_inset
5828
5829 Settings
5830 \family default
5831  and check 
5832 \family sans
5833 \bar under
5834 S
5835 \bar default
5836 pan
5837 \begin_inset space ~
5838 \end_inset
5839
5840 columns
5841 \family default
5842  in the 
5843 \family sans
5844 float
5845 \family default
5846  dialog.
5847 \end_layout
5848
5849 \begin_layout Enumerate
5850 Enter your caption text.
5851 \end_layout
5852
5853 \begin_layout Enumerate
5854 Press 
5855 \family sans
5856 Return
5857 \family default
5858  to move the cursor above the caption.
5859 \end_layout
5860
5861 \begin_layout Enumerate
5862 Insert your figure
5863 \end_layout
5864
5865 \begin_layout Enumerate
5866 Position the cursor after the figure and insert a horizontal fill by using the menu:
5867  
5868 \family sans
5869 \bar under
5870 I
5871 \bar default
5872 nsert\SpecialChar menuseparator
5873 F
5874 \bar under
5875 o
5876 \bar default
5877 rmatting\SpecialChar menuseparator
5878 H
5879 \bar under
5880 o
5881 \bar default
5882 rizontal
5883 \begin_inset space ~
5884 \end_inset
5885
5886 Space
5887 \family default
5888  to open the 
5889 \family sans
5890 space
5891 \family default
5892  dialog and select the 
5893 \family sans
5894 Horizontal fill
5895 \family default
5896  option from the 
5897 \family sans
5898 \bar under
5899 S
5900 \bar default
5901 pacing
5902 \family default
5903  context menu.
5904 \end_layout
5905
5906 \begin_layout Enumerate
5907 Switch to \SpecialChar LaTeX
5908  mode:
5909  
5910 \family sans
5911 M-c
5912 \begin_inset space ~
5913 \end_inset
5914
5915 t
5916 \family default
5917 .
5918 \end_layout
5919
5920 \begin_layout Enumerate
5921 Enter 
5922 \family typewriter
5923
5924 \backslash
5925 parbox[b]{55mm}{
5926 \family default
5927  
5928 \emph on
5929 Do not close the brace!
5930 \end_layout
5931
5932 \begin_layout Enumerate
5933 Position the cursor behind the caption text,
5934  switch to \SpecialChar LaTeX
5935  mode and insert the closing brace:
5936  
5937 \family sans
5938 M-c
5939 \begin_inset space ~
5940 \end_inset
5941
5942 t
5943 \family default
5944  
5945 \family typewriter
5946 }
5947 \family default
5948 .
5949 \end_layout
5950
5951 \begin_layout Standard
5952 Also,
5953  refer to the figures in the file in 
5954 \family sans
5955 File\SpecialChar menuseparator
5956 Open Example\SpecialChar menuseparator
5957 Articles\SpecialChar menuseparator
5958 Astronomy & Astrophysics
5959 \family default
5960 .
5961 \end_layout
5962
5963 \begin_layout Subsubsection
5964 Referee layout
5965 \end_layout
5966
5967 \begin_layout Standard
5968 For submission,
5969  the paper has to be formatted in a special double-spacing layout.
5970  For this purpose,
5971  you have to add the option 
5972 \family typewriter
5973 referee
5974 \family default
5975  to the 
5976 \family sans
5977 Cus
5978 \bar under
5979 t
5980 \bar default
5981 om Class
5982 \begin_inset space ~
5983 \end_inset
5984
5985 options
5986 \family default
5987  in the 
5988 \family sans
5989 \bar under
5990 D
5991 \bar default
5992 ocument\SpecialChar menuseparator
5993
5994 \bar under
5995 S
5996 \bar default
5997 ettings\SpecialChar menuseparator
5998 Document
5999 \begin_inset space ~
6000 \end_inset
6001
6002 Class
6003 \family default
6004  dialog.
6005 \end_layout
6006
6007 \begin_layout Subsubsection
6008 The example paper
6009 \end_layout
6010
6011 \begin_layout Standard
6012 The example in 
6013 \family sans
6014 File\SpecialChar menuseparator
6015 Open Example\SpecialChar menuseparator
6016 Articles\SpecialChar menuseparator
6017 Astronomy & Astrophysics
6018 \family default
6019  was written with \SpecialChar LyX
6020 .
6021  It is the example paper from the original macro package,
6022  
6023 \family typewriter
6024 aa.dem
6025 \family default
6026  in the 
6027 \begin_inset CommandInset href
6028 LatexCommand href
6029 name "aa-package"
6030 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6031 literal "false"
6032
6033 \end_inset
6034
6035 ,
6036  but translated to \SpecialChar LyX
6037  using the older unstructured abstract type.
6038  Use it for inspiration,
6039  and compare the \SpecialChar LaTeX
6040  code in 
6041 \family typewriter
6042 aa.dem
6043 \family default
6044  with the \SpecialChar LyX
6045  way of writing.
6046 \end_layout
6047
6048 \begin_layout Subsection
6049 AAS\SpecialChar TeX
6050
6051 \end_layout
6052
6053 \begin_layout Standard
6054 by 
6055 \noun on
6056 Mike Ressler
6057 \end_layout
6058
6059 \begin_layout Subsubsection
6060 Introduction
6061 \end_layout
6062
6063 \begin_layout Standard
6064 AAS\SpecialChar TeX
6065  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
6066  the Astrophysical Journal (including the Letters and Supplement),
6067  the Astronomical Journal,
6068  and the Publications of the Astronomical Society of the Pacific.
6069  \SpecialChar LyX
6070  has proven to be an excellent tool for generating these documents,
6071  especially given its equation,
6072  citation,
6073  and figure handling capabilities.
6074  \SpecialChar LyX
6075  requires version 5.0 (or higher) of these macros;
6076  preferably 6.0,
6077  which is the version described here,
6078  or higher.
6079  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6080 2.09 and are fundamentally incompatible with \SpecialChar LyX
6081 .
6082  The AAS\SpecialChar TeX
6083  package may be downloaded from the AAS\SpecialChar TeX
6084  Web site
6085 \end_layout
6086
6087 \begin_layout Standard
6088 \begin_inset VSpace medskip
6089 \end_inset
6090
6091
6092 \end_layout
6093
6094 \begin_layout Standard
6095 \align center
6096 \begin_inset Flex URL
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100
6101 https://aas.org/aastex/aastex-downloads
6102 \end_layout
6103
6104 \end_inset
6105
6106
6107 \end_layout
6108
6109 \begin_layout Standard
6110 \begin_inset VSpace medskip
6111 \end_inset
6112
6113
6114 \end_layout
6115
6116 \begin_layout Standard
6117 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
6118 .
6119  \SpecialChar LyX
6120  will not reduce the need to figure out all the AAS\SpecialChar TeX
6121  commands,
6122  it will only reduce the drudgery of typing everything in.
6123  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6124  document conforms completely to the requirements of the journal to which you are submitting your paper.
6125 \end_layout
6126
6127 \begin_layout Subsubsection
6128 Starting a New Paper
6129 \end_layout
6130
6131 \begin_layout Standard
6132 I strongly suggest that you start with the AAS\SpecialChar TeX
6133  template file.
6134  Click on 
6135 \family sans
6136 File\SpecialChar menuseparator
6137 New from
6138 \family default
6139  
6140 \family sans
6141 Template\SpecialChar menuseparator
6142 Articles\SpecialChar menuseparator
6143 American Astronomical Society
6144 \family default
6145 .
6146  This will show the most common fields found in a manuscript.
6147  Simply overwrite the existing text (including the brackets,
6148  
6149 \family typewriter
6150 <>
6151 \family default
6152 ) with the correct information.
6153  Many of the AAS\SpecialChar TeX
6154  commands and environments can be implemented directly in \SpecialChar LyX
6155 ,
6156  but some cannot.
6157  For commands such as these,
6158  the \SpecialChar LaTeX
6159  code must be entered directly and marked as such.
6160  Such commands are referred to as \SpecialChar TeX
6161  code,
6162  or Evil Red Text.
6163  I tried to minimize the amount of \SpecialChar TeX
6164  code needed in an AAS\SpecialChar TeX
6165  document.
6166 \end_layout
6167
6168 \begin_layout Subsubsection
6169 Finishing Your Paper
6170 \end_layout
6171
6172 \begin_layout Standard
6173 When the paper is finished to your satisfaction and previews/prints correctly,
6174  there are a few 
6175 \begin_inset Quotes eld
6176 \end_inset
6177
6178 postprocessing
6179 \begin_inset Quotes erd
6180 \end_inset
6181
6182  actions which need to be done before you submit it to the journals.
6183  
6184 \end_layout
6185
6186 \begin_layout Enumerate
6187 Export your paper as a \SpecialChar LaTeX
6188  file (
6189 \family sans
6190 File\SpecialChar menuseparator
6191 Export\SpecialChar menuseparator
6192 \SpecialChar LaTeX
6193
6194 \family default
6195 ).
6196  
6197 \end_layout
6198
6199 \begin_layout Enumerate
6200 Edit the resulting 
6201 \family typewriter
6202 .tex
6203 \family default
6204  file with your favorite text editor
6205 \end_layout
6206
6207 \begin_deeper
6208 \begin_layout Enumerate
6209 remove the comment lines before the 
6210 \family typewriter
6211
6212 \backslash
6213 documentclass
6214 \family default
6215  command
6216 \end_layout
6217
6218 \begin_layout Enumerate
6219 remove the 
6220 \family typewriter
6221
6222 \backslash
6223 usepackage...{fontenc}
6224 \family default
6225  line if it appears (usually just after 
6226 \family typewriter
6227
6228 \backslash
6229 documentclass
6230 \family default
6231 };
6232  also remove the 
6233 \family typewriter
6234
6235 \backslash
6236 secnumdepth
6237 \family default
6238  line if it appears.
6239 \end_layout
6240
6241 \begin_layout Enumerate
6242 remove everything between (and including) the 
6243 \family typewriter
6244
6245 \backslash
6246 makeatletter
6247 \family default
6248  and 
6249 \family typewriter
6250
6251 \backslash
6252 makeatother
6253 \family default
6254  commands,
6255  except for any commands you specifically put into the \SpecialChar LaTeX
6256  preamble (which should appear immediately after the 
6257 \begin_inset Quotes eld
6258 \end_inset
6259
6260 User specified \SpecialChar LaTeX
6261  commands
6262 \begin_inset Quotes erd
6263 \end_inset
6264
6265  comment in the 
6266 \family typewriter
6267 .tex
6268 \family default
6269  file).
6270 \end_layout
6271
6272 \end_deeper
6273 \begin_layout Enumerate
6274 Run the resulting file through \SpecialChar LaTeX
6275  to make sure it still processes correctly.
6276 \end_layout
6277
6278 \begin_layout Enumerate
6279 Reread the journal requirements to make sure your filenames and formats are correct.
6280 \end_layout
6281
6282 \begin_layout Enumerate
6283 Submit it.
6284 \end_layout
6285
6286 \begin_layout Subsubsection
6287 Comments On Specific Commands
6288 \end_layout
6289
6290 \begin_layout Standard
6291 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6292  commands:
6293  the AAS\SpecialChar TeX
6294  User Guide (
6295 \family typewriter
6296 aasguide.tex
6297 \family default
6298 ) gives a good description of each.
6299  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
6300  So let's begin \SpecialChar ldots
6301
6302 \end_layout
6303
6304 \begin_layout Paragraph
6305 Things that work as expected
6306 \end_layout
6307
6308 \begin_layout Standard
6309 Because they work as you might expect,
6310  I simply list them and the section they are found in:
6311  
6312 \family typewriter
6313
6314 \backslash
6315 documentclass
6316 \family default
6317  (2.1.1),
6318  
6319 \family typewriter
6320
6321 \backslash
6322 begin{document}
6323 \family default
6324  (2.2),
6325  
6326 \family typewriter
6327
6328 \backslash
6329 title
6330 \family default
6331  (2.3),
6332  
6333 \family typewriter
6334
6335 \backslash
6336 author
6337 \family default
6338  (2.3),
6339  
6340 \family typewriter
6341
6342 \backslash
6343 affil
6344 \family default
6345  (2.3),
6346  
6347 \family typewriter
6348
6349 \backslash
6350 abstract
6351 \family default
6352  (2.4),
6353  
6354 \family typewriter
6355
6356 \backslash
6357 keywords
6358 \family default
6359  (2.5),
6360  
6361 \family typewriter
6362
6363 \backslash
6364 section
6365 \family default
6366  (2.7),
6367  
6368 \family typewriter
6369
6370 \backslash
6371 subsection
6372 \family default
6373  (2.7),
6374  
6375 \family typewriter
6376
6377 \backslash
6378 subsubsection
6379 \family default
6380  (2.7),
6381  
6382 \family typewriter
6383
6384 \backslash
6385 paragraph
6386 \family default
6387  (2.7),
6388  
6389 \family typewriter
6390
6391 \backslash
6392 facility
6393 \family default
6394  (2.10),
6395  
6396 \family typewriter
6397
6398 \backslash
6399 begin{displaymath}
6400 \family default
6401  (2.12),
6402  
6403 \family typewriter
6404
6405 \backslash
6406 begin{equation}
6407 \family default
6408  (2.12),
6409  
6410 \family typewriter
6411
6412 \backslash
6413 begin{eqnarray}
6414 \family default
6415  (2.12),
6416  
6417 \family typewriter
6418
6419 \backslash
6420 begin{mathletters}
6421 \family default
6422  (2.12),
6423  
6424 \family typewriter
6425
6426 \backslash
6427 begin{thebibliography}
6428 \family default
6429  (2.13.1),
6430  
6431 \family typewriter
6432
6433 \backslash
6434 bibitem
6435 \family default
6436  (2.13.2),
6437  all the cite commands and their variations (2.13.2),
6438  the generic graphicx figure commands (2.14.1),
6439  
6440 \family typewriter
6441
6442 \backslash
6443 begin{table}
6444 \family default
6445  (2.15.4),
6446  
6447 \family typewriter
6448
6449 \backslash
6450 begin{tabular}
6451 \family default
6452  (2.15.4),
6453  
6454 \family typewriter
6455
6456 \backslash
6457 caption
6458 \family default
6459  (2.15.4),
6460  
6461 \family typewriter
6462
6463 \backslash
6464 label
6465 \family default
6466  (2.15.4,
6467  amongst other places),
6468  
6469 \family typewriter
6470
6471 \backslash
6472 tablerefs
6473 \family default
6474  (2.15.5),
6475  
6476 \family typewriter
6477
6478 \backslash
6479 tablecomments
6480 \family default
6481  (2.15.5),
6482  
6483 \family typewriter
6484
6485 \backslash
6486 url
6487 \family default
6488  (2.17.4),
6489  
6490 \family typewriter
6491
6492 \backslash
6493 end{document}
6494 \family default
6495  (2.18).
6496 \end_layout
6497
6498 \begin_layout Standard
6499 The following style options also work correctly:
6500  
6501 \family typewriter
6502 longabstract
6503 \family default
6504  (2.4),
6505  
6506 \family typewriter
6507 preprint
6508 \family default
6509  (3.2.1),
6510  
6511 \family typewriter
6512 preprint2
6513 \family default
6514  (3.2.2),
6515  
6516 \family typewriter
6517 eqsecnum
6518 \family default
6519  (3.3),
6520  
6521 \family typewriter
6522 flushrt
6523 \family default
6524  (3.4).
6525  Simply put them in the 
6526 \family sans
6527 Options
6528 \family default
6529  box in 
6530 \family sans
6531 Layout\SpecialChar menuseparator
6532 Document
6533 \family default
6534 .
6535 \end_layout
6536
6537 \begin_layout Paragraph
6538 Things that work,
6539  but require more comment
6540 \end_layout
6541
6542 \begin_layout Standard
6543 The following items work,
6544  but require a little more discussion:
6545 \end_layout
6546
6547 \begin_layout Itemize
6548 These items are reserved for use by the journal editors,
6549  but you can put them into the \SpecialChar LaTeX
6550  preamble if you feel compelled to do so:
6551  
6552 \family typewriter
6553
6554 \backslash
6555 received
6556 \family default
6557 ,
6558  
6559 \family typewriter
6560
6561 \backslash
6562 revised
6563 \family default
6564 ,
6565  
6566 \family typewriter
6567
6568 \backslash
6569 accepted
6570 \family default
6571 ,
6572  
6573 \family typewriter
6574
6575 \backslash
6576 ccc
6577 \family default
6578 ,
6579  
6580 \family typewriter
6581
6582 \backslash
6583 cpright
6584 \family default
6585  (all from 2.1.3)
6586 \end_layout
6587
6588 \begin_layout Itemize
6589 These items may be placed in the \SpecialChar LaTeX
6590  preamble,
6591  and are included as blanks in the template file:
6592  
6593 \family typewriter
6594
6595 \backslash
6596 slugcomment
6597 \family default
6598  (2.1.4),
6599  
6600 \family typewriter
6601
6602 \backslash
6603 shorttitle
6604 \family default
6605  (2.1.5),
6606  
6607 \family typewriter
6608
6609 \backslash
6610 shortauthors
6611 \family default
6612  (2.1.5)
6613 \end_layout
6614
6615 \begin_layout Itemize
6616
6617 \family typewriter
6618
6619 \backslash
6620 email
6621 \family default
6622  (2.3) – can only be used 
6623 \begin_inset Quotes eld
6624 \end_inset
6625
6626 standalone
6627 \begin_inset Quotes erd
6628 \end_inset
6629
6630 ,
6631  not in the middle of a paragraph.
6632  Use \SpecialChar TeX
6633  code if you need to embed it.
6634 \end_layout
6635
6636 \begin_layout Itemize
6637
6638 \family typewriter
6639
6640 \backslash
6641 and
6642 \family default
6643  (2.3) – will have extra {} after it.
6644  This should not cause an error.
6645 \end_layout
6646
6647 \begin_layout Itemize
6648
6649 \family typewriter
6650
6651 \backslash
6652 notetoeditor
6653 \family default
6654  (2.6) – can only be used 
6655 \begin_inset Quotes eld
6656 \end_inset
6657
6658 standalone
6659 \begin_inset Quotes erd
6660 \end_inset
6661
6662 ,
6663  not in the middle of a paragraph.
6664  Use \SpecialChar TeX
6665  code if you need to embed it.
6666 \end_layout
6667
6668 \begin_layout Itemize
6669
6670 \family typewriter
6671
6672 \backslash
6673 placetable
6674 \family default
6675  (2.8) – can't insert a cross-reference tag,
6676  you must type the tag name by hand
6677 \end_layout
6678
6679 \begin_layout Itemize
6680
6681 \family typewriter
6682
6683 \backslash
6684 placefigure
6685 \family default
6686  (2.8) – same as for 
6687 \family typewriter
6688
6689 \backslash
6690 placetable
6691 \end_layout
6692
6693 \begin_layout Itemize
6694
6695 \family typewriter
6696
6697 \backslash
6698 acknowledgements
6699 \family default
6700  (2.9) – will have extra {} after it.
6701  This should not cause an error.
6702 \end_layout
6703
6704 \begin_layout Itemize
6705
6706 \family typewriter
6707
6708 \backslash
6709 appendix
6710 \family default
6711  (2.11) – will have extra {} after it.
6712  This should not cause an error.
6713 \end_layout
6714
6715 \begin_layout Itemize
6716
6717 \family typewriter
6718
6719 \backslash
6720 figcaption
6721 \family default
6722  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
6723 \family sans
6724 Insert\SpecialChar menuseparator
6725 Short Title
6726 \family default
6727 .
6728  
6729 \begin_inset Quotes eld
6730 \end_inset
6731
6732 Short Title
6733 \begin_inset Quotes erd
6734 \end_inset
6735
6736  inserts an optional argument of the type needed by 
6737 \family typewriter
6738
6739 \backslash
6740 figcaption
6741 \family default
6742 .
6743  Hopefully it will be renamed someday.
6744 \end_layout
6745
6746 \begin_layout Itemize
6747
6748 \family typewriter
6749
6750 \backslash
6751 objectname
6752 \family default
6753  (2.17.1) – same as 
6754 \family typewriter
6755
6756 \backslash
6757 figcaption
6758 \family default
6759  for the catalog ID optional parameter
6760 \end_layout
6761
6762 \begin_layout Itemize
6763
6764 \family typewriter
6765
6766 \backslash
6767 dataset
6768 \family default
6769  (2.17.1) – same as 
6770 \family typewriter
6771
6772 \backslash
6773 figcaption
6774 \family default
6775  for the catalog ID optional parameter
6776 \end_layout
6777
6778 \begin_layout Paragraph
6779 Things not implemented,
6780  use \SpecialChar TeX
6781  code
6782 \end_layout
6783
6784 \begin_layout Standard
6785
6786 \family typewriter
6787
6788 \backslash
6789 eqnum
6790 \family default
6791  (2.12),
6792  
6793 \family typewriter
6794
6795 \backslash
6796 setcounter{equation}
6797 \family default
6798  (2.12),
6799  Journal name abbreviations (2.13.4),
6800  
6801 \family typewriter
6802
6803 \backslash
6804 figurenum
6805 \family default
6806  (2.14.1),
6807  
6808 \family typewriter
6809
6810 \backslash
6811 epsscale
6812 \family default
6813  (2.14.1),
6814  
6815 \family typewriter
6816
6817 \backslash
6818 plotone
6819 \family default
6820  (2.14.1),
6821  
6822 \family typewriter
6823
6824 \backslash
6825 plottwo
6826 \family default
6827  (2.14.1),
6828  
6829 \family typewriter
6830
6831 \backslash
6832 tablenum
6833 \family default
6834  (2.15.4),
6835  
6836 \family typewriter
6837
6838 \backslash
6839 tableline
6840 \family default
6841  (2.15.4,
6842  insert it as the first element in the lefthand cell after where you want it.
6843  Don't use any of \SpecialChar LyX
6844 's rules in the table),
6845  
6846 \family typewriter
6847
6848 \backslash
6849 tablenotemark
6850 \family default
6851  (2.15.5),
6852  
6853 \family typewriter
6854
6855 \backslash
6856 tablenotetext
6857 \family default
6858  (2.15.5),
6859  much of Misc (2.17,
6860  except 
6861 \family typewriter
6862
6863 \backslash
6864 objectname
6865 \family default
6866 ,
6867  
6868 \family typewriter
6869
6870 \backslash
6871 dataset
6872 \family default
6873 ,
6874  
6875 \family typewriter
6876
6877 \backslash
6878 url
6879 \family default
6880 ,
6881  and 
6882 \family typewriter
6883
6884 \backslash
6885 email
6886 \family default
6887 ;
6888  see above),
6889  
6890 \family typewriter
6891
6892 \backslash
6893 singlespace
6894 \family default
6895  (3.1),
6896  
6897 \family typewriter
6898
6899 \backslash
6900 doublespace
6901 \family default
6902  (3.1),
6903  
6904 \family typewriter
6905
6906 \backslash
6907 onecolumn
6908 \family default
6909  (3.2),
6910  
6911 \family typewriter
6912
6913 \backslash
6914 twocolumn
6915 \family default
6916  (3.2)
6917 \end_layout
6918
6919 \begin_layout Paragraph
6920 Things that cannot be implemented
6921 \end_layout
6922
6923 \begin_layout Standard
6924 \SpecialChar ldots
6925  at least in any meaningful sort of way,
6926  so I suggest ignoring them.
6927  They are the references environment (2.13.3),
6928  and the deluxetable environment (2.15).
6929  If you really,
6930  really need to use deluxetable,
6931  I suggest editing it in a separate file with a text editor,
6932  then using 
6933 \family sans
6934 Insert\SpecialChar menuseparator
6935 Child
6936 \begin_inset space ~
6937 \end_inset
6938
6939 Document
6940 \family default
6941  to include it in your \SpecialChar LyX
6942  document.
6943  See 
6944 \family sans
6945 File\SpecialChar menuseparator
6946 Open Example\SpecialChar menuseparator
6947 Articles\SpecialChar menuseparator
6948 American Astronomical Society
6949 \family default
6950  for an example of this.
6951 \end_layout
6952
6953 \begin_layout Subsubsection
6954 FAQs,
6955  Tips,
6956  Tricks,
6957  and Other Ruminations
6958 \end_layout
6959
6960 \begin_layout Paragraph
6961 Getting \SpecialChar LyX
6962  and AAS\SpecialChar TeX
6963  to cooperate
6964 \end_layout
6965
6966 \begin_layout Standard
6967 It can be a bit tricky to get \SpecialChar LyX
6968  to recognize a new layout and document class.
6969  When all else fails,
6970  do this:
6971 \end_layout
6972
6973 \begin_layout Enumerate
6974 Make certain that \SpecialChar LaTeX
6975  can find AAS\SpecialChar TeX
6976 .
6977  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6978  distribution into a directory completely unrelated to \SpecialChar LaTeX
6979  or AAS\SpecialChar TeX
6980  and run \SpecialChar LaTeX
6981  on 
6982 \family typewriter
6983 sample.tex
6984 \family default
6985 .
6986 \end_layout
6987
6988 \begin_layout Enumerate
6989 Make certain that 
6990 \family typewriter
6991 aastex63.layout
6992 \family default
6993  appears in \SpecialChar LyX
6994 's 
6995 \family typewriter
6996 layouts
6997 \family default
6998  folder
6999 \end_layout
7000
7001 \begin_layout Enumerate
7002 Rerun 
7003 \family sans
7004 Tools\SpecialChar menuseparator
7005 Reconfigure
7006 \family default
7007  in \SpecialChar LyX
7008 ,
7009  then restart \SpecialChar LyX
7010 .
7011 \end_layout
7012
7013 \begin_layout Enumerate
7014 Open a regular new file,
7015  not from a template.
7016  Does 
7017 \family sans
7018 American Astronomical Society (AASTeX V.
7019 \begin_inset space \thinspace{}
7020 \end_inset
7021
7022 6.3.1)
7023 \family default
7024  appear in the class list in 
7025 \family sans
7026 Document\SpecialChar menuseparator
7027 Settings
7028 \family default
7029 ?
7030 \end_layout
7031
7032 \begin_layout Standard
7033 If you get a warning from an existing AAS\SpecialChar TeX
7034  document about not being able to find the AAS\SpecialChar TeX
7035  layout or a message about 
7036 \begin_inset Quotes eld
7037 \end_inset
7038
7039 You should not mix title layouts with normal ones
7040 \begin_inset Quotes erd
7041 \end_inset
7042
7043 ,
7044  things haven't been installed correctly.
7045 \end_layout
7046
7047 \begin_layout Paragraph
7048 \SpecialChar LaTeX
7049  error processing a table 
7050 \end_layout
7051
7052 \begin_layout Standard
7053 \SpecialChar LyX
7054 ,
7055  by default,
7056  attempts to center the table caption/title.
7057  This seems to produce a bad interaction in AAS\SpecialChar TeX
7058  so you should click somewhere in the caption/title,
7059  then select 
7060 \family sans
7061 Edit\SpecialChar menuseparator
7062 Paragraph
7063 \begin_inset space ~
7064 \end_inset
7065
7066 Settings
7067 \family default
7068 ,
7069  then set the 
7070 \family sans
7071 Alignment
7072 \family default
7073  to 
7074 \family sans
7075 Block
7076 \family default
7077 .
7078  This took care of it for me.
7079 \end_layout
7080
7081 \begin_layout Paragraph
7082 References
7083 \end_layout
7084
7085 \begin_layout Standard
7086 A couple of things:
7087  
7088 \end_layout
7089
7090 \begin_layout Enumerate
7091 I have noticed some funny spacing in the reference entries in the text.
7092  When you enter the bibliography item data,
7093  make sure their is 
7094 \emph on
7095 no
7096 \emph default
7097  space between the last author and the parenthesis setting off the year;
7098  
7099 \emph on
7100 e.
7101 \begin_inset space \thinspace{}
7102 \end_inset
7103
7104 g.
7105 \begin_inset space \space{}
7106 \end_inset
7107
7108
7109 \emph default
7110 type 
7111 \family typewriter
7112 Ressler(1992)
7113 \family default
7114 ,
7115  not 
7116 \family typewriter
7117 Ressler (1992)
7118 \family default
7119 .
7120  
7121 \end_layout
7122
7123 \begin_layout Enumerate
7124 Entering the references at all is not obvious.
7125  The easiest thing is to start typing your first reference at the end of the document,
7126  then mark it as type 
7127 \family sans
7128 References
7129 \family default
7130 .
7131  That will put a small gray box in front of what you just typed.
7132  Click on the box to fill in the rest of the information.
7133  For new references,
7134  go to the end of an existing reference and press return.
7135  That will create a new line with its own box,
7136  etc.
7137 \end_layout
7138
7139 \begin_layout Paragraph
7140 Including EPS files
7141 \end_layout
7142
7143 \begin_layout Standard
7144 Even though AAS\SpecialChar TeX
7145  provides its own figure commands (
7146 \family typewriter
7147
7148 \backslash
7149 plotone
7150 \family default
7151 ,
7152  for example),
7153  I much prefer \SpecialChar LaTeX
7154 's standard figure commands (with the default graphicx).
7155  You can insert the 
7156 \family typewriter
7157
7158 \backslash
7159 plotone
7160 \family default
7161 ,
7162  etc.
7163 \begin_inset space ~
7164 \end_inset
7165
7166 commands as \SpecialChar TeX
7167  code into a Figure Float box if you desire,
7168  but I never have much luck getting the layout right.
7169  With the standard graphics,
7170  \SpecialChar LyX
7171  will insert a 
7172 \family typewriter
7173
7174 \backslash
7175 usepackage{graphicx}
7176 \family default
7177  command into the \SpecialChar LaTeX
7178  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7179  way,
7180  interspersing the figures in the text.
7181  I believe ApJ accepts figures exactly this way now;
7182  AJ might still use the 
7183 \begin_inset Quotes eld
7184 \end_inset
7185
7186 stack everything at the end
7187 \begin_inset Quotes erd
7188 \end_inset
7189
7190  technique.
7191 \end_layout
7192
7193 \begin_layout Paragraph
7194 Things I could have done,
7195  but didn't
7196 \end_layout
7197
7198 \begin_layout Standard
7199 There are a few 
7200 \begin_inset Quotes eld
7201 \end_inset
7202
7203 pretty
7204 \begin_inset Quotes erd
7205 \end_inset
7206
7207  things I could have implemented,
7208  but chose not to.
7209  For instance,
7210  I saw no point in double-spacing the text in the \SpecialChar LyX
7211  window,
7212  even though it is double-spaced in the paper manuscript.
7213  Also,
7214  I chose not to make separate layouts for the preprint and preprint2 styles.
7215  Since I assume you will spend most of your time in the plain manuscript mode anyway,
7216  I decided not to chew up more disk space with this.
7217  
7218 \end_layout
7219
7220 \begin_layout Subsubsection
7221 Final Caveat
7222 \end_layout
7223
7224 \begin_layout Standard
7225 Your mileage may vary.
7226  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
7227 ;
7228  the last 2% was the \SpecialChar LaTeX
7229  post-processing and a few cleanups.
7230  I have had no trouble with the submission process,
7231  and I'm sure the journals were never aware that there might be a difference.
7232  So,
7233  go forth and publish!
7234 \end_layout
7235
7236 \begin_layout Subsection
7237 Chess
7238 \end_layout
7239
7240 \begin_layout Standard
7241 The document class 
7242 \family sans
7243 Chess
7244 \family default
7245  uses the standard article document class together with the package 
7246 \family sans
7247 lyxskak
7248 \family default
7249  to facilitate the description of chess games.
7250  See 
7251 \family sans
7252 File\SpecialChar menuseparator
7253 Open Example\SpecialChar menuseparator
7254 Articles\SpecialChar menuseparator
7255 Chess
7256 \family default
7257  where you will find 
7258 \family sans
7259 Game 1
7260 \family default
7261  and 
7262 \family sans
7263 Game 2
7264 \family default
7265 .
7266 \end_layout
7267
7268 \begin_layout Subsection
7269 Elsevier
7270 \end_layout
7271
7272 \begin_layout Standard
7273 The document class 
7274 \family sans
7275 Elsevier
7276 \family default
7277  provides support for the 
7278 \family typewriter
7279 elsarticle
7280 \family default
7281  \SpecialChar LaTeX
7282  class for journals in the Elsevier publishing house.
7283  This provides the following additional environments:
7284  
7285 \family sans
7286 Title
7287 \begin_inset space ~
7288 \end_inset
7289
7290 footnote
7291 \family default
7292 ,
7293  
7294 \family sans
7295 Author
7296 \begin_inset space ~
7297 \end_inset
7298
7299 footnote
7300 \family default
7301 ,
7302  
7303 \family sans
7304 Corresponding
7305 \begin_inset space ~
7306 \end_inset
7307
7308 author
7309 \family default
7310 ,
7311  
7312 \family sans
7313 Address
7314 \family default
7315 ,
7316  
7317 \family sans
7318 Email
7319 \family default
7320  and 
7321 \family sans
7322 Keywords
7323 \family default
7324 .
7325 \end_layout
7326
7327 \begin_layout Standard
7328 A template is available in the menu 
7329 \family sans
7330 \bar under
7331 F
7332 \bar default
7333 ile\SpecialChar menuseparator
7334 New
7335 \begin_inset space ~
7336 \end_inset
7337
7338 fro
7339 \bar under
7340 m
7341 \bar default
7342
7343 \begin_inset space ~
7344 \end_inset
7345
7346 Template\SpecialChar menuseparator
7347 Articles\SpecialChar menuseparator
7348 Elsevier
7349 \family default
7350 .
7351  It has been customized with further environments and contains all the information you may need.
7352  However,
7353  the documentation is also available from 
7354 \begin_inset CommandInset href
7355 LatexCommand href
7356 name "CTAN"
7357 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7358 literal "false"
7359
7360 \end_inset
7361
7362 .
7363 \end_layout
7364
7365 \begin_layout Subsection
7366 Paper
7367 \end_layout
7368
7369 \begin_layout Standard
7370 The document class 
7371 \family sans
7372 Paper (Standard Class)
7373 \family default
7374  provides an alternative to the 
7375 \family sans
7376 Article (Standard Class)
7377 \family default
7378  document class.
7379  It provides similar functionality,
7380  but you might prefer this layout with sans serif sections,
7381  headings,
7382  and more.
7383 \end_layout
7384
7385 \begin_layout Subsection
7386 Rev\SpecialChar TeX
7387 4
7388 \end_layout
7389
7390 \begin_layout Standard
7391 by 
7392 \noun on
7393 Amir Karger
7394 \end_layout
7395
7396 \begin_layout Standard
7397 \begin_inset VSpace bigskip
7398 \end_inset
7399
7400
7401 \end_layout
7402
7403 \begin_layout Standard
7404 \noindent
7405 The 
7406 \family sans
7407 RevTeX (V.
7408 \begin_inset space \thinspace{}
7409 \end_inset
7410
7411 4)
7412 \family default
7413  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7414  4.0 (the 
7415 \begin_inset Formula $\beta$
7416 \end_inset
7417
7418  release of May,
7419  1999) class.
7420 \end_layout
7421
7422 \begin_layout Standard
7423 \SpecialChar LyX
7424  has a 
7425 \family sans
7426 REVTeX (obsolete)
7427 \family default
7428  textclass,
7429  which works with Rev\SpecialChar TeX
7430  3.1.
7431  However,
7432  v3.1 is basically obsolete,
7433  as it works with \SpecialChar LaTeX
7434  2.09.
7435  That means that it doesn't interact very well with \SpecialChar LyX
7436 ,
7437  which requires \SpecialChar LaTeX2e
7438 ,
7439  although it has been kludged to work.
7440  Since Rev\SpecialChar TeX
7441  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7442 ,
7443  \SpecialChar LyX
7444  with the 
7445 \family sans
7446 Revtex
7447 \begin_inset space ~
7448 \end_inset
7449
7450 4TeX (V.
7451 \begin_inset space \thinspace{}
7452 \end_inset
7453
7454 4)
7455 \family default
7456  textclass should also be pretty easy to use.
7457 \end_layout
7458
7459 \begin_layout Standard
7460 These documents are supposed to be used in 
7461 \emph on
7462 addition
7463 \emph default
7464  to the Rev\SpecialChar TeX
7465  4.0 documents,
7466  so we don't describe any of the special Rev\SpecialChar TeX
7467  macros,
7468  and assume you'll know what to put in the preamble if necessary.
7469 \end_layout
7470
7471 \begin_layout Subsubsection
7472 Installation
7473 \end_layout
7474
7475 \begin_layout Standard
7476 All you need to do is install Rev\SpecialChar TeX
7477  4,
7478  as described in the package's README file.
7479  The package can be found at The Rev\SpecialChar TeX
7480  4 Web Site 
7481 \begin_inset Flex URL
7482 status collapsed
7483
7484 \begin_layout Plain Layout
7485
7486 http://publish.aps.org/revtex4/
7487 \end_layout
7488
7489 \end_inset
7490
7491 .
7492  Install it somewhere that \SpecialChar LaTeX
7493  can see it.
7494  Test it by trying to \SpecialChar LaTeX
7495  a short Rev\SpecialChar TeX
7496  4 document in some random directory (i.
7497 \begin_inset space \thinspace{}
7498 \end_inset
7499
7500 e.
7501 \begin_inset space \space{}
7502 \end_inset
7503
7504 not the directory where you installed the class file.) Then,
7505  if you reconfigure \SpecialChar LyX
7506 ,
7507  it will find the class file and let you use the Rev\SpecialChar TeX
7508 4 textclass.
7509 \end_layout
7510
7511 \begin_layout Standard
7512 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7513  4 document using 
7514 \family typewriter
7515 tex2lyx
7516 \family default
7517 ,
7518  or to use the 
7519 \family sans
7520 Revtex
7521 \begin_inset space ~
7522 \end_inset
7523
7524 4
7525 \family default
7526  template,
7527  found in 
7528 \family sans
7529 File\SpecialChar menuseparator
7530 New From Templates\SpecialChar menuseparator
7531 Articles
7532 \family default
7533 .
7534 \end_layout
7535
7536 \begin_layout Subsubsection
7537 Preamble Matter
7538 \end_layout
7539
7540 \begin_layout Standard
7541 Optional arguments to 
7542 \family typewriter
7543
7544 \backslash
7545 documentclass
7546 \family default
7547 ,
7548  like 
7549 \begin_inset Quotes eld
7550 \end_inset
7551
7552 preprint
7553 \begin_inset Quotes erd
7554 \end_inset
7555
7556  and 
7557 \begin_inset Quotes eld
7558 \end_inset
7559
7560 aps
7561 \begin_inset Quotes erd
7562 \end_inset
7563
7564 ,
7565  go in the 
7566 \family sans
7567 Extra
7568 \begin_inset space ~
7569 \end_inset
7570
7571 Options
7572 \family default
7573  field in the 
7574 \family sans
7575 Document
7576 \begin_inset space ~
7577 \end_inset
7578
7579 Layout
7580 \family default
7581  dialog,
7582  as usual.
7583  Remember that in Rev\SpecialChar TeX
7584 ,
7585  at least one optional argument is required!
7586  
7587 \end_layout
7588
7589 \begin_layout Standard
7590 Other preamble matter,
7591  like 
7592 \family typewriter
7593
7594 \backslash
7595 draft
7596 \family default
7597  etc.
7598 \begin_inset space ~
7599 \end_inset
7600
7601 goes in the 
7602 \family sans
7603 \SpecialChar LaTeX
7604
7605 \begin_inset space ~
7606 \end_inset
7607
7608 Preamble
7609 \family default
7610  dialog,
7611  also as usual.
7612 \end_layout
7613
7614 \begin_layout Subsubsection
7615 Layouts
7616 \end_layout
7617
7618 \begin_layout Standard
7619 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7620 4.0.
7621  For example,
7622  the Email layout corresponds to 
7623 \family typewriter
7624
7625 \backslash
7626 email{}
7627 \family default
7628 .
7629  Note that (at least as of Rev\SpecialChar TeX
7630  4.0 Beta),
7631  the 
7632 \family sans
7633 Address
7634 \family default
7635  and 
7636 \family sans
7637 Affiliation
7638 \family default
7639  layouts are exactly equivalent,
7640  so you shouldn't need to use both.
7641 \begin_inset Foot
7642 status collapsed
7643
7644 \begin_layout Plain Layout
7645 In case you're curious,
7646  both were included so that 
7647 \family typewriter
7648 tex2lyx
7649 \family default
7650  would be able to translate both 
7651 \family typewriter
7652
7653 \backslash
7654 address
7655 \family default
7656  and 
7657 \family typewriter
7658
7659 \backslash
7660 affiliation
7661 \family default
7662 .
7663 \end_layout
7664
7665 \end_inset
7666
7667
7668 \end_layout
7669
7670 \begin_layout Subsubsection
7671 Important Notes
7672 \end_layout
7673
7674 \begin_layout Standard
7675 There are a couple of important unique aspects of Rev\SpecialChar TeX
7676  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
7677 .
7678 \end_layout
7679
7680 \begin_layout Standard
7681 In Rev\SpecialChar TeX
7682 ,
7683  the 
7684 \family typewriter
7685
7686 \backslash
7687 thanks
7688 \family default
7689  command goes 
7690 \emph on
7691 outside
7692 \emph default
7693  the 
7694 \family typewriter
7695
7696 \backslash
7697 author
7698 \family default
7699  command.
7700  The \SpecialChar LyX
7701  equivalent is that there is a separate Thanks layout.
7702  Do 
7703 \emph on
7704 not
7705 \emph default
7706  write footnotes in the 
7707 \family sans
7708 Author
7709 \family default
7710  layout,
7711  or weird things may happen.
7712  See the Rev\SpecialChar TeX
7713  4 documentation for more details.
7714 \end_layout
7715
7716 \begin_layout Standard
7717 Also,
7718  the 
7719 \family sans
7720 Author
7721 \begin_inset space ~
7722 \end_inset
7723
7724 Email
7725 \family default
7726 ,
7727  
7728 \family sans
7729 Author
7730 \begin_inset space ~
7731 \end_inset
7732
7733 URL
7734 \family default
7735 ,
7736  and 
7737 \family sans
7738 Thanks
7739 \family default
7740  layouts must be placed 
7741 \emph on
7742 in between
7743 \emph default
7744  the 
7745 \family sans
7746 Author
7747 \family default
7748  layout and the corresponding 
7749 \family sans
7750 Address
7751 \family default
7752  (or equivalent 
7753 \family sans
7754 Affiliation
7755 \family default
7756 ) layout.
7757  If you put the 
7758 \family sans
7759 Thanks
7760 \family default
7761  after the 
7762 \family sans
7763 Address
7764 \family default
7765 ,
7766  the \SpecialChar LaTeX
7767  won't compile.
7768 \end_layout
7769
7770 \begin_layout Subsection
7771 Springer Journals
7772 \end_layout
7773
7774 \begin_layout Standard
7775 All the 
7776 \family sans
7777 svj*
7778 \family default
7779  classes were replaced with a completely new class,
7780  
7781 \family sans
7782 sn-jnl.cls
7783 \family default
7784 .
7785  Please find information at 
7786 \begin_inset Flex URL
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790
7791 https://www.springernature.com/gp/authors/campaigns/latex-author-support
7792 \end_layout
7793
7794 \end_inset
7795
7796 .
7797  Native \SpecialChar LyX
7798  support is not available yet.
7799 \end_layout
7800
7801 \begin_layout Section
7802 Books
7803 \end_layout
7804
7805 \begin_layout Standard
7806 See also the document classes in the Collections (section
7807 \begin_inset space ~
7808 \end_inset
7809
7810
7811 \begin_inset CommandInset ref
7812 LatexCommand ref
7813 reference "sec:Collections"
7814 nolink "false"
7815
7816 \end_inset
7817
7818 ).
7819 \end_layout
7820
7821 \begin_layout Subsection
7822 Memoir
7823 \end_layout
7824
7825 \begin_layout Standard
7826 By 
7827 \noun on
7828 Jürgen Spitzmüller
7829 \end_layout
7830
7831 \begin_layout Subsubsection
7832 Overview
7833 \end_layout
7834
7835 \begin_layout Standard
7836 Memoir is a very powerful and constantly evolving class.
7837  It has been designed with regard to fictional and non-fictional literature.
7838  Its aim is to let the user have maximum control over the typesetting of his document.
7839  Memoir is based on the standard book class,
7840  but it can also emulate the article class (see below).
7841 \end_layout
7842
7843 \begin_layout Standard
7844 Peter Wilson,
7845  the developer of Memoir,
7846  is known as the author of lots of useful packages in the \SpecialChar LaTeX
7847  world.
7848  Most of them have been merged with Memoir.
7849  Therefore,
7850  it is much easier to layout the table of contents,
7851  appendices,
7852  chapter designs and such.
7853  \SpecialChar LyX
7854 ,
7855  though,
7856  does not support all of these goodies natively.
7857  Some of them might be added to forthcoming releases
7858 \begin_inset Foot
7859 status collapsed
7860
7861 \begin_layout Plain Layout
7862 You are invited to send suggestions to 
7863 \begin_inset Flex URL
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867
7868 lyx-devel@lists.lyx.org
7869 \end_layout
7870
7871 \end_inset
7872
7873 .
7874 \end_layout
7875
7876 \end_inset
7877
7878 ,
7879  lots will probably never be supported,
7880  due to the limitations of \SpecialChar LyX
7881 's framework.
7882  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7883  commands (\SpecialChar TeX
7884  code
7885 \begin_inset Foot
7886 status collapsed
7887
7888 \begin_layout Plain Layout
7889 Cf.
7890 \begin_inset ERT
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894
7895
7896 \backslash
7897  
7898 \end_layout
7899
7900 \end_inset
7901
7902 section
7903 \begin_inset space ~
7904 \end_inset
7905
7906
7907 \begin_inset CommandInset ref
7908 LatexCommand ref
7909 reference "sec:Inserting-TeX-Code"
7910 nolink "false"
7911
7912 \end_inset
7913
7914  for details.
7915 \end_layout
7916
7917 \end_inset
7918
7919 ).
7920  In this section,
7921  we can only list those features that are natively supported by \SpecialChar LyX
7922 .
7923  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
7924 \begin_inset Foot
7925 status collapsed
7926
7927 \begin_layout Plain Layout
7928 Cf.
7929 \begin_inset ERT
7930 status collapsed
7931
7932 \begin_layout Plain Layout
7933
7934
7935 \backslash
7936  
7937 \end_layout
7938
7939 \end_inset
7940
7941
7942 \begin_inset Flex URL
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946
7947 CTAN:/macros/latex/memoir/memman.pdf
7948 \end_layout
7949
7950 \end_inset
7951
7952 .
7953 \end_layout
7954
7955 \end_inset
7956
7957 ,
7958  which is not only a user guide for the class,
7959  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
7960 \end_layout
7961
7962 \begin_layout Subsubsection
7963 Basic features and restrictions
7964 \end_layout
7965
7966 \begin_layout Standard
7967 Memoir supports basically all features of the standard book classes.
7968  There are,
7969  however,
7970  some differences,
7971  as follows:
7972 \end_layout
7973
7974 \begin_layout Description
7975 Font
7976 \begin_inset space ~
7977 \end_inset
7978
7979 sizes:
7980  Memoir has a broader range of font sizes:
7981  9,
7982  10,
7983  11,
7984  12,
7985  14,
7986  17
7987 \end_layout
7988
7989 \begin_layout Description
7990 Page
7991 \begin_inset space ~
7992 \end_inset
7993
7994 style:
7995  The fancy page style is not supported,
7996  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
7997  which confuses \SpecialChar LaTeX
7998 ).
7999  Instead,
8000  Memoir comes with a number of its own page styles (see 
8001 \family sans
8002 Document\SpecialChar menuseparator
8003 Settings\SpecialChar menuseparator
8004 Page
8005 \begin_inset space ~
8006 \end_inset
8007
8008 Style
8009 \family default
8010 ).
8011  If you want to use these for the chapter pages,
8012  you have to use the command 
8013 \family typewriter
8014
8015 \backslash
8016 chapterstyle
8017 \family default
8018  in the main text or in preamble (e.
8019 \begin_inset space \thinspace{}
8020 \end_inset
8021
8022 g.
8023 \begin_inset space \space{}
8024 \end_inset
8025
8026
8027 \family typewriter
8028
8029 \backslash
8030 chapterstyle{companion}
8031 \family default
8032 ).
8033 \end_layout
8034
8035 \begin_layout Description
8036 Sectioning:
8037  Sectionings (chapter,
8038  section,
8039  subsection etc.) come with an optional argument in the standard classes.
8040  With this,
8041  you can specify an alternative version of the title for the table of contents and the headers (for instance,
8042  if the title is too long).
8043  In \SpecialChar LyX
8044 ,
8045  you can do this via 
8046 \family sans
8047 Insert\SpecialChar menuseparator
8048 Short
8049 \begin_inset space ~
8050 \end_inset
8051
8052 Title
8053 \family default
8054  at the beginning of a chapter/section.
8055  Memoir features a second optional argument and thus separates the table of contents from the header.
8056  You can define three variants of a title with this:
8057  one for the main text,
8058  one for the table of contents,
8059  and one for the headers.
8060  \SpecialChar LyX
8061  makes these available in form of specific 
8062 \family sans
8063 Short Title
8064 \family default
8065  variants in the 
8066 \family sans
8067 Insert
8068 \family default
8069  menu.
8070 \end_layout
8071
8072 \begin_layout Description
8073 TOC/LOT/LOF:
8074  In the standard classes (and in many other classes),
8075  the table of contents,
8076  the list of figures and the list of table start a new page automatically.
8077  Memoir does not follow this route.
8078  You have to insert a page break yourself,
8079  if you want to have one.
8080 \end_layout
8081
8082 \begin_layout Description
8083 Titlepage:
8084  For some unknown reason,
8085  Memoir uses pagination on the title page (in the standard classes,
8086  title pages are 
8087 \begin_inset Quotes eld
8088 \end_inset
8089
8090 empty
8091 \begin_inset Quotes erd
8092 \end_inset
8093
8094 ).
8095  If you want an empty title page,
8096  type 
8097 \family typewriter
8098
8099 \backslash
8100 aliaspagestyle{title}{empty}
8101 \family default
8102  in the preamble.
8103 \end_layout
8104
8105 \begin_layout Description
8106 Article:
8107  With the class option 
8108 \emph on
8109 article
8110 \emph default
8111  (to be inserted in 
8112 \family sans
8113 Document\SpecialChar menuseparator
8114 Settings\SpecialChar menuseparator
8115 Class Settings\SpecialChar menuseparator
8116 Custom
8117 \begin_inset space ~
8118 \end_inset
8119
8120 Options
8121 \family default
8122 ),
8123  you can emulate article style.
8124  That is,
8125  counters (footnotes,
8126  figures,
8127  tables etc.) will not be reset on new chapters,
8128  chapters don't start a new page (but are—
8129 in contrary to 
8130 \begin_inset Quotes eld
8131 \end_inset
8132
8133 real
8134 \begin_inset Quotes erd
8135 \end_inset
8136
8137  article classes—
8138 still allowed),
8139  parts,
8140  though,
8141  use their own page,
8142  as in book.
8143 \end_layout
8144
8145 \begin_layout Description
8146 Oldfontcommands:
8147  By default,
8148  Memoir does not allow the use of the deprecated font commands,
8149  which have been used in the old \SpecialChar LaTeX
8150  version 2.09 (e.
8151 \begin_inset space \thinspace{}
8152 \end_inset
8153
8154 g.
8155 \begin_inset space \space{}
8156 \end_inset
8157
8158
8159 \family typewriter
8160
8161 \backslash
8162 rm
8163 \family default
8164 ,
8165  
8166 \family typewriter
8167
8168 \backslash
8169 it
8170 \family default
8171 ).
8172  It produces an error and stops \SpecialChar LaTeX
8173  whenever such a command appears.
8174  The class option 
8175 \emph on
8176 oldfontcommands
8177 \emph default
8178  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
8179 ).
8180  Since a lot of packages and particularly Bib\SpecialChar TeX
8181  style files are still using those commands,
8182  we have decided to use this option by default.
8183 \end_layout
8184
8185 \begin_layout Subsubsection
8186 Extra features
8187 \end_layout
8188
8189 \begin_layout Standard
8190 We will only describe the features supported by \SpecialChar LyX
8191  (which is not much currently).
8192  Please consult the Memoir manual
8193 \begin_inset Foot
8194 status collapsed
8195
8196 \begin_layout Plain Layout
8197 Cf.
8198 \begin_inset ERT
8199 status collapsed
8200
8201 \begin_layout Plain Layout
8202
8203
8204 \backslash
8205  
8206 \end_layout
8207
8208 \end_inset
8209
8210
8211 \begin_inset Flex URL
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215
8216 CTAN:/macros/latex/memoir/memman.pdf
8217 \end_layout
8218
8219 \end_inset
8220
8221 .
8222 \end_layout
8223
8224 \end_inset
8225
8226  for details.
8227 \end_layout
8228
8229 \begin_layout Description
8230 Abstract:
8231  You may wonder why an abstract is an extra feature.
8232  Well,
8233  it is in book class.
8234  Usually books don't have abstracts.
8235  Memoir,
8236  however,
8237  has.
8238  You can use it wherever and how often you like.
8239 \end_layout
8240
8241 \begin_layout Description
8242 Chapterprecis:
8243  You may know this older typesetting style:
8244  The contents of a chapter are summarized below the title and also in the table of contents (e.
8245 \begin_inset space \thinspace{}
8246 \end_inset
8247
8248 g.
8249 \begin_inset space \space{}
8250 \end_inset
8251
8252
8253 \emph on
8254 Our hero arrives in Troia;
8255  he loses some friends;
8256  he finds others
8257 \emph default
8258 ).
8259  Chapterprecis does exactly this.
8260  It is therefore only sensible below a chapter.
8261 \end_layout
8262
8263 \begin_layout Description
8264 Epigraph:
8265  An epigraph is a smart slogan or motto at the beginning of a chapter.
8266  The epigraph environment provides an elegant way of typesetting such a motto.
8267  The motto itself (text) and its (optional) author (source) are divided by a short line.
8268  The author (source) can be inserted via 
8269 \family sans
8270 Insert\SpecialChar menuseparator
8271 Epigraph Source
8272 \family default
8273 \emph on
8274 .
8275 \end_layout
8276
8277 \begin_layout Description
8278 Poemtitle:
8279  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
8280  \SpecialChar LyX
8281  can only support a few of them.
8282  One is poemtitle,
8283  which is a centered title for poems,
8284  which will also be added to the table of contents (verse is the standard environment for poems.
8285  Memoir has some enhanced versions of verse,
8286  but you need to use \SpecialChar TeX
8287  code,
8288  because they have to be nested inside regular verse environments,
8289  which is not possible with \SpecialChar LyX
8290 ).
8291 \end_layout
8292
8293 \begin_layout Description
8294 Poemtitle*:
8295  Same as poemtitle,
8296  but it adds no entry to the table of contents.
8297 \end_layout
8298
8299 \begin_layout Subsection
8300 Recipe Book
8301 \end_layout
8302
8303 \begin_layout Standard
8304 The document class 
8305 \family sans
8306 Recipe Book
8307 \family default
8308  uses the 
8309 \family sans
8310 KOMA-Script Book
8311 \family default
8312  document class but adds two environments:
8313 \end_layout
8314
8315 \begin_layout Description
8316 Recipe a numbered section environment at the 
8317 \family typewriter
8318 Subsubsection
8319 \family default
8320  level which generates a bold centered heading above a double horizontal rule
8321 \end_layout
8322
8323 \begin_layout Description
8324 Ingredients a 
8325 \family typewriter
8326 Description
8327 \family default
8328  environment where 
8329 \series bold
8330 \emph on
8331 Ingredients
8332 \series default
8333 \emph default
8334  are what are being described and the environment ends with a horizontal rule.
8335 \end_layout
8336
8337 \begin_layout Standard
8338
8339 \family sans
8340 File\SpecialChar menuseparator
8341 Open Example\SpecialChar menuseparator
8342 Books\SpecialChar menuseparator
8343 Recipe Book
8344 \family default
8345  illustrates its use.
8346 \end_layout
8347
8348 \begin_layout Standard
8349 The class is designed for typesetting one or two recipes per page.
8350  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient.
8351  
8352 \end_layout
8353
8354 \begin_layout Section
8355 Curricula vitae
8356 \end_layout
8357
8358 \begin_layout Subsection
8359 Europass (2013)
8360 \end_layout
8361
8362 \begin_layout Standard
8363 The document class 
8364 \family sans
8365 Europass (2013)
8366 \family default
8367  provides the 
8368 \family typewriter
8369 europasscv.cls
8370 \family default
8371  document class,
8372  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
8373  
8374 \family sans
8375 File\SpecialChar menuseparator
8376 Open Example\SpecialChar menuseparator
8377 Curricula Vitae\SpecialChar menuseparator
8378 Europass (2013)
8379 \family default
8380  offers guidance on its use.
8381  Its documentation is available from 
8382 \begin_inset CommandInset href
8383 LatexCommand href
8384 name "CTAN"
8385 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8386 literal "false"
8387
8388 \end_inset
8389
8390 .
8391 \end_layout
8392
8393 \begin_layout Subsection
8394 Europe CV
8395 \end_layout
8396
8397 \begin_layout Standard
8398 The document class 
8399 \family sans
8400 Europe CV
8401 \family default
8402  provides the 
8403 \family typewriter
8404 europecv.cls
8405 \family default
8406  document class,
8407  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
8408  
8409 \family sans
8410 File\SpecialChar menuseparator
8411 Open Example\SpecialChar menuseparator
8412 Curricula Vitae\SpecialChar menuseparator
8413 Europe CV
8414 \family default
8415  offers guidance on its use.
8416  Its documentation is available from 
8417 \begin_inset CommandInset href
8418 LatexCommand href
8419 name "CTAN"
8420 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8421 literal "false"
8422
8423 \end_inset
8424
8425 .
8426 \end_layout
8427
8428 \begin_layout Subsection
8429 Modern CV
8430 \end_layout
8431
8432 \begin_layout Standard
8433 The document class 
8434 \family sans
8435 Modern CV
8436 \family default
8437  provides the 
8438 \family typewriter
8439 moderncv.cls
8440 \family default
8441  document class.
8442  This allows the creation of customizable CVs.
8443  
8444 \family sans
8445 File\SpecialChar menuseparator
8446 Open Example\SpecialChar menuseparator
8447 Curricula Vitae\SpecialChar menuseparator
8448 Modern CV
8449 \family default
8450  offers guidance on its use.
8451  Its documentation is available from 
8452 \begin_inset CommandInset href
8453 LatexCommand href
8454 name "CTAN"
8455 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8456 literal "false"
8457
8458 \end_inset
8459
8460 .
8461 \end_layout
8462
8463 \begin_layout Subsection
8464 Simple CV
8465 \end_layout
8466
8467 \begin_layout Standard
8468 The document class 
8469 \family sans
8470 Simple CV
8471 \family default
8472  provides the 
8473 \family typewriter
8474 simplecv.cls
8475 \family default
8476  document class,
8477  originally developed for use with \SpecialChar LyX
8478 .
8479  
8480 \family sans
8481 File\SpecialChar menuseparator
8482 Open Example\SpecialChar menuseparator
8483 Curricula Vitae\SpecialChar menuseparator
8484 Simple CV
8485 \family default
8486  offers guidance on its use.
8487  Its documentation is available from 
8488 \begin_inset CommandInset href
8489 LatexCommand href
8490 name "CTAN"
8491 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8492 literal "false"
8493
8494 \end_inset
8495
8496
8497 \end_layout
8498
8499 \begin_layout Section
8500 Letters
8501 \end_layout
8502
8503 \begin_layout Standard
8504 See also the 
8505 \family sans
8506 KOMA-Script Letter (V.
8507  2)
8508 \family default
8509  (section
8510 \begin_inset space ~
8511 \end_inset
8512
8513
8514 \begin_inset CommandInset ref
8515 LatexCommand ref
8516 reference "subsec:The-new-letter"
8517 nolink "false"
8518
8519 \end_inset
8520
8521 ) and 
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 ) document classes .
8538 \end_layout
8539
8540 \begin_layout Subsection
8541 DIN-Brief
8542 \end_layout
8543
8544 \begin_layout Standard
8545 The document class 
8546 \family sans
8547 DIN-Brief
8548 \family default
8549  provides support for the 
8550 \family typewriter
8551 dinbrief.cls
8552 \family default
8553  \SpecialChar LaTeX
8554  class for writing letters according to the standards of the German Standards Institute (
8555 \emph on
8556 Deutsches Institut für Normung,
8557  DIN)
8558 \emph default
8559 .
8560  The file in the menu 
8561 \family sans
8562 \bar under
8563 F
8564 \bar default
8565 ile\SpecialChar menuseparator
8566 New
8567 \begin_inset space ~
8568 \end_inset
8569
8570 fro
8571 \bar under
8572 m
8573 \bar default
8574
8575 \begin_inset space ~
8576 \end_inset
8577
8578 Template\SpecialChar menuseparator
8579 Letters\SpecialChar menuseparator
8580 DIN-Brief
8581 \family default
8582  offers guidance on its use.
8583  The documentation is available from 
8584 \begin_inset CommandInset href
8585 LatexCommand href
8586 name "CTAN"
8587 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8588 literal "false"
8589
8590 \end_inset
8591
8592 .
8593 \end_layout
8594
8595 \begin_layout Subsection
8596 French letter
8597 \begin_inset space \space{}
8598 \end_inset
8599
8600 (frletter)
8601 \end_layout
8602
8603 \begin_layout Standard
8604 The document class 
8605 \family sans
8606 French letter
8607 \begin_inset space \space{}
8608 \end_inset
8609
8610 (frletter)
8611 \family default
8612  provides support for the 
8613 \family typewriter
8614 frletter.cls
8615 \family default
8616  \SpecialChar LaTeX
8617  class for writing letters according to French conventions.
8618  The file in the menu 
8619 \family sans
8620 \bar under
8621 F
8622 \bar default
8623 ile\SpecialChar menuseparator
8624 New
8625 \begin_inset space ~
8626 \end_inset
8627
8628 fro
8629 \bar under
8630 m
8631 \bar default
8632
8633 \begin_inset space ~
8634 \end_inset
8635
8636 Template\SpecialChar menuseparator
8637 Letters\SpecialChar menuseparator
8638 French letter
8639 \begin_inset space \space{}
8640 \end_inset
8641
8642 (frletter)
8643 \family default
8644  offers guidance on its use.
8645 \end_layout
8646
8647 \begin_layout Subsection
8648 French letter
8649 \begin_inset space \space{}
8650 \end_inset
8651
8652 (lettre)
8653 \end_layout
8654
8655 \begin_layout Standard
8656 The document class 
8657 \family sans
8658 French letter
8659 \begin_inset space \space{}
8660 \end_inset
8661
8662 (lettre)
8663 \family default
8664  provides support for 
8665 \family typewriter
8666 lettre.cls
8667 \family default
8668 ,
8669  another \SpecialChar LaTeX
8670  class for writing letters,
8671  but also faxes and envelopes,
8672  in French.
8673  The file in the menu 
8674 \family sans
8675 \bar under
8676 F
8677 \bar default
8678 ile\SpecialChar menuseparator
8679 New
8680 \begin_inset space ~
8681 \end_inset
8682
8683 fro
8684 \bar under
8685 m
8686 \bar default
8687
8688 \begin_inset space ~
8689 \end_inset
8690
8691 Template\SpecialChar menuseparator
8692 Letters\SpecialChar menuseparator
8693 French letter
8694 \begin_inset space \space{}
8695 \end_inset
8696
8697 (lettre)
8698 \family default
8699  offers guidance on its use.
8700  The documentation is available from 
8701 \begin_inset CommandInset href
8702 LatexCommand href
8703 name "CTAN"
8704 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
8705 literal "false"
8706
8707 \end_inset
8708
8709 .
8710 \end_layout
8711
8712 \begin_layout Subsection
8713 G-Brief (V.
8714 \begin_inset space \thinspace{}
8715 \end_inset
8716
8717 2)
8718 \end_layout
8719
8720 \begin_layout Standard
8721 The document class 
8722 \family sans
8723 G-Brief (V.
8724 \begin_inset space \thinspace{}
8725 \end_inset
8726
8727 2)
8728 \family default
8729  provides support for the 
8730 \family typewriter
8731 g-brief2.cls
8732 \family default
8733  \SpecialChar LaTeX
8734  class for writing letters in German.
8735  The file in the menu 
8736 \family sans
8737 \bar under
8738 F
8739 \bar default
8740 ile\SpecialChar menuseparator
8741 New
8742 \begin_inset space ~
8743 \end_inset
8744
8745 fro
8746 \bar under
8747 m
8748 \bar default
8749
8750 \begin_inset space ~
8751 \end_inset
8752
8753 Template\SpecialChar menuseparator
8754 Letters\SpecialChar menuseparator
8755 G-Brief (V.
8756 \begin_inset space \thinspace{}
8757 \end_inset
8758
8759 2)
8760 \family default
8761  offers guidance on its use.
8762  The documentation is available from 
8763 \begin_inset CommandInset href
8764 LatexCommand href
8765 name "CTAN"
8766 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
8767 literal "false"
8768
8769 \end_inset
8770
8771 .
8772 \end_layout
8773
8774 \begin_layout Section
8775 Presentations
8776 \end_layout
8777
8778 \begin_layout Subsection
8779 Beamer
8780 \end_layout
8781
8782 \begin_layout Standard
8783 The document class 
8784 \family sans
8785 Beamer
8786 \family default
8787  uses the 
8788 \family typewriter
8789 beamer.cls
8790 \family default
8791  \SpecialChar LaTeX
8792  class for creating presentations.
8793  The file in the menu 
8794 \family sans
8795 \bar under
8796 F
8797 \bar default
8798 ile\SpecialChar menuseparator
8799 New
8800 \begin_inset space ~
8801 \end_inset
8802
8803 fro
8804 \bar under
8805 m
8806 \bar default
8807
8808 \begin_inset space ~
8809 \end_inset
8810
8811 Template\SpecialChar menuseparator
8812 Presentations\SpecialChar menuseparator
8813 Beamer
8814 \family default
8815  or 
8816 \family sans
8817 Help\SpecialChar menuseparator
8818 Specific Manuals\SpecialChar menuseparator
8819 Beamer Presentations
8820 \family default
8821  offers guidance on its use.
8822  The documentation is available from 
8823 \begin_inset CommandInset href
8824 LatexCommand href
8825 name "CTAN"
8826 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8827 literal "false"
8828
8829 \end_inset
8830
8831 .
8832 \end_layout
8833
8834 \begin_layout Subsection
8835
8836 \family sans
8837 Foil\SpecialChar TeX
8838
8839 \family default
8840
8841 \begin_inset CommandInset label
8842 LatexCommand label
8843 name "sec:foiltex"
8844
8845 \end_inset
8846
8847
8848 \end_layout
8849
8850 \begin_layout Standard
8851 Original by 
8852 \noun on
8853 Allan Rae
8854 \noun default
8855 ;
8856  updated by the \SpecialChar LyX
8857  Team
8858 \end_layout
8859
8860 \begin_layout Subsubsection
8861 Introduction
8862 \end_layout
8863
8864 \begin_layout Standard
8865 The document class 
8866 \family sans
8867 Foil\SpecialChar TeX
8868
8869 \family default
8870  uses the 
8871 \family typewriter
8872 foils.cls
8873 \family default
8874  document class to make slides for overhead projectors.
8875  There are two document classes that can do this:
8876  the 
8877 \family sans
8878 Slides
8879 \family default
8880  document class (section
8881 \begin_inset space ~
8882 \end_inset
8883
8884
8885 \begin_inset CommandInset ref
8886 LatexCommand ref
8887 reference "sec:slitex"
8888 plural "false"
8889 caps "false"
8890 noprefix "false"
8891 nolink "false"
8892
8893 \end_inset
8894
8895 ) and the 
8896 \family sans
8897 Foil\SpecialChar TeX
8898
8899 \family default
8900  slides class.
8901  As of 2023 the former has continued to be maintained whereas 
8902 \family sans
8903 Foil\SpecialChar TeX
8904
8905 \family default
8906  has not been maintained since 2008.
8907  This section documents the latter.
8908  If your machine doesn’t have the 
8909 \family sans
8910 Foil\SpecialChar TeX
8911
8912 \family default
8913  document class installed,
8914  you’ll probably have to use the 
8915 \family sans
8916 Slides
8917 \family default
8918  document class.
8919  If you want to install the 
8920 \family typewriter
8921 foils.cls
8922 \family default
8923  document class,
8924  it is available from 
8925 \begin_inset CommandInset href
8926 LatexCommand href
8927 name "CTAN"
8928 target "https://www.ctan.org/pkg/foiltex"
8929 literal "false"
8930
8931 \end_inset
8932
8933 .
8934  You should also read the 
8935 \emph on
8936 Installing New Document Classes
8937 \emph default
8938  chapter of the 
8939 \emph on
8940 Customization
8941 \emph default
8942  manual.
8943 \end_layout
8944
8945 \begin_layout Subsubsection
8946 Getting Started
8947 \end_layout
8948
8949 \begin_layout Standard
8950 Obviously,
8951  to use this document class,
8952  you need to select 
8953 \family sans
8954 FoilTeX
8955 \family default
8956  from the 
8957 \family sans
8958 Class
8959 \family default
8960  entry in the 
8961 \family sans
8962 Document
8963 \begin_inset space ~
8964 \end_inset
8965
8966 Layout
8967 \family default
8968  dialog.
8969  There are some settings in the 
8970 \family sans
8971 Document
8972 \begin_inset space ~
8973 \end_inset
8974
8975 Layout
8976 \family default
8977  dialog that you should know about that are specific to this class:
8978 \end_layout
8979
8980 \begin_layout Itemize
8981 Don't change the options 
8982 \family sans
8983 Sides
8984 \family default
8985  and 
8986 \family sans
8987 Columns
8988 \family default
8989  on the 
8990 \family sans
8991 Document
8992 \begin_inset space ~
8993 \end_inset
8994
8995 Layout
8996 \family default
8997  dialog.
8998  They're ignored by the 
8999 \family sans
9000 foils
9001 \family default
9002  class.
9003 \end_layout
9004
9005 \begin_layout Itemize
9006 The default font size is 20
9007 \begin_inset space \thinspace{}
9008 \end_inset
9009
9010 pt with the other options being 17
9011 \begin_inset space \thinspace{}
9012 \end_inset
9013
9014 pt,
9015  25
9016 \begin_inset space \thinspace{}
9017 \end_inset
9018
9019 pt and 30
9020 \begin_inset space \thinspace{}
9021 \end_inset
9022
9023 pt.
9024 \end_layout
9025
9026 \begin_layout Itemize
9027 The default font is 
9028 \family sans
9029 sans
9030 \family default
9031  
9032 \family sans
9033 serif
9034 \family default
9035  but all math equations are still typeset in the usual roman font.
9036 \end_layout
9037
9038 \begin_layout Itemize
9039
9040 \family sans
9041 Foil\SpecialChar TeX
9042
9043 \family default
9044  supports A4 and Letter paper sizes as well as a special size for working with 35
9045 \begin_inset space \thinspace{}
9046 \end_inset
9047
9048 mm slides.
9049  It doesn't support A5,
9050  B5,
9051  legal or executive paper sizes.
9052 \end_layout
9053
9054 \begin_layout Itemize
9055 Don't bother changing the 
9056 \family sans
9057 Float Placement
9058 \family default
9059  settings because they are ignored anyway.
9060  All floats appear where they are defined in the text.
9061 \end_layout
9062
9063 \begin_layout Itemize
9064 The 
9065 \family sans
9066 Pagestyle
9067 \family default
9068  setting behaves a bit differently for this class.
9069  
9070 \family sans
9071 Foil\SpecialChar TeX
9072
9073 \family default
9074  provides extensive footer and header capabilities including a user-defined logo.
9075  See section
9076 \begin_inset space ~
9077 \end_inset
9078
9079
9080 \begin_inset CommandInset ref
9081 LatexCommand ref
9082 reference "sec:foilfoot"
9083 nolink "false"
9084
9085 \end_inset
9086
9087  for more details.
9088  The title page is treated differently to all other pages in the document and is 
9089 \emph on
9090 always
9091 \emph default
9092  unnumbered and 
9093 \emph on
9094 always
9095 \emph default
9096  has the logo centered at the bottom of the page (if one is defined).
9097  The possible page style choices and what they do are as follows:
9098 \end_layout
9099
9100 \begin_deeper
9101 \begin_layout Labeling
9102 \labelwidthstring MMMMMMM
9103
9104 \family sans
9105 \series bold
9106 empty
9107 \family default
9108 \series default
9109  The final output contains no page numbers,
9110  or other headers or footers (except footnotes of course).
9111  
9112 \end_layout
9113
9114 \begin_layout Labeling
9115 \labelwidthstring MMMMMMM
9116
9117 \family sans
9118 \series bold
9119 plain
9120 \family default
9121 \series default
9122  The final output contains page numbers centered at the bottom of the page.
9123  No other headings or footers (other than footnotes).
9124 \end_layout
9125
9126 \begin_layout Labeling
9127 \labelwidthstring MMMMMMM
9128
9129 \series bold
9130 foilheadings
9131 \series default
9132  Page numbers in lower right corner.
9133  Additional headers and footers are also shown.
9134  This is also the default.
9135 \end_layout
9136
9137 \begin_layout Labeling
9138 \labelwidthstring MMMMMMM
9139
9140 \series bold
9141 fancy
9142 \series default
9143  Gives you access to the 
9144 \family sans
9145 fancyheadings
9146 \family default
9147  package although its use with 
9148 \family sans
9149 Foil\SpecialChar TeX
9150
9151 \family default
9152  is discouraged by the writer of the 
9153 \family sans
9154 Foil\SpecialChar TeX
9155
9156 \family default
9157  package because of some potential page layout clashes.
9158 \end_layout
9159
9160 \end_deeper
9161 \begin_layout Paragraph
9162 Extra Options
9163 \end_layout
9164
9165 \begin_layout Standard
9166 The following options may be used in the extra class options in the 
9167 \family sans
9168 Document\SpecialChar menuseparator
9169 Settings
9170 \family default
9171  dialog.
9172 \end_layout
9173
9174 \begin_layout Labeling
9175 \labelwidthstring MMMMMMx
9176
9177 \series bold
9178 35mmSlide
9179 \series default
9180  This sets up the page layout for 7.33
9181 \begin_inset space \thinspace{}
9182 \end_inset
9183
9184 in by 11
9185 \begin_inset space \thinspace{}
9186 \end_inset
9187
9188 in paper,
9189  which is about the same aspect ratio as a 35
9190 \begin_inset space \thinspace{}
9191 \end_inset
9192
9193 mm slide,
9194  making it a bit easier to work with this medium.
9195 \end_layout
9196
9197 \begin_layout Labeling
9198 \labelwidthstring MMMMMMx
9199
9200 \series bold
9201 headrule
9202 \series default
9203  Places a rule across the page below the header on every page except the title page.
9204 \end_layout
9205
9206 \begin_layout Labeling
9207 \labelwidthstring MMMMMMx
9208
9209 \series bold
9210 footrule
9211 \series default
9212  Places a rule across the page above the footer on every page except the title page.
9213 \end_layout
9214
9215 \begin_layout Labeling
9216 \labelwidthstring MMMMMMx
9217
9218 \series bold
9219 dvips
9220 \series default
9221  This is automatically set each time you create a new 
9222 \family sans
9223 foils
9224 \family default
9225  document.
9226  This option tells 
9227 \family sans
9228 Foil\SpecialChar TeX
9229
9230 \family default
9231  to use the dvips driver to rotate those pages that are set as landscape foils.
9232 \end_layout
9233
9234 \begin_layout Labeling
9235 \labelwidthstring MMMMMMx
9236
9237 \series bold
9238 landscape
9239 \series default
9240  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
9241  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.
9242  Note that this option effectively reverses the roles of the 
9243 \family sans
9244 Foilhead
9245 \family default
9246  and 
9247 \family sans
9248 Rotatefoilhead
9249 \family default
9250  environments (don't worry these are described in the next section).
9251 \end_layout
9252
9253 \begin_layout Labeling
9254 \labelwidthstring MMMMMMx
9255
9256 \series bold
9257 leqno
9258 \series default
9259  Equation numbers on the left.
9260 \end_layout
9261
9262 \begin_layout Labeling
9263 \labelwidthstring MMMMMMx
9264
9265 \series bold
9266 fleqn
9267 \series default
9268  Flush-left equations.
9269 \end_layout
9270
9271 \begin_layout Subsubsection
9272 Supported Environments
9273 \end_layout
9274
9275 \begin_layout Standard
9276 Most of the environments commonly supported in other classes are also supported by the 
9277 \family sans
9278 Foil\SpecialChar TeX
9279
9280 \family default
9281  class.
9282  There are several additional environments provided by 
9283 \family sans
9284 Foil\SpecialChar TeX
9285
9286 \family default
9287  as well as a couple added by \SpecialChar LyX
9288 .
9289  The following environments are shared with other classes:
9290 \end_layout
9291
9292 \begin_layout Standard
9293 \begin_inset Flex Multiple Columns
9294 status open
9295
9296 \begin_layout Itemize
9297
9298 \family sans
9299 Standard
9300 \end_layout
9301
9302 \begin_layout Itemize
9303
9304 \family sans
9305 Itemize
9306 \end_layout
9307
9308 \begin_layout Itemize
9309
9310 \family sans
9311 Enumerate
9312 \end_layout
9313
9314 \begin_layout Itemize
9315
9316 \family sans
9317 Description
9318 \end_layout
9319
9320 \begin_layout Itemize
9321
9322 \family sans
9323 List
9324 \end_layout
9325
9326 \begin_layout Itemize
9327
9328 \family sans
9329 \SpecialChar LyX
9330 -Code
9331 \end_layout
9332
9333 \begin_layout Itemize
9334
9335 \family sans
9336 Verse
9337 \end_layout
9338
9339 \begin_layout Itemize
9340
9341 \family sans
9342 Quote
9343 \end_layout
9344
9345 \begin_layout Itemize
9346
9347 \family sans
9348 Quotation
9349 \end_layout
9350
9351 \begin_layout Itemize
9352
9353 \family sans
9354 Title
9355 \end_layout
9356
9357 \begin_layout Itemize
9358
9359 \family sans
9360 Author
9361 \end_layout
9362
9363 \begin_layout Itemize
9364
9365 \family sans
9366 Date
9367 \end_layout
9368
9369 \begin_layout Itemize
9370
9371 \family sans
9372 Abstract
9373 \end_layout
9374
9375 \begin_layout Itemize
9376
9377 \family sans
9378 Bibliography
9379 \end_layout
9380
9381 \begin_layout Itemize
9382
9383 \family sans
9384 Address
9385 \end_layout
9386
9387 \begin_layout Itemize
9388
9389 \family sans
9390 RightAddress
9391 \end_layout
9392
9393 \end_inset
9394
9395
9396 \end_layout
9397
9398 \begin_layout Standard
9399 That is,
9400  all the major environments apart from the sectioning environments.
9401  Since foils are essentially self-contained sections,
9402  with a title and body,
9403  
9404 \family sans
9405 Foil\SpecialChar TeX
9406
9407 \family default
9408  provides specific commands for starting new foils and these are:
9409 \end_layout
9410
9411 \begin_layout Itemize
9412
9413 \family sans
9414 Foilhead
9415 \end_layout
9416
9417 \begin_layout Itemize
9418
9419 \family sans
9420 Rotatefoilhead
9421 \end_layout
9422
9423 \begin_layout Standard
9424 \SpecialChar LyX
9425  also provides slightly modified versions of these two environments called:
9426 \end_layout
9427
9428 \begin_layout Itemize
9429
9430 \family sans
9431 ShortFoilhead
9432 \end_layout
9433
9434 \begin_layout Itemize
9435
9436 \family sans
9437 ShortRotatefoilhead
9438 \end_layout
9439
9440 \begin_layout Standard
9441 and the differences will be explained in the next section.
9442 \end_layout
9443
9444 \begin_layout Standard
9445 Since foils are often used in presenting ideas or new theorems and such 
9446 \family sans
9447 Foil\SpecialChar TeX
9448
9449 \family default
9450  also provides a comprehensive box of goodies for presenting them:
9451 \end_layout
9452
9453 \begin_layout Standard
9454 \begin_inset Flex Multiple Columns
9455 status open
9456
9457 \begin_layout Itemize
9458
9459 \family sans
9460 Theorem
9461 \end_layout
9462
9463 \begin_layout Itemize
9464
9465 \family sans
9466 Lemma
9467 \end_layout
9468
9469 \begin_layout Itemize
9470
9471 \family sans
9472 Corollary
9473 \end_layout
9474
9475 \begin_layout Itemize
9476
9477 \family sans
9478 Proposition
9479 \end_layout
9480
9481 \begin_layout Itemize
9482
9483 \family sans
9484 Definition
9485 \end_layout
9486
9487 \begin_layout Itemize
9488
9489 \family sans
9490 Proof
9491 \end_layout
9492
9493 \begin_layout Itemize
9494
9495 \family sans
9496 Theorem*
9497 \end_layout
9498
9499 \begin_layout Itemize
9500
9501 \family sans
9502 Lemma*
9503 \end_layout
9504
9505 \begin_layout Itemize
9506
9507 \family sans
9508 Corollary*
9509 \end_layout
9510
9511 \begin_layout Itemize
9512
9513 \family sans
9514 Proposition*
9515 \end_layout
9516
9517 \begin_layout Itemize
9518
9519 \family sans
9520 Definition*
9521 \end_layout
9522
9523 \end_inset
9524
9525
9526 \end_layout
9527
9528 \begin_layout Standard
9529 The starred versions are unnumbered while the unstarred versions are numbered.
9530  There are also two list environments added by \SpecialChar LyX
9531  and these are:
9532 \end_layout
9533
9534 \begin_layout Itemize
9535
9536 \family sans
9537 TickList
9538 \end_layout
9539
9540 \begin_layout Itemize
9541
9542 \family sans
9543 CrossList
9544 \end_layout
9545
9546 \begin_layout Standard
9547
9548 \family sans
9549 Foil\SpecialChar TeX
9550
9551 \family default
9552  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.
9553  If you want to change these settings in your document the best place to do so is at the very top of a foil,
9554  i.
9555 \begin_inset space \thinspace{}
9556 \end_inset
9557
9558 e.
9559 \emph on
9560
9561 \begin_inset space \space{}
9562 \end_inset
9563
9564
9565 \emph default
9566 straight after the foilhead.
9567 \end_layout
9568
9569 \begin_layout Standard
9570 For this purpose,
9571  the following command styles are provided [
9572 \shape smallcaps
9573 Martin Vermeer
9574 \shape default
9575 ]:
9576 \end_layout
9577
9578 \begin_layout Standard
9579 \begin_inset Flex Multiple Columns
9580 status open
9581
9582 \begin_layout Itemize
9583
9584 \family sans
9585 My
9586 \begin_inset space ~
9587 \end_inset
9588
9589 Logo
9590 \end_layout
9591
9592 \begin_layout Itemize
9593
9594 \family sans
9595 Restriction
9596 \end_layout
9597
9598 \begin_layout Itemize
9599
9600 \family sans
9601 Right
9602 \begin_inset space ~
9603 \end_inset
9604
9605 Footer
9606 \end_layout
9607
9608 \begin_layout Itemize
9609
9610 \family sans
9611 Right
9612 \begin_inset space ~
9613 \end_inset
9614
9615 Header
9616 \end_layout
9617
9618 \begin_layout Itemize
9619
9620 \family sans
9621 Left
9622 \begin_inset space ~
9623 \end_inset
9624
9625 Header
9626 \end_layout
9627
9628 \begin_deeper
9629 \begin_layout Plain Layout
9630 \begin_inset space ~
9631 \end_inset
9632
9633
9634 \end_layout
9635
9636 \end_deeper
9637 \end_inset
9638
9639
9640 \end_layout
9641
9642 \begin_layout Standard
9643 There are also a few commands provided by 
9644 \family sans
9645 Foil\SpecialChar TeX
9646
9647 \family default
9648  that aren't directly supported by \SpecialChar LyX
9649  but I'll tell you what they do and how to use them in section
9650 \begin_inset space ~
9651 \end_inset
9652
9653
9654 \begin_inset CommandInset ref
9655 LatexCommand ref
9656 reference "sec:unsuppfoils"
9657 nolink "false"
9658
9659 \end_inset
9660
9661 .
9662 \end_layout
9663
9664 \begin_layout Subsubsection
9665 Building a Set of Foils
9666 \end_layout
9667
9668 \begin_layout Standard
9669 This section will give a simple introduction to using the different environments to build a set of foils.
9670  If you want to see an example set of foils,
9671  take a look at 
9672 \family sans
9673 File\SpecialChar menuseparator
9674 Open Example\SpecialChar menuseparator
9675 Presentations\SpecialChar menuseparator
9676 Foils
9677 \family default
9678 .
9679 \end_layout
9680
9681 \begin_layout Paragraph
9682 Give It a Title Page
9683 \end_layout
9684
9685 \begin_layout Standard
9686 Unlike other classes that provide 
9687 \family sans
9688 Title
9689 \family default
9690 ,
9691  
9692 \family sans
9693 Author
9694 \family default
9695 ,
9696  
9697 \family sans
9698 Date
9699 \family default
9700  and 
9701 \family sans
9702 Abstract
9703 \family default
9704  environments,
9705  
9706 \family sans
9707 \lang ngerman
9708 FoilTeX
9709 \family default
9710 \lang english
9711  creates the title on a page of its own.
9712  If you leave out the 
9713 \family sans
9714 Date
9715 \family default
9716  environment \SpecialChar LaTeX
9717  will substitute the current date (every time you regenerate the output).
9718 \end_layout
9719
9720 \begin_layout Paragraph
9721 Start a New Foil
9722 \end_layout
9723
9724 \begin_layout Standard
9725 As I mentioned earlier,
9726  there are four ways of starting a new foil.
9727  For portrait foils you should use 
9728 \family sans
9729 Foilhead
9730 \family default
9731  or 
9732 \family sans
9733 ShortFoilhead.
9734
9735 \family default
9736  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.
9737 \end_layout
9738
9739 \begin_layout Standard
9740 Landscape foils are generated using the 
9741 \family sans
9742 Rotatefoilhead
9743 \family default
9744  and 
9745 \family sans
9746 ShortRotatefoilhead
9747 \family default
9748  environments.
9749  Again the only difference is the spacing between foilhead and body.
9750  Both of the short versions have 0.5
9751 \begin_inset space ~
9752 \end_inset
9753
9754 inches less separation between the foilhead and the body.
9755  
9756 \end_layout
9757
9758 \begin_layout Standard
9759 One problem with the support for landscape foils is the requirement that you have to use the 
9760 \family typewriter
9761 dvips
9762 \family default
9763  driver to generate the PostScript output otherwise the foils won't be rotated.
9764  It is possible to get landscape foils even if you haven't got the 
9765 \family typewriter
9766 dvips
9767 \family default
9768  driver provided you can feed your foils sideways through your printer ;-)
9769 \end_layout
9770
9771 \begin_layout Paragraph
9772 Theorems,
9773  Lemmas,
9774  Proofs and more
9775 \end_layout
9776
9777 \begin_layout Standard
9778 You can't have two of the same type of these environments directly following each other.
9779  If you use a normal paragraph break,
9780  ,
9781  you will just be extending the previous environment as if you had merged the two environments together.
9782  Rather than that,
9783  you need to insert a so-called separator.
9784  Please refer to the section entitled 
9785 \emph on
9786 Separate Nestings
9787 \emph default
9788  in the 
9789 \emph on
9790 User's Guide
9791 \emph default
9792 .
9793 \end_layout
9794
9795 \begin_layout Paragraph
9796 Lists
9797 \end_layout
9798
9799 \begin_layout Standard
9800 You get all the commonly supported list styles found in other classes as well as two new ones.
9801  I'll only describe the new ones here.
9802  If you want to find out more about the other list environments check out the 
9803 \emph on
9804 User's Guide.
9805
9806 \emph default
9807  If you intend to use itemized lists you might also want to read about the 
9808 \family sans
9809 Itemize
9810 \begin_inset space ~
9811 \end_inset
9812
9813 Bullet
9814 \begin_inset space ~
9815 \end_inset
9816
9817 Selection
9818 \family default
9819  dialog described above in section
9820 \begin_inset space ~
9821 \end_inset
9822
9823
9824 \begin_inset CommandInset ref
9825 LatexCommand ref
9826 reference "chap:bullets"
9827 nolink "false"
9828
9829 \end_inset
9830
9831 .
9832 \end_layout
9833
9834 \begin_layout Standard
9835 The two new list styles,
9836  
9837 \family sans
9838 TickList
9839 \family default
9840  and 
9841 \family sans
9842 CrossList
9843 \family default
9844 ,
9845  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.
9846  These lists are in fact dedicated variants of the 
9847 \family sans
9848 Itemize
9849 \family default
9850  environment.
9851  They do however require that you have the 
9852 \family typewriter
9853 psnfss
9854 \family default
9855  packages installed.
9856 \end_layout
9857
9858 \begin_layout Paragraph
9859 Figures and Tables
9860 \end_layout
9861
9862 \begin_layout Standard
9863
9864 \family sans
9865 Foil\SpecialChar TeX
9866
9867 \family default
9868  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.
9869  In fact if you change the float placement settings they are simply ignored.
9870 \end_layout
9871
9872 \begin_layout Paragraph
9873 Page Headers and Footers
9874 \begin_inset CommandInset label
9875 LatexCommand label
9876 name "sec:foilfoot"
9877
9878 \end_inset
9879
9880
9881 \end_layout
9882
9883 \begin_layout Standard
9884
9885 \family sans
9886 My
9887 \begin_inset space ~
9888 \end_inset
9889
9890 Logo
9891 \family default
9892  and 
9893 \family sans
9894 Restriction
9895 \family default
9896  are two commands used to control the left-footer text string.
9897  The first is meant to allow you to include a graphic logo on your foils and defaults to 
9898 \begin_inset Quotes eld
9899 \end_inset
9900
9901 -Typeset by 
9902 \family sans
9903 Foil\SpecialChar TeX
9904
9905 \family default
9906 -
9907 \begin_inset Quotes erd
9908 \end_inset
9909
9910 .
9911  While the second is meant to provide a classification for the audience,
9912  
9913 \emph on
9914 e.
9915 \begin_inset space \thinspace{}
9916 \end_inset
9917
9918 g.
9919 \emph default
9920
9921 \begin_inset space \space{}
9922 \end_inset
9923
9924 Confidential.
9925  It is empty by default.
9926 \end_layout
9927
9928 \begin_layout Standard
9929 The remaining page corners can be filled by 
9930 \family sans
9931 Right
9932 \begin_inset space ~
9933 \end_inset
9934
9935 Footer
9936 \family default
9937  (which defaults to page numbers),
9938  
9939 \family sans
9940 Right
9941 \begin_inset space ~
9942 \end_inset
9943
9944 Header
9945 \family default
9946  (top right) and 
9947 \family sans
9948 Left
9949 \begin_inset space ~
9950 \end_inset
9951
9952 Header
9953 \family default
9954  (top left).
9955 \end_layout
9956
9957 \begin_layout Subsubsection
9958 Unsupported 
9959 \family sans
9960 Foil\SpecialChar TeX
9961
9962 \family default
9963  Goodies
9964 \begin_inset CommandInset label
9965 LatexCommand label
9966 name "sec:unsuppfoils"
9967
9968 \end_inset
9969
9970
9971 \end_layout
9972
9973 \begin_layout Standard
9974 All the commands mentioned below need to be set in a 
9975 \family sans
9976 \SpecialChar LaTeX
9977
9978 \family default
9979  environment or as 
9980 \family sans
9981 \SpecialChar TeX
9982
9983 \family default
9984  within another environment.
9985 \end_layout
9986
9987 \begin_layout Paragraph
9988 Lengths
9989 \end_layout
9990
9991 \begin_layout Standard
9992 All lengths are adjusted using the 
9993 \family typewriter
9994
9995 \backslash
9996 setlength{
9997 \family default
9998 \emph on
9999 lengthname
10000 \family typewriter
10001 \emph default
10002 }{
10003 \family default
10004 \emph on
10005 newlength
10006 \family typewriter
10007 \emph default
10008 }
10009 \family default
10010  command.
10011  Where 
10012 \emph on
10013 lengthname
10014 \emph default
10015  should be replaced by the name given to the length you want to change and 
10016 \emph on
10017 newlength
10018 \emph default
10019  is the length value.
10020  All lengths should be specified in units of length such as inches (
10021 \family typewriter
10022 in
10023 \family default
10024 ),
10025  millimeters (
10026 \family typewriter
10027 mm
10028 \family default
10029 ) or points (
10030 \family typewriter
10031 pt
10032 \family default
10033 ) or relative to some document or font-based length such as 
10034 \family typewriter
10035
10036 \backslash
10037 textwidth
10038 \family default
10039 .
10040  
10041 \end_layout
10042
10043 \begin_layout Standard
10044 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
10045 \family typewriter
10046
10047 \backslash
10048 foilheadskip
10049 \family default
10050 .
10051  For example,
10052  to make 
10053 \emph on
10054 all
10055 \emph default
10056  foilheads 0.5
10057 \begin_inset space \space{}
10058 \end_inset
10059
10060 in closer to their bodies put the following in the preamble:
10061  
10062 \family typewriter
10063
10064 \backslash
10065 setlength{
10066 \backslash
10067 foilheadskip}{-0.5in}
10068 \end_layout
10069
10070 \begin_layout Standard
10071 The spacings around floats can be adjusted by setting these lengths:
10072 \end_layout
10073
10074 \begin_layout Labeling
10075 \labelwidthstring MMMMMMMMMMM
10076
10077 \family typewriter
10078
10079 \backslash
10080 abovefloatskip
10081 \family default
10082  Separation between the text and the top of the float
10083 \end_layout
10084
10085 \begin_layout Labeling
10086 \labelwidthstring MMMMMMMMMMM
10087
10088 \family typewriter
10089
10090 \backslash
10091 abovecaptionskip
10092 \family default
10093  Separation between the float and the caption
10094 \end_layout
10095
10096 \begin_layout Labeling
10097 \labelwidthstring MMMMMMMMMMM
10098
10099 \family typewriter
10100
10101 \backslash
10102 belowcaptionskip
10103 \family default
10104  Separation between the caption and the following text
10105 \end_layout
10106
10107 \begin_layout Labeling
10108 \labelwidthstring MMMMMMMMMMM
10109
10110 \family typewriter
10111
10112 \backslash
10113 captionwidth
10114 \family default
10115  You can make the captions narrower than the surrounding text by adjusting this length.
10116  Best done relative to 
10117 \family typewriter
10118
10119 \backslash
10120 textwidth
10121 \family default
10122 .
10123 \end_layout
10124
10125 \begin_layout Standard
10126 There are also several title page related lengths that you may find useful if you have a long title or several authors:
10127 \end_layout
10128
10129 \begin_layout Labeling
10130 \labelwidthstring MMMMMMMMMMM
10131
10132 \family typewriter
10133
10134 \backslash
10135 abovetitleskip
10136 \family default
10137  Separation from headers to 
10138 \family sans
10139 Title
10140 \end_layout
10141
10142 \begin_layout Labeling
10143 \labelwidthstring MMMMMMMMMMM
10144
10145 \family typewriter
10146
10147 \backslash
10148 titleauthorskip
10149 \family default
10150  between 
10151 \family sans
10152 Title
10153 \family default
10154  and 
10155 \family sans
10156 Author
10157 \family default
10158  environments
10159 \end_layout
10160
10161 \begin_layout Labeling
10162 \labelwidthstring MMMMMMMMMMM
10163
10164 \family typewriter
10165
10166 \backslash
10167 authorauthorskip
10168 \family default
10169  between multiple 
10170 \family sans
10171 Author
10172 \family default
10173  lines
10174 \end_layout
10175
10176 \begin_layout Labeling
10177 \labelwidthstring MMMMMMMMMMM
10178
10179 \family typewriter
10180
10181 \backslash
10182 authordateskip
10183 \family default
10184  between the 
10185 \family sans
10186 Author
10187 \family default
10188  and the 
10189 \family sans
10190 Date
10191 \end_layout
10192
10193 \begin_layout Labeling
10194 \labelwidthstring MMMMMMMMMMM
10195
10196 \family typewriter
10197
10198 \backslash
10199 dateabstractskip
10200 \family default
10201  between the 
10202 \family sans
10203 Date
10204 \family default
10205  and the 
10206 \family sans
10207 Abstract
10208 \end_layout
10209
10210 \begin_layout Standard
10211 The last length related command affects all the list environments.
10212  If you place 
10213 \family typewriter
10214
10215 \backslash
10216 zerolistvertdimens
10217 \family default
10218  
10219 \emph on
10220 inside
10221 \emph default
10222  a list environment then all the vertical spacing between the list items is removed.
10223  Note that this is a command not a length so it doesn't require 
10224 \family typewriter
10225
10226 \backslash
10227 setlength
10228 \family default
10229  like the stuff mentioned above.
10230 \end_layout
10231
10232 \begin_layout Paragraph
10233 Headers and Footers
10234 \end_layout
10235
10236 \begin_layout Standard
10237 The 
10238 \family typewriter
10239
10240 \backslash
10241 LogoOn
10242 \family default
10243  and 
10244 \family typewriter
10245
10246 \backslash
10247 LogoOff
10248 \family default
10249  commands control whether the logo in the 
10250 \family sans
10251 MyLogo
10252 \family default
10253  definition appear on a given page.
10254  If you put 
10255 \family typewriter
10256
10257 \backslash
10258 LogoOff
10259 \family default
10260  in the preamble then none of the foils will have the logo on them.
10261  If you don't want the logo on a particular page place the 
10262 \family typewriter
10263
10264 \backslash
10265 LogoOff
10266 \family default
10267  directly after the foilhead of that page and the 
10268 \family typewriter
10269
10270 \backslash
10271 LogoOn
10272 \family default
10273  directly after the next foilhead.
10274 \end_layout
10275
10276 \begin_layout Standard
10277 If you decide to use the 
10278 \family sans
10279 fancy
10280 \family default
10281  page style setting in the 
10282 \family sans
10283 Document
10284 \begin_inset space ~
10285 \end_inset
10286
10287 Layout
10288 \family default
10289  dialog you should probably add 
10290 \family typewriter
10291
10292 \backslash
10293 let
10294 \backslash
10295 headwidth
10296 \backslash
10297 textwidth
10298 \family default
10299  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
10300  This is due to some clashes between the page layouts provided by the 
10301 \family sans
10302 fancyheadings
10303 \family default
10304  package and the 
10305 \family sans
10306 \lang ngerman
10307 FoilTeX
10308 \family default
10309 \lang english
10310  class.
10311 \end_layout
10312
10313 \begin_layout Subsection
10314 Powerdot
10315 \end_layout
10316
10317 \begin_layout Standard
10318 The document class 
10319 \family sans
10320 Powerdot
10321 \family default
10322  uses the 
10323 \family typewriter
10324 powerdot.cls
10325 \family default
10326  \SpecialChar LaTeX
10327  class for creating presentations.
10328  
10329 \family sans
10330 File\SpecialChar menuseparator
10331 Open Example\SpecialChar menuseparator
10332 Presentations\SpecialChar menuseparator
10333 Powerdot
10334 \family default
10335  offers guidance on its use.
10336  The documentation is available from 
10337 \begin_inset CommandInset href
10338 LatexCommand href
10339 name "CTAN"
10340 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10341 literal "false"
10342
10343 \end_inset
10344
10345 .
10346 \end_layout
10347
10348 \begin_layout Subsection
10349 \begin_inset CommandInset label
10350 LatexCommand label
10351 name "subsec:Seminar"
10352
10353 \end_inset
10354
10355
10356 \family sans
10357 Seminar
10358 \end_layout
10359
10360 \begin_layout Standard
10361 The document class 
10362 \family sans
10363 Seminar
10364 \family default
10365  uses the 
10366 \family typewriter
10367 seminar.cls
10368 \family default
10369  document class for creating presentations.
10370  
10371 \family sans
10372 File\SpecialChar menuseparator
10373 Open Example\SpecialChar menuseparator
10374 Presentations\SpecialChar menuseparator
10375 Seminar
10376 \family default
10377  offers guidance on its use.
10378  The documentation is available from 
10379 \begin_inset CommandInset href
10380 LatexCommand href
10381 name "CTAN"
10382 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10383 literal "false"
10384
10385 \end_inset
10386
10387 .
10388 \end_layout
10389
10390 \begin_layout Subsection
10391 Slides [aka 
10392 \noun on
10393 Sli\SpecialChar TeX
10394
10395 \noun default
10396 ]
10397 \begin_inset CommandInset label
10398 LatexCommand label
10399 name "sec:slitex"
10400
10401 \end_inset
10402
10403
10404 \end_layout
10405
10406 \begin_layout Standard
10407 Original by 
10408 \noun on
10409 John Weiss
10410 \noun default
10411 ;
10412  updated by the \SpecialChar LyX
10413  Team
10414 \end_layout
10415
10416 \begin_layout Subsubsection
10417 Introduction
10418 \end_layout
10419
10420 \begin_layout Standard
10421 This section describes how to use \SpecialChar LyX
10422  to make slides for overhead projectors.
10423  There are two document classes that can do this:
10424  the 
10425 \family sans
10426 Slides
10427 \family default
10428  document class and the 
10429 \family sans
10430 Foil\SpecialChar TeX
10431
10432 \family default
10433  document class.
10434  This section documents the former.
10435  If you’re looking for the documentation for 
10436 \family sans
10437 Foil\SpecialChar TeX
10438
10439 \family default
10440 ,
10441  check out section
10442 \begin_inset space ~
10443 \end_inset
10444
10445
10446 \begin_inset CommandInset ref
10447 LatexCommand ref
10448 reference "sec:foiltex"
10449 plural "false"
10450 caps "false"
10451 noprefix "false"
10452 nolink "false"
10453
10454 \end_inset
10455
10456 .
10457  As of 2023 
10458 \family sans
10459 Slides
10460 \family default
10461  has continued to be maintained whereas 
10462 \family sans
10463 Foil\SpecialChar TeX
10464
10465 \family default
10466  has not been maintained since 2008.
10467  
10468 \end_layout
10469
10470 \begin_layout Subsubsection
10471 Getting Started
10472 \begin_inset CommandInset label
10473 LatexCommand label
10474 name "sec:slidesetup"
10475
10476 \end_inset
10477
10478
10479 \end_layout
10480
10481 \begin_layout Standard
10482 Obviously,
10483  to use this document class,
10484  you need to select 
10485 \begin_inset Quotes eld
10486 \end_inset
10487
10488
10489 \family sans
10490 Slides
10491 \family default
10492
10493 \begin_inset Quotes erd
10494 \end_inset
10495
10496  from the class list in the 
10497 \family sans
10498 Document\SpecialChar menuseparator
10499 Settings
10500 \family default
10501  dialog.
10502  There are some other special things you should know about this class:
10503 \end_layout
10504
10505 \begin_layout Itemize
10506 Don't bother changing the options 
10507 \family sans
10508 Sides and Columns
10509 \family default
10510 .
10511  They're not supported by the 
10512 \family sans
10513 Slides
10514 \family default
10515  class,
10516  anyways.
10517 \end_layout
10518
10519 \begin_layout Itemize
10520 The option 
10521 \family sans
10522 Page
10523 \begin_inset space ~
10524 \end_inset
10525
10526 style
10527 \family default
10528  behaves a bit differently for this class.
10529  The possible choices and what they do are as follows:
10530 \end_layout
10531
10532 \begin_deeper
10533 \begin_layout Description
10534
10535 \family sans
10536 plain
10537 \family default
10538  The final output contains page numbers in the lower right corner.
10539 \end_layout
10540
10541 \begin_layout Description
10542
10543 \family sans
10544 headings
10545 \family default
10546  Like 
10547 \family sans
10548 plain
10549 \family default
10550 ,
10551  but also prints out any time markers you've put in.
10552  This is the default.
10553 \end_layout
10554
10555 \begin_layout Description
10556
10557 \family sans
10558 empty
10559 \family default
10560  The final output contains no page numbers,
10561  time markers,
10562  or alignment markers.
10563 \end_layout
10564
10565 \end_deeper
10566 \begin_layout Itemize
10567 The 
10568 \family sans
10569 Slides
10570 \family default
10571  class has an extra option:
10572  
10573 \family typewriter
10574 clock
10575 \family default
10576 .
10577  To use it,
10578  put 
10579 \begin_inset Quotes eld
10580 \end_inset
10581
10582
10583 \family typewriter
10584 clock
10585 \family default
10586
10587 \begin_inset Quotes erd
10588 \end_inset
10589
10590  in the extra class options.
10591 \end_layout
10592
10593 \begin_deeper
10594 \begin_layout Standard
10595 Using this options allows you to add time markers to 
10596 \family sans
10597 Note
10598 \family default
10599 s.
10600  See section
10601 \begin_inset space ~
10602 \end_inset
10603
10604
10605 \begin_inset CommandInset ref
10606 LatexCommand ref
10607 reference "sec:slideNote"
10608 nolink "false"
10609
10610 \end_inset
10611
10612  for more details.
10613 \end_layout
10614
10615 \end_deeper
10616 \begin_layout Standard
10617 You can also use the template file to automatically set up a document to use the 
10618 \family sans
10619 slides
10620 \family default
10621  class using 
10622 \family sans
10623 File\SpecialChar menuseparator
10624 New
10625 \begin_inset space ~
10626 \end_inset
10627
10628 from
10629 \begin_inset space ~
10630 \end_inset
10631
10632 Template\SpecialChar menuseparator
10633 Presentations\SpecialChar menuseparator
10634 Slides
10635 \family default
10636  to open your new document.
10637  The template file also contains some examples of the special paragraph environments used by this class.
10638  I'll describe those next.
10639 \end_layout
10640
10641 \begin_layout Subsubsection
10642 Paragraph Environments
10643 \end_layout
10644
10645 \begin_layout Paragraph
10646 Supported Environments
10647 \end_layout
10648
10649 \begin_layout Standard
10650 The first thing you'll notice when you start up a new 
10651 \family sans
10652 Slides
10653 \family default
10654  document is the font size and type:
10655  it's the equivalent of the size 
10656 \begin_inset Quotes eld
10657 \end_inset
10658
10659
10660 \family sans
10661 Largest
10662 \family default
10663
10664 \begin_inset Quotes erd
10665 \end_inset
10666
10667  in the 
10668 \family sans
10669 Sans
10670 \begin_inset space ~
10671 \end_inset
10672
10673 Serif
10674 \family default
10675  font.
10676  This is also what's used in the output.
10677  Think of this as a 
10678 \begin_inset Quotes eld
10679 \end_inset
10680
10681 visual cue
10682 \begin_inset Quotes erd
10683 \end_inset
10684
10685  to remind you that this is a slide.
10686  Your final slides will use a larger font;
10687  ergo,
10688  you'll have less space.
10689  Of course,
10690  the larger default screen font isn't WYSIWYG,
10691  only a reminder.
10692 \end_layout
10693
10694 \begin_layout Standard
10695 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
10696  Most of the paragraph environments you're used to seeing are missing.
10697  There are also five new ones.
10698  That's because the 
10699 \family sans
10700 Slides
10701 \family default
10702  class itself only supports certain paragraph environments:
10703 \end_layout
10704
10705 \begin_layout Standard
10706
10707 \family sans
10708 \begin_inset Flex Multiple Columns
10709 status open
10710
10711 \begin_layout Itemize
10712
10713 \family sans
10714 Standard
10715 \end_layout
10716
10717 \begin_layout Itemize
10718
10719 \family sans
10720 Itemize
10721 \end_layout
10722
10723 \begin_layout Itemize
10724
10725 \family sans
10726 Enumerate
10727 \end_layout
10728
10729 \begin_layout Itemize
10730
10731 \family sans
10732 Description
10733 \end_layout
10734
10735 \begin_layout Itemize
10736
10737 \family sans
10738 List
10739 \end_layout
10740
10741 \begin_layout Itemize
10742
10743 \family sans
10744 Quotation
10745 \end_layout
10746
10747 \begin_layout Itemize
10748
10749 \family sans
10750 Quote
10751 \end_layout
10752
10753 \begin_layout Itemize
10754
10755 \family sans
10756 Verse
10757 \end_layout
10758
10759 \begin_layout Itemize
10760
10761 \family sans
10762 Caption
10763 \end_layout
10764
10765 \begin_layout Itemize
10766
10767 \family sans
10768 \SpecialChar LyX
10769 -Code
10770 \end_layout
10771
10772 \end_inset
10773
10774
10775 \end_layout
10776
10777 \begin_layout Standard
10778 All of the other standard environments,
10779  including the section-heading environments,
10780  aren't used in the 
10781 \family sans
10782 Slides
10783 \family default
10784  class.
10785 \end_layout
10786
10787 \begin_layout Standard
10788 On the other hand,
10789  you'll notice the following new environments:
10790 \end_layout
10791
10792 \begin_layout Standard
10793
10794 \family sans
10795 \begin_inset Flex Multiple Columns
10796 status open
10797
10798 \begin_layout Itemize
10799
10800 \family sans
10801 Slide
10802 \end_layout
10803
10804 \begin_layout Itemize
10805
10806 \family sans
10807 Overlay
10808 \end_layout
10809
10810 \begin_layout Itemize
10811
10812 \family sans
10813 Note
10814 \end_layout
10815
10816 \begin_layout Itemize
10817
10818 \family sans
10819 InvisibleText
10820 \end_layout
10821
10822 \begin_layout Itemize
10823
10824 \family sans
10825 VisibleText
10826 \end_layout
10827
10828 \begin_deeper
10829 \begin_layout Plain Layout
10830 \begin_inset space ~
10831 \end_inset
10832
10833
10834 \end_layout
10835
10836 \end_deeper
10837 \end_inset
10838
10839
10840 \end_layout
10841
10842 \begin_layout Standard
10843 These five are kind of quirky,
10844  due to a 
10845 \begin_inset Quotes eld
10846 \end_inset
10847
10848 feature
10849 \begin_inset Quotes erd
10850 \end_inset
10851
10852  in \SpecialChar LyX
10853 .
10854  You see,
10855  \SpecialChar LyX
10856  doesn't permit you to nest any other paragraph environment into an empty environment.
10857  Now,
10858  that's fine and dandy,
10859  but it means that you wouldn't be able to start a slide with anything except plain text.
10860  To deal with this,
10861  I've performed a little 
10862 \begin_inset Quotes eld
10863 \end_inset
10864
10865 \SpecialChar LaTeX
10866  magic.
10867 \begin_inset Quotes erd
10868 \end_inset
10869
10870  
10871 \end_layout
10872
10873 \begin_layout Paragraph
10874 Quirks of the New Environments
10875 \begin_inset CommandInset label
10876 LatexCommand label
10877 name "sec:slideQuirk"
10878
10879 \end_inset
10880
10881
10882 \end_layout
10883
10884 \begin_layout Standard
10885 All five of the new paragraph environments are somewhat quirky due to inherent limitiations in the current version of \SpecialChar LyX
10886 .
10887  As I just mentioned,
10888  \SpecialChar LyX
10889  forbids environments that begin with another environment.
10890  To get around this,
10891  the 
10892 \family sans
10893 Slide
10894 \family default
10895  environment isn't a paragraph environment as described in the 
10896 \emph on
10897 User's Guide
10898 \emph default
10899 .
10900  
10901 \end_layout
10902
10903 \begin_layout Standard
10904 You should consider 
10905 \family sans
10906 Slide
10907 \family default
10908 ,
10909  
10910 \family sans
10911 Overlay
10912 \family default
10913 ,
10914  and 
10915 \family sans
10916 Note
10917 \family default
10918  to be 
10919 \begin_inset Quotes eld
10920 \end_inset
10921
10922 pseudo-environments.
10923 \begin_inset Quotes erd
10924 \end_inset
10925
10926  They look like a section heading or a 
10927 \begin_inset Quotes eld
10928 \end_inset
10929
10930
10931 \family sans
10932 Caption
10933 \family default
10934 ,
10935 \begin_inset Quotes erd
10936 \end_inset
10937
10938  but really begin a [and,
10939  if necessary,
10940  end the previous] paragraph environment.
10941  Likewise,
10942  treat 
10943 \family sans
10944 InvisibleText
10945 \family default
10946  and 
10947 \family sans
10948 VisibleText
10949 \family default
10950  as 
10951 \begin_inset Quotes eld
10952 \end_inset
10953
10954 pseudo-commands.
10955 \begin_inset Quotes erd
10956 \end_inset
10957
10958  These two perform some action.
10959 \end_layout
10960
10961 \begin_layout Standard
10962 A common feature of all five environments,
10963  
10964 \family sans
10965 Slide
10966 \family default
10967 ,
10968  
10969 \family sans
10970 Overlay
10971 \family default
10972 ,
10973  
10974 \family sans
10975 Note
10976 \family default
10977 ,
10978  
10979 \family sans
10980 InvisibleText
10981 \family default
10982  and 
10983 \family sans
10984 VisibleText
10985 \family default
10986 ,
10987  is a rather long-ish label.
10988  The text following this label —
10989  ordinarily the contents of the paragraph environment —
10990  is utterly irrelevant for 
10991 \family sans
10992 Slide
10993 \family default
10994 ,
10995  
10996 \family sans
10997 Overlay
10998 \family default
10999 ,
11000  
11001 \family sans
11002 Note
11003 \family default
11004 ,
11005  
11006 \family sans
11007 InvisibleText
11008 \family default
11009  and 
11010 \family sans
11011 VisibleText
11012 \family default
11013 .
11014  \SpecialChar LyX
11015  completely ignores it.
11016  In fact,
11017  you can leave these five environments completely empty.
11018  
11019 \end_layout
11020
11021 \begin_layout Standard
11022 While you don't 
11023 \emph on
11024 have
11025 \emph default
11026  to put any text after the rather long-ish label,
11027  you might want to.
11028  This could be a short description of the contents of the 
11029 \family sans
11030 Slide
11031 \family default
11032 ,
11033  for example.
11034  In that case,
11035  enter your descriptive comment and hit 
11036 \family sans
11037 Return
11038 \family default
11039  as you normally would.
11040 \end_layout
11041
11042 \begin_layout Subsubsection
11043 Making a Presentation with 
11044 \family sans
11045 Slide
11046 \family default
11047 ,
11048  
11049 \family sans
11050 Overlay
11051 \family default
11052  and 
11053 \family sans
11054 Note
11055 \end_layout
11056
11057 \begin_layout Paragraph
11058 Using the 
11059 \family sans
11060 Slide
11061 \family default
11062  Environment
11063 \end_layout
11064
11065 \begin_layout Standard
11066 If you're expecting this section to teach you how to actually make a presentation,
11067  you'll be sorely disappointed.
11068  Naturally,
11069  I'll describe all of the ways the 
11070 \family sans
11071 Slides
11072 \family default
11073  class can assist you in preparing the materials for a presentation.
11074  Filling in the contents,
11075  however,
11076  is up to you.
11077  [Then again,
11078  that 
11079 \emph on
11080 is
11081 \emph default
11082  the \SpecialChar LyX
11083  philosophy.]
11084 \end_layout
11085
11086 \begin_layout Standard
11087 Choosing the 
11088 \family sans
11089 Slide
11090 \family default
11091  environment [in the manner described in section
11092 \begin_inset space ~
11093 \end_inset
11094
11095
11096 \begin_inset CommandInset ref
11097 LatexCommand ref
11098 reference "sec:slideQuirk"
11099 nolink "false"
11100
11101 \end_inset
11102
11103 ] tells \SpecialChar LyX
11104  to begin a new slide [duh].
11105  The label for this environment/
11106 \begin_inset Quotes eld
11107 \end_inset
11108
11109 pseudo-command
11110 \begin_inset Quotes erd
11111 \end_inset
11112
11113  is an 
11114 \begin_inset Quotes eld
11115 \end_inset
11116
11117 ASCII line,
11118 \begin_inset Quotes erd
11119 \end_inset
11120
11121  in cool blue,
11122  followed by the label,
11123  
11124 \begin_inset Quotes eld
11125 \end_inset
11126
11127 NewSlide:
11128 \begin_inset Quotes erd
11129 \end_inset
11130
11131 .
11132  Any text or paragraph environments that follow this one go on the new slide.
11133  It's that simple.
11134 \end_layout
11135
11136 \begin_layout Standard
11137 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11138  (this can be specified in the 
11139 \family sans
11140 Paragraph Layout
11141 \family default
11142  dialog).
11143  In fact,
11144  you'll want to,
11145  once you finish entering the contents of one slide.
11146  If you've entered more text than can physically fit on a slide,
11147  the extra overflows onto a new slide.
11148  I don't recommend doing this,
11149  however,
11150  since the overflow slide won't have any page number on it.
11151  Furthermore,
11152  it may interfere with any 
11153 \family sans
11154 Overlay
11155 \family default
11156  you've made to accompany the oversized 
11157 \family sans
11158 Slide
11159 \family default
11160 .
11161 \end_layout
11162
11163 \begin_layout Standard
11164 The 
11165 \family sans
11166 Overlay
11167 \family default
11168  and 
11169 \family sans
11170 Note
11171 \family default
11172  environments work the same way as the 
11173 \family sans
11174 Slide
11175 \family default
11176  environment.
11177  They both create an 
11178 \begin_inset Quotes eld
11179 \end_inset
11180
11181 ASCII line
11182 \begin_inset Quotes erd
11183 \end_inset
11184
11185  followed by a label [
11186 \begin_inset Quotes eld
11187 \end_inset
11188
11189 NewOverlay:
11190 \begin_inset Quotes erd
11191 \end_inset
11192
11193  and 
11194 \begin_inset Quotes eld
11195 \end_inset
11196
11197 NewNote:
11198 \begin_inset Quotes erd
11199 \end_inset
11200
11201 ,
11202  respectively].
11203  The color is a stunning magenta instead of blue,
11204  and the 
11205 \begin_inset Quotes eld
11206 \end_inset
11207
11208 ASCII line
11209 \begin_inset Quotes erd
11210 \end_inset
11211
11212  will look different,
11213  in style and in length.
11214  The label fonts of all three also differ from one another.
11215 \end_layout
11216
11217 \begin_layout Standard
11218 As with a 
11219 \family sans
11220 Slide
11221 \family default
11222 ,
11223  if the contents of a 
11224 \family sans
11225 Note
11226 \family default
11227  or 
11228 \family sans
11229 Overlay
11230 \family default
11231  exceed the physical size of a slide or sheet of paper,
11232  the extra will overflow onto a new sheet.
11233  Again,
11234  you should avoid this.
11235  It defeats the whole purpose of 
11236 \family sans
11237 Note
11238 \family default
11239 s and 
11240 \family sans
11241 Overlay
11242 \family default
11243 s.
11244 \end_layout
11245
11246 \begin_layout Paragraph
11247 Using 
11248 \family sans
11249 Overlay
11250 \family default
11251  with 
11252 \family sans
11253 Slide
11254 \end_layout
11255
11256 \begin_layout Standard
11257 The idea behind an 
11258 \family sans
11259 Overlay
11260 \family default
11261  is a slide that sits atop another slide.
11262  Perhaps you wish to discuss a figure on the main 
11263 \family sans
11264 Slide
11265 \family default
11266  before displaying the text associated with it.
11267  One way to accomplish this is tape a flap of dark paper over the part of the 
11268 \family sans
11269 Slide
11270 \family default
11271  you want to display later.
11272  This method fails,
11273  however,
11274  if you wish to overlap one graph with another,
11275  for example.
11276  You would then have to fumble while speaking to align the two separate,
11277  overlapping 
11278 \family sans
11279 Slide
11280 \family default
11281 s to align the two graphs.
11282  The use of an 
11283 \family sans
11284 Overlay
11285 \family default
11286  environment in both cases makes life much easier.
11287 \end_layout
11288
11289 \begin_layout Standard
11290 Each 
11291 \family sans
11292 Overlay
11293 \family default
11294  receives the page number of its 
11295 \begin_inset Quotes eld
11296 \end_inset
11297
11298 parent
11299 \begin_inset Quotes erd
11300 \end_inset
11301
11302  
11303 \family sans
11304 Slide
11305 \family default
11306 ,
11307  appended by 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311
11312 \family typewriter
11313 -a
11314 \family default
11315
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319 .
11320 \begin_inset Foot
11321 status collapsed
11322
11323 \begin_layout Plain Layout
11324 Presumably,
11325  mutliple 
11326 \family sans
11327 Overlay
11328 \family default
11329 s would have 
11330 \begin_inset Quotes eld
11331 \end_inset
11332
11333
11334 \family typewriter
11335 -a
11336 \family default
11337
11338 \begin_inset Quotes erd
11339 \end_inset
11340
11341 ,
11342  
11343 \begin_inset Quotes eld
11344 \end_inset
11345
11346
11347 \family typewriter
11348 -b
11349 \family default
11350
11351 \begin_inset Quotes erd
11352 \end_inset
11353
11354 ,
11355  
11356 \begin_inset Quotes eld
11357 \end_inset
11358
11359
11360 \family typewriter
11361 -c
11362 \family default
11363
11364 \begin_inset Quotes erd
11365 \end_inset
11366
11367 ,
11368  etc.
11369 \begin_inset space ~
11370 \end_inset
11371
11372 appended to the page number of the parent 
11373 \family sans
11374 Slide
11375 \family default
11376 .
11377  
11378 \end_layout
11379
11380 \end_inset
11381
11382  Clearly,
11383  you want the contents of both the 
11384 \family sans
11385 Slide
11386 \family default
11387  and the 
11388 \family sans
11389 Overlay
11390 \family default
11391  to each fit on a single physical slide!
11392  You should probably consider an 
11393 \family sans
11394 Overlay
11395 \family default
11396  as 
11397 \begin_inset Quotes eld
11398 \end_inset
11399
11400 part of
11401 \begin_inset Quotes erd
11402 \end_inset
11403
11404  a 
11405 \family sans
11406 Slide
11407 \family default
11408 .
11409  Indeed,
11410  the \SpecialChar LyX
11411  
11412 \family sans
11413 slides
11414 \family default
11415  class provides a visual cue for this:
11416  the label at the start of an 
11417 \family sans
11418 Overlay
11419 \family default
11420  is shorter than that at the start of a 
11421 \family sans
11422 Slide
11423 \family default
11424 .
11425  Lastly,
11426  when you generate printable output,
11427  you'll find alignment markers in all four corners of both the 
11428 \family sans
11429 Overlay
11430 \family default
11431  page and its parent 
11432 \family sans
11433 Slide
11434 \family default
11435 .
11436  These will assist you in lining up the two physical slides.
11437 \end_layout
11438
11439 \begin_layout Standard
11440 The major problem in overlaying two slides is aligning the contents of the two transparencies.
11441  How much space should you leave for that graph on the second slide?
11442  Worse still,
11443  what if you want a graph and a sentence on second slide,
11444  but there is text on the main transparency that goes in between them?
11445  You could try and insert vertical space of the right size.
11446  The better way is to use 
11447 \family sans
11448 InvisibleText
11449 \family default
11450  and 
11451 \family sans
11452 VisibleText
11453 \family default
11454 .
11455 \end_layout
11456
11457 \begin_layout Standard
11458 As their names imply,
11459  
11460 \family sans
11461 InvisibleText
11462 \family default
11463  and 
11464 \family sans
11465 VisibleText
11466 \family default
11467  are two command-like paragraph environments that make all subsequent text invisible and visible,
11468  respectively.
11469  Note from section
11470 \begin_inset space ~
11471 \end_inset
11472
11473
11474 \begin_inset CommandInset ref
11475 LatexCommand ref
11476 reference "sec:slideQuirk"
11477 nolink "false"
11478
11479 \end_inset
11480
11481  that you don't place anything 
11482 \emph on
11483 into
11484 \emph default
11485  these two environments,
11486  however.
11487  When you create an 
11488 \family sans
11489 InvisibleText
11490 \family default
11491 ,
11492  it inserts a centered,
11493  sky-blue label into the page reading 
11494 \begin_inset Quotes eld
11495 \end_inset
11496
11497 <Invisible Text Follows>
11498 \begin_inset Quotes erd
11499 \end_inset
11500
11501 .
11502  For paragraphs following this label,
11503  the parts of the 
11504 \family sans
11505 Slide
11506 \family default
11507  [or 
11508 \family sans
11509 Overlay
11510 \family default
11511 ;
11512  it doesn't matter which] where they would be contain instead blank space.
11513  
11514 \end_layout
11515
11516 \begin_layout Standard
11517 For 
11518 \family sans
11519 VisibleText
11520 \family default
11521 ,
11522  the corresponding centered label is 
11523 \begin_inset Quotes eld
11524 \end_inset
11525
11526 <Visible Text Follows>
11527 \begin_inset Quotes erd
11528 \end_inset
11529
11530  in blazing green.
11531  Paragraphs following this label behave normally.
11532  Note that the beginning of a new 
11533 \family sans
11534 Slide
11535 \family default
11536 ,
11537  
11538 \family sans
11539 Overlay
11540 \family default
11541 ,
11542  or 
11543 \family sans
11544 Note
11545 \family default
11546  automatically shuts off an 
11547 \family sans
11548 InvisibleText
11549 \family default
11550 .
11551  It's therefore not necessary to use 
11552 \family sans
11553 VisibleText
11554 \family default
11555  at the end of a 
11556 \family sans
11557 Slide
11558 \family default
11559 .
11560 \end_layout
11561
11562 \begin_layout Standard
11563 By now,
11564  it should be obvious how to create overlay transparencies using the proper combination of 
11565 \family sans
11566 InvisibleText
11567 \family default
11568  and 
11569 \family sans
11570 VisibleText
11571 \family default
11572  on a 
11573 \family sans
11574 Slide
11575 \family default
11576  and 
11577 \family sans
11578 Overlay
11579 \family default
11580 :
11581 \end_layout
11582
11583 \begin_layout Enumerate
11584 Create a 
11585 \family sans
11586 Slide
11587 \family default
11588 ,
11589  including everything that will appear on it,
11590  whether on the main slide or on the 
11591 \family sans
11592 Overlay
11593 \family default
11594 .
11595 \end_layout
11596
11597 \begin_layout Enumerate
11598 Before each figure or paragraph that will appear only on the 
11599 \family sans
11600 Overlay
11601 \family default
11602 ,
11603  insert an 
11604 \family sans
11605 InvisibleText
11606 \family default
11607  environment.
11608  If necessary,
11609  insert a 
11610 \family sans
11611 VisibleText
11612 \family default
11613  environment after the 
11614 \family sans
11615 Overlay
11616 \family default
11617 -only text.
11618 \end_layout
11619
11620 \begin_layout Enumerate
11621 Start an 
11622 \family sans
11623 Overlay
11624 \family default
11625  immediately following the 
11626 \family sans
11627 Slide
11628 \family default
11629 .
11630 \end_layout
11631
11632 \begin_layout Enumerate
11633 Copy the contents of this 
11634 \family sans
11635 Slide
11636 \family default
11637  into the 
11638 \family sans
11639 Overlay
11640 \family default
11641 .
11642 \end_layout
11643
11644 \begin_layout Enumerate
11645 Within the 
11646 \family sans
11647 Overlay
11648 \family default
11649 ,
11650  change all of the 
11651 \family sans
11652 InvisibleText
11653 \family default
11654  lines to 
11655 \family sans
11656 VisibleText
11657 \family default
11658  and vice-versa.
11659 \end_layout
11660
11661 \begin_layout Standard
11662 That's it.
11663  You've just made an 
11664 \family sans
11665 Overlay
11666 \family default
11667 .
11668 \end_layout
11669
11670 \begin_layout Standard
11671 There's one problem with the way I've designed the \SpecialChar LyX
11672  
11673 \family sans
11674 slides
11675 \family default
11676  class:
11677  you can't make text in the middle of a paragraph invisible,
11678  nor make text in the middle of an invisible paragraph visible again.
11679  To accomplish this feat,
11680  you'll need to use some inlined \SpecialChar LaTeX
11681  codes.
11682 \begin_inset Foot
11683 status collapsed
11684
11685 \begin_layout Plain Layout
11686 The commands of interest are:
11687  
11688 \end_layout
11689
11690 \begin_layout Itemize
11691
11692 \family typewriter
11693 {
11694 \backslash
11695 invisible \SpecialChar ldots
11696  }
11697 \end_layout
11698
11699 \begin_layout Itemize
11700
11701 \family typewriter
11702 {
11703 \backslash
11704 visible \SpecialChar ldots
11705  }
11706 \end_layout
11707
11708 \begin_layout Plain Layout
11709 \SpecialChar ldots
11710 and need to be marked as \SpecialChar TeX
11711 .
11712  The text whose 
11713 \begin_inset Quotes eld
11714 \end_inset
11715
11716 visibility
11717 \begin_inset Quotes erd
11718 \end_inset
11719
11720  you wish to change goes in between the brackets [and after the 
11721 \family typewriter
11722
11723 \backslash
11724 invisible
11725 \family default
11726  or 
11727 \family typewriter
11728
11729 \backslash
11730 visible
11731 \family default
11732  command].
11733  If you don't know how to mark text as \SpecialChar TeX
11734 ,
11735  see the appropriate section of the 
11736 \emph on
11737 User's Guide
11738 \emph default
11739 .
11740 \end_layout
11741
11742 \end_inset
11743
11744
11745 \end_layout
11746
11747 \begin_layout Paragraph
11748 Using 
11749 \family sans
11750 Note
11751 \family default
11752  with 
11753 \family sans
11754 Slide
11755 \family default
11756
11757 \begin_inset CommandInset label
11758 LatexCommand label
11759 name "sec:slideNote"
11760
11761 \end_inset
11762
11763
11764 \end_layout
11765
11766 \begin_layout Standard
11767 Like an 
11768 \family sans
11769 Overlay
11770 \family default
11771 ,
11772  a 
11773 \family sans
11774 Note
11775 \family default
11776  is associated with a 
11777 \begin_inset Quotes eld
11778 \end_inset
11779
11780 parent
11781 \begin_inset Quotes erd
11782 \end_inset
11783
11784  
11785 \family sans
11786 Slide
11787 \family default
11788 .
11789  Here,
11790  too,
11791  the \SpecialChar LyX
11792  
11793 \family sans
11794 slides
11795 \family default
11796  class provides visual cues.
11797  The label for a 
11798 \family sans
11799 Note
11800 \family default
11801  is shorter than that of a 
11802 \family sans
11803 Slide
11804 \family default
11805  [yet longer than that of an 
11806 \family sans
11807 Overlay
11808 \family default
11809 ] and,
11810  like the label of an 
11811 \family sans
11812 Overlay
11813 \family default
11814  is shockingly magenta.
11815  Additionally,
11816  the printed 
11817 \family sans
11818 Note
11819 \family default
11820  has the page number of its 
11821 \begin_inset Quotes eld
11822 \end_inset
11823
11824 parent
11825 \begin_inset Quotes erd
11826 \end_inset
11827
11828  
11829 \family sans
11830 Slide
11831 \family default
11832 ,
11833  appended by 
11834 \begin_inset Quotes eld
11835 \end_inset
11836
11837
11838 \family typewriter
11839 -
11840 \family default
11841 1
11842 \begin_inset Quotes erd
11843 \end_inset
11844
11845 ,
11846  
11847 \begin_inset Quotes eld
11848 \end_inset
11849
11850
11851 \family typewriter
11852 -
11853 \family default
11854 2
11855 \begin_inset Quotes erd
11856 \end_inset
11857
11858 ,
11859  
11860 \begin_inset Quotes eld
11861 \end_inset
11862
11863
11864 \family typewriter
11865 -
11866 \family default
11867 3
11868 \begin_inset Quotes erd
11869 \end_inset
11870
11871 ,
11872  etc.
11873  You can have multiple 
11874 \family sans
11875 Note
11876 \family default
11877 s associated with a single 
11878 \family sans
11879 Slide
11880 \family default
11881 ,
11882  and,
11883  as with 
11884 \family sans
11885 Slide
11886 \family default
11887  and 
11888 \family sans
11889 Overlay
11890 \family default
11891 ,
11892  you'll probably want to break up long 
11893 \family sans
11894 Note
11895 \family default
11896 s so that they fit on a single sheet of paper.
11897 \end_layout
11898
11899 \begin_layout Standard
11900 The purpose of a 
11901 \family sans
11902 Note
11903 \family default
11904  is obvious:
11905  it contains anything additional you might want to say about a 
11906 \family sans
11907 Slide
11908 \family default
11909 .
11910  It could also be used as a sheet of reminders for a particular 
11911 \family sans
11912 Slide
11913 \family default
11914 .
11915  In the case of the latter,
11916  you might want to make use of time markers.
11917  Currently,
11918  the \SpecialChar LyX
11919  
11920 \family sans
11921 slides
11922 \family default
11923  class has no 
11924 \begin_inset Quotes eld
11925 \end_inset
11926
11927 native
11928 \begin_inset Quotes erd
11929 \end_inset
11930
11931  support for time markers,
11932  a 
11933 \noun on
11934 Sli\SpecialChar TeX
11935
11936 \noun default
11937  feature.
11938  So,
11939  you'll have to resort to using the \SpecialChar LaTeX
11940  codes.
11941 \end_layout
11942
11943 \begin_layout Standard
11944 To use time markers,
11945  you'll need to specify the extra class option 
11946 \begin_inset Quotes eld
11947 \end_inset
11948
11949
11950 \family typewriter
11951 clock
11952 \family default
11953
11954 \begin_inset Quotes erd
11955 \end_inset
11956
11957  [see section
11958 \begin_inset space ~
11959 \end_inset
11960
11961
11962 \begin_inset CommandInset ref
11963 LatexCommand ref
11964 reference "sec:slidesetup"
11965 nolink "false"
11966
11967 \end_inset
11968
11969 ].
11970  This option turns on timing marks,
11971  which will appear in the lower-left-hand corner of every 
11972 \family sans
11973 Note
11974 \family default
11975  you generate.
11976  To set what appears in the time marker,
11977  you use the \SpecialChar LaTeX
11978  commands 
11979 \begin_inset Quotes eld
11980 \end_inset
11981
11982
11983 \family typewriter
11984
11985 \backslash
11986 settime{}
11987 \family default
11988
11989 \begin_inset Quotes erd
11990 \end_inset
11991
11992  and 
11993 \begin_inset Quotes eld
11994 \end_inset
11995
11996
11997 \family typewriter
11998
11999 \backslash
12000 addtime{}
12001 \family default
12002
12003 \begin_inset Quotes erd
12004 \end_inset
12005
12006 .
12007  The arguments of both commands are time measured in seconds.
12008  
12009 \begin_inset Quotes eld
12010 \end_inset
12011
12012
12013 \family typewriter
12014
12015 \backslash
12016 settime{}
12017 \family default
12018
12019 \begin_inset Quotes erd
12020 \end_inset
12021
12022  sets the time marker to a given time.
12023  
12024 \begin_inset Quotes eld
12025 \end_inset
12026
12027
12028 \family typewriter
12029
12030 \backslash
12031 addtime{}
12032 \family default
12033
12034 \begin_inset Quotes erd
12035 \end_inset
12036
12037  increments the time marker by the specified amount.
12038  Using time markers and 
12039 \family sans
12040 Note
12041 \family default
12042 s in this fashion,
12043  you can remind yourself how much time to spend on a particular 
12044 \family sans
12045 Slide
12046 \family default
12047 .
12048 \end_layout
12049
12050 \begin_layout Standard
12051 There's one last feature to describe.
12052  Clearly,
12053  you'd like to print out all of your 
12054 \family sans
12055 Slide
12056 \family default
12057 s and 
12058 \family sans
12059 Overlay
12060 \family default
12061 s on transparencies while printing all of your 
12062 \family sans
12063 Note
12064 \family default
12065 s on plain paper.
12066  However,
12067  a 
12068 \family sans
12069 Note
12070 \family default
12071  
12072 \emph on
12073 must
12074 \emph default
12075  follow the 
12076 \family sans
12077 Slide
12078 \family default
12079  with which it is associated.
12080  What's a person to do?
12081 \end_layout
12082
12083 \begin_layout Standard
12084 Luckily,
12085  there are two \SpecialChar LaTeX
12086  commands that allow you to select what to print out.
12087  Both must be placed into the preamble of your document.
12088  The command 
12089 \begin_inset Quotes eld
12090 \end_inset
12091
12092
12093 \family typewriter
12094
12095 \backslash
12096 onlyslides{
12097 \backslash
12098 slides}
12099 \family default
12100
12101 \begin_inset Quotes erd
12102 \end_inset
12103
12104  will cause the output to contain only the 
12105 \family sans
12106 Slide
12107 \family default
12108 s and 
12109 \family sans
12110 Overlay
12111 \family default
12112 s.
12113  Correspondingly,
12114  the command 
12115 \begin_inset Quotes eld
12116 \end_inset
12117
12118
12119 \family typewriter
12120
12121 \backslash
12122 onlynotes{
12123 \backslash
12124 notes}
12125 \family default
12126
12127 \begin_inset Quotes erd
12128 \end_inset
12129
12130  prevents the output of anything but 
12131 \family sans
12132 Note
12133 \family default
12134 s.
12135  I'd advise placing both commands in the preamble and initially comment both out.
12136  You can then preview your entire presentation as you write.
12137  When you're done writing,
12138  you can then uncomment one of the two to select what you want to print.
12139  I like to uncomment 
12140 \begin_inset Quotes eld
12141 \end_inset
12142
12143
12144 \family typewriter
12145
12146 \backslash
12147 onlyslides{
12148 \backslash
12149 slides}
12150 \family default
12151
12152 \begin_inset Quotes erd
12153 \end_inset
12154
12155  ,
12156  print to a file with 
12157 \begin_inset Quotes eld
12158 \end_inset
12159
12160
12161 \family typewriter
12162 -slides
12163 \family default
12164
12165 \begin_inset Quotes erd
12166 \end_inset
12167
12168  in its name,
12169  comment it back out,
12170  then uncomment 
12171 \begin_inset Quotes eld
12172 \end_inset
12173
12174
12175 \family typewriter
12176
12177 \backslash
12178 onlynotes{
12179 \backslash
12180 notes}
12181 \family default
12182
12183 \begin_inset Quotes erd
12184 \end_inset
12185
12186  and print to a 
12187 \begin_inset Quotes eld
12188 \end_inset
12189
12190
12191 \family typewriter
12192 *-notes.ps
12193 \family default
12194
12195 \begin_inset Quotes erd
12196 \end_inset
12197
12198  file.
12199  I can then send either file to a printer,
12200  loading transparencies or plain paper as appropriate.
12201 \end_layout
12202
12203 \begin_layout Standard
12204 You can also provide other arguments to the 
12205 \begin_inset Quotes eld
12206 \end_inset
12207
12208
12209 \family typewriter
12210
12211 \backslash
12212 onlyslides{}
12213 \family default
12214
12215 \begin_inset Quotes erd
12216 \end_inset
12217
12218  and 
12219 \begin_inset Quotes eld
12220 \end_inset
12221
12222
12223 \family typewriter
12224
12225 \backslash
12226 onlynotes{}
12227 \family default
12228
12229 \begin_inset Quotes erd
12230 \end_inset
12231
12232  commands.
12233  See a good \SpecialChar LaTeX
12234  book for details.
12235 \end_layout
12236
12237 \begin_layout Subsubsection
12238 The 
12239 \family sans
12240 slides
12241 \family default
12242  Class Template File
12243 \end_layout
12244
12245 \begin_layout Standard
12246 I have also provided a template file with the 
12247 \family sans
12248 slides
12249 \family default
12250  class.
12251  To use it,
12252  begin your new presentation with 
12253 \family sans
12254 File\SpecialChar menuseparator
12255 New
12256 \begin_inset space ~
12257 \end_inset
12258
12259 from
12260 \begin_inset space ~
12261 \end_inset
12262
12263 Template\SpecialChar menuseparator
12264 Presentations\SpecialChar menuseparator
12265 Slides
12266 \family default
12267 .
12268  Your new \SpecialChar LyX
12269  presentation file will contain an example 
12270 \family sans
12271 Slide
12272 \family default
12273  – 
12274 \family sans
12275 Overlay
12276 \family default
12277  – 
12278 \family sans
12279 Note
12280 \family default
12281  triplet.
12282  The 
12283 \family sans
12284 Slide
12285 \family default
12286  and 
12287 \family sans
12288 Overlay
12289 \family default
12290  additionally contain an example of the use of 
12291 \family sans
12292 InvisibleText
12293 \family default
12294  and 
12295 \family sans
12296 VisibleText
12297 \family default
12298 .
12299  Lastly,
12300  the preamble will contain:
12301 \end_layout
12302
12303 \begin_layout LyX-Code
12304 % Uncomment to print out only slides and overlays
12305 \end_layout
12306
12307 \begin_layout LyX-Code
12308 %
12309 \end_layout
12310
12311 \begin_layout LyX-Code
12312 %
12313 \backslash
12314 onlyslides{
12315 \backslash
12316 slides}
12317 \begin_inset Newline newline
12318 \end_inset
12319
12320  
12321 \end_layout
12322
12323 \begin_layout LyX-Code
12324 % Uncomment to print out only notes
12325 \end_layout
12326
12327 \begin_layout LyX-Code
12328 %
12329 \end_layout
12330
12331 \begin_layout LyX-Code
12332 %
12333 \backslash
12334 onlynotes{
12335 \backslash
12336 notes}
12337 \end_layout
12338
12339 \begin_layout Standard
12340 One final thing:
12341  I created this class to support the \SpecialChar LaTeX2e
12342  
12343 \begin_inset Quotes eld
12344 \end_inset
12345
12346
12347 \noun on
12348 Sli\SpecialChar TeX
12349
12350 \noun default
12351  emulation
12352 \begin_inset Quotes erd
12353 \end_inset
12354
12355  class,
12356  one of the built-in \SpecialChar LaTeX2e
12357  classes.
12358  Neither I nor the rest of the \SpecialChar LyX
12359  Team endorse or oppose the use of this built-in slide class.
12360  It's here if you want it or need it.
12361  There exist other \SpecialChar LaTeX2e
12362  classes for creating presentations,
12363  such 
12364 \family sans
12365 Foils
12366 \family default
12367  (see section
12368 \begin_inset space ~
12369 \end_inset
12370
12371
12372 \begin_inset CommandInset ref
12373 LatexCommand ref
12374 reference "sec:foiltex"
12375 nolink "false"
12376
12377 \end_inset
12378
12379 ) or 
12380 \family sans
12381 Seminar
12382 \family default
12383  (see section
12384 \begin_inset space ~
12385 \end_inset
12386
12387
12388 \begin_inset CommandInset ref
12389 LatexCommand ref
12390 reference "subsec:Seminar"
12391 plural "false"
12392 caps "false"
12393 noprefix "false"
12394 nolink "false"
12395
12396 \end_inset
12397
12398 ).
12399  Try them out to see what sort of alternative they provide.
12400 \end_layout
12401
12402 \begin_layout Section
12403 Reports
12404 \end_layout
12405
12406 \begin_layout Subsection
12407 report
12408 \end_layout
12409
12410 \begin_layout Standard
12411 Report classes are sort of a hybrid between book and article classes:
12412  like book classes,
12413  they provide parts,
12414  chapters and sections but does not provide frontmatter,
12415  mainmatter,
12416  and backmatter;
12417  like article classes,
12418  they provide abstract paragraph styles and are one-sided by default.
12419  Also,
12420  they do not start a new chapter on the right hand page (even in two-side mode).
12421 \end_layout
12422
12423 \begin_layout Standard
12424 All externally maintained 
12425 \family sans
12426 report
12427 \family default
12428  document classes that are officially supported by \SpecialChar LyX
12429  are described in the Collections (section
12430 \begin_inset space ~
12431 \end_inset
12432
12433
12434 \begin_inset CommandInset ref
12435 LatexCommand ref
12436 reference "sec:Collections"
12437 nolink "false"
12438
12439 \end_inset
12440
12441 ):
12442 \end_layout
12443
12444 \begin_layout Itemize
12445 For 
12446 \family sans
12447 Japanese Report (Standard Class,
12448  vertical Writing)
12449 \family default
12450  and 
12451 \family sans
12452 Japanese Report (Standard Class)
12453 \family default
12454 ,
12455  see section
12456 \begin_inset space ~
12457 \end_inset
12458
12459
12460 \begin_inset CommandInset ref
12461 LatexCommand ref
12462 reference "subsec:Japanese"
12463 nolink "false"
12464
12465 \end_inset
12466
12467 .
12468 \end_layout
12469
12470 \begin_layout Itemize
12471 For 
12472 \family sans
12473 KOMA-Script Report
12474 \family default
12475 ,
12476  see section
12477 \begin_inset space ~
12478 \end_inset
12479
12480
12481 \begin_inset CommandInset ref
12482 LatexCommand ref
12483 reference "subsec:KOMA-Script"
12484 nolink "false"
12485
12486 \end_inset
12487
12488 .
12489 \end_layout
12490
12491 \begin_layout Itemize
12492 For 
12493 \family sans
12494 Report (Standard Class with Extra Font Sizes)
12495 \family default
12496 ,
12497  see section
12498 \begin_inset space ~
12499 \end_inset
12500
12501
12502 \begin_inset CommandInset ref
12503 LatexCommand ref
12504 reference "subsec:Extra-font-sizes"
12505 nolink "false"
12506
12507 \end_inset
12508
12509 .
12510 \end_layout
12511
12512 \begin_layout Itemize
12513 For 
12514 \family sans
12515 Polish Report (MW Bundle)
12516 \family default
12517 ,
12518  see section
12519 \begin_inset space ~
12520 \end_inset
12521
12522
12523 \begin_inset CommandInset ref
12524 LatexCommand ref
12525 reference "subsec:Polish-M.W.collection"
12526 plural "false"
12527 caps "false"
12528 noprefix "false"
12529 nolink "false"
12530
12531 \end_inset
12532
12533 .
12534 \end_layout
12535
12536 \begin_layout Section
12537 Scripts
12538 \end_layout
12539
12540 \begin_layout Standard
12541 In the 
12542 \family sans
12543 Scripts
12544 \family default
12545  category,
12546  we assemble document classes that help to write drama or movie scripts.
12547  The category is also open for other scripts,
12548  such as lecture scripts,
12549  for which no classes are officially supported yet by \SpecialChar LyX
12550  though.
12551 \end_layout
12552
12553 \begin_layout Subsection
12554 Broadway
12555 \end_layout
12556
12557 \begin_layout Standard
12558 by 
12559 \shape smallcaps
12560 Garst Reese
12561 \end_layout
12562
12563 \begin_layout Subsubsection
12564 Introduction
12565 \end_layout
12566
12567 \begin_layout Standard
12568
12569 \family sans
12570 Broadway
12571 \family default
12572  is for writing plays.
12573  The format is more decorative than 
12574 \family sans
12575 Hollywood
12576 \family default
12577  (see sec.
12578 \begin_inset space ~
12579 \end_inset
12580
12581
12582 \begin_inset CommandInset ref
12583 LatexCommand ref
12584 reference "subsec:Hollywood"
12585
12586 \end_inset
12587
12588 ),
12589  and much less standardized.
12590  This format should be suitable for workshops.
12591 \end_layout
12592
12593 \begin_layout Subsubsection
12594 Special problems
12595 \end_layout
12596
12597 \begin_layout Standard
12598 The same as in 
12599 \family sans
12600 Hollywood
12601 \family default
12602  (see section
12603 \begin_inset space ~
12604 \end_inset
12605
12606
12607 \begin_inset CommandInset ref
12608 LatexCommand ref
12609 reference "subsec:Special-problems-Hollywood"
12610
12611 \end_inset
12612
12613 ).
12614 \end_layout
12615
12616 \begin_layout Subsubsection
12617 Special features
12618 \end_layout
12619
12620 \begin_layout Standard
12621 Insert the 
12622 \family sans
12623 Speaker
12624 \family default
12625  names as labels then cross-reference the label to insert the name.
12626  The cross-reference dialog will show the current cast of characters.
12627 \end_layout
12628
12629 \begin_layout Subsubsection
12630 Paper size and Margins
12631 \end_layout
12632
12633 \begin_layout Standard
12634 USLetter,
12635  left 1.6in,
12636  right 0.75in,
12637  top 0.5in,
12638  bottom 0.75in
12639 \end_layout
12640
12641 \begin_layout Subsubsection
12642 Environments
12643 \end_layout
12644
12645 \begin_layout Standard
12646 The following environments are available.
12647  You can use 
12648 \family typewriter
12649 broadway.bind
12650 \family default
12651  to get the bind keys shown at the right.
12652 \end_layout
12653
12654 \begin_layout Itemize
12655
12656 \family sans
12657 Standard
12658 \begin_inset Newline newline
12659 \end_inset
12660
12661
12662 \family default
12663 You should not have to use this,
12664  but it is here for anything that does not fit otherwise.
12665 \end_layout
12666
12667 \begin_layout Itemize
12668
12669 \family sans
12670 Narrative
12671 \begin_inset space \hfill{}
12672 \end_inset
12673
12674 M-z n
12675 \begin_inset Newline newline
12676 \end_inset
12677
12678
12679 \family default
12680 Used to describe stage setting and the action.
12681  First use of speaker names in all CAPs.
12682 \end_layout
12683
12684 \begin_layout Itemize
12685
12686 \family sans
12687 ACT
12688 \begin_inset space \hfill{}
12689 \end_inset
12690
12691 M-z a
12692 \begin_inset Newline newline
12693 \end_inset
12694
12695
12696 \family default
12697 Automatically numbered.
12698  On screen it will be arabic,
12699  but will print as Roman.
12700 \end_layout
12701
12702 \begin_layout Itemize
12703
12704 \family sans
12705 ACT*
12706 \begin_inset space \hfill{}
12707 \end_inset
12708
12709 M-z S at
12710 \begin_inset Newline newline
12711 \end_inset
12712
12713
12714 \family default
12715 Subtitle for 
12716 \family sans
12717 ACT.
12718
12719 \family default
12720  It is just centered text.
12721 \end_layout
12722
12723 \begin_layout Itemize
12724
12725 \family sans
12726 SCENE
12727 \begin_inset space \hfill{}
12728 \end_inset
12729
12730 M-z S-S
12731 \begin_inset Newline newline
12732 \end_inset
12733
12734
12735 \family default
12736 Not automatically numbered.
12737  You supply the number.
12738  This is because I couldn't figure out how.
12739 \end_layout
12740
12741 \begin_layout Itemize
12742
12743 \family sans
12744 AT_RISE:
12745 \begin_inset space \hfill{}
12746 \end_inset
12747
12748 M-z S-R
12749 \begin_inset Newline newline
12750 \end_inset
12751
12752
12753 \family default
12754 A special case of Narrative to describe the setting and action as the curtain rises.
12755 \end_layout
12756
12757 \begin_layout Itemize
12758
12759 \family sans
12760 Speaker
12761 \begin_inset space \hfill{}
12762 \end_inset
12763
12764 M-z s
12765 \begin_inset Newline newline
12766 \end_inset
12767
12768
12769 \family default
12770 The speaker's (actor's) title,
12771  centered in all CAPS.
12772 \end_layout
12773
12774 \begin_layout Itemize
12775
12776 \family sans
12777 Parenthetical
12778 \begin_inset space \hfill{}
12779 \end_inset
12780
12781 M-z p
12782 \begin_inset Newline newline
12783 \end_inset
12784
12785
12786 \family default
12787 Instructions to the speaker.
12788  The parentheses are automatically inserted.
12789  The ( will appear on screen,
12790  but both will be in the printed play.
12791  This environment is only used within 
12792 \family sans
12793 Dialogue
12794 \family default
12795 .
12796 \end_layout
12797
12798 \begin_layout Itemize
12799
12800 \family sans
12801 Dialogue
12802 \begin_inset space \hfill{}
12803 \end_inset
12804
12805 M-z d
12806 \begin_inset Newline newline
12807 \end_inset
12808
12809
12810 \family default
12811 What the Speaker says.
12812 \end_layout
12813
12814 \begin_layout Itemize
12815
12816 \family sans
12817 CURTAIN
12818 \begin_inset space \hfill{}
12819 \end_inset
12820
12821 M-z S-C
12822 \begin_inset Newline newline
12823 \end_inset
12824
12825
12826 \family default
12827 The curtain comes down.
12828 \end_layout
12829
12830 \begin_layout Itemize
12831
12832 \family sans
12833 Title
12834 \begin_inset space \hfill{}
12835 \end_inset
12836
12837 M-z S-T
12838 \end_layout
12839
12840 \begin_layout Itemize
12841
12842 \family sans
12843 Author
12844 \begin_inset space \hfill{}
12845 \end_inset
12846
12847 M-z S-A
12848 \end_layout
12849
12850 \begin_layout Itemize
12851
12852 \family sans
12853 Right_Address
12854 \begin_inset space \hfill{}
12855 \end_inset
12856
12857 M-z r
12858 \end_layout
12859
12860 \begin_layout Standard
12861 Hello there.
12862 \end_layout
12863
12864 \begin_layout Subsection
12865 \begin_inset CommandInset label
12866 LatexCommand label
12867 name "subsec:Hollywood"
12868
12869 \end_inset
12870
12871 Hollywood (Hollywood spec scripts)
12872 \end_layout
12873
12874 \begin_layout Standard
12875 by 
12876 \shape smallcaps
12877 Garst Reese
12878 \end_layout
12879
12880 \begin_layout Subsubsection
12881 Introduction
12882 \end_layout
12883
12884 \begin_layout Standard
12885 Getting the format of a Hollywood script right is a 
12886 \begin_inset Quotes eld
12887 \end_inset
12888
12889 rite of passage.
12890 \begin_inset Quotes erd
12891 \end_inset
12892
12893  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
12894  Each page of a script should be one minute of film.
12895  Nothing goes in a script that you cannot see or hear on screen.
12896  The courier 12 pt font should be used throughout.
12897  No italics.
12898 \end_layout
12899
12900 \begin_layout Subsubsection
12901 \begin_inset CommandInset label
12902 LatexCommand label
12903 name "subsec:Special-problems-Hollywood"
12904
12905 \end_inset
12906
12907 Special problems
12908 \end_layout
12909
12910 \begin_layout Standard
12911 Speakers' lines should 
12912 \emph on
12913 never
12914 \emph default
12915  break in mid-sentence.
12916  If a speaker's lines continue over a page break,
12917  repeat the 
12918 \family sans
12919 Speaker
12920 \family default
12921  title followed by (Cont'd).
12922 \end_layout
12923
12924 \begin_layout Subsubsection
12925 Special features
12926 \end_layout
12927
12928 \begin_layout Standard
12929 Insert the 
12930 \family sans
12931 Speaker
12932 \family default
12933  names as labels then cross-reference the label to insert the name.
12934  The cross-reference dialog will show the current cast of characters.
12935  You can use this to insert the speaker name in narratives also.
12936 \end_layout
12937
12938 \begin_layout Subsubsection
12939 Paper size and Margins
12940 \end_layout
12941
12942 \begin_layout Standard
12943 USLetter,
12944  left 1.6in,
12945  right 0.75in,
12946  top 0.5in,
12947  bottom 0.75in
12948 \end_layout
12949
12950 \begin_layout Subsubsection
12951 Environments
12952 \end_layout
12953
12954 \begin_layout Standard
12955 The following environments are available.
12956  You can use 
12957 \family typewriter
12958 hollywood.bind
12959 \family default
12960  to get the bind keys shown at the right.
12961 \end_layout
12962
12963 \begin_layout Itemize
12964
12965 \family sans
12966 Standard
12967 \begin_inset Newline newline
12968 \end_inset
12969
12970
12971 \family default
12972 Used where nothing else works.
12973  Try to avoid it.
12974 \end_layout
12975
12976 \begin_layout Itemize
12977
12978 \family sans
12979 FADE_IN
12980 \family default
12981 :
12982 \begin_inset space \hfill{}
12983 \end_inset
12984
12985
12986 \family sans
12987 M-z S-I
12988 \family default
12989
12990 \begin_inset Newline newline
12991 \end_inset
12992
12993 Usually followed by something like 
12994 \begin_inset Quotes eld
12995 \end_inset
12996
12997 on Sally waking up.
12998 \begin_inset Quotes erd
12999 \end_inset
13000
13001
13002 \end_layout
13003
13004 \begin_layout Itemize
13005
13006 \family sans
13007 INT:
13008 \begin_inset space \hfill{}
13009 \end_inset
13010
13011 M-z i
13012 \begin_inset Newline newline
13013 \end_inset
13014
13015
13016 \family default
13017 Introduces a new INTERIOR camera set-up.
13018  Always followed by DAY or NIGHT,
13019  or something similar to define the lighting required.
13020  Everthing on this line in CAPS.
13021 \end_layout
13022
13023 \begin_layout Itemize
13024
13025 \family sans
13026 EXT:
13027 \begin_inset space \hfill{}
13028 \end_inset
13029
13030 M-z e
13031 \begin_inset Newline newline
13032 \end_inset
13033
13034
13035 \family default
13036 Introduces a new EXTERIOR camera set-up.
13037  Everthing on this line in CAPS.
13038 \end_layout
13039
13040 \begin_layout Itemize
13041
13042 \family sans
13043 Speaker
13044 \begin_inset space \hfill{}
13045 \end_inset
13046
13047 M-z s
13048 \begin_inset Newline newline
13049 \end_inset
13050
13051
13052 \family default
13053 The character speaking.
13054 \end_layout
13055
13056 \begin_layout Itemize
13057
13058 \family sans
13059 Parenthetical
13060 \begin_inset space \hfill{}
13061 \end_inset
13062
13063 M-z p
13064 \begin_inset Newline newline
13065 \end_inset
13066
13067
13068 \family default
13069 Instructions to the speaker.
13070  The () are automatically inserted.
13071 \end_layout
13072
13073 \begin_layout Itemize
13074
13075 \family sans
13076 Dialogue
13077 \begin_inset space \hfill{}
13078 \end_inset
13079
13080 M-z d
13081 \begin_inset Newline newline
13082 \end_inset
13083
13084
13085 \family default
13086 What the 
13087 \family sans
13088 Speaker
13089 \family default
13090  says.
13091 \end_layout
13092
13093 \begin_layout Itemize
13094
13095 \family sans
13096 Transition
13097 \begin_inset space \hfill{}
13098 \end_inset
13099
13100 M-z t
13101 \begin_inset Newline newline
13102 \end_inset
13103
13104
13105 \family default
13106 Camera movement instruction.
13107  e.
13108 \begin_inset space \thinspace{}
13109 \end_inset
13110
13111 g.
13112 \begin_inset space \space{}
13113 \end_inset
13114
13115 CUT TO:
13116 \end_layout
13117
13118 \begin_layout Itemize
13119
13120 \family sans
13121 FADE OUT:
13122 \begin_inset space \hfill{}
13123 \end_inset
13124
13125 M-z S-I
13126 \end_layout
13127
13128 \begin_layout Itemize
13129
13130 \family sans
13131 Author
13132 \begin_inset space \hfill{}
13133 \end_inset
13134
13135 M-z S-A
13136 \end_layout
13137
13138 \begin_layout Itemize
13139
13140 \family sans
13141 Title
13142 \begin_inset space \hfill{}
13143 \end_inset
13144
13145 M-z S-T
13146 \end_layout
13147
13148 \begin_layout Itemize
13149
13150 \family sans
13151 Right_Address
13152 \begin_inset space \hfill{}
13153 \end_inset
13154
13155 M-z r
13156 \end_layout
13157
13158 \begin_layout Subsubsection
13159 Script jargon
13160 \end_layout
13161
13162 \begin_layout Itemize
13163 (O.S) —
13164  off screen
13165 \end_layout
13166
13167 \begin_layout Itemize
13168 (V.0) —
13169  voice over
13170 \end_layout
13171
13172 \begin_layout Itemize
13173 b.
13174 \begin_inset space \thinspace{}
13175 \end_inset
13176
13177 g.
13178  —
13179  background
13180 \end_layout
13181
13182 \begin_layout Itemize
13183 C.U.
13184  —
13185  close-up
13186 \end_layout
13187
13188 \begin_layout Itemize
13189 PAN —
13190  camera movement
13191 \end_layout
13192
13193 \begin_layout Itemize
13194 INSERT —
13195  cut to close-up of
13196 \end_layout
13197
13198 \begin_layout Chapter
13199 Modules
13200 \end_layout
13201
13202 \begin_layout Section
13203 Academic Field Specifics
13204 \end_layout
13205
13206 \begin_layout Subsection
13207 Chemistry:
13208  Hazard and Precautionary Statements
13209 \end_layout
13210
13211 \begin_layout Standard
13212 This module provides two insets and a paragraph style to typeset numbers and phrases of chemical hazard and precautionary statements.
13213  For a description see 
13214 \family sans
13215 File\SpecialChar menuseparator
13216 Open Example\SpecialChar menuseparator
13217 Modules\SpecialChar menuseparator
13218 Hazard and Precautionary Statements
13219 \family default
13220  and 
13221 \family sans
13222 Help\SpecialChar menuseparator
13223 Specific Manuals\SpecialChar menuseparator
13224 Hazard and Precautionary Statements
13225 \family default
13226 .
13227 \end_layout
13228
13229 \begin_layout Subsection
13230
13231 \series bold
13232 Chemistry:
13233  Risk and Safety Statements
13234 \end_layout
13235
13236 \begin_layout Standard
13237 This module provides two insets,
13238  
13239 \family sans
13240 R-S number
13241 \family default
13242  and 
13243 \family sans
13244 R-S phrase
13245 \family default
13246 ,
13247  accessible via the menu 
13248 \family sans
13249 \bar under
13250 I
13251 \bar default
13252 nsert\SpecialChar menuseparator
13253 Custom
13254 \begin_inset space ~
13255 \end_inset
13256
13257 Insets
13258 \family default
13259  and an environment to typeset numbers and phrases of chemical risk and safety statements.
13260 \end_layout
13261
13262 \begin_layout Subsection
13263 Linguistics
13264 \end_layout
13265
13266 \begin_layout Standard
13267 This module provides specific environments useful for linguistics (numbered examples,
13268  glosses,
13269  semantic markup,
13270  OT tableau floats).
13271  You can obtain information about this module in 
13272 \family sans
13273 \bar under
13274 H
13275 \bar default
13276 elp\SpecialChar menuseparator
13277 S
13278 \bar under
13279 p
13280 \bar default
13281 ecific
13282 \begin_inset space ~
13283 \end_inset
13284
13285 Manuals\SpecialChar menuseparator
13286
13287 \bar under
13288 L
13289 \bar default
13290 inguistics
13291 \family default
13292  and 
13293 \family sans
13294 File\SpecialChar menuseparator
13295 Open Example\SpecialChar menuseparator
13296 Modules\SpecialChar menuseparator
13297 Linguistics
13298 \family default
13299 .
13300 \end_layout
13301
13302 \begin_layout Section
13303 Accessibility
13304 \end_layout
13305
13306 \begin_layout Subsection
13307 Braille
13308 \end_layout
13309
13310 \begin_layout Standard
13311 This module supports the Braille script.
13312  It requires the \SpecialChar LaTeX
13313  package 
13314 \family typewriter
13315 braille.sty
13316 \family default
13317 .
13318  This and its documentation can be obtained from 
13319 \begin_inset CommandInset href
13320 LatexCommand href
13321 name "CTAN"
13322 target "https://www.ctan.org/pkg/braille"
13323 literal "false"
13324
13325 \end_inset
13326
13327 .
13328  See 
13329 \family sans
13330 \bar under
13331 H
13332 \bar default
13333 elp\SpecialChar menuseparator
13334 S
13335 \bar under
13336 p
13337 \bar default
13338 ecific
13339 \begin_inset space ~
13340 \end_inset
13341
13342 Manuals\SpecialChar menuseparator
13343
13344 \bar under
13345 B
13346 \bar default
13347 raille
13348 \family default
13349  and 
13350 \family sans
13351 File\SpecialChar menuseparator
13352 Open Example\SpecialChar menuseparator
13353 Modules\SpecialChar menuseparator
13354 Braille
13355 \family default
13356 .
13357 \end_layout
13358
13359 \begin_layout Section
13360 Annotation & Revision
13361 \end_layout
13362
13363 \begin_layout Subsection
13364 FiXme Notes
13365 \end_layout
13366
13367 \begin_layout Standard
13368 This module provides “FiXme” (marginal) annotations for document revision purposes.
13369  A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
13370  The annotations are customizable via the LaTeX preamble.
13371  See the 
13372 \family typewriter
13373 fixme
13374 \family default
13375  documentation which can be obtained from 
13376 \begin_inset CommandInset href
13377 LatexCommand href
13378 name "CTAN"
13379 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13380 literal "false"
13381
13382 \end_inset
13383
13384 .
13385 \end_layout
13386
13387 \begin_layout Paragraph
13388 Note:
13389 \end_layout
13390
13391 \begin_layout Standard
13392 by default,
13393  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
13394 \family sans
13395 Document\SpecialChar menuseparator
13396 Settings\SpecialChar menuseparator
13397 Document Class\SpecialChar menuseparator
13398 Class Options\SpecialChar menuseparator
13399 Custom
13400 \family default
13401 ).
13402  To display them always,
13403  insert 
13404 \family typewriter
13405
13406 \backslash
13407 fxsetup{draft}
13408 \family default
13409  in 
13410 \family sans
13411 Document\SpecialChar menuseparator
13412 Settings\SpecialChar menuseparator
13413 \SpecialChar LaTeX
13414  Preamble
13415 \family default
13416 .
13417 \end_layout
13418
13419 \begin_layout Subsection
13420 PDF Comments
13421 \end_layout
13422
13423 \begin_layout Standard
13424 This module provides various kinds of annotations for PDF output.
13425  See 
13426 \family sans
13427 Help\SpecialChar menuseparator
13428 Specific Manuals\SpecialChar menuseparator
13429 PDF comments 
13430 \family default
13431 and
13432 \family sans
13433  File\SpecialChar menuseparator
13434 Open Example\SpecialChar menuseparator
13435 Modules\SpecialChar menuseparator
13436 PDF Comments
13437 \family default
13438 .
13439 \end_layout
13440
13441 \begin_layout Subsection
13442
13443 \series bold
13444 PDF Form
13445 \end_layout
13446
13447 \begin_layout Standard
13448 This module provides fields and buttons for PDF forms.
13449  See the 
13450 \begin_inset CommandInset href
13451 LatexCommand href
13452 name "hyperref documentation"
13453 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13454 literal "false"
13455
13456 \end_inset
13457
13458 ,
13459  
13460 \family sans
13461 Help\SpecialChar menuseparator
13462 Specific Manuals\SpecialChar menuseparator
13463 PDF forms 
13464 \family default
13465 and
13466 \family sans
13467  File\SpecialChar menuseparator
13468 Open Example\SpecialChar menuseparator
13469 Modules\SpecialChar menuseparator
13470 PDF Form
13471 \family default
13472 .
13473 \end_layout
13474
13475 \begin_layout Subsection
13476
13477 \series bold
13478 Ruby (Furigana)
13479 \end_layout
13480
13481 \begin_layout Standard
13482 This module defines an inset to typeset reading aids (ruby,
13483  furigana) to Chinese characters.
13484  It uses the 
13485 \family typewriter
13486 okumakro
13487 \family default
13488 ,
13489  
13490 \family typewriter
13491 luatexja-ruby
13492 \family default
13493  or 
13494 \family typewriter
13495 ruby
13496 \family default
13497  package (depending on the TeX engine) or a fallback definition.
13498 \end_layout
13499
13500 \begin_layout Subsection
13501
13502 \series bold
13503 TODO notes
13504 \end_layout
13505
13506 \begin_layout Standard
13507 This module provides custom insets to insert TODO items in your document.
13508  In order to generate a “List of TODOs,” the module provides a paragraph style.
13509  Inserting 
13510 \family typewriter
13511 final
13512 \family default
13513  in 
13514 \family sans
13515 Document\SpecialChar menuseparator
13516 Settings\SpecialChar menuseparator
13517 Document Class\SpecialChar menuseparator
13518 Class Options\SpecialChar menuseparator
13519 Custom
13520 \family default
13521 ) suppresses the output of TODO notes.
13522  See the 
13523 \begin_inset CommandInset href
13524 LatexCommand href
13525 name "todonotes documentation"
13526 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13527 literal "false"
13528
13529 \end_inset
13530
13531 .
13532 \end_layout
13533
13534 \begin_layout Section
13535 Bibliography
13536 \end_layout
13537
13538 \begin_layout Subsection
13539 APA Style with Natbib
13540 \end_layout
13541
13542 \begin_layout Standard
13543 This module adds support for using natbib together with apacite (the bibliography style need not be 
13544 \family typewriter
13545 apacite
13546 \family default
13547  —
13548  it could be 
13549 \family typewriter
13550 apacite
13551 \family default
13552 ,
13553  
13554 \family typewriter
13555 apacitex
13556 \family default
13557 ,
13558  or any bibliography that works with both the natbib and apacite packages.)
13559 \end_layout
13560
13561 \begin_layout Section
13562 Boxes
13563 \end_layout
13564
13565 \begin_layout Subsection
13566 Fancy Colored Boxes
13567 \end_layout
13568
13569 \begin_layout Standard
13570 This module adds ten custom insets that support colored boxes via the 
13571 \family typewriter
13572 tcolorbox
13573 \family default
13574  package.
13575  See 
13576 \family sans
13577 Help\SpecialChar menuseparator
13578 Specific Manuals\SpecialChar menuseparator
13579 Colored boxes
13580 \family default
13581 ,
13582  
13583 \family sans
13584 File\SpecialChar menuseparator
13585 Open Example\SpecialChar menuseparator
13586 Modules\SpecialChar menuseparator
13587 Fancy Color Boxes
13588 \family default
13589  and the 
13590 \begin_inset CommandInset href
13591 LatexCommand href
13592 name "tcolorbox documentation"
13593 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13594 literal "false"
13595
13596 \end_inset
13597
13598  for details.
13599 \end_layout
13600
13601 \begin_layout Subsection
13602 Graphic boxes
13603 \end_layout
13604
13605 \begin_layout Standard
13606 This provides the custom insets 
13607 \family sans
13608 Reflectbox
13609 \family default
13610 ,
13611  
13612 \family sans
13613 Resizebox
13614 \family default
13615 ,
13616  
13617 \family sans
13618 Rotatebox
13619 \family default
13620  and 
13621 \family sans
13622 Scalebox
13623 \family default
13624  to scale and rotate its content.
13625 \end_layout
13626
13627 \begin_layout Standard
13628
13629 \family sans
13630 Reflectbox
13631 \family default
13632  is a simple way of reversing text without any other enhancement:
13633 \end_layout
13634
13635 \begin_layout Standard
13636 \begin_inset Flex Reflectbox
13637 status open
13638
13639 \begin_layout Plain Layout
13640 Great Western Railway
13641 \end_layout
13642
13643 \end_inset
13644
13645
13646 \end_layout
13647
13648 \begin_layout Standard
13649 (You will need to use Ctrl-R to see any of these examples.)
13650 \end_layout
13651
13652 \begin_layout Standard
13653
13654 \family sans
13655 Resizebox
13656 \family default
13657  allows you to specify the dimensions of the text or image;
13658  permissible units are em,
13659  ex,
13660  in,
13661  pt,
13662  pc,
13663  cm,
13664  mm,
13665  dd,
13666  cc,
13667  nd,
13668  nc,
13669  bp,
13670  or sp;
13671  if you enter 
13672 \family typewriter
13673 !
13674
13675 \family default
13676  for 
13677 \family typewriter
13678 Height
13679 \family default
13680  it scales by the width factor:
13681 \end_layout
13682
13683 \begin_layout Standard
13684 \begin_inset Flex Resizebox
13685 status open
13686
13687 \begin_layout Plain Layout
13688 \begin_inset Argument 1
13689 status open
13690
13691 \begin_layout Plain Layout
13692 48mm
13693 \end_layout
13694
13695 \end_inset
13696
13697
13698 \begin_inset Argument 2
13699 status open
13700
13701 \begin_layout Plain Layout
13702 !
13703 \end_layout
13704
13705 \end_inset
13706
13707 Great Western Railway
13708 \end_layout
13709
13710 \end_inset
13711
13712
13713 \end_layout
13714
13715 \begin_layout Standard
13716
13717 \family sans
13718 Rotatebox
13719 \family default
13720  allows you to rotate its contents around the reference point of the box.
13721  If you wish to rotate the box around a different origin,
13722  place the cursor inside the box and select Insert\SpecialChar menuseparator
13723 Origin;
13724  o
13725 \family typewriter
13726 rigin
13727 \family default
13728  is specified as 
13729 \family typewriter
13730 c
13731 \family default
13732 ,
13733
13734 \family typewriter
13735  l
13736 \family default
13737 ,
13738
13739 \family typewriter
13740  r
13741 \family default
13742 ,
13743
13744 \family typewriter
13745  b
13746 \family default
13747 ,
13748
13749 \family typewriter
13750  t
13751 \family default
13752  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
13753  For example:
13754 \end_layout
13755
13756 \begin_layout Standard
13757 \begin_inset Flex Rotatebox
13758 status open
13759
13760 \begin_layout Plain Layout
13761 \begin_inset Argument 1
13762 status open
13763
13764 \begin_layout Plain Layout
13765 origin=c
13766 \end_layout
13767
13768 \end_inset
13769
13770
13771 \begin_inset Argument 2
13772 status open
13773
13774 \begin_layout Plain Layout
13775 30
13776 \end_layout
13777
13778 \end_inset
13779
13780 Great Western Railway
13781 \end_layout
13782
13783 \end_inset
13784
13785
13786 \end_layout
13787
13788 \begin_layout Standard
13789 You can combine boxes as in:
13790 \end_layout
13791
13792 \begin_layout Standard
13793 \begin_inset Flex Rotatebox
13794 status open
13795
13796 \begin_layout Plain Layout
13797 \begin_inset Argument 1
13798 status open
13799
13800 \begin_layout Plain Layout
13801 origin=c
13802 \end_layout
13803
13804 \end_inset
13805
13806
13807 \begin_inset Argument 2
13808 status open
13809
13810 \begin_layout Plain Layout
13811 -15
13812 \end_layout
13813
13814 \end_inset
13815
13816
13817 \begin_inset Flex Resizebox
13818 status open
13819
13820 \begin_layout Plain Layout
13821 \begin_inset Argument 1
13822 status open
13823
13824 \begin_layout Plain Layout
13825 48mm
13826 \end_layout
13827
13828 \end_inset
13829
13830
13831 \begin_inset Argument 2
13832 status open
13833
13834 \begin_layout Plain Layout
13835 !
13836 \end_layout
13837
13838 \end_inset
13839
13840
13841 \begin_inset Flex Reflectbox
13842 status open
13843
13844 \begin_layout Plain Layout
13845 Great Western Railway
13846 \end_layout
13847
13848 \end_inset
13849
13850
13851 \end_layout
13852
13853 \end_inset
13854
13855
13856 \end_layout
13857
13858 \end_inset
13859
13860
13861 \end_layout
13862
13863 \begin_layout Standard
13864
13865 \family sans
13866 Scalebox
13867 \family default
13868  scales its contents;
13869  select Insert\SpecialChar menuseparator
13870 V-Factor to add a vertical factor.
13871  If the vertical factor is omitted,
13872  the horizontal is used.
13873  Adding different horizontal and vertical values creates distortion as in
13874 \end_layout
13875
13876 \begin_layout Standard
13877
13878 \family typewriter
13879 \begin_inset Flex Scalebox
13880 status open
13881
13882 \begin_layout Plain Layout
13883 \begin_inset Argument 1
13884 status open
13885
13886 \begin_layout Plain Layout
13887 2
13888 \end_layout
13889
13890 \end_inset
13891
13892
13893 \begin_inset Argument 2
13894 status open
13895
13896 \begin_layout Plain Layout
13897 1.5
13898 \end_layout
13899
13900 \end_inset
13901
13902
13903 \family roman
13904 Great Western Railway
13905 \end_layout
13906
13907 \end_inset
13908
13909 .
13910 \end_layout
13911
13912 \begin_layout Standard
13913 A negative horizontal value reverses the text on the horizontal axis,
13914  a negative vertical value on the vertical axis,
13915  so that you get
13916 \end_layout
13917
13918 \begin_layout Standard
13919 \begin_inset Flex Scalebox
13920 status open
13921
13922 \begin_layout Plain Layout
13923 \begin_inset Argument 1
13924 status open
13925
13926 \begin_layout Plain Layout
13927 -1
13928 \end_layout
13929
13930 \end_inset
13931
13932
13933 \begin_inset Argument 2
13934 status open
13935
13936 \begin_layout Plain Layout
13937 1
13938 \end_layout
13939
13940 \end_inset
13941
13942 Great Western Railway
13943 \end_layout
13944
13945 \end_inset
13946
13947  and 
13948 \begin_inset Flex Scalebox
13949 status open
13950
13951 \begin_layout Plain Layout
13952 \begin_inset Argument 1
13953 status open
13954
13955 \begin_layout Plain Layout
13956 1
13957 \end_layout
13958
13959 \end_inset
13960
13961
13962 \begin_inset Argument 2
13963 status open
13964
13965 \begin_layout Plain Layout
13966 -1
13967 \end_layout
13968
13969 \end_inset
13970
13971 Great Western Railway
13972 \end_layout
13973
13974 \end_inset
13975
13976 .
13977 \end_layout
13978
13979 \begin_layout Subsection
13980 Section Boxes
13981 \end_layout
13982
13983 \begin_layout Standard
13984 This module defines Boxes with section header.
13985  It is mainly intended for the SciPoster Document class.
13986 \end_layout
13987
13988 \begin_layout Subsection
13989 Variable-width Minipages
13990 \end_layout
13991
13992 \begin_layout Standard
13993 This module adds a 
13994 \family sans
13995 Minipage (Var.
13996 \begin_inset space \thinspace{}
13997 \end_inset
13998
13999 Width)
14000 \family default
14001  inset to 
14002 \family sans
14003 Insert\SpecialChar menuseparator
14004 Custom Inset
14005 \family default
14006  using the 
14007 \family typewriter
14008 varwidth
14009 \family default
14010  LaTeX package.
14011  The 
14012 \family typewriter
14013 varwidth
14014 \family default
14015  package provides a variable-width minipage,
14016  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
14017  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
14018 \family sans
14019 Insert\SpecialChar menuseparator
14020 Vert.
14021 \begin_inset space \thinspace{}
14022 \end_inset
14023
14024 Adjustment
14025 \family default
14026  (
14027 \family typewriter
14028 c|t|b
14029 \family default
14030 ) or 
14031 \family sans
14032 Insert\SpecialChar menuseparator
14033 Max.
14034 \begin_inset space \thinspace{}
14035 \end_inset
14036
14037 Width
14038 \family default
14039  (defaults to 
14040 \family typewriter
14041
14042 \backslash
14043 linewidth
14044 \family default
14045 ).
14046  See 
14047 \family sans
14048 File\SpecialChar menuseparator
14049 Open Example\SpecialChar menuseparator
14050 Variable-width Minipages
14051 \family default
14052 .
14053 \end_layout
14054
14055 \begin_layout Section
14056 Fixes & Hacks
14057 \end_layout
14058
14059 \begin_layout Subsection
14060 Fix Computer Modern Fonts
14061 \end_layout
14062
14063 \begin_layout Standard
14064 This module uses the 
14065 \family sans
14066 fix-cm
14067 \family default
14068  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
14069  See the 
14070 \begin_inset CommandInset href
14071 LatexCommand href
14072 name "fix-cm documentation"
14073 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14074 literal "false"
14075
14076 \end_inset
14077
14078 .
14079 \end_layout
14080
14081 \begin_layout Subsection
14082 \SpecialChar LaTeX
14083  Kernel Fixes (Obsolete)
14084 \end_layout
14085
14086 \begin_layout Standard
14087 This module loads the \SpecialChar LaTeX
14088  package 
14089 \family sans
14090 fixltx2e
14091 \family default
14092  which contains some bug fixes for \SpecialChar LaTeX
14093 .
14094  If you use this module your typeset document may look different when you process it,
14095  depending on the respective version of 
14096 \family sans
14097 fixltx2e
14098 \family default
14099 .
14100 \end_layout
14101
14102 \begin_layout Paragraph
14103 Note:
14104 \end_layout
14105
14106 \begin_layout Standard
14107 recent \SpecialChar LaTeX
14108  kernels (as of 2015/01/01) include the functionality of 
14109 \family sans
14110 fixltx2e
14111 \family default
14112 ,
14113  so the 
14114 \family sans
14115 fixltx2e
14116 \family default
14117  module is obsolete with newer \SpecialChar LaTeX
14118  distributions.
14119 \end_layout
14120
14121 \begin_layout Subsection
14122 Minimalistic Insets
14123 \end_layout
14124
14125 \begin_layout Standard
14126 This module redefines several insets (Index,
14127  Branch,
14128  URL) as being Minimalistic.
14129 \end_layout
14130
14131 \begin_layout Subsection
14132 Title and Preamble Hacks
14133 \end_layout
14134
14135 \begin_layout Standard
14136 This module provides two new paragraph styles:
14137 \end_layout
14138
14139 \begin_layout Enumerate
14140
14141 \family sans
14142 In Preamble
14143 \family default
14144  which puts whatever is entered into it into the preamble.
14145  This can be used,
14146  if one wishes,
14147  to include preamble code in the body of a LyX document.
14148 \end_layout
14149
14150 \begin_layout Enumerate
14151
14152 \family sans
14153 In Title
14154 \family default
14155  which that will put its contents into the body of the LaTeX document,
14156  but before 
14157 \family typewriter
14158
14159 \backslash
14160 maketitle
14161 \family default
14162  is issued.
14163  This is useful for making branches and notes in title-related material.
14164  (However,
14165  if you put these in a 
14166 \family sans
14167 Standard
14168 \family default
14169  layout,
14170  this signals to LyX to output 
14171 \family typewriter
14172
14173 \backslash
14174 maketitle
14175 \family default
14176 ,
14177  which may then come too early.)
14178 \end_layout
14179
14180 \begin_layout Section
14181 Floats & captions
14182 \end_layout
14183
14184 \begin_layout Subsection
14185 Algorithm2e Float
14186 \end_layout
14187
14188 \begin_layout Standard
14189 This module uses the 
14190 \family sans
14191 algorithm2e
14192 \family default
14193  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14194  Use the Algorithm paragraph style to enter and indent the algorithm.
14195  See the 
14196 \begin_inset CommandInset href
14197 LatexCommand href
14198 name "algorithm2e documentation"
14199 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14200 literal "false"
14201
14202 \end_inset
14203
14204 .
14205 \end_layout
14206
14207 \begin_layout Subsection
14208 Bilingual Captions AKA Multilingual Captions
14209 \end_layout
14210
14211 \begin_layout Standard
14212 This module provides the paragraph style 
14213 \family sans
14214 Caption
14215 \begin_inset space ~
14216 \end_inset
14217
14218 setup
14219 \family default
14220  with which to typeset bilingual captions.
14221  Within this paragraph style 
14222 \family sans
14223 Insert\SpecialChar menuseparator
14224 Language
14225 \family default
14226  allows you to enter the desired second language using one of the babel names.
14227  See 
14228 \family sans
14229 File\SpecialChar menuseparator
14230 Open Example\SpecialChar menuseparator
14231 Modules\SpecialChar menuseparator
14232 Multilingual Captions
14233 \family default
14234  and 
14235 \family sans
14236 Help\SpecialChar menuseparator
14237 Specific Manuals\SpecialChar menuseparator
14238 Multilingual Captions
14239 \family default
14240  further information on its use.
14241 \end_layout
14242
14243 \begin_layout Subsection
14244 Number Figures by Section
14245 \end_layout
14246
14247 \begin_layout Standard
14248 This module resets the figure number at section start and prepends the section number to the figure number,
14249  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14250 \end_layout
14251
14252 \begin_layout Subsection
14253 Number Tables by Section
14254 \end_layout
14255
14256 \begin_layout Standard
14257 This module resets the table number at section start and prepends the section number to the table number,
14258  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14259 \end_layout
14260
14261 \begin_layout Section
14262 Foot- and Endnotes
14263 \end_layout
14264
14265 \begin_layout Subsection
14266 Endnotes (Basic)
14267 \end_layout
14268
14269 \begin_layout Standard
14270 This module adds an endnote inset,
14271  in addition to footnotes.
14272  This uses the 
14273 \family sans
14274 endnotes
14275 \family default
14276  package,
14277  which has some limitations but works with older \SpecialChar LaTeX
14278  distributions as well.
14279  Use 
14280 \family sans
14281 Insert\SpecialChar menuseparator
14282 Custom Inset\SpecialChar menuseparator
14283 Endnote
14284 \family default
14285  to insert an endnote and 
14286 \family sans
14287 Insert\SpecialChar menuseparator
14288 List/Contents/References\SpecialChar menuseparator
14289 Endnotes
14290 \family default
14291  to insert the endnotes list where you want the endnotes to appear.
14292  See also 
14293 \family sans
14294 Help\SpecialChar menuseparator
14295 Embedded Objects
14296 \family default
14297 ,
14298  section 
14299 \emph on
14300 4.2 Footnotes
14301 \emph default
14302 .
14303 \end_layout
14304
14305 \begin_layout Subsection
14306 Endnotes (Extended)
14307 \end_layout
14308
14309 \begin_layout Standard
14310 This module adds an endnote inset,
14311  in addition to footnotes.
14312  This uses the 
14313 \family sans
14314 enotez
14315 \family default
14316  package which is more powerful and customizable than the 
14317 \family sans
14318 endnotes
14319 \family default
14320  package,
14321  but requires a fairly modern \SpecialChar LaTeX
14322  distribution (with \SpecialChar LaTeX
14323 3).
14324  Use 
14325 \family sans
14326 Insert\SpecialChar menuseparator
14327 Custom Inset\SpecialChar menuseparator
14328 Endnote
14329 \family default
14330  to insert an endnote and 
14331 \family sans
14332 Insert\SpecialChar menuseparator
14333 List/Contents/References\SpecialChar menuseparator
14334 Endnotes
14335 \family default
14336  to insert the endnotes list where you want the endnotes to appear.
14337  See also 
14338 \family sans
14339 Help\SpecialChar menuseparator
14340 Embedded Objects
14341 \family default
14342 ,
14343  section 
14344 \emph on
14345 4.2 Footnotes
14346 \emph default
14347 ..
14348 \end_layout
14349
14350 \begin_layout Subsection
14351 Footnotes as Endnotes (Basic)
14352 \end_layout
14353
14354 \begin_layout Standard
14355 This module sets all footnotes as endnotes.
14356  This uses the 
14357 \family sans
14358 endnotes
14359 \family default
14360  package,
14361  which has some limitations but works with older \SpecialChar LaTeX
14362  distributions as well.
14363  Use 
14364 \family sans
14365 Insert\SpecialChar menuseparator
14366 List/Contents/References\SpecialChar menuseparator
14367 Endnotes
14368 \family default
14369  to insert the endnotes list where you want the endnotes to appear.
14370  See also 
14371 \family sans
14372 Help\SpecialChar menuseparator
14373 Embedded Objects
14374 \family default
14375 ,
14376  section 
14377 \emph on
14378 4.2 Footnotes
14379 \emph default
14380 .
14381 \end_layout
14382
14383 \begin_layout Subsection
14384 Footnotes as Endnotes (Extended)
14385 \end_layout
14386
14387 \begin_layout Standard
14388 This module sets all footnotes as endnotes.
14389  This uses the 
14390 \family sans
14391 enotez
14392 \family default
14393  package which is more powerful and customizable than then 
14394 \family sans
14395 endnotes
14396 \family default
14397  package,
14398  but requires a fairly modern \SpecialChar LaTeX
14399  distribution (with \SpecialChar LaTeX
14400 3).
14401  Use 
14402 \family sans
14403 Insert\SpecialChar menuseparator
14404 List/Contents/References\SpecialChar menuseparator
14405 Endnotes
14406 \family default
14407  to insert the endnotes list where you want the endnotes to appear.
14408  See also 
14409 \family sans
14410 Help\SpecialChar menuseparator
14411 Embedded Objects
14412 \family default
14413 ,
14414  section 
14415 \emph on
14416 4.2 Footnotes
14417 \emph default
14418 .
14419 \end_layout
14420
14421 \begin_layout Section
14422 Leisure,
14423  Sports and Music
14424 \end_layout
14425
14426 \begin_layout Subsection
14427 Chess Board
14428 \end_layout
14429
14430 \begin_layout Standard
14431 This module provides support for the 
14432 \family sans
14433 chessboard
14434 \family default
14435  package to print chess games.
14436  See 
14437 \family sans
14438 File\SpecialChar menuseparator
14439 Open Example\SpecialChar menuseparator
14440 Articles\SpecialChar menuseparator
14441 Chess
14442 \family default
14443  where you will find 
14444 \family sans
14445 Game 1
14446 \family default
14447  and 
14448 \family sans
14449 Game 2
14450 \family default
14451  and the 
14452 \begin_inset CommandInset href
14453 LatexCommand href
14454 name "chessboard documentation"
14455 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14456 literal "false"
14457
14458 \end_inset
14459
14460 .
14461 \end_layout
14462
14463 \begin_layout Subsection
14464 Lilypond Music Notation
14465 \end_layout
14466
14467 \begin_layout Standard
14468 This module provides an inset via 
14469 \family sans
14470 \bar under
14471 I
14472 \bar default
14473 nsert\SpecialChar menuseparator
14474 Custom Inset\SpecialChar menuseparator
14475 Lilypond
14476 \family default
14477  in which to enter code for the LilyPond music editor.
14478  It will then be processed in the output.
14479  See 
14480 \family sans
14481 Help\SpecialChar menuseparator
14482 Specific Manuals\SpecialChar menuseparator
14483 Lilypond
14484 \family default
14485  and 
14486 \family sans
14487 File\SpecialChar menuseparator
14488 Open Example\SpecialChar menuseparator
14489 Modules\SpecialChar menuseparator
14490 Lilypond Book
14491 \family default
14492 .
14493  It cannot be used if the modules 
14494 \family sans
14495 Rnw
14496 \begin_inset space \thinspace{}
14497 \end_inset
14498
14499 (knitr) 
14500 \family default
14501 or
14502 \family sans
14503  Sweave
14504 \family default
14505  have been loaded.
14506 \end_layout
14507
14508 \begin_layout Section
14509 List enhancements
14510 \end_layout
14511
14512 \begin_layout Subsection
14513 Customizable Lists
14514 \begin_inset CommandInset label
14515 LatexCommand label
14516 name "subsec:Customizable-Lists"
14517
14518 \end_inset
14519
14520
14521 \end_layout
14522
14523 \begin_layout Standard
14524 This module uses the
14525 \family sans
14526  enumitem
14527 \family default
14528  package to enable the customization of various list environments.
14529 \end_layout
14530
14531 \begin_layout Subsubsection
14532 Custom Enumerate Lists
14533 \end_layout
14534
14535 \begin_layout Standard
14536 \noindent
14537 The default numbering of numbered lists can be changed by adding an optional argument (menu 
14538 \family sans
14539 \bar under
14540 I
14541 \bar default
14542 nsert\SpecialChar menuseparator
14543
14544 \bar under
14545 S
14546 \bar default
14547 hort Title
14548 \family default
14549 ) to the first item of each level in the list.
14550  There you add the command
14551 \end_layout
14552
14553 \begin_layout Standard
14554
14555 \family sans
14556 label=
14557 \backslash
14558 roman{enumi}
14559 \end_layout
14560
14561 \begin_layout Standard
14562 in \SpecialChar TeX
14563  Code (shortcut 
14564 \begin_inset Info
14565 type  "shortcut"
14566 arg   "ert-insert"
14567 \end_inset
14568
14569 ).
14570 \end_layout
14571
14572 \begin_layout Standard
14573
14574 \family sans
14575 enumi
14576 \family default
14577  is the first level counter of the enumeration.
14578  To change the numbering for the list sublevels,
14579  replace the “
14580 \family sans
14581 i
14582 \family default
14583 ” in the command by the small Roman numeral of the level (
14584 \family sans
14585 enumi
14586 \family default
14587 ,
14588  
14589 \family sans
14590 enumii
14591 \family default
14592 ,
14593  
14594 \family sans
14595 enumiii
14596 \family default
14597 ,
14598  
14599 \family sans
14600 enumiv
14601 \family default
14602 ).
14603 \end_layout
14604
14605 \begin_layout Standard
14606 The command 
14607 \family sans
14608
14609 \backslash
14610 roman
14611 \family default
14612  outputs the counter as a small Roman numeral.
14613  For capital Roman numerals replace 
14614 \family sans
14615
14616 \backslash
14617 roman
14618 \family default
14619  with 
14620 \family sans
14621
14622 \backslash
14623 Roman
14624 \family default
14625  in the command above.
14626  For Arabic numerals use 
14627 \family sans
14628
14629 \backslash
14630 arabic
14631 \family default
14632 .
14633  To 
14634 \begin_inset Quotes eld
14635 \end_inset
14636
14637 number
14638 \begin_inset Quotes erd
14639 \end_inset
14640
14641  items with capital or small Latin letters use 
14642 \family sans
14643
14644 \backslash
14645 Alph
14646 \family default
14647  or 
14648 \family sans
14649
14650 \backslash
14651 alph
14652 \family default
14653 ,
14654  respectively.
14655 \end_layout
14656
14657 \begin_layout Standard
14658 \noindent
14659 \begin_inset Note Greyedout
14660 status open
14661
14662 \begin_layout Plain Layout
14663
14664 \series bold
14665 Note:
14666
14667 \series default
14668  You can only number 26
14669 \begin_inset space ~
14670 \end_inset
14671
14672 items with Latin letters,
14673  because this numbering is limited to single letters.
14674 \end_layout
14675
14676 \end_inset
14677
14678
14679 \end_layout
14680
14681 \begin_layout Standard
14682 Here is a list with custom numbering:
14683 \end_layout
14684
14685 \begin_layout Enumerate
14686 \begin_inset Argument 1
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690 \begin_inset ERT
14691 status collapsed
14692
14693 \begin_layout Plain Layout
14694
14695 label=
14696 \backslash
14697 #
14698 \backslash
14699 Alph{enumi}
14700 \backslash
14701 #
14702 \end_layout
14703
14704 \end_inset
14705
14706
14707 \end_layout
14708
14709 \end_inset
14710
14711 Level 1
14712 \begin_inset Separator latexpar
14713 \end_inset
14714
14715
14716 \end_layout
14717
14718 \begin_deeper
14719 \begin_layout Enumerate
14720 \begin_inset Argument 1
14721 status collapsed
14722
14723 \begin_layout Plain Layout
14724 \begin_inset ERT
14725 status collapsed
14726
14727 \begin_layout Plain Layout
14728
14729 label=
14730 \backslash
14731 Alph{enumi}.
14732 \backslash
14733 arabic{enumii}
14734 \end_layout
14735
14736 \end_inset
14737
14738
14739 \end_layout
14740
14741 \end_inset
14742
14743 Level 2
14744 \end_layout
14745
14746 \begin_layout Enumerate
14747 Level 2
14748 \begin_inset Separator latexpar
14749 \end_inset
14750
14751
14752 \end_layout
14753
14754 \begin_deeper
14755 \begin_layout Enumerate
14756 \begin_inset Argument 1
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 \begin_inset ERT
14761 status collapsed
14762
14763 \begin_layout Plain Layout
14764
14765 label=
14766 \backslash
14767 bfseries{
14768 \backslash
14769 arabic{enumiii}}
14770 \end_layout
14771
14772 \end_inset
14773
14774
14775 \end_layout
14776
14777 \end_inset
14778
14779 Level 3
14780 \begin_inset Separator latexpar
14781 \end_inset
14782
14783
14784 \end_layout
14785
14786 \begin_deeper
14787 \begin_layout Enumerate
14788 \begin_inset Argument 1
14789 status collapsed
14790
14791 \begin_layout Plain Layout
14792 \begin_inset ERT
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796
14797 label=
14798 \backslash
14799 emph{
14800 \backslash
14801 roman{enumiv})}
14802 \end_layout
14803
14804 \end_inset
14805
14806
14807 \end_layout
14808
14809 \end_inset
14810
14811 Level 4
14812 \end_layout
14813
14814 \end_deeper
14815 \end_deeper
14816 \end_deeper
14817 \begin_layout Standard
14818 For this list these commands were used:
14819 \end_layout
14820
14821 \begin_layout Standard
14822 \noindent
14823
14824 \family sans
14825 label=
14826 \backslash
14827 #
14828 \backslash
14829 Alph{enumi}
14830 \backslash
14831 #
14832 \begin_inset Newline newline
14833 \end_inset
14834
14835 label=
14836 \backslash
14837 Alph{enumi}.
14838 \backslash
14839 arabic{enumii}
14840 \begin_inset Newline newline
14841 \end_inset
14842
14843 label=
14844 \backslash
14845 bfseries{
14846 \backslash
14847 arabic{enumiii}}
14848 \begin_inset Newline newline
14849 \end_inset
14850
14851 label=
14852 \backslash
14853 emph{
14854 \backslash
14855 roman{enumiv})}
14856 \end_layout
14857
14858 \begin_layout Standard
14859 where the command 
14860 \family sans
14861
14862 \backslash
14863 emph{}
14864 \family default
14865  makes the label emphasized and 
14866 \family sans
14867
14868 \backslash
14869 bfseries{}
14870 \family default
14871  makes it bold.
14872 \end_layout
14873
14874 \begin_layout Standard
14875 \begin_inset Note Greyedout
14876 status collapsed
14877
14878 \begin_layout Plain Layout
14879
14880 \series bold
14881 Note:
14882
14883 \series default
14884  When you change the label of a list level,
14885  it will be used for all following lists until you change the definition.
14886 \end_layout
14887
14888 \end_inset
14889
14890
14891 \end_layout
14892
14893 \begin_layout Standard
14894 \begin_inset ERT
14895 status open
14896
14897 \begin_layout Plain Layout
14898
14899
14900 \backslash
14901 renewcommand{
14902 \backslash
14903 labelenumi}{
14904 \backslash
14905 thesection.
14906 \backslash
14907 arabic{enumi}}
14908 \end_layout
14909
14910 \end_inset
14911
14912
14913 \end_layout
14914
14915 \begin_layout Subsubsection
14916 Numbered Paragraphs in Reports
14917 \end_layout
14918
14919 \begin_layout Enumerate
14920 Official reports often include numbered paragraphs;
14921  you can achieve this with a variation on the approach outlined in section
14922 \begin_inset space ~
14923 \end_inset
14924
14925
14926 \begin_inset CommandInset ref
14927 LatexCommand ref
14928 reference "sec:How-to-use"
14929
14930 \end_inset
14931
14932 .
14933  Replace 
14934 \family sans
14935 item
14936 \family default
14937  in each command with 
14938 \family sans
14939 enum
14940 \family default
14941 .
14942 \end_layout
14943
14944 \begin_layout Enumerate
14945 These numbered paragraphs were generated by inserting the \SpecialChar TeX
14946  Code
14947 \begin_inset Separator latexpar
14948 \end_inset
14949
14950
14951 \end_layout
14952
14953 \begin_deeper
14954 \begin_layout Standard
14955
14956 \family sans
14957
14958 \backslash
14959 renewcommand{
14960 \backslash
14961 labelenumi}{
14962 \backslash
14963 thesection.
14964 \backslash
14965 arabic{enumi}}
14966 \end_layout
14967
14968 \begin_layout Standard
14969 before the start of the section;
14970  
14971 \family sans
14972
14973 \backslash
14974 thesection
14975 \family default
14976  uses the \SpecialChar LaTeX
14977  section counter to generate the first part of the number.
14978 \end_layout
14979
14980 \end_deeper
14981 \begin_layout Enumerate
14982 I have ignored the subsection heading in this example because,
14983  with paragraphs numbered in this way,
14984  subsections are less likely to be used.
14985 \end_layout
14986
14987 \begin_layout Subsubsection
14988 Resumed Enumeration
14989 \end_layout
14990
14991 \begin_layout Standard
14992 \begin_inset ERT
14993 status open
14994
14995 \begin_layout Plain Layout
14996
14997
14998 \backslash
14999 renewcommand{
15000 \backslash
15001 labelenumi}{
15002 \backslash
15003 arabic{enumi}}
15004 \end_layout
15005
15006 \end_inset
15007
15008
15009 \end_layout
15010
15011 \begin_layout Standard
15012 Enumerations can be resumed after intermediate paragraphs:
15013 \end_layout
15014
15015 \begin_layout Enumerate
15016 \begin_inset Argument 1
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020 \begin_inset ERT
15021 status collapsed
15022
15023 \begin_layout Plain Layout
15024
15025 label=
15026 \backslash
15027 arabic{enumi}.
15028 \end_layout
15029
15030 \end_inset
15031
15032
15033 \end_layout
15034
15035 \end_inset
15036
15037 first
15038 \begin_inset Note Note
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 goes back to default numbering
15043 \end_layout
15044
15045 \end_inset
15046
15047
15048 \end_layout
15049
15050 \begin_layout Enumerate
15051 second
15052 \end_layout
15053
15054 \begin_layout Standard
15055 regular text
15056 \end_layout
15057
15058 \begin_layout Enumerate-Resume
15059 resumed
15060 \end_layout
15061
15062 \begin_layout Standard
15063 To resume an enumeration,
15064  use the style 
15065 \family sans
15066 Enumerate-Resume
15067 \family default
15068 .
15069 \end_layout
15070
15071 \begin_layout Standard
15072 \begin_inset Note Greyedout
15073 status open
15074
15075 \begin_layout Plain Layout
15076
15077 \series bold
15078 Note:
15079
15080 \series default
15081  If there is no previous enumeration to resume,
15082  you will get a \SpecialChar LaTeX
15083  error.
15084 \end_layout
15085
15086 \end_inset
15087
15088
15089 \end_layout
15090
15091 \begin_layout Standard
15092 Perhaps you might want to resume the list with a different number from the next one.
15093  Or you want to start a new enumeration with a defined number.
15094  This is possible by adding an optional argument to the first list item of a normal enumeration.
15095  There,
15096  insert the command
15097 \end_layout
15098
15099 \begin_layout Standard
15100
15101 \family sans
15102 start=number
15103 \end_layout
15104
15105 \begin_layout Standard
15106 where 
15107 \family sans
15108 number
15109 \family default
15110  is the number with which you want to resume the list.
15111  An example:
15112 \end_layout
15113
15114 \begin_layout Enumerate
15115 first item
15116 \end_layout
15117
15118 \begin_layout Enumerate
15119 second item
15120 \end_layout
15121
15122 \begin_layout Standard
15123 Enumeration starting at a given value:
15124 \end_layout
15125
15126 \begin_layout Enumerate
15127 \begin_inset Argument 1
15128 status open
15129
15130 \begin_layout Plain Layout
15131 \begin_inset ERT
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135
15136 start=4
15137 \end_layout
15138
15139 \end_inset
15140
15141
15142 \end_layout
15143
15144 \end_inset
15145
15146 This enumeration starts at 4
15147 \end_layout
15148
15149 \begin_layout Subsubsection
15150 List Spacing
15151 \begin_inset Index idx
15152 range none
15153 pageformat default
15154 status collapsed
15155
15156 \begin_layout Plain Layout
15157 Lists !
15158  Spacing
15159 \end_layout
15160
15161 \end_inset
15162
15163
15164 \end_layout
15165
15166 \begin_layout Standard
15167 In some cases you might want less or more vertical space between the items of a list.
15168  For example if the default space is too much in your opinion in this case:
15169 \end_layout
15170
15171 \begin_layout Itemize
15172 A bullet list
15173 \end_layout
15174
15175 \begin_layout Itemize
15176 with standard spacing
15177 \end_layout
15178
15179 \begin_layout Standard
15180 You can decrease the space by adding an optional argument to the first item of the list.
15181  Add there the command 
15182 \family sans
15183 nolistsep
15184 \family default
15185  to get no additional list space like in this example:
15186 \end_layout
15187
15188 \begin_layout Itemize
15189 \begin_inset Argument 1
15190 status open
15191
15192 \begin_layout Plain Layout
15193 \begin_inset ERT
15194 status collapsed
15195
15196 \begin_layout Plain Layout
15197
15198 nolistsep
15199 \end_layout
15200
15201 \end_inset
15202
15203
15204 \end_layout
15205
15206 \end_inset
15207
15208 A bullet list
15209 \end_layout
15210
15211 \begin_layout Itemize
15212 without additional
15213 \end_layout
15214
15215 \begin_layout Itemize
15216 vertical space
15217 \end_layout
15218
15219 \begin_layout Standard
15220 To add space you can use several other commands provided by the 
15221 \family sans
15222 enumitem
15223 \family default
15224
15225 \begin_inset Index idx
15226 range none
15227 pageformat default
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 \SpecialChar LaTeX
15232 -packages !
15233  enumitem
15234 \end_layout
15235
15236 \end_inset
15237
15238  package.
15239  For more information see the 
15240 \begin_inset CommandInset href
15241 LatexCommand href
15242 name "enumitem documentation"
15243 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15244 literal "false"
15245
15246 \end_inset
15247
15248 .
15249 \end_layout
15250
15251 \begin_layout Standard
15252 There are also many commands available to change the horizontal spacing and indentation.
15253  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
15254 \begin_inset space \thinspace{}
15255 \end_inset
15256
15257 cm so that the number is in the page margin:
15258 \end_layout
15259
15260 \begin_layout Enumerate
15261 \begin_inset Argument 1
15262 status open
15263
15264 \begin_layout Plain Layout
15265 \begin_inset ERT
15266 status collapsed
15267
15268 \begin_layout Plain Layout
15269
15270 labelindent=
15271 \backslash
15272 parindent,
15273  labelsep=2cm
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \end_layout
15280
15281 \end_inset
15282
15283 An enumeration
15284 \end_layout
15285
15286 \begin_layout Enumerate
15287 with negative indentation
15288 \end_layout
15289
15290 \begin_layout Subsubsection
15291 Further Customization
15292 \begin_inset Index idx
15293 range none
15294 pageformat default
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 Lists !
15299  Customization
15300 \end_layout
15301
15302 \end_inset
15303
15304
15305 \end_layout
15306
15307 \begin_layout Standard
15308 You can also change the style of description lists.
15309  The command
15310 \end_layout
15311
15312 \begin_layout Standard
15313
15314 \family sans
15315 font=definition
15316 \end_layout
15317
15318 \begin_layout Standard
15319 changes the description label font,
15320  the command
15321 \end_layout
15322
15323 \begin_layout Standard
15324
15325 \family sans
15326 style=definitio
15327 \family default
15328 \series bold
15329 n
15330 \end_layout
15331
15332 \begin_layout Standard
15333 sets the list style.
15334 \end_layout
15335
15336 \begin_layout Standard
15337 An example where the command
15338 \end_layout
15339
15340 \begin_layout Standard
15341
15342 \family sans
15343 font=
15344 \backslash
15345 itshape,
15346  style=nextline
15347 \end_layout
15348
15349 \begin_layout Standard
15350 is used:
15351 \end_layout
15352
15353 \begin_layout Description
15354 Ionizing
15355 \begin_inset space ~
15356 \end_inset
15357
15358 radiation:
15359  
15360 \begin_inset Argument 1
15361 status collapsed
15362
15363 \begin_layout Plain Layout
15364 \begin_inset ERT
15365 status collapsed
15366
15367 \begin_layout Plain Layout
15368
15369 labelindent=0pt,
15370  labelsep=1cm,
15371  font=
15372 \backslash
15373 itshape,
15374  style=nextline
15375 \end_layout
15376
15377 \end_inset
15378
15379
15380 \end_layout
15381
15382 \end_inset
15383
15384 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
15385  therefore ionizing them.
15386 \end_layout
15387
15388 \begin_layout Description
15389 Reference
15390 \begin_inset space ~
15391 \end_inset
15392
15393 counting:
15394  In computer science,
15395  reference counting is a technique of storing the number of references,
15396  pointers,
15397  or handles to a resource such as an object,
15398  block of memory,
15399  disk space or other resource.
15400 \end_layout
15401
15402 \begin_layout Standard
15403 There are many more commands and features provided by the 
15404 \family sans
15405 enumitem
15406 \family default
15407
15408 \begin_inset Index idx
15409 range none
15410 pageformat default
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 \SpecialChar LaTeX
15415 -packages !
15416  enumitem
15417 \end_layout
15418
15419 \end_inset
15420
15421  package.
15422  For more information see the 
15423 \begin_inset CommandInset href
15424 LatexCommand href
15425 name "enumitem documentation"
15426 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15427 literal "false"
15428
15429 \end_inset
15430
15431 .
15432 \end_layout
15433
15434 \begin_layout Subsection
15435
15436 \series bold
15437 Paragraph Lists
15438 \end_layout
15439
15440 \begin_layout Standard
15441 This module uses the package 
15442 \family sans
15443 paralist
15444 \family default
15445  to provide nine new list environments.
15446  Itemized and enumerated lists can be typeset within paragraphs,
15447  as paragraphs and in a compact version.
15448  Most environments have optional arguments to format the labels.
15449  Additionally,
15450  the \SpecialChar LaTeX
15451  list environments itemize and enumerate are extended to use a similar optional argument.
15452  For further details see 
15453 \family sans
15454 File\SpecialChar menuseparator
15455 Open Example\SpecialChar menuseparator
15456 Modules\SpecialChar menuseparator
15457 Paragraph Lists (paralist)
15458 \family default
15459 ,
15460  
15461 \family sans
15462 Help\SpecialChar menuseparator
15463 Specific Manuals\SpecialChar menuseparator
15464 Paralist
15465 \family default
15466  and the 
15467 \begin_inset CommandInset href
15468 LatexCommand href
15469 name "paralist documentation"
15470 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
15471 literal "false"
15472
15473 \end_inset
15474
15475 .
15476 \end_layout
15477
15478 \begin_layout Section
15479 Literate Programming
15480 \end_layout
15481
15482 \begin_layout Subsection
15483 Noweb
15484 \end_layout
15485
15486 \begin_layout Standard
15487 This module allows the use of Noweb as a literate programming tool.
15488  The files and the documentation for Noweb can be obtained from 
15489 \begin_inset CommandInset href
15490 LatexCommand href
15491 name "CTAN"
15492 target "https://www.ctan.org/pkg/noweb"
15493 literal "false"
15494
15495 \end_inset
15496
15497 .
15498  Literate programming is described in section
15499 \begin_inset space ~
15500 \end_inset
15501
15502
15503 \begin_inset CommandInset ref
15504 LatexCommand ref
15505 reference "sec:Literate-Programming"
15506 nolink "false"
15507
15508 \end_inset
15509
15510  and there are three example files:
15511  
15512 \family sans
15513 File\SpecialChar menuseparator
15514 Open Example\SpecialChar menuseparator
15515 Modules\SpecialChar menuseparator
15516 Noweb
15517 \family default
15518 ,
15519  
15520 \family sans
15521 File\SpecialChar menuseparator
15522 Open Example\SpecialChar menuseparator
15523 Modules\SpecialChar menuseparator
15524 Noweb Listerrors
15525 \family default
15526  and 
15527 \family sans
15528 File\SpecialChar menuseparator
15529 Open Example\SpecialChar menuseparator
15530 Modules\SpecialChar menuseparator
15531 Noweb2\SpecialChar LyX
15532
15533 \family default
15534 .
15535 \end_layout
15536
15537 \begin_layout Subsection
15538 Rnw (knitr)
15539 \end_layout
15540
15541 \begin_layout Standard
15542 This module uses the 
15543 \family typewriter
15544 knitr
15545 \family default
15546  and 
15547 \family sans
15548 includernw
15549 \family default
15550  packages.
15551  The
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556 knitr
15557 \end_layout
15558
15559 \end_inset
15560
15561  package in R for dynamic report generation has to be installed for this module to work:
15562  
15563 \begin_inset Flex Code
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567 install.packages(“knitr”)
15568 \end_layout
15569
15570 \end_inset
15571
15572 .
15573 \end_layout
15574
15575 \begin_layout Paragraph
15576 Note
15577 \end_layout
15578
15579 \begin_layout Itemize
15580 it depends on R >= 2.14.1.
15581  For more info see 
15582 \begin_inset Flex URL
15583 status collapsed
15584
15585 \begin_layout Plain Layout
15586
15587 http://yihui.name/knitr
15588 \end_layout
15589
15590 \end_inset
15591
15592 .
15593 \end_layout
15594
15595 \begin_layout Itemize
15596 The package 
15597 \family sans
15598 includernw
15599 \family default
15600  also has to be installed.
15601 \end_layout
15602
15603 \begin_layout Itemize
15604 It cannot be used if the modules 
15605 \family sans
15606 LilyPond
15607 \begin_inset space ~
15608 \end_inset
15609
15610 Book
15611 \family default
15612  or 
15613 \family sans
15614 Sweave
15615 \family default
15616  are loaded.
15617 \end_layout
15618
15619 \begin_layout Standard
15620 See 
15621 \family sans
15622 Help\SpecialChar menuseparator
15623 Specific Manuals\SpecialChar menuseparator
15624 Knitr
15625 \family default
15626 ,
15627  
15628 \family sans
15629 File\SpecialChar menuseparator
15630 Open Example\SpecialChar menuseparator
15631 Modules\SpecialChar menuseparator
15632 Rnw (knitr)
15633 \family default
15634  and section
15635 \begin_inset space ~
15636 \end_inset
15637
15638
15639 \begin_inset CommandInset ref
15640 LatexCommand ref
15641 reference "sec:Literate-Programming"
15642 nolink "false"
15643
15644 \end_inset
15645
15646  for information about literate programming.
15647 \end_layout
15648
15649 \begin_layout Subsection
15650 Sweave
15651 \end_layout
15652
15653 \begin_layout Standard
15654 This module allows the use of the statistical language S/R as a literate programming tool.
15655  It requires the 
15656 \family sans
15657 includernw
15658 \family default
15659  and 
15660 \family sans
15661 fancyvrb
15662 \family default
15663  packages.
15664  Both 
15665 \begin_inset CommandInset href
15666 LatexCommand href
15667 name "includernw"
15668 target "https://www.ctan.org/pkg/includernw"
15669 literal "false"
15670
15671 \end_inset
15672
15673  and 
15674 \begin_inset CommandInset href
15675 LatexCommand href
15676 name "fancyvrb"
15677 target "https://www.ctan.org/pkg/fancyvrb"
15678 literal "false"
15679
15680 \end_inset
15681
15682  are available from CTAN.
15683  It cannot be used if the module 
15684 \family sans
15685 LilyPond
15686 \begin_inset space ~
15687 \end_inset
15688
15689 Book
15690 \family default
15691  has been loaded.
15692  See 
15693 \family sans
15694 Help\SpecialChar menuseparator
15695 Specific Manuals\SpecialChar menuseparator
15696 Sweave,
15697
15698 \family default
15699  
15700 \family sans
15701 File\SpecialChar menuseparator
15702 Open Example\SpecialChar menuseparator
15703 Modules\SpecialChar menuseparator
15704 Sweave
15705 \family default
15706  and section
15707 \begin_inset space ~
15708 \end_inset
15709
15710
15711 \begin_inset CommandInset ref
15712 LatexCommand ref
15713 reference "sec:Literate-Programming"
15714 nolink "false"
15715
15716 \end_inset
15717
15718  for information about literate programming.
15719 \end_layout
15720
15721 \begin_layout Section
15722 Maths
15723 \end_layout
15724
15725 \begin_layout Subsection
15726 AMS Theorems
15727 \end_layout
15728
15729 \begin_layout Standard
15730 This modules defines theorem environments and the proof environment using the extended AMS machinery.
15731  Both numbered and unnumbered types are provided.
15732  By default,
15733  the theorems are numbered consecutively throughout the document.
15734  This can be changed by loading one of the 
15735 \family sans
15736 AMS Theorems (Numbered by \SpecialChar ldots
15737 )
15738 \family default
15739  modules.
15740  It cannot be used if the modules 
15741 \family sans
15742 Standard Theorems
15743 \family default
15744  or 
15745 \family sans
15746 Standard Theorems (Unnumbered)
15747 \family default
15748  have been loaded.
15749 \end_layout
15750
15751 \begin_layout Subsection
15752 AMS Theorems (Extended)
15753 \end_layout
15754
15755 \begin_layout Standard
15756 This module defines some additional theorem environments for use with the 
15757 \family sans
15758 AMS Theorems
15759 \family default
15760  package (which must be loaded).
15761  It includes 
15762 \family sans
15763 Criterion
15764 \family default
15765 ,
15766  
15767 \family sans
15768 Algorithm
15769 \family default
15770 ,
15771  
15772 \family sans
15773 Axiom
15774 \family default
15775 ,
15776  
15777 \family sans
15778 Condition
15779 \family default
15780 ,
15781  
15782 \family sans
15783 Note
15784 \family default
15785 ,
15786  
15787 \family sans
15788 Notation
15789 \family default
15790 ,
15791  
15792 \family sans
15793 Summary
15794 \family default
15795 ,
15796  
15797 \family sans
15798 Conclusion
15799 \family default
15800 ,
15801  
15802 \family sans
15803 Fact
15804 \family default
15805 ,
15806  
15807 \family sans
15808 Assumption
15809 \family default
15810 ,
15811  
15812 \family sans
15813 Case
15814 \family default
15815  and 
15816 \family sans
15817 Question
15818 \family default
15819  in both numbered and unnumbered forms.
15820 \end_layout
15821
15822 \begin_layout Subsection
15823 AMS Theorems (Extended,
15824  Numbered by Type within Chapters)
15825 \end_layout
15826
15827 \begin_layout Standard
15828 This module defines some additional theorem environments for use with the 
15829 \family sans
15830 AMS Theorems (Numbered by Type within Chapters)
15831 \family default
15832  module (which must be loaded).
15833  It includes 
15834 \family sans
15835 Criterion
15836 \family default
15837 ,
15838  
15839 \family sans
15840 Algorithm
15841 \family default
15842 ,
15843  
15844 \family sans
15845 Axiom
15846 \family default
15847 ,
15848  
15849 \family sans
15850 Condition
15851 \family default
15852 ,
15853  
15854 \family sans
15855 Note
15856 \family default
15857 ,
15858  
15859 \family sans
15860 Notation
15861 \family default
15862 ,
15863  
15864 \family sans
15865 Summary
15866 \family default
15867 ,
15868  
15869 \family sans
15870 Conclusion
15871 \family default
15872 ,
15873  
15874 \family sans
15875 Assumption
15876 \family default
15877  and 
15878 \family sans
15879 Case
15880 \family default
15881  in both numbered and unnumbered forms.
15882 \end_layout
15883
15884 \begin_layout Standard
15885 Unlike the 
15886 \family sans
15887 AMS Theorems (Extended)
15888 \family default
15889  module,
15890  the different theorem types provided here each have a separate counter,
15891  restarted with each new chapter (e.g.,
15892  
15893 \emph on
15894 Criterion 1.1
15895 \emph default
15896 ,
15897  
15898 \emph on
15899 Criterion 1.2
15900 \emph default
15901 ,
15902  
15903 \emph on
15904 Axiom 1.1
15905 \emph default
15906 ,
15907  
15908 \emph on
15909 Assumption 1.1
15910 \emph default
15911 ,
15912  
15913 \emph on
15914 Criterion 2.1
15915 \emph default
15916 ,
15917  
15918 \emph on
15919 Criterion 2.2
15920 \emph default
15921 ,
15922
15923 \emph on
15924  Axiom 2.1
15925 \emph default
15926 ,
15927  \SpecialChar ldots
15928 ,
15929  as opposed to 
15930 \emph on
15931 Criterion 1
15932 \emph default
15933 ,
15934  
15935 \emph on
15936 Criterion 2
15937 \emph default
15938 ,
15939  
15940 \emph on
15941 Axiom 3
15942 \emph default
15943 ,
15944  
15945 \emph on
15946 Assumption 4
15947 \emph default
15948 ,
15949  \SpecialChar ldots
15950 ).
15951 \end_layout
15952
15953 \begin_layout Subsection
15954 AMS Theorems (Extended,
15955  Numbered by Type)
15956 \end_layout
15957
15958 \begin_layout Standard
15959 This module defines some additional theorem environments for use with the 
15960 \family sans
15961 AMS Theorems (Numbered by Type)
15962 \family default
15963  package (which must be loaded).
15964  It includes 
15965 \family sans
15966 Criterion
15967 \family default
15968 ,
15969  
15970 \family sans
15971 Algorithm
15972 \family default
15973 ,
15974  
15975 \family sans
15976 Axiom
15977 \family default
15978 ,
15979  
15980 \family sans
15981 Condition
15982 \family default
15983 ,
15984  
15985 \family sans
15986 Note
15987 \family default
15988 ,
15989  
15990 \family sans
15991 Notation
15992 \family default
15993 ,
15994  
15995 \family sans
15996 Summary
15997 \family default
15998 ,
15999  
16000 \family sans
16001 Conclusion
16002 \family default
16003 ,
16004  
16005 \family sans
16006 Assumption
16007 \family default
16008  and 
16009 \family sans
16010 Case
16011 \family default
16012  in both numbered and unnumbered forms.
16013 \end_layout
16014
16015 \begin_layout Standard
16016 Unlike the 
16017 \family sans
16018 AMS Theorems (Extended)
16019 \family default
16020  module,
16021  the different theorem types provided here each have a separate counter (e.g.,
16022  
16023 \emph on
16024 Criterion 1
16025 \emph default
16026 ,
16027  
16028 \emph on
16029 Criterion 2
16030 \emph default
16031 ,
16032  
16033 \emph on
16034 Axiom 1
16035 \emph default
16036 ,
16037  
16038 \emph on
16039 Assumption 1
16040 \emph default
16041 ,
16042  
16043 \emph on
16044 Criterion 3
16045 \emph default
16046 ,
16047  \SpecialChar ldots
16048 ,
16049  as opposed to 
16050 \emph on
16051 Criterion 1
16052 \emph default
16053 ,
16054  
16055 \emph on
16056 Criterion 2
16057 \emph default
16058 ,
16059  
16060 \emph on
16061 Axiom 3
16062 \emph default
16063 ,
16064  
16065 \emph on
16066 Assumption 4
16067 \emph default
16068 ,
16069  \SpecialChar ldots
16070 ).
16071 \end_layout
16072
16073 \begin_layout Subsection
16074 AMS Theorems (Numbered by Type within Chapters)
16075 \end_layout
16076
16077 \begin_layout Standard
16078 This module defines theorem environments and the proof environment using the extended AMS machinery.
16079  Both numbered and unnumbered types are provided.
16080 \end_layout
16081
16082 \begin_layout Standard
16083 Unlike the 
16084 \family sans
16085 AMS Theorems
16086 \family default
16087  module,
16088  the different theorem types provided here each have a separate counter (e.g.,
16089  
16090 \emph on
16091 Theorem 1.1
16092 \emph default
16093 ,
16094  
16095 \emph on
16096 Theorem 1.2
16097 \emph default
16098 ,
16099  
16100 \emph on
16101 Lemma 1.1
16102 \emph default
16103 ,
16104  
16105 \emph on
16106 Proposition 1.1
16107 \emph default
16108 ,
16109  
16110 \emph on
16111 Theorem 1.3
16112 \emph default
16113 ,
16114  
16115 \emph on
16116 Lemma 1.2
16117 \emph default
16118 ,
16119  \SpecialChar ldots
16120 ,
16121  as opposed to 
16122 \emph on
16123 Theorem 1
16124 \emph default
16125 ,
16126  
16127 \emph on
16128 Theorem 2
16129 \emph default
16130 ,
16131  
16132 \emph on
16133 Lemma 3
16134 \emph default
16135 ,
16136  
16137 \emph on
16138 Proposition 4
16139 \emph default
16140 ,
16141  \SpecialChar ldots
16142 ).
16143  The numbering restarts for each chapter:
16144  
16145 \emph on
16146 Theorem 1.1
16147 \emph default
16148 ,
16149  
16150 \emph on
16151 Theorem 2.1
16152 \emph default
16153 ,
16154  \SpecialChar ldots
16155
16156 \end_layout
16157
16158 \begin_layout Standard
16159 It cannot be used if the modules 
16160 \family sans
16161 AMS Theorems
16162 \family default
16163 ,
16164  
16165 \family sans
16166 Standard Theorems
16167 \family default
16168 ,
16169
16170 \family sans
16171  Standard Theorems (Numbered by Type)
16172 \family default
16173  or
16174 \family sans
16175  Standard Theorems (Unnumbered)
16176 \family default
16177  have been loaded.
16178 \end_layout
16179
16180 \begin_layout Subsection
16181 AMS Theorems (Numbered by Type)
16182 \end_layout
16183
16184 \begin_layout Standard
16185 This module defines theorem environments and the proof environment using the extended AMS machinery.
16186  Both numbered and unnumbered types are provided.
16187  Unlike the 
16188 \family sans
16189 AMS Theorems
16190 \family default
16191  module,
16192  the different theorem types provided here each have a separate counter (e.g.,
16193  
16194 \emph on
16195 Theorem 1
16196 \emph default
16197 ,
16198  
16199 \emph on
16200 Theorem 2
16201 \emph default
16202 ,
16203  
16204 \emph on
16205 Lemma 1
16206 \emph default
16207 ,
16208  
16209 \emph on
16210 Proposition 1
16211 \emph default
16212 ,
16213  
16214 \emph on
16215 Theorem 3
16216 \emph default
16217 ,
16218  
16219 \emph on
16220 Lemma 2
16221 \emph default
16222 ,
16223  \SpecialChar ldots
16224 ,
16225  as opposed to 
16226 \emph on
16227 Theorem 1
16228 \emph default
16229 ,
16230  
16231 \emph on
16232 Theorem 2
16233 \emph default
16234 ,
16235  
16236 \emph on
16237 Lemma 3
16238 \emph default
16239 ,
16240  
16241 \emph on
16242 Proposition 4
16243 \emph default
16244 ,
16245  \SpecialChar ldots
16246 ).
16247  The numbering’s scope is the whole document.
16248  For chapter- and section-wide numbering,
16249  use one of the ‘within Sections’/‘within Chapters’ modules,
16250  respectively.
16251 \end_layout
16252
16253 \begin_layout Standard
16254 It cannot be used if the modules 
16255 \family sans
16256 AMS Theorems
16257 \family default
16258 ,
16259  
16260 \family sans
16261 Standard Theorems
16262 \family default
16263 ,
16264
16265 \family sans
16266  Standard Theorems (Numbered by Type)
16267 \family default
16268  or
16269 \family sans
16270  Standard Theorems (Unnumbered)
16271 \family default
16272  have been loaded.
16273 \end_layout
16274
16275 \begin_layout Subsection
16276 Number Equations by Section
16277 \end_layout
16278
16279 \begin_layout Standard
16280 This module resets the equation number at section start and prepends the section number to the equation number,
16281  as in 
16282 \emph on
16283 (2.1)
16284 \emph default
16285 .
16286 \end_layout
16287
16288 \begin_layout Subsection
16289 Standard Theorems
16290 \end_layout
16291
16292 \begin_layout Standard
16293 This module defines some theorem environments for use with non-AMS classes.
16294  By default,
16295  the theorems are numbered consecutively throughout the document.
16296  This can be changed by loading one of the 
16297 \family sans
16298 Standard Theorems (Numbered by \SpecialChar ldots
16299 )
16300 \family default
16301  modules.
16302 \end_layout
16303
16304 \begin_layout Standard
16305 It cannot be used if the modules 
16306 \family sans
16307 AMS Theorems
16308 \family default
16309  or
16310 \family sans
16311  Standard Theorems (Unnumbered)
16312 \family default
16313  have been loaded.
16314 \end_layout
16315
16316 \begin_layout Subsection
16317 Standard Theorems (Nameable)
16318 \end_layout
16319
16320 \begin_layout Standard
16321 This module facilitates the use of named theorems.
16322  The name of the theorem can be inserted via 
16323 \family sans
16324 Insert\SpecialChar menuseparator
16325 Additional Theorem Text
16326 \family default
16327 .
16328 \end_layout
16329
16330 \begin_layout Subsection
16331 Standard Theorems (Numbered by Chapter)
16332 \end_layout
16333
16334 \begin_layout Standard
16335 This module numbers theorems and the like by chapter (i.e.,
16336  the counter is reset at each chapter start).
16337  Use this module only with document classes that provide a chapter environment.
16338 \end_layout
16339
16340 \begin_layout Standard
16341 One of the modules 
16342 \family sans
16343 AMS Theorems
16344 \family default
16345  or 
16346 \family sans
16347 Standard Theorems
16348 \family default
16349  must be loaded.
16350 \end_layout
16351
16352 \begin_layout Standard
16353 It cannot be used if the module
16354 \family sans
16355  Standard Theorems (Numbered by Section)
16356 \family default
16357  has been loaded.
16358 \end_layout
16359
16360 \begin_layout Subsection
16361 Standard Theorems (Numbered by Section)
16362 \end_layout
16363
16364 \begin_layout Standard
16365 This module numbers theorems and the like by section (i.e.,
16366  the counter is reset at each section start).
16367  One of the modules 
16368 \family sans
16369 AMS Theorems
16370 \family default
16371  or 
16372 \family sans
16373 Standard Theorems
16374 \family default
16375  must be loaded.
16376  It cannot be used if the module
16377 \family sans
16378  Standard Theorems (Numbered by Chapter)
16379 \family default
16380  has been loaded.
16381 \end_layout
16382
16383 \begin_layout Subsection
16384 Standard Theorems (Numbered by Type within Chapters)
16385 \end_layout
16386
16387 \begin_layout Standard
16388 This module defines some theorem environments for use with non-AMS classes.
16389  Unlike the
16390 \family sans
16391  AMS Theorems
16392 \family default
16393  and 
16394 \family sans
16395 Standard Theorems
16396 \family default
16397  modules,
16398  the different theorem types provided here each have a separate counter (e.g.,
16399  
16400 \emph on
16401 Theorem 1
16402 \emph default
16403 ,
16404  
16405 \emph on
16406 Theorem 2
16407 \emph default
16408 ,
16409  
16410 \emph on
16411 Lemma 1
16412 \emph default
16413 ,
16414  
16415 \emph on
16416 Proposition 1
16417 \emph default
16418 ,
16419  
16420 \emph on
16421 Theorem 3
16422 \emph default
16423 ,
16424  
16425 \emph on
16426 Lemma 2
16427 \emph default
16428 ,
16429  \SpecialChar ldots
16430 ,
16431  as opposed to 
16432 \emph on
16433 Theorem 1
16434 \emph default
16435 ,
16436  
16437 \emph on
16438 Theorem 2
16439 \emph default
16440 ,
16441  
16442 \emph on
16443 Lemma 3
16444 \emph default
16445 ,
16446  
16447 \emph on
16448 Proposition 4
16449 \emph default
16450 ,
16451  \SpecialChar ldots
16452 ).
16453  The numbering is reset at each chapter start.
16454 \end_layout
16455
16456 \begin_layout Standard
16457 One of the modules 
16458 \family sans
16459 AMS Theorems (Numbered by Type)
16460 \family default
16461  or 
16462 \family sans
16463 Standard Theorems (Numbered by Type)
16464 \family default
16465  must be loaded.
16466 \end_layout
16467
16468 \begin_layout Standard
16469 It cannot be used if any of the modules
16470 \family sans
16471  AMS Theorems
16472 \family default
16473 ,
16474  
16475 \family sans
16476 Standard Theorems
16477 \family default
16478 ,
16479  
16480 \family sans
16481 Standard Theorems (Unnumbered)
16482 \family default
16483 ,
16484
16485 \family sans
16486  Standard Theorems (Numbered by Sections)
16487 \family default
16488  or 
16489 \family sans
16490 Standard Theorems (Numbered by Type within Sections)
16491 \family default
16492  have been loaded.
16493 \end_layout
16494
16495 \begin_layout Subsection
16496 Standard Theorems (Numbered by Type within Sections)
16497 \end_layout
16498
16499 \begin_layout Standard
16500 This module defines some theorem environments for use with non-AMS classes.
16501  Unlike the
16502 \family sans
16503  AMS Theorems
16504 \family default
16505  and 
16506 \family sans
16507 Standard Theorems
16508 \family default
16509  modules,
16510  the different theorem types provided here each have a separate counter (e.g.,
16511  
16512 \emph on
16513 Theorem 1
16514 \emph default
16515 ,
16516  
16517 \emph on
16518 Theorem 2
16519 \emph default
16520 ,
16521  
16522 \emph on
16523 Lemma 1
16524 \emph default
16525 ,
16526  
16527 \emph on
16528 Proposition 1
16529 \emph default
16530 ,
16531  
16532 \emph on
16533 Theorem 3
16534 \emph default
16535 ,
16536  
16537 \emph on
16538 Lemma 2
16539 \emph default
16540 ,
16541  \SpecialChar ldots
16542 ,
16543  as opposed to 
16544 \emph on
16545 Theorem 1
16546 \emph default
16547 ,
16548  
16549 \emph on
16550 Theorem 2
16551 \emph default
16552 ,
16553  
16554 \emph on
16555 Lemma 3
16556 \emph default
16557 ,
16558  
16559 \emph on
16560 Proposition 4
16561 \emph default
16562 ,
16563  \SpecialChar ldots
16564 ).
16565  The numbering is reset at each section start.
16566 \end_layout
16567
16568 \begin_layout Standard
16569 One of the modules 
16570 \family sans
16571 AMS Theorems (Numbered by Type)
16572 \family default
16573  or 
16574 \family sans
16575 Standard Theorems (Numbered by Type)
16576 \family default
16577  must be loaded.
16578 \end_layout
16579
16580 \begin_layout Standard
16581 It cannot be used if any of the modules
16582 \family sans
16583  AMS Theorems
16584 \family default
16585 ,
16586  
16587 \family sans
16588 Standard Theorems
16589 \family default
16590 ,
16591  
16592 \family sans
16593 Standard Theorems (Unnumbered)
16594 \family default
16595 ,
16596
16597 \family sans
16598  Standard Theorems (Numbered by Chapters)
16599 \family default
16600  or 
16601 \family sans
16602 Standard Theorems (Numbered by Type within Chapters)
16603 \family default
16604  have been loaded.
16605 \end_layout
16606
16607 \begin_layout Subsection
16608 Standard Theorems (Numbered by Type)
16609 \end_layout
16610
16611 \begin_layout Standard
16612 This module defines some theorem environments for use with non-AMS classes.
16613  Unlike the 
16614 \family sans
16615 AMS Theorems
16616 \family default
16617  and 
16618 \family sans
16619 Standard Theorems
16620 \family default
16621  modules,
16622  the different theorem types provided here each have a separate counter (e.g.,
16623  
16624 \emph on
16625 Theorem 1
16626 \emph default
16627 ,
16628  
16629 \emph on
16630 Theorem 2
16631 \emph default
16632 ,
16633  
16634 \emph on
16635 Lemma 1
16636 \emph default
16637 ,
16638  
16639 \emph on
16640 Proposition 1
16641 \emph default
16642 ,
16643  
16644 \emph on
16645 Theorem 3
16646 \emph default
16647 ,
16648  
16649 \emph on
16650 Lemma 2
16651 \emph default
16652 ,
16653  \SpecialChar ldots
16654 ,
16655  as opposed to 
16656 \emph on
16657 Theorem 1
16658 \emph default
16659 ,
16660  
16661 \emph on
16662 Theorem 2
16663 \emph default
16664 ,
16665  
16666 \emph on
16667 Lemma 3
16668 \emph default
16669 ,
16670  
16671 \emph on
16672 Proposition 4
16673 \emph default
16674 ,
16675  \SpecialChar ldots
16676 ).
16677  The numbering’s scope is the whole document.
16678  For chapter- and section-wide numbering,
16679  use one of the “within Chapters”/“within Sections” modules,
16680  respectively.
16681 \end_layout
16682
16683 \begin_layout Standard
16684 It cannot be used if any of the modules
16685 \family sans
16686  AMS Theorems
16687 \family default
16688 ,
16689  
16690 \family sans
16691 Standard Theorems
16692 \family default
16693 ,
16694  
16695 \family sans
16696 Standard Theorems (Unnumbered)
16697 \family default
16698  or
16699 \family sans
16700  AMS Theorems (Numbered by Type)
16701 \family default
16702  have been loaded.
16703 \end_layout
16704
16705 \begin_layout Subsection
16706 Standard Theorems (Unnumbered)
16707 \end_layout
16708
16709 \begin_layout Standard
16710 This module defines only unnumbered theorem environments and the proof environment,
16711  using the extended AMS machinery.
16712  It cannot be used if either of the modules
16713 \family sans
16714  AMS Theorems
16715 \family default
16716  or
16717 \family sans
16718  Standard Theorems
16719 \family default
16720  have been loaded.
16721 \end_layout
16722
16723 \begin_layout Subsection
16724 Subequations
16725 \end_layout
16726
16727 \begin_layout Standard
16728 This module provides a straightforward way to segregate subequations in LyX.
16729  See 
16730 \family sans
16731 Help\SpecialChar menuseparator
16732 Math\SpecialChar menuseparator
16733 Subnumbering
16734 \family default
16735 .
16736 \end_layout
16737
16738 \begin_layout Section
16739 Page Layout
16740 \end_layout
16741
16742 \begin_layout Subsection
16743 Custom Header/Footer Text
16744 \end_layout
16745
16746 \begin_layout Standard
16747 This module requires the 
16748 \family sans
16749 Page
16750 \begin_inset space ~
16751 \end_inset
16752
16753
16754 \bar under
16755 s
16756 \bar default
16757 tyle
16758 \family default
16759  option in the 
16760 \family sans
16761 \bar under
16762 D
16763 \bar default
16764 ocument\SpecialChar menuseparator
16765
16766 \bar under
16767 S
16768 \bar default
16769 ettings\SpecialChar menuseparator
16770 Page
16771 \begin_inset space ~
16772 \end_inset
16773
16774 Layout
16775 \family default
16776  dialog to be set to 
16777 \family typewriter
16778 fancy
16779 \family default
16780 .
16781  It adds six environments to document classes which support the 
16782 \family typewriter
16783 fancyhdr
16784 \family default
16785  package:
16786 \end_layout
16787
16788 \begin_layout Itemize
16789
16790 \family sans
16791 Left Header
16792 \end_layout
16793
16794 \begin_layout Itemize
16795
16796 \family sans
16797 Center Header
16798 \end_layout
16799
16800 \begin_layout Itemize
16801
16802 \family sans
16803 Right Header
16804 \end_layout
16805
16806 \begin_layout Itemize
16807
16808 \family sans
16809 Left Footer
16810 \end_layout
16811
16812 \begin_layout Itemize
16813
16814 \family sans
16815 Center Footer
16816 \end_layout
16817
16818 \begin_layout Itemize
16819
16820 \family sans
16821 Right Footer
16822 \end_layout
16823
16824 \begin_layout Subsubsection
16825 Fancy Headers and Footers
16826 \end_layout
16827
16828 \begin_layout Standard
16829 The default page layout is rather plain;
16830  for an 
16831 \family sans
16832 Article (Standard Class)
16833 \family default
16834  document class,
16835  all you get is a centered page number at the bottom of the page.
16836  This document uses the 
16837 \family sans
16838 KOMA-Script Book
16839 \family default
16840  class;
16841  so it appears to be a bit fancier.
16842 \end_layout
16843
16844 \begin_layout Standard
16845 Once the 
16846 \family sans
16847 Page
16848 \begin_inset space ~
16849 \end_inset
16850
16851
16852 \bar under
16853 s
16854 \bar default
16855 tyle
16856 \family default
16857  in 
16858 \family sans
16859 \bar under
16860 D
16861 \bar default
16862 ocument\SpecialChar menuseparator
16863
16864 \bar under
16865 S
16866 \bar default
16867 ettings\SpecialChar menuseparator
16868 Page Layout
16869 \family default
16870  is set to 
16871 \begin_inset Quotes eld
16872 \end_inset
16873
16874 fancy
16875 \begin_inset Quotes erd
16876 \end_inset
16877
16878 ,
16879  you will find that the page header is divided into three fields,
16880  not surprisingly labeled 
16881 \begin_inset Quotes eld
16882 \end_inset
16883
16884 left
16885 \begin_inset Quotes erd
16886 \end_inset
16887
16888 ,
16889  
16890 \begin_inset Quotes eld
16891 \end_inset
16892
16893 center
16894 \begin_inset Quotes erd
16895 \end_inset
16896
16897 ,
16898  and 
16899 \begin_inset Quotes eld
16900 \end_inset
16901
16902 right
16903 \begin_inset Quotes erd
16904 \end_inset
16905
16906 .
16907  The footer is also divided into these three fields.
16908  The \SpecialChar LaTeX
16909  commands to set these fields in the simplest manner are 
16910 \family typewriter
16911
16912 \backslash
16913 lhead
16914 \family default
16915 ,
16916  
16917 \family typewriter
16918
16919 \backslash
16920 chead
16921 \family default
16922 ,
16923  
16924 \family typewriter
16925
16926 \backslash
16927 rhead
16928 \family default
16929 ,
16930  
16931 \family typewriter
16932
16933 \backslash
16934 lfoot
16935 \family default
16936 ,
16937  etc.
16938  Suppose you wish to put your name in the upper left hand corner of each page.
16939  Simply insert the following command in the preamble:
16940 \end_layout
16941
16942 \begin_layout LyX-Code
16943
16944 \backslash
16945 lhead{John Q.
16946  DocWriter}
16947 \end_layout
16948
16949 \begin_layout Standard
16950 You will now see your name in the upper left.
16951  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,
16952  e.
16953 \begin_inset space \thinspace{}
16954 \end_inset
16955
16956 g.:
16957 \end_layout
16958
16959 \begin_layout LyX-Code
16960
16961 \backslash
16962 cfoot{}
16963 \end_layout
16964
16965 \begin_layout Standard
16966 There is,
16967  however,
16968  an easier way to make simple changes.
16969  If you load the 
16970 \family sans
16971 \bar under
16972 D
16973 \bar default
16974 ocument\SpecialChar menuseparator
16975
16976 \bar under
16977 S
16978 \bar default
16979 ettings\SpecialChar menuseparator
16980 Modules\SpecialChar menuseparator
16981 Page Layout\SpecialChar menuseparator
16982 Custom Header/Footer Text
16983 \family default
16984  module,
16985  you will find you have six new environments corresponding to the six fields described above.
16986 \end_layout
16987
16988 \begin_layout Standard
16989 Let's get really fancy:
16990  lets put the section number with the word 
16991 \begin_inset Quotes eld
16992 \end_inset
16993
16994 Section
16995 \begin_inset Quotes erd
16996 \end_inset
16997
16998  (e.
16999 \begin_inset space \thinspace{}
17000 \end_inset
17001
17002 g.
17003 \begin_inset space \space{}
17004 \end_inset
17005
17006 Section 3) in the upper left,
17007  the page number (e.
17008 \begin_inset space \thinspace{}
17009 \end_inset
17010
17011 g.
17012 \begin_inset space \space{}
17013 \end_inset
17014
17015 Page 4) in the upper right,
17016  your name in the lower left,
17017  and the date in the lower right.
17018  Use your newly enabled environments to add these entries:
17019 \end_layout
17020
17021 \begin_layout LyX-Code
17022
17023 \family sans
17024 Left
17025 \begin_inset space ~
17026 \end_inset
17027
17028 header:
17029
17030 \family default
17031 \series bold
17032  
17033 \family roman
17034 \series default
17035 Section
17036 \family typewriter
17037  
17038 \family default
17039
17040 \backslash
17041 thesection
17042 \end_layout
17043
17044 \begin_layout LyX-Code
17045
17046 \family sans
17047 Center header:
17048 \end_layout
17049
17050 \begin_layout LyX-Code
17051
17052 \family sans
17053 Right header:
17054
17055 \family default
17056  
17057 \family roman
17058 Page
17059 \family typewriter
17060  
17061 \family default
17062
17063 \backslash
17064 thepage
17065 \end_layout
17066
17067 \begin_layout LyX-Code
17068
17069 \family sans
17070 Left footer:
17071
17072 \family default
17073  
17074 \family roman
17075 John Q.
17076  DocWriter
17077 \end_layout
17078
17079 \begin_layout LyX-Code
17080
17081 \family sans
17082 Center footer:
17083 \end_layout
17084
17085 \begin_layout LyX-Code
17086
17087 \family sans
17088 Right footer:
17089
17090 \family default
17091 \series bold
17092  
17093 \series default
17094
17095 \backslash
17096 today
17097 \end_layout
17098
17099 \begin_layout Standard
17100 Make sure you enter the commands 
17101 \family typewriter
17102
17103 \backslash
17104 thesection
17105 \family default
17106 ,
17107  
17108 \family typewriter
17109
17110 \backslash
17111 thepage
17112 \family default
17113  and 
17114 \family typewriter
17115
17116 \backslash
17117 today
17118 \family default
17119  as \SpecialChar TeX
17120  Code commands
17121 \series bold
17122 .
17123
17124 \series default
17125  The commands 
17126 \family typewriter
17127
17128 \backslash
17129 thesection
17130 \family default
17131  and
17132 \family typewriter
17133  
17134 \backslash
17135 thepage
17136 \family default
17137  access \SpecialChar LaTeX
17138 ’s section and page counters,
17139  and so print out the current section and page numbers.
17140  
17141 \family typewriter
17142
17143 \backslash
17144 today
17145 \family default
17146  simply prints out today’s date.
17147 \end_layout
17148
17149 \begin_layout Standard
17150 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
17151  If you don't want one of the rules,
17152  set its thickness to 0.
17153  The header rule has a default thickness of 0.4pt,
17154  the footer rule is 0pt.
17155  For this you will need to use \SpecialChar TeX
17156  Code commands like
17157 \end_layout
17158
17159 \begin_layout Standard
17160
17161 \family typewriter
17162
17163 \backslash
17164 renewcommand{
17165 \backslash
17166 headrulewidth}{0.4pt}
17167 \family default
17168  and
17169 \end_layout
17170
17171 \begin_layout Standard
17172
17173 \family typewriter
17174
17175 \backslash
17176 renewcommand{
17177 \backslash
17178 footrulewidth}{0.4pt}
17179 \family default
17180  to set the thicknesses.
17181 \end_layout
17182
17183 \begin_layout Standard
17184 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
17185  Code commands like 
17186 \family typewriter
17187
17188 \backslash
17189 thispagestyle{empty}
17190 \family default
17191 ,
17192  
17193 \family typewriter
17194
17195 \backslash
17196 thispagestyle{plain}
17197 \family default
17198 ,
17199  and 
17200 \family typewriter
17201
17202 \backslash
17203 thispagestyle{fancy}
17204 \family default
17205 .
17206  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
17207  code.
17208  In fact,
17209  title pages are marked as plain by default,
17210  while following pages are marked fancy when using the global fancy setting.
17211 \end_layout
17212
17213 \begin_layout Standard
17214 If you want a header or footer to be on the outer side of a two sided document,
17215  you need to use something like:
17216 \end_layout
17217
17218 \begin_layout LyX-Code
17219
17220 \backslash
17221 fancyfoot{}
17222 \end_layout
17223
17224 \begin_layout LyX-Code
17225
17226 \backslash
17227 fancyfoot[LE,RO]{
17228 \backslash
17229 thepage}
17230 \end_layout
17231
17232 \begin_layout Standard
17233 The first command clears all existing footers avoiding any conflicts with your new command.
17234 \end_layout
17235
17236 \begin_layout Standard
17237 You can enter any of these commands,
17238  the simpler ones in any of your new environments,
17239  the more complex ones as \SpecialChar TeX
17240  Code commands,
17241  at any point in your document and they will take effect on the next page.
17242 \end_layout
17243
17244 \begin_layout Standard
17245 As a final example,
17246  it is possible to include an image in the header or footer.
17247  Suppose you want to put a company logo in the upper left hand corner.
17248  You might try something like this in 
17249 \family sans
17250 Document\SpecialChar menuseparator
17251 Settings\SpecialChar menuseparator
17252 LaTeX Preamble
17253 \family default
17254 :
17255 \end_layout
17256
17257 \begin_layout LyX-Code
17258
17259 \backslash
17260 lhead{
17261 \backslash
17262 resizebox{1in}{!}{
17263 \backslash
17264 includegraphics{logo.png}}}
17265 \end_layout
17266
17267 \begin_layout Standard
17268 \noindent
17269 You may need to preface this with 
17270 \family typewriter
17271
17272 \backslash
17273 usepackage{graphics}
17274 \family default
17275  if you don't include graphics elsewhere in your document.
17276 \end_layout
17277
17278 \begin_layout Standard
17279 For more information on fancy headers,
17280  you can get the 
17281 \begin_inset Flex Code
17282 status collapsed
17283
17284 \begin_layout Plain Layout
17285 fancyhdr
17286 \end_layout
17287
17288 \end_inset
17289
17290  documentation from 
17291 \begin_inset CommandInset href
17292 LatexCommand href
17293 name "CTAN"
17294 target "http://www.ctan.org/pkg/fancyhdr"
17295 literal "false"
17296
17297 \end_inset
17298
17299 .
17300 \end_layout
17301
17302 \begin_layout Subsection
17303 Landscape Document Parts
17304 \end_layout
17305
17306 \begin_layout Standard
17307 This module outputs parts of the document in landscape mode using 
17308 \family sans
17309 Insert\SpecialChar menuseparator
17310 Custom Insets\SpecialChar menuseparator
17311 Landscape
17312 \family default
17313  or 
17314 \family sans
17315 Insert\SpecialChar menuseparator
17316 Custom Insets\SpecialChar menuseparator
17317 Landscape (Floating)
17318 \family default
17319 .
17320 \end_layout
17321
17322 \begin_layout Subsection
17323 \begin_inset CommandInset label
17324 LatexCommand label
17325 name "sec:Multiple-Columns"
17326
17327 \end_inset
17328
17329 Multiple Columns
17330 \end_layout
17331
17332 \begin_layout Standard
17333 This module uses the 
17334 \family sans
17335 multicol
17336 \family default
17337
17338 \begin_inset Index idx
17339 range none
17340 pageformat default
17341 status collapsed
17342
17343 \begin_layout Plain Layout
17344 \SpecialChar LaTeX
17345 -packages !
17346  multicol
17347 \end_layout
17348
17349 \end_inset
17350
17351  package and is independent of the option 
17352 \family sans
17353 Two-
17354 \bar under
17355 c
17356 \bar default
17357 olumn document
17358 \family default
17359  in the 
17360 \family sans
17361 \bar under
17362 D
17363 \bar default
17364 ocument\SpecialChar menuseparator
17365
17366 \bar under
17367 S
17368 \bar default
17369 ettings\SpecialChar menuseparator
17370 Text
17371 \begin_inset space ~
17372 \end_inset
17373
17374 Layout
17375 \family default
17376  dialog.
17377  If you want to have two columns for the whole document,
17378  you are recommended to use the 
17379 \family sans
17380 Two-
17381 \bar under
17382 c
17383 \bar default
17384 olumn document
17385 \family default
17386  option.
17387  For all other cases use this module.
17388 \end_layout
17389
17390 \begin_layout Standard
17391 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
17392  Within the different columns you can use everything,
17393  with the limitation that for floats you need to check the option 
17394 \family sans
17395 \bar under
17396 S
17397 \bar default
17398 pan
17399 \begin_inset space ~
17400 \end_inset
17401
17402 columns
17403 \family default
17404  in 
17405 \family sans
17406 \bar under
17407 E
17408 \bar default
17409 dit\SpecialChar menuseparator
17410 Flo
17411 \bar under
17412 a
17413 \bar default
17414 t
17415 \begin_inset space ~
17416 \end_inset
17417
17418 Settings
17419 \family default
17420 .
17421 \end_layout
17422
17423 \begin_layout Subsubsection
17424 Basics
17425 \end_layout
17426
17427 \begin_layout Standard
17428 If you want to have two columns in your text,
17429  insert a multicolumn inset via the menu 
17430 \family sans
17431 Insert\SpecialChar menuseparator
17432 Custom
17433 \begin_inset space ~
17434 \end_inset
17435
17436 Insets\SpecialChar menuseparator
17437 Multiple
17438 \begin_inset space ~
17439 \end_inset
17440
17441 Columns
17442 \family default
17443  where the columns should start.
17444  Write all text that should be printed in 2
17445 \begin_inset space ~
17446 \end_inset
17447
17448 columns into this inset.
17449 \end_layout
17450
17451 \begin_layout Standard
17452 Here is an example:
17453 \end_layout
17454
17455 \begin_layout Standard
17456 \noindent
17457 \begin_inset Flex Multiple Columns
17458 status open
17459
17460 \begin_layout Plain Layout
17461 \noindent
17462
17463 \series bold
17464 \size small
17465 The Adventure of the Empty House
17466 \series default
17467
17468 \begin_inset Newline newline
17469 \end_inset
17470
17471 by 
17472 \noun on
17473 Sir Arthur Conan Doyle
17474 \end_layout
17475
17476 \begin_layout Plain Layout
17477
17478 \size small
17479 It was in the spring of the year 1894 that all London was interested,
17480  and the fashionable world dismayed,
17481  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
17482  The public has already learned those particulars of the crime which came out in the police investigation,
17483  but a good deal was suppressed upon that occasion,
17484  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
17485  Only now,
17486  at the end of nearly ten years,
17487  am I allowed to supply those missing links which make up the whole of that remarkable chain.
17488  The crime was of interest in itself,
17489  but that interest was as nothing to me compared to the inconceivable sequel,
17490  which afforded me the greatest shock and surprise of any event in my adventurous life.
17491  Even now,
17492  after this long interval,
17493  I find myself thrilling as I think of it,
17494  and feeling once more that sudden flood of joy,
17495  amazement,
17496  and incredulity which utterly submerged my mind.
17497  Let me say to that public,
17498  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
17499  that they are not to blame me if I have not shared my knowledge with them,
17500  for I should have considered it my first duty to do so,
17501  had I not been barred by a positive prohibition from his own lips,
17502  which was only withdrawn upon the third of last month.
17503 \end_layout
17504
17505 \end_inset
17506
17507
17508 \end_layout
17509
17510 \begin_layout Standard
17511 To get 3 or more columns,
17512  set the cursor into the multicolumn inset and use the menu 
17513 \family sans
17514 Insert\SpecialChar menuseparator
17515 Number
17516 \begin_inset space ~
17517 \end_inset
17518
17519 of
17520 \begin_inset space ~
17521 \end_inset
17522
17523 Columns
17524 \family default
17525 .
17526  The number of the desired columns is written into that inset (for 3
17527 \begin_inset space ~
17528 \end_inset
17529
17530 columns write 
17531 \begin_inset Quotes eld
17532 \end_inset
17533
17534 3
17535 \begin_inset Quotes erd
17536 \end_inset
17537
17538 ).
17539 \begin_inset Newline newline
17540 \end_inset
17541
17542 Here is an example with 3
17543 \begin_inset space ~
17544 \end_inset
17545
17546 columns:
17547 \end_layout
17548
17549 \begin_layout Standard
17550 \begin_inset Flex Multiple Columns
17551 status open
17552
17553 \begin_layout Plain Layout
17554
17555 \size footnotesize
17556 \begin_inset Argument 1
17557 status open
17558
17559 \begin_layout Plain Layout
17560
17561 3
17562 \end_layout
17563
17564 \end_inset
17565
17566 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
17567  and that after his disappearance I never failed to read with care the various problems which came before the public.
17568  And I even attempted,
17569  more than once,
17570  for my own private satisfaction,
17571  to employ his methods in their solution,
17572  though with indifferent success.
17573  There was none,
17574  however,
17575  which appealed to me like this tragedy of Ronald Adair.
17576  As I read the evidence at the inquest,
17577  which led up to a verdict of willful murder against some person or persons unknown,
17578  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
17579  There were points about this strange business which would,
17580  I was sure,
17581  have specially appealed to him,
17582  and the efforts of the police would have been supplemented,
17583  or more probably anticipated,
17584  by the trained observation and the alert mind of the first criminal agent in Europe.
17585  All day,
17586  as I drove upon my round,
17587  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
17588  At the risk of telling a twice-told tale,
17589  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
17590 \end_layout
17591
17592 \end_inset
17593
17594
17595 \end_layout
17596
17597 \begin_layout Standard
17598 You can have up to 10
17599 \begin_inset space ~
17600 \end_inset
17601
17602 columns if you want to,
17603  but that might not be very pleasant for the readers of your document.
17604 \end_layout
17605
17606 \begin_layout Subsubsection
17607 Columns inside Columns
17608 \end_layout
17609
17610 \begin_layout Standard
17611 You can also have columns inside columns:
17612 \end_layout
17613
17614 \begin_layout Standard
17615 \begin_inset Flex Multiple Columns
17616 status open
17617
17618 \begin_layout Plain Layout
17619
17620 \size footnotesize
17621 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
17622  at that time governor of one of the Australian colonies.
17623  Adair's mother had returned from Australia to undergo the operation for cataract,
17624  and she,
17625  her son Ronald,
17626  and her daughter Hilda were living together at 427 Park Lane.
17627 \end_layout
17628
17629 \begin_layout Plain Layout
17630 \begin_inset Flex Multiple Columns
17631 status open
17632
17633 \begin_layout Plain Layout
17634
17635 \size footnotesize
17636 The youth moved in the best society
17637 \begin_inset space ~
17638 \end_inset
17639
17640 – had,
17641  so far as was known,
17642  no enemies and no particular vices.
17643  He had been engaged to Miss Edith Woodley,
17644  of Carstairs,
17645  but the engagement had been broken off by mutual consent some months before,
17646  and there was no sign that it had left any very profound feeling behind it.
17647  For the rest {sic} the man's life moved in a narrow and conventional circle,
17648  for his habits were quiet and his nature unemotional.
17649  Yet it was upon this easy-going young aristocrat that death came,
17650  in most strange and unexpected form,
17651  between the hours of ten and eleven-twenty on the night of March 30,
17652  1894.
17653 \end_layout
17654
17655 \end_inset
17656
17657
17658 \end_layout
17659
17660 \begin_layout Plain Layout
17661
17662 \size footnotesize
17663 Ronald Adair was fond of cards
17664 \begin_inset space ~
17665 \end_inset
17666
17667 – playing continually,
17668  but never for such stakes as would hurt him.
17669  He was a member of the Baldwin,
17670  the Cavendish,
17671  and the Bagatelle card clubs.
17672  It was shown that,
17673  after dinner on the day of his death,
17674  he had played a rubber of whist at the latter club.
17675  He had also played there in the afternoon.
17676
17677 \size default
17678  
17679 \size footnotesize
17680 The evidence of those who had played with him
17681 \begin_inset space ~
17682 \end_inset
17683
17684 – Mr.
17685  Murray,
17686  Sir John Hardy,
17687  and Colonel Moran
17688 \begin_inset space ~
17689 \end_inset
17690
17691 – showed that the game was whist,
17692  and that there was a fairly equal fall of the cards.
17693  Adair might have lost five pounds,
17694  but not more.
17695  His fortune was a considerable one,
17696  and such a loss could not in any way affect him.
17697  He had played nearly every day at one club or other,
17698  but he was a cautious player,
17699  and usually rose a winner.
17700  It came out in evidence that,
17701  in partnership with Colonel Moran,
17702  he had actually won as much as four hundred and twenty pounds in a sitting,
17703  some weeks before,
17704  from Godfrey Milner and Lord Balmoral.
17705  So much for his recent history as it came out at the inquest.
17706 \end_layout
17707
17708 \end_inset
17709
17710
17711 \end_layout
17712
17713 \begin_layout Subsubsection
17714 Advanced Examples
17715 \end_layout
17716
17717 \begin_layout Standard
17718 The examples in this section show some more special features of multiple columns.
17719 \end_layout
17720
17721 \begin_layout Standard
17722 For more features of multiple columns,
17723  have a look at the 
17724 \begin_inset CommandInset href
17725 LatexCommand href
17726 name "documentation"
17727 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
17728 literal "false"
17729
17730 \end_inset
17731
17732  of the \SpecialChar LaTeX
17733 -package 
17734 \begin_inset Flex Code
17735 status collapsed
17736
17737 \begin_layout Plain Layout
17738 multicol
17739 \end_layout
17740
17741 \end_inset
17742
17743 .
17744 \end_layout
17745
17746 \begin_layout Paragraph
17747 Preface
17748 \end_layout
17749
17750 \begin_layout Standard
17751 To add a preface text for multiple columns,
17752  set the cursor into the multicolumn inset and use the menu 
17753 \family sans
17754 Insert\SpecialChar menuseparator
17755 Preface
17756 \family default
17757 .
17758  Write your preface text into that inset.
17759 \begin_inset Newline newline
17760 \end_inset
17761
17762 This is an example with some preface text:
17763 \end_layout
17764
17765 \begin_layout Standard
17766 \begin_inset VSpace bigskip
17767 \end_inset
17768
17769
17770 \end_layout
17771
17772 \begin_layout Standard
17773 \begin_inset Flex Multiple Columns
17774 status open
17775
17776 \begin_layout Plain Layout
17777 \begin_inset Argument 2
17778 status open
17779
17780 \begin_layout Plain Layout
17781 And the story continues and continues and continues and continues\SpecialChar ldots
17782
17783 \end_layout
17784
17785 \end_inset
17786
17787
17788 \size small
17789 On the evening of the crime,
17790  he returned from the club exactly at ten.
17791  His mother and sister were out spending the evening with a relation.
17792  The servant deposed that she heard him enter the front room on the second floor,
17793  generally used as his sitting-room.
17794  She had lit a fire there,
17795  and as it smoked she had opened the window.
17796  No sound was heard from the room until eleven-twenty,
17797  the hour of the return of Lady Maynooth and her daughter.
17798  Desiring to say good-night,
17799  she attempted to enter her son's room.
17800  The door was locked on the inside,
17801  and no answer could be got to their cries and knocking.
17802  Help was obtained,
17803  and the door forced.
17804  The unfortunate young man was found lying near the table.
17805  His head had been horribly mutilated by an expanding revolver bullet,
17806  but no weapon of any sort was to be found in the room.
17807 \end_layout
17808
17809 \end_inset
17810
17811
17812 \end_layout
17813
17814 \begin_layout Standard
17815 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
17816  Code.
17817  For example the command
17818 \end_layout
17819
17820 \begin_layout LyX-Code
17821
17822 \backslash
17823 subsection{subsection title}
17824 \end_layout
17825
17826 \begin_layout Standard
17827 creates a subsection.
17828  In this example the preface is a subsubsection:
17829 \end_layout
17830
17831 \begin_layout Standard
17832 \begin_inset Flex Multiple Columns
17833 status open
17834
17835 \begin_layout Plain Layout
17836 \begin_inset Argument 2
17837 status open
17838
17839 \begin_layout Plain Layout
17840 \begin_inset ERT
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844
17845
17846 \backslash
17847 subsubsection{
17848 \end_layout
17849
17850 \end_inset
17851
17852 This is a subsubsection heading as a preface
17853 \begin_inset ERT
17854 status collapsed
17855
17856 \begin_layout Plain Layout
17857
17858 }
17859 \end_layout
17860
17861 \end_inset
17862
17863
17864 \end_layout
17865
17866 \end_inset
17867
17868
17869 \size small
17870 A minute examination of the circumstances served only to make the case more complex.
17871  In the first place,
17872  no reason could be given why the young man should have fastened the door upon the inside.
17873  There was the possibility that the murderer had done this,
17874  and had afterwards escaped by the window.
17875  The drop was at least twenty feet,
17876  however,
17877  and a bed of crocuses in full bloom lay beneath.
17878  Neither the flowers nor the earth showed any sign of having been disturbed,
17879  nor were there any marks upon the narrow strip of grass which separated the house from the road.
17880  Apparently,
17881  therefore,
17882  it was the young man himself who had fastened the door.
17883  But how did he come by his death?
17884  No one could have climbed up to the window without leaving traces.
17885  Suppose a man had fired through the window,
17886  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
17887  Again,
17888  Park Lane is a frequented thoroughfare;
17889  there is a cab stand within a hundred yards of the house.
17890  No one had heard a shot.
17891 \end_layout
17892
17893 \end_inset
17894
17895
17896 \end_layout
17897
17898 \begin_layout Standard
17899 If there is less vertical space than six text lines is left on the page at the beginning of the multiple columns,
17900  a page break will be inserted before the multiple columns.
17901  Depending on the number of lines of the preface text,
17902  you might want to change this space.
17903  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
17904 \family sans
17905 Insert\SpecialChar menuseparator
17906 Space
17907 \begin_inset space ~
17908 \end_inset
17909
17910 Before
17911 \begin_inset space ~
17912 \end_inset
17913
17914 Page
17915 \begin_inset space ~
17916 \end_inset
17917
17918 Break
17919 \family default
17920 .
17921  Insert into that inset the amount of space like e.
17922 \begin_inset space \thinspace{}
17923 \end_inset
17924
17925 g.
17926 \begin_inset space \space{}
17927 \end_inset
17928
17929
17930 \begin_inset Quotes eld
17931 \end_inset
17932
17933 5cm
17934 \begin_inset Quotes erd
17935 \end_inset
17936
17937 .
17938 \begin_inset Newline newline
17939 \end_inset
17940
17941 In this example the space is set to 7
17942 \begin_inset space ~
17943 \end_inset
17944
17945 text lines by using 
17946 \begin_inset Flex Code
17947 status collapsed
17948
17949 \begin_layout Plain Layout
17950 7
17951 \backslash
17952 baselineskip
17953 \end_layout
17954
17955 \end_inset
17956
17957  (where the command 
17958 \begin_inset Flex Code
17959 status collapsed
17960
17961 \begin_layout Plain Layout
17962
17963 \backslash
17964 baselineskip
17965 \end_layout
17966
17967 \end_inset
17968
17969  needs to be inserted as \SpecialChar TeX
17970  code):
17971 \end_layout
17972
17973 \begin_layout Standard
17974 \begin_inset Flex Multiple Columns
17975 status open
17976
17977 \begin_layout Plain Layout
17978 \begin_inset Argument 3
17979 status open
17980
17981 \begin_layout Plain Layout
17982 7
17983 \begin_inset ERT
17984 status collapsed
17985
17986 \begin_layout Plain Layout
17987
17988
17989 \backslash
17990 baselineskip
17991 \end_layout
17992
17993 \end_inset
17994
17995
17996 \end_layout
17997
17998 \end_inset
17999
18000
18001 \size small
18002 On the evening of the crime,
18003  he returned from the club exactly at ten.
18004  His mother and sister were out spending the evening with a relation.
18005  The servant deposed that she heard him enter the front room on the second floor,
18006  generally used as his sitting-room.
18007  She had lit a fire there,
18008  and as it smoked she had opened the window.
18009  No sound was heard from the room until eleven-twenty,
18010  the hour of the return of Lady Maynooth and her daughter.
18011  Desiring to say good-night,
18012  she attempted to enter her son's room.
18013  The door was locked on the inside,
18014  and no answer could be got to their cries and knocking.
18015  Help was obtained,
18016  and the door forced.
18017  The unfortunate young man was found lying near the table.
18018  His head had been horribly mutilated by an expanding revolver bullet,
18019  but no weapon of any sort was to be found in the room.
18020 \end_layout
18021
18022 \end_inset
18023
18024
18025 \end_layout
18026
18027 \begin_layout Paragraph
18028 Surrounding Space
18029 \end_layout
18030
18031 \begin_layout Standard
18032 The amount of space before and after multiple columns can be changed by changing the length 
18033 \begin_inset Flex Code
18034 status collapsed
18035
18036 \begin_layout Plain Layout
18037
18038 \backslash
18039 multicolsep
18040 \end_layout
18041
18042 \end_inset
18043
18044 .
18045  For example the command
18046 \end_layout
18047
18048 \begin_layout LyX-Code
18049
18050 \backslash
18051 setlength{
18052 \backslash
18053 multicolsep}{3cm}
18054 \end_layout
18055
18056 \begin_layout Standard
18057 in \SpecialChar TeX
18058  Code changes its value to 3
18059 \begin_inset space \thinspace{}
18060 \end_inset
18061
18062 cm.
18063  The change must be made before the multiple columns' start.
18064  The predefined value is 13
18065 \begin_inset space \thinspace{}
18066 \end_inset
18067
18068 pt.
18069 \end_layout
18070
18071 \begin_layout Standard
18072 For this example 
18073 \begin_inset Flex Code
18074 status collapsed
18075
18076 \begin_layout Plain Layout
18077
18078 \backslash
18079 multicolsep
18080 \end_layout
18081
18082 \end_inset
18083
18084  was set to 2.5
18085 \begin_inset space \thinspace{}
18086 \end_inset
18087
18088 cm:
18089 \end_layout
18090
18091 \begin_layout Standard
18092 \begin_inset ERT
18093 status open
18094
18095 \begin_layout Plain Layout
18096
18097
18098 \backslash
18099 setlength{
18100 \backslash
18101 multicolsep}{2.5cm}
18102 \end_layout
18103
18104 \end_inset
18105
18106
18107 \end_layout
18108
18109 \begin_layout Standard
18110 \begin_inset Flex Multiple Columns
18111 status open
18112
18113 \begin_layout Plain Layout
18114
18115 \size small
18116 All day I turned these facts over in my mind,
18117  endeavouring to hit upon some theory which could reconcile them all,
18118  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
18119  I confess that I made little progress.
18120  In the evening I strolled across the Park,
18121  and found myself about six o'clock at the Oxford Street end of Park Lane.
18122  A group of loafers upon the pavements,
18123  all staring up at a particular window,
18124  directed me to the house which I had come to see.
18125  A tall,
18126  thin man with coloured glasses,
18127  whom I strongly suspected of being a plain-clothes detective,
18128  was pointing out some theory of his own,
18129  while the others crowded round to listen to what he said.
18130  I got as near him as I could,
18131  but his observations seemed to me to be absurd,
18132  so I withdrew again in some disgust.
18133  As I did so I struck against an elderly,
18134  deformed man,
18135  who had been behind me,
18136  and I knocked down several books which he was carrying.
18137 \end_layout
18138
18139 \end_inset
18140
18141
18142 \end_layout
18143
18144 \begin_layout Standard
18145 \begin_inset Note Greyedout
18146 status open
18147
18148 \begin_layout Plain Layout
18149
18150 \series bold
18151 Note:
18152
18153 \series default
18154  The values you set with 
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159
18160 \backslash
18161 setlength
18162 \end_layout
18163
18164 \end_inset
18165
18166  will be used for all following multiple columns until you change them again.
18167 \end_layout
18168
18169 \end_inset
18170
18171
18172 \end_layout
18173
18174 \begin_layout Standard
18175 \begin_inset ERT
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179
18180
18181 \backslash
18182 setlength{
18183 \backslash
18184 multicolsep}{13pt}
18185 \end_layout
18186
18187 \end_inset
18188
18189
18190 \begin_inset Note Note
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 go back to the default
18195 \end_layout
18196
18197 \end_inset
18198
18199
18200 \end_layout
18201
18202 \begin_layout Paragraph
18203 Column Breaks
18204 \end_layout
18205
18206 \begin_layout Standard
18207 A column break can be forced by inserting the command 
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212
18213 \backslash
18214 columnbreak{}
18215 \end_layout
18216
18217 \end_inset
18218
18219  as \SpecialChar TeX
18220  Code to that position in the text where the column should be broken.
18221  Note that this leads in most cases to whitespace in the text.
18222 \begin_inset Newline newline
18223 \end_inset
18224
18225 Here is an example:
18226 \end_layout
18227
18228 \begin_layout Standard
18229 \begin_inset Flex Multiple Columns
18230 status open
18231
18232 \begin_layout Plain Layout
18233
18234 \size small
18235 \begin_inset Quotes eld
18236 \end_inset
18237
18238 You're surprised to see me,
18239  sir,
18240 \begin_inset Quotes erd
18241 \end_inset
18242
18243  said he,
18244  in a strange,
18245  croaking voice.
18246 \end_layout
18247
18248 \begin_layout Plain Layout
18249
18250 \size small
18251 I acknowledged that I was.
18252 \end_layout
18253
18254 \begin_layout Plain Layout
18255
18256 \size small
18257 \begin_inset Quotes eld
18258 \end_inset
18259
18260 Well,
18261  I've a conscience,
18262  sir,
18263  and when I chanced to see you go into this house,
18264  as I came hobbling after you,
18265  I thought to myself,
18266  I'll just step in and see that kind gentleman,
18267  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18268  and that I am much obliged to him for picking up my books.
18269 \begin_inset Quotes erd
18270 \end_inset
18271
18272
18273 \end_layout
18274
18275 \begin_layout Plain Layout
18276
18277 \size small
18278 \begin_inset Quotes eld
18279 \end_inset
18280
18281 You make too much of a trifle,
18282 \begin_inset Quotes erd
18283 \end_inset
18284
18285  said I.
18286  
18287 \begin_inset Quotes eld
18288 \end_inset
18289
18290 May I ask how you knew who I was?
18291 \begin_inset Quotes erd
18292 \end_inset
18293
18294  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
18295 \begin_inset ERT
18296 status collapsed
18297
18298 \begin_layout Plain Layout
18299
18300
18301 \backslash
18302 columnbreak{}
18303 \end_layout
18304
18305 \end_inset
18306
18307
18308 \end_layout
18309
18310 \begin_layout Plain Layout
18311
18312 \size small
18313 \begin_inset Quotes eld
18314 \end_inset
18315
18316 Well,
18317  sir,
18318  if it isn't too great a liberty,
18319  I am a neighbour of yours,
18320  for you'll find my little bookshop at the corner of Church Street,
18321  and very happy to see you,
18322  I am sure.
18323  Maybe you collect yourself,
18324  sir.
18325  Here's 
18326 \noun on
18327 British
18328 \begin_inset space ~
18329 \end_inset
18330
18331 Birds
18332 \noun default
18333 ,
18334  and 
18335 \noun on
18336 Catullus
18337 \noun default
18338 ,
18339  and 
18340 \noun on
18341 The Holy War
18342 \noun default
18343
18344 \begin_inset space ~
18345 \end_inset
18346
18347 – a bargain,
18348  every one of them.
18349  With five volumes you could just fill that gap on that second shelf.
18350  It looks untidy,
18351  does it not,
18352  sir?
18353 \begin_inset Quotes erd
18354 \end_inset
18355
18356
18357 \end_layout
18358
18359 \end_inset
18360
18361
18362 \end_layout
18363
18364 \begin_layout Paragraph
18365 Column Separation
18366 \end_layout
18367
18368 \begin_layout Standard
18369 The width of the columns is automatically calculated,
18370  but you can modify the space between the columns.
18371  This is done by changing the length 
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376
18377 \backslash
18378 columnsep
18379 \end_layout
18380
18381 \end_inset
18382
18383 .
18384  Its predefined value is 10
18385 \begin_inset space \thinspace{}
18386 \end_inset
18387
18388 pt.
18389  Here is an example where 
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394
18395 \backslash
18396 columnsep
18397 \end_layout
18398
18399 \end_inset
18400
18401  is set to 3
18402 \begin_inset space \thinspace{}
18403 \end_inset
18404
18405 cm:
18406 \end_layout
18407
18408 \begin_layout Standard
18409 \begin_inset ERT
18410 status open
18411
18412 \begin_layout Plain Layout
18413
18414
18415 \backslash
18416 setlength{
18417 \backslash
18418 columnsep}{3cm}
18419 \end_layout
18420
18421 \end_inset
18422
18423
18424 \end_layout
18425
18426 \begin_layout Standard
18427 \begin_inset Flex Multiple Columns
18428 status open
18429
18430 \begin_layout Plain Layout
18431
18432 \size small
18433 My observations of No.
18434 \begin_inset space \space{}
18435 \end_inset
18436
18437 427 Park Lane did little to clear up the problem in which I was interested.
18438  The house was separated from the street by a low wall and railing,
18439  the whole not more than five feet high.
18440  It was perfectly easy,
18441  therefore,
18442  for anyone to get into the garden,
18443  but the window was entirely inaccessible,
18444  since there was no water pipe or anything which could help the most active man to climb it.
18445  More puzzled than ever,
18446  I retraced my steps to Kensington.
18447  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
18448  To my astonishment it was none other than my strange old book collector,
18449  his sharp,
18450  wizened face peering out from a frame of white hair,
18451  and his precious volumes,
18452  a dozen of them at least,
18453  wedged under his right arm.
18454 \end_layout
18455
18456 \end_inset
18457
18458
18459 \end_layout
18460
18461 \begin_layout Standard
18462 \begin_inset ERT
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466
18467
18468 \backslash
18469 setlength{
18470 \backslash
18471 columnsep}{10pt}
18472 \end_layout
18473
18474 \end_inset
18475
18476
18477 \begin_inset Note Note
18478 status collapsed
18479
18480 \begin_layout Plain Layout
18481 go back to the default
18482 \end_layout
18483
18484 \end_inset
18485
18486
18487 \end_layout
18488
18489 \begin_layout Paragraph
18490 Vertical Lines
18491 \end_layout
18492
18493 \begin_layout Standard
18494 Between the columns a rule with a width of the length 
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499
18500 \backslash
18501 columnseprule
18502 \end_layout
18503
18504 \end_inset
18505
18506  is placed.
18507  If this rule width is set to 0
18508 \begin_inset space \thinspace{}
18509 \end_inset
18510
18511 pt (this is the default),
18512  the rule is suppressed.
18513  In the following example the rule is 2
18514 \begin_inset space \thinspace{}
18515 \end_inset
18516
18517 pt wide:
18518 \end_layout
18519
18520 \begin_layout Standard
18521 \begin_inset ERT
18522 status open
18523
18524 \begin_layout Plain Layout
18525
18526
18527 \backslash
18528 setlength{
18529 \backslash
18530 columnseprule}{2pt}
18531 \end_layout
18532
18533 \end_inset
18534
18535
18536 \end_layout
18537
18538 \begin_layout Standard
18539 \begin_inset Flex Multiple Columns
18540 status open
18541
18542 \begin_layout Plain Layout
18543
18544 \size small
18545 \begin_inset Quotes eld
18546 \end_inset
18547
18548 You're surprised to see me,
18549  sir,
18550 \begin_inset Quotes erd
18551 \end_inset
18552
18553  said he,
18554  in a strange,
18555  croaking voice.
18556 \end_layout
18557
18558 \begin_layout Plain Layout
18559
18560 \size small
18561 I acknowledged that I was.
18562 \end_layout
18563
18564 \begin_layout Plain Layout
18565
18566 \size small
18567 \begin_inset Quotes eld
18568 \end_inset
18569
18570 Well,
18571  I've a conscience,
18572  sir,
18573  and when I chanced to see you go into this house,
18574  as I came hobbling after you,
18575  I thought to myself,
18576  I'll just step in and see that kind gentleman,
18577  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18578  and that I am much obliged to him for picking up my books.
18579 \begin_inset Quotes erd
18580 \end_inset
18581
18582
18583 \end_layout
18584
18585 \begin_layout Plain Layout
18586
18587 \size small
18588 \begin_inset Quotes eld
18589 \end_inset
18590
18591 You make too much of a trifle,
18592 \begin_inset Quotes erd
18593 \end_inset
18594
18595  said I.
18596  
18597 \begin_inset Quotes eld
18598 \end_inset
18599
18600 May I ask how you knew who I was?
18601 \begin_inset Quotes erd
18602 \end_inset
18603
18604
18605 \end_layout
18606
18607 \begin_layout Plain Layout
18608
18609 \size small
18610 \begin_inset Quotes eld
18611 \end_inset
18612
18613 Well,
18614  sir,
18615  if it isn't too great a liberty,
18616  I am a neighbour of yours,
18617  for you'll find my little bookshop at the corner of Church Street,
18618  and very happy to see you,
18619  I am sure.
18620  Maybe you collect yourself,
18621  sir.
18622  Here's 
18623 \noun on
18624 British
18625 \begin_inset space ~
18626 \end_inset
18627
18628 Birds
18629 \noun default
18630 ,
18631  and 
18632 \noun on
18633 Catullus
18634 \noun default
18635 ,
18636  and 
18637 \noun on
18638 The Holy War
18639 \noun default
18640
18641 \begin_inset space ~
18642 \end_inset
18643
18644 – a bargain,
18645  every one of them.
18646  With five volumes you could just fill that gap on that second shelf.
18647  It looks untidy,
18648  does it not,
18649  sir?
18650 \begin_inset Quotes erd
18651 \end_inset
18652
18653
18654 \end_layout
18655
18656 \end_inset
18657
18658
18659 \end_layout
18660
18661 \begin_layout Standard
18662 \begin_inset VSpace defskip
18663 \end_inset
18664
18665
18666 \end_layout
18667
18668 \begin_layout Standard
18669 The rule can be colored by redefining the command 
18670 \begin_inset Flex Code
18671 status collapsed
18672
18673 \begin_layout Plain Layout
18674
18675 \backslash
18676 columnseprulecolor
18677 \end_layout
18678
18679 \end_inset
18680
18681 .
18682  This is done by inserting the command
18683 \end_layout
18684
18685 \begin_layout LyX-Code
18686
18687 \backslash
18688 renewcommand{
18689 \backslash
18690 columnseprulecolor}{
18691 \backslash
18692 color{red}}
18693 \end_layout
18694
18695 \begin_layout Standard
18696 as \SpecialChar TeX
18697  Code before the multicolumn inset.
18698  Replace 
18699 \begin_inset Flex Code
18700 status collapsed
18701
18702 \begin_layout Plain Layout
18703 red
18704 \end_layout
18705
18706 \end_inset
18707
18708  in this command by a color of your choice.
18709  You can use all pre- and self-defined colors.
18710  See the 
18711 \emph on
18712 EmbeddedObjects
18713 \emph default
18714  manual,
18715  section 
18716 \emph on
18717 Colored
18718 \begin_inset space ~
18719 \end_inset
18720
18721 Tables
18722 \emph default
18723  for more information about pre- and self-defined colors.
18724  To go back to the default color insert the command
18725 \end_layout
18726
18727 \begin_layout LyX-Code
18728
18729 \backslash
18730 renewcommand{
18731 \backslash
18732 columnseprulecolor}{
18733 \backslash
18734 normalcolor}
18735 \end_layout
18736
18737 \begin_layout Standard
18738 Here is the example with a cyan rule and 1
18739 \begin_inset space \thinspace{}
18740 \end_inset
18741
18742 cm column separation:
18743 \end_layout
18744
18745 \begin_layout Standard
18746 \begin_inset ERT
18747 status open
18748
18749 \begin_layout Plain Layout
18750
18751
18752 \backslash
18753 setlength{
18754 \backslash
18755 columnsep}{1cm}
18756 \end_layout
18757
18758 \begin_layout Plain Layout
18759
18760
18761 \backslash
18762 renewcommand{
18763 \backslash
18764 columnseprulecolor}{
18765 \backslash
18766 color{cyan}}
18767 \end_layout
18768
18769 \end_inset
18770
18771
18772 \end_layout
18773
18774 \begin_layout Standard
18775 \begin_inset Flex Multiple Columns
18776 status open
18777
18778 \begin_layout Plain Layout
18779
18780 \size small
18781 \begin_inset Quotes eld
18782 \end_inset
18783
18784 You're surprised to see me,
18785  sir,
18786 \begin_inset Quotes erd
18787 \end_inset
18788
18789  said he,
18790  in a strange,
18791  croaking voice.
18792 \end_layout
18793
18794 \begin_layout Plain Layout
18795
18796 \size small
18797 I acknowledged that I was.
18798 \end_layout
18799
18800 \begin_layout Plain Layout
18801
18802 \size small
18803 \begin_inset Quotes eld
18804 \end_inset
18805
18806 Well,
18807  I've a conscience,
18808  sir,
18809  and when I chanced to see you go into this house,
18810  as I came hobbling after you,
18811  I thought to myself,
18812  I'll just step in and see that kind gentleman,
18813  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18814  and that I am much obliged to him for picking up my books.
18815 \begin_inset Quotes erd
18816 \end_inset
18817
18818
18819 \end_layout
18820
18821 \begin_layout Plain Layout
18822
18823 \size small
18824 \begin_inset Quotes eld
18825 \end_inset
18826
18827 You make too much of a trifle,
18828 \begin_inset Quotes erd
18829 \end_inset
18830
18831  said I.
18832  
18833 \begin_inset Quotes eld
18834 \end_inset
18835
18836 May I ask how you knew who I was?
18837 \begin_inset Quotes erd
18838 \end_inset
18839
18840
18841 \end_layout
18842
18843 \begin_layout Plain Layout
18844
18845 \size small
18846 \begin_inset Quotes eld
18847 \end_inset
18848
18849 Well,
18850  sir,
18851  if it isn't too great a liberty,
18852  I am a neighbour of yours,
18853  for you'll find my little bookshop at the corner of Church Street,
18854  and very happy to see you,
18855  I am sure.
18856  Maybe you collect yourself,
18857  sir.
18858  Here's 
18859 \noun on
18860 British
18861 \begin_inset space ~
18862 \end_inset
18863
18864 Birds
18865 \noun default
18866 ,
18867  and 
18868 \noun on
18869 Catullus
18870 \noun default
18871 ,
18872  and 
18873 \noun on
18874 The Holy War
18875 \noun default
18876
18877 \begin_inset space ~
18878 \end_inset
18879
18880 – a bargain,
18881  every one of them.
18882  With five volumes you could just fill that gap on that second shelf.
18883  It looks untidy,
18884  does it not,
18885  sir?
18886 \begin_inset Quotes erd
18887 \end_inset
18888
18889
18890 \end_layout
18891
18892 \end_inset
18893
18894
18895 \end_layout
18896
18897 \begin_layout Standard
18898 \begin_inset ERT
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902
18903
18904 \backslash
18905 setlength{
18906 \backslash
18907 columnseprule}{0pt}
18908 \end_layout
18909
18910 \begin_layout Plain Layout
18911
18912
18913 \backslash
18914 renewcommand{
18915 \backslash
18916 columnseprulecolor}{
18917 \backslash
18918 normalcolor}
18919 \end_layout
18920
18921 \end_inset
18922
18923
18924 \begin_inset Note Note
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 go back to the default
18929 \end_layout
18930
18931 \end_inset
18932
18933
18934 \end_layout
18935
18936 \begin_layout Section
18937 Paragraph Styles
18938 \end_layout
18939
18940 \begin_layout Subsection
18941 Custom Paragraph Shapes
18942 \end_layout
18943
18944 \begin_layout Standard
18945 \noindent
18946 \SpecialChar LaTeX
18947  as well as any other text processor uses by default rectangular paragraphs.
18948  For special cases like for example posters,
18949  invitation cards or poems you can modify the paragraph shape to one of your choice.
18950  This module uses the 
18951 \family sans
18952 shapepar
18953 \family default
18954  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
18955 \end_layout
18956
18957 \begin_layout Subsubsection
18958 Predefined shapes
18959 \end_layout
18960
18961 \begin_layout Standard
18962
18963 \family sans
18964 The shapepar
18965 \family default
18966  package provides the following shapes:
18967 \end_layout
18968
18969 \begin_layout Standard
18970 \begin_inset Tabular
18971 <lyxtabular version="3" rows="13" columns="3">
18972 <features booktabs="true" islongtable="true" longtabularalignment="center">
18973 <column alignment="left" valignment="middle" width="16col%">
18974 <column alignment="left" valignment="middle" width="40col%">
18975 <column alignment="left" valignment="middle" width="35col%">
18976 <row endhead="true">
18977 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18978 \begin_inset Text
18979
18980 \begin_layout Plain Layout
18981
18982 \series bold
18983 \size small
18984 Name
18985 \end_layout
18986
18987 \end_inset
18988 </cell>
18989 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18990 \begin_inset Text
18991
18992 \begin_layout Plain Layout
18993
18994 \series bold
18995 \size small
18996 Description
18997 \end_layout
18998
18999 \end_inset
19000 </cell>
19001 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19002 \begin_inset Text
19003
19004 \begin_layout Plain Layout
19005
19006 \series bold
19007 \size small
19008 Annotation
19009 \end_layout
19010
19011 \end_inset
19012 </cell>
19013 </row>
19014 <row interlinespace="default">
19015 <cell alignment="left" valignment="top" usebox="none">
19016 \begin_inset Text
19017
19018 \begin_layout Plain Layout
19019
19020 \size small
19021 CDlabel
19022 \end_layout
19023
19024 \end_inset
19025 </cell>
19026 <cell alignment="left" valignment="top" usebox="none">
19027 \begin_inset Text
19028
19029 \begin_layout Plain Layout
19030
19031 \size small
19032 Circle with circular hole (in the size of a CD/DVD)
19033 \end_layout
19034
19035 \end_inset
19036 </cell>
19037 <cell alignment="left" valignment="top" usebox="none">
19038 \begin_inset Text
19039
19040 \begin_layout Plain Layout
19041
19042 \size small
19043 Cannot be scaled,
19044  take care there is not too much text
19045 \end_layout
19046
19047 \end_inset
19048 </cell>
19049 </row>
19050 <row interlinespace="default">
19051 <cell alignment="left" valignment="top" usebox="none">
19052 \begin_inset Text
19053
19054 \begin_layout Plain Layout
19055
19056 \size small
19057 Circle
19058 \end_layout
19059
19060 \end_inset
19061 </cell>
19062 <cell alignment="left" valignment="top" usebox="none">
19063 \begin_inset Text
19064
19065 \begin_layout Plain Layout
19066
19067 \size small
19068 Circle
19069 \end_layout
19070
19071 \end_inset
19072 </cell>
19073 <cell alignment="left" valignment="top" usebox="none">
19074 \begin_inset Text
19075
19076 \begin_layout Plain Layout
19077
19078 \size small
19079 Fragile,
19080  calculation might fail
19081 \end_layout
19082
19083 \end_inset
19084 </cell>
19085 </row>
19086 <row interlinespace="default">
19087 <cell alignment="left" valignment="top" usebox="none">
19088 \begin_inset Text
19089
19090 \begin_layout Plain Layout
19091
19092 \size small
19093 Diamond
19094 \end_layout
19095
19096 \end_inset
19097 </cell>
19098 <cell alignment="left" valignment="top" usebox="none">
19099 \begin_inset Text
19100
19101 \begin_layout Plain Layout
19102
19103 \size small
19104 Rhomboid (symbolizing a 
19105 \begin_inset Quotes eld
19106 \end_inset
19107
19108 diamond
19109 \begin_inset Quotes erd
19110 \end_inset
19111
19112 )
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 -
19124 \end_layout
19125
19126 \end_inset
19127 </cell>
19128 </row>
19129 <row interlinespace="default">
19130 <cell alignment="left" valignment="top" usebox="none">
19131 \begin_inset Text
19132
19133 \begin_layout Plain Layout
19134
19135 \size small
19136 Heart
19137 \end_layout
19138
19139 \end_inset
19140 </cell>
19141 <cell alignment="left" valignment="top" usebox="none">
19142 \begin_inset Text
19143
19144 \begin_layout Plain Layout
19145
19146 \size small
19147 Heart-like shape
19148 \end_layout
19149
19150 \end_inset
19151 </cell>
19152 <cell alignment="left" valignment="top" usebox="none">
19153 \begin_inset Text
19154
19155 \begin_layout Plain Layout
19156
19157 \size small
19158 -
19159 \end_layout
19160
19161 \end_inset
19162 </cell>
19163 </row>
19164 <row interlinespace="default">
19165 <cell alignment="left" valignment="top" usebox="none">
19166 \begin_inset Text
19167
19168 \begin_layout Plain Layout
19169
19170 \size small
19171 Hexagon
19172 \end_layout
19173
19174 \end_inset
19175 </cell>
19176 <cell alignment="left" valignment="top" usebox="none">
19177 \begin_inset Text
19178
19179 \begin_layout Plain Layout
19180
19181 \size small
19182 Hexagon
19183 \end_layout
19184
19185 \end_inset
19186 </cell>
19187 <cell alignment="left" valignment="top" usebox="none">
19188 \begin_inset Text
19189
19190 \begin_layout Plain Layout
19191
19192 \size small
19193 -
19194 \end_layout
19195
19196 \end_inset
19197 </cell>
19198 </row>
19199 <row interlinespace="default">
19200 <cell alignment="left" valignment="top" usebox="none">
19201 \begin_inset Text
19202
19203 \begin_layout Plain Layout
19204
19205 \size small
19206 Nut
19207 \end_layout
19208
19209 \end_inset
19210 </cell>
19211 <cell alignment="left" valignment="top" usebox="none">
19212 \begin_inset Text
19213
19214 \begin_layout Plain Layout
19215
19216 \size small
19217 Nut for bolt (hexagon with circular hole)
19218 \end_layout
19219
19220 \end_inset
19221 </cell>
19222 <cell alignment="left" valignment="top" usebox="none">
19223 \begin_inset Text
19224
19225 \begin_layout Plain Layout
19226
19227 \size small
19228 -
19229 \end_layout
19230
19231 \end_inset
19232 </cell>
19233 </row>
19234 <row interlinespace="default">
19235 <cell alignment="left" valignment="top" usebox="none">
19236 \begin_inset Text
19237
19238 \begin_layout Plain Layout
19239
19240 \size small
19241 Square
19242 \end_layout
19243
19244 \end_inset
19245 </cell>
19246 <cell alignment="left" valignment="top" usebox="none">
19247 \begin_inset Text
19248
19249 \begin_layout Plain Layout
19250
19251 \size small
19252 Square
19253 \end_layout
19254
19255 \end_inset
19256 </cell>
19257 <cell alignment="left" valignment="top" usebox="none">
19258 \begin_inset Text
19259
19260 \begin_layout Plain Layout
19261
19262 \size small
19263 -
19264 \end_layout
19265
19266 \end_inset
19267 </cell>
19268 </row>
19269 <row interlinespace="default">
19270 <cell alignment="left" valignment="top" usebox="none">
19271 \begin_inset Text
19272
19273 \begin_layout Plain Layout
19274
19275 \size small
19276 Star
19277 \end_layout
19278
19279 \end_inset
19280 </cell>
19281 <cell alignment="left" valignment="top" usebox="none">
19282 \begin_inset Text
19283
19284 \begin_layout Plain Layout
19285
19286 \size small
19287 Five-point star
19288 \end_layout
19289
19290 \end_inset
19291 </cell>
19292 <cell alignment="left" valignment="top" usebox="none">
19293 \begin_inset Text
19294
19295 \begin_layout Plain Layout
19296
19297 \size small
19298 -
19299 \end_layout
19300
19301 \end_inset
19302 </cell>
19303 </row>
19304 <row interlinespace="default">
19305 <cell alignment="left" valignment="top" usebox="none">
19306 \begin_inset Text
19307
19308 \begin_layout Plain Layout
19309
19310 \size small
19311 Candle
19312 \end_layout
19313
19314 \end_inset
19315 </cell>
19316 <cell alignment="left" valignment="top" usebox="none">
19317 \begin_inset Text
19318
19319 \begin_layout Plain Layout
19320
19321 \size small
19322 Burning candle
19323 \end_layout
19324
19325 \end_inset
19326 </cell>
19327 <cell alignment="left" valignment="top" usebox="none">
19328 \begin_inset Text
19329
19330 \begin_layout Plain Layout
19331
19332 \size small
19333 -
19334 \end_layout
19335
19336 \end_inset
19337 </cell>
19338 </row>
19339 <row interlinespace="default">
19340 <cell alignment="left" valignment="top" usebox="none">
19341 \begin_inset Text
19342
19343 \begin_layout Plain Layout
19344
19345 \size small
19346 Drop down/up
19347 \end_layout
19348
19349 \end_inset
19350 </cell>
19351 <cell alignment="left" valignment="top" usebox="none">
19352 \begin_inset Text
19353
19354 \begin_layout Plain Layout
19355
19356 \size small
19357 Normal/reversed rain drop
19358 \end_layout
19359
19360 \end_inset
19361 </cell>
19362 <cell alignment="left" valignment="top" usebox="none">
19363 \begin_inset Text
19364
19365 \begin_layout Plain Layout
19366
19367 \size small
19368 Fragile,
19369  calculation might fail
19370 \end_layout
19371
19372 \end_inset
19373 </cell>
19374 </row>
19375 <row interlinespace="default">
19376 <cell alignment="left" valignment="top" usebox="none">
19377 \begin_inset Text
19378
19379 \begin_layout Plain Layout
19380
19381 \size small
19382 \SpecialChar TeX
19383
19384 \end_layout
19385
19386 \end_inset
19387 </cell>
19388 <cell alignment="left" valignment="top" usebox="none">
19389 \begin_inset Text
19390
19391 \begin_layout Plain Layout
19392
19393 \size small
19394 The \SpecialChar TeX
19395  logo
19396 \end_layout
19397
19398 \end_inset
19399 </cell>
19400 <cell alignment="left" valignment="top" usebox="none">
19401 \begin_inset Text
19402
19403 \begin_layout Plain Layout
19404
19405 \size small
19406 -
19407 \end_layout
19408
19409 \end_inset
19410 </cell>
19411 </row>
19412 <row interlinespace="default">
19413 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19414 \begin_inset Text
19415
19416 \begin_layout Plain Layout
19417
19418 \size small
19419 Triangle up/down/
19420 \begin_inset Newline newline
19421 \end_inset
19422
19423 left/right
19424 \end_layout
19425
19426 \end_inset
19427 </cell>
19428 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19429 \begin_inset Text
19430
19431 \begin_layout Plain Layout
19432
19433 \size small
19434 Triangles in different orientations
19435 \end_layout
19436
19437 \end_inset
19438 </cell>
19439 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19440 \begin_inset Text
19441
19442 \begin_layout Plain Layout
19443
19444 \size small
19445 -
19446 \end_layout
19447
19448 \end_inset
19449 </cell>
19450 </row>
19451 </lyxtabular>
19452
19453 \end_inset
19454
19455
19456 \end_layout
19457
19458 \begin_layout Standard
19459 To use a shape for your paragraph,
19460  simply select it in \SpecialChar LyX
19461 's pull-down box for environments in the toolbar.
19462 \end_layout
19463
19464 \begin_layout Standard
19465 \begin_inset Newpage newpage
19466 \end_inset
19467
19468
19469 \end_layout
19470
19471 \begin_layout Standard
19472 Here is an example paragraph in the shape of a nut:
19473 \end_layout
19474
19475 \begin_layout Standard
19476 \begin_inset VSpace bigskip
19477 \end_inset
19478
19479
19480 \end_layout
19481
19482 \begin_layout Nut
19483
19484 \lang latin
19485 Lorem ipsum dolor sit amet,
19486  consetetur sadipscing elitr,
19487  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19488  sed diam voluptua.
19489  At vero eos et accusam et justo duo dolores et ea rebum.
19490  Stet clita kasd gubergren,
19491  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19492  Lorem ipsum dolor sit amet,
19493  consetetur sadipscing elitr,
19494  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19495  sed diam voluptua.
19496 \end_layout
19497
19498 \begin_layout Standard
19499 \begin_inset VSpace bigskip
19500 \end_inset
19501
19502
19503 \end_layout
19504
19505 \begin_layout Standard
19506 \begin_inset Note Greyedout
19507 status open
19508
19509 \begin_layout Plain Layout
19510
19511 \series bold
19512 Note
19513 \series default
19514 :
19515  
19516 \family sans
19517 shapepar
19518 \family default
19519  paragraphs cannot run over a page break.
19520 \end_layout
19521
19522 \end_inset
19523
19524
19525 \end_layout
19526
19527 \begin_layout Standard
19528 \begin_inset VSpace bigskip
19529 \end_inset
19530
19531
19532 \end_layout
19533
19534 \begin_layout Standard
19535 The package 
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540 shapepar
19541 \end_layout
19542
19543 \end_inset
19544
19545  takes care that the shape will always be preserved,
19546  no matter how much text is in the paragraph.
19547  Therefore the paragraph size changes with the amount of contained text.
19548  This can lead to paragraph sizes exceeding the page margins.
19549  To demonstrate the size scaling,
19550  here is the same example paragraph but with twice as much text:
19551 \end_layout
19552
19553 \begin_layout Standard
19554 \begin_inset Newpage newpage
19555 \end_inset
19556
19557
19558 \end_layout
19559
19560 \begin_layout Nut
19561
19562 \lang latin
19563 Lorem ipsum dolor sit amet,
19564  consetetur sadipscing elitr,
19565  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19566  sed diam voluptua.
19567  At vero eos et accusam et justo duo dolores et ea rebum.
19568  Stet clita kasd gubergren,
19569  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19570  Lorem ipsum dolor sit amet,
19571  consetetur sadipscing elitr,
19572  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19573  sed diam voluptua.
19574  Lorem ipsum dolor sit amet,
19575  consetetur sadipscing elitr,
19576  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19577  sed diam voluptua.
19578  At vero eos et accusam et justo duo dolores et ea rebum.
19579  Stet clita kasd gubergren,
19580  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19581  Lorem ipsum dolor sit amet,
19582  consetetur sadipscing elitr,
19583  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19584  sed diam voluptua.
19585 \end_layout
19586
19587 \begin_layout Standard
19588 \begin_inset VSpace bigskip
19589 \end_inset
19590
19591
19592 \end_layout
19593
19594 \begin_layout Standard
19595 An exception is the shape 
19596 \family sans
19597 CDlabel
19598 \family default
19599 .
19600  It cannot be scaled because it must fit the size of a CD/DVD.
19601  Therefore the amount of text that fits into the shape is limited.
19602 \end_layout
19603
19604 \begin_layout Standard
19605 The 
19606 \family sans
19607 drop
19608 \family default
19609  shapes and the 
19610 \family sans
19611 circle
19612 \family default
19613  shape are fragile,
19614  meaning that the calculation of their size can fail,
19615  depending on the amount of text.
19616  You will then get the \SpecialChar LaTeX
19617  error 
19618 \begin_inset Quotes eld
19619 \end_inset
19620
19621 Arithmetic overflow
19622 \begin_inset Quotes erd
19623 \end_inset
19624
19625 .
19626  In this case one can try to remove or add some text;
19627  if nothing works one has to use another shape.
19628 \end_layout
19629
19630 \begin_layout Standard
19631 For shapes with tips you will maybe see that \SpecialChar LaTeX
19632 's hyphenation routine fails for text in the tips.
19633  Therefore it is often necessary to add hyphenation points 
19634 \family sans
19635 (
19636 \begin_inset Info
19637 type  "shortcut"
19638 arg   "specialchar-insert hyphenation"
19639 \end_inset
19640
19641
19642 \family default
19643 ) to the corresponding text parts.
19644 \end_layout
19645
19646 \begin_layout Standard
19647 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
19648  You can therefore not use the paragraph dialog to align such paragraphs.
19649  A solution is to put the paragraph into a minipage or parbox and align the box.
19650  The problem is hereby to find the right width for the box.
19651  Because if it is too wide and you center the box,
19652  the paragraph is not centered too because it sticks at the left side of the box.
19653  So you might have to play a bit with the width until it fits.
19654  Here are two heart-shaped paragraphs,
19655  the first one is not aligned,
19656  the second one is right-aligned:
19657 \end_layout
19658
19659 \begin_layout Standard
19660 \begin_inset Newpage newpage
19661 \end_inset
19662
19663
19664 \end_layout
19665
19666 \begin_layout Heart
19667 \noindent
19668
19669 \lang latin
19670 Lo\SpecialChar softhyphen
19671 rem ipsum dolor sit amet,
19672  consetetur sadipscing elitr,
19673  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19674  sed diam voluptua.
19675  At vero eos et accusam et justo duo dolores et ea rebum.
19676  Stet clita kasd gubergren,
19677  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19678 \end_layout
19679
19680 \begin_layout Standard
19681 \begin_inset VSpace bigskip
19682 \end_inset
19683
19684
19685 \end_layout
19686
19687 \begin_layout Standard
19688 \noindent
19689 \align right
19690 \begin_inset Box Frameless
19691 position "t"
19692 hor_pos "c"
19693 has_inner_box 1
19694 inner_pos "t"
19695 use_parbox 1
19696 use_makebox 0
19697 width "42col%"
19698 special "none"
19699 height "1in"
19700 height_special "totalheight"
19701 thickness "0.4pt"
19702 separation "3pt"
19703 shadowsize "4pt"
19704 framecolor "black"
19705 backgroundcolor "none"
19706 status open
19707
19708 \begin_layout Heart
19709 \noindent
19710
19711 \lang latin
19712 Lo\SpecialChar softhyphen
19713 rem ipsum dolor sit amet,
19714  consetetur sadipscing elitr,
19715  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19716  sed diam voluptua.
19717  At vero eos et accusam et justo duo dolores et ea rebum.
19718  Stet clita kasd gubergren,
19719  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19720 \end_layout
19721
19722 \end_inset
19723
19724
19725 \end_layout
19726
19727 \begin_layout Subsubsection
19728 Custom shapes
19729 \end_layout
19730
19731 \begin_layout Standard
19732 You can define any shape you want.
19733  Doing this manually is a lot of work because every coordinate must be specified.
19734  But there is a way to let the computer calculate the coordinates:
19735 \end_layout
19736
19737 \begin_layout Enumerate
19738 Install the program 
19739 \begin_inset CommandInset href
19740 LatexCommand href
19741 name "Jpgfdraw"
19742 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
19743 literal "false"
19744
19745 \end_inset
19746
19747 .
19748 \end_layout
19749
19750 \begin_layout Enumerate
19751 In 
19752 \family sans
19753 Jpgfdraw
19754 \family default
19755  go to the menu 
19756 \family sans
19757 TeX/LaTeX\SpecialChar menuseparator
19758 Settings\SpecialChar menuseparator
19759 Set Normal Size
19760 \family default
19761  and select the font size you are using in your document.
19762  For example this document uses the size 12
19763 \begin_inset space \thinspace{}
19764 \end_inset
19765
19766 pt.
19767 \end_layout
19768
19769 \begin_layout Enumerate
19770 Draw a shape.
19771 \end_layout
19772
19773 \begin_layout Enumerate
19774 Use the menu 
19775 \family sans
19776 TeX/LaTeX\SpecialChar menuseparator
19777 Shapepar
19778 \family default
19779  to export the shape to coordinates.
19780  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
19781 \begin_inset Foot
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 For more information see 
19786 \begin_inset CommandInset href
19787 LatexCommand href
19788 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
19789 literal "false"
19790
19791 \end_inset
19792
19793
19794 \end_layout
19795
19796 \end_inset
19797
19798
19799 \end_layout
19800
19801 \begin_layout Standard
19802 The coordinates are written into a \SpecialChar TeX
19803  file.
19804  To use it for your \SpecialChar LyX
19805  document
19806 \end_layout
19807
19808 \begin_layout Enumerate
19809 Place the cursor before the first character of your paragraph (or into a new empty one).
19810 \end_layout
19811
19812 \begin_layout Enumerate
19813 Open in \SpecialChar LyX
19814  the menu 
19815 \family sans
19816 Insert\SpecialChar menuseparator
19817 File\SpecialChar menuseparator
19818 Child
19819 \begin_inset space ~
19820 \end_inset
19821
19822 Document
19823 \family default
19824 ,
19825  select the file and use 
19826 \family sans
19827 Input
19828 \family default
19829  as 
19830 \family sans
19831 Include Type.
19832 \end_layout
19833
19834 \begin_layout Standard
19835 \begin_inset VSpace defskip
19836 \end_inset
19837
19838
19839 \end_layout
19840
19841 \begin_layout Standard
19842 \begin_inset Note Greyedout
19843 status open
19844
19845 \begin_layout Plain Layout
19846
19847 \series bold
19848 Note
19849 \series default
19850 :
19851  The changed shape only applies to the current paragraph;
19852  everything is reset to normal for the next paragraph.
19853  Therefore the shape definition file must be input into every paragraph with the desired shape.
19854 \end_layout
19855
19856 \end_inset
19857
19858
19859 \end_layout
19860
19861 \begin_layout Standard
19862 \begin_inset VSpace bigskip
19863 \end_inset
19864
19865
19866 \end_layout
19867
19868 \begin_layout Standard
19869 Here is an example:
19870 \end_layout
19871
19872 \begin_layout Standard
19873 \begin_inset VSpace bigskip
19874 \end_inset
19875
19876
19877 \end_layout
19878
19879 \begin_layout Standard
19880 \begin_inset CommandInset include
19881 LatexCommand input
19882 filename "SpecialParagraphShape.tex"
19883 literal "true"
19884
19885 \end_inset
19886
19887
19888 \lang latin
19889 Lorem ipsum dolor sit amet,
19890  consetetur sadipscing elitr,
19891  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19892  sed diam voluptua.
19893  At vero eos et accusam et justo duo dolores et ea rebum.
19894  Stet clita kasd gubergren,
19895  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19896  Lorem ipsum dolor sit amet,
19897  consetetur sadipscing elitr,
19898  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19899  sed diam voluptua.
19900 \end_layout
19901
19902 \begin_layout Standard
19903 \begin_inset VSpace bigskip
19904 \end_inset
19905
19906
19907 \end_layout
19908
19909 \begin_layout Standard
19910
19911 \series bold
19912 A tip:
19913
19914 \series default
19915  to draw complexer shapes in 
19916 \family sans
19917 Jpgfdraw
19918 \family default
19919  you can draw the shape in a program of your choice and import the resulting image to 
19920 \family sans
19921 Jpgfdraw
19922 \family default
19923 .
19924  Then you only need to draw a line or spline along the outline of the image.
19925 \end_layout
19926
19927 \begin_layout Standard
19928 The module 
19929 \family sans
19930 Custom paragraph shapes
19931 \family default
19932  also provides the two commands 
19933 \family sans
19934 shapepar
19935 \family default
19936  and 
19937 \family sans
19938 Shapepar
19939 \family default
19940  which can be used to define custom shapes coordinate by coordinate.
19941 \begin_inset Foot
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 These commands are internally used for all shapes described here.
19946 \end_layout
19947
19948 \end_inset
19949
19950  For information how these styles are used and about further customization possibilities,
19951  have a look at the 
19952 \begin_inset CommandInset href
19953 LatexCommand href
19954 name "documentation"
19955 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
19956 literal "false"
19957
19958 \end_inset
19959
19960  of the package 
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 shapepar
19966 \end_layout
19967
19968 \end_inset
19969
19970 .
19971 \end_layout
19972
19973 \begin_layout Subsection
19974 Hanging Paragraphs
19975 \end_layout
19976
19977 \begin_layout Hanging
19978 This module adds the 
19979 \family sans
19980 Hanging
19981 \family default
19982  paragraph style,
19983  that is,
19984  one where all but the first line of the paragraph is indented.
19985  This may not appear in your \SpecialChar LyX
19986  document but will appear in the final output.
19987 \end_layout
19988
19989 \begin_layout Subsection
19990 \begin_inset CommandInset label
19991 LatexCommand label
19992 name "subsec:Initials"
19993
19994 \end_inset
19995
19996 Initials (Drop Caps)
19997 \end_layout
19998
19999 \begin_layout Initial
20000 \begin_inset Argument 2
20001 status open
20002
20003 \begin_layout Plain Layout
20004 T
20005 \end_layout
20006
20007 \end_inset
20008
20009
20010 \begin_inset Argument 3
20011 status open
20012
20013 \begin_layout Plain Layout
20014 his
20015 \end_layout
20016
20017 \end_inset
20018
20019  module adds a drop capitals paragraph style 
20020 \family sans
20021 Initials
20022 \family default
20023  for paragraph environments which you can use wherever you want to have drop capitals.
20024  You then have three more items in the 
20025 \family sans
20026 Insert
20027 \family default
20028  menu:
20029 \end_layout
20030
20031 \begin_layout Itemize
20032
20033 \family sans
20034 Initial
20035 \family default
20036  which creates an inset for the drop capital
20037 \end_layout
20038
20039 \begin_layout Itemize
20040
20041 \family sans
20042 Rest of initial
20043 \family default
20044  which creates an inset for the rest of the word
20045 \end_layout
20046
20047 \begin_layout Itemize
20048
20049 \family sans
20050 Options
20051 \family default
20052  which allow you configure the formatting of the drop capital.
20053 \end_layout
20054
20055 \begin_layout Standard
20056 To customize the appearance of the style,
20057  see 
20058 \family sans
20059 Help\SpecialChar menuseparator
20060 Embedded Objects\SpecialChar menuseparator
20061 Objects Surrounded by Text\SpecialChar menuseparator
20062 Initials
20063 \family default
20064 .
20065 \end_layout
20066
20067 \begin_layout Section
20068 Text Markup
20069 \end_layout
20070
20071 \begin_layout Subsection
20072 Hyphenatable Text Markup (Soul)
20073 \end_layout
20074
20075 \begin_layout Standard
20076 This modul defines text styles to highlight,
20077  space-out,
20078  strike-through,
20079  underline and capitalize/small-cap text by means of the 
20080 \family sans
20081 soul
20082 \family default
20083  package.
20084 \end_layout
20085
20086 \begin_layout Standard
20087 As opposed to the markup provided by the Text Properties dialog,
20088  words marked-up with 
20089 \family sans
20090 soul
20091 \family default
20092  are hyphenated.
20093  See the 
20094 \begin_inset CommandInset href
20095 LatexCommand href
20096 name "soul documentation"
20097 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
20098 literal "false"
20099
20100 \end_inset
20101
20102 .
20103 \end_layout
20104
20105 \begin_layout Subsection
20106 Logical Markup
20107 \end_layout
20108
20109 \begin_layout Standard
20110 This module defines some character styles for logical markup:
20111  
20112 \noun on
20113
20114 \begin_inset Flex Noun
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118
20119 \noun on
20120 noun
20121 \end_layout
20122
20123 \end_inset
20124
20125
20126 \noun default
20127 ,
20128  
20129 \emph on
20130
20131 \begin_inset Flex Emph
20132 status collapsed
20133
20134 \begin_layout Plain Layout
20135
20136 \emph on
20137 emph
20138 \end_layout
20139
20140 \end_inset
20141
20142
20143 \emph default
20144 ,
20145  
20146 \begin_inset Flex Strong
20147 status collapsed
20148
20149 \begin_layout Plain Layout
20150 strong
20151 \end_layout
20152
20153 \end_inset
20154
20155 ,
20156  and 
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161 code
20162 \end_layout
20163
20164 \end_inset
20165
20166  which are accessed via the 
20167 \family sans
20168 \bar under
20169 E
20170 \bar default
20171 dit\SpecialChar menuseparator
20172 Custom
20173 \begin_inset space ~
20174 \end_inset
20175
20176 Text
20177 \begin_inset space ~
20178 \end_inset
20179
20180
20181 \bar under
20182 S
20183 \bar default
20184 tyles
20185 \family default
20186  menu.
20187 \end_layout
20188
20189 \begin_layout Chapter
20190 Bibliography
20191 \end_layout
20192
20193 \begin_layout Standard
20194 The most basic information about how to use Bib\SpecialChar TeX
20195  or 
20196 \family sans
20197 Biblatex
20198 \family default
20199  with \SpecialChar LyX
20200  is contained in the section 
20201 \emph on
20202 Bibliography databases
20203 \emph default
20204  of the 
20205 \emph on
20206 User's Guide
20207 \emph default
20208 .
20209  The following subsections explain special bibliography features supported by \SpecialChar LyX
20210 .
20211 \end_layout
20212
20213 \begin_layout Section
20214 Alternative Citation Styles
20215 \end_layout
20216
20217 \begin_layout Standard
20218 Standard Bib\SpecialChar TeX
20219  uses numbers (e.
20220 \begin_inset space \thinspace{}
20221 \end_inset
20222
20223 g.
20224 \begin_inset space \space{}
20225 \end_inset
20226
20227
20228 \begin_inset Quotes eld
20229 \end_inset
20230
20231 [12]
20232 \begin_inset Quotes erd
20233 \end_inset
20234
20235 ) to refer to a cited work.
20236  However,
20237  in many scientific disciplines,
20238  other citation styles are in use.
20239  The most common one is the author-year style (e.
20240 \begin_inset space \thinspace{}
20241 \end_inset
20242
20243 g.
20244 \begin_inset space \space{}
20245 \end_inset
20246
20247
20248 \begin_inset Quotes eld
20249 \end_inset
20250
20251 Knuth 1984a
20252 \begin_inset Quotes erd
20253 \end_inset
20254
20255 ).
20256  \SpecialChar LyX
20257  supports three packages that provide this style,
20258  
20259 \begin_inset Flex Code
20260 status collapsed
20261
20262 \begin_layout Plain Layout
20263 biblatex
20264 \end_layout
20265
20266 \end_inset
20267
20268 ,
20269  
20270 \begin_inset Flex Code
20271 status collapsed
20272
20273 \begin_layout Plain Layout
20274 natbib
20275 \end_layout
20276
20277 \end_inset
20278
20279 ,
20280  and 
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 jurabib
20286 \end_layout
20287
20288 \end_inset
20289
20290 .
20291  Each of these packages has their pros and cons,
20292  which cannot be listed in detail.
20293  If you only want to have simple author-year (or author-numerical) style,
20294  or if you want to use one of the countless style files for 
20295 \begin_inset Flex Code
20296 status collapsed
20297
20298 \begin_layout Plain Layout
20299 natbib
20300 \end_layout
20301
20302 \end_inset
20303
20304 ,
20305  then the established 
20306 \begin_inset Flex Code
20307 status collapsed
20308
20309 \begin_layout Plain Layout
20310 natbib
20311 \end_layout
20312
20313 \end_inset
20314
20315  package is probably your choice.
20316  If you look for specific citation styles common in law studies,
20317  you might consider the 
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 jurabib
20323 \end_layout
20324
20325 \end_inset
20326
20327  package.
20328  If you want to have full control over the formatting or look for advanced features such as ibidem,
20329  footnote citations,
20330  full title citations,
20331  advanced date formats (such as 400 BC) or full localization to other languages than English,
20332  you should definitely consider 
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 biblatex
20338 \end_layout
20339
20340 \end_inset
20341
20342 ,
20343  which exceeds all other packages in terms of features,
20344  but is also quite heavy and more resource-hungry.
20345 \end_layout
20346
20347 \begin_layout Standard
20348 The handling of these packages in \SpecialChar LyX
20349  is basically the same.
20350  Go to 
20351 \family sans
20352 Document\SpecialChar menuseparator
20353 Settings
20354 \family default
20355  and select under 
20356 \family sans
20357 Bibliography
20358 \family default
20359  the 
20360 \family sans
20361 Style Format
20362 \family default
20363  
20364 \family sans
20365 Basic (BibTeX)
20366 \family default
20367 ,
20368  
20369 \family sans
20370 Biblatex
20371 \family default
20372 ,
20373  
20374 \family sans
20375 Biblatex (Natbib mode)
20376 \family default
20377 ,
20378  
20379 \family sans
20380 Natbib (BibTeX)
20381 \family default
20382  or 
20383 \family sans
20384 Jurabib (BibTeX)
20385 \family default
20386  (see sec.
20387 \begin_inset space ~
20388 \end_inset
20389
20390 6.5.3 in the User's Guide for more information on these choices).
20391  With all these packages,
20392  you will get some extra features in the citation dialog and you can select the style of the reference (
20393 \begin_inset Quotes eld
20394 \end_inset
20395
20396 Knuth 1984
20397 \begin_inset Quotes erd
20398 \end_inset
20399
20400 ,
20401  
20402 \begin_inset Quotes eld
20403 \end_inset
20404
20405 Knuth (1984)
20406 \begin_inset Quotes erd
20407 \end_inset
20408
20409 ,
20410  
20411 \begin_inset Quotes eld
20412 \end_inset
20413
20414 Knuth,
20415  1984
20416 \begin_inset Quotes erd
20417 \end_inset
20418
20419 ,
20420  
20421 \begin_inset Quotes eld
20422 \end_inset
20423
20424 1984
20425 \begin_inset Quotes erd
20426 \end_inset
20427
20428  etc.).
20429  Note that either package needs specifically designed style files.
20430  They all ship their own,
20431  but there are lots of additional style files,
20432  and there is even an interactive style file builder
20433 \begin_inset Foot
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 See 
20438 \begin_inset Flex URL
20439 status open
20440
20441 \begin_layout Plain Layout
20442
20443 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
20444 \end_layout
20445
20446 \end_inset
20447
20448
20449 \end_layout
20450
20451 \end_inset
20452
20453  for 
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 natbib
20459 \end_layout
20460
20461 \end_inset
20462
20463 .
20464 \end_layout
20465
20466 \begin_layout Section
20467 Subdivided Bibliographies
20468 \end_layout
20469
20470 \begin_layout Standard
20471 Sometimes you might need to divide your bibliography into several sections.
20472  If you are for instance a historian,
20473  the possibility to separate sources and scientific works is most likely a 
20474 \begin_inset Quotes eld
20475 \end_inset
20476
20477 must have
20478 \begin_inset Quotes erd
20479 \end_inset
20480
20481 .
20482  Unfortunately,
20483  Bib\SpecialChar TeX
20484  itself does not allow you to do this.
20485  But with the help of some \SpecialChar LaTeX
20486  packages,
20487  Bib\SpecialChar TeX
20488  can be extended to fit your needs.
20489 \end_layout
20490
20491 \begin_layout Standard
20492 \SpecialChar LyX
20493  provides native support for one of these packages,
20494  
20495 \family typewriter
20496 bibtopic
20497 \family default
20498 .
20499 \begin_inset Foot
20500 status collapsed
20501
20502 \begin_layout Plain Layout
20503 Available from 
20504 \begin_inset Flex URL
20505 status open
20506
20507 \begin_layout Plain Layout
20508
20509 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
20510 \end_layout
20511
20512 \end_inset
20513
20514
20515 \end_layout
20516
20517 \end_inset
20518
20519  The advantage of this package (compared to other packages such as 
20520 \family typewriter
20521 multibib
20522 \family default
20523 ) is that you don't need to define new citation commands.
20524  Instead,
20525  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
20526  For example:
20527  If you want to divide your bibliography into the sections 
20528 \begin_inset Quotes eld
20529 \end_inset
20530
20531 Sources
20532 \begin_inset Quotes erd
20533 \end_inset
20534
20535  and 
20536 \begin_inset Quotes eld
20537 \end_inset
20538
20539 Scientific works
20540 \begin_inset Quotes erd
20541 \end_inset
20542
20543 ,
20544  you first need to create two bibliographic databases,
20545  e.
20546 \begin_inset space \thinspace{}
20547 \end_inset
20548
20549 g.
20550 \begin_inset space \space{}
20551 \end_inset
20552
20553
20554 \begin_inset Flex Code
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558 sources.bib
20559 \end_layout
20560
20561 \end_inset
20562
20563  and 
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 scientific.bib
20569 \end_layout
20570
20571 \end_inset
20572
20573 .
20574  
20575 \end_layout
20576
20577 \begin_layout Standard
20578 Go to 
20579 \family sans
20580 Document\SpecialChar menuseparator
20581 Settings
20582 \family default
20583  and check under 
20584 \family sans
20585 Bibliography
20586 \family default
20587  the option 
20588 \family sans
20589 Subdivided bibliography
20590 \family default
20591 .
20592  Now you can insert multiple Bib\SpecialChar TeX
20593  bibliographies,
20594  one for each section of your bibliography.
20595  Returning to our example:
20596  Insert the Bib\SpecialChar TeX
20597  bibliography 
20598 \begin_inset Flex Code
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602 sources.bib
20603 \end_layout
20604
20605 \end_inset
20606
20607  and a second one for the database 
20608 \begin_inset Flex Code
20609 status collapsed
20610
20611 \begin_layout Plain Layout
20612 scientific.bib
20613 \end_layout
20614
20615 \end_inset
20616
20617 .
20618  You are free to use the same or different styles for each section.
20619  Additionally,
20620  you can choose if the bibliography section should contain 
20621 \begin_inset Quotes eld
20622 \end_inset
20623
20624 all cited references
20625 \begin_inset Quotes erd
20626 \end_inset
20627
20628  of the specified database(s) (which is the default),
20629  
20630 \begin_inset Quotes eld
20631 \end_inset
20632
20633 all uncited references
20634 \begin_inset Quotes erd
20635 \end_inset
20636
20637  or even 
20638 \begin_inset Quotes eld
20639 \end_inset
20640
20641 all references
20642 \begin_inset Quotes erd
20643 \end_inset
20644
20645 .
20646  This might be useful if you would like to separate your bibliography into three sections:
20647  
20648 \begin_inset Quotes eld
20649 \end_inset
20650
20651 Cited sources
20652 \begin_inset Quotes erd
20653 \end_inset
20654
20655 ,
20656  
20657 \begin_inset Quotes eld
20658 \end_inset
20659
20660 Uncited sources
20661 \begin_inset Quotes erd
20662 \end_inset
20663
20664 ,
20665  and 
20666 \begin_inset Quotes eld
20667 \end_inset
20668
20669 Scientific works
20670 \begin_inset Quotes erd
20671 \end_inset
20672
20673 .
20674  The titles for the sections can be added as ordinary sections or subsections.
20675  Since 
20676 \begin_inset Flex Code
20677 status collapsed
20678
20679 \begin_layout Plain Layout
20680 bibtopic
20681 \end_layout
20682
20683 \end_inset
20684
20685  removes the bibliography title,
20686  you have to manually re-add that,
20687  too (as a chapter* or section*,
20688  for instance).
20689 \end_layout
20690
20691 \begin_layout Standard
20692 With 
20693 \family sans
20694 Biblatex
20695 \family default
20696 ,
20697  the procedure is a bit different.
20698  Since 
20699 \family typewriter
20700 bibtopic
20701 \family default
20702  does not work with 
20703 \family sans
20704 Biblatex
20705 \family default
20706 ,
20707  the aforementioned 
20708 \begin_inset Flex Noun
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712 Subdivided bibliography
20713 \end_layout
20714
20715 \end_inset
20716
20717  option is disabled if you use 
20718 \family sans
20719 Biblatex
20720 \family default
20721 .
20722  However,
20723  
20724 \family sans
20725 Biblatex
20726 \family default
20727  provides its own means to generate subdivided bibliographies.
20728  You can either add keywords to bibliography entries via the 
20729 \begin_inset Flex Code
20730 status collapsed
20731
20732 \begin_layout Plain Layout
20733 keywords
20734 \end_layout
20735
20736 \end_inset
20737
20738  entry option and then filter bibliography sections by keyword (by adding 
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 keyword=mykeyword
20744 \end_layout
20745
20746 \end_inset
20747
20748  to the 
20749 \begin_inset Flex Noun
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753 Options
20754 \end_layout
20755
20756 \end_inset
20757
20758  field of the dialog that opens if you left-click on the 
20759 \begin_inset Flex Noun
20760 status collapsed
20761
20762 \begin_layout Plain Layout
20763 Biblatex Generated Bibliography
20764 \end_layout
20765
20766 \end_inset
20767
20768  button),
20769  or you can filter by entry types (such as 
20770 \emph on
20771 book
20772 \emph default
20773  or 
20774 \emph on
20775 article
20776 \emph default
20777 ) by entering e.
20778 \begin_inset space \thinspace{}
20779 \end_inset
20780
20781 g.
20782  
20783 \begin_inset Flex Code
20784 status collapsed
20785
20786 \begin_layout Plain Layout
20787 type=book
20788 \end_layout
20789
20790 \end_inset
20791
20792  or 
20793 \begin_inset Flex Code
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 nottype=collection
20798 \end_layout
20799
20800 \end_inset
20801
20802  to the mentioned 
20803 \begin_inset Flex Noun
20804 status collapsed
20805
20806 \begin_layout Plain Layout
20807 Options
20808 \end_layout
20809
20810 \end_inset
20811
20812  field,
20813  or you can create so-called 
20814 \begin_inset Quotes eld
20815 \end_inset
20816
20817 Bibliography Categories
20818 \begin_inset Quotes erd
20819 \end_inset
20820
20821  to which you can assign individual entries.
20822  Please refer to the Biblatex manual,
20823  section 
20824 \emph on
20825 Subdivided Bibliographies
20826 \emph default
20827 ,
20828  for details.
20829 \end_layout
20830
20831 \begin_layout Section
20832 Multiple Bibliographies
20833 \begin_inset CommandInset label
20834 LatexCommand label
20835 name "subsec:Multiple-Bibliographies"
20836
20837 \end_inset
20838
20839
20840 \end_layout
20841
20842 \begin_layout Standard
20843 Multiple bibliographies,
20844  e.
20845 \begin_inset space \thinspace{}
20846 \end_inset
20847
20848 g.
20849 \begin_inset space \space{}
20850 \end_inset
20851
20852 a bibliography for each part,
20853  chapter,
20854  section,
20855  subsection or child (sub-document) of the document,
20856  are also supported by \SpecialChar LyX
20857 .
20858  In order to enable it,
20859  go to 
20860 \family sans
20861 Document\SpecialChar menuseparator
20862 Settings\SpecialChar menuseparator
20863 Bibliography
20864 \family default
20865  and select the relevant unit (e.
20866 \begin_inset space \thinspace{}
20867 \end_inset
20868
20869 g.,
20870  
20871 \begin_inset Quotes eld
20872 \end_inset
20873
20874 per section
20875 \begin_inset Quotes erd
20876 \end_inset
20877
20878 ) in the 
20879 \begin_inset Flex Noun
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 Multiple Bibliographies
20884 \end_layout
20885
20886 \end_inset
20887
20888  combo box.
20889  Then add a Bib(la)\SpecialChar TeX
20890  bibliography to each unit (e.
20891 \begin_inset space \thinspace{}
20892 \end_inset
20893
20894 g.,
20895  section) of your document.
20896  In the output,
20897  a separate bibliography,
20898  containing only the references done in the current unit is generated.
20899 \end_layout
20900
20901 \begin_layout Standard
20902 If you use Bib\SpecialChar TeX
20903 ,
20904  either the 
20905 \begin_inset Flex Code
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909 chapterbib
20910 \end_layout
20911
20912 \end_inset
20913
20914  or the 
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 bibtopic
20920 \end_layout
20921
20922 \end_inset
20923
20924  package is used to create multiple bibliographies.
20925  The former package is used if you select 
20926 \begin_inset Quotes eld
20927 \end_inset
20928
20929 per child document
20930 \begin_inset Quotes erd
20931 \end_inset
20932
20933  and do 
20934 \emph on
20935 not
20936 \emph default
20937  check 
20938 \begin_inset Flex Noun
20939 status collapsed
20940
20941 \begin_layout Plain Layout
20942 Sectioned Bibliography
20943 \end_layout
20944
20945 \end_inset
20946
20947 .
20948  In all other cases,
20949  
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 bibtopic
20955 \end_layout
20956
20957 \end_inset
20958
20959  is used.
20960 \begin_inset Foot
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 An alternative approach,
20965  if you are willing to use some 
20966 \begin_inset Flex Noun
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 \SpecialChar TeX
20971  Code
20972 \end_layout
20973
20974 \end_inset
20975
20976  (see section
20977 \begin_inset space ~
20978 \end_inset
20979
20980
20981 \begin_inset CommandInset ref
20982 LatexCommand ref
20983 reference "sec:Inserting-TeX-Code"
20984 nolink "false"
20985
20986 \end_inset
20987
20988 ),
20989  is to use the 
20990 \begin_inset Flex Code
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994 bibunits
20995 \end_layout
20996
20997 \end_inset
20998
20999  package.
21000 \end_layout
21001
21002 \end_inset
21003
21004  If 
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 bibtopic
21010 \end_layout
21011
21012 \end_inset
21013
21014  is used,
21015  \SpecialChar LyX
21016  encloses the specified units in 
21017 \begin_inset Flex Code
21018 status collapsed
21019
21020 \begin_layout Plain Layout
21021 bibtopic
21022 \end_layout
21023
21024 \end_inset
21025
21026 's 
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031
21032 \backslash
21033 begin{btUnit}
21034 \end_layout
21035
21036 \end_inset
21037
21038  and 
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043
21044 \backslash
21045 end{btUnit}
21046 \end_layout
21047
21048 \end_inset
21049
21050  in order to create the units.
21051  Note that this approach has some limitations.
21052  First,
21053  every citation reference has to be inside some 
21054 \begin_inset Flex Code
21055 status collapsed
21056
21057 \begin_layout Plain Layout
21058 btUnit
21059 \end_layout
21060
21061 \end_inset
21062
21063 .
21064  So citations outside a defined unit (e.
21065 \begin_inset space \thinspace{}
21066 \end_inset
21067
21068 g.,
21069  before the first section if you use 
21070 \begin_inset Quotes eld
21071 \end_inset
21072
21073 by section
21074 \begin_inset Quotes erd
21075 \end_inset
21076
21077 ) will appear as 
21078 \begin_inset Quotes eld
21079 \end_inset
21080
21081 ???
21082 \begin_inset Quotes erd
21083 \end_inset
21084
21085 .
21086  You can also create your own units by entering 
21087 \begin_inset Flex Code
21088 status collapsed
21089
21090 \begin_layout Plain Layout
21091
21092 \backslash
21093 begin{btUnit}
21094 \end_layout
21095
21096 \end_inset
21097
21098  and 
21099 \begin_inset Flex Code
21100 status collapsed
21101
21102 \begin_layout Plain Layout
21103
21104 \backslash
21105 end{btUnit}
21106 \end_layout
21107
21108 \end_inset
21109
21110  as \SpecialChar TeX
21111  code (for instance to work around the mentioned limitation).
21112  Note,
21113  though,
21114  that 
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 btUnit
21120 \end_layout
21121
21122 \end_inset
21123
21124 s cannot be nested.
21125  A second limitation is that 
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 bibtopic
21131 \end_layout
21132
21133 \end_inset
21134
21135  always processes all references of a bibliography database,
21136  even if they are not cited.
21137  This can result in odd labels (e.
21138 \begin_inset space \thinspace{}
21139 \end_inset
21140
21141 g.
21142  
21143 \begin_inset Quotes eld
21144 \end_inset
21145
21146 Miller 2014b
21147 \begin_inset Quotes erd
21148 \end_inset
21149
21150  if two works of this author from 2014 are in the database,
21151  even if only one is cited).
21152 \end_layout
21153
21154 \begin_layout Standard
21155 If you use 
21156 \family sans
21157 Biblatex
21158 \family default
21159 ,
21160  the 
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 refsection
21166 \end_layout
21167
21168 \end_inset
21169
21170  option is used instead.
21171  If you need specific units,
21172  you can start them with the \SpecialChar TeX
21173  code 
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178
21179 \backslash
21180 newrefsection
21181 \end_layout
21182
21183 \end_inset
21184
21185  or 
21186 \begin_inset Flex Code
21187 status collapsed
21188
21189 \begin_layout Plain Layout
21190
21191 \backslash
21192 newrefsegment
21193 \end_layout
21194
21195 \end_inset
21196
21197 ,
21198  respectively.
21199  If you also want to control the end of the unit,
21200  use the environment 
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205
21206 \backslash
21207 begin{refsection}
21208 \end_layout
21209
21210 \end_inset
21211
21212  \SpecialChar ldots
21213  
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218
21219 \backslash
21220 end{refsection}
21221 \end_layout
21222
21223 \end_inset
21224
21225  instead.
21226  Note,
21227  though,
21228  that 
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 refsection
21234 \end_layout
21235
21236 \end_inset
21237
21238 s cannot be nested.
21239  In addition to the individual bibliography of the current unit,
21240  
21241 \family sans
21242 Biblatex
21243 \family default
21244  also provides an easy way to output all bibliographies,
21245  subsequently,
21246  at one place (e.
21247 \begin_inset space \thinspace{}
21248 \end_inset
21249
21250 g.,
21251  at the end of the document).
21252  Select 
21253 \begin_inset Quotes eld
21254 \end_inset
21255
21256 all reference units
21257 \begin_inset Quotes erd
21258 \end_inset
21259
21260  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
21261  Please refer to the 
21262 \family sans
21263 Biblatex
21264 \family default
21265  manual for more information on this topic.
21266 \end_layout
21267
21268 \begin_layout Chapter
21269 Bullets
21270 \begin_inset CommandInset label
21271 LatexCommand label
21272 name "chap:bullets"
21273
21274 \end_inset
21275
21276
21277 \end_layout
21278
21279 \begin_layout Standard
21280 by
21281 \noun on
21282  Allan Rae
21283 \end_layout
21284
21285 \begin_layout Section
21286 Introduction
21287 \end_layout
21288
21289 \begin_layout Standard
21290 \SpecialChar LyX
21291  provides 216 bullet shapes that can be accessed from a simple dialog.
21292  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
21293  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
21294 \begin_inset Foot
21295 status collapsed
21296
21297 \begin_layout Plain Layout
21298 Well,
21299  actually you can but you'll have to do it by hand.
21300 \end_layout
21301
21302 \end_inset
21303
21304
21305 \end_layout
21306
21307 \begin_layout Section
21308 How it looks
21309 \end_layout
21310
21311 \begin_layout Standard
21312 Open the dialog by selecting the 
21313 \family sans
21314 Document\SpecialChar menuseparator
21315 Settings
21316 \family default
21317  menu item and then select the 
21318 \begin_inset Flex Noun
21319 status collapsed
21320
21321 \begin_layout Plain Layout
21322 Bullets
21323 \end_layout
21324
21325 \end_inset
21326
21327  tab.
21328 \end_layout
21329
21330 \begin_layout Standard
21331 The dialog provides you with a table of bullet shapes.
21332  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
21333  The row of buttons across the top is used to select which bullet depth you are changing.
21334 \end_layout
21335
21336 \begin_layout Standard
21337 If you select 
21338 \family sans
21339 Custom bullet
21340 \family default
21341 ,
21342  a text entry under the table will be activated in which you can enter a bullet shape's \SpecialChar LaTeX
21343  equivalent.
21344  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
21345  preamble.
21346 \end_layout
21347
21348 \begin_layout Standard
21349 The six panels are divided up by the packages they require.
21350  The following table shows the mappings from button name to \SpecialChar LaTeX
21351  package.
21352 \end_layout
21353
21354 \begin_layout Standard
21355 \align center
21356 \begin_inset Tabular
21357 <lyxtabular version="3" rows="7" columns="2">
21358 <features tabularvalignment="middle">
21359 <column alignment="center" valignment="top" width="0pt">
21360 <column alignment="center" valignment="top" width="0pt">
21361 <row>
21362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21363 \begin_inset Text
21364
21365 \begin_layout Plain Layout
21366
21367 \family roman
21368 \series medium
21369 \shape up
21370 \size normal
21371 \emph off
21372 \bar no
21373 \noun off
21374 \color none
21375 Button
21376 \end_layout
21377
21378 \end_inset
21379 </cell>
21380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21381 \begin_inset Text
21382
21383 \begin_layout Plain Layout
21384
21385 \family roman
21386 \series medium
21387 \shape up
21388 \size normal
21389 \emph off
21390 \bar no
21391 \noun off
21392 \color none
21393 Packages Required
21394 \end_layout
21395
21396 \end_inset
21397 </cell>
21398 </row>
21399 <row>
21400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21401 \begin_inset Text
21402
21403 \begin_layout Plain Layout
21404
21405 \family sans
21406 \series medium
21407 \shape up
21408 \size normal
21409 \emph off
21410 \bar no
21411 \noun off
21412 \color none
21413 Standard
21414 \end_layout
21415
21416 \end_inset
21417 </cell>
21418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21419 \begin_inset Text
21420
21421 \begin_layout Plain Layout
21422
21423 \series medium
21424 \shape up
21425 \size normal
21426 \emph off
21427 \bar no
21428 \noun off
21429 \color none
21430 base \SpecialChar LaTeX
21431
21432 \end_layout
21433
21434 \end_inset
21435 </cell>
21436 </row>
21437 <row>
21438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21439 \begin_inset Text
21440
21441 \begin_layout Plain Layout
21442
21443 \family sans
21444 \series medium
21445 \shape up
21446 \size normal
21447 \emph off
21448 \bar no
21449 \noun off
21450 \color none
21451 Maths
21452 \end_layout
21453
21454 \end_inset
21455 </cell>
21456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21457 \begin_inset Text
21458
21459 \begin_layout Plain Layout
21460
21461 \family typewriter
21462 \series medium
21463 \shape up
21464 \size normal
21465 \emph off
21466 \bar no
21467 \noun off
21468 \color none
21469 amssymb.sty
21470 \end_layout
21471
21472 \end_inset
21473 </cell>
21474 </row>
21475 <row>
21476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21477 \begin_inset Text
21478
21479 \begin_layout Plain Layout
21480
21481 \family sans
21482 \series medium
21483 \shape up
21484 \size normal
21485 \emph off
21486 \bar no
21487 \noun off
21488 \color none
21489 Ding1
21490 \end_layout
21491
21492 \end_inset
21493 </cell>
21494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21495 \begin_inset Text
21496
21497 \begin_layout Plain Layout
21498
21499 \family typewriter
21500 \series medium
21501 \shape up
21502 \size normal
21503 \emph off
21504 \bar no
21505 \noun off
21506 \color none
21507 pifont.sty
21508 \end_layout
21509
21510 \end_inset
21511 </cell>
21512 </row>
21513 <row>
21514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21515 \begin_inset Text
21516
21517 \begin_layout Plain Layout
21518
21519 \family sans
21520 \series medium
21521 \shape up
21522 \size normal
21523 \emph off
21524 \bar no
21525 \noun off
21526 \color none
21527 Ding2
21528 \end_layout
21529
21530 \end_inset
21531 </cell>
21532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21533 \begin_inset Text
21534
21535 \begin_layout Plain Layout
21536
21537 \family typewriter
21538 \series medium
21539 \shape up
21540 \size normal
21541 \emph off
21542 \bar no
21543 \noun off
21544 \color none
21545 pifont.sty
21546 \end_layout
21547
21548 \end_inset
21549 </cell>
21550 </row>
21551 <row>
21552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21553 \begin_inset Text
21554
21555 \begin_layout Plain Layout
21556
21557 \family sans
21558 \series medium
21559 \shape up
21560 \size normal
21561 \emph off
21562 \bar no
21563 \noun off
21564 \color none
21565 Ding3
21566 \end_layout
21567
21568 \end_inset
21569 </cell>
21570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21571 \begin_inset Text
21572
21573 \begin_layout Plain Layout
21574
21575 \family typewriter
21576 \series medium
21577 \shape up
21578 \size normal
21579 \emph off
21580 \bar no
21581 \noun off
21582 \color none
21583 pifont.sty
21584 \end_layout
21585
21586 \end_inset
21587 </cell>
21588 </row>
21589 <row>
21590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21591 \begin_inset Text
21592
21593 \begin_layout Plain Layout
21594
21595 \family sans
21596 \series medium
21597 \shape up
21598 \size normal
21599 \emph off
21600 \bar no
21601 \noun off
21602 \color none
21603 Ding4
21604 \end_layout
21605
21606 \end_inset
21607 </cell>
21608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21609 \begin_inset Text
21610
21611 \begin_layout Plain Layout
21612
21613 \family typewriter
21614 \series medium
21615 \shape up
21616 \size normal
21617 \emph off
21618 \bar no
21619 \noun off
21620 \color none
21621 pifont.sty
21622 \end_layout
21623
21624 \end_inset
21625 </cell>
21626 </row>
21627 </lyxtabular>
21628
21629 \end_inset
21630
21631
21632 \end_layout
21633
21634 \begin_layout Standard
21635 \SpecialChar LyX
21636  doesn't stop you using bullets from packages you don't have.
21637  If you get errors from \SpecialChar LaTeX
21638  when you try to view or print the file,
21639  then it is likely you are missing a package.
21640 \begin_inset Foot
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 \SpecialChar LyX
21645  doesn't restrict your use since you may be editing locally and exporting elsewhere.
21646 \end_layout
21647
21648 \end_inset
21649
21650
21651 \end_layout
21652
21653 \begin_layout Section
21654 \begin_inset CommandInset label
21655 LatexCommand label
21656 name "sec:How-to-use"
21657
21658 \end_inset
21659
21660 How to use it
21661 \end_layout
21662
21663 \begin_layout Standard
21664 Select which bullet depth you want to change then select the bullet shape and size.
21665  Any changes will not be visible in \SpecialChar LyX
21666 ,
21667  but are visible when viewing the document.
21668 \end_layout
21669
21670 \begin_layout Standard
21671 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
21672 \begin_inset CommandInset label
21673 LatexCommand label
21674 name "fn:If-you-really"
21675
21676 \end_inset
21677
21678
21679 \end_layout
21680
21681 \begin_layout Standard
21682 If you 
21683 \emph on
21684 really
21685 \emph default
21686  want to have multiple sets of paragraphs with different sets of bullets in each,
21687  then you're going to have to get your hands dirty with \SpecialChar TeX
21688  code.
21689  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
21690  code for a wide range of bullet shapes.
21691  To make your own custom paragraphs you have the following options:
21692 \end_layout
21693
21694 \begin_layout Standard
21695 \begin_inset ERT
21696 status open
21697
21698 \begin_layout Plain Layout
21699
21700
21701 \backslash
21702 let
21703 \backslash
21704 savelabelitemi=
21705 \backslash
21706 labelitemi
21707 \end_layout
21708
21709 \end_inset
21710
21711
21712 \end_layout
21713
21714 \begin_layout Standard
21715 \begin_inset ERT
21716 status open
21717
21718 \begin_layout Plain Layout
21719
21720
21721 \backslash
21722 renewcommand
21723 \backslash
21724 labelitemi[0]{
21725 \backslash
21726 small
21727 \backslash
21728 (
21729 \backslash
21730 sharp
21731 \backslash
21732 )}
21733 \end_layout
21734
21735 \end_inset
21736
21737
21738 \end_layout
21739
21740 \begin_layout Itemize
21741 Use the \SpecialChar LaTeX
21742  command 
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747
21748 \backslash
21749 renewcommand
21750 \end_layout
21751
21752 \end_inset
21753
21754  to specify a new bullet shape for a given depth.
21755  You'll also need to save the current bullet shape so you can restore it again afterwards.
21756  In this itemized list the following \SpecialChar LaTeX
21757  code was used to change the bullet used for the first depth.
21758 \end_layout
21759
21760 \begin_deeper
21761 \begin_layout LyX-Code
21762
21763 \backslash
21764 let
21765 \backslash
21766 savelabelitemi=
21767 \backslash
21768 labelitemi 
21769 \end_layout
21770
21771 \begin_layout LyX-Code
21772
21773 \backslash
21774 renewcommand
21775 \backslash
21776 labelitemi[0]{
21777 \backslash
21778 small
21779 \backslash
21780 (
21781 \backslash
21782 sharp
21783 \backslash
21784 )}
21785 \end_layout
21786
21787 \end_deeper
21788 \begin_layout Itemize
21789 Note that the itemize depth is specified in Roman numerals as part of the 
21790 \family typewriter
21791
21792 \backslash
21793 labelitem
21794 \family default
21795  command.
21796 \end_layout
21797
21798 \begin_layout Itemize
21799 \begin_inset Argument item:1
21800 status open
21801
21802 \begin_layout Plain Layout
21803 \begin_inset ERT
21804 status open
21805
21806 \begin_layout Plain Layout
21807
21808
21809 \backslash
21810 (
21811 \backslash
21812 star
21813 \backslash
21814 )
21815 \end_layout
21816
21817 \end_inset
21818
21819
21820 \end_layout
21821
21822 \end_inset
21823
21824  Specify each individual entry by starting each item with the bullet shape enclosed in a 
21825 \begin_inset Quotes eld
21826 \end_inset
21827
21828 Custom Item
21829 \begin_inset Quotes erd
21830 \end_inset
21831
21832  inset (available at 
21833 \family sans
21834 Insert\SpecialChar menuseparator
21835 Custom Item
21836 \family default
21837 ) and set as 
21838 \begin_inset Flex Noun
21839 status collapsed
21840
21841 \begin_layout Plain Layout
21842 \SpecialChar TeX
21843  Code
21844 \end_layout
21845
21846 \end_inset
21847
21848 .
21849  For example,
21850  this item was started with 
21851 \begin_inset Flex Code
21852 status collapsed
21853
21854 \begin_layout Plain Layout
21855
21856 \backslash
21857 (
21858 \backslash
21859 star
21860 \backslash
21861 )
21862 \end_layout
21863
21864 \end_inset
21865
21866 .
21867 \end_layout
21868
21869 \begin_layout Standard
21870 \begin_inset ERT
21871 status open
21872
21873 \begin_layout Plain Layout
21874
21875
21876 \backslash
21877 renewcommand
21878 \backslash
21879 labelitemi[0]{
21880 \backslash
21881 savelabelitemi}
21882 \end_layout
21883
21884 \end_inset
21885
21886
21887 \end_layout
21888
21889 \begin_layout Standard
21890 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
21891  The way used here was:
21892 \end_layout
21893
21894 \begin_layout LyX-Code
21895
21896 \backslash
21897 renewcommand
21898 \backslash
21899 labelitemi[0]{
21900 \backslash
21901 savelabelitemi}
21902 \end_layout
21903
21904 \begin_layout Chapter
21905 Supplemental Tools
21906 \end_layout
21907
21908 \begin_layout Section
21909 Multipart Documents
21910 \end_layout
21911
21912 \begin_layout Subsection
21913 General Operation
21914 \end_layout
21915
21916 \begin_layout Standard
21917 When you are working on a large file with many sections,
21918  it is often convenient to break up the document into several files,
21919  or perhaps you have something where a table may change from time to time,
21920  but the preceding text does not.
21921  In these cases,
21922  you should seriously consider using multipart documents.
21923  For example,
21924  scientific papers often have five major sections:
21925  the introduction,
21926  observations,
21927  results,
21928  discussion,
21929  and conclusion.
21930  Each of these could be its own separate \SpecialChar LyX
21931  file,
21932  with one 
21933 \begin_inset Quotes eld
21934 \end_inset
21935
21936 master
21937 \begin_inset Quotes erd
21938 \end_inset
21939
21940  file which contains the title,
21941  authors,
21942  abstract,
21943  references,
21944  etc.,
21945  plus the five included files.
21946  It is important to note that each of these files is a full \SpecialChar LyX
21947  file which can be formatted and printed on its own,
21948  as well as included in a master file.
21949  Each of these files must have the same document class,
21950  however—
21951 don't attempt to mix book classes with article classes.
21952  You may also include \SpecialChar LaTeX
21953  files;
21954  however,
21955  these files must not have their own preamble (i.
21956 \begin_inset space \thinspace{}
21957 \end_inset
21958
21959 e.
21960 \begin_inset space \space{}
21961 \end_inset
21962
21963 everything up to and including the 
21964 \begin_inset Flex Code
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968
21969 \backslash
21970 begin{document}
21971 \end_layout
21972
21973 \end_inset
21974
21975  line as well as the 
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980
21981 \backslash
21982 end{document}
21983 \end_layout
21984
21985 \end_inset
21986
21987  line must be deleted) or else errors will be generated when you try to make a DVI file.
21988 \end_layout
21989
21990 \begin_layout Standard
21991 \SpecialChar LyX
21992  allows you to include files quite easily with 
21993 \family sans
21994 Insert\SpecialChar menuseparator
21995 Child
21996 \begin_inset space ~
21997 \end_inset
21998
21999 Document
22000 \family default
22001 .
22002  When you click on this selection a small box is inserted into the file at the current cursor location.
22003  Clicking on the box raises a dialog which allows you to select the file to be included,
22004  and the method of its inclusion.
22005  
22006 \end_layout
22007
22008 \begin_layout Standard
22009 The file selection box should by now be obvious.
22010  The three inclusion methods are 
22011 \begin_inset Quotes eld
22012 \end_inset
22013
22014 include
22015 \begin_inset Quotes erd
22016 \end_inset
22017
22018 ,
22019  
22020 \begin_inset Quotes eld
22021 \end_inset
22022
22023 input
22024 \begin_inset Quotes erd
22025 \end_inset
22026
22027 ,
22028  and 
22029 \begin_inset Quotes eld
22030 \end_inset
22031
22032 verbatim
22033 \begin_inset Quotes erd
22034 \end_inset
22035
22036 .
22037  The methods 
22038 \begin_inset Quotes eld
22039 \end_inset
22040
22041 include
22042 \begin_inset Quotes erd
22043 \end_inset
22044
22045  and 
22046 \begin_inset Quotes eld
22047 \end_inset
22048
22049 input
22050 \begin_inset Quotes erd
22051 \end_inset
22052
22053  are similar in many ways,
22054  but there are also some notable differences:
22055 \end_layout
22056
22057 \begin_layout Enumerate
22058 Files that are 
22059 \begin_inset Quotes eld
22060 \end_inset
22061
22062 included
22063 \begin_inset Quotes erd
22064 \end_inset
22065
22066  are typeset beginning on a new page,
22067  while files that are 
22068 \begin_inset Quotes eld
22069 \end_inset
22070
22071 inputted
22072 \begin_inset Quotes erd
22073 \end_inset
22074
22075  are typeset starting on the current page.
22076 \end_layout
22077
22078 \begin_layout Enumerate
22079 \begin_inset Quotes eld
22080 \end_inset
22081
22082 Included
22083 \begin_inset Quotes erd
22084 \end_inset
22085
22086  files cannot themselves 
22087 \begin_inset Quotes eld
22088 \end_inset
22089
22090 include
22091 \begin_inset Quotes erd
22092 \end_inset
22093
22094  further files (
22095 \begin_inset Quotes eld
22096 \end_inset
22097
22098 grandchilds
22099 \begin_inset Quotes erd
22100 \end_inset
22101
22102 ).
22103  With 
22104 \begin_inset Quotes eld
22105 \end_inset
22106
22107 input
22108 \begin_inset Quotes erd
22109 \end_inset
22110
22111 ,
22112  on the other hand,
22113  infinite sub-inputting is possible.
22114 \end_layout
22115
22116 \begin_layout Enumerate
22117 \begin_inset Quotes eld
22118 \end_inset
22119
22120 Include
22121 \begin_inset Quotes erd
22122 \end_inset
22123
22124  allow for the output of only selected 
22125 \begin_inset Quotes eld
22126 \end_inset
22127
22128 included
22129 \begin_inset Quotes erd
22130 \end_inset
22131
22132  files,
22133  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
22134 \emph on
22135 Child
22136 \begin_inset space ~
22137 \end_inset
22138
22139 Documents
22140 \emph default
22141  of the 
22142 \emph on
22143 Embedded
22144 \begin_inset space ~
22145 \end_inset
22146
22147 Objects
22148 \emph default
22149  manual for details).
22150 \end_layout
22151
22152 \begin_layout Standard
22153 Hence,
22154  
22155 \begin_inset Quotes eld
22156 \end_inset
22157
22158 include
22159 \begin_inset Quotes erd
22160 \end_inset
22161
22162  is the preferred method for chapters that are outsourced to child documents,
22163  while 
22164 \begin_inset Quotes eld
22165 \end_inset
22166
22167 input
22168 \begin_inset Quotes erd
22169 \end_inset
22170
22171  is more suitable for arbitrary file inheritance.
22172 \end_layout
22173
22174 \begin_layout Standard
22175
22176 \begin_inset Quotes eld
22177 \end_inset
22178
22179 verbatim
22180 \begin_inset Quotes erd
22181 \end_inset
22182
22183  included file allows you to include a file typeset exactly as it appears in the file,
22184  i.
22185 \begin_inset space \thinspace{}
22186 \end_inset
22187
22188 e.
22189 \begin_inset space \space{}
22190 \end_inset
22191
22192 in 
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 verbatim
22198 \end_layout
22199
22200 \end_inset
22201
22202  mode,
22203  with the characters set in a fixed-width typewriter font.
22204  Normally,
22205  spaces in this file are invisible,
22206  though two consecutive spaces are conserved,
22207  unlike \SpecialChar LyX
22208 's normal treatment of spaces.
22209  However,
22210  setting the 
22211 \begin_inset Flex Noun
22212 status collapsed
22213
22214 \begin_layout Plain Layout
22215 Mark
22216 \begin_inset space ~
22217 \end_inset
22218
22219 spaces
22220 \begin_inset space ~
22221 \end_inset
22222
22223 in
22224 \begin_inset space ~
22225 \end_inset
22226
22227 output
22228 \end_layout
22229
22230 \end_inset
22231
22232  checkbox typesets a mark to unambiguously define the presence of a space.
22233  
22234 \end_layout
22235
22236 \begin_layout Standard
22237 Generally,
22238  the master file is converted into a full \SpecialChar LaTeX
22239  file before typesetting,
22240  while the included files are converted to \SpecialChar LaTeX
22241  files that do not have all the preamble information.
22242 \end_layout
22243
22244 \begin_layout Subsection
22245 Cross-References Between Files
22246 \end_layout
22247
22248 \begin_layout Standard
22249 \begin_inset Box Shadowbox
22250 position "t"
22251 hor_pos "c"
22252 has_inner_box 1
22253 inner_pos "t"
22254 use_parbox 0
22255 use_makebox 0
22256 width "100col%"
22257 special "none"
22258 height "1in"
22259 height_special "totalheight"
22260 thickness "0.4pt"
22261 separation "3pt"
22262 shadowsize "4pt"
22263 framecolor "black"
22264 backgroundcolor "none"
22265 status open
22266
22267 \begin_layout Plain Layout
22268 This section is somewhat out of date.
22269  Need to describe default master documents and how children are opened when the master is.
22270  [[FIXME]]
22271 \end_layout
22272
22273 \end_inset
22274
22275
22276 \end_layout
22277
22278 \begin_layout Standard
22279 It is possible to set up cross-references between the different files.
22280  First,
22281  open all the files in question:
22282  let's call them A and B in a two file example,
22283  where B is included in A.
22284  Let's say you insert a label in A,
22285  then want to reference it in B.
22286  Open the cross-reference dialog whilst in document B,
22287  and you can select the 
22288 \begin_inset Quotes eld
22289 \end_inset
22290
22291 buffer
22292 \begin_inset Quotes erd
22293 \end_inset
22294
22295  to use.
22296 \end_layout
22297
22298 \begin_layout Subsection
22299 Bibliography Lists in all Subdocuments
22300 \end_layout
22301
22302 \begin_layout Standard
22303 If you work with child documents,
22304  you might want to have only one main bibliography at the end,
22305  but still be able to have a selected bibliography for the child if you output it on its own.
22306  Here is how to achieve this.
22307 \end_layout
22308
22309 \begin_layout Standard
22310 For the main document,
22311  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
22312  If the bibliography inset is in the master file,
22313  the references will be inherited by all children,
22314  so they are available in the citation dialog within each child.
22315 \end_layout
22316
22317 \begin_layout Standard
22318 For child-specific bibliographies,
22319  insert bibliography insets within the child documents,
22320  at the place where the bibliography should appear when the child is compiled separately.
22321  However,
22322  the trick is to insert them into a branch (
22323 \family sans
22324 Insert\SpecialChar menuseparator
22325 Branch\SpecialChar menuseparator
22326 Insert New Branch...
22327 \family default
22328 ),
22329  e.
22330 \begin_inset space \thinspace{}
22331 \end_inset
22332
22333 g.
22334  called 
22335 \begin_inset Quotes eld
22336 \end_inset
22337
22338 Childonly
22339 \begin_inset Quotes erd
22340 \end_inset
22341
22342 .
22343  Within the children,
22344  activate the branch (
22345 \family sans
22346 Document\SpecialChar menuseparator
22347 Settings...\SpecialChar menuseparator
22348 Branches
22349 \family default
22350 ).
22351  Within the master,
22352  deactivate the branch (
22353 \family sans
22354 Document\SpecialChar menuseparator
22355 Settings...\SpecialChar menuseparator
22356 Branches
22357 \family default
22358 ).
22359  Now the child's bibliography will be ignored by the master,
22360  but considered by the child.
22361 \end_layout
22362
22363 \begin_layout Standard
22364 If you need multiple bibliographies (e.
22365 \begin_inset space \thinspace{}
22366 \end_inset
22367
22368 g.,
22369  one per child in the 
22370 \emph on
22371 main document
22372 \emph default
22373 ),
22374  please refer to sec.
22375 \begin_inset space ~
22376 \end_inset
22377
22378
22379 \begin_inset CommandInset ref
22380 LatexCommand ref
22381 reference "subsec:Multiple-Bibliographies"
22382 nolink "false"
22383
22384 \end_inset
22385
22386 .
22387 \end_layout
22388
22389 \begin_layout Section
22390 \SpecialChar LyX
22391  Archives
22392 \end_layout
22393
22394 \begin_layout Standard
22395 Users sometimes need to be able to 
22396 \begin_inset Quotes eld
22397 \end_inset
22398
22399 bundle
22400 \begin_inset Quotes erd
22401 \end_inset
22402
22403  a \SpecialChar LyX
22404  file together with all the images (and other files) on which it depends,
22405  either for sending to a publisher or for sharing with a co-author.
22406  \SpecialChar LyX
22407  includes a Python script (
22408 \begin_inset Flex Code
22409 status collapsed
22410
22411 \begin_layout Plain Layout
22412 lyxpak.py
22413 \end_layout
22414
22415 \end_inset
22416
22417 ) that automates this process.
22418  To use it,
22419  you must have either the 
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 zipfile
22425 \end_layout
22426
22427 \end_inset
22428
22429  or 
22430 \begin_inset Flex Code
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434 tarfile
22435 \end_layout
22436
22437 \end_inset
22438
22439  python modules installed on your system.
22440  By default,
22441  the script prefers the 
22442 \begin_inset Flex Code
22443 status collapsed
22444
22445 \begin_layout Plain Layout
22446 gzip
22447 \end_layout
22448
22449 \end_inset
22450
22451 -compressed 
22452 \begin_inset Flex Code
22453 status collapsed
22454
22455 \begin_layout Plain Layout
22456 tar
22457 \end_layout
22458
22459 \end_inset
22460
22461  format on Unix-like systems and the 
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 zip
22467 \end_layout
22468
22469 \end_inset
22470
22471  format on Windows.
22472 \end_layout
22473
22474 \begin_layout Standard
22475 \SpecialChar LyX
22476 's configuration process will set the script up to export a `\SpecialChar LyX
22477  Archive',
22478  and this format will then be available under 
22479 \family sans
22480 File\SpecialChar menuseparator
22481 Export
22482 \family default
22483 .
22484 \end_layout
22485
22486 \begin_layout Standard
22487 Independently of the platform,
22488  the generation of a particular archive format can be forced by adding either the 
22489 \begin_inset Flex Code
22490 status collapsed
22491
22492 \begin_layout Plain Layout
22493 -t
22494 \end_layout
22495
22496 \end_inset
22497
22498  (for the 
22499 \begin_inset Flex Code
22500 status collapsed
22501
22502 \begin_layout Plain Layout
22503 tar
22504 \end_layout
22505
22506 \end_inset
22507
22508  format) or 
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 -z
22514 \end_layout
22515
22516 \end_inset
22517
22518  (for the 
22519 \begin_inset Flex Code
22520 status collapsed
22521
22522 \begin_layout Plain Layout
22523 zip
22524 \end_layout
22525
22526 \end_inset
22527
22528  format) switch to the 
22529 \begin_inset Flex Code
22530 status collapsed
22531
22532 \begin_layout Plain Layout
22533 \SpecialChar LyX
22534 ->\SpecialChar LyX
22535  Archive
22536 \end_layout
22537
22538 \end_inset
22539
22540  converter in 
22541 \family sans
22542 Tools\SpecialChar menuseparator
22543 Preferences\SpecialChar menuseparator
22544 File Handling\SpecialChar menuseparator
22545 Converters
22546 \family default
22547 .
22548  (Make sure you add the switch after the script name,
22549  not before it.)
22550 \end_layout
22551
22552 \begin_layout Chapter
22553 \SpecialChar LyX
22554  and the World Wide Web
22555 \end_layout
22556
22557 \begin_layout Standard
22558 \SpecialChar LyX
22559  has long supported the export of documents to various web-friendly formats,
22560  such as HTML.
22561  Before version 2.0,
22562  however,
22563  HTML export was always accomplished by the use of external converters.
22564 \begin_inset Foot
22565 status collapsed
22566
22567 \begin_layout Plain Layout
22568 For details on the use of external converters with \SpecialChar LyX
22569 ,
22570  see the 
22571 \emph on
22572 Converters
22573 \emph default
22574  section of the Customization manual.
22575 \end_layout
22576
22577 \end_inset
22578
22579  These fall into two large groups:
22580  there are converters that use \SpecialChar LaTeX
22581  as an intermediate format,
22582  such as 
22583 \begin_inset Flex Code
22584 status collapsed
22585
22586 \begin_layout Plain Layout
22587 htlatex
22588 \end_layout
22589
22590 \end_inset
22591
22592 ,
22593  
22594 \begin_inset Flex Code
22595 status collapsed
22596
22597 \begin_layout Plain Layout
22598 html2latex
22599 \end_layout
22600
22601 \end_inset
22602
22603 ,
22604  and 
22605 \begin_inset Flex Code
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609 plastex
22610 \end_layout
22611
22612 \end_inset
22613
22614 ,
22615  relying upon \SpecialChar LyX
22616  to produce the \SpecialChar LaTeX
22617 ;
22618  and there is a converter that works directly on \SpecialChar LyX
22619  files,
22620  
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625 e\SpecialChar LyX
22626 er
22627 \end_layout
22628
22629 \end_inset
22630
22631 .
22632  All of these have different advantages and disadvantages.
22633  
22634 \end_layout
22635
22636 \begin_layout Standard
22637 The \SpecialChar LaTeX
22638 -based converters have the advantage that,
22639  in principle,
22640  they know everything about the exported document that \SpecialChar LaTeX
22641  does.
22642  Such converters do not care,
22643  for example,
22644  if a certain block of code was produced by \SpecialChar LyX
22645  or was Evil Red Text.
22646  These converters know about 
22647 \begin_inset Flex Code
22648 status collapsed
22649
22650 \begin_layout Plain Layout
22651 aux
22652 \end_layout
22653
22654 \end_inset
22655
22656  files,
22657  counters,
22658  and references,
22659  and can often make use of the 
22660 \begin_inset Flex Code
22661 status collapsed
22662
22663 \begin_layout Plain Layout
22664 bbl
22665 \end_layout
22666
22667 \end_inset
22668
22669  files generated by Bib\SpecialChar TeX
22670 .
22671  On the other hand,
22672  \SpecialChar LaTeX
22673  is a very hard language to parse—
22674 it is sometimes said that only \SpecialChar TeX
22675  itself understands \SpecialChar TeX
22676
22677 and \SpecialChar LaTeX
22678 -based converters will often choke on what seem to be quite simple constructs;
22679  complex ones can throw them completely,
22680  and as of this writing,
22681  for example,
22682  the 
22683 \emph on
22684 Embedded Objects
22685 \emph default
22686  manual will not export with 
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691 htlatex
22692 \end_layout
22693
22694 \end_inset
22695
22696 ,
22697  though the others will.
22698  The other issue concerns how math is handled.
22699  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
22700  Since these are actually generated by \SpecialChar LaTeX
22701 ,
22702  they are accurate.
22703  But they do not scale well,
22704  and just getting them to look as if they are actually meant to be in your document—
22705 so that the font sizes seem to be roughly the same—
22706 can be a challenge.
22707 \end_layout
22708
22709 \begin_layout Standard
22710 Alex Fernandez's 
22711 \begin_inset Flex Code
22712 status collapsed
22713
22714 \begin_layout Plain Layout
22715 e\SpecialChar LyX
22716 er
22717 \end_layout
22718
22719 \end_inset
22720
22721  (
22722 \begin_inset CommandInset href
22723 LatexCommand href
22724 name "http://pinchito.es/elyxer/"
22725 target "http://pinchito.es/elyxer/"
22726 literal "false"
22727
22728 \end_inset
22729
22730 ) solves some of these problems.
22731  In particular,
22732  the formulae it produces scale perfectly,
22733  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
22734  But even moderately complex formula are rendered less well than with 
22735 \begin_inset Flex Code
22736 status collapsed
22737
22738 \begin_layout Plain Layout
22739 htlatex
22740 \end_layout
22741
22742 \end_inset
22743
22744 ;
22745  this reflects the limitations of HTML.
22746 \begin_inset Foot
22747 status collapsed
22748
22749 \begin_layout Plain Layout
22750 That said,
22751  
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 e\SpecialChar LyX
22757 er
22758 \end_layout
22759
22760 \end_inset
22761
22762  can also use jsMath and MathJax for equations,
22763  but this setting is only available globally and requires one to have access to a server that runs the backend.
22764 \end_layout
22765
22766 \end_inset
22767
22768  More importantly (as of version 1.1.1,
22769  at least),
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  has limited support for math macros and no support for user-defined paragraph or character styles.
22782  These limitations make 
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 e\SpecialChar LyX
22788 er
22789 \end_layout
22790
22791 \end_inset
22792
22793  unsuitable for many of the documents \SpecialChar LyX
22794  users produce.
22795  In principle,
22796  of course,
22797  these problems could be solved,
22798  but the \SpecialChar LyX
22799  developers have decided to follow a different path and have made \SpecialChar LyX
22800  itself capable of writing XHTML,
22801  just as it is capable of writing \SpecialChar LaTeX
22802 ,
22803  DocBook,
22804  and plaintext.
22805 \end_layout
22806
22807 \begin_layout Standard
22808 As of this writing,
22809  XHTML output remains under development and should probably be regarded as 
22810 \begin_inset Quotes eld
22811 \end_inset
22812
22813 experimental
22814 \begin_inset Quotes erd
22815 \end_inset
22816
22817 .
22818 \begin_inset Foot
22819 status collapsed
22820
22821 \begin_layout Plain Layout
22822 The file 
22823 \begin_inset Flex Code
22824 status collapsed
22825
22826 \begin_layout Plain Layout
22827 development/HTML/HTML.notes
22828 \end_layout
22829
22830 \end_inset
22831
22832 ,
22833  which can be found in the \SpecialChar LyX
22834  source tree or 
22835 \begin_inset CommandInset href
22836 LatexCommand href
22837 name "accessed online"
22838 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
22839 literal "false"
22840
22841 \end_inset
22842
22843 ,
22844  usually contains up-to-date information about the state of XHTML output.
22845  See also the list of XHTML bugs on 
22846 \begin_inset CommandInset href
22847 LatexCommand href
22848 name "the bug tracker"
22849 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"
22850 literal "false"
22851
22852 \end_inset
22853
22854 .
22855 \end_layout
22856
22857 \end_inset
22858
22859  Still,
22860  the developers have chosen this approach because it has several potential advantages over the other two.
22861 \end_layout
22862
22863 \begin_layout Standard
22864 These advantages are primarily due to the fact that the XHTML output routines,
22865  since they are part of \SpecialChar LyX
22866 ,
22867  know everything \SpecialChar LyX
22868  knows about the document being exported.
22869 \begin_inset Foot
22870 status collapsed
22871
22872 \begin_layout Plain Layout
22873 Another advantage is that,
22874  since these routines are internal to \SpecialChar LyX
22875 ,
22876  they are immune to changes in \SpecialChar LyX
22877 's file format,
22878  or to changes in the semantics of existing insets.
22879 \end_layout
22880
22881 \end_inset
22882
22883  So they know about the table of contents (as displayed in the outline),
22884  about the counters associated with different paragraph styles,
22885  and about user-defined styles.
22886  The XHTML output routines know what \SpecialChar LyX
22887  knows about internationalization,
22888  too,
22889  so they will output 
22890 \begin_inset Quotes eld
22891 \end_inset
22892
22893 Chapter 1
22894 \begin_inset Quotes erd
22895 \end_inset
22896
22897  or 
22898 \begin_inset Quotes eld
22899 \end_inset
22900
22901
22902 \lang ngerman
22903 Kapitel
22904 \lang english
22905  1
22906 \begin_inset Quotes erd
22907 \end_inset
22908
22909 ,
22910  depending upon the language in effect at the time.
22911  
22912 \end_layout
22913
22914 \begin_layout Standard
22915 Quite generally,
22916  the output routines know what \SpecialChar LyX
22917  knows about document layout,
22918  that is,
22919  about how the document is to be rendered on screen.
22920  We use this information when we output the document as XHTML.
22921  In particular,
22922  \SpecialChar LyX
22923  
22924 \emph on
22925 automatically
22926 \emph default
22927  generates CSS style information corresponding to the layout information it uses to render the document on screen:
22928  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
22929 ,
22930  then (by default) they will be sans-serif and bold when viewed in a web browser,
22931  too.
22932  And this is true not just for pre-defined styles,
22933  like Section,
22934  but for any style,
22935  including user-defined styles.
22936  Indeed,
22937  the XHTML output routines make no distinction between user-defined paragraph and text styles and \SpecialChar LyX
22938 's own pre-defined styles:
22939  in each case,
22940  everything \SpecialChar LyX
22941  knows about the styles is contained in the layout files.
22942  And much the same is true as regards pre-defined textual insets,
22943  such as footnotes,
22944  and various custom insets.
22945 \end_layout
22946
22947 \begin_layout Standard
22948 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
22949  output can be customized and extended:
22950  through layout files and modules.
22951  See chapter five of the 
22952 \emph on
22953 Customization 
22954 \emph default
22955 manual for the details.
22956 \end_layout
22957
22958 \begin_layout Standard
22959 The remainder of this chapter contains more detailed information on XHTML output,
22960  its limitations,
22961  and ways to work around those limitations.
22962 \end_layout
22963
22964 \begin_layout Section
22965 Math Output in XHTML
22966 \end_layout
22967
22968 \begin_layout Standard
22969 \SpecialChar LyX
22970  offers four choices for how math is rendered.
22971  These have various advantages and disadvantages:
22972 \end_layout
22973
22974 \begin_layout Itemize
22975 MathML
22976 \begin_inset Newline newline
22977 \end_inset
22978
22979 MathML is a dialect of XML designed specifically for mathematics on the web,
22980  and it typically renders very well in browsers that support it.
22981  The disadvantage is that not all browsers support MathML,
22982  and support is not complete even in the Gecko-based browsers,
22983  such as Firefox.
22984 \begin_inset Newline newline
22985 \end_inset
22986
22987 If \SpecialChar LyX
22988  is unable to render a formula as MathML—
22989 for example,
22990  if the formula uses the 
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 xymatrix
22996 \end_layout
22997
22998 \end_inset
22999
23000  package or ERT—
23001 then it will instead output the formula as an image.
23002  
23003 \end_layout
23004
23005 \begin_layout Itemize
23006 HTML
23007 \begin_inset Newline newline
23008 \end_inset
23009
23010 As mentioned above,
23011  
23012 \begin_inset Flex Code
23013 status collapsed
23014
23015 \begin_layout Plain Layout
23016 elyxer
23017 \end_layout
23018
23019 \end_inset
23020
23021  outputs math as HTML,
23022  styled by CSS.
23023 \begin_inset Foot
23024 status collapsed
23025
23026 \begin_layout Plain Layout
23027 \SpecialChar LyX
23028  has borrowed some of the CSS for its HTML output from 
23029 \begin_inset Flex Code
23030 status collapsed
23031
23032 \begin_layout Plain Layout
23033 elyxer
23034 \end_layout
23035
23036 \end_inset
23037
23038 .
23039 \end_layout
23040
23041 \end_inset
23042
23043  For simple formulae,
23044  this can work quite well,
23045  though with more complicated formulae it tends to break down.
23046  Still,
23047  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
23048  fairly simple math.
23049 \begin_inset Newline newline
23050 \end_inset
23051
23052 If Lyx is unable to render a formula as HTML—
23053 for example,
23054  if the formula uses the 
23055 \begin_inset Flex Code
23056 status collapsed
23057
23058 \begin_layout Plain Layout
23059 xymatrix
23060 \end_layout
23061
23062 \end_inset
23063
23064  package or ERT—
23065 then it will instead output the formula as an image.
23066  
23067 \end_layout
23068
23069 \begin_layout Itemize
23070 Images
23071 \begin_inset Newline newline
23072 \end_inset
23073
23074 Like 
23075 \begin_inset Flex Code
23076 status collapsed
23077
23078 \begin_layout Plain Layout
23079 htlatex
23080 \end_layout
23081
23082 \end_inset
23083
23084 ,
23085  \SpecialChar LyX
23086  will output formulae as images,
23087  the very same images,
23088  in fact,
23089  that are used for instant preview.
23090 \begin_inset Foot
23091 status collapsed
23092
23093 \begin_layout Plain Layout
23094 Instant preview does 
23095 \emph on
23096 not 
23097 \emph default
23098 have to be on for images to be output,
23099  however.
23100 \end_layout
23101
23102 \end_inset
23103
23104  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
23105 ,
23106  so they are very accurate.
23107  The disadvantage,
23108  as mentioned earlier,
23109  is that these are bitmapped images,
23110  so they do not scale terribly well,
23111  and one cannot copy them,
23112  etc.
23113 \begin_inset Newline newline
23114 \end_inset
23115
23116 The size of the images can be controlled by setting the 
23117 \begin_inset Quotes eld
23118 \end_inset
23119
23120 Math Images Scaling
23121 \begin_inset Quotes erd
23122 \end_inset
23123
23124  parameter under 
23125 \family sans
23126 Document\SpecialChar menuseparator
23127 Settings\SpecialChar menuseparator
23128
23129 \family default
23130 Output
23131 \family sans
23132 \SpecialChar menuseparator
23133
23134 \family default
23135 HTML.
23136 \begin_inset Foot
23137 status collapsed
23138
23139 \begin_layout Plain Layout
23140 For those who want to know,
23141  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
23142 \end_layout
23143
23144 \end_inset
23145
23146
23147 \begin_inset Newline newline
23148 \end_inset
23149
23150 If \SpecialChar LyX
23151  for some reason fails to create an image for a formula (e.g.,
23152  if a required \SpecialChar LaTeX
23153  package is not installed),
23154  then it will fall back to outputing the raw \SpecialChar LaTeX
23155 .
23156 \end_layout
23157
23158 \begin_layout Itemize
23159 \SpecialChar LaTeX
23160
23161 \begin_inset Newline newline
23162 \end_inset
23163
23164 Finally,
23165  \SpecialChar LyX
23166  will happily output math as \SpecialChar LaTeX
23167 .
23168  As well as being the output of last resort,
23169  this method can be used with such tools as 
23170 \begin_inset CommandInset href
23171 LatexCommand href
23172 name "jsMath"
23173 target "http://www.math.union.edu/~dpvc/jsMath/"
23174 literal "false"
23175
23176 \end_inset
23177
23178 ,
23179  which uses JavaScript to render \SpecialChar LaTeX
23180  embedded in HTML documents.
23181  \SpecialChar LyX
23182  wraps the \SpecialChar LaTeX
23183  in either a 
23184 \begin_inset Flex Code
23185 status collapsed
23186
23187 \begin_layout Plain Layout
23188 span
23189 \end_layout
23190
23191 \end_inset
23192
23193  (for inline formulas) or 
23194 \begin_inset Flex Code
23195 status collapsed
23196
23197 \begin_layout Plain Layout
23198 div
23199 \end_layout
23200
23201 \end_inset
23202
23203  (for displayed formulas) with 
23204 \begin_inset Flex Code
23205 status collapsed
23206
23207 \begin_layout Plain Layout
23208 class='math'
23209 \end_layout
23210
23211 \end_inset
23212
23213 ,
23214  as is required for jsMath.
23215 \end_layout
23216
23217 \begin_layout Standard
23218 One of these output methods must be selected under 
23219 \family sans
23220 Document\SpecialChar menuseparator
23221 Settings\SpecialChar menuseparator
23222 Formats
23223 \family default
23224 .
23225  By default,
23226  \SpecialChar LyX
23227  outputs MathML.
23228  This is a document-wide setting,
23229  therefore.
23230 \end_layout
23231
23232 \begin_layout Standard
23233 Eventually,
23234  \SpecialChar LyX
23235  will offer the user the option to select an alternate output method for a particular inset,
23236  say,
23237  one that isn't being rendered very well by MathML.
23238 \begin_inset Foot
23239 status collapsed
23240
23241 \begin_layout Plain Layout
23242 That said,
23243  since \SpecialChar LyX
23244  falls back to images if the inset contains ERT,
23245  then one can force output as an image by putting some harmless ERT into the math,
23246  for example:
23247  
23248 \begin_inset Formula $a=b\relax$
23249 \end_inset
23250
23251 .
23252 \end_layout
23253
23254 \end_inset
23255
23256
23257 \end_layout
23258
23259 \begin_layout Section
23260 Bibliography and Citations
23261 \end_layout
23262
23263 \begin_layout Standard
23264 XHTML output fully supports bibliographies and citations.
23265  
23266 \end_layout
23267
23268 \begin_layout Standard
23269 Citation labels are generated by the same machinery that generates \SpecialChar LyX
23270 's on-screen labels,
23271  so the labels will look in the output much as they do in \SpecialChar LyX
23272 ,
23273  though better.
23274  If you are using numerical citations,
23275  then \SpecialChar LyX
23276  will output numerical labels,
23277  such as [1] or [17],
23278  rather than simply showing the citation key in square brackets,
23279  as it does on-screen.
23280  If you are using author-year citations,
23281  then \SpecialChar LyX
23282  will add lowercase letters to the years,
23283  just as Bib\SpecialChar TeX
23284  does,
23285  if it finds more than one citation for a given author-year combination.
23286  The labels will be printed with the bibliography entries.
23287  Note that there is,
23288  at present,
23289  no way to customize the appearance of the labels,
23290  for example,
23291  to choose between square brackets and parentheses.
23292 \end_layout
23293
23294 \begin_layout Standard
23295 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
23296  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.
23297  The formatting can be customized in your layout file or,
23298  preferably,
23299  in a module.
23300  See the 
23301 \emph on
23302 Customization
23303 \emph default
23304  manual for the details.
23305 \end_layout
23306
23307 \begin_layout Standard
23308 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
23309  So you can see things like this:
23310 \end_layout
23311
23312 \begin_layout Quote
23313 Jason Stanley,
23314  
23315 \begin_inset Quotes eld
23316 \end_inset
23317
23318 Context and Logical Form
23319 \begin_inset Quotes erd
23320 \end_inset
23321
23322 ,
23323  in 
23324 \emph on
23325 Language in Context:
23326  Selected Essays
23327 \emph default
23328  (Oxford:
23329  Oxford University Press,
23330  2007),
23331  pp.
23332  30–68.
23333 \end_layout
23334
23335 \begin_layout Quote
23336 Jason Stanley,
23337  
23338 \begin_inset Quotes eld
23339 \end_inset
23340
23341 Semantics in Context
23342 \begin_inset Quotes erd
23343 \end_inset
23344
23345 ,
23346  in 
23347 \emph on
23348 Language in Context:
23349  Selected Essays
23350 \emph default
23351  (Oxford:
23352  Oxford University Press,
23353  2007),
23354  pp.
23355  201–30.
23356 \end_layout
23357
23358 \begin_layout Standard
23359 This should be fixed before long.
23360 \end_layout
23361
23362 \begin_layout Standard
23363 There is no support at present for sectioned bibliographies.
23364  If you have multiple bibliographies,
23365  then \SpecialChar LyX
23366  will print the same bibliography over and over.
23367 \end_layout
23368
23369 \begin_layout Section
23370 Indexes
23371 \end_layout
23372
23373 \begin_layout Standard
23374 \SpecialChar LyX
23375  will happily export indexes as XHTML,
23376  but with certain limitations at the moment.
23377 \end_layout
23378
23379 \begin_layout Standard
23380 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 
23381 \emph on
23382 User's Guide
23383 \emph default
23384 .
23385 \begin_inset Foot
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389 The main issue here is that \SpecialChar LyX
23390  itself does not really handle these.
23391  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
23392 .
23393 \end_layout
23394
23395 \end_inset
23396
23397  We'll describe how they are handled using the subsection headings from that section.
23398 \end_layout
23399
23400 \begin_layout Itemize
23401 Grouping Index Entries (aka,
23402  sub-entries):
23403  \SpecialChar LyX
23404  makes an effort to support these,
23405  but the entries must be separated by 
23406 \begin_inset Quotes eld
23407 \end_inset
23408
23409  !
23410  
23411 \begin_inset Quotes erd
23412 \end_inset
23413
23414 ,
23415  that is,
23416  there must be spaces around the exclamation point.
23417  This is because it is otherwise too difficult to check for escaped exclamation points,
23418  ones in math,
23419  and so forth.
23420 \end_layout
23421
23422 \begin_layout Itemize
23423 Page Ranges:
23424  There is no support at all for page ranges,
23425  since these make no sense with XHMTL.
23426  Instead,
23427  you will just get two index entries,
23428  one at either end.
23429 \end_layout
23430
23431 \begin_layout Itemize
23432 Cross-referencing:
23433  There is no support for cross-referencing.
23434  If \SpecialChar LyX
23435  finds an entry containing the 
23436 \begin_inset Quotes eld
23437 \end_inset
23438
23439 |see\SpecialChar ldots
23440
23441 \begin_inset Quotes erd
23442 \end_inset
23443
23444  construct,
23445  it is just dropped,
23446  and the rest is treated as an ordinary index entry.
23447 \end_layout
23448
23449 \begin_layout Itemize
23450 Index Entry Order:
23451  \SpecialChar LyX
23452  does support attempts to fix the sorting order.
23453  It will take what is before the first `@' it finds and use that for sorting,
23454  taking what follows the first `@' to be the actual entry.
23455  At present,
23456  \SpecialChar LyX
23457  does not check for escaped `@',
23458  so do not try to index email addresses.
23459 \end_layout
23460
23461 \begin_layout Itemize
23462 Index Entry Layout:
23463  You can format entries by using the text style dialog,
23464  or by using any other method available within \SpecialChar LyX
23465  itself.
23466  There is no support for constructs like:
23467  
23468 \begin_inset Quotes eld
23469 \end_inset
23470
23471 entry|textbf
23472 \begin_inset Quotes erd
23473 \end_inset
23474
23475 .
23476  Indeed,
23477  if \SpecialChar LyX
23478  finds a pipe symbol,
23479  `|',
23480  in an entry,
23481  it will delete it and everything that follows it.
23482 \end_layout
23483
23484 \begin_layout Itemize
23485 Multiple Indexes:
23486  There is no support for multiple indexes.
23487  Rather,
23488  all index entries will be printed as one large index.
23489  To avoid our printing several versions of the index,
23490  we print only the main index,
23491  so make sure you have one.
23492 \end_layout
23493
23494 \begin_layout Section
23495 Nomenclature and Glossary
23496 \end_layout
23497
23498 \begin_layout Standard
23499 There is at present no support for glossaries.
23500  Adding it would be fairly trivial,
23501  and welcome.
23502 \end_layout
23503
23504 \begin_layout Chapter
23505 DocBook Output
23506 \end_layout
23507
23508 \begin_layout Standard
23509 Apart from HTML,
23510  \SpecialChar LyX
23511  can generate documents in the DocBook XML vocabulary.
23512  With versions 2.3 and before,
23513  only select templates could be used to generate DocBook documents (only version 4).
23514  Starting with \SpecialChar LyX
23515  2.4,
23516  most \SpecialChar LyX
23517  layouts can generate valid DocBook documents (only version 5).
23518  This feature is built into \SpecialChar LyX
23519  and does not require the use of external tools.
23520 \end_layout
23521
23522 \begin_layout Standard
23523 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
23524  output can be customized and extended:
23525  through layout files and modules.
23526  See chapter five of the 
23527 \emph on
23528 Customization 
23529 \emph default
23530 manual for the details.
23531 \end_layout
23532
23533 \begin_layout Standard
23534 Most \SpecialChar LyX
23535  features are supported with DocBook,
23536  like math output.
23537 \end_layout
23538
23539 \begin_layout Itemize
23540 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
23541 ,
23542  i.e.
23543  ERTs).
23544  All formulae are also available in raw \SpecialChar TeX
23545  in the DocBook output for further processing.
23546 \end_layout
23547
23548 \begin_layout Itemize
23549 Bibliographies and citations are implemented,
23550  including with an external BibTeX file.
23551  Bibliography entries are not prerendered when the detailed information are available,
23552  but rather output with the standard DocBook constructs.
23553  The external DocBook processor is expected to handle the rendering of entries.
23554 \end_layout
23555
23556 \begin_layout Itemize
23557 Indexes are supported,
23558  including multiple indices.
23559  Grouping (with 
23560 \family typewriter
23561 !
23562 \family default
23563 ),
23564  page ranges,
23565  and cross-references (
23566 \family typewriter
23567 |see
23568 \family default
23569 ) are supported,
23570  with the exception of the same symbols escaped.
23571  Entry order (
23572 \family typewriter
23573 @
23574 \family default
23575 ) and layout (
23576 \family typewriter
23577 |mathbf
23578 \family default
23579 ) are not supported.
23580  There is no support for escaping of index entries.
23581 \end_layout
23582
23583 \begin_layout Itemize
23584 Glossaries are implemented.
23585 \end_layout
23586
23587 \begin_layout Standard
23588 Two major parameters can be set at the document level.
23589 \end_layout
23590
23591 \begin_layout Itemize
23592 Format for tables:
23593  \SpecialChar LyX
23594  can generate tables either as HTML (default value) or CALS,
23595  depending on the user's requirements.
23596  Most DocBook processors accept both formats.
23597 \end_layout
23598
23599 \begin_layout Itemize
23600 MathML prefix:
23601  in DocBook,
23602  MathML is included within its own name space,
23603  unlike HTML.
23604  The implication is that there must be an indication of the tags belonging to the MathML standard.
23605  Three choices are offered:
23606 \end_layout
23607
23608 \begin_deeper
23609 \begin_layout Itemize
23610 Inline:
23611  the MathML name space is defined for each formula (using the 
23612 \family typewriter
23613 xmlns
23614 \family default
23615  attribute on each formula)
23616 \end_layout
23617
23618 \begin_layout Itemize
23619 With the 
23620 \family typewriter
23621 m
23622 \family default
23623  prefix (default):
23624  the MathML name space is defined at the document level (using the 
23625 \family typewriter
23626 xmlns:m
23627 \family default
23628  attribute on the root element).
23629  Each MathML is prefixed with 
23630 \family typewriter
23631 m
23632 \family default
23633 :
23634  for instance,
23635  
23636 \family typewriter
23637 m:math
23638 \end_layout
23639
23640 \begin_layout Itemize
23641 With the 
23642 \family typewriter
23643 mml
23644 \family default
23645  prefix:
23646  similar to the 
23647 \family typewriter
23648 m
23649 \family default
23650  option,
23651  but with 
23652 \family typewriter
23653 mml
23654 \end_layout
23655
23656 \begin_layout Standard
23657 This option is especially useful if you want \SpecialChar LyX
23658  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
23659 \end_layout
23660
23661 \end_deeper
23662 \begin_layout Chapter
23663 The \SpecialChar LyX
23664  Server
23665 \end_layout
23666
23667 \begin_layout Section
23668 Introduction
23669 \end_layout
23670
23671 \begin_layout Standard
23672 The `\SpecialChar LyX
23673  server' allows other programs to talk to \SpecialChar LyX
23674 ,
23675  invoke \SpecialChar LyX
23676  commands,
23677  and retrieve information about the \SpecialChar LyX
23678  internal state.
23679  This is only intended for advanced users,
23680  but they should find it useful.
23681  It is by writing to the \SpecialChar LyX
23682  server,
23683  for example,
23684  that bibliography managers,
23685  such as JabRef,
23686  are able to 
23687 \begin_inset Quotes eld
23688 \end_inset
23689
23690 push
23691 \begin_inset Quotes erd
23692 \end_inset
23693
23694  citations to \SpecialChar LyX
23695 .
23696 \end_layout
23697
23698 \begin_layout Section
23699 Starting the \SpecialChar LyX
23700  Server
23701 \begin_inset CommandInset label
23702 LatexCommand label
23703 name "sec:Starting-the-Server"
23704
23705 \end_inset
23706
23707
23708 \end_layout
23709
23710 \begin_layout Standard
23711 The \SpecialChar LyX
23712  server works through the use of a pair of named pipes.
23713  These are usually located in 
23714 \begin_inset Flex Code
23715 status collapsed
23716
23717 \begin_layout Plain Layout
23718 UserDir
23719 \end_layout
23720
23721 \end_inset
23722
23723 ,
23724  (except on Windows,
23725  where 
23726 \emph on
23727 local
23728 \emph default
23729  named pipes are special objects located in 
23730 \begin_inset Flex Code
23731 status collapsed
23732
23733 \begin_layout Plain Layout
23734
23735 \backslash
23736
23737 \backslash
23738 .
23739 \backslash
23740 pipe
23741 \end_layout
23742
23743 \end_inset
23744
23745 ) and have the names 
23746 \begin_inset Quotes eld
23747 \end_inset
23748
23749
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754 lyxpipe.in
23755 \end_layout
23756
23757 \end_inset
23758
23759
23760 \begin_inset Quotes erd
23761 \end_inset
23762
23763  and 
23764 \begin_inset Quotes eld
23765 \end_inset
23766
23767
23768 \begin_inset Flex Code
23769 status collapsed
23770
23771 \begin_layout Plain Layout
23772 lyxpipe.out
23773 \end_layout
23774
23775 \end_inset
23776
23777
23778 \begin_inset Quotes erd
23779 \end_inset
23780
23781 .
23782  External programs write into 
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787 lyxpipe.in
23788 \end_layout
23789
23790 \end_inset
23791
23792  and read back data from 
23793 \begin_inset Flex Code
23794 status collapsed
23795
23796 \begin_layout Plain Layout
23797 lyxpipe.out
23798 \end_layout
23799
23800 \end_inset
23801
23802 .
23803  The stem of the pipe names can be defined in the 
23804 \family sans
23805 Tools\SpecialChar menuseparator
23806 Preferences\SpecialChar menuseparator
23807 Paths
23808 \family default
23809  dialog,
23810  for example 
23811 \begin_inset Flex Code
23812 status collapsed
23813
23814 \begin_layout Plain Layout
23815 "/home/myhome/lyxpipe"
23816 \end_layout
23817
23818 \end_inset
23819
23820 ,
23821  or 
23822 \begin_inset Flex Code
23823 status collapsed
23824
23825 \begin_layout Plain Layout
23826 "
23827 \backslash
23828
23829 \backslash
23830 .
23831 \backslash
23832 pipe
23833 \backslash
23834 lyxpipe"
23835 \end_layout
23836
23837 \end_inset
23838
23839  on Windows (where any working path instead of lyxpipe can be used,
23840  for example 
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 my
23854 \backslash
23855 lyx
23856 \backslash
23857 pipe"
23858 \end_layout
23859
23860 \end_inset
23861
23862  would also work).
23863  You 
23864 \emph on
23865 must
23866 \emph default
23867  configure this manually in order for the server to start.
23868 \end_layout
23869
23870 \begin_layout Standard
23871 \SpecialChar LyX
23872  will add the '
23873 \begin_inset Flex Code
23874 status collapsed
23875
23876 \begin_layout Plain Layout
23877 .in
23878 \end_layout
23879
23880 \end_inset
23881
23882 ' and '
23883 \begin_inset Flex Code
23884 status collapsed
23885
23886 \begin_layout Plain Layout
23887 .out
23888 \end_layout
23889
23890 \end_inset
23891
23892 ' to create the pipes.
23893  If one of the pipes already exists,
23894  \SpecialChar LyX
23895  will assume that another \SpecialChar LyX
23896  process is already running and will not start the server.
23897  On POSIX (Unix like) systems,
23898  if for some other reason,
23899  an unused 
23900 \begin_inset Quotes eld
23901 \end_inset
23902
23903 stale
23904 \begin_inset Quotes erd
23905 \end_inset
23906
23907  pipe is left in existence when \SpecialChar LyX
23908  closes,
23909  then \SpecialChar LyX
23910  will try to delete it.
23911  If this fails for some reason,
23912  you will need to delete the pipes manually and then restart \SpecialChar LyX
23913 .
23914  On Windows,
23915  pipes are deleted by the OS on program termination or crash,
23916  so 
23917 \begin_inset Quotes eld
23918 \end_inset
23919
23920 stale
23921 \begin_inset Quotes erd
23922 \end_inset
23923
23924  pipes should not be possible.
23925 \end_layout
23926
23927 \begin_layout Standard
23928 To have several \SpecialChar LyX
23929  processes with servers at the same time,
23930  you have to use different configurations,
23931  perhaps by using separate user directories,
23932  each with its own 
23933 \begin_inset Flex Code
23934 status collapsed
23935
23936 \begin_layout Plain Layout
23937 preferences
23938 \end_layout
23939
23940 \end_inset
23941
23942  file,
23943  for each process.
23944 \end_layout
23945
23946 \begin_layout Standard
23947 If you are developing a client program,
23948  you might find it useful to enable debugging information from the \SpecialChar LyX
23949  server.
23950  Do this by starting \SpecialChar LyX
23951  as 
23952 \begin_inset Flex Code
23953 status collapsed
23954
23955 \begin_layout Plain Layout
23956 lyx -dbg lyxserver
23957 \end_layout
23958
23959 \end_inset
23960
23961 .
23962 \end_layout
23963
23964 \begin_layout Standard
23965 You can find a complete example client written in C++ in the source distribution as 
23966 \begin_inset Flex Code
23967 status collapsed
23968
23969 \begin_layout Plain Layout
23970 development/lyxserver/server_monitor.cpp
23971 \end_layout
23972
23973 \end_inset
23974
23975 .
23976 \end_layout
23977
23978 \begin_layout Standard
23979 Another useful tool is the command-line based client found in 
23980 \begin_inset Flex Code
23981 status collapsed
23982
23983 \begin_layout Plain Layout
23984 src/client/lyxclient
23985 \end_layout
23986
23987 \end_inset
23988
23989 .
23990 \end_layout
23991
23992 \begin_layout Section
23993 Normal communication
23994 \end_layout
23995
23996 \begin_layout Standard
23997 To issue a \SpecialChar LyX
23998  call,
23999  the client writes a line of ASCII text into the input pipe.
24000  This line has the following format:
24001 \end_layout
24002
24003 \begin_layout Quote
24004 LYXCMD:
24005 \emph on
24006 clientname
24007 \emph default
24008 :
24009 \emph on
24010 function
24011 \emph default
24012 :
24013 \emph on
24014 argument
24015 \end_layout
24016
24017 \begin_layout Description
24018 clientname is a name that the client can choose arbitrarily.
24019  Its only use is that \SpecialChar LyX
24020  will echo it if it sends an answer—
24021 so a client can dispatch results from different requesters.
24022 \end_layout
24023
24024 \begin_layout Description
24025 function is the function you want \SpecialChar LyX
24026  to perform.
24027  It is the same as the commands you'd use in the minibuffer.
24028 \end_layout
24029
24030 \begin_layout Description
24031 argument is an optional argument which is meaningful only to some functions (for instance,
24032  the 
24033 \begin_inset Quotes eld
24034 \end_inset
24035
24036 self-insert
24037 \begin_inset Quotes erd
24038 \end_inset
24039
24040  LFUN will insert the argument as text at the cursor position).
24041 \end_layout
24042
24043 \begin_layout Standard
24044 The answer from \SpecialChar LyX
24045  will arrive in the output pipe and be of the form
24046 \end_layout
24047
24048 \begin_layout Quote
24049 INFO:
24050 \emph on
24051 clientname
24052 \emph default
24053 :
24054 \emph on
24055 function
24056 \emph default
24057 :
24058 \emph on
24059 data
24060 \end_layout
24061
24062 \begin_layout Standard
24063 where 
24064 \emph on
24065 clientname
24066 \emph default
24067  and 
24068 \emph on
24069 function
24070 \emph default
24071  are just echoed from the command request,
24072  while 
24073 \emph on
24074 data
24075 \emph default
24076  is more or less useful information filled according to how the command execution worked out.
24077  Some commands,
24078  such as 
24079 \begin_inset Quotes eld
24080 \end_inset
24081
24082 font-state
24083 \begin_inset Quotes erd
24084 \end_inset
24085
24086 ,
24087  will return information about the internal state of \SpecialChar LyX
24088 ,
24089  while other will return an empty data-response.
24090  This means that the command execution went fine.
24091 \end_layout
24092
24093 \begin_layout Standard
24094 In case of errors,
24095  the response from \SpecialChar LyX
24096  will have this form
24097 \end_layout
24098
24099 \begin_layout Quote
24100 ERROR:
24101 \emph on
24102 clientname
24103 \emph default
24104 :
24105 \emph on
24106 function
24107 \emph default
24108 :
24109 \emph on
24110 error message
24111 \end_layout
24112
24113 \begin_layout Standard
24114 where the 
24115 \emph on
24116 error message
24117 \emph default
24118  should contain an explanation of why the command failed.
24119 \end_layout
24120
24121 \begin_layout Standard
24122 Examples:
24123 \end_layout
24124
24125 \begin_layout LyX-Code
24126 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24127 \begin_inset Newline newline
24128 \end_inset
24129
24130 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24131 \begin_inset Newline newline
24132 \end_inset
24133
24134 read a <~/.lyxpipe.out
24135 \begin_inset Newline newline
24136 \end_inset
24137
24138 echo $a
24139 \end_layout
24140
24141 \begin_layout Subsection
24142 AppleScript (Mac OS X)
24143 \end_layout
24144
24145 \begin_layout Standard
24146 Since \SpecialChar LyX
24147  2.1,
24148  \SpecialChar LyX
24149  supports basic interactions with AppleScript for normal communication through the command run.
24150  This command takes a direct argument (the 
24151 \series bold
24152 function
24153 \series default
24154  to perform) and an optional argument.
24155  It either returns the output of the function or triggers an error with the error message and code.
24156 \end_layout
24157
24158 \begin_layout Standard
24159 Example:
24160 \end_layout
24161
24162 \begin_layout LyX-Code
24163 tell application "\SpecialChar LyX
24164 "
24165 \end_layout
24166
24167 \begin_layout LyX-Code
24168   try
24169 \end_layout
24170
24171 \begin_layout LyX-Code
24172     -- Stores the current file name into f
24173 \end_layout
24174
24175 \begin_layout LyX-Code
24176     set f to (run "server-get-filename" with argument "")
24177 \end_layout
24178
24179 \begin_layout LyX-Code
24180     on error the error_message number the error_number
24181 \end_layout
24182
24183 \begin_layout LyX-Code
24184       display dialog "Error:
24185  " & the error_number & ".
24186  " ¬
24187 \end_layout
24188
24189 \begin_layout LyX-Code
24190               & the error_message buttons {"OK"} default button 1
24191 \end_layout
24192
24193 \begin_layout LyX-Code
24194   end try
24195 \end_layout
24196
24197 \begin_layout LyX-Code
24198 end tell
24199 \end_layout
24200
24201 \begin_layout Section
24202 Notification
24203 \end_layout
24204
24205 \begin_layout Standard
24206 \SpecialChar LyX
24207  can notify clients of events going on asynchronously.
24208  Currently it will only do this if the user binds a key sequence with the function 
24209 \begin_inset Quotes eld
24210 \end_inset
24211
24212 notify
24213 \begin_inset Quotes erd
24214 \end_inset
24215
24216 .
24217  The format of the string \SpecialChar LyX
24218  sends is as follows:
24219 \end_layout
24220
24221 \begin_layout Quote
24222 \begin_inset Flex Code
24223 status collapsed
24224
24225 \begin_layout Plain Layout
24226 NOTIFY:
24227 \end_layout
24228
24229 \end_inset
24230
24231
24232 \emph on
24233 key-sequence
24234 \end_layout
24235
24236 \begin_layout Standard
24237 where 
24238 \emph on
24239 key-sequence
24240 \emph default
24241  is the printed representation of the key sequence that was actually typed by the user.
24242 \end_layout
24243
24244 \begin_layout Standard
24245 This mechanism can be used to extend \SpecialChar LyX
24246 's command set and implement macros.
24247  Bind some key sequence to 
24248 \begin_inset Quotes eld
24249 \end_inset
24250
24251 notify
24252 \begin_inset Quotes erd
24253 \end_inset
24254
24255 .
24256  Then start a client that listens on the output pipe,
24257  dispatches the command according to the sequence,
24258  and starts a function that may use \SpecialChar LyX
24259  calls and \SpecialChar LyX
24260  requests to issue a command or a series of commands to \SpecialChar LyX
24261 .
24262 \end_layout
24263
24264 \begin_layout Section
24265 The simple \SpecialChar LyX
24266  Server Protocol
24267 \end_layout
24268
24269 \begin_layout Standard
24270 \SpecialChar LyX
24271  implements a simple protocol that can be used for session management.
24272  All messages are of the form
24273 \end_layout
24274
24275 \begin_layout Quote
24276 LYXSRV:
24277 \emph on
24278 clientname
24279 \emph default
24280 :
24281 \emph on
24282 protocol message
24283 \end_layout
24284
24285 \begin_layout Standard
24286 where 
24287 \emph on
24288 protocol message
24289 \emph default
24290  can be 
24291 \begin_inset Quotes eld
24292 \end_inset
24293
24294 hello
24295 \begin_inset Quotes erd
24296 \end_inset
24297
24298  or 
24299 \begin_inset Quotes eld
24300 \end_inset
24301
24302 bye
24303 \begin_inset Quotes erd
24304 \end_inset
24305
24306 .
24307  If 
24308 \begin_inset Quotes eld
24309 \end_inset
24310
24311 hello
24312 \begin_inset Quotes erd
24313 \end_inset
24314
24315  is received from a client,
24316  \SpecialChar LyX
24317  will report back to inform the client that it's listening to it's messages,
24318  while 
24319 \begin_inset Quotes eld
24320 \end_inset
24321
24322 bye
24323 \begin_inset Quotes erd
24324 \end_inset
24325
24326  sent from \SpecialChar LyX
24327  will inform clients that \SpecialChar LyX
24328  is closing.
24329 \end_layout
24330
24331 \begin_layout Section
24332 Reverse DVI/PDF search
24333 \end_layout
24334
24335 \begin_layout Standard
24336 Some DVI/PDF viewers
24337 \begin_inset Foot
24338 status collapsed
24339
24340 \begin_layout Plain Layout
24341 The following viewers offer the reverse PDF search feature:
24342  Okular on KDE/Linux,
24343  Qpdfview on Unix,
24344  Skim on Mac OSX and SumatraPDF on Windows.
24345 \end_layout
24346
24347 \end_inset
24348
24349  provide 
24350 \emph on
24351 reverse search
24352 \emph default
24353  facility (also called 
24354 \emph on
24355 inverse search
24356 \emph default
24357 ).
24358  This means that you can tell \SpecialChar LyX
24359  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
24360  To achieve this,
24361  the viewer must be able to communicate with \SpecialChar LyX
24362 .
24363  This is done via the \SpecialChar LyX
24364  server either by using the named pipe (
24365 \emph on
24366 lyxpipe
24367 \emph default
24368 ),
24369  or the UNIX domain socket (
24370 \emph on
24371 lyxsocket
24372 \emph default
24373 ) that \SpecialChar LyX
24374  creates in its temporary directory (this is the way the 
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379 lyxclient
24380 \end_layout
24381
24382 \end_inset
24383
24384  program communicates with \SpecialChar LyX
24385 ).
24386  In some cases,
24387  you need a helper script that mediates between the viewer and \SpecialChar LyX
24388 ,
24389  in others,
24390  the viewer can communicate with \SpecialChar LyX
24391  directly.
24392  This depends on the selected viewer and on your operating system.
24393  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
24394  In what follows,
24395  we will thus describe how to setup reverse search for specific viewers.
24396  Before we turn to this,
24397  though,
24398  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
24399 \end_layout
24400
24401 \begin_layout Subsection
24402 Automatic setup
24403 \begin_inset CommandInset label
24404 LatexCommand label
24405 name "subsec:rev-search"
24406
24407 \end_inset
24408
24409
24410 \end_layout
24411
24412 \begin_layout Standard
24413 In most cases \SpecialChar LyX
24414  will do the work for you by pressing the following button in the toolbar:
24415  
24416 \begin_inset Info
24417 type  "icon"
24418 arg   "buffer-toggle-output-sync"
24419 \end_inset
24420
24421 .
24422  Alternatively,
24423  you can also enable the feature by checking 
24424 \family sans
24425 Synchronize with Output
24426 \family default
24427  in 
24428 \family sans
24429 Document\SpecialChar menuseparator
24430 Settings\SpecialChar menuseparator
24431 Output\SpecialChar menuseparator
24432 LaTeX
24433 \family default
24434 .
24435  In such a case \SpecialChar LyX
24436  will automatically insert the necessary Sync\SpecialChar TeX
24437  macro (for PDF) or load the srcltx package (for DVI) respectively.
24438  This option can be easily reached also on 
24439 \begin_inset Flex Code
24440 status collapsed
24441
24442 \begin_layout Plain Layout
24443 View/Update
24444 \end_layout
24445
24446 \end_inset
24447
24448  Toolbar.
24449 \end_layout
24450
24451 \begin_layout Standard
24452 If you need a different setting,
24453  you can select or input a custom macro from the drop down box just below 
24454 \family sans
24455 Document\SpecialChar menuseparator
24456 Settings\SpecialChar menuseparator
24457 Output\SpecialChar menuseparator
24458 Synchronize with Output
24459 \family default
24460 .
24461 \end_layout
24462
24463 \begin_layout Standard
24464 Note that the method 
24465 \begin_inset Flex Code
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469
24470 \backslash
24471 synctex=1
24472 \end_layout
24473
24474 \end_inset
24475
24476  enables gzip compression.
24477  If your viewer does not support it,
24478  you should instead use 
24479 \begin_inset Flex Code
24480 status collapsed
24481
24482 \begin_layout Plain Layout
24483
24484 \backslash
24485 synctex=-1
24486 \end_layout
24487
24488 \end_inset
24489
24490 .
24491 \end_layout
24492
24493 \begin_layout Standard
24494 Please also note that including the 
24495 \begin_inset Flex Code
24496 status collapsed
24497
24498 \begin_layout Plain Layout
24499 srcltx
24500 \end_layout
24501
24502 \end_inset
24503
24504  package or 
24505 \begin_inset Flex Code
24506 status collapsed
24507
24508 \begin_layout Plain Layout
24509 src-specials
24510 \end_layout
24511
24512 \end_inset
24513
24514  sometimes has an undesired impact on the typesetting.
24515  Thus,
24516  you should switch output synchronization off for the final typesetting if you use the 
24517 \begin_inset Flex Code
24518 status collapsed
24519
24520 \begin_layout Plain Layout
24521 srcltx
24522 \end_layout
24523
24524 \end_inset
24525
24526  package or 
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531 src-specials
24532 \end_layout
24533
24534 \end_inset
24535
24536 .
24537  
24538 \end_layout
24539
24540 \begin_layout Standard
24541 In case you need some more special settings that are not covered by the automatic settings,
24542  read the next section about how to set up output synchronization manually.
24543  If the automatic setup suits your needs,
24544  you can readily jump to section
24545 \begin_inset space ~
24546 \end_inset
24547
24548
24549 \begin_inset CommandInset ref
24550 LatexCommand ref
24551 reference "subsec:configuring-viewers"
24552 nolink "false"
24553
24554 \end_inset
24555
24556 ,
24557  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
24558 \end_layout
24559
24560 \begin_layout Subsection
24561 Manual setup
24562 \end_layout
24563
24564 \begin_layout Standard
24565 \SpecialChar LaTeX
24566  provides several different methods for reverse search.
24567  Some are built-in in the 
24568 \begin_inset Flex Code
24569 status collapsed
24570
24571 \begin_layout Plain Layout
24572 latex/pdflatex
24573 \end_layout
24574
24575 \end_inset
24576
24577  program,
24578  some are provided by external packages.
24579  Your choice depends on whether your \SpecialChar LaTeX
24580  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
24581  The available methods are described in the following.
24582 \end_layout
24583
24584 \begin_layout Subsubsection*
24585 Built-in DVI-search via src-specials (DVI only) 
24586 \end_layout
24587
24588 \begin_layout Standard
24589 This method provides the DVI file with the necessary information for reverse search.
24590  It is available in \SpecialChar LaTeX
24591  since quite some time (any somewhat recent \SpecialChar LaTeX
24592  distribution should include it),
24593  and it works reliably.
24594  To enable it,
24595  change the 
24596 \begin_inset Flex Noun
24597 status collapsed
24598
24599 \begin_layout Plain Layout
24600 La
24601 \family sans
24602 TeX
24603 \family default
24604  (plain)->DVI
24605 \end_layout
24606
24607 \end_inset
24608
24609  or 
24610 \begin_inset Flex Noun
24611 status collapsed
24612
24613 \begin_layout Plain Layout
24614 La
24615 \family sans
24616 TeX
24617 \family default
24618  (plain)->DraftDVI
24619 \end_layout
24620
24621 \end_inset
24622
24623  converter in 
24624 \family sans
24625 Preferences\SpecialChar menuseparator
24626 File Handling\SpecialChar menuseparator
24627 Converters
24628 \family default
24629  to 
24630 \begin_inset Flex Code
24631 status collapsed
24632
24633 \begin_layout Plain Layout
24634 latex -src-specials $$i
24635 \end_layout
24636
24637 \end_inset
24638
24639 .
24640  If this doesn't work,
24641  check if your \SpecialChar TeX
24642  engine needs different options (the syntax might differ in some distributions).
24643 \end_layout
24644
24645 \begin_layout Subsubsection*
24646 External Packages (PDFSync and scrltx) 
24647 \end_layout
24648
24649 \begin_layout Standard
24650 The packages 
24651 \emph on
24652 pdfsync
24653 \emph default
24654  and 
24655 \emph on
24656 scrltx
24657 \emph default
24658  provide reverse search facility for PDF output (via pdflatex) and DVI output,
24659  respectively.
24660  In order to enable it,
24661  load the packages in the \SpecialChar LyX
24662  preamble:
24663  
24664 \end_layout
24665
24666 \begin_layout Itemize
24667 \begin_inset Flex Code
24668 status collapsed
24669
24670 \begin_layout Plain Layout
24671
24672 \backslash
24673 usepackage{pdfsync}
24674 \end_layout
24675
24676 \end_inset
24677
24678  for reverse PDF search,
24679 \end_layout
24680
24681 \begin_layout Itemize
24682 \begin_inset Flex Code
24683 status collapsed
24684
24685 \begin_layout Plain Layout
24686
24687 \backslash
24688 usepackage[active]{srcltx}
24689 \end_layout
24690
24691 \end_inset
24692
24693  for reverse DVI search.
24694 \end_layout
24695
24696 \begin_layout Standard
24697 If you want to be able to perform both DVI and PDF reverse searches,
24698  you can also insert in the preamble the following lines
24699 \end_layout
24700
24701 \begin_layout LyX-Code
24702
24703 \backslash
24704 usepackage{ifpdf}
24705 \begin_inset Newline newline
24706 \end_inset
24707
24708
24709 \backslash
24710 ifpdf
24711 \begin_inset Newline newline
24712 \end_inset
24713
24714   
24715 \backslash
24716 usepackage{pdfsync}
24717 \begin_inset Newline newline
24718 \end_inset
24719
24720
24721 \backslash
24722 else
24723 \begin_inset Newline newline
24724 \end_inset
24725
24726   
24727 \backslash
24728 usepackage[active]{srcltx}
24729 \begin_inset Newline newline
24730 \end_inset
24731
24732
24733 \backslash
24734 fi
24735 \end_layout
24736
24737 \begin_layout Standard
24738 This way,
24739  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
24740 \end_layout
24741
24742 \begin_layout Standard
24743 Note that PDFSync might affect the output layout of your document.
24744  It is therefore advised to disable PDFsync for final documents.
24745 \end_layout
24746
24747 \begin_layout Subsubsection*
24748 Built-in reverse search via Sync\SpecialChar TeX
24749  (DVI and PDF) 
24750 \end_layout
24751
24752 \begin_layout Standard
24753 Recent versions of 
24754 \begin_inset Flex Code
24755 status collapsed
24756
24757 \begin_layout Plain Layout
24758 (pdf)latex
24759 \end_layout
24760
24761 \end_inset
24762
24763  have built-in support for both PDF and DVI reverse search.
24764  This so-called 
24765 \emph on
24766 Sync\SpecialChar TeX
24767
24768 \emph default
24769  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
24770 \emph on
24771 scr-specials
24772 \emph default
24773  approach.
24774  You need at least \SpecialChar TeX
24775 Live 2008 or a recent Mik\SpecialChar TeX
24776  distribution in order to use it.
24777 \begin_inset Foot
24778 status collapsed
24779
24780 \begin_layout Plain Layout
24781 For some reason,
24782  Mik\SpecialChar TeX
24783  does not understand/obey the command \SpecialChar LyX
24784  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
24785 \end_layout
24786
24787 \begin_layout Plain Layout
24788 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
24789  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
24790  by adding the -synctex=1 switch).
24791 \end_layout
24792
24793 \end_inset
24794
24795  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
24796  Skim on the Mac,
24797  SumatraPDF on Windows;
24798  see the next section for details) already provide Sync\SpecialChar TeX
24799  support.
24800 \end_layout
24801
24802 \begin_layout Standard
24803 To enable Sync\SpecialChar TeX
24804  for DVI output,
24805  change the 
24806 \begin_inset Flex Noun
24807 status collapsed
24808
24809 \begin_layout Plain Layout
24810 La
24811 \family sans
24812 TeX
24813 \family default
24814  (plain) -> DVI
24815 \end_layout
24816
24817 \end_inset
24818
24819  or 
24820 \begin_inset Flex Noun
24821 status collapsed
24822
24823 \begin_layout Plain Layout
24824 La
24825 \family sans
24826 TeX
24827 \family default
24828  (plain) -> DraftDVI
24829 \end_layout
24830
24831 \end_inset
24832
24833  converter in 
24834 \family sans
24835 Preferences\SpecialChar menuseparator
24836 File Handling\SpecialChar menuseparator
24837 Converters 
24838 \family default
24839 to 
24840 \begin_inset Flex Code
24841 status collapsed
24842
24843 \begin_layout Plain Layout
24844 latex -synctex=1 $$i
24845 \end_layout
24846
24847 \end_inset
24848
24849 ,
24850  and for PDF output,
24851  change the 
24852 \begin_inset Flex Noun
24853 status collapsed
24854
24855 \begin_layout Plain Layout
24856 La
24857 \family sans
24858 TeX
24859 \family default
24860  (pdflatex) -> PDF (pdflatex)
24861 \end_layout
24862
24863 \end_inset
24864
24865  converter to 
24866 \begin_inset Flex Code
24867 status collapsed
24868
24869 \begin_layout Plain Layout
24870 pdflatex -synctex=1 $$i
24871 \end_layout
24872
24873 \end_inset
24874
24875 .
24876  Should your viewer not be considered in the following description,
24877  or in case of missing success,
24878  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
24879 .
24880 \begin_inset Foot
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 Note that the option 
24885 \begin_inset Flex Code
24886 status collapsed
24887
24888 \begin_layout Plain Layout
24889 -synctex=1
24890 \end_layout
24891
24892 \end_inset
24893
24894  option enables gzip compression.
24895  If your viewer does not support it,
24896  you should instead use 
24897 \begin_inset Flex Code
24898 status collapsed
24899
24900 \begin_layout Plain Layout
24901 -synctex=-1
24902 \end_layout
24903
24904 \end_inset
24905
24906 .
24907 \end_layout
24908
24909 \end_inset
24910
24911
24912 \end_layout
24913
24914 \begin_layout Subsection
24915 Configuring and using specific viewers
24916 \begin_inset CommandInset label
24917 LatexCommand label
24918 name "subsec:configuring-viewers"
24919
24920 \end_inset
24921
24922
24923 \end_layout
24924
24925 \begin_layout Subsubsection*
24926 Xdvi (all platforms)
24927 \end_layout
24928
24929 \begin_layout Standard
24930 If you use 
24931 \begin_inset Flex Code
24932 status collapsed
24933
24934 \begin_layout Plain Layout
24935 xdvi
24936 \end_layout
24937
24938 \end_inset
24939
24940 ,
24941  you don't need to do anything else for performing a reverse DVI search,
24942  as \SpecialChar LyX
24943  already provides the necessary hooks for automatically using the 
24944 \begin_inset Flex Code
24945 status collapsed
24946
24947 \begin_layout Plain Layout
24948 lyxclient
24949 \end_layout
24950
24951 \end_inset
24952
24953  program.
24954  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
24955  respectively).
24956 \end_layout
24957
24958 \begin_layout Standard
24959 However,
24960  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
24961 ,
24962  simply change the DVI viewer in 
24963 \family sans
24964 Preferences\SpecialChar menuseparator
24965 File Handling\SpecialChar menuseparator
24966 File formats
24967 \family default
24968  to
24969 \begin_inset Foot
24970 status collapsed
24971
24972 \begin_layout Plain Layout
24973 On Mac OSX you have to use 
24974 \begin_inset Flex Code
24975 status collapsed
24976
24977 \begin_layout Plain Layout
24978 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
24979 \end_layout
24980
24981 \end_inset
24982
24983
24984 \end_layout
24985
24986 \end_inset
24987
24988  
24989 \begin_inset Flex Code
24990 status collapsed
24991
24992 \begin_layout Plain Layout
24993 xdvi -editor "lyxeditor.sh %f %l"
24994 \end_layout
24995
24996 \end_inset
24997
24998 ,
24999  where 
25000 \begin_inset Flex Code
25001 status collapsed
25002
25003 \begin_layout Plain Layout
25004 lyxeditor.sh
25005 \end_layout
25006
25007 \end_inset
25008
25009  is a suitable script.
25010  For example,
25011  a minimal shell script is the following one:
25012 \end_layout
25013
25014 \begin_layout LyX-Code
25015 #!/bin/sh
25016 \begin_inset Newline newline
25017 \end_inset
25018
25019 LYXPIPE="/path/to/lyxpipe"
25020 \begin_inset Newline newline
25021 \end_inset
25022
25023 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25024 \begin_inset Newline newline
25025 \end_inset
25026
25027 echo "$COMMAND" > "${LYXPIPE}".in || exit
25028 \begin_inset Newline newline
25029 \end_inset
25030
25031 read TMP < "${LYXPIPE}".out || exit
25032 \end_layout
25033
25034 \begin_layout Standard
25035 where 
25036 \begin_inset Flex Code
25037 status collapsed
25038
25039 \begin_layout Plain Layout
25040 /path/to/lyxpipe
25041 \end_layout
25042
25043 \end_inset
25044
25045  is the LyXServer pipe path specified in 
25046 \family sans
25047 Preferences\SpecialChar menuseparator
25048 Paths
25049 \family default
25050 .
25051 \begin_inset Foot
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055 In the 
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 development/tools
25061 \end_layout
25062
25063 \end_inset
25064
25065  folder of a source distribution you can find a 
25066 \begin_inset Flex Code
25067 status collapsed
25068
25069 \begin_layout Plain Layout
25070 lyxeditor
25071 \end_layout
25072
25073 \end_inset
25074
25075  script which is able to locate the 
25076 \emph on
25077 lyxpipe
25078 \emph default
25079  based on your preferences.
25080 \end_layout
25081
25082 \end_inset
25083
25084
25085 \end_layout
25086
25087 \begin_layout Subsubsection*
25088 MacDviX (Mac OSX)
25089 \end_layout
25090
25091 \begin_layout Standard
25092 At the end of 
25093 \begin_inset Flex Code
25094 status collapsed
25095
25096 \begin_layout Plain Layout
25097 /Applications/MacDviX_Folder/calleditor.script
25098 \end_layout
25099
25100 \end_inset
25101
25102 ,
25103  add the following lines:
25104 \end_layout
25105
25106 \begin_layout LyX-Code
25107 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
25108 \begin_inset Newline newline
25109 \end_inset
25110
25111 exit 1
25112 \end_layout
25113
25114 \begin_layout Standard
25115 Modify the lines accordingly if you install \SpecialChar LyX
25116  somewhere else than in the Applications folder.
25117 \end_layout
25118
25119 \begin_layout Standard
25120 Reverse search is triggered by Alt-click (OPTION-click).
25121 \end_layout
25122
25123 \begin_layout Subsubsection*
25124 Skim (Mac OSX)
25125 \end_layout
25126
25127 \begin_layout Standard
25128 Enter 
25129 \begin_inset Flex Code
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133 open -a Skim.app $$i
25134 \end_layout
25135
25136 \end_inset
25137
25138  to the viewer setting in 
25139 \family sans
25140 Preferences\SpecialChar menuseparator
25141 File Handling\SpecialChar menuseparator
25142 File formats\SpecialChar menuseparator
25143 PDF (pdflatex)
25144 \family default
25145 ,
25146  and then in 
25147 \family sans
25148 Skim\SpecialChar menuseparator
25149 Preferences\SpecialChar menuseparator
25150 Sync
25151 \family default
25152  choose 
25153 \family sans
25154 custom
25155 \family default
25156  preset and enter command 
25157 \begin_inset Flex Noun
25158 status collapsed
25159
25160 \begin_layout Plain Layout
25161 /Applications/\SpecialChar LyX
25162 .app/Contents/MacOS/lyxeditor
25163 \end_layout
25164
25165 \end_inset
25166
25167 .
25168 \end_layout
25169
25170 \begin_layout Standard
25171 Reverse search is triggered by COMMAND-SHIFT-click
25172 \end_layout
25173
25174 \begin_layout Subsubsection*
25175 Evince (GNOME)
25176 \end_layout
25177
25178 \begin_layout Standard
25179 Reverse search with evince does not work out of the box,
25180  but it can be achieved by means of some third party helper scripts.
25181  Please refer to 
25182 \begin_inset CommandInset href
25183 LatexCommand href
25184 target "https://wiki.lyx.org/LyX/SyncTeX"
25185 literal "false"
25186
25187 \end_inset
25188
25189  for details.
25190 \end_layout
25191
25192 \begin_layout Subsubsection*
25193 Okular (KDE)
25194 \end_layout
25195
25196 \begin_layout Standard
25197 Go to 
25198 \family sans
25199 Settings\SpecialChar menuseparator
25200 Configure Okular\SpecialChar menuseparator
25201 Editor
25202 \family default
25203  and select LyX
25204 \begin_inset Quotes erd
25205 \end_inset
25206
25207  as editor.
25208  This inserts the appropriate command (
25209 \begin_inset Flex Code
25210 status collapsed
25211
25212 \begin_layout Plain Layout
25213 lyxclient -g %f %l
25214 \end_layout
25215
25216 \end_inset
25217
25218 ).
25219 \end_layout
25220
25221 \begin_layout Standard
25222 Reverse search is triggered by SHIFT-click.
25223  Note that this only works if Okular is in 
25224 \begin_inset Quotes eld
25225 \end_inset
25226
25227 Browse
25228 \begin_inset Quotes erd
25229 \end_inset
25230
25231  mode (i.
25232 \begin_inset space \thinspace{}
25233 \end_inset
25234
25235 e.,
25236  the hand symbol is clicked).
25237 \end_layout
25238
25239 \begin_layout Subsubsection*
25240 Qpdfview (Unix)
25241 \end_layout
25242
25243 \begin_layout Standard
25244 Qpdfview supports Sync\SpecialChar TeX
25245  since version 0.3.5.
25246  Go to 
25247 \family sans
25248 Edit\SpecialChar menuseparator
25249 Settings\SpecialChar menuseparator
25250 Behavior
25251 \family default
25252 ,
25253  click on the input field of the 
25254 \begin_inset Quotes eld
25255 \end_inset
25256
25257 Source editor
25258 \begin_inset Quotes erd
25259 \end_inset
25260
25261  item and add the command 
25262 \begin_inset Flex Code
25263 status collapsed
25264
25265 \begin_layout Plain Layout
25266 lyxclient -g %1 %2
25267 \end_layout
25268
25269 \end_inset
25270
25271 .
25272 \end_layout
25273
25274 \begin_layout Standard
25275 Reverse search is triggered by double-click or,
25276  in more recent versions,
25277  by context menu.
25278 \end_layout
25279
25280 \begin_layout Subsubsection*
25281 YAP (Windows)
25282 \end_layout
25283
25284 \begin_layout Standard
25285 Launch yap,
25286  choose its 
25287 \family sans
25288 View\SpecialChar menuseparator
25289 Options
25290 \family default
25291  menu and select the 
25292 \begin_inset Quotes eld
25293 \end_inset
25294
25295 Inverse DVI Search
25296 \begin_inset Quotes erd
25297 \end_inset
25298
25299  tab.
25300  Click on the 
25301 \begin_inset Quotes eld
25302 \end_inset
25303
25304 New\SpecialChar ldots
25305
25306 \begin_inset Quotes erd
25307 \end_inset
25308
25309  button and,
25310  in the window that opens,
25311  enter 
25312 \begin_inset Quotes eld
25313 \end_inset
25314
25315 \SpecialChar LyX
25316  Editor
25317 \begin_inset Quotes erd
25318 \end_inset
25319
25320  (or any other name you like) in the 
25321 \begin_inset Quotes eld
25322 \end_inset
25323
25324 Name:
25325 \begin_inset Quotes erd
25326 \end_inset
25327
25328  field.
25329  Now click on the button labeled 
25330 \begin_inset Quotes eld
25331 \end_inset
25332
25333 \SpecialChar ldots
25334
25335 \begin_inset Quotes erd
25336 \end_inset
25337
25338  to open a file dialog and navigate to the directory containing the batch file 
25339 \begin_inset Flex Code
25340 status collapsed
25341
25342 \begin_layout Plain Layout
25343 lyxeditor.bat
25344 \end_layout
25345
25346 \end_inset
25347
25348  (see below).
25349  Select 
25350 \begin_inset Flex Code
25351 status collapsed
25352
25353 \begin_layout Plain Layout
25354 lyxeditor.bat
25355 \end_layout
25356
25357 \end_inset
25358
25359  and then specify the program arguments as 
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364 %f %l
25365 \end_layout
25366
25367 \end_inset
25368
25369 .
25370  The 
25371 \begin_inset Flex Code
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375 lyxeditor.bat
25376 \end_layout
25377
25378 \end_inset
25379
25380  wrapper is used for communicating with \SpecialChar LyX
25381  through the 
25382 \emph on
25383 lyxpipe
25384 \emph default
25385  and is as follows:
25386 \end_layout
25387
25388 \begin_layout LyX-Code
25389 @echo off
25390 \begin_inset Newline newline
25391 \end_inset
25392
25393 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
25394 \backslash
25395
25396 \backslash
25397 .
25398 \backslash
25399 pipe
25400 \backslash
25401 lyxpipe.in
25402 \begin_inset Newline newline
25403 \end_inset
25404
25405 type 
25406 \backslash
25407
25408 \backslash
25409 .
25410 \backslash
25411 pipe
25412 \backslash
25413 lyxpipe.out
25414 \end_layout
25415
25416 \begin_layout Standard
25417 Make sure that the \SpecialChar LyX
25418 Server pipe path you specified in \SpecialChar LyX
25419  is 
25420 \begin_inset Flex Code
25421 status collapsed
25422
25423 \begin_layout Plain Layout
25424
25425 \backslash
25426
25427 \backslash
25428 .
25429 \backslash
25430 pipe
25431 \backslash
25432 lyxpipe
25433 \end_layout
25434
25435 \end_inset
25436
25437 ,
25438  otherwise change the 
25439 \begin_inset Flex Code
25440 status collapsed
25441
25442 \begin_layout Plain Layout
25443 lyxeditor.bat
25444 \end_layout
25445
25446 \end_inset
25447
25448  wrapper accordingly.
25449 \end_layout
25450
25451 \begin_layout Standard
25452 In yap,
25453  reverse search is triggered by double-click.
25454 \end_layout
25455
25456 \begin_layout Subsubsection*
25457 SumatraPDF (Windows)
25458 \end_layout
25459
25460 \begin_layout Standard
25461 In order to use SumatraPDF for inverse search,
25462  enter 
25463 \begin_inset Flex Code
25464 status collapsed
25465
25466 \begin_layout Plain Layout
25467 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
25468 \end_layout
25469
25470 \end_inset
25471
25472  in the viewer setting in 
25473 \family sans
25474 Preferences\SpecialChar menuseparator
25475 File Handling\SpecialChar menuseparator
25476 File formats\SpecialChar menuseparator
25477 PDF (pdflatex)
25478 \family default
25479 ,
25480  where 
25481 \begin_inset Flex Code
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485 lyxeditor.bat
25486 \end_layout
25487
25488 \end_inset
25489
25490  is the previous wrapper.
25491  If SumatraPDF.exe is not in your command PATH,
25492  use its full file name.
25493 \end_layout
25494
25495 \begin_layout Standard
25496 Reverse search is triggered by double-click.
25497 \end_layout
25498
25499 \begin_layout Subsubsection*
25500 YAP (Cygwin)
25501 \end_layout
25502
25503 \begin_layout Standard
25504 First of all,
25505  make sure that yap is your default DVI viewer in the Windows environment,
25506  then launch it,
25507  choose its 
25508 \family sans
25509 View\SpecialChar menuseparator
25510 Options
25511 \family default
25512  menu and select the 
25513 \begin_inset Quotes eld
25514 \end_inset
25515
25516 Inverse DVI Search
25517 \begin_inset Quotes erd
25518 \end_inset
25519
25520  tab.
25521  Click on the 
25522 \begin_inset Quotes eld
25523 \end_inset
25524
25525 New\SpecialChar ldots
25526
25527 \begin_inset Quotes erd
25528 \end_inset
25529
25530  button and,
25531  in the window that opens,
25532  enter 
25533 \begin_inset Quotes eld
25534 \end_inset
25535
25536 \SpecialChar LyX
25537  Editor
25538 \begin_inset Quotes erd
25539 \end_inset
25540
25541  (or any other name you like) in the 
25542 \begin_inset Quotes eld
25543 \end_inset
25544
25545 Name:
25546 \begin_inset Quotes erd
25547 \end_inset
25548
25549  field.
25550  Now click on the button labeled 
25551 \begin_inset Quotes eld
25552 \end_inset
25553
25554 \SpecialChar ldots
25555
25556 \begin_inset Quotes erd
25557 \end_inset
25558
25559  to open a file dialog and navigate to the directory containing the 
25560 \begin_inset Flex Code
25561 status collapsed
25562
25563 \begin_layout Plain Layout
25564 lyxeditor.exe
25565 \end_layout
25566
25567 \end_inset
25568
25569  program (which is installed by default on Cygwin along with the \SpecialChar LyX
25570  executable).
25571  Select 
25572 \begin_inset Flex Code
25573 status collapsed
25574
25575 \begin_layout Plain Layout
25576 lyxeditor.exe
25577 \end_layout
25578
25579 \end_inset
25580
25581  and then specify the program arguments as 
25582 \begin_inset Flex Code
25583 status collapsed
25584
25585 \begin_layout Plain Layout
25586 -g %f %l
25587 \end_layout
25588
25589 \end_inset
25590
25591 .
25592  In this way,
25593  you will be using the 
25594 \emph on
25595 lyxsocket
25596 \emph default
25597  for communicating with \SpecialChar LyX
25598 .
25599  If,
25600  for whatever reason,
25601  you want to use the 
25602 \emph on
25603 lyxpipe
25604 \emph default
25605 ,
25606  omit the 
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 -g
25612 \end_layout
25613
25614 \end_inset
25615
25616  option and be sure to specify the \SpecialChar LyX
25617 Server pipe path in the \SpecialChar LyX
25618  preferences.
25619 \end_layout
25620
25621 \begin_layout Standard
25622 In yap,
25623  reverse search is triggered by double-click.
25624 \end_layout
25625
25626 \begin_layout Subsubsection*
25627 SumatraPDF (Cygwin)
25628 \end_layout
25629
25630 \begin_layout Standard
25631 In order to use SumatraPDF for inverse search,
25632  enter 
25633 \begin_inset Flex Code
25634 status collapsed
25635
25636 \begin_layout Plain Layout
25637 SumatraPDF -inverse-search "lyxeditor -g %f %l"
25638 \end_layout
25639
25640 \end_inset
25641
25642  in the viewer setting in 
25643 \family sans
25644 Preferences\SpecialChar menuseparator
25645 File Handling\SpecialChar menuseparator
25646 File formats\SpecialChar menuseparator
25647 PDF (pdflatex)
25648 \family default
25649 .
25650  If SumatraPDF.exe is not in your command PATH,
25651  use its full posix path.
25652  The 
25653 \begin_inset Flex Code
25654 status collapsed
25655
25656 \begin_layout Plain Layout
25657 -g
25658 \end_layout
25659
25660 \end_inset
25661
25662  enables communication via the 
25663 \emph on
25664 lyxsocket
25665 \emph default
25666 .
25667  Again,
25668  omit the 
25669 \begin_inset Flex Code
25670 status collapsed
25671
25672 \begin_layout Plain Layout
25673 -g
25674 \end_layout
25675
25676 \end_inset
25677
25678  option if you want to use the 
25679 \emph on
25680 lyxpipe
25681 \emph default
25682 ,
25683  and be sure to specify the \SpecialChar LyX
25684 Server pipe path in the \SpecialChar LyX
25685  preferences.
25686 \end_layout
25687
25688 \begin_layout Standard
25689 Reverse search is triggered by double-click.
25690 \end_layout
25691
25692 \begin_layout Section
25693 Forward search
25694 \end_layout
25695
25696 \begin_layout Standard
25697 Forward search is,
25698  as the name implies,
25699  in a sense the 
25700 \begin_inset Quotes eld
25701 \end_inset
25702
25703 opposite
25704 \begin_inset Quotes erd
25705 \end_inset
25706
25707  of reverse search.
25708  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
25709 .
25710  If forward search is set up (as described in what follows),
25711  you can put the cursor anywhere in your \SpecialChar LyX
25712  document,
25713  and hit 
25714 \family sans
25715 Navigate\SpecialChar menuseparator
25716 Forward search
25717 \family default
25718  (or select 
25719 \family sans
25720 Forward search
25721 \family default
25722  in the context menu via right mouse click),
25723  and then the viewer will jump to that position as well.
25724  This implies,
25725  of course,
25726  that your viewer supports this function.
25727 \end_layout
25728
25729 \begin_layout Standard
25730 To make forward search possible,
25731  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
25732  sources.
25733  This can be done via the methods described in the section 
25734 \begin_inset CommandInset ref
25735 LatexCommand ref
25736 reference "subsec:rev-search"
25737 nolink "false"
25738
25739 \end_inset
25740
25741 .
25742 \end_layout
25743
25744 \begin_layout Standard
25745 Additionally,
25746  you need to configure \SpecialChar LyX
25747  for using your viewers in 
25748 \family sans
25749 Tools\SpecialChar menuseparator
25750 Preferences\SpecialChar menuseparator
25751 Output\SpecialChar menuseparator
25752 General
25753 \family default
25754 .
25755  We provide a range of tested configurations for some viewers,
25756  which you can select from the drop down list.
25757  If none of these configurations suits you,
25758  you have to find out and enter a suitable configuration yourself.
25759  The definition syntax uses the following placeholders:
25760 \end_layout
25761
25762 \begin_layout Itemize
25763 \noindent
25764 \begin_inset Flex Code
25765 status collapsed
25766
25767 \begin_layout Plain Layout
25768 $$n
25769 \end_layout
25770
25771 \end_inset
25772
25773 :
25774  row number
25775 \end_layout
25776
25777 \begin_layout Itemize
25778 \noindent
25779 \begin_inset Flex Code
25780 status collapsed
25781
25782 \begin_layout Plain Layout
25783 $$t
25784 \end_layout
25785
25786 \end_inset
25787
25788 :
25789  name of the (temporary) exported .tex file (without path)
25790 \end_layout
25791
25792 \begin_layout Itemize
25793 \noindent
25794 \begin_inset Flex Code
25795 status collapsed
25796
25797 \begin_layout Plain Layout
25798 $$f
25799 \end_layout
25800
25801 \end_inset
25802
25803 :
25804  name of the (temporary) exported .tex file (including path)
25805 \end_layout
25806
25807 \begin_layout Itemize
25808 \noindent
25809 \begin_inset Flex Code
25810 status collapsed
25811
25812 \begin_layout Plain Layout
25813 $$o
25814 \end_layout
25815
25816 \end_inset
25817
25818 :
25819  name of the exported output file (either dvi or pdf,
25820  depending on which one exists in the temporary directory)
25821 \end_layout
25822
25823 \begin_layout Standard
25824 Note that only some of the viewers provide full and usable forward search functionality out of the box,
25825  among them yap,
25826  xdvi,
25827  okular
25828 \begin_inset Foot
25829 status collapsed
25830
25831 \begin_layout Plain Layout
25832 You might want to set 
25833 \begin_inset Flex Code
25834 status collapsed
25835
25836 \begin_layout Plain Layout
25837 okular --unique
25838 \end_layout
25839
25840 \end_inset
25841
25842  in 
25843 \family sans
25844 Tools\SpecialChar menuseparator
25845 Preferences\SpecialChar menuseparator
25846 File Handling\SpecialChar menuseparator
25847 File
25848 \begin_inset space ~
25849 \end_inset
25850
25851 Formats
25852 \end_layout
25853
25854 \end_inset
25855
25856 ,
25857  qpdfview,
25858  and SumatraPDF
25859 \begin_inset Foot
25860 status collapsed
25861
25862 \begin_layout Plain Layout
25863 SumatraPDF can also use DDE commands through the external program CMCDDE —
25864  downloadable from 
25865 \begin_inset CommandInset href
25866 LatexCommand href
25867 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
25868 literal "false"
25869
25870 \end_inset
25871
25872
25873 \end_layout
25874
25875 \end_inset
25876
25877 .
25878  Others,
25879  such as evince
25880 \begin_inset Foot
25881 status collapsed
25882
25883 \begin_layout Plain Layout
25884 Forward search with evince can be achieved by means of third party helper scripts.
25885  Please refer to 
25886 \begin_inset CommandInset href
25887 LatexCommand href
25888 target "https://wiki.lyx.org/LyX/SyncTeX"
25889 literal "false"
25890
25891 \end_inset
25892
25893  for details.
25894 \end_layout
25895
25896 \end_inset
25897
25898 ,
25899  require some extra tools in order to use forward search.
25900  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
25901  some other viewers – e.
25902 \begin_inset space \thinspace{}
25903 \end_inset
25904
25905 g.
25906  xpdf – allow at least to reload the document and jump to a specific page of the file,
25907  so you can at least navigate 
25908 \begin_inset Quotes eld
25909 \end_inset
25910
25911 near
25912 \begin_inset Quotes erd
25913 \end_inset
25914
25915 .
25916  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
25917  
25918 \end_layout
25919
25920 \begin_layout Standard
25921 Forward search works both with DVI and PDF output.
25922  \SpecialChar LyX
25923  simply checks which preview format you have used before (i.
25924 \begin_inset space \thinspace{}
25925 \end_inset
25926
25927 e.,
25928  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.\SpecialChar LyX
25929  Features needing Extra Software
25930 \end_layout
25931
25932 \begin_layout Section
25933 Checking \SpecialChar TeX
25934
25935 \end_layout
25936
25937 \begin_layout Standard
25938 by 
25939 \noun on
25940 Asger Alstrup
25941 \end_layout
25942
25943 \begin_layout Subsection
25944 Introduction
25945 \end_layout
25946
25947 \begin_layout Standard
25948 If you have the 
25949 \family typewriter
25950 chktex
25951 \family default
25952  program installed
25953 \begin_inset Foot
25954 status collapsed
25955
25956 \begin_layout Plain Layout
25957
25958 \family typewriter
25959 chktex
25960 \family default
25961  is not yet available when you are using the \SpecialChar LaTeX
25962  distribution MiK\SpecialChar TeX
25963 .
25964 \end_layout
25965
25966 \end_inset
25967
25968 ,
25969  you'll find in the 
25970 \family sans
25971 Tools
25972 \family default
25973  menu the entry:
25974  
25975 \family sans
25976 Check
25977 \begin_inset space ~
25978 \end_inset
25979
25980 TeX
25981 \family default
25982 .
25983  You can get 
25984 \family typewriter
25985 chktex
25986 \family default
25987  from CTAN,
25988 \begin_inset Newline newline
25989 \end_inset
25990
25991
25992 \begin_inset CommandInset href
25993 LatexCommand href
25994 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
25995 literal "false"
25996
25997 \end_inset
25998
25999 .
26000 \end_layout
26001
26002 \begin_layout Standard
26003 The 
26004 \family sans
26005 Chk\SpecialChar TeX
26006
26007 \family default
26008  package is a program that was written by 
26009 \begin_inset Flex Noun
26010 status collapsed
26011
26012 \begin_layout Plain Layout
26013 Jens T.
26014 \begin_inset space ~
26015 \end_inset
26016
26017 Berger Thielemann
26018 \end_layout
26019
26020 \end_inset
26021
26022  in frustration because some constructs in \SpecialChar LaTeX
26023  are sometimes non-intuitive,
26024  and easy to forget.
26025  The program runs over your \SpecialChar LaTeX
26026  file,
26027  checks the integrity of the file,
26028  and flags some common errors.
26029  In other technical words,
26030  it is 
26031 \family typewriter
26032 lint
26033 \family default
26034  for \SpecialChar LaTeX
26035 .
26036 \end_layout
26037
26038 \begin_layout Standard
26039 Well,
26040  what is a syntax checker doing in \SpecialChar LyX
26041  which is supposed to produce correct \SpecialChar LaTeX
26042  anyways?
26043  The answer is simple:
26044  Just as 
26045 \family typewriter
26046 Lint
26047 \family default
26048  not only checks the 
26049 \emph on
26050 syntax
26051 \emph default
26052  of C programs,
26053  but also does 
26054 \emph on
26055 semantic
26056 \emph default
26057  checks for type-errors,
26058  
26059 \family sans
26060 Chk\SpecialChar TeX
26061
26062 \family default
26063  catches some common 
26064 \emph on
26065 typographic
26066 \emph default
26067  errors,
26068  in addition to the syntactical ones.
26069  Specifically,
26070  
26071 \family sans
26072 Chk\SpecialChar TeX
26073
26074 \family default
26075  is capable of detecting several common errors,
26076  such as
26077 \end_layout
26078
26079 \begin_layout Itemize
26080 Ellipsis detection:
26081 \begin_inset Newline newline
26082 \end_inset
26083
26084 Use \SpecialChar ldots
26085  instead of ...
26086 \end_layout
26087
26088 \begin_layout Itemize
26089 No space in front of/after parenthesis:
26090 \begin_inset Newline newline
26091 \end_inset
26092
26093 ( wrong spacing )
26094 \end_layout
26095
26096 \begin_layout Itemize
26097 Enforcement of normal space after common abbreviations:
26098 \begin_inset Newline newline
26099 \end_inset
26100
26101 e.
26102 \begin_inset space \thinspace{}
26103 \end_inset
26104
26105 g.
26106 \begin_inset space \space{}
26107 \end_inset
26108
26109 is too wide spacing.
26110 \end_layout
26111
26112 \begin_layout Itemize
26113 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
26114 \begin_inset Newline newline
26115 \end_inset
26116
26117 This is a TEST.
26118  And this is wrong spacing.
26119 \end_layout
26120
26121 \begin_layout Itemize
26122 Space in front of labels and similar commands:
26123 \begin_inset Newline newline
26124 \end_inset
26125
26126 The label should stick right up to the text to avoid falling to a wrong page.
26127  
26128 \begin_inset CommandInset label
26129 LatexCommand label
26130 name "sec:chktex"
26131
26132 \end_inset
26133
26134  
26135 \begin_inset Foot
26136 status collapsed
26137
26138 \begin_layout Plain Layout
26139 This footnote is in danger of falling off to a wrong page
26140 \end_layout
26141
26142 \end_inset
26143
26144  The label is separated too much.
26145 \end_layout
26146
26147 \begin_layout Itemize
26148 Space in front of references,
26149  instead of hard spaces:
26150 \begin_inset Newline newline
26151 \end_inset
26152
26153 If you have bad luck,
26154  the text will break right between the referenced text and reference number,
26155  and that's a pity.
26156  See section 
26157 \begin_inset CommandInset ref
26158 LatexCommand ref
26159 reference "sec:chktex"
26160 nolink "false"
26161
26162 \end_inset
26163
26164 .
26165 \end_layout
26166
26167 \begin_layout Itemize
26168 Use of 
26169 \begin_inset Quotes eld
26170 \end_inset
26171
26172 x
26173 \begin_inset Quotes erd
26174 \end_inset
26175
26176  instead of 
26177 \begin_inset Formula $\times$
26178 \end_inset
26179
26180  between numbers:
26181 \begin_inset Newline newline
26182 \end_inset
26183
26184 2x2 looks cheap compared to 
26185 \begin_inset Formula $2\times2$
26186 \end_inset
26187
26188 .
26189 \end_layout
26190
26191 \begin_layout Standard
26192 and more \SpecialChar ldots
26193  It is an invaluable tool when you are 
26194 \begin_inset Quotes eld
26195 \end_inset
26196
26197 finishing up
26198 \begin_inset Quotes erd
26199 \end_inset
26200
26201  your document before printing,
26202  and you should run it right after the obligatory spelling check,
26203  and before you go fine tuning the typesetting.
26204 \end_layout
26205
26206 \begin_layout Subsection
26207 How to use it
26208 \end_layout
26209
26210 \begin_layout Standard
26211 If you have the program installed,
26212  usage is as simple as choosing 
26213 \family sans
26214 Tools\SpecialChar menuseparator
26215 Check
26216 \begin_inset space ~
26217 \end_inset
26218
26219 TeX
26220 \family default
26221 .
26222  This will make \SpecialChar LyX
26223  generate a \SpecialChar LaTeX
26224  file of your document,
26225  start 
26226 \family sans
26227 Chk\SpecialChar TeX
26228
26229 \family default
26230  to check it,
26231  and then make \SpecialChar LyX
26232  insert 
26233 \begin_inset Quotes eld
26234 \end_inset
26235
26236 error boxes
26237 \begin_inset Quotes erd
26238 \end_inset
26239
26240  with the warnings from 
26241 \family sans
26242 Chk\SpecialChar TeX
26243
26244 \family default
26245 ,
26246  if there were any.
26247  The warnings will be placed close to the point of the mistake,
26248  and you can quickly find them by using the 
26249 \family sans
26250 Navigate\SpecialChar menuseparator
26251 Error
26252 \family default
26253  menu item,
26254  or the shortcut key 
26255 \family sans
26256 C-g
26257 \family default
26258  from the default 
26259 \family typewriter
26260 cua
26261 \family default
26262  bind file.
26263  Open the error boxes by clicking on them with the mouse,
26264  or use the shortcut key 
26265 \family sans
26266 C-i
26267 \family default
26268  from 
26269 \family typewriter
26270 cua
26271 \family default
26272  bindings,
26273  or the corresponding 
26274 \family sans
26275 C-o
26276 \family default
26277  for the alternate 
26278 \family typewriter
26279 emacs
26280 \family default
26281  bind file.
26282  Read the warning and correct the mistake,
26283  if it is a mistake.
26284  If you have trouble understanding what the warning is about,
26285  you can safely ignore it.
26286  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
26287 \family sans
26288 Chk\SpecialChar TeX
26289
26290 \family default
26291 ,
26292  and this gap can make some warnings seem arcane or just plain silly.
26293 \end_layout
26294
26295 \begin_layout Standard
26296 This document is an excellent testing bed for the feature,
26297  and it should provide quite a few warnings for you to fiddle with.
26298  Since computers are only so smart,
26299  expect most of the warnings to be false alarms,
26300  though.
26301 \end_layout
26302
26303 \begin_layout Subsection
26304 How to fine tune it
26305 \end_layout
26306
26307 \begin_layout Standard
26308 Sometimes,
26309  you'll find that 
26310 \family sans
26311 Chk\SpecialChar TeX
26312
26313 \family default
26314  makes more noise than suits your mood.
26315  Then you can choose not to use it,
26316  wait until your mood changes,
26317  or try to customize 
26318 \family sans
26319 Chk\SpecialChar TeX
26320
26321 \family default
26322  to get better along with you.
26323 \end_layout
26324
26325 \begin_layout Standard
26326 Although 
26327 \family sans
26328 Chk\SpecialChar TeX
26329
26330 \family default
26331  
26332 \emph on
26333 is
26334 \emph default
26335  very configurable and extensible,
26336  you should not expect to solve all problems with 
26337 \family sans
26338 Chk\SpecialChar TeX
26339
26340 \family default
26341  in \SpecialChar LyX
26342  this way.
26343  Since \SpecialChar LyX
26344  has to generate a somewhat special \SpecialChar LaTeX
26345  file to be able to match the line numbers from the 
26346 \family sans
26347 Chk\SpecialChar TeX
26348
26349 \family default
26350  output
26351 \begin_inset Foot
26352 status collapsed
26353
26354 \begin_layout Plain Layout
26355 You can inspect the specific output from 
26356 \family sans
26357 chktex
26358 \family default
26359  by using 
26360 \family sans
26361 Document\SpecialChar menuseparator
26362 \SpecialChar LaTeX
26363
26364 \begin_inset space ~
26365 \end_inset
26366
26367 Log
26368 \family default
26369  right after a 
26370 \family sans
26371 chktex
26372 \family default
26373  run.
26374 \end_layout
26375
26376 \end_inset
26377
26378  to the internal document structure,
26379  some of the warnings will not appear correctly.
26380  There are two things you can do about this:
26381 \end_layout
26382
26383 \begin_layout Itemize
26384 Fine tune the 
26385 \family sans
26386 Chk\SpecialChar TeX
26387
26388 \family default
26389  invocation command line in 
26390 \family sans
26391 Tools\SpecialChar menuseparator
26392 Preferences\SpecialChar menuseparator
26393 Output\SpecialChar menuseparator
26394 LaTeX\SpecialChar menuseparator
26395 CheckTeX command
26396 \family default
26397 ,
26398  or the global 
26399 \family sans
26400 Chk\SpecialChar TeX
26401
26402 \family default
26403  installation configuration file (usually with the file 
26404 \family typewriter
26405 chktexrc
26406 \family default
26407 ).
26408  See below to learn what warnings can be enabled and disabled on the command line.
26409 \end_layout
26410
26411 \begin_layout Itemize
26412 Export your document as a raw \SpecialChar LaTeX
26413  file using 
26414 \family sans
26415 File\SpecialChar menuseparator
26416 Export\SpecialChar menuseparator
26417 \SpecialChar LaTeX
26418
26419 \family default
26420  and run 
26421 \family typewriter
26422 chktex
26423 \family default
26424  manually on that.
26425  Invoked in this way,
26426  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
26427 ,
26428  but with a little patience,
26429  you should be able to do it.
26430 \end_layout
26431
26432 \begin_layout Standard
26433 Here follows the warning messages that can be enabled and disabled in 
26434 \family sans
26435 Preferences
26436 \family default
26437 .
26438  Use 
26439 \family typewriter
26440 -n#
26441 \family default
26442  to disable a warning,
26443  and 
26444 \family typewriter
26445 -w#
26446 \family default
26447  to enable a warning.
26448  The emphasized entries are disabled by default,
26449  because the default is "
26450 \family typewriter
26451 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
26452 \family default
26453 ".
26454 \end_layout
26455
26456 \begin_layout Standard
26457 Notice that you should only use the options that enable and disable warnings,
26458  because \SpecialChar LyX
26459  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
26460 \family typewriter
26461 chktex
26462 \family default
26463 .
26464 \end_layout
26465
26466 \begin_layout Enumerate
26467
26468 \size small
26469 \emph on
26470 Command terminated with space.
26471 \end_layout
26472
26473 \begin_layout Enumerate
26474
26475 \size small
26476 Non-breaking space (
26477 \begin_inset Quotes eld
26478 \end_inset
26479
26480
26481 \family typewriter
26482 ~
26483 \family default
26484
26485 \begin_inset Quotes erd
26486 \end_inset
26487
26488 ) should have been used.
26489 \end_layout
26490
26491 \begin_layout Enumerate
26492
26493 \size small
26494 \emph on
26495 You should enclose the previous parenthesis with 
26496 \begin_inset Quotes eld
26497 \end_inset
26498
26499
26500 \family typewriter
26501 {}
26502 \family default
26503
26504 \begin_inset Quotes erd
26505 \end_inset
26506
26507 .
26508 \end_layout
26509
26510 \begin_layout Enumerate
26511
26512 \size small
26513 Italic correction (
26514 \begin_inset Quotes eld
26515 \end_inset
26516
26517
26518 \family typewriter
26519
26520 \backslash
26521 /
26522 \family default
26523
26524 \begin_inset Quotes erd
26525 \end_inset
26526
26527 ) found in non-italic buffer.
26528 \end_layout
26529
26530 \begin_layout Enumerate
26531
26532 \size small
26533 Italic correction (
26534 \begin_inset Quotes eld
26535 \end_inset
26536
26537
26538 \family typewriter
26539
26540 \backslash
26541 /
26542 \family default
26543
26544 \begin_inset Quotes erd
26545 \end_inset
26546
26547 ) found more than once.
26548 \end_layout
26549
26550 \begin_layout Enumerate
26551
26552 \size small
26553 \emph on
26554 No italic correction (
26555 \begin_inset Quotes eld
26556 \end_inset
26557
26558
26559 \family typewriter
26560
26561 \backslash
26562 /
26563 \family default
26564
26565 \begin_inset Quotes erd
26566 \end_inset
26567
26568 ) found.
26569 \end_layout
26570
26571 \begin_layout Enumerate
26572
26573 \size small
26574 Accent command 
26575 \begin_inset Quotes eld
26576 \end_inset
26577
26578
26579 \family typewriter
26580 cmd
26581 \family default
26582
26583 \begin_inset Quotes erd
26584 \end_inset
26585
26586  needs use of 
26587 \begin_inset Quotes eld
26588 \end_inset
26589
26590
26591 \family typewriter
26592 cmd
26593 \family default
26594
26595 \begin_inset Quotes erd
26596 \end_inset
26597
26598 .
26599 \end_layout
26600
26601 \begin_layout Enumerate
26602
26603 \size small
26604 Wrong length of dash may have been used.
26605 \end_layout
26606
26607 \begin_layout Enumerate
26608
26609 \size small
26610 \emph on
26611 \begin_inset Quotes eld
26612 \end_inset
26613
26614
26615 \family typewriter
26616 %s
26617 \family default
26618
26619 \begin_inset Quotes erd
26620 \end_inset
26621
26622  expected,
26623  found 
26624 \begin_inset Quotes eld
26625 \end_inset
26626
26627
26628 \family typewriter
26629 %s
26630 \family default
26631
26632 \begin_inset Quotes erd
26633 \end_inset
26634
26635 .
26636 \end_layout
26637
26638 \begin_layout Enumerate
26639
26640 \size small
26641 Solo 
26642 \begin_inset Quotes eld
26643 \end_inset
26644
26645
26646 \family typewriter
26647 %s
26648 \family default
26649
26650 \begin_inset Quotes erd
26651 \end_inset
26652
26653  found.
26654 \end_layout
26655
26656 \begin_layout Enumerate
26657
26658 \size small
26659 You should use 
26660 \begin_inset Quotes eld
26661 \end_inset
26662
26663
26664 \family typewriter
26665 %s
26666 \family default
26667
26668 \begin_inset Quotes erd
26669 \end_inset
26670
26671  to achieve an ellipsis.
26672 \end_layout
26673
26674 \begin_layout Enumerate
26675
26676 \size small
26677 Inter-word spacing (
26678 \begin_inset Quotes eld
26679 \end_inset
26680
26681
26682 \family typewriter
26683
26684 \backslash
26685
26686 \family default
26687  
26688 \begin_inset Quotes eld
26689 \end_inset
26690
26691 ) should perhaps be used.
26692 \end_layout
26693
26694 \begin_layout Enumerate
26695
26696 \size small
26697 Inter-sentence spacing (
26698 \begin_inset Quotes eld
26699 \end_inset
26700
26701
26702 \family typewriter
26703
26704 \backslash
26705 @
26706 \family default
26707
26708 \begin_inset Quotes erd
26709 \end_inset
26710
26711 ) should perhaps be used.
26712 \end_layout
26713
26714 \begin_layout Enumerate
26715
26716 \size small
26717 Could not find argument for command.
26718 \end_layout
26719
26720 \begin_layout Enumerate
26721
26722 \size small
26723 No match found for 
26724 \begin_inset Quotes eld
26725 \end_inset
26726
26727
26728 \family typewriter
26729 %s
26730 \family default
26731
26732 \begin_inset Quotes erd
26733 \end_inset
26734
26735 .
26736 \end_layout
26737
26738 \begin_layout Enumerate
26739
26740 \size small
26741 Math mode still on at end of \SpecialChar LaTeX
26742  file.
26743 \end_layout
26744
26745 \begin_layout Enumerate
26746
26747 \size small
26748 Number of 
26749 \begin_inset Quotes eld
26750 \end_inset
26751
26752
26753 \family typewriter
26754 char
26755 \family default
26756
26757 \begin_inset Quotes erd
26758 \end_inset
26759
26760  doesn't match the number of 
26761 \begin_inset Quotes eld
26762 \end_inset
26763
26764
26765 \family typewriter
26766 char
26767 \family default
26768
26769 \begin_inset Quotes erd
26770 \end_inset
26771
26772 .
26773 \end_layout
26774
26775 \begin_layout Enumerate
26776
26777 \size small
26778 You should use either 
26779 \family typewriter
26780
26781 \begin_inset Quotes eld
26782 \end_inset
26783
26784
26785 \family default
26786  or 
26787 \family typewriter
26788
26789 \begin_inset Quotes erd
26790 \end_inset
26791
26792
26793 \family default
26794  as an alternative to 
26795 \begin_inset Quotes eld
26796 \end_inset
26797
26798
26799 \family typewriter
26800 "
26801 \family default
26802
26803 \begin_inset Quotes erd
26804 \end_inset
26805
26806 .
26807 \end_layout
26808
26809 \begin_layout Enumerate
26810
26811 \size small
26812 You should use "
26813 \family typewriter
26814 '
26815 \family default
26816 " (ASCII 39) instead of "
26817 \family typewriter
26818 ´
26819 \family default
26820 " (ASCII 180).
26821 \end_layout
26822
26823 \begin_layout Enumerate
26824
26825 \size small
26826 User-specified pattern found.
26827 \end_layout
26828
26829 \begin_layout Enumerate
26830
26831 \size small
26832 This command might not be intended.
26833 \end_layout
26834
26835 \begin_layout Enumerate
26836
26837 \size small
26838 \emph on
26839 Comment displayed.
26840 \end_layout
26841
26842 \begin_layout Enumerate
26843
26844 \size small
26845 Either 
26846 \family typewriter
26847 ''
26848 \backslash
26849 ,'
26850 \family default
26851  or 
26852 \family typewriter
26853 '
26854 \backslash
26855 ,''
26856 \family default
26857  will look better.
26858 \end_layout
26859
26860 \begin_layout Enumerate
26861
26862 \size small
26863 Delete this space to maintain correct page references.
26864 \end_layout
26865
26866 \begin_layout Enumerate
26867
26868 \size small
26869 \emph on
26870 You might wish to put this between a pair of 
26871 \begin_inset Quotes eld
26872 \end_inset
26873
26874
26875 \family typewriter
26876 {}
26877 \family default
26878
26879 \begin_inset Quotes erd
26880 \end_inset
26881
26882 .
26883 \end_layout
26884
26885 \begin_layout Enumerate
26886
26887 \size small
26888 You ought to remove spaces in front of punctuation.
26889 \end_layout
26890
26891 \begin_layout Enumerate
26892
26893 \size small
26894 Could not execute \SpecialChar LaTeX
26895  command.
26896 \end_layout
26897
26898 \begin_layout Enumerate
26899
26900 \size small
26901 Don't use 
26902 \family typewriter
26903
26904 \backslash
26905 /
26906 \family default
26907  in front of small punctuation.
26908 \end_layout
26909
26910 \begin_layout Enumerate
26911
26912 \family typewriter
26913 \size small
26914 $
26915 \backslash
26916 times$
26917 \family default
26918  may look prettier here.
26919 \end_layout
26920
26921 \begin_layout Enumerate
26922
26923 \size small
26924 \emph on
26925 Multiple spaces detected in output.
26926 \end_layout
26927
26928 \begin_layout Enumerate
26929
26930 \size small
26931 This text may be ignored.
26932 \end_layout
26933
26934 \begin_layout Enumerate
26935
26936 \size small
26937 Use 
26938 \family typewriter
26939
26940 \begin_inset Quotes eld
26941 \end_inset
26942
26943
26944 \family default
26945  to begin quotation,
26946  not 
26947 \family typewriter
26948 '
26949 \family default
26950 .
26951 \end_layout
26952
26953 \begin_layout Enumerate
26954
26955 \size small
26956 Use 
26957 \family typewriter
26958 '
26959 \family default
26960  to end quotation,
26961  not 
26962 \family typewriter
26963
26964 \begin_inset Quotes eld
26965 \end_inset
26966
26967
26968 \family default
26969 .
26970 \end_layout
26971
26972 \begin_layout Enumerate
26973
26974 \size small
26975 Don't mix quotes.
26976 \end_layout
26977
26978 \begin_layout Enumerate
26979
26980 \size small
26981 You should perhaps use 
26982 \begin_inset Quotes eld
26983 \end_inset
26984
26985
26986 \family typewriter
26987 cmd
26988 \family default
26989
26990 \begin_inset Quotes erd
26991 \end_inset
26992
26993  instead.
26994 \end_layout
26995
26996 \begin_layout Enumerate
26997
26998 \size small
26999 You should put a space in front of/after parenthesis.
27000 \end_layout
27001
27002 \begin_layout Enumerate
27003
27004 \size small
27005 You should avoid spaces in front of/after parenthesis.
27006 \end_layout
27007
27008 \begin_layout Enumerate
27009
27010 \size small
27011 \emph on
27012 You should not use punctuation in front of/after quotes.
27013 \end_layout
27014
27015 \begin_layout Enumerate
27016
27017 \size small
27018 Double space found.
27019 \end_layout
27020
27021 \begin_layout Enumerate
27022
27023 \size small
27024 You should put punctuation outside inner/inside display math mode.
27025 \end_layout
27026
27027 \begin_layout Enumerate
27028
27029 \size small
27030 You ought to not use primitive \SpecialChar TeX
27031  in \SpecialChar LaTeX
27032  code.
27033 \end_layout
27034
27035 \begin_layout Enumerate
27036
27037 \size small
27038 You should remove spaces in front of 
27039 \begin_inset Quotes eld
27040 \end_inset
27041
27042
27043 \family typewriter
27044 %s
27045 \family default
27046
27047 \begin_inset Quotes erd
27048 \end_inset
27049
27050
27051 \end_layout
27052
27053 \begin_layout Enumerate
27054
27055 \size small
27056 \begin_inset Quotes eld
27057 \end_inset
27058
27059
27060 \family typewriter
27061 %s
27062 \family default
27063
27064 \begin_inset Quotes erd
27065 \end_inset
27066
27067  is normally not followed by 
27068 \begin_inset Quotes eld
27069 \end_inset
27070
27071
27072 \family typewriter
27073 %c
27074 \family default
27075
27076 \begin_inset Quotes erd
27077 \end_inset
27078
27079 .
27080 \end_layout
27081
27082 \begin_layout Standard
27083 In later versions of \SpecialChar LyX
27084 ,
27085  we hope to provide a more complete interface to this tool (and it's smaller cousin 
27086 \family typewriter
27087 lacheck
27088 \family default
27089 ) to exploit the full power of it.
27090  But it's not exactly useless as it is now:
27091  go try it on one of your existing documents of a certain length and be surprised.
27092 \end_layout
27093
27094 \begin_layout Section
27095 Version Control in \SpecialChar LyX
27096
27097 \end_layout
27098
27099 \begin_layout Standard
27100 by
27101 \noun on
27102  Lars Gullik Bjønnes 
27103 \noun default
27104 and 
27105 \noun on
27106 Pavel Sanda
27107 \end_layout
27108
27109 \begin_layout Subsection
27110 Introduction
27111 \end_layout
27112
27113 \begin_layout Standard
27114 \SpecialChar LyX
27115  supports some of the most basic RCS/CVS/SVN/GIT commands.
27116  If you need something a bit more sophisticated you will have to do that manually in a terminal or your favourite client.
27117 \end_layout
27118
27119 \begin_layout Standard
27120 Also note that CVS support is not as good as subversion support,
27121  so we advise using SVN instead.
27122  A good place to start learning Subversion is the SVN Book
27123 \begin_inset Foot
27124 status collapsed
27125
27126 \begin_layout Plain Layout
27127 \begin_inset CommandInset href
27128 LatexCommand href
27129 target "http://svnbook.red-bean.com/"
27130 literal "false"
27131
27132 \end_inset
27133
27134
27135 \end_layout
27136
27137 \end_inset
27138
27139 .
27140  In the case of RCS you should read 
27141 \begin_inset Quotes eld
27142 \end_inset
27143
27144 rcsintro
27145 \begin_inset Quotes erd
27146 \end_inset
27147
27148  (a man file,
27149  read it with 
27150 \family typewriter
27151 man rcsintro
27152 \family default
27153 ).
27154  This file describes all the basic features of RCS.
27155  You should especially notice the comment about a RCS directory,
27156  and the notion of a master RCS file (the file ending in 
27157 \family typewriter
27158 ,v
27159 \family default
27160 ).
27161 \end_layout
27162
27163 \begin_layout Standard
27164 Before you begin to use the version control features in \SpecialChar LyX
27165 ,
27166  you should be familiar with RCS/CVS/SVN/GIT usage.
27167  The implementation in \SpecialChar LyX
27168  assumes a recent version of the GNU RCS or CVS/SVN package —
27169  no guarantees are made for older versions.
27170  Most of the log messages are not currently displayed after operations —
27171  you can check them in the Messages pane if you are unsure.
27172  Regular users of version control will appreciate the VC toolbar,
27173  which can be enabled via 
27174 \family sans
27175 View\SpecialChar menuseparator
27176 Toolbars\SpecialChar menuseparator
27177 Version
27178 \begin_inset space ~
27179 \end_inset
27180
27181 Control
27182 \family default
27183 .
27184 \end_layout
27185
27186 \begin_layout Standard
27187 For introducing your own external commands consult 
27188 \begin_inset Flex Code
27189 status collapsed
27190
27191 \begin_layout Plain Layout
27192 vc-command
27193 \end_layout
27194
27195 \end_inset
27196
27197  in the manual 
27198 \emph on
27199 \SpecialChar LyX
27200  Functions
27201 \emph default
27202 .
27203 \end_layout
27204
27205 \begin_layout Standard
27206 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
27207 \family sans
27208 Document\SpecialChar menuseparator
27209 Compressed
27210 \family default
27211  if it is checked):
27212  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
27213  Compressed LyX documents are binary files,
27214  which cannot be merged by version control systems.
27215  Also to avoid unnecessary merge conflicts we advise to disable 
27216 \family sans
27217 Document\SpecialChar menuseparator
27218 Settings\SpecialChar menuseparator
27219 Output\SpecialChar menuseparator
27220 Save transient properties
27221 \family default
27222  when more users work on the same document.
27223 \end_layout
27224
27225 \begin_layout Subsection
27226 RCS commands in \SpecialChar LyX
27227
27228 \end_layout
27229
27230 \begin_layout Standard
27231 The following sections describe the RCS commands supported by \SpecialChar LyX
27232 .
27233  You can find them in the 
27234 \family sans
27235 File\SpecialChar menuseparator
27236 Version
27237 \begin_inset space ~
27238 \end_inset
27239
27240 Control
27241 \family default
27242  submenu.
27243  \SpecialChar LyX
27244  was tested against RCS 5.7/5.8/5.10.
27245 \end_layout
27246
27247 \begin_layout Subsubsection
27248
27249 \family sans
27250 Register
27251 \end_layout
27252
27253 \begin_layout Standard
27254 If your document is not under revision control,
27255  this is the only item shown in the menu.
27256  And if it is under revision control,
27257  the 
27258 \family sans
27259 Register
27260 \family default
27261  item is not visible.
27262  
27263 \end_layout
27264
27265 \begin_layout Standard
27266 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
27267  You are asked interactively to supply an initial description of the document.
27268  The document is now set in Read-Only mode and you have to 
27269 \family sans
27270 Check
27271 \begin_inset space ~
27272 \end_inset
27273
27274 Out
27275 \begin_inset space ~
27276 \end_inset
27277
27278 For
27279 \begin_inset space ~
27280 \end_inset
27281
27282 Edit
27283 \family default
27284 ,
27285  before making any changes to it.
27286  A document under revision control has a 
27287 \begin_inset Quotes eld
27288 \end_inset
27289
27290 [RCS:<version> <locker>]
27291 \begin_inset Quotes erd
27292 \end_inset
27293
27294  item tagged to the filename in the minibuffer.
27295 \end_layout
27296
27297 \begin_layout Standard
27298 RCS command that is run:
27299 \end_layout
27300
27301 \begin_layout LyX-Code
27302
27303 \family typewriter
27304 ci -q -u -i -t-"<initial description>" <file-name>
27305 \end_layout
27306
27307 \begin_layout Standard
27308 Read 
27309 \family typewriter
27310 man ci
27311 \family default
27312  to understand the switches.
27313  
27314 \end_layout
27315
27316 \begin_layout Subsubsection
27317
27318 \family sans
27319 Check In Changes
27320 \end_layout
27321
27322 \begin_layout Standard
27323 When you are finished editing a file,
27324  you check in your changes.
27325  When you do this,
27326  you are asked for a description of the changes.
27327  This is stored in the history log.
27328  The version number is bumped,
27329  your changes are applied to the master RCS file,
27330  the document is unlocked and set to Read-Only mode.
27331 \end_layout
27332
27333 \begin_layout Itemize
27334 RCS command:
27335  
27336 \family typewriter
27337 ci -q -u -m"<description>" <file-name>
27338 \end_layout
27339
27340 \begin_layout Subsubsection
27341
27342 \family sans
27343 Check Out For Edit
27344 \end_layout
27345
27346 \begin_layout Standard
27347 By doing this you lock the document so that only you can edit it.
27348  This will also make the document Read-Write only for you.
27349  You will usually continue editing for a while and when you are finished you check in your changes.
27350  The status line is changed to reflect that you have locked the file.
27351 \end_layout
27352
27353 \begin_layout Itemize
27354 RCS command:
27355  
27356 \family typewriter
27357 co -q -l <file-name>
27358 \end_layout
27359
27360 \begin_layout Subsubsection
27361
27362 \family sans
27363 Revert To Repository Version
27364 \end_layout
27365
27366 \begin_layout Standard
27367 This will discard all changes made to the document since the last check in.
27368  You get a warning before changes are discarded.
27369 \end_layout
27370
27371 \begin_layout Itemize
27372 RCS command:
27373  
27374 \family typewriter
27375 co -f -u<version> <file-name>
27376 \end_layout
27377
27378 \begin_layout Subsubsection
27379
27380 \family sans
27381 Copy
27382 \end_layout
27383
27384 \begin_layout Standard
27385 This will create a copy of the current document.
27386  Since RCS does not support copy operations natively,
27387  the version history is not preserved,
27388  and the copy is added as a new file.
27389  It requires a clean document without any changes since the last checkin.
27390  You are asked for a file name and a description of the copy operation.
27391  After that the copy is created,
27392  both locally and in the repository.
27393  If the parent directories of the copied and original document differ,
27394  all relative paths of included files of the copy are adjusted (like in 
27395 \family sans
27396 File\SpecialChar menuseparator
27397 Save As
27398 \family default
27399 \SpecialChar ldots
27400 ).
27401  Finally,
27402  the copy is loaded instead of the original document.
27403 \end_layout
27404
27405 \begin_layout Labeling
27406 \labelwidthstring 00.00.0000
27407 RCS
27408 \begin_inset space ~
27409 \end_inset
27410
27411 commands:
27412  
27413 \begin_inset space ~
27414 \end_inset
27415
27416
27417 \begin_inset Newline newline
27418 \end_inset
27419
27420 Copy 
27421 \begin_inset Flex Code
27422 status collapsed
27423
27424 \begin_layout Plain Layout
27425
27426 \family typewriter
27427 \begin_inset Quotes qld
27428 \end_inset
27429
27430 <file-name>
27431 \begin_inset Quotes qld
27432 \end_inset
27433
27434
27435 \end_layout
27436
27437 \end_inset
27438
27439  to 
27440 \begin_inset Flex Code
27441 status collapsed
27442
27443 \begin_layout Plain Layout
27444
27445 \family typewriter
27446 \begin_inset Quotes qld
27447 \end_inset
27448
27449 <new-file-name>
27450 \begin_inset Quotes qld
27451 \end_inset
27452
27453
27454 \end_layout
27455
27456 \end_inset
27457
27458
27459 \begin_inset Newline newline
27460 \end_inset
27461
27462
27463 \begin_inset Flex Code
27464 status collapsed
27465
27466 \begin_layout Plain Layout
27467 ci -q -u 
27468 \family typewriter
27469 -i 
27470 \begin_inset Quotes qld
27471 \end_inset
27472
27473 <new-file-name>
27474 \begin_inset Quotes qld
27475 \end_inset
27476
27477
27478 \end_layout
27479
27480 \end_inset
27481
27482
27483 \end_layout
27484
27485 \begin_layout Subsubsection
27486
27487 \family sans
27488 Undo Last Checkin
27489 \end_layout
27490
27491 \begin_layout Standard
27492 This makes as if the last check in never happened.
27493  No changes are made to the document loaded into \SpecialChar LyX
27494 ,
27495  but the last version is removed from the master RCS file.
27496 \end_layout
27497
27498 \begin_layout Itemize
27499 RCS command:
27500  
27501 \family typewriter
27502 rcs -o<version> <file-name>
27503 \end_layout
27504
27505 \begin_layout Subsubsection
27506
27507 \family sans
27508 Show History
27509 \end_layout
27510
27511 \begin_layout Standard
27512 This shows the complete history of the RCS document.
27513  The output of 
27514 \family typewriter
27515 rlog <file-name>
27516 \family default
27517  is shown in a browser.
27518  See 
27519 \family typewriter
27520 man rlog
27521 \family default
27522  for more info.
27523 \end_layout
27524
27525 \begin_layout Subsubsection
27526 Revision info
27527 \end_layout
27528
27529 \begin_layout Standard
27530 \SpecialChar LyX
27531  supports RCS version number,
27532  author name,
27533  date and time of last commit.
27534  All those are extracted from 
27535 \family typewriter
27536 rlog -r <file-name>
27537 \family default
27538 .
27539  See 
27540 \begin_inset CommandInset ref
27541 LatexCommand ref
27542 reference "subsec:VCS-Revision-Information"
27543 nolink "false"
27544
27545 \end_inset
27546
27547  for details.
27548 \end_layout
27549
27550 \begin_layout Subsection
27551 CVS commands in \SpecialChar LyX
27552
27553 \end_layout
27554
27555 \begin_layout Standard
27556 A subset of CVS operations is supported by \SpecialChar LyX
27557 .
27558  You can find the commands in the 
27559 \family sans
27560 File\SpecialChar menuseparator
27561 Version
27562 \begin_inset space ~
27563 \end_inset
27564
27565 Control
27566 \family default
27567  submenu.
27568  The version control system SVN is more powerful,
27569  so please use it instead of CVS if possible.
27570 \end_layout
27571
27572 \begin_layout Subsubsection
27573
27574 \family sans
27575 General CVS usage
27576 \end_layout
27577
27578 \begin_layout Standard
27579 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
27580  If you're using a client-server setup you may need to login before doing the first repository checkout.
27581 \end_layout
27582
27583 \begin_layout Standard
27584 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.
27585  Standard CVS repositories don't operate with a file locking mechanism.
27586  This may be surprising,
27587  but conflicts only occur if people disagree on the proper content of the same part of a document.
27588  So,
27589  if co-workers are used to communicate regularly,
27590  these conflicts occur rarely.
27591  If they don't communicate they have a fundamental problem anyway.
27592  Nevertheless some people like to work with so called 
27593 \begin_inset Quotes eld
27594 \end_inset
27595
27596 reserved checkouts
27597 \begin_inset Quotes erd
27598 \end_inset
27599
27600 .
27601  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.
27602  When the changes are checked in the working copy returns to readonly state.
27603  With \SpecialChar LyX
27604  one has to edit the 
27605 \begin_inset Flex Code
27606 status collapsed
27607
27608 \begin_layout Plain Layout
27609 .cvsrc
27610 \end_layout
27611
27612 \end_inset
27613
27614  file and add the line 
27615 \begin_inset Flex Code
27616 status collapsed
27617
27618 \begin_layout Plain Layout
27619 cvs -r
27620 \end_layout
27621
27622 \end_inset
27623
27624  to work with reserved checkouts.
27625  The benefit is the possibility to see who is using a writable copy of some document.
27626  It's not guaranteed only one user makes a copy writable.
27627 \end_layout
27628
27629 \begin_layout Standard
27630 \SpecialChar LyX
27631  tries to guess if you're using reserved or non-reserved checkouts.
27632  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.
27633  When a reserved checkout is detected you have to use 
27634 \begin_inset Flex Noun
27635 status collapsed
27636
27637 \begin_layout Plain Layout
27638 Check Out
27639 \end_layout
27640
27641 \end_inset
27642
27643  to make your working copy writable if it's readonly.
27644  After doing so the 
27645 \begin_inset Flex Noun
27646 status collapsed
27647
27648 \begin_layout Plain Layout
27649 Check In
27650 \end_layout
27651
27652 \end_inset
27653
27654  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
27655 \end_layout
27656
27657 \begin_layout Standard
27658 More information about CVS can be found here 
27659 \begin_inset Flex URL
27660 status collapsed
27661
27662 \begin_layout Plain Layout
27663
27664 http://www.nongnu.org/cvs
27665 \end_layout
27666
27667 \end_inset
27668
27669  and here 
27670 \begin_inset Flex URL
27671 status collapsed
27672
27673 \begin_layout Plain Layout
27674
27675 http://ximbiot.com/cvs
27676 \end_layout
27677
27678 \end_inset
27679
27680 .
27681 \end_layout
27682
27683 \begin_layout Standard
27684 Read 
27685 \family typewriter
27686 man cvs
27687 \family default
27688  to understand the sub-commands and the switches mentioned below.
27689 \end_layout
27690
27691 \begin_layout Subsubsection
27692
27693 \family sans
27694 Register
27695 \end_layout
27696
27697 \begin_layout Standard
27698 If your document is not under revision control,
27699  this is the only item shown in the menu.
27700  And if it is under revision control,
27701  the 
27702 \family sans
27703 Register
27704 \family default
27705  item is not visible.
27706  
27707 \end_layout
27708
27709 \begin_layout Standard
27710 This command registers in CVS your document 
27711 \begin_inset Flex Strong
27712 status collapsed
27713
27714 \begin_layout Plain Layout
27715
27716 \emph on
27717 only
27718 \end_layout
27719
27720 \end_inset
27721
27722  in the case you have already the documents directory under CVS control (in particular 
27723 \family typewriter
27724 CVS/Entries
27725 \family default
27726  file exists).
27727  This means you have to create or checkout the archive by yourself using external tools.
27728  (In case you forget that step \SpecialChar LyX
27729  registers the document with RCS.)
27730 \end_layout
27731
27732 \begin_layout Standard
27733 Then you are asked interactively to supply an initial description of the document.
27734  Don't forget that registered file is not yet checked in.
27735 \end_layout
27736
27737 \begin_layout Standard
27738 CVS command that is run:
27739  
27740 \family typewriter
27741 cvs -q add -m"<entered message>" "<file-name>"
27742 \end_layout
27743
27744 \begin_layout Standard
27745 The term 
27746 \family typewriter
27747 "<file-name>"
27748 \family default
27749  above and for all other CVS commands is an abbreviation for 
27750 \begin_inset Quotes eld
27751 \end_inset
27752
27753 change the current working directory to file location and use the file name without path component as argument
27754 \begin_inset Quotes erd
27755 \end_inset
27756
27757 .
27758 \end_layout
27759
27760 \begin_layout Subsubsection
27761
27762 \family sans
27763 Check In Changes
27764 \end_layout
27765
27766 \begin_layout Standard
27767 When you are finished editing a file,
27768  you commit your changes.
27769  When you do this and you had changed the document,
27770  you are asked for a description of the changes.
27771  After that changes are written to the repository.
27772  In case you didn't change the document and a reserved checkout is detected the reservation made on 
27773 \begin_inset Flex Noun
27774 status collapsed
27775
27776 \begin_layout Plain Layout
27777 Check Out
27778 \end_layout
27779
27780 \end_inset
27781
27782  is undone.
27783 \end_layout
27784
27785 \begin_layout Labeling
27786 \labelwidthstring 00.00.0000
27787 CVS
27788 \begin_inset space ~
27789 \end_inset
27790
27791 command:
27792  
27793 \begin_inset space ~
27794 \end_inset
27795
27796
27797 \begin_inset Newline newline
27798 \end_inset
27799
27800
27801 \begin_inset Flex Code
27802 status collapsed
27803
27804 \begin_layout Plain Layout
27805 cvs 
27806 \family typewriter
27807 -q commit -m"<description>" "<file-name>"
27808 \end_layout
27809
27810 \end_inset
27811
27812  or
27813 \begin_inset Newline newline
27814 \end_inset
27815
27816
27817 \begin_inset Flex Code
27818 status collapsed
27819
27820 \begin_layout Plain Layout
27821 cvs -q unedit 
27822 \family typewriter
27823 "<file-name>"
27824 \end_layout
27825
27826 \end_inset
27827
27828
27829 \end_layout
27830
27831 \begin_layout Subsubsection
27832
27833 \family sans
27834 Check Out Changes
27835 \end_layout
27836
27837 \begin_layout Standard
27838 When you are sharing a repository with others,
27839  you may have to incorporate their changes into your working copy.
27840 \end_layout
27841
27842 \begin_layout Standard
27843 CVS command:
27844  
27845 \family typewriter
27846 cvs -q update "<file-name>"
27847 \end_layout
27848
27849 \begin_layout Standard
27850 If a readonly checkout is detected the working copy is made writable and reserved.
27851 \end_layout
27852
27853 \begin_layout Standard
27854 CVS command:
27855  
27856 \family typewriter
27857 cvs -q edit "<file-name>"
27858 \end_layout
27859
27860 \begin_layout Subsubsection
27861
27862 \family sans
27863 Revert To Repository Version
27864 \end_layout
27865
27866 \begin_layout Standard
27867 This will discard all changes made to the document since the last check in.
27868  You get a warning before changes are discarded.
27869  Firstly the file is deleted,
27870  secondly CVS update command is run.
27871 \end_layout
27872
27873 \begin_layout Standard
27874 CVS command:
27875  
27876 \family typewriter
27877 cvs -q update "<file-name>"
27878 \end_layout
27879
27880 \begin_layout Standard
27881 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
27882 \end_layout
27883
27884 \begin_layout Standard
27885 CVS command:
27886  
27887 \family typewriter
27888 cvs -q unedit "<file-name>"
27889 \end_layout
27890
27891 \begin_layout Subsubsection
27892
27893 \family sans
27894 Copy
27895 \end_layout
27896
27897 \begin_layout Standard
27898 This will create a copy of the current document.
27899  Since CVS does not support copy operations natively,
27900  the version history is not preserved,
27901  and the copy is added as a new file.
27902  It requires a clean document without any changes since the last checkin.
27903  You are asked for a file name and a description of the copy operation.
27904  After that the copy is created,
27905  both locally and in the repository.
27906  If the parent directories of the copied and original document differ,
27907  all relative paths of included files of the copy are adjusted (like in 
27908 \family sans
27909 File\SpecialChar menuseparator
27910 Save As
27911 \family default
27912 \SpecialChar ldots
27913 ).
27914  Finally,
27915  the copy is loaded instead of the original document.
27916 \end_layout
27917
27918 \begin_layout Labeling
27919 \labelwidthstring 00.00.0000
27920 CVS
27921 \begin_inset space ~
27922 \end_inset
27923
27924 commands:
27925  
27926 \begin_inset space ~
27927 \end_inset
27928
27929
27930 \begin_inset Newline newline
27931 \end_inset
27932
27933 Copy 
27934 \begin_inset Flex Code
27935 status collapsed
27936
27937 \begin_layout Plain Layout
27938 "<file-name>"
27939 \end_layout
27940
27941 \end_inset
27942
27943  to 
27944 \begin_inset Flex Code
27945 status collapsed
27946
27947 \begin_layout Plain Layout
27948 "<new-file-name>"
27949 \end_layout
27950
27951 \end_inset
27952
27953
27954 \begin_inset Newline newline
27955 \end_inset
27956
27957
27958 \begin_inset Flex Code
27959 status collapsed
27960
27961 \begin_layout Plain Layout
27962 cvs -q add "<new-file-name>"
27963 \end_layout
27964
27965 \end_inset
27966
27967
27968 \end_layout
27969
27970 \begin_layout Subsubsection
27971
27972 \family sans
27973 Rename
27974 \end_layout
27975
27976 \begin_layout Standard
27977 This will rename the current document.
27978  Since CVS does not support rename operations natively,
27979  the version history is not preserved,
27980  the renamed document is added as a new file,
27981  and the original document is deleted.
27982  It requires a clean document without any changes since the last checkin.
27983  You are asked for a file name and a description of the rename operation.
27984  After that the document is renamed,
27985  both locally and in the repository.
27986  If the parent directories of the new and old file names differ,
27987  all relative paths of included files are adjusted (like in 
27988 \family sans
27989 File\SpecialChar menuseparator
27990 Save As
27991 \family default
27992 \SpecialChar ldots
27993 ).
27994  Finally,
27995  the document is reloaded using the new name.
27996 \end_layout
27997
27998 \begin_layout Labeling
27999 \labelwidthstring 00.00.0000
28000 CVS
28001 \begin_inset space ~
28002 \end_inset
28003
28004 commands:
28005  
28006 \begin_inset space ~
28007 \end_inset
28008
28009
28010 \begin_inset Newline newline
28011 \end_inset
28012
28013 Rename 
28014 \begin_inset Flex Code
28015 status collapsed
28016
28017 \begin_layout Plain Layout
28018 "<file-name>"
28019 \end_layout
28020
28021 \end_inset
28022
28023  to 
28024 \begin_inset Flex Code
28025 status collapsed
28026
28027 \begin_layout Plain Layout
28028 "<new-file-name>"
28029 \end_layout
28030
28031 \end_inset
28032
28033
28034 \begin_inset Newline newline
28035 \end_inset
28036
28037
28038 \begin_inset Flex Code
28039 status collapsed
28040
28041 \begin_layout Plain Layout
28042 cvs -q add "<new-file-name>"
28043 \end_layout
28044
28045 \end_inset
28046
28047
28048 \begin_inset Newline newline
28049 \end_inset
28050
28051
28052 \begin_inset Flex Code
28053 status collapsed
28054
28055 \begin_layout Plain Layout
28056 cvs -q remove "<file-name>"
28057 \end_layout
28058
28059 \end_inset
28060
28061
28062 \end_layout
28063
28064 \begin_layout Subsubsection
28065 Update of the local directory checkout from repository
28066 \end_layout
28067
28068 \begin_layout Standard
28069 Once your documents gets more complex,
28070  containing sub-documents and pictures,
28071  including external 
28072 \begin_inset Flex Code
28073 status collapsed
28074
28075 \begin_layout Plain Layout
28076 .tex
28077 \end_layout
28078
28079 \end_inset
28080
28081  files and so on using version control becomes more complicated.
28082  \SpecialChar LyX
28083  supports updating the whole tree in which resides the document.
28084  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.
28085  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28086  It's good practice anyway to store multipart documents in an extra directory.
28087 \end_layout
28088
28089 \begin_layout Standard
28090 The 
28091 \begin_inset Flex Code
28092 status collapsed
28093
28094 \begin_layout Plain Layout
28095 Update local directory from repository
28096 \end_layout
28097
28098 \end_inset
28099
28100  command updates the whole directory.
28101  If local changes are detected user is warned before update starts.
28102  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
28103  You have to review and correct the result of the merge.
28104  You'll find the conflicts enclosed in pairs of 
28105 \begin_inset Flex Code
28106 status collapsed
28107
28108 \begin_layout Plain Layout
28109 <<<<<<<
28110 \end_layout
28111
28112 \end_inset
28113
28114  and 
28115 \begin_inset Flex Code
28116 status collapsed
28117
28118 \begin_layout Plain Layout
28119 >>>>>>>
28120 \end_layout
28121
28122 \end_inset
28123
28124  separated by 
28125 \begin_inset Flex Code
28126 status collapsed
28127
28128 \begin_layout Plain Layout
28129 =======
28130 \end_layout
28131
28132 \end_inset
28133
28134 .
28135  The first part is your version as before the update operation with the document name prepended.
28136  The second one is the repository version with the version number after the sequence of 
28137 \begin_inset Flex Code
28138 status collapsed
28139
28140 \begin_layout Plain Layout
28141 >
28142 \end_layout
28143
28144 \end_inset
28145
28146  signs.
28147 \end_layout
28148
28149 \begin_layout Labeling
28150 \labelwidthstring 00.00.0000
28151 CVS
28152 \begin_inset space ~
28153 \end_inset
28154
28155 commands:
28156  
28157 \begin_inset space ~
28158 \end_inset
28159
28160
28161 \begin_inset Newline newline
28162 \end_inset
28163
28164
28165 \begin_inset Flex Code
28166 status collapsed
28167
28168 \begin_layout Plain Layout
28169 cd $path;
28170  cvs diff 
28171 \family typewriter
28172 "."
28173 \end_layout
28174
28175 \end_inset
28176
28177  (Ask if changes are detected.)
28178 \begin_inset Newline newline
28179 \end_inset
28180
28181
28182 \begin_inset Flex Code
28183 status collapsed
28184
28185 \begin_layout Plain Layout
28186 cd $path;
28187  cvs -q update 
28188 \family typewriter
28189 "."
28190 \end_layout
28191
28192 \end_inset
28193
28194
28195 \end_layout
28196
28197 \begin_layout Standard
28198 where 
28199 \begin_inset Flex Code
28200 status collapsed
28201
28202 \begin_layout Plain Layout
28203 $path
28204 \end_layout
28205
28206 \end_inset
28207
28208  stands for the path to the document.
28209 \end_layout
28210
28211 \begin_layout Subsubsection
28212
28213 \family sans
28214 Show History
28215 \end_layout
28216
28217 \begin_layout Standard
28218 This shows the complete history of the CVS document.
28219  The output of 
28220 \family typewriter
28221 cvs log "<file-name>"
28222 \family default
28223  is shown in a browser.
28224 \end_layout
28225
28226 \begin_layout Subsubsection
28227 Revision info
28228 \end_layout
28229
28230 \begin_layout Standard
28231 \SpecialChar LyX
28232  supports CVS version number,
28233  author name,
28234  date and time of last commit.
28235  All those are extracted from 
28236 \family typewriter
28237 cvs log -r <file-name>
28238 \family default
28239 .
28240  See 
28241 \begin_inset CommandInset ref
28242 LatexCommand ref
28243 reference "subsec:VCS-Revision-Information"
28244 nolink "false"
28245
28246 \end_inset
28247
28248  for details.
28249 \end_layout
28250
28251 \begin_layout Subsection
28252 SVN commands in \SpecialChar LyX
28253
28254 \end_layout
28255
28256 \begin_layout Standard
28257 SVN is now partially supported by \SpecialChar LyX
28258 .
28259  You can find the commands in the 
28260 \family sans
28261 File\SpecialChar menuseparator
28262 Version
28263 \begin_inset space ~
28264 \end_inset
28265
28266 Control
28267 \family default
28268  submenu.
28269  Please note that if you use password protected access to repository via ssh,
28270  you will be asked in terminal window.
28271  \SpecialChar LyX
28272  was tested against SVN 1.5,
28273  1.6,
28274  1.7 and 1.8
28275 \begin_inset Foot
28276 status collapsed
28277
28278 \begin_layout Plain Layout
28279 Most of the commands will work with 1.4 too,
28280  see 
28281 \begin_inset CommandInset ref
28282 LatexCommand ref
28283 reference "subsec:SVN-Repo-Update"
28284 nolink "false"
28285
28286 \end_inset
28287
28288 .
28289  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
28290 \end_layout
28291
28292 \end_inset
28293
28294
28295 \end_layout
28296
28297 \begin_layout Subsubsection
28298
28299 \family sans
28300 Register
28301 \end_layout
28302
28303 \begin_layout Standard
28304 If your document is not under revision control,
28305  this is the only item shown in the menu.
28306  And if it is under revision control,
28307  the 
28308 \family sans
28309 Register
28310 \family default
28311  item is not visible.
28312 \end_layout
28313
28314 \begin_layout Standard
28315 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
28316 \family typewriter
28317 .svn/entries
28318 \family default
28319  file exists).
28320  This means you have to checkout the archive by yourself.
28321 \end_layout
28322
28323 \begin_layout Standard
28324 Then you are asked interactively to supply an initial description of the document.
28325  Don't forget that registered file is not yet commited.
28326 \end_layout
28327
28328 \begin_layout Standard
28329 SVN command that is run:
28330  
28331 \family typewriter
28332 svn add -q 
28333 \begin_inset Quotes qld
28334 \end_inset
28335
28336 <file-name>
28337 \begin_inset Quotes qld
28338 \end_inset
28339
28340
28341 \end_layout
28342
28343 \begin_layout Standard
28344 Read 
28345 \family typewriter
28346 man svn
28347 \family default
28348  to understand the switches.
28349 \end_layout
28350
28351 \begin_layout Subsubsection
28352
28353 \family sans
28354 Check In Changes
28355 \end_layout
28356
28357 \begin_layout Standard
28358 When you are finished editing a file,
28359  you commit your changes.
28360  When you do this,
28361  you are asked for a description of the changes.
28362  After that changes are commited.
28363 \end_layout
28364
28365 \begin_layout Standard
28366 SVN command:
28367 \begin_inset Foot
28368 status collapsed
28369
28370 \begin_layout Plain Layout
28371 In case locking is not enabled.
28372  See Section 
28373 \begin_inset CommandInset ref
28374 LatexCommand ref
28375 reference "subsec:SVN-File-Locking"
28376 nolink "false"
28377
28378 \end_inset
28379
28380 .
28381 \end_layout
28382
28383 \end_inset
28384
28385  
28386 \family typewriter
28387 svn commit -q -m"<description>" <file-name>
28388 \end_layout
28389
28390 \begin_layout Subsubsection
28391
28392 \family sans
28393 Check Out For Edit
28394 \end_layout
28395
28396 \begin_layout Standard
28397 Updates the changes of this file from the repository.
28398  Be sure you understand SVN merging and conflicts resolving before using this function,
28399  because all conflicts has to be resolved manually by you!
28400 \end_layout
28401
28402 \begin_layout Standard
28403 SVN command:
28404 \begin_inset Foot
28405 status collapsed
28406
28407 \begin_layout Plain Layout
28408 Ditto.
28409 \end_layout
28410
28411 \end_inset
28412
28413  
28414 \family typewriter
28415 svn update --non-interactive 
28416 \begin_inset Quotes qld
28417 \end_inset
28418
28419 <file-name>
28420 \begin_inset Quotes qld
28421 \end_inset
28422
28423
28424 \end_layout
28425
28426 \begin_layout Subsubsection
28427
28428 \family sans
28429 Revert To Repository Version
28430 \end_layout
28431
28432 \begin_layout Standard
28433 This will discard all changes made to the document since the last check in.
28434  You get a warning before changes are discarded.
28435 \end_layout
28436
28437 \begin_layout Standard
28438 SVN command:
28439  
28440 \family typewriter
28441 svn revert -q 
28442 \begin_inset Quotes qld
28443 \end_inset
28444
28445 <file-name>
28446 \begin_inset Quotes qld
28447 \end_inset
28448
28449
28450 \end_layout
28451
28452 \begin_layout Subsubsection
28453
28454 \family sans
28455 Copy
28456 \end_layout
28457
28458 \begin_layout Standard
28459 This will create a copy of the current document including the version history.
28460  It requires a clean document without any changes since the last checkin.
28461  You are asked for a file name and a description of the copy operation.
28462  After that the copy is created,
28463  both locally and in the repository.
28464  If the parent directories of the copied and original document differ,
28465  all relative paths of included files of the copy are adjusted (like in 
28466 \family sans
28467 File\SpecialChar menuseparator
28468 Save As
28469 \family default
28470 \SpecialChar ldots
28471 ).
28472  Finally,
28473  the copy is loaded instead of the original document.
28474 \end_layout
28475
28476 \begin_layout Labeling
28477 \labelwidthstring 00.00.0000
28478 SVN
28479 \begin_inset space ~
28480 \end_inset
28481
28482 commands:
28483  
28484 \begin_inset space ~
28485 \end_inset
28486
28487
28488 \begin_inset Newline newline
28489 \end_inset
28490
28491
28492 \begin_inset Flex Code
28493 status collapsed
28494
28495 \begin_layout Plain Layout
28496 svn copy -q 
28497 \family typewriter
28498
28499 \begin_inset Quotes qld
28500 \end_inset
28501
28502 <file-name>
28503 \begin_inset Quotes qld
28504 \end_inset
28505
28506  
28507 \begin_inset Quotes qld
28508 \end_inset
28509
28510 <new-file-name>
28511 \begin_inset Quotes qld
28512 \end_inset
28513
28514
28515 \end_layout
28516
28517 \end_inset
28518
28519
28520 \begin_inset Newline newline
28521 \end_inset
28522
28523
28524 \begin_inset Flex Code
28525 status collapsed
28526
28527 \begin_layout Plain Layout
28528 svn commit
28529 \end_layout
28530
28531 \end_inset
28532
28533
28534 \end_layout
28535
28536 \begin_layout Subsubsection
28537
28538 \family sans
28539 Rename
28540 \end_layout
28541
28542 \begin_layout Standard
28543 This will rename the current document including the version history.
28544  It requires a clean document without any changes since the last checkin.
28545  You are asked for a file name and a description of the rename operation.
28546  After that the document is renamed,
28547  both locally and in the repository.
28548  If the parent directories of the new and old file names differ,
28549  all relative paths of included files are adjusted (like in 
28550 \family sans
28551 File\SpecialChar menuseparator
28552 Save As
28553 \family default
28554 \SpecialChar ldots
28555 ).
28556  Finally,
28557  the document is reloaded using the new name.
28558 \end_layout
28559
28560 \begin_layout Labeling
28561 \labelwidthstring 00.00.0000
28562 SVN
28563 \begin_inset space ~
28564 \end_inset
28565
28566 commands:
28567  
28568 \begin_inset space ~
28569 \end_inset
28570
28571
28572 \begin_inset Newline newline
28573 \end_inset
28574
28575
28576 \begin_inset Flex Code
28577 status collapsed
28578
28579 \begin_layout Plain Layout
28580 svn move -q 
28581 \family typewriter
28582
28583 \begin_inset Quotes qld
28584 \end_inset
28585
28586 <file-name>
28587 \begin_inset Quotes qld
28588 \end_inset
28589
28590  
28591 \begin_inset Quotes qld
28592 \end_inset
28593
28594 <new-file-name>
28595 \begin_inset Quotes qld
28596 \end_inset
28597
28598
28599 \end_layout
28600
28601 \end_inset
28602
28603
28604 \begin_inset Newline newline
28605 \end_inset
28606
28607
28608 \begin_inset Flex Code
28609 status collapsed
28610
28611 \begin_layout Plain Layout
28612 svn commit
28613 \end_layout
28614
28615 \end_inset
28616
28617
28618 \end_layout
28619
28620 \begin_layout Subsubsection
28621 \begin_inset CommandInset label
28622 LatexCommand label
28623 name "subsec:SVN-Repo-Update"
28624
28625 \end_inset
28626
28627 Update of the local directory checkout from repository
28628 \begin_inset Foot
28629 status collapsed
28630
28631 \begin_layout Plain Layout
28632 Note that this command will work only with subversion 
28633 \begin_inset Formula $\geqq1.5$
28634 \end_inset
28635
28636
28637 \end_layout
28638
28639 \end_inset
28640
28641
28642 \end_layout
28643
28644 \begin_layout Standard
28645 All the commands above have one shortcoming – they deal with the current document only.
28646  Once your document contains pictures,
28647  includes external 
28648 \begin_inset Flex Code
28649 status collapsed
28650
28651 \begin_layout Plain Layout
28652 .tex
28653 \end_layout
28654
28655 \end_inset
28656
28657  files and so on administration becomes more complicated.
28658  \SpecialChar LyX
28659  now supports updating the whole tree in which resides the document
28660 \begin_inset Foot
28661 status collapsed
28662
28663 \begin_layout Plain Layout
28664 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28665  
28666 \end_layout
28667
28668 \end_inset
28669
28670 .
28671  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.
28672  
28673 \end_layout
28674
28675 \begin_layout Standard
28676 \begin_inset Flex Code
28677 status collapsed
28678
28679 \begin_layout Plain Layout
28680 Update local directory from repository
28681 \end_layout
28682
28683 \end_inset
28684
28685  command updates the whole directory and in case of merge conflicts local version of the files are left,
28686  so no unintended data loss occurs.
28687  If local changes are detected user is warned before update starts.
28688 \end_layout
28689
28690 \begin_layout Labeling
28691 \labelwidthstring 00.00.0000
28692 SVN
28693 \begin_inset space ~
28694 \end_inset
28695
28696 commands:
28697  
28698 \begin_inset space ~
28699 \end_inset
28700
28701
28702 \begin_inset Newline newline
28703 \end_inset
28704
28705
28706 \begin_inset Flex Code
28707 status collapsed
28708
28709 \begin_layout Plain Layout
28710 svn diff $path
28711 \end_layout
28712
28713 \end_inset
28714
28715  (Ask if changes are detected.)
28716 \begin_inset Newline newline
28717 \end_inset
28718
28719
28720 \begin_inset Flex Code
28721 status collapsed
28722
28723 \begin_layout Plain Layout
28724 svn update --accept mine-full $path
28725 \end_layout
28726
28727 \end_inset
28728
28729
28730 \end_layout
28731
28732 \begin_layout Standard
28733 where 
28734 \begin_inset Flex Code
28735 status collapsed
28736
28737 \begin_layout Plain Layout
28738 $path
28739 \end_layout
28740
28741 \end_inset
28742
28743  stands for the path to the document.
28744 \end_layout
28745
28746 \begin_layout Subsubsection
28747
28748 \family sans
28749 Show History
28750 \end_layout
28751
28752 \begin_layout Standard
28753 This shows the complete history of the SVN document.
28754  The output of 
28755 \family typewriter
28756 svn log 
28757 \begin_inset Quotes qld
28758 \end_inset
28759
28760 <file-name>
28761 \begin_inset Quotes qld
28762 \end_inset
28763
28764
28765 \family default
28766  is shown in a browser.
28767 \end_layout
28768
28769 \begin_layout Subsubsection
28770 File Locking
28771 \begin_inset CommandInset label
28772 LatexCommand label
28773 name "subsec:SVN-File-Locking"
28774
28775 \end_inset
28776
28777
28778 \end_layout
28779
28780 \begin_layout Standard
28781 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.
28782  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
28783  which guarantees that only one user is allowed to edit file at the given time.
28784 \end_layout
28785
28786 \begin_layout Standard
28787 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
28788  
28789 \begin_inset CommandInset ref
28790 LatexCommand ref
28791 reference "subsec:Automatical-Locking-Property"
28792 nolink "false"
28793
28794 \end_inset
28795
28796 ) based on 
28797 \begin_inset Flex Code
28798 status collapsed
28799
28800 \begin_layout Plain Layout
28801 svn:needs-lock
28802 \end_layout
28803
28804 \end_inset
28805
28806  file svn property
28807 \begin_inset Foot
28808 status collapsed
28809
28810 \begin_layout Plain Layout
28811 \begin_inset Flex URL
28812 status open
28813
28814 \begin_layout Plain Layout
28815
28816 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
28817 \end_layout
28818
28819 \end_inset
28820
28821
28822 \end_layout
28823
28824 \end_inset
28825
28826 .
28827  If this property is detected for a given document \SpecialChar LyX
28828  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
28829  This in particular means there are two different modes of file use in \SpecialChar LyX
28830 :
28831 \end_layout
28832
28833 \begin_layout Itemize
28834 Unlocked state.
28835  The loaded file is in the read-only mode.
28836  For editing on needs to check-out.
28837  
28838 \emph on
28839 Check-out
28840 \emph default
28841  consists of updating from the repository and gaining write lock.
28842  If the lock is not possible to obtain,
28843  we remain in unlocked state.
28844 \end_layout
28845
28846 \begin_layout Itemize
28847 Locked state.
28848  The loaded file is in the 
28849 \begin_inset Quotes els
28850 \end_inset
28851
28852 normal
28853 \begin_inset Quotes ers
28854 \end_inset
28855
28856  edit mode.
28857  No other user is allowed to edit the file.
28858  
28859 \emph on
28860 Check-in
28861 \emph default
28862  consists of commiting changes and releasing write-lock.
28863  If no changes have been made to the document,
28864  no commit will be produced
28865 \begin_inset Foot
28866 status collapsed
28867
28868 \begin_layout Plain Layout
28869 Don't be puzzled by the fact that you will be asked for commit message anyway.
28870 \end_layout
28871
28872 \end_inset
28873
28874  and only the write-lock will be released.
28875 \end_layout
28876
28877 \begin_layout Standard
28878 SVN commands:
28879 \end_layout
28880
28881 \begin_layout Labeling
28882 \labelwidthstring 00.00.0000
28883 Check-in:
28884
28885 \family typewriter
28886  svn commit -q -m"<description>" "<file-name>"
28887 \begin_inset Newline newline
28888 \end_inset
28889
28890 svn unlock "<file-name>"
28891 \end_layout
28892
28893 \begin_layout Labeling
28894 \labelwidthstring 00.00.0000
28895 Check-out:
28896  
28897 \family typewriter
28898 svn update "<file-name>"
28899 \begin_inset Newline newline
28900 \end_inset
28901
28902 svn lock "<file-name>"
28903 \end_layout
28904
28905 \begin_layout Subsubsection
28906
28907 \family typewriter
28908 \begin_inset CommandInset label
28909 LatexCommand label
28910 name "subsec:Automatical-Locking-Property"
28911
28912 \end_inset
28913
28914
28915 \family default
28916 Automatic Locking Property
28917 \end_layout
28918
28919 \begin_layout Standard
28920 The above mentioned automatic setting of write permissions of the .lyx file can be set through
28921 \family sans
28922  File\SpecialChar menuseparator
28923 Version
28924 \begin_inset space ~
28925 \end_inset
28926
28927 Control\SpecialChar menuseparator
28928 Use Locking Property
28929 \family default
28930 .
28931  This command is active only when the file is not locked on the svn server (i.e.
28932  you need to check-out before proceeding).
28933 \end_layout
28934
28935 \begin_layout Labeling
28936 \labelwidthstring 00.00.0000
28937 SVN
28938 \begin_inset space ~
28939 \end_inset
28940
28941 commands:
28942 \end_layout
28943
28944 \begin_layout Labeling
28945 \labelwidthstring 00.00.0000
28946 Set:
28947
28948 \family typewriter
28949  svn propset svn:needs-lock ON "<file-name>"
28950 \end_layout
28951
28952 \begin_layout Labeling
28953 \labelwidthstring 00.00.0000
28954 Unset:
28955  
28956 \family typewriter
28957 svn propdel svn:needs-lock "<file-name>"
28958 \end_layout
28959
28960 \begin_layout Subsubsection
28961 \begin_inset CommandInset label
28962 LatexCommand label
28963 name "subsec:VCS-Revision-Information"
28964
28965 \end_inset
28966
28967 Revision Information in Documents
28968 \end_layout
28969
28970 \begin_layout Standard
28971 There are more possibilities how to activate revision information in our document.
28972 \end_layout
28973
28974 \begin_layout Itemize
28975 \SpecialChar LyX
28976  supports directly:
28977 \end_layout
28978
28979 \begin_deeper
28980 \begin_layout Itemize
28981 tree revision information (
28982 \begin_inset Flex Code
28983 status collapsed
28984
28985 \begin_layout Plain Layout
28986 vcs-tree-revision
28987 \end_layout
28988
28989 \end_inset
28990
28991 ).
28992  The result is the output of the 
28993 \begin_inset Flex Code
28994 status collapsed
28995
28996 \begin_layout Plain Layout
28997 svnversion
28998 \end_layout
28999
29000 \end_inset
29001
29002  command,
29003  the following table gives you an idea,
29004  how to read the results.
29005 \end_layout
29006
29007 \begin_layout Standard
29008 \align center
29009 \begin_inset Tabular
29010 <lyxtabular version="3" rows="6" columns="2">
29011 <features tabularvalignment="middle">
29012 <column alignment="left" valignment="top">
29013 <column alignment="left" valignment="top">
29014 <row>
29015 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29016 \begin_inset Text
29017
29018 \begin_layout Plain Layout
29019
29020 \series bold
29021 Output
29022 \end_layout
29023
29024 \end_inset
29025 </cell>
29026 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29027 \begin_inset Text
29028
29029 \begin_layout Plain Layout
29030
29031 \series bold
29032 Meaning
29033 \end_layout
29034
29035 \end_inset
29036 </cell>
29037 </row>
29038 <row>
29039 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29040 \begin_inset Text
29041
29042 \begin_layout Plain Layout
29043 4123:4168
29044 \end_layout
29045
29046 \end_inset
29047 </cell>
29048 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29049 \begin_inset Text
29050
29051 \begin_layout Plain Layout
29052 mixed revision working copy
29053 \end_layout
29054
29055 \end_inset
29056 </cell>
29057 </row>
29058 <row>
29059 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29060 \begin_inset Text
29061
29062 \begin_layout Plain Layout
29063 4168M
29064 \end_layout
29065
29066 \end_inset
29067 </cell>
29068 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29069 \begin_inset Text
29070
29071 \begin_layout Plain Layout
29072 modified working copy
29073 \end_layout
29074
29075 \end_inset
29076 </cell>
29077 </row>
29078 <row>
29079 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29080 \begin_inset Text
29081
29082 \begin_layout Plain Layout
29083 4123S
29084 \end_layout
29085
29086 \end_inset
29087 </cell>
29088 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29089 \begin_inset Text
29090
29091 \begin_layout Plain Layout
29092 switched working copy
29093 \end_layout
29094
29095 \end_inset
29096 </cell>
29097 </row>
29098 <row>
29099 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29100 \begin_inset Text
29101
29102 \begin_layout Plain Layout
29103 4123P
29104 \end_layout
29105
29106 \end_inset
29107 </cell>
29108 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29109 \begin_inset Text
29110
29111 \begin_layout Plain Layout
29112 partial working copy,
29113  from a sparse checkout
29114 \end_layout
29115
29116 \end_inset
29117 </cell>
29118 </row>
29119 <row>
29120 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29121 \begin_inset Text
29122
29123 \begin_layout Plain Layout
29124 4123:4168MS
29125 \end_layout
29126
29127 \end_inset
29128 </cell>
29129 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29130 \begin_inset Text
29131
29132 \begin_layout Plain Layout
29133 mixed revision,
29134  modified,
29135  switched working copy
29136 \end_layout
29137
29138 \end_inset
29139 </cell>
29140 </row>
29141 </lyxtabular>
29142
29143 \end_inset
29144
29145
29146 \end_layout
29147
29148 \begin_layout Itemize
29149 file revision information.
29150  The result comes from parsing the output of 
29151 \begin_inset Flex Code
29152 status collapsed
29153
29154 \begin_layout Plain Layout
29155 svn
29156 \begin_inset space ~
29157 \end_inset
29158
29159 info
29160 \begin_inset space ~
29161 \end_inset
29162
29163 --xml
29164 \begin_inset space ~
29165 \end_inset
29166
29167 file.lyx
29168 \end_layout
29169
29170 \end_inset
29171
29172 .
29173  Supported flags are:
29174 \end_layout
29175
29176 \begin_deeper
29177 \begin_layout Itemize
29178 version number of the last commit (
29179 \begin_inset Flex Code
29180 status collapsed
29181
29182 \begin_layout Plain Layout
29183 vcs-revision
29184 \end_layout
29185
29186 \end_inset
29187
29188 )
29189 \end_layout
29190
29191 \begin_layout Itemize
29192 author of the last commit (
29193 \begin_inset Flex Code
29194 status collapsed
29195
29196 \begin_layout Plain Layout
29197 vcs-author
29198 \end_layout
29199
29200 \end_inset
29201
29202 )
29203 \end_layout
29204
29205 \begin_layout Itemize
29206 date of the last commit (
29207 \begin_inset Flex Code
29208 status collapsed
29209
29210 \begin_layout Plain Layout
29211 vcs-date
29212 \end_layout
29213
29214 \end_inset
29215
29216 )
29217 \end_layout
29218
29219 \begin_layout Itemize
29220 time of the last commit (
29221 \begin_inset Flex Code
29222 status collapsed
29223
29224 \begin_layout Plain Layout
29225 vcs-time
29226 \end_layout
29227
29228 \end_inset
29229
29230 )
29231 \end_layout
29232
29233 \end_deeper
29234 \begin_layout Standard
29235 You can obtain this info via InsetInfo (
29236 \family sans
29237 Insert\SpecialChar menuseparator
29238 Field\SpecialChar menuseparator
29239 Version Control Revision
29240 \family default
29241 ).
29242  The information will be available only when you have the file stored under svn managment (i.e.
29243  the 
29244 \begin_inset Flex Code
29245 status collapsed
29246
29247 \begin_layout Plain Layout
29248 .svn
29249 \end_layout
29250
29251 \end_inset
29252
29253  directory is available with your document).
29254 \end_layout
29255
29256 \end_deeper
29257 \begin_layout Itemize
29258 Another—
29259 a hacking one—
29260 possibility is to use svn keywords
29261 \begin_inset Foot
29262 status collapsed
29263
29264 \begin_layout Plain Layout
29265 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
29266 \end_layout
29267
29268 \end_inset
29269
29270 .
29271  In short – you set file keywords property (e.g.
29272  
29273 \family sans
29274 svn propset svn:keywords 'Rev' file.lyx
29275 \family default
29276 ) and then paste keyword \SpecialChar TeX
29277  code
29278 \begin_inset Foot
29279 status collapsed
29280
29281 \begin_layout Plain Layout
29282 This is an easy way how to ensure that \SpecialChar LyX
29283  won't break the line in the middle of keyword tag.
29284 \end_layout
29285
29286 \end_inset
29287
29288  tag in your document (e.g.
29289  
29290 \begin_inset Flex Code
29291 status collapsed
29292
29293 \begin_layout Plain Layout
29294 $Rev$
29295 \end_layout
29296
29297 \end_inset
29298
29299 ).
29300  This way svn client will automatically substitute revision number (e.g.
29301  
29302 \begin_inset Flex Code
29303 status collapsed
29304
29305 \begin_layout Plain Layout
29306 $Rev:
29307  59 $
29308 \end_layout
29309
29310 \end_inset
29311
29312 ) after each update and commit.
29313  There are more problems with this approach.
29314  Firstly,
29315  the '$' character is used in \SpecialChar TeX
29316  world for math equations,
29317  so any occurence of math formula 
29318 \begin_inset Formula $Rev$
29319 \end_inset
29320
29321  become 
29322 \begin_inset Formula $Rev:59$
29323 \end_inset
29324
29325  in your \SpecialChar LyX
29326  document.
29327  Similarly for other keywords like Id,
29328  Date,
29329  Author,
29330  etc.
29331  Secondly svn output is dependent on your locales,
29332  so its very easy that svn would produce some problematic strings once Date is used.
29333  Thirdly you get the whole 'Rev:
29334  59' string in your document instead of the plain number.
29335  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
29336  to support it directly.
29337 \end_layout
29338
29339 \begin_layout Subsection
29340 SVN and Windows Environment
29341 \end_layout
29342
29343 \begin_layout Quote
29344 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
29345  they would be well advised to use TortoiseSVN.
29346  —
29347 P.
29348  A.
29349  Rubin
29350 \end_layout
29351
29352 \begin_layout Subsubsection
29353 Preparation
29354 \end_layout
29355
29356 \begin_layout Standard
29357 In addition to installing \SpecialChar LyX
29358 ,
29359  and having access to a Subversion repository,
29360  the user will need to install the Subversion client program.
29361  A Windows installer for the client program is available from 
29362 \begin_inset CommandInset href
29363 LatexCommand href
29364 name "CollabNet"
29365 target "http://www.collab.net/nonav/downloads/subversion/"
29366 literal "false"
29367
29368 \end_inset
29369
29370 .
29371  The user may also want to install 
29372 \begin_inset CommandInset href
29373 LatexCommand href
29374 name "TortoiseSVN"
29375 target "http://tortoisesvn.tigris.org/"
29376 literal "false"
29377
29378 \end_inset
29379
29380 ,
29381  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
29382  Operations done outside \SpecialChar LyX
29383  will typically be more convenient using the Explorer context menu.
29384  Note that TortoiseSVN is not a replacement for the client program,
29385  which is what \SpecialChar LyX
29386  itself will use.
29387 \end_layout
29388
29389 \begin_layout Subsubsection
29390 Bringing a document under Subversion control
29391 \end_layout
29392
29393 \begin_layout Standard
29394 Before a \SpecialChar LyX
29395  document can be brought under version control in Subversion,
29396  its parent directory needs to be under version control.
29397  If the document is being added to a project already in the repository,
29398  this is accomplished by checking the project out to the directory where the new document will be placed.
29399  If the project itself is not yet under version control (for instance,
29400  if this document starts a new project),
29401  the directory must be imported into the repository.
29402  This is done outside \SpecialChar LyX
29403 .
29404  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
29405  or alternatively can be done using the command line client at a DOS prompt.
29406  The procedure for importing the project using TortoiseSVN is described below,
29407  assuming an existing repository and a new project being started in 
29408 \family typewriter
29409 C:
29410 \backslash
29411 new project
29412 \family default
29413 .
29414  For information on using the Subversion client program,
29415  run 
29416 \family typewriter
29417 svn --help 
29418 \family default
29419 in a DOS shell.
29420 \end_layout
29421
29422 \begin_layout Enumerate
29423 Locate 
29424 \family typewriter
29425 C:
29426 \backslash
29427 new project 
29428 \family default
29429 in Windows Explorer,
29430  right click it,
29431  and select 
29432 \family sans
29433 TortoiseSVN\SpecialChar menuseparator
29434 Repo-browser
29435 \family default
29436 .
29437  If necessary,
29438  adjust the URL for the repository,
29439  then click OK.
29440 \end_layout
29441
29442 \begin_layout Enumerate
29443 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
29444 \family sans
29445 Create folder
29446 \family default
29447  Supply a name for the project folder and click OK.
29448  Add a message for the log file if desired,
29449  then click OK again.
29450  The new project folder should appear in the repository.
29451  Finally,
29452  click OK again to exit the repository browser.
29453 \end_layout
29454
29455 \begin_layout Enumerate
29456 Once again right click 
29457 \family typewriter
29458 C:
29459 \backslash
29460 new project
29461 \family default
29462 ,
29463  this time selecting SVN Checkout\SpecialChar ldots
29464  Select the URL of the project folder you just created in the repository,
29465  and set the checkout directory to 
29466 \family typewriter
29467 C:
29468 \backslash
29469 new project.
29470
29471 \family default
29472  Click OK.
29473  You will be warned about a non-empty folder;
29474  click OK to proceed.
29475  You should now have a 
29476 \family typewriter
29477 .svn
29478 \family default
29479  directory under 
29480 \family typewriter
29481 C:
29482 \backslash
29483 new project.
29484 \end_layout
29485
29486 \begin_layout Enumerate
29487 Create or open your document in \SpecialChar LyX
29488  and click 
29489 \family sans
29490 File\SpecialChar menuseparator
29491 Version
29492 \begin_inset space ~
29493 \end_inset
29494
29495 Control\SpecialChar menuseparator
29496 Register.
29497  
29498 \family default
29499 Add a log message and click OK to commit the document to version control.
29500 \end_layout
29501
29502 \begin_layout Standard
29503 From this point onward,
29504  you should have full functionality in the 
29505 \family sans
29506 File\SpecialChar menuseparator
29507 Version
29508 \begin_inset space ~
29509 \end_inset
29510
29511 Control
29512 \family default
29513  menu.
29514  You also have the option of checking the document in and out,
29515  viewing its history,
29516  etc.
29517  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
29518 \end_layout
29519
29520 \begin_layout Subsubsection
29521 SSH tunnel used with SVN under Windows
29522 \end_layout
29523
29524 \begin_layout Standard
29525 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
29526  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,
29527  also be prepared for a great deal of frustration\SpecialChar ldots
29528
29529 \end_layout
29530
29531 \begin_layout Enumerate
29532 Get an svn client for windows,
29533  as described in the previous sections.
29534  When it is a fresh install run some svn command (e.g.
29535  
29536 \begin_inset Flex Code
29537 status collapsed
29538
29539 \begin_layout Plain Layout
29540 svn --version
29541 \end_layout
29542
29543 \end_inset
29544
29545 ) to create config files,
29546  which you will need to change later on.
29547 \end_layout
29548
29549 \begin_layout Enumerate
29550 Choose an ssh client for Windows.
29551  There are several possibilities,
29552  we will use the one from Putty tools
29553 \begin_inset Foot
29554 status collapsed
29555
29556 \begin_layout Plain Layout
29557 \begin_inset Flex URL
29558 status collapsed
29559
29560 \begin_layout Plain Layout
29561
29562 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
29563 \end_layout
29564
29565 \end_inset
29566
29567
29568 \end_layout
29569
29570 \end_inset
29571
29572 .
29573  You will need to set the connection up so that the client doesn't ask for any password from you.
29574  To keep things easy we will use only keys without any additional password protection etc.
29575 \end_layout
29576
29577 \begin_deeper
29578 \begin_layout Enumerate
29579 Generate keys by 
29580 \begin_inset Flex Code
29581 status collapsed
29582
29583 \begin_layout Plain Layout
29584 puttygen
29585 \end_layout
29586
29587 \end_inset
29588
29589 .
29590  Save your private .ppk key file and put the public one on the server side.
29591  If the SVN server runs on Linux,
29592  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 
29593 \begin_inset Quotes eld
29594 \end_inset
29595
29596
29597 \emph on
29598 Public key for pasting into OpenSSH authorized_keys file
29599 \emph default
29600 :
29601 \begin_inset Quotes erd
29602 \end_inset
29603
29604  edit field into the server's 
29605 \begin_inset Flex Code
29606 status collapsed
29607
29608 \begin_layout Plain Layout
29609 ~/.ssh/authorized_keys
29610 \end_layout
29611
29612 \end_inset
29613
29614  / 
29615 \begin_inset Flex Code
29616 status collapsed
29617
29618 \begin_layout Plain Layout
29619 authorized_keys2
29620 \end_layout
29621
29622 \end_inset
29623
29624  file.
29625 \end_layout
29626
29627 \begin_layout Enumerate
29628 Get the Putty's 
29629 \begin_inset Flex Code
29630 status collapsed
29631
29632 \begin_layout Plain Layout
29633 plink
29634 \end_layout
29635
29636 \end_inset
29637
29638 .
29639  In the SVN config file
29640 \begin_inset Foot
29641 status collapsed
29642
29643 \begin_layout Plain Layout
29644 Exact path depends on Windows version,
29645  usually somewhere around 
29646 \begin_inset Flex Code
29647 status collapsed
29648
29649 \begin_layout Plain Layout
29650 c:
29651 \backslash
29652 Documents and Settings
29653 \backslash
29654 user
29655 \backslash
29656 Application Data
29657 \backslash
29658 Subversion
29659 \backslash
29660 config
29661 \end_layout
29662
29663 \end_inset
29664
29665  / 
29666 \begin_inset Flex Code
29667 status collapsed
29668
29669 \begin_layout Plain Layout
29670 AppData
29671 \backslash
29672 Roaming
29673 \backslash
29674 Subversion
29675 \end_layout
29676
29677 \end_inset
29678
29679 .
29680 \end_layout
29681
29682 \end_inset
29683
29684 ,
29685  section [tunnels],
29686  setup ssh command,
29687  e.g.
29688  
29689 \begin_inset Flex Code
29690 status collapsed
29691
29692 \begin_layout Plain Layout
29693 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
29694 \end_layout
29695
29696 \end_inset
29697
29698 .
29699 \begin_inset Foot
29700 status collapsed
29701
29702 \begin_layout Plain Layout
29703 It will usually take a lot of time to get exact command right and it depends on many things.
29704  For example do not have some remote server saved as a default session in Putty etc.
29705  If things fail,
29706  try to connect via plink without SVN first.
29707 \end_layout
29708
29709 \end_inset
29710
29711
29712 \end_layout
29713
29714 \end_deeper
29715 \begin_layout Enumerate
29716 Checkout the SVN archive,
29717  e.
29718 \begin_inset space \thinspace{}
29719 \end_inset
29720
29721 g.
29722 \begin_inset Newline newline
29723 \end_inset
29724
29725
29726 \begin_inset Flex Code
29727 status collapsed
29728
29729 \begin_layout Plain Layout
29730 svn co svn+ssh://user@server/repository_path
29731 \end_layout
29732
29733 \end_inset
29734
29735 .
29736 \end_layout
29737
29738 \begin_layout Subsubsection
29739 End-of-Line Conversions
29740 \end_layout
29741
29742 \begin_layout Standard
29743 When the collaborators are mixing Linux and Windows environments,
29744  \SpecialChar LyX
29745  will use different line endings inside the .lyx files.
29746  This is not a problem as far as \SpecialChar LyX
29747  functionality is concerned,
29748  but the commit diffs will be huge and merge-conflicts prone.
29749  Fortunately SVN itself knows
29750 \begin_inset Foot
29751 status collapsed
29752
29753 \begin_layout Plain Layout
29754 \begin_inset Flex URL
29755 status collapsed
29756
29757 \begin_layout Plain Layout
29758
29759 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
29760 \end_layout
29761
29762 \end_inset
29763
29764
29765 \end_layout
29766
29767 \end_inset
29768
29769  how to deal with CR/LF problems when switching .lyx files to the 
29770 \begin_inset Flex Code
29771 status collapsed
29772
29773 \begin_layout Plain Layout
29774 native
29775 \end_layout
29776
29777 \end_inset
29778
29779  mode.
29780 \begin_inset Foot
29781 status collapsed
29782
29783 \begin_layout Plain Layout
29784 For the lazy guys:
29785  
29786 \begin_inset Flex Code
29787 status collapsed
29788
29789 \begin_layout Plain Layout
29790 svn propset svn:eol-style native FILE_NAME
29791 \end_layout
29792
29793 \end_inset
29794
29795
29796 \end_layout
29797
29798 \end_inset
29799
29800
29801 \end_layout
29802
29803 \begin_layout Subsection
29804 GIT commands in \SpecialChar LyX
29805
29806 \end_layout
29807
29808 \begin_layout Standard
29809 A minimal subset of GIT commands is now supported by \SpecialChar LyX
29810 .
29811  You can find the commands in the 
29812 \family sans
29813 File\SpecialChar menuseparator
29814 Version
29815 \begin_inset space ~
29816 \end_inset
29817
29818 Control
29819 \family default
29820  submenu.
29821  Please note that if you use password protected access to repository via ssh,
29822  you will be asked in terminal window.
29823  \SpecialChar LyX
29824  was tested against GIT 1.7/2.30.
29825 \begin_inset Foot
29826 status collapsed
29827
29828 \begin_layout Plain Layout
29829 Windows users please note that you need to ensure that git is on the path.
29830  This can be set from within \SpecialChar LyX
29831  at 
29832 \family sans
29833 Tools\SpecialChar menuseparator
29834 Preferences\SpecialChar menuseparator
29835 Paths\SpecialChar menuseparator
29836 PATH prefix
29837 \family default
29838 .
29839 \end_layout
29840
29841 \end_inset
29842
29843
29844 \end_layout
29845
29846 \begin_layout Standard
29847 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
29848  With traditional version control systems there is one central server which hosts the repository.
29849  Users commit their changes to the server,
29850  and get updates made by other users from it.
29851  With GIT,
29852  users commit to a local repository.
29853  The local repository can be synchronized with one or more remote repositories using the 
29854 \begin_inset Flex Code
29855 status collapsed
29856
29857 \begin_layout Plain Layout
29858 pull
29859 \end_layout
29860
29861 \end_inset
29862
29863  and 
29864 \begin_inset Flex Code
29865 status collapsed
29866
29867 \begin_layout Plain Layout
29868 push
29869 \end_layout
29870
29871 \end_inset
29872
29873  GIT commands.
29874  \SpecialChar LyX
29875  does not interact in any way with remote GIT repositories.
29876  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
29877  If you use remote GIT repositories you need to do the 
29878 \begin_inset Flex Code
29879 status collapsed
29880
29881 \begin_layout Plain Layout
29882 pull
29883 \end_layout
29884
29885 \end_inset
29886
29887  and 
29888 \begin_inset Flex Code
29889 status collapsed
29890
29891 \begin_layout Plain Layout
29892 push
29893 \end_layout
29894
29895 \end_inset
29896
29897  operations with your favourite GIT client.
29898 \end_layout
29899
29900 \begin_layout Subsubsection
29901
29902 \family sans
29903 Register
29904 \end_layout
29905
29906 \begin_layout Standard
29907 If your document is not under revision control,
29908  this is the only item shown in the menu.
29909  And if it is under revision control,
29910  the 
29911 \family sans
29912 Register
29913 \family default
29914  item is not visible.
29915 \end_layout
29916
29917 \begin_layout Standard
29918 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
29919 \family typewriter
29920 .git/index
29921 \family default
29922  file exists
29923 \begin_inset Foot
29924 status open
29925
29926 \begin_layout Plain Layout
29927 For that both 
29928 \family typewriter
29929 git init
29930 \family default
29931  *and* initial repository commit (or at least 
29932 \family typewriter
29933 git add
29934 \family default
29935 ) needs to be manually done.
29936 \end_layout
29937
29938 \end_inset
29939
29940 ).
29941  This means you have to checkout the archive by yourself.
29942 \end_layout
29943
29944 \begin_layout Standard
29945 Then you are asked interactively to supply an initial description of the document.
29946  Don't forget that registered file is not yet committed.
29947 \end_layout
29948
29949 \begin_layout Standard
29950 GIT command that is run:
29951  
29952 \family typewriter
29953 git add 
29954 \begin_inset Quotes qld
29955 \end_inset
29956
29957 <file-name>
29958 \begin_inset Quotes qld
29959 \end_inset
29960
29961
29962 \end_layout
29963
29964 \begin_layout Standard
29965 Read 
29966 \family typewriter
29967 man git
29968 \family default
29969  to understand the switches.
29970 \end_layout
29971
29972 \begin_layout Subsubsection
29973
29974 \family sans
29975 Check In Changes
29976 \end_layout
29977
29978 \begin_layout Standard
29979 When you are finished editing a file,
29980  you commit your changes.
29981  When you do this,
29982  you are asked for a description of the changes.
29983  After that changes are committed.
29984 \end_layout
29985
29986 \begin_layout Standard
29987 GIT command:
29988  
29989 \family typewriter
29990 git commit -q -m"<description>" <file-name>
29991 \end_layout
29992
29993 \begin_layout Subsubsection
29994
29995 \family sans
29996 Revert To Repository Version
29997 \end_layout
29998
29999 \begin_layout Standard
30000 This will discard all changes made to the document since the last check in.
30001  You get a warning before changes are discarded.
30002 \end_layout
30003
30004 \begin_layout Standard
30005 GIT command:
30006  
30007 \family typewriter
30008 git checkout -q 
30009 \begin_inset Quotes qld
30010 \end_inset
30011
30012 <file-name>
30013 \begin_inset Quotes qld
30014 \end_inset
30015
30016
30017 \end_layout
30018
30019 \begin_layout Subsubsection
30020
30021 \family sans
30022 Rename
30023 \end_layout
30024
30025 \begin_layout Standard
30026 This will rename the current document including the version history.
30027  It requires a clean document without any changes since the last checkin.
30028  You are asked for a file name and a description of the rename operation.
30029  After that the document is renamed,
30030  both locally and in the repository.
30031  If the parent directories of the new and old file names differ,
30032  all relative paths of included files are adjusted (like in 
30033 \family sans
30034 File\SpecialChar menuseparator
30035 Save As
30036 \family default
30037 \SpecialChar ldots
30038 ).
30039  Finally,
30040  the document is reloaded using the new name.
30041 \end_layout
30042
30043 \begin_layout Labeling
30044 \labelwidthstring 00.00.0000
30045 GIT
30046 \begin_inset space ~
30047 \end_inset
30048
30049 commands:
30050  
30051 \begin_inset space ~
30052 \end_inset
30053
30054
30055 \begin_inset Newline newline
30056 \end_inset
30057
30058
30059 \begin_inset Flex Code
30060 status collapsed
30061
30062 \begin_layout Plain Layout
30063 git mv 
30064 \family typewriter
30065
30066 \begin_inset Quotes qld
30067 \end_inset
30068
30069 <file-name>
30070 \begin_inset Quotes qld
30071 \end_inset
30072
30073  
30074 \begin_inset Quotes qld
30075 \end_inset
30076
30077 <new-file-name>
30078 \begin_inset Quotes qld
30079 \end_inset
30080
30081
30082 \end_layout
30083
30084 \end_inset
30085
30086
30087 \begin_inset Newline newline
30088 \end_inset
30089
30090
30091 \begin_inset Flex Code
30092 status collapsed
30093
30094 \begin_layout Plain Layout
30095 git commit
30096 \end_layout
30097
30098 \end_inset
30099
30100
30101 \end_layout
30102
30103 \begin_layout Subsubsection
30104
30105 \family sans
30106 Show History
30107 \end_layout
30108
30109 \begin_layout Standard
30110 This shows the complete history of the GIT document.
30111  The output of 
30112 \family typewriter
30113 git log 
30114 \begin_inset Quotes qld
30115 \end_inset
30116
30117 <file-name>
30118 \begin_inset Quotes qld
30119 \end_inset
30120
30121
30122 \family default
30123  is shown in a browser.
30124 \end_layout
30125
30126 \begin_layout Subsubsection
30127 Version Info
30128 \end_layout
30129
30130 \begin_layout Standard
30131 \SpecialChar LyX
30132  supports GIT hash number of the last commit to the file,
30133  its abbreviated form,
30134  author name,
30135  date and time of last commit.
30136  All those are extracted from 
30137 \family typewriter
30138 git log -n 1 --pretty=format:%H%n%h%n%an%n%ai
30139 \family default
30140 .
30141  Tree version information is obtained via 
30142 \family typewriter
30143 git describe --abbrev --dirty --long
30144 \family default
30145 .
30146  See 
30147 \begin_inset CommandInset ref
30148 LatexCommand ref
30149 reference "subsec:VCS-Revision-Information"
30150 nolink "false"
30151
30152 \end_inset
30153
30154  for other details.
30155 \end_layout
30156
30157 \begin_layout Subsection
30158 Further tuning
30159 \end_layout
30160
30161 \begin_layout Standard
30162 With the recent addition of the 
30163 \begin_inset Flex Code
30164 status collapsed
30165
30166 \begin_layout Plain Layout
30167 vc-command
30168 \end_layout
30169
30170 \end_inset
30171
30172  function \SpecialChar LyX
30173  power users are allowed to create their own commands for revision control.
30174 \end_layout
30175
30176 \begin_layout Standard
30177 As an example you can see how two TortoiseSVN commands could be integrated directly:
30178 \end_layout
30179
30180 \begin_layout Description
30181 Commit:
30182  
30183 \begin_inset Flex Code
30184 status collapsed
30185
30186 \begin_layout Plain Layout
30187 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
30188 \end_layout
30189
30190 \end_inset
30191
30192
30193 \end_layout
30194
30195 \begin_layout Description
30196 Revert:
30197  
30198 \begin_inset Flex Code
30199 status collapsed
30200
30201 \begin_layout Plain Layout
30202 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
30203 \end_layout
30204
30205 \end_inset
30206
30207
30208 \end_layout
30209
30210 \begin_layout Subsection
30211 Version control and Document comparison
30212 \end_layout
30213
30214 \begin_layout Standard
30215 One of the typical uses of version control is to inspect the changes between revisions,
30216  usually by creating 
30217 \begin_inset Flex Code
30218 status collapsed
30219
30220 \begin_layout Plain Layout
30221 diff
30222 \end_layout
30223
30224 \end_inset
30225
30226  dumps.
30227  While this is useful for plain text files,
30228  it is much less useful in the case of \SpecialChar LyX
30229  files,
30230  which have more a complicated structure.
30231  Hence we provide binding to the Document comparison feature.
30232  There are two ways of calling this feature – either by direct call of 
30233 \begin_inset Flex Code
30234 status collapsed
30235
30236 \begin_layout Plain Layout
30237 vc-compare
30238 \end_layout
30239
30240 \end_inset
30241
30242  \SpecialChar LyX
30243  function (for details see \SpecialChar LyX
30244  functions manual) or by the toolbar icon 
30245 \begin_inset Info
30246 type  "icon"
30247 arg   "vc-compare"
30248 \end_inset
30249
30250  or the menu item 
30251 \begin_inset Info
30252 type  "menu"
30253 arg   "vc-compare"
30254 \end_inset
30255
30256 ,
30257  respectively.
30258  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 '
30259 \begin_inset Flex Noun
30260 status collapsed
30261
30262 \begin_layout Plain Layout
30263 0
30264 \end_layout
30265
30266 \end_inset
30267
30268 ' revisions back means comparison of the edited file with last commited revision).
30269  
30270 \end_layout
30271
30272 \begin_layout Standard
30273 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,
30274  numbers always point to the last number in RCS revision number,
30275  i.e.
30276  '35' in '1.2.35'.
30277  We don't currently support GIT addressing of revisions,
30278  one can just compare edited document with its revision X steps backs,
30279  where X is addressed as 
30280 \begin_inset Flex Code
30281 status collapsed
30282
30283 \begin_layout Plain Layout
30284 HEAD~X
30285 \end_layout
30286
30287 \end_inset
30288
30289 .
30290 \end_layout
30291
30292 \begin_layout Section
30293 \begin_inset CommandInset label
30294 LatexCommand label
30295 name "sec:Literate-Programming"
30296
30297 \end_inset
30298
30299 Literate Programming
30300 \end_layout
30301
30302 \begin_layout Standard
30303 Updated by 
30304 \noun on
30305 Kayvan Sylvan 
30306 \noun default
30307 (kayvan@sylvan.com)
30308 \noun on
30309 ,
30310  
30311 \noun default
30312 original documentation written by 
30313 \noun on
30314 Edmar Wienskoski Jr.
30315
30316 \noun default
30317  (edmar-w-jr@technologist.com)
30318 \end_layout
30319
30320 \begin_layout Subsection
30321 Introduction
30322 \end_layout
30323
30324 \begin_layout Standard
30325 The main purpose of this documentation is to show you how to use \SpecialChar LyX
30326  for literate programming,
30327  where it is assumed that you are familiar with this programming technique,
30328  and know what 
30329 \begin_inset Quotes eld
30330 \end_inset
30331
30332 tangling
30333 \begin_inset Quotes erd
30334 \end_inset
30335
30336  and 
30337 \begin_inset Quotes eld
30338 \end_inset
30339
30340 weaving
30341 \begin_inset Quotes erd
30342 \end_inset
30343
30344  means.
30345  If that is not the case,
30346  please follow the web links provided in the following sections.
30347  There is a lot of good documentation out there covering old development history to the latest tools tips.
30348 \end_layout
30349
30350 \begin_layout Standard
30351 It is also assumed that you are familiar with \SpecialChar LyX
30352  itself to a point that you are comfortable changing your \SpecialChar LyX
30353  preferences,
30354  and X resources file.
30355  If that is not the case please refer to other \SpecialChar LyX
30356  documentation to cover your specific needs.
30357 \end_layout
30358
30359 \begin_layout Subsection
30360 Literate Programming
30361 \end_layout
30362
30363 \begin_layout Standard
30364 From the Literate Programming FAQ:
30365  
30366 \end_layout
30367
30368 \begin_layout Quotation
30369 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
30370  In fact,
30371  literate programs should be enjoyable reading,
30372  even inviting!
30373  (Sorry Bob,
30374  I couldn't resist!) In general,
30375  literate programs combine source and documentation in a single file.
30376  Literate programming tools then parse the file to produce either readable documentation or compilable source.
30377  The WEB style of literate programming was created by D.
30378 \begin_inset space \thinspace{}
30379 \end_inset
30380
30381 E.
30382  Knuth during the development of his \SpecialChar TeX
30383  typesetting software.
30384  
30385 \end_layout
30386
30387 \begin_layout Standard
30388 Another excerpt says:
30389 \end_layout
30390
30391 \begin_layout Quotation
30392
30393 \emph on
30394 How is literate programming different from verbose commenting?
30395 \end_layout
30396
30397 \begin_layout Quotation
30398 There are three distinguishing characteristics.
30399  In order of importance,
30400  they are:
30401  
30402 \end_layout
30403
30404 \begin_deeper
30405 \begin_layout Itemize
30406 flexible order of elaboration 
30407 \end_layout
30408
30409 \begin_layout Itemize
30410 automatic support for browsing 
30411 \end_layout
30412
30413 \begin_layout Itemize
30414 typeset documentation,
30415  especially diagrams and mathematics 
30416 \end_layout
30417
30418 \end_deeper
30419 \begin_layout Standard
30420 Now that I sparked your curiosity,
30421  take a look in the references.
30422 \end_layout
30423
30424 \begin_layout Subsubsection
30425 References
30426 \end_layout
30427
30428 \begin_layout Standard
30429 The complete Literate Programming FAQ can be found at:
30430 \end_layout
30431
30432 \begin_layout Quote
30433 Literate Programming FAQ 
30434 \begin_inset Flex URL
30435 status open
30436
30437 \begin_layout Plain Layout
30438
30439 http://www.literateprogramming.com/lpfaq.pdf
30440 \end_layout
30441
30442 \end_inset
30443
30444
30445 \end_layout
30446
30447 \begin_layout Standard
30448 The FAQ lists 23 (twenty three!) different literate programming tools.
30449  Where some are specialized or 
30450 \begin_inset Quotes eld
30451 \end_inset
30452
30453 tailored
30454 \begin_inset Quotes erd
30455 \end_inset
30456
30457  for particular programming languages,
30458  while other have general scope.
30459  I selected 
30460 \noun on
30461 Noweb
30462 \noun default
30463  for my own use for several reasons:
30464 \end_layout
30465
30466 \begin_layout Itemize
30467 It can generate the documentation either in \SpecialChar LaTeX
30468  or HTML.
30469 \end_layout
30470
30471 \begin_layout Itemize
30472 It has a open architecture,
30473  i.
30474 \begin_inset space \thinspace{}
30475 \end_inset
30476
30477 e.
30478 \begin_inset space \space{}
30479 \end_inset
30480
30481 it is easy to plug in new filters
30482 \begin_inset Foot
30483 status collapsed
30484
30485 \begin_layout Plain Layout
30486
30487 \emph on
30488 Filters 
30489 \emph default
30490 are programs that read a given data stream and output a manipulated data stream.
30491  That way,
30492  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
30493  code.
30494 \end_layout
30495
30496 \end_inset
30497
30498  and to perform special processing that you may need.
30499  
30500 \end_layout
30501
30502 \begin_layout Itemize
30503 There is a good selection of filters available already (the HTML is one of them).
30504 \end_layout
30505
30506 \begin_layout Itemize
30507 It is free.
30508 \end_layout
30509
30510 \begin_layout Standard
30511 The Noweb web page can be found at:
30512  
30513 \end_layout
30514
30515 \begin_layout Quote
30516 Noweb home page 
30517 \begin_inset Flex URL
30518 status collapsed
30519
30520 \begin_layout Plain Layout
30521
30522 https://www.cs.tufts.edu/~nr/noweb/
30523 \end_layout
30524
30525 \end_inset
30526
30527
30528 \end_layout
30529
30530 \begin_layout Standard
30531 Starting from there you can reach many other interesting links and even some literate program examples.
30532 \end_layout
30533
30534 \begin_layout Subsection
30535 \SpecialChar LyX
30536  and Literate Programming with Noweb
30537 \end_layout
30538
30539 \begin_layout Standard
30540 The \SpecialChar LyX
30541  support for Literate Programming is provided by using the generic \SpecialChar LyX
30542  converters mechanism.
30543  This support is provided in a 
30544 \begin_inset Quotes eld
30545 \end_inset
30546
30547 Noweb independent
30548 \begin_inset Quotes erd
30549 \end_inset
30550
30551  way,
30552  i.
30553 \begin_inset space \thinspace{}
30554 \end_inset
30555
30556 e.
30557 \begin_inset space \space{}
30558 \end_inset
30559
30560 you will be able to use this new \SpecialChar LyX
30561  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
30562  preferences.
30563 \end_layout
30564
30565 \begin_layout Subsubsection
30566 Generating documents and code (weaving and tangling)
30567 \end_layout
30568
30569 \begin_layout Paragraph
30570 Using the noweb module
30571 \end_layout
30572
30573 \begin_layout Standard
30574 If you have installed Noweb and \SpecialChar LyX
30575  successfully,
30576  whenever you open a new document,
30577  after you have chosen its document class,
30578  use the 
30579 \family sans
30580 Document\SpecialChar menuseparator
30581 Settings
30582 \family default
30583  menu to add the 
30584 \begin_inset Quotes eld
30585 \end_inset
30586
30587 noweb
30588 \begin_inset Quotes erd
30589 \end_inset
30590
30591  module.
30592  If Noweb is correctly installed,
30593  when you click on the 
30594 \begin_inset Quotes eld
30595 \end_inset
30596
30597 Modules
30598 \begin_inset Quotes erd
30599 \end_inset
30600
30601  link,
30602  you will see the 
30603 \begin_inset Quotes eld
30604 \end_inset
30605
30606 noweb
30607 \begin_inset Quotes erd
30608 \end_inset
30609
30610  module in the available list and you can add it to your document.
30611 \end_layout
30612
30613 \begin_layout Paragraph
30614 Typing code in
30615 \end_layout
30616
30617 \begin_layout Standard
30618 \SpecialChar LyX
30619  enables you to write code with a custom inset named 
30620 \begin_inset Flex Noun
30621 status collapsed
30622
30623 \begin_layout Plain Layout
30624 Chunk
30625 \end_layout
30626
30627 \end_inset
30628
30629 .
30630  Noweb delimits chunks like this:
30631 \end_layout
30632
30633 \begin_layout LyX-Code
30634 <<My code>>=
30635 \end_layout
30636
30637 \begin_layout LyX-Code
30638   code
30639 \end_layout
30640
30641 \begin_layout LyX-Code
30642   more code
30643 \end_layout
30644
30645 \begin_layout LyX-Code
30646   even more code
30647 \end_layout
30648
30649 \begin_layout LyX-Code
30650   @
30651 \end_layout
30652
30653 \begin_layout Standard
30654 The problem is that whatever is written in between the << and the 
30655 \family typewriter
30656 @
30657 \family default
30658  must be taken literally,
30659  i.
30660 \begin_inset space \thinspace{}
30661 \end_inset
30662
30663 e.
30664 \begin_inset space \space{}
30665 \end_inset
30666
30667 \SpecialChar LyX
30668  should be prevented from making any special interpretation of what has been written.
30669  This is also handled by 
30670 \begin_inset Flex Noun
30671 status collapsed
30672
30673 \begin_layout Plain Layout
30674 Chunk
30675 \end_layout
30676
30677 \end_inset
30678
30679 ,
30680  that works like a normal text inset but has a free spacing capability.
30681 \end_layout
30682
30683 \begin_layout Standard
30684 As a special note,
30685  you can also use the 
30686 \begin_inset Quotes eld
30687 \end_inset
30688
30689 %def
30690 \begin_inset Quotes erd
30691 \end_inset
30692
30693  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
30694 \end_layout
30695
30696 \begin_layout LyX-Code
30697 <<My chunk>>=
30698 \end_layout
30699
30700 \begin_layout LyX-Code
30701 def some_function(args):
30702 \end_layout
30703
30704 \begin_layout LyX-Code
30705    "This is the doc string for this function."
30706 \end_layout
30707
30708 \begin_layout LyX-Code
30709    print "My args:
30710  ",
30711  args
30712 \end_layout
30713
30714 \begin_layout LyX-Code
30715 @ %def some_function
30716 \end_layout
30717
30718 \begin_layout Standard
30719 For an example of this usage and the resulting cross-reference output,
30720  look at the Literate python program in 
30721 \emph on
30722 LIBDIR/examples/listerrors.lyx
30723 \emph default
30724  which should make this all clear.
30725 \end_layout
30726
30727 \begin_layout Paragraph
30728 Generating the documentation
30729 \end_layout
30730
30731 \begin_layout Standard
30732 At this point you already have a new document file with a proper document class,
30733  and with some code and text on it.
30734  How do I print it?
30735  The answer is simple,
30736  you select 
30737 \family sans
30738 View\SpecialChar menuseparator
30739 DVI,
30740
30741 \family default
30742  etc.
30743  Just like you would do for a plain document.
30744  No special procedure is required.
30745 \end_layout
30746
30747 \begin_layout Standard
30748 To help orientate you,
30749  I will now explain what happens inside \SpecialChar LyX
30750 :
30751 \end_layout
30752
30753 \begin_layout Enumerate
30754 When the 
30755 \family sans
30756 Update\SpecialChar menuseparator
30757 DVI
30758 \family default
30759  menu option is chosen,
30760  a \SpecialChar LaTeX
30761  file is generated.
30762  
30763 \end_layout
30764
30765 \begin_deeper
30766 \begin_layout Standard
30767 If the document is of any literate class the generated file will be named with an extension name defined by the 
30768 \begin_inset Quotes eld
30769 \end_inset
30770
30771 literate
30772 \begin_inset Quotes erd
30773 \end_inset
30774
30775  format (defined in the Preferences panel),
30776  otherwise the file will have the usual 
30777 \family typewriter
30778 .tex
30779 \family default
30780  extension.
30781 \end_layout
30782
30783 \end_deeper
30784 \begin_layout Enumerate
30785 Note that the only difference so far is in the name of the file,
30786  no special processing is required by \SpecialChar LyX
30787 .
30788  Given that you formatted the code using the 
30789 \begin_inset Flex Noun
30790 status collapsed
30791
30792 \begin_layout Plain Layout
30793 Chunk
30794 \end_layout
30795
30796 \end_inset
30797
30798  inset that,
30799  by itself,
30800  takes care of the business.
30801 \end_layout
30802
30803 \begin_layout Enumerate
30804 If the document is of any literate class \SpecialChar LyX
30805  will then use the internal \SpecialChar LyX
30806  to Noweb converter,
30807  followed by the Noweb to \SpecialChar LaTeX
30808  converter
30809 \begin_inset Foot
30810 status collapsed
30811
30812 \begin_layout Plain Layout
30813 The converters are defined in the 
30814 \family sans
30815 Tools\SpecialChar menuseparator
30816 Preferences
30817 \family default
30818  panel,
30819  under the 
30820 \begin_inset Quotes eld
30821 \end_inset
30822
30823 Conversion
30824 \begin_inset Quotes erd
30825 \end_inset
30826
30827  tab.
30828  See section 
30829 \emph on
30830 Converters
30831 \emph default
30832  of the 
30833 \emph on
30834 Customization
30835 \emph default
30836  manual for general information about converters.
30837 \end_layout
30838
30839 \end_inset
30840
30841  to generate the \SpecialChar LaTeX
30842  file.
30843 \end_layout
30844
30845 \begin_deeper
30846 \begin_layout Standard
30847 Otherwise it will just skip this step.
30848 \end_layout
30849
30850 \end_deeper
30851 \begin_layout Enumerate
30852 Finally,
30853  \SpecialChar LaTeX
30854  is invoked and the regular post processing continues as in a plain document.
30855 \end_layout
30856
30857 \begin_layout Standard
30858 Independence from a particular 
30859 \begin_inset Quotes eld
30860 \end_inset
30861
30862 literate tool
30863 \begin_inset Quotes erd
30864 \end_inset
30865
30866  is easily achieved by changing the commands that are run by the various converters.
30867 \end_layout
30868
30869 \begin_layout Paragraph
30870 Generating the code
30871 \end_layout
30872
30873 \begin_layout Standard
30874 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
30875  a \SpecialChar LaTeX
30876  file is generated just like step 1 above.
30877  Next,
30878  \SpecialChar LyX
30879  invokes the 
30880 \family typewriter
30881 Noweb->Program
30882 \family default
30883  converter.
30884  This converter needs to be defined by the user and is not installed by default,
30885  though the Program format is.
30886  This converter (like any other converter) will have two parts:
30887 \end_layout
30888
30889 \begin_layout Enumerate
30890 The converter program itself.
30891  This program performs the conversion from the one format to the other (in this case,
30892  from the Noweb format to the Program pseudo-format).
30893 \end_layout
30894
30895 \begin_layout Enumerate
30896 The error log parser.
30897  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
30898  understands.
30899  This makes it possible for \SpecialChar LyX
30900  to place error boxes in the right places in the file buffer.
30901 \end_layout
30902
30903 \begin_layout Standard
30904 The first part,
30905  the 
30906 \begin_inset Quotes eld
30907 \end_inset
30908
30909 Converter
30910 \begin_inset Quotes erd
30911 \end_inset
30912
30913  setting,
30914  should be set to
30915 \end_layout
30916
30917 \begin_layout LyX-Code
30918
30919 \family typewriter
30920 build-script $$i
30921 \family default
30922  $$r
30923 \end_layout
30924
30925 \begin_layout Standard
30926 This basically means that \SpecialChar LyX
30927  will call 
30928 \begin_inset Quotes eld
30929 \end_inset
30930
30931 build-script
30932 \begin_inset Quotes erd
30933 \end_inset
30934
30935  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
30936  temp directory) and the directory path of the original \SpecialChar LyX
30937  file.
30938  
30939 \end_layout
30940
30941 \begin_layout Standard
30942 This is an implementation of 
30943 \begin_inset Quotes eld
30944 \end_inset
30945
30946 build-script
30947 \begin_inset Quotes erd
30948 \end_inset
30949
30950  that you can place in a directory on your path:
30951 \end_layout
30952
30953 \begin_layout LyX-Code
30954
30955 \family sans
30956 #!/bin/sh
30957 \end_layout
30958
30959 \begin_layout LyX-Code
30960
30961 \family sans
30962 #
30963 \end_layout
30964
30965 \begin_layout LyX-Code
30966
30967 \family sans
30968 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
30969 \end_layout
30970
30971 \begin_layout Standard
30972 The next part of the converter setting is the 
30973 \begin_inset Quotes eld
30974 \end_inset
30975
30976 Flags
30977 \begin_inset Quotes erd
30978 \end_inset
30979
30980  which is to be set to
30981 \end_layout
30982
30983 \begin_layout LyX-Code
30984
30985 \family typewriter
30986 parselog=$$s/scripts/listerrors
30987 \end_layout
30988
30989 \begin_layout Standard
30990 This will run any errors that are generated by the 
30991 \begin_inset Quotes eld
30992 \end_inset
30993
30994 build-script
30995 \begin_inset Quotes erd
30996 \end_inset
30997
30998  process through the 
30999 \begin_inset Quotes eld
31000 \end_inset
31001
31002 listerrors
31003 \begin_inset Quotes erd
31004 \end_inset
31005
31006  program.
31007 \end_layout
31008
31009 \begin_layout Standard
31010 The build will normally take place in \SpecialChar LyX
31011 's temporary directory,
31012  so the files produced by the conversion will be in that directory.
31013  \SpecialChar LyX
31014  will copy out what it regards as the `main' file,
31015  but the 
31016 \family typewriter
31017 Noweb->Program
31018 \family default
31019  conversion may produce several files,
31020  and so most of these would then be deleted when \SpecialChar LyX
31021  was closed.
31022  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.
31023 \end_layout
31024
31025 \begin_layout Paragraph
31026 Build instructions in the document
31027 \end_layout
31028
31029 \begin_layout Standard
31030 The last piece of the integration between \SpecialChar LyX
31031  and noweb is the 
31032 \begin_inset Quotes eld
31033 \end_inset
31034
31035 build-script
31036 \begin_inset Quotes erd
31037 \end_inset
31038
31039  chunk.
31040  Generally,
31041  the instructions for building your program should be embedded in a chunk of its own.
31042  The noweb-specific 
31043 \begin_inset Quotes eld
31044 \end_inset
31045
31046 build-script
31047 \begin_inset Quotes erd
31048 \end_inset
31049
31050  above uses the notangle command to look for this chunk (called 
31051 \begin_inset Quotes eld
31052 \end_inset
31053
31054 build-script
31055 \begin_inset Quotes erd
31056 \end_inset
31057
31058 ) and runs its contents through 
31059 \begin_inset Quotes eld
31060 \end_inset
31061
31062 sh
31063 \begin_inset Quotes erd
31064 \end_inset
31065
31066 .
31067 \end_layout
31068
31069 \begin_layout Standard
31070 Typically,
31071  such a chunk would look something like this:
31072 \end_layout
31073
31074 \begin_layout LyX-Code
31075 <<build-script>>=
31076 \end_layout
31077
31078 \begin_layout LyX-Code
31079 #!/bin/sh
31080 \begin_inset Newline newline
31081 \end_inset
31082
31083 if [ -z "${NOWEB_SOURCE}" ]
31084 \begin_inset Newline newline
31085 \end_inset
31086
31087 then
31088 \end_layout
31089
31090 \begin_layout LyX-Code
31091 NOWEB_SOURCE=myfile.nw
31092 \begin_inset Newline newline
31093 \end_inset
31094
31095 fi
31096 \begin_inset Newline newline
31097 \end_inset
31098
31099 [...
31100  code to extract files ...
31101  use NOWEB_OUTPUT_DIR here ...]
31102 \begin_inset Newline newline
31103 \end_inset
31104
31105 [...
31106  code to compile files ...]
31107 \begin_inset Newline newline
31108 \end_inset
31109
31110 @
31111 \end_layout
31112
31113 \begin_layout Standard
31114 Look in 
31115 \family sans
31116 File\SpecialChar menuseparator
31117 Open Example\SpecialChar menuseparator
31118 Modules\SpecialChar menuseparator
31119 Noweb Listerrors
31120 \family default
31121  or in 
31122 \family sans
31123 File\SpecialChar menuseparator
31124 Open Example\SpecialChar menuseparator
31125 Modules\SpecialChar menuseparator
31126 Noweb2LyX
31127 \family default
31128  which implement versions of the 
31129 \begin_inset Quotes eld
31130 \end_inset
31131
31132 listerrors
31133 \begin_inset Quotes erd
31134 \end_inset
31135
31136  program for some illustrations of how all of these pieces go together 
31137 \emph on
31138 .
31139
31140 \emph default
31141  Interestingly,
31142  these files show off the language independency of the \SpecialChar LyX
31143  literate programming support since they are written in Python and Perl respectively.
31144 \end_layout
31145
31146 \begin_layout Subsubsection
31147 Configuring \SpecialChar LyX
31148
31149 \end_layout
31150
31151 \begin_layout Standard
31152 All the Literate Programming support is configured by the 
31153 \family sans
31154 Tools\SpecialChar menuseparator
31155 Preferences
31156 \family default
31157  panel in the 
31158 \begin_inset Quotes eld
31159 \end_inset
31160
31161 File Handling
31162 \begin_inset Quotes erd
31163 \end_inset
31164
31165  tab.
31166  The important parts are:
31167 \end_layout
31168
31169 \begin_layout Description
31170 the
31171 \begin_inset space ~
31172 \end_inset
31173
31174
31175 \begin_inset Quotes eld
31176 \end_inset
31177
31178 NoWeb
31179 \begin_inset Quotes erd
31180 \end_inset
31181
31182
31183 \begin_inset space ~
31184 \end_inset
31185
31186 format Set up via the File Formats tab,
31187  this is where the Noweb-specific pieces are set up.
31188  The 
31189 \family sans
31190 GUI Name
31191 \family default
31192  is set to 
31193 \family typewriter
31194 NoWeb
31195 \family default
31196 ,
31197  the file extension is set to 
31198 \family typewriter
31199 .nw
31200 \family default
31201 .
31202  This tells \SpecialChar LyX
31203  to create a file with a 
31204 \family typewriter
31205 .nw
31206 \family default
31207  extension in the first step of the conversion process.
31208 \end_layout
31209
31210 \begin_layout Description
31211 the
31212 \begin_inset space ~
31213 \end_inset
31214
31215
31216 \family sans
31217 Program
31218 \family default
31219
31220 \begin_inset space ~
31221 \end_inset
31222
31223 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).
31224 \end_layout
31225
31226 \begin_layout Description
31227
31228 \family sans
31229 NoWeb
31230 \family default
31231 ->
31232 \family sans
31233 \SpecialChar LaTeX
31234
31235 \family default
31236  This converter performs the 
31237 \begin_inset Quotes eld
31238 \end_inset
31239
31240 weaving
31241 \begin_inset Quotes erd
31242 \end_inset
31243
31244  of the literate document.
31245  For Noweb,
31246  it is set to 
31247 \begin_inset Quotes eld
31248 \end_inset
31249
31250
31251 \family typewriter
31252 noweave -delay -index $$i > $$o
31253 \family default
31254
31255 \begin_inset Quotes erd
31256 \end_inset
31257
31258
31259 \end_layout
31260
31261 \begin_layout Description
31262
31263 \family sans
31264 NoWeb
31265 \family default
31266 ->
31267 \family sans
31268 Program
31269 \family default
31270  This performs the 
31271 \begin_inset Quotes eld
31272 \end_inset
31273
31274 tangling step
31275 \begin_inset Quotes erd
31276 \end_inset
31277
31278 .
31279  As stated above,
31280  the Converter is set to 
31281 \begin_inset Quotes eld
31282 \end_inset
31283
31284
31285 \family typewriter
31286 build-script $$i
31287 \family default
31288  $$r
31289 \begin_inset Quotes erd
31290 \end_inset
31291
31292 ,
31293  with Flags set to
31294 \begin_inset Newline newline
31295 \end_inset
31296
31297
31298 \begin_inset Quotes eld
31299 \end_inset
31300
31301
31302 \family typewriter
31303 parselog=$$s/scripts/listerrors
31304 \family default
31305
31306 \begin_inset Quotes erd
31307 \end_inset
31308
31309 .
31310 \end_layout
31311
31312 \begin_layout Subsubsection
31313 Debug extensions
31314 \end_layout
31315
31316 \begin_layout Standard
31317 There is also a new function implemented in the \SpecialChar LyX
31318  server,
31319  the 
31320 \begin_inset Quotes eld
31321 \end_inset
31322
31323 server-goto-file-row" function,
31324  to be used with ddd/gdb or other debugger.
31325  
31326 \end_layout
31327
31328 \begin_layout Standard
31329 When debugging code with ddd/gdb,
31330  it is possible to invoke a text editor at the current execution position with a single key stroke.
31331  The default ddd configuration for that is shift-ctrl-V.
31332  It happens that you can define the editor command line invocation in ddd by accessing the 
31333 \family sans
31334 Edit\SpecialChar menuseparator
31335 Preferences\SpecialChar menuseparator
31336 Helpers
31337 \family default
31338  dialog and changing the "Edit Sources" entry.
31339 \end_layout
31340
31341 \begin_layout Standard
31342 I take advantage of the newly created \SpecialChar LyX
31343  server function and this ddd feature,
31344  and set 
31345 \begin_inset Quotes eld
31346 \end_inset
31347
31348 Edit Sources
31349 \begin_inset Quotes erd
31350 \end_inset
31351
31352  to:
31353 \end_layout
31354
31355 \begin_layout LyX-Code
31356 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
31357 \end_layout
31358
31359 \begin_layout Standard
31360 With this,
31361  whenever you are using ddd and find a point in the program that you want to edit,
31362  you just press shift-ctrl-V (in the ddd window),
31363  and ddd will forward this information to \SpecialChar LyX
31364  through the \SpecialChar LyX
31365  server and then the \SpecialChar LyX
31366  window will show the same file with the cursor at the same position ddd was pointing to.
31367  No more guessing or long scrolling to locate a point in the program back from debugging !
31368 \end_layout
31369
31370 \begin_layout Standard
31371 Note however that you must enable the \SpecialChar LyX
31372  server to get this feature working (it is disabled by default).
31373  Sec.
31374 \begin_inset space ~
31375 \end_inset
31376
31377
31378 \begin_inset CommandInset ref
31379 LatexCommand ref
31380 reference "sec:Starting-the-Server"
31381 nolink "false"
31382
31383 \end_inset
31384
31385  explains how to do that.
31386 \end_layout
31387
31388 \begin_layout Subsubsection
31389 Toolbar extensions
31390 \end_layout
31391
31392 \begin_layout Standard
31393 There are six new buttons that can be added to your \SpecialChar LyX
31394  toolbar.
31395  Four of these buttons are short cuts to layout styles:
31396  
31397 \family sans
31398 Standard
31399 \family default
31400 ,
31401  
31402 \family sans
31403 Section
31404 \family default
31405 ,
31406  
31407 \family sans
31408 \SpecialChar LaTeX
31409
31410 \family default
31411 ,
31412  and 
31413 \family sans
31414 \SpecialChar LyX
31415 -Code
31416 \family default
31417 ,
31418  one for the custom inset 
31419 \family sans
31420 Chunk
31421 \family default
31422 .
31423  The last one is a short cut to the 
31424 \begin_inset Quotes eld
31425 \end_inset
31426
31427 Build Program
31428 \begin_inset Quotes erd
31429 \end_inset
31430
31431  File menu entry.
31432  
31433 \end_layout
31434
31435 \begin_layout Standard
31436 \SpecialChar LyX
31437  has a range of buttons that are available for tool bar customization.
31438  In my toolbar I like to combine the six short cuts above with two more:
31439  One for 
31440 \family sans
31441 Document
31442 \family default
31443 \SpecialChar menuseparator
31444
31445 \family sans
31446 Update
31447 \family default
31448 \SpecialChar menuseparator
31449
31450 \family sans
31451 DVI
31452 \family default
31453  and the other for 
31454 \family sans
31455 Document\SpecialChar menuseparator
31456 View\SpecialChar menuseparator
31457 DVI
31458 \family default
31459  File menu entries.
31460  Here is how it looks like:
31461 \end_layout
31462
31463 \begin_layout LyX-Code
31464 Toolbar
31465 \end_layout
31466
31467 \begin_layout LyX-Code
31468   Layouts
31469 \end_layout
31470
31471 \begin_layout LyX-Code
31472   Icon "layout Standard"
31473 \end_layout
31474
31475 \begin_layout LyX-Code
31476   Icon "layout Section"
31477 \end_layout
31478
31479 \begin_layout LyX-Code
31480   Icon "layout \SpecialChar LaTeX
31481 "
31482 \end_layout
31483
31484 \begin_layout LyX-Code
31485   Icon "layout \SpecialChar LyX
31486 -Code"
31487 \end_layout
31488
31489 \begin_layout LyX-Code
31490   Icon "flex.insert Chunk"
31491 \end_layout
31492
31493 \begin_layout LyX-Code
31494   Separator
31495 \end_layout
31496
31497 \begin_layout LyX-Code
31498   Icon "buffer-view"
31499 \end_layout
31500
31501 \begin_layout LyX-Code
31502   Icon "buffer-typeset"
31503 \end_layout
31504
31505 \begin_layout LyX-Code
31506   Icon "build-program"
31507 \end_layout
31508
31509 \begin_layout LyX-Code
31510   Separator
31511 \end_layout
31512
31513 \begin_layout LyX-Code
31514 .
31515 \end_layout
31516
31517 \begin_layout LyX-Code
31518 .
31519 \end_layout
31520
31521 \begin_layout LyX-Code
31522 .
31523 \end_layout
31524
31525 \begin_layout LyX-Code
31526 End
31527 \end_layout
31528
31529 \begin_layout Subsubsection
31530 Colors customization
31531 \end_layout
31532
31533 \begin_layout Standard
31534 There are a number of colors in \SpecialChar LyX
31535  that can be customized in 
31536 \family sans
31537 Preferences
31538 \family default
31539 .
31540  One of the things that bothers people is the \SpecialChar LaTeX
31541  font color.
31542  The default color is red,
31543  since the chunks uses \SpecialChar LaTeX
31544  font,
31545  and there is a lot of chunks in literate documents,
31546  you may get tired of seeing everything in red.
31547  You can change it by going to the tabs 
31548 \family sans
31549 Look&Feel
31550 \family default
31551 ,
31552  
31553 \family sans
31554 Colors.
31555 \end_layout
31556
31557 \begin_layout Standard
31558 The next thing is the visible presence of the newline character in the screen.
31559  You can choose the color of this particular character and make it blend in the background.
31560  I recommend you choosing a color that is close to the background but not equal,
31561  that way you still can see it is there,
31562  but it is not bothering you anymore.
31563 \end_layout
31564
31565 \begin_layout Subsection
31566 \SpecialChar LyX
31567  and knitr/Sweave
31568 \end_layout
31569
31570 \begin_layout Standard
31571 Support for 
31572 \family sans
31573 knitr
31574 \family default
31575  and 
31576 \family sans
31577 Sweave
31578 \family default
31579  is documented in 
31580 \family sans
31581 Help\SpecialChar menuseparator
31582 Specific Manuals\SpecialChar menuseparator
31583 Knitr
31584 \family default
31585  and 
31586 \family sans
31587 File\SpecialChar menuseparator
31588 Open Example\SpecialChar menuseparator
31589 Modules\SpecialChar menuseparator
31590 Rnw (knitr)
31591 \family default
31592  and in 
31593 \family sans
31594 Help\SpecialChar menuseparator
31595 Specific Manuals\SpecialChar menuseparator
31596 Sweave
31597 \family default
31598  and 
31599 \family sans
31600 File\SpecialChar menuseparator
31601 Open Example\SpecialChar menuseparator
31602 Modules\SpecialChar menuseparator
31603 Sweave
31604 \family default
31605 .
31606 \end_layout
31607
31608 \begin_layout Standard
31609 \begin_inset CommandInset index_print
31610 LatexCommand printindex
31611 type "idx"
31612 name "Index"
31613
31614 \end_inset
31615
31616
31617 \end_layout
31618
31619 \end_body
31620 \end_document