]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
French EmbeddedObjects manual: final upadte before 2.4.0
[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 article (AMS)
2376 \family default
2377  and 
2378 \family sans
2379 book (AMS)
2380 \family default
2381  are maintained by the Society;
2382  use of their features is described in the Math manual and on their website 
2383 \begin_inset Flex URL
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387
2388 http://www.ams.org/publications/authors/tex/amslatex
2389 \end_layout
2390
2391 \end_inset
2392
2393 .
2394  The following summary was originally provided by 
2395 \noun on
2396 David Johnson
2397 \noun default
2398  and updated by 
2399 \noun on
2400 Richard Kimberly Heck
2401 \noun default
2402  and the \SpecialChar LyX
2403  Team
2404 \noun on
2405 .
2406 \end_layout
2407
2408 \begin_layout Standard
2409 \begin_inset VSpace bigskip
2410 \end_inset
2411
2412
2413 \end_layout
2414
2415 \begin_layout Standard
2416 \noindent
2417 The AMS \SpecialChar LaTeX
2418  layouts are set up to conform to suggested styles for mathematical papers to be submitted to American Mathematical Society publications.
2419  The layouts are not tailored to a specific journal,
2420  but easily can be.
2421  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
2422  output).
2423  That documentation is available on the Web at 
2424 \begin_inset Flex URL
2425 status open
2426
2427 \begin_layout Plain Layout
2428
2429 http://www.ams.org
2430 \end_layout
2431
2432 \end_inset
2433
2434  or by ftp at 
2435 \begin_inset Flex URL
2436 status open
2437
2438 \begin_layout Plain Layout
2439
2440 ftp://ftp.ams.org/pub/tex/amslatex/
2441 \end_layout
2442
2443 \end_inset
2444
2445 .
2446  These layouts are appropriate,
2447  and useful,
2448  for any mathematical writing.
2449  
2450 \end_layout
2451
2452 \begin_layout Standard
2453 There are three basic AMS \SpecialChar LaTeX
2454  layouts:
2455  
2456 \end_layout
2457
2458 \begin_layout Itemize
2459 amsart:
2460  The standard AMS article format;
2461  see 
2462 \family sans
2463 File\SpecialChar menuseparator
2464 Open Example\SpecialChar menuseparator
2465 Articles\SpecialChar menuseparator
2466 American Mathematical Society (AMS)
2467 \family default
2468 .
2469 \end_layout
2470
2471 \begin_layout Itemize
2472 amsbook:
2473  the standard AMS book (really,
2474  monograph) format;
2475  see 
2476 \family sans
2477 File\SpecialChar menuseparator
2478 Open Example\SpecialChar menuseparator
2479 Books\SpecialChar menuseparator
2480 American Mathematical Society (AMS)
2481 \family default
2482 .
2483 \end_layout
2484
2485 \begin_layout Itemize
2486 amsproc:
2487  the standard AMS proceedings format.
2488 \end_layout
2489
2490 \begin_layout Standard
2491 \SpecialChar LyX
2492  only supports the first two natively;
2493  see the 
2494 \emph on
2495 Installing New Document Classes
2496 \emph default
2497  chapter of the 
2498 \emph on
2499 Customization
2500 \emph default
2501  manual if you want to use 
2502 \family sans
2503 amsproc
2504 \family default
2505 .
2506 \end_layout
2507
2508 \begin_layout Standard
2509 The layouts themselves contain only the minimum necessary to use the AMS classes.
2510  They do not,
2511  in particular,
2512  contain any of the `theorem' environments used for setting theorems,
2513  lemmas,
2514  and the like.
2515  These are contained,
2516  instead,
2517  in the 
2518 \family sans
2519 AMS Theorems
2520 \family default
2521  module,
2522  which is loaded by default when you select one of the AMS classes.
2523  (It can also be used with other classes and can be removed,
2524  if you would rather use something else.) Less commonly used environments are in the 
2525 \family sans
2526 AMS Theorems (Extended)
2527 \family default
2528  module,
2529  which must be loaded manually.
2530 \end_layout
2531
2532 \begin_layout Standard
2533 By default,
2534  theorems and the like are numbered consecutively throughout the document,
2535  but this may be modified by loading the module 
2536 \family sans
2537 Standard Theorems (Numbered by Section)
2538 \family default
2539  or,
2540  if you are using 
2541 \begin_inset Flex Code
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 book (AMS)
2546 \end_layout
2547
2548 \end_inset
2549
2550 ,
2551  the module 
2552 \family sans
2553 Standard Theorems (Numbered by Chapter)
2554 \family default
2555 .
2556  These will number the results as 
2557 \begin_inset Formula $n.m$
2558 \end_inset
2559
2560 ,
2561  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).
2562  Many environments are also available unnumbered.
2563  These are indicated by an asterisk at the end.
2564  If you happen to want 
2565 \emph on
2566 only
2567 \emph default
2568  unnumbered results,
2569  the module 
2570 \family sans
2571 Standard Theorems (Unnumbered)
2572 \family default
2573  provides that option.
2574 \end_layout
2575
2576 \begin_layout Standard
2577 Note that these modules do not 
2578 \emph on
2579 have
2580 \emph default
2581  to be used with the AMS classes.
2582  It is perfectly possible to use the 
2583 \family sans
2584 AMS Theorems
2585 \family default
2586  module,
2587  and the others mentioned,
2588  with other classes,
2589  such as 
2590 \begin_inset Flex Code
2591 status collapsed
2592
2593 \begin_layout Plain Layout
2594 Article (Standard Class)
2595 \end_layout
2596
2597 \end_inset
2598
2599 ,
2600  
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605 Report (Standard Class)
2606 \end_layout
2607
2608 \end_inset
2609
2610 ,
2611  
2612 \begin_inset Flex Code
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 KOMA-Script Book
2617 \end_layout
2618
2619 \end_inset
2620
2621 ,
2622  and so forth.
2623 \end_layout
2624
2625 \begin_layout Subsubsection
2626 What these layouts provide
2627 \end_layout
2628
2629 \begin_layout Standard
2630 There is a long list of included environments provided by these layouts.
2631  In AMS-\SpecialChar LaTeX
2632 ,
2633  there is,
2634  in fact,
2635  an opportunity to define an unlimited variety of `theorem' environments.
2636  However,
2637  the AMS recommends the environments that are available in \SpecialChar LyX
2638 .
2639  
2640 \end_layout
2641
2642 \begin_layout Standard
2643 The following environments—
2644 as well as the standard environments,
2645  such as 
2646 \begin_inset Flex Noun
2647 status collapsed
2648
2649 \begin_layout Plain Layout
2650 section
2651 \end_layout
2652
2653 \end_inset
2654
2655 ,
2656  
2657 \begin_inset Flex Noun
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 bibliography
2662 \end_layout
2663
2664 \end_inset
2665
2666 ,
2667  
2668 \begin_inset Flex Noun
2669 status collapsed
2670
2671 \begin_layout Plain Layout
2672 title
2673 \end_layout
2674
2675 \end_inset
2676
2677 ,
2678  
2679 \begin_inset Flex Noun
2680 status collapsed
2681
2682 \begin_layout Plain Layout
2683 author
2684 \end_layout
2685
2686 \end_inset
2687
2688 ,
2689  and 
2690 \begin_inset Flex Noun
2691 status collapsed
2692
2693 \begin_layout Plain Layout
2694 date
2695 \end_layout
2696
2697 \end_inset
2698
2699
2700 are provided by 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 article (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  and 
2711 \begin_inset Flex Code
2712 status collapsed
2713
2714 \begin_layout Plain Layout
2715 book (AMS)
2716 \end_layout
2717
2718 \end_inset
2719
2720 :
2721 \end_layout
2722
2723 \begin_layout Description
2724 Address This should be the author's permanent address.
2725 \end_layout
2726
2727 \begin_layout Description
2728 Current
2729 \begin_inset space ~
2730 \end_inset
2731
2732 Address This should be the author's temporary address at the time of submission,
2733  if different from the Address.
2734 \end_layout
2735
2736 \begin_layout Description
2737 Email Author's e-mail address
2738 \end_layout
2739
2740 \begin_layout Description
2741 URL Author's Web address,
2742  if desired.
2743 \end_layout
2744
2745 \begin_layout Description
2746 Keywords Key words or phrases used to identify specific topics discussed in the paper.
2747 \end_layout
2748
2749 \begin_layout Description
2750 Subjectclass These refer to the AMS Subject Classifications,
2751  published and described in 
2752 \emph on
2753 Mathematical Reviews
2754 \emph default
2755 .
2756  These are also available online at the AMS cites listed above.
2757 \end_layout
2758
2759 \begin_layout Description
2760 Thanks
2761 \end_layout
2762
2763 \begin_layout Description
2764 Dedicatory
2765 \end_layout
2766
2767 \begin_layout Description
2768 Translator
2769 \end_layout
2770
2771 \begin_layout Standard
2772 The following environments are provided by both the 
2773 \family sans
2774 Standard Theorems
2775 \family default
2776  and 
2777 \family sans
2778 AMS Theorems
2779 \family default
2780  modules,
2781  in the latter case in both unnumbered and numbered versions.
2782  These same environments are provided only in the starred versions by the 
2783 \family sans
2784 Standard Theorems (Unnumbered)
2785 \family default
2786  module:
2787 \end_layout
2788
2789 \begin_layout Theorem
2790 This is typically used for the statements of major results.
2791  
2792 \end_layout
2793
2794 \begin_layout Corollary*
2795 This is used for statements which follow fairly directly from previous statements.
2796  Again,
2797  these can be major results.
2798  
2799 \end_layout
2800
2801 \begin_layout Lemma
2802 These are smaller results needed to prove other statements.
2803 \end_layout
2804
2805 \begin_layout Proposition
2806 These are less major results which (hopefully) add to the general theory being discussed.
2807 \end_layout
2808
2809 \begin_layout Conjecture
2810 These are statements provided without justification,
2811  which the author does not know how to prove,
2812  but which seem to be true (to the author,
2813  at least).
2814 \end_layout
2815
2816 \begin_layout Definition*
2817 Guess what this is for.
2818  The font is different for this environment than for the previous ones.
2819  
2820 \end_layout
2821
2822 \begin_layout Example*
2823 Used for examples illustrating proven results.
2824 \end_layout
2825
2826 \begin_layout Problem
2827 It's not really known what this is for.
2828  You should figure it out.
2829 \end_layout
2830
2831 \begin_layout Exercise*
2832 Write a description for this one.
2833 \end_layout
2834
2835 \begin_layout Remark
2836 This environment is also a type of theorem,
2837  usually a lesser sort of observation.
2838 \end_layout
2839
2840 \begin_layout Claim*
2841 Often used in the course of giving a proof of a larger result.
2842 \end_layout
2843
2844 \begin_layout Case
2845 Generally,
2846  these are used to break up long arguments,
2847  using specific instances of some condition.
2848  
2849 \end_layout
2850
2851 \begin_layout Case
2852 The numbering scheme for cases is on its own,
2853  not together with other numbered statements.
2854  
2855 \end_layout
2856
2857 \begin_layout Proof
2858 At the end of this environment,
2859  a QED symbol (usually a square,
2860  but it can vary with different styles) is placed.
2861  If you want to have other environments within this one—
2862 for example,
2863  Case environments—
2864 and have the QED symbol appear only after them,
2865  then the other environments need to be nested within the proof environment.
2866  See the section 
2867 \emph on
2868 Nesting Environments
2869 \emph default
2870  of the 
2871 \emph on
2872 User's Guide
2873 \emph default
2874  for information on nesting.
2875 \end_layout
2876
2877 \begin_layout Fact
2878 Used in a way similar to Proposition,
2879  though perhaps lower on the scale.
2880 \end_layout
2881
2882 \begin_layout Standard
2883 And these environments are provided by 
2884 \family sans
2885 AMS Theorems (Extended
2886 \family default
2887 ):
2888 \end_layout
2889
2890 \begin_layout Criterion*
2891 A required condition.
2892 \end_layout
2893
2894 \begin_layout Algorithm*
2895 A general procedure to be used.
2896 \end_layout
2897
2898 \begin_layout Axiom*
2899 This is a property or statement taken as true within the system being discussed.
2900 \end_layout
2901
2902 \begin_layout Condition*
2903 Sometimes used to state a condition assumed within the present context of discussion.
2904 \end_layout
2905
2906 \begin_layout Note*
2907 Similar to a Remark.
2908 \end_layout
2909
2910 \begin_layout Notation*
2911 Used for the explanation of,
2912  yes,
2913  notation.
2914 \end_layout
2915
2916 \begin_layout Summary
2917 Do we really need to tell you?
2918  
2919 \end_layout
2920
2921 \begin_layout Conclusion*
2922 Sometimes used at the end of a long train of argument.
2923 \end_layout
2924
2925 \begin_layout Assumption*
2926 Assumption
2927 \end_layout
2928
2929 \begin_layout Question*
2930 Question
2931 \end_layout
2932
2933 \begin_layout Standard
2934 There are ten more Maths modules available including several offering options ordered on 
2935 \family sans
2936 (Numbered by Type \SpecialChar ldots
2937 )
2938 \family default
2939 .
2940 \end_layout
2941
2942 \begin_layout Standard
2943 In addition,
2944  the AMS classes automatically provide the AMS \SpecialChar LaTeX
2945  and AMS fonts packages.
2946  They need to be available on your system in order to use these environments.
2947 \end_layout
2948
2949 \begin_layout Subsection
2950 \begin_inset CommandInset label
2951 LatexCommand label
2952 name "subsec:Extra-font-sizes"
2953
2954 \end_inset
2955
2956 Extra font sizes
2957 \end_layout
2958
2959 \begin_layout Standard
2960 The “Extra font sizes” collection provides the document classes 
2961 \family sans
2962 article
2963 \begin_inset space \thinspace{}
2964 \end_inset
2965
2966 (with extra font sizes)
2967 \family default
2968 ,
2969  
2970 \family sans
2971 book
2972 \begin_inset space \thinspace{}
2973 \end_inset
2974
2975 (with extra font sizes)
2976 \family default
2977 ,
2978  
2979 \family sans
2980 letter
2981 \begin_inset space \thinspace{}
2982 \end_inset
2983
2984 (with extra font sizes)
2985 \family default
2986  and 
2987 \family sans
2988 report
2989 \begin_inset space \thinspace{}
2990 \end_inset
2991
2992 (with extra font sizes)
2993 \family default
2994  which use the 
2995 \family typewriter
2996 article.cls
2997 \family default
2998 ,
2999  
3000 \family typewriter
3001 book.cls
3002 \family default
3003 ,
3004  
3005 \family typewriter
3006 letter.cls
3007 \family default
3008  and 
3009 \family typewriter
3010 report.cls
3011 \family default
3012  document classes respectively but offer the additional 
3013 \family sans
3014 \bar under
3015 B
3016 \bar default
3017 ase
3018 \begin_inset space ~
3019 \end_inset
3020
3021 Size
3022 \family default
3023  options 8,
3024  9,
3025  14,
3026  17 and 20 in the 
3027 \family sans
3028 \bar under
3029 D
3030 \bar default
3031 ocument\SpecialChar menuseparator
3032
3033 \bar under
3034 S
3035 \bar default
3036 ettings\SpecialChar menuseparator
3037 Fonts
3038 \family default
3039  dialog.
3040 \end_layout
3041
3042 \begin_layout Subsection
3043 Hebrew
3044 \end_layout
3045
3046 \begin_layout Standard
3047 The document classes 
3048 \family sans
3049 article
3050 \begin_inset space \thinspace{}
3051 \end_inset
3052
3053 (Hebrew)
3054 \family default
3055  and 
3056 \family sans
3057 letter
3058 \begin_inset space \thinspace{}
3059 \end_inset
3060
3061 (Hebrew)
3062 \family default
3063  use the 
3064 \family typewriter
3065 article.cl
3066 \family sans
3067 s
3068 \family default
3069  and 
3070 \family typewriter
3071 letter.cls
3072 \family default
3073  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3074 .
3075 \end_layout
3076
3077 \begin_layout Subsection
3078 \begin_inset CommandInset label
3079 LatexCommand label
3080 name "subsec:Japanese"
3081
3082 \end_inset
3083
3084 Japanese (Standard Classes)
3085 \end_layout
3086
3087 \begin_layout Standard
3088 \SpecialChar LyX
3089  included a collection of several bundles that aim to facilitate typesetting Japanese documents.
3090  The bundles have been developed at different times,
3091  they thus support different typesetting engines and features.
3092  This collection is the oldest one.
3093  It adjusts the \SpecialChar LaTeX
3094  standard classes to requirements of Japanese typesetting,
3095  for horizontal and vertical writing.
3096  The collection includes 
3097 \family sans
3098 Japanese Article
3099 \begin_inset space \thinspace{}
3100 \end_inset
3101
3102 (Standard Class)
3103 \family default
3104 ,
3105  
3106 \family sans
3107 Japanese Article
3108 \begin_inset space \thinspace{}
3109 \end_inset
3110
3111 (Standard Class,
3112  vertical Writing)
3113 \family default
3114 ,
3115  
3116 \family sans
3117 Japanese Book
3118 \begin_inset space \thinspace{}
3119 \end_inset
3120
3121 (Standard Class)
3122 \family default
3123 ,
3124  
3125 \family sans
3126 Japanese Book
3127 \begin_inset space \thinspace{}
3128 \end_inset
3129
3130 (Standard Class,
3131  vertical Writing)
3132 \family default
3133 ,
3134  
3135 \family sans
3136 Japanese Report
3137 \begin_inset space \thinspace{}
3138 \end_inset
3139
3140 (Japanese Standard Class)
3141 \family default
3142 ,
3143  and
3144 \family sans
3145  Japanese Report
3146 \begin_inset space \thinspace{}
3147 \end_inset
3148
3149 (Standard Class,
3150  vertical Writing)
3151 \family default
3152 ,
3153  which all work with 
3154 \begin_inset Quotes eld
3155 \end_inset
3156
3157 classic
3158 \begin_inset Quotes erd
3159 \end_inset
3160
3161  engines tailored for Japanese,
3162  p\SpecialChar LaTeX
3163  and up\SpecialChar LaTeX
3164 .
3165 \end_layout
3166
3167 \begin_layout Standard
3168 For the use with the more modern Lua\SpecialChar LaTeX
3169  typesetting engine,
3170  the collection also includes dedicated classes 
3171 \family sans
3172 Japanese Article
3173 \begin_inset space \thinspace{}
3174 \end_inset
3175
3176 (Standard Class for LuaTeX),
3177  Japanese Article
3178 \begin_inset space \thinspace{}
3179 \end_inset
3180
3181 (Standard Class for LuaTeX,
3182  vertical Writing),
3183  Japanese Book
3184 \begin_inset space \thinspace{}
3185 \end_inset
3186
3187 (Standard Class for LuaTeX)
3188 \family default
3189 ,
3190  
3191 \family sans
3192 Japanese Book
3193 \begin_inset space \thinspace{}
3194 \end_inset
3195
3196 (Standard Class for LuaTeX,
3197  vertical Writing)
3198 \family default
3199 ,
3200  
3201 \family sans
3202 Japanese Report
3203 \begin_inset space \thinspace{}
3204 \end_inset
3205
3206 (Japanese Standard Class for LuaTeX)
3207 \family default
3208 ,
3209  and 
3210 \family sans
3211 Japanese Report
3212 \begin_inset space \thinspace{}
3213 \end_inset
3214
3215 (Japanese Standard Class for LuaTeX,
3216  vertical Writing)
3217 \family default
3218 ,
3219  provided by the 
3220 \family sans
3221 luatexja
3222 \family default
3223  \SpecialChar LaTeX
3224  package.
3225 \end_layout
3226
3227 \begin_layout Standard
3228 Templates for the Lua\SpecialChar LaTeX
3229  classes can be found in 
3230 \family sans
3231 File\SpecialChar menuseparator
3232 New From Template
3233 \family default
3234  in the respective category (
3235 \family sans
3236 Articles
3237 \family default
3238 ,
3239  
3240 \family sans
3241 Books
3242 \family default
3243 ,
3244  or 
3245 \family sans
3246 Reports
3247 \family default
3248 ).
3249 \end_layout
3250
3251 \begin_layout Subsection
3252 \begin_inset CommandInset label
3253 LatexCommand label
3254 name "subsec:Japanese-JS"
3255
3256 \end_inset
3257
3258 Japanese (JS Bundle)
3259 \end_layout
3260
3261 \begin_layout Standard
3262 This collection includes improved versions of the classes included in 
3263 \family sans
3264 Japanese (Standard Classes)
3265 \family default
3266  (see
3267 \begin_inset space ~
3268 \end_inset
3269
3270
3271 \begin_inset CommandInset ref
3272 LatexCommand ref
3273 reference "subsec:Japanese"
3274
3275 \end_inset
3276
3277 ).
3278  It includes 
3279 \family sans
3280 Japanese Article
3281 \begin_inset space \thinspace{}
3282 \end_inset
3283
3284 (JS Bundle) 
3285 \family default
3286 and 
3287 \family sans
3288 Japanese Book
3289 \begin_inset space \thinspace{}
3290 \end_inset
3291
3292 (JS Bundle)
3293 \family default
3294 .
3295  A report class can be obtained by using 
3296 \family sans
3297 Japanese Book
3298 \begin_inset space \thinspace{}
3299 \end_inset
3300
3301 (JS Bundle)
3302 \family default
3303  with option 
3304 \family sans
3305 report
3306 \family default
3307  in 
3308 \family sans
3309 Document\SpecialChar menuseparator
3310 Settings\SpecialChar menuseparator
3311 Document Class\SpecialChar menuseparator
3312 Class Options\SpecialChar menuseparator
3313 Custom
3314 \family default
3315 .
3316  All these classes work with 
3317 \begin_inset Quotes eld
3318 \end_inset
3319
3320 classic
3321 \begin_inset Quotes erd
3322 \end_inset
3323
3324  engines tailored for Japanese,
3325  p\SpecialChar LaTeX
3326  and up\SpecialChar LaTeX
3327 .
3328 \end_layout
3329
3330 \begin_layout Standard
3331 For the use with the more modern Lua\SpecialChar LaTeX
3332  typesetting engine,
3333  the collection also includes dedicated classes 
3334 \family sans
3335 Japanese Article (JS Bundle for LuaTeX),
3336  Japanese Book
3337 \begin_inset space \thinspace{}
3338 \end_inset
3339
3340 (JS Bundle for LuaTeX)
3341 \family default
3342 ,
3343  and 
3344 \family sans
3345 Japanese Report
3346 \begin_inset space \thinspace{}
3347 \end_inset
3348
3349 (JS Bundle)
3350 \family default
3351 ,
3352  provided by the 
3353 \family sans
3354 luatexja
3355 \family default
3356  \SpecialChar LaTeX
3357  package.
3358 \end_layout
3359
3360 \begin_layout Standard
3361 Templates for the Lua\SpecialChar LaTeX
3362  classes can be found in 
3363 \family sans
3364 File\SpecialChar menuseparator
3365 New From Template
3366 \family default
3367  in the respective category (
3368 \family sans
3369 Articles
3370 \family default
3371 ,
3372  
3373 \family sans
3374 Books
3375 \family default
3376 ,
3377  or 
3378 \family sans
3379 Reports
3380 \family default
3381 ).
3382 \end_layout
3383
3384 \begin_layout Subsection
3385 \begin_inset CommandInset label
3386 LatexCommand label
3387 name "subsec:Japanese-BX"
3388
3389 \end_inset
3390
3391 Japanese (BX Bundle)
3392 \end_layout
3393
3394 \begin_layout Standard
3395 This bundle contains the document classes 
3396 \family sans
3397 Japanese Article
3398 \begin_inset space \thinspace{}
3399 \end_inset
3400
3401 (BX Bundle)
3402 \family default
3403 ,
3404
3405 \family sans
3406  Japanese Book
3407 \begin_inset space \thinspace{}
3408 \end_inset
3409
3410 (BX Bundle)
3411 \family default
3412 ,
3413  and 
3414 \family sans
3415 Japanese Report
3416 \begin_inset space \thinspace{}
3417 \end_inset
3418
3419 (BX Bundle)
3420 \family default
3421  which provide alternative document classes for Japanese documents.
3422  Furthermore,
3423  a class 
3424 \family sans
3425 Japanese Slides (BX Bundle)
3426 \family default
3427  for presentation slides,
3428  is included.
3429  As opposed to the classes of the 
3430 \family sans
3431 Standard Classes
3432 \family default
3433  and 
3434 \family sans
3435 JS 
3436 \family default
3437 bundles (sec.
3438  
3439 \begin_inset CommandInset ref
3440 LatexCommand ref
3441 reference "subsec:Japanese"
3442
3443 \end_inset
3444
3445  and 
3446 \begin_inset CommandInset ref
3447 LatexCommand ref
3448 reference "subsec:Japanese-JS"
3449
3450 \end_inset
3451
3452 ),
3453  which support only p\SpecialChar LaTeX
3454  and up\SpecialChar LaTeX
3455  out of the box (and Lua\SpecialChar LaTeX
3456  only through the extra classes added by the 
3457 \family sans
3458 luatexja
3459 \family default
3460  \SpecialChar LaTeX
3461  package),
3462  the classes of this bundle also support pdf\SpecialChar LaTeX
3463 ,
3464  Xe\SpecialChar LaTeX
3465  and Lua\SpecialChar LaTeX
3466  directly,
3467  with the aid of suitable packages that provide capability of Japanese typesetting.
3468 \end_layout
3469
3470 \begin_layout Subsection
3471 \begin_inset CommandInset label
3472 LatexCommand label
3473 name "subsec:Japanese-JLReq"
3474
3475 \end_inset
3476
3477 Japanese (JLReq Class)
3478 \end_layout
3479
3480 \begin_layout Standard
3481 This bundle draws on the 
3482 \family sans
3483 jlreq
3484 \family default
3485  class which faithfully traces the standard of 
3486 \emph on
3487 Requirements for Japanese Text Layout
3488 \emph default
3489  set by the World Wide Web Consortium (W3C,
3490  see 
3491 \begin_inset Flex URL
3492 status collapsed
3493
3494 \begin_layout Plain Layout
3495
3496 https://www.w3.org/TR/jlreq/?lang=en
3497 \end_layout
3498
3499 \end_inset
3500
3501 ).
3502  It can be used with Lua\SpecialChar LaTeX
3503  as well as p\SpecialChar LaTeX
3504  and up\SpecialChar LaTeX
3505 .
3506 \end_layout
3507
3508 \begin_layout Standard
3509 LyX provides layouts for 
3510 \family sans
3511 Japanese Article
3512 \begin_inset space \thinspace{}
3513 \end_inset
3514
3515 (JLReq Class)
3516 \family default
3517 ,
3518
3519 \family sans
3520  Japanese Book
3521 \begin_inset space \thinspace{}
3522 \end_inset
3523
3524 (JLReq Class)
3525 \family default
3526 ,
3527  and 
3528 \family sans
3529 Japanese Report
3530 \begin_inset space \thinspace{}
3531 \end_inset
3532
3533 (JLReq Class)
3534 \family default
3535  which are all derived from the 
3536 \family sans
3537 jlreq
3538 \family default
3539  \SpecialChar LaTeX
3540  class via specific class options.
3541 \end_layout
3542
3543 \begin_layout Standard
3544 An example article document is available at 
3545 \family sans
3546 File\SpecialChar menuseparator
3547 Open Example\SpecialChar menuseparator
3548 Articles\SpecialChar menuseparator
3549 Japanese Article (JLReq Class)
3550 \family default
3551 .
3552  English documentation is available at 
3553 \begin_inset Flex URL
3554 status collapsed
3555
3556 \begin_layout Plain Layout
3557
3558 http://mirrors.ctan.org/macros/jptex/latex/jlreq/jlreq.pdf
3559 \end_layout
3560
3561 \end_inset
3562
3563 .
3564 \end_layout
3565
3566 \begin_layout Subsection
3567 \begin_inset CommandInset label
3568 LatexCommand label
3569 name "subsec:KOMA-Script"
3570
3571 \end_inset
3572
3573 KOMA-Script
3574 \end_layout
3575
3576 \begin_layout Standard
3577 Original by 
3578 \noun on
3579 Bernd Rellermeyer
3580 \noun default
3581 ;
3582  updated by 
3583 \noun on
3584 Jürgen Spitzmüller
3585 \noun default
3586  and the \SpecialChar LyX
3587  Team
3588 \end_layout
3589
3590 \begin_layout Subsubsection
3591 Overview
3592 \end_layout
3593
3594 \begin_layout Standard
3595 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
3596  it was formally launched with the addition of a letter class in 1994.
3597  Since then,
3598  a second letter class has been added.
3599  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.
3600 \end_layout
3601
3602 \begin_layout Standard
3603 The \SpecialChar LyX
3604  document classes 
3605 \emph on
3606 KOMA-Script Article
3607 \emph default
3608 ,
3609  
3610 \emph on
3611 KOMA-Script Report
3612 \emph default
3613 ,
3614  
3615 \emph on
3616 KOMA-Script Book
3617 \emph default
3618 ,
3619  and 
3620 \emph on
3621 KOMA-Script Letter
3622 \emph default
3623  correspond to the \SpecialChar LaTeX
3624  document classes 
3625 \family typewriter
3626 scrartcl.cls
3627 \family default
3628 ,
3629  
3630 \family typewriter
3631 scrreprt.cls
3632 \family default
3633 ,
3634  
3635 \family typewriter
3636 scrbook.cls
3637 \family default
3638 ,
3639  and 
3640 \family typewriter
3641 scrlettr.cls
3642 \family default
3643 ,
3644  resp.
3645 \begin_inset space ~
3646 \end_inset
3647
3648 of the Koma-Script family.
3649  They are replacements for the standard document classes 
3650 \family typewriter
3651 article.cls
3652 \family default
3653 ,
3654  
3655 \family typewriter
3656 report.cls
3657 \family default
3658 ,
3659  
3660 \family typewriter
3661 book.cls
3662 \family default
3663  and 
3664 \family typewriter
3665 letter.cls
3666 \family default
3667 ,
3668  resp.,
3669  and fit better to European typography conventions in a number of points.
3670 \end_layout
3671
3672 \begin_layout Itemize
3673 The base character sizes when you select a KOMA-Script class are 11pt in 
3674 \emph on
3675 KOMA-Script Article
3676 \emph default
3677 ,
3678  
3679 \emph on
3680 KOMA-Script Report
3681 \emph default
3682 ,
3683  and 
3684 \emph on
3685 KOMA-Script Book
3686 \emph default
3687  and 12pt in 
3688 \emph on
3689 KOMA-Script Letter
3690 \emph default
3691 .
3692 \end_layout
3693
3694 \begin_layout Itemize
3695 Headings,
3696  labels of the description environment,
3697  and a number of elements of the 
3698 \emph on
3699 KOMA-Script Letter
3700 \emph default
3701  document class are set in a bold sans serif font.
3702 \begin_inset Foot
3703 status collapsed
3704
3705 \begin_layout Plain Layout
3706 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
3707  especially in the appearance of headings.
3708  In comparison,
3709  the ec bold sans serif fonts look a bit thin.
3710  Here the \SpecialChar LaTeX
3711  package 
3712 \family typewriter
3713 cmsd.sty by
3714 \family default
3715  
3716 \shape smallcaps
3717 Walter Schmidt
3718 \shape default
3719  helps to produce the 
3720 \begin_inset Quotes eld
3721 \end_inset
3722
3723 usual
3724 \begin_inset Quotes erd
3725 \end_inset
3726
3727  appearance when using the ec fonts.
3728 \end_layout
3729
3730 \end_inset
3731
3732  The numbering of chapter headings is made in the same way as the numbering of section headings,
3733  that is without the extra line 
3734 \begin_inset Quotes eld
3735 \end_inset
3736
3737 Chapter\SpecialChar ldots
3738
3739 \begin_inset Quotes erd
3740 \end_inset
3741
3742 .
3743  In addition,
3744  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
3745  to be entered in the field 
3746 \family sans
3747 Extra
3748 \begin_inset space ~
3749 \end_inset
3750
3751 Options
3752 \family default
3753  of the dialog 
3754 \family sans
3755 Layout\SpecialChar menuseparator
3756 Document
3757 \family default
3758 ).
3759  
3760 \end_layout
3761
3762 \begin_layout Itemize
3763 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.
3764  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.
3765  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
3766  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
3767 \end_layout
3768
3769 \begin_deeper
3770 \begin_layout Standard
3771 Whatever the factor,
3772  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
3773  leaving a text area occupying around half the page.
3774  Since most two-sided documents have a binding,
3775  this can make the inner margins appear too narrow;
3776  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
3777 \end_layout
3778
3779 \begin_layout Standard
3780 The main means in the Koma-Script document classes to design the type area are the options 
3781 \family sans
3782 BCOR
3783 \family default
3784  and 
3785 \family sans
3786 DIV
3787 \family default
3788  entered in 
3789 \family sans
3790 Document\SpecialChar menuseparator
3791 Settings\SpecialChar menuseparator
3792 Document Class\SpecialChar menuseparator
3793 Class Options\SpecialChar menuseparator
3794 Custom
3795 \family default
3796 .
3797 \end_layout
3798
3799 \begin_layout Standard
3800 In this document,
3801  the binding correction is 7.5mm which is added in the form 
3802 \family typewriter
3803 BCOR7.5mm
3804 \family default
3805  to 
3806 \family sans
3807 Class
3808 \begin_inset space ~
3809 \end_inset
3810
3811 options\SpecialChar menuseparator
3812 Cus
3813 \bar under
3814 t
3815 \bar default
3816 om
3817 \family default
3818  dialog.
3819  To change the factor to 11,
3820  for example,
3821  add the entry 
3822 \family typewriter
3823 DIV=11
3824 \family default
3825  to the comma separated list of entries in the 
3826 \family sans
3827 Cus
3828 \bar under
3829 t
3830 \bar default
3831 om
3832 \family default
3833  
3834 \family sans
3835 Class
3836 \begin_inset space ~
3837 \end_inset
3838
3839 options
3840 \family default
3841 .
3842  If you want the default value of this factor for a page size other than A4,
3843  add the entry 
3844 \family typewriter
3845 DIV=calc
3846 \family default
3847 .
3848 \end_layout
3849
3850 \begin_layout Standard
3851 To use the circle method of calculating the page layout,
3852  use 
3853 \family typewriter
3854 DIV=classic
3855 \family default
3856  instead.
3857 \end_layout
3858
3859 \end_deeper
3860 \begin_layout Itemize
3861 The \SpecialChar LaTeX
3862  document classes of the Koma-Script family define a number of additional commands.
3863  Those part of it which makes sense in \SpecialChar LyX
3864  is implemented in corresponding paragraph types.
3865 \end_layout
3866
3867 \begin_layout Standard
3868 Detailed descriptions of the \SpecialChar LaTeX
3869  document classes of the Koma-Script family can be found in the Koma-Script documentation 
3870 \emph on
3871 scrguide
3872 \emph default
3873  (German) and 
3874 \emph on
3875 scrguien
3876 \emph default
3877  (English).
3878 \end_layout
3879
3880 \begin_layout Subsubsection
3881
3882 \series bold
3883 \begin_inset CommandInset label
3884 LatexCommand label
3885 name "subsec:article-(KOMA-Script),-report"
3886
3887 \end_inset
3888
3889
3890 \series default
3891 \emph on
3892 KOMA-Script Article
3893 \emph default
3894 ,
3895  
3896 \emph on
3897 KOMA-Script Report
3898 \emph default
3899 ,
3900  and 
3901 \emph on
3902 KOMA-Script Book
3903 \end_layout
3904
3905 \begin_layout Standard
3906 The document classes 
3907 \emph on
3908 KOMA-Script Article
3909 \emph default
3910 ,
3911  
3912 \emph on
3913 KOMA-Script Report
3914 \emph default
3915 ,
3916  and 
3917 \emph on
3918 KOMA-Script Book
3919 \emph default
3920  are implemented in the layout files 
3921 \family typewriter
3922 scrartcl.layout
3923 \family default
3924 ,
3925  
3926 \family typewriter
3927 scrreprt.layout
3928 \family default
3929 ,
3930  and 
3931 \family typewriter
3932 scrbook.layout
3933 \family default
3934 ,
3935  resp.
3936  They contain all the paragraph types of the corresponding standard document classes 
3937 \emph on
3938 article
3939 \emph default
3940 ,
3941  
3942 \emph on
3943 report
3944 \emph default
3945 ,
3946  and 
3947 \emph on
3948 book
3949 \emph default
3950 ,
3951  resp.,
3952  partly modified,
3953  with the exception of the \SpecialChar LyX
3954  specific 
3955 \family sans
3956 List
3957 \family default
3958 -type,
3959  which is replaced by the new 
3960 \family sans
3961 Labeling
3962 \family default
3963 -type having the same functionality.
3964  Beside the 
3965 \family sans
3966 Labeling
3967 \family default
3968 -Type there is a number of new paragraph types added.
3969  They are 
3970 \emph on
3971 not
3972 \emph default
3973  part of 
3974 \emph on
3975 letter (koma-script)
3976 \emph default
3977 .
3978 \end_layout
3979
3980 \begin_layout Itemize
3981
3982 \family sans
3983 Addpart,
3984  Addchap
3985 \family default
3986 ,
3987  
3988 \family sans
3989 Addsec
3990 \family default
3991 :
3992  are equivalents to 
3993 \family sans
3994 Part*,
3995  Chapter*
3996 \family default
3997  and 
3998 \family sans
3999 Section*
4000 \family default
4001 ,
4002  resp.,
4003  additionally inserting an entry in the table of contents.
4004  
4005 \family sans
4006 Addpart
4007 \family default
4008  and 
4009 \family sans
4010 Addchap
4011 \family default
4012  are not contained in 
4013 \emph on
4014 article (koma-script)
4015 \emph default
4016 .
4017 \end_layout
4018
4019 \begin_layout Itemize
4020
4021 \family sans
4022 Addchap*
4023 \family default
4024 ,
4025  
4026 \family sans
4027 Addsec*
4028 \family default
4029 :
4030  behave exactly as 
4031 \family sans
4032 Addchap
4033 \family default
4034  and 
4035 \family sans
4036 Addsec
4037 \family default
4038 ,
4039  resp.,
4040  additionally clearing running heads.
4041  
4042 \family sans
4043 Addchap*
4044 \family default
4045  is not contained in 
4046 \emph on
4047 article (koma-script)
4048 \emph default
4049 .
4050 \begin_inset Foot
4051 status collapsed
4052
4053 \begin_layout Plain Layout
4054 There is also an 
4055 \family typewriter
4056
4057 \backslash
4058 addpart*
4059 \family default
4060  command in 
4061 \emph on
4062 book (koma-script)
4063 \emph default
4064  and in 
4065 \emph on
4066 report (koma-script)
4067 \emph default
4068 ,
4069  but since this is identical to 
4070 \family sans
4071 Part*
4072 \family default
4073 ,
4074  is has not been implemented in \SpecialChar LyX
4075 .
4076 \end_layout
4077
4078 \end_inset
4079
4080
4081 \end_layout
4082
4083 \begin_layout Itemize
4084
4085 \family sans
4086 Minisec
4087 \family default
4088 :
4089  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
4090 \end_layout
4091
4092 \begin_layout Itemize
4093
4094 \family sans
4095 Captionabove
4096 \family default
4097  and 
4098 \family sans
4099 Captionbelow
4100 \family default
4101  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
4102  you might want to place table captions always above the table).
4103  You can also use the class option 
4104 \family typewriter
4105 tablecaptionsabove
4106 \family default
4107 ,
4108  which will switch 
4109 \family sans
4110 caption
4111 \family default
4112  to 
4113 \family sans
4114 captionabove
4115 \family default
4116  for tables and 
4117 \family sans
4118 captionbelow
4119 \family default
4120  for figures.
4121  You need at least Koma-Script version 2.8q to use this.
4122 \end_layout
4123
4124 \begin_layout Itemize
4125
4126 \family sans
4127 Dictum
4128 \family default
4129 :
4130  can be used to set a bonmot,
4131  e.
4132 \begin_inset space \thinspace{}
4133 \end_inset
4134
4135 g.
4136 \begin_inset space \space{}
4137 \end_inset
4138
4139 at the beginning of a chapter.
4140  If you use the optional argument (
4141 \family sans
4142 Insert\SpecialChar menuseparator
4143 Dictum
4144 \begin_inset space ~
4145 \end_inset
4146
4147 Author
4148 \family default
4149 ),
4150  you can insert the dictum's author there.
4151  Dictum and author are separated by a line.
4152  You need at least Koma-Script version 2.8q to use this.
4153  
4154 \family sans
4155 Dictum
4156 \family default
4157  is not contained in 
4158 \emph on
4159 article (koma-script)
4160 \emph default
4161 .
4162 \end_layout
4163
4164 \begin_layout Standard
4165 The following types,
4166  together with the standard types 
4167 \family sans
4168 Title
4169 \family default
4170 ,
4171  
4172 \family sans
4173 Author
4174 \family default
4175 ,
4176  and 
4177 \family sans
4178 Date
4179 \family default
4180 ,
4181  form the title area of the document.
4182  They must be entered ahead of the first 
4183 \begin_inset Quotes eld
4184 \end_inset
4185
4186 ordinary
4187 \begin_inset Quotes erd
4188 \end_inset
4189
4190  paragraph.
4191 \begin_inset Foot
4192 status collapsed
4193
4194 \begin_layout Plain Layout
4195 The corresponding \SpecialChar LaTeX
4196  commands must appear before the 
4197 \family typewriter
4198
4199 \backslash
4200 maketitle
4201 \family default
4202  command.
4203 \end_layout
4204
4205 \end_inset
4206
4207  When such a type is used more than once,
4208  the latter usage overwrites the former one,
4209  that means,
4210  for every type only the latest usage is valid.
4211  The order of the different types however has,
4212  like 
4213 \family sans
4214 Title
4215 \family default
4216 ,
4217  
4218 \family sans
4219 Author
4220 \family default
4221 ,
4222  and 
4223 \family sans
4224 Date
4225 \family default
4226 ,
4227  no effect on the appearance of the produced document.
4228 \end_layout
4229
4230 \begin_layout Itemize
4231
4232 \family sans
4233 Subject
4234 \family default
4235 :
4236  produces a centered paragraph above the ordinary title (
4237 \family sans
4238 Title
4239 \family default
4240 ,
4241  
4242 \family sans
4243 Author
4244 \family default
4245 ,
4246  
4247 \family sans
4248 Date
4249 \family default
4250 ) for the subject of the document.
4251 \end_layout
4252
4253 \begin_layout Itemize
4254
4255 \family sans
4256 Publishers
4257 \family default
4258 :
4259  produces a centered paragraph below the ordinary title (
4260 \family sans
4261 Title
4262 \family default
4263 ,
4264  
4265 \family sans
4266 Author
4267 \family default
4268 ,
4269  
4270 \family sans
4271 Date
4272 \family default
4273 ) for the publishers' name.
4274 \end_layout
4275
4276 \begin_layout Itemize
4277
4278 \family sans
4279 Dedication
4280 \family default
4281 :
4282  in 
4283 \emph on
4284 report (koma-script)
4285 \emph default
4286  and 
4287 \emph on
4288 book (koma-script)
4289 \emph default
4290  produces a centered paragraph on its own page behind the title page,
4291  or in 
4292 \emph on
4293 article (koma-script)
4294 \emph default
4295  produces a centered paragraph below the ordinary title (
4296 \family sans
4297 Title
4298 \family default
4299 ,
4300  
4301 \family sans
4302 Author
4303 \family default
4304 ,
4305  
4306 \family sans
4307 Date
4308 \family default
4309 ,
4310  
4311 \family sans
4312 Publishers
4313 \family default
4314 ) for a dedication.
4315 \end_layout
4316
4317 \begin_layout Itemize
4318
4319 \family sans
4320 Titlehead
4321 \family default
4322 :
4323  produces a left aligned paragraph above the ordinary title (
4324 \family sans
4325 Title
4326 \family default
4327 ,
4328  
4329 \family sans
4330 Author
4331 \family default
4332 ,
4333  
4334 \family sans
4335 Date
4336 \family default
4337 ,
4338  
4339 \family sans
4340 Subject
4341 \family default
4342 ) for a document`s head.
4343 \end_layout
4344
4345 \begin_layout Itemize
4346
4347 \family sans
4348 Uppertitleback
4349 \family default
4350 :
4351  produces in a double-sided print in 
4352 \emph on
4353 report (koma-script)
4354 \emph default
4355  and 
4356 \emph on
4357 book (koma-script)
4358 \emph default
4359  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
4360 \emph on
4361 article (koma-script)
4362 \emph default
4363 .
4364 \end_layout
4365
4366 \begin_layout Itemize
4367
4368 \family sans
4369 Lowertitleback
4370 \family default
4371 :
4372  produces in a double-sided print in 
4373 \emph on
4374 report (koma-script)
4375 \emph default
4376  and 
4377 \emph on
4378 book (koma-script)
4379 \emph default
4380  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
4381 \emph on
4382 article (koma-script)
4383 \emph default
4384 .
4385 \end_layout
4386
4387 \begin_layout Itemize
4388
4389 \family sans
4390 Extratitle
4391 \family default
4392 :
4393  produces a special 
4394 \begin_inset Quotes eld
4395 \end_inset
4396
4397 dirty
4398 \begin_inset Quotes erd
4399 \end_inset
4400
4401  page ahead of the actual document containing a paragraph without special formatting.
4402 \end_layout
4403
4404 \begin_layout Standard
4405 KOMA-Script offers a wide range of 
4406 \family sans
4407 Cus
4408 \bar under
4409 t
4410 \bar default
4411 om Class
4412 \begin_inset space ~
4413 \end_inset
4414
4415 options
4416 \family default
4417  for the 
4418 \family sans
4419 \bar under
4420 D
4421 \bar default
4422 ocument\SpecialChar menuseparator
4423
4424 \bar under
4425 S
4426 \bar default
4427 ettings\SpecialChar menuseparator
4428 Document
4429 \begin_inset space ~
4430 \end_inset
4431
4432 class
4433 \family default
4434  dialog which you can apply to the whole document,
4435  among them
4436 \end_layout
4437
4438 \begin_layout Description
4439
4440 \family typewriter
4441 \series medium
4442 draft=true
4443 \family default
4444 \series default
4445  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
4446  the default setting is 
4447 \family typewriter
4448 false
4449 \end_layout
4450
4451 \begin_layout Description
4452
4453 \family typewriter
4454 \series medium
4455 headings=
4456 \family default
4457 \series default
4458  which may take the values 
4459 \family typewriter
4460 big
4461 \family default
4462 ,
4463  
4464 \family typewriter
4465 normal
4466 \family default
4467  or 
4468 \family typewriter
4469 small
4470 \family default
4471 ;
4472  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
4473 \end_layout
4474
4475 \begin_layout Description
4476
4477 \family typewriter
4478 \series medium
4479 numbers=
4480 \family default
4481 \series default
4482  which may take the values 
4483 \family typewriter
4484 auto
4485 \family default
4486  (the default),
4487  
4488 \family typewriter
4489 enddot
4490 \family default
4491  or 
4492 \family typewriter
4493 noenddot
4494 \family default
4495 ;
4496  the first leaves it up to KOMA-Script to add periods after chapter,
4497  section numbers,
4498  etc.;
4499  the second forces the addition of periods and third suppresses them
4500 \end_layout
4501
4502 \begin_layout Standard
4503 and the math options:
4504 \end_layout
4505
4506 \begin_layout Description
4507
4508 \family typewriter
4509 \series medium
4510 leqno
4511 \family default
4512 \series default
4513  which causes equations to be numbered on the left rather than on the right,
4514  and
4515 \end_layout
4516
4517 \begin_layout Description
4518
4519 \family typewriter
4520 \series medium
4521 fleqn
4522 \family default
4523 \series default
4524  which causes equations to be left justified rather than centered.
4525 \end_layout
4526
4527 \begin_layout Standard
4528 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
4529  commands and packages;
4530  for example,
4531  if you want your captions in bold add
4532 \end_layout
4533
4534 \begin_layout Standard
4535
4536 \family typewriter
4537
4538 \backslash
4539 setkomafont{captionlabel}{
4540 \backslash
4541 bfseries}
4542 \end_layout
4543
4544 \begin_layout Standard
4545 to 
4546 \family sans
4547 \bar under
4548 D
4549 \bar default
4550 ocument\SpecialChar menuseparator
4551
4552 \bar under
4553 S
4554 \bar default
4555 ettings
4556 \family default
4557 \SpecialChar menuseparator
4558
4559 \family sans
4560 \SpecialChar LaTeX
4561
4562 \begin_inset space ~
4563 \end_inset
4564
4565 Preamble
4566 \family default
4567 ) and the problem is solved.
4568 \end_layout
4569
4570 \begin_layout Standard
4571 If you are writing a book,
4572  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
4573  If you use the Chapter* environment,
4574  your Foreword and Preface will not appear in the Table of Contents;
4575  to make them to appear in the Table of contents,
4576  you need to use Chapter environments and add the \SpecialChar TeX
4577  code
4578 \end_layout
4579
4580 \begin_layout Standard
4581
4582 \family typewriter
4583
4584 \backslash
4585 frontmatter
4586 \end_layout
4587
4588 \begin_layout Standard
4589 at the very start of the book (not in the \SpecialChar LaTeX
4590  Preamble) and
4591 \end_layout
4592
4593 \begin_layout Standard
4594
4595 \family typewriter
4596
4597 \backslash
4598 mainmatter
4599 \end_layout
4600
4601 \begin_layout Standard
4602 before the first chapter of the body of the text.
4603  Alternatively,
4604  you might also use 
4605 \family sans
4606 Chapter* (TOC)
4607 \family default
4608 .
4609 \end_layout
4610
4611 \begin_layout Standard
4612 You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
4613  if any.
4614 \begin_inset Foot
4615 status open
4616
4617 \begin_layout Plain Layout
4618 Appendices are normally “numbered” with letters.
4619 \end_layout
4620
4621 \end_inset
4622
4623  If you use the Chapter* environment,
4624  they will not appear in the Table of Contents;
4625  so add the \SpecialChar TeX
4626  code
4627 \end_layout
4628
4629 \begin_layout Standard
4630
4631 \family typewriter
4632
4633 \backslash
4634 backmatter
4635 \end_layout
4636
4637 \begin_layout Standard
4638 before the first of these headings and use the Chapter environment.
4639  These commands will have no effect on the numbering in \SpecialChar LyX
4640 ,
4641  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
4642 \end_layout
4643
4644 \begin_layout Standard
4645 The layout files for the document classes 
4646 \emph on
4647 article (koma-script)
4648 \emph default
4649 ,
4650  
4651 \emph on
4652 report (koma-script)
4653 \emph default
4654 ,
4655  and 
4656 \emph on
4657 book (koma-script)
4658 \emph default
4659  do include the file 
4660 \family typewriter
4661 scrmacros.inc
4662 \family default
4663 .
4664  This is thought of as a place to define your own types.
4665  Copy scrmacros
4666 \family typewriter
4667 .inc
4668 \family default
4669  in your personal layout directory and edit the file!
4670 \end_layout
4671
4672 \begin_layout Subsubsection
4673 \begin_inset CommandInset label
4674 LatexCommand label
4675 name "subsec:The-new-letter"
4676
4677 \end_inset
4678
4679 The new letter class:
4680  KOMA-Script Letter (V.
4681  2)
4682 \end_layout
4683
4684 \begin_layout Standard
4685 by 
4686 \noun on
4687 Jürgen Spitzmüller
4688 \end_layout
4689
4690 \begin_layout Standard
4691 \begin_inset VSpace medskip
4692 \end_inset
4693
4694
4695 \end_layout
4696
4697 \begin_layout Standard
4698 \noindent
4699 Koma-Script version 2.8 has introduced a new letter class 
4700 \family typewriter
4701 scrlttr2
4702 \family default
4703  which supersedes the now unsupported 
4704 \family typewriter
4705 scrlettr
4706 \family default
4707 .
4708  It has —
4709  on the \SpecialChar LaTeX
4710  side —
4711  a completely new interface and is not compatible with the old class.
4712  Therefore,
4713  \SpecialChar LyX
4714  supports both,
4715  though it is recommended you use the new class.
4716 \end_layout
4717
4718 \begin_layout Standard
4719 This class covers the same functionality as 
4720 \emph on
4721 letter (koma-script),
4722
4723 \emph default
4724  and a few more.
4725  The basic items are 
4726 \family sans
4727 Address
4728 \family default
4729  (receiver's address,
4730  same as 
4731 \family sans
4732 Letter
4733 \family default
4734  in the old layout),
4735  
4736 \family sans
4737 Opening
4738 \family default
4739 ,
4740  and 
4741 \family sans
4742 Closing
4743 \family default
4744 .
4745  
4746 \family sans
4747 NextAddress
4748 \family default
4749  will start a new letter (i.
4750 \begin_inset space \thinspace{}
4751 \end_inset
4752
4753 e.
4754 \begin_inset space \space{}
4755 \end_inset
4756
4757 you can write several letters per document).
4758  New elements are sender's 
4759 \family sans
4760 E-Mail
4761 \family default
4762 ,
4763  
4764 \family sans
4765 URL
4766 \family default
4767 ,
4768  
4769 \family sans
4770 Fax
4771 \family default
4772 ,
4773  
4774 \family sans
4775 Bank
4776 \family default
4777  and the possibility to use a 
4778 \family sans
4779 Logo
4780 \family default
4781  (via 
4782 \family sans
4783 Insert\SpecialChar menuseparator
4784 Graphics
4785 \family default
4786 ) in the header.
4787 \end_layout
4788
4789 \begin_layout Standard
4790 The biggest improvement is,
4791  though,
4792  that the letter's layout is configurable to meet almost any needs.
4793  This can be done via the preamble or with a special style file (Letter Class Option,
4794  extension 
4795 \family typewriter
4796 *.lco
4797 \family default
4798 ),
4799  that will be read in as a class option.
4800 \begin_inset Foot
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804 The KOMA package comes with some default 
4805 \family typewriter
4806 *.lco
4807 \family default
4808  files.
4809  There is,
4810  for instance,
4811  a 
4812 \family typewriter
4813 DIN.lco
4814 \family default
4815  file that follows german typesetting rules,
4816  or a 
4817 \family typewriter
4818 KOMAold.lco
4819 \family default
4820  that provides the default layout of the old 
4821 \family typewriter
4822 scrlettr
4823 \family default
4824  class.
4825  The latter can be loaded with the class option 
4826 \family typewriter
4827 KOMAold
4828 \family default
4829 ,
4830  inserted via the 
4831 \family sans
4832 Layout\SpecialChar menuseparator
4833 Document\SpecialChar menuseparator
4834 Extra Options
4835 \family default
4836  field.
4837 \end_layout
4838
4839 \end_inset
4840
4841  Have a look at the template in 
4842 \family sans
4843 \bar under
4844 F
4845 \bar default
4846 ile\SpecialChar menuseparator
4847 New
4848 \begin_inset space ~
4849 \end_inset
4850
4851 fro
4852 \bar under
4853 m
4854 \bar default
4855
4856 \begin_inset space ~
4857 \end_inset
4858
4859 Template\SpecialChar menuseparator
4860 Letters\SpecialChar menuseparator
4861 KOMA-Script Letter (V.2)
4862 \family default
4863 .
4864  A detailed description is to be found in the Koma-Script documentation (
4865 \emph on
4866 scrguide
4867 \emph default
4868 ).
4869 \end_layout
4870
4871 \begin_layout Subsubsection
4872 Problems
4873 \end_layout
4874
4875 \begin_layout Standard
4876 Visualizing the Koma-Script document classes in \SpecialChar LyX
4877 ,
4878  the \SpecialChar LyX
4879  internals cause some problems.
4880 \end_layout
4881
4882 \begin_layout Itemize
4883 The chapter number of a 
4884 \family sans
4885 Chapter
4886 \family default
4887  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
4888  The cause for that is the \SpecialChar LyX
4889  internal behavior for the labeltype 
4890 \family sans
4891 Counter_Chapter
4892 \family default
4893  in the layout file.
4894 \end_layout
4895
4896 \begin_layout Itemize
4897 The headings of the types 
4898 \family sans
4899 Addchap
4900 \family default
4901  and 
4902 \family sans
4903 Addsec
4904 \family default
4905  are only put in the 
4906 \begin_inset Quotes eld
4907 \end_inset
4908
4909 true
4910 \begin_inset Quotes erd
4911 \end_inset
4912
4913  \SpecialChar LaTeX
4914  table of contents,
4915  but not in the \SpecialChar LyX
4916  table of contents (
4917 \family sans
4918 Document\SpecialChar menuseparator
4919 Table
4920 \begin_inset space ~
4921 \end_inset
4922
4923 of
4924 \begin_inset space ~
4925 \end_inset
4926
4927 Contents
4928 \family default
4929 ).
4930 \end_layout
4931
4932 \begin_layout Itemize
4933 The paragraphs in a 
4934 \emph on
4935 letter
4936 \emph default
4937  document class appear in a skip separation mode,
4938  not indented.
4939  This is the standard behavior,
4940  no special \SpecialChar LaTeX
4941  commands are needed for that.
4942  But in the 
4943 \family sans
4944 Document\SpecialChar menuseparator
4945 Settings
4946 \family default
4947  dialog the corresponding radio button indicates 
4948 \family sans
4949 Indent
4950 \family default
4951 .
4952  A 
4953 \family sans
4954 Skip
4955 \family default
4956  value always has the effect that extra \SpecialChar LaTeX
4957  commands are inserted in the document to produce the gap,
4958  which is not what is wanted in this case.
4959 \end_layout
4960
4961 \begin_layout Subsection
4962 \begin_inset CommandInset label
4963 LatexCommand label
4964 name "subsec:Polish-M.W.collection"
4965
4966 \end_inset
4967
4968 Polish M.
4969 \begin_inset space \thinspace{}
4970 \end_inset
4971
4972 W.
4973 \begin_inset space \space{}
4974 \end_inset
4975
4976 collection
4977 \end_layout
4978
4979 \begin_layout Standard
4980 by 
4981 \noun on
4982 Tomasz Luczak
4983 \end_layout
4984
4985 \begin_layout Standard
4986 The \SpecialChar LyX
4987  document classes 
4988 \emph on
4989 Polish Article (MW Bundle)
4990 \emph default
4991 ,
4992  
4993 \emph on
4994 Polish Report (MW Bundle)
4995 \emph default
4996  and 
4997 \emph on
4998 Polish Book (MW Bundle)
4999 \emph default
5000  correspond to the \SpecialChar LaTeX
5001  document classes 
5002 \family typewriter
5003 mwart.cls
5004 \family default
5005 ,
5006  
5007 \family typewriter
5008 mwrep.cls
5009 \family default
5010  and 
5011 \family typewriter
5012 mwbk.cls
5013 \family default
5014 ,
5015  resp.
5016  They are replacements for the standard document classes 
5017 \family typewriter
5018 article.cls
5019 \family default
5020 ,
5021  
5022 \family typewriter
5023 report.cls
5024 \family default
5025  and 
5026 \family typewriter
5027 book.cls
5028 \family default
5029 ,
5030  resp.,
5031  and fit better to Polish typography conventions in a number of points.
5032  
5033 \end_layout
5034
5035 \begin_layout Standard
5036 Basic differences:
5037 \end_layout
5038
5039 \begin_layout Itemize
5040 Unnumbered titles (with star,
5041  e.
5042 \begin_inset space \thinspace{}
5043 \end_inset
5044
5045 g.
5046 \begin_inset space \space{}
5047 \end_inset
5048
5049
5050 \family sans
5051 Section*
5052 \family default
5053 ) are added into table of contents,
5054 \end_layout
5055
5056 \begin_layout Itemize
5057 Additional page styles:
5058 \end_layout
5059
5060 \begin_deeper
5061 \begin_layout Description
5062 uheadings header with separated lines,
5063 \end_layout
5064
5065 \begin_layout Description
5066 myheadings custom header,
5067  contents headers via commands:
5068  
5069 \family typewriter
5070
5071 \backslash
5072 markright
5073 \family default
5074  and 
5075 \family typewriter
5076
5077 \backslash
5078 markboth
5079 \family default
5080 ,
5081 \end_layout
5082
5083 \begin_layout Description
5084 myuheadings custom header with separated lines,
5085 \end_layout
5086
5087 \begin_layout Description
5088 outer page number is placed on outer side of page
5089 \end_layout
5090
5091 \end_deeper
5092 \begin_layout Itemize
5093 Options 
5094 \end_layout
5095
5096 \begin_deeper
5097 \begin_layout Description
5098 rmheadings serif titles —
5099  default,
5100 \end_layout
5101
5102 \begin_layout Description
5103 sfheadings sansserif titles,
5104 \end_layout
5105
5106 \begin_layout Description
5107 authortitle on title page first placed is author next title —
5108  default,
5109 \end_layout
5110
5111 \begin_layout Description
5112 titleauthor on title page first placed is title next author,
5113 \end_layout
5114
5115 \begin_layout Description
5116 withmarginpar reserve place on page for margins.
5117 \end_layout
5118
5119 \end_deeper
5120 \begin_layout Subsection
5121 Tufte Collection
5122 \end_layout
5123
5124 \begin_layout Standard
5125 The document classes 
5126 \family sans
5127 Tufte Book
5128 \family default
5129  and 
5130 \family sans
5131 Tufte Handout
5132 \family default
5133  use the 
5134 \family typewriter
5135 tufte-book.cls
5136 \family default
5137  and 
5138 \family typewriter
5139 tufte-handout.cls
5140 \family default
5141  document classes.
5142  Detailed information about these document classes can be found in 
5143 \family sans
5144 File\SpecialChar menuseparator
5145 Open Example\SpecialChar menuseparator
5146 Books\SpecialChar menuseparator
5147 Tufte Book
5148 \family default
5149  and 
5150 \family sans
5151 File\SpecialChar menuseparator
5152 Open Example\SpecialChar menuseparator
5153 Handouts\SpecialChar menuseparator
5154 Tufte Handout
5155 \family default
5156 .
5157 \end_layout
5158
5159 \begin_layout Section
5160 Articles
5161 \end_layout
5162
5163 \begin_layout Standard
5164 See also the document classes in the Collections (section
5165 \begin_inset space ~
5166 \end_inset
5167
5168
5169 \begin_inset CommandInset ref
5170 LatexCommand ref
5171 reference "sec:Collections"
5172 nolink "false"
5173
5174 \end_inset
5175
5176 ).
5177 \end_layout
5178
5179 \begin_layout Subsection
5180 Astronomy & Astrophysics
5181 \end_layout
5182
5183 \begin_layout Standard
5184 Original by 
5185 \noun on
5186 Peter Sütterlin
5187 \noun default
5188 ;
5189  updated by the \SpecialChar LyX
5190  Team
5191 \end_layout
5192
5193 \begin_layout Subsubsection
5194 Introduction
5195 \end_layout
5196
5197 \begin_layout Standard
5198 This section describes how \SpecialChar LyX
5199  can be used to write articles for submission to the scientific journal 
5200 \emph on
5201 Astronomy & Astrophysics
5202 \emph default
5203  (
5204 \begin_inset CommandInset href
5205 LatexCommand href
5206 name "aa-package"
5207 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5208 literal "false"
5209
5210 \end_inset
5211
5212 ) using Version 9.1 of the document class 
5213 \family typewriter
5214 aa.cls
5215 \family default
5216 ;
5217  information about it is available at 
5218 \begin_inset Flex URL
5219 status collapsed
5220
5221 \begin_layout Plain Layout
5222
5223 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5224 \end_layout
5225
5226 \end_inset
5227
5228 .
5229 \end_layout
5230
5231 \begin_layout Standard
5232 A manual comes together with the package and should be consulted before installing this document class as described in the 
5233 \emph on
5234 Installing New Document Classe
5235 \emph default
5236 s section of the 
5237 \emph on
5238 Customization
5239 \emph default
5240  manual.
5241 \end_layout
5242
5243 \begin_layout Standard
5244 \begin_inset Note Greyedout
5245 status open
5246
5247 \begin_layout Plain Layout
5248 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
5249  2001.
5250  That change also involved some slight changes to the style files,
5251  namely the removal of the thesaurus command.
5252  If you have an older version installed,
5253  please upgrade.
5254  For information about compatibility with the old (version 4) layout,
5255  please refer to the comments in 
5256 \family typewriter
5257 \SpecialChar LyX
5258 Dir/layouts/aapaper.layout
5259 \family default
5260 .
5261 \end_layout
5262
5263 \end_inset
5264
5265
5266 \end_layout
5267
5268 \begin_layout Subsubsection
5269 Getting started
5270 \end_layout
5271
5272 \begin_layout Standard
5273 It is recommended you start from the template in the menu 
5274 \family sans
5275 \bar under
5276 F
5277 \bar default
5278 ile\SpecialChar menuseparator
5279 New
5280 \begin_inset space ~
5281 \end_inset
5282
5283 fro
5284 \bar under
5285 m
5286 \bar default
5287
5288 \begin_inset space ~
5289 \end_inset
5290
5291 Template\SpecialChar menuseparator
5292 Articles\SpecialChar menuseparator
5293 Astronomy & Astrophysics
5294 \family default
5295 .
5296  If you are not using the template,
5297  note the following settings:
5298 \end_layout
5299
5300 \begin_layout Itemize
5301 Select 
5302 \family sans
5303 Astronomy & Astrophysics
5304 \family default
5305  in the 
5306 \family sans
5307 \bar under
5308 D
5309 \bar default
5310 ocument\SpecialChar menuseparator
5311
5312 \bar under
5313 S
5314 \bar default
5315 ettings\SpecialChar menuseparator
5316 Document
5317 \begin_inset space ~
5318 \end_inset
5319
5320 Class
5321 \family default
5322  dialog (OK,
5323  that one was obvious).
5324 \end_layout
5325
5326 \begin_layout Itemize
5327 Don't change the 
5328 \family sans
5329 Headings
5330 \begin_inset space ~
5331 \end_inset
5332
5333
5334 \bar under
5335 s
5336 \bar default
5337 tyle
5338 \family default
5339  in the 
5340 \family sans
5341 Page
5342 \begin_inset space ~
5343 \end_inset
5344
5345 Layout
5346 \family default
5347  dialog:
5348  leave it set to 
5349 \family sans
5350 Default
5351 \family default
5352 .
5353  The whole layout is done by the macros,
5354  you shouldn't change anything.
5355 \end_layout
5356
5357 \begin_layout Subsubsection
5358 The header block
5359 \end_layout
5360
5361 \begin_layout Standard
5362 First thing to enter is the header information.
5363  It consists of seven entries,
5364  of which one is optional.
5365  They are
5366 \end_layout
5367
5368 \begin_layout Itemize
5369
5370 \family sans
5371 Title
5372 \family default
5373 :
5374  [required]
5375 \end_layout
5376
5377 \begin_layout Itemize
5378
5379 \family sans
5380 Subtitle
5381 \family default
5382 :
5383  [optional]
5384 \end_layout
5385
5386 \begin_layout Itemize
5387
5388 \family sans
5389 Author
5390 \family default
5391 :
5392  [required]
5393 \end_layout
5394
5395 \begin_layout Itemize
5396
5397 \family sans
5398 Address
5399 \family default
5400 :
5401  [required]
5402 \end_layout
5403
5404 \begin_layout Itemize
5405
5406 \family sans
5407 Offprints
5408 \family default
5409  [optional].
5410  Determines to whom correspondence and reprints are to be sent.
5411 \end_layout
5412
5413 \begin_layout Itemize
5414
5415 \family sans
5416 Mail
5417 \family default
5418  [optional] Snail mail address for contacts.
5419 \end_layout
5420
5421 \begin_layout Itemize
5422
5423 \family sans
5424 Date
5425 \family default
5426 :
5427  [required].
5428  Suggested format is 
5429 \family typewriter
5430 Received:
5431  <date>;
5432  Accepted <date>
5433 \end_layout
5434
5435 \begin_layout Standard
5436 There is no need to issue the 
5437 \family typewriter
5438
5439 \backslash
5440 maketitle
5441 \family default
5442  command,
5443  this is done automatically by \SpecialChar LyX
5444  when the header is finished.
5445  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
5446  just to get the best optics and meets the layout of the real document.
5447 \end_layout
5448
5449 \begin_layout Standard
5450 If you want to place footnotes in the header block,
5451  e.
5452 \begin_inset space \thinspace{}
5453 \end_inset
5454
5455 g.
5456 \begin_inset space \space{}
5457 \end_inset
5458
5459 to state your present address,
5460  just use the standard footnote via the menu 
5461 \family sans
5462 \bar under
5463 I
5464 \bar default
5465 nsert\SpecialChar menuseparator
5466
5467 \bar under
5468 F
5469 \bar default
5470 ootnote.
5471
5472 \family default
5473  \SpecialChar LyX
5474  will automagically use the term 
5475 \family typewriter
5476
5477 \backslash
5478 thanks{}
5479 \family default
5480  in that case.
5481 \end_layout
5482
5483 \begin_layout Standard
5484 Under 
5485 \family sans
5486 Edit\SpecialChar menuseparator
5487 Text Style
5488 \family default
5489 ,
5490  you'll find two insets which are relevant for the titling:
5491 \end_layout
5492
5493 \begin_layout Itemize
5494
5495 \family sans
5496 Institute
5497 \family typewriter
5498  
5499 \family default
5500 to mark corresponding author\SpecialChar breakableslash
5501 institute pairs.
5502  The institutes are numbered sequentially as they appear in the 
5503 \family sans
5504 Address
5505 \family default
5506  field,
5507  so you have to put a marker to each author.
5508 \end_layout
5509
5510 \begin_layout Itemize
5511
5512 \family sans
5513 Email
5514 \family default
5515  to supply an email address for fast contact.
5516 \end_layout
5517
5518 \begin_layout Standard
5519 In addition to these topics,
5520  the macros use three additional \SpecialChar LaTeX
5521  commands that have no counterpart in \SpecialChar LyX
5522 :
5523 \end_layout
5524
5525 \begin_layout Itemize
5526
5527 \family typewriter
5528
5529 \backslash
5530 and
5531 \family default
5532  to separate different names for more than one author and institute,
5533  respectively.
5534 \end_layout
5535
5536 \begin_layout Standard
5537 The appropriate command has to be entered as \SpecialChar TeX
5538  code in \SpecialChar LyX
5539 .
5540  See the examples in the template and in 
5541 \family sans
5542 File\SpecialChar menuseparator
5543 Open Example\SpecialChar menuseparator
5544 Articles\SpecialChar menuseparator
5545 Astronomy & Astrophysics
5546 \family default
5547 .
5548 \end_layout
5549
5550 \begin_layout Subsubsection
5551 The abstract
5552 \end_layout
5553
5554 \begin_layout Standard
5555 The abstract should immediately follow the header block.
5556  With version 5 the abstract environment was changed to a command,
5557  and there is now a restriction to only one paragraph.
5558  In addition,
5559  it should contain an entry with the keywords.
5560  This is done via the paragraph style 
5561 \family sans
5562 Keywords
5563 \family default
5564 .
5565  Refer to the example paper.
5566 \end_layout
5567
5568 \begin_layout Subsubsection
5569 Supported environments
5570 \end_layout
5571
5572 \begin_layout Standard
5573 The A&A paper layout supports the following environments for structuring your text:
5574 \end_layout
5575
5576 \begin_layout Standard
5577
5578 \family sans
5579 \begin_inset Flex Multiple Columns
5580 status open
5581
5582 \begin_layout Itemize
5583
5584 \family sans
5585 Standard
5586 \end_layout
5587
5588 \begin_layout Itemize
5589
5590 \family sans
5591 Section
5592 \end_layout
5593
5594 \begin_layout Itemize
5595
5596 \family sans
5597 Subsection
5598 \end_layout
5599
5600 \begin_layout Itemize
5601
5602 \family sans
5603 Subsubsection
5604 \end_layout
5605
5606 \begin_layout Itemize
5607
5608 \family sans
5609 Itemize
5610 \end_layout
5611
5612 \begin_layout Itemize
5613
5614 \family sans
5615 Enumerate
5616 \end_layout
5617
5618 \begin_layout Itemize
5619
5620 \family sans
5621 Description
5622 \end_layout
5623
5624 \begin_layout Itemize
5625
5626 \family sans
5627 Caption
5628 \end_layout
5629
5630 \begin_layout Itemize
5631
5632 \family sans
5633 Abstract
5634 \end_layout
5635
5636 \begin_layout Itemize
5637
5638 \family sans
5639 Acknowledgment
5640 \end_layout
5641
5642 \begin_layout Itemize
5643
5644 \family sans
5645 Bibliography
5646 \end_layout
5647
5648 \begin_layout Itemize
5649 LaTeX
5650 \end_layout
5651
5652 \end_inset
5653
5654
5655 \end_layout
5656
5657 \begin_layout Subsubsection
5658 Commands not supported by \SpecialChar LyX
5659
5660 \end_layout
5661
5662 \begin_layout Standard
5663 Some commands are not yet supported by the 
5664 \family sans
5665 Astronomy & Astrophysics
5666 \family default
5667  layout for \SpecialChar LyX
5668 .
5669  Some have already been mentioned.
5670  For the sake of completeness,
5671  they are listed all together here:
5672 \end_layout
5673
5674 \begin_layout Itemize
5675
5676 \family typewriter
5677
5678 \backslash
5679 and
5680 \end_layout
5681
5682 \begin_layout Itemize
5683
5684 \family typewriter
5685
5686 \backslash
5687 authorrunning
5688 \end_layout
5689
5690 \begin_layout Itemize
5691
5692 \family typewriter
5693
5694 \backslash
5695 object{}
5696 \end_layout
5697
5698 \begin_layout Itemize
5699
5700 \family typewriter
5701
5702 \backslash
5703 titlerunning{}
5704 \end_layout
5705
5706 \begin_layout Standard
5707 If you want to use any of these commands,
5708  you have to enter them yourself.
5709  Do not forget to use
5710 \family sans
5711  
5712 \bar under
5713 I
5714 \bar default
5715 nsert\SpecialChar menuseparator
5716 \SpecialChar TeX
5717
5718 \begin_inset space ~
5719 \end_inset
5720
5721 Code
5722 \family default
5723 !
5724 \end_layout
5725
5726 \begin_layout Subsubsection
5727 Figure and Table Floats
5728 \end_layout
5729
5730 \begin_layout Standard
5731 \SpecialChar LyX
5732  provides support for the necessary float environments 
5733 \family sans
5734 figure,
5735  figure*,
5736  table
5737 \family default
5738  and 
5739 \family sans
5740 table*
5741 \family default
5742 ,
5743  therefore we won't tell much about it here.
5744  Refer to the 
5745 \emph on
5746 User's
5747 \begin_inset space ~
5748 \end_inset
5749
5750 Guide
5751 \emph default
5752 .
5753  Just remember that tables should be left-aligned.
5754  For that,
5755  select the table and change the alignment in 
5756 \family sans
5757 \bar under
5758 E
5759 \bar default
5760 dit\SpecialChar menuseparator
5761
5762 \bar under
5763 P
5764 \bar default
5765 aragraph
5766 \begin_inset space ~
5767 \end_inset
5768
5769 Settings
5770 \family default
5771  (
5772 \begin_inset Info
5773 type  "icon"
5774 arg   "layout-paragraph"
5775 \end_inset
5776
5777 )
5778 \family sans
5779 .
5780 \end_layout
5781
5782 \begin_layout Standard
5783 There is only one special thing:
5784  the figures with a caption beside the figure.
5785  To create such a figure,
5786  you have to do the following:
5787 \end_layout
5788
5789 \begin_layout Enumerate
5790 Create a wide figure float:
5791  
5792 \family sans
5793 \bar under
5794 I
5795 \bar default
5796 nsert\SpecialChar menuseparator
5797 Flo
5798 \bar under
5799 a
5800 \bar default
5801 t\SpecialChar menuseparator
5802 Figure
5803 \family default
5804 ,
5805  then,
5806  from within the float,
5807  use the menu 
5808 \family sans
5809 \bar under
5810 E
5811 \bar default
5812 dit\SpecialChar menuseparator
5813 Flo
5814 \bar under
5815 a
5816 \bar default
5817 t
5818 \begin_inset space ~
5819 \end_inset
5820
5821 Settings
5822 \family default
5823  and check 
5824 \family sans
5825 \bar under
5826 S
5827 \bar default
5828 pan
5829 \begin_inset space ~
5830 \end_inset
5831
5832 columns
5833 \family default
5834  in the 
5835 \family sans
5836 float
5837 \family default
5838  dialog.
5839 \end_layout
5840
5841 \begin_layout Enumerate
5842 Enter your caption text.
5843 \end_layout
5844
5845 \begin_layout Enumerate
5846 Press 
5847 \family sans
5848 Return
5849 \family default
5850  to move the cursor above the caption.
5851 \end_layout
5852
5853 \begin_layout Enumerate
5854 Insert your figure
5855 \end_layout
5856
5857 \begin_layout Enumerate
5858 Position the cursor after the figure and insert a horizontal fill by using the menu:
5859  
5860 \family sans
5861 \bar under
5862 I
5863 \bar default
5864 nsert\SpecialChar menuseparator
5865 F
5866 \bar under
5867 o
5868 \bar default
5869 rmatting\SpecialChar menuseparator
5870 H
5871 \bar under
5872 o
5873 \bar default
5874 rizontal
5875 \begin_inset space ~
5876 \end_inset
5877
5878 Space
5879 \family default
5880  to open the 
5881 \family sans
5882 space
5883 \family default
5884  dialog and select the 
5885 \family sans
5886 Horizontal fill
5887 \family default
5888  option from the 
5889 \family sans
5890 \bar under
5891 S
5892 \bar default
5893 pacing
5894 \family default
5895  context menu.
5896 \end_layout
5897
5898 \begin_layout Enumerate
5899 Switch to \SpecialChar LaTeX
5900  mode:
5901  
5902 \family sans
5903 M-c
5904 \begin_inset space ~
5905 \end_inset
5906
5907 t
5908 \family default
5909 .
5910 \end_layout
5911
5912 \begin_layout Enumerate
5913 Enter 
5914 \family typewriter
5915
5916 \backslash
5917 parbox[b]{55mm}{
5918 \family default
5919  
5920 \emph on
5921 Do not close the brace!
5922 \end_layout
5923
5924 \begin_layout Enumerate
5925 Position the cursor behind the caption text,
5926  switch to \SpecialChar LaTeX
5927  mode and insert the closing brace:
5928  
5929 \family sans
5930 M-c
5931 \begin_inset space ~
5932 \end_inset
5933
5934 t
5935 \family default
5936  
5937 \family typewriter
5938 }
5939 \family default
5940 .
5941 \end_layout
5942
5943 \begin_layout Standard
5944 Also,
5945  refer to the figures in the file in 
5946 \family sans
5947 File\SpecialChar menuseparator
5948 Open Example\SpecialChar menuseparator
5949 Articles\SpecialChar menuseparator
5950 Astronomy & Astrophysics
5951 \family default
5952 .
5953 \end_layout
5954
5955 \begin_layout Subsubsection
5956 Referee layout
5957 \end_layout
5958
5959 \begin_layout Standard
5960 For submission,
5961  the paper has to be formatted in a special double-spacing layout.
5962  For this purpose,
5963  you have to add the option 
5964 \family typewriter
5965 referee
5966 \family default
5967  to the 
5968 \family sans
5969 Cus
5970 \bar under
5971 t
5972 \bar default
5973 om Class
5974 \begin_inset space ~
5975 \end_inset
5976
5977 options
5978 \family default
5979  in the 
5980 \family sans
5981 \bar under
5982 D
5983 \bar default
5984 ocument\SpecialChar menuseparator
5985
5986 \bar under
5987 S
5988 \bar default
5989 ettings\SpecialChar menuseparator
5990 Document
5991 \begin_inset space ~
5992 \end_inset
5993
5994 Class
5995 \family default
5996  dialog.
5997 \end_layout
5998
5999 \begin_layout Subsubsection
6000 The example paper
6001 \end_layout
6002
6003 \begin_layout Standard
6004 The example in 
6005 \family sans
6006 File\SpecialChar menuseparator
6007 Open Example\SpecialChar menuseparator
6008 Articles\SpecialChar menuseparator
6009 Astronomy & Astrophysics
6010 \family default
6011  was written with \SpecialChar LyX
6012 .
6013  It is the example paper from the original macro package,
6014  
6015 \family typewriter
6016 aa.dem
6017 \family default
6018  in the 
6019 \begin_inset CommandInset href
6020 LatexCommand href
6021 name "aa-package"
6022 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6023 literal "false"
6024
6025 \end_inset
6026
6027 ,
6028  but translated to \SpecialChar LyX
6029  using the older unstructured abstract type.
6030  Use it for inspiration,
6031  and compare the \SpecialChar LaTeX
6032  code in 
6033 \family typewriter
6034 aa.dem
6035 \family default
6036  with the \SpecialChar LyX
6037  way of writing.
6038 \end_layout
6039
6040 \begin_layout Subsection
6041 AAS\SpecialChar TeX
6042
6043 \end_layout
6044
6045 \begin_layout Standard
6046 by 
6047 \noun on
6048 Mike Ressler
6049 \end_layout
6050
6051 \begin_layout Subsubsection
6052 Introduction
6053 \end_layout
6054
6055 \begin_layout Standard
6056 AAS\SpecialChar TeX
6057  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
6058  the Astrophysical Journal (including the Letters and Supplement),
6059  the Astronomical Journal,
6060  and the Publications of the Astronomical Society of the Pacific.
6061  \SpecialChar LyX
6062  has proven to be an excellent tool for generating these documents,
6063  especially given its equation,
6064  citation,
6065  and figure handling capabilities.
6066  \SpecialChar LyX
6067  requires version 5.0 (or higher) of these macros;
6068  preferably 6.0,
6069  which is the version described here,
6070  or higher.
6071  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6072 2.09 and are fundamentally incompatible with \SpecialChar LyX
6073 .
6074  The AAS\SpecialChar TeX
6075  package may be downloaded from the AAS\SpecialChar TeX
6076  Web site
6077 \end_layout
6078
6079 \begin_layout Standard
6080 \begin_inset VSpace medskip
6081 \end_inset
6082
6083
6084 \end_layout
6085
6086 \begin_layout Standard
6087 \align center
6088 \begin_inset Flex URL
6089 status collapsed
6090
6091 \begin_layout Plain Layout
6092
6093 https://aas.org/aastex/aastex-downloads
6094 \end_layout
6095
6096 \end_inset
6097
6098
6099 \end_layout
6100
6101 \begin_layout Standard
6102 \begin_inset VSpace medskip
6103 \end_inset
6104
6105
6106 \end_layout
6107
6108 \begin_layout Standard
6109 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
6110 .
6111  \SpecialChar LyX
6112  will not reduce the need to figure out all the AAS\SpecialChar TeX
6113  commands,
6114  it will only reduce the drudgery of typing everything in.
6115  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6116  document conforms completely to the requirements of the journal to which you are submitting your paper.
6117 \end_layout
6118
6119 \begin_layout Subsubsection
6120 Starting a New Paper
6121 \end_layout
6122
6123 \begin_layout Standard
6124 I strongly suggest that you start with the AAS\SpecialChar TeX
6125  template file.
6126  Click on 
6127 \family sans
6128 File\SpecialChar menuseparator
6129 New from
6130 \family default
6131  
6132 \family sans
6133 Template\SpecialChar menuseparator
6134 Articles\SpecialChar menuseparator
6135 American Astronomical Society
6136 \family default
6137 .
6138  This will show the most common fields found in a manuscript.
6139  Simply overwrite the existing text (including the brackets,
6140  
6141 \family typewriter
6142 <>
6143 \family default
6144 ) with the correct information.
6145  Many of the AAS\SpecialChar TeX
6146  commands and environments can be implemented directly in \SpecialChar LyX
6147 ,
6148  but some cannot.
6149  For commands such as these,
6150  the \SpecialChar LaTeX
6151  code must be entered directly and marked as such.
6152  Such commands are referred to as \SpecialChar TeX
6153  code,
6154  or Evil Red Text.
6155  I tried to minimize the amount of \SpecialChar TeX
6156  code needed in an AAS\SpecialChar TeX
6157  document.
6158 \end_layout
6159
6160 \begin_layout Subsubsection
6161 Finishing Your Paper
6162 \end_layout
6163
6164 \begin_layout Standard
6165 When the paper is finished to your satisfaction and previews/prints correctly,
6166  there are a few 
6167 \begin_inset Quotes eld
6168 \end_inset
6169
6170 postprocessing
6171 \begin_inset Quotes erd
6172 \end_inset
6173
6174  actions which need to be done before you submit it to the journals.
6175  
6176 \end_layout
6177
6178 \begin_layout Enumerate
6179 Export your paper as a \SpecialChar LaTeX
6180  file (
6181 \family sans
6182 File\SpecialChar menuseparator
6183 Export\SpecialChar menuseparator
6184 \SpecialChar LaTeX
6185
6186 \family default
6187 ).
6188  
6189 \end_layout
6190
6191 \begin_layout Enumerate
6192 Edit the resulting 
6193 \family typewriter
6194 .tex
6195 \family default
6196  file with your favorite text editor
6197 \end_layout
6198
6199 \begin_deeper
6200 \begin_layout Enumerate
6201 remove the comment lines before the 
6202 \family typewriter
6203
6204 \backslash
6205 documentclass
6206 \family default
6207  command
6208 \end_layout
6209
6210 \begin_layout Enumerate
6211 remove the 
6212 \family typewriter
6213
6214 \backslash
6215 usepackage...{fontenc}
6216 \family default
6217  line if it appears (usually just after 
6218 \family typewriter
6219
6220 \backslash
6221 documentclass
6222 \family default
6223 };
6224  also remove the 
6225 \family typewriter
6226
6227 \backslash
6228 secnumdepth
6229 \family default
6230  line if it appears.
6231 \end_layout
6232
6233 \begin_layout Enumerate
6234 remove everything between (and including) the 
6235 \family typewriter
6236
6237 \backslash
6238 makeatletter
6239 \family default
6240  and 
6241 \family typewriter
6242
6243 \backslash
6244 makeatother
6245 \family default
6246  commands,
6247  except for any commands you specifically put into the \SpecialChar LaTeX
6248  preamble (which should appear immediately after the 
6249 \begin_inset Quotes eld
6250 \end_inset
6251
6252 User specified \SpecialChar LaTeX
6253  commands
6254 \begin_inset Quotes erd
6255 \end_inset
6256
6257  comment in the 
6258 \family typewriter
6259 .tex
6260 \family default
6261  file).
6262 \end_layout
6263
6264 \end_deeper
6265 \begin_layout Enumerate
6266 Run the resulting file through \SpecialChar LaTeX
6267  to make sure it still processes correctly.
6268 \end_layout
6269
6270 \begin_layout Enumerate
6271 Reread the journal requirements to make sure your filenames and formats are correct.
6272 \end_layout
6273
6274 \begin_layout Enumerate
6275 Submit it.
6276 \end_layout
6277
6278 \begin_layout Subsubsection
6279 Comments On Specific Commands
6280 \end_layout
6281
6282 \begin_layout Standard
6283 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6284  commands:
6285  the AAS\SpecialChar TeX
6286  User Guide (
6287 \family typewriter
6288 aasguide.tex
6289 \family default
6290 ) gives a good description of each.
6291  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
6292  So let's begin \SpecialChar ldots
6293
6294 \end_layout
6295
6296 \begin_layout Paragraph
6297 Things that work as expected
6298 \end_layout
6299
6300 \begin_layout Standard
6301 Because they work as you might expect,
6302  I simply list them and the section they are found in:
6303  
6304 \family typewriter
6305
6306 \backslash
6307 documentclass
6308 \family default
6309  (2.1.1),
6310  
6311 \family typewriter
6312
6313 \backslash
6314 begin{document}
6315 \family default
6316  (2.2),
6317  
6318 \family typewriter
6319
6320 \backslash
6321 title
6322 \family default
6323  (2.3),
6324  
6325 \family typewriter
6326
6327 \backslash
6328 author
6329 \family default
6330  (2.3),
6331  
6332 \family typewriter
6333
6334 \backslash
6335 affil
6336 \family default
6337  (2.3),
6338  
6339 \family typewriter
6340
6341 \backslash
6342 abstract
6343 \family default
6344  (2.4),
6345  
6346 \family typewriter
6347
6348 \backslash
6349 keywords
6350 \family default
6351  (2.5),
6352  
6353 \family typewriter
6354
6355 \backslash
6356 section
6357 \family default
6358  (2.7),
6359  
6360 \family typewriter
6361
6362 \backslash
6363 subsection
6364 \family default
6365  (2.7),
6366  
6367 \family typewriter
6368
6369 \backslash
6370 subsubsection
6371 \family default
6372  (2.7),
6373  
6374 \family typewriter
6375
6376 \backslash
6377 paragraph
6378 \family default
6379  (2.7),
6380  
6381 \family typewriter
6382
6383 \backslash
6384 facility
6385 \family default
6386  (2.10),
6387  
6388 \family typewriter
6389
6390 \backslash
6391 begin{displaymath}
6392 \family default
6393  (2.12),
6394  
6395 \family typewriter
6396
6397 \backslash
6398 begin{equation}
6399 \family default
6400  (2.12),
6401  
6402 \family typewriter
6403
6404 \backslash
6405 begin{eqnarray}
6406 \family default
6407  (2.12),
6408  
6409 \family typewriter
6410
6411 \backslash
6412 begin{mathletters}
6413 \family default
6414  (2.12),
6415  
6416 \family typewriter
6417
6418 \backslash
6419 begin{thebibliography}
6420 \family default
6421  (2.13.1),
6422  
6423 \family typewriter
6424
6425 \backslash
6426 bibitem
6427 \family default
6428  (2.13.2),
6429  all the cite commands and their variations (2.13.2),
6430  the generic graphicx figure commands (2.14.1),
6431  
6432 \family typewriter
6433
6434 \backslash
6435 begin{table}
6436 \family default
6437  (2.15.4),
6438  
6439 \family typewriter
6440
6441 \backslash
6442 begin{tabular}
6443 \family default
6444  (2.15.4),
6445  
6446 \family typewriter
6447
6448 \backslash
6449 caption
6450 \family default
6451  (2.15.4),
6452  
6453 \family typewriter
6454
6455 \backslash
6456 label
6457 \family default
6458  (2.15.4,
6459  amongst other places),
6460  
6461 \family typewriter
6462
6463 \backslash
6464 tablerefs
6465 \family default
6466  (2.15.5),
6467  
6468 \family typewriter
6469
6470 \backslash
6471 tablecomments
6472 \family default
6473  (2.15.5),
6474  
6475 \family typewriter
6476
6477 \backslash
6478 url
6479 \family default
6480  (2.17.4),
6481  
6482 \family typewriter
6483
6484 \backslash
6485 end{document}
6486 \family default
6487  (2.18).
6488 \end_layout
6489
6490 \begin_layout Standard
6491 The following style options also work correctly:
6492  
6493 \family typewriter
6494 longabstract
6495 \family default
6496  (2.4),
6497  
6498 \family typewriter
6499 preprint
6500 \family default
6501  (3.2.1),
6502  
6503 \family typewriter
6504 preprint2
6505 \family default
6506  (3.2.2),
6507  
6508 \family typewriter
6509 eqsecnum
6510 \family default
6511  (3.3),
6512  
6513 \family typewriter
6514 flushrt
6515 \family default
6516  (3.4).
6517  Simply put them in the 
6518 \family sans
6519 Options
6520 \family default
6521  box in 
6522 \family sans
6523 Layout\SpecialChar menuseparator
6524 Document
6525 \family default
6526 .
6527 \end_layout
6528
6529 \begin_layout Paragraph
6530 Things that work,
6531  but require more comment
6532 \end_layout
6533
6534 \begin_layout Standard
6535 The following items work,
6536  but require a little more discussion:
6537 \end_layout
6538
6539 \begin_layout Itemize
6540 These items are reserved for use by the journal editors,
6541  but you can put them into the \SpecialChar LaTeX
6542  preamble if you feel compelled to do so:
6543  
6544 \family typewriter
6545
6546 \backslash
6547 received
6548 \family default
6549 ,
6550  
6551 \family typewriter
6552
6553 \backslash
6554 revised
6555 \family default
6556 ,
6557  
6558 \family typewriter
6559
6560 \backslash
6561 accepted
6562 \family default
6563 ,
6564  
6565 \family typewriter
6566
6567 \backslash
6568 ccc
6569 \family default
6570 ,
6571  
6572 \family typewriter
6573
6574 \backslash
6575 cpright
6576 \family default
6577  (all from 2.1.3)
6578 \end_layout
6579
6580 \begin_layout Itemize
6581 These items may be placed in the \SpecialChar LaTeX
6582  preamble,
6583  and are included as blanks in the template file:
6584  
6585 \family typewriter
6586
6587 \backslash
6588 slugcomment
6589 \family default
6590  (2.1.4),
6591  
6592 \family typewriter
6593
6594 \backslash
6595 shorttitle
6596 \family default
6597  (2.1.5),
6598  
6599 \family typewriter
6600
6601 \backslash
6602 shortauthors
6603 \family default
6604  (2.1.5)
6605 \end_layout
6606
6607 \begin_layout Itemize
6608
6609 \family typewriter
6610
6611 \backslash
6612 email
6613 \family default
6614  (2.3) – can only be used 
6615 \begin_inset Quotes eld
6616 \end_inset
6617
6618 standalone
6619 \begin_inset Quotes erd
6620 \end_inset
6621
6622 ,
6623  not in the middle of a paragraph.
6624  Use \SpecialChar TeX
6625  code if you need to embed it.
6626 \end_layout
6627
6628 \begin_layout Itemize
6629
6630 \family typewriter
6631
6632 \backslash
6633 and
6634 \family default
6635  (2.3) – will have extra {} after it.
6636  This should not cause an error.
6637 \end_layout
6638
6639 \begin_layout Itemize
6640
6641 \family typewriter
6642
6643 \backslash
6644 notetoeditor
6645 \family default
6646  (2.6) – can only be used 
6647 \begin_inset Quotes eld
6648 \end_inset
6649
6650 standalone
6651 \begin_inset Quotes erd
6652 \end_inset
6653
6654 ,
6655  not in the middle of a paragraph.
6656  Use \SpecialChar TeX
6657  code if you need to embed it.
6658 \end_layout
6659
6660 \begin_layout Itemize
6661
6662 \family typewriter
6663
6664 \backslash
6665 placetable
6666 \family default
6667  (2.8) – can't insert a cross-reference tag,
6668  you must type the tag name by hand
6669 \end_layout
6670
6671 \begin_layout Itemize
6672
6673 \family typewriter
6674
6675 \backslash
6676 placefigure
6677 \family default
6678  (2.8) – same as for 
6679 \family typewriter
6680
6681 \backslash
6682 placetable
6683 \end_layout
6684
6685 \begin_layout Itemize
6686
6687 \family typewriter
6688
6689 \backslash
6690 acknowledgements
6691 \family default
6692  (2.9) – will have extra {} after it.
6693  This should not cause an error.
6694 \end_layout
6695
6696 \begin_layout Itemize
6697
6698 \family typewriter
6699
6700 \backslash
6701 appendix
6702 \family default
6703  (2.11) – will have extra {} after it.
6704  This should not cause an error.
6705 \end_layout
6706
6707 \begin_layout Itemize
6708
6709 \family typewriter
6710
6711 \backslash
6712 figcaption
6713 \family default
6714  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
6715 \family sans
6716 Insert\SpecialChar menuseparator
6717 Short Title
6718 \family default
6719 .
6720  
6721 \begin_inset Quotes eld
6722 \end_inset
6723
6724 Short Title
6725 \begin_inset Quotes erd
6726 \end_inset
6727
6728  inserts an optional argument of the type needed by 
6729 \family typewriter
6730
6731 \backslash
6732 figcaption
6733 \family default
6734 .
6735  Hopefully it will be renamed someday.
6736 \end_layout
6737
6738 \begin_layout Itemize
6739
6740 \family typewriter
6741
6742 \backslash
6743 objectname
6744 \family default
6745  (2.17.1) – same as 
6746 \family typewriter
6747
6748 \backslash
6749 figcaption
6750 \family default
6751  for the catalog ID optional parameter
6752 \end_layout
6753
6754 \begin_layout Itemize
6755
6756 \family typewriter
6757
6758 \backslash
6759 dataset
6760 \family default
6761  (2.17.1) – same as 
6762 \family typewriter
6763
6764 \backslash
6765 figcaption
6766 \family default
6767  for the catalog ID optional parameter
6768 \end_layout
6769
6770 \begin_layout Paragraph
6771 Things not implemented,
6772  use \SpecialChar TeX
6773  code
6774 \end_layout
6775
6776 \begin_layout Standard
6777
6778 \family typewriter
6779
6780 \backslash
6781 eqnum
6782 \family default
6783  (2.12),
6784  
6785 \family typewriter
6786
6787 \backslash
6788 setcounter{equation}
6789 \family default
6790  (2.12),
6791  Journal name abbreviations (2.13.4),
6792  
6793 \family typewriter
6794
6795 \backslash
6796 figurenum
6797 \family default
6798  (2.14.1),
6799  
6800 \family typewriter
6801
6802 \backslash
6803 epsscale
6804 \family default
6805  (2.14.1),
6806  
6807 \family typewriter
6808
6809 \backslash
6810 plotone
6811 \family default
6812  (2.14.1),
6813  
6814 \family typewriter
6815
6816 \backslash
6817 plottwo
6818 \family default
6819  (2.14.1),
6820  
6821 \family typewriter
6822
6823 \backslash
6824 tablenum
6825 \family default
6826  (2.15.4),
6827  
6828 \family typewriter
6829
6830 \backslash
6831 tableline
6832 \family default
6833  (2.15.4,
6834  insert it as the first element in the lefthand cell after where you want it.
6835  Don't use any of \SpecialChar LyX
6836 's rules in the table),
6837  
6838 \family typewriter
6839
6840 \backslash
6841 tablenotemark
6842 \family default
6843  (2.15.5),
6844  
6845 \family typewriter
6846
6847 \backslash
6848 tablenotetext
6849 \family default
6850  (2.15.5),
6851  much of Misc (2.17,
6852  except 
6853 \family typewriter
6854
6855 \backslash
6856 objectname
6857 \family default
6858 ,
6859  
6860 \family typewriter
6861
6862 \backslash
6863 dataset
6864 \family default
6865 ,
6866  
6867 \family typewriter
6868
6869 \backslash
6870 url
6871 \family default
6872 ,
6873  and 
6874 \family typewriter
6875
6876 \backslash
6877 email
6878 \family default
6879 ;
6880  see above),
6881  
6882 \family typewriter
6883
6884 \backslash
6885 singlespace
6886 \family default
6887  (3.1),
6888  
6889 \family typewriter
6890
6891 \backslash
6892 doublespace
6893 \family default
6894  (3.1),
6895  
6896 \family typewriter
6897
6898 \backslash
6899 onecolumn
6900 \family default
6901  (3.2),
6902  
6903 \family typewriter
6904
6905 \backslash
6906 twocolumn
6907 \family default
6908  (3.2)
6909 \end_layout
6910
6911 \begin_layout Paragraph
6912 Things that cannot be implemented
6913 \end_layout
6914
6915 \begin_layout Standard
6916 \SpecialChar ldots
6917  at least in any meaningful sort of way,
6918  so I suggest ignoring them.
6919  They are the references environment (2.13.3),
6920  and the deluxetable environment (2.15).
6921  If you really,
6922  really need to use deluxetable,
6923  I suggest editing it in a separate file with a text editor,
6924  then using 
6925 \family sans
6926 Insert\SpecialChar menuseparator
6927 Child
6928 \begin_inset space ~
6929 \end_inset
6930
6931 Document
6932 \family default
6933  to include it in your \SpecialChar LyX
6934  document.
6935  See 
6936 \family sans
6937 File\SpecialChar menuseparator
6938 Open Example\SpecialChar menuseparator
6939 Articles\SpecialChar menuseparator
6940 American Astronomical Society
6941 \family default
6942  for an example of this.
6943 \end_layout
6944
6945 \begin_layout Subsubsection
6946 FAQs,
6947  Tips,
6948  Tricks,
6949  and Other Ruminations
6950 \end_layout
6951
6952 \begin_layout Paragraph
6953 Getting \SpecialChar LyX
6954  and AAS\SpecialChar TeX
6955  to cooperate
6956 \end_layout
6957
6958 \begin_layout Standard
6959 It can be a bit tricky to get \SpecialChar LyX
6960  to recognize a new layout and document class.
6961  When all else fails,
6962  do this:
6963 \end_layout
6964
6965 \begin_layout Enumerate
6966 Make certain that \SpecialChar LaTeX
6967  can find AAS\SpecialChar TeX
6968 .
6969  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6970  distribution into a directory completely unrelated to \SpecialChar LaTeX
6971  or AAS\SpecialChar TeX
6972  and run \SpecialChar LaTeX
6973  on 
6974 \family typewriter
6975 sample.tex
6976 \family default
6977 .
6978 \end_layout
6979
6980 \begin_layout Enumerate
6981 Make certain that 
6982 \family typewriter
6983 aastex.layout
6984 \family default
6985  appears in \SpecialChar LyX
6986 's 
6987 \family typewriter
6988 layouts
6989 \family default
6990  folder
6991 \end_layout
6992
6993 \begin_layout Enumerate
6994 Rerun 
6995 \family sans
6996 Tools\SpecialChar menuseparator
6997 Reconfigure
6998 \family default
6999  in \SpecialChar LyX
7000 ,
7001  then restart \SpecialChar LyX
7002 .
7003 \end_layout
7004
7005 \begin_layout Enumerate
7006 Open a regular new file,
7007  not from a template.
7008  Does 
7009 \family sans
7010 American Astronomical Society (AASTeX V.
7011 \begin_inset space \thinspace{}
7012 \end_inset
7013
7014 6)
7015 \family default
7016  appear in the class list in 
7017 \family sans
7018 Document\SpecialChar menuseparator
7019 Settings
7020 \family default
7021 ?
7022 \end_layout
7023
7024 \begin_layout Standard
7025 If you get a warning from an existing AAS\SpecialChar TeX
7026  document about not being able to find the AAS\SpecialChar TeX
7027  layout or a message about 
7028 \begin_inset Quotes eld
7029 \end_inset
7030
7031 You should not mix title layouts with normal ones
7032 \begin_inset Quotes erd
7033 \end_inset
7034
7035 ,
7036  things haven't been installed correctly.
7037 \end_layout
7038
7039 \begin_layout Paragraph
7040 \SpecialChar LaTeX
7041  error processing a table 
7042 \end_layout
7043
7044 \begin_layout Standard
7045 \SpecialChar LyX
7046 ,
7047  by default,
7048  attempts to center the table caption/title.
7049  This seems to produce a bad interaction in AAS\SpecialChar TeX
7050  so you should click somewhere in the caption/title,
7051  then select 
7052 \family sans
7053 Edit\SpecialChar menuseparator
7054 Paragraph
7055 \begin_inset space ~
7056 \end_inset
7057
7058 Settings
7059 \family default
7060 ,
7061  then set the 
7062 \family sans
7063 Alignment
7064 \family default
7065  to 
7066 \family sans
7067 Block
7068 \family default
7069 .
7070  This took care of it for me.
7071 \end_layout
7072
7073 \begin_layout Paragraph
7074 References
7075 \end_layout
7076
7077 \begin_layout Standard
7078 A couple of things:
7079  
7080 \end_layout
7081
7082 \begin_layout Enumerate
7083 I have noticed some funny spacing in the reference entries in the text.
7084  When you enter the bibliography item data,
7085  make sure their is 
7086 \emph on
7087 no
7088 \emph default
7089  space between the last author and the parenthesis setting off the year;
7090  
7091 \emph on
7092 e.
7093 \begin_inset space \thinspace{}
7094 \end_inset
7095
7096 g.
7097 \begin_inset space \space{}
7098 \end_inset
7099
7100
7101 \emph default
7102 type 
7103 \family typewriter
7104 Ressler(1992)
7105 \family default
7106 ,
7107  not 
7108 \family typewriter
7109 Ressler (1992)
7110 \family default
7111 .
7112  
7113 \end_layout
7114
7115 \begin_layout Enumerate
7116 Entering the references at all is not obvious.
7117  The easiest thing is to start typing your first reference at the end of the document,
7118  then mark it as type 
7119 \family sans
7120 References
7121 \family default
7122 .
7123  That will put a small gray box in front of what you just typed.
7124  Click on the box to fill in the rest of the information.
7125  For new references,
7126  go to the end of an existing reference and press return.
7127  That will create a new line with its own box,
7128  etc.
7129 \end_layout
7130
7131 \begin_layout Paragraph
7132 Including EPS files
7133 \end_layout
7134
7135 \begin_layout Standard
7136 Even though AAS\SpecialChar TeX
7137  provides its own figure commands (
7138 \family typewriter
7139
7140 \backslash
7141 plotone
7142 \family default
7143 ,
7144  for example),
7145  I much prefer \SpecialChar LaTeX
7146 's standard figure commands (with the default graphicx).
7147  You can insert the 
7148 \family typewriter
7149
7150 \backslash
7151 plotone
7152 \family default
7153 ,
7154  etc.
7155 \begin_inset space ~
7156 \end_inset
7157
7158 commands as \SpecialChar TeX
7159  code into a Figure Float box if you desire,
7160  but I never have much luck getting the layout right.
7161  With the standard graphics,
7162  \SpecialChar LyX
7163  will insert a 
7164 \family typewriter
7165
7166 \backslash
7167 usepackage{graphicx}
7168 \family default
7169  command into the \SpecialChar LaTeX
7170  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7171  way,
7172  interspersing the figures in the text.
7173  I believe ApJ accepts figures exactly this way now;
7174  AJ might still use the 
7175 \begin_inset Quotes eld
7176 \end_inset
7177
7178 stack everything at the end
7179 \begin_inset Quotes erd
7180 \end_inset
7181
7182  technique.
7183 \end_layout
7184
7185 \begin_layout Paragraph
7186 Things I could have done,
7187  but didn't
7188 \end_layout
7189
7190 \begin_layout Standard
7191 There are a few 
7192 \begin_inset Quotes eld
7193 \end_inset
7194
7195 pretty
7196 \begin_inset Quotes erd
7197 \end_inset
7198
7199  things I could have implemented,
7200  but chose not to.
7201  For instance,
7202  I saw no point in double-spacing the text in the \SpecialChar LyX
7203  window,
7204  even though it is double-spaced in the paper manuscript.
7205  Also,
7206  I chose not to make separate layouts for the preprint and preprint2 styles.
7207  Since I assume you will spend most of your time in the plain manuscript mode anyway,
7208  I decided not to chew up more disk space with this.
7209  
7210 \end_layout
7211
7212 \begin_layout Subsubsection
7213 Final Caveat
7214 \end_layout
7215
7216 \begin_layout Standard
7217 Your mileage may vary.
7218  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
7219 ;
7220  the last 2% was the \SpecialChar LaTeX
7221  post-processing and a few cleanups.
7222  I have had no trouble with the submission process,
7223  and I'm sure the journals were never aware that there might be a difference.
7224  So,
7225  go forth and publish!
7226 \end_layout
7227
7228 \begin_layout Subsection
7229 Chess
7230 \end_layout
7231
7232 \begin_layout Standard
7233 The document class 
7234 \family sans
7235 Chess
7236 \family default
7237  uses the standard article document class together with the package 
7238 \family sans
7239 lyxskak
7240 \family default
7241  to facilitate the description of chess games.
7242  See 
7243 \family sans
7244 File\SpecialChar menuseparator
7245 Open Example\SpecialChar menuseparator
7246 Articles\SpecialChar menuseparator
7247 Chess
7248 \family default
7249  where you will find 
7250 \family sans
7251 Game 1
7252 \family default
7253  and 
7254 \family sans
7255 Game 2
7256 \family default
7257 .
7258 \end_layout
7259
7260 \begin_layout Subsection
7261 Elsevier
7262 \end_layout
7263
7264 \begin_layout Standard
7265 The document class 
7266 \family sans
7267 Elsevier
7268 \family default
7269  provides support for the 
7270 \family typewriter
7271 elsarticle
7272 \family default
7273  \SpecialChar LaTeX
7274  class for journals in the Elsevier publishing house.
7275  This provides the following additional environments:
7276  
7277 \family sans
7278 Title
7279 \begin_inset space ~
7280 \end_inset
7281
7282 footnote
7283 \family default
7284 ,
7285  
7286 \family sans
7287 Author
7288 \begin_inset space ~
7289 \end_inset
7290
7291 footnote
7292 \family default
7293 ,
7294  
7295 \family sans
7296 Corresponding
7297 \begin_inset space ~
7298 \end_inset
7299
7300 author
7301 \family default
7302 ,
7303  
7304 \family sans
7305 Address
7306 \family default
7307 ,
7308  
7309 \family sans
7310 Email
7311 \family default
7312  and 
7313 \family sans
7314 Keywords
7315 \family default
7316 .
7317 \end_layout
7318
7319 \begin_layout Standard
7320 A template is available in the menu 
7321 \family sans
7322 \bar under
7323 F
7324 \bar default
7325 ile\SpecialChar menuseparator
7326 New
7327 \begin_inset space ~
7328 \end_inset
7329
7330 fro
7331 \bar under
7332 m
7333 \bar default
7334
7335 \begin_inset space ~
7336 \end_inset
7337
7338 Template\SpecialChar menuseparator
7339 Articles\SpecialChar menuseparator
7340 Elsevier
7341 \family default
7342 .
7343  It has been customized with further environments and contains all the information you may need.
7344  However,
7345  the documentation is also available from 
7346 \begin_inset CommandInset href
7347 LatexCommand href
7348 name "CTAN"
7349 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7350 literal "false"
7351
7352 \end_inset
7353
7354 .
7355 \end_layout
7356
7357 \begin_layout Subsection
7358 Paper
7359 \end_layout
7360
7361 \begin_layout Standard
7362 The document class 
7363 \family sans
7364 Paper (Standard Class)
7365 \family default
7366  provides an alternative to the 
7367 \family sans
7368 Article (Standard Class)
7369 \family default
7370  document class.
7371  It provides similar functionality,
7372  but you might prefer this layout with sans serif sections,
7373  headings,
7374  and more.
7375 \end_layout
7376
7377 \begin_layout Subsection
7378 Rev\SpecialChar TeX
7379 4
7380 \end_layout
7381
7382 \begin_layout Standard
7383 by 
7384 \noun on
7385 Amir Karger
7386 \end_layout
7387
7388 \begin_layout Standard
7389 \begin_inset VSpace bigskip
7390 \end_inset
7391
7392
7393 \end_layout
7394
7395 \begin_layout Standard
7396 \noindent
7397 The 
7398 \family sans
7399 RevTeX (V.
7400 \begin_inset space \thinspace{}
7401 \end_inset
7402
7403 4)
7404 \family default
7405  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7406  4.0 (the 
7407 \begin_inset Formula $\beta$
7408 \end_inset
7409
7410  release of May,
7411  1999) class.
7412 \end_layout
7413
7414 \begin_layout Standard
7415 \SpecialChar LyX
7416  has a 
7417 \family sans
7418 REVTeX (obsolete)
7419 \family default
7420  textclass,
7421  which works with Rev\SpecialChar TeX
7422  3.1.
7423  However,
7424  v3.1 is basically obsolete,
7425  as it works with \SpecialChar LaTeX
7426  2.09.
7427  That means that it doesn't interact very well with \SpecialChar LyX
7428 ,
7429  which requires \SpecialChar LaTeX2e
7430 ,
7431  although it has been kludged to work.
7432  Since Rev\SpecialChar TeX
7433  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7434 ,
7435  \SpecialChar LyX
7436  with the 
7437 \family sans
7438 Revtex
7439 \begin_inset space ~
7440 \end_inset
7441
7442 4TeX (V.
7443 \begin_inset space \thinspace{}
7444 \end_inset
7445
7446 4)
7447 \family default
7448  textclass should also be pretty easy to use.
7449 \end_layout
7450
7451 \begin_layout Standard
7452 These documents are supposed to be used in 
7453 \emph on
7454 addition
7455 \emph default
7456  to the Rev\SpecialChar TeX
7457  4.0 documents,
7458  so we don't describe any of the special Rev\SpecialChar TeX
7459  macros,
7460  and assume you'll know what to put in the preamble if necessary.
7461 \end_layout
7462
7463 \begin_layout Subsubsection
7464 Installation
7465 \end_layout
7466
7467 \begin_layout Standard
7468 All you need to do is install Rev\SpecialChar TeX
7469  4,
7470  as described in the package's README file.
7471  The package can be found at The Rev\SpecialChar TeX
7472  4 Web Site 
7473 \begin_inset Flex URL
7474 status collapsed
7475
7476 \begin_layout Plain Layout
7477
7478 http://publish.aps.org/revtex4/
7479 \end_layout
7480
7481 \end_inset
7482
7483 .
7484  Install it somewhere that \SpecialChar LaTeX
7485  can see it.
7486  Test it by trying to \SpecialChar LaTeX
7487  a short Rev\SpecialChar TeX
7488  4 document in some random directory (i.
7489 \begin_inset space \thinspace{}
7490 \end_inset
7491
7492 e.
7493 \begin_inset space \space{}
7494 \end_inset
7495
7496 not the directory where you installed the class file.) Then,
7497  if you reconfigure \SpecialChar LyX
7498 ,
7499  it will find the class file and let you use the Rev\SpecialChar TeX
7500 4 textclass.
7501 \end_layout
7502
7503 \begin_layout Standard
7504 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7505  4 document using 
7506 \family typewriter
7507 tex2lyx
7508 \family default
7509 ,
7510  or to use the 
7511 \family sans
7512 Revtex
7513 \begin_inset space ~
7514 \end_inset
7515
7516 4
7517 \family default
7518  template,
7519  found in 
7520 \family sans
7521 File\SpecialChar menuseparator
7522 New From Templates\SpecialChar menuseparator
7523 Articles
7524 \family default
7525 .
7526 \end_layout
7527
7528 \begin_layout Subsubsection
7529 Preamble Matter
7530 \end_layout
7531
7532 \begin_layout Standard
7533 Optional arguments to 
7534 \family typewriter
7535
7536 \backslash
7537 documentclass
7538 \family default
7539 ,
7540  like 
7541 \begin_inset Quotes eld
7542 \end_inset
7543
7544 preprint
7545 \begin_inset Quotes erd
7546 \end_inset
7547
7548  and 
7549 \begin_inset Quotes eld
7550 \end_inset
7551
7552 aps
7553 \begin_inset Quotes erd
7554 \end_inset
7555
7556 ,
7557  go in the 
7558 \family sans
7559 Extra
7560 \begin_inset space ~
7561 \end_inset
7562
7563 Options
7564 \family default
7565  field in the 
7566 \family sans
7567 Document
7568 \begin_inset space ~
7569 \end_inset
7570
7571 Layout
7572 \family default
7573  dialog,
7574  as usual.
7575  Remember that in Rev\SpecialChar TeX
7576 ,
7577  at least one optional argument is required!
7578  
7579 \end_layout
7580
7581 \begin_layout Standard
7582 Other preamble matter,
7583  like 
7584 \family typewriter
7585
7586 \backslash
7587 draft
7588 \family default
7589  etc.
7590 \begin_inset space ~
7591 \end_inset
7592
7593 goes in the 
7594 \family sans
7595 \SpecialChar LaTeX
7596
7597 \begin_inset space ~
7598 \end_inset
7599
7600 Preamble
7601 \family default
7602  dialog,
7603  also as usual.
7604 \end_layout
7605
7606 \begin_layout Subsubsection
7607 Layouts
7608 \end_layout
7609
7610 \begin_layout Standard
7611 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7612 4.0.
7613  For example,
7614  the Email layout corresponds to 
7615 \family typewriter
7616
7617 \backslash
7618 email{}
7619 \family default
7620 .
7621  Note that (at least as of Rev\SpecialChar TeX
7622  4.0 Beta),
7623  the 
7624 \family sans
7625 Address
7626 \family default
7627  and 
7628 \family sans
7629 Affiliation
7630 \family default
7631  layouts are exactly equivalent,
7632  so you shouldn't need to use both.
7633 \begin_inset Foot
7634 status collapsed
7635
7636 \begin_layout Plain Layout
7637 In case you're curious,
7638  both were included so that 
7639 \family typewriter
7640 tex2lyx
7641 \family default
7642  would be able to translate both 
7643 \family typewriter
7644
7645 \backslash
7646 address
7647 \family default
7648  and 
7649 \family typewriter
7650
7651 \backslash
7652 affiliation
7653 \family default
7654 .
7655 \end_layout
7656
7657 \end_inset
7658
7659
7660 \end_layout
7661
7662 \begin_layout Subsubsection
7663 Important Notes
7664 \end_layout
7665
7666 \begin_layout Standard
7667 There are a couple of important unique aspects of Rev\SpecialChar TeX
7668  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
7669 .
7670 \end_layout
7671
7672 \begin_layout Standard
7673 In Rev\SpecialChar TeX
7674 ,
7675  the 
7676 \family typewriter
7677
7678 \backslash
7679 thanks
7680 \family default
7681  command goes 
7682 \emph on
7683 outside
7684 \emph default
7685  the 
7686 \family typewriter
7687
7688 \backslash
7689 author
7690 \family default
7691  command.
7692  The \SpecialChar LyX
7693  equivalent is that there is a separate Thanks layout.
7694  Do 
7695 \emph on
7696 not
7697 \emph default
7698  write footnotes in the 
7699 \family sans
7700 Author
7701 \family default
7702  layout,
7703  or weird things may happen.
7704  See the Rev\SpecialChar TeX
7705  4 documentation for more details.
7706 \end_layout
7707
7708 \begin_layout Standard
7709 Also,
7710  the 
7711 \family sans
7712 Author
7713 \begin_inset space ~
7714 \end_inset
7715
7716 Email
7717 \family default
7718 ,
7719  
7720 \family sans
7721 Author
7722 \begin_inset space ~
7723 \end_inset
7724
7725 URL
7726 \family default
7727 ,
7728  and 
7729 \family sans
7730 Thanks
7731 \family default
7732  layouts must be placed 
7733 \emph on
7734 in between
7735 \emph default
7736  the 
7737 \family sans
7738 Author
7739 \family default
7740  layout and the corresponding 
7741 \family sans
7742 Address
7743 \family default
7744  (or equivalent 
7745 \family sans
7746 Affiliation
7747 \family default
7748 ) layout.
7749  If you put the 
7750 \family sans
7751 Thanks
7752 \family default
7753  after the 
7754 \family sans
7755 Address
7756 \family default
7757 ,
7758  the \SpecialChar LaTeX
7759  won't compile.
7760 \end_layout
7761
7762 \begin_layout Subsection
7763 Springer Journals
7764 \end_layout
7765
7766 \begin_layout Standard
7767 All the 
7768 \family sans
7769 svj*
7770 \family default
7771  classes were replaced with a completely new class,
7772  
7773 \family sans
7774 sn-jnl.cls
7775 \family default
7776 .
7777  Please find information at 
7778 \begin_inset Flex URL
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782
7783 https://www.springernature.com/gp/authors/campaigns/latex-author-support
7784 \end_layout
7785
7786 \end_inset
7787
7788 .
7789  Native \SpecialChar LyX
7790  support is not available yet.
7791 \end_layout
7792
7793 \begin_layout Section
7794 Books
7795 \end_layout
7796
7797 \begin_layout Standard
7798 See also the document classes in the Collections (section
7799 \begin_inset space ~
7800 \end_inset
7801
7802
7803 \begin_inset CommandInset ref
7804 LatexCommand ref
7805 reference "sec:Collections"
7806 nolink "false"
7807
7808 \end_inset
7809
7810 ).
7811 \end_layout
7812
7813 \begin_layout Subsection
7814 Memoir
7815 \end_layout
7816
7817 \begin_layout Standard
7818 By 
7819 \noun on
7820 Jürgen Spitzmüller
7821 \end_layout
7822
7823 \begin_layout Subsubsection
7824 Overview
7825 \end_layout
7826
7827 \begin_layout Standard
7828 Memoir is a very powerful and constantly evolving class.
7829  It has been designed with regard to fictional and non-fictional literature.
7830  Its aim is to let the user have maximum control over the typesetting of his document.
7831  Memoir is based on the standard book class,
7832  but it can also emulate the article class (see below).
7833 \end_layout
7834
7835 \begin_layout Standard
7836 Peter Wilson,
7837  the developer of Memoir,
7838  is known as the author of lots of useful packages in the \SpecialChar LaTeX
7839  world.
7840  Most of them have been merged with Memoir.
7841  Therefore,
7842  it is much easier to layout the table of contents,
7843  appendices,
7844  chapter designs and such.
7845  \SpecialChar LyX
7846 ,
7847  though,
7848  does not support all of these goodies natively.
7849  Some of them might be added to forthcoming releases
7850 \begin_inset Foot
7851 status collapsed
7852
7853 \begin_layout Plain Layout
7854 You are invited to send suggestions to 
7855 \begin_inset Flex URL
7856 status collapsed
7857
7858 \begin_layout Plain Layout
7859
7860 lyx-devel@lists.lyx.org
7861 \end_layout
7862
7863 \end_inset
7864
7865 .
7866 \end_layout
7867
7868 \end_inset
7869
7870 ,
7871  lots will probably never be supported,
7872  due to the limitations of \SpecialChar LyX
7873 's framework.
7874  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7875  commands (\SpecialChar TeX
7876  code
7877 \begin_inset Foot
7878 status collapsed
7879
7880 \begin_layout Plain Layout
7881 Cf.
7882 \begin_inset ERT
7883 status collapsed
7884
7885 \begin_layout Plain Layout
7886
7887
7888 \backslash
7889  
7890 \end_layout
7891
7892 \end_inset
7893
7894 section
7895 \begin_inset space ~
7896 \end_inset
7897
7898
7899 \begin_inset CommandInset ref
7900 LatexCommand ref
7901 reference "sec:Inserting-TeX-Code"
7902 nolink "false"
7903
7904 \end_inset
7905
7906  for details.
7907 \end_layout
7908
7909 \end_inset
7910
7911 ).
7912  In this section,
7913  we can only list those features that are natively supported by \SpecialChar LyX
7914 .
7915  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
7916 \begin_inset Foot
7917 status collapsed
7918
7919 \begin_layout Plain Layout
7920 Cf.
7921 \begin_inset ERT
7922 status collapsed
7923
7924 \begin_layout Plain Layout
7925
7926
7927 \backslash
7928  
7929 \end_layout
7930
7931 \end_inset
7932
7933
7934 \begin_inset Flex URL
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938
7939 CTAN:/macros/latex/memoir/memman.pdf
7940 \end_layout
7941
7942 \end_inset
7943
7944 .
7945 \end_layout
7946
7947 \end_inset
7948
7949 ,
7950  which is not only a user guide for the class,
7951  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
7952 \end_layout
7953
7954 \begin_layout Subsubsection
7955 Basic features and restrictions
7956 \end_layout
7957
7958 \begin_layout Standard
7959 Memoir supports basically all features of the standard book classes.
7960  There are,
7961  however,
7962  some differences,
7963  as follows:
7964 \end_layout
7965
7966 \begin_layout Description
7967 Font
7968 \begin_inset space ~
7969 \end_inset
7970
7971 sizes:
7972  Memoir has a broader range of font sizes:
7973  9,
7974  10,
7975  11,
7976  12,
7977  14,
7978  17
7979 \end_layout
7980
7981 \begin_layout Description
7982 Page
7983 \begin_inset space ~
7984 \end_inset
7985
7986 style:
7987  The fancy page style is not supported,
7988  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
7989  which confuses \SpecialChar LaTeX
7990 ).
7991  Instead,
7992  Memoir comes with a number of its own page styles (see 
7993 \family sans
7994 Document\SpecialChar menuseparator
7995 Settings\SpecialChar menuseparator
7996 Page
7997 \begin_inset space ~
7998 \end_inset
7999
8000 Style
8001 \family default
8002 ).
8003  If you want to use these for the chapter pages,
8004  you have to use the command 
8005 \family typewriter
8006
8007 \backslash
8008 chapterstyle
8009 \family default
8010  in the main text or in preamble (e.
8011 \begin_inset space \thinspace{}
8012 \end_inset
8013
8014 g.
8015 \begin_inset space \space{}
8016 \end_inset
8017
8018
8019 \family typewriter
8020
8021 \backslash
8022 chapterstyle{companion}
8023 \family default
8024 ).
8025 \end_layout
8026
8027 \begin_layout Description
8028 Sectioning:
8029  Sectionings (chapter,
8030  section,
8031  subsection etc.) come with an optional argument in the standard classes.
8032  With this,
8033  you can specify an alternative version of the title for the table of contents and the headers (for instance,
8034  if the title is too long).
8035  In \SpecialChar LyX
8036 ,
8037  you can do this via 
8038 \family sans
8039 Insert\SpecialChar menuseparator
8040 Short
8041 \begin_inset space ~
8042 \end_inset
8043
8044 Title
8045 \family default
8046  at the beginning of a chapter/section.
8047  Memoir features a second optional argument and thus separates the table of contents from the header.
8048  You can define three variants of a title with this:
8049  one for the main text,
8050  one for the table of contents,
8051  and one for the headers.
8052  \SpecialChar LyX
8053  makes these available in form of specific 
8054 \family sans
8055 Short Title
8056 \family default
8057  variants in the 
8058 \family sans
8059 Insert
8060 \family default
8061  menu.
8062 \end_layout
8063
8064 \begin_layout Description
8065 TOC/LOT/LOF:
8066  In the standard classes (and in many other classes),
8067  the table of contents,
8068  the list of figures and the list of table start a new page automatically.
8069  Memoir does not follow this route.
8070  You have to insert a page break yourself,
8071  if you want to have one.
8072 \end_layout
8073
8074 \begin_layout Description
8075 Titlepage:
8076  For some unknown reason,
8077  Memoir uses pagination on the title page (in the standard classes,
8078  title pages are 
8079 \begin_inset Quotes eld
8080 \end_inset
8081
8082 empty
8083 \begin_inset Quotes erd
8084 \end_inset
8085
8086 ).
8087  If you want an empty title page,
8088  type 
8089 \family typewriter
8090
8091 \backslash
8092 aliaspagestyle{title}{empty}
8093 \family default
8094  in the preamble.
8095 \end_layout
8096
8097 \begin_layout Description
8098 Article:
8099  With the class option 
8100 \emph on
8101 article
8102 \emph default
8103  (to be inserted in 
8104 \family sans
8105 Document\SpecialChar menuseparator
8106 Settings\SpecialChar menuseparator
8107 Class Settings\SpecialChar menuseparator
8108 Custom
8109 \begin_inset space ~
8110 \end_inset
8111
8112 Options
8113 \family default
8114 ),
8115  you can emulate article style.
8116  That is,
8117  counters (footnotes,
8118  figures,
8119  tables etc.) will not be reset on new chapters,
8120  chapters don't start a new page (but are—
8121 in contrary to 
8122 \begin_inset Quotes eld
8123 \end_inset
8124
8125 real
8126 \begin_inset Quotes erd
8127 \end_inset
8128
8129  article classes—
8130 still allowed),
8131  parts,
8132  though,
8133  use their own page,
8134  as in book.
8135 \end_layout
8136
8137 \begin_layout Description
8138 Oldfontcommands:
8139  By default,
8140  Memoir does not allow the use of the deprecated font commands,
8141  which have been used in the old \SpecialChar LaTeX
8142  version 2.09 (e.
8143 \begin_inset space \thinspace{}
8144 \end_inset
8145
8146 g.
8147 \begin_inset space \space{}
8148 \end_inset
8149
8150
8151 \family typewriter
8152
8153 \backslash
8154 rm
8155 \family default
8156 ,
8157  
8158 \family typewriter
8159
8160 \backslash
8161 it
8162 \family default
8163 ).
8164  It produces an error and stops \SpecialChar LaTeX
8165  whenever such a command appears.
8166  The class option 
8167 \emph on
8168 oldfontcommands
8169 \emph default
8170  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
8171 ).
8172  Since a lot of packages and particularly Bib\SpecialChar TeX
8173  style files are still using those commands,
8174  we have decided to use this option by default.
8175 \end_layout
8176
8177 \begin_layout Subsubsection
8178 Extra features
8179 \end_layout
8180
8181 \begin_layout Standard
8182 We will only describe the features supported by \SpecialChar LyX
8183  (which is not much currently).
8184  Please consult the Memoir manual
8185 \begin_inset Foot
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 Cf.
8190 \begin_inset ERT
8191 status collapsed
8192
8193 \begin_layout Plain Layout
8194
8195
8196 \backslash
8197  
8198 \end_layout
8199
8200 \end_inset
8201
8202
8203 \begin_inset Flex URL
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207
8208 CTAN:/macros/latex/memoir/memman.pdf
8209 \end_layout
8210
8211 \end_inset
8212
8213 .
8214 \end_layout
8215
8216 \end_inset
8217
8218  for details.
8219 \end_layout
8220
8221 \begin_layout Description
8222 Abstract:
8223  You may wonder why an abstract is an extra feature.
8224  Well,
8225  it is in book class.
8226  Usually books don't have abstracts.
8227  Memoir,
8228  however,
8229  has.
8230  You can use it wherever and how often you like.
8231 \end_layout
8232
8233 \begin_layout Description
8234 Chapterprecis:
8235  You may know this older typesetting style:
8236  The contents of a chapter are summarized below the title and also in the table of contents (e.
8237 \begin_inset space \thinspace{}
8238 \end_inset
8239
8240 g.
8241 \begin_inset space \space{}
8242 \end_inset
8243
8244
8245 \emph on
8246 Our hero arrives in Troia;
8247  he loses some friends;
8248  he finds others
8249 \emph default
8250 ).
8251  Chapterprecis does exactly this.
8252  It is therefore only sensible below a chapter.
8253 \end_layout
8254
8255 \begin_layout Description
8256 Epigraph:
8257  An epigraph is a smart slogan or motto at the beginning of a chapter.
8258  The epigraph environment provides an elegant way of typesetting such a motto.
8259  The motto itself (text) and its (optional) author (source) are divided by a short line.
8260  The author (source) can be inserted via 
8261 \family sans
8262 Insert\SpecialChar menuseparator
8263 Epigraph Source
8264 \family default
8265 \emph on
8266 .
8267 \end_layout
8268
8269 \begin_layout Description
8270 Poemtitle:
8271  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
8272  \SpecialChar LyX
8273  can only support a few of them.
8274  One is poemtitle,
8275  which is a centered title for poems,
8276  which will also be added to the table of contents (verse is the standard environment for poems.
8277  Memoir has some enhanced versions of verse,
8278  but you need to use \SpecialChar TeX
8279  code,
8280  because they have to be nested inside regular verse environments,
8281  which is not possible with \SpecialChar LyX
8282 ).
8283 \end_layout
8284
8285 \begin_layout Description
8286 Poemtitle*:
8287  Same as poemtitle,
8288  but it adds no entry to the table of contents.
8289 \end_layout
8290
8291 \begin_layout Subsection
8292 Recipe Book
8293 \end_layout
8294
8295 \begin_layout Standard
8296 The document class 
8297 \family sans
8298 Recipe Book
8299 \family default
8300  uses the 
8301 \family sans
8302 KOMA-Script Book
8303 \family default
8304  document class but adds two environments:
8305 \end_layout
8306
8307 \begin_layout Description
8308 Recipe a numbered section environment at the 
8309 \family typewriter
8310 Subsubsection
8311 \family default
8312  level which generates a bold centered heading above a double horizontal rule
8313 \end_layout
8314
8315 \begin_layout Description
8316 Ingredients a 
8317 \family typewriter
8318 Description
8319 \family default
8320  environment where 
8321 \series bold
8322 \emph on
8323 Ingredients
8324 \series default
8325 \emph default
8326  are what are being described and the environment ends with a horizontal rule.
8327 \end_layout
8328
8329 \begin_layout Standard
8330
8331 \family sans
8332 File\SpecialChar menuseparator
8333 Open Example\SpecialChar menuseparator
8334 Books\SpecialChar menuseparator
8335 Recipe Book
8336 \family default
8337  illustrates its use.
8338 \end_layout
8339
8340 \begin_layout Standard
8341 The class is designed for typesetting one or two recipes per page.
8342  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient.
8343  
8344 \end_layout
8345
8346 \begin_layout Section
8347 Curricula vitae
8348 \end_layout
8349
8350 \begin_layout Subsection
8351 Europass (2013)
8352 \end_layout
8353
8354 \begin_layout Standard
8355 The document class 
8356 \family sans
8357 Europass (2013)
8358 \family default
8359  provides the 
8360 \family typewriter
8361 europasscv.cls
8362 \family default
8363  document class,
8364  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
8365  
8366 \family sans
8367 File\SpecialChar menuseparator
8368 Open Example\SpecialChar menuseparator
8369 Curricula Vitae\SpecialChar menuseparator
8370 Europass (2013)
8371 \family default
8372  offers guidance on its use.
8373  Its documentation is available from 
8374 \begin_inset CommandInset href
8375 LatexCommand href
8376 name "CTAN"
8377 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8378 literal "false"
8379
8380 \end_inset
8381
8382 .
8383 \end_layout
8384
8385 \begin_layout Subsection
8386 Europe CV
8387 \end_layout
8388
8389 \begin_layout Standard
8390 The document class 
8391 \family sans
8392 Europe CV
8393 \family default
8394  provides the 
8395 \family typewriter
8396 europecv.cls
8397 \family default
8398  document class,
8399  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
8400  
8401 \family sans
8402 File\SpecialChar menuseparator
8403 Open Example\SpecialChar menuseparator
8404 Curricula Vitae\SpecialChar menuseparator
8405 Europe CV
8406 \family default
8407  offers guidance on its use.
8408  Its documentation is available from 
8409 \begin_inset CommandInset href
8410 LatexCommand href
8411 name "CTAN"
8412 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8413 literal "false"
8414
8415 \end_inset
8416
8417 .
8418 \end_layout
8419
8420 \begin_layout Subsection
8421 Modern CV
8422 \end_layout
8423
8424 \begin_layout Standard
8425 The document class 
8426 \family sans
8427 Modern CV
8428 \family default
8429  provides the 
8430 \family typewriter
8431 moderncv.cls
8432 \family default
8433  document class.
8434  This allows the creation of customizable CVs.
8435  
8436 \family sans
8437 File\SpecialChar menuseparator
8438 Open Example\SpecialChar menuseparator
8439 Curricula Vitae\SpecialChar menuseparator
8440 Modern CV
8441 \family default
8442  offers guidance on its use.
8443  Its documentation is available from 
8444 \begin_inset CommandInset href
8445 LatexCommand href
8446 name "CTAN"
8447 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8448 literal "false"
8449
8450 \end_inset
8451
8452 .
8453 \end_layout
8454
8455 \begin_layout Subsection
8456 Simple CV
8457 \end_layout
8458
8459 \begin_layout Standard
8460 The document class 
8461 \family sans
8462 Simple CV
8463 \family default
8464  provides the 
8465 \family typewriter
8466 simplecv.cls
8467 \family default
8468  document class,
8469  originally developed for use with \SpecialChar LyX
8470 .
8471  
8472 \family sans
8473 File\SpecialChar menuseparator
8474 Open Example\SpecialChar menuseparator
8475 Curricula Vitae\SpecialChar menuseparator
8476 Simple CV
8477 \family default
8478  offers guidance on its use.
8479  Its documentation is available from 
8480 \begin_inset CommandInset href
8481 LatexCommand href
8482 name "CTAN"
8483 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8484 literal "false"
8485
8486 \end_inset
8487
8488
8489 \end_layout
8490
8491 \begin_layout Section
8492 Letters
8493 \end_layout
8494
8495 \begin_layout Standard
8496 See also the 
8497 \family sans
8498 KOMA-Script Letter (V.
8499  2)
8500 \family default
8501  (section
8502 \begin_inset space ~
8503 \end_inset
8504
8505
8506 \begin_inset CommandInset ref
8507 LatexCommand ref
8508 reference "subsec:The-new-letter"
8509 nolink "false"
8510
8511 \end_inset
8512
8513 ) and 
8514 \family sans
8515 Letter (Standard Class with Extra Font Sizes)
8516 \family default
8517  (section
8518 \begin_inset space ~
8519 \end_inset
8520
8521
8522 \begin_inset CommandInset ref
8523 LatexCommand ref
8524 reference "subsec:Extra-font-sizes"
8525 nolink "false"
8526
8527 \end_inset
8528
8529 ) document classes .
8530 \end_layout
8531
8532 \begin_layout Subsection
8533 DIN-Brief
8534 \end_layout
8535
8536 \begin_layout Standard
8537 The document class 
8538 \family sans
8539 DIN-Brief
8540 \family default
8541  provides support for the 
8542 \family typewriter
8543 dinbrief.cls
8544 \family default
8545  \SpecialChar LaTeX
8546  class for writing letters according to the standards of the German Standards Institute (
8547 \emph on
8548 Deutsches Institut für Normung,
8549  DIN)
8550 \emph default
8551 .
8552  The file in the menu 
8553 \family sans
8554 \bar under
8555 F
8556 \bar default
8557 ile\SpecialChar menuseparator
8558 New
8559 \begin_inset space ~
8560 \end_inset
8561
8562 fro
8563 \bar under
8564 m
8565 \bar default
8566
8567 \begin_inset space ~
8568 \end_inset
8569
8570 Template\SpecialChar menuseparator
8571 Letters\SpecialChar menuseparator
8572 DIN-Brief
8573 \family default
8574  offers guidance on its use.
8575  The documentation is available from 
8576 \begin_inset CommandInset href
8577 LatexCommand href
8578 name "CTAN"
8579 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8580 literal "false"
8581
8582 \end_inset
8583
8584 .
8585 \end_layout
8586
8587 \begin_layout Subsection
8588 French letter
8589 \begin_inset space \space{}
8590 \end_inset
8591
8592 (frletter)
8593 \end_layout
8594
8595 \begin_layout Standard
8596 The document class 
8597 \family sans
8598 French letter
8599 \begin_inset space \space{}
8600 \end_inset
8601
8602 (frletter)
8603 \family default
8604  provides support for the 
8605 \family typewriter
8606 frletter.cls
8607 \family default
8608  \SpecialChar LaTeX
8609  class for writing letters according to French conventions.
8610  The file in the menu 
8611 \family sans
8612 \bar under
8613 F
8614 \bar default
8615 ile\SpecialChar menuseparator
8616 New
8617 \begin_inset space ~
8618 \end_inset
8619
8620 fro
8621 \bar under
8622 m
8623 \bar default
8624
8625 \begin_inset space ~
8626 \end_inset
8627
8628 Template\SpecialChar menuseparator
8629 Letters\SpecialChar menuseparator
8630 French letter
8631 \begin_inset space \space{}
8632 \end_inset
8633
8634 (frletter)
8635 \family default
8636  offers guidance on its use.
8637 \end_layout
8638
8639 \begin_layout Subsection
8640 French letter
8641 \begin_inset space \space{}
8642 \end_inset
8643
8644 (lettre)
8645 \end_layout
8646
8647 \begin_layout Standard
8648 The document class 
8649 \family sans
8650 French letter
8651 \begin_inset space \space{}
8652 \end_inset
8653
8654 (lettre)
8655 \family default
8656  provides support for 
8657 \family typewriter
8658 lettre.cls
8659 \family default
8660 ,
8661  another \SpecialChar LaTeX
8662  class for writing letters,
8663  but also faxes and envelopes,
8664  in French.
8665  The file in the menu 
8666 \family sans
8667 \bar under
8668 F
8669 \bar default
8670 ile\SpecialChar menuseparator
8671 New
8672 \begin_inset space ~
8673 \end_inset
8674
8675 fro
8676 \bar under
8677 m
8678 \bar default
8679
8680 \begin_inset space ~
8681 \end_inset
8682
8683 Template\SpecialChar menuseparator
8684 Letters\SpecialChar menuseparator
8685 French letter
8686 \begin_inset space \space{}
8687 \end_inset
8688
8689 (lettre)
8690 \family default
8691  offers guidance on its use.
8692  The documentation is available from 
8693 \begin_inset CommandInset href
8694 LatexCommand href
8695 name "CTAN"
8696 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
8697 literal "false"
8698
8699 \end_inset
8700
8701 .
8702 \end_layout
8703
8704 \begin_layout Subsection
8705 G-Brief (V.
8706 \begin_inset space \thinspace{}
8707 \end_inset
8708
8709 2)
8710 \end_layout
8711
8712 \begin_layout Standard
8713 The document class 
8714 \family sans
8715 G-Brief (V.
8716 \begin_inset space \thinspace{}
8717 \end_inset
8718
8719 2)
8720 \family default
8721  provides support for the 
8722 \family typewriter
8723 g-brief2.cls
8724 \family default
8725  \SpecialChar LaTeX
8726  class for writing letters in German.
8727  The file in the menu 
8728 \family sans
8729 \bar under
8730 F
8731 \bar default
8732 ile\SpecialChar menuseparator
8733 New
8734 \begin_inset space ~
8735 \end_inset
8736
8737 fro
8738 \bar under
8739 m
8740 \bar default
8741
8742 \begin_inset space ~
8743 \end_inset
8744
8745 Template\SpecialChar menuseparator
8746 Letters\SpecialChar menuseparator
8747 G-Brief (V.
8748 \begin_inset space \thinspace{}
8749 \end_inset
8750
8751 2)
8752 \family default
8753  offers guidance on its use.
8754  The documentation is available from 
8755 \begin_inset CommandInset href
8756 LatexCommand href
8757 name "CTAN"
8758 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
8759 literal "false"
8760
8761 \end_inset
8762
8763 .
8764 \end_layout
8765
8766 \begin_layout Section
8767 Presentations
8768 \end_layout
8769
8770 \begin_layout Subsection
8771 Beamer
8772 \end_layout
8773
8774 \begin_layout Standard
8775 The document class 
8776 \family sans
8777 Beamer
8778 \family default
8779  uses the 
8780 \family typewriter
8781 beamer.cls
8782 \family default
8783  \SpecialChar LaTeX
8784  class for creating presentations.
8785  The file in the menu 
8786 \family sans
8787 \bar under
8788 F
8789 \bar default
8790 ile\SpecialChar menuseparator
8791 New
8792 \begin_inset space ~
8793 \end_inset
8794
8795 fro
8796 \bar under
8797 m
8798 \bar default
8799
8800 \begin_inset space ~
8801 \end_inset
8802
8803 Template\SpecialChar menuseparator
8804 Presentations\SpecialChar menuseparator
8805 Beamer
8806 \family default
8807  or 
8808 \family sans
8809 Help\SpecialChar menuseparator
8810 Specific Manuals\SpecialChar menuseparator
8811 Beamer Presentations
8812 \family default
8813  offers guidance on its use.
8814  The documentation is available from 
8815 \begin_inset CommandInset href
8816 LatexCommand href
8817 name "CTAN"
8818 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8819 literal "false"
8820
8821 \end_inset
8822
8823 .
8824 \end_layout
8825
8826 \begin_layout Subsection
8827
8828 \family sans
8829 Foil\SpecialChar TeX
8830
8831 \family default
8832
8833 \begin_inset CommandInset label
8834 LatexCommand label
8835 name "sec:foiltex"
8836
8837 \end_inset
8838
8839
8840 \end_layout
8841
8842 \begin_layout Standard
8843 Original by 
8844 \noun on
8845 Allan Rae
8846 \noun default
8847 ;
8848  updated by the \SpecialChar LyX
8849  Team
8850 \end_layout
8851
8852 \begin_layout Subsubsection
8853 Introduction
8854 \end_layout
8855
8856 \begin_layout Standard
8857 The document class 
8858 \family sans
8859 Foil\SpecialChar TeX
8860
8861 \family default
8862  uses the 
8863 \family typewriter
8864 foils.cls
8865 \family default
8866  document class to make slides for overhead projectors.
8867  There are two document classes that can do this:
8868  the 
8869 \family sans
8870 Slides
8871 \family default
8872  document class (section
8873 \begin_inset space ~
8874 \end_inset
8875
8876
8877 \begin_inset CommandInset ref
8878 LatexCommand ref
8879 reference "sec:slitex"
8880 plural "false"
8881 caps "false"
8882 noprefix "false"
8883 nolink "false"
8884
8885 \end_inset
8886
8887 ) and the 
8888 \family sans
8889 Foil\SpecialChar TeX
8890
8891 \family default
8892  slides class.
8893  As of 2023 the former has continued to be maintained whereas 
8894 \family sans
8895 Foil\SpecialChar TeX
8896
8897 \family default
8898  has not been maintained since 2008.
8899  This section documents the latter.
8900  If your machine doesn’t have the 
8901 \family sans
8902 Foil\SpecialChar TeX
8903
8904 \family default
8905  document class installed,
8906  you’ll probably have to use the 
8907 \family sans
8908 Slides
8909 \family default
8910  document class.
8911  If you want to install the 
8912 \family typewriter
8913 foils.cls
8914 \family default
8915  document class,
8916  it is available from 
8917 \begin_inset CommandInset href
8918 LatexCommand href
8919 name "CTAN"
8920 target "https://www.ctan.org/pkg/foiltex"
8921 literal "false"
8922
8923 \end_inset
8924
8925 .
8926  You should also read the 
8927 \emph on
8928 Installing New Document Classes
8929 \emph default
8930  chapter of the 
8931 \emph on
8932 Customization
8933 \emph default
8934  manual.
8935 \end_layout
8936
8937 \begin_layout Subsubsection
8938 Getting Started
8939 \end_layout
8940
8941 \begin_layout Standard
8942 Obviously,
8943  to use this document class,
8944  you need to select 
8945 \family sans
8946 FoilTeX
8947 \family default
8948  from the 
8949 \family sans
8950 Class
8951 \family default
8952  entry in the 
8953 \family sans
8954 Document
8955 \begin_inset space ~
8956 \end_inset
8957
8958 Layout
8959 \family default
8960  dialog.
8961  There are some settings in the 
8962 \family sans
8963 Document
8964 \begin_inset space ~
8965 \end_inset
8966
8967 Layout
8968 \family default
8969  dialog that you should know about that are specific to this class:
8970 \end_layout
8971
8972 \begin_layout Itemize
8973 Don't change the options 
8974 \family sans
8975 Sides
8976 \family default
8977  and 
8978 \family sans
8979 Columns
8980 \family default
8981  on the 
8982 \family sans
8983 Document
8984 \begin_inset space ~
8985 \end_inset
8986
8987 Layout
8988 \family default
8989  dialog.
8990  They're ignored by the 
8991 \family sans
8992 foils
8993 \family default
8994  class.
8995 \end_layout
8996
8997 \begin_layout Itemize
8998 The default font size is 20
8999 \begin_inset space \thinspace{}
9000 \end_inset
9001
9002 pt with the other options being 17
9003 \begin_inset space \thinspace{}
9004 \end_inset
9005
9006 pt,
9007  25
9008 \begin_inset space \thinspace{}
9009 \end_inset
9010
9011 pt and 30
9012 \begin_inset space \thinspace{}
9013 \end_inset
9014
9015 pt.
9016 \end_layout
9017
9018 \begin_layout Itemize
9019 The default font is 
9020 \family sans
9021 sans
9022 \family default
9023  
9024 \family sans
9025 serif
9026 \family default
9027  but all math equations are still typeset in the usual roman font.
9028 \end_layout
9029
9030 \begin_layout Itemize
9031
9032 \family sans
9033 Foil\SpecialChar TeX
9034
9035 \family default
9036  supports A4 and Letter paper sizes as well as a special size for working with 35
9037 \begin_inset space \thinspace{}
9038 \end_inset
9039
9040 mm slides.
9041  It doesn't support A5,
9042  B5,
9043  legal or executive paper sizes.
9044 \end_layout
9045
9046 \begin_layout Itemize
9047 Don't bother changing the 
9048 \family sans
9049 Float Placement
9050 \family default
9051  settings because they are ignored anyway.
9052  All floats appear where they are defined in the text.
9053 \end_layout
9054
9055 \begin_layout Itemize
9056 The 
9057 \family sans
9058 Pagestyle
9059 \family default
9060  setting behaves a bit differently for this class.
9061  
9062 \family sans
9063 Foil\SpecialChar TeX
9064
9065 \family default
9066  provides extensive footer and header capabilities including a user-defined logo.
9067  See section
9068 \begin_inset space ~
9069 \end_inset
9070
9071
9072 \begin_inset CommandInset ref
9073 LatexCommand ref
9074 reference "sec:foilfoot"
9075 nolink "false"
9076
9077 \end_inset
9078
9079  for more details.
9080  The title page is treated differently to all other pages in the document and is 
9081 \emph on
9082 always
9083 \emph default
9084  unnumbered and 
9085 \emph on
9086 always
9087 \emph default
9088  has the logo centered at the bottom of the page (if one is defined).
9089  The possible page style choices and what they do are as follows:
9090 \end_layout
9091
9092 \begin_deeper
9093 \begin_layout Labeling
9094 \labelwidthstring MMMMMMM
9095
9096 \family sans
9097 \series bold
9098 empty
9099 \family default
9100 \series default
9101  The final output contains no page numbers,
9102  or other headers or footers (except footnotes of course).
9103  
9104 \end_layout
9105
9106 \begin_layout Labeling
9107 \labelwidthstring MMMMMMM
9108
9109 \family sans
9110 \series bold
9111 plain
9112 \family default
9113 \series default
9114  The final output contains page numbers centered at the bottom of the page.
9115  No other headings or footers (other than footnotes).
9116 \end_layout
9117
9118 \begin_layout Labeling
9119 \labelwidthstring MMMMMMM
9120
9121 \series bold
9122 foilheadings
9123 \series default
9124  Page numbers in lower right corner.
9125  Additional headers and footers are also shown.
9126  This is also the default.
9127 \end_layout
9128
9129 \begin_layout Labeling
9130 \labelwidthstring MMMMMMM
9131
9132 \series bold
9133 fancy
9134 \series default
9135  Gives you access to the 
9136 \family sans
9137 fancyheadings
9138 \family default
9139  package although its use with 
9140 \family sans
9141 Foil\SpecialChar TeX
9142
9143 \family default
9144  is discouraged by the writer of the 
9145 \family sans
9146 Foil\SpecialChar TeX
9147
9148 \family default
9149  package because of some potential page layout clashes.
9150 \end_layout
9151
9152 \end_deeper
9153 \begin_layout Paragraph
9154 Extra Options
9155 \end_layout
9156
9157 \begin_layout Standard
9158 The following options may be used in the extra class options in the 
9159 \family sans
9160 Document\SpecialChar menuseparator
9161 Settings
9162 \family default
9163  dialog.
9164 \end_layout
9165
9166 \begin_layout Labeling
9167 \labelwidthstring MMMMMMx
9168
9169 \series bold
9170 35mmSlide
9171 \series default
9172  This sets up the page layout for 7.33
9173 \begin_inset space \thinspace{}
9174 \end_inset
9175
9176 in by 11
9177 \begin_inset space \thinspace{}
9178 \end_inset
9179
9180 in paper,
9181  which is about the same aspect ratio as a 35
9182 \begin_inset space \thinspace{}
9183 \end_inset
9184
9185 mm slide,
9186  making it a bit easier to work with this medium.
9187 \end_layout
9188
9189 \begin_layout Labeling
9190 \labelwidthstring MMMMMMx
9191
9192 \series bold
9193 headrule
9194 \series default
9195  Places a rule across the page below the header on every page except the title page.
9196 \end_layout
9197
9198 \begin_layout Labeling
9199 \labelwidthstring MMMMMMx
9200
9201 \series bold
9202 footrule
9203 \series default
9204  Places a rule across the page above the footer on every page except the title page.
9205 \end_layout
9206
9207 \begin_layout Labeling
9208 \labelwidthstring MMMMMMx
9209
9210 \series bold
9211 dvips
9212 \series default
9213  This is automatically set each time you create a new 
9214 \family sans
9215 foils
9216 \family default
9217  document.
9218  This option tells 
9219 \family sans
9220 Foil\SpecialChar TeX
9221
9222 \family default
9223  to use the dvips driver to rotate those pages that are set as landscape foils.
9224 \end_layout
9225
9226 \begin_layout Labeling
9227 \labelwidthstring MMMMMMx
9228
9229 \series bold
9230 landscape
9231 \series default
9232  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
9233  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.
9234  Note that this option effectively reverses the roles of the 
9235 \family sans
9236 Foilhead
9237 \family default
9238  and 
9239 \family sans
9240 Rotatefoilhead
9241 \family default
9242  environments (don't worry these are described in the next section).
9243 \end_layout
9244
9245 \begin_layout Labeling
9246 \labelwidthstring MMMMMMx
9247
9248 \series bold
9249 leqno
9250 \series default
9251  Equation numbers on the left.
9252 \end_layout
9253
9254 \begin_layout Labeling
9255 \labelwidthstring MMMMMMx
9256
9257 \series bold
9258 fleqn
9259 \series default
9260  Flush-left equations.
9261 \end_layout
9262
9263 \begin_layout Subsubsection
9264 Supported Environments
9265 \end_layout
9266
9267 \begin_layout Standard
9268 Most of the environments commonly supported in other classes are also supported by the 
9269 \family sans
9270 Foil\SpecialChar TeX
9271
9272 \family default
9273  class.
9274  There are several additional environments provided by 
9275 \family sans
9276 Foil\SpecialChar TeX
9277
9278 \family default
9279  as well as a couple added by \SpecialChar LyX
9280 .
9281  The following environments are shared with other classes:
9282 \end_layout
9283
9284 \begin_layout Standard
9285 \begin_inset Flex Multiple Columns
9286 status open
9287
9288 \begin_layout Itemize
9289
9290 \family sans
9291 Standard
9292 \end_layout
9293
9294 \begin_layout Itemize
9295
9296 \family sans
9297 Itemize
9298 \end_layout
9299
9300 \begin_layout Itemize
9301
9302 \family sans
9303 Enumerate
9304 \end_layout
9305
9306 \begin_layout Itemize
9307
9308 \family sans
9309 Description
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family sans
9315 List
9316 \end_layout
9317
9318 \begin_layout Itemize
9319
9320 \family sans
9321 \SpecialChar LyX
9322 -Code
9323 \end_layout
9324
9325 \begin_layout Itemize
9326
9327 \family sans
9328 Verse
9329 \end_layout
9330
9331 \begin_layout Itemize
9332
9333 \family sans
9334 Quote
9335 \end_layout
9336
9337 \begin_layout Itemize
9338
9339 \family sans
9340 Quotation
9341 \end_layout
9342
9343 \begin_layout Itemize
9344
9345 \family sans
9346 Title
9347 \end_layout
9348
9349 \begin_layout Itemize
9350
9351 \family sans
9352 Author
9353 \end_layout
9354
9355 \begin_layout Itemize
9356
9357 \family sans
9358 Date
9359 \end_layout
9360
9361 \begin_layout Itemize
9362
9363 \family sans
9364 Abstract
9365 \end_layout
9366
9367 \begin_layout Itemize
9368
9369 \family sans
9370 Bibliography
9371 \end_layout
9372
9373 \begin_layout Itemize
9374
9375 \family sans
9376 Address
9377 \end_layout
9378
9379 \begin_layout Itemize
9380
9381 \family sans
9382 RightAddress
9383 \end_layout
9384
9385 \end_inset
9386
9387
9388 \end_layout
9389
9390 \begin_layout Standard
9391 That is,
9392  all the major environments apart from the sectioning environments.
9393  Since foils are essentially self-contained sections,
9394  with a title and body,
9395  
9396 \family sans
9397 Foil\SpecialChar TeX
9398
9399 \family default
9400  provides specific commands for starting new foils and these are:
9401 \end_layout
9402
9403 \begin_layout Itemize
9404
9405 \family sans
9406 Foilhead
9407 \end_layout
9408
9409 \begin_layout Itemize
9410
9411 \family sans
9412 Rotatefoilhead
9413 \end_layout
9414
9415 \begin_layout Standard
9416 \SpecialChar LyX
9417  also provides slightly modified versions of these two environments called:
9418 \end_layout
9419
9420 \begin_layout Itemize
9421
9422 \family sans
9423 ShortFoilhead
9424 \end_layout
9425
9426 \begin_layout Itemize
9427
9428 \family sans
9429 ShortRotatefoilhead
9430 \end_layout
9431
9432 \begin_layout Standard
9433 and the differences will be explained in the next section.
9434 \end_layout
9435
9436 \begin_layout Standard
9437 Since foils are often used in presenting ideas or new theorems and such 
9438 \family sans
9439 Foil\SpecialChar TeX
9440
9441 \family default
9442  also provides a comprehensive box of goodies for presenting them:
9443 \end_layout
9444
9445 \begin_layout Standard
9446 \begin_inset Flex Multiple Columns
9447 status open
9448
9449 \begin_layout Itemize
9450
9451 \family sans
9452 Theorem
9453 \end_layout
9454
9455 \begin_layout Itemize
9456
9457 \family sans
9458 Lemma
9459 \end_layout
9460
9461 \begin_layout Itemize
9462
9463 \family sans
9464 Corollary
9465 \end_layout
9466
9467 \begin_layout Itemize
9468
9469 \family sans
9470 Proposition
9471 \end_layout
9472
9473 \begin_layout Itemize
9474
9475 \family sans
9476 Definition
9477 \end_layout
9478
9479 \begin_layout Itemize
9480
9481 \family sans
9482 Proof
9483 \end_layout
9484
9485 \begin_layout Itemize
9486
9487 \family sans
9488 Theorem*
9489 \end_layout
9490
9491 \begin_layout Itemize
9492
9493 \family sans
9494 Lemma*
9495 \end_layout
9496
9497 \begin_layout Itemize
9498
9499 \family sans
9500 Corollary*
9501 \end_layout
9502
9503 \begin_layout Itemize
9504
9505 \family sans
9506 Proposition*
9507 \end_layout
9508
9509 \begin_layout Itemize
9510
9511 \family sans
9512 Definition*
9513 \end_layout
9514
9515 \end_inset
9516
9517
9518 \end_layout
9519
9520 \begin_layout Standard
9521 The starred versions are unnumbered while the unstarred versions are numbered.
9522  There are also two list environments added by \SpecialChar LyX
9523  and these are:
9524 \end_layout
9525
9526 \begin_layout Itemize
9527
9528 \family sans
9529 TickList
9530 \end_layout
9531
9532 \begin_layout Itemize
9533
9534 \family sans
9535 CrossList
9536 \end_layout
9537
9538 \begin_layout Standard
9539
9540 \family sans
9541 Foil\SpecialChar TeX
9542
9543 \family default
9544  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.
9545  If you want to change these settings in your document the best place to do so is at the very top of a foil,
9546  i.
9547 \begin_inset space \thinspace{}
9548 \end_inset
9549
9550 e.
9551 \emph on
9552
9553 \begin_inset space \space{}
9554 \end_inset
9555
9556
9557 \emph default
9558 straight after the foilhead.
9559 \end_layout
9560
9561 \begin_layout Standard
9562 For this purpose,
9563  the following command styles are provided [
9564 \shape smallcaps
9565 Martin Vermeer
9566 \shape default
9567 ]:
9568 \end_layout
9569
9570 \begin_layout Standard
9571 \begin_inset Flex Multiple Columns
9572 status open
9573
9574 \begin_layout Itemize
9575
9576 \family sans
9577 My
9578 \begin_inset space ~
9579 \end_inset
9580
9581 Logo
9582 \end_layout
9583
9584 \begin_layout Itemize
9585
9586 \family sans
9587 Restriction
9588 \end_layout
9589
9590 \begin_layout Itemize
9591
9592 \family sans
9593 Right
9594 \begin_inset space ~
9595 \end_inset
9596
9597 Footer
9598 \end_layout
9599
9600 \begin_layout Itemize
9601
9602 \family sans
9603 Right
9604 \begin_inset space ~
9605 \end_inset
9606
9607 Header
9608 \end_layout
9609
9610 \begin_layout Itemize
9611
9612 \family sans
9613 Left
9614 \begin_inset space ~
9615 \end_inset
9616
9617 Header
9618 \end_layout
9619
9620 \begin_deeper
9621 \begin_layout Plain Layout
9622 \begin_inset space ~
9623 \end_inset
9624
9625
9626 \end_layout
9627
9628 \end_deeper
9629 \end_inset
9630
9631
9632 \end_layout
9633
9634 \begin_layout Standard
9635 There are also a few commands provided by 
9636 \family sans
9637 Foil\SpecialChar TeX
9638
9639 \family default
9640  that aren't directly supported by \SpecialChar LyX
9641  but I'll tell you what they do and how to use them in section
9642 \begin_inset space ~
9643 \end_inset
9644
9645
9646 \begin_inset CommandInset ref
9647 LatexCommand ref
9648 reference "sec:unsuppfoils"
9649 nolink "false"
9650
9651 \end_inset
9652
9653 .
9654 \end_layout
9655
9656 \begin_layout Subsubsection
9657 Building a Set of Foils
9658 \end_layout
9659
9660 \begin_layout Standard
9661 This section will give a simple introduction to using the different environments to build a set of foils.
9662  If you want to see an example set of foils,
9663  take a look at 
9664 \family sans
9665 File\SpecialChar menuseparator
9666 Open Example\SpecialChar menuseparator
9667 Presentations\SpecialChar menuseparator
9668 Foils
9669 \family default
9670 .
9671 \end_layout
9672
9673 \begin_layout Paragraph
9674 Give It a Title Page
9675 \end_layout
9676
9677 \begin_layout Standard
9678 Unlike other classes that provide 
9679 \family sans
9680 Title
9681 \family default
9682 ,
9683  
9684 \family sans
9685 Author
9686 \family default
9687 ,
9688  
9689 \family sans
9690 Date
9691 \family default
9692  and 
9693 \family sans
9694 Abstract
9695 \family default
9696  environments,
9697  
9698 \family sans
9699 \lang ngerman
9700 FoilTeX
9701 \family default
9702 \lang english
9703  creates the title on a page of its own.
9704  If you leave out the 
9705 \family sans
9706 Date
9707 \family default
9708  environment \SpecialChar LaTeX
9709  will substitute the current date (every time you regenerate the output).
9710 \end_layout
9711
9712 \begin_layout Paragraph
9713 Start a New Foil
9714 \end_layout
9715
9716 \begin_layout Standard
9717 As I mentioned earlier,
9718  there are four ways of starting a new foil.
9719  For portrait foils you should use 
9720 \family sans
9721 Foilhead
9722 \family default
9723  or 
9724 \family sans
9725 ShortFoilhead.
9726
9727 \family default
9728  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.
9729 \end_layout
9730
9731 \begin_layout Standard
9732 Landscape foils are generated using the 
9733 \family sans
9734 Rotatefoilhead
9735 \family default
9736  and 
9737 \family sans
9738 ShortRotatefoilhead
9739 \family default
9740  environments.
9741  Again the only difference is the spacing between foilhead and body.
9742  Both of the short versions have 0.5
9743 \begin_inset space ~
9744 \end_inset
9745
9746 inches less separation between the foilhead and the body.
9747  
9748 \end_layout
9749
9750 \begin_layout Standard
9751 One problem with the support for landscape foils is the requirement that you have to use the 
9752 \family typewriter
9753 dvips
9754 \family default
9755  driver to generate the PostScript output otherwise the foils won't be rotated.
9756  It is possible to get landscape foils even if you haven't got the 
9757 \family typewriter
9758 dvips
9759 \family default
9760  driver provided you can feed your foils sideways through your printer ;-)
9761 \end_layout
9762
9763 \begin_layout Paragraph
9764 Theorems,
9765  Lemmas,
9766  Proofs and more
9767 \end_layout
9768
9769 \begin_layout Standard
9770 You can't have two of the same type of these environments directly following each other.
9771  If you use a normal paragraph break,
9772  ,
9773  you will just be extending the previous environment as if you had merged the two environments together.
9774  Rather than that,
9775  you need to insert a so-called separator.
9776  Please refer to the section entitled 
9777 \emph on
9778 Separate Nestings
9779 \emph default
9780  in the 
9781 \emph on
9782 User's Guide
9783 \emph default
9784 .
9785 \end_layout
9786
9787 \begin_layout Paragraph
9788 Lists
9789 \end_layout
9790
9791 \begin_layout Standard
9792 You get all the commonly supported list styles found in other classes as well as two new ones.
9793  I'll only describe the new ones here.
9794  If you want to find out more about the other list environments check out the 
9795 \emph on
9796 User's Guide.
9797
9798 \emph default
9799  If you intend to use itemized lists you might also want to read about the 
9800 \family sans
9801 Itemize
9802 \begin_inset space ~
9803 \end_inset
9804
9805 Bullet
9806 \begin_inset space ~
9807 \end_inset
9808
9809 Selection
9810 \family default
9811  dialog described above in section
9812 \begin_inset space ~
9813 \end_inset
9814
9815
9816 \begin_inset CommandInset ref
9817 LatexCommand ref
9818 reference "chap:bullets"
9819 nolink "false"
9820
9821 \end_inset
9822
9823 .
9824 \end_layout
9825
9826 \begin_layout Standard
9827 The two new list styles,
9828  
9829 \family sans
9830 TickList
9831 \family default
9832  and 
9833 \family sans
9834 CrossList
9835 \family default
9836 ,
9837  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.
9838  These lists are in fact dedicated variants of the 
9839 \family sans
9840 Itemize
9841 \family default
9842  environment.
9843  They do however require that you have the 
9844 \family typewriter
9845 psnfss
9846 \family default
9847  packages installed.
9848 \end_layout
9849
9850 \begin_layout Paragraph
9851 Figures and Tables
9852 \end_layout
9853
9854 \begin_layout Standard
9855
9856 \family sans
9857 Foil\SpecialChar TeX
9858
9859 \family default
9860  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.
9861  In fact if you change the float placement settings they are simply ignored.
9862 \end_layout
9863
9864 \begin_layout Paragraph
9865 Page Headers and Footers
9866 \begin_inset CommandInset label
9867 LatexCommand label
9868 name "sec:foilfoot"
9869
9870 \end_inset
9871
9872
9873 \end_layout
9874
9875 \begin_layout Standard
9876
9877 \family sans
9878 My
9879 \begin_inset space ~
9880 \end_inset
9881
9882 Logo
9883 \family default
9884  and 
9885 \family sans
9886 Restriction
9887 \family default
9888  are two commands used to control the left-footer text string.
9889  The first is meant to allow you to include a graphic logo on your foils and defaults to 
9890 \begin_inset Quotes eld
9891 \end_inset
9892
9893 -Typeset by 
9894 \family sans
9895 Foil\SpecialChar TeX
9896
9897 \family default
9898 -
9899 \begin_inset Quotes erd
9900 \end_inset
9901
9902 .
9903  While the second is meant to provide a classification for the audience,
9904  
9905 \emph on
9906 e.
9907 \begin_inset space \thinspace{}
9908 \end_inset
9909
9910 g.
9911 \emph default
9912
9913 \begin_inset space \space{}
9914 \end_inset
9915
9916 Confidential.
9917  It is empty by default.
9918 \end_layout
9919
9920 \begin_layout Standard
9921 The remaining page corners can be filled by 
9922 \family sans
9923 Right
9924 \begin_inset space ~
9925 \end_inset
9926
9927 Footer
9928 \family default
9929  (which defaults to page numbers),
9930  
9931 \family sans
9932 Right
9933 \begin_inset space ~
9934 \end_inset
9935
9936 Header
9937 \family default
9938  (top right) and 
9939 \family sans
9940 Left
9941 \begin_inset space ~
9942 \end_inset
9943
9944 Header
9945 \family default
9946  (top left).
9947 \end_layout
9948
9949 \begin_layout Subsubsection
9950 Unsupported 
9951 \family sans
9952 Foil\SpecialChar TeX
9953
9954 \family default
9955  Goodies
9956 \begin_inset CommandInset label
9957 LatexCommand label
9958 name "sec:unsuppfoils"
9959
9960 \end_inset
9961
9962
9963 \end_layout
9964
9965 \begin_layout Standard
9966 All the commands mentioned below need to be set in a 
9967 \family sans
9968 \SpecialChar LaTeX
9969
9970 \family default
9971  environment or as 
9972 \family sans
9973 \SpecialChar TeX
9974
9975 \family default
9976  within another environment.
9977 \end_layout
9978
9979 \begin_layout Paragraph
9980 Lengths
9981 \end_layout
9982
9983 \begin_layout Standard
9984 All lengths are adjusted using the 
9985 \family typewriter
9986
9987 \backslash
9988 setlength{
9989 \family default
9990 \emph on
9991 lengthname
9992 \family typewriter
9993 \emph default
9994 }{
9995 \family default
9996 \emph on
9997 newlength
9998 \family typewriter
9999 \emph default
10000 }
10001 \family default
10002  command.
10003  Where 
10004 \emph on
10005 lengthname
10006 \emph default
10007  should be replaced by the name given to the length you want to change and 
10008 \emph on
10009 newlength
10010 \emph default
10011  is the length value.
10012  All lengths should be specified in units of length such as inches (
10013 \family typewriter
10014 in
10015 \family default
10016 ),
10017  millimeters (
10018 \family typewriter
10019 mm
10020 \family default
10021 ) or points (
10022 \family typewriter
10023 pt
10024 \family default
10025 ) or relative to some document or font-based length such as 
10026 \family typewriter
10027
10028 \backslash
10029 textwidth
10030 \family default
10031 .
10032  
10033 \end_layout
10034
10035 \begin_layout Standard
10036 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
10037 \family typewriter
10038
10039 \backslash
10040 foilheadskip
10041 \family default
10042 .
10043  For example,
10044  to make 
10045 \emph on
10046 all
10047 \emph default
10048  foilheads 0.5
10049 \begin_inset space \space{}
10050 \end_inset
10051
10052 in closer to their bodies put the following in the preamble:
10053  
10054 \family typewriter
10055
10056 \backslash
10057 setlength{
10058 \backslash
10059 foilheadskip}{-0.5in}
10060 \end_layout
10061
10062 \begin_layout Standard
10063 The spacings around floats can be adjusted by setting these lengths:
10064 \end_layout
10065
10066 \begin_layout Labeling
10067 \labelwidthstring MMMMMMMMMMM
10068
10069 \family typewriter
10070
10071 \backslash
10072 abovefloatskip
10073 \family default
10074  Separation between the text and the top of the float
10075 \end_layout
10076
10077 \begin_layout Labeling
10078 \labelwidthstring MMMMMMMMMMM
10079
10080 \family typewriter
10081
10082 \backslash
10083 abovecaptionskip
10084 \family default
10085  Separation between the float and the caption
10086 \end_layout
10087
10088 \begin_layout Labeling
10089 \labelwidthstring MMMMMMMMMMM
10090
10091 \family typewriter
10092
10093 \backslash
10094 belowcaptionskip
10095 \family default
10096  Separation between the caption and the following text
10097 \end_layout
10098
10099 \begin_layout Labeling
10100 \labelwidthstring MMMMMMMMMMM
10101
10102 \family typewriter
10103
10104 \backslash
10105 captionwidth
10106 \family default
10107  You can make the captions narrower than the surrounding text by adjusting this length.
10108  Best done relative to 
10109 \family typewriter
10110
10111 \backslash
10112 textwidth
10113 \family default
10114 .
10115 \end_layout
10116
10117 \begin_layout Standard
10118 There are also several title page related lengths that you may find useful if you have a long title or several authors:
10119 \end_layout
10120
10121 \begin_layout Labeling
10122 \labelwidthstring MMMMMMMMMMM
10123
10124 \family typewriter
10125
10126 \backslash
10127 abovetitleskip
10128 \family default
10129  Separation from headers to 
10130 \family sans
10131 Title
10132 \end_layout
10133
10134 \begin_layout Labeling
10135 \labelwidthstring MMMMMMMMMMM
10136
10137 \family typewriter
10138
10139 \backslash
10140 titleauthorskip
10141 \family default
10142  between 
10143 \family sans
10144 Title
10145 \family default
10146  and 
10147 \family sans
10148 Author
10149 \family default
10150  environments
10151 \end_layout
10152
10153 \begin_layout Labeling
10154 \labelwidthstring MMMMMMMMMMM
10155
10156 \family typewriter
10157
10158 \backslash
10159 authorauthorskip
10160 \family default
10161  between multiple 
10162 \family sans
10163 Author
10164 \family default
10165  lines
10166 \end_layout
10167
10168 \begin_layout Labeling
10169 \labelwidthstring MMMMMMMMMMM
10170
10171 \family typewriter
10172
10173 \backslash
10174 authordateskip
10175 \family default
10176  between the 
10177 \family sans
10178 Author
10179 \family default
10180  and the 
10181 \family sans
10182 Date
10183 \end_layout
10184
10185 \begin_layout Labeling
10186 \labelwidthstring MMMMMMMMMMM
10187
10188 \family typewriter
10189
10190 \backslash
10191 dateabstractskip
10192 \family default
10193  between the 
10194 \family sans
10195 Date
10196 \family default
10197  and the 
10198 \family sans
10199 Abstract
10200 \end_layout
10201
10202 \begin_layout Standard
10203 The last length related command affects all the list environments.
10204  If you place 
10205 \family typewriter
10206
10207 \backslash
10208 zerolistvertdimens
10209 \family default
10210  
10211 \emph on
10212 inside
10213 \emph default
10214  a list environment then all the vertical spacing between the list items is removed.
10215  Note that this is a command not a length so it doesn't require 
10216 \family typewriter
10217
10218 \backslash
10219 setlength
10220 \family default
10221  like the stuff mentioned above.
10222 \end_layout
10223
10224 \begin_layout Paragraph
10225 Headers and Footers
10226 \end_layout
10227
10228 \begin_layout Standard
10229 The 
10230 \family typewriter
10231
10232 \backslash
10233 LogoOn
10234 \family default
10235  and 
10236 \family typewriter
10237
10238 \backslash
10239 LogoOff
10240 \family default
10241  commands control whether the logo in the 
10242 \family sans
10243 MyLogo
10244 \family default
10245  definition appear on a given page.
10246  If you put 
10247 \family typewriter
10248
10249 \backslash
10250 LogoOff
10251 \family default
10252  in the preamble then none of the foils will have the logo on them.
10253  If you don't want the logo on a particular page place the 
10254 \family typewriter
10255
10256 \backslash
10257 LogoOff
10258 \family default
10259  directly after the foilhead of that page and the 
10260 \family typewriter
10261
10262 \backslash
10263 LogoOn
10264 \family default
10265  directly after the next foilhead.
10266 \end_layout
10267
10268 \begin_layout Standard
10269 If you decide to use the 
10270 \family sans
10271 fancy
10272 \family default
10273  page style setting in the 
10274 \family sans
10275 Document
10276 \begin_inset space ~
10277 \end_inset
10278
10279 Layout
10280 \family default
10281  dialog you should probably add 
10282 \family typewriter
10283
10284 \backslash
10285 let
10286 \backslash
10287 headwidth
10288 \backslash
10289 textwidth
10290 \family default
10291  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
10292  This is due to some clashes between the page layouts provided by the 
10293 \family sans
10294 fancyheadings
10295 \family default
10296  package and the 
10297 \family sans
10298 \lang ngerman
10299 FoilTeX
10300 \family default
10301 \lang english
10302  class.
10303 \end_layout
10304
10305 \begin_layout Subsection
10306 Powerdot
10307 \end_layout
10308
10309 \begin_layout Standard
10310 The document class 
10311 \family sans
10312 Powerdot
10313 \family default
10314  uses the 
10315 \family typewriter
10316 powerdot.cls
10317 \family default
10318  \SpecialChar LaTeX
10319  class for creating presentations.
10320  
10321 \family sans
10322 File\SpecialChar menuseparator
10323 Open Example\SpecialChar menuseparator
10324 Presentations\SpecialChar menuseparator
10325 Powerdot
10326 \family default
10327  offers guidance on its use.
10328  The documentation is available from 
10329 \begin_inset CommandInset href
10330 LatexCommand href
10331 name "CTAN"
10332 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10333 literal "false"
10334
10335 \end_inset
10336
10337 .
10338 \end_layout
10339
10340 \begin_layout Subsection
10341 \begin_inset CommandInset label
10342 LatexCommand label
10343 name "subsec:Seminar"
10344
10345 \end_inset
10346
10347
10348 \family sans
10349 Seminar
10350 \end_layout
10351
10352 \begin_layout Standard
10353 The document class 
10354 \family sans
10355 Seminar
10356 \family default
10357  uses the 
10358 \family typewriter
10359 seminar.cls
10360 \family default
10361  document class for creating presentations.
10362  
10363 \family sans
10364 File\SpecialChar menuseparator
10365 Open Example\SpecialChar menuseparator
10366 Presentations\SpecialChar menuseparator
10367 Seminar
10368 \family default
10369  offers guidance on its use.
10370  The documentation is available from 
10371 \begin_inset CommandInset href
10372 LatexCommand href
10373 name "CTAN"
10374 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10375 literal "false"
10376
10377 \end_inset
10378
10379 .
10380 \end_layout
10381
10382 \begin_layout Subsection
10383 Slides [aka 
10384 \noun on
10385 Sli\SpecialChar TeX
10386
10387 \noun default
10388 ]
10389 \begin_inset CommandInset label
10390 LatexCommand label
10391 name "sec:slitex"
10392
10393 \end_inset
10394
10395
10396 \end_layout
10397
10398 \begin_layout Standard
10399 Original by 
10400 \noun on
10401 John Weiss
10402 \noun default
10403 ;
10404  updated by the \SpecialChar LyX
10405  Team
10406 \end_layout
10407
10408 \begin_layout Subsubsection
10409 Introduction
10410 \end_layout
10411
10412 \begin_layout Standard
10413 This section describes how to use \SpecialChar LyX
10414  to make slides for overhead projectors.
10415  There are two document classes that can do this:
10416  the 
10417 \family sans
10418 Slides
10419 \family default
10420  document class and the 
10421 \family sans
10422 Foil\SpecialChar TeX
10423
10424 \family default
10425  document class.
10426  This section documents the former.
10427  If you’re looking for the documentation for 
10428 \family sans
10429 Foil\SpecialChar TeX
10430
10431 \family default
10432 ,
10433  check out section
10434 \begin_inset space ~
10435 \end_inset
10436
10437
10438 \begin_inset CommandInset ref
10439 LatexCommand ref
10440 reference "sec:foiltex"
10441 plural "false"
10442 caps "false"
10443 noprefix "false"
10444 nolink "false"
10445
10446 \end_inset
10447
10448 .
10449  As of 2023 
10450 \family sans
10451 Slides
10452 \family default
10453  has continued to be maintained whereas 
10454 \family sans
10455 Foil\SpecialChar TeX
10456
10457 \family default
10458  has not been maintained since 2008.
10459  
10460 \end_layout
10461
10462 \begin_layout Subsubsection
10463 Getting Started
10464 \begin_inset CommandInset label
10465 LatexCommand label
10466 name "sec:slidesetup"
10467
10468 \end_inset
10469
10470
10471 \end_layout
10472
10473 \begin_layout Standard
10474 Obviously,
10475  to use this document class,
10476  you need to select 
10477 \begin_inset Quotes eld
10478 \end_inset
10479
10480
10481 \family sans
10482 Slides
10483 \family default
10484
10485 \begin_inset Quotes erd
10486 \end_inset
10487
10488  from the class list in the 
10489 \family sans
10490 Document\SpecialChar menuseparator
10491 Settings
10492 \family default
10493  dialog.
10494  There are some other special things you should know about this class:
10495 \end_layout
10496
10497 \begin_layout Itemize
10498 Don't bother changing the options 
10499 \family sans
10500 Sides and Columns
10501 \family default
10502 .
10503  They're not supported by the 
10504 \family sans
10505 Slides
10506 \family default
10507  class,
10508  anyways.
10509 \end_layout
10510
10511 \begin_layout Itemize
10512 The option 
10513 \family sans
10514 Page
10515 \begin_inset space ~
10516 \end_inset
10517
10518 style
10519 \family default
10520  behaves a bit differently for this class.
10521  The possible choices and what they do are as follows:
10522 \end_layout
10523
10524 \begin_deeper
10525 \begin_layout Description
10526
10527 \family sans
10528 plain
10529 \family default
10530  The final output contains page numbers in the lower right corner.
10531 \end_layout
10532
10533 \begin_layout Description
10534
10535 \family sans
10536 headings
10537 \family default
10538  Like 
10539 \family sans
10540 plain
10541 \family default
10542 ,
10543  but also prints out any time markers you've put in.
10544  This is the default.
10545 \end_layout
10546
10547 \begin_layout Description
10548
10549 \family sans
10550 empty
10551 \family default
10552  The final output contains no page numbers,
10553  time markers,
10554  or alignment markers.
10555 \end_layout
10556
10557 \end_deeper
10558 \begin_layout Itemize
10559 The 
10560 \family sans
10561 Slides
10562 \family default
10563  class has an extra option:
10564  
10565 \family typewriter
10566 clock
10567 \family default
10568 .
10569  To use it,
10570  put 
10571 \begin_inset Quotes eld
10572 \end_inset
10573
10574
10575 \family typewriter
10576 clock
10577 \family default
10578
10579 \begin_inset Quotes erd
10580 \end_inset
10581
10582  in the extra class options.
10583 \end_layout
10584
10585 \begin_deeper
10586 \begin_layout Standard
10587 Using this options allows you to add time markers to 
10588 \family sans
10589 Note
10590 \family default
10591 s.
10592  See section
10593 \begin_inset space ~
10594 \end_inset
10595
10596
10597 \begin_inset CommandInset ref
10598 LatexCommand ref
10599 reference "sec:slideNote"
10600 nolink "false"
10601
10602 \end_inset
10603
10604  for more details.
10605 \end_layout
10606
10607 \end_deeper
10608 \begin_layout Standard
10609 You can also use the template file to automatically set up a document to use the 
10610 \family sans
10611 slides
10612 \family default
10613  class using 
10614 \family sans
10615 File\SpecialChar menuseparator
10616 New
10617 \begin_inset space ~
10618 \end_inset
10619
10620 from
10621 \begin_inset space ~
10622 \end_inset
10623
10624 Template\SpecialChar menuseparator
10625 Presentations\SpecialChar menuseparator
10626 Slides
10627 \family default
10628  to open your new document.
10629  The template file also contains some examples of the special paragraph environments used by this class.
10630  I'll describe those next.
10631 \end_layout
10632
10633 \begin_layout Subsubsection
10634 Paragraph Environments
10635 \end_layout
10636
10637 \begin_layout Paragraph
10638 Supported Environments
10639 \end_layout
10640
10641 \begin_layout Standard
10642 The first thing you'll notice when you start up a new 
10643 \family sans
10644 Slides
10645 \family default
10646  document is the font size and type:
10647  it's the equivalent of the size 
10648 \begin_inset Quotes eld
10649 \end_inset
10650
10651
10652 \family sans
10653 Largest
10654 \family default
10655
10656 \begin_inset Quotes erd
10657 \end_inset
10658
10659  in the 
10660 \family sans
10661 Sans
10662 \begin_inset space ~
10663 \end_inset
10664
10665 Serif
10666 \family default
10667  font.
10668  This is also what's used in the output.
10669  Think of this as a 
10670 \begin_inset Quotes eld
10671 \end_inset
10672
10673 visual cue
10674 \begin_inset Quotes erd
10675 \end_inset
10676
10677  to remind you that this is a slide.
10678  Your final slides will use a larger font;
10679  ergo,
10680  you'll have less space.
10681  Of course,
10682  the larger default screen font isn't WYSIWYG,
10683  only a reminder.
10684 \end_layout
10685
10686 \begin_layout Standard
10687 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
10688  Most of the paragraph environments you're used to seeing are missing.
10689  There are also five new ones.
10690  That's because the 
10691 \family sans
10692 Slides
10693 \family default
10694  class itself only supports certain paragraph environments:
10695 \end_layout
10696
10697 \begin_layout Standard
10698
10699 \family sans
10700 \begin_inset Flex Multiple Columns
10701 status open
10702
10703 \begin_layout Itemize
10704
10705 \family sans
10706 Standard
10707 \end_layout
10708
10709 \begin_layout Itemize
10710
10711 \family sans
10712 Itemize
10713 \end_layout
10714
10715 \begin_layout Itemize
10716
10717 \family sans
10718 Enumerate
10719 \end_layout
10720
10721 \begin_layout Itemize
10722
10723 \family sans
10724 Description
10725 \end_layout
10726
10727 \begin_layout Itemize
10728
10729 \family sans
10730 List
10731 \end_layout
10732
10733 \begin_layout Itemize
10734
10735 \family sans
10736 Quotation
10737 \end_layout
10738
10739 \begin_layout Itemize
10740
10741 \family sans
10742 Quote
10743 \end_layout
10744
10745 \begin_layout Itemize
10746
10747 \family sans
10748 Verse
10749 \end_layout
10750
10751 \begin_layout Itemize
10752
10753 \family sans
10754 Caption
10755 \end_layout
10756
10757 \begin_layout Itemize
10758
10759 \family sans
10760 \SpecialChar LyX
10761 -Code
10762 \end_layout
10763
10764 \end_inset
10765
10766
10767 \end_layout
10768
10769 \begin_layout Standard
10770 All of the other standard environments,
10771  including the section-heading environments,
10772  aren't used in the 
10773 \family sans
10774 Slides
10775 \family default
10776  class.
10777 \end_layout
10778
10779 \begin_layout Standard
10780 On the other hand,
10781  you'll notice the following new environments:
10782 \end_layout
10783
10784 \begin_layout Standard
10785
10786 \family sans
10787 \begin_inset Flex Multiple Columns
10788 status open
10789
10790 \begin_layout Itemize
10791
10792 \family sans
10793 Slide
10794 \end_layout
10795
10796 \begin_layout Itemize
10797
10798 \family sans
10799 Overlay
10800 \end_layout
10801
10802 \begin_layout Itemize
10803
10804 \family sans
10805 Note
10806 \end_layout
10807
10808 \begin_layout Itemize
10809
10810 \family sans
10811 InvisibleText
10812 \end_layout
10813
10814 \begin_layout Itemize
10815
10816 \family sans
10817 VisibleText
10818 \end_layout
10819
10820 \begin_deeper
10821 \begin_layout Plain Layout
10822 \begin_inset space ~
10823 \end_inset
10824
10825
10826 \end_layout
10827
10828 \end_deeper
10829 \end_inset
10830
10831
10832 \end_layout
10833
10834 \begin_layout Standard
10835 These five are kind of quirky,
10836  due to a 
10837 \begin_inset Quotes eld
10838 \end_inset
10839
10840 feature
10841 \begin_inset Quotes erd
10842 \end_inset
10843
10844  in \SpecialChar LyX
10845 .
10846  You see,
10847  \SpecialChar LyX
10848  doesn't permit you to nest any other paragraph environment into an empty environment.
10849  Now,
10850  that's fine and dandy,
10851  but it means that you wouldn't be able to start a slide with anything except plain text.
10852  To deal with this,
10853  I've performed a little 
10854 \begin_inset Quotes eld
10855 \end_inset
10856
10857 \SpecialChar LaTeX
10858  magic.
10859 \begin_inset Quotes erd
10860 \end_inset
10861
10862  
10863 \end_layout
10864
10865 \begin_layout Paragraph
10866 Quirks of the New Environments
10867 \begin_inset CommandInset label
10868 LatexCommand label
10869 name "sec:slideQuirk"
10870
10871 \end_inset
10872
10873
10874 \end_layout
10875
10876 \begin_layout Standard
10877 All five of the new paragraph environments are somewhat quirky due to inherent limitiations in the current version of \SpecialChar LyX
10878 .
10879  As I just mentioned,
10880  \SpecialChar LyX
10881  forbids environments that begin with another environment.
10882  To get around this,
10883  the 
10884 \family sans
10885 Slide
10886 \family default
10887  environment isn't a paragraph environment as described in the 
10888 \emph on
10889 User's Guide
10890 \emph default
10891 .
10892  
10893 \end_layout
10894
10895 \begin_layout Standard
10896 You should consider 
10897 \family sans
10898 Slide
10899 \family default
10900 ,
10901  
10902 \family sans
10903 Overlay
10904 \family default
10905 ,
10906  and 
10907 \family sans
10908 Note
10909 \family default
10910  to be 
10911 \begin_inset Quotes eld
10912 \end_inset
10913
10914 pseudo-environments.
10915 \begin_inset Quotes erd
10916 \end_inset
10917
10918  They look like a section heading or a 
10919 \begin_inset Quotes eld
10920 \end_inset
10921
10922
10923 \family sans
10924 Caption
10925 \family default
10926 ,
10927 \begin_inset Quotes erd
10928 \end_inset
10929
10930  but really begin a [and,
10931  if necessary,
10932  end the previous] paragraph environment.
10933  Likewise,
10934  treat 
10935 \family sans
10936 InvisibleText
10937 \family default
10938  and 
10939 \family sans
10940 VisibleText
10941 \family default
10942  as 
10943 \begin_inset Quotes eld
10944 \end_inset
10945
10946 pseudo-commands.
10947 \begin_inset Quotes erd
10948 \end_inset
10949
10950  These two perform some action.
10951 \end_layout
10952
10953 \begin_layout Standard
10954 A common feature of all five environments,
10955  
10956 \family sans
10957 Slide
10958 \family default
10959 ,
10960  
10961 \family sans
10962 Overlay
10963 \family default
10964 ,
10965  
10966 \family sans
10967 Note
10968 \family default
10969 ,
10970  
10971 \family sans
10972 InvisibleText
10973 \family default
10974  and 
10975 \family sans
10976 VisibleText
10977 \family default
10978 ,
10979  is a rather long-ish label.
10980  The text following this label —
10981  ordinarily the contents of the paragraph environment —
10982  is utterly irrelevant for 
10983 \family sans
10984 Slide
10985 \family default
10986 ,
10987  
10988 \family sans
10989 Overlay
10990 \family default
10991 ,
10992  
10993 \family sans
10994 Note
10995 \family default
10996 ,
10997  
10998 \family sans
10999 InvisibleText
11000 \family default
11001  and 
11002 \family sans
11003 VisibleText
11004 \family default
11005 .
11006  \SpecialChar LyX
11007  completely ignores it.
11008  In fact,
11009  you can leave these five environments completely empty.
11010  
11011 \end_layout
11012
11013 \begin_layout Standard
11014 While you don't 
11015 \emph on
11016 have
11017 \emph default
11018  to put any text after the rather long-ish label,
11019  you might want to.
11020  This could be a short description of the contents of the 
11021 \family sans
11022 Slide
11023 \family default
11024 ,
11025  for example.
11026  In that case,
11027  enter your descriptive comment and hit 
11028 \family sans
11029 Return
11030 \family default
11031  as you normally would.
11032 \end_layout
11033
11034 \begin_layout Subsubsection
11035 Making a Presentation with 
11036 \family sans
11037 Slide
11038 \family default
11039 ,
11040  
11041 \family sans
11042 Overlay
11043 \family default
11044  and 
11045 \family sans
11046 Note
11047 \end_layout
11048
11049 \begin_layout Paragraph
11050 Using the 
11051 \family sans
11052 Slide
11053 \family default
11054  Environment
11055 \end_layout
11056
11057 \begin_layout Standard
11058 If you're expecting this section to teach you how to actually make a presentation,
11059  you'll be sorely disappointed.
11060  Naturally,
11061  I'll describe all of the ways the 
11062 \family sans
11063 Slides
11064 \family default
11065  class can assist you in preparing the materials for a presentation.
11066  Filling in the contents,
11067  however,
11068  is up to you.
11069  [Then again,
11070  that 
11071 \emph on
11072 is
11073 \emph default
11074  the \SpecialChar LyX
11075  philosophy.]
11076 \end_layout
11077
11078 \begin_layout Standard
11079 Choosing the 
11080 \family sans
11081 Slide
11082 \family default
11083  environment [in the manner described in section
11084 \begin_inset space ~
11085 \end_inset
11086
11087
11088 \begin_inset CommandInset ref
11089 LatexCommand ref
11090 reference "sec:slideQuirk"
11091 nolink "false"
11092
11093 \end_inset
11094
11095 ] tells \SpecialChar LyX
11096  to begin a new slide [duh].
11097  The label for this environment/
11098 \begin_inset Quotes eld
11099 \end_inset
11100
11101 pseudo-command
11102 \begin_inset Quotes erd
11103 \end_inset
11104
11105  is an 
11106 \begin_inset Quotes eld
11107 \end_inset
11108
11109 ASCII line,
11110 \begin_inset Quotes erd
11111 \end_inset
11112
11113  in cool blue,
11114  followed by the label,
11115  
11116 \begin_inset Quotes eld
11117 \end_inset
11118
11119 NewSlide:
11120 \begin_inset Quotes erd
11121 \end_inset
11122
11123 .
11124  Any text or paragraph environments that follow this one go on the new slide.
11125  It's that simple.
11126 \end_layout
11127
11128 \begin_layout Standard
11129 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11130  (this can be specified in the 
11131 \family sans
11132 Paragraph Layout
11133 \family default
11134  dialog).
11135  In fact,
11136  you'll want to,
11137  once you finish entering the contents of one slide.
11138  If you've entered more text than can physically fit on a slide,
11139  the extra overflows onto a new slide.
11140  I don't recommend doing this,
11141  however,
11142  since the overflow slide won't have any page number on it.
11143  Furthermore,
11144  it may interfere with any 
11145 \family sans
11146 Overlay
11147 \family default
11148  you've made to accompany the oversized 
11149 \family sans
11150 Slide
11151 \family default
11152 .
11153 \end_layout
11154
11155 \begin_layout Standard
11156 The 
11157 \family sans
11158 Overlay
11159 \family default
11160  and 
11161 \family sans
11162 Note
11163 \family default
11164  environments work the same way as the 
11165 \family sans
11166 Slide
11167 \family default
11168  environment.
11169  They both create an 
11170 \begin_inset Quotes eld
11171 \end_inset
11172
11173 ASCII line
11174 \begin_inset Quotes erd
11175 \end_inset
11176
11177  followed by a label [
11178 \begin_inset Quotes eld
11179 \end_inset
11180
11181 NewOverlay:
11182 \begin_inset Quotes erd
11183 \end_inset
11184
11185  and 
11186 \begin_inset Quotes eld
11187 \end_inset
11188
11189 NewNote:
11190 \begin_inset Quotes erd
11191 \end_inset
11192
11193 ,
11194  respectively].
11195  The color is a stunning magenta instead of blue,
11196  and the 
11197 \begin_inset Quotes eld
11198 \end_inset
11199
11200 ASCII line
11201 \begin_inset Quotes erd
11202 \end_inset
11203
11204  will look different,
11205  in style and in length.
11206  The label fonts of all three also differ from one another.
11207 \end_layout
11208
11209 \begin_layout Standard
11210 As with a 
11211 \family sans
11212 Slide
11213 \family default
11214 ,
11215  if the contents of a 
11216 \family sans
11217 Note
11218 \family default
11219  or 
11220 \family sans
11221 Overlay
11222 \family default
11223  exceed the physical size of a slide or sheet of paper,
11224  the extra will overflow onto a new sheet.
11225  Again,
11226  you should avoid this.
11227  It defeats the whole purpose of 
11228 \family sans
11229 Note
11230 \family default
11231 s and 
11232 \family sans
11233 Overlay
11234 \family default
11235 s.
11236 \end_layout
11237
11238 \begin_layout Paragraph
11239 Using 
11240 \family sans
11241 Overlay
11242 \family default
11243  with 
11244 \family sans
11245 Slide
11246 \end_layout
11247
11248 \begin_layout Standard
11249 The idea behind an 
11250 \family sans
11251 Overlay
11252 \family default
11253  is a slide that sits atop another slide.
11254  Perhaps you wish to discuss a figure on the main 
11255 \family sans
11256 Slide
11257 \family default
11258  before displaying the text associated with it.
11259  One way to accomplish this is tape a flap of dark paper over the part of the 
11260 \family sans
11261 Slide
11262 \family default
11263  you want to display later.
11264  This method fails,
11265  however,
11266  if you wish to overlap one graph with another,
11267  for example.
11268  You would then have to fumble while speaking to align the two separate,
11269  overlapping 
11270 \family sans
11271 Slide
11272 \family default
11273 s to align the two graphs.
11274  The use of an 
11275 \family sans
11276 Overlay
11277 \family default
11278  environment in both cases makes life much easier.
11279 \end_layout
11280
11281 \begin_layout Standard
11282 Each 
11283 \family sans
11284 Overlay
11285 \family default
11286  receives the page number of its 
11287 \begin_inset Quotes eld
11288 \end_inset
11289
11290 parent
11291 \begin_inset Quotes erd
11292 \end_inset
11293
11294  
11295 \family sans
11296 Slide
11297 \family default
11298 ,
11299  appended by 
11300 \begin_inset Quotes eld
11301 \end_inset
11302
11303
11304 \family typewriter
11305 -a
11306 \family default
11307
11308 \begin_inset Quotes erd
11309 \end_inset
11310
11311 .
11312 \begin_inset Foot
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 Presumably,
11317  mutliple 
11318 \family sans
11319 Overlay
11320 \family default
11321 s would have 
11322 \begin_inset Quotes eld
11323 \end_inset
11324
11325
11326 \family typewriter
11327 -a
11328 \family default
11329
11330 \begin_inset Quotes erd
11331 \end_inset
11332
11333 ,
11334  
11335 \begin_inset Quotes eld
11336 \end_inset
11337
11338
11339 \family typewriter
11340 -b
11341 \family default
11342
11343 \begin_inset Quotes erd
11344 \end_inset
11345
11346 ,
11347  
11348 \begin_inset Quotes eld
11349 \end_inset
11350
11351
11352 \family typewriter
11353 -c
11354 \family default
11355
11356 \begin_inset Quotes erd
11357 \end_inset
11358
11359 ,
11360  etc.
11361 \begin_inset space ~
11362 \end_inset
11363
11364 appended to the page number of the parent 
11365 \family sans
11366 Slide
11367 \family default
11368 .
11369  
11370 \end_layout
11371
11372 \end_inset
11373
11374  Clearly,
11375  you want the contents of both the 
11376 \family sans
11377 Slide
11378 \family default
11379  and the 
11380 \family sans
11381 Overlay
11382 \family default
11383  to each fit on a single physical slide!
11384  You should probably consider an 
11385 \family sans
11386 Overlay
11387 \family default
11388  as 
11389 \begin_inset Quotes eld
11390 \end_inset
11391
11392 part of
11393 \begin_inset Quotes erd
11394 \end_inset
11395
11396  a 
11397 \family sans
11398 Slide
11399 \family default
11400 .
11401  Indeed,
11402  the \SpecialChar LyX
11403  
11404 \family sans
11405 slides
11406 \family default
11407  class provides a visual cue for this:
11408  the label at the start of an 
11409 \family sans
11410 Overlay
11411 \family default
11412  is shorter than that at the start of a 
11413 \family sans
11414 Slide
11415 \family default
11416 .
11417  Lastly,
11418  when you generate printable output,
11419  you'll find alignment markers in all four corners of both the 
11420 \family sans
11421 Overlay
11422 \family default
11423  page and its parent 
11424 \family sans
11425 Slide
11426 \family default
11427 .
11428  These will assist you in lining up the two physical slides.
11429 \end_layout
11430
11431 \begin_layout Standard
11432 The major problem in overlaying two slides is aligning the contents of the two transparencies.
11433  How much space should you leave for that graph on the second slide?
11434  Worse still,
11435  what if you want a graph and a sentence on second slide,
11436  but there is text on the main transparency that goes in between them?
11437  You could try and insert vertical space of the right size.
11438  The better way is to use 
11439 \family sans
11440 InvisibleText
11441 \family default
11442  and 
11443 \family sans
11444 VisibleText
11445 \family default
11446 .
11447 \end_layout
11448
11449 \begin_layout Standard
11450 As their names imply,
11451  
11452 \family sans
11453 InvisibleText
11454 \family default
11455  and 
11456 \family sans
11457 VisibleText
11458 \family default
11459  are two command-like paragraph environments that make all subsequent text invisible and visible,
11460  respectively.
11461  Note from section
11462 \begin_inset space ~
11463 \end_inset
11464
11465
11466 \begin_inset CommandInset ref
11467 LatexCommand ref
11468 reference "sec:slideQuirk"
11469 nolink "false"
11470
11471 \end_inset
11472
11473  that you don't place anything 
11474 \emph on
11475 into
11476 \emph default
11477  these two environments,
11478  however.
11479  When you create an 
11480 \family sans
11481 InvisibleText
11482 \family default
11483 ,
11484  it inserts a centered,
11485  sky-blue label into the page reading 
11486 \begin_inset Quotes eld
11487 \end_inset
11488
11489 <Invisible Text Follows>
11490 \begin_inset Quotes erd
11491 \end_inset
11492
11493 .
11494  For paragraphs following this label,
11495  the parts of the 
11496 \family sans
11497 Slide
11498 \family default
11499  [or 
11500 \family sans
11501 Overlay
11502 \family default
11503 ;
11504  it doesn't matter which] where they would be contain instead blank space.
11505  
11506 \end_layout
11507
11508 \begin_layout Standard
11509 For 
11510 \family sans
11511 VisibleText
11512 \family default
11513 ,
11514  the corresponding centered label is 
11515 \begin_inset Quotes eld
11516 \end_inset
11517
11518 <Visible Text Follows>
11519 \begin_inset Quotes erd
11520 \end_inset
11521
11522  in blazing green.
11523  Paragraphs following this label behave normally.
11524  Note that the beginning of a new 
11525 \family sans
11526 Slide
11527 \family default
11528 ,
11529  
11530 \family sans
11531 Overlay
11532 \family default
11533 ,
11534  or 
11535 \family sans
11536 Note
11537 \family default
11538  automatically shuts off an 
11539 \family sans
11540 InvisibleText
11541 \family default
11542 .
11543  It's therefore not necessary to use 
11544 \family sans
11545 VisibleText
11546 \family default
11547  at the end of a 
11548 \family sans
11549 Slide
11550 \family default
11551 .
11552 \end_layout
11553
11554 \begin_layout Standard
11555 By now,
11556  it should be obvious how to create overlay transparencies using the proper combination of 
11557 \family sans
11558 InvisibleText
11559 \family default
11560  and 
11561 \family sans
11562 VisibleText
11563 \family default
11564  on a 
11565 \family sans
11566 Slide
11567 \family default
11568  and 
11569 \family sans
11570 Overlay
11571 \family default
11572 :
11573 \end_layout
11574
11575 \begin_layout Enumerate
11576 Create a 
11577 \family sans
11578 Slide
11579 \family default
11580 ,
11581  including everything that will appear on it,
11582  whether on the main slide or on the 
11583 \family sans
11584 Overlay
11585 \family default
11586 .
11587 \end_layout
11588
11589 \begin_layout Enumerate
11590 Before each figure or paragraph that will appear only on the 
11591 \family sans
11592 Overlay
11593 \family default
11594 ,
11595  insert an 
11596 \family sans
11597 InvisibleText
11598 \family default
11599  environment.
11600  If necessary,
11601  insert a 
11602 \family sans
11603 VisibleText
11604 \family default
11605  environment after the 
11606 \family sans
11607 Overlay
11608 \family default
11609 -only text.
11610 \end_layout
11611
11612 \begin_layout Enumerate
11613 Start an 
11614 \family sans
11615 Overlay
11616 \family default
11617  immediately following the 
11618 \family sans
11619 Slide
11620 \family default
11621 .
11622 \end_layout
11623
11624 \begin_layout Enumerate
11625 Copy the contents of this 
11626 \family sans
11627 Slide
11628 \family default
11629  into the 
11630 \family sans
11631 Overlay
11632 \family default
11633 .
11634 \end_layout
11635
11636 \begin_layout Enumerate
11637 Within the 
11638 \family sans
11639 Overlay
11640 \family default
11641 ,
11642  change all of the 
11643 \family sans
11644 InvisibleText
11645 \family default
11646  lines to 
11647 \family sans
11648 VisibleText
11649 \family default
11650  and vice-versa.
11651 \end_layout
11652
11653 \begin_layout Standard
11654 That's it.
11655  You've just made an 
11656 \family sans
11657 Overlay
11658 \family default
11659 .
11660 \end_layout
11661
11662 \begin_layout Standard
11663 There's one problem with the way I've designed the \SpecialChar LyX
11664  
11665 \family sans
11666 slides
11667 \family default
11668  class:
11669  you can't make text in the middle of a paragraph invisible,
11670  nor make text in the middle of an invisible paragraph visible again.
11671  To accomplish this feat,
11672  you'll need to use some inlined \SpecialChar LaTeX
11673  codes.
11674 \begin_inset Foot
11675 status collapsed
11676
11677 \begin_layout Plain Layout
11678 The commands of interest are:
11679  
11680 \end_layout
11681
11682 \begin_layout Itemize
11683
11684 \family typewriter
11685 {
11686 \backslash
11687 invisible \SpecialChar ldots
11688  }
11689 \end_layout
11690
11691 \begin_layout Itemize
11692
11693 \family typewriter
11694 {
11695 \backslash
11696 visible \SpecialChar ldots
11697  }
11698 \end_layout
11699
11700 \begin_layout Plain Layout
11701 \SpecialChar ldots
11702 and need to be marked as \SpecialChar TeX
11703 .
11704  The text whose 
11705 \begin_inset Quotes eld
11706 \end_inset
11707
11708 visibility
11709 \begin_inset Quotes erd
11710 \end_inset
11711
11712  you wish to change goes in between the brackets [and after the 
11713 \family typewriter
11714
11715 \backslash
11716 invisible
11717 \family default
11718  or 
11719 \family typewriter
11720
11721 \backslash
11722 visible
11723 \family default
11724  command].
11725  If you don't know how to mark text as \SpecialChar TeX
11726 ,
11727  see the appropriate section of the 
11728 \emph on
11729 User's Guide
11730 \emph default
11731 .
11732 \end_layout
11733
11734 \end_inset
11735
11736
11737 \end_layout
11738
11739 \begin_layout Paragraph
11740 Using 
11741 \family sans
11742 Note
11743 \family default
11744  with 
11745 \family sans
11746 Slide
11747 \family default
11748
11749 \begin_inset CommandInset label
11750 LatexCommand label
11751 name "sec:slideNote"
11752
11753 \end_inset
11754
11755
11756 \end_layout
11757
11758 \begin_layout Standard
11759 Like an 
11760 \family sans
11761 Overlay
11762 \family default
11763 ,
11764  a 
11765 \family sans
11766 Note
11767 \family default
11768  is associated with a 
11769 \begin_inset Quotes eld
11770 \end_inset
11771
11772 parent
11773 \begin_inset Quotes erd
11774 \end_inset
11775
11776  
11777 \family sans
11778 Slide
11779 \family default
11780 .
11781  Here,
11782  too,
11783  the \SpecialChar LyX
11784  
11785 \family sans
11786 slides
11787 \family default
11788  class provides visual cues.
11789  The label for a 
11790 \family sans
11791 Note
11792 \family default
11793  is shorter than that of a 
11794 \family sans
11795 Slide
11796 \family default
11797  [yet longer than that of an 
11798 \family sans
11799 Overlay
11800 \family default
11801 ] and,
11802  like the label of an 
11803 \family sans
11804 Overlay
11805 \family default
11806  is shockingly magenta.
11807  Additionally,
11808  the printed 
11809 \family sans
11810 Note
11811 \family default
11812  has the page number of its 
11813 \begin_inset Quotes eld
11814 \end_inset
11815
11816 parent
11817 \begin_inset Quotes erd
11818 \end_inset
11819
11820  
11821 \family sans
11822 Slide
11823 \family default
11824 ,
11825  appended by 
11826 \begin_inset Quotes eld
11827 \end_inset
11828
11829
11830 \family typewriter
11831 -
11832 \family default
11833 1
11834 \begin_inset Quotes erd
11835 \end_inset
11836
11837 ,
11838  
11839 \begin_inset Quotes eld
11840 \end_inset
11841
11842
11843 \family typewriter
11844 -
11845 \family default
11846 2
11847 \begin_inset Quotes erd
11848 \end_inset
11849
11850 ,
11851  
11852 \begin_inset Quotes eld
11853 \end_inset
11854
11855
11856 \family typewriter
11857 -
11858 \family default
11859 3
11860 \begin_inset Quotes erd
11861 \end_inset
11862
11863 ,
11864  etc.
11865  You can have multiple 
11866 \family sans
11867 Note
11868 \family default
11869 s associated with a single 
11870 \family sans
11871 Slide
11872 \family default
11873 ,
11874  and,
11875  as with 
11876 \family sans
11877 Slide
11878 \family default
11879  and 
11880 \family sans
11881 Overlay
11882 \family default
11883 ,
11884  you'll probably want to break up long 
11885 \family sans
11886 Note
11887 \family default
11888 s so that they fit on a single sheet of paper.
11889 \end_layout
11890
11891 \begin_layout Standard
11892 The purpose of a 
11893 \family sans
11894 Note
11895 \family default
11896  is obvious:
11897  it contains anything additional you might want to say about a 
11898 \family sans
11899 Slide
11900 \family default
11901 .
11902  It could also be used as a sheet of reminders for a particular 
11903 \family sans
11904 Slide
11905 \family default
11906 .
11907  In the case of the latter,
11908  you might want to make use of time markers.
11909  Currently,
11910  the \SpecialChar LyX
11911  
11912 \family sans
11913 slides
11914 \family default
11915  class has no 
11916 \begin_inset Quotes eld
11917 \end_inset
11918
11919 native
11920 \begin_inset Quotes erd
11921 \end_inset
11922
11923  support for time markers,
11924  a 
11925 \noun on
11926 Sli\SpecialChar TeX
11927
11928 \noun default
11929  feature.
11930  So,
11931  you'll have to resort to using the \SpecialChar LaTeX
11932  codes.
11933 \end_layout
11934
11935 \begin_layout Standard
11936 To use time markers,
11937  you'll need to specify the extra class option 
11938 \begin_inset Quotes eld
11939 \end_inset
11940
11941
11942 \family typewriter
11943 clock
11944 \family default
11945
11946 \begin_inset Quotes erd
11947 \end_inset
11948
11949  [see section
11950 \begin_inset space ~
11951 \end_inset
11952
11953
11954 \begin_inset CommandInset ref
11955 LatexCommand ref
11956 reference "sec:slidesetup"
11957 nolink "false"
11958
11959 \end_inset
11960
11961 ].
11962  This option turns on timing marks,
11963  which will appear in the lower-left-hand corner of every 
11964 \family sans
11965 Note
11966 \family default
11967  you generate.
11968  To set what appears in the time marker,
11969  you use the \SpecialChar LaTeX
11970  commands 
11971 \begin_inset Quotes eld
11972 \end_inset
11973
11974
11975 \family typewriter
11976
11977 \backslash
11978 settime{}
11979 \family default
11980
11981 \begin_inset Quotes erd
11982 \end_inset
11983
11984  and 
11985 \begin_inset Quotes eld
11986 \end_inset
11987
11988
11989 \family typewriter
11990
11991 \backslash
11992 addtime{}
11993 \family default
11994
11995 \begin_inset Quotes erd
11996 \end_inset
11997
11998 .
11999  The arguments of both commands are time measured in seconds.
12000  
12001 \begin_inset Quotes eld
12002 \end_inset
12003
12004
12005 \family typewriter
12006
12007 \backslash
12008 settime{}
12009 \family default
12010
12011 \begin_inset Quotes erd
12012 \end_inset
12013
12014  sets the time marker to a given time.
12015  
12016 \begin_inset Quotes eld
12017 \end_inset
12018
12019
12020 \family typewriter
12021
12022 \backslash
12023 addtime{}
12024 \family default
12025
12026 \begin_inset Quotes erd
12027 \end_inset
12028
12029  increments the time marker by the specified amount.
12030  Using time markers and 
12031 \family sans
12032 Note
12033 \family default
12034 s in this fashion,
12035  you can remind yourself how much time to spend on a particular 
12036 \family sans
12037 Slide
12038 \family default
12039 .
12040 \end_layout
12041
12042 \begin_layout Standard
12043 There's one last feature to describe.
12044  Clearly,
12045  you'd like to print out all of your 
12046 \family sans
12047 Slide
12048 \family default
12049 s and 
12050 \family sans
12051 Overlay
12052 \family default
12053 s on transparencies while printing all of your 
12054 \family sans
12055 Note
12056 \family default
12057 s on plain paper.
12058  However,
12059  a 
12060 \family sans
12061 Note
12062 \family default
12063  
12064 \emph on
12065 must
12066 \emph default
12067  follow the 
12068 \family sans
12069 Slide
12070 \family default
12071  with which it is associated.
12072  What's a person to do?
12073 \end_layout
12074
12075 \begin_layout Standard
12076 Luckily,
12077  there are two \SpecialChar LaTeX
12078  commands that allow you to select what to print out.
12079  Both must be placed into the preamble of your document.
12080  The command 
12081 \begin_inset Quotes eld
12082 \end_inset
12083
12084
12085 \family typewriter
12086
12087 \backslash
12088 onlyslides{
12089 \backslash
12090 slides}
12091 \family default
12092
12093 \begin_inset Quotes erd
12094 \end_inset
12095
12096  will cause the output to contain only the 
12097 \family sans
12098 Slide
12099 \family default
12100 s and 
12101 \family sans
12102 Overlay
12103 \family default
12104 s.
12105  Correspondingly,
12106  the command 
12107 \begin_inset Quotes eld
12108 \end_inset
12109
12110
12111 \family typewriter
12112
12113 \backslash
12114 onlynotes{
12115 \backslash
12116 notes}
12117 \family default
12118
12119 \begin_inset Quotes erd
12120 \end_inset
12121
12122  prevents the output of anything but 
12123 \family sans
12124 Note
12125 \family default
12126 s.
12127  I'd advise placing both commands in the preamble and initially comment both out.
12128  You can then preview your entire presentation as you write.
12129  When you're done writing,
12130  you can then uncomment one of the two to select what you want to print.
12131  I like to uncomment 
12132 \begin_inset Quotes eld
12133 \end_inset
12134
12135
12136 \family typewriter
12137
12138 \backslash
12139 onlyslides{
12140 \backslash
12141 slides}
12142 \family default
12143
12144 \begin_inset Quotes erd
12145 \end_inset
12146
12147  ,
12148  print to a file with 
12149 \begin_inset Quotes eld
12150 \end_inset
12151
12152
12153 \family typewriter
12154 -slides
12155 \family default
12156
12157 \begin_inset Quotes erd
12158 \end_inset
12159
12160  in its name,
12161  comment it back out,
12162  then uncomment 
12163 \begin_inset Quotes eld
12164 \end_inset
12165
12166
12167 \family typewriter
12168
12169 \backslash
12170 onlynotes{
12171 \backslash
12172 notes}
12173 \family default
12174
12175 \begin_inset Quotes erd
12176 \end_inset
12177
12178  and print to a 
12179 \begin_inset Quotes eld
12180 \end_inset
12181
12182
12183 \family typewriter
12184 *-notes.ps
12185 \family default
12186
12187 \begin_inset Quotes erd
12188 \end_inset
12189
12190  file.
12191  I can then send either file to a printer,
12192  loading transparencies or plain paper as appropriate.
12193 \end_layout
12194
12195 \begin_layout Standard
12196 You can also provide other arguments to the 
12197 \begin_inset Quotes eld
12198 \end_inset
12199
12200
12201 \family typewriter
12202
12203 \backslash
12204 onlyslides{}
12205 \family default
12206
12207 \begin_inset Quotes erd
12208 \end_inset
12209
12210  and 
12211 \begin_inset Quotes eld
12212 \end_inset
12213
12214
12215 \family typewriter
12216
12217 \backslash
12218 onlynotes{}
12219 \family default
12220
12221 \begin_inset Quotes erd
12222 \end_inset
12223
12224  commands.
12225  See a good \SpecialChar LaTeX
12226  book for details.
12227 \end_layout
12228
12229 \begin_layout Subsubsection
12230 The 
12231 \family sans
12232 slides
12233 \family default
12234  Class Template File
12235 \end_layout
12236
12237 \begin_layout Standard
12238 I have also provided a template file with the 
12239 \family sans
12240 slides
12241 \family default
12242  class.
12243  To use it,
12244  begin your new presentation with 
12245 \family sans
12246 File\SpecialChar menuseparator
12247 New
12248 \begin_inset space ~
12249 \end_inset
12250
12251 from
12252 \begin_inset space ~
12253 \end_inset
12254
12255 Template\SpecialChar menuseparator
12256 Presentations\SpecialChar menuseparator
12257 Slides
12258 \family default
12259 .
12260  Your new \SpecialChar LyX
12261  presentation file will contain an example 
12262 \family sans
12263 Slide
12264 \family default
12265  – 
12266 \family sans
12267 Overlay
12268 \family default
12269  – 
12270 \family sans
12271 Note
12272 \family default
12273  triplet.
12274  The 
12275 \family sans
12276 Slide
12277 \family default
12278  and 
12279 \family sans
12280 Overlay
12281 \family default
12282  additionally contain an example of the use of 
12283 \family sans
12284 InvisibleText
12285 \family default
12286  and 
12287 \family sans
12288 VisibleText
12289 \family default
12290 .
12291  Lastly,
12292  the preamble will contain:
12293 \end_layout
12294
12295 \begin_layout LyX-Code
12296 % Uncomment to print out only slides and overlays
12297 \end_layout
12298
12299 \begin_layout LyX-Code
12300 %
12301 \end_layout
12302
12303 \begin_layout LyX-Code
12304 %
12305 \backslash
12306 onlyslides{
12307 \backslash
12308 slides}
12309 \begin_inset Newline newline
12310 \end_inset
12311
12312  
12313 \end_layout
12314
12315 \begin_layout LyX-Code
12316 % Uncomment to print out only notes
12317 \end_layout
12318
12319 \begin_layout LyX-Code
12320 %
12321 \end_layout
12322
12323 \begin_layout LyX-Code
12324 %
12325 \backslash
12326 onlynotes{
12327 \backslash
12328 notes}
12329 \end_layout
12330
12331 \begin_layout Standard
12332 One final thing:
12333  I created this class to support the \SpecialChar LaTeX2e
12334  
12335 \begin_inset Quotes eld
12336 \end_inset
12337
12338
12339 \noun on
12340 Sli\SpecialChar TeX
12341
12342 \noun default
12343  emulation
12344 \begin_inset Quotes erd
12345 \end_inset
12346
12347  class,
12348  one of the built-in \SpecialChar LaTeX2e
12349  classes.
12350  Neither I nor the rest of the \SpecialChar LyX
12351  Team endorse or oppose the use of this built-in slide class.
12352  It's here if you want it or need it.
12353  There exist other \SpecialChar LaTeX2e
12354  classes for creating presentations,
12355  such 
12356 \family sans
12357 Foils
12358 \family default
12359  (see section
12360 \begin_inset space ~
12361 \end_inset
12362
12363
12364 \begin_inset CommandInset ref
12365 LatexCommand ref
12366 reference "sec:foiltex"
12367 nolink "false"
12368
12369 \end_inset
12370
12371 ) or 
12372 \family sans
12373 Seminar
12374 \family default
12375  (see section
12376 \begin_inset space ~
12377 \end_inset
12378
12379
12380 \begin_inset CommandInset ref
12381 LatexCommand ref
12382 reference "subsec:Seminar"
12383 plural "false"
12384 caps "false"
12385 noprefix "false"
12386 nolink "false"
12387
12388 \end_inset
12389
12390 ).
12391  Try them out to see what sort of alternative they provide.
12392 \end_layout
12393
12394 \begin_layout Section
12395 Reports
12396 \end_layout
12397
12398 \begin_layout Subsection
12399 report
12400 \end_layout
12401
12402 \begin_layout Standard
12403 Report classes are sort of a hybrid between book and article classes:
12404  like book classes,
12405  they provide parts,
12406  chapters and sections but does not provide frontmatter,
12407  mainmatter,
12408  and backmatter;
12409  like article classes,
12410  they provide abstract paragraph styles and are one-sided by default.
12411  Also,
12412  they do not start a new chapter on the right hand page (even in two-side mode).
12413 \end_layout
12414
12415 \begin_layout Standard
12416 All externally maintained 
12417 \family sans
12418 report
12419 \family default
12420  document classes that are officially supported by \SpecialChar LyX
12421  are described in the Collections (section
12422 \begin_inset space ~
12423 \end_inset
12424
12425
12426 \begin_inset CommandInset ref
12427 LatexCommand ref
12428 reference "sec:Collections"
12429 nolink "false"
12430
12431 \end_inset
12432
12433 ):
12434 \end_layout
12435
12436 \begin_layout Itemize
12437 For 
12438 \family sans
12439 Japanese Report (Standard Class,
12440  vertical Writing)
12441 \family default
12442  and 
12443 \family sans
12444 Japanese Report (Standard Class)
12445 \family default
12446 ,
12447  see section
12448 \begin_inset space ~
12449 \end_inset
12450
12451
12452 \begin_inset CommandInset ref
12453 LatexCommand ref
12454 reference "subsec:Japanese"
12455 nolink "false"
12456
12457 \end_inset
12458
12459 .
12460 \end_layout
12461
12462 \begin_layout Itemize
12463 For 
12464 \family sans
12465 KOMA-Script Report
12466 \family default
12467 ,
12468  see section
12469 \begin_inset space ~
12470 \end_inset
12471
12472
12473 \begin_inset CommandInset ref
12474 LatexCommand ref
12475 reference "subsec:KOMA-Script"
12476 nolink "false"
12477
12478 \end_inset
12479
12480 .
12481 \end_layout
12482
12483 \begin_layout Itemize
12484 For 
12485 \family sans
12486 Report (Standard Class with Extra Font Sizes)
12487 \family default
12488 ,
12489  see section
12490 \begin_inset space ~
12491 \end_inset
12492
12493
12494 \begin_inset CommandInset ref
12495 LatexCommand ref
12496 reference "subsec:Extra-font-sizes"
12497 nolink "false"
12498
12499 \end_inset
12500
12501 .
12502 \end_layout
12503
12504 \begin_layout Itemize
12505 For 
12506 \family sans
12507 Polish Report (MW Bundle)
12508 \family default
12509 ,
12510  see section
12511 \begin_inset space ~
12512 \end_inset
12513
12514
12515 \begin_inset CommandInset ref
12516 LatexCommand ref
12517 reference "subsec:Polish-M.W.collection"
12518 plural "false"
12519 caps "false"
12520 noprefix "false"
12521 nolink "false"
12522
12523 \end_inset
12524
12525 .
12526 \end_layout
12527
12528 \begin_layout Section
12529 Scripts
12530 \end_layout
12531
12532 \begin_layout Standard
12533 In the 
12534 \family sans
12535 Scripts
12536 \family default
12537  category,
12538  we assemble document classes that help to write drama or movie scripts.
12539  The category is also open for other scripts,
12540  such as lecture scripts,
12541  for which no classes are officially supported yet by \SpecialChar LyX
12542  though.
12543 \end_layout
12544
12545 \begin_layout Subsection
12546 Broadway
12547 \end_layout
12548
12549 \begin_layout Standard
12550 by 
12551 \shape smallcaps
12552 Garst Reese
12553 \end_layout
12554
12555 \begin_layout Subsubsection
12556 Introduction
12557 \end_layout
12558
12559 \begin_layout Standard
12560
12561 \family sans
12562 Broadway
12563 \family default
12564  is for writing plays.
12565  The format is more decorative than 
12566 \family sans
12567 Hollywood
12568 \family default
12569  (see sec.
12570 \begin_inset space ~
12571 \end_inset
12572
12573
12574 \begin_inset CommandInset ref
12575 LatexCommand ref
12576 reference "subsec:Hollywood"
12577
12578 \end_inset
12579
12580 ),
12581  and much less standardized.
12582  This format should be suitable for workshops.
12583 \end_layout
12584
12585 \begin_layout Subsubsection
12586 Special problems
12587 \end_layout
12588
12589 \begin_layout Standard
12590 The same as in 
12591 \family sans
12592 Hollywood
12593 \family default
12594  (see section
12595 \begin_inset space ~
12596 \end_inset
12597
12598
12599 \begin_inset CommandInset ref
12600 LatexCommand ref
12601 reference "subsec:Special-problems-Hollywood"
12602
12603 \end_inset
12604
12605 ).
12606 \end_layout
12607
12608 \begin_layout Subsubsection
12609 Special features
12610 \end_layout
12611
12612 \begin_layout Standard
12613 Insert the 
12614 \family sans
12615 Speaker
12616 \family default
12617  names as labels then cross-reference the label to insert the name.
12618  The cross-reference dialog will show the current cast of characters.
12619 \end_layout
12620
12621 \begin_layout Subsubsection
12622 Paper size and Margins
12623 \end_layout
12624
12625 \begin_layout Standard
12626 USLetter,
12627  left 1.6in,
12628  right 0.75in,
12629  top 0.5in,
12630  bottom 0.75in
12631 \end_layout
12632
12633 \begin_layout Subsubsection
12634 Environments
12635 \end_layout
12636
12637 \begin_layout Standard
12638 The following environments are available.
12639  You can use 
12640 \family typewriter
12641 broadway.bind
12642 \family default
12643  to get the bind keys shown at the right.
12644 \end_layout
12645
12646 \begin_layout Itemize
12647
12648 \family sans
12649 Standard
12650 \begin_inset Newline newline
12651 \end_inset
12652
12653
12654 \family default
12655 You should not have to use this,
12656  but it is here for anything that does not fit otherwise.
12657 \end_layout
12658
12659 \begin_layout Itemize
12660
12661 \family sans
12662 Narrative
12663 \begin_inset space \hfill{}
12664 \end_inset
12665
12666 M-z n
12667 \begin_inset Newline newline
12668 \end_inset
12669
12670
12671 \family default
12672 Used to describe stage setting and the action.
12673  First use of speaker names in all CAPs.
12674 \end_layout
12675
12676 \begin_layout Itemize
12677
12678 \family sans
12679 ACT
12680 \begin_inset space \hfill{}
12681 \end_inset
12682
12683 M-z a
12684 \begin_inset Newline newline
12685 \end_inset
12686
12687
12688 \family default
12689 Automatically numbered.
12690  On screen it will be arabic,
12691  but will print as Roman.
12692 \end_layout
12693
12694 \begin_layout Itemize
12695
12696 \family sans
12697 ACT*
12698 \begin_inset space \hfill{}
12699 \end_inset
12700
12701 M-z S at
12702 \begin_inset Newline newline
12703 \end_inset
12704
12705
12706 \family default
12707 Subtitle for 
12708 \family sans
12709 ACT.
12710
12711 \family default
12712  It is just centered text.
12713 \end_layout
12714
12715 \begin_layout Itemize
12716
12717 \family sans
12718 SCENE
12719 \begin_inset space \hfill{}
12720 \end_inset
12721
12722 M-z S-S
12723 \begin_inset Newline newline
12724 \end_inset
12725
12726
12727 \family default
12728 Not automatically numbered.
12729  You supply the number.
12730  This is because I couldn't figure out how.
12731 \end_layout
12732
12733 \begin_layout Itemize
12734
12735 \family sans
12736 AT_RISE:
12737 \begin_inset space \hfill{}
12738 \end_inset
12739
12740 M-z S-R
12741 \begin_inset Newline newline
12742 \end_inset
12743
12744
12745 \family default
12746 A special case of Narrative to describe the setting and action as the curtain rises.
12747 \end_layout
12748
12749 \begin_layout Itemize
12750
12751 \family sans
12752 Speaker
12753 \begin_inset space \hfill{}
12754 \end_inset
12755
12756 M-z s
12757 \begin_inset Newline newline
12758 \end_inset
12759
12760
12761 \family default
12762 The speaker's (actor's) title,
12763  centered in all CAPS.
12764 \end_layout
12765
12766 \begin_layout Itemize
12767
12768 \family sans
12769 Parenthetical
12770 \begin_inset space \hfill{}
12771 \end_inset
12772
12773 M-z p
12774 \begin_inset Newline newline
12775 \end_inset
12776
12777
12778 \family default
12779 Instructions to the speaker.
12780  The parentheses are automatically inserted.
12781  The ( will appear on screen,
12782  but both will be in the printed play.
12783  This environment is only used within 
12784 \family sans
12785 Dialogue
12786 \family default
12787 .
12788 \end_layout
12789
12790 \begin_layout Itemize
12791
12792 \family sans
12793 Dialogue
12794 \begin_inset space \hfill{}
12795 \end_inset
12796
12797 M-z d
12798 \begin_inset Newline newline
12799 \end_inset
12800
12801
12802 \family default
12803 What the Speaker says.
12804 \end_layout
12805
12806 \begin_layout Itemize
12807
12808 \family sans
12809 CURTAIN
12810 \begin_inset space \hfill{}
12811 \end_inset
12812
12813 M-z S-C
12814 \begin_inset Newline newline
12815 \end_inset
12816
12817
12818 \family default
12819 The curtain comes down.
12820 \end_layout
12821
12822 \begin_layout Itemize
12823
12824 \family sans
12825 Title
12826 \begin_inset space \hfill{}
12827 \end_inset
12828
12829 M-z S-T
12830 \end_layout
12831
12832 \begin_layout Itemize
12833
12834 \family sans
12835 Author
12836 \begin_inset space \hfill{}
12837 \end_inset
12838
12839 M-z S-A
12840 \end_layout
12841
12842 \begin_layout Itemize
12843
12844 \family sans
12845 Right_Address
12846 \begin_inset space \hfill{}
12847 \end_inset
12848
12849 M-z r
12850 \end_layout
12851
12852 \begin_layout Standard
12853 Hello there.
12854 \end_layout
12855
12856 \begin_layout Subsection
12857 \begin_inset CommandInset label
12858 LatexCommand label
12859 name "subsec:Hollywood"
12860
12861 \end_inset
12862
12863 Hollywood (Hollywood spec scripts)
12864 \end_layout
12865
12866 \begin_layout Standard
12867 by 
12868 \shape smallcaps
12869 Garst Reese
12870 \end_layout
12871
12872 \begin_layout Subsubsection
12873 Introduction
12874 \end_layout
12875
12876 \begin_layout Standard
12877 Getting the format of a Hollywood script right is a 
12878 \begin_inset Quotes eld
12879 \end_inset
12880
12881 rite of passage.
12882 \begin_inset Quotes erd
12883 \end_inset
12884
12885  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
12886  Each page of a script should be one minute of film.
12887  Nothing goes in a script that you cannot see or hear on screen.
12888  The courier 12 pt font should be used throughout.
12889  No italics.
12890 \end_layout
12891
12892 \begin_layout Subsubsection
12893 \begin_inset CommandInset label
12894 LatexCommand label
12895 name "subsec:Special-problems-Hollywood"
12896
12897 \end_inset
12898
12899 Special problems
12900 \end_layout
12901
12902 \begin_layout Standard
12903 Speakers' lines should 
12904 \emph on
12905 never
12906 \emph default
12907  break in mid-sentence.
12908  If a speaker's lines continue over a page break,
12909  repeat the 
12910 \family sans
12911 Speaker
12912 \family default
12913  title followed by (Cont'd).
12914 \end_layout
12915
12916 \begin_layout Subsubsection
12917 Special features
12918 \end_layout
12919
12920 \begin_layout Standard
12921 Insert the 
12922 \family sans
12923 Speaker
12924 \family default
12925  names as labels then cross-reference the label to insert the name.
12926  The cross-reference dialog will show the current cast of characters.
12927  You can use this to insert the speaker name in narratives also.
12928 \end_layout
12929
12930 \begin_layout Subsubsection
12931 Paper size and Margins
12932 \end_layout
12933
12934 \begin_layout Standard
12935 USLetter,
12936  left 1.6in,
12937  right 0.75in,
12938  top 0.5in,
12939  bottom 0.75in
12940 \end_layout
12941
12942 \begin_layout Subsubsection
12943 Environments
12944 \end_layout
12945
12946 \begin_layout Standard
12947 The following environments are available.
12948  You can use 
12949 \family typewriter
12950 hollywood.bind
12951 \family default
12952  to get the bind keys shown at the right.
12953 \end_layout
12954
12955 \begin_layout Itemize
12956
12957 \family sans
12958 Standard
12959 \begin_inset Newline newline
12960 \end_inset
12961
12962
12963 \family default
12964 Used where nothing else works.
12965  Try to avoid it.
12966 \end_layout
12967
12968 \begin_layout Itemize
12969
12970 \family sans
12971 FADE_IN
12972 \family default
12973 :
12974 \begin_inset space \hfill{}
12975 \end_inset
12976
12977
12978 \family sans
12979 M-z S-I
12980 \family default
12981
12982 \begin_inset Newline newline
12983 \end_inset
12984
12985 Usually followed by something like 
12986 \begin_inset Quotes eld
12987 \end_inset
12988
12989 on Sally waking up.
12990 \begin_inset Quotes erd
12991 \end_inset
12992
12993
12994 \end_layout
12995
12996 \begin_layout Itemize
12997
12998 \family sans
12999 INT:
13000 \begin_inset space \hfill{}
13001 \end_inset
13002
13003 M-z i
13004 \begin_inset Newline newline
13005 \end_inset
13006
13007
13008 \family default
13009 Introduces a new INTERIOR camera set-up.
13010  Always followed by DAY or NIGHT,
13011  or something similar to define the lighting required.
13012  Everthing on this line in CAPS.
13013 \end_layout
13014
13015 \begin_layout Itemize
13016
13017 \family sans
13018 EXT:
13019 \begin_inset space \hfill{}
13020 \end_inset
13021
13022 M-z e
13023 \begin_inset Newline newline
13024 \end_inset
13025
13026
13027 \family default
13028 Introduces a new EXTERIOR camera set-up.
13029  Everthing on this line in CAPS.
13030 \end_layout
13031
13032 \begin_layout Itemize
13033
13034 \family sans
13035 Speaker
13036 \begin_inset space \hfill{}
13037 \end_inset
13038
13039 M-z s
13040 \begin_inset Newline newline
13041 \end_inset
13042
13043
13044 \family default
13045 The character speaking.
13046 \end_layout
13047
13048 \begin_layout Itemize
13049
13050 \family sans
13051 Parenthetical
13052 \begin_inset space \hfill{}
13053 \end_inset
13054
13055 M-z p
13056 \begin_inset Newline newline
13057 \end_inset
13058
13059
13060 \family default
13061 Instructions to the speaker.
13062  The () are automatically inserted.
13063 \end_layout
13064
13065 \begin_layout Itemize
13066
13067 \family sans
13068 Dialogue
13069 \begin_inset space \hfill{}
13070 \end_inset
13071
13072 M-z d
13073 \begin_inset Newline newline
13074 \end_inset
13075
13076
13077 \family default
13078 What the 
13079 \family sans
13080 Speaker
13081 \family default
13082  says.
13083 \end_layout
13084
13085 \begin_layout Itemize
13086
13087 \family sans
13088 Transition
13089 \begin_inset space \hfill{}
13090 \end_inset
13091
13092 M-z t
13093 \begin_inset Newline newline
13094 \end_inset
13095
13096
13097 \family default
13098 Camera movement instruction.
13099  e.
13100 \begin_inset space \thinspace{}
13101 \end_inset
13102
13103 g.
13104 \begin_inset space \space{}
13105 \end_inset
13106
13107 CUT TO:
13108 \end_layout
13109
13110 \begin_layout Itemize
13111
13112 \family sans
13113 FADE OUT:
13114 \begin_inset space \hfill{}
13115 \end_inset
13116
13117 M-z S-I
13118 \end_layout
13119
13120 \begin_layout Itemize
13121
13122 \family sans
13123 Author
13124 \begin_inset space \hfill{}
13125 \end_inset
13126
13127 M-z S-A
13128 \end_layout
13129
13130 \begin_layout Itemize
13131
13132 \family sans
13133 Title
13134 \begin_inset space \hfill{}
13135 \end_inset
13136
13137 M-z S-T
13138 \end_layout
13139
13140 \begin_layout Itemize
13141
13142 \family sans
13143 Right_Address
13144 \begin_inset space \hfill{}
13145 \end_inset
13146
13147 M-z r
13148 \end_layout
13149
13150 \begin_layout Subsubsection
13151 Script jargon
13152 \end_layout
13153
13154 \begin_layout Itemize
13155 (O.S) —
13156  off screen
13157 \end_layout
13158
13159 \begin_layout Itemize
13160 (V.0) —
13161  voice over
13162 \end_layout
13163
13164 \begin_layout Itemize
13165 b.
13166 \begin_inset space \thinspace{}
13167 \end_inset
13168
13169 g.
13170  —
13171  background
13172 \end_layout
13173
13174 \begin_layout Itemize
13175 C.U.
13176  —
13177  close-up
13178 \end_layout
13179
13180 \begin_layout Itemize
13181 PAN —
13182  camera movement
13183 \end_layout
13184
13185 \begin_layout Itemize
13186 INSERT —
13187  cut to close-up of
13188 \end_layout
13189
13190 \begin_layout Chapter
13191 Modules
13192 \end_layout
13193
13194 \begin_layout Section
13195 Academic Field Specifics
13196 \end_layout
13197
13198 \begin_layout Subsection
13199 Chemistry:
13200  Hazard and Precautionary Statements
13201 \end_layout
13202
13203 \begin_layout Standard
13204 This module provides two insets and a paragraph style to typeset numbers and phrases of chemical hazard and precautionary statements.
13205  For a description see 
13206 \family sans
13207 File\SpecialChar menuseparator
13208 Open Example\SpecialChar menuseparator
13209 Modules\SpecialChar menuseparator
13210 Hazard and Precautionary Statements
13211 \family default
13212  and 
13213 \family sans
13214 Help\SpecialChar menuseparator
13215 Specific Manuals\SpecialChar menuseparator
13216 Hazard and Precautionary Statements
13217 \family default
13218 .
13219 \end_layout
13220
13221 \begin_layout Subsection
13222
13223 \series bold
13224 Chemistry:
13225  Risk and Safety Statements
13226 \end_layout
13227
13228 \begin_layout Standard
13229 This module provides two insets,
13230  
13231 \family sans
13232 R-S number
13233 \family default
13234  and 
13235 \family sans
13236 R-S phrase
13237 \family default
13238 ,
13239  accessible via the menu 
13240 \family sans
13241 \bar under
13242 I
13243 \bar default
13244 nsert\SpecialChar menuseparator
13245 Custom
13246 \begin_inset space ~
13247 \end_inset
13248
13249 Insets
13250 \family default
13251  and an environment to typeset numbers and phrases of chemical risk and safety statements.
13252 \end_layout
13253
13254 \begin_layout Subsection
13255 Linguistics
13256 \end_layout
13257
13258 \begin_layout Standard
13259 This module provides specific environments useful for linguistics (numbered examples,
13260  glosses,
13261  semantic markup,
13262  OT tableau floats).
13263  You can obtain information about this module in 
13264 \family sans
13265 \bar under
13266 H
13267 \bar default
13268 elp\SpecialChar menuseparator
13269 S
13270 \bar under
13271 p
13272 \bar default
13273 ecific
13274 \begin_inset space ~
13275 \end_inset
13276
13277 Manuals\SpecialChar menuseparator
13278
13279 \bar under
13280 L
13281 \bar default
13282 inguistics
13283 \family default
13284  and 
13285 \family sans
13286 File\SpecialChar menuseparator
13287 Open Example\SpecialChar menuseparator
13288 Modules\SpecialChar menuseparator
13289 Linguistics
13290 \family default
13291 .
13292 \end_layout
13293
13294 \begin_layout Section
13295 Accessibility
13296 \end_layout
13297
13298 \begin_layout Subsection
13299 Braille
13300 \end_layout
13301
13302 \begin_layout Standard
13303 This module supports the Braille script.
13304  It requires the \SpecialChar LaTeX
13305  package 
13306 \family typewriter
13307 braille.sty
13308 \family default
13309 .
13310  This and its documentation can be obtained from 
13311 \begin_inset CommandInset href
13312 LatexCommand href
13313 name "CTAN"
13314 target "https://www.ctan.org/pkg/braille"
13315 literal "false"
13316
13317 \end_inset
13318
13319 .
13320  See 
13321 \family sans
13322 \bar under
13323 H
13324 \bar default
13325 elp\SpecialChar menuseparator
13326 S
13327 \bar under
13328 p
13329 \bar default
13330 ecific
13331 \begin_inset space ~
13332 \end_inset
13333
13334 Manuals\SpecialChar menuseparator
13335
13336 \bar under
13337 B
13338 \bar default
13339 raille
13340 \family default
13341  and 
13342 \family sans
13343 File\SpecialChar menuseparator
13344 Open Example\SpecialChar menuseparator
13345 Modules\SpecialChar menuseparator
13346 Braille
13347 \family default
13348 .
13349 \end_layout
13350
13351 \begin_layout Section
13352 Annotation & Revision
13353 \end_layout
13354
13355 \begin_layout Subsection
13356 FiXme Notes
13357 \end_layout
13358
13359 \begin_layout Standard
13360 This module provides “FiXme” (marginal) annotations for document revision purposes.
13361  A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
13362  The annotations are customizable via the LaTeX preamble.
13363  See the 
13364 \family typewriter
13365 fixme
13366 \family default
13367  documentation which can be obtained from 
13368 \begin_inset CommandInset href
13369 LatexCommand href
13370 name "CTAN"
13371 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13372 literal "false"
13373
13374 \end_inset
13375
13376 .
13377 \end_layout
13378
13379 \begin_layout Paragraph
13380 Note:
13381 \end_layout
13382
13383 \begin_layout Standard
13384 by default,
13385  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
13386 \family sans
13387 Document\SpecialChar menuseparator
13388 Settings\SpecialChar menuseparator
13389 Document Class\SpecialChar menuseparator
13390 Class Options\SpecialChar menuseparator
13391 Custom
13392 \family default
13393 ).
13394  To display them always,
13395  insert 
13396 \family typewriter
13397
13398 \backslash
13399 fxsetup{draft}
13400 \family default
13401  in 
13402 \family sans
13403 Document\SpecialChar menuseparator
13404 Settings\SpecialChar menuseparator
13405 \SpecialChar LaTeX
13406  Preamble
13407 \family default
13408 .
13409 \end_layout
13410
13411 \begin_layout Subsection
13412 PDF Comments
13413 \end_layout
13414
13415 \begin_layout Standard
13416 This module provides various kinds of annotations for PDF output.
13417  See 
13418 \family sans
13419 Help\SpecialChar menuseparator
13420 Specific Manuals\SpecialChar menuseparator
13421 PDF comments 
13422 \family default
13423 and
13424 \family sans
13425  File\SpecialChar menuseparator
13426 Open Example\SpecialChar menuseparator
13427 Modules\SpecialChar menuseparator
13428 PDF Comments
13429 \family default
13430 .
13431 \end_layout
13432
13433 \begin_layout Subsection
13434
13435 \series bold
13436 PDF Form
13437 \end_layout
13438
13439 \begin_layout Standard
13440 This module provides fields and buttons for PDF forms.
13441  See the 
13442 \begin_inset CommandInset href
13443 LatexCommand href
13444 name "hyperref documentation"
13445 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13446 literal "false"
13447
13448 \end_inset
13449
13450 ,
13451  
13452 \family sans
13453 Help\SpecialChar menuseparator
13454 Specific Manuals\SpecialChar menuseparator
13455 PDF forms 
13456 \family default
13457 and
13458 \family sans
13459  File\SpecialChar menuseparator
13460 Open Example\SpecialChar menuseparator
13461 Modules\SpecialChar menuseparator
13462 PDF Form
13463 \family default
13464 .
13465 \end_layout
13466
13467 \begin_layout Subsection
13468
13469 \series bold
13470 Ruby (Furigana)
13471 \end_layout
13472
13473 \begin_layout Standard
13474 This module defines an inset to typeset reading aids (ruby,
13475  furigana) to Chinese characters.
13476  It uses the 
13477 \family typewriter
13478 okumakro
13479 \family default
13480 ,
13481  
13482 \family typewriter
13483 luatexja-ruby
13484 \family default
13485  or 
13486 \family typewriter
13487 ruby
13488 \family default
13489  package (depending on the TeX engine) or a fallback definition.
13490 \end_layout
13491
13492 \begin_layout Subsection
13493
13494 \series bold
13495 TODO notes
13496 \end_layout
13497
13498 \begin_layout Standard
13499 This module provides custom insets to insert TODO items in your document.
13500  In order to generate a “List of TODOs,” the module provides a paragraph style.
13501  Inserting 
13502 \family typewriter
13503 final
13504 \family default
13505  in 
13506 \family sans
13507 Document\SpecialChar menuseparator
13508 Settings\SpecialChar menuseparator
13509 Document Class\SpecialChar menuseparator
13510 Class Options\SpecialChar menuseparator
13511 Custom
13512 \family default
13513 ) suppresses the output of TODO notes.
13514  See the 
13515 \begin_inset CommandInset href
13516 LatexCommand href
13517 name "todonotes documentation"
13518 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13519 literal "false"
13520
13521 \end_inset
13522
13523 .
13524 \end_layout
13525
13526 \begin_layout Section
13527 Bibliography
13528 \end_layout
13529
13530 \begin_layout Subsection
13531 APA Style with Natbib
13532 \end_layout
13533
13534 \begin_layout Standard
13535 This module adds support for using natbib together with apacite (the bibliography style need not be 
13536 \family typewriter
13537 apacite
13538 \family default
13539  —
13540  it could be 
13541 \family typewriter
13542 apacite
13543 \family default
13544 ,
13545  
13546 \family typewriter
13547 apacitex
13548 \family default
13549 ,
13550  or any bibliography that works with both the natbib and apacite packages.)
13551 \end_layout
13552
13553 \begin_layout Section
13554 Boxes
13555 \end_layout
13556
13557 \begin_layout Subsection
13558 Fancy Colored Boxes
13559 \end_layout
13560
13561 \begin_layout Standard
13562 This module adds ten custom insets that support colored boxes via the 
13563 \family typewriter
13564 tcolorbox
13565 \family default
13566  package.
13567  See 
13568 \family sans
13569 Help\SpecialChar menuseparator
13570 Specific Manuals\SpecialChar menuseparator
13571 Colored boxes
13572 \family default
13573 ,
13574  
13575 \family sans
13576 File\SpecialChar menuseparator
13577 Open Example\SpecialChar menuseparator
13578 Modules\SpecialChar menuseparator
13579 Fancy Color Boxes
13580 \family default
13581  and the 
13582 \begin_inset CommandInset href
13583 LatexCommand href
13584 name "tcolorbox documentation"
13585 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13586 literal "false"
13587
13588 \end_inset
13589
13590  for details.
13591 \end_layout
13592
13593 \begin_layout Subsection
13594 Graphic boxes
13595 \end_layout
13596
13597 \begin_layout Standard
13598 This provides the custom insets 
13599 \family sans
13600 Reflectbox
13601 \family default
13602 ,
13603  
13604 \family sans
13605 Resizebox
13606 \family default
13607 ,
13608  
13609 \family sans
13610 Rotatebox
13611 \family default
13612  and 
13613 \family sans
13614 Scalebox
13615 \family default
13616  to scale and rotate its content.
13617 \end_layout
13618
13619 \begin_layout Standard
13620
13621 \family sans
13622 Reflectbox
13623 \family default
13624  is a simple way of reversing text without any other enhancement:
13625 \end_layout
13626
13627 \begin_layout Standard
13628 \begin_inset Flex Reflectbox
13629 status open
13630
13631 \begin_layout Plain Layout
13632 Great Western Railway
13633 \end_layout
13634
13635 \end_inset
13636
13637
13638 \end_layout
13639
13640 \begin_layout Standard
13641 (You will need to use Ctrl-R to see any of these examples.)
13642 \end_layout
13643
13644 \begin_layout Standard
13645
13646 \family sans
13647 Resizebox
13648 \family default
13649  allows you to specify the dimensions of the text or image;
13650  permissible units are em,
13651  ex,
13652  in,
13653  pt,
13654  pc,
13655  cm,
13656  mm,
13657  dd,
13658  cc,
13659  nd,
13660  nc,
13661  bp,
13662  or sp;
13663  if you enter 
13664 \family typewriter
13665 !
13666
13667 \family default
13668  for 
13669 \family typewriter
13670 Height
13671 \family default
13672  it scales by the width factor:
13673 \end_layout
13674
13675 \begin_layout Standard
13676 \begin_inset Flex Resizebox
13677 status open
13678
13679 \begin_layout Plain Layout
13680 \begin_inset Argument 1
13681 status open
13682
13683 \begin_layout Plain Layout
13684 48mm
13685 \end_layout
13686
13687 \end_inset
13688
13689
13690 \begin_inset Argument 2
13691 status open
13692
13693 \begin_layout Plain Layout
13694 !
13695 \end_layout
13696
13697 \end_inset
13698
13699 Great Western Railway
13700 \end_layout
13701
13702 \end_inset
13703
13704
13705 \end_layout
13706
13707 \begin_layout Standard
13708
13709 \family sans
13710 Rotatebox
13711 \family default
13712  allows you to rotate its contents around the reference point of the box.
13713  If you wish to rotate the box around a different origin,
13714  place the cursor inside the box and select Insert\SpecialChar menuseparator
13715 Origin;
13716  o
13717 \family typewriter
13718 rigin
13719 \family default
13720  is specified as 
13721 \family typewriter
13722 c
13723 \family default
13724 ,
13725
13726 \family typewriter
13727  l
13728 \family default
13729 ,
13730
13731 \family typewriter
13732  r
13733 \family default
13734 ,
13735
13736 \family typewriter
13737  b
13738 \family default
13739 ,
13740
13741 \family typewriter
13742  t
13743 \family default
13744  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
13745  For example:
13746 \end_layout
13747
13748 \begin_layout Standard
13749 \begin_inset Flex Rotatebox
13750 status open
13751
13752 \begin_layout Plain Layout
13753 \begin_inset Argument 1
13754 status open
13755
13756 \begin_layout Plain Layout
13757 origin=c
13758 \end_layout
13759
13760 \end_inset
13761
13762
13763 \begin_inset Argument 2
13764 status open
13765
13766 \begin_layout Plain Layout
13767 30
13768 \end_layout
13769
13770 \end_inset
13771
13772 Great Western Railway
13773 \end_layout
13774
13775 \end_inset
13776
13777
13778 \end_layout
13779
13780 \begin_layout Standard
13781 You can combine boxes as in:
13782 \end_layout
13783
13784 \begin_layout Standard
13785 \begin_inset Flex Rotatebox
13786 status open
13787
13788 \begin_layout Plain Layout
13789 \begin_inset Argument 1
13790 status open
13791
13792 \begin_layout Plain Layout
13793 origin=c
13794 \end_layout
13795
13796 \end_inset
13797
13798
13799 \begin_inset Argument 2
13800 status open
13801
13802 \begin_layout Plain Layout
13803 -15
13804 \end_layout
13805
13806 \end_inset
13807
13808
13809 \begin_inset Flex Resizebox
13810 status open
13811
13812 \begin_layout Plain Layout
13813 \begin_inset Argument 1
13814 status open
13815
13816 \begin_layout Plain Layout
13817 48mm
13818 \end_layout
13819
13820 \end_inset
13821
13822
13823 \begin_inset Argument 2
13824 status open
13825
13826 \begin_layout Plain Layout
13827 !
13828 \end_layout
13829
13830 \end_inset
13831
13832
13833 \begin_inset Flex Reflectbox
13834 status open
13835
13836 \begin_layout Plain Layout
13837 Great Western Railway
13838 \end_layout
13839
13840 \end_inset
13841
13842
13843 \end_layout
13844
13845 \end_inset
13846
13847
13848 \end_layout
13849
13850 \end_inset
13851
13852
13853 \end_layout
13854
13855 \begin_layout Standard
13856
13857 \family sans
13858 Scalebox
13859 \family default
13860  scales its contents;
13861  select Insert\SpecialChar menuseparator
13862 V-Factor to add a vertical factor.
13863  If the vertical factor is omitted,
13864  the horizontal is used.
13865  Adding different horizontal and vertical values creates distortion as in
13866 \end_layout
13867
13868 \begin_layout Standard
13869
13870 \family typewriter
13871 \begin_inset Flex Scalebox
13872 status open
13873
13874 \begin_layout Plain Layout
13875 \begin_inset Argument 1
13876 status open
13877
13878 \begin_layout Plain Layout
13879 2
13880 \end_layout
13881
13882 \end_inset
13883
13884
13885 \begin_inset Argument 2
13886 status open
13887
13888 \begin_layout Plain Layout
13889 1.5
13890 \end_layout
13891
13892 \end_inset
13893
13894
13895 \family roman
13896 Great Western Railway
13897 \end_layout
13898
13899 \end_inset
13900
13901 .
13902 \end_layout
13903
13904 \begin_layout Standard
13905 A negative horizontal value reverses the text on the horizontal axis,
13906  a negative vertical value on the vertical axis,
13907  so that you get
13908 \end_layout
13909
13910 \begin_layout Standard
13911 \begin_inset Flex Scalebox
13912 status open
13913
13914 \begin_layout Plain Layout
13915 \begin_inset Argument 1
13916 status open
13917
13918 \begin_layout Plain Layout
13919 -1
13920 \end_layout
13921
13922 \end_inset
13923
13924
13925 \begin_inset Argument 2
13926 status open
13927
13928 \begin_layout Plain Layout
13929 1
13930 \end_layout
13931
13932 \end_inset
13933
13934 Great Western Railway
13935 \end_layout
13936
13937 \end_inset
13938
13939  and 
13940 \begin_inset Flex Scalebox
13941 status open
13942
13943 \begin_layout Plain Layout
13944 \begin_inset Argument 1
13945 status open
13946
13947 \begin_layout Plain Layout
13948 1
13949 \end_layout
13950
13951 \end_inset
13952
13953
13954 \begin_inset Argument 2
13955 status open
13956
13957 \begin_layout Plain Layout
13958 -1
13959 \end_layout
13960
13961 \end_inset
13962
13963 Great Western Railway
13964 \end_layout
13965
13966 \end_inset
13967
13968 .
13969 \end_layout
13970
13971 \begin_layout Subsection
13972 Section Boxes
13973 \end_layout
13974
13975 \begin_layout Standard
13976 This module defines Boxes with section header.
13977  It is mainly intended for the SciPoster Document class.
13978 \end_layout
13979
13980 \begin_layout Subsection
13981 Variable-width Minipages
13982 \end_layout
13983
13984 \begin_layout Standard
13985 This module adds a 
13986 \family sans
13987 Minipage (Var.
13988 \begin_inset space \thinspace{}
13989 \end_inset
13990
13991 Width)
13992 \family default
13993  inset to 
13994 \family sans
13995 Insert\SpecialChar menuseparator
13996 Custom Inset
13997 \family default
13998  using the 
13999 \family typewriter
14000 varwidth
14001 \family default
14002  LaTeX package.
14003  The 
14004 \family typewriter
14005 varwidth
14006 \family default
14007  package provides a variable-width minipage,
14008  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
14009  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
14010 \family sans
14011 Insert\SpecialChar menuseparator
14012 Vert.
14013 \begin_inset space \thinspace{}
14014 \end_inset
14015
14016 Adjustment
14017 \family default
14018  (
14019 \family typewriter
14020 c|t|b
14021 \family default
14022 ) or 
14023 \family sans
14024 Insert\SpecialChar menuseparator
14025 Max.
14026 \begin_inset space \thinspace{}
14027 \end_inset
14028
14029 Width
14030 \family default
14031  (defaults to 
14032 \family typewriter
14033
14034 \backslash
14035 linewidth
14036 \family default
14037 ).
14038  See 
14039 \family sans
14040 File\SpecialChar menuseparator
14041 Open Example\SpecialChar menuseparator
14042 Variable-width Minipages
14043 \family default
14044 .
14045 \end_layout
14046
14047 \begin_layout Section
14048 Fixes & Hacks
14049 \end_layout
14050
14051 \begin_layout Subsection
14052 Fix Computer Modern Fonts
14053 \end_layout
14054
14055 \begin_layout Standard
14056 This module uses the 
14057 \family sans
14058 fix-cm
14059 \family default
14060  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
14061  See the 
14062 \begin_inset CommandInset href
14063 LatexCommand href
14064 name "fix-cm documentation"
14065 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14066 literal "false"
14067
14068 \end_inset
14069
14070 .
14071 \end_layout
14072
14073 \begin_layout Subsection
14074 \SpecialChar LaTeX
14075  Kernel Fixes (Obsolete)
14076 \end_layout
14077
14078 \begin_layout Standard
14079 This module loads the \SpecialChar LaTeX
14080  package 
14081 \family sans
14082 fixltx2e
14083 \family default
14084  which contains some bug fixes for \SpecialChar LaTeX
14085 .
14086  If you use this module your typeset document may look different when you process it,
14087  depending on the respective version of 
14088 \family sans
14089 fixltx2e
14090 \family default
14091 .
14092 \end_layout
14093
14094 \begin_layout Paragraph
14095 Note:
14096 \end_layout
14097
14098 \begin_layout Standard
14099 recent \SpecialChar LaTeX
14100  kernels (as of 2015/01/01) include the functionality of 
14101 \family sans
14102 fixltx2e
14103 \family default
14104 ,
14105  so the 
14106 \family sans
14107 fixltx2e
14108 \family default
14109  module is obsolete with newer \SpecialChar LaTeX
14110  distributions.
14111 \end_layout
14112
14113 \begin_layout Subsection
14114 Minimalistic Insets
14115 \end_layout
14116
14117 \begin_layout Standard
14118 This module redefines several insets (Index,
14119  Branch,
14120  URL) as being Minimalistic.
14121 \end_layout
14122
14123 \begin_layout Subsection
14124 Title and Preamble Hacks
14125 \end_layout
14126
14127 \begin_layout Standard
14128 This module provides two new paragraph styles:
14129 \end_layout
14130
14131 \begin_layout Enumerate
14132
14133 \family sans
14134 In Preamble
14135 \family default
14136  which puts whatever is entered into it into the preamble.
14137  This can be used,
14138  if one wishes,
14139  to include preamble code in the body of a LyX document.
14140 \end_layout
14141
14142 \begin_layout Enumerate
14143
14144 \family sans
14145 In Title
14146 \family default
14147  which that will put its contents into the body of the LaTeX document,
14148  but before 
14149 \family typewriter
14150
14151 \backslash
14152 maketitle
14153 \family default
14154  is issued.
14155  This is useful for making branches and notes in title-related material.
14156  (However,
14157  if you put these in a 
14158 \family sans
14159 Standard
14160 \family default
14161  layout,
14162  this signals to LyX to output 
14163 \family typewriter
14164
14165 \backslash
14166 maketitle
14167 \family default
14168 ,
14169  which may then come too early.)
14170 \end_layout
14171
14172 \begin_layout Section
14173 Floats & captions
14174 \end_layout
14175
14176 \begin_layout Subsection
14177 Algorithm2e Float
14178 \end_layout
14179
14180 \begin_layout Standard
14181 This module uses the 
14182 \family sans
14183 algorithm2e
14184 \family default
14185  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14186  Use the Algorithm paragraph style to enter and indent the algorithm.
14187  See the 
14188 \begin_inset CommandInset href
14189 LatexCommand href
14190 name "algorithm2e documentation"
14191 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14192 literal "false"
14193
14194 \end_inset
14195
14196 .
14197 \end_layout
14198
14199 \begin_layout Subsection
14200 Bilingual Captions AKA Multilingual Captions
14201 \end_layout
14202
14203 \begin_layout Standard
14204 This module provides the paragraph style 
14205 \family sans
14206 Caption
14207 \begin_inset space ~
14208 \end_inset
14209
14210 setup
14211 \family default
14212  with which to typeset bilingual captions.
14213  Within this paragraph style 
14214 \family sans
14215 Insert\SpecialChar menuseparator
14216 Language
14217 \family default
14218  allows you to enter the desired second language using one of the babel names.
14219  See 
14220 \family sans
14221 File\SpecialChar menuseparator
14222 Open Example\SpecialChar menuseparator
14223 Modules\SpecialChar menuseparator
14224 Multilingual Captions
14225 \family default
14226  and 
14227 \family sans
14228 Help\SpecialChar menuseparator
14229 Specific Manuals\SpecialChar menuseparator
14230 Multilingual Captions
14231 \family default
14232  further information on its use.
14233 \end_layout
14234
14235 \begin_layout Subsection
14236 Number Figures by Section
14237 \end_layout
14238
14239 \begin_layout Standard
14240 This module resets the figure number at section start and prepends the section number to the figure number,
14241  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14242 \end_layout
14243
14244 \begin_layout Subsection
14245 Number Tables by Section
14246 \end_layout
14247
14248 \begin_layout Standard
14249 This module resets the table number at section start and prepends the section number to the table number,
14250  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14251 \end_layout
14252
14253 \begin_layout Section
14254 Foot- and Endnotes
14255 \end_layout
14256
14257 \begin_layout Subsection
14258 Endnotes (Basic)
14259 \end_layout
14260
14261 \begin_layout Standard
14262 This module adds an endnote inset,
14263  in addition to footnotes.
14264  This uses the 
14265 \family sans
14266 endnotes
14267 \family default
14268  package,
14269  which has some limitations but works with older \SpecialChar LaTeX
14270  distributions as well.
14271  Use 
14272 \family sans
14273 Insert\SpecialChar menuseparator
14274 Custom Inset\SpecialChar menuseparator
14275 Endnote
14276 \family default
14277  to insert an endnote and 
14278 \family sans
14279 Insert\SpecialChar menuseparator
14280 List/Contents/References\SpecialChar menuseparator
14281 Endnotes
14282 \family default
14283  to insert the endnotes list where you want the endnotes to appear.
14284  See also 
14285 \family sans
14286 Help\SpecialChar menuseparator
14287 Embedded Objects
14288 \family default
14289 ,
14290  section 
14291 \emph on
14292 4.2 Footnotes
14293 \emph default
14294 .
14295 \end_layout
14296
14297 \begin_layout Subsection
14298 Endnotes (Extended)
14299 \end_layout
14300
14301 \begin_layout Standard
14302 This module adds an endnote inset,
14303  in addition to footnotes.
14304  This uses the 
14305 \family sans
14306 enotez
14307 \family default
14308  package which is more powerful and customizable than the 
14309 \family sans
14310 endnotes
14311 \family default
14312  package,
14313  but requires a fairly modern \SpecialChar LaTeX
14314  distribution (with \SpecialChar LaTeX
14315 3).
14316  Use 
14317 \family sans
14318 Insert\SpecialChar menuseparator
14319 Custom Inset\SpecialChar menuseparator
14320 Endnote
14321 \family default
14322  to insert an endnote and 
14323 \family sans
14324 Insert\SpecialChar menuseparator
14325 List/Contents/References\SpecialChar menuseparator
14326 Endnotes
14327 \family default
14328  to insert the endnotes list where you want the endnotes to appear.
14329  See also 
14330 \family sans
14331 Help\SpecialChar menuseparator
14332 Embedded Objects
14333 \family default
14334 ,
14335  section 
14336 \emph on
14337 4.2 Footnotes
14338 \emph default
14339 ..
14340 \end_layout
14341
14342 \begin_layout Subsection
14343 Footnotes as Endnotes (Basic)
14344 \end_layout
14345
14346 \begin_layout Standard
14347 This module sets all footnotes as endnotes.
14348  This uses the 
14349 \family sans
14350 endnotes
14351 \family default
14352  package,
14353  which has some limitations but works with older \SpecialChar LaTeX
14354  distributions as well.
14355  Use 
14356 \family sans
14357 Insert\SpecialChar menuseparator
14358 List/Contents/References\SpecialChar menuseparator
14359 Endnotes
14360 \family default
14361  to insert the endnotes list where you want the endnotes to appear.
14362  See also 
14363 \family sans
14364 Help\SpecialChar menuseparator
14365 Embedded Objects
14366 \family default
14367 ,
14368  section 
14369 \emph on
14370 4.2 Footnotes
14371 \emph default
14372 .
14373 \end_layout
14374
14375 \begin_layout Subsection
14376 Footnotes as Endnotes (Extended)
14377 \end_layout
14378
14379 \begin_layout Standard
14380 This module sets all footnotes as endnotes.
14381  This uses the 
14382 \family sans
14383 enotez
14384 \family default
14385  package which is more powerful and customizable than then 
14386 \family sans
14387 endnotes
14388 \family default
14389  package,
14390  but requires a fairly modern \SpecialChar LaTeX
14391  distribution (with \SpecialChar LaTeX
14392 3).
14393  Use 
14394 \family sans
14395 Insert\SpecialChar menuseparator
14396 List/Contents/References\SpecialChar menuseparator
14397 Endnotes
14398 \family default
14399  to insert the endnotes list where you want the endnotes to appear.
14400  See also 
14401 \family sans
14402 Help\SpecialChar menuseparator
14403 Embedded Objects
14404 \family default
14405 ,
14406  section 
14407 \emph on
14408 4.2 Footnotes
14409 \emph default
14410 .
14411 \end_layout
14412
14413 \begin_layout Section
14414 Leisure,
14415  Sports and Music
14416 \end_layout
14417
14418 \begin_layout Subsection
14419 Chess Board
14420 \end_layout
14421
14422 \begin_layout Standard
14423 This module provides support for the 
14424 \family sans
14425 chessboard
14426 \family default
14427  package to print chess games.
14428  See 
14429 \family sans
14430 File\SpecialChar menuseparator
14431 Open Example\SpecialChar menuseparator
14432 Articles\SpecialChar menuseparator
14433 Chess
14434 \family default
14435  where you will find 
14436 \family sans
14437 Game 1
14438 \family default
14439  and 
14440 \family sans
14441 Game 2
14442 \family default
14443  and the 
14444 \begin_inset CommandInset href
14445 LatexCommand href
14446 name "chessboard documentation"
14447 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14448 literal "false"
14449
14450 \end_inset
14451
14452 .
14453 \end_layout
14454
14455 \begin_layout Subsection
14456 Lilypond Music Notation
14457 \end_layout
14458
14459 \begin_layout Standard
14460 This module provides an inset via 
14461 \family sans
14462 \bar under
14463 I
14464 \bar default
14465 nsert\SpecialChar menuseparator
14466 Custom Inset\SpecialChar menuseparator
14467 Lilypond
14468 \family default
14469  in which to enter code for the LilyPond music editor.
14470  It will then be processed in the output.
14471  See 
14472 \family sans
14473 Help\SpecialChar menuseparator
14474 Specific Manuals\SpecialChar menuseparator
14475 Lilypond
14476 \family default
14477  and 
14478 \family sans
14479 File\SpecialChar menuseparator
14480 Open Example\SpecialChar menuseparator
14481 Modules\SpecialChar menuseparator
14482 Lilypond Book
14483 \family default
14484 .
14485  It cannot be used if the modules 
14486 \family sans
14487 Rnw
14488 \begin_inset space \thinspace{}
14489 \end_inset
14490
14491 (knitr) 
14492 \family default
14493 or
14494 \family sans
14495  Sweave
14496 \family default
14497  have been loaded.
14498 \end_layout
14499
14500 \begin_layout Section
14501 List enhancements
14502 \end_layout
14503
14504 \begin_layout Subsection
14505 Customizable Lists
14506 \begin_inset CommandInset label
14507 LatexCommand label
14508 name "subsec:Customizable-Lists"
14509
14510 \end_inset
14511
14512
14513 \end_layout
14514
14515 \begin_layout Standard
14516 This module uses the
14517 \family sans
14518  enumitem
14519 \family default
14520  package to enable the customization of various list environments.
14521 \end_layout
14522
14523 \begin_layout Subsubsection
14524 Custom Enumerate Lists
14525 \end_layout
14526
14527 \begin_layout Standard
14528 \noindent
14529 The default numbering of numbered lists can be changed by adding an optional argument (menu 
14530 \family sans
14531 \bar under
14532 I
14533 \bar default
14534 nsert\SpecialChar menuseparator
14535
14536 \bar under
14537 S
14538 \bar default
14539 hort Title
14540 \family default
14541 ) to the first item of each level in the list.
14542  There you add the command
14543 \end_layout
14544
14545 \begin_layout Standard
14546
14547 \family sans
14548 label=
14549 \backslash
14550 roman{enumi}
14551 \end_layout
14552
14553 \begin_layout Standard
14554 in \SpecialChar TeX
14555  Code (shortcut 
14556 \begin_inset Info
14557 type  "shortcut"
14558 arg   "ert-insert"
14559 \end_inset
14560
14561 ).
14562 \end_layout
14563
14564 \begin_layout Standard
14565
14566 \family sans
14567 enumi
14568 \family default
14569  is the first level counter of the enumeration.
14570  To change the numbering for the list sublevels,
14571  replace the “
14572 \family sans
14573 i
14574 \family default
14575 ” in the command by the small Roman numeral of the level (
14576 \family sans
14577 enumi
14578 \family default
14579 ,
14580  
14581 \family sans
14582 enumii
14583 \family default
14584 ,
14585  
14586 \family sans
14587 enumiii
14588 \family default
14589 ,
14590  
14591 \family sans
14592 enumiv
14593 \family default
14594 ).
14595 \end_layout
14596
14597 \begin_layout Standard
14598 The command 
14599 \family sans
14600
14601 \backslash
14602 roman
14603 \family default
14604  outputs the counter as a small Roman numeral.
14605  For capital Roman numerals replace 
14606 \family sans
14607
14608 \backslash
14609 roman
14610 \family default
14611  with 
14612 \family sans
14613
14614 \backslash
14615 Roman
14616 \family default
14617  in the command above.
14618  For Arabic numerals use 
14619 \family sans
14620
14621 \backslash
14622 arabic
14623 \family default
14624 .
14625  To 
14626 \begin_inset Quotes eld
14627 \end_inset
14628
14629 number
14630 \begin_inset Quotes erd
14631 \end_inset
14632
14633  items with capital or small Latin letters use 
14634 \family sans
14635
14636 \backslash
14637 Alph
14638 \family default
14639  or 
14640 \family sans
14641
14642 \backslash
14643 alph
14644 \family default
14645 ,
14646  respectively.
14647 \end_layout
14648
14649 \begin_layout Standard
14650 \noindent
14651 \begin_inset Note Greyedout
14652 status open
14653
14654 \begin_layout Plain Layout
14655
14656 \series bold
14657 Note:
14658
14659 \series default
14660  You can only number 26
14661 \begin_inset space ~
14662 \end_inset
14663
14664 items with Latin letters,
14665  because this numbering is limited to single letters.
14666 \end_layout
14667
14668 \end_inset
14669
14670
14671 \end_layout
14672
14673 \begin_layout Standard
14674 Here is a list with custom numbering:
14675 \end_layout
14676
14677 \begin_layout Enumerate
14678 \begin_inset Argument 1
14679 status collapsed
14680
14681 \begin_layout Plain Layout
14682 \begin_inset ERT
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686
14687 label=
14688 \backslash
14689 #
14690 \backslash
14691 Alph{enumi}
14692 \backslash
14693 #
14694 \end_layout
14695
14696 \end_inset
14697
14698
14699 \end_layout
14700
14701 \end_inset
14702
14703 Level 1
14704 \begin_inset Separator latexpar
14705 \end_inset
14706
14707
14708 \end_layout
14709
14710 \begin_deeper
14711 \begin_layout Enumerate
14712 \begin_inset Argument 1
14713 status collapsed
14714
14715 \begin_layout Plain Layout
14716 \begin_inset ERT
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720
14721 label=
14722 \backslash
14723 Alph{enumi}.
14724 \backslash
14725 arabic{enumii}
14726 \end_layout
14727
14728 \end_inset
14729
14730
14731 \end_layout
14732
14733 \end_inset
14734
14735 Level 2
14736 \end_layout
14737
14738 \begin_layout Enumerate
14739 Level 2
14740 \begin_inset Separator latexpar
14741 \end_inset
14742
14743
14744 \end_layout
14745
14746 \begin_deeper
14747 \begin_layout Enumerate
14748 \begin_inset Argument 1
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752 \begin_inset ERT
14753 status collapsed
14754
14755 \begin_layout Plain Layout
14756
14757 label=
14758 \backslash
14759 bfseries{
14760 \backslash
14761 arabic{enumiii}}
14762 \end_layout
14763
14764 \end_inset
14765
14766
14767 \end_layout
14768
14769 \end_inset
14770
14771 Level 3
14772 \begin_inset Separator latexpar
14773 \end_inset
14774
14775
14776 \end_layout
14777
14778 \begin_deeper
14779 \begin_layout Enumerate
14780 \begin_inset Argument 1
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 \begin_inset ERT
14785 status collapsed
14786
14787 \begin_layout Plain Layout
14788
14789 label=
14790 \backslash
14791 emph{
14792 \backslash
14793 roman{enumiv})}
14794 \end_layout
14795
14796 \end_inset
14797
14798
14799 \end_layout
14800
14801 \end_inset
14802
14803 Level 4
14804 \end_layout
14805
14806 \end_deeper
14807 \end_deeper
14808 \end_deeper
14809 \begin_layout Standard
14810 For this list these commands were used:
14811 \end_layout
14812
14813 \begin_layout Standard
14814 \noindent
14815
14816 \family sans
14817 label=
14818 \backslash
14819 #
14820 \backslash
14821 Alph{enumi}
14822 \backslash
14823 #
14824 \begin_inset Newline newline
14825 \end_inset
14826
14827 label=
14828 \backslash
14829 Alph{enumi}.
14830 \backslash
14831 arabic{enumii}
14832 \begin_inset Newline newline
14833 \end_inset
14834
14835 label=
14836 \backslash
14837 bfseries{
14838 \backslash
14839 arabic{enumiii}}
14840 \begin_inset Newline newline
14841 \end_inset
14842
14843 label=
14844 \backslash
14845 emph{
14846 \backslash
14847 roman{enumiv})}
14848 \end_layout
14849
14850 \begin_layout Standard
14851 where the command 
14852 \family sans
14853
14854 \backslash
14855 emph{}
14856 \family default
14857  makes the label emphasized and 
14858 \family sans
14859
14860 \backslash
14861 bfseries{}
14862 \family default
14863  makes it bold.
14864 \end_layout
14865
14866 \begin_layout Standard
14867 \begin_inset Note Greyedout
14868 status collapsed
14869
14870 \begin_layout Plain Layout
14871
14872 \series bold
14873 Note:
14874
14875 \series default
14876  When you change the label of a list level,
14877  it will be used for all following lists until you change the definition.
14878 \end_layout
14879
14880 \end_inset
14881
14882
14883 \end_layout
14884
14885 \begin_layout Standard
14886 \begin_inset ERT
14887 status open
14888
14889 \begin_layout Plain Layout
14890
14891
14892 \backslash
14893 renewcommand{
14894 \backslash
14895 labelenumi}{
14896 \backslash
14897 thesection.
14898 \backslash
14899 arabic{enumi}}
14900 \end_layout
14901
14902 \end_inset
14903
14904
14905 \end_layout
14906
14907 \begin_layout Subsubsection
14908 Numbered Paragraphs in Reports
14909 \end_layout
14910
14911 \begin_layout Enumerate
14912 Official reports often include numbered paragraphs;
14913  you can achieve this with a variation on the approach outlined in section
14914 \begin_inset space ~
14915 \end_inset
14916
14917
14918 \begin_inset CommandInset ref
14919 LatexCommand ref
14920 reference "sec:How-to-use"
14921
14922 \end_inset
14923
14924 .
14925  Replace 
14926 \family sans
14927 item
14928 \family default
14929  in each command with 
14930 \family sans
14931 enum
14932 \family default
14933 .
14934 \end_layout
14935
14936 \begin_layout Enumerate
14937 These numbered paragraphs were generated by inserting the \SpecialChar TeX
14938  Code
14939 \begin_inset Separator latexpar
14940 \end_inset
14941
14942
14943 \end_layout
14944
14945 \begin_deeper
14946 \begin_layout Standard
14947
14948 \family sans
14949
14950 \backslash
14951 renewcommand{
14952 \backslash
14953 labelenumi}{
14954 \backslash
14955 thesection.
14956 \backslash
14957 arabic{enumi}}
14958 \end_layout
14959
14960 \begin_layout Standard
14961 before the start of the section;
14962  
14963 \family sans
14964
14965 \backslash
14966 thesection
14967 \family default
14968  uses the \SpecialChar LaTeX
14969  section counter to generate the first part of the number.
14970 \end_layout
14971
14972 \end_deeper
14973 \begin_layout Enumerate
14974 I have ignored the subsection heading in this example because,
14975  with paragraphs numbered in this way,
14976  subsections are less likely to be used.
14977 \end_layout
14978
14979 \begin_layout Subsubsection
14980 Resumed Enumeration
14981 \end_layout
14982
14983 \begin_layout Standard
14984 \begin_inset ERT
14985 status open
14986
14987 \begin_layout Plain Layout
14988
14989
14990 \backslash
14991 renewcommand{
14992 \backslash
14993 labelenumi}{
14994 \backslash
14995 arabic{enumi}}
14996 \end_layout
14997
14998 \end_inset
14999
15000
15001 \end_layout
15002
15003 \begin_layout Standard
15004 Enumerations can be resumed after intermediate paragraphs:
15005 \end_layout
15006
15007 \begin_layout Enumerate
15008 \begin_inset Argument 1
15009 status collapsed
15010
15011 \begin_layout Plain Layout
15012 \begin_inset ERT
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016
15017 label=
15018 \backslash
15019 arabic{enumi}.
15020 \end_layout
15021
15022 \end_inset
15023
15024
15025 \end_layout
15026
15027 \end_inset
15028
15029 first
15030 \begin_inset Note Note
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 goes back to default numbering
15035 \end_layout
15036
15037 \end_inset
15038
15039
15040 \end_layout
15041
15042 \begin_layout Enumerate
15043 second
15044 \end_layout
15045
15046 \begin_layout Standard
15047 regular text
15048 \end_layout
15049
15050 \begin_layout Enumerate-Resume
15051 resumed
15052 \end_layout
15053
15054 \begin_layout Standard
15055 To resume an enumeration,
15056  use the style 
15057 \family sans
15058 Enumerate-Resume
15059 \family default
15060 .
15061 \end_layout
15062
15063 \begin_layout Standard
15064 \begin_inset Note Greyedout
15065 status open
15066
15067 \begin_layout Plain Layout
15068
15069 \series bold
15070 Note:
15071
15072 \series default
15073  If there is no previous enumeration to resume,
15074  you will get a \SpecialChar LaTeX
15075  error.
15076 \end_layout
15077
15078 \end_inset
15079
15080
15081 \end_layout
15082
15083 \begin_layout Standard
15084 Perhaps you might want to resume the list with a different number from the next one.
15085  Or you want to start a new enumeration with a defined number.
15086  This is possible by adding an optional argument to the first list item of a normal enumeration.
15087  There,
15088  insert the command
15089 \end_layout
15090
15091 \begin_layout Standard
15092
15093 \family sans
15094 start=number
15095 \end_layout
15096
15097 \begin_layout Standard
15098 where 
15099 \family sans
15100 number
15101 \family default
15102  is the number with which you want to resume the list.
15103  An example:
15104 \end_layout
15105
15106 \begin_layout Enumerate
15107 first item
15108 \end_layout
15109
15110 \begin_layout Enumerate
15111 second item
15112 \end_layout
15113
15114 \begin_layout Standard
15115 Enumeration starting at a given value:
15116 \end_layout
15117
15118 \begin_layout Enumerate
15119 \begin_inset Argument 1
15120 status open
15121
15122 \begin_layout Plain Layout
15123 \begin_inset ERT
15124 status collapsed
15125
15126 \begin_layout Plain Layout
15127
15128 start=4
15129 \end_layout
15130
15131 \end_inset
15132
15133
15134 \end_layout
15135
15136 \end_inset
15137
15138 This enumeration starts at 4
15139 \end_layout
15140
15141 \begin_layout Subsubsection
15142 List Spacing
15143 \begin_inset Index idx
15144 range none
15145 pageformat default
15146 status collapsed
15147
15148 \begin_layout Plain Layout
15149 Lists !
15150  Spacing
15151 \end_layout
15152
15153 \end_inset
15154
15155
15156 \end_layout
15157
15158 \begin_layout Standard
15159 In some cases you might want less or more vertical space between the items of a list.
15160  For example if the default space is too much in your opinion in this case:
15161 \end_layout
15162
15163 \begin_layout Itemize
15164 A bullet list
15165 \end_layout
15166
15167 \begin_layout Itemize
15168 with standard spacing
15169 \end_layout
15170
15171 \begin_layout Standard
15172 You can decrease the space by adding an optional argument to the first item of the list.
15173  Add there the command 
15174 \family sans
15175 nolistsep
15176 \family default
15177  to get no additional list space like in this example:
15178 \end_layout
15179
15180 \begin_layout Itemize
15181 \begin_inset Argument 1
15182 status open
15183
15184 \begin_layout Plain Layout
15185 \begin_inset ERT
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189
15190 nolistsep
15191 \end_layout
15192
15193 \end_inset
15194
15195
15196 \end_layout
15197
15198 \end_inset
15199
15200 A bullet list
15201 \end_layout
15202
15203 \begin_layout Itemize
15204 without additional
15205 \end_layout
15206
15207 \begin_layout Itemize
15208 vertical space
15209 \end_layout
15210
15211 \begin_layout Standard
15212 To add space you can use several other commands provided by the 
15213 \family sans
15214 enumitem
15215 \family default
15216
15217 \begin_inset Index idx
15218 range none
15219 pageformat default
15220 status collapsed
15221
15222 \begin_layout Plain Layout
15223 \SpecialChar LaTeX
15224 -packages !
15225  enumitem
15226 \end_layout
15227
15228 \end_inset
15229
15230  package.
15231  For more information see the 
15232 \begin_inset CommandInset href
15233 LatexCommand href
15234 name "enumitem documentation"
15235 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15236 literal "false"
15237
15238 \end_inset
15239
15240 .
15241 \end_layout
15242
15243 \begin_layout Standard
15244 There are also many commands available to change the horizontal spacing and indentation.
15245  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
15246 \begin_inset space \thinspace{}
15247 \end_inset
15248
15249 cm so that the number is in the page margin:
15250 \end_layout
15251
15252 \begin_layout Enumerate
15253 \begin_inset Argument 1
15254 status open
15255
15256 \begin_layout Plain Layout
15257 \begin_inset ERT
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261
15262 labelindent=
15263 \backslash
15264 parindent,
15265  labelsep=2cm
15266 \end_layout
15267
15268 \end_inset
15269
15270
15271 \end_layout
15272
15273 \end_inset
15274
15275 An enumeration
15276 \end_layout
15277
15278 \begin_layout Enumerate
15279 with negative indentation
15280 \end_layout
15281
15282 \begin_layout Subsubsection
15283 Further Customization
15284 \begin_inset Index idx
15285 range none
15286 pageformat default
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 Lists !
15291  Customization
15292 \end_layout
15293
15294 \end_inset
15295
15296
15297 \end_layout
15298
15299 \begin_layout Standard
15300 You can also change the style of description lists.
15301  The command
15302 \end_layout
15303
15304 \begin_layout Standard
15305
15306 \family sans
15307 font=definition
15308 \end_layout
15309
15310 \begin_layout Standard
15311 changes the description label font,
15312  the command
15313 \end_layout
15314
15315 \begin_layout Standard
15316
15317 \family sans
15318 style=definitio
15319 \family default
15320 \series bold
15321 n
15322 \end_layout
15323
15324 \begin_layout Standard
15325 sets the list style.
15326 \end_layout
15327
15328 \begin_layout Standard
15329 An example where the command
15330 \end_layout
15331
15332 \begin_layout Standard
15333
15334 \family sans
15335 font=
15336 \backslash
15337 itshape,
15338  style=nextline
15339 \end_layout
15340
15341 \begin_layout Standard
15342 is used:
15343 \end_layout
15344
15345 \begin_layout Description
15346 Ionizing
15347 \begin_inset space ~
15348 \end_inset
15349
15350 radiation:
15351  
15352 \begin_inset Argument 1
15353 status collapsed
15354
15355 \begin_layout Plain Layout
15356 \begin_inset ERT
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360
15361 labelindent=0pt,
15362  labelsep=1cm,
15363  font=
15364 \backslash
15365 itshape,
15366  style=nextline
15367 \end_layout
15368
15369 \end_inset
15370
15371
15372 \end_layout
15373
15374 \end_inset
15375
15376 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
15377  therefore ionizing them.
15378 \end_layout
15379
15380 \begin_layout Description
15381 Reference
15382 \begin_inset space ~
15383 \end_inset
15384
15385 counting:
15386  In computer science,
15387  reference counting is a technique of storing the number of references,
15388  pointers,
15389  or handles to a resource such as an object,
15390  block of memory,
15391  disk space or other resource.
15392 \end_layout
15393
15394 \begin_layout Standard
15395 There are many more commands and features provided by the 
15396 \family sans
15397 enumitem
15398 \family default
15399
15400 \begin_inset Index idx
15401 range none
15402 pageformat default
15403 status collapsed
15404
15405 \begin_layout Plain Layout
15406 \SpecialChar LaTeX
15407 -packages !
15408  enumitem
15409 \end_layout
15410
15411 \end_inset
15412
15413  package.
15414  For more information see the 
15415 \begin_inset CommandInset href
15416 LatexCommand href
15417 name "enumitem documentation"
15418 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15419 literal "false"
15420
15421 \end_inset
15422
15423 .
15424 \end_layout
15425
15426 \begin_layout Subsection
15427
15428 \series bold
15429 Paragraph Lists
15430 \end_layout
15431
15432 \begin_layout Standard
15433 This module uses the package 
15434 \family sans
15435 paralist
15436 \family default
15437  to provide nine new list environments.
15438  Itemized and enumerated lists can be typeset within paragraphs,
15439  as paragraphs and in a compact version.
15440  Most environments have optional arguments to format the labels.
15441  Additionally,
15442  the \SpecialChar LaTeX
15443  list environments itemize and enumerate are extended to use a similar optional argument.
15444  For further details see 
15445 \family sans
15446 File\SpecialChar menuseparator
15447 Open Example\SpecialChar menuseparator
15448 Modules\SpecialChar menuseparator
15449 Paragraph Lists (paralist)
15450 \family default
15451 ,
15452  
15453 \family sans
15454 Help\SpecialChar menuseparator
15455 Specific Manuals\SpecialChar menuseparator
15456 Paralist
15457 \family default
15458  and the 
15459 \begin_inset CommandInset href
15460 LatexCommand href
15461 name "paralist documentation"
15462 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
15463 literal "false"
15464
15465 \end_inset
15466
15467 .
15468 \end_layout
15469
15470 \begin_layout Section
15471 Literate Programming
15472 \end_layout
15473
15474 \begin_layout Subsection
15475 Noweb
15476 \end_layout
15477
15478 \begin_layout Standard
15479 This module allows the use of Noweb as a literate programming tool.
15480  The files and the documentation for Noweb can be obtained from 
15481 \begin_inset CommandInset href
15482 LatexCommand href
15483 name "CTAN"
15484 target "https://www.ctan.org/pkg/noweb"
15485 literal "false"
15486
15487 \end_inset
15488
15489 .
15490  Literate programming is described in section
15491 \begin_inset space ~
15492 \end_inset
15493
15494
15495 \begin_inset CommandInset ref
15496 LatexCommand ref
15497 reference "sec:Literate-Programming"
15498 nolink "false"
15499
15500 \end_inset
15501
15502  and there are three example files:
15503  
15504 \family sans
15505 File\SpecialChar menuseparator
15506 Open Example\SpecialChar menuseparator
15507 Modules\SpecialChar menuseparator
15508 Noweb
15509 \family default
15510 ,
15511  
15512 \family sans
15513 File\SpecialChar menuseparator
15514 Open Example\SpecialChar menuseparator
15515 Modules\SpecialChar menuseparator
15516 Noweb Listerrors
15517 \family default
15518  and 
15519 \family sans
15520 File\SpecialChar menuseparator
15521 Open Example\SpecialChar menuseparator
15522 Modules\SpecialChar menuseparator
15523 Noweb2\SpecialChar LyX
15524
15525 \family default
15526 .
15527 \end_layout
15528
15529 \begin_layout Subsection
15530 Rnw (knitr)
15531 \end_layout
15532
15533 \begin_layout Standard
15534 This module uses the 
15535 \family typewriter
15536 knitr
15537 \family default
15538  and 
15539 \family sans
15540 includernw
15541 \family default
15542  packages.
15543  The
15544 \begin_inset Flex Code
15545 status collapsed
15546
15547 \begin_layout Plain Layout
15548 knitr
15549 \end_layout
15550
15551 \end_inset
15552
15553  package in R for dynamic report generation has to be installed for this module to work:
15554  
15555 \begin_inset Flex Code
15556 status collapsed
15557
15558 \begin_layout Plain Layout
15559 install.packages(“knitr”)
15560 \end_layout
15561
15562 \end_inset
15563
15564 .
15565 \end_layout
15566
15567 \begin_layout Paragraph
15568 Note
15569 \end_layout
15570
15571 \begin_layout Itemize
15572 it depends on R >= 2.14.1.
15573  For more info see 
15574 \begin_inset Flex URL
15575 status collapsed
15576
15577 \begin_layout Plain Layout
15578
15579 http://yihui.name/knitr
15580 \end_layout
15581
15582 \end_inset
15583
15584 .
15585 \end_layout
15586
15587 \begin_layout Itemize
15588 The package 
15589 \family sans
15590 includernw
15591 \family default
15592  also has to be installed.
15593 \end_layout
15594
15595 \begin_layout Itemize
15596 It cannot be used if the modules 
15597 \family sans
15598 LilyPond
15599 \begin_inset space ~
15600 \end_inset
15601
15602 Book
15603 \family default
15604  or 
15605 \family sans
15606 Sweave
15607 \family default
15608  are loaded.
15609 \end_layout
15610
15611 \begin_layout Standard
15612 See 
15613 \family sans
15614 Help\SpecialChar menuseparator
15615 Specific Manuals\SpecialChar menuseparator
15616 Knitr
15617 \family default
15618 ,
15619  
15620 \family sans
15621 File\SpecialChar menuseparator
15622 Open Example\SpecialChar menuseparator
15623 Modules\SpecialChar menuseparator
15624 Rnw (knitr)
15625 \family default
15626  and section
15627 \begin_inset space ~
15628 \end_inset
15629
15630
15631 \begin_inset CommandInset ref
15632 LatexCommand ref
15633 reference "sec:Literate-Programming"
15634 nolink "false"
15635
15636 \end_inset
15637
15638  for information about literate programming.
15639 \end_layout
15640
15641 \begin_layout Subsection
15642 Sweave
15643 \end_layout
15644
15645 \begin_layout Standard
15646 This module allows the use of the statistical language S/R as a literate programming tool.
15647  It requires the 
15648 \family sans
15649 includernw
15650 \family default
15651  and 
15652 \family sans
15653 fancyvrb
15654 \family default
15655  packages.
15656  Both 
15657 \begin_inset CommandInset href
15658 LatexCommand href
15659 name "includernw"
15660 target "https://www.ctan.org/pkg/includernw"
15661 literal "false"
15662
15663 \end_inset
15664
15665  and 
15666 \begin_inset CommandInset href
15667 LatexCommand href
15668 name "fancyvrb"
15669 target "https://www.ctan.org/pkg/fancyvrb"
15670 literal "false"
15671
15672 \end_inset
15673
15674  are available from CTAN.
15675  It cannot be used if the module 
15676 \family sans
15677 LilyPond
15678 \begin_inset space ~
15679 \end_inset
15680
15681 Book
15682 \family default
15683  has been loaded.
15684  See 
15685 \family sans
15686 Help\SpecialChar menuseparator
15687 Specific Manuals\SpecialChar menuseparator
15688 Sweave,
15689
15690 \family default
15691  
15692 \family sans
15693 File\SpecialChar menuseparator
15694 Open Example\SpecialChar menuseparator
15695 Modules\SpecialChar menuseparator
15696 Sweave
15697 \family default
15698  and section
15699 \begin_inset space ~
15700 \end_inset
15701
15702
15703 \begin_inset CommandInset ref
15704 LatexCommand ref
15705 reference "sec:Literate-Programming"
15706 nolink "false"
15707
15708 \end_inset
15709
15710  for information about literate programming.
15711 \end_layout
15712
15713 \begin_layout Section
15714 Maths
15715 \end_layout
15716
15717 \begin_layout Subsection
15718 AMS Theorems
15719 \end_layout
15720
15721 \begin_layout Standard
15722 This modules defines theorem environments and the proof environment using the extended AMS machinery.
15723  Both numbered and unnumbered types are provided.
15724  By default,
15725  the theorems are numbered consecutively throughout the document.
15726  This can be changed by loading one of the 
15727 \family sans
15728 AMS Theorems (Numbered by \SpecialChar ldots
15729 )
15730 \family default
15731  modules.
15732  It cannot be used if the modules 
15733 \family sans
15734 Standard Theorems
15735 \family default
15736  or 
15737 \family sans
15738 Standard Theorems (Unnumbered)
15739 \family default
15740  have been loaded.
15741 \end_layout
15742
15743 \begin_layout Subsection
15744 AMS Theorems (Extended)
15745 \end_layout
15746
15747 \begin_layout Standard
15748 This module defines some additional theorem environments for use with the 
15749 \family sans
15750 AMS Theorems
15751 \family default
15752  package (which must be loaded).
15753  It includes 
15754 \family sans
15755 Criterion
15756 \family default
15757 ,
15758  
15759 \family sans
15760 Algorithm
15761 \family default
15762 ,
15763  
15764 \family sans
15765 Axiom
15766 \family default
15767 ,
15768  
15769 \family sans
15770 Condition
15771 \family default
15772 ,
15773  
15774 \family sans
15775 Note
15776 \family default
15777 ,
15778  
15779 \family sans
15780 Notation
15781 \family default
15782 ,
15783  
15784 \family sans
15785 Summary
15786 \family default
15787 ,
15788  
15789 \family sans
15790 Conclusion
15791 \family default
15792 ,
15793  
15794 \family sans
15795 Fact
15796 \family default
15797 ,
15798  
15799 \family sans
15800 Assumption
15801 \family default
15802 ,
15803  
15804 \family sans
15805 Case
15806 \family default
15807  and 
15808 \family sans
15809 Question
15810 \family default
15811  in both numbered and unnumbered forms.
15812 \end_layout
15813
15814 \begin_layout Subsection
15815 AMS Theorems (Extended,
15816  Numbered by Type within Chapters)
15817 \end_layout
15818
15819 \begin_layout Standard
15820 This module defines some additional theorem environments for use with the 
15821 \family sans
15822 AMS Theorems (Numbered by Type within Chapters)
15823 \family default
15824  module (which must be loaded).
15825  It includes 
15826 \family sans
15827 Criterion
15828 \family default
15829 ,
15830  
15831 \family sans
15832 Algorithm
15833 \family default
15834 ,
15835  
15836 \family sans
15837 Axiom
15838 \family default
15839 ,
15840  
15841 \family sans
15842 Condition
15843 \family default
15844 ,
15845  
15846 \family sans
15847 Note
15848 \family default
15849 ,
15850  
15851 \family sans
15852 Notation
15853 \family default
15854 ,
15855  
15856 \family sans
15857 Summary
15858 \family default
15859 ,
15860  
15861 \family sans
15862 Conclusion
15863 \family default
15864 ,
15865  
15866 \family sans
15867 Assumption
15868 \family default
15869  and 
15870 \family sans
15871 Case
15872 \family default
15873  in both numbered and unnumbered forms.
15874 \end_layout
15875
15876 \begin_layout Standard
15877 Unlike the 
15878 \family sans
15879 AMS Theorems (Extended)
15880 \family default
15881  module,
15882  the different theorem types provided here each have a separate counter,
15883  restarted with each new chapter (e.g.,
15884  
15885 \emph on
15886 Criterion 1.1
15887 \emph default
15888 ,
15889  
15890 \emph on
15891 Criterion 1.2
15892 \emph default
15893 ,
15894  
15895 \emph on
15896 Axiom 1.1
15897 \emph default
15898 ,
15899  
15900 \emph on
15901 Assumption 1.1
15902 \emph default
15903 ,
15904  
15905 \emph on
15906 Criterion 2.1
15907 \emph default
15908 ,
15909  
15910 \emph on
15911 Criterion 2.2
15912 \emph default
15913 ,
15914
15915 \emph on
15916  Axiom 2.1
15917 \emph default
15918 ,
15919  \SpecialChar ldots
15920 ,
15921  as opposed to 
15922 \emph on
15923 Criterion 1
15924 \emph default
15925 ,
15926  
15927 \emph on
15928 Criterion 2
15929 \emph default
15930 ,
15931  
15932 \emph on
15933 Axiom 3
15934 \emph default
15935 ,
15936  
15937 \emph on
15938 Assumption 4
15939 \emph default
15940 ,
15941  \SpecialChar ldots
15942 ).
15943 \end_layout
15944
15945 \begin_layout Subsection
15946 AMS Theorems (Extended,
15947  Numbered by Type)
15948 \end_layout
15949
15950 \begin_layout Standard
15951 This module defines some additional theorem environments for use with the 
15952 \family sans
15953 AMS Theorems (Numbered by Type)
15954 \family default
15955  package (which must be loaded).
15956  It includes 
15957 \family sans
15958 Criterion
15959 \family default
15960 ,
15961  
15962 \family sans
15963 Algorithm
15964 \family default
15965 ,
15966  
15967 \family sans
15968 Axiom
15969 \family default
15970 ,
15971  
15972 \family sans
15973 Condition
15974 \family default
15975 ,
15976  
15977 \family sans
15978 Note
15979 \family default
15980 ,
15981  
15982 \family sans
15983 Notation
15984 \family default
15985 ,
15986  
15987 \family sans
15988 Summary
15989 \family default
15990 ,
15991  
15992 \family sans
15993 Conclusion
15994 \family default
15995 ,
15996  
15997 \family sans
15998 Assumption
15999 \family default
16000  and 
16001 \family sans
16002 Case
16003 \family default
16004  in both numbered and unnumbered forms.
16005 \end_layout
16006
16007 \begin_layout Standard
16008 Unlike the 
16009 \family sans
16010 AMS Theorems (Extended)
16011 \family default
16012  module,
16013  the different theorem types provided here each have a separate counter (e.g.,
16014  
16015 \emph on
16016 Criterion 1
16017 \emph default
16018 ,
16019  
16020 \emph on
16021 Criterion 2
16022 \emph default
16023 ,
16024  
16025 \emph on
16026 Axiom 1
16027 \emph default
16028 ,
16029  
16030 \emph on
16031 Assumption 1
16032 \emph default
16033 ,
16034  
16035 \emph on
16036 Criterion 3
16037 \emph default
16038 ,
16039  \SpecialChar ldots
16040 ,
16041  as opposed to 
16042 \emph on
16043 Criterion 1
16044 \emph default
16045 ,
16046  
16047 \emph on
16048 Criterion 2
16049 \emph default
16050 ,
16051  
16052 \emph on
16053 Axiom 3
16054 \emph default
16055 ,
16056  
16057 \emph on
16058 Assumption 4
16059 \emph default
16060 ,
16061  \SpecialChar ldots
16062 ).
16063 \end_layout
16064
16065 \begin_layout Subsection
16066 AMS Theorems (Numbered by Type within Chapters)
16067 \end_layout
16068
16069 \begin_layout Standard
16070 This module defines theorem environments and the proof environment using the extended AMS machinery.
16071  Both numbered and unnumbered types are provided.
16072 \end_layout
16073
16074 \begin_layout Standard
16075 Unlike the 
16076 \family sans
16077 AMS Theorems
16078 \family default
16079  module,
16080  the different theorem types provided here each have a separate counter (e.g.,
16081  
16082 \emph on
16083 Theorem 1.1
16084 \emph default
16085 ,
16086  
16087 \emph on
16088 Theorem 1.2
16089 \emph default
16090 ,
16091  
16092 \emph on
16093 Lemma 1.1
16094 \emph default
16095 ,
16096  
16097 \emph on
16098 Proposition 1.1
16099 \emph default
16100 ,
16101  
16102 \emph on
16103 Theorem 1.3
16104 \emph default
16105 ,
16106  
16107 \emph on
16108 Lemma 1.2
16109 \emph default
16110 ,
16111  \SpecialChar ldots
16112 ,
16113  as opposed to 
16114 \emph on
16115 Theorem 1
16116 \emph default
16117 ,
16118  
16119 \emph on
16120 Theorem 2
16121 \emph default
16122 ,
16123  
16124 \emph on
16125 Lemma 3
16126 \emph default
16127 ,
16128  
16129 \emph on
16130 Proposition 4
16131 \emph default
16132 ,
16133  \SpecialChar ldots
16134 ).
16135  The numbering restarts for each chapter:
16136  
16137 \emph on
16138 Theorem 1.1
16139 \emph default
16140 ,
16141  
16142 \emph on
16143 Theorem 2.1
16144 \emph default
16145 ,
16146  \SpecialChar ldots
16147
16148 \end_layout
16149
16150 \begin_layout Standard
16151 It cannot be used if the modules 
16152 \family sans
16153 AMS Theorems
16154 \family default
16155 ,
16156  
16157 \family sans
16158 Standard Theorems
16159 \family default
16160 ,
16161
16162 \family sans
16163  Standard Theorems (Numbered by Type)
16164 \family default
16165  or
16166 \family sans
16167  Standard Theorems (Unnumbered)
16168 \family default
16169  have been loaded.
16170 \end_layout
16171
16172 \begin_layout Subsection
16173 AMS Theorems (Numbered by Type)
16174 \end_layout
16175
16176 \begin_layout Standard
16177 This module defines theorem environments and the proof environment using the extended AMS machinery.
16178  Both numbered and unnumbered types are provided.
16179  Unlike the 
16180 \family sans
16181 AMS Theorems
16182 \family default
16183  module,
16184  the different theorem types provided here each have a separate counter (e.g.,
16185  
16186 \emph on
16187 Theorem 1
16188 \emph default
16189 ,
16190  
16191 \emph on
16192 Theorem 2
16193 \emph default
16194 ,
16195  
16196 \emph on
16197 Lemma 1
16198 \emph default
16199 ,
16200  
16201 \emph on
16202 Proposition 1
16203 \emph default
16204 ,
16205  
16206 \emph on
16207 Theorem 3
16208 \emph default
16209 ,
16210  
16211 \emph on
16212 Lemma 2
16213 \emph default
16214 ,
16215  \SpecialChar ldots
16216 ,
16217  as opposed to 
16218 \emph on
16219 Theorem 1
16220 \emph default
16221 ,
16222  
16223 \emph on
16224 Theorem 2
16225 \emph default
16226 ,
16227  
16228 \emph on
16229 Lemma 3
16230 \emph default
16231 ,
16232  
16233 \emph on
16234 Proposition 4
16235 \emph default
16236 ,
16237  \SpecialChar ldots
16238 ).
16239  The numbering’s scope is the whole document.
16240  For chapter- and section-wide numbering,
16241  use one of the ‘within Sections’/‘within Chapters’ modules,
16242  respectively.
16243 \end_layout
16244
16245 \begin_layout Standard
16246 It cannot be used if the modules 
16247 \family sans
16248 AMS Theorems
16249 \family default
16250 ,
16251  
16252 \family sans
16253 Standard Theorems
16254 \family default
16255 ,
16256
16257 \family sans
16258  Standard Theorems (Numbered by Type)
16259 \family default
16260  or
16261 \family sans
16262  Standard Theorems (Unnumbered)
16263 \family default
16264  have been loaded.
16265 \end_layout
16266
16267 \begin_layout Subsection
16268 Number Equations by Section
16269 \end_layout
16270
16271 \begin_layout Standard
16272 This module resets the equation number at section start and prepends the section number to the equation number,
16273  as in 
16274 \emph on
16275 (2.1)
16276 \emph default
16277 .
16278 \end_layout
16279
16280 \begin_layout Subsection
16281 Standard Theorems
16282 \end_layout
16283
16284 \begin_layout Standard
16285 This module defines some theorem environments for use with non-AMS classes.
16286  By default,
16287  the theorems are numbered consecutively throughout the document.
16288  This can be changed by loading one of the 
16289 \family sans
16290 Standard Theorems (Numbered by \SpecialChar ldots
16291 )
16292 \family default
16293  modules.
16294 \end_layout
16295
16296 \begin_layout Standard
16297 It cannot be used if the modules 
16298 \family sans
16299 AMS Theorems
16300 \family default
16301  or
16302 \family sans
16303  Standard Theorems (Unnumbered)
16304 \family default
16305  have been loaded.
16306 \end_layout
16307
16308 \begin_layout Subsection
16309 Standard Theorems (Nameable)
16310 \end_layout
16311
16312 \begin_layout Standard
16313 This module facilitates the use of named theorems.
16314  The name of the theorem can be inserted via 
16315 \family sans
16316 Insert\SpecialChar menuseparator
16317 Additional Theorem Text
16318 \family default
16319 .
16320 \end_layout
16321
16322 \begin_layout Subsection
16323 Standard Theorems (Numbered by Chapter)
16324 \end_layout
16325
16326 \begin_layout Standard
16327 This module numbers theorems and the like by chapter (i.e.,
16328  the counter is reset at each chapter start).
16329  Use this module only with document classes that provide a chapter environment.
16330 \end_layout
16331
16332 \begin_layout Standard
16333 One of the modules 
16334 \family sans
16335 AMS Theorems
16336 \family default
16337  or 
16338 \family sans
16339 Standard Theorems
16340 \family default
16341  must be loaded.
16342 \end_layout
16343
16344 \begin_layout Standard
16345 It cannot be used if the module
16346 \family sans
16347  Standard Theorems (Numbered by Section)
16348 \family default
16349  has been loaded.
16350 \end_layout
16351
16352 \begin_layout Subsection
16353 Standard Theorems (Numbered by Section)
16354 \end_layout
16355
16356 \begin_layout Standard
16357 This module numbers theorems and the like by section (i.e.,
16358  the counter is reset at each section start).
16359  One of the modules 
16360 \family sans
16361 AMS Theorems
16362 \family default
16363  or 
16364 \family sans
16365 Standard Theorems
16366 \family default
16367  must be loaded.
16368  It cannot be used if the module
16369 \family sans
16370  Standard Theorems (Numbered by Chapter)
16371 \family default
16372  has been loaded.
16373 \end_layout
16374
16375 \begin_layout Subsection
16376 Standard Theorems (Numbered by Type within Chapters)
16377 \end_layout
16378
16379 \begin_layout Standard
16380 This module defines some theorem environments for use with non-AMS classes.
16381  Unlike the
16382 \family sans
16383  AMS Theorems
16384 \family default
16385  and 
16386 \family sans
16387 Standard Theorems
16388 \family default
16389  modules,
16390  the different theorem types provided here each have a separate counter (e.g.,
16391  
16392 \emph on
16393 Theorem 1
16394 \emph default
16395 ,
16396  
16397 \emph on
16398 Theorem 2
16399 \emph default
16400 ,
16401  
16402 \emph on
16403 Lemma 1
16404 \emph default
16405 ,
16406  
16407 \emph on
16408 Proposition 1
16409 \emph default
16410 ,
16411  
16412 \emph on
16413 Theorem 3
16414 \emph default
16415 ,
16416  
16417 \emph on
16418 Lemma 2
16419 \emph default
16420 ,
16421  \SpecialChar ldots
16422 ,
16423  as opposed to 
16424 \emph on
16425 Theorem 1
16426 \emph default
16427 ,
16428  
16429 \emph on
16430 Theorem 2
16431 \emph default
16432 ,
16433  
16434 \emph on
16435 Lemma 3
16436 \emph default
16437 ,
16438  
16439 \emph on
16440 Proposition 4
16441 \emph default
16442 ,
16443  \SpecialChar ldots
16444 ).
16445  The numbering is reset at each chapter start.
16446 \end_layout
16447
16448 \begin_layout Standard
16449 One of the modules 
16450 \family sans
16451 AMS Theorems (Numbered by Type)
16452 \family default
16453  or 
16454 \family sans
16455 Standard Theorems (Numbered by Type)
16456 \family default
16457  must be loaded.
16458 \end_layout
16459
16460 \begin_layout Standard
16461 It cannot be used if any of the modules
16462 \family sans
16463  AMS Theorems
16464 \family default
16465 ,
16466  
16467 \family sans
16468 Standard Theorems
16469 \family default
16470 ,
16471  
16472 \family sans
16473 Standard Theorems (Unnumbered)
16474 \family default
16475 ,
16476
16477 \family sans
16478  Standard Theorems (Numbered by Sections)
16479 \family default
16480  or 
16481 \family sans
16482 Standard Theorems (Numbered by Type within Sections)
16483 \family default
16484  have been loaded.
16485 \end_layout
16486
16487 \begin_layout Subsection
16488 Standard Theorems (Numbered by Type within Sections)
16489 \end_layout
16490
16491 \begin_layout Standard
16492 This module defines some theorem environments for use with non-AMS classes.
16493  Unlike the
16494 \family sans
16495  AMS Theorems
16496 \family default
16497  and 
16498 \family sans
16499 Standard Theorems
16500 \family default
16501  modules,
16502  the different theorem types provided here each have a separate counter (e.g.,
16503  
16504 \emph on
16505 Theorem 1
16506 \emph default
16507 ,
16508  
16509 \emph on
16510 Theorem 2
16511 \emph default
16512 ,
16513  
16514 \emph on
16515 Lemma 1
16516 \emph default
16517 ,
16518  
16519 \emph on
16520 Proposition 1
16521 \emph default
16522 ,
16523  
16524 \emph on
16525 Theorem 3
16526 \emph default
16527 ,
16528  
16529 \emph on
16530 Lemma 2
16531 \emph default
16532 ,
16533  \SpecialChar ldots
16534 ,
16535  as opposed to 
16536 \emph on
16537 Theorem 1
16538 \emph default
16539 ,
16540  
16541 \emph on
16542 Theorem 2
16543 \emph default
16544 ,
16545  
16546 \emph on
16547 Lemma 3
16548 \emph default
16549 ,
16550  
16551 \emph on
16552 Proposition 4
16553 \emph default
16554 ,
16555  \SpecialChar ldots
16556 ).
16557  The numbering is reset at each section start.
16558 \end_layout
16559
16560 \begin_layout Standard
16561 One of the modules 
16562 \family sans
16563 AMS Theorems (Numbered by Type)
16564 \family default
16565  or 
16566 \family sans
16567 Standard Theorems (Numbered by Type)
16568 \family default
16569  must be loaded.
16570 \end_layout
16571
16572 \begin_layout Standard
16573 It cannot be used if any of the modules
16574 \family sans
16575  AMS Theorems
16576 \family default
16577 ,
16578  
16579 \family sans
16580 Standard Theorems
16581 \family default
16582 ,
16583  
16584 \family sans
16585 Standard Theorems (Unnumbered)
16586 \family default
16587 ,
16588
16589 \family sans
16590  Standard Theorems (Numbered by Chapters)
16591 \family default
16592  or 
16593 \family sans
16594 Standard Theorems (Numbered by Type within Chapters)
16595 \family default
16596  have been loaded.
16597 \end_layout
16598
16599 \begin_layout Subsection
16600 Standard Theorems (Numbered by Type)
16601 \end_layout
16602
16603 \begin_layout Standard
16604 This module defines some theorem environments for use with non-AMS classes.
16605  Unlike the 
16606 \family sans
16607 AMS Theorems
16608 \family default
16609  and 
16610 \family sans
16611 Standard Theorems
16612 \family default
16613  modules,
16614  the different theorem types provided here each have a separate counter (e.g.,
16615  
16616 \emph on
16617 Theorem 1
16618 \emph default
16619 ,
16620  
16621 \emph on
16622 Theorem 2
16623 \emph default
16624 ,
16625  
16626 \emph on
16627 Lemma 1
16628 \emph default
16629 ,
16630  
16631 \emph on
16632 Proposition 1
16633 \emph default
16634 ,
16635  
16636 \emph on
16637 Theorem 3
16638 \emph default
16639 ,
16640  
16641 \emph on
16642 Lemma 2
16643 \emph default
16644 ,
16645  \SpecialChar ldots
16646 ,
16647  as opposed to 
16648 \emph on
16649 Theorem 1
16650 \emph default
16651 ,
16652  
16653 \emph on
16654 Theorem 2
16655 \emph default
16656 ,
16657  
16658 \emph on
16659 Lemma 3
16660 \emph default
16661 ,
16662  
16663 \emph on
16664 Proposition 4
16665 \emph default
16666 ,
16667  \SpecialChar ldots
16668 ).
16669  The numbering’s scope is the whole document.
16670  For chapter- and section-wide numbering,
16671  use one of the “within Chapters”/“within Sections” modules,
16672  respectively.
16673 \end_layout
16674
16675 \begin_layout Standard
16676 It cannot be used if any of the modules
16677 \family sans
16678  AMS Theorems
16679 \family default
16680 ,
16681  
16682 \family sans
16683 Standard Theorems
16684 \family default
16685 ,
16686  
16687 \family sans
16688 Standard Theorems (Unnumbered)
16689 \family default
16690  or
16691 \family sans
16692  AMS Theorems (Numbered by Type)
16693 \family default
16694  have been loaded.
16695 \end_layout
16696
16697 \begin_layout Subsection
16698 Standard Theorems (Unnumbered)
16699 \end_layout
16700
16701 \begin_layout Standard
16702 This module defines only unnumbered theorem environments and the proof environment,
16703  using the extended AMS machinery.
16704  It cannot be used if either of the modules
16705 \family sans
16706  AMS Theorems
16707 \family default
16708  or
16709 \family sans
16710  Standard Theorems
16711 \family default
16712  have been loaded.
16713 \end_layout
16714
16715 \begin_layout Subsection
16716 Subequations
16717 \end_layout
16718
16719 \begin_layout Standard
16720 This module provides a straightforward way to segregate subequations in LyX.
16721  See 
16722 \family sans
16723 Help\SpecialChar menuseparator
16724 Math\SpecialChar menuseparator
16725 Subnumbering
16726 \family default
16727 .
16728 \end_layout
16729
16730 \begin_layout Section
16731 Page Layout
16732 \end_layout
16733
16734 \begin_layout Subsection
16735 Custom Header/Footer Text
16736 \end_layout
16737
16738 \begin_layout Standard
16739 This module requires the 
16740 \family sans
16741 Page
16742 \begin_inset space ~
16743 \end_inset
16744
16745
16746 \bar under
16747 s
16748 \bar default
16749 tyle
16750 \family default
16751  option in the 
16752 \family sans
16753 \bar under
16754 D
16755 \bar default
16756 ocument\SpecialChar menuseparator
16757
16758 \bar under
16759 S
16760 \bar default
16761 ettings\SpecialChar menuseparator
16762 Page
16763 \begin_inset space ~
16764 \end_inset
16765
16766 Layout
16767 \family default
16768  dialog to be set to 
16769 \family typewriter
16770 fancy
16771 \family default
16772 .
16773  It adds six environments to document classes which support the 
16774 \family typewriter
16775 fancyhdr
16776 \family default
16777  package:
16778 \end_layout
16779
16780 \begin_layout Itemize
16781
16782 \family sans
16783 Left Header
16784 \end_layout
16785
16786 \begin_layout Itemize
16787
16788 \family sans
16789 Center Header
16790 \end_layout
16791
16792 \begin_layout Itemize
16793
16794 \family sans
16795 Right Header
16796 \end_layout
16797
16798 \begin_layout Itemize
16799
16800 \family sans
16801 Left Footer
16802 \end_layout
16803
16804 \begin_layout Itemize
16805
16806 \family sans
16807 Center Footer
16808 \end_layout
16809
16810 \begin_layout Itemize
16811
16812 \family sans
16813 Right Footer
16814 \end_layout
16815
16816 \begin_layout Subsubsection
16817 Fancy Headers and Footers
16818 \end_layout
16819
16820 \begin_layout Standard
16821 The default page layout is rather plain;
16822  for an 
16823 \family sans
16824 Article (Standard Class)
16825 \family default
16826  document class,
16827  all you get is a centered page number at the bottom of the page.
16828  This document uses the 
16829 \family sans
16830 KOMA-Script Book
16831 \family default
16832  class;
16833  so it appears to be a bit fancier.
16834 \end_layout
16835
16836 \begin_layout Standard
16837 Once the 
16838 \family sans
16839 Page
16840 \begin_inset space ~
16841 \end_inset
16842
16843
16844 \bar under
16845 s
16846 \bar default
16847 tyle
16848 \family default
16849  in 
16850 \family sans
16851 \bar under
16852 D
16853 \bar default
16854 ocument\SpecialChar menuseparator
16855
16856 \bar under
16857 S
16858 \bar default
16859 ettings\SpecialChar menuseparator
16860 Page Layout
16861 \family default
16862  is set to 
16863 \begin_inset Quotes eld
16864 \end_inset
16865
16866 fancy
16867 \begin_inset Quotes erd
16868 \end_inset
16869
16870 ,
16871  you will find that the page header is divided into three fields,
16872  not surprisingly labeled 
16873 \begin_inset Quotes eld
16874 \end_inset
16875
16876 left
16877 \begin_inset Quotes erd
16878 \end_inset
16879
16880 ,
16881  
16882 \begin_inset Quotes eld
16883 \end_inset
16884
16885 center
16886 \begin_inset Quotes erd
16887 \end_inset
16888
16889 ,
16890  and 
16891 \begin_inset Quotes eld
16892 \end_inset
16893
16894 right
16895 \begin_inset Quotes erd
16896 \end_inset
16897
16898 .
16899  The footer is also divided into these three fields.
16900  The \SpecialChar LaTeX
16901  commands to set these fields in the simplest manner are 
16902 \family typewriter
16903
16904 \backslash
16905 lhead
16906 \family default
16907 ,
16908  
16909 \family typewriter
16910
16911 \backslash
16912 chead
16913 \family default
16914 ,
16915  
16916 \family typewriter
16917
16918 \backslash
16919 rhead
16920 \family default
16921 ,
16922  
16923 \family typewriter
16924
16925 \backslash
16926 lfoot
16927 \family default
16928 ,
16929  etc.
16930  Suppose you wish to put your name in the upper left hand corner of each page.
16931  Simply insert the following command in the preamble:
16932 \end_layout
16933
16934 \begin_layout LyX-Code
16935
16936 \backslash
16937 lhead{John Q.
16938  DocWriter}
16939 \end_layout
16940
16941 \begin_layout Standard
16942 You will now see your name in the upper left.
16943  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,
16944  e.
16945 \begin_inset space \thinspace{}
16946 \end_inset
16947
16948 g.:
16949 \end_layout
16950
16951 \begin_layout LyX-Code
16952
16953 \backslash
16954 cfoot{}
16955 \end_layout
16956
16957 \begin_layout Standard
16958 There is,
16959  however,
16960  an easier way to make simple changes.
16961  If you load the 
16962 \family sans
16963 \bar under
16964 D
16965 \bar default
16966 ocument\SpecialChar menuseparator
16967
16968 \bar under
16969 S
16970 \bar default
16971 ettings\SpecialChar menuseparator
16972 Modules\SpecialChar menuseparator
16973 Page Layout\SpecialChar menuseparator
16974 Custom Header/Footer Text
16975 \family default
16976  module,
16977  you will find you have six new environments corresponding to the six fields described above.
16978 \end_layout
16979
16980 \begin_layout Standard
16981 Let's get really fancy:
16982  lets put the section number with the word 
16983 \begin_inset Quotes eld
16984 \end_inset
16985
16986 Section
16987 \begin_inset Quotes erd
16988 \end_inset
16989
16990  (e.
16991 \begin_inset space \thinspace{}
16992 \end_inset
16993
16994 g.
16995 \begin_inset space \space{}
16996 \end_inset
16997
16998 Section 3) in the upper left,
16999  the page number (e.
17000 \begin_inset space \thinspace{}
17001 \end_inset
17002
17003 g.
17004 \begin_inset space \space{}
17005 \end_inset
17006
17007 Page 4) in the upper right,
17008  your name in the lower left,
17009  and the date in the lower right.
17010  Use your newly enabled environments to add these entries:
17011 \end_layout
17012
17013 \begin_layout LyX-Code
17014
17015 \family sans
17016 Left
17017 \begin_inset space ~
17018 \end_inset
17019
17020 header:
17021
17022 \family default
17023 \series bold
17024  
17025 \family roman
17026 \series default
17027 Section
17028 \family typewriter
17029  
17030 \family default
17031
17032 \backslash
17033 thesection
17034 \end_layout
17035
17036 \begin_layout LyX-Code
17037
17038 \family sans
17039 Center header:
17040 \end_layout
17041
17042 \begin_layout LyX-Code
17043
17044 \family sans
17045 Right header:
17046
17047 \family default
17048  
17049 \family roman
17050 Page
17051 \family typewriter
17052  
17053 \family default
17054
17055 \backslash
17056 thepage
17057 \end_layout
17058
17059 \begin_layout LyX-Code
17060
17061 \family sans
17062 Left footer:
17063
17064 \family default
17065  
17066 \family roman
17067 John Q.
17068  DocWriter
17069 \end_layout
17070
17071 \begin_layout LyX-Code
17072
17073 \family sans
17074 Center footer:
17075 \end_layout
17076
17077 \begin_layout LyX-Code
17078
17079 \family sans
17080 Right footer:
17081
17082 \family default
17083 \series bold
17084  
17085 \series default
17086
17087 \backslash
17088 today
17089 \end_layout
17090
17091 \begin_layout Standard
17092 Make sure you enter the commands 
17093 \family typewriter
17094
17095 \backslash
17096 thesection
17097 \family default
17098 ,
17099  
17100 \family typewriter
17101
17102 \backslash
17103 thepage
17104 \family default
17105  and 
17106 \family typewriter
17107
17108 \backslash
17109 today
17110 \family default
17111  as \SpecialChar TeX
17112  Code commands
17113 \series bold
17114 .
17115
17116 \series default
17117  The commands 
17118 \family typewriter
17119
17120 \backslash
17121 thesection
17122 \family default
17123  and
17124 \family typewriter
17125  
17126 \backslash
17127 thepage
17128 \family default
17129  access \SpecialChar LaTeX
17130 ’s section and page counters,
17131  and so print out the current section and page numbers.
17132  
17133 \family typewriter
17134
17135 \backslash
17136 today
17137 \family default
17138  simply prints out today’s date.
17139 \end_layout
17140
17141 \begin_layout Standard
17142 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
17143  If you don't want one of the rules,
17144  set its thickness to 0.
17145  The header rule has a default thickness of 0.4pt,
17146  the footer rule is 0pt.
17147  For this you will need to use \SpecialChar TeX
17148  Code commands like
17149 \end_layout
17150
17151 \begin_layout Standard
17152
17153 \family typewriter
17154
17155 \backslash
17156 renewcommand{
17157 \backslash
17158 headrulewidth}{0.4pt}
17159 \family default
17160  and
17161 \end_layout
17162
17163 \begin_layout Standard
17164
17165 \family typewriter
17166
17167 \backslash
17168 renewcommand{
17169 \backslash
17170 footrulewidth}{0.4pt}
17171 \family default
17172  to set the thicknesses.
17173 \end_layout
17174
17175 \begin_layout Standard
17176 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
17177  Code commands like 
17178 \family typewriter
17179
17180 \backslash
17181 thispagestyle{empty}
17182 \family default
17183 ,
17184  
17185 \family typewriter
17186
17187 \backslash
17188 thispagestyle{plain}
17189 \family default
17190 ,
17191  and 
17192 \family typewriter
17193
17194 \backslash
17195 thispagestyle{fancy}
17196 \family default
17197 .
17198  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
17199  code.
17200  In fact,
17201  title pages are marked as plain by default,
17202  while following pages are marked fancy when using the global fancy setting.
17203 \end_layout
17204
17205 \begin_layout Standard
17206 If you want a header or footer to be on the outer side of a two sided document,
17207  you need to use something like:
17208 \end_layout
17209
17210 \begin_layout LyX-Code
17211
17212 \backslash
17213 fancyfoot{}
17214 \end_layout
17215
17216 \begin_layout LyX-Code
17217
17218 \backslash
17219 fancyfoot[LE,RO]{
17220 \backslash
17221 thepage}
17222 \end_layout
17223
17224 \begin_layout Standard
17225 The first command clears all existing footers avoiding any conflicts with your new command.
17226 \end_layout
17227
17228 \begin_layout Standard
17229 You can enter any of these commands,
17230  the simpler ones in any of your new environments,
17231  the more complex ones as \SpecialChar TeX
17232  Code commands,
17233  at any point in your document and they will take effect on the next page.
17234 \end_layout
17235
17236 \begin_layout Standard
17237 As a final example,
17238  it is possible to include an image in the header or footer.
17239  Suppose you want to put a company logo in the upper left hand corner.
17240  You might try something like this in 
17241 \family sans
17242 Document\SpecialChar menuseparator
17243 Settings\SpecialChar menuseparator
17244 LaTeX Preamble
17245 \family default
17246 :
17247 \end_layout
17248
17249 \begin_layout LyX-Code
17250
17251 \backslash
17252 lhead{
17253 \backslash
17254 resizebox{1in}{!}{
17255 \backslash
17256 includegraphics{logo.png}}}
17257 \end_layout
17258
17259 \begin_layout Standard
17260 \noindent
17261 You may need to preface this with 
17262 \family typewriter
17263
17264 \backslash
17265 usepackage{graphics}
17266 \family default
17267  if you don't include graphics elsewhere in your document.
17268 \end_layout
17269
17270 \begin_layout Standard
17271 For more information on fancy headers,
17272  you can get the 
17273 \begin_inset Flex Code
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277 fancyhdr
17278 \end_layout
17279
17280 \end_inset
17281
17282  documentation from 
17283 \begin_inset CommandInset href
17284 LatexCommand href
17285 name "CTAN"
17286 target "http://www.ctan.org/pkg/fancyhdr"
17287 literal "false"
17288
17289 \end_inset
17290
17291 .
17292 \end_layout
17293
17294 \begin_layout Subsection
17295 Landscape Document Parts
17296 \end_layout
17297
17298 \begin_layout Standard
17299 This module outputs parts of the document in landscape mode using 
17300 \family sans
17301 Insert\SpecialChar menuseparator
17302 Custom Insets\SpecialChar menuseparator
17303 Landscape
17304 \family default
17305  or 
17306 \family sans
17307 Insert\SpecialChar menuseparator
17308 Custom Insets\SpecialChar menuseparator
17309 Landscape (Floating)
17310 \family default
17311 .
17312 \end_layout
17313
17314 \begin_layout Subsection
17315 \begin_inset CommandInset label
17316 LatexCommand label
17317 name "sec:Multiple-Columns"
17318
17319 \end_inset
17320
17321 Multiple Columns
17322 \end_layout
17323
17324 \begin_layout Standard
17325 This module uses the 
17326 \family sans
17327 multicol
17328 \family default
17329
17330 \begin_inset Index idx
17331 range none
17332 pageformat default
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336 \SpecialChar LaTeX
17337 -packages !
17338  multicol
17339 \end_layout
17340
17341 \end_inset
17342
17343  package and is independent of the option 
17344 \family sans
17345 Two-
17346 \bar under
17347 c
17348 \bar default
17349 olumn document
17350 \family default
17351  in the 
17352 \family sans
17353 \bar under
17354 D
17355 \bar default
17356 ocument\SpecialChar menuseparator
17357
17358 \bar under
17359 S
17360 \bar default
17361 ettings\SpecialChar menuseparator
17362 Text
17363 \begin_inset space ~
17364 \end_inset
17365
17366 Layout
17367 \family default
17368  dialog.
17369  If you want to have two columns for the whole document,
17370  you are recommended to use the 
17371 \family sans
17372 Two-
17373 \bar under
17374 c
17375 \bar default
17376 olumn document
17377 \family default
17378  option.
17379  For all other cases use this module.
17380 \end_layout
17381
17382 \begin_layout Standard
17383 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
17384  Within the different columns you can use everything,
17385  with the limitation that for floats you need to check the option 
17386 \family sans
17387 \bar under
17388 S
17389 \bar default
17390 pan
17391 \begin_inset space ~
17392 \end_inset
17393
17394 columns
17395 \family default
17396  in 
17397 \family sans
17398 \bar under
17399 E
17400 \bar default
17401 dit\SpecialChar menuseparator
17402 Flo
17403 \bar under
17404 a
17405 \bar default
17406 t
17407 \begin_inset space ~
17408 \end_inset
17409
17410 Settings
17411 \family default
17412 .
17413 \end_layout
17414
17415 \begin_layout Subsubsection
17416 Basics
17417 \end_layout
17418
17419 \begin_layout Standard
17420 If you want to have two columns in your text,
17421  insert a multicolumn inset via the menu 
17422 \family sans
17423 Insert\SpecialChar menuseparator
17424 Custom
17425 \begin_inset space ~
17426 \end_inset
17427
17428 Insets\SpecialChar menuseparator
17429 Multiple
17430 \begin_inset space ~
17431 \end_inset
17432
17433 Columns
17434 \family default
17435  where the columns should start.
17436  Write all text that should be printed in 2
17437 \begin_inset space ~
17438 \end_inset
17439
17440 columns into this inset.
17441 \end_layout
17442
17443 \begin_layout Standard
17444 Here is an example:
17445 \end_layout
17446
17447 \begin_layout Standard
17448 \noindent
17449 \begin_inset Flex Multiple Columns
17450 status open
17451
17452 \begin_layout Plain Layout
17453 \noindent
17454
17455 \series bold
17456 \size small
17457 The Adventure of the Empty House
17458 \series default
17459
17460 \begin_inset Newline newline
17461 \end_inset
17462
17463 by 
17464 \noun on
17465 Sir Arthur Conan Doyle
17466 \end_layout
17467
17468 \begin_layout Plain Layout
17469
17470 \size small
17471 It was in the spring of the year 1894 that all London was interested,
17472  and the fashionable world dismayed,
17473  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
17474  The public has already learned those particulars of the crime which came out in the police investigation,
17475  but a good deal was suppressed upon that occasion,
17476  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
17477  Only now,
17478  at the end of nearly ten years,
17479  am I allowed to supply those missing links which make up the whole of that remarkable chain.
17480  The crime was of interest in itself,
17481  but that interest was as nothing to me compared to the inconceivable sequel,
17482  which afforded me the greatest shock and surprise of any event in my adventurous life.
17483  Even now,
17484  after this long interval,
17485  I find myself thrilling as I think of it,
17486  and feeling once more that sudden flood of joy,
17487  amazement,
17488  and incredulity which utterly submerged my mind.
17489  Let me say to that public,
17490  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
17491  that they are not to blame me if I have not shared my knowledge with them,
17492  for I should have considered it my first duty to do so,
17493  had I not been barred by a positive prohibition from his own lips,
17494  which was only withdrawn upon the third of last month.
17495 \end_layout
17496
17497 \end_inset
17498
17499
17500 \end_layout
17501
17502 \begin_layout Standard
17503 To get 3 or more columns,
17504  set the cursor into the multicolumn inset and use the menu 
17505 \family sans
17506 Insert\SpecialChar menuseparator
17507 Number
17508 \begin_inset space ~
17509 \end_inset
17510
17511 of
17512 \begin_inset space ~
17513 \end_inset
17514
17515 Columns
17516 \family default
17517 .
17518  The number of the desired columns is written into that inset (for 3
17519 \begin_inset space ~
17520 \end_inset
17521
17522 columns write 
17523 \begin_inset Quotes eld
17524 \end_inset
17525
17526 3
17527 \begin_inset Quotes erd
17528 \end_inset
17529
17530 ).
17531 \begin_inset Newline newline
17532 \end_inset
17533
17534 Here is an example with 3
17535 \begin_inset space ~
17536 \end_inset
17537
17538 columns:
17539 \end_layout
17540
17541 \begin_layout Standard
17542 \begin_inset Flex Multiple Columns
17543 status open
17544
17545 \begin_layout Plain Layout
17546
17547 \size footnotesize
17548 \begin_inset Argument 1
17549 status open
17550
17551 \begin_layout Plain Layout
17552
17553 3
17554 \end_layout
17555
17556 \end_inset
17557
17558 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
17559  and that after his disappearance I never failed to read with care the various problems which came before the public.
17560  And I even attempted,
17561  more than once,
17562  for my own private satisfaction,
17563  to employ his methods in their solution,
17564  though with indifferent success.
17565  There was none,
17566  however,
17567  which appealed to me like this tragedy of Ronald Adair.
17568  As I read the evidence at the inquest,
17569  which led up to a verdict of willful murder against some person or persons unknown,
17570  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
17571  There were points about this strange business which would,
17572  I was sure,
17573  have specially appealed to him,
17574  and the efforts of the police would have been supplemented,
17575  or more probably anticipated,
17576  by the trained observation and the alert mind of the first criminal agent in Europe.
17577  All day,
17578  as I drove upon my round,
17579  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
17580  At the risk of telling a twice-told tale,
17581  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
17582 \end_layout
17583
17584 \end_inset
17585
17586
17587 \end_layout
17588
17589 \begin_layout Standard
17590 You can have up to 10
17591 \begin_inset space ~
17592 \end_inset
17593
17594 columns if you want to,
17595  but that might not be very pleasant for the readers of your document.
17596 \end_layout
17597
17598 \begin_layout Subsubsection
17599 Columns inside Columns
17600 \end_layout
17601
17602 \begin_layout Standard
17603 You can also have columns inside columns:
17604 \end_layout
17605
17606 \begin_layout Standard
17607 \begin_inset Flex Multiple Columns
17608 status open
17609
17610 \begin_layout Plain Layout
17611
17612 \size footnotesize
17613 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
17614  at that time governor of one of the Australian colonies.
17615  Adair's mother had returned from Australia to undergo the operation for cataract,
17616  and she,
17617  her son Ronald,
17618  and her daughter Hilda were living together at 427 Park Lane.
17619 \end_layout
17620
17621 \begin_layout Plain Layout
17622 \begin_inset Flex Multiple Columns
17623 status open
17624
17625 \begin_layout Plain Layout
17626
17627 \size footnotesize
17628 The youth moved in the best society
17629 \begin_inset space ~
17630 \end_inset
17631
17632 – had,
17633  so far as was known,
17634  no enemies and no particular vices.
17635  He had been engaged to Miss Edith Woodley,
17636  of Carstairs,
17637  but the engagement had been broken off by mutual consent some months before,
17638  and there was no sign that it had left any very profound feeling behind it.
17639  For the rest {sic} the man's life moved in a narrow and conventional circle,
17640  for his habits were quiet and his nature unemotional.
17641  Yet it was upon this easy-going young aristocrat that death came,
17642  in most strange and unexpected form,
17643  between the hours of ten and eleven-twenty on the night of March 30,
17644  1894.
17645 \end_layout
17646
17647 \end_inset
17648
17649
17650 \end_layout
17651
17652 \begin_layout Plain Layout
17653
17654 \size footnotesize
17655 Ronald Adair was fond of cards
17656 \begin_inset space ~
17657 \end_inset
17658
17659 – playing continually,
17660  but never for such stakes as would hurt him.
17661  He was a member of the Baldwin,
17662  the Cavendish,
17663  and the Bagatelle card clubs.
17664  It was shown that,
17665  after dinner on the day of his death,
17666  he had played a rubber of whist at the latter club.
17667  He had also played there in the afternoon.
17668
17669 \size default
17670  
17671 \size footnotesize
17672 The evidence of those who had played with him
17673 \begin_inset space ~
17674 \end_inset
17675
17676 – Mr.
17677  Murray,
17678  Sir John Hardy,
17679  and Colonel Moran
17680 \begin_inset space ~
17681 \end_inset
17682
17683 – showed that the game was whist,
17684  and that there was a fairly equal fall of the cards.
17685  Adair might have lost five pounds,
17686  but not more.
17687  His fortune was a considerable one,
17688  and such a loss could not in any way affect him.
17689  He had played nearly every day at one club or other,
17690  but he was a cautious player,
17691  and usually rose a winner.
17692  It came out in evidence that,
17693  in partnership with Colonel Moran,
17694  he had actually won as much as four hundred and twenty pounds in a sitting,
17695  some weeks before,
17696  from Godfrey Milner and Lord Balmoral.
17697  So much for his recent history as it came out at the inquest.
17698 \end_layout
17699
17700 \end_inset
17701
17702
17703 \end_layout
17704
17705 \begin_layout Subsubsection
17706 Advanced Examples
17707 \end_layout
17708
17709 \begin_layout Standard
17710 The examples in this section show some more special features of multiple columns.
17711 \end_layout
17712
17713 \begin_layout Standard
17714 For more features of multiple columns,
17715  have a look at the 
17716 \begin_inset CommandInset href
17717 LatexCommand href
17718 name "documentation"
17719 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
17720 literal "false"
17721
17722 \end_inset
17723
17724  of the \SpecialChar LaTeX
17725 -package 
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 multicol
17731 \end_layout
17732
17733 \end_inset
17734
17735 .
17736 \end_layout
17737
17738 \begin_layout Paragraph
17739 Preface
17740 \end_layout
17741
17742 \begin_layout Standard
17743 To add a preface text for multiple columns,
17744  set the cursor into the multicolumn inset and use the menu 
17745 \family sans
17746 Insert\SpecialChar menuseparator
17747 Preface
17748 \family default
17749 .
17750  Write your preface text into that inset.
17751 \begin_inset Newline newline
17752 \end_inset
17753
17754 This is an example with some preface text:
17755 \end_layout
17756
17757 \begin_layout Standard
17758 \begin_inset VSpace bigskip
17759 \end_inset
17760
17761
17762 \end_layout
17763
17764 \begin_layout Standard
17765 \begin_inset Flex Multiple Columns
17766 status open
17767
17768 \begin_layout Plain Layout
17769 \begin_inset Argument 2
17770 status open
17771
17772 \begin_layout Plain Layout
17773 And the story continues and continues and continues and continues\SpecialChar ldots
17774
17775 \end_layout
17776
17777 \end_inset
17778
17779
17780 \size small
17781 On the evening of the crime,
17782  he returned from the club exactly at ten.
17783  His mother and sister were out spending the evening with a relation.
17784  The servant deposed that she heard him enter the front room on the second floor,
17785  generally used as his sitting-room.
17786  She had lit a fire there,
17787  and as it smoked she had opened the window.
17788  No sound was heard from the room until eleven-twenty,
17789  the hour of the return of Lady Maynooth and her daughter.
17790  Desiring to say good-night,
17791  she attempted to enter her son's room.
17792  The door was locked on the inside,
17793  and no answer could be got to their cries and knocking.
17794  Help was obtained,
17795  and the door forced.
17796  The unfortunate young man was found lying near the table.
17797  His head had been horribly mutilated by an expanding revolver bullet,
17798  but no weapon of any sort was to be found in the room.
17799 \end_layout
17800
17801 \end_inset
17802
17803
17804 \end_layout
17805
17806 \begin_layout Standard
17807 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
17808  Code.
17809  For example the command
17810 \end_layout
17811
17812 \begin_layout LyX-Code
17813
17814 \backslash
17815 subsection{subsection title}
17816 \end_layout
17817
17818 \begin_layout Standard
17819 creates a subsection.
17820  In this example the preface is a subsubsection:
17821 \end_layout
17822
17823 \begin_layout Standard
17824 \begin_inset Flex Multiple Columns
17825 status open
17826
17827 \begin_layout Plain Layout
17828 \begin_inset Argument 2
17829 status open
17830
17831 \begin_layout Plain Layout
17832 \begin_inset ERT
17833 status collapsed
17834
17835 \begin_layout Plain Layout
17836
17837
17838 \backslash
17839 subsubsection{
17840 \end_layout
17841
17842 \end_inset
17843
17844 This is a subsubsection heading as a preface
17845 \begin_inset ERT
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849
17850 }
17851 \end_layout
17852
17853 \end_inset
17854
17855
17856 \end_layout
17857
17858 \end_inset
17859
17860
17861 \size small
17862 A minute examination of the circumstances served only to make the case more complex.
17863  In the first place,
17864  no reason could be given why the young man should have fastened the door upon the inside.
17865  There was the possibility that the murderer had done this,
17866  and had afterwards escaped by the window.
17867  The drop was at least twenty feet,
17868  however,
17869  and a bed of crocuses in full bloom lay beneath.
17870  Neither the flowers nor the earth showed any sign of having been disturbed,
17871  nor were there any marks upon the narrow strip of grass which separated the house from the road.
17872  Apparently,
17873  therefore,
17874  it was the young man himself who had fastened the door.
17875  But how did he come by his death?
17876  No one could have climbed up to the window without leaving traces.
17877  Suppose a man had fired through the window,
17878  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
17879  Again,
17880  Park Lane is a frequented thoroughfare;
17881  there is a cab stand within a hundred yards of the house.
17882  No one had heard a shot.
17883 \end_layout
17884
17885 \end_inset
17886
17887
17888 \end_layout
17889
17890 \begin_layout Standard
17891 If there is less vertical space than six text lines is left on the page at the beginning of the multiple columns,
17892  a page break will be inserted before the multiple columns.
17893  Depending on the number of lines of the preface text,
17894  you might want to change this space.
17895  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
17896 \family sans
17897 Insert\SpecialChar menuseparator
17898 Space
17899 \begin_inset space ~
17900 \end_inset
17901
17902 Before
17903 \begin_inset space ~
17904 \end_inset
17905
17906 Page
17907 \begin_inset space ~
17908 \end_inset
17909
17910 Break
17911 \family default
17912 .
17913  Insert into that inset the amount of space like e.
17914 \begin_inset space \thinspace{}
17915 \end_inset
17916
17917 g.
17918 \begin_inset space \space{}
17919 \end_inset
17920
17921
17922 \begin_inset Quotes eld
17923 \end_inset
17924
17925 5cm
17926 \begin_inset Quotes erd
17927 \end_inset
17928
17929 .
17930 \begin_inset Newline newline
17931 \end_inset
17932
17933 In this example the space is set to 7
17934 \begin_inset space ~
17935 \end_inset
17936
17937 text lines by using 
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 7
17943 \backslash
17944 baselineskip
17945 \end_layout
17946
17947 \end_inset
17948
17949  (where the command 
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954
17955 \backslash
17956 baselineskip
17957 \end_layout
17958
17959 \end_inset
17960
17961  needs to be inserted as \SpecialChar TeX
17962  code):
17963 \end_layout
17964
17965 \begin_layout Standard
17966 \begin_inset Flex Multiple Columns
17967 status open
17968
17969 \begin_layout Plain Layout
17970 \begin_inset Argument 3
17971 status open
17972
17973 \begin_layout Plain Layout
17974 7
17975 \begin_inset ERT
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979
17980
17981 \backslash
17982 baselineskip
17983 \end_layout
17984
17985 \end_inset
17986
17987
17988 \end_layout
17989
17990 \end_inset
17991
17992
17993 \size small
17994 On the evening of the crime,
17995  he returned from the club exactly at ten.
17996  His mother and sister were out spending the evening with a relation.
17997  The servant deposed that she heard him enter the front room on the second floor,
17998  generally used as his sitting-room.
17999  She had lit a fire there,
18000  and as it smoked she had opened the window.
18001  No sound was heard from the room until eleven-twenty,
18002  the hour of the return of Lady Maynooth and her daughter.
18003  Desiring to say good-night,
18004  she attempted to enter her son's room.
18005  The door was locked on the inside,
18006  and no answer could be got to their cries and knocking.
18007  Help was obtained,
18008  and the door forced.
18009  The unfortunate young man was found lying near the table.
18010  His head had been horribly mutilated by an expanding revolver bullet,
18011  but no weapon of any sort was to be found in the room.
18012 \end_layout
18013
18014 \end_inset
18015
18016
18017 \end_layout
18018
18019 \begin_layout Paragraph
18020 Surrounding Space
18021 \end_layout
18022
18023 \begin_layout Standard
18024 The amount of space before and after multiple columns can be changed by changing the length 
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029
18030 \backslash
18031 multicolsep
18032 \end_layout
18033
18034 \end_inset
18035
18036 .
18037  For example the command
18038 \end_layout
18039
18040 \begin_layout LyX-Code
18041
18042 \backslash
18043 setlength{
18044 \backslash
18045 multicolsep}{3cm}
18046 \end_layout
18047
18048 \begin_layout Standard
18049 in \SpecialChar TeX
18050  Code changes its value to 3
18051 \begin_inset space \thinspace{}
18052 \end_inset
18053
18054 cm.
18055  The change must be made before the multiple columns' start.
18056  The predefined value is 13
18057 \begin_inset space \thinspace{}
18058 \end_inset
18059
18060 pt.
18061 \end_layout
18062
18063 \begin_layout Standard
18064 For this example 
18065 \begin_inset Flex Code
18066 status collapsed
18067
18068 \begin_layout Plain Layout
18069
18070 \backslash
18071 multicolsep
18072 \end_layout
18073
18074 \end_inset
18075
18076  was set to 2.5
18077 \begin_inset space \thinspace{}
18078 \end_inset
18079
18080 cm:
18081 \end_layout
18082
18083 \begin_layout Standard
18084 \begin_inset ERT
18085 status open
18086
18087 \begin_layout Plain Layout
18088
18089
18090 \backslash
18091 setlength{
18092 \backslash
18093 multicolsep}{2.5cm}
18094 \end_layout
18095
18096 \end_inset
18097
18098
18099 \end_layout
18100
18101 \begin_layout Standard
18102 \begin_inset Flex Multiple Columns
18103 status open
18104
18105 \begin_layout Plain Layout
18106
18107 \size small
18108 All day I turned these facts over in my mind,
18109  endeavouring to hit upon some theory which could reconcile them all,
18110  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
18111  I confess that I made little progress.
18112  In the evening I strolled across the Park,
18113  and found myself about six o'clock at the Oxford Street end of Park Lane.
18114  A group of loafers upon the pavements,
18115  all staring up at a particular window,
18116  directed me to the house which I had come to see.
18117  A tall,
18118  thin man with coloured glasses,
18119  whom I strongly suspected of being a plain-clothes detective,
18120  was pointing out some theory of his own,
18121  while the others crowded round to listen to what he said.
18122  I got as near him as I could,
18123  but his observations seemed to me to be absurd,
18124  so I withdrew again in some disgust.
18125  As I did so I struck against an elderly,
18126  deformed man,
18127  who had been behind me,
18128  and I knocked down several books which he was carrying.
18129 \end_layout
18130
18131 \end_inset
18132
18133
18134 \end_layout
18135
18136 \begin_layout Standard
18137 \begin_inset Note Greyedout
18138 status open
18139
18140 \begin_layout Plain Layout
18141
18142 \series bold
18143 Note:
18144
18145 \series default
18146  The values you set with 
18147 \begin_inset Flex Code
18148 status collapsed
18149
18150 \begin_layout Plain Layout
18151
18152 \backslash
18153 setlength
18154 \end_layout
18155
18156 \end_inset
18157
18158  will be used for all following multiple columns until you change them again.
18159 \end_layout
18160
18161 \end_inset
18162
18163
18164 \end_layout
18165
18166 \begin_layout Standard
18167 \begin_inset ERT
18168 status collapsed
18169
18170 \begin_layout Plain Layout
18171
18172
18173 \backslash
18174 setlength{
18175 \backslash
18176 multicolsep}{13pt}
18177 \end_layout
18178
18179 \end_inset
18180
18181
18182 \begin_inset Note Note
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 go back to the default
18187 \end_layout
18188
18189 \end_inset
18190
18191
18192 \end_layout
18193
18194 \begin_layout Paragraph
18195 Column Breaks
18196 \end_layout
18197
18198 \begin_layout Standard
18199 A column break can be forced by inserting the command 
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204
18205 \backslash
18206 columnbreak{}
18207 \end_layout
18208
18209 \end_inset
18210
18211  as \SpecialChar TeX
18212  Code to that position in the text where the column should be broken.
18213  Note that this leads in most cases to whitespace in the text.
18214 \begin_inset Newline newline
18215 \end_inset
18216
18217 Here is an example:
18218 \end_layout
18219
18220 \begin_layout Standard
18221 \begin_inset Flex Multiple Columns
18222 status open
18223
18224 \begin_layout Plain Layout
18225
18226 \size small
18227 \begin_inset Quotes eld
18228 \end_inset
18229
18230 You're surprised to see me,
18231  sir,
18232 \begin_inset Quotes erd
18233 \end_inset
18234
18235  said he,
18236  in a strange,
18237  croaking voice.
18238 \end_layout
18239
18240 \begin_layout Plain Layout
18241
18242 \size small
18243 I acknowledged that I was.
18244 \end_layout
18245
18246 \begin_layout Plain Layout
18247
18248 \size small
18249 \begin_inset Quotes eld
18250 \end_inset
18251
18252 Well,
18253  I've a conscience,
18254  sir,
18255  and when I chanced to see you go into this house,
18256  as I came hobbling after you,
18257  I thought to myself,
18258  I'll just step in and see that kind gentleman,
18259  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18260  and that I am much obliged to him for picking up my books.
18261 \begin_inset Quotes erd
18262 \end_inset
18263
18264
18265 \end_layout
18266
18267 \begin_layout Plain Layout
18268
18269 \size small
18270 \begin_inset Quotes eld
18271 \end_inset
18272
18273 You make too much of a trifle,
18274 \begin_inset Quotes erd
18275 \end_inset
18276
18277  said I.
18278  
18279 \begin_inset Quotes eld
18280 \end_inset
18281
18282 May I ask how you knew who I was?
18283 \begin_inset Quotes erd
18284 \end_inset
18285
18286  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
18287 \begin_inset ERT
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291
18292
18293 \backslash
18294 columnbreak{}
18295 \end_layout
18296
18297 \end_inset
18298
18299
18300 \end_layout
18301
18302 \begin_layout Plain Layout
18303
18304 \size small
18305 \begin_inset Quotes eld
18306 \end_inset
18307
18308 Well,
18309  sir,
18310  if it isn't too great a liberty,
18311  I am a neighbour of yours,
18312  for you'll find my little bookshop at the corner of Church Street,
18313  and very happy to see you,
18314  I am sure.
18315  Maybe you collect yourself,
18316  sir.
18317  Here's 
18318 \noun on
18319 British
18320 \begin_inset space ~
18321 \end_inset
18322
18323 Birds
18324 \noun default
18325 ,
18326  and 
18327 \noun on
18328 Catullus
18329 \noun default
18330 ,
18331  and 
18332 \noun on
18333 The Holy War
18334 \noun default
18335
18336 \begin_inset space ~
18337 \end_inset
18338
18339 – a bargain,
18340  every one of them.
18341  With five volumes you could just fill that gap on that second shelf.
18342  It looks untidy,
18343  does it not,
18344  sir?
18345 \begin_inset Quotes erd
18346 \end_inset
18347
18348
18349 \end_layout
18350
18351 \end_inset
18352
18353
18354 \end_layout
18355
18356 \begin_layout Paragraph
18357 Column Separation
18358 \end_layout
18359
18360 \begin_layout Standard
18361 The width of the columns is automatically calculated,
18362  but you can modify the space between the columns.
18363  This is done by changing the length 
18364 \begin_inset Flex Code
18365 status collapsed
18366
18367 \begin_layout Plain Layout
18368
18369 \backslash
18370 columnsep
18371 \end_layout
18372
18373 \end_inset
18374
18375 .
18376  Its predefined value is 10
18377 \begin_inset space \thinspace{}
18378 \end_inset
18379
18380 pt.
18381  Here is an example where 
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386
18387 \backslash
18388 columnsep
18389 \end_layout
18390
18391 \end_inset
18392
18393  is set to 3
18394 \begin_inset space \thinspace{}
18395 \end_inset
18396
18397 cm:
18398 \end_layout
18399
18400 \begin_layout Standard
18401 \begin_inset ERT
18402 status open
18403
18404 \begin_layout Plain Layout
18405
18406
18407 \backslash
18408 setlength{
18409 \backslash
18410 columnsep}{3cm}
18411 \end_layout
18412
18413 \end_inset
18414
18415
18416 \end_layout
18417
18418 \begin_layout Standard
18419 \begin_inset Flex Multiple Columns
18420 status open
18421
18422 \begin_layout Plain Layout
18423
18424 \size small
18425 My observations of No.
18426 \begin_inset space \space{}
18427 \end_inset
18428
18429 427 Park Lane did little to clear up the problem in which I was interested.
18430  The house was separated from the street by a low wall and railing,
18431  the whole not more than five feet high.
18432  It was perfectly easy,
18433  therefore,
18434  for anyone to get into the garden,
18435  but the window was entirely inaccessible,
18436  since there was no water pipe or anything which could help the most active man to climb it.
18437  More puzzled than ever,
18438  I retraced my steps to Kensington.
18439  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
18440  To my astonishment it was none other than my strange old book collector,
18441  his sharp,
18442  wizened face peering out from a frame of white hair,
18443  and his precious volumes,
18444  a dozen of them at least,
18445  wedged under his right arm.
18446 \end_layout
18447
18448 \end_inset
18449
18450
18451 \end_layout
18452
18453 \begin_layout Standard
18454 \begin_inset ERT
18455 status collapsed
18456
18457 \begin_layout Plain Layout
18458
18459
18460 \backslash
18461 setlength{
18462 \backslash
18463 columnsep}{10pt}
18464 \end_layout
18465
18466 \end_inset
18467
18468
18469 \begin_inset Note Note
18470 status collapsed
18471
18472 \begin_layout Plain Layout
18473 go back to the default
18474 \end_layout
18475
18476 \end_inset
18477
18478
18479 \end_layout
18480
18481 \begin_layout Paragraph
18482 Vertical Lines
18483 \end_layout
18484
18485 \begin_layout Standard
18486 Between the columns a rule with a width of the length 
18487 \begin_inset Flex Code
18488 status collapsed
18489
18490 \begin_layout Plain Layout
18491
18492 \backslash
18493 columnseprule
18494 \end_layout
18495
18496 \end_inset
18497
18498  is placed.
18499  If this rule width is set to 0
18500 \begin_inset space \thinspace{}
18501 \end_inset
18502
18503 pt (this is the default),
18504  the rule is suppressed.
18505  In the following example the rule is 2
18506 \begin_inset space \thinspace{}
18507 \end_inset
18508
18509 pt wide:
18510 \end_layout
18511
18512 \begin_layout Standard
18513 \begin_inset ERT
18514 status open
18515
18516 \begin_layout Plain Layout
18517
18518
18519 \backslash
18520 setlength{
18521 \backslash
18522 columnseprule}{2pt}
18523 \end_layout
18524
18525 \end_inset
18526
18527
18528 \end_layout
18529
18530 \begin_layout Standard
18531 \begin_inset Flex Multiple Columns
18532 status open
18533
18534 \begin_layout Plain Layout
18535
18536 \size small
18537 \begin_inset Quotes eld
18538 \end_inset
18539
18540 You're surprised to see me,
18541  sir,
18542 \begin_inset Quotes erd
18543 \end_inset
18544
18545  said he,
18546  in a strange,
18547  croaking voice.
18548 \end_layout
18549
18550 \begin_layout Plain Layout
18551
18552 \size small
18553 I acknowledged that I was.
18554 \end_layout
18555
18556 \begin_layout Plain Layout
18557
18558 \size small
18559 \begin_inset Quotes eld
18560 \end_inset
18561
18562 Well,
18563  I've a conscience,
18564  sir,
18565  and when I chanced to see you go into this house,
18566  as I came hobbling after you,
18567  I thought to myself,
18568  I'll just step in and see that kind gentleman,
18569  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18570  and that I am much obliged to him for picking up my books.
18571 \begin_inset Quotes erd
18572 \end_inset
18573
18574
18575 \end_layout
18576
18577 \begin_layout Plain Layout
18578
18579 \size small
18580 \begin_inset Quotes eld
18581 \end_inset
18582
18583 You make too much of a trifle,
18584 \begin_inset Quotes erd
18585 \end_inset
18586
18587  said I.
18588  
18589 \begin_inset Quotes eld
18590 \end_inset
18591
18592 May I ask how you knew who I was?
18593 \begin_inset Quotes erd
18594 \end_inset
18595
18596
18597 \end_layout
18598
18599 \begin_layout Plain Layout
18600
18601 \size small
18602 \begin_inset Quotes eld
18603 \end_inset
18604
18605 Well,
18606  sir,
18607  if it isn't too great a liberty,
18608  I am a neighbour of yours,
18609  for you'll find my little bookshop at the corner of Church Street,
18610  and very happy to see you,
18611  I am sure.
18612  Maybe you collect yourself,
18613  sir.
18614  Here's 
18615 \noun on
18616 British
18617 \begin_inset space ~
18618 \end_inset
18619
18620 Birds
18621 \noun default
18622 ,
18623  and 
18624 \noun on
18625 Catullus
18626 \noun default
18627 ,
18628  and 
18629 \noun on
18630 The Holy War
18631 \noun default
18632
18633 \begin_inset space ~
18634 \end_inset
18635
18636 – a bargain,
18637  every one of them.
18638  With five volumes you could just fill that gap on that second shelf.
18639  It looks untidy,
18640  does it not,
18641  sir?
18642 \begin_inset Quotes erd
18643 \end_inset
18644
18645
18646 \end_layout
18647
18648 \end_inset
18649
18650
18651 \end_layout
18652
18653 \begin_layout Standard
18654 \begin_inset VSpace defskip
18655 \end_inset
18656
18657
18658 \end_layout
18659
18660 \begin_layout Standard
18661 The rule can be colored by redefining the command 
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666
18667 \backslash
18668 columnseprulecolor
18669 \end_layout
18670
18671 \end_inset
18672
18673 .
18674  This is done by inserting the command
18675 \end_layout
18676
18677 \begin_layout LyX-Code
18678
18679 \backslash
18680 renewcommand{
18681 \backslash
18682 columnseprulecolor}{
18683 \backslash
18684 color{red}}
18685 \end_layout
18686
18687 \begin_layout Standard
18688 as \SpecialChar TeX
18689  Code before the multicolumn inset.
18690  Replace 
18691 \begin_inset Flex Code
18692 status collapsed
18693
18694 \begin_layout Plain Layout
18695 red
18696 \end_layout
18697
18698 \end_inset
18699
18700  in this command by a color of your choice.
18701  You can use all pre- and self-defined colors.
18702  See the 
18703 \emph on
18704 EmbeddedObjects
18705 \emph default
18706  manual,
18707  section 
18708 \emph on
18709 Colored
18710 \begin_inset space ~
18711 \end_inset
18712
18713 Tables
18714 \emph default
18715  for more information about pre- and self-defined colors.
18716  To go back to the default color insert the command
18717 \end_layout
18718
18719 \begin_layout LyX-Code
18720
18721 \backslash
18722 renewcommand{
18723 \backslash
18724 columnseprulecolor}{
18725 \backslash
18726 normalcolor}
18727 \end_layout
18728
18729 \begin_layout Standard
18730 Here is the example with a cyan rule and 1
18731 \begin_inset space \thinspace{}
18732 \end_inset
18733
18734 cm column separation:
18735 \end_layout
18736
18737 \begin_layout Standard
18738 \begin_inset ERT
18739 status open
18740
18741 \begin_layout Plain Layout
18742
18743
18744 \backslash
18745 setlength{
18746 \backslash
18747 columnsep}{1cm}
18748 \end_layout
18749
18750 \begin_layout Plain Layout
18751
18752
18753 \backslash
18754 renewcommand{
18755 \backslash
18756 columnseprulecolor}{
18757 \backslash
18758 color{cyan}}
18759 \end_layout
18760
18761 \end_inset
18762
18763
18764 \end_layout
18765
18766 \begin_layout Standard
18767 \begin_inset Flex Multiple Columns
18768 status open
18769
18770 \begin_layout Plain Layout
18771
18772 \size small
18773 \begin_inset Quotes eld
18774 \end_inset
18775
18776 You're surprised to see me,
18777  sir,
18778 \begin_inset Quotes erd
18779 \end_inset
18780
18781  said he,
18782  in a strange,
18783  croaking voice.
18784 \end_layout
18785
18786 \begin_layout Plain Layout
18787
18788 \size small
18789 I acknowledged that I was.
18790 \end_layout
18791
18792 \begin_layout Plain Layout
18793
18794 \size small
18795 \begin_inset Quotes eld
18796 \end_inset
18797
18798 Well,
18799  I've a conscience,
18800  sir,
18801  and when I chanced to see you go into this house,
18802  as I came hobbling after you,
18803  I thought to myself,
18804  I'll just step in and see that kind gentleman,
18805  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18806  and that I am much obliged to him for picking up my books.
18807 \begin_inset Quotes erd
18808 \end_inset
18809
18810
18811 \end_layout
18812
18813 \begin_layout Plain Layout
18814
18815 \size small
18816 \begin_inset Quotes eld
18817 \end_inset
18818
18819 You make too much of a trifle,
18820 \begin_inset Quotes erd
18821 \end_inset
18822
18823  said I.
18824  
18825 \begin_inset Quotes eld
18826 \end_inset
18827
18828 May I ask how you knew who I was?
18829 \begin_inset Quotes erd
18830 \end_inset
18831
18832
18833 \end_layout
18834
18835 \begin_layout Plain Layout
18836
18837 \size small
18838 \begin_inset Quotes eld
18839 \end_inset
18840
18841 Well,
18842  sir,
18843  if it isn't too great a liberty,
18844  I am a neighbour of yours,
18845  for you'll find my little bookshop at the corner of Church Street,
18846  and very happy to see you,
18847  I am sure.
18848  Maybe you collect yourself,
18849  sir.
18850  Here's 
18851 \noun on
18852 British
18853 \begin_inset space ~
18854 \end_inset
18855
18856 Birds
18857 \noun default
18858 ,
18859  and 
18860 \noun on
18861 Catullus
18862 \noun default
18863 ,
18864  and 
18865 \noun on
18866 The Holy War
18867 \noun default
18868
18869 \begin_inset space ~
18870 \end_inset
18871
18872 – a bargain,
18873  every one of them.
18874  With five volumes you could just fill that gap on that second shelf.
18875  It looks untidy,
18876  does it not,
18877  sir?
18878 \begin_inset Quotes erd
18879 \end_inset
18880
18881
18882 \end_layout
18883
18884 \end_inset
18885
18886
18887 \end_layout
18888
18889 \begin_layout Standard
18890 \begin_inset ERT
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894
18895
18896 \backslash
18897 setlength{
18898 \backslash
18899 columnseprule}{0pt}
18900 \end_layout
18901
18902 \begin_layout Plain Layout
18903
18904
18905 \backslash
18906 renewcommand{
18907 \backslash
18908 columnseprulecolor}{
18909 \backslash
18910 normalcolor}
18911 \end_layout
18912
18913 \end_inset
18914
18915
18916 \begin_inset Note Note
18917 status collapsed
18918
18919 \begin_layout Plain Layout
18920 go back to the default
18921 \end_layout
18922
18923 \end_inset
18924
18925
18926 \end_layout
18927
18928 \begin_layout Section
18929 Paragraph Styles
18930 \end_layout
18931
18932 \begin_layout Subsection
18933 Custom Paragraph Shapes
18934 \end_layout
18935
18936 \begin_layout Standard
18937 \noindent
18938 \SpecialChar LaTeX
18939  as well as any other text processor uses by default rectangular paragraphs.
18940  For special cases like for example posters,
18941  invitation cards or poems you can modify the paragraph shape to one of your choice.
18942  This module uses the 
18943 \family sans
18944 shapepar
18945 \family default
18946  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
18947 \end_layout
18948
18949 \begin_layout Subsubsection
18950 Predefined shapes
18951 \end_layout
18952
18953 \begin_layout Standard
18954
18955 \family sans
18956 The shapepar
18957 \family default
18958  package provides the following shapes:
18959 \end_layout
18960
18961 \begin_layout Standard
18962 \begin_inset Tabular
18963 <lyxtabular version="3" rows="13" columns="3">
18964 <features booktabs="true" islongtable="true" longtabularalignment="center">
18965 <column alignment="left" valignment="middle" width="16col%">
18966 <column alignment="left" valignment="middle" width="40col%">
18967 <column alignment="left" valignment="middle" width="35col%">
18968 <row endhead="true">
18969 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18970 \begin_inset Text
18971
18972 \begin_layout Plain Layout
18973
18974 \series bold
18975 \size small
18976 Name
18977 \end_layout
18978
18979 \end_inset
18980 </cell>
18981 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18982 \begin_inset Text
18983
18984 \begin_layout Plain Layout
18985
18986 \series bold
18987 \size small
18988 Description
18989 \end_layout
18990
18991 \end_inset
18992 </cell>
18993 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18994 \begin_inset Text
18995
18996 \begin_layout Plain Layout
18997
18998 \series bold
18999 \size small
19000 Annotation
19001 \end_layout
19002
19003 \end_inset
19004 </cell>
19005 </row>
19006 <row interlinespace="default">
19007 <cell alignment="left" valignment="top" usebox="none">
19008 \begin_inset Text
19009
19010 \begin_layout Plain Layout
19011
19012 \size small
19013 CDlabel
19014 \end_layout
19015
19016 \end_inset
19017 </cell>
19018 <cell alignment="left" valignment="top" usebox="none">
19019 \begin_inset Text
19020
19021 \begin_layout Plain Layout
19022
19023 \size small
19024 Circle with circular hole (in the size of a CD/DVD)
19025 \end_layout
19026
19027 \end_inset
19028 </cell>
19029 <cell alignment="left" valignment="top" usebox="none">
19030 \begin_inset Text
19031
19032 \begin_layout Plain Layout
19033
19034 \size small
19035 Cannot be scaled,
19036  take care there is not too much text
19037 \end_layout
19038
19039 \end_inset
19040 </cell>
19041 </row>
19042 <row interlinespace="default">
19043 <cell alignment="left" valignment="top" usebox="none">
19044 \begin_inset Text
19045
19046 \begin_layout Plain Layout
19047
19048 \size small
19049 Circle
19050 \end_layout
19051
19052 \end_inset
19053 </cell>
19054 <cell alignment="left" valignment="top" usebox="none">
19055 \begin_inset Text
19056
19057 \begin_layout Plain Layout
19058
19059 \size small
19060 Circle
19061 \end_layout
19062
19063 \end_inset
19064 </cell>
19065 <cell alignment="left" valignment="top" usebox="none">
19066 \begin_inset Text
19067
19068 \begin_layout Plain Layout
19069
19070 \size small
19071 Fragile,
19072  calculation might fail
19073 \end_layout
19074
19075 \end_inset
19076 </cell>
19077 </row>
19078 <row interlinespace="default">
19079 <cell alignment="left" valignment="top" usebox="none">
19080 \begin_inset Text
19081
19082 \begin_layout Plain Layout
19083
19084 \size small
19085 Diamond
19086 \end_layout
19087
19088 \end_inset
19089 </cell>
19090 <cell alignment="left" valignment="top" usebox="none">
19091 \begin_inset Text
19092
19093 \begin_layout Plain Layout
19094
19095 \size small
19096 Rhomboid (symbolizing a 
19097 \begin_inset Quotes eld
19098 \end_inset
19099
19100 diamond
19101 \begin_inset Quotes erd
19102 \end_inset
19103
19104 )
19105 \end_layout
19106
19107 \end_inset
19108 </cell>
19109 <cell alignment="left" valignment="top" usebox="none">
19110 \begin_inset Text
19111
19112 \begin_layout Plain Layout
19113
19114 \size small
19115 -
19116 \end_layout
19117
19118 \end_inset
19119 </cell>
19120 </row>
19121 <row interlinespace="default">
19122 <cell alignment="left" valignment="top" usebox="none">
19123 \begin_inset Text
19124
19125 \begin_layout Plain Layout
19126
19127 \size small
19128 Heart
19129 \end_layout
19130
19131 \end_inset
19132 </cell>
19133 <cell alignment="left" valignment="top" usebox="none">
19134 \begin_inset Text
19135
19136 \begin_layout Plain Layout
19137
19138 \size small
19139 Heart-like shape
19140 \end_layout
19141
19142 \end_inset
19143 </cell>
19144 <cell alignment="left" valignment="top" usebox="none">
19145 \begin_inset Text
19146
19147 \begin_layout Plain Layout
19148
19149 \size small
19150 -
19151 \end_layout
19152
19153 \end_inset
19154 </cell>
19155 </row>
19156 <row interlinespace="default">
19157 <cell alignment="left" valignment="top" usebox="none">
19158 \begin_inset Text
19159
19160 \begin_layout Plain Layout
19161
19162 \size small
19163 Hexagon
19164 \end_layout
19165
19166 \end_inset
19167 </cell>
19168 <cell alignment="left" valignment="top" usebox="none">
19169 \begin_inset Text
19170
19171 \begin_layout Plain Layout
19172
19173 \size small
19174 Hexagon
19175 \end_layout
19176
19177 \end_inset
19178 </cell>
19179 <cell alignment="left" valignment="top" usebox="none">
19180 \begin_inset Text
19181
19182 \begin_layout Plain Layout
19183
19184 \size small
19185 -
19186 \end_layout
19187
19188 \end_inset
19189 </cell>
19190 </row>
19191 <row interlinespace="default">
19192 <cell alignment="left" valignment="top" usebox="none">
19193 \begin_inset Text
19194
19195 \begin_layout Plain Layout
19196
19197 \size small
19198 Nut
19199 \end_layout
19200
19201 \end_inset
19202 </cell>
19203 <cell alignment="left" valignment="top" usebox="none">
19204 \begin_inset Text
19205
19206 \begin_layout Plain Layout
19207
19208 \size small
19209 Nut for bolt (hexagon with circular hole)
19210 \end_layout
19211
19212 \end_inset
19213 </cell>
19214 <cell alignment="left" valignment="top" usebox="none">
19215 \begin_inset Text
19216
19217 \begin_layout Plain Layout
19218
19219 \size small
19220 -
19221 \end_layout
19222
19223 \end_inset
19224 </cell>
19225 </row>
19226 <row interlinespace="default">
19227 <cell alignment="left" valignment="top" usebox="none">
19228 \begin_inset Text
19229
19230 \begin_layout Plain Layout
19231
19232 \size small
19233 Square
19234 \end_layout
19235
19236 \end_inset
19237 </cell>
19238 <cell alignment="left" valignment="top" usebox="none">
19239 \begin_inset Text
19240
19241 \begin_layout Plain Layout
19242
19243 \size small
19244 Square
19245 \end_layout
19246
19247 \end_inset
19248 </cell>
19249 <cell alignment="left" valignment="top" usebox="none">
19250 \begin_inset Text
19251
19252 \begin_layout Plain Layout
19253
19254 \size small
19255 -
19256 \end_layout
19257
19258 \end_inset
19259 </cell>
19260 </row>
19261 <row interlinespace="default">
19262 <cell alignment="left" valignment="top" usebox="none">
19263 \begin_inset Text
19264
19265 \begin_layout Plain Layout
19266
19267 \size small
19268 Star
19269 \end_layout
19270
19271 \end_inset
19272 </cell>
19273 <cell alignment="left" valignment="top" usebox="none">
19274 \begin_inset Text
19275
19276 \begin_layout Plain Layout
19277
19278 \size small
19279 Five-point star
19280 \end_layout
19281
19282 \end_inset
19283 </cell>
19284 <cell alignment="left" valignment="top" usebox="none">
19285 \begin_inset Text
19286
19287 \begin_layout Plain Layout
19288
19289 \size small
19290 -
19291 \end_layout
19292
19293 \end_inset
19294 </cell>
19295 </row>
19296 <row interlinespace="default">
19297 <cell alignment="left" valignment="top" usebox="none">
19298 \begin_inset Text
19299
19300 \begin_layout Plain Layout
19301
19302 \size small
19303 Candle
19304 \end_layout
19305
19306 \end_inset
19307 </cell>
19308 <cell alignment="left" valignment="top" usebox="none">
19309 \begin_inset Text
19310
19311 \begin_layout Plain Layout
19312
19313 \size small
19314 Burning candle
19315 \end_layout
19316
19317 \end_inset
19318 </cell>
19319 <cell alignment="left" valignment="top" usebox="none">
19320 \begin_inset Text
19321
19322 \begin_layout Plain Layout
19323
19324 \size small
19325 -
19326 \end_layout
19327
19328 \end_inset
19329 </cell>
19330 </row>
19331 <row interlinespace="default">
19332 <cell alignment="left" valignment="top" usebox="none">
19333 \begin_inset Text
19334
19335 \begin_layout Plain Layout
19336
19337 \size small
19338 Drop down/up
19339 \end_layout
19340
19341 \end_inset
19342 </cell>
19343 <cell alignment="left" valignment="top" usebox="none">
19344 \begin_inset Text
19345
19346 \begin_layout Plain Layout
19347
19348 \size small
19349 Normal/reversed rain drop
19350 \end_layout
19351
19352 \end_inset
19353 </cell>
19354 <cell alignment="left" valignment="top" usebox="none">
19355 \begin_inset Text
19356
19357 \begin_layout Plain Layout
19358
19359 \size small
19360 Fragile,
19361  calculation might fail
19362 \end_layout
19363
19364 \end_inset
19365 </cell>
19366 </row>
19367 <row interlinespace="default">
19368 <cell alignment="left" valignment="top" usebox="none">
19369 \begin_inset Text
19370
19371 \begin_layout Plain Layout
19372
19373 \size small
19374 \SpecialChar TeX
19375
19376 \end_layout
19377
19378 \end_inset
19379 </cell>
19380 <cell alignment="left" valignment="top" usebox="none">
19381 \begin_inset Text
19382
19383 \begin_layout Plain Layout
19384
19385 \size small
19386 The \SpecialChar TeX
19387  logo
19388 \end_layout
19389
19390 \end_inset
19391 </cell>
19392 <cell alignment="left" valignment="top" usebox="none">
19393 \begin_inset Text
19394
19395 \begin_layout Plain Layout
19396
19397 \size small
19398 -
19399 \end_layout
19400
19401 \end_inset
19402 </cell>
19403 </row>
19404 <row interlinespace="default">
19405 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19406 \begin_inset Text
19407
19408 \begin_layout Plain Layout
19409
19410 \size small
19411 Triangle up/down/
19412 \begin_inset Newline newline
19413 \end_inset
19414
19415 left/right
19416 \end_layout
19417
19418 \end_inset
19419 </cell>
19420 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19421 \begin_inset Text
19422
19423 \begin_layout Plain Layout
19424
19425 \size small
19426 Triangles in different orientations
19427 \end_layout
19428
19429 \end_inset
19430 </cell>
19431 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19432 \begin_inset Text
19433
19434 \begin_layout Plain Layout
19435
19436 \size small
19437 -
19438 \end_layout
19439
19440 \end_inset
19441 </cell>
19442 </row>
19443 </lyxtabular>
19444
19445 \end_inset
19446
19447
19448 \end_layout
19449
19450 \begin_layout Standard
19451 To use a shape for your paragraph,
19452  simply select it in \SpecialChar LyX
19453 's pull-down box for environments in the toolbar.
19454 \end_layout
19455
19456 \begin_layout Standard
19457 \begin_inset Newpage newpage
19458 \end_inset
19459
19460
19461 \end_layout
19462
19463 \begin_layout Standard
19464 Here is an example paragraph in the shape of a nut:
19465 \end_layout
19466
19467 \begin_layout Standard
19468 \begin_inset VSpace bigskip
19469 \end_inset
19470
19471
19472 \end_layout
19473
19474 \begin_layout Nut
19475
19476 \lang latin
19477 Lorem ipsum dolor sit amet,
19478  consetetur sadipscing elitr,
19479  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19480  sed diam voluptua.
19481  At vero eos et accusam et justo duo dolores et ea rebum.
19482  Stet clita kasd gubergren,
19483  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19484  Lorem ipsum dolor sit amet,
19485  consetetur sadipscing elitr,
19486  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19487  sed diam voluptua.
19488 \end_layout
19489
19490 \begin_layout Standard
19491 \begin_inset VSpace bigskip
19492 \end_inset
19493
19494
19495 \end_layout
19496
19497 \begin_layout Standard
19498 \begin_inset Note Greyedout
19499 status open
19500
19501 \begin_layout Plain Layout
19502
19503 \series bold
19504 Note
19505 \series default
19506 :
19507  
19508 \family sans
19509 shapepar
19510 \family default
19511  paragraphs cannot run over a page break.
19512 \end_layout
19513
19514 \end_inset
19515
19516
19517 \end_layout
19518
19519 \begin_layout Standard
19520 \begin_inset VSpace bigskip
19521 \end_inset
19522
19523
19524 \end_layout
19525
19526 \begin_layout Standard
19527 The package 
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 shapepar
19533 \end_layout
19534
19535 \end_inset
19536
19537  takes care that the shape will always be preserved,
19538  no matter how much text is in the paragraph.
19539  Therefore the paragraph size changes with the amount of contained text.
19540  This can lead to paragraph sizes exceeding the page margins.
19541  To demonstrate the size scaling,
19542  here is the same example paragraph but with twice as much text:
19543 \end_layout
19544
19545 \begin_layout Standard
19546 \begin_inset Newpage newpage
19547 \end_inset
19548
19549
19550 \end_layout
19551
19552 \begin_layout Nut
19553
19554 \lang latin
19555 Lorem ipsum dolor sit amet,
19556  consetetur sadipscing elitr,
19557  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19558  sed diam voluptua.
19559  At vero eos et accusam et justo duo dolores et ea rebum.
19560  Stet clita kasd gubergren,
19561  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19562  Lorem ipsum dolor sit amet,
19563  consetetur sadipscing elitr,
19564  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19565  sed diam voluptua.
19566  Lorem ipsum dolor sit amet,
19567  consetetur sadipscing elitr,
19568  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19569  sed diam voluptua.
19570  At vero eos et accusam et justo duo dolores et ea rebum.
19571  Stet clita kasd gubergren,
19572  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19573  Lorem ipsum dolor sit amet,
19574  consetetur sadipscing elitr,
19575  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19576  sed diam voluptua.
19577 \end_layout
19578
19579 \begin_layout Standard
19580 \begin_inset VSpace bigskip
19581 \end_inset
19582
19583
19584 \end_layout
19585
19586 \begin_layout Standard
19587 An exception is the shape 
19588 \family sans
19589 CDlabel
19590 \family default
19591 .
19592  It cannot be scaled because it must fit the size of a CD/DVD.
19593  Therefore the amount of text that fits into the shape is limited.
19594 \end_layout
19595
19596 \begin_layout Standard
19597 The 
19598 \family sans
19599 drop
19600 \family default
19601  shapes and the 
19602 \family sans
19603 circle
19604 \family default
19605  shape are fragile,
19606  meaning that the calculation of their size can fail,
19607  depending on the amount of text.
19608  You will then get the \SpecialChar LaTeX
19609  error 
19610 \begin_inset Quotes eld
19611 \end_inset
19612
19613 Arithmetic overflow
19614 \begin_inset Quotes erd
19615 \end_inset
19616
19617 .
19618  In this case one can try to remove or add some text;
19619  if nothing works one has to use another shape.
19620 \end_layout
19621
19622 \begin_layout Standard
19623 For shapes with tips you will maybe see that \SpecialChar LaTeX
19624 's hyphenation routine fails for text in the tips.
19625  Therefore it is often necessary to add hyphenation points 
19626 \family sans
19627 (
19628 \begin_inset Info
19629 type  "shortcut"
19630 arg   "specialchar-insert hyphenation"
19631 \end_inset
19632
19633
19634 \family default
19635 ) to the corresponding text parts.
19636 \end_layout
19637
19638 \begin_layout Standard
19639 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
19640  You can therefore not use the paragraph dialog to align such paragraphs.
19641  A solution is to put the paragraph into a minipage or parbox and align the box.
19642  The problem is hereby to find the right width for the box.
19643  Because if it is too wide and you center the box,
19644  the paragraph is not centered too because it sticks at the left side of the box.
19645  So you might have to play a bit with the width until it fits.
19646  Here are two heart-shaped paragraphs,
19647  the first one is not aligned,
19648  the second one is right-aligned:
19649 \end_layout
19650
19651 \begin_layout Standard
19652 \begin_inset Newpage newpage
19653 \end_inset
19654
19655
19656 \end_layout
19657
19658 \begin_layout Heart
19659 \noindent
19660
19661 \lang latin
19662 Lo\SpecialChar softhyphen
19663 rem ipsum dolor sit amet,
19664  consetetur sadipscing elitr,
19665  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19666  sed diam voluptua.
19667  At vero eos et accusam et justo duo dolores et ea rebum.
19668  Stet clita kasd gubergren,
19669  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19670 \end_layout
19671
19672 \begin_layout Standard
19673 \begin_inset VSpace bigskip
19674 \end_inset
19675
19676
19677 \end_layout
19678
19679 \begin_layout Standard
19680 \noindent
19681 \align right
19682 \begin_inset Box Frameless
19683 position "t"
19684 hor_pos "c"
19685 has_inner_box 1
19686 inner_pos "t"
19687 use_parbox 1
19688 use_makebox 0
19689 width "42col%"
19690 special "none"
19691 height "1in"
19692 height_special "totalheight"
19693 thickness "0.4pt"
19694 separation "3pt"
19695 shadowsize "4pt"
19696 framecolor "black"
19697 backgroundcolor "none"
19698 status open
19699
19700 \begin_layout Heart
19701 \noindent
19702
19703 \lang latin
19704 Lo\SpecialChar softhyphen
19705 rem ipsum dolor sit amet,
19706  consetetur sadipscing elitr,
19707  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19708  sed diam voluptua.
19709  At vero eos et accusam et justo duo dolores et ea rebum.
19710  Stet clita kasd gubergren,
19711  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19712 \end_layout
19713
19714 \end_inset
19715
19716
19717 \end_layout
19718
19719 \begin_layout Subsubsection
19720 Custom shapes
19721 \end_layout
19722
19723 \begin_layout Standard
19724 You can define any shape you want.
19725  Doing this manually is a lot of work because every coordinate must be specified.
19726  But there is a way to let the computer calculate the coordinates:
19727 \end_layout
19728
19729 \begin_layout Enumerate
19730 Install the program 
19731 \begin_inset CommandInset href
19732 LatexCommand href
19733 name "Jpgfdraw"
19734 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
19735 literal "false"
19736
19737 \end_inset
19738
19739 .
19740 \end_layout
19741
19742 \begin_layout Enumerate
19743 In 
19744 \family sans
19745 Jpgfdraw
19746 \family default
19747  go to the menu 
19748 \family sans
19749 TeX/LaTeX\SpecialChar menuseparator
19750 Settings\SpecialChar menuseparator
19751 Set Normal Size
19752 \family default
19753  and select the font size you are using in your document.
19754  For example this document uses the size 12
19755 \begin_inset space \thinspace{}
19756 \end_inset
19757
19758 pt.
19759 \end_layout
19760
19761 \begin_layout Enumerate
19762 Draw a shape.
19763 \end_layout
19764
19765 \begin_layout Enumerate
19766 Use the menu 
19767 \family sans
19768 TeX/LaTeX\SpecialChar menuseparator
19769 Shapepar
19770 \family default
19771  to export the shape to coordinates.
19772  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
19773 \begin_inset Foot
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 For more information see 
19778 \begin_inset CommandInset href
19779 LatexCommand href
19780 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
19781 literal "false"
19782
19783 \end_inset
19784
19785
19786 \end_layout
19787
19788 \end_inset
19789
19790
19791 \end_layout
19792
19793 \begin_layout Standard
19794 The coordinates are written into a \SpecialChar TeX
19795  file.
19796  To use it for your \SpecialChar LyX
19797  document
19798 \end_layout
19799
19800 \begin_layout Enumerate
19801 Place the cursor before the first character of your paragraph (or into a new empty one).
19802 \end_layout
19803
19804 \begin_layout Enumerate
19805 Open in \SpecialChar LyX
19806  the menu 
19807 \family sans
19808 Insert\SpecialChar menuseparator
19809 File\SpecialChar menuseparator
19810 Child
19811 \begin_inset space ~
19812 \end_inset
19813
19814 Document
19815 \family default
19816 ,
19817  select the file and use 
19818 \family sans
19819 Input
19820 \family default
19821  as 
19822 \family sans
19823 Include Type.
19824 \end_layout
19825
19826 \begin_layout Standard
19827 \begin_inset VSpace defskip
19828 \end_inset
19829
19830
19831 \end_layout
19832
19833 \begin_layout Standard
19834 \begin_inset Note Greyedout
19835 status open
19836
19837 \begin_layout Plain Layout
19838
19839 \series bold
19840 Note
19841 \series default
19842 :
19843  The changed shape only applies to the current paragraph;
19844  everything is reset to normal for the next paragraph.
19845  Therefore the shape definition file must be input into every paragraph with the desired shape.
19846 \end_layout
19847
19848 \end_inset
19849
19850
19851 \end_layout
19852
19853 \begin_layout Standard
19854 \begin_inset VSpace bigskip
19855 \end_inset
19856
19857
19858 \end_layout
19859
19860 \begin_layout Standard
19861 Here is an example:
19862 \end_layout
19863
19864 \begin_layout Standard
19865 \begin_inset VSpace bigskip
19866 \end_inset
19867
19868
19869 \end_layout
19870
19871 \begin_layout Standard
19872 \begin_inset CommandInset include
19873 LatexCommand input
19874 filename "SpecialParagraphShape.tex"
19875 literal "true"
19876
19877 \end_inset
19878
19879
19880 \lang latin
19881 Lorem ipsum dolor sit amet,
19882  consetetur sadipscing elitr,
19883  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19884  sed diam voluptua.
19885  At vero eos et accusam et justo duo dolores et ea rebum.
19886  Stet clita kasd gubergren,
19887  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19888  Lorem ipsum dolor sit amet,
19889  consetetur sadipscing elitr,
19890  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19891  sed diam voluptua.
19892 \end_layout
19893
19894 \begin_layout Standard
19895 \begin_inset VSpace bigskip
19896 \end_inset
19897
19898
19899 \end_layout
19900
19901 \begin_layout Standard
19902
19903 \series bold
19904 A tip:
19905
19906 \series default
19907  to draw complexer shapes in 
19908 \family sans
19909 Jpgfdraw
19910 \family default
19911  you can draw the shape in a program of your choice and import the resulting image to 
19912 \family sans
19913 Jpgfdraw
19914 \family default
19915 .
19916  Then you only need to draw a line or spline along the outline of the image.
19917 \end_layout
19918
19919 \begin_layout Standard
19920 The module 
19921 \family sans
19922 Custom paragraph shapes
19923 \family default
19924  also provides the two commands 
19925 \family sans
19926 shapepar
19927 \family default
19928  and 
19929 \family sans
19930 Shapepar
19931 \family default
19932  which can be used to define custom shapes coordinate by coordinate.
19933 \begin_inset Foot
19934 status collapsed
19935
19936 \begin_layout Plain Layout
19937 These commands are internally used for all shapes described here.
19938 \end_layout
19939
19940 \end_inset
19941
19942  For information how these styles are used and about further customization possibilities,
19943  have a look at the 
19944 \begin_inset CommandInset href
19945 LatexCommand href
19946 name "documentation"
19947 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
19948 literal "false"
19949
19950 \end_inset
19951
19952  of the package 
19953 \begin_inset Flex Code
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957 shapepar
19958 \end_layout
19959
19960 \end_inset
19961
19962 .
19963 \end_layout
19964
19965 \begin_layout Subsection
19966 Hanging Paragraphs
19967 \end_layout
19968
19969 \begin_layout Hanging
19970 This module adds the 
19971 \family sans
19972 Hanging
19973 \family default
19974  paragraph style,
19975  that is,
19976  one where all but the first line of the paragraph is indented.
19977  This may not appear in your \SpecialChar LyX
19978  document but will appear in the final output.
19979 \end_layout
19980
19981 \begin_layout Subsection
19982 \begin_inset CommandInset label
19983 LatexCommand label
19984 name "subsec:Initials"
19985
19986 \end_inset
19987
19988 Initials (Drop Caps)
19989 \end_layout
19990
19991 \begin_layout Initial
19992 \begin_inset Argument 2
19993 status open
19994
19995 \begin_layout Plain Layout
19996 T
19997 \end_layout
19998
19999 \end_inset
20000
20001
20002 \begin_inset Argument 3
20003 status open
20004
20005 \begin_layout Plain Layout
20006 his
20007 \end_layout
20008
20009 \end_inset
20010
20011  module adds a drop capitals paragraph style 
20012 \family sans
20013 Initials
20014 \family default
20015  for paragraph environments which you can use wherever you want to have drop capitals.
20016  You then have three more items in the 
20017 \family sans
20018 Insert
20019 \family default
20020  menu:
20021 \end_layout
20022
20023 \begin_layout Itemize
20024
20025 \family sans
20026 Initial
20027 \family default
20028  which creates an inset for the drop capital
20029 \end_layout
20030
20031 \begin_layout Itemize
20032
20033 \family sans
20034 Rest of initial
20035 \family default
20036  which creates an inset for the rest of the word
20037 \end_layout
20038
20039 \begin_layout Itemize
20040
20041 \family sans
20042 Options
20043 \family default
20044  which allow you configure the formatting of the drop capital.
20045 \end_layout
20046
20047 \begin_layout Standard
20048 To customize the appearance of the style,
20049  see 
20050 \family sans
20051 Help\SpecialChar menuseparator
20052 Embedded Objects\SpecialChar menuseparator
20053 Objects Surrounded by Text\SpecialChar menuseparator
20054 Initials
20055 \family default
20056 .
20057 \end_layout
20058
20059 \begin_layout Section
20060 Text Markup
20061 \end_layout
20062
20063 \begin_layout Subsection
20064 Hyphenatable Text Markup (Soul)
20065 \end_layout
20066
20067 \begin_layout Standard
20068 This modul defines text styles to highlight,
20069  space-out,
20070  strike-through,
20071  underline and capitalize/small-cap text by means of the 
20072 \family sans
20073 soul
20074 \family default
20075  package.
20076 \end_layout
20077
20078 \begin_layout Standard
20079 As opposed to the markup provided by the Text Properties dialog,
20080  words marked-up with 
20081 \family sans
20082 soul
20083 \family default
20084  are hyphenated.
20085  See the 
20086 \begin_inset CommandInset href
20087 LatexCommand href
20088 name "soul documentation"
20089 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
20090 literal "false"
20091
20092 \end_inset
20093
20094 .
20095 \end_layout
20096
20097 \begin_layout Subsection
20098 Logical Markup
20099 \end_layout
20100
20101 \begin_layout Standard
20102 This module defines some character styles for logical markup:
20103  
20104 \noun on
20105
20106 \begin_inset Flex Noun
20107 status collapsed
20108
20109 \begin_layout Plain Layout
20110
20111 \noun on
20112 noun
20113 \end_layout
20114
20115 \end_inset
20116
20117
20118 \noun default
20119 ,
20120  
20121 \emph on
20122
20123 \begin_inset Flex Emph
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127
20128 \emph on
20129 emph
20130 \end_layout
20131
20132 \end_inset
20133
20134
20135 \emph default
20136 ,
20137  
20138 \begin_inset Flex Strong
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142 strong
20143 \end_layout
20144
20145 \end_inset
20146
20147 ,
20148  and 
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 code
20154 \end_layout
20155
20156 \end_inset
20157
20158  which are accessed via the 
20159 \family sans
20160 \bar under
20161 E
20162 \bar default
20163 dit\SpecialChar menuseparator
20164 Custom
20165 \begin_inset space ~
20166 \end_inset
20167
20168 Text
20169 \begin_inset space ~
20170 \end_inset
20171
20172
20173 \bar under
20174 S
20175 \bar default
20176 tyles
20177 \family default
20178  menu.
20179 \end_layout
20180
20181 \begin_layout Chapter
20182 Bibliography
20183 \end_layout
20184
20185 \begin_layout Standard
20186 The most basic information about how to use Bib\SpecialChar TeX
20187  or 
20188 \family sans
20189 Biblatex
20190 \family default
20191  with \SpecialChar LyX
20192  is contained in the section 
20193 \emph on
20194 Bibliography databases
20195 \emph default
20196  of the 
20197 \emph on
20198 User's Guide
20199 \emph default
20200 .
20201  The following subsections explain special bibliography features supported by \SpecialChar LyX
20202 .
20203 \end_layout
20204
20205 \begin_layout Section
20206 Alternative Citation Styles
20207 \end_layout
20208
20209 \begin_layout Standard
20210 Standard Bib\SpecialChar TeX
20211  uses numbers (e.
20212 \begin_inset space \thinspace{}
20213 \end_inset
20214
20215 g.
20216 \begin_inset space \space{}
20217 \end_inset
20218
20219
20220 \begin_inset Quotes eld
20221 \end_inset
20222
20223 [12]
20224 \begin_inset Quotes erd
20225 \end_inset
20226
20227 ) to refer to a cited work.
20228  However,
20229  in many scientific disciplines,
20230  other citation styles are in use.
20231  The most common one is the author-year style (e.
20232 \begin_inset space \thinspace{}
20233 \end_inset
20234
20235 g.
20236 \begin_inset space \space{}
20237 \end_inset
20238
20239
20240 \begin_inset Quotes eld
20241 \end_inset
20242
20243 Knuth 1984a
20244 \begin_inset Quotes erd
20245 \end_inset
20246
20247 ).
20248  \SpecialChar LyX
20249  supports three packages that provide this style,
20250  
20251 \begin_inset Flex Code
20252 status collapsed
20253
20254 \begin_layout Plain Layout
20255 biblatex
20256 \end_layout
20257
20258 \end_inset
20259
20260 ,
20261  
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 natbib
20267 \end_layout
20268
20269 \end_inset
20270
20271 ,
20272  and 
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 jurabib
20278 \end_layout
20279
20280 \end_inset
20281
20282 .
20283  Each of these packages has their pros and cons,
20284  which cannot be listed in detail.
20285  If you only want to have simple author-year (or author-numerical) style,
20286  or if you want to use one of the countless style files for 
20287 \begin_inset Flex Code
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291 natbib
20292 \end_layout
20293
20294 \end_inset
20295
20296 ,
20297  then the established 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 natbib
20303 \end_layout
20304
20305 \end_inset
20306
20307  package is probably your choice.
20308  If you look for specific citation styles common in law studies,
20309  you might consider the 
20310 \begin_inset Flex Code
20311 status collapsed
20312
20313 \begin_layout Plain Layout
20314 jurabib
20315 \end_layout
20316
20317 \end_inset
20318
20319  package.
20320  If you want to have full control over the formatting or look for advanced features such as ibidem,
20321  footnote citations,
20322  full title citations,
20323  advanced date formats (such as 400 BC) or full localization to other languages than English,
20324  you should definitely consider 
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 biblatex
20330 \end_layout
20331
20332 \end_inset
20333
20334 ,
20335  which exceeds all other packages in terms of features,
20336  but is also quite heavy and more resource-hungry.
20337 \end_layout
20338
20339 \begin_layout Standard
20340 The handling of these packages in \SpecialChar LyX
20341  is basically the same.
20342  Go to 
20343 \family sans
20344 Document\SpecialChar menuseparator
20345 Settings
20346 \family default
20347  and select under 
20348 \family sans
20349 Bibliography
20350 \family default
20351  the 
20352 \family sans
20353 Style Format
20354 \family default
20355  
20356 \family sans
20357 Basic (BibTeX)
20358 \family default
20359 ,
20360  
20361 \family sans
20362 Biblatex
20363 \family default
20364 ,
20365  
20366 \family sans
20367 Biblatex (Natbib mode)
20368 \family default
20369 ,
20370  
20371 \family sans
20372 Natbib (BibTeX)
20373 \family default
20374  or 
20375 \family sans
20376 Jurabib (BibTeX)
20377 \family default
20378  (see sec.
20379 \begin_inset space ~
20380 \end_inset
20381
20382 6.5.3 in the User's Guide for more information on these choices).
20383  With all these packages,
20384  you will get some extra features in the citation dialog and you can select the style of the reference (
20385 \begin_inset Quotes eld
20386 \end_inset
20387
20388 Knuth 1984
20389 \begin_inset Quotes erd
20390 \end_inset
20391
20392 ,
20393  
20394 \begin_inset Quotes eld
20395 \end_inset
20396
20397 Knuth (1984)
20398 \begin_inset Quotes erd
20399 \end_inset
20400
20401 ,
20402  
20403 \begin_inset Quotes eld
20404 \end_inset
20405
20406 Knuth,
20407  1984
20408 \begin_inset Quotes erd
20409 \end_inset
20410
20411 ,
20412  
20413 \begin_inset Quotes eld
20414 \end_inset
20415
20416 1984
20417 \begin_inset Quotes erd
20418 \end_inset
20419
20420  etc.).
20421  Note that either package needs specifically designed style files.
20422  They all ship their own,
20423  but there are lots of additional style files,
20424  and there is even an interactive style file builder
20425 \begin_inset Foot
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429 See 
20430 \begin_inset Flex URL
20431 status open
20432
20433 \begin_layout Plain Layout
20434
20435 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
20436 \end_layout
20437
20438 \end_inset
20439
20440
20441 \end_layout
20442
20443 \end_inset
20444
20445  for 
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 natbib
20451 \end_layout
20452
20453 \end_inset
20454
20455 .
20456 \end_layout
20457
20458 \begin_layout Section
20459 Subdivided Bibliographies
20460 \end_layout
20461
20462 \begin_layout Standard
20463 Sometimes you might need to divide your bibliography into several sections.
20464  If you are for instance a historian,
20465  the possibility to separate sources and scientific works is most likely a 
20466 \begin_inset Quotes eld
20467 \end_inset
20468
20469 must have
20470 \begin_inset Quotes erd
20471 \end_inset
20472
20473 .
20474  Unfortunately,
20475  Bib\SpecialChar TeX
20476  itself does not allow you to do this.
20477  But with the help of some \SpecialChar LaTeX
20478  packages,
20479  Bib\SpecialChar TeX
20480  can be extended to fit your needs.
20481 \end_layout
20482
20483 \begin_layout Standard
20484 \SpecialChar LyX
20485  provides native support for one of these packages,
20486  
20487 \family typewriter
20488 bibtopic
20489 \family default
20490 .
20491 \begin_inset Foot
20492 status collapsed
20493
20494 \begin_layout Plain Layout
20495 Available from 
20496 \begin_inset Flex URL
20497 status open
20498
20499 \begin_layout Plain Layout
20500
20501 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
20502 \end_layout
20503
20504 \end_inset
20505
20506
20507 \end_layout
20508
20509 \end_inset
20510
20511  The advantage of this package (compared to other packages such as 
20512 \family typewriter
20513 multibib
20514 \family default
20515 ) is that you don't need to define new citation commands.
20516  Instead,
20517  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
20518  For example:
20519  If you want to divide your bibliography into the sections 
20520 \begin_inset Quotes eld
20521 \end_inset
20522
20523 Sources
20524 \begin_inset Quotes erd
20525 \end_inset
20526
20527  and 
20528 \begin_inset Quotes eld
20529 \end_inset
20530
20531 Scientific works
20532 \begin_inset Quotes erd
20533 \end_inset
20534
20535 ,
20536  you first need to create two bibliographic databases,
20537  e.
20538 \begin_inset space \thinspace{}
20539 \end_inset
20540
20541 g.
20542 \begin_inset space \space{}
20543 \end_inset
20544
20545
20546 \begin_inset Flex Code
20547 status collapsed
20548
20549 \begin_layout Plain Layout
20550 sources.bib
20551 \end_layout
20552
20553 \end_inset
20554
20555  and 
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 scientific.bib
20561 \end_layout
20562
20563 \end_inset
20564
20565 .
20566  
20567 \end_layout
20568
20569 \begin_layout Standard
20570 Go to 
20571 \family sans
20572 Document\SpecialChar menuseparator
20573 Settings
20574 \family default
20575  and check under 
20576 \family sans
20577 Bibliography
20578 \family default
20579  the option 
20580 \family sans
20581 Subdivided bibliography
20582 \family default
20583 .
20584  Now you can insert multiple Bib\SpecialChar TeX
20585  bibliographies,
20586  one for each section of your bibliography.
20587  Returning to our example:
20588  Insert the Bib\SpecialChar TeX
20589  bibliography 
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 sources.bib
20595 \end_layout
20596
20597 \end_inset
20598
20599  and a second one for the database 
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 scientific.bib
20605 \end_layout
20606
20607 \end_inset
20608
20609 .
20610  You are free to use the same or different styles for each section.
20611  Additionally,
20612  you can choose if the bibliography section should contain 
20613 \begin_inset Quotes eld
20614 \end_inset
20615
20616 all cited references
20617 \begin_inset Quotes erd
20618 \end_inset
20619
20620  of the specified database(s) (which is the default),
20621  
20622 \begin_inset Quotes eld
20623 \end_inset
20624
20625 all uncited references
20626 \begin_inset Quotes erd
20627 \end_inset
20628
20629  or even 
20630 \begin_inset Quotes eld
20631 \end_inset
20632
20633 all references
20634 \begin_inset Quotes erd
20635 \end_inset
20636
20637 .
20638  This might be useful if you would like to separate your bibliography into three sections:
20639  
20640 \begin_inset Quotes eld
20641 \end_inset
20642
20643 Cited sources
20644 \begin_inset Quotes erd
20645 \end_inset
20646
20647 ,
20648  
20649 \begin_inset Quotes eld
20650 \end_inset
20651
20652 Uncited sources
20653 \begin_inset Quotes erd
20654 \end_inset
20655
20656 ,
20657  and 
20658 \begin_inset Quotes eld
20659 \end_inset
20660
20661 Scientific works
20662 \begin_inset Quotes erd
20663 \end_inset
20664
20665 .
20666  The titles for the sections can be added as ordinary sections or subsections.
20667  Since 
20668 \begin_inset Flex Code
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672 bibtopic
20673 \end_layout
20674
20675 \end_inset
20676
20677  removes the bibliography title,
20678  you have to manually re-add that,
20679  too (as a chapter* or section*,
20680  for instance).
20681 \end_layout
20682
20683 \begin_layout Standard
20684 With 
20685 \family sans
20686 Biblatex
20687 \family default
20688 ,
20689  the procedure is a bit different.
20690  Since 
20691 \family typewriter
20692 bibtopic
20693 \family default
20694  does not work with 
20695 \family sans
20696 Biblatex
20697 \family default
20698 ,
20699  the aforementioned 
20700 \begin_inset Flex Noun
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 Subdivided bibliography
20705 \end_layout
20706
20707 \end_inset
20708
20709  option is disabled if you use 
20710 \family sans
20711 Biblatex
20712 \family default
20713 .
20714  However,
20715  
20716 \family sans
20717 Biblatex
20718 \family default
20719  provides its own means to generate subdivided bibliographies.
20720  You can either add keywords to bibliography entries via the 
20721 \begin_inset Flex Code
20722 status collapsed
20723
20724 \begin_layout Plain Layout
20725 keywords
20726 \end_layout
20727
20728 \end_inset
20729
20730  entry option and then filter bibliography sections by keyword (by adding 
20731 \begin_inset Flex Code
20732 status collapsed
20733
20734 \begin_layout Plain Layout
20735 keyword=mykeyword
20736 \end_layout
20737
20738 \end_inset
20739
20740  to the 
20741 \begin_inset Flex Noun
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 Options
20746 \end_layout
20747
20748 \end_inset
20749
20750  field of the dialog that opens if you left-click on the 
20751 \begin_inset Flex Noun
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 Biblatex Generated Bibliography
20756 \end_layout
20757
20758 \end_inset
20759
20760  button),
20761  or you can filter by entry types (such as 
20762 \emph on
20763 book
20764 \emph default
20765  or 
20766 \emph on
20767 article
20768 \emph default
20769 ) by entering e.
20770 \begin_inset space \thinspace{}
20771 \end_inset
20772
20773 g.
20774  
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 type=book
20780 \end_layout
20781
20782 \end_inset
20783
20784  or 
20785 \begin_inset Flex Code
20786 status collapsed
20787
20788 \begin_layout Plain Layout
20789 nottype=collection
20790 \end_layout
20791
20792 \end_inset
20793
20794  to the mentioned 
20795 \begin_inset Flex Noun
20796 status collapsed
20797
20798 \begin_layout Plain Layout
20799 Options
20800 \end_layout
20801
20802 \end_inset
20803
20804  field,
20805  or you can create so-called 
20806 \begin_inset Quotes eld
20807 \end_inset
20808
20809 Bibliography Categories
20810 \begin_inset Quotes erd
20811 \end_inset
20812
20813  to which you can assign individual entries.
20814  Please refer to the Biblatex manual,
20815  section 
20816 \emph on
20817 Subdivided Bibliographies
20818 \emph default
20819 ,
20820  for details.
20821 \end_layout
20822
20823 \begin_layout Section
20824 Multiple Bibliographies
20825 \begin_inset CommandInset label
20826 LatexCommand label
20827 name "subsec:Multiple-Bibliographies"
20828
20829 \end_inset
20830
20831
20832 \end_layout
20833
20834 \begin_layout Standard
20835 Multiple bibliographies,
20836  e.
20837 \begin_inset space \thinspace{}
20838 \end_inset
20839
20840 g.
20841 \begin_inset space \space{}
20842 \end_inset
20843
20844 a bibliography for each part,
20845  chapter,
20846  section,
20847  subsection or child (sub-document) of the document,
20848  are also supported by \SpecialChar LyX
20849 .
20850  In order to enable it,
20851  go to 
20852 \family sans
20853 Document\SpecialChar menuseparator
20854 Settings\SpecialChar menuseparator
20855 Bibliography
20856 \family default
20857  and select the relevant unit (e.
20858 \begin_inset space \thinspace{}
20859 \end_inset
20860
20861 g.,
20862  
20863 \begin_inset Quotes eld
20864 \end_inset
20865
20866 per section
20867 \begin_inset Quotes erd
20868 \end_inset
20869
20870 ) in the 
20871 \begin_inset Flex Noun
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 Multiple Bibliographies
20876 \end_layout
20877
20878 \end_inset
20879
20880  combo box.
20881  Then add a Bib(la)\SpecialChar TeX
20882  bibliography to each unit (e.
20883 \begin_inset space \thinspace{}
20884 \end_inset
20885
20886 g.,
20887  section) of your document.
20888  In the output,
20889  a separate bibliography,
20890  containing only the references done in the current unit is generated.
20891 \end_layout
20892
20893 \begin_layout Standard
20894 If you use Bib\SpecialChar TeX
20895 ,
20896  either the 
20897 \begin_inset Flex Code
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 chapterbib
20902 \end_layout
20903
20904 \end_inset
20905
20906  or the 
20907 \begin_inset Flex Code
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911 bibtopic
20912 \end_layout
20913
20914 \end_inset
20915
20916  package is used to create multiple bibliographies.
20917  The former package is used if you select 
20918 \begin_inset Quotes eld
20919 \end_inset
20920
20921 per child document
20922 \begin_inset Quotes erd
20923 \end_inset
20924
20925  and do 
20926 \emph on
20927 not
20928 \emph default
20929  check 
20930 \begin_inset Flex Noun
20931 status collapsed
20932
20933 \begin_layout Plain Layout
20934 Sectioned Bibliography
20935 \end_layout
20936
20937 \end_inset
20938
20939 .
20940  In all other cases,
20941  
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 bibtopic
20947 \end_layout
20948
20949 \end_inset
20950
20951  is used.
20952 \begin_inset Foot
20953 status collapsed
20954
20955 \begin_layout Plain Layout
20956 An alternative approach,
20957  if you are willing to use some 
20958 \begin_inset Flex Noun
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962 \SpecialChar TeX
20963  Code
20964 \end_layout
20965
20966 \end_inset
20967
20968  (see section
20969 \begin_inset space ~
20970 \end_inset
20971
20972
20973 \begin_inset CommandInset ref
20974 LatexCommand ref
20975 reference "sec:Inserting-TeX-Code"
20976 nolink "false"
20977
20978 \end_inset
20979
20980 ),
20981  is to use the 
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 bibunits
20987 \end_layout
20988
20989 \end_inset
20990
20991  package.
20992 \end_layout
20993
20994 \end_inset
20995
20996  If 
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 bibtopic
21002 \end_layout
21003
21004 \end_inset
21005
21006  is used,
21007  \SpecialChar LyX
21008  encloses the specified units in 
21009 \begin_inset Flex Code
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 bibtopic
21014 \end_layout
21015
21016 \end_inset
21017
21018 's 
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023
21024 \backslash
21025 begin{btUnit}
21026 \end_layout
21027
21028 \end_inset
21029
21030  and 
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035
21036 \backslash
21037 end{btUnit}
21038 \end_layout
21039
21040 \end_inset
21041
21042  in order to create the units.
21043  Note that this approach has some limitations.
21044  First,
21045  every citation reference has to be inside some 
21046 \begin_inset Flex Code
21047 status collapsed
21048
21049 \begin_layout Plain Layout
21050 btUnit
21051 \end_layout
21052
21053 \end_inset
21054
21055 .
21056  So citations outside a defined unit (e.
21057 \begin_inset space \thinspace{}
21058 \end_inset
21059
21060 g.,
21061  before the first section if you use 
21062 \begin_inset Quotes eld
21063 \end_inset
21064
21065 by section
21066 \begin_inset Quotes erd
21067 \end_inset
21068
21069 ) will appear as 
21070 \begin_inset Quotes eld
21071 \end_inset
21072
21073 ???
21074 \begin_inset Quotes erd
21075 \end_inset
21076
21077 .
21078  You can also create your own units by entering 
21079 \begin_inset Flex Code
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083
21084 \backslash
21085 begin{btUnit}
21086 \end_layout
21087
21088 \end_inset
21089
21090  and 
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095
21096 \backslash
21097 end{btUnit}
21098 \end_layout
21099
21100 \end_inset
21101
21102  as \SpecialChar TeX
21103  code (for instance to work around the mentioned limitation).
21104  Note,
21105  though,
21106  that 
21107 \begin_inset Flex Code
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111 btUnit
21112 \end_layout
21113
21114 \end_inset
21115
21116 s cannot be nested.
21117  A second limitation is that 
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 bibtopic
21123 \end_layout
21124
21125 \end_inset
21126
21127  always processes all references of a bibliography database,
21128  even if they are not cited.
21129  This can result in odd labels (e.
21130 \begin_inset space \thinspace{}
21131 \end_inset
21132
21133 g.
21134  
21135 \begin_inset Quotes eld
21136 \end_inset
21137
21138 Miller 2014b
21139 \begin_inset Quotes erd
21140 \end_inset
21141
21142  if two works of this author from 2014 are in the database,
21143  even if only one is cited).
21144 \end_layout
21145
21146 \begin_layout Standard
21147 If you use 
21148 \family sans
21149 Biblatex
21150 \family default
21151 ,
21152  the 
21153 \begin_inset Flex Code
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157 refsection
21158 \end_layout
21159
21160 \end_inset
21161
21162  option is used instead.
21163  If you need specific units,
21164  you can start them with the \SpecialChar TeX
21165  code 
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170
21171 \backslash
21172 newrefsection
21173 \end_layout
21174
21175 \end_inset
21176
21177  or 
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182
21183 \backslash
21184 newrefsegment
21185 \end_layout
21186
21187 \end_inset
21188
21189 ,
21190  respectively.
21191  If you also want to control the end of the unit,
21192  use the environment 
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197
21198 \backslash
21199 begin{refsection}
21200 \end_layout
21201
21202 \end_inset
21203
21204  \SpecialChar ldots
21205  
21206 \begin_inset Flex Code
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210
21211 \backslash
21212 end{refsection}
21213 \end_layout
21214
21215 \end_inset
21216
21217  instead.
21218  Note,
21219  though,
21220  that 
21221 \begin_inset Flex Code
21222 status collapsed
21223
21224 \begin_layout Plain Layout
21225 refsection
21226 \end_layout
21227
21228 \end_inset
21229
21230 s cannot be nested.
21231  In addition to the individual bibliography of the current unit,
21232  
21233 \family sans
21234 Biblatex
21235 \family default
21236  also provides an easy way to output all bibliographies,
21237  subsequently,
21238  at one place (e.
21239 \begin_inset space \thinspace{}
21240 \end_inset
21241
21242 g.,
21243  at the end of the document).
21244  Select 
21245 \begin_inset Quotes eld
21246 \end_inset
21247
21248 all reference units
21249 \begin_inset Quotes erd
21250 \end_inset
21251
21252  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
21253  Please refer to the 
21254 \family sans
21255 Biblatex
21256 \family default
21257  manual for more information on this topic.
21258 \end_layout
21259
21260 \begin_layout Chapter
21261 Bullets
21262 \begin_inset CommandInset label
21263 LatexCommand label
21264 name "chap:bullets"
21265
21266 \end_inset
21267
21268
21269 \end_layout
21270
21271 \begin_layout Standard
21272 by
21273 \noun on
21274  Allan Rae
21275 \end_layout
21276
21277 \begin_layout Section
21278 Introduction
21279 \end_layout
21280
21281 \begin_layout Standard
21282 \SpecialChar LyX
21283  provides 216 bullet shapes that can be accessed from a simple dialog.
21284  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
21285  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
21286 \begin_inset Foot
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 Well,
21291  actually you can but you'll have to do it by hand.
21292 \end_layout
21293
21294 \end_inset
21295
21296
21297 \end_layout
21298
21299 \begin_layout Section
21300 How it looks
21301 \end_layout
21302
21303 \begin_layout Standard
21304 Open the dialog by selecting the 
21305 \family sans
21306 Document\SpecialChar menuseparator
21307 Settings
21308 \family default
21309  menu item and then select the 
21310 \begin_inset Flex Noun
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 Bullets
21315 \end_layout
21316
21317 \end_inset
21318
21319  tab.
21320 \end_layout
21321
21322 \begin_layout Standard
21323 The dialog provides you with a table of bullet shapes.
21324  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
21325  The row of buttons across the top is used to select which bullet depth you are changing.
21326 \end_layout
21327
21328 \begin_layout Standard
21329 If you select 
21330 \family sans
21331 Custom bullet
21332 \family default
21333 ,
21334  a text entry under the table will be activated in which you can enter a bullet shape's \SpecialChar LaTeX
21335  equivalent.
21336  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
21337  preamble.
21338 \end_layout
21339
21340 \begin_layout Standard
21341 The six panels are divided up by the packages they require.
21342  The following table shows the mappings from button name to \SpecialChar LaTeX
21343  package.
21344 \end_layout
21345
21346 \begin_layout Standard
21347 \align center
21348 \begin_inset Tabular
21349 <lyxtabular version="3" rows="7" columns="2">
21350 <features tabularvalignment="middle">
21351 <column alignment="center" valignment="top" width="0pt">
21352 <column alignment="center" valignment="top" width="0pt">
21353 <row>
21354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21355 \begin_inset Text
21356
21357 \begin_layout Plain Layout
21358
21359 \family roman
21360 \series medium
21361 \shape up
21362 \size normal
21363 \emph off
21364 \bar no
21365 \noun off
21366 \color none
21367 Button
21368 \end_layout
21369
21370 \end_inset
21371 </cell>
21372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21373 \begin_inset Text
21374
21375 \begin_layout Plain Layout
21376
21377 \family roman
21378 \series medium
21379 \shape up
21380 \size normal
21381 \emph off
21382 \bar no
21383 \noun off
21384 \color none
21385 Packages Required
21386 \end_layout
21387
21388 \end_inset
21389 </cell>
21390 </row>
21391 <row>
21392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21393 \begin_inset Text
21394
21395 \begin_layout Plain Layout
21396
21397 \family sans
21398 \series medium
21399 \shape up
21400 \size normal
21401 \emph off
21402 \bar no
21403 \noun off
21404 \color none
21405 Standard
21406 \end_layout
21407
21408 \end_inset
21409 </cell>
21410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21411 \begin_inset Text
21412
21413 \begin_layout Plain Layout
21414
21415 \series medium
21416 \shape up
21417 \size normal
21418 \emph off
21419 \bar no
21420 \noun off
21421 \color none
21422 base \SpecialChar LaTeX
21423
21424 \end_layout
21425
21426 \end_inset
21427 </cell>
21428 </row>
21429 <row>
21430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21431 \begin_inset Text
21432
21433 \begin_layout Plain Layout
21434
21435 \family sans
21436 \series medium
21437 \shape up
21438 \size normal
21439 \emph off
21440 \bar no
21441 \noun off
21442 \color none
21443 Maths
21444 \end_layout
21445
21446 \end_inset
21447 </cell>
21448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21449 \begin_inset Text
21450
21451 \begin_layout Plain Layout
21452
21453 \family typewriter
21454 \series medium
21455 \shape up
21456 \size normal
21457 \emph off
21458 \bar no
21459 \noun off
21460 \color none
21461 amssymb.sty
21462 \end_layout
21463
21464 \end_inset
21465 </cell>
21466 </row>
21467 <row>
21468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21469 \begin_inset Text
21470
21471 \begin_layout Plain Layout
21472
21473 \family sans
21474 \series medium
21475 \shape up
21476 \size normal
21477 \emph off
21478 \bar no
21479 \noun off
21480 \color none
21481 Ding1
21482 \end_layout
21483
21484 \end_inset
21485 </cell>
21486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21487 \begin_inset Text
21488
21489 \begin_layout Plain Layout
21490
21491 \family typewriter
21492 \series medium
21493 \shape up
21494 \size normal
21495 \emph off
21496 \bar no
21497 \noun off
21498 \color none
21499 pifont.sty
21500 \end_layout
21501
21502 \end_inset
21503 </cell>
21504 </row>
21505 <row>
21506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21507 \begin_inset Text
21508
21509 \begin_layout Plain Layout
21510
21511 \family sans
21512 \series medium
21513 \shape up
21514 \size normal
21515 \emph off
21516 \bar no
21517 \noun off
21518 \color none
21519 Ding2
21520 \end_layout
21521
21522 \end_inset
21523 </cell>
21524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21525 \begin_inset Text
21526
21527 \begin_layout Plain Layout
21528
21529 \family typewriter
21530 \series medium
21531 \shape up
21532 \size normal
21533 \emph off
21534 \bar no
21535 \noun off
21536 \color none
21537 pifont.sty
21538 \end_layout
21539
21540 \end_inset
21541 </cell>
21542 </row>
21543 <row>
21544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21545 \begin_inset Text
21546
21547 \begin_layout Plain Layout
21548
21549 \family sans
21550 \series medium
21551 \shape up
21552 \size normal
21553 \emph off
21554 \bar no
21555 \noun off
21556 \color none
21557 Ding3
21558 \end_layout
21559
21560 \end_inset
21561 </cell>
21562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21563 \begin_inset Text
21564
21565 \begin_layout Plain Layout
21566
21567 \family typewriter
21568 \series medium
21569 \shape up
21570 \size normal
21571 \emph off
21572 \bar no
21573 \noun off
21574 \color none
21575 pifont.sty
21576 \end_layout
21577
21578 \end_inset
21579 </cell>
21580 </row>
21581 <row>
21582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21583 \begin_inset Text
21584
21585 \begin_layout Plain Layout
21586
21587 \family sans
21588 \series medium
21589 \shape up
21590 \size normal
21591 \emph off
21592 \bar no
21593 \noun off
21594 \color none
21595 Ding4
21596 \end_layout
21597
21598 \end_inset
21599 </cell>
21600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21601 \begin_inset Text
21602
21603 \begin_layout Plain Layout
21604
21605 \family typewriter
21606 \series medium
21607 \shape up
21608 \size normal
21609 \emph off
21610 \bar no
21611 \noun off
21612 \color none
21613 pifont.sty
21614 \end_layout
21615
21616 \end_inset
21617 </cell>
21618 </row>
21619 </lyxtabular>
21620
21621 \end_inset
21622
21623
21624 \end_layout
21625
21626 \begin_layout Standard
21627 \SpecialChar LyX
21628  doesn't stop you using bullets from packages you don't have.
21629  If you get errors from \SpecialChar LaTeX
21630  when you try to view or print the file,
21631  then it is likely you are missing a package.
21632 \begin_inset Foot
21633 status collapsed
21634
21635 \begin_layout Plain Layout
21636 \SpecialChar LyX
21637  doesn't restrict your use since you may be editing locally and exporting elsewhere.
21638 \end_layout
21639
21640 \end_inset
21641
21642
21643 \end_layout
21644
21645 \begin_layout Section
21646 \begin_inset CommandInset label
21647 LatexCommand label
21648 name "sec:How-to-use"
21649
21650 \end_inset
21651
21652 How to use it
21653 \end_layout
21654
21655 \begin_layout Standard
21656 Select which bullet depth you want to change then select the bullet shape and size.
21657  Any changes will not be visible in \SpecialChar LyX
21658 ,
21659  but are visible when viewing the document.
21660 \end_layout
21661
21662 \begin_layout Standard
21663 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
21664 \begin_inset CommandInset label
21665 LatexCommand label
21666 name "fn:If-you-really"
21667
21668 \end_inset
21669
21670
21671 \end_layout
21672
21673 \begin_layout Standard
21674 If you 
21675 \emph on
21676 really
21677 \emph default
21678  want to have multiple sets of paragraphs with different sets of bullets in each,
21679  then you're going to have to get your hands dirty with \SpecialChar TeX
21680  code.
21681  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
21682  code for a wide range of bullet shapes.
21683  To make your own custom paragraphs you have the following options:
21684 \end_layout
21685
21686 \begin_layout Standard
21687 \begin_inset ERT
21688 status open
21689
21690 \begin_layout Plain Layout
21691
21692
21693 \backslash
21694 let
21695 \backslash
21696 savelabelitemi=
21697 \backslash
21698 labelitemi
21699 \end_layout
21700
21701 \end_inset
21702
21703
21704 \end_layout
21705
21706 \begin_layout Standard
21707 \begin_inset ERT
21708 status open
21709
21710 \begin_layout Plain Layout
21711
21712
21713 \backslash
21714 renewcommand
21715 \backslash
21716 labelitemi[0]{
21717 \backslash
21718 small
21719 \backslash
21720 (
21721 \backslash
21722 sharp
21723 \backslash
21724 )}
21725 \end_layout
21726
21727 \end_inset
21728
21729
21730 \end_layout
21731
21732 \begin_layout Itemize
21733 Use the \SpecialChar LaTeX
21734  command 
21735 \begin_inset Flex Code
21736 status collapsed
21737
21738 \begin_layout Plain Layout
21739
21740 \backslash
21741 renewcommand
21742 \end_layout
21743
21744 \end_inset
21745
21746  to specify a new bullet shape for a given depth.
21747  You'll also need to save the current bullet shape so you can restore it again afterwards.
21748  In this itemized list the following \SpecialChar LaTeX
21749  code was used to change the bullet used for the first depth.
21750 \end_layout
21751
21752 \begin_deeper
21753 \begin_layout LyX-Code
21754
21755 \backslash
21756 let
21757 \backslash
21758 savelabelitemi=
21759 \backslash
21760 labelitemi 
21761 \end_layout
21762
21763 \begin_layout LyX-Code
21764
21765 \backslash
21766 renewcommand
21767 \backslash
21768 labelitemi[0]{
21769 \backslash
21770 small
21771 \backslash
21772 (
21773 \backslash
21774 sharp
21775 \backslash
21776 )}
21777 \end_layout
21778
21779 \end_deeper
21780 \begin_layout Itemize
21781 Note that the itemize depth is specified in Roman numerals as part of the 
21782 \family typewriter
21783
21784 \backslash
21785 labelitem
21786 \family default
21787  command.
21788 \end_layout
21789
21790 \begin_layout Itemize
21791 \begin_inset Argument item:1
21792 status open
21793
21794 \begin_layout Plain Layout
21795 \begin_inset ERT
21796 status open
21797
21798 \begin_layout Plain Layout
21799
21800
21801 \backslash
21802 (
21803 \backslash
21804 star
21805 \backslash
21806 )
21807 \end_layout
21808
21809 \end_inset
21810
21811
21812 \end_layout
21813
21814 \end_inset
21815
21816  Specify each individual entry by starting each item with the bullet shape enclosed in a 
21817 \begin_inset Quotes eld
21818 \end_inset
21819
21820 Custom Item
21821 \begin_inset Quotes erd
21822 \end_inset
21823
21824  inset (available at 
21825 \family sans
21826 Insert\SpecialChar menuseparator
21827 Custom Item
21828 \family default
21829 ) and set as 
21830 \begin_inset Flex Noun
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 \SpecialChar TeX
21835  Code
21836 \end_layout
21837
21838 \end_inset
21839
21840 .
21841  For example,
21842  this item was started with 
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847
21848 \backslash
21849 (
21850 \backslash
21851 star
21852 \backslash
21853 )
21854 \end_layout
21855
21856 \end_inset
21857
21858 .
21859 \end_layout
21860
21861 \begin_layout Standard
21862 \begin_inset ERT
21863 status open
21864
21865 \begin_layout Plain Layout
21866
21867
21868 \backslash
21869 renewcommand
21870 \backslash
21871 labelitemi[0]{
21872 \backslash
21873 savelabelitemi}
21874 \end_layout
21875
21876 \end_inset
21877
21878
21879 \end_layout
21880
21881 \begin_layout Standard
21882 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
21883  The way used here was:
21884 \end_layout
21885
21886 \begin_layout LyX-Code
21887
21888 \backslash
21889 renewcommand
21890 \backslash
21891 labelitemi[0]{
21892 \backslash
21893 savelabelitemi}
21894 \end_layout
21895
21896 \begin_layout Chapter
21897 Supplemental Tools
21898 \end_layout
21899
21900 \begin_layout Section
21901 Multipart Documents
21902 \end_layout
21903
21904 \begin_layout Subsection
21905 General Operation
21906 \end_layout
21907
21908 \begin_layout Standard
21909 When you are working on a large file with many sections,
21910  it is often convenient to break up the document into several files,
21911  or perhaps you have something where a table may change from time to time,
21912  but the preceding text does not.
21913  In these cases,
21914  you should seriously consider using multipart documents.
21915  For example,
21916  scientific papers often have five major sections:
21917  the introduction,
21918  observations,
21919  results,
21920  discussion,
21921  and conclusion.
21922  Each of these could be its own separate \SpecialChar LyX
21923  file,
21924  with one 
21925 \begin_inset Quotes eld
21926 \end_inset
21927
21928 master
21929 \begin_inset Quotes erd
21930 \end_inset
21931
21932  file which contains the title,
21933  authors,
21934  abstract,
21935  references,
21936  etc.,
21937  plus the five included files.
21938  It is important to note that each of these files is a full \SpecialChar LyX
21939  file which can be formatted and printed on its own,
21940  as well as included in a master file.
21941  Each of these files must have the same document class,
21942  however—
21943 don't attempt to mix book classes with article classes.
21944  You may also include \SpecialChar LaTeX
21945  files;
21946  however,
21947  these files must not have their own preamble (i.
21948 \begin_inset space \thinspace{}
21949 \end_inset
21950
21951 e.
21952 \begin_inset space \space{}
21953 \end_inset
21954
21955 everything up to and including the 
21956 \begin_inset Flex Code
21957 status collapsed
21958
21959 \begin_layout Plain Layout
21960
21961 \backslash
21962 begin{document}
21963 \end_layout
21964
21965 \end_inset
21966
21967  line as well as the 
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972
21973 \backslash
21974 end{document}
21975 \end_layout
21976
21977 \end_inset
21978
21979  line must be deleted) or else errors will be generated when you try to make a DVI file.
21980 \end_layout
21981
21982 \begin_layout Standard
21983 \SpecialChar LyX
21984  allows you to include files quite easily with 
21985 \family sans
21986 Insert\SpecialChar menuseparator
21987 Child
21988 \begin_inset space ~
21989 \end_inset
21990
21991 Document
21992 \family default
21993 .
21994  When you click on this selection a small box is inserted into the file at the current cursor location.
21995  Clicking on the box raises a dialog which allows you to select the file to be included,
21996  and the method of its inclusion.
21997  
21998 \end_layout
21999
22000 \begin_layout Standard
22001 The file selection box should by now be obvious.
22002  The three inclusion methods are 
22003 \begin_inset Quotes eld
22004 \end_inset
22005
22006 include
22007 \begin_inset Quotes erd
22008 \end_inset
22009
22010 ,
22011  
22012 \begin_inset Quotes eld
22013 \end_inset
22014
22015 input
22016 \begin_inset Quotes erd
22017 \end_inset
22018
22019 ,
22020  and 
22021 \begin_inset Quotes eld
22022 \end_inset
22023
22024 verbatim
22025 \begin_inset Quotes erd
22026 \end_inset
22027
22028 .
22029  The methods 
22030 \begin_inset Quotes eld
22031 \end_inset
22032
22033 include
22034 \begin_inset Quotes erd
22035 \end_inset
22036
22037  and 
22038 \begin_inset Quotes eld
22039 \end_inset
22040
22041 input
22042 \begin_inset Quotes erd
22043 \end_inset
22044
22045  are similar in many ways,
22046  but there are also some notable differences:
22047 \end_layout
22048
22049 \begin_layout Enumerate
22050 Files that are 
22051 \begin_inset Quotes eld
22052 \end_inset
22053
22054 included
22055 \begin_inset Quotes erd
22056 \end_inset
22057
22058  are typeset beginning on a new page,
22059  while files that are 
22060 \begin_inset Quotes eld
22061 \end_inset
22062
22063 inputted
22064 \begin_inset Quotes erd
22065 \end_inset
22066
22067  are typeset starting on the current page.
22068 \end_layout
22069
22070 \begin_layout Enumerate
22071 \begin_inset Quotes eld
22072 \end_inset
22073
22074 Included
22075 \begin_inset Quotes erd
22076 \end_inset
22077
22078  files cannot themselves 
22079 \begin_inset Quotes eld
22080 \end_inset
22081
22082 include
22083 \begin_inset Quotes erd
22084 \end_inset
22085
22086  further files (
22087 \begin_inset Quotes eld
22088 \end_inset
22089
22090 grandchilds
22091 \begin_inset Quotes erd
22092 \end_inset
22093
22094 ).
22095  With 
22096 \begin_inset Quotes eld
22097 \end_inset
22098
22099 input
22100 \begin_inset Quotes erd
22101 \end_inset
22102
22103 ,
22104  on the other hand,
22105  infinite sub-inputting is possible.
22106 \end_layout
22107
22108 \begin_layout Enumerate
22109 \begin_inset Quotes eld
22110 \end_inset
22111
22112 Include
22113 \begin_inset Quotes erd
22114 \end_inset
22115
22116  allow for the output of only selected 
22117 \begin_inset Quotes eld
22118 \end_inset
22119
22120 included
22121 \begin_inset Quotes erd
22122 \end_inset
22123
22124  files,
22125  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
22126 \emph on
22127 Child
22128 \begin_inset space ~
22129 \end_inset
22130
22131 Documents
22132 \emph default
22133  of the 
22134 \emph on
22135 Embedded
22136 \begin_inset space ~
22137 \end_inset
22138
22139 Objects
22140 \emph default
22141  manual for details).
22142 \end_layout
22143
22144 \begin_layout Standard
22145 Hence,
22146  
22147 \begin_inset Quotes eld
22148 \end_inset
22149
22150 include
22151 \begin_inset Quotes erd
22152 \end_inset
22153
22154  is the preferred method for chapters that are outsourced to child documents,
22155  while 
22156 \begin_inset Quotes eld
22157 \end_inset
22158
22159 input
22160 \begin_inset Quotes erd
22161 \end_inset
22162
22163  is more suitable for arbitrary file inheritance.
22164 \end_layout
22165
22166 \begin_layout Standard
22167
22168 \begin_inset Quotes eld
22169 \end_inset
22170
22171 verbatim
22172 \begin_inset Quotes erd
22173 \end_inset
22174
22175  included file allows you to include a file typeset exactly as it appears in the file,
22176  i.
22177 \begin_inset space \thinspace{}
22178 \end_inset
22179
22180 e.
22181 \begin_inset space \space{}
22182 \end_inset
22183
22184 in 
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189 verbatim
22190 \end_layout
22191
22192 \end_inset
22193
22194  mode,
22195  with the characters set in a fixed-width typewriter font.
22196  Normally,
22197  spaces in this file are invisible,
22198  though two consecutive spaces are conserved,
22199  unlike \SpecialChar LyX
22200 's normal treatment of spaces.
22201  However,
22202  setting the 
22203 \begin_inset Flex Noun
22204 status collapsed
22205
22206 \begin_layout Plain Layout
22207 Mark
22208 \begin_inset space ~
22209 \end_inset
22210
22211 spaces
22212 \begin_inset space ~
22213 \end_inset
22214
22215 in
22216 \begin_inset space ~
22217 \end_inset
22218
22219 output
22220 \end_layout
22221
22222 \end_inset
22223
22224  checkbox typesets a mark to unambiguously define the presence of a space.
22225  
22226 \end_layout
22227
22228 \begin_layout Standard
22229 Generally,
22230  the master file is converted into a full \SpecialChar LaTeX
22231  file before typesetting,
22232  while the included files are converted to \SpecialChar LaTeX
22233  files that do not have all the preamble information.
22234 \end_layout
22235
22236 \begin_layout Subsection
22237 Cross-References Between Files
22238 \end_layout
22239
22240 \begin_layout Standard
22241 \begin_inset Box Shadowbox
22242 position "t"
22243 hor_pos "c"
22244 has_inner_box 1
22245 inner_pos "t"
22246 use_parbox 0
22247 use_makebox 0
22248 width "100col%"
22249 special "none"
22250 height "1in"
22251 height_special "totalheight"
22252 thickness "0.4pt"
22253 separation "3pt"
22254 shadowsize "4pt"
22255 framecolor "black"
22256 backgroundcolor "none"
22257 status open
22258
22259 \begin_layout Plain Layout
22260 This section is somewhat out of date.
22261  Need to describe default master documents and how children are opened when the master is.
22262  [[FIXME]]
22263 \end_layout
22264
22265 \end_inset
22266
22267
22268 \end_layout
22269
22270 \begin_layout Standard
22271 It is possible to set up cross-references between the different files.
22272  First,
22273  open all the files in question:
22274  let's call them A and B in a two file example,
22275  where B is included in A.
22276  Let's say you insert a label in A,
22277  then want to reference it in B.
22278  Open the cross-reference dialog whilst in document B,
22279  and you can select the 
22280 \begin_inset Quotes eld
22281 \end_inset
22282
22283 buffer
22284 \begin_inset Quotes erd
22285 \end_inset
22286
22287  to use.
22288 \end_layout
22289
22290 \begin_layout Subsection
22291 Bibliography Lists in all Subdocuments
22292 \end_layout
22293
22294 \begin_layout Standard
22295 If you work with child documents,
22296  you might want to have only one main bibliography at the end,
22297  but still be able to have a selected bibliography for the child if you output it on its own.
22298  Here is how to achieve this.
22299 \end_layout
22300
22301 \begin_layout Standard
22302 For the main document,
22303  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
22304  If the bibliography inset is in the master file,
22305  the references will be inherited by all children,
22306  so they are available in the citation dialog within each child.
22307 \end_layout
22308
22309 \begin_layout Standard
22310 For child-specific bibliographies,
22311  insert bibliography insets within the child documents,
22312  at the place where the bibliography should appear when the child is compiled separately.
22313  However,
22314  the trick is to insert them into a branch (
22315 \family sans
22316 Insert\SpecialChar menuseparator
22317 Branch\SpecialChar menuseparator
22318 Insert New Branch...
22319 \family default
22320 ),
22321  e.
22322 \begin_inset space \thinspace{}
22323 \end_inset
22324
22325 g.
22326  called 
22327 \begin_inset Quotes eld
22328 \end_inset
22329
22330 Childonly
22331 \begin_inset Quotes erd
22332 \end_inset
22333
22334 .
22335  Within the children,
22336  activate the branch (
22337 \family sans
22338 Document\SpecialChar menuseparator
22339 Settings...\SpecialChar menuseparator
22340 Branches
22341 \family default
22342 ).
22343  Within the master,
22344  deactivate the branch (
22345 \family sans
22346 Document\SpecialChar menuseparator
22347 Settings...\SpecialChar menuseparator
22348 Branches
22349 \family default
22350 ).
22351  Now the child's bibliography will be ignored by the master,
22352  but considered by the child.
22353 \end_layout
22354
22355 \begin_layout Standard
22356 If you need multiple bibliographies (e.
22357 \begin_inset space \thinspace{}
22358 \end_inset
22359
22360 g.,
22361  one per child in the 
22362 \emph on
22363 main document
22364 \emph default
22365 ),
22366  please refer to sec.
22367 \begin_inset space ~
22368 \end_inset
22369
22370
22371 \begin_inset CommandInset ref
22372 LatexCommand ref
22373 reference "subsec:Multiple-Bibliographies"
22374 nolink "false"
22375
22376 \end_inset
22377
22378 .
22379 \end_layout
22380
22381 \begin_layout Section
22382 \SpecialChar LyX
22383  Archives
22384 \end_layout
22385
22386 \begin_layout Standard
22387 Users sometimes need to be able to 
22388 \begin_inset Quotes eld
22389 \end_inset
22390
22391 bundle
22392 \begin_inset Quotes erd
22393 \end_inset
22394
22395  a \SpecialChar LyX
22396  file together with all the images (and other files) on which it depends,
22397  either for sending to a publisher or for sharing with a co-author.
22398  \SpecialChar LyX
22399  includes a Python script (
22400 \begin_inset Flex Code
22401 status collapsed
22402
22403 \begin_layout Plain Layout
22404 lyxpak.py
22405 \end_layout
22406
22407 \end_inset
22408
22409 ) that automates this process.
22410  To use it,
22411  you must have either the 
22412 \begin_inset Flex Code
22413 status collapsed
22414
22415 \begin_layout Plain Layout
22416 zipfile
22417 \end_layout
22418
22419 \end_inset
22420
22421  or 
22422 \begin_inset Flex Code
22423 status collapsed
22424
22425 \begin_layout Plain Layout
22426 tarfile
22427 \end_layout
22428
22429 \end_inset
22430
22431  python modules installed on your system.
22432  By default,
22433  the script prefers the 
22434 \begin_inset Flex Code
22435 status collapsed
22436
22437 \begin_layout Plain Layout
22438 gzip
22439 \end_layout
22440
22441 \end_inset
22442
22443 -compressed 
22444 \begin_inset Flex Code
22445 status collapsed
22446
22447 \begin_layout Plain Layout
22448 tar
22449 \end_layout
22450
22451 \end_inset
22452
22453  format on Unix-like systems and the 
22454 \begin_inset Flex Code
22455 status collapsed
22456
22457 \begin_layout Plain Layout
22458 zip
22459 \end_layout
22460
22461 \end_inset
22462
22463  format on Windows.
22464 \end_layout
22465
22466 \begin_layout Standard
22467 \SpecialChar LyX
22468 's configuration process will set the script up to export a `\SpecialChar LyX
22469  Archive',
22470  and this format will then be available under 
22471 \family sans
22472 File\SpecialChar menuseparator
22473 Export
22474 \family default
22475 .
22476 \end_layout
22477
22478 \begin_layout Standard
22479 Independently of the platform,
22480  the generation of a particular archive format can be forced by adding either the 
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 -t
22486 \end_layout
22487
22488 \end_inset
22489
22490  (for the 
22491 \begin_inset Flex Code
22492 status collapsed
22493
22494 \begin_layout Plain Layout
22495 tar
22496 \end_layout
22497
22498 \end_inset
22499
22500  format) or 
22501 \begin_inset Flex Code
22502 status collapsed
22503
22504 \begin_layout Plain Layout
22505 -z
22506 \end_layout
22507
22508 \end_inset
22509
22510  (for the 
22511 \begin_inset Flex Code
22512 status collapsed
22513
22514 \begin_layout Plain Layout
22515 zip
22516 \end_layout
22517
22518 \end_inset
22519
22520  format) switch to the 
22521 \begin_inset Flex Code
22522 status collapsed
22523
22524 \begin_layout Plain Layout
22525 \SpecialChar LyX
22526 ->\SpecialChar LyX
22527  Archive
22528 \end_layout
22529
22530 \end_inset
22531
22532  converter in 
22533 \family sans
22534 Tools\SpecialChar menuseparator
22535 Preferences\SpecialChar menuseparator
22536 File Handling\SpecialChar menuseparator
22537 Converters
22538 \family default
22539 .
22540  (Make sure you add the switch after the script name,
22541  not before it.)
22542 \end_layout
22543
22544 \begin_layout Chapter
22545 \SpecialChar LyX
22546  and the World Wide Web
22547 \end_layout
22548
22549 \begin_layout Standard
22550 \SpecialChar LyX
22551  has long supported the export of documents to various web-friendly formats,
22552  such as HTML.
22553  Before version 2.0,
22554  however,
22555  HTML export was always accomplished by the use of external converters.
22556 \begin_inset Foot
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 For details on the use of external converters with \SpecialChar LyX
22561 ,
22562  see the 
22563 \emph on
22564 Converters
22565 \emph default
22566  section of the Customization manual.
22567 \end_layout
22568
22569 \end_inset
22570
22571  These fall into two large groups:
22572  there are converters that use \SpecialChar LaTeX
22573  as an intermediate format,
22574  such as 
22575 \begin_inset Flex Code
22576 status collapsed
22577
22578 \begin_layout Plain Layout
22579 htlatex
22580 \end_layout
22581
22582 \end_inset
22583
22584 ,
22585  
22586 \begin_inset Flex Code
22587 status collapsed
22588
22589 \begin_layout Plain Layout
22590 html2latex
22591 \end_layout
22592
22593 \end_inset
22594
22595 ,
22596  and 
22597 \begin_inset Flex Code
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 plastex
22602 \end_layout
22603
22604 \end_inset
22605
22606 ,
22607  relying upon \SpecialChar LyX
22608  to produce the \SpecialChar LaTeX
22609 ;
22610  and there is a converter that works directly on \SpecialChar LyX
22611  files,
22612  
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 e\SpecialChar LyX
22618 er
22619 \end_layout
22620
22621 \end_inset
22622
22623 .
22624  All of these have different advantages and disadvantages.
22625  
22626 \end_layout
22627
22628 \begin_layout Standard
22629 The \SpecialChar LaTeX
22630 -based converters have the advantage that,
22631  in principle,
22632  they know everything about the exported document that \SpecialChar LaTeX
22633  does.
22634  Such converters do not care,
22635  for example,
22636  if a certain block of code was produced by \SpecialChar LyX
22637  or was Evil Red Text.
22638  These converters know about 
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 aux
22644 \end_layout
22645
22646 \end_inset
22647
22648  files,
22649  counters,
22650  and references,
22651  and can often make use of the 
22652 \begin_inset Flex Code
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656 bbl
22657 \end_layout
22658
22659 \end_inset
22660
22661  files generated by Bib\SpecialChar TeX
22662 .
22663  On the other hand,
22664  \SpecialChar LaTeX
22665  is a very hard language to parse—
22666 it is sometimes said that only \SpecialChar TeX
22667  itself understands \SpecialChar TeX
22668
22669 and \SpecialChar LaTeX
22670 -based converters will often choke on what seem to be quite simple constructs;
22671  complex ones can throw them completely,
22672  and as of this writing,
22673  for example,
22674  the 
22675 \emph on
22676 Embedded Objects
22677 \emph default
22678  manual will not export with 
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 htlatex
22684 \end_layout
22685
22686 \end_inset
22687
22688 ,
22689  though the others will.
22690  The other issue concerns how math is handled.
22691  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
22692  Since these are actually generated by \SpecialChar LaTeX
22693 ,
22694  they are accurate.
22695  But they do not scale well,
22696  and just getting them to look as if they are actually meant to be in your document—
22697 so that the font sizes seem to be roughly the same—
22698 can be a challenge.
22699 \end_layout
22700
22701 \begin_layout Standard
22702 Alex Fernandez's 
22703 \begin_inset Flex Code
22704 status collapsed
22705
22706 \begin_layout Plain Layout
22707 e\SpecialChar LyX
22708 er
22709 \end_layout
22710
22711 \end_inset
22712
22713  (
22714 \begin_inset CommandInset href
22715 LatexCommand href
22716 name "http://pinchito.es/elyxer/"
22717 target "http://pinchito.es/elyxer/"
22718 literal "false"
22719
22720 \end_inset
22721
22722 ) solves some of these problems.
22723  In particular,
22724  the formulae it produces scale perfectly,
22725  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
22726  But even moderately complex formula are rendered less well than with 
22727 \begin_inset Flex Code
22728 status collapsed
22729
22730 \begin_layout Plain Layout
22731 htlatex
22732 \end_layout
22733
22734 \end_inset
22735
22736 ;
22737  this reflects the limitations of HTML.
22738 \begin_inset Foot
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742 That said,
22743  
22744 \begin_inset Flex Code
22745 status collapsed
22746
22747 \begin_layout Plain Layout
22748 e\SpecialChar LyX
22749 er
22750 \end_layout
22751
22752 \end_inset
22753
22754  can also use jsMath and MathJax for equations,
22755  but this setting is only available globally and requires one to have access to a server that runs the backend.
22756 \end_layout
22757
22758 \end_inset
22759
22760  More importantly (as of version 1.1.1,
22761  at least),
22762  
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 e\SpecialChar LyX
22768 er
22769 \end_layout
22770
22771 \end_inset
22772
22773  has limited support for math macros and no support for user-defined paragraph or character styles.
22774  These limitations make 
22775 \begin_inset Flex Code
22776 status collapsed
22777
22778 \begin_layout Plain Layout
22779 e\SpecialChar LyX
22780 er
22781 \end_layout
22782
22783 \end_inset
22784
22785  unsuitable for many of the documents \SpecialChar LyX
22786  users produce.
22787  In principle,
22788  of course,
22789  these problems could be solved,
22790  but the \SpecialChar LyX
22791  developers have decided to follow a different path and have made \SpecialChar LyX
22792  itself capable of writing XHTML,
22793  just as it is capable of writing \SpecialChar LaTeX
22794 ,
22795  DocBook,
22796  and plaintext.
22797 \end_layout
22798
22799 \begin_layout Standard
22800 As of this writing,
22801  XHTML output remains under development and should probably be regarded as 
22802 \begin_inset Quotes eld
22803 \end_inset
22804
22805 experimental
22806 \begin_inset Quotes erd
22807 \end_inset
22808
22809 .
22810 \begin_inset Foot
22811 status collapsed
22812
22813 \begin_layout Plain Layout
22814 The file 
22815 \begin_inset Flex Code
22816 status collapsed
22817
22818 \begin_layout Plain Layout
22819 development/HTML/HTML.notes
22820 \end_layout
22821
22822 \end_inset
22823
22824 ,
22825  which can be found in the \SpecialChar LyX
22826  source tree or 
22827 \begin_inset CommandInset href
22828 LatexCommand href
22829 name "accessed online"
22830 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
22831 literal "false"
22832
22833 \end_inset
22834
22835 ,
22836  usually contains up-to-date information about the state of XHTML output.
22837  See also the list of XHTML bugs on 
22838 \begin_inset CommandInset href
22839 LatexCommand href
22840 name "the bug tracker"
22841 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"
22842 literal "false"
22843
22844 \end_inset
22845
22846 .
22847 \end_layout
22848
22849 \end_inset
22850
22851  Still,
22852  the developers have chosen this approach because it has several potential advantages over the other two.
22853 \end_layout
22854
22855 \begin_layout Standard
22856 These advantages are primarily due to the fact that the XHTML output routines,
22857  since they are part of \SpecialChar LyX
22858 ,
22859  know everything \SpecialChar LyX
22860  knows about the document being exported.
22861 \begin_inset Foot
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 Another advantage is that,
22866  since these routines are internal to \SpecialChar LyX
22867 ,
22868  they are immune to changes in \SpecialChar LyX
22869 's file format,
22870  or to changes in the semantics of existing insets.
22871 \end_layout
22872
22873 \end_inset
22874
22875  So they know about the table of contents (as displayed in the outline),
22876  about the counters associated with different paragraph styles,
22877  and about user-defined styles.
22878  The XHTML output routines know what \SpecialChar LyX
22879  knows about internationalization,
22880  too,
22881  so they will output 
22882 \begin_inset Quotes eld
22883 \end_inset
22884
22885 Chapter 1
22886 \begin_inset Quotes erd
22887 \end_inset
22888
22889  or 
22890 \begin_inset Quotes eld
22891 \end_inset
22892
22893
22894 \lang ngerman
22895 Kapitel
22896 \lang english
22897  1
22898 \begin_inset Quotes erd
22899 \end_inset
22900
22901 ,
22902  depending upon the language in effect at the time.
22903  
22904 \end_layout
22905
22906 \begin_layout Standard
22907 Quite generally,
22908  the output routines know what \SpecialChar LyX
22909  knows about document layout,
22910  that is,
22911  about how the document is to be rendered on screen.
22912  We use this information when we output the document as XHTML.
22913  In particular,
22914  \SpecialChar LyX
22915  
22916 \emph on
22917 automatically
22918 \emph default
22919  generates CSS style information corresponding to the layout information it uses to render the document on screen:
22920  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
22921 ,
22922  then (by default) they will be sans-serif and bold when viewed in a web browser,
22923  too.
22924  And this is true not just for pre-defined styles,
22925  like Section,
22926  but for any style,
22927  including user-defined styles.
22928  Indeed,
22929  the XHTML output routines make no distinction between user-defined paragraph and text styles and \SpecialChar LyX
22930 's own pre-defined styles:
22931  in each case,
22932  everything \SpecialChar LyX
22933  knows about the styles is contained in the layout files.
22934  And much the same is true as regards pre-defined textual insets,
22935  such as footnotes,
22936  and various custom insets.
22937 \end_layout
22938
22939 \begin_layout Standard
22940 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
22941  output can be customized and extended:
22942  through layout files and modules.
22943  See chapter five of the 
22944 \emph on
22945 Customization 
22946 \emph default
22947 manual for the details.
22948 \end_layout
22949
22950 \begin_layout Standard
22951 The remainder of this chapter contains more detailed information on XHTML output,
22952  its limitations,
22953  and ways to work around those limitations.
22954 \end_layout
22955
22956 \begin_layout Section
22957 Math Output in XHTML
22958 \end_layout
22959
22960 \begin_layout Standard
22961 \SpecialChar LyX
22962  offers four choices for how math is rendered.
22963  These have various advantages and disadvantages:
22964 \end_layout
22965
22966 \begin_layout Itemize
22967 MathML
22968 \begin_inset Newline newline
22969 \end_inset
22970
22971 MathML is a dialect of XML designed specifically for mathematics on the web,
22972  and it typically renders very well in browsers that support it.
22973  The disadvantage is that not all browsers support MathML,
22974  and support is not complete even in the Gecko-based browsers,
22975  such as Firefox.
22976 \begin_inset Newline newline
22977 \end_inset
22978
22979 If \SpecialChar LyX
22980  is unable to render a formula as MathML—
22981 for example,
22982  if the formula uses the 
22983 \begin_inset Flex Code
22984 status collapsed
22985
22986 \begin_layout Plain Layout
22987 xymatrix
22988 \end_layout
22989
22990 \end_inset
22991
22992  package or ERT—
22993 then it will instead output the formula as an image.
22994  
22995 \end_layout
22996
22997 \begin_layout Itemize
22998 HTML
22999 \begin_inset Newline newline
23000 \end_inset
23001
23002 As mentioned above,
23003  
23004 \begin_inset Flex Code
23005 status collapsed
23006
23007 \begin_layout Plain Layout
23008 elyxer
23009 \end_layout
23010
23011 \end_inset
23012
23013  outputs math as HTML,
23014  styled by CSS.
23015 \begin_inset Foot
23016 status collapsed
23017
23018 \begin_layout Plain Layout
23019 \SpecialChar LyX
23020  has borrowed some of the CSS for its HTML output from 
23021 \begin_inset Flex Code
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 elyxer
23026 \end_layout
23027
23028 \end_inset
23029
23030 .
23031 \end_layout
23032
23033 \end_inset
23034
23035  For simple formulae,
23036  this can work quite well,
23037  though with more complicated formulae it tends to break down.
23038  Still,
23039  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
23040  fairly simple math.
23041 \begin_inset Newline newline
23042 \end_inset
23043
23044 If Lyx is unable to render a formula as HTML—
23045 for example,
23046  if the formula uses the 
23047 \begin_inset Flex Code
23048 status collapsed
23049
23050 \begin_layout Plain Layout
23051 xymatrix
23052 \end_layout
23053
23054 \end_inset
23055
23056  package or ERT—
23057 then it will instead output the formula as an image.
23058  
23059 \end_layout
23060
23061 \begin_layout Itemize
23062 Images
23063 \begin_inset Newline newline
23064 \end_inset
23065
23066 Like 
23067 \begin_inset Flex Code
23068 status collapsed
23069
23070 \begin_layout Plain Layout
23071 htlatex
23072 \end_layout
23073
23074 \end_inset
23075
23076 ,
23077  \SpecialChar LyX
23078  will output formulae as images,
23079  the very same images,
23080  in fact,
23081  that are used for instant preview.
23082 \begin_inset Foot
23083 status collapsed
23084
23085 \begin_layout Plain Layout
23086 Instant preview does 
23087 \emph on
23088 not 
23089 \emph default
23090 have to be on for images to be output,
23091  however.
23092 \end_layout
23093
23094 \end_inset
23095
23096  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
23097 ,
23098  so they are very accurate.
23099  The disadvantage,
23100  as mentioned earlier,
23101  is that these are bitmapped images,
23102  so they do not scale terribly well,
23103  and one cannot copy them,
23104  etc.
23105 \begin_inset Newline newline
23106 \end_inset
23107
23108 The size of the images can be controlled by setting the 
23109 \begin_inset Quotes eld
23110 \end_inset
23111
23112 Math Images Scaling
23113 \begin_inset Quotes erd
23114 \end_inset
23115
23116  parameter under 
23117 \family sans
23118 Document\SpecialChar menuseparator
23119 Settings\SpecialChar menuseparator
23120 Formats
23121 \family default
23122 .
23123 \begin_inset Foot
23124 status collapsed
23125
23126 \begin_layout Plain Layout
23127 For those who want to know,
23128  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
23129 \end_layout
23130
23131 \end_inset
23132
23133
23134 \begin_inset Newline newline
23135 \end_inset
23136
23137 If \SpecialChar LyX
23138  for some reason fails to create an image for a formula (e.g.,
23139  if a required \SpecialChar LaTeX
23140  package is not installed),
23141  then it will fall back to outputing the raw \SpecialChar LaTeX
23142 .
23143 \end_layout
23144
23145 \begin_layout Itemize
23146 \SpecialChar LaTeX
23147
23148 \begin_inset Newline newline
23149 \end_inset
23150
23151 Finally,
23152  \SpecialChar LyX
23153  will happily output math as \SpecialChar LaTeX
23154 .
23155  As well as being the output of last resort,
23156  this method can be used with such tools as 
23157 \begin_inset CommandInset href
23158 LatexCommand href
23159 name "jsMath"
23160 target "http://www.math.union.edu/~dpvc/jsMath/"
23161 literal "false"
23162
23163 \end_inset
23164
23165 ,
23166  which uses JavaScript to render \SpecialChar LaTeX
23167  embedded in HTML documents.
23168  \SpecialChar LyX
23169  wraps the \SpecialChar LaTeX
23170  in either a 
23171 \begin_inset Flex Code
23172 status collapsed
23173
23174 \begin_layout Plain Layout
23175 span
23176 \end_layout
23177
23178 \end_inset
23179
23180  (for inline formulas) or 
23181 \begin_inset Flex Code
23182 status collapsed
23183
23184 \begin_layout Plain Layout
23185 div
23186 \end_layout
23187
23188 \end_inset
23189
23190  (for displayed formulas) with 
23191 \begin_inset Flex Code
23192 status collapsed
23193
23194 \begin_layout Plain Layout
23195 class='math'
23196 \end_layout
23197
23198 \end_inset
23199
23200 ,
23201  as is required for jsMath.
23202 \end_layout
23203
23204 \begin_layout Standard
23205 One of these output methods must be selected under 
23206 \family sans
23207 Document\SpecialChar menuseparator
23208 Settings\SpecialChar menuseparator
23209 Formats
23210 \family default
23211 .
23212  By default,
23213  \SpecialChar LyX
23214  outputs MathML.
23215  This is a document-wide setting,
23216  therefore.
23217 \end_layout
23218
23219 \begin_layout Standard
23220 Eventually,
23221  \SpecialChar LyX
23222  will offer the user the option to select an alternate output method for a particular inset,
23223  say,
23224  one that isn't being rendered very well by MathML.
23225 \begin_inset Foot
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 That said,
23230  since \SpecialChar LyX
23231  falls back to images if the inset contains ERT,
23232  then one can force output as an image by putting some harmless ERT into the math,
23233  for example:
23234  
23235 \begin_inset Formula $a=b\relax$
23236 \end_inset
23237
23238 .
23239 \end_layout
23240
23241 \end_inset
23242
23243
23244 \end_layout
23245
23246 \begin_layout Section
23247 Bibliography and Citations
23248 \end_layout
23249
23250 \begin_layout Standard
23251 XHTML output fully supports bibliographies and citations.
23252  
23253 \end_layout
23254
23255 \begin_layout Standard
23256 Citation labels are generated by the same machinery that generates \SpecialChar LyX
23257 's on-screen labels,
23258  so the labels will look in the output much as they do in \SpecialChar LyX
23259 ,
23260  though better.
23261  If you are using numerical citations,
23262  then \SpecialChar LyX
23263  will output numerical labels,
23264  such as [1] or [17],
23265  rather than simply showing the citation key in square brackets,
23266  as it does on-screen.
23267  If you are using author-year citations,
23268  then \SpecialChar LyX
23269  will add lowercase letters to the years,
23270  just as Bib\SpecialChar TeX
23271  does,
23272  if it finds more than one citation for a given author-year combination.
23273  The labels will be printed with the bibliography entries.
23274  Note that there is,
23275  at present,
23276  no way to customize the appearance of the labels,
23277  for example,
23278  to choose between square brackets and parentheses.
23279 \end_layout
23280
23281 \begin_layout Standard
23282 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
23283  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.
23284  The formatting can be customized in your layout file or,
23285  preferably,
23286  in a module.
23287  See the 
23288 \emph on
23289 Customization
23290 \emph default
23291  manual for the details.
23292 \end_layout
23293
23294 \begin_layout Standard
23295 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
23296  So you can see things like this:
23297 \end_layout
23298
23299 \begin_layout Quote
23300 Jason Stanley,
23301  
23302 \begin_inset Quotes eld
23303 \end_inset
23304
23305 Context and Logical Form
23306 \begin_inset Quotes erd
23307 \end_inset
23308
23309 ,
23310  in 
23311 \emph on
23312 Language in Context:
23313  Selected Essays
23314 \emph default
23315  (Oxford:
23316  Oxford University Press,
23317  2007),
23318  pp.
23319  30–68.
23320 \end_layout
23321
23322 \begin_layout Quote
23323 Jason Stanley,
23324  
23325 \begin_inset Quotes eld
23326 \end_inset
23327
23328 Semantics in Context
23329 \begin_inset Quotes erd
23330 \end_inset
23331
23332 ,
23333  in 
23334 \emph on
23335 Language in Context:
23336  Selected Essays
23337 \emph default
23338  (Oxford:
23339  Oxford University Press,
23340  2007),
23341  pp.
23342  201–30.
23343 \end_layout
23344
23345 \begin_layout Standard
23346 This should be fixed before long.
23347 \end_layout
23348
23349 \begin_layout Standard
23350 There is no support at present for sectioned bibliographies.
23351  If you have multiple bibliographies,
23352  then \SpecialChar LyX
23353  will print the same bibliography over and over.
23354 \end_layout
23355
23356 \begin_layout Section
23357 Indexes
23358 \end_layout
23359
23360 \begin_layout Standard
23361 \SpecialChar LyX
23362  will happily export indexes as XHTML,
23363  but with certain limitations at the moment.
23364 \end_layout
23365
23366 \begin_layout Standard
23367 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 
23368 \emph on
23369 User's Guide
23370 \emph default
23371 .
23372 \begin_inset Foot
23373 status collapsed
23374
23375 \begin_layout Plain Layout
23376 The main issue here is that \SpecialChar LyX
23377  itself does not really handle these.
23378  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
23379 .
23380 \end_layout
23381
23382 \end_inset
23383
23384  We'll describe how they are handled using the subsection headings from that section.
23385 \end_layout
23386
23387 \begin_layout Itemize
23388 Grouping Index Entries (aka,
23389  sub-entries):
23390  \SpecialChar LyX
23391  makes an effort to support these,
23392  but the entries must be separated by 
23393 \begin_inset Quotes eld
23394 \end_inset
23395
23396  !
23397  
23398 \begin_inset Quotes erd
23399 \end_inset
23400
23401 ,
23402  that is,
23403  there must be spaces around the exclamation point.
23404  This is because it is otherwise too difficult to check for escaped exclamation points,
23405  ones in math,
23406  and so forth.
23407 \end_layout
23408
23409 \begin_layout Itemize
23410 Page Ranges:
23411  There is no support at all for page ranges,
23412  since these make no sense with XHMTL.
23413  Instead,
23414  you will just get two index entries,
23415  one at either end.
23416 \end_layout
23417
23418 \begin_layout Itemize
23419 Cross-referencing:
23420  There is no support for cross-referencing.
23421  If \SpecialChar LyX
23422  finds an entry containing the 
23423 \begin_inset Quotes eld
23424 \end_inset
23425
23426 |see\SpecialChar ldots
23427
23428 \begin_inset Quotes erd
23429 \end_inset
23430
23431  construct,
23432  it is just dropped,
23433  and the rest is treated as an ordinary index entry.
23434 \end_layout
23435
23436 \begin_layout Itemize
23437 Index Entry Order:
23438  \SpecialChar LyX
23439  does support attempts to fix the sorting order.
23440  It will take what is before the first `@' it finds and use that for sorting,
23441  taking what follows the first `@' to be the actual entry.
23442  At present,
23443  \SpecialChar LyX
23444  does not check for escaped `@',
23445  so do not try to index email addresses.
23446 \end_layout
23447
23448 \begin_layout Itemize
23449 Index Entry Layout:
23450  You can format entries by using the text style dialog,
23451  or by using any other method available within \SpecialChar LyX
23452  itself.
23453  There is no support for constructs like:
23454  
23455 \begin_inset Quotes eld
23456 \end_inset
23457
23458 entry|textbf
23459 \begin_inset Quotes erd
23460 \end_inset
23461
23462 .
23463  Indeed,
23464  if \SpecialChar LyX
23465  finds a pipe symbol,
23466  `|',
23467  in an entry,
23468  it will delete it and everything that follows it.
23469 \end_layout
23470
23471 \begin_layout Itemize
23472 Multiple Indexes:
23473  There is no support for multiple indexes.
23474  Rather,
23475  all index entries will be printed as one large index.
23476  To avoid our printing several versions of the index,
23477  we print only the main index,
23478  so make sure you have one.
23479 \end_layout
23480
23481 \begin_layout Section
23482 Nomenclature and Glossary
23483 \end_layout
23484
23485 \begin_layout Standard
23486 There is at present no support for glossaries.
23487  Adding it would be fairly trivial,
23488  and welcome.
23489 \end_layout
23490
23491 \begin_layout Chapter
23492 DocBook Output
23493 \end_layout
23494
23495 \begin_layout Standard
23496 Apart from HTML,
23497  \SpecialChar LyX
23498  can generate documents in the DocBook XML vocabulary.
23499  With versions 2.3 and before,
23500  only select templates could be used to generate DocBook documents (only version 4).
23501  Starting with \SpecialChar LyX
23502  2.4,
23503  most \SpecialChar LyX
23504  layouts can generate valid DocBook documents (only version 5).
23505  This feature is built into \SpecialChar LyX
23506  and does not require the use of external tools.
23507 \end_layout
23508
23509 \begin_layout Standard
23510 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
23511  output can be customized and extended:
23512  through layout files and modules.
23513  See chapter five of the 
23514 \emph on
23515 Customization 
23516 \emph default
23517 manual for the details.
23518 \end_layout
23519
23520 \begin_layout Standard
23521 Most \SpecialChar LyX
23522  features are supported with DocBook,
23523  like math output.
23524 \end_layout
23525
23526 \begin_layout Itemize
23527 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
23528 ,
23529  i.e.
23530  ERTs).
23531  All formulae are also available in raw \SpecialChar TeX
23532  in the DocBook output for further processing.
23533 \end_layout
23534
23535 \begin_layout Itemize
23536 Bibliographies and citations are implemented,
23537  including with an external BibTeX file.
23538  Bibliography entries are not prerendered when the detailed information are available,
23539  but rather output with the standard DocBook constructs.
23540  The external DocBook processor is expected to handle the rendering of entries.
23541 \end_layout
23542
23543 \begin_layout Itemize
23544 Indexes are supported,
23545  including multiple indices.
23546  Grouping (with 
23547 \family typewriter
23548 !
23549 \family default
23550 ),
23551  page ranges,
23552  and cross-references (
23553 \family typewriter
23554 |see
23555 \family default
23556 ) are supported,
23557  with the exception of the same symbols escaped.
23558  Entry order (
23559 \family typewriter
23560 @
23561 \family default
23562 ) and layout (
23563 \family typewriter
23564 |mathbf
23565 \family default
23566 ) are not supported.
23567  There is no support for escaping of index entries.
23568 \end_layout
23569
23570 \begin_layout Itemize
23571 Glossaries are implemented.
23572 \end_layout
23573
23574 \begin_layout Standard
23575 Two major parameters can be set at the document level.
23576 \end_layout
23577
23578 \begin_layout Itemize
23579 Format for tables:
23580  \SpecialChar LyX
23581  can generate tables either as HTML (default value) or CALS,
23582  depending on the user's requirements.
23583  Most DocBook processors accept both formats.
23584 \end_layout
23585
23586 \begin_layout Itemize
23587 MathML prefix:
23588  in DocBook,
23589  MathML is included within its own name space,
23590  unlike HTML.
23591  The implication is that there must be an indication of the tags belonging to the MathML standard.
23592  Three choices are offered:
23593 \end_layout
23594
23595 \begin_deeper
23596 \begin_layout Itemize
23597 Inline:
23598  the MathML name space is defined for each formula (using the 
23599 \family typewriter
23600 xmlns
23601 \family default
23602  attribute on each formula)
23603 \end_layout
23604
23605 \begin_layout Itemize
23606 With the 
23607 \family typewriter
23608 m
23609 \family default
23610  prefix (default):
23611  the MathML name space is defined at the document level (using the 
23612 \family typewriter
23613 xmlns:m
23614 \family default
23615  attribute on the root element).
23616  Each MathML is prefixed with 
23617 \family typewriter
23618 m
23619 \family default
23620 :
23621  for instance,
23622  
23623 \family typewriter
23624 m:math
23625 \end_layout
23626
23627 \begin_layout Itemize
23628 With the 
23629 \family typewriter
23630 mml
23631 \family default
23632  prefix:
23633  similar to the 
23634 \family typewriter
23635 m
23636 \family default
23637  option,
23638  but with 
23639 \family typewriter
23640 mml
23641 \end_layout
23642
23643 \begin_layout Standard
23644 This option is especially useful if you want \SpecialChar LyX
23645  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
23646 \end_layout
23647
23648 \end_deeper
23649 \begin_layout Chapter
23650 The \SpecialChar LyX
23651  Server
23652 \end_layout
23653
23654 \begin_layout Section
23655 Introduction
23656 \end_layout
23657
23658 \begin_layout Standard
23659 The `\SpecialChar LyX
23660  server' allows other programs to talk to \SpecialChar LyX
23661 ,
23662  invoke \SpecialChar LyX
23663  commands,
23664  and retrieve information about the \SpecialChar LyX
23665  internal state.
23666  This is only intended for advanced users,
23667  but they should find it useful.
23668  It is by writing to the \SpecialChar LyX
23669  server,
23670  for example,
23671  that bibliography managers,
23672  such as JabRef,
23673  are able to 
23674 \begin_inset Quotes eld
23675 \end_inset
23676
23677 push
23678 \begin_inset Quotes erd
23679 \end_inset
23680
23681  citations to \SpecialChar LyX
23682 .
23683 \end_layout
23684
23685 \begin_layout Section
23686 Starting the \SpecialChar LyX
23687  Server
23688 \begin_inset CommandInset label
23689 LatexCommand label
23690 name "sec:Starting-the-Server"
23691
23692 \end_inset
23693
23694
23695 \end_layout
23696
23697 \begin_layout Standard
23698 The \SpecialChar LyX
23699  server works through the use of a pair of named pipes.
23700  These are usually located in 
23701 \begin_inset Flex Code
23702 status collapsed
23703
23704 \begin_layout Plain Layout
23705 UserDir
23706 \end_layout
23707
23708 \end_inset
23709
23710 ,
23711  (except on Windows,
23712  where 
23713 \emph on
23714 local
23715 \emph default
23716  named pipes are special objects located in 
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721
23722 \backslash
23723
23724 \backslash
23725 .
23726 \backslash
23727 pipe
23728 \end_layout
23729
23730 \end_inset
23731
23732 ) and have the names 
23733 \begin_inset Quotes eld
23734 \end_inset
23735
23736
23737 \begin_inset Flex Code
23738 status collapsed
23739
23740 \begin_layout Plain Layout
23741 lyxpipe.in
23742 \end_layout
23743
23744 \end_inset
23745
23746
23747 \begin_inset Quotes erd
23748 \end_inset
23749
23750  and 
23751 \begin_inset Quotes eld
23752 \end_inset
23753
23754
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 lyxpipe.out
23760 \end_layout
23761
23762 \end_inset
23763
23764
23765 \begin_inset Quotes erd
23766 \end_inset
23767
23768 .
23769  External programs write into 
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774 lyxpipe.in
23775 \end_layout
23776
23777 \end_inset
23778
23779  and read back data from 
23780 \begin_inset Flex Code
23781 status collapsed
23782
23783 \begin_layout Plain Layout
23784 lyxpipe.out
23785 \end_layout
23786
23787 \end_inset
23788
23789 .
23790  The stem of the pipe names can be defined in the 
23791 \family sans
23792 Tools\SpecialChar menuseparator
23793 Preferences
23794 \family default
23795  dialog,
23796  for example 
23797 \begin_inset Flex Code
23798 status collapsed
23799
23800 \begin_layout Plain Layout
23801 "/home/myhome/lyxpipe"
23802 \end_layout
23803
23804 \end_inset
23805
23806 ,
23807  or 
23808 \begin_inset Flex Code
23809 status collapsed
23810
23811 \begin_layout Plain Layout
23812 "
23813 \backslash
23814
23815 \backslash
23816 .
23817 \backslash
23818 pipe
23819 \backslash
23820 lyxpipe"
23821 \end_layout
23822
23823 \end_inset
23824
23825  on Windows (where any working path instead of lyxpipe can be used,
23826  for example 
23827 \begin_inset Flex Code
23828 status collapsed
23829
23830 \begin_layout Plain Layout
23831 "
23832 \backslash
23833
23834 \backslash
23835 .
23836 \backslash
23837 pipe
23838 \backslash
23839 my
23840 \backslash
23841 lyx
23842 \backslash
23843 pipe"
23844 \end_layout
23845
23846 \end_inset
23847
23848  would also work).
23849  You 
23850 \emph on
23851 must
23852 \emph default
23853  configure this manually in order for the server to start.
23854 \end_layout
23855
23856 \begin_layout Standard
23857 \SpecialChar LyX
23858  will add the '
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863 .in
23864 \end_layout
23865
23866 \end_inset
23867
23868 ' and '
23869 \begin_inset Flex Code
23870 status collapsed
23871
23872 \begin_layout Plain Layout
23873 .out
23874 \end_layout
23875
23876 \end_inset
23877
23878 ' to create the pipes.
23879  If one of the pipes already exists,
23880  \SpecialChar LyX
23881  will assume that another \SpecialChar LyX
23882  process is already running and will not start the server.
23883  On POSIX (Unix like) systems,
23884  if for some other reason,
23885  an unused 
23886 \begin_inset Quotes eld
23887 \end_inset
23888
23889 stale
23890 \begin_inset Quotes erd
23891 \end_inset
23892
23893  pipe is left in existence when \SpecialChar LyX
23894  closes,
23895  then \SpecialChar LyX
23896  will try to delete it.
23897  If this fails for some reason,
23898  you will need to delete the pipes manually and then restart \SpecialChar LyX
23899 .
23900  On Windows,
23901  pipes are deleted by the OS on program termination or crash,
23902  so 
23903 \begin_inset Quotes eld
23904 \end_inset
23905
23906 stale
23907 \begin_inset Quotes erd
23908 \end_inset
23909
23910  pipes should not be possible.
23911 \end_layout
23912
23913 \begin_layout Standard
23914 To have several \SpecialChar LyX
23915  processes with servers at the same time,
23916  you have to use different configurations,
23917  perhaps by using separate user directories,
23918  each with its own 
23919 \begin_inset Flex Code
23920 status collapsed
23921
23922 \begin_layout Plain Layout
23923 preferences
23924 \end_layout
23925
23926 \end_inset
23927
23928  file,
23929  for each process.
23930 \end_layout
23931
23932 \begin_layout Standard
23933 If you are developing a client program,
23934  you might find it useful to enable debugging information from the \SpecialChar LyX
23935  server.
23936  Do this by starting \SpecialChar LyX
23937  as 
23938 \begin_inset Flex Code
23939 status collapsed
23940
23941 \begin_layout Plain Layout
23942 lyx -dbg lyxserver
23943 \end_layout
23944
23945 \end_inset
23946
23947 .
23948 \end_layout
23949
23950 \begin_layout Standard
23951 You can find a complete example client written in C++ in the source distribution as 
23952 \begin_inset Flex Code
23953 status collapsed
23954
23955 \begin_layout Plain Layout
23956 development/lyxserver/server_monitor.cpp
23957 \end_layout
23958
23959 \end_inset
23960
23961 .
23962 \end_layout
23963
23964 \begin_layout Standard
23965 Another useful tool is the command-line based client found in 
23966 \begin_inset Flex Code
23967 status collapsed
23968
23969 \begin_layout Plain Layout
23970 src/client/lyxclient
23971 \end_layout
23972
23973 \end_inset
23974
23975 .
23976 \end_layout
23977
23978 \begin_layout Section
23979 Normal communication
23980 \end_layout
23981
23982 \begin_layout Standard
23983 To issue a \SpecialChar LyX
23984  call,
23985  the client writes a line of ASCII text into the input pipe.
23986  This line has the following format:
23987 \end_layout
23988
23989 \begin_layout Quote
23990 LYXCMD:
23991 \emph on
23992 clientname
23993 \emph default
23994 :
23995 \emph on
23996 function
23997 \emph default
23998 :
23999 \emph on
24000 argument
24001 \end_layout
24002
24003 \begin_layout Description
24004 clientname is a name that the client can choose arbitrarily.
24005  Its only use is that \SpecialChar LyX
24006  will echo it if it sends an answer—
24007 so a client can dispatch results from different requesters.
24008 \end_layout
24009
24010 \begin_layout Description
24011 function is the function you want \SpecialChar LyX
24012  to perform.
24013  It is the same as the commands you'd use in the minibuffer.
24014 \end_layout
24015
24016 \begin_layout Description
24017 argument is an optional argument which is meaningful only to some functions (for instance,
24018  the 
24019 \begin_inset Quotes eld
24020 \end_inset
24021
24022 self-insert
24023 \begin_inset Quotes erd
24024 \end_inset
24025
24026  LFUN will insert the argument as text at the cursor position).
24027 \end_layout
24028
24029 \begin_layout Standard
24030 The answer from \SpecialChar LyX
24031  will arrive in the output pipe and be of the form
24032 \end_layout
24033
24034 \begin_layout Quote
24035 INFO:
24036 \emph on
24037 clientname
24038 \emph default
24039 :
24040 \emph on
24041 function
24042 \emph default
24043 :
24044 \emph on
24045 data
24046 \end_layout
24047
24048 \begin_layout Standard
24049 where 
24050 \emph on
24051 clientname
24052 \emph default
24053  and 
24054 \emph on
24055 function
24056 \emph default
24057  are just echoed from the command request,
24058  while 
24059 \emph on
24060 data
24061 \emph default
24062  is more or less useful information filled according to how the command execution worked out.
24063  Some commands,
24064  such as 
24065 \begin_inset Quotes eld
24066 \end_inset
24067
24068 font-state
24069 \begin_inset Quotes erd
24070 \end_inset
24071
24072 ,
24073  will return information about the internal state of \SpecialChar LyX
24074 ,
24075  while other will return an empty data-response.
24076  This means that the command execution went fine.
24077 \end_layout
24078
24079 \begin_layout Standard
24080 In case of errors,
24081  the response from \SpecialChar LyX
24082  will have this form
24083 \end_layout
24084
24085 \begin_layout Quote
24086 ERROR:
24087 \emph on
24088 clientname
24089 \emph default
24090 :
24091 \emph on
24092 function
24093 \emph default
24094 :
24095 \emph on
24096 error message
24097 \end_layout
24098
24099 \begin_layout Standard
24100 where the 
24101 \emph on
24102 error message
24103 \emph default
24104  should contain an explanation of why the command failed.
24105 \end_layout
24106
24107 \begin_layout Standard
24108 Examples:
24109 \end_layout
24110
24111 \begin_layout LyX-Code
24112 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24113 \begin_inset Newline newline
24114 \end_inset
24115
24116 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24117 \begin_inset Newline newline
24118 \end_inset
24119
24120 read a <~/.lyxpipe.out
24121 \begin_inset Newline newline
24122 \end_inset
24123
24124 echo $a
24125 \end_layout
24126
24127 \begin_layout Subsection
24128 AppleScript (Mac OS X)
24129 \end_layout
24130
24131 \begin_layout Standard
24132 Since \SpecialChar LyX
24133  2.1,
24134  \SpecialChar LyX
24135  supports basic interactions with AppleScript for normal communication through the command run.
24136  This command takes a direct argument (the 
24137 \series bold
24138 function
24139 \series default
24140  to perform) and an optional argument.
24141  It either returns the output of the function or triggers an error with the error message and code.
24142 \end_layout
24143
24144 \begin_layout Standard
24145 Example:
24146 \end_layout
24147
24148 \begin_layout LyX-Code
24149 tell application "\SpecialChar LyX
24150 "
24151 \end_layout
24152
24153 \begin_layout LyX-Code
24154   try
24155 \end_layout
24156
24157 \begin_layout LyX-Code
24158     -- Stores the current file name into f
24159 \end_layout
24160
24161 \begin_layout LyX-Code
24162     set f to (run "server-get-filename" with argument "")
24163 \end_layout
24164
24165 \begin_layout LyX-Code
24166     on error the error_message number the error_number
24167 \end_layout
24168
24169 \begin_layout LyX-Code
24170       display dialog "Error:
24171  " & the error_number & ".
24172  " ¬
24173 \end_layout
24174
24175 \begin_layout LyX-Code
24176               & the error_message buttons {"OK"} default button 1
24177 \end_layout
24178
24179 \begin_layout LyX-Code
24180   end try
24181 \end_layout
24182
24183 \begin_layout LyX-Code
24184 end tell
24185 \end_layout
24186
24187 \begin_layout Section
24188 Notification
24189 \end_layout
24190
24191 \begin_layout Standard
24192 \SpecialChar LyX
24193  can notify clients of events going on asynchronously.
24194  Currently it will only do this if the user binds a key sequence with the function 
24195 \begin_inset Quotes eld
24196 \end_inset
24197
24198 notify
24199 \begin_inset Quotes erd
24200 \end_inset
24201
24202 .
24203  The format of the string \SpecialChar LyX
24204  sends is as follows:
24205 \end_layout
24206
24207 \begin_layout Quote
24208 \begin_inset Flex Code
24209 status collapsed
24210
24211 \begin_layout Plain Layout
24212 NOTIFY:
24213 \end_layout
24214
24215 \end_inset
24216
24217
24218 \emph on
24219 key-sequence
24220 \end_layout
24221
24222 \begin_layout Standard
24223 where 
24224 \emph on
24225 key-sequence
24226 \emph default
24227  is the printed representation of the key sequence that was actually typed by the user.
24228 \end_layout
24229
24230 \begin_layout Standard
24231 This mechanism can be used to extend \SpecialChar LyX
24232 's command set and implement macros.
24233  Bind some key sequence to 
24234 \begin_inset Quotes eld
24235 \end_inset
24236
24237 notify
24238 \begin_inset Quotes erd
24239 \end_inset
24240
24241 .
24242  Then start a client that listens on the output pipe,
24243  dispatches the command according to the sequence,
24244  and starts a function that may use \SpecialChar LyX
24245  calls and \SpecialChar LyX
24246  requests to issue a command or a series of commands to \SpecialChar LyX
24247 .
24248 \end_layout
24249
24250 \begin_layout Section
24251 The simple \SpecialChar LyX
24252  Server Protocol
24253 \end_layout
24254
24255 \begin_layout Standard
24256 \SpecialChar LyX
24257  implements a simple protocol that can be used for session management.
24258  All messages are of the form
24259 \end_layout
24260
24261 \begin_layout Quote
24262 LYXSRV:
24263 \emph on
24264 clientname
24265 \emph default
24266 :
24267 \emph on
24268 protocol message
24269 \end_layout
24270
24271 \begin_layout Standard
24272 where 
24273 \emph on
24274 protocol message
24275 \emph default
24276  can be 
24277 \begin_inset Quotes eld
24278 \end_inset
24279
24280 hello
24281 \begin_inset Quotes erd
24282 \end_inset
24283
24284  or 
24285 \begin_inset Quotes eld
24286 \end_inset
24287
24288 bye
24289 \begin_inset Quotes erd
24290 \end_inset
24291
24292 .
24293  If 
24294 \begin_inset Quotes eld
24295 \end_inset
24296
24297 hello
24298 \begin_inset Quotes erd
24299 \end_inset
24300
24301  is received from a client,
24302  \SpecialChar LyX
24303  will report back to inform the client that it's listening to it's messages,
24304  while 
24305 \begin_inset Quotes eld
24306 \end_inset
24307
24308 bye
24309 \begin_inset Quotes erd
24310 \end_inset
24311
24312  sent from \SpecialChar LyX
24313  will inform clients that \SpecialChar LyX
24314  is closing.
24315 \end_layout
24316
24317 \begin_layout Section
24318 Reverse DVI/PDF search
24319 \end_layout
24320
24321 \begin_layout Standard
24322 Some DVI/PDF viewers
24323 \begin_inset Foot
24324 status collapsed
24325
24326 \begin_layout Plain Layout
24327 The following viewers offer the reverse PDF search feature:
24328  Okular on KDE/Linux,
24329  Qpdfview on Unix,
24330  Skim on Mac OSX and SumatraPDF on Windows.
24331 \end_layout
24332
24333 \end_inset
24334
24335  provide 
24336 \emph on
24337 reverse search
24338 \emph default
24339  facility (also called 
24340 \emph on
24341 inverse search
24342 \emph default
24343 ).
24344  This means that you can tell \SpecialChar LyX
24345  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
24346  To achieve this,
24347  the viewer must be able to communicate with \SpecialChar LyX
24348 .
24349  This is done via the \SpecialChar LyX
24350  server either by using the named pipe (
24351 \emph on
24352 lyxpipe
24353 \emph default
24354 ),
24355  or the UNIX domain socket (
24356 \emph on
24357 lyxsocket
24358 \emph default
24359 ) that \SpecialChar LyX
24360  creates in its temporary directory (this is the way the 
24361 \begin_inset Flex Code
24362 status collapsed
24363
24364 \begin_layout Plain Layout
24365 lyxclient
24366 \end_layout
24367
24368 \end_inset
24369
24370  program communicates with \SpecialChar LyX
24371 ).
24372  In some cases,
24373  you need a helper script that mediates between the viewer and \SpecialChar LyX
24374 ,
24375  in others,
24376  the viewer can communicate with \SpecialChar LyX
24377  directly.
24378  This depends on the selected viewer and on your operating system.
24379  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
24380  In what follows,
24381  we will thus describe how to setup reverse search for specific viewers.
24382  Before we turn to this,
24383  though,
24384  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
24385 \end_layout
24386
24387 \begin_layout Subsection
24388 Automatic setup
24389 \begin_inset CommandInset label
24390 LatexCommand label
24391 name "subsec:rev-search"
24392
24393 \end_inset
24394
24395
24396 \end_layout
24397
24398 \begin_layout Standard
24399 In most cases \SpecialChar LyX
24400  will do the work for you by pressing the following button in the toolbar:
24401  
24402 \begin_inset Info
24403 type  "icon"
24404 arg   "buffer-toggle-output-sync"
24405 \end_inset
24406
24407 .
24408  Alternatively,
24409  you can also enable the feature by checking 
24410 \family sans
24411 Synchronize with Output
24412 \family default
24413  in 
24414 \family sans
24415 Document\SpecialChar menuseparator
24416 Settings\SpecialChar menuseparator
24417 Formats
24418 \family default
24419 .
24420  In such a case \SpecialChar LyX
24421  will automatically insert the necessary Sync\SpecialChar TeX
24422  macro (for PDF) or load the srcltx package (for DVI) respectively.
24423  This option can be easily reached also on 
24424 \begin_inset Flex Code
24425 status collapsed
24426
24427 \begin_layout Plain Layout
24428 View/Update
24429 \end_layout
24430
24431 \end_inset
24432
24433  Toolbar.
24434 \end_layout
24435
24436 \begin_layout Standard
24437 If you need a different setting,
24438  you can select or input a custom macro from the drop down box just below 
24439 \family sans
24440 Document\SpecialChar menuseparator
24441 Settings\SpecialChar menuseparator
24442 Output\SpecialChar menuseparator
24443 Synchronize with Output
24444 \family default
24445 .
24446 \end_layout
24447
24448 \begin_layout Standard
24449 Note that the method 
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454
24455 \backslash
24456 synctex=1
24457 \end_layout
24458
24459 \end_inset
24460
24461  enables gzip compression.
24462  If your viewer does not support it,
24463  you should instead use 
24464 \begin_inset Flex Code
24465 status collapsed
24466
24467 \begin_layout Plain Layout
24468
24469 \backslash
24470 synctex=-1
24471 \end_layout
24472
24473 \end_inset
24474
24475 .
24476 \end_layout
24477
24478 \begin_layout Standard
24479 Please also note that including the 
24480 \begin_inset Flex Code
24481 status collapsed
24482
24483 \begin_layout Plain Layout
24484 srcltx
24485 \end_layout
24486
24487 \end_inset
24488
24489  package or 
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 src-specials
24495 \end_layout
24496
24497 \end_inset
24498
24499  sometimes has an undesired impact on the typesetting.
24500  Thus,
24501  you should switch output synchronization off for the final typesetting if you use the 
24502 \begin_inset Flex Code
24503 status collapsed
24504
24505 \begin_layout Plain Layout
24506 srcltx
24507 \end_layout
24508
24509 \end_inset
24510
24511  package or 
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516 src-specials
24517 \end_layout
24518
24519 \end_inset
24520
24521 .
24522  
24523 \end_layout
24524
24525 \begin_layout Standard
24526 In case you need some more special settings that are not covered by the automatic settings,
24527  read the next section about how to set up output synchronization manually.
24528  If the automatic setup suits your needs,
24529  you can readily jump to section
24530 \begin_inset space ~
24531 \end_inset
24532
24533
24534 \begin_inset CommandInset ref
24535 LatexCommand ref
24536 reference "subsec:configuring-viewers"
24537 nolink "false"
24538
24539 \end_inset
24540
24541 ,
24542  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
24543 \end_layout
24544
24545 \begin_layout Subsection
24546 Manual setup
24547 \end_layout
24548
24549 \begin_layout Standard
24550 \SpecialChar LaTeX
24551  provides several different methods for reverse search.
24552  Some are built-in in the 
24553 \begin_inset Flex Code
24554 status collapsed
24555
24556 \begin_layout Plain Layout
24557 latex/pdflatex
24558 \end_layout
24559
24560 \end_inset
24561
24562  program,
24563  some are provided by external packages.
24564  Your choice depends on whether your \SpecialChar LaTeX
24565  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
24566  The available methods are described in the following.
24567 \end_layout
24568
24569 \begin_layout Subsubsection*
24570 Built-in DVI-search via src-specials (DVI only) 
24571 \end_layout
24572
24573 \begin_layout Standard
24574 This method provides the DVI file with the necessary information for reverse search.
24575  It is available in \SpecialChar LaTeX
24576  since quite some time (any somewhat recent \SpecialChar LaTeX
24577  distribution should include it),
24578  and it works reliably.
24579  To enable it,
24580  change the 
24581 \begin_inset Flex Noun
24582 status collapsed
24583
24584 \begin_layout Plain Layout
24585 La
24586 \family sans
24587 TeX
24588 \family default
24589  (plain)->DVI
24590 \end_layout
24591
24592 \end_inset
24593
24594  or 
24595 \begin_inset Flex Noun
24596 status collapsed
24597
24598 \begin_layout Plain Layout
24599 La
24600 \family sans
24601 TeX
24602 \family default
24603  (plain)->DraftDVI
24604 \end_layout
24605
24606 \end_inset
24607
24608  converter in 
24609 \family sans
24610 Preferences\SpecialChar menuseparator
24611 File Handling\SpecialChar menuseparator
24612 Converters
24613 \family default
24614  to 
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 latex -src-specials $$i
24620 \end_layout
24621
24622 \end_inset
24623
24624 .
24625  If this doesn't work,
24626  check if your \SpecialChar TeX
24627  engine needs different options (the syntax might differ in some distributions).
24628 \end_layout
24629
24630 \begin_layout Subsubsection*
24631 External Packages (PDFSync and scrltx) 
24632 \end_layout
24633
24634 \begin_layout Standard
24635 The packages 
24636 \emph on
24637 pdfsync
24638 \emph default
24639  and 
24640 \emph on
24641 scrltx
24642 \emph default
24643  provide reverse search facility for PDF output (via pdflatex) and DVI output,
24644  respectively.
24645  In order to enable it,
24646  load the packages in the \SpecialChar LyX
24647  preamble:
24648  
24649 \end_layout
24650
24651 \begin_layout Itemize
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656
24657 \backslash
24658 usepackage{pdfsync}
24659 \end_layout
24660
24661 \end_inset
24662
24663  for reverse PDF search,
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[active]{srcltx}
24674 \end_layout
24675
24676 \end_inset
24677
24678  for reverse DVI search.
24679 \end_layout
24680
24681 \begin_layout Standard
24682 If you want to be able to perform both DVI and PDF reverse searches,
24683  you can also insert in the preamble the following lines
24684 \end_layout
24685
24686 \begin_layout LyX-Code
24687
24688 \backslash
24689 usepackage{ifpdf}
24690 \begin_inset Newline newline
24691 \end_inset
24692
24693
24694 \backslash
24695 ifpdf
24696 \begin_inset Newline newline
24697 \end_inset
24698
24699   
24700 \backslash
24701 usepackage{pdfsync}
24702 \begin_inset Newline newline
24703 \end_inset
24704
24705
24706 \backslash
24707 else
24708 \begin_inset Newline newline
24709 \end_inset
24710
24711   
24712 \backslash
24713 usepackage[active]{srcltx}
24714 \begin_inset Newline newline
24715 \end_inset
24716
24717
24718 \backslash
24719 fi
24720 \end_layout
24721
24722 \begin_layout Standard
24723 This way,
24724  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
24725 \end_layout
24726
24727 \begin_layout Standard
24728 Note that PDFSync might affect the output layout of your document.
24729  It is therefore advised to disable PDFsync for final documents.
24730 \end_layout
24731
24732 \begin_layout Subsubsection*
24733 Built-in reverse search via Sync\SpecialChar TeX
24734  (DVI and PDF) 
24735 \end_layout
24736
24737 \begin_layout Standard
24738 Recent versions of 
24739 \begin_inset Flex Code
24740 status collapsed
24741
24742 \begin_layout Plain Layout
24743 (pdf)latex
24744 \end_layout
24745
24746 \end_inset
24747
24748  have built-in support for both PDF and DVI reverse search.
24749  This so-called 
24750 \emph on
24751 Sync\SpecialChar TeX
24752
24753 \emph default
24754  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
24755 \emph on
24756 scr-specials
24757 \emph default
24758  approach.
24759  You need at least \SpecialChar TeX
24760 Live 2008 or a recent Mik\SpecialChar TeX
24761  distribution in order to use it.
24762 \begin_inset Foot
24763 status collapsed
24764
24765 \begin_layout Plain Layout
24766 For some reason,
24767  Mik\SpecialChar TeX
24768  does not understand/obey the command \SpecialChar LyX
24769  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
24770 \end_layout
24771
24772 \begin_layout Plain Layout
24773 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
24774  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
24775  by adding the -synctex=1 switch).
24776 \end_layout
24777
24778 \end_inset
24779
24780  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
24781  Skim on the Mac,
24782  SumatraPDF on Windows;
24783  see the next section for details) already provide Sync\SpecialChar TeX
24784  support.
24785 \end_layout
24786
24787 \begin_layout Standard
24788 To enable Sync\SpecialChar TeX
24789  for DVI output,
24790  change the 
24791 \begin_inset Flex Noun
24792 status collapsed
24793
24794 \begin_layout Plain Layout
24795 La
24796 \family sans
24797 TeX
24798 \family default
24799  (plain) -> DVI
24800 \end_layout
24801
24802 \end_inset
24803
24804  or 
24805 \begin_inset Flex Noun
24806 status collapsed
24807
24808 \begin_layout Plain Layout
24809 La
24810 \family sans
24811 TeX
24812 \family default
24813  (plain) -> DraftDVI
24814 \end_layout
24815
24816 \end_inset
24817
24818  converter in 
24819 \family sans
24820 Preferences\SpecialChar menuseparator
24821 File Handling\SpecialChar menuseparator
24822 Converters 
24823 \family default
24824 to 
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 latex -synctex=1 $$i
24830 \end_layout
24831
24832 \end_inset
24833
24834 ,
24835  and for PDF output,
24836  change the 
24837 \begin_inset Flex Noun
24838 status collapsed
24839
24840 \begin_layout Plain Layout
24841 La
24842 \family sans
24843 TeX
24844 \family default
24845  (pdflatex) -> PDF (pdflatex)
24846 \end_layout
24847
24848 \end_inset
24849
24850  converter to 
24851 \begin_inset Flex Code
24852 status collapsed
24853
24854 \begin_layout Plain Layout
24855 pdflatex -synctex=1 $$i
24856 \end_layout
24857
24858 \end_inset
24859
24860 .
24861  Should your viewer not be considered in the following description,
24862  or in case of missing success,
24863  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
24864 .
24865 \begin_inset Foot
24866 status collapsed
24867
24868 \begin_layout Plain Layout
24869 Note that the option 
24870 \begin_inset Flex Code
24871 status collapsed
24872
24873 \begin_layout Plain Layout
24874 -synctex=1
24875 \end_layout
24876
24877 \end_inset
24878
24879  option enables gzip compression.
24880  If your viewer does not support it,
24881  you should instead use 
24882 \begin_inset Flex Code
24883 status collapsed
24884
24885 \begin_layout Plain Layout
24886 -synctex=-1
24887 \end_layout
24888
24889 \end_inset
24890
24891 .
24892 \end_layout
24893
24894 \end_inset
24895
24896
24897 \end_layout
24898
24899 \begin_layout Subsection
24900 Configuring and using specific viewers
24901 \begin_inset CommandInset label
24902 LatexCommand label
24903 name "subsec:configuring-viewers"
24904
24905 \end_inset
24906
24907
24908 \end_layout
24909
24910 \begin_layout Subsubsection*
24911 Xdvi (all platforms)
24912 \end_layout
24913
24914 \begin_layout Standard
24915 If you use 
24916 \begin_inset Flex Code
24917 status collapsed
24918
24919 \begin_layout Plain Layout
24920 xdvi
24921 \end_layout
24922
24923 \end_inset
24924
24925 ,
24926  you don't need to do anything else for performing a reverse DVI search,
24927  as \SpecialChar LyX
24928  already provides the necessary hooks for automatically using the 
24929 \begin_inset Flex Code
24930 status collapsed
24931
24932 \begin_layout Plain Layout
24933 lyxclient
24934 \end_layout
24935
24936 \end_inset
24937
24938  program.
24939  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
24940  respectively).
24941 \end_layout
24942
24943 \begin_layout Standard
24944 However,
24945  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
24946 ,
24947  simply change the DVI viewer in 
24948 \family sans
24949 Preferences\SpecialChar menuseparator
24950 File Handling\SpecialChar menuseparator
24951 File formats
24952 \family default
24953  to
24954 \begin_inset Foot
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958 On Mac OSX you have to use 
24959 \begin_inset Flex Code
24960 status collapsed
24961
24962 \begin_layout Plain Layout
24963 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
24964 \end_layout
24965
24966 \end_inset
24967
24968
24969 \end_layout
24970
24971 \end_inset
24972
24973  
24974 \begin_inset Flex Code
24975 status collapsed
24976
24977 \begin_layout Plain Layout
24978 xdvi -editor "lyxeditor.sh %f %l"
24979 \end_layout
24980
24981 \end_inset
24982
24983 ,
24984  where 
24985 \begin_inset Flex Code
24986 status collapsed
24987
24988 \begin_layout Plain Layout
24989 lyxeditor.sh
24990 \end_layout
24991
24992 \end_inset
24993
24994  is a suitable script.
24995  For example,
24996  a minimal shell script is the following one:
24997 \end_layout
24998
24999 \begin_layout LyX-Code
25000 #!/bin/sh
25001 \begin_inset Newline newline
25002 \end_inset
25003
25004 LYXPIPE="/path/to/lyxpipe"
25005 \begin_inset Newline newline
25006 \end_inset
25007
25008 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25009 \begin_inset Newline newline
25010 \end_inset
25011
25012 echo "$COMMAND" > "${LYXPIPE}".in || exit
25013 \begin_inset Newline newline
25014 \end_inset
25015
25016 read TMP < "${LYXPIPE}".out || exit
25017 \end_layout
25018
25019 \begin_layout Standard
25020 where 
25021 \begin_inset Flex Code
25022 status collapsed
25023
25024 \begin_layout Plain Layout
25025 /path/to/lyxpipe
25026 \end_layout
25027
25028 \end_inset
25029
25030  is the LyXServer pipe path specified in 
25031 \family sans
25032 Preferences\SpecialChar menuseparator
25033 Paths
25034 \family default
25035 .
25036 \begin_inset Foot
25037 status collapsed
25038
25039 \begin_layout Plain Layout
25040 In the 
25041 \begin_inset Flex Code
25042 status collapsed
25043
25044 \begin_layout Plain Layout
25045 development/tools
25046 \end_layout
25047
25048 \end_inset
25049
25050  folder of a source distribution you can find a 
25051 \begin_inset Flex Code
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055 lyxeditor
25056 \end_layout
25057
25058 \end_inset
25059
25060  script which is able to locate the 
25061 \emph on
25062 lyxpipe
25063 \emph default
25064  based on your preferences.
25065 \end_layout
25066
25067 \end_inset
25068
25069
25070 \end_layout
25071
25072 \begin_layout Subsubsection*
25073 MacDviX (Mac OSX)
25074 \end_layout
25075
25076 \begin_layout Standard
25077 At the end of 
25078 \begin_inset Flex Code
25079 status collapsed
25080
25081 \begin_layout Plain Layout
25082 /Applications/MacDviX_Folder/calleditor.script
25083 \end_layout
25084
25085 \end_inset
25086
25087 ,
25088  add the following lines:
25089 \end_layout
25090
25091 \begin_layout LyX-Code
25092 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
25093 \begin_inset Newline newline
25094 \end_inset
25095
25096 exit 1
25097 \end_layout
25098
25099 \begin_layout Standard
25100 Modify the lines accordingly if you install \SpecialChar LyX
25101  somewhere else than in the Applications folder.
25102 \end_layout
25103
25104 \begin_layout Standard
25105 Reverse search is triggered by Alt-click (OPTION-click).
25106 \end_layout
25107
25108 \begin_layout Subsubsection*
25109 Skim (Mac OSX)
25110 \end_layout
25111
25112 \begin_layout Standard
25113 Enter 
25114 \begin_inset Flex Code
25115 status collapsed
25116
25117 \begin_layout Plain Layout
25118 open -a Skim.app $$i
25119 \end_layout
25120
25121 \end_inset
25122
25123  to the viewer setting in 
25124 \family sans
25125 Preferences\SpecialChar menuseparator
25126 File Handling\SpecialChar menuseparator
25127 File formats\SpecialChar menuseparator
25128 PDF (pdflatex)
25129 \family default
25130 ,
25131  and then in 
25132 \family sans
25133 Skim\SpecialChar menuseparator
25134 Preferences\SpecialChar menuseparator
25135 Sync
25136 \family default
25137  choose 
25138 \family sans
25139 custom
25140 \family default
25141  preset and enter command 
25142 \begin_inset Flex Noun
25143 status collapsed
25144
25145 \begin_layout Plain Layout
25146 /Applications/\SpecialChar LyX
25147 .app/Contents/MacOS/lyxeditor
25148 \end_layout
25149
25150 \end_inset
25151
25152 .
25153 \end_layout
25154
25155 \begin_layout Standard
25156 Reverse search is triggered by COMMAND-SHIFT-click
25157 \end_layout
25158
25159 \begin_layout Subsubsection*
25160 Evince (GNOME)
25161 \end_layout
25162
25163 \begin_layout Standard
25164 Reverse search with evince does not work out of the box,
25165  but it can be achieved by means of some third party helper scripts.
25166  Please refer to 
25167 \begin_inset CommandInset href
25168 LatexCommand href
25169 target "https://wiki.lyx.org/LyX/SyncTeX"
25170 literal "false"
25171
25172 \end_inset
25173
25174  for details.
25175 \end_layout
25176
25177 \begin_layout Subsubsection*
25178 Okular (KDE)
25179 \end_layout
25180
25181 \begin_layout Standard
25182 Go to 
25183 \family sans
25184 Settings\SpecialChar menuseparator
25185 Configure Okular\SpecialChar menuseparator
25186 Editor
25187 \family default
25188  and select LyX
25189 \begin_inset Quotes erd
25190 \end_inset
25191
25192  as editor.
25193  This inserts the appropriate command (
25194 \begin_inset Flex Code
25195 status collapsed
25196
25197 \begin_layout Plain Layout
25198 lyxclient -g %f %l
25199 \end_layout
25200
25201 \end_inset
25202
25203 ).
25204 \end_layout
25205
25206 \begin_layout Standard
25207 Reverse search is triggered by SHIFT-click.
25208  Note that this only works if Okular is in 
25209 \begin_inset Quotes eld
25210 \end_inset
25211
25212 Browse
25213 \begin_inset Quotes erd
25214 \end_inset
25215
25216  mode (i.
25217 \begin_inset space \thinspace{}
25218 \end_inset
25219
25220 e.,
25221  the hand symbol is clicked).
25222 \end_layout
25223
25224 \begin_layout Subsubsection*
25225 Qpdfview (Unix)
25226 \end_layout
25227
25228 \begin_layout Standard
25229 Qpdfview supports Sync\SpecialChar TeX
25230  since version 0.3.5.
25231  Go to 
25232 \family sans
25233 Edit\SpecialChar menuseparator
25234 Settings\SpecialChar menuseparator
25235 Behavior
25236 \family default
25237 ,
25238  click on the input field of the 
25239 \begin_inset Quotes eld
25240 \end_inset
25241
25242 Source editor
25243 \begin_inset Quotes erd
25244 \end_inset
25245
25246  item and add the command 
25247 \begin_inset Flex Code
25248 status collapsed
25249
25250 \begin_layout Plain Layout
25251 lyxclient -g %1 %2
25252 \end_layout
25253
25254 \end_inset
25255
25256 .
25257 \end_layout
25258
25259 \begin_layout Standard
25260 Reverse search is triggered by double-click or,
25261  in more recent versions,
25262  by context menu.
25263 \end_layout
25264
25265 \begin_layout Subsubsection*
25266 YAP (Windows)
25267 \end_layout
25268
25269 \begin_layout Standard
25270 Launch yap,
25271  choose its 
25272 \family sans
25273 View\SpecialChar menuseparator
25274 Options
25275 \family default
25276  menu and select the 
25277 \begin_inset Quotes eld
25278 \end_inset
25279
25280 Inverse DVI Search
25281 \begin_inset Quotes erd
25282 \end_inset
25283
25284  tab.
25285  Click on the 
25286 \begin_inset Quotes eld
25287 \end_inset
25288
25289 New\SpecialChar ldots
25290
25291 \begin_inset Quotes erd
25292 \end_inset
25293
25294  button and,
25295  in the window that opens,
25296  enter 
25297 \begin_inset Quotes eld
25298 \end_inset
25299
25300 \SpecialChar LyX
25301  Editor
25302 \begin_inset Quotes erd
25303 \end_inset
25304
25305  (or any other name you like) in the 
25306 \begin_inset Quotes eld
25307 \end_inset
25308
25309 Name:
25310 \begin_inset Quotes erd
25311 \end_inset
25312
25313  field.
25314  Now click on the button labeled 
25315 \begin_inset Quotes eld
25316 \end_inset
25317
25318 \SpecialChar ldots
25319
25320 \begin_inset Quotes erd
25321 \end_inset
25322
25323  to open a file dialog and navigate to the directory containing the batch file 
25324 \begin_inset Flex Code
25325 status collapsed
25326
25327 \begin_layout Plain Layout
25328 lyxeditor.bat
25329 \end_layout
25330
25331 \end_inset
25332
25333  (see below).
25334  Select 
25335 \begin_inset Flex Code
25336 status collapsed
25337
25338 \begin_layout Plain Layout
25339 lyxeditor.bat
25340 \end_layout
25341
25342 \end_inset
25343
25344  and then specify the program arguments as 
25345 \begin_inset Flex Code
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349 %f %l
25350 \end_layout
25351
25352 \end_inset
25353
25354 .
25355  The 
25356 \begin_inset Flex Code
25357 status collapsed
25358
25359 \begin_layout Plain Layout
25360 lyxeditor.bat
25361 \end_layout
25362
25363 \end_inset
25364
25365  wrapper is used for communicating with \SpecialChar LyX
25366  through the 
25367 \emph on
25368 lyxpipe
25369 \emph default
25370  and is as follows:
25371 \end_layout
25372
25373 \begin_layout LyX-Code
25374 @echo off
25375 \begin_inset Newline newline
25376 \end_inset
25377
25378 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
25379 \backslash
25380
25381 \backslash
25382 .
25383 \backslash
25384 pipe
25385 \backslash
25386 lyxpipe.in
25387 \begin_inset Newline newline
25388 \end_inset
25389
25390 type 
25391 \backslash
25392
25393 \backslash
25394 .
25395 \backslash
25396 pipe
25397 \backslash
25398 lyxpipe.out
25399 \end_layout
25400
25401 \begin_layout Standard
25402 Make sure that the \SpecialChar LyX
25403 Server pipe path you specified in \SpecialChar LyX
25404  is 
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409
25410 \backslash
25411
25412 \backslash
25413 .
25414 \backslash
25415 pipe
25416 \backslash
25417 lyxpipe
25418 \end_layout
25419
25420 \end_inset
25421
25422 ,
25423  otherwise change the 
25424 \begin_inset Flex Code
25425 status collapsed
25426
25427 \begin_layout Plain Layout
25428 lyxeditor.bat
25429 \end_layout
25430
25431 \end_inset
25432
25433  wrapper accordingly.
25434 \end_layout
25435
25436 \begin_layout Standard
25437 In yap,
25438  reverse search is triggered by double-click.
25439 \end_layout
25440
25441 \begin_layout Subsubsection*
25442 SumatraPDF (Windows)
25443 \end_layout
25444
25445 \begin_layout Standard
25446 In order to use SumatraPDF for inverse search,
25447  enter 
25448 \begin_inset Flex Code
25449 status collapsed
25450
25451 \begin_layout Plain Layout
25452 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
25453 \end_layout
25454
25455 \end_inset
25456
25457  in the viewer setting in 
25458 \family sans
25459 Preferences\SpecialChar menuseparator
25460 File Handling\SpecialChar menuseparator
25461 File formats\SpecialChar menuseparator
25462 PDF (pdflatex)
25463 \family default
25464 ,
25465  where 
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 lyxeditor.bat
25471 \end_layout
25472
25473 \end_inset
25474
25475  is the previous wrapper.
25476  If SumatraPDF.exe is not in your command PATH,
25477  use its full file name.
25478 \end_layout
25479
25480 \begin_layout Standard
25481 Reverse search is triggered by double-click.
25482 \end_layout
25483
25484 \begin_layout Subsubsection*
25485 YAP (Cygwin)
25486 \end_layout
25487
25488 \begin_layout Standard
25489 First of all,
25490  make sure that yap is your default DVI viewer in the Windows environment,
25491  then launch it,
25492  choose its 
25493 \family sans
25494 View\SpecialChar menuseparator
25495 Options
25496 \family default
25497  menu and select the 
25498 \begin_inset Quotes eld
25499 \end_inset
25500
25501 Inverse DVI Search
25502 \begin_inset Quotes erd
25503 \end_inset
25504
25505  tab.
25506  Click on the 
25507 \begin_inset Quotes eld
25508 \end_inset
25509
25510 New\SpecialChar ldots
25511
25512 \begin_inset Quotes erd
25513 \end_inset
25514
25515  button and,
25516  in the window that opens,
25517  enter 
25518 \begin_inset Quotes eld
25519 \end_inset
25520
25521 \SpecialChar LyX
25522  Editor
25523 \begin_inset Quotes erd
25524 \end_inset
25525
25526  (or any other name you like) in the 
25527 \begin_inset Quotes eld
25528 \end_inset
25529
25530 Name:
25531 \begin_inset Quotes erd
25532 \end_inset
25533
25534  field.
25535  Now click on the button labeled 
25536 \begin_inset Quotes eld
25537 \end_inset
25538
25539 \SpecialChar ldots
25540
25541 \begin_inset Quotes erd
25542 \end_inset
25543
25544  to open a file dialog and navigate to the directory containing the 
25545 \begin_inset Flex Code
25546 status collapsed
25547
25548 \begin_layout Plain Layout
25549 lyxeditor.exe
25550 \end_layout
25551
25552 \end_inset
25553
25554  program (which is installed by default on Cygwin along with the \SpecialChar LyX
25555  executable).
25556  Select 
25557 \begin_inset Flex Code
25558 status collapsed
25559
25560 \begin_layout Plain Layout
25561 lyxeditor.exe
25562 \end_layout
25563
25564 \end_inset
25565
25566  and then specify the program arguments as 
25567 \begin_inset Flex Code
25568 status collapsed
25569
25570 \begin_layout Plain Layout
25571 -g %f %l
25572 \end_layout
25573
25574 \end_inset
25575
25576 .
25577  In this way,
25578  you will be using the 
25579 \emph on
25580 lyxsocket
25581 \emph default
25582  for communicating with \SpecialChar LyX
25583 .
25584  If,
25585  for whatever reason,
25586  you want to use the 
25587 \emph on
25588 lyxpipe
25589 \emph default
25590 ,
25591  omit the 
25592 \begin_inset Flex Code
25593 status collapsed
25594
25595 \begin_layout Plain Layout
25596 -g
25597 \end_layout
25598
25599 \end_inset
25600
25601  option and be sure to specify the \SpecialChar LyX
25602 Server pipe path in the \SpecialChar LyX
25603  preferences.
25604 \end_layout
25605
25606 \begin_layout Standard
25607 In yap,
25608  reverse search is triggered by double-click.
25609 \end_layout
25610
25611 \begin_layout Subsubsection*
25612 SumatraPDF (Cygwin)
25613 \end_layout
25614
25615 \begin_layout Standard
25616 In order to use SumatraPDF for inverse search,
25617  enter 
25618 \begin_inset Flex Code
25619 status collapsed
25620
25621 \begin_layout Plain Layout
25622 SumatraPDF -inverse-search "lyxeditor -g %f %l"
25623 \end_layout
25624
25625 \end_inset
25626
25627  in the viewer setting in 
25628 \family sans
25629 Preferences\SpecialChar menuseparator
25630 File Handling\SpecialChar menuseparator
25631 File formats\SpecialChar menuseparator
25632 PDF (pdflatex)
25633 \family default
25634 .
25635  If SumatraPDF.exe is not in your command PATH,
25636  use its full posix path.
25637  The 
25638 \begin_inset Flex Code
25639 status collapsed
25640
25641 \begin_layout Plain Layout
25642 -g
25643 \end_layout
25644
25645 \end_inset
25646
25647  enables communication via the 
25648 \emph on
25649 lyxsocket
25650 \emph default
25651 .
25652  Again,
25653  omit the 
25654 \begin_inset Flex Code
25655 status collapsed
25656
25657 \begin_layout Plain Layout
25658 -g
25659 \end_layout
25660
25661 \end_inset
25662
25663  option if you want to use the 
25664 \emph on
25665 lyxpipe
25666 \emph default
25667 ,
25668  and be sure to specify the \SpecialChar LyX
25669 Server pipe path in the \SpecialChar LyX
25670  preferences.
25671 \end_layout
25672
25673 \begin_layout Standard
25674 Reverse search is triggered by double-click.
25675 \end_layout
25676
25677 \begin_layout Section
25678 Forward search
25679 \end_layout
25680
25681 \begin_layout Standard
25682 Forward search is,
25683  as the name implies,
25684  in a sense the 
25685 \begin_inset Quotes eld
25686 \end_inset
25687
25688 opposite
25689 \begin_inset Quotes erd
25690 \end_inset
25691
25692  of reverse search.
25693  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
25694 .
25695  If forward search is set up (as described in what follows),
25696  you can put the cursor anywhere in your \SpecialChar LyX
25697  document,
25698  and hit 
25699 \family sans
25700 Navigate\SpecialChar menuseparator
25701 Forward search
25702 \family default
25703  (or select 
25704 \family sans
25705 Forward search
25706 \family default
25707  in the context menu via right mouse click),
25708  and then the viewer will jump to that position as well.
25709  This implies,
25710  of course,
25711  that your viewer supports this function.
25712 \end_layout
25713
25714 \begin_layout Standard
25715 To make forward search possible,
25716  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
25717  sources.
25718  This can be done via the methods described in the section 
25719 \begin_inset CommandInset ref
25720 LatexCommand ref
25721 reference "subsec:rev-search"
25722 nolink "false"
25723
25724 \end_inset
25725
25726 .
25727 \end_layout
25728
25729 \begin_layout Standard
25730 Additionally,
25731  you need to configure \SpecialChar LyX
25732  for using your viewers in 
25733 \family sans
25734 Tools\SpecialChar menuseparator
25735 Preferences\SpecialChar menuseparator
25736 Output\SpecialChar menuseparator
25737 General
25738 \family default
25739 .
25740  We provide a range of tested configurations for some viewers,
25741  which you can select from the drop down list.
25742  If none of these configurations suits you,
25743  you have to find out and enter a suitable configuration yourself.
25744  The definition syntax uses the following placeholders:
25745 \end_layout
25746
25747 \begin_layout Itemize
25748 \noindent
25749 \begin_inset Flex Code
25750 status collapsed
25751
25752 \begin_layout Plain Layout
25753 $$n
25754 \end_layout
25755
25756 \end_inset
25757
25758 :
25759  row number
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 $$t
25769 \end_layout
25770
25771 \end_inset
25772
25773 :
25774  name of the (temporary) exported .tex file (without path)
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 $$f
25784 \end_layout
25785
25786 \end_inset
25787
25788 :
25789  name of the (temporary) exported .tex file (including 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 $$o
25799 \end_layout
25800
25801 \end_inset
25802
25803 :
25804  name of the exported output file (either dvi or pdf,
25805  depending on which one exists in the temporary directory)
25806 \end_layout
25807
25808 \begin_layout Standard
25809 Note that only some of the viewers provide full and usable forward search functionality out of the box,
25810  among them yap,
25811  xdvi,
25812  okular
25813 \begin_inset Foot
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 You might want to set 
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822 okular --unique
25823 \end_layout
25824
25825 \end_inset
25826
25827  in 
25828 \family sans
25829 Tools\SpecialChar menuseparator
25830 Preferences\SpecialChar menuseparator
25831 File Handling\SpecialChar menuseparator
25832 File
25833 \begin_inset space ~
25834 \end_inset
25835
25836 Formats
25837 \end_layout
25838
25839 \end_inset
25840
25841 ,
25842  qpdfview,
25843  and SumatraPDF
25844 \begin_inset Foot
25845 status collapsed
25846
25847 \begin_layout Plain Layout
25848 SumatraPDF can also use DDE commands through the external program CMCDDE —
25849  downloadable from 
25850 \begin_inset CommandInset href
25851 LatexCommand href
25852 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
25853 literal "false"
25854
25855 \end_inset
25856
25857
25858 \end_layout
25859
25860 \end_inset
25861
25862 .
25863  Others,
25864  such as evince
25865 \begin_inset Foot
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 Forward search with evince can be achieved by means of third party helper scripts.
25870  Please refer to 
25871 \begin_inset CommandInset href
25872 LatexCommand href
25873 target "https://wiki.lyx.org/LyX/SyncTeX"
25874 literal "false"
25875
25876 \end_inset
25877
25878  for details.
25879 \end_layout
25880
25881 \end_inset
25882
25883 ,
25884  require some extra tools in order to use forward search.
25885  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
25886  some other viewers – e.
25887 \begin_inset space \thinspace{}
25888 \end_inset
25889
25890 g.
25891  xpdf – allow at least to reload the document and jump to a specific page of the file,
25892  so you can at least navigate 
25893 \begin_inset Quotes eld
25894 \end_inset
25895
25896 near
25897 \begin_inset Quotes erd
25898 \end_inset
25899
25900 .
25901  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
25902  
25903 \end_layout
25904
25905 \begin_layout Standard
25906 Forward search works both with DVI and PDF output.
25907  \SpecialChar LyX
25908  simply checks which preview format you have used before (i.
25909 \begin_inset space \thinspace{}
25910 \end_inset
25911
25912 e.,
25913  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.\SpecialChar LyX
25914  Features needing Extra Software
25915 \end_layout
25916
25917 \begin_layout Section
25918 Checking \SpecialChar TeX
25919
25920 \end_layout
25921
25922 \begin_layout Standard
25923 by 
25924 \noun on
25925 Asger Alstrup
25926 \end_layout
25927
25928 \begin_layout Subsection
25929 Introduction
25930 \end_layout
25931
25932 \begin_layout Standard
25933 If you have the 
25934 \family typewriter
25935 chktex
25936 \family default
25937  program installed
25938 \begin_inset Foot
25939 status collapsed
25940
25941 \begin_layout Plain Layout
25942
25943 \family typewriter
25944 chktex
25945 \family default
25946  is not yet available when you are using the \SpecialChar LaTeX
25947  distribution MiK\SpecialChar TeX
25948 .
25949 \end_layout
25950
25951 \end_inset
25952
25953 ,
25954  you'll find in the 
25955 \family sans
25956 Tools
25957 \family default
25958  menu the entry:
25959  
25960 \family sans
25961 Check
25962 \begin_inset space ~
25963 \end_inset
25964
25965 TeX
25966 \family default
25967 .
25968  You can get 
25969 \family typewriter
25970 chktex
25971 \family default
25972  from CTAN,
25973 \begin_inset Newline newline
25974 \end_inset
25975
25976
25977 \begin_inset CommandInset href
25978 LatexCommand href
25979 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
25980 literal "false"
25981
25982 \end_inset
25983
25984 .
25985 \end_layout
25986
25987 \begin_layout Standard
25988 The 
25989 \family sans
25990 Chk\SpecialChar TeX
25991
25992 \family default
25993  package is a program that was written by 
25994 \begin_inset Flex Noun
25995 status collapsed
25996
25997 \begin_layout Plain Layout
25998 Jens T.
25999 \begin_inset space ~
26000 \end_inset
26001
26002 Berger Thielemann
26003 \end_layout
26004
26005 \end_inset
26006
26007  in frustration because some constructs in \SpecialChar LaTeX
26008  are sometimes non-intuitive,
26009  and easy to forget.
26010  The program runs over your \SpecialChar LaTeX
26011  file,
26012  checks the integrity of the file,
26013  and flags some common errors.
26014  In other technical words,
26015  it is 
26016 \family typewriter
26017 lint
26018 \family default
26019  for \SpecialChar LaTeX
26020 .
26021 \end_layout
26022
26023 \begin_layout Standard
26024 Well,
26025  what is a syntax checker doing in \SpecialChar LyX
26026  which is supposed to produce correct \SpecialChar LaTeX
26027  anyways?
26028  The answer is simple:
26029  Just as 
26030 \family typewriter
26031 Lint
26032 \family default
26033  not only checks the 
26034 \emph on
26035 syntax
26036 \emph default
26037  of C programs,
26038  but also does 
26039 \emph on
26040 semantic
26041 \emph default
26042  checks for type-errors,
26043  
26044 \family sans
26045 Chk\SpecialChar TeX
26046
26047 \family default
26048  catches some common 
26049 \emph on
26050 typographic
26051 \emph default
26052  errors,
26053  in addition to the syntactical ones.
26054  Specifically,
26055  
26056 \family sans
26057 Chk\SpecialChar TeX
26058
26059 \family default
26060  is capable of detecting several common errors,
26061  such as
26062 \end_layout
26063
26064 \begin_layout Itemize
26065 Ellipsis detection:
26066 \begin_inset Newline newline
26067 \end_inset
26068
26069 Use \SpecialChar ldots
26070  instead of ...
26071 \end_layout
26072
26073 \begin_layout Itemize
26074 No space in front of/after parenthesis:
26075 \begin_inset Newline newline
26076 \end_inset
26077
26078 ( wrong spacing )
26079 \end_layout
26080
26081 \begin_layout Itemize
26082 Enforcement of normal space after common abbreviations:
26083 \begin_inset Newline newline
26084 \end_inset
26085
26086 e.
26087 \begin_inset space \thinspace{}
26088 \end_inset
26089
26090 g.
26091 \begin_inset space \space{}
26092 \end_inset
26093
26094 is too wide spacing.
26095 \end_layout
26096
26097 \begin_layout Itemize
26098 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
26099 \begin_inset Newline newline
26100 \end_inset
26101
26102 This is a TEST.
26103  And this is wrong spacing.
26104 \end_layout
26105
26106 \begin_layout Itemize
26107 Space in front of labels and similar commands:
26108 \begin_inset Newline newline
26109 \end_inset
26110
26111 The label should stick right up to the text to avoid falling to a wrong page.
26112  
26113 \begin_inset CommandInset label
26114 LatexCommand label
26115 name "sec:chktex"
26116
26117 \end_inset
26118
26119  
26120 \begin_inset Foot
26121 status collapsed
26122
26123 \begin_layout Plain Layout
26124 This footnote is in danger of falling off to a wrong page
26125 \end_layout
26126
26127 \end_inset
26128
26129  The label is separated too much.
26130 \end_layout
26131
26132 \begin_layout Itemize
26133 Space in front of references,
26134  instead of hard spaces:
26135 \begin_inset Newline newline
26136 \end_inset
26137
26138 If you have bad luck,
26139  the text will break right between the referenced text and reference number,
26140  and that's a pity.
26141  See section 
26142 \begin_inset CommandInset ref
26143 LatexCommand ref
26144 reference "sec:chktex"
26145 nolink "false"
26146
26147 \end_inset
26148
26149 .
26150 \end_layout
26151
26152 \begin_layout Itemize
26153 Use of 
26154 \begin_inset Quotes eld
26155 \end_inset
26156
26157 x
26158 \begin_inset Quotes erd
26159 \end_inset
26160
26161  instead of 
26162 \begin_inset Formula $\times$
26163 \end_inset
26164
26165  between numbers:
26166 \begin_inset Newline newline
26167 \end_inset
26168
26169 2x2 looks cheap compared to 
26170 \begin_inset Formula $2\times2$
26171 \end_inset
26172
26173 .
26174 \end_layout
26175
26176 \begin_layout Standard
26177 and more \SpecialChar ldots
26178  It is an invaluable tool when you are 
26179 \begin_inset Quotes eld
26180 \end_inset
26181
26182 finishing up
26183 \begin_inset Quotes erd
26184 \end_inset
26185
26186  your document before printing,
26187  and you should run it right after the obligatory spelling check,
26188  and before you go fine tuning the typesetting.
26189 \end_layout
26190
26191 \begin_layout Subsection
26192 How to use it
26193 \end_layout
26194
26195 \begin_layout Standard
26196 If you have the program installed,
26197  usage is as simple as choosing 
26198 \family sans
26199 Tools\SpecialChar menuseparator
26200 Check
26201 \begin_inset space ~
26202 \end_inset
26203
26204 TeX
26205 \family default
26206 .
26207  This will make \SpecialChar LyX
26208  generate a \SpecialChar LaTeX
26209  file of your document,
26210  start 
26211 \family sans
26212 Chk\SpecialChar TeX
26213
26214 \family default
26215  to check it,
26216  and then make \SpecialChar LyX
26217  insert 
26218 \begin_inset Quotes eld
26219 \end_inset
26220
26221 error boxes
26222 \begin_inset Quotes erd
26223 \end_inset
26224
26225  with the warnings from 
26226 \family sans
26227 Chk\SpecialChar TeX
26228
26229 \family default
26230 ,
26231  if there were any.
26232  The warnings will be placed close to the point of the mistake,
26233  and you can quickly find them by using the 
26234 \family sans
26235 Navigate\SpecialChar menuseparator
26236 Error
26237 \family default
26238  menu item,
26239  or the shortcut key 
26240 \family sans
26241 C-g
26242 \family default
26243  from the default 
26244 \family typewriter
26245 cua
26246 \family default
26247  bind file.
26248  Open the error boxes by clicking on them with the mouse,
26249  or use the shortcut key 
26250 \family sans
26251 C-i
26252 \family default
26253  from 
26254 \family typewriter
26255 cua
26256 \family default
26257  bindings,
26258  or the corresponding 
26259 \family sans
26260 C-o
26261 \family default
26262  for the alternate 
26263 \family typewriter
26264 emacs
26265 \family default
26266  bind file.
26267  Read the warning and correct the mistake,
26268  if it is a mistake.
26269  If you have trouble understanding what the warning is about,
26270  you can safely ignore it.
26271  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
26272 \family sans
26273 Chk\SpecialChar TeX
26274
26275 \family default
26276 ,
26277  and this gap can make some warnings seem arcane or just plain silly.
26278 \end_layout
26279
26280 \begin_layout Standard
26281 This document is an excellent testing bed for the feature,
26282  and it should provide quite a few warnings for you to fiddle with.
26283  Since computers are only so smart,
26284  expect most of the warnings to be false alarms,
26285  though.
26286 \end_layout
26287
26288 \begin_layout Subsection
26289 How to fine tune it
26290 \end_layout
26291
26292 \begin_layout Standard
26293 Sometimes,
26294  you'll find that 
26295 \family sans
26296 Chk\SpecialChar TeX
26297
26298 \family default
26299  makes more noise than suits your mood.
26300  Then you can choose not to use it,
26301  wait until your mood changes,
26302  or try to customize 
26303 \family sans
26304 Chk\SpecialChar TeX
26305
26306 \family default
26307  to get better along with you.
26308 \end_layout
26309
26310 \begin_layout Standard
26311 Although 
26312 \family sans
26313 Chk\SpecialChar TeX
26314
26315 \family default
26316  
26317 \emph on
26318 is
26319 \emph default
26320  very configurable and extensible,
26321  you should not expect to solve all problems with 
26322 \family sans
26323 Chk\SpecialChar TeX
26324
26325 \family default
26326  in \SpecialChar LyX
26327  this way.
26328  Since \SpecialChar LyX
26329  has to generate a somewhat special \SpecialChar LaTeX
26330  file to be able to match the line numbers from the 
26331 \family sans
26332 Chk\SpecialChar TeX
26333
26334 \family default
26335  output
26336 \begin_inset Foot
26337 status collapsed
26338
26339 \begin_layout Plain Layout
26340 You can inspect the specific output from 
26341 \family sans
26342 chktex
26343 \family default
26344  by using 
26345 \family sans
26346 Document\SpecialChar menuseparator
26347 \SpecialChar LaTeX
26348
26349 \begin_inset space ~
26350 \end_inset
26351
26352 Log
26353 \family default
26354  right after a 
26355 \family sans
26356 chktex
26357 \family default
26358  run.
26359 \end_layout
26360
26361 \end_inset
26362
26363  to the internal document structure,
26364  some of the warnings will not appear correctly.
26365  There are two things you can do about this:
26366 \end_layout
26367
26368 \begin_layout Itemize
26369 Fine tune the 
26370 \family sans
26371 Chk\SpecialChar TeX
26372
26373 \family default
26374  invocation command line in 
26375 \family sans
26376 Tools\SpecialChar menuseparator
26377 Preferences\SpecialChar menuseparator
26378 Output\SpecialChar menuseparator
26379 LaTeX\SpecialChar menuseparator
26380 CheckTeX command
26381 \family default
26382 ,
26383  or the global 
26384 \family sans
26385 Chk\SpecialChar TeX
26386
26387 \family default
26388  installation configuration file (usually with the file 
26389 \family typewriter
26390 chktexrc
26391 \family default
26392 ).
26393  See below to learn what warnings can be enabled and disabled on the command line.
26394 \end_layout
26395
26396 \begin_layout Itemize
26397 Export your document as a raw \SpecialChar LaTeX
26398  file using 
26399 \family sans
26400 File\SpecialChar menuseparator
26401 Export\SpecialChar menuseparator
26402 \SpecialChar LaTeX
26403
26404 \family default
26405  and run 
26406 \family typewriter
26407 chktex
26408 \family default
26409  manually on that.
26410  Invoked in this way,
26411  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
26412 ,
26413  but with a little patience,
26414  you should be able to do it.
26415 \end_layout
26416
26417 \begin_layout Standard
26418 Here follows the warning messages that can be enabled and disabled in 
26419 \family sans
26420 Preferences
26421 \family default
26422 .
26423  Use 
26424 \family typewriter
26425 -n#
26426 \family default
26427  to disable a warning,
26428  and 
26429 \family typewriter
26430 -w#
26431 \family default
26432  to enable a warning.
26433  The emphasized entries are disabled by default,
26434  because the default is "
26435 \family typewriter
26436 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
26437 \family default
26438 ".
26439 \end_layout
26440
26441 \begin_layout Standard
26442 Notice that you should only use the options that enable and disable warnings,
26443  because \SpecialChar LyX
26444  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
26445 \family typewriter
26446 chktex
26447 \family default
26448 .
26449 \end_layout
26450
26451 \begin_layout Enumerate
26452
26453 \size small
26454 \emph on
26455 Command terminated with space.
26456 \end_layout
26457
26458 \begin_layout Enumerate
26459
26460 \size small
26461 Non-breaking space (
26462 \begin_inset Quotes eld
26463 \end_inset
26464
26465
26466 \family typewriter
26467 ~
26468 \family default
26469
26470 \begin_inset Quotes erd
26471 \end_inset
26472
26473 ) should have been used.
26474 \end_layout
26475
26476 \begin_layout Enumerate
26477
26478 \size small
26479 \emph on
26480 You should enclose the previous parenthesis with 
26481 \begin_inset Quotes eld
26482 \end_inset
26483
26484
26485 \family typewriter
26486 {}
26487 \family default
26488
26489 \begin_inset Quotes erd
26490 \end_inset
26491
26492 .
26493 \end_layout
26494
26495 \begin_layout Enumerate
26496
26497 \size small
26498 Italic correction (
26499 \begin_inset Quotes eld
26500 \end_inset
26501
26502
26503 \family typewriter
26504
26505 \backslash
26506 /
26507 \family default
26508
26509 \begin_inset Quotes erd
26510 \end_inset
26511
26512 ) found in non-italic buffer.
26513 \end_layout
26514
26515 \begin_layout Enumerate
26516
26517 \size small
26518 Italic correction (
26519 \begin_inset Quotes eld
26520 \end_inset
26521
26522
26523 \family typewriter
26524
26525 \backslash
26526 /
26527 \family default
26528
26529 \begin_inset Quotes erd
26530 \end_inset
26531
26532 ) found more than once.
26533 \end_layout
26534
26535 \begin_layout Enumerate
26536
26537 \size small
26538 \emph on
26539 No italic correction (
26540 \begin_inset Quotes eld
26541 \end_inset
26542
26543
26544 \family typewriter
26545
26546 \backslash
26547 /
26548 \family default
26549
26550 \begin_inset Quotes erd
26551 \end_inset
26552
26553 ) found.
26554 \end_layout
26555
26556 \begin_layout Enumerate
26557
26558 \size small
26559 Accent command 
26560 \begin_inset Quotes eld
26561 \end_inset
26562
26563
26564 \family typewriter
26565 cmd
26566 \family default
26567
26568 \begin_inset Quotes erd
26569 \end_inset
26570
26571  needs use of 
26572 \begin_inset Quotes eld
26573 \end_inset
26574
26575
26576 \family typewriter
26577 cmd
26578 \family default
26579
26580 \begin_inset Quotes erd
26581 \end_inset
26582
26583 .
26584 \end_layout
26585
26586 \begin_layout Enumerate
26587
26588 \size small
26589 Wrong length of dash may have been used.
26590 \end_layout
26591
26592 \begin_layout Enumerate
26593
26594 \size small
26595 \emph on
26596 \begin_inset Quotes eld
26597 \end_inset
26598
26599
26600 \family typewriter
26601 %s
26602 \family default
26603
26604 \begin_inset Quotes erd
26605 \end_inset
26606
26607  expected,
26608  found 
26609 \begin_inset Quotes eld
26610 \end_inset
26611
26612
26613 \family typewriter
26614 %s
26615 \family default
26616
26617 \begin_inset Quotes erd
26618 \end_inset
26619
26620 .
26621 \end_layout
26622
26623 \begin_layout Enumerate
26624
26625 \size small
26626 Solo 
26627 \begin_inset Quotes eld
26628 \end_inset
26629
26630
26631 \family typewriter
26632 %s
26633 \family default
26634
26635 \begin_inset Quotes erd
26636 \end_inset
26637
26638  found.
26639 \end_layout
26640
26641 \begin_layout Enumerate
26642
26643 \size small
26644 You should use 
26645 \begin_inset Quotes eld
26646 \end_inset
26647
26648
26649 \family typewriter
26650 %s
26651 \family default
26652
26653 \begin_inset Quotes erd
26654 \end_inset
26655
26656  to achieve an ellipsis.
26657 \end_layout
26658
26659 \begin_layout Enumerate
26660
26661 \size small
26662 Inter-word spacing (
26663 \begin_inset Quotes eld
26664 \end_inset
26665
26666
26667 \family typewriter
26668
26669 \backslash
26670
26671 \family default
26672  
26673 \begin_inset Quotes eld
26674 \end_inset
26675
26676 ) should perhaps be used.
26677 \end_layout
26678
26679 \begin_layout Enumerate
26680
26681 \size small
26682 Inter-sentence spacing (
26683 \begin_inset Quotes eld
26684 \end_inset
26685
26686
26687 \family typewriter
26688
26689 \backslash
26690 @
26691 \family default
26692
26693 \begin_inset Quotes erd
26694 \end_inset
26695
26696 ) should perhaps be used.
26697 \end_layout
26698
26699 \begin_layout Enumerate
26700
26701 \size small
26702 Could not find argument for command.
26703 \end_layout
26704
26705 \begin_layout Enumerate
26706
26707 \size small
26708 No match found for 
26709 \begin_inset Quotes eld
26710 \end_inset
26711
26712
26713 \family typewriter
26714 %s
26715 \family default
26716
26717 \begin_inset Quotes erd
26718 \end_inset
26719
26720 .
26721 \end_layout
26722
26723 \begin_layout Enumerate
26724
26725 \size small
26726 Math mode still on at end of \SpecialChar LaTeX
26727  file.
26728 \end_layout
26729
26730 \begin_layout Enumerate
26731
26732 \size small
26733 Number of 
26734 \begin_inset Quotes eld
26735 \end_inset
26736
26737
26738 \family typewriter
26739 char
26740 \family default
26741
26742 \begin_inset Quotes erd
26743 \end_inset
26744
26745  doesn't match the number of 
26746 \begin_inset Quotes eld
26747 \end_inset
26748
26749
26750 \family typewriter
26751 char
26752 \family default
26753
26754 \begin_inset Quotes erd
26755 \end_inset
26756
26757 .
26758 \end_layout
26759
26760 \begin_layout Enumerate
26761
26762 \size small
26763 You should use either 
26764 \family typewriter
26765
26766 \begin_inset Quotes eld
26767 \end_inset
26768
26769
26770 \family default
26771  or 
26772 \family typewriter
26773
26774 \begin_inset Quotes erd
26775 \end_inset
26776
26777
26778 \family default
26779  as an alternative to 
26780 \begin_inset Quotes eld
26781 \end_inset
26782
26783
26784 \family typewriter
26785 "
26786 \family default
26787
26788 \begin_inset Quotes erd
26789 \end_inset
26790
26791 .
26792 \end_layout
26793
26794 \begin_layout Enumerate
26795
26796 \size small
26797 You should use "
26798 \family typewriter
26799 '
26800 \family default
26801 " (ASCII 39) instead of "
26802 \family typewriter
26803 ´
26804 \family default
26805 " (ASCII 180).
26806 \end_layout
26807
26808 \begin_layout Enumerate
26809
26810 \size small
26811 User-specified pattern found.
26812 \end_layout
26813
26814 \begin_layout Enumerate
26815
26816 \size small
26817 This command might not be intended.
26818 \end_layout
26819
26820 \begin_layout Enumerate
26821
26822 \size small
26823 \emph on
26824 Comment displayed.
26825 \end_layout
26826
26827 \begin_layout Enumerate
26828
26829 \size small
26830 Either 
26831 \family typewriter
26832 ''
26833 \backslash
26834 ,'
26835 \family default
26836  or 
26837 \family typewriter
26838 '
26839 \backslash
26840 ,''
26841 \family default
26842  will look better.
26843 \end_layout
26844
26845 \begin_layout Enumerate
26846
26847 \size small
26848 Delete this space to maintain correct page references.
26849 \end_layout
26850
26851 \begin_layout Enumerate
26852
26853 \size small
26854 \emph on
26855 You might wish to put this between a pair of 
26856 \begin_inset Quotes eld
26857 \end_inset
26858
26859
26860 \family typewriter
26861 {}
26862 \family default
26863
26864 \begin_inset Quotes erd
26865 \end_inset
26866
26867 .
26868 \end_layout
26869
26870 \begin_layout Enumerate
26871
26872 \size small
26873 You ought to remove spaces in front of punctuation.
26874 \end_layout
26875
26876 \begin_layout Enumerate
26877
26878 \size small
26879 Could not execute \SpecialChar LaTeX
26880  command.
26881 \end_layout
26882
26883 \begin_layout Enumerate
26884
26885 \size small
26886 Don't use 
26887 \family typewriter
26888
26889 \backslash
26890 /
26891 \family default
26892  in front of small punctuation.
26893 \end_layout
26894
26895 \begin_layout Enumerate
26896
26897 \family typewriter
26898 \size small
26899 $
26900 \backslash
26901 times$
26902 \family default
26903  may look prettier here.
26904 \end_layout
26905
26906 \begin_layout Enumerate
26907
26908 \size small
26909 \emph on
26910 Multiple spaces detected in output.
26911 \end_layout
26912
26913 \begin_layout Enumerate
26914
26915 \size small
26916 This text may be ignored.
26917 \end_layout
26918
26919 \begin_layout Enumerate
26920
26921 \size small
26922 Use 
26923 \family typewriter
26924
26925 \begin_inset Quotes eld
26926 \end_inset
26927
26928
26929 \family default
26930  to begin quotation,
26931  not 
26932 \family typewriter
26933 '
26934 \family default
26935 .
26936 \end_layout
26937
26938 \begin_layout Enumerate
26939
26940 \size small
26941 Use 
26942 \family typewriter
26943 '
26944 \family default
26945  to end quotation,
26946  not 
26947 \family typewriter
26948
26949 \begin_inset Quotes eld
26950 \end_inset
26951
26952
26953 \family default
26954 .
26955 \end_layout
26956
26957 \begin_layout Enumerate
26958
26959 \size small
26960 Don't mix quotes.
26961 \end_layout
26962
26963 \begin_layout Enumerate
26964
26965 \size small
26966 You should perhaps use 
26967 \begin_inset Quotes eld
26968 \end_inset
26969
26970
26971 \family typewriter
26972 cmd
26973 \family default
26974
26975 \begin_inset Quotes erd
26976 \end_inset
26977
26978  instead.
26979 \end_layout
26980
26981 \begin_layout Enumerate
26982
26983 \size small
26984 You should put a space in front of/after parenthesis.
26985 \end_layout
26986
26987 \begin_layout Enumerate
26988
26989 \size small
26990 You should avoid spaces in front of/after parenthesis.
26991 \end_layout
26992
26993 \begin_layout Enumerate
26994
26995 \size small
26996 \emph on
26997 You should not use punctuation in front of/after quotes.
26998 \end_layout
26999
27000 \begin_layout Enumerate
27001
27002 \size small
27003 Double space found.
27004 \end_layout
27005
27006 \begin_layout Enumerate
27007
27008 \size small
27009 You should put punctuation outside inner/inside display math mode.
27010 \end_layout
27011
27012 \begin_layout Enumerate
27013
27014 \size small
27015 You ought to not use primitive \SpecialChar TeX
27016  in \SpecialChar LaTeX
27017  code.
27018 \end_layout
27019
27020 \begin_layout Enumerate
27021
27022 \size small
27023 You should remove spaces in front of 
27024 \begin_inset Quotes eld
27025 \end_inset
27026
27027
27028 \family typewriter
27029 %s
27030 \family default
27031
27032 \begin_inset Quotes erd
27033 \end_inset
27034
27035
27036 \end_layout
27037
27038 \begin_layout Enumerate
27039
27040 \size small
27041 \begin_inset Quotes eld
27042 \end_inset
27043
27044
27045 \family typewriter
27046 %s
27047 \family default
27048
27049 \begin_inset Quotes erd
27050 \end_inset
27051
27052  is normally not followed by 
27053 \begin_inset Quotes eld
27054 \end_inset
27055
27056
27057 \family typewriter
27058 %c
27059 \family default
27060
27061 \begin_inset Quotes erd
27062 \end_inset
27063
27064 .
27065 \end_layout
27066
27067 \begin_layout Standard
27068 In later versions of \SpecialChar LyX
27069 ,
27070  we hope to provide a more complete interface to this tool (and it's smaller cousin 
27071 \family typewriter
27072 lacheck
27073 \family default
27074 ) to exploit the full power of it.
27075  But it's not exactly useless as it is now:
27076  go try it on one of your existing documents of a certain length and be surprised.
27077 \end_layout
27078
27079 \begin_layout Section
27080 Version Control in \SpecialChar LyX
27081
27082 \end_layout
27083
27084 \begin_layout Standard
27085 by
27086 \noun on
27087  Lars Gullik Bjønnes 
27088 \noun default
27089 and 
27090 \noun on
27091 Pavel Sanda
27092 \end_layout
27093
27094 \begin_layout Subsection
27095 Introduction
27096 \end_layout
27097
27098 \begin_layout Standard
27099 \SpecialChar LyX
27100  supports some of the most basic RCS/CVS/SVN/GIT commands.
27101  If you need something a bit more sophisticated you will have to do that manually in a terminal or your favourite client.
27102 \end_layout
27103
27104 \begin_layout Standard
27105 Also note that CVS support is not as good as subversion support,
27106  so we advise using SVN instead.
27107  A good place to start learning Subversion is the SVN Book
27108 \begin_inset Foot
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 \begin_inset CommandInset href
27113 LatexCommand href
27114 target "http://svnbook.red-bean.com/"
27115 literal "false"
27116
27117 \end_inset
27118
27119
27120 \end_layout
27121
27122 \end_inset
27123
27124 .
27125  In the case of RCS you should read 
27126 \begin_inset Quotes eld
27127 \end_inset
27128
27129 rcsintro
27130 \begin_inset Quotes erd
27131 \end_inset
27132
27133  (a man file,
27134  read it with 
27135 \family typewriter
27136 man rcsintro
27137 \family default
27138 ).
27139  This file describes all the basic features of RCS.
27140  You should especially notice the comment about a RCS directory,
27141  and the notion of a master RCS file (the file ending in 
27142 \family typewriter
27143 ,v
27144 \family default
27145 ).
27146 \end_layout
27147
27148 \begin_layout Standard
27149 Before you begin to use the version control features in \SpecialChar LyX
27150 ,
27151  you should be familiar with RCS/CVS/SVN/GIT usage.
27152  The implementation in \SpecialChar LyX
27153  assumes a recent version of the GNU RCS or CVS/SVN package —
27154  no guarantees are made for older versions.
27155  Most of the log messages are not currently displayed after operations —
27156  you can check them in the Messages pane if you are unsure.
27157  Regular users of version control will appreciate the VC toolbar,
27158  which can be enabled via 
27159 \family sans
27160 View\SpecialChar menuseparator
27161 Toolbars\SpecialChar menuseparator
27162 Version
27163 \begin_inset space ~
27164 \end_inset
27165
27166 Control
27167 \family default
27168 .
27169 \end_layout
27170
27171 \begin_layout Standard
27172 For introducing your own external commands consult 
27173 \begin_inset Flex Code
27174 status collapsed
27175
27176 \begin_layout Plain Layout
27177 vc-command
27178 \end_layout
27179
27180 \end_inset
27181
27182  in the manual 
27183 \emph on
27184 \SpecialChar LyX
27185  Functions
27186 \emph default
27187 .
27188 \end_layout
27189
27190 \begin_layout Standard
27191 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
27192 \family sans
27193 Document\SpecialChar menuseparator
27194 Compressed
27195 \family default
27196  if it is checked):
27197  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
27198  Compressed LyX documents are binary files,
27199  which cannot be merged by version control systems.
27200  Also to avoid unnecessary merge conflicts we advise to disable document 
27201 \family sans
27202 Document\SpecialChar menuseparator
27203 Settings\SpecialChar menuseparator
27204 Output\SpecialChar menuseparator
27205 Save transient properties
27206 \family default
27207  when more users work on the same document.
27208 \end_layout
27209
27210 \begin_layout Subsection
27211 RCS commands in \SpecialChar LyX
27212
27213 \end_layout
27214
27215 \begin_layout Standard
27216 The following sections describe the RCS commands supported by \SpecialChar LyX
27217 .
27218  You can find them in the 
27219 \family sans
27220 File\SpecialChar menuseparator
27221 Version
27222 \begin_inset space ~
27223 \end_inset
27224
27225 Control
27226 \family default
27227  submenu.
27228  \SpecialChar LyX
27229  was tested against RCS 5.7/5.8/5.10.
27230 \end_layout
27231
27232 \begin_layout Subsubsection
27233
27234 \family sans
27235 Register
27236 \end_layout
27237
27238 \begin_layout Standard
27239 If your document is not under revision control,
27240  this is the only item shown in the menu.
27241  And if it is under revision control,
27242  the 
27243 \family sans
27244 Register
27245 \family default
27246  item is not visible.
27247  
27248 \end_layout
27249
27250 \begin_layout Standard
27251 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
27252  You are asked interactively to supply an initial description of the document.
27253  The document is now set in Read-Only mode and you have to 
27254 \family sans
27255 Check
27256 \begin_inset space ~
27257 \end_inset
27258
27259 Out
27260 \begin_inset space ~
27261 \end_inset
27262
27263 For
27264 \begin_inset space ~
27265 \end_inset
27266
27267 Edit
27268 \family default
27269 ,
27270  before making any changes to it.
27271  A document under revision control has a 
27272 \begin_inset Quotes eld
27273 \end_inset
27274
27275 [RCS:<version> <locker>]
27276 \begin_inset Quotes erd
27277 \end_inset
27278
27279  item tagged to the filename in the minibuffer.
27280 \end_layout
27281
27282 \begin_layout Standard
27283 RCS command that is run:
27284 \end_layout
27285
27286 \begin_layout LyX-Code
27287
27288 \family typewriter
27289 ci -q -u -i -t-"<initial description>" <file-name>
27290 \end_layout
27291
27292 \begin_layout Standard
27293 Read 
27294 \family typewriter
27295 man ci
27296 \family default
27297  to understand the switches.
27298  
27299 \end_layout
27300
27301 \begin_layout Subsubsection
27302
27303 \family sans
27304 Check In Changes
27305 \end_layout
27306
27307 \begin_layout Standard
27308 When you are finished editing a file,
27309  you check in your changes.
27310  When you do this,
27311  you are asked for a description of the changes.
27312  This is stored in the history log.
27313  The version number is bumped,
27314  your changes are applied to the master RCS file,
27315  the document is unlocked and set to Read-Only mode.
27316 \end_layout
27317
27318 \begin_layout Itemize
27319 RCS command:
27320  
27321 \family typewriter
27322 ci -q -u -m"<description>" <file-name>
27323 \end_layout
27324
27325 \begin_layout Subsubsection
27326
27327 \family sans
27328 Check Out For Edit
27329 \end_layout
27330
27331 \begin_layout Standard
27332 By doing this you lock the document so that only you can edit it.
27333  This will also make the document Read-Write only for you.
27334  You will usually continue editing for a while and when you are finished you check in your changes.
27335  The status line is changed to reflect that you have locked the file.
27336 \end_layout
27337
27338 \begin_layout Itemize
27339 RCS command:
27340  
27341 \family typewriter
27342 co -q -l <file-name>
27343 \end_layout
27344
27345 \begin_layout Subsubsection
27346
27347 \family sans
27348 Revert To Repository Version
27349 \end_layout
27350
27351 \begin_layout Standard
27352 This will discard all changes made to the document since the last check in.
27353  You get a warning before changes are discarded.
27354 \end_layout
27355
27356 \begin_layout Itemize
27357 RCS command:
27358  
27359 \family typewriter
27360 co -f -u<version> <file-name>
27361 \end_layout
27362
27363 \begin_layout Subsubsection
27364
27365 \family sans
27366 Copy
27367 \end_layout
27368
27369 \begin_layout Standard
27370 This will create a copy of the current document.
27371  Since RCS does not support copy operations natively,
27372  the version history is not preserved,
27373  and the copy is added as a new file.
27374  It requires a clean document without any changes since the last checkin.
27375  You are asked for a file name and a description of the copy operation.
27376  After that the copy is created,
27377  both locally and in the repository.
27378  If the parent directories of the copied and original document differ,
27379  all relative paths of included files of the copy are adjusted (like in 
27380 \family sans
27381 File\SpecialChar menuseparator
27382 Save As
27383 \family default
27384 \SpecialChar ldots
27385 ).
27386  Finally,
27387  the copy is loaded instead of the original document.
27388 \end_layout
27389
27390 \begin_layout Labeling
27391 \labelwidthstring 00.00.0000
27392 RCS
27393 \begin_inset space ~
27394 \end_inset
27395
27396 commands:
27397  
27398 \begin_inset space ~
27399 \end_inset
27400
27401
27402 \begin_inset Newline newline
27403 \end_inset
27404
27405 Copy 
27406 \begin_inset Flex Code
27407 status collapsed
27408
27409 \begin_layout Plain Layout
27410
27411 \family typewriter
27412 \begin_inset Quotes qld
27413 \end_inset
27414
27415 <file-name>
27416 \begin_inset Quotes qld
27417 \end_inset
27418
27419
27420 \end_layout
27421
27422 \end_inset
27423
27424  to 
27425 \begin_inset Flex Code
27426 status collapsed
27427
27428 \begin_layout Plain Layout
27429
27430 \family typewriter
27431 \begin_inset Quotes qld
27432 \end_inset
27433
27434 <new-file-name>
27435 \begin_inset Quotes qld
27436 \end_inset
27437
27438
27439 \end_layout
27440
27441 \end_inset
27442
27443
27444 \begin_inset Newline newline
27445 \end_inset
27446
27447
27448 \begin_inset Flex Code
27449 status collapsed
27450
27451 \begin_layout Plain Layout
27452 ci -q -u 
27453 \family typewriter
27454 -i 
27455 \begin_inset Quotes qld
27456 \end_inset
27457
27458 <new-file-name>
27459 \begin_inset Quotes qld
27460 \end_inset
27461
27462
27463 \end_layout
27464
27465 \end_inset
27466
27467
27468 \end_layout
27469
27470 \begin_layout Subsubsection
27471
27472 \family sans
27473 Undo Last Checkin
27474 \end_layout
27475
27476 \begin_layout Standard
27477 This makes as if the last check in never happened.
27478  No changes are made to the document loaded into \SpecialChar LyX
27479 ,
27480  but the last version is removed from the master RCS file.
27481 \end_layout
27482
27483 \begin_layout Itemize
27484 RCS command:
27485  
27486 \family typewriter
27487 rcs -o<version> <file-name>
27488 \end_layout
27489
27490 \begin_layout Subsubsection
27491
27492 \family sans
27493 Show History
27494 \end_layout
27495
27496 \begin_layout Standard
27497 This shows the complete history of the RCS document.
27498  The output of 
27499 \family typewriter
27500 rlog <file-name>
27501 \family default
27502  is shown in a browser.
27503  See 
27504 \family typewriter
27505 man rlog
27506 \family default
27507  for more info.
27508 \end_layout
27509
27510 \begin_layout Subsubsection
27511 Revision info
27512 \end_layout
27513
27514 \begin_layout Standard
27515 \SpecialChar LyX
27516  supports RCS version number,
27517  author name,
27518  date and time of last commit.
27519  All those are extracted from 
27520 \family typewriter
27521 rlog -r <file-name>
27522 \family default
27523 .
27524  See 
27525 \begin_inset CommandInset ref
27526 LatexCommand ref
27527 reference "subsec:VCS-Revision-Information"
27528 nolink "false"
27529
27530 \end_inset
27531
27532  for details.
27533 \end_layout
27534
27535 \begin_layout Subsection
27536 CVS commands in \SpecialChar LyX
27537
27538 \end_layout
27539
27540 \begin_layout Standard
27541 A subset of CVS operations is supported by \SpecialChar LyX
27542 .
27543  You can find the commands in the 
27544 \family sans
27545 File\SpecialChar menuseparator
27546 Version
27547 \begin_inset space ~
27548 \end_inset
27549
27550 Control
27551 \family default
27552  submenu.
27553  The version control system SVN is more powerful,
27554  so please use it instead of CVS if possible.
27555 \end_layout
27556
27557 \begin_layout Subsubsection
27558
27559 \family sans
27560 General CVS usage
27561 \end_layout
27562
27563 \begin_layout Standard
27564 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
27565  If you're using a client-server setup you may need to login before doing the first repository checkout.
27566 \end_layout
27567
27568 \begin_layout Standard
27569 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.
27570  Standard CVS repositories don't operate with a file locking mechanism.
27571  This may be surprising,
27572  but conflicts only occur if people disagree on the proper content of the same part of a document.
27573  So,
27574  if co-workers are used to communicate regularly,
27575  these conflicts occur rarely.
27576  If they don't communicate they have a fundamental problem anyway.
27577  Nevertheless some people like to work with so called 
27578 \begin_inset Quotes eld
27579 \end_inset
27580
27581 reserved checkouts
27582 \begin_inset Quotes erd
27583 \end_inset
27584
27585 .
27586  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.
27587  When the changes are checked in the working copy returns to readonly state.
27588  With \SpecialChar LyX
27589  one has to edit the 
27590 \begin_inset Flex Code
27591 status collapsed
27592
27593 \begin_layout Plain Layout
27594 .cvsrc
27595 \end_layout
27596
27597 \end_inset
27598
27599  file and add the line 
27600 \begin_inset Flex Code
27601 status collapsed
27602
27603 \begin_layout Plain Layout
27604 cvs -r
27605 \end_layout
27606
27607 \end_inset
27608
27609  to work with reserved checkouts.
27610  The benefit is the possibility to see who is using a writable copy of some document.
27611  It's not guaranteed only one user makes a copy writable.
27612 \end_layout
27613
27614 \begin_layout Standard
27615 \SpecialChar LyX
27616  tries to guess if you're using reserved or non-reserved checkouts.
27617  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.
27618  When a reserved checkout is detected you have to use 
27619 \begin_inset Flex Noun
27620 status collapsed
27621
27622 \begin_layout Plain Layout
27623 Check Out
27624 \end_layout
27625
27626 \end_inset
27627
27628  to make your working copy writable if it's readonly.
27629  After doing so the 
27630 \begin_inset Flex Noun
27631 status collapsed
27632
27633 \begin_layout Plain Layout
27634 Check In
27635 \end_layout
27636
27637 \end_inset
27638
27639  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
27640 \end_layout
27641
27642 \begin_layout Standard
27643 More information about CVS can be found here 
27644 \begin_inset Flex URL
27645 status collapsed
27646
27647 \begin_layout Plain Layout
27648
27649 http://www.nongnu.org/cvs
27650 \end_layout
27651
27652 \end_inset
27653
27654  and here 
27655 \begin_inset Flex URL
27656 status collapsed
27657
27658 \begin_layout Plain Layout
27659
27660 http://ximbiot.com/cvs
27661 \end_layout
27662
27663 \end_inset
27664
27665 .
27666 \end_layout
27667
27668 \begin_layout Standard
27669 Read 
27670 \family typewriter
27671 man cvs
27672 \family default
27673  to understand the sub-commands and the switches mentioned below.
27674 \end_layout
27675
27676 \begin_layout Subsubsection
27677
27678 \family sans
27679 Register
27680 \end_layout
27681
27682 \begin_layout Standard
27683 If your document is not under revision control,
27684  this is the only item shown in the menu.
27685  And if it is under revision control,
27686  the 
27687 \family sans
27688 Register
27689 \family default
27690  item is not visible.
27691  
27692 \end_layout
27693
27694 \begin_layout Standard
27695 This command registers in CVS your document 
27696 \begin_inset Flex Strong
27697 status collapsed
27698
27699 \begin_layout Plain Layout
27700
27701 \emph on
27702 only
27703 \end_layout
27704
27705 \end_inset
27706
27707  in the case you have already the documents directory under CVS control (in particular 
27708 \family typewriter
27709 CVS/Entries
27710 \family default
27711  file exists).
27712  This means you have to create or checkout the archive by yourself using external tools.
27713  (In case you forget that step \SpecialChar LyX
27714  registers the document with RCS.)
27715 \end_layout
27716
27717 \begin_layout Standard
27718 Then you are asked interactively to supply an initial description of the document.
27719  Don't forget that registered file is not yet checked in.
27720 \end_layout
27721
27722 \begin_layout Standard
27723 CVS command that is run:
27724  
27725 \family typewriter
27726 cvs -q add -m"<entered message>" "<file-name>"
27727 \end_layout
27728
27729 \begin_layout Standard
27730 The term 
27731 \family typewriter
27732 "<file-name>"
27733 \family default
27734  above and for all other CVS commands is an abbreviation for 
27735 \begin_inset Quotes eld
27736 \end_inset
27737
27738 change the current working directory to file location and use the file name without path component as argument
27739 \begin_inset Quotes erd
27740 \end_inset
27741
27742 .
27743 \end_layout
27744
27745 \begin_layout Subsubsection
27746
27747 \family sans
27748 Check In Changes
27749 \end_layout
27750
27751 \begin_layout Standard
27752 When you are finished editing a file,
27753  you commit your changes.
27754  When you do this and you had changed the document,
27755  you are asked for a description of the changes.
27756  After that changes are written to the repository.
27757  In case you didn't change the document and a reserved checkout is detected the reservation made on 
27758 \begin_inset Flex Noun
27759 status collapsed
27760
27761 \begin_layout Plain Layout
27762 Check Out
27763 \end_layout
27764
27765 \end_inset
27766
27767  is undone.
27768 \end_layout
27769
27770 \begin_layout Labeling
27771 \labelwidthstring 00.00.0000
27772 CVS
27773 \begin_inset space ~
27774 \end_inset
27775
27776 command:
27777  
27778 \begin_inset space ~
27779 \end_inset
27780
27781
27782 \begin_inset Newline newline
27783 \end_inset
27784
27785
27786 \begin_inset Flex Code
27787 status collapsed
27788
27789 \begin_layout Plain Layout
27790 cvs 
27791 \family typewriter
27792 -q commit -m"<description>" "<file-name>"
27793 \end_layout
27794
27795 \end_inset
27796
27797  or
27798 \begin_inset Newline newline
27799 \end_inset
27800
27801
27802 \begin_inset Flex Code
27803 status collapsed
27804
27805 \begin_layout Plain Layout
27806 cvs -q unedit 
27807 \family typewriter
27808 "<file-name>"
27809 \end_layout
27810
27811 \end_inset
27812
27813
27814 \end_layout
27815
27816 \begin_layout Subsubsection
27817
27818 \family sans
27819 Check Out Changes
27820 \end_layout
27821
27822 \begin_layout Standard
27823 When you are sharing a repository with others,
27824  you may have to incorporate their changes into your working copy.
27825 \end_layout
27826
27827 \begin_layout Standard
27828 CVS command:
27829  
27830 \family typewriter
27831 cvs -q update "<file-name>"
27832 \end_layout
27833
27834 \begin_layout Standard
27835 If a readonly checkout is detected the working copy is made writable and reserved.
27836 \end_layout
27837
27838 \begin_layout Standard
27839 CVS command:
27840  
27841 \family typewriter
27842 cvs -q edit "<file-name>"
27843 \end_layout
27844
27845 \begin_layout Subsubsection
27846
27847 \family sans
27848 Revert To Repository Version
27849 \end_layout
27850
27851 \begin_layout Standard
27852 This will discard all changes made to the document since the last check in.
27853  You get a warning before changes are discarded.
27854  Firstly the file is deleted,
27855  secondly CVS update command is run.
27856 \end_layout
27857
27858 \begin_layout Standard
27859 CVS command:
27860  
27861 \family typewriter
27862 cvs -q update "<file-name>"
27863 \end_layout
27864
27865 \begin_layout Standard
27866 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
27867 \end_layout
27868
27869 \begin_layout Standard
27870 CVS command:
27871  
27872 \family typewriter
27873 cvs -q unedit "<file-name>"
27874 \end_layout
27875
27876 \begin_layout Subsubsection
27877
27878 \family sans
27879 Copy
27880 \end_layout
27881
27882 \begin_layout Standard
27883 This will create a copy of the current document.
27884  Since CVS does not support copy operations natively,
27885  the version history is not preserved,
27886  and the copy is added as a new file.
27887  It requires a clean document without any changes since the last checkin.
27888  You are asked for a file name and a description of the copy operation.
27889  After that the copy is created,
27890  both locally and in the repository.
27891  If the parent directories of the copied and original document differ,
27892  all relative paths of included files of the copy are adjusted (like in 
27893 \family sans
27894 File\SpecialChar menuseparator
27895 Save As
27896 \family default
27897 \SpecialChar ldots
27898 ).
27899  Finally,
27900  the copy is loaded instead of the original document.
27901 \end_layout
27902
27903 \begin_layout Labeling
27904 \labelwidthstring 00.00.0000
27905 CVS
27906 \begin_inset space ~
27907 \end_inset
27908
27909 commands:
27910  
27911 \begin_inset space ~
27912 \end_inset
27913
27914
27915 \begin_inset Newline newline
27916 \end_inset
27917
27918 Copy 
27919 \begin_inset Flex Code
27920 status collapsed
27921
27922 \begin_layout Plain Layout
27923 "<file-name>"
27924 \end_layout
27925
27926 \end_inset
27927
27928  to 
27929 \begin_inset Flex Code
27930 status collapsed
27931
27932 \begin_layout Plain Layout
27933 "<new-file-name>"
27934 \end_layout
27935
27936 \end_inset
27937
27938
27939 \begin_inset Newline newline
27940 \end_inset
27941
27942
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947 cvs -q add "<new-file-name>"
27948 \end_layout
27949
27950 \end_inset
27951
27952
27953 \end_layout
27954
27955 \begin_layout Subsubsection
27956
27957 \family sans
27958 Rename
27959 \end_layout
27960
27961 \begin_layout Standard
27962 This will rename the current document.
27963  Since CVS does not support rename operations natively,
27964  the version history is not preserved,
27965  the renamed document is added as a new file,
27966  and the original document is deleted.
27967  It requires a clean document without any changes since the last checkin.
27968  You are asked for a file name and a description of the rename operation.
27969  After that the document is renamed,
27970  both locally and in the repository.
27971  If the parent directories of the new and old file names differ,
27972  all relative paths of included files are adjusted (like in 
27973 \family sans
27974 File\SpecialChar menuseparator
27975 Save As
27976 \family default
27977 \SpecialChar ldots
27978 ).
27979  Finally,
27980  the document is reloaded using the new name.
27981 \end_layout
27982
27983 \begin_layout Labeling
27984 \labelwidthstring 00.00.0000
27985 CVS
27986 \begin_inset space ~
27987 \end_inset
27988
27989 commands:
27990  
27991 \begin_inset space ~
27992 \end_inset
27993
27994
27995 \begin_inset Newline newline
27996 \end_inset
27997
27998 Rename 
27999 \begin_inset Flex Code
28000 status collapsed
28001
28002 \begin_layout Plain Layout
28003 "<file-name>"
28004 \end_layout
28005
28006 \end_inset
28007
28008  to 
28009 \begin_inset Flex Code
28010 status collapsed
28011
28012 \begin_layout Plain Layout
28013 "<new-file-name>"
28014 \end_layout
28015
28016 \end_inset
28017
28018
28019 \begin_inset Newline newline
28020 \end_inset
28021
28022
28023 \begin_inset Flex Code
28024 status collapsed
28025
28026 \begin_layout Plain Layout
28027 cvs -q add "<new-file-name>"
28028 \end_layout
28029
28030 \end_inset
28031
28032
28033 \begin_inset Newline newline
28034 \end_inset
28035
28036
28037 \begin_inset Flex Code
28038 status collapsed
28039
28040 \begin_layout Plain Layout
28041 cvs -q remove "<file-name>"
28042 \end_layout
28043
28044 \end_inset
28045
28046
28047 \end_layout
28048
28049 \begin_layout Subsubsection
28050 Update of the local directory checkout from repository
28051 \end_layout
28052
28053 \begin_layout Standard
28054 Once your documents gets more complex,
28055  containing sub-documents and pictures,
28056  including external 
28057 \begin_inset Flex Code
28058 status collapsed
28059
28060 \begin_layout Plain Layout
28061 .tex
28062 \end_layout
28063
28064 \end_inset
28065
28066  files and so on using version control becomes more complicated.
28067  \SpecialChar LyX
28068  supports updating the whole tree in which resides the document.
28069  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.
28070  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28071  It's good practice anyway to store multipart documents in an extra directory.
28072 \end_layout
28073
28074 \begin_layout Standard
28075 The 
28076 \begin_inset Flex Code
28077 status collapsed
28078
28079 \begin_layout Plain Layout
28080 Update local directory from repository
28081 \end_layout
28082
28083 \end_inset
28084
28085  command updates the whole directory.
28086  If local changes are detected user is warned before update starts.
28087  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
28088  You have to review and correct the result of the merge.
28089  You'll find the conflicts enclosed in pairs of 
28090 \begin_inset Flex Code
28091 status collapsed
28092
28093 \begin_layout Plain Layout
28094 <<<<<<<
28095 \end_layout
28096
28097 \end_inset
28098
28099  and 
28100 \begin_inset Flex Code
28101 status collapsed
28102
28103 \begin_layout Plain Layout
28104 >>>>>>>
28105 \end_layout
28106
28107 \end_inset
28108
28109  separated by 
28110 \begin_inset Flex Code
28111 status collapsed
28112
28113 \begin_layout Plain Layout
28114 =======
28115 \end_layout
28116
28117 \end_inset
28118
28119 .
28120  The first part is your version as before the update operation with the document name prepended.
28121  The second one is the repository version with the version number after the sequence of 
28122 \begin_inset Flex Code
28123 status collapsed
28124
28125 \begin_layout Plain Layout
28126 >
28127 \end_layout
28128
28129 \end_inset
28130
28131  signs.
28132 \end_layout
28133
28134 \begin_layout Labeling
28135 \labelwidthstring 00.00.0000
28136 CVS
28137 \begin_inset space ~
28138 \end_inset
28139
28140 commands:
28141  
28142 \begin_inset space ~
28143 \end_inset
28144
28145
28146 \begin_inset Newline newline
28147 \end_inset
28148
28149
28150 \begin_inset Flex Code
28151 status collapsed
28152
28153 \begin_layout Plain Layout
28154 cd $path;
28155  cvs diff 
28156 \family typewriter
28157 "."
28158 \end_layout
28159
28160 \end_inset
28161
28162  (Ask if changes are detected.)
28163 \begin_inset Newline newline
28164 \end_inset
28165
28166
28167 \begin_inset Flex Code
28168 status collapsed
28169
28170 \begin_layout Plain Layout
28171 cd $path;
28172  cvs -q update 
28173 \family typewriter
28174 "."
28175 \end_layout
28176
28177 \end_inset
28178
28179
28180 \end_layout
28181
28182 \begin_layout Standard
28183 where 
28184 \begin_inset Flex Code
28185 status collapsed
28186
28187 \begin_layout Plain Layout
28188 $path
28189 \end_layout
28190
28191 \end_inset
28192
28193  stands for the path to the document.
28194 \end_layout
28195
28196 \begin_layout Subsubsection
28197
28198 \family sans
28199 Show History
28200 \end_layout
28201
28202 \begin_layout Standard
28203 This shows the complete history of the CVS document.
28204  The output of 
28205 \family typewriter
28206 cvs log "<file-name>"
28207 \family default
28208  is shown in a browser.
28209 \end_layout
28210
28211 \begin_layout Subsubsection
28212 Revision info
28213 \end_layout
28214
28215 \begin_layout Standard
28216 \SpecialChar LyX
28217  supports CVS version number,
28218  author name,
28219  date and time of last commit.
28220  All those are extracted from 
28221 \family typewriter
28222 cvs log -r <file-name>
28223 \family default
28224 .
28225  See 
28226 \begin_inset CommandInset ref
28227 LatexCommand ref
28228 reference "subsec:VCS-Revision-Information"
28229 nolink "false"
28230
28231 \end_inset
28232
28233  for details.
28234 \end_layout
28235
28236 \begin_layout Subsection
28237 SVN commands in \SpecialChar LyX
28238
28239 \end_layout
28240
28241 \begin_layout Standard
28242 SVN is now partially supported by \SpecialChar LyX
28243 .
28244  You can find the commands in the 
28245 \family sans
28246 File\SpecialChar menuseparator
28247 Version
28248 \begin_inset space ~
28249 \end_inset
28250
28251 Control
28252 \family default
28253  submenu.
28254  Please note that if you use password protected access to repository via ssh,
28255  you will be asked in terminal window.
28256  \SpecialChar LyX
28257  was tested against SVN 1.5,
28258  1.6,
28259  1.7 and 1.8
28260 \begin_inset Foot
28261 status collapsed
28262
28263 \begin_layout Plain Layout
28264 Most of the commands will work with 1.4 too,
28265  see 
28266 \begin_inset CommandInset ref
28267 LatexCommand ref
28268 reference "subsec:SVN-Repo-Update"
28269 nolink "false"
28270
28271 \end_inset
28272
28273 .
28274  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
28275 \end_layout
28276
28277 \end_inset
28278
28279
28280 \end_layout
28281
28282 \begin_layout Subsubsection
28283
28284 \family sans
28285 Register
28286 \end_layout
28287
28288 \begin_layout Standard
28289 If your document is not under revision control,
28290  this is the only item shown in the menu.
28291  And if it is under revision control,
28292  the 
28293 \family sans
28294 Register
28295 \family default
28296  item is not visible.
28297 \end_layout
28298
28299 \begin_layout Standard
28300 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
28301 \family typewriter
28302 .svn/entries
28303 \family default
28304  file exists).
28305  This means you have to checkout the archive by yourself.
28306 \end_layout
28307
28308 \begin_layout Standard
28309 Then you are asked interactively to supply an initial description of the document.
28310  Don't forget that registered file is not yet commited.
28311 \end_layout
28312
28313 \begin_layout Standard
28314 SVN command that is run:
28315  
28316 \family typewriter
28317 svn add -q 
28318 \begin_inset Quotes qld
28319 \end_inset
28320
28321 <file-name>
28322 \begin_inset Quotes qld
28323 \end_inset
28324
28325
28326 \end_layout
28327
28328 \begin_layout Standard
28329 Read 
28330 \family typewriter
28331 man svn
28332 \family default
28333  to understand the switches.
28334 \end_layout
28335
28336 \begin_layout Subsubsection
28337
28338 \family sans
28339 Check In Changes
28340 \end_layout
28341
28342 \begin_layout Standard
28343 When you are finished editing a file,
28344  you commit your changes.
28345  When you do this,
28346  you are asked for a description of the changes.
28347  After that changes are commited.
28348 \end_layout
28349
28350 \begin_layout Standard
28351 SVN command:
28352 \begin_inset Foot
28353 status collapsed
28354
28355 \begin_layout Plain Layout
28356 In case locking is not enabled.
28357  See Section 
28358 \begin_inset CommandInset ref
28359 LatexCommand ref
28360 reference "subsec:SVN-File-Locking"
28361 nolink "false"
28362
28363 \end_inset
28364
28365 .
28366 \end_layout
28367
28368 \end_inset
28369
28370  
28371 \family typewriter
28372 svn commit -q -m"<description>" <file-name>
28373 \end_layout
28374
28375 \begin_layout Subsubsection
28376
28377 \family sans
28378 Check Out For Edit
28379 \end_layout
28380
28381 \begin_layout Standard
28382 Updates the changes of this file from the repository.
28383  Be sure you understand SVN merging and conflicts resolving before using this function,
28384  because all conflicts has to be resolved manually by you!
28385 \end_layout
28386
28387 \begin_layout Standard
28388 SVN command:
28389 \begin_inset Foot
28390 status collapsed
28391
28392 \begin_layout Plain Layout
28393 Ditto.
28394 \end_layout
28395
28396 \end_inset
28397
28398  
28399 \family typewriter
28400 svn update --non-interactive 
28401 \begin_inset Quotes qld
28402 \end_inset
28403
28404 <file-name>
28405 \begin_inset Quotes qld
28406 \end_inset
28407
28408
28409 \end_layout
28410
28411 \begin_layout Subsubsection
28412
28413 \family sans
28414 Revert To Repository Version
28415 \end_layout
28416
28417 \begin_layout Standard
28418 This will discard all changes made to the document since the last check in.
28419  You get a warning before changes are discarded.
28420 \end_layout
28421
28422 \begin_layout Standard
28423 SVN command:
28424  
28425 \family typewriter
28426 svn revert -q 
28427 \begin_inset Quotes qld
28428 \end_inset
28429
28430 <file-name>
28431 \begin_inset Quotes qld
28432 \end_inset
28433
28434
28435 \end_layout
28436
28437 \begin_layout Subsubsection
28438
28439 \family sans
28440 Copy
28441 \end_layout
28442
28443 \begin_layout Standard
28444 This will create a copy of the current document including the version history.
28445  It requires a clean document without any changes since the last checkin.
28446  You are asked for a file name and a description of the copy operation.
28447  After that the copy is created,
28448  both locally and in the repository.
28449  If the parent directories of the copied and original document differ,
28450  all relative paths of included files of the copy are adjusted (like in 
28451 \family sans
28452 File\SpecialChar menuseparator
28453 Save As
28454 \family default
28455 \SpecialChar ldots
28456 ).
28457  Finally,
28458  the copy is loaded instead of the original document.
28459 \end_layout
28460
28461 \begin_layout Labeling
28462 \labelwidthstring 00.00.0000
28463 SVN
28464 \begin_inset space ~
28465 \end_inset
28466
28467 commands:
28468  
28469 \begin_inset space ~
28470 \end_inset
28471
28472
28473 \begin_inset Newline newline
28474 \end_inset
28475
28476
28477 \begin_inset Flex Code
28478 status collapsed
28479
28480 \begin_layout Plain Layout
28481 svn copy -q 
28482 \family typewriter
28483
28484 \begin_inset Quotes qld
28485 \end_inset
28486
28487 <file-name>
28488 \begin_inset Quotes qld
28489 \end_inset
28490
28491  
28492 \begin_inset Quotes qld
28493 \end_inset
28494
28495 <new-file-name>
28496 \begin_inset Quotes qld
28497 \end_inset
28498
28499
28500 \end_layout
28501
28502 \end_inset
28503
28504
28505 \begin_inset Newline newline
28506 \end_inset
28507
28508
28509 \begin_inset Flex Code
28510 status collapsed
28511
28512 \begin_layout Plain Layout
28513 svn commit
28514 \end_layout
28515
28516 \end_inset
28517
28518
28519 \end_layout
28520
28521 \begin_layout Subsubsection
28522
28523 \family sans
28524 Rename
28525 \end_layout
28526
28527 \begin_layout Standard
28528 This will rename the current document including the version history.
28529  It requires a clean document without any changes since the last checkin.
28530  You are asked for a file name and a description of the rename operation.
28531  After that the document is renamed,
28532  both locally and in the repository.
28533  If the parent directories of the new and old file names differ,
28534  all relative paths of included files are adjusted (like in 
28535 \family sans
28536 File\SpecialChar menuseparator
28537 Save As
28538 \family default
28539 \SpecialChar ldots
28540 ).
28541  Finally,
28542  the document is reloaded using the new name.
28543 \end_layout
28544
28545 \begin_layout Labeling
28546 \labelwidthstring 00.00.0000
28547 SVN
28548 \begin_inset space ~
28549 \end_inset
28550
28551 commands:
28552  
28553 \begin_inset space ~
28554 \end_inset
28555
28556
28557 \begin_inset Newline newline
28558 \end_inset
28559
28560
28561 \begin_inset Flex Code
28562 status collapsed
28563
28564 \begin_layout Plain Layout
28565 svn move -q 
28566 \family typewriter
28567
28568 \begin_inset Quotes qld
28569 \end_inset
28570
28571 <file-name>
28572 \begin_inset Quotes qld
28573 \end_inset
28574
28575  
28576 \begin_inset Quotes qld
28577 \end_inset
28578
28579 <new-file-name>
28580 \begin_inset Quotes qld
28581 \end_inset
28582
28583
28584 \end_layout
28585
28586 \end_inset
28587
28588
28589 \begin_inset Newline newline
28590 \end_inset
28591
28592
28593 \begin_inset Flex Code
28594 status collapsed
28595
28596 \begin_layout Plain Layout
28597 svn commit
28598 \end_layout
28599
28600 \end_inset
28601
28602
28603 \end_layout
28604
28605 \begin_layout Subsubsection
28606 \begin_inset CommandInset label
28607 LatexCommand label
28608 name "subsec:SVN-Repo-Update"
28609
28610 \end_inset
28611
28612 Update of the local directory checkout from repository
28613 \begin_inset Foot
28614 status collapsed
28615
28616 \begin_layout Plain Layout
28617 Note that this command will work only with subversion 
28618 \begin_inset Formula $\geqq1.5$
28619 \end_inset
28620
28621
28622 \end_layout
28623
28624 \end_inset
28625
28626
28627 \end_layout
28628
28629 \begin_layout Standard
28630 All the commands above have one shortcoming – they deal with the current document only.
28631  Once your document contains pictures,
28632  includes external 
28633 \begin_inset Flex Code
28634 status collapsed
28635
28636 \begin_layout Plain Layout
28637 .tex
28638 \end_layout
28639
28640 \end_inset
28641
28642  files and so on administration becomes more complicated.
28643  \SpecialChar LyX
28644  now supports updating the whole tree in which resides the document
28645 \begin_inset Foot
28646 status collapsed
28647
28648 \begin_layout Plain Layout
28649 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28650  
28651 \end_layout
28652
28653 \end_inset
28654
28655 .
28656  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.
28657  
28658 \end_layout
28659
28660 \begin_layout Standard
28661 \begin_inset Flex Code
28662 status collapsed
28663
28664 \begin_layout Plain Layout
28665 Update local directory from repository
28666 \end_layout
28667
28668 \end_inset
28669
28670  command updates the whole directory and in case of merge conflicts local version of the files are left,
28671  so no unintended data loss occurs.
28672  If local changes are detected user is warned before update starts.
28673 \end_layout
28674
28675 \begin_layout Labeling
28676 \labelwidthstring 00.00.0000
28677 SVN
28678 \begin_inset space ~
28679 \end_inset
28680
28681 commands:
28682  
28683 \begin_inset space ~
28684 \end_inset
28685
28686
28687 \begin_inset Newline newline
28688 \end_inset
28689
28690
28691 \begin_inset Flex Code
28692 status collapsed
28693
28694 \begin_layout Plain Layout
28695 svn diff $path
28696 \end_layout
28697
28698 \end_inset
28699
28700  (Ask if changes are detected.)
28701 \begin_inset Newline newline
28702 \end_inset
28703
28704
28705 \begin_inset Flex Code
28706 status collapsed
28707
28708 \begin_layout Plain Layout
28709 svn update --accept mine-full $path
28710 \end_layout
28711
28712 \end_inset
28713
28714
28715 \end_layout
28716
28717 \begin_layout Standard
28718 where 
28719 \begin_inset Flex Code
28720 status collapsed
28721
28722 \begin_layout Plain Layout
28723 $path
28724 \end_layout
28725
28726 \end_inset
28727
28728  stands for the path to the document.
28729 \end_layout
28730
28731 \begin_layout Subsubsection
28732
28733 \family sans
28734 Show History
28735 \end_layout
28736
28737 \begin_layout Standard
28738 This shows the complete history of the SVN document.
28739  The output of 
28740 \family typewriter
28741 svn log 
28742 \begin_inset Quotes qld
28743 \end_inset
28744
28745 <file-name>
28746 \begin_inset Quotes qld
28747 \end_inset
28748
28749
28750 \family default
28751  is shown in a browser.
28752 \end_layout
28753
28754 \begin_layout Subsubsection
28755 File Locking
28756 \begin_inset CommandInset label
28757 LatexCommand label
28758 name "subsec:SVN-File-Locking"
28759
28760 \end_inset
28761
28762
28763 \end_layout
28764
28765 \begin_layout Standard
28766 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.
28767  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
28768  which guarantees that only one user is allowed to edit file at the given time.
28769 \end_layout
28770
28771 \begin_layout Standard
28772 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
28773  
28774 \begin_inset CommandInset ref
28775 LatexCommand ref
28776 reference "subsec:Automatical-Locking-Property"
28777 nolink "false"
28778
28779 \end_inset
28780
28781 ) based on 
28782 \begin_inset Flex Code
28783 status collapsed
28784
28785 \begin_layout Plain Layout
28786 svn:needs-lock
28787 \end_layout
28788
28789 \end_inset
28790
28791  file svn property
28792 \begin_inset Foot
28793 status collapsed
28794
28795 \begin_layout Plain Layout
28796 \begin_inset Flex URL
28797 status open
28798
28799 \begin_layout Plain Layout
28800
28801 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
28802 \end_layout
28803
28804 \end_inset
28805
28806
28807 \end_layout
28808
28809 \end_inset
28810
28811 .
28812  If this property is detected for a given document \SpecialChar LyX
28813  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
28814  This in particular means there are two different modes of file use in \SpecialChar LyX
28815 :
28816 \end_layout
28817
28818 \begin_layout Itemize
28819 Unlocked state.
28820  The loaded file is in the read-only mode.
28821  For editing on needs to check-out.
28822  
28823 \emph on
28824 Check-out
28825 \emph default
28826  consists of updating from the repository and gaining write lock.
28827  If the lock is not possible to obtain,
28828  we remain in unlocked state.
28829 \end_layout
28830
28831 \begin_layout Itemize
28832 Locked state.
28833  The loaded file is in the 
28834 \begin_inset Quotes els
28835 \end_inset
28836
28837 normal
28838 \begin_inset Quotes ers
28839 \end_inset
28840
28841  edit mode.
28842  No other user is allowed to edit the file.
28843  
28844 \emph on
28845 Check-in
28846 \emph default
28847  consists of commiting changes and releasing write-lock.
28848  If no changes have been made to the document,
28849  no commit will be produced
28850 \begin_inset Foot
28851 status collapsed
28852
28853 \begin_layout Plain Layout
28854 Don't be puzzled by the fact that you will be asked for commit message anyway.
28855 \end_layout
28856
28857 \end_inset
28858
28859  and only the write-lock will be released.
28860 \end_layout
28861
28862 \begin_layout Standard
28863 SVN commands:
28864 \end_layout
28865
28866 \begin_layout Labeling
28867 \labelwidthstring 00.00.0000
28868 Check-in:
28869
28870 \family typewriter
28871  svn commit -q -m"<description>" "<file-name>"
28872 \begin_inset Newline newline
28873 \end_inset
28874
28875 svn unlock "<file-name>"
28876 \end_layout
28877
28878 \begin_layout Labeling
28879 \labelwidthstring 00.00.0000
28880 Check-out:
28881  
28882 \family typewriter
28883 svn update "<file-name>"
28884 \begin_inset Newline newline
28885 \end_inset
28886
28887 svn lock "<file-name>"
28888 \end_layout
28889
28890 \begin_layout Subsubsection
28891
28892 \family typewriter
28893 \begin_inset CommandInset label
28894 LatexCommand label
28895 name "subsec:Automatical-Locking-Property"
28896
28897 \end_inset
28898
28899
28900 \family default
28901 Automatic Locking Property
28902 \end_layout
28903
28904 \begin_layout Standard
28905 The above mentioned automatic setting of write permissions of the .lyx file can be set through
28906 \family sans
28907  File\SpecialChar menuseparator
28908 Version
28909 \begin_inset space ~
28910 \end_inset
28911
28912 Control\SpecialChar menuseparator
28913 Use Locking Property
28914 \family default
28915 .
28916  This command is active only when the file is not locked on the svn server (i.e.
28917  you need to check-out before proceeding).
28918 \end_layout
28919
28920 \begin_layout Labeling
28921 \labelwidthstring 00.00.0000
28922 SVN
28923 \begin_inset space ~
28924 \end_inset
28925
28926 commands:
28927 \end_layout
28928
28929 \begin_layout Labeling
28930 \labelwidthstring 00.00.0000
28931 Set:
28932
28933 \family typewriter
28934  svn propset svn:needs-lock ON "<file-name>"
28935 \end_layout
28936
28937 \begin_layout Labeling
28938 \labelwidthstring 00.00.0000
28939 Unset:
28940  
28941 \family typewriter
28942 svn propdel svn:needs-lock "<file-name>"
28943 \end_layout
28944
28945 \begin_layout Subsubsection
28946 \begin_inset CommandInset label
28947 LatexCommand label
28948 name "subsec:VCS-Revision-Information"
28949
28950 \end_inset
28951
28952 Revision Information in Documents
28953 \end_layout
28954
28955 \begin_layout Standard
28956 There are more possibilities how to activate revision information in our document.
28957 \end_layout
28958
28959 \begin_layout Itemize
28960 \SpecialChar LyX
28961  supports directly:
28962 \end_layout
28963
28964 \begin_deeper
28965 \begin_layout Itemize
28966 tree revision information (
28967 \begin_inset Flex Code
28968 status collapsed
28969
28970 \begin_layout Plain Layout
28971 vcs-tree-revision
28972 \end_layout
28973
28974 \end_inset
28975
28976 ).
28977  The result is the output of the 
28978 \begin_inset Flex Code
28979 status collapsed
28980
28981 \begin_layout Plain Layout
28982 svnversion
28983 \end_layout
28984
28985 \end_inset
28986
28987  command,
28988  the following table gives you an idea,
28989  how to read the results.
28990 \end_layout
28991
28992 \begin_layout Standard
28993 \align center
28994 \begin_inset Tabular
28995 <lyxtabular version="3" rows="6" columns="2">
28996 <features tabularvalignment="middle">
28997 <column alignment="left" valignment="top">
28998 <column alignment="left" valignment="top">
28999 <row>
29000 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29001 \begin_inset Text
29002
29003 \begin_layout Plain Layout
29004
29005 \series bold
29006 Output
29007 \end_layout
29008
29009 \end_inset
29010 </cell>
29011 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29012 \begin_inset Text
29013
29014 \begin_layout Plain Layout
29015
29016 \series bold
29017 Meaning
29018 \end_layout
29019
29020 \end_inset
29021 </cell>
29022 </row>
29023 <row>
29024 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29025 \begin_inset Text
29026
29027 \begin_layout Plain Layout
29028 4123:4168
29029 \end_layout
29030
29031 \end_inset
29032 </cell>
29033 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29034 \begin_inset Text
29035
29036 \begin_layout Plain Layout
29037 mixed revision working copy
29038 \end_layout
29039
29040 \end_inset
29041 </cell>
29042 </row>
29043 <row>
29044 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29045 \begin_inset Text
29046
29047 \begin_layout Plain Layout
29048 4168M
29049 \end_layout
29050
29051 \end_inset
29052 </cell>
29053 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29054 \begin_inset Text
29055
29056 \begin_layout Plain Layout
29057 modified working copy
29058 \end_layout
29059
29060 \end_inset
29061 </cell>
29062 </row>
29063 <row>
29064 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29065 \begin_inset Text
29066
29067 \begin_layout Plain Layout
29068 4123S
29069 \end_layout
29070
29071 \end_inset
29072 </cell>
29073 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29074 \begin_inset Text
29075
29076 \begin_layout Plain Layout
29077 switched working copy
29078 \end_layout
29079
29080 \end_inset
29081 </cell>
29082 </row>
29083 <row>
29084 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29085 \begin_inset Text
29086
29087 \begin_layout Plain Layout
29088 4123P
29089 \end_layout
29090
29091 \end_inset
29092 </cell>
29093 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29094 \begin_inset Text
29095
29096 \begin_layout Plain Layout
29097 partial working copy,
29098  from a sparse checkout
29099 \end_layout
29100
29101 \end_inset
29102 </cell>
29103 </row>
29104 <row>
29105 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29106 \begin_inset Text
29107
29108 \begin_layout Plain Layout
29109 4123:4168MS
29110 \end_layout
29111
29112 \end_inset
29113 </cell>
29114 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29115 \begin_inset Text
29116
29117 \begin_layout Plain Layout
29118 mixed revision,
29119  modified,
29120  switched working copy
29121 \end_layout
29122
29123 \end_inset
29124 </cell>
29125 </row>
29126 </lyxtabular>
29127
29128 \end_inset
29129
29130
29131 \end_layout
29132
29133 \begin_layout Itemize
29134 file revision information.
29135  The result comes from parsing the output of 
29136 \begin_inset Flex Code
29137 status collapsed
29138
29139 \begin_layout Plain Layout
29140 svn
29141 \begin_inset space ~
29142 \end_inset
29143
29144 info
29145 \begin_inset space ~
29146 \end_inset
29147
29148 --xml
29149 \begin_inset space ~
29150 \end_inset
29151
29152 file.lyx
29153 \end_layout
29154
29155 \end_inset
29156
29157 .
29158  Supported flags are:
29159 \end_layout
29160
29161 \begin_deeper
29162 \begin_layout Itemize
29163 version number of the last commit (
29164 \begin_inset Flex Code
29165 status collapsed
29166
29167 \begin_layout Plain Layout
29168 vcs-revision
29169 \end_layout
29170
29171 \end_inset
29172
29173 )
29174 \end_layout
29175
29176 \begin_layout Itemize
29177 author of the last commit (
29178 \begin_inset Flex Code
29179 status collapsed
29180
29181 \begin_layout Plain Layout
29182 vcs-author
29183 \end_layout
29184
29185 \end_inset
29186
29187 )
29188 \end_layout
29189
29190 \begin_layout Itemize
29191 date of the last commit (
29192 \begin_inset Flex Code
29193 status collapsed
29194
29195 \begin_layout Plain Layout
29196 vcs-date
29197 \end_layout
29198
29199 \end_inset
29200
29201 )
29202 \end_layout
29203
29204 \begin_layout Itemize
29205 time of the last commit (
29206 \begin_inset Flex Code
29207 status collapsed
29208
29209 \begin_layout Plain Layout
29210 vcs-time
29211 \end_layout
29212
29213 \end_inset
29214
29215 )
29216 \end_layout
29217
29218 \end_deeper
29219 \begin_layout Standard
29220 You can obtain this info via InsetInfo (
29221 \family sans
29222 Insert\SpecialChar menuseparator
29223 Field\SpecialChar menuseparator
29224 Version Control Revision
29225 \family default
29226 ).
29227  The information will be available only when you have the file stored under svn managment (i.e.
29228  the 
29229 \begin_inset Flex Code
29230 status collapsed
29231
29232 \begin_layout Plain Layout
29233 .svn
29234 \end_layout
29235
29236 \end_inset
29237
29238  directory is available with your document).
29239 \end_layout
29240
29241 \end_deeper
29242 \begin_layout Itemize
29243 Another—
29244 a hacking one—
29245 possibility is to use svn keywords
29246 \begin_inset Foot
29247 status collapsed
29248
29249 \begin_layout Plain Layout
29250 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
29251 \end_layout
29252
29253 \end_inset
29254
29255 .
29256  In short – you set file keywords property (e.g.
29257  
29258 \family sans
29259 svn propset svn:keywords 'Rev' file.lyx
29260 \family default
29261 ) and then paste keyword \SpecialChar TeX
29262  code
29263 \begin_inset Foot
29264 status collapsed
29265
29266 \begin_layout Plain Layout
29267 This is an easy way how to ensure that \SpecialChar LyX
29268  won't break the line in the middle of keyword tag.
29269 \end_layout
29270
29271 \end_inset
29272
29273  tag in your document (e.g.
29274  
29275 \begin_inset Flex Code
29276 status collapsed
29277
29278 \begin_layout Plain Layout
29279 $Rev$
29280 \end_layout
29281
29282 \end_inset
29283
29284 ).
29285  This way svn client will automatically substitute revision number (e.g.
29286  
29287 \begin_inset Flex Code
29288 status collapsed
29289
29290 \begin_layout Plain Layout
29291 $Rev:
29292  59 $
29293 \end_layout
29294
29295 \end_inset
29296
29297 ) after each update and commit.
29298  There are more problems with this approach.
29299  Firstly,
29300  the '$' character is used in \SpecialChar TeX
29301  world for math equations,
29302  so any occurence of math formula 
29303 \begin_inset Formula $Rev$
29304 \end_inset
29305
29306  become 
29307 \begin_inset Formula $Rev:59$
29308 \end_inset
29309
29310  in your \SpecialChar LyX
29311  document.
29312  Similarly for other keywords like Id,
29313  Date,
29314  Author,
29315  etc.
29316  Secondly svn output is dependent on your locales,
29317  so its very easy that svn would produce some problematic strings once Date is used.
29318  Thirdly you get the whole 'Rev:
29319  59' string in your document instead of the plain number.
29320  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
29321  to support it directly.
29322 \end_layout
29323
29324 \begin_layout Subsection
29325 SVN and Windows Environment
29326 \end_layout
29327
29328 \begin_layout Quote
29329 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
29330  they would be well advised to use TortoiseSVN.
29331  —
29332 P.
29333  A.
29334  Rubin
29335 \end_layout
29336
29337 \begin_layout Subsubsection
29338 Preparation
29339 \end_layout
29340
29341 \begin_layout Standard
29342 In addition to installing \SpecialChar LyX
29343 ,
29344  and having access to a Subversion repository,
29345  the user will need to install the Subversion client program.
29346  A Windows installer for the client program is available from 
29347 \begin_inset CommandInset href
29348 LatexCommand href
29349 name "CollabNet"
29350 target "http://www.collab.net/nonav/downloads/subversion/"
29351 literal "false"
29352
29353 \end_inset
29354
29355 .
29356  The user may also want to install 
29357 \begin_inset CommandInset href
29358 LatexCommand href
29359 name "TortoiseSVN"
29360 target "http://tortoisesvn.tigris.org/"
29361 literal "false"
29362
29363 \end_inset
29364
29365 ,
29366  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
29367  Operations done outside \SpecialChar LyX
29368  will typically be more convenient using the Explorer context menu.
29369  Note that TortoiseSVN is not a replacement for the client program,
29370  which is what \SpecialChar LyX
29371  itself will use.
29372 \end_layout
29373
29374 \begin_layout Subsubsection
29375 Bringing a document under Subversion control
29376 \end_layout
29377
29378 \begin_layout Standard
29379 Before a \SpecialChar LyX
29380  document can be brought under version control in Subversion,
29381  its parent directory needs to be under version control.
29382  If the document is being added to a project already in the repository,
29383  this is accomplished by checking the project out to the directory where the new document will be placed.
29384  If the project itself is not yet under version control (for instance,
29385  if this document starts a new project),
29386  the directory must be imported into the repository.
29387  This is done outside \SpecialChar LyX
29388 .
29389  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
29390  or alternatively can be done using the command line client at a DOS prompt.
29391  The procedure for importing the project using TortoiseSVN is described below,
29392  assuming an existing repository and a new project being started in 
29393 \family typewriter
29394 C:
29395 \backslash
29396 new project
29397 \family default
29398 .
29399  For information on using the Subversion client program,
29400  run 
29401 \family typewriter
29402 svn --help 
29403 \family default
29404 in a DOS shell.
29405 \end_layout
29406
29407 \begin_layout Enumerate
29408 Locate 
29409 \family typewriter
29410 C:
29411 \backslash
29412 new project 
29413 \family default
29414 in Windows Explorer,
29415  right click it,
29416  and select 
29417 \family sans
29418 TortoiseSVN\SpecialChar menuseparator
29419 Repo-browser
29420 \family default
29421 .
29422  If necessary,
29423  adjust the URL for the repository,
29424  then click OK.
29425 \end_layout
29426
29427 \begin_layout Enumerate
29428 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
29429 \family sans
29430 Create folder
29431 \family default
29432  Supply a name for the project folder and click OK.
29433  Add a message for the log file if desired,
29434  then click OK again.
29435  The new project folder should appear in the repository.
29436  Finally,
29437  click OK again to exit the repository browser.
29438 \end_layout
29439
29440 \begin_layout Enumerate
29441 Once again right click 
29442 \family typewriter
29443 C:
29444 \backslash
29445 new project
29446 \family default
29447 ,
29448  this time selecting SVN Checkout\SpecialChar ldots
29449  Select the URL of the project folder you just created in the repository,
29450  and set the checkout directory to 
29451 \family typewriter
29452 C:
29453 \backslash
29454 new project.
29455
29456 \family default
29457  Click OK.
29458  You will be warned about a non-empty folder;
29459  click OK to proceed.
29460  You should now have a 
29461 \family typewriter
29462 .svn
29463 \family default
29464  directory under 
29465 \family typewriter
29466 C:
29467 \backslash
29468 new project.
29469 \end_layout
29470
29471 \begin_layout Enumerate
29472 Create or open your document in \SpecialChar LyX
29473  and click 
29474 \family sans
29475 File\SpecialChar menuseparator
29476 Version
29477 \begin_inset space ~
29478 \end_inset
29479
29480 Control\SpecialChar menuseparator
29481 Register.
29482  
29483 \family default
29484 Add a log message and click OK to commit the document to version control.
29485 \end_layout
29486
29487 \begin_layout Standard
29488 From this point onward,
29489  you should have full functionality in the 
29490 \family sans
29491 File\SpecialChar menuseparator
29492 Version
29493 \begin_inset space ~
29494 \end_inset
29495
29496 Control
29497 \family default
29498  menu.
29499  You also have the option of checking the document in and out,
29500  viewing its history,
29501  etc.
29502  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
29503 \end_layout
29504
29505 \begin_layout Subsubsection
29506 SSH tunnel used with SVN under Windows
29507 \end_layout
29508
29509 \begin_layout Standard
29510 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
29511  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,
29512  also be prepared for a great deal of frustration\SpecialChar ldots
29513
29514 \end_layout
29515
29516 \begin_layout Enumerate
29517 Get an svn client for windows,
29518  as described in the previous sections.
29519  When it is a fresh install run some svn command (e.g.
29520  
29521 \begin_inset Flex Code
29522 status collapsed
29523
29524 \begin_layout Plain Layout
29525 svn --version
29526 \end_layout
29527
29528 \end_inset
29529
29530 ) to create config files,
29531  which you will need to change later on.
29532 \end_layout
29533
29534 \begin_layout Enumerate
29535 Choose an ssh client for Windows.
29536  There are several possibilities,
29537  we will use the one from Putty tools
29538 \begin_inset Foot
29539 status collapsed
29540
29541 \begin_layout Plain Layout
29542 \begin_inset Flex URL
29543 status collapsed
29544
29545 \begin_layout Plain Layout
29546
29547 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
29548 \end_layout
29549
29550 \end_inset
29551
29552
29553 \end_layout
29554
29555 \end_inset
29556
29557 .
29558  You will need to set the connection up so that the client doesn't ask for any password from you.
29559  To keep things easy we will use only keys without any additional password protection etc.
29560 \end_layout
29561
29562 \begin_deeper
29563 \begin_layout Enumerate
29564 Generate keys by 
29565 \begin_inset Flex Code
29566 status collapsed
29567
29568 \begin_layout Plain Layout
29569 puttygen
29570 \end_layout
29571
29572 \end_inset
29573
29574 .
29575  Save your private .ppk key file and put the public one on the server side.
29576  If the SVN server runs on Linux,
29577  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 
29578 \begin_inset Quotes eld
29579 \end_inset
29580
29581
29582 \emph on
29583 Public key for pasting into OpenSSH authorized_keys file
29584 \emph default
29585 :
29586 \begin_inset Quotes erd
29587 \end_inset
29588
29589  edit field into the server's 
29590 \begin_inset Flex Code
29591 status collapsed
29592
29593 \begin_layout Plain Layout
29594 ~/.ssh/authorized_keys
29595 \end_layout
29596
29597 \end_inset
29598
29599  / 
29600 \begin_inset Flex Code
29601 status collapsed
29602
29603 \begin_layout Plain Layout
29604 authorized_keys2
29605 \end_layout
29606
29607 \end_inset
29608
29609  file.
29610 \end_layout
29611
29612 \begin_layout Enumerate
29613 Get the Putty's 
29614 \begin_inset Flex Code
29615 status collapsed
29616
29617 \begin_layout Plain Layout
29618 plink
29619 \end_layout
29620
29621 \end_inset
29622
29623 .
29624  In the SVN config file
29625 \begin_inset Foot
29626 status collapsed
29627
29628 \begin_layout Plain Layout
29629 Exact path depends on Windows version,
29630  usually somewhere around 
29631 \begin_inset Flex Code
29632 status collapsed
29633
29634 \begin_layout Plain Layout
29635 c:
29636 \backslash
29637 Documents and Settings
29638 \backslash
29639 user
29640 \backslash
29641 Application Data
29642 \backslash
29643 Subversion
29644 \backslash
29645 config
29646 \end_layout
29647
29648 \end_inset
29649
29650  / 
29651 \begin_inset Flex Code
29652 status collapsed
29653
29654 \begin_layout Plain Layout
29655 AppData
29656 \backslash
29657 Roaming
29658 \backslash
29659 Subversion
29660 \end_layout
29661
29662 \end_inset
29663
29664 .
29665 \end_layout
29666
29667 \end_inset
29668
29669 ,
29670  section [tunnels],
29671  setup ssh command,
29672  e.g.
29673  
29674 \begin_inset Flex Code
29675 status collapsed
29676
29677 \begin_layout Plain Layout
29678 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
29679 \end_layout
29680
29681 \end_inset
29682
29683 .
29684 \begin_inset Foot
29685 status collapsed
29686
29687 \begin_layout Plain Layout
29688 It will usually take a lot of time to get exact command right and it depends on many things.
29689  For example do not have some remote server saved as a default session in Putty etc.
29690  If things fail,
29691  try to connect via plink without SVN first.
29692 \end_layout
29693
29694 \end_inset
29695
29696
29697 \end_layout
29698
29699 \end_deeper
29700 \begin_layout Enumerate
29701 Checkout the SVN archive,
29702  e.
29703 \begin_inset space \thinspace{}
29704 \end_inset
29705
29706 g.
29707 \begin_inset Newline newline
29708 \end_inset
29709
29710
29711 \begin_inset Flex Code
29712 status collapsed
29713
29714 \begin_layout Plain Layout
29715 svn co svn+ssh://user@server/repository_path
29716 \end_layout
29717
29718 \end_inset
29719
29720 .
29721 \end_layout
29722
29723 \begin_layout Subsubsection
29724 End-of-Line Conversions
29725 \end_layout
29726
29727 \begin_layout Standard
29728 When the collaborators are mixing Linux and Windows environments,
29729  \SpecialChar LyX
29730  will use different line endings inside the .lyx files.
29731  This is not a problem as far as \SpecialChar LyX
29732  functionality is concerned,
29733  but the commit diffs will be huge and merge-conflicts prone.
29734  Fortunately SVN itself knows
29735 \begin_inset Foot
29736 status collapsed
29737
29738 \begin_layout Plain Layout
29739 \begin_inset Flex URL
29740 status collapsed
29741
29742 \begin_layout Plain Layout
29743
29744 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
29745 \end_layout
29746
29747 \end_inset
29748
29749
29750 \end_layout
29751
29752 \end_inset
29753
29754  how to deal with CR/LF problems when switching .lyx files to the 
29755 \begin_inset Flex Code
29756 status collapsed
29757
29758 \begin_layout Plain Layout
29759 native
29760 \end_layout
29761
29762 \end_inset
29763
29764  mode.
29765 \begin_inset Foot
29766 status collapsed
29767
29768 \begin_layout Plain Layout
29769 For the lazy guys:
29770  
29771 \begin_inset Flex Code
29772 status collapsed
29773
29774 \begin_layout Plain Layout
29775 svn propset svn:eol-style native FILE_NAME
29776 \end_layout
29777
29778 \end_inset
29779
29780
29781 \end_layout
29782
29783 \end_inset
29784
29785
29786 \end_layout
29787
29788 \begin_layout Subsection
29789 GIT commands in \SpecialChar LyX
29790
29791 \end_layout
29792
29793 \begin_layout Standard
29794 A minimal subset of GIT commands is now supported by \SpecialChar LyX
29795 .
29796  You can find the commands in the 
29797 \family sans
29798 File\SpecialChar menuseparator
29799 Version
29800 \begin_inset space ~
29801 \end_inset
29802
29803 Control
29804 \family default
29805  submenu.
29806  Please note that if you use password protected access to repository via ssh,
29807  you will be asked in terminal window.
29808  \SpecialChar LyX
29809  was tested against GIT 1.7/2.30.
29810 \begin_inset Foot
29811 status collapsed
29812
29813 \begin_layout Plain Layout
29814 Windows users please note that you need to ensure that git is on the path.
29815  This can be set from within \SpecialChar LyX
29816  at 
29817 \family sans
29818 Tools\SpecialChar menuseparator
29819 Preferences\SpecialChar menuseparator
29820 Paths\SpecialChar menuseparator
29821 PATH prefix
29822 \family default
29823 .
29824 \end_layout
29825
29826 \end_inset
29827
29828
29829 \end_layout
29830
29831 \begin_layout Standard
29832 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
29833  With traditional version control systems there is one central server which hosts the repository.
29834  Users commit their changes to the server,
29835  and get updates made by other users from it.
29836  With GIT,
29837  users commit to a local repository.
29838  The local repository can be synchronized with one or more remote repositories using the 
29839 \begin_inset Flex Code
29840 status collapsed
29841
29842 \begin_layout Plain Layout
29843 pull
29844 \end_layout
29845
29846 \end_inset
29847
29848  and 
29849 \begin_inset Flex Code
29850 status collapsed
29851
29852 \begin_layout Plain Layout
29853 push
29854 \end_layout
29855
29856 \end_inset
29857
29858  GIT commands.
29859  \SpecialChar LyX
29860  does not interact in any way with remote GIT repositories.
29861  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
29862  If you use remote GIT repositories you need to do the 
29863 \begin_inset Flex Code
29864 status collapsed
29865
29866 \begin_layout Plain Layout
29867 pull
29868 \end_layout
29869
29870 \end_inset
29871
29872  and 
29873 \begin_inset Flex Code
29874 status collapsed
29875
29876 \begin_layout Plain Layout
29877 push
29878 \end_layout
29879
29880 \end_inset
29881
29882  operations with your favourite GIT client.
29883 \end_layout
29884
29885 \begin_layout Subsubsection
29886
29887 \family sans
29888 Register
29889 \end_layout
29890
29891 \begin_layout Standard
29892 If your document is not under revision control,
29893  this is the only item shown in the menu.
29894  And if it is under revision control,
29895  the 
29896 \family sans
29897 Register
29898 \family default
29899  item is not visible.
29900 \end_layout
29901
29902 \begin_layout Standard
29903 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
29904 \family typewriter
29905 .git/index
29906 \family default
29907  file exists
29908 \begin_inset Foot
29909 status open
29910
29911 \begin_layout Plain Layout
29912 For that both 
29913 \family typewriter
29914 git init
29915 \family default
29916  *and* initial repository commit (or at least 
29917 \family typewriter
29918 git add
29919 \family default
29920 ) needs to be manually done.
29921 \end_layout
29922
29923 \end_inset
29924
29925 ).
29926  This means you have to checkout the archive by yourself.
29927 \end_layout
29928
29929 \begin_layout Standard
29930 Then you are asked interactively to supply an initial description of the document.
29931  Don't forget that registered file is not yet committed.
29932 \end_layout
29933
29934 \begin_layout Standard
29935 GIT command that is run:
29936  
29937 \family typewriter
29938 git add 
29939 \begin_inset Quotes qld
29940 \end_inset
29941
29942 <file-name>
29943 \begin_inset Quotes qld
29944 \end_inset
29945
29946
29947 \end_layout
29948
29949 \begin_layout Standard
29950 Read 
29951 \family typewriter
29952 man git
29953 \family default
29954  to understand the switches.
29955 \end_layout
29956
29957 \begin_layout Subsubsection
29958
29959 \family sans
29960 Check In Changes
29961 \end_layout
29962
29963 \begin_layout Standard
29964 When you are finished editing a file,
29965  you commit your changes.
29966  When you do this,
29967  you are asked for a description of the changes.
29968  After that changes are committed.
29969 \end_layout
29970
29971 \begin_layout Standard
29972 GIT command:
29973  
29974 \family typewriter
29975 git commit -q -m"<description>" <file-name>
29976 \end_layout
29977
29978 \begin_layout Subsubsection
29979
29980 \family sans
29981 Revert To Repository Version
29982 \end_layout
29983
29984 \begin_layout Standard
29985 This will discard all changes made to the document since the last check in.
29986  You get a warning before changes are discarded.
29987 \end_layout
29988
29989 \begin_layout Standard
29990 GIT command:
29991  
29992 \family typewriter
29993 git checkout -q 
29994 \begin_inset Quotes qld
29995 \end_inset
29996
29997 <file-name>
29998 \begin_inset Quotes qld
29999 \end_inset
30000
30001
30002 \end_layout
30003
30004 \begin_layout Subsubsection
30005
30006 \family sans
30007 Rename
30008 \end_layout
30009
30010 \begin_layout Standard
30011 This will rename the current document including the version history.
30012  It requires a clean document without any changes since the last checkin.
30013  You are asked for a file name and a description of the rename operation.
30014  After that the document is renamed,
30015  both locally and in the repository.
30016  If the parent directories of the new and old file names differ,
30017  all relative paths of included files are adjusted (like in 
30018 \family sans
30019 File\SpecialChar menuseparator
30020 Save As
30021 \family default
30022 \SpecialChar ldots
30023 ).
30024  Finally,
30025  the document is reloaded using the new name.
30026 \end_layout
30027
30028 \begin_layout Labeling
30029 \labelwidthstring 00.00.0000
30030 GIT
30031 \begin_inset space ~
30032 \end_inset
30033
30034 commands:
30035  
30036 \begin_inset space ~
30037 \end_inset
30038
30039
30040 \begin_inset Newline newline
30041 \end_inset
30042
30043
30044 \begin_inset Flex Code
30045 status collapsed
30046
30047 \begin_layout Plain Layout
30048 git mv 
30049 \family typewriter
30050
30051 \begin_inset Quotes qld
30052 \end_inset
30053
30054 <file-name>
30055 \begin_inset Quotes qld
30056 \end_inset
30057
30058  
30059 \begin_inset Quotes qld
30060 \end_inset
30061
30062 <new-file-name>
30063 \begin_inset Quotes qld
30064 \end_inset
30065
30066
30067 \end_layout
30068
30069 \end_inset
30070
30071
30072 \begin_inset Newline newline
30073 \end_inset
30074
30075
30076 \begin_inset Flex Code
30077 status collapsed
30078
30079 \begin_layout Plain Layout
30080 git commit
30081 \end_layout
30082
30083 \end_inset
30084
30085
30086 \end_layout
30087
30088 \begin_layout Subsubsection
30089
30090 \family sans
30091 Show History
30092 \end_layout
30093
30094 \begin_layout Standard
30095 This shows the complete history of the GIT document.
30096  The output of 
30097 \family typewriter
30098 git log 
30099 \begin_inset Quotes qld
30100 \end_inset
30101
30102 <file-name>
30103 \begin_inset Quotes qld
30104 \end_inset
30105
30106
30107 \family default
30108  is shown in a browser.
30109 \end_layout
30110
30111 \begin_layout Subsubsection
30112 Version Info
30113 \end_layout
30114
30115 \begin_layout Standard
30116 \SpecialChar LyX
30117  supports GIT hash number of the last commit to the file,
30118  its abbreviated form,
30119  author name,
30120  date and time of last commit.
30121  All those are extracted from 
30122 \family typewriter
30123 git log -n 1 --pretty=format:%H%n%h%n%an%n%ai
30124 \family default
30125 .
30126  Tree version information is obtained via 
30127 \family typewriter
30128 git describe --abbrev --dirty --long
30129 \family default
30130 .
30131  See 
30132 \begin_inset CommandInset ref
30133 LatexCommand ref
30134 reference "subsec:VCS-Revision-Information"
30135 nolink "false"
30136
30137 \end_inset
30138
30139  for other details.
30140 \end_layout
30141
30142 \begin_layout Subsection
30143 Further tuning
30144 \end_layout
30145
30146 \begin_layout Standard
30147 With the recent addition of the 
30148 \begin_inset Flex Code
30149 status collapsed
30150
30151 \begin_layout Plain Layout
30152 vc-command
30153 \end_layout
30154
30155 \end_inset
30156
30157  function \SpecialChar LyX
30158  power users are allowed to create their own commands for revision control.
30159 \end_layout
30160
30161 \begin_layout Standard
30162 As an example you can see how two TortoiseSVN commands could be integrated directly:
30163 \end_layout
30164
30165 \begin_layout Description
30166 Commit:
30167  
30168 \begin_inset Flex Code
30169 status collapsed
30170
30171 \begin_layout Plain Layout
30172 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
30173 \end_layout
30174
30175 \end_inset
30176
30177
30178 \end_layout
30179
30180 \begin_layout Description
30181 Revert:
30182  
30183 \begin_inset Flex Code
30184 status collapsed
30185
30186 \begin_layout Plain Layout
30187 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
30188 \end_layout
30189
30190 \end_inset
30191
30192
30193 \end_layout
30194
30195 \begin_layout Subsection
30196 Version control and Document comparison
30197 \end_layout
30198
30199 \begin_layout Standard
30200 One of the typical uses of version control is to inspect the changes between revisions,
30201  usually by creating 
30202 \begin_inset Flex Code
30203 status collapsed
30204
30205 \begin_layout Plain Layout
30206 diff
30207 \end_layout
30208
30209 \end_inset
30210
30211  dumps.
30212  While this is useful for plain text files,
30213  it is much less useful in the case of \SpecialChar LyX
30214  files,
30215  which have more a complicated structure.
30216  Hence we provide binding to the Document comparison feature.
30217  There are two ways of calling this feature – either by direct call of 
30218 \begin_inset Flex Code
30219 status collapsed
30220
30221 \begin_layout Plain Layout
30222 vc-compare
30223 \end_layout
30224
30225 \end_inset
30226
30227  \SpecialChar LyX
30228  function (for details see \SpecialChar LyX
30229  functions manual) or by the toolbar icon 
30230 \begin_inset Info
30231 type  "icon"
30232 arg   "vc-compare"
30233 \end_inset
30234
30235  or the menu item 
30236 \begin_inset Info
30237 type  "menu"
30238 arg   "vc-compare"
30239 \end_inset
30240
30241 ,
30242  respectively.
30243  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 '
30244 \begin_inset Flex Noun
30245 status collapsed
30246
30247 \begin_layout Plain Layout
30248 0
30249 \end_layout
30250
30251 \end_inset
30252
30253 ' revisions back means comparison of the edited file with last commited revision).
30254  
30255 \end_layout
30256
30257 \begin_layout Standard
30258 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,
30259  numbers always point to the last number in RCS revision number,
30260  i.e.
30261  '35' in '1.2.35'.
30262  We don't currently support GIT addressing of revisions,
30263  one can just compare edited document with its revision X steps backs,
30264  where X is addressed as 
30265 \begin_inset Flex Code
30266 status collapsed
30267
30268 \begin_layout Plain Layout
30269 HEAD~X
30270 \end_layout
30271
30272 \end_inset
30273
30274 .
30275 \end_layout
30276
30277 \begin_layout Section
30278 \begin_inset CommandInset label
30279 LatexCommand label
30280 name "sec:Literate-Programming"
30281
30282 \end_inset
30283
30284 Literate Programming
30285 \end_layout
30286
30287 \begin_layout Standard
30288 Updated by 
30289 \noun on
30290 Kayvan Sylvan 
30291 \noun default
30292 (kayvan@sylvan.com)
30293 \noun on
30294 ,
30295  
30296 \noun default
30297 original documentation written by 
30298 \noun on
30299 Edmar Wienskoski Jr.
30300
30301 \noun default
30302  (edmar-w-jr@technologist.com)
30303 \end_layout
30304
30305 \begin_layout Subsection
30306 Introduction
30307 \end_layout
30308
30309 \begin_layout Standard
30310 The main purpose of this documentation is to show you how to use \SpecialChar LyX
30311  for literate programming,
30312  where it is assumed that you are familiar with this programming technique,
30313  and know what 
30314 \begin_inset Quotes eld
30315 \end_inset
30316
30317 tangling
30318 \begin_inset Quotes erd
30319 \end_inset
30320
30321  and 
30322 \begin_inset Quotes eld
30323 \end_inset
30324
30325 weaving
30326 \begin_inset Quotes erd
30327 \end_inset
30328
30329  means.
30330  If that is not the case,
30331  please follow the web links provided in the following sections.
30332  There is a lot of good documentation out there covering old development history to the latest tools tips.
30333 \end_layout
30334
30335 \begin_layout Standard
30336 It is also assumed that you are familiar with \SpecialChar LyX
30337  itself to a point that you are comfortable changing your \SpecialChar LyX
30338  preferences,
30339  and X resources file.
30340  If that is not the case please refer to other \SpecialChar LyX
30341  documentation to cover your specific needs.
30342 \end_layout
30343
30344 \begin_layout Subsection
30345 Literate Programming
30346 \end_layout
30347
30348 \begin_layout Standard
30349 From the Literate Programming FAQ:
30350  
30351 \end_layout
30352
30353 \begin_layout Quotation
30354 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
30355  In fact,
30356  literate programs should be enjoyable reading,
30357  even inviting!
30358  (Sorry Bob,
30359  I couldn't resist!) In general,
30360  literate programs combine source and documentation in a single file.
30361  Literate programming tools then parse the file to produce either readable documentation or compilable source.
30362  The WEB style of literate programming was created by D.
30363 \begin_inset space \thinspace{}
30364 \end_inset
30365
30366 E.
30367  Knuth during the development of his \SpecialChar TeX
30368  typesetting software.
30369  
30370 \end_layout
30371
30372 \begin_layout Standard
30373 Another excerpt says:
30374 \end_layout
30375
30376 \begin_layout Quotation
30377
30378 \emph on
30379 How is literate programming different from verbose commenting?
30380 \end_layout
30381
30382 \begin_layout Quotation
30383 There are three distinguishing characteristics.
30384  In order of importance,
30385  they are:
30386  
30387 \end_layout
30388
30389 \begin_deeper
30390 \begin_layout Itemize
30391 flexible order of elaboration 
30392 \end_layout
30393
30394 \begin_layout Itemize
30395 automatic support for browsing 
30396 \end_layout
30397
30398 \begin_layout Itemize
30399 typeset documentation,
30400  especially diagrams and mathematics 
30401 \end_layout
30402
30403 \end_deeper
30404 \begin_layout Standard
30405 Now that I sparked your curiosity,
30406  take a look in the references.
30407 \end_layout
30408
30409 \begin_layout Subsubsection
30410 References
30411 \end_layout
30412
30413 \begin_layout Standard
30414 The complete Literate Programming FAQ can be found at:
30415 \end_layout
30416
30417 \begin_layout Quote
30418 Literate Programming FAQ 
30419 \begin_inset Flex URL
30420 status open
30421
30422 \begin_layout Plain Layout
30423
30424 http://www.literateprogramming.com/lpfaq.pdf
30425 \end_layout
30426
30427 \end_inset
30428
30429
30430 \end_layout
30431
30432 \begin_layout Standard
30433 The FAQ lists 23 (twenty three!) different literate programming tools.
30434  Where some are specialized or 
30435 \begin_inset Quotes eld
30436 \end_inset
30437
30438 tailored
30439 \begin_inset Quotes erd
30440 \end_inset
30441
30442  for particular programming languages,
30443  while other have general scope.
30444  I selected 
30445 \noun on
30446 Noweb
30447 \noun default
30448  for my own use for several reasons:
30449 \end_layout
30450
30451 \begin_layout Itemize
30452 It can generate the documentation either in \SpecialChar LaTeX
30453  or HTML.
30454 \end_layout
30455
30456 \begin_layout Itemize
30457 It has a open architecture,
30458  i.
30459 \begin_inset space \thinspace{}
30460 \end_inset
30461
30462 e.
30463 \begin_inset space \space{}
30464 \end_inset
30465
30466 it is easy to plug in new filters
30467 \begin_inset Foot
30468 status collapsed
30469
30470 \begin_layout Plain Layout
30471
30472 \emph on
30473 Filters 
30474 \emph default
30475 are programs that read a given data stream and output a manipulated data stream.
30476  That way,
30477  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
30478  code.
30479 \end_layout
30480
30481 \end_inset
30482
30483  and to perform special processing that you may need.
30484  
30485 \end_layout
30486
30487 \begin_layout Itemize
30488 There is a good selection of filters available already (the HTML is one of them).
30489 \end_layout
30490
30491 \begin_layout Itemize
30492 It is free.
30493 \end_layout
30494
30495 \begin_layout Standard
30496 The Noweb web page can be found at:
30497  
30498 \end_layout
30499
30500 \begin_layout Quote
30501 Noweb home page 
30502 \begin_inset Flex URL
30503 status collapsed
30504
30505 \begin_layout Plain Layout
30506
30507 https://www.cs.tufts.edu/~nr/noweb/
30508 \end_layout
30509
30510 \end_inset
30511
30512
30513 \end_layout
30514
30515 \begin_layout Standard
30516 Starting from there you can reach many other interesting links and even some literate program examples.
30517 \end_layout
30518
30519 \begin_layout Subsection
30520 \SpecialChar LyX
30521  and Literate Programming with Noweb
30522 \end_layout
30523
30524 \begin_layout Standard
30525 The \SpecialChar LyX
30526  support for Literate Programming is provided by using the generic \SpecialChar LyX
30527  converters mechanism.
30528  This support is provided in a 
30529 \begin_inset Quotes eld
30530 \end_inset
30531
30532 Noweb independent
30533 \begin_inset Quotes erd
30534 \end_inset
30535
30536  way,
30537  i.
30538 \begin_inset space \thinspace{}
30539 \end_inset
30540
30541 e.
30542 \begin_inset space \space{}
30543 \end_inset
30544
30545 you will be able to use this new \SpecialChar LyX
30546  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
30547  preferences.
30548 \end_layout
30549
30550 \begin_layout Subsubsection
30551 Generating documents and code (weaving and tangling)
30552 \end_layout
30553
30554 \begin_layout Paragraph
30555 Using the noweb module
30556 \end_layout
30557
30558 \begin_layout Standard
30559 If you have installed Noweb and \SpecialChar LyX
30560  successfully,
30561  whenever you open a new document,
30562  after you have chosen its document class,
30563  use the 
30564 \family sans
30565 Document\SpecialChar menuseparator
30566 Settings
30567 \family default
30568  menu to add the 
30569 \begin_inset Quotes eld
30570 \end_inset
30571
30572 noweb
30573 \begin_inset Quotes erd
30574 \end_inset
30575
30576  module.
30577  If Noweb is correctly installed,
30578  when you click on the 
30579 \begin_inset Quotes eld
30580 \end_inset
30581
30582 Modules
30583 \begin_inset Quotes erd
30584 \end_inset
30585
30586  link,
30587  you will see the 
30588 \begin_inset Quotes eld
30589 \end_inset
30590
30591 noweb
30592 \begin_inset Quotes erd
30593 \end_inset
30594
30595  module in the available list and you can add it to your document.
30596 \end_layout
30597
30598 \begin_layout Paragraph
30599 Typing code in
30600 \end_layout
30601
30602 \begin_layout Standard
30603 \SpecialChar LyX
30604  enables you to write code with a custom inset named 
30605 \begin_inset Flex Noun
30606 status collapsed
30607
30608 \begin_layout Plain Layout
30609 Chunk
30610 \end_layout
30611
30612 \end_inset
30613
30614 .
30615  Noweb delimits chunks like this:
30616 \end_layout
30617
30618 \begin_layout LyX-Code
30619 <<My code>>=
30620 \end_layout
30621
30622 \begin_layout LyX-Code
30623   code
30624 \end_layout
30625
30626 \begin_layout LyX-Code
30627   more code
30628 \end_layout
30629
30630 \begin_layout LyX-Code
30631   even more code
30632 \end_layout
30633
30634 \begin_layout LyX-Code
30635   @
30636 \end_layout
30637
30638 \begin_layout Standard
30639 The problem is that whatever is written in between the << and the 
30640 \family typewriter
30641 @
30642 \family default
30643  must be taken literally,
30644  i.
30645 \begin_inset space \thinspace{}
30646 \end_inset
30647
30648 e.
30649 \begin_inset space \space{}
30650 \end_inset
30651
30652 \SpecialChar LyX
30653  should be prevented from making any special interpretation of what has been written.
30654  This is also handled by 
30655 \begin_inset Flex Noun
30656 status collapsed
30657
30658 \begin_layout Plain Layout
30659 Chunk
30660 \end_layout
30661
30662 \end_inset
30663
30664 ,
30665  that works like a normal text inset but has a free spacing capability.
30666 \end_layout
30667
30668 \begin_layout Standard
30669 As a special note,
30670  you can also use the 
30671 \begin_inset Quotes eld
30672 \end_inset
30673
30674 %def
30675 \begin_inset Quotes erd
30676 \end_inset
30677
30678  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
30679 \end_layout
30680
30681 \begin_layout LyX-Code
30682 <<My chunk>>=
30683 \end_layout
30684
30685 \begin_layout LyX-Code
30686 def some_function(args):
30687 \end_layout
30688
30689 \begin_layout LyX-Code
30690    "This is the doc string for this function."
30691 \end_layout
30692
30693 \begin_layout LyX-Code
30694    print "My args:
30695  ",
30696  args
30697 \end_layout
30698
30699 \begin_layout LyX-Code
30700 @ %def some_function
30701 \end_layout
30702
30703 \begin_layout Standard
30704 For an example of this usage and the resulting cross-reference output,
30705  look at the Literate python program in 
30706 \emph on
30707 LIBDIR/examples/listerrors.lyx
30708 \emph default
30709  which should make this all clear.
30710 \end_layout
30711
30712 \begin_layout Paragraph
30713 Generating the documentation
30714 \end_layout
30715
30716 \begin_layout Standard
30717 At this point you already have a new document file with a proper document class,
30718  and with some code and text on it.
30719  How do I print it?
30720  The answer is simple,
30721  you select 
30722 \family sans
30723 View\SpecialChar menuseparator
30724 DVI,
30725
30726 \family default
30727  etc.
30728  Just like you would do for a plain document.
30729  No special procedure is required.
30730 \end_layout
30731
30732 \begin_layout Standard
30733 To help orientate you,
30734  I will now explain what happens inside \SpecialChar LyX
30735 :
30736 \end_layout
30737
30738 \begin_layout Enumerate
30739 When the 
30740 \family sans
30741 Update\SpecialChar menuseparator
30742 DVI
30743 \family default
30744  menu option is chosen,
30745  a \SpecialChar LaTeX
30746  file is generated.
30747  
30748 \end_layout
30749
30750 \begin_deeper
30751 \begin_layout Standard
30752 If the document is of any literate class the generated file will be named with an extension name defined by the 
30753 \begin_inset Quotes eld
30754 \end_inset
30755
30756 literate
30757 \begin_inset Quotes erd
30758 \end_inset
30759
30760  format (defined in the Preferences panel),
30761  otherwise the file will have the usual 
30762 \family typewriter
30763 .tex
30764 \family default
30765  extension.
30766 \end_layout
30767
30768 \end_deeper
30769 \begin_layout Enumerate
30770 Note that the only difference so far is in the name of the file,
30771  no special processing is required by \SpecialChar LyX
30772 .
30773  Given that you formatted the code using the 
30774 \begin_inset Flex Noun
30775 status collapsed
30776
30777 \begin_layout Plain Layout
30778 Chunk
30779 \end_layout
30780
30781 \end_inset
30782
30783  inset that,
30784  by itself,
30785  takes care of the business.
30786 \end_layout
30787
30788 \begin_layout Enumerate
30789 If the document is of any literate class \SpecialChar LyX
30790  will then use the internal \SpecialChar LyX
30791  to Noweb converter,
30792  followed by the Noweb to \SpecialChar LaTeX
30793  converter
30794 \begin_inset Foot
30795 status collapsed
30796
30797 \begin_layout Plain Layout
30798 The converters are defined in the 
30799 \family sans
30800 Tools\SpecialChar menuseparator
30801 Preferences
30802 \family default
30803  panel,
30804  under the 
30805 \begin_inset Quotes eld
30806 \end_inset
30807
30808 Conversion
30809 \begin_inset Quotes erd
30810 \end_inset
30811
30812  tab.
30813  See section 
30814 \emph on
30815 Converters
30816 \emph default
30817  of the 
30818 \emph on
30819 Customization
30820 \emph default
30821  manual for general information about converters.
30822 \end_layout
30823
30824 \end_inset
30825
30826  to generate the \SpecialChar LaTeX
30827  file.
30828 \end_layout
30829
30830 \begin_deeper
30831 \begin_layout Standard
30832 Otherwise it will just skip this step.
30833 \end_layout
30834
30835 \end_deeper
30836 \begin_layout Enumerate
30837 Finally,
30838  \SpecialChar LaTeX
30839  is invoked and the regular post processing continues as in a plain document.
30840 \end_layout
30841
30842 \begin_layout Standard
30843 Independence from a particular 
30844 \begin_inset Quotes eld
30845 \end_inset
30846
30847 literate tool
30848 \begin_inset Quotes erd
30849 \end_inset
30850
30851  is easily achieved by changing the commands that are run by the various converters.
30852 \end_layout
30853
30854 \begin_layout Paragraph
30855 Generating the code
30856 \end_layout
30857
30858 \begin_layout Standard
30859 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
30860  a \SpecialChar LaTeX
30861  file is generated just like step 1 above.
30862  Next,
30863  \SpecialChar LyX
30864  invokes the 
30865 \family typewriter
30866 Noweb->Program
30867 \family default
30868  converter.
30869  This converter needs to be defined by the user and is not installed by default,
30870  though the Program format is.
30871  This converter (like any other converter) will have two parts:
30872 \end_layout
30873
30874 \begin_layout Enumerate
30875 The converter program itself.
30876  This program performs the conversion from the one format to the other (in this case,
30877  from the Noweb format to the Program pseudo-format).
30878 \end_layout
30879
30880 \begin_layout Enumerate
30881 The error log parser.
30882  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
30883  understands.
30884  This makes it possible for \SpecialChar LyX
30885  to place error boxes in the right places in the file buffer.
30886 \end_layout
30887
30888 \begin_layout Standard
30889 The first part,
30890  the 
30891 \begin_inset Quotes eld
30892 \end_inset
30893
30894 Converter
30895 \begin_inset Quotes erd
30896 \end_inset
30897
30898  setting,
30899  should be set to
30900 \end_layout
30901
30902 \begin_layout LyX-Code
30903
30904 \family typewriter
30905 build-script $$i
30906 \family default
30907  $$r
30908 \end_layout
30909
30910 \begin_layout Standard
30911 This basically means that \SpecialChar LyX
30912  will call 
30913 \begin_inset Quotes eld
30914 \end_inset
30915
30916 build-script
30917 \begin_inset Quotes erd
30918 \end_inset
30919
30920  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
30921  temp directory) and the directory path of the original \SpecialChar LyX
30922  file.
30923  
30924 \end_layout
30925
30926 \begin_layout Standard
30927 This is an implementation of 
30928 \begin_inset Quotes eld
30929 \end_inset
30930
30931 build-script
30932 \begin_inset Quotes erd
30933 \end_inset
30934
30935  that you can place in a directory on your path:
30936 \end_layout
30937
30938 \begin_layout LyX-Code
30939
30940 \family sans
30941 #!/bin/sh
30942 \end_layout
30943
30944 \begin_layout LyX-Code
30945
30946 \family sans
30947 #
30948 \end_layout
30949
30950 \begin_layout LyX-Code
30951
30952 \family sans
30953 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
30954 \end_layout
30955
30956 \begin_layout Standard
30957 The next part of the converter setting is the 
30958 \begin_inset Quotes eld
30959 \end_inset
30960
30961 Flags
30962 \begin_inset Quotes erd
30963 \end_inset
30964
30965  which is to be set to
30966 \end_layout
30967
30968 \begin_layout LyX-Code
30969
30970 \family typewriter
30971 parselog=$$s/scripts/listerrors
30972 \end_layout
30973
30974 \begin_layout Standard
30975 This will run any errors that are generated by the 
30976 \begin_inset Quotes eld
30977 \end_inset
30978
30979 build-script
30980 \begin_inset Quotes erd
30981 \end_inset
30982
30983  process through the 
30984 \begin_inset Quotes eld
30985 \end_inset
30986
30987 listerrors
30988 \begin_inset Quotes erd
30989 \end_inset
30990
30991  program.
30992 \end_layout
30993
30994 \begin_layout Standard
30995 The build will normally take place in \SpecialChar LyX
30996 's temporary directory,
30997  so the files produced by the conversion will be in that directory.
30998  \SpecialChar LyX
30999  will copy out what it regards as the `main' file,
31000  but the 
31001 \family typewriter
31002 Noweb->Program
31003 \family default
31004  conversion may produce several files,
31005  and so most of these would then be deleted when \SpecialChar LyX
31006  was closed.
31007  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.
31008 \end_layout
31009
31010 \begin_layout Paragraph
31011 Build instructions in the document
31012 \end_layout
31013
31014 \begin_layout Standard
31015 The last piece of the integration between \SpecialChar LyX
31016  and noweb is the 
31017 \begin_inset Quotes eld
31018 \end_inset
31019
31020 build-script
31021 \begin_inset Quotes erd
31022 \end_inset
31023
31024  chunk.
31025  Generally,
31026  the instructions for building your program should be embedded in a chunk of its own.
31027  The noweb-specific 
31028 \begin_inset Quotes eld
31029 \end_inset
31030
31031 build-script
31032 \begin_inset Quotes erd
31033 \end_inset
31034
31035  above uses the notangle command to look for this chunk (called 
31036 \begin_inset Quotes eld
31037 \end_inset
31038
31039 build-script
31040 \begin_inset Quotes erd
31041 \end_inset
31042
31043 ) and runs its contents through 
31044 \begin_inset Quotes eld
31045 \end_inset
31046
31047 sh
31048 \begin_inset Quotes erd
31049 \end_inset
31050
31051 .
31052 \end_layout
31053
31054 \begin_layout Standard
31055 Typically,
31056  such a chunk would look something like this:
31057 \end_layout
31058
31059 \begin_layout LyX-Code
31060 <<build-script>>=
31061 \end_layout
31062
31063 \begin_layout LyX-Code
31064 #!/bin/sh
31065 \begin_inset Newline newline
31066 \end_inset
31067
31068 if [ -z "${NOWEB_SOURCE}" ]
31069 \begin_inset Newline newline
31070 \end_inset
31071
31072 then
31073 \end_layout
31074
31075 \begin_layout LyX-Code
31076 NOWEB_SOURCE=myfile.nw
31077 \begin_inset Newline newline
31078 \end_inset
31079
31080 fi
31081 \begin_inset Newline newline
31082 \end_inset
31083
31084 [...
31085  code to extract files ...
31086  use NOWEB_OUTPUT_DIR here ...]
31087 \begin_inset Newline newline
31088 \end_inset
31089
31090 [...
31091  code to compile files ...]
31092 \begin_inset Newline newline
31093 \end_inset
31094
31095 @
31096 \end_layout
31097
31098 \begin_layout Standard
31099 Look in 
31100 \family sans
31101 File\SpecialChar menuseparator
31102 Open Example\SpecialChar menuseparator
31103 Modules\SpecialChar menuseparator
31104 Noweb Listerrors
31105 \family default
31106  or in 
31107 \family sans
31108 File\SpecialChar menuseparator
31109 Open Example\SpecialChar menuseparator
31110 Modules\SpecialChar menuseparator
31111 Noweb2LyX
31112 \family default
31113  which implement versions of the 
31114 \begin_inset Quotes eld
31115 \end_inset
31116
31117 listerrors
31118 \begin_inset Quotes erd
31119 \end_inset
31120
31121  program for some illustrations of how all of these pieces go together 
31122 \emph on
31123 .
31124
31125 \emph default
31126  Interestingly,
31127  these files show off the language-indepence of the \SpecialChar LyX
31128  literate programming support since they are written in Python and Perl respectively.
31129 \end_layout
31130
31131 \begin_layout Subsubsection
31132 Configuring \SpecialChar LyX
31133
31134 \end_layout
31135
31136 \begin_layout Standard
31137 All the Literate Programming support is configured by the 
31138 \family sans
31139 Tools\SpecialChar menuseparator
31140 Preferences
31141 \family default
31142  panel in the 
31143 \begin_inset Quotes eld
31144 \end_inset
31145
31146 File Handling
31147 \begin_inset Quotes erd
31148 \end_inset
31149
31150  tab.
31151  The important parts are:
31152 \end_layout
31153
31154 \begin_layout Description
31155 the
31156 \begin_inset space ~
31157 \end_inset
31158
31159
31160 \begin_inset Quotes eld
31161 \end_inset
31162
31163 NoWeb
31164 \begin_inset Quotes erd
31165 \end_inset
31166
31167
31168 \begin_inset space ~
31169 \end_inset
31170
31171 format Set up via the File Formats tab,
31172  this is where the Noweb-specific pieces are set up.
31173  The 
31174 \family sans
31175 GUI Name
31176 \family default
31177  is set to 
31178 \family typewriter
31179 NoWeb
31180 \family default
31181 ,
31182  the file extension is set to 
31183 \family typewriter
31184 .nw
31185 \family default
31186 .
31187  This tells \SpecialChar LyX
31188  to create a file with a 
31189 \family typewriter
31190 .nw
31191 \family default
31192  extension in the first step of the conversion process.
31193 \end_layout
31194
31195 \begin_layout Description
31196 the
31197 \begin_inset space ~
31198 \end_inset
31199
31200
31201 \family sans
31202 Program
31203 \family default
31204
31205 \begin_inset space ~
31206 \end_inset
31207
31208 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).
31209 \end_layout
31210
31211 \begin_layout Description
31212
31213 \family sans
31214 NoWeb
31215 \family default
31216 ->
31217 \family sans
31218 \SpecialChar LaTeX
31219
31220 \family default
31221  This converter performs the 
31222 \begin_inset Quotes eld
31223 \end_inset
31224
31225 weaving
31226 \begin_inset Quotes erd
31227 \end_inset
31228
31229  of the literate document.
31230  For Noweb,
31231  it is set to 
31232 \begin_inset Quotes eld
31233 \end_inset
31234
31235
31236 \family typewriter
31237 noweave -delay -index $$i > $$o
31238 \family default
31239
31240 \begin_inset Quotes erd
31241 \end_inset
31242
31243
31244 \end_layout
31245
31246 \begin_layout Description
31247
31248 \family sans
31249 NoWeb
31250 \family default
31251 ->
31252 \family sans
31253 Program
31254 \family default
31255  This performs the 
31256 \begin_inset Quotes eld
31257 \end_inset
31258
31259 tangling step
31260 \begin_inset Quotes erd
31261 \end_inset
31262
31263 .
31264  As stated above,
31265  the Converter is set to 
31266 \begin_inset Quotes eld
31267 \end_inset
31268
31269
31270 \family typewriter
31271 build-script $$i
31272 \family default
31273  $$r
31274 \begin_inset Quotes erd
31275 \end_inset
31276
31277 ,
31278  with Flags set to
31279 \begin_inset Newline newline
31280 \end_inset
31281
31282
31283 \begin_inset Quotes eld
31284 \end_inset
31285
31286
31287 \family typewriter
31288 parselog=$$s/scripts/listerrors
31289 \family default
31290
31291 \begin_inset Quotes erd
31292 \end_inset
31293
31294 .
31295 \end_layout
31296
31297 \begin_layout Subsubsection
31298 Debug extensions
31299 \end_layout
31300
31301 \begin_layout Standard
31302 There is also a new function implemented in the \SpecialChar LyX
31303  server,
31304  the 
31305 \begin_inset Quotes eld
31306 \end_inset
31307
31308 server-goto-file-row" function,
31309  to be used with ddd/gdb or other debugger.
31310  
31311 \end_layout
31312
31313 \begin_layout Standard
31314 When debugging code with ddd/gdb,
31315  it is possible to invoke a text editor at the current execution position with a single key stroke.
31316  The default ddd configuration for that is shift-ctrl-V.
31317  It happens that you can define the editor command line invocation in ddd by accessing the 
31318 \family sans
31319 Edit\SpecialChar menuseparator
31320 Preferences\SpecialChar menuseparator
31321 Helpers
31322 \family default
31323  dialog and changing the "Edit Sources" entry.
31324 \end_layout
31325
31326 \begin_layout Standard
31327 I take advantage of the newly created \SpecialChar LyX
31328  server function and this ddd feature,
31329  and set 
31330 \begin_inset Quotes eld
31331 \end_inset
31332
31333 Edit Sources
31334 \begin_inset Quotes erd
31335 \end_inset
31336
31337  to:
31338 \end_layout
31339
31340 \begin_layout LyX-Code
31341 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
31342 \end_layout
31343
31344 \begin_layout Standard
31345 With this,
31346  whenever you are using ddd and find a point in the program that you want to edit,
31347  you just press shift-ctrl-V (in the ddd window),
31348  and ddd will forward this information to \SpecialChar LyX
31349  through the \SpecialChar LyX
31350  server and then the \SpecialChar LyX
31351  window will show the same file with the cursor at the same position ddd was pointing to.
31352  No more guessing or long scrolling to locate a point in the program back from debugging !
31353 \end_layout
31354
31355 \begin_layout Standard
31356 Note however that you must enable the \SpecialChar LyX
31357  server to get this feature working (it is disabled by default).
31358  Sec.
31359 \begin_inset space ~
31360 \end_inset
31361
31362
31363 \begin_inset CommandInset ref
31364 LatexCommand ref
31365 reference "sec:Starting-the-Server"
31366 nolink "false"
31367
31368 \end_inset
31369
31370  explains how to do that.
31371 \end_layout
31372
31373 \begin_layout Subsubsection
31374 Toolbar extensions
31375 \end_layout
31376
31377 \begin_layout Standard
31378 There are six new buttons that can be added to your \SpecialChar LyX
31379  toolbar.
31380  Four of these buttons are short cuts to layout styles:
31381  
31382 \family sans
31383 Standard
31384 \family default
31385 ,
31386  
31387 \family sans
31388 Section
31389 \family default
31390 ,
31391  
31392 \family sans
31393 \SpecialChar LaTeX
31394
31395 \family default
31396 ,
31397  and 
31398 \family sans
31399 \SpecialChar LyX
31400 -Code
31401 \family default
31402 ,
31403  one for the custom inset 
31404 \family sans
31405 Chunk
31406 \family default
31407 .
31408  The last one is a short cut to the 
31409 \begin_inset Quotes eld
31410 \end_inset
31411
31412 Build Program
31413 \begin_inset Quotes erd
31414 \end_inset
31415
31416  File menu entry.
31417  
31418 \end_layout
31419
31420 \begin_layout Standard
31421 \SpecialChar LyX
31422  has a range of buttons that are available for tool bar customization.
31423  In my toolbar I like to combine the six short cuts above with two more:
31424  One for 
31425 \family sans
31426 Document
31427 \family default
31428 \SpecialChar menuseparator
31429
31430 \family sans
31431 Update
31432 \family default
31433 \SpecialChar menuseparator
31434
31435 \family sans
31436 DVI
31437 \family default
31438  and the other for 
31439 \family sans
31440 Document\SpecialChar menuseparator
31441 View\SpecialChar menuseparator
31442 DVI
31443 \family default
31444  File menu entries.
31445  Here is how it looks like:
31446 \end_layout
31447
31448 \begin_layout LyX-Code
31449 Toolbar
31450 \end_layout
31451
31452 \begin_layout LyX-Code
31453   Layouts
31454 \end_layout
31455
31456 \begin_layout LyX-Code
31457   Icon "layout Standard"
31458 \end_layout
31459
31460 \begin_layout LyX-Code
31461   Icon "layout Section"
31462 \end_layout
31463
31464 \begin_layout LyX-Code
31465   Icon "layout \SpecialChar LaTeX
31466 "
31467 \end_layout
31468
31469 \begin_layout LyX-Code
31470   Icon "layout \SpecialChar LyX
31471 -Code"
31472 \end_layout
31473
31474 \begin_layout LyX-Code
31475   Icon "flex.insert Chunk"
31476 \end_layout
31477
31478 \begin_layout LyX-Code
31479   Separator
31480 \end_layout
31481
31482 \begin_layout LyX-Code
31483   Icon "buffer-view"
31484 \end_layout
31485
31486 \begin_layout LyX-Code
31487   Icon "buffer-typeset"
31488 \end_layout
31489
31490 \begin_layout LyX-Code
31491   Icon "build-program"
31492 \end_layout
31493
31494 \begin_layout LyX-Code
31495   Separator
31496 \end_layout
31497
31498 \begin_layout LyX-Code
31499 .
31500 \end_layout
31501
31502 \begin_layout LyX-Code
31503 .
31504 \end_layout
31505
31506 \begin_layout LyX-Code
31507 .
31508 \end_layout
31509
31510 \begin_layout LyX-Code
31511 End
31512 \end_layout
31513
31514 \begin_layout Subsubsection
31515 Colors customization
31516 \end_layout
31517
31518 \begin_layout Standard
31519 There are a number of colors in \SpecialChar LyX
31520  that can be customized in 
31521 \family sans
31522 Preferences
31523 \family default
31524 .
31525  One of the things that bothers people is the \SpecialChar LaTeX
31526  font color.
31527  The default color is red,
31528  since the chunks uses \SpecialChar LaTeX
31529  font,
31530  and there is a lot of chunks in literate documents,
31531  you may get tired of seeing everything in red.
31532  You can change it by going to the tabs 
31533 \family sans
31534 Look&Feel
31535 \family default
31536 ,
31537  
31538 \family sans
31539 Colors.
31540 \end_layout
31541
31542 \begin_layout Standard
31543 The next thing is the visible presence of the newline character in the screen.
31544  You can choose the color of this particular character and make it blend in the background.
31545  I recommend you choosing a color that is close to the background but not equal,
31546  that way you still can see it is there,
31547  but it is not bothering you anymore.
31548 \end_layout
31549
31550 \begin_layout Subsection
31551 \SpecialChar LyX
31552  and knitr/Sweave
31553 \end_layout
31554
31555 \begin_layout Standard
31556 Support for 
31557 \family sans
31558 knitr
31559 \family default
31560  and 
31561 \family sans
31562 Sweave
31563 \family default
31564  is documented in 
31565 \family sans
31566 Help\SpecialChar menuseparator
31567 Specific Manuals\SpecialChar menuseparator
31568 Knitr
31569 \family default
31570  and 
31571 \family sans
31572 File\SpecialChar menuseparator
31573 Open Example\SpecialChar menuseparator
31574 Modules\SpecialChar menuseparator
31575 Rnw (knitr)
31576 \family default
31577  and in 
31578 \family sans
31579 Help\SpecialChar menuseparator
31580 Specific Manuals\SpecialChar menuseparator
31581 Sweave
31582 \family default
31583  and 
31584 \family sans
31585 File\SpecialChar menuseparator
31586 Open Example\SpecialChar menuseparator
31587 Modules\SpecialChar menuseparator
31588 Sweave
31589 \family default
31590 .
31591 \end_layout
31592
31593 \begin_layout Standard
31594 \begin_inset CommandInset index_print
31595 LatexCommand printindex
31596 type "idx"
31597 name "Index"
31598
31599 \end_inset
31600
31601
31602 \end_layout
31603
31604 \end_body
31605 \end_document