]> git.lyx.org Git - wiki-uploads.git/blob - LyX/Manuals/2.4/en/Additional.lyx
Copy 2.4 doc files to wiki-uploads repo
[wiki-uploads.git] / LyX / Manuals / 2.4 / en / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 graphicboxes
40 enumitem
41 hanging
42 initials
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \float_placement class
69 \float_alignment class
70 \paperfontsize 12
71 \spacing single
72 \use_hyperref true
73 \pdf_title "LyX's Additional Features manual"
74 \pdf_author "LyX Team"
75 \pdf_subject "LyX's additional features documentation"
76 \pdf_keywords "LyX, Documentation, Additional"
77 \pdf_bookmarks true
78 \pdf_bookmarksnumbered true
79 \pdf_bookmarksopen false
80 \pdf_bookmarksopenlevel 1
81 \pdf_breaklinks false
82 \pdf_pdfborder false
83 \pdf_colorlinks true
84 \pdf_backref false
85 \pdf_pdfusetitle false
86 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
87 \papersize a4
88 \use_geometry false
89 \use_package amsmath 1
90 \use_package amssymb 1
91 \use_package cancel 1
92 \use_package esint 1
93 \use_package mathdots 1
94 \use_package mathtools 1
95 \use_package mhchem 1
96 \use_package stackrel 1
97 \use_package stmaryrd 1
98 \use_package undertilde 1
99 \cite_engine basic
100 \cite_engine_type default
101 \biblio_style plain
102 \use_bibtopic false
103 \use_indices false
104 \paperorientation portrait
105 \suppress_date false
106 \justification true
107 \use_refstyle 0
108 \use_formatted_ref 0
109 \use_minted 0
110 \use_lineno 0
111 \notefontcolor #0000ff
112 \index Index
113 \shortcut idx
114 \color #008000
115 \end_index
116 \secnumdepth 3
117 \tocdepth 3
118 \paragraph_separation indent
119 \paragraph_indentation default
120 \is_math_indent 1
121 \math_indentation default
122 \math_numbering_side default
123 \quotes_style english
124 \dynamic_quotes 0
125 \papercolumns 1
126 \papersides 2
127 \paperpagestyle headings
128 \tablestyle default
129 \tracking_changes false
130 \output_changes false
131 \change_bars false
132 \postpone_fragile_content false
133 \html_math_output 0
134 \html_css_as_file 0
135 \html_be_strict true
136 \docbook_table_output 0
137 \docbook_mathml_prefix 1
138 \end_header
139
140 \begin_body
141
142 \begin_layout Title
143 Additional \SpecialChar LyX
144  Features
145 \end_layout
146
147 \begin_layout Subtitle
148 Version 2.4.x
149 \end_layout
150
151 \begin_layout Author
152 by the \SpecialChar LyX
153  Team
154 \begin_inset Foot
155 status collapsed
156
157 \begin_layout Plain Layout
158 \noindent
159 Principal maintainer of this file is
160 \noun on
161  Richard Kimberly Heck
162 \noun default
163 .
164  If you have comments or error corrections,
165  please send them to the \SpecialChar LyX
166  Documentation mailing list,
167  
168 \begin_inset Flex Code
169 status collapsed
170
171 \begin_layout Plain Layout
172 <lyx-docs@lists.lyx.org>
173 \end_layout
174
175 \end_inset
176
177 .
178 \end_layout
179
180 \end_inset
181
182
183 \end_layout
184
185 \begin_layout Standard
186 \begin_inset CommandInset toc
187 LatexCommand tableofcontents
188
189 \end_inset
190
191
192 \end_layout
193
194 \begin_layout Chapter
195 Introduction
196 \end_layout
197
198 \begin_layout Standard
199 This manual is essentially Part II of the 
200 \emph on
201 User's Guide\SpecialChar endofsentence
202
203 \emph default
204  The reason for separating the two documents is simple:
205  the 
206 \emph on
207 User's Guide
208 \emph default
209  is already quite lengthy,
210  and it contains information on all of the basic features one needs to know in order to prepare most documents.
211  However,
212  the \SpecialChar LyX
213  Team has worked to make \SpecialChar LyX
214  extensible through various configuration files and external packages.
215  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
216  package,
217  you can create a layout file (or module) for it without having to alter \SpecialChar LyX
218  itself.
219  We've already had contributions of several new features this way,
220  and some of them are documented here.
221  There are also some more `advanced' features,
222  such as how to control the presentation of bibliographies and how to work with multi-part documents,
223  that are not covered in the 
224 \emph on
225 User's Guide
226 \emph default
227  and are discussed here.
228 \end_layout
229
230 \begin_layout Standard
231 This manual also documents some special features,
232  like fax support and version control,
233  which require additional software to work properly.
234  There is also a chapter on \SpecialChar LyX
235 's support for HTML.
236  And lastly,
237  there's a chapter of \SpecialChar LaTeX
238  tools and tips,
239  things you can use to spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
240 .
241  After all,
242  \SpecialChar LyX
243  
244 \emph on
245 is
246 \emph default
247  only WYSIWYM and will only ever interface to some,
248  not all,
249  \SpecialChar LaTeX
250  features.
251 \end_layout
252
253 \begin_layout Standard
254 If you haven't read the 
255 \emph on
256 Introduction
257 \emph default
258  yet,
259  you are definitely in the wrong manual.
260  The 
261 \emph on
262 Introduction
263 \emph default
264  is the first place to go,
265  since it describes the notation and format of all of the manuals.
266  You should also be thoroughly familiar with the 
267 \emph on
268 User's Guide
269 \emph default
270  and all of the basic features of \SpecialChar LyX
271  before attempting to read this one.
272 \end_layout
273
274 \begin_layout Standard
275 Since many of the topics in this manual depend heavily on \SpecialChar LyX
276 's interaction with \SpecialChar LaTeX
277 ,
278  this first chapter covers the inner workings of \SpecialChar LyX
279  and how to direct \SpecialChar LyX
280  to generate exactly the \SpecialChar LaTeX
281  code you want.
282  It is obviously for more seasoned \SpecialChar LyX
283  users.
284 \end_layout
285
286 \begin_layout Chapter
287 \SpecialChar LyX
288  and \SpecialChar LaTeX
289
290 \end_layout
291
292 \begin_layout Section
293 How \SpecialChar LyX
294  Uses \SpecialChar LaTeX
295
296 \end_layout
297
298 \begin_layout Standard
299 This chapter is for both \SpecialChar TeX
300 -nicians and the \SpecialChar LaTeX
301 -curious.
302  In it,
303  we'll explain how \SpecialChar LyX
304  and \SpecialChar LaTeX
305  work together to produce printable output.
306  This is the only place in any of the manuals where we assume you know something about \SpecialChar LaTeX
307 .
308 \end_layout
309
310 \begin_layout Standard
311 At one time,
312  \SpecialChar LyX
313  was called a 
314 \begin_inset Quotes eld
315 \end_inset
316
317 WYSIWYM frontend to \SpecialChar LaTeX
318 ,
319 \begin_inset Quotes erd
320 \end_inset
321
322  but that's no longer true.
323  There are frontends to \SpecialChar LaTeX
324  out there.
325 \begin_inset Foot
326 status collapsed
327
328 \begin_layout Plain Layout
329 Some familar ones are \SpecialChar TeX
330 maker and kile,
331  on Linux,
332  and \SpecialChar TeX
333 shop,
334  OSX.
335  There are also the \SpecialChar LaTeX
336  modes for vi and emacs,
337  of course.
338 \end_layout
339
340 \end_inset
341
342  These are basically text editors with the ability to run \SpecialChar LaTeX
343  and mark any errors in the file you're editing.
344  Although \SpecialChar LyX
345  
346 \emph on
347 is
348 \emph default
349  an editor,
350  and it 
351 \emph on
352 does
353 \emph default
354  run \SpecialChar LaTeX
355 ,
356  and it also indicates errors in the file,
357  it also does much,
358  much more.
359  For one thing,
360  you don't need to know \SpecialChar LaTeX
361  to use \SpecialChar LyX
362  effectively.
363  And \SpecialChar LyX
364  has added its own extensions to \SpecialChar LaTeX
365 .
366  Try the following sometime:
367  select 
368 \family sans
369 Export\SpecialChar menuseparator
370 LaTeX
371 \family default
372  from the 
373 \family sans
374 File
375 \family default
376  menu (or 
377 \family sans
378 View\SpecialChar menuseparator
379 Source
380 \begin_inset space ~
381 \end_inset
382
383 Pane
384 \family default
385 ),
386  then look at the preamble of the resulting 
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 .tex
392 \end_layout
393
394 \end_inset
395
396  file.
397  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
398 .
399  These macros are defined automatically,
400  according to the features you use in the document.
401 \end_layout
402
403 \begin_layout Standard
404 There are several commands that automatically invoke \SpecialChar LaTeX
405 .
406  They are:
407 \end_layout
408
409 \begin_layout Itemize
410
411 \family sans
412 Document\SpecialChar menuseparator
413 View
414 \end_layout
415
416 \begin_layout Itemize
417
418 \family sans
419 Document\SpecialChar menuseparator
420 Update
421 \end_layout
422
423 \begin_layout Standard
424 They will only invoke \SpecialChar LaTeX
425  if the file has changed since the last time \SpecialChar LaTeX
426  was run.
427  
428 \end_layout
429
430 \begin_layout Standard
431 When \SpecialChar LyX
432  runs \SpecialChar LaTeX
433  on the file you're editing,
434  it performs these steps:
435 \end_layout
436
437 \begin_layout Enumerate
438 Convert the document to \SpecialChar LaTeX
439  and save to a file with the extension 
440 \begin_inset Flex Code
441 status collapsed
442
443 \begin_layout Plain Layout
444 .tex
445 \end_layout
446
447 \end_inset
448
449  in place of 
450 \begin_inset Flex Code
451 status collapsed
452
453 \begin_layout Plain Layout
454 .lyx
455 \end_layout
456
457 \end_inset
458
459 .
460 \end_layout
461
462 \begin_layout Enumerate
463 Run \SpecialChar LaTeX
464  on the 
465 \begin_inset Flex Code
466 status collapsed
467
468 \begin_layout Plain Layout
469 .tex
470 \end_layout
471
472 \end_inset
473
474  file (maybe several times),
475  and run any other commands (such as 
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 bibtex
481 \end_layout
482
483 \end_inset
484
485  or 
486 \begin_inset Flex Code
487 status collapsed
488
489 \begin_layout Plain Layout
490 makeindex
491 \end_layout
492
493 \end_inset
494
495 ) needed to compile the \SpecialChar LaTeX
496  file.
497 \end_layout
498
499 \begin_layout Enumerate
500 If there are any errors,
501  show the error log.
502 \end_layout
503
504 \begin_layout Standard
505 If you have run \SpecialChar LaTeX
506  using 
507 \family sans
508 View\SpecialChar menuseparator
509 DVI
510 \family default
511 ,
512  \SpecialChar LyX
513  then runs a DVI viewer to display the DVI-file.
514  If you have used 
515 \family sans
516 View\SpecialChar menuseparator
517 PostScript
518 \family default
519 ,
520  \SpecialChar LyX
521  performs further steps:
522 \end_layout
523
524 \begin_layout Enumerate
525 Run 
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 dvips
531 \end_layout
532
533 \end_inset
534
535  to convert the DVI file to PostScript.
536 \end_layout
537
538 \begin_layout Enumerate
539 Run a PostScript viewer,
540  such as 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 ghostview
546 \end_layout
547
548 \end_inset
549
550 ,
551  to display the PostScript file.
552 \end_layout
553
554 \begin_layout Standard
555 \SpecialChar LyX
556  does similar things when viewing,
557  or exporting,
558  other formats.
559 \end_layout
560
561 \begin_layout Section
562 Translating \SpecialChar LaTeX
563  files into \SpecialChar LyX
564
565 \end_layout
566
567 \begin_layout Standard
568 You can import a \SpecialChar LaTeX
569  file into \SpecialChar LyX
570  by using the 
571 \family sans
572 File\SpecialChar menuseparator
573 Import\SpecialChar menuseparator
574 LaTeX
575 \family default
576  command in \SpecialChar LyX
577 .
578  This will call a program named 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 tex2lyx
584 \end_layout
585
586 \end_inset
587
588  which will create a file 
589 \begin_inset Flex Code
590 status collapsed
591
592 \begin_layout Plain Layout
593 foo.lyx
594 \end_layout
595
596 \end_inset
597
598  from the file 
599 \begin_inset Flex Code
600 status collapsed
601
602 \begin_layout Plain Layout
603 foo.tex
604 \end_layout
605
606 \end_inset
607
608 .
609  \SpecialChar LyX
610  will then open that file.
611 \begin_inset Foot
612 status collapsed
613
614 \begin_layout Plain Layout
615 \begin_inset Flex Code
616 status collapsed
617
618 \begin_layout Plain Layout
619 tex2lyx
620 \end_layout
621
622 \end_inset
623
624  can also be run from the command line,
625  of course.
626 \end_layout
627
628 \end_inset
629
630
631 \end_layout
632
633 \begin_layout Standard
634 \begin_inset Flex Code
635 status collapsed
636
637 \begin_layout Plain Layout
638 tex2lyx
639 \end_layout
640
641 \end_inset
642
643  will translate most legal \SpecialChar LaTeX
644 ,
645  but not everything.
646  It will put things it doesn't understand into \SpecialChar TeX
647  code,
648  so after translating a file with 
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 tex2lyx
654 \end_layout
655
656 \end_inset
657
658 ,
659  you can look for \SpecialChar TeX
660  code and hand-edit it until it looks right.
661 \end_layout
662
663 \begin_layout Standard
664 If you don't know what \SpecialChar TeX
665  code is,
666  read the next section.
667 \end_layout
668
669 \begin_layout Section
670 \begin_inset CommandInset label
671 LatexCommand label
672 name "sec:Inserting-TeX-Code"
673
674 \end_inset
675
676 Inserting \SpecialChar TeX
677  Code into \SpecialChar LyX
678  Documents 
679 \end_layout
680
681 \begin_layout Standard
682 Anything you can do in \SpecialChar LaTeX
683  you can do in \SpecialChar LyX
684 ,
685  for a very simple reason:
686  You can always insert \SpecialChar TeX
687  code into any \SpecialChar LyX
688  document.
689  \SpecialChar LyX
690  cannot,
691  and will never be able to,
692  display every possible \SpecialChar LaTeX
693  construct.
694  If ever you need to insert \SpecialChar LaTeX
695  commands into your \SpecialChar LyX
696  document,
697  you can use the 
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 \SpecialChar TeX
703  Code
704 \end_layout
705
706 \end_inset
707
708  box,
709  which you can insert into your document with 
710 \family sans
711 Insert\SpecialChar menuseparator
712 TeX Code
713 \family default
714  or the keyboard shortcut 
715 \begin_inset Info
716 type  "shortcut"
717 arg   "ert-insert"
718 \end_inset
719
720 .
721 \end_layout
722
723 \begin_layout Standard
724 Here's an example of inserting \SpecialChar LaTeX
725  commands in a \SpecialChar LyX
726  document.
727  The code looks like this:
728 \end_layout
729
730 \begin_layout LyX-Code
731
732 \backslash
733 begin{tabular}{ll}
734 \begin_inset Newline newline
735 \end_inset
736
737
738 \backslash
739 begin{minipage}{5cm}
740 \begin_inset Newline newline
741 \end_inset
742
743 This is an example of a minipage environment.
744  You 
745 \begin_inset Newline newline
746 \end_inset
747
748 can put nearly everything in it,
749  even (non-floating) 
750 \begin_inset Newline newline
751 \end_inset
752
753 figures and tables.
754  
755 \begin_inset Newline newline
756 \end_inset
757
758
759 \backslash
760 end{minipage}
761 \begin_inset Newline newline
762 \end_inset
763
764 &
765 \begin_inset Newline newline
766 \end_inset
767
768
769 \backslash
770 begin{minipage}{5cm}
771 \begin_inset Newline newline
772 \end_inset
773
774
775 \backslash
776 begin{verbatim}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This ...
787  
788 \begin_inset Newline newline
789 \end_inset
790
791
792 \backslash
793 end{minipage}
794 \begin_inset Newline newline
795 \end_inset
796
797
798 \backslash
799 end{verbatim}
800 \begin_inset Newline newline
801 \end_inset
802
803
804 \backslash
805 end{minipage}
806 \begin_inset Newline newline
807 \end_inset
808
809
810 \backslash
811 end{tabular}
812 \end_layout
813
814 \begin_layout LyX-Code
815
816 \end_layout
817
818 \begin_layout Standard
819 The 
820 \begin_inset Flex Code
821 status collapsed
822
823 \begin_layout Plain Layout
824 \SpecialChar TeX
825  Code
826 \end_layout
827
828 \end_inset
829
830  box containing this text is directly after this paragraph.
831  Those of you reading the manual in \SpecialChar LyX
832  will only see the \SpecialChar TeX
833  code inset.
834  Those reading a printed version of the manuals will see the actual results:
835 \begin_inset VSpace bigskip
836 \end_inset
837
838
839 \end_layout
840
841 \begin_layout Standard
842 \begin_inset ERT
843 status open
844
845 \begin_layout Plain Layout
846
847
848 \backslash
849 begin{tabular}{ll}
850 \end_layout
851
852 \begin_layout Plain Layout
853
854
855 \backslash
856 begin{minipage}{5cm}
857 \end_layout
858
859 \begin_layout Plain Layout
860
861 This is an example of a minipage environment.
862  You can put nearly everything in it,
863  even (non-floating) figures and tables.
864  
865 \end_layout
866
867 \begin_layout Plain Layout
868
869
870 \backslash
871 end{minipage}
872 \end_layout
873
874 \begin_layout Plain Layout
875
876 &
877 \end_layout
878
879 \begin_layout Plain Layout
880
881
882 \backslash
883 begin{minipage}{5cm}
884 \end_layout
885
886 \begin_layout Plain Layout
887
888
889 \backslash
890 begin{verbatim}
891 \end_layout
892
893 \begin_layout Plain Layout
894
895
896 \backslash
897 begin{minipage}{5cm}
898 \end_layout
899
900 \begin_layout Plain Layout
901
902 This ...
903  
904 \end_layout
905
906 \begin_layout Plain Layout
907
908
909 \backslash
910 end{minipage}
911 \end_layout
912
913 \begin_layout Plain Layout
914
915
916 \backslash
917 end{verbatim}
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 end{minipage}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 end{tabular}
932 \end_layout
933
934 \end_inset
935
936
937 \begin_inset VSpace bigskip
938 \end_inset
939
940
941 \end_layout
942
943 \begin_layout Standard
944 In addition to using \SpecialChar TeX
945  code,
946  you can also create a separate file containing some complex \SpecialChar LaTeX
947  structure and then use 
948 \family sans
949 Insert\SpecialChar menuseparator
950 Child
951 \begin_inset space ~
952 \end_inset
953
954 Document 
955 \family default
956 to include your file (you should select the type 
957 \begin_inset Flex Code
958 status collapsed
959
960 \begin_layout Plain Layout
961 Input
962 \end_layout
963
964 \end_inset
965
966 ).
967  We recommend that you only do this if you have a 
968 \begin_inset Flex Code
969 status collapsed
970
971 \begin_layout Plain Layout
972 .tex
973 \end_layout
974
975 \end_inset
976
977  file which you 
978 \emph on
979 know
980 \emph default
981  works already.
982  Otherwise,
983  you'll have a big job tracking down \SpecialChar LaTeX
984  errors.
985 \end_layout
986
987 \begin_layout Standard
988 There are a few last points to emphasize:
989 \end_layout
990
991 \begin_layout Itemize
992 \SpecialChar LyX
993  
994 \emph on
995 does not
996 \emph default
997  check if your \SpecialChar LaTeX
998  code is correct.
999 \end_layout
1000
1001 \begin_layout Itemize
1002 Beware of reinventing the wheel.
1003 \end_layout
1004
1005 \begin_layout Standard
1006 On that last point,
1007  \SpecialChar LyX
1008  does have quite a few features tucked into it,
1009  and more are coming.
1010  Be sure to check the manuals to make sure that \SpecialChar LyX
1011  doesn't have such-and-such feature before you decide you have to do it by hand.
1012  Moreover,
1013  there are numerous \SpecialChar LaTeX
1014  packages out there to do all sorts of things,
1015  from labels to envelopes to fancy multipage tables.
1016  Check out 
1017 \begin_inset CommandInset href
1018 LatexCommand href
1019 name "CTAN"
1020 target "https://www.ctan.org/"
1021 literal "false"
1022
1023 \end_inset
1024
1025  for details.
1026 \end_layout
1027
1028 \begin_layout Standard
1029 If you do need to do some wild and fancy things within your document,
1030  be sure to check out a good \SpecialChar LaTeX
1031  book for assistance.
1032  There are a number of them listed in the bibliography of the 
1033 \emph on
1034 User's Guide
1035 \emph default
1036 .
1037 \end_layout
1038
1039 \begin_layout Section
1040 \SpecialChar LyX
1041  and the \SpecialChar LaTeX
1042  Preamble
1043 \end_layout
1044
1045 \begin_layout Subsection
1046 About the \SpecialChar LaTeX
1047  Preamble
1048 \end_layout
1049
1050 \begin_layout Standard
1051 If you already know \SpecialChar LaTeX
1052 ,
1053  there is no need to explain here what the preamble is good for.
1054  If you don't,
1055  the following will give you some ideas—
1056 we recommend again that you consult a \SpecialChar LaTeX
1057  book for further information.
1058  In any case,
1059  you should read the points below,
1060  because they explain what you can do and what you don't need to do in the \SpecialChar LaTeX
1061  preamble of a \SpecialChar LyX
1062  document.
1063 \end_layout
1064
1065 \begin_layout Standard
1066 The \SpecialChar LaTeX
1067  preamble comes at the very beginning of a document,
1068  
1069 \emph on
1070 before
1071 \emph default
1072  the text.
1073  It serves to:
1074 \end_layout
1075
1076 \begin_layout Itemize
1077 Declare the document class.
1078  
1079 \begin_inset Newline newline
1080 \end_inset
1081
1082 \SpecialChar LyX
1083  already does this for you.
1084  If you're a seasoned \SpecialChar LaTeX
1085 -nician,
1086  and you have a custom document class you want to use,
1087  check out the 
1088 \emph on
1089 Customization Manual
1090 \emph default
1091  for information on how to make \SpecialChar LyX
1092  interface to it.
1093 \end_layout
1094
1095 \begin_layout Itemize
1096 Declare the usage of packages.
1097  
1098 \begin_inset Newline newline
1099 \end_inset
1100
1101 \SpecialChar LaTeX
1102  packages provide special commands,
1103  which are only available within a document when the package has been declared in the preamble.
1104  In addition to providing special commands,
1105  the inclusion of a package can change the document.
1106  For example,
1107  the package 
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 indentfirst
1113 \end_layout
1114
1115 \end_inset
1116
1117  forces all paragraphs to be indented.
1118  There are other packages for labels,
1119  envelopes,
1120  margins,
1121  etc.
1122  
1123 \end_layout
1124
1125 \begin_layout Itemize
1126 Set counters,
1127  variables,
1128  lengths and widths.
1129  
1130 \begin_inset Newline newline
1131 \end_inset
1132
1133 There are several \SpecialChar LaTeX
1134  counters and variables that 
1135 \emph on
1136 must
1137 \emph default
1138  be set globally from within the preamble in order to have the desired effect.
1139  (There are variables that you can set and reset inside the document,
1140  too.) Margins are a good example of something that must be set in the preamble.
1141  Another example is the label format for lists.
1142  You can actually set these just about anywhere,
1143  but it's best to do it just once,
1144  inside the preamble.
1145 \end_layout
1146
1147 \begin_layout Itemize
1148 Declare user defined commands (with 
1149 \begin_inset Flex Code
1150 status collapsed
1151
1152 \begin_layout Plain Layout
1153
1154 \backslash
1155 newcommand
1156 \end_layout
1157
1158 \end_inset
1159
1160  or 
1161 \begin_inset Flex Code
1162 status collapsed
1163
1164 \begin_layout Plain Layout
1165
1166 \backslash
1167 renewcommand
1168 \end_layout
1169
1170 \end_inset
1171
1172 ).
1173 \begin_inset Newline newline
1174 \end_inset
1175
1176 These are abbreviations for \SpecialChar LaTeX
1177  commands which appear very often inside a document.
1178  Although the preamble is a good place to declare such commands,
1179  they 
1180 \emph on
1181 can
1182 \emph default
1183  be declared anywhere (before they are used for the first time,
1184  of course).
1185  This can be useful if there is a lot of raw \SpecialChar LaTeX
1186  code in your document,
1187  which normally should not be the case.
1188 \end_layout
1189
1190 \begin_layout Standard
1191 \SpecialChar LyX
1192  adds its own set of definitions to the preamble of the 
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 .tex
1198 \end_layout
1199
1200 \end_inset
1201
1202  file it produces.
1203  This makes \SpecialChar LaTeX
1204  files generated by \SpecialChar LyX
1205  portable.
1206 \end_layout
1207
1208 \begin_layout Subsection
1209 Changing the Preamble
1210 \end_layout
1211
1212 \begin_layout Standard
1213 The commands which \SpecialChar LyX
1214  adds to the preamble of a \SpecialChar LaTeX
1215  file are fixed;
1216  you can't change them without patching \SpecialChar LyX
1217  itself.
1218  You can,
1219  however,
1220  add your own stuff to the preamble by selecting 
1221 \begin_inset Flex Noun
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 \SpecialChar LaTeX
1226
1227 \begin_inset space ~
1228 \end_inset
1229
1230 Preamble
1231 \end_layout
1232
1233 \end_inset
1234
1235  in the 
1236 \family sans
1237 Document\SpecialChar menuseparator
1238 Settings
1239 \family default
1240  dialog.
1241  \SpecialChar LyX
1242  adds anything in the 
1243 \begin_inset Flex Noun
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 Preamble
1248 \end_layout
1249
1250 \end_inset
1251
1252  dialog to its own built-in preamble.
1253  Before adding your own declarations in the preamble,
1254  you should make sure that \SpecialChar LyX
1255  doesn't already support what you want to do.
1256  (Remember what we said about reinventing the wheel?) Also,
1257  
1258 \emph on
1259 make sure your preamble code is correct
1260 \emph default
1261 .
1262  \SpecialChar LyX
1263  doesn't check it for you.
1264  If there is an error,
1265  you're likely to get an error like 
1266 \begin_inset Quotes eld
1267 \end_inset
1268
1269
1270 \begin_inset Flex Code
1271 status collapsed
1272
1273 \begin_layout Plain Layout
1274 Missing 
1275 \backslash
1276 begin{document}
1277 \end_layout
1278
1279 \end_inset
1280
1281
1282 \begin_inset Quotes erd
1283 \end_inset
1284
1285 .
1286  If you see this error,
1287  check your preamble.
1288 \end_layout
1289
1290 \begin_layout Subsection
1291 Examples
1292 \end_layout
1293
1294 \begin_layout Standard
1295 Here are some examples of what you can add to a preamble,
1296  and what they do.
1297 \end_layout
1298
1299 \begin_layout Subsubsection
1300 Example #1:
1301  Offsets
1302 \end_layout
1303
1304 \begin_layout Standard
1305 There are two variables under \SpecialChar LaTeX
1306  that control page position:
1307  
1308 \begin_inset Flex Code
1309 status collapsed
1310
1311 \begin_layout Plain Layout
1312
1313 \backslash
1314 hoffset
1315 \end_layout
1316
1317 \end_inset
1318
1319  and 
1320 \begin_inset Flex Code
1321 status collapsed
1322
1323 \begin_layout Plain Layout
1324
1325 \backslash
1326 voffset
1327 \end_layout
1328
1329 \end_inset
1330
1331 .
1332  Their names should be self-explanatory.
1333  These variables are useful if you think for a moment about computer labels.
1334  Sometimes,
1335  the size of a print medium and the area of the medium that you can actually print on aren't the same.
1336  This is where 
1337 \begin_inset Flex Code
1338 status collapsed
1339
1340 \begin_layout Plain Layout
1341
1342 \backslash
1343 hoffset
1344 \end_layout
1345
1346 \end_inset
1347
1348  and 
1349 \begin_inset Flex Code
1350 status collapsed
1351
1352 \begin_layout Plain Layout
1353
1354 \backslash
1355 voffset
1356 \end_layout
1357
1358 \end_inset
1359
1360  come in.
1361 \end_layout
1362
1363 \begin_layout Standard
1364 The default values for 
1365 \begin_inset Flex Code
1366 status collapsed
1367
1368 \begin_layout Plain Layout
1369
1370 \backslash
1371 hoffset
1372 \end_layout
1373
1374 \end_inset
1375
1376  and 
1377 \begin_inset Flex Code
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381
1382 \backslash
1383 voffset
1384 \end_layout
1385
1386 \end_inset
1387
1388  are both 0
1389 \begin_inset space \thinspace{}
1390 \end_inset
1391
1392 points,
1393  i.
1394 \begin_inset space \thinspace{}
1395 \end_inset
1396
1397 e.
1398 \begin_inset space \space{}
1399 \end_inset
1400
1401 the page isn't shifted.
1402  Unfortunately,
1403  some DVI drivers always seem to shift the page.
1404  We have no idea why,
1405  or why the sysadmin hasn't fixed such behavior.
1406  If you're using \SpecialChar LyX
1407  on a system that you don't personally maintain,
1408  and your sysadmin is a doofus,
1409  
1410 \begin_inset Flex Code
1411 status collapsed
1412
1413 \begin_layout Plain Layout
1414
1415 \backslash
1416 hoffset
1417 \end_layout
1418
1419 \end_inset
1420
1421  and 
1422 \begin_inset Flex Code
1423 status collapsed
1424
1425 \begin_layout Plain Layout
1426
1427 \backslash
1428 voffset
1429 \end_layout
1430
1431 \end_inset
1432
1433  can save the day.
1434  Suppose your left and top margins are always 0.5
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 inches too big.
1439  You can add this to the preamble:
1440 \end_layout
1441
1442 \begin_layout LyX-Code
1443
1444 \backslash
1445 setlength{
1446 \backslash
1447 hoffset}{-0.5 in}
1448 \end_layout
1449
1450 \begin_layout LyX-Code
1451
1452 \backslash
1453 setlength{
1454 \backslash
1455 voffset}{-0.5 in}
1456 \end_layout
1457
1458 \begin_layout Standard
1459 and your margins should now be correct.
1460 \end_layout
1461
1462 \begin_layout Subsubsection
1463 Example #2:
1464  Labels
1465 \end_layout
1466
1467 \begin_layout Standard
1468 Speaking of labels,
1469  suppose you wanted to print out a bunch of address labels.
1470  There's a rather nice package,
1471  available at your nearest CTAN archive,
1472  for printing sheets of labels:
1473  
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 labels.sty
1479 \end_layout
1480
1481 \end_inset
1482
1483 .
1484  Now,
1485  your system may not have this package installed by default.
1486  We leave that up to you to check.
1487  You'll also want to read the documentation for it;
1488  we're not going to do that for you.
1489  Since this is an example,
1490  however,
1491  we'll give you an example of how you use this package.
1492 \end_layout
1493
1494 \begin_layout Standard
1495 First,
1496  make sure you're using the 
1497 \begin_inset Flex Code
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 article
1502 \end_layout
1503
1504 \end_inset
1505
1506  document class.
1507  Next,
1508  you need to put the following in your preamble:
1509 \end_layout
1510
1511 \begin_layout LyX-Code
1512
1513 \backslash
1514 usepackage{labels}
1515 \end_layout
1516
1517 \begin_layout LyX-Code
1518
1519 \backslash
1520 LabelCols=3
1521 \end_layout
1522
1523 \begin_layout LyX-Code
1524
1525 \backslash
1526 LabelRows=7
1527 \end_layout
1528
1529 \begin_layout LyX-Code
1530
1531 \backslash
1532 LeftBorder=8mm
1533 \end_layout
1534
1535 \begin_layout LyX-Code
1536
1537 \backslash
1538 RightBorder=8mm
1539 \end_layout
1540
1541 \begin_layout LyX-Code
1542
1543 \backslash
1544 TopBorder=9mm
1545 \end_layout
1546
1547 \begin_layout LyX-Code
1548
1549 \backslash
1550 BottomBorder=2mm
1551 \end_layout
1552
1553 \begin_layout Standard
1554 This sets things up for Avery label sheets,
1555  stock #5360.
1556  You're now ready to print labels,
1557  but you'll need to insert \SpecialChar LaTeX
1558  code,
1559  placing the commands 
1560 \begin_inset Flex Code
1561 status collapsed
1562
1563 \begin_layout Plain Layout
1564
1565 \backslash
1566 begin{labels}
1567 \end_layout
1568
1569 \end_inset
1570
1571  and 
1572 \begin_inset Flex Code
1573 status collapsed
1574
1575 \begin_layout Plain Layout
1576
1577 \backslash
1578 end{labels}
1579 \end_layout
1580
1581 \end_inset
1582
1583  around each label text.
1584  This and other special features of 
1585 \begin_inset Flex Code
1586 status collapsed
1587
1588 \begin_layout Plain Layout
1589 labels.sty
1590 \end_layout
1591
1592 \end_inset
1593
1594  are explained in its documentation.
1595 \end_layout
1596
1597 \begin_layout Standard
1598 Someday,
1599  someone may write a \SpecialChar LyX
1600  layout file to support this package directly.
1601  Maybe that someone is you.
1602 \end_layout
1603
1604 \begin_layout Subsubsection
1605 Example #3:
1606  Paragraph Indentation
1607 \end_layout
1608
1609 \begin_layout Standard
1610 Americans are trained to indent the first line of 
1611 \emph on
1612 every
1613 \emph default
1614  paragraph.
1615  As with all of their other weird quirks,
1616  most Americans will whine and moan until they can have their way and indent the first line of all paragraphs.
1617  (Yes,
1618  we're joking.
1619  (We are?) 
1620 \emph on
1621 Yeah
1622 \emph default
1623 ,
1624  we are.)
1625 \end_layout
1626
1627 \begin_layout Standard
1628 Of course,
1629  this behavior isn't standard typography.
1630  In books,
1631  you typically only indent the first line of a paragraph 
1632 \emph on
1633 if
1634 \emph default
1635  it follows another one.
1636  The idea behind indenting the first line of a paragraph is to distinguish neighboring paragraphs from one another.
1637  If there is no previous paragraph—
1638 for example,
1639  if it follows a figure or is the first paragraph in a section—
1640 then there is no need for indentation.
1641  
1642 \end_layout
1643
1644 \begin_layout Standard
1645 If you're a typical American (we're still joking!),
1646  though,
1647  you don't care about such esoteric things;
1648  you want your indentation!
1649  Add this to the preamble:
1650 \end_layout
1651
1652 \begin_layout LyX-Code
1653
1654 \backslash
1655 usepackage{indentfirst}
1656 \end_layout
1657
1658 \begin_layout Standard
1659 If your \SpecialChar TeX
1660  distribution isn't braindead,
1661  you'll have this package,
1662  and all of your paragraphs will get the indentation the Founding Fathers intended they should have.
1663 \end_layout
1664
1665 \begin_layout Subsubsection
1666 Example #4:
1667  This Document
1668 \end_layout
1669
1670 \begin_layout Standard
1671 You can also check out the preamble of this document to get an idea of some of the advanced things you can do.
1672 \end_layout
1673
1674 \begin_layout Section
1675 \SpecialChar LyX
1676  and \SpecialChar LaTeX
1677  Errors
1678 \end_layout
1679
1680 \begin_layout Standard
1681 When \SpecialChar LyX
1682  calls \SpecialChar LaTeX
1683 ,
1684  it tells \SpecialChar LaTeX
1685  to blithely ignore any errors and keep going.
1686  It then uses the logfile from the \SpecialChar LaTeX
1687  run to do a post-mortem.
1688  After analyzing the logfile,
1689  \SpecialChar LyX
1690  displays a dialog listing the errors.
1691  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1692  file where the error occurred.
1693 \begin_inset Foot
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 Well,
1698  usually.
1699  Analyzing the logfile is a tough job,
1700  and \SpecialChar LyX
1701  doesn't always go to the right line.
1702  There are also cases where \SpecialChar LaTeX
1703  reports the error on one line,
1704  but the actual error is earlier.
1705  This is not unlike forgetting a closing brace in a program:
1706  You'll get an error,
1707  but only later.
1708 \end_layout
1709
1710 \end_inset
1711
1712
1713 \end_layout
1714
1715 \begin_layout Standard
1716 Some folks also like to look at the log file directly:
1717  It is available from 
1718 \family sans
1719 Document\SpecialChar menuseparator
1720 LaTeX
1721 \begin_inset space ~
1722 \end_inset
1723
1724 Log
1725 \family default
1726 .
1727  There are some fairly common error messages and warnings.
1728  We'll cover those here.
1729  You should look at a good \SpecialChar LaTeX
1730  book for a complete listing.
1731 \end_layout
1732
1733 \begin_layout Itemize
1734 \begin_inset Flex Code
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 LaTeX Warning
1739 \end_layout
1740
1741 \end_inset
1742
1743
1744 \begin_inset Newline newline
1745 \end_inset
1746
1747 Anything beginning with these words is a warning message for the purpose of 
1748 \begin_inset Quotes eld
1749 \end_inset
1750
1751 debugging
1752 \begin_inset Quotes erd
1753 \end_inset
1754
1755  the \SpecialChar LaTeX
1756  code itself.
1757  You'll get messages like this if you added or changed cross-references or bibliography entries,
1758  in which case,
1759  \SpecialChar LaTeX
1760  is trying to tell you that you need to make another run.
1761  You can by-and-large ignore these.
1762 \end_layout
1763
1764 \begin_layout Itemize
1765 \begin_inset Flex Code
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 LaTeX Font Warning
1770 \end_layout
1771
1772 \end_inset
1773
1774
1775 \begin_inset Newline newline
1776 \end_inset
1777
1778 Another warning message,
1779  this time about fonts which \SpecialChar LaTeX
1780  couldn't find.
1781  The rest of the message will often say something about a replacement font that \SpecialChar LaTeX
1782  used.
1783  You can safely ignore these,
1784  too.
1785 \end_layout
1786
1787 \begin_layout Itemize
1788 \begin_inset Flex Code
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 Overfull 
1793 \backslash
1794 hbox
1795 \end_layout
1796
1797 \end_inset
1798
1799
1800 \begin_inset Newline newline
1801 \end_inset
1802
1803 \SpecialChar LaTeX
1804  absolutely 
1805 \emph on
1806 loves
1807 \emph default
1808  to spew these out.
1809  It seems to generate at least one of these messages for just about any document you write.
1810  They are warnings about lines that were too long and run past the right margin.
1811  This happens if \SpecialChar LaTeX
1812  does not find a reasonable way to break the lines (notoriously often with typewriter font,
1813  since this does not allow for automatic break points).
1814  In many cases,
1815  this is unnoticeable in the final output.
1816  (It can be just a point or two.) Sometimes,
1817  however,
1818  the lines run rather visibly into the margin;
1819  something you will not want to have in your final print.
1820  
1821 \begin_inset Newline newline
1822 \end_inset
1823
1824 There are several global ways to try to minimize the overfull lines.
1825  Clicking 
1826 \family sans
1827 Enable micro-typographic extensions
1828 \family default
1829  in 
1830 \family sans
1831 Document\SpecialChar menuseparator
1832 Settings\SpecialChar menuseparator
1833 Fonts
1834 \family default
1835  might already improve things a lot.
1836  Furthermore,
1837  \SpecialChar LaTeX
1838  code such as the following in 
1839 \family sans
1840 Document\SpecialChar menuseparator
1841 Settings\SpecialChar menuseparator
1842 Preamble
1843 \family default
1844  usually reduces the overfull lines drastically (we use this in the preamble of this document):
1845 \end_layout
1846
1847 \begin_deeper
1848 \begin_layout LyX-Code
1849
1850 \backslash
1851 tolerance 1414
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855
1856 \backslash
1857 hbadness 1414
1858 \begin_inset Newline newline
1859 \end_inset
1860
1861
1862 \backslash
1863 emergencystretch 1.5em
1864 \begin_inset Newline newline
1865 \end_inset
1866
1867
1868 \backslash
1869 hfuzz 0.3pt
1870 \end_layout
1871
1872 \begin_layout Standard
1873 In some cases,
1874  however,
1875  you eventually have to rewrite the text to get the line breaking right.
1876 \begin_inset Foot
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 For more information,
1881  see 
1882 \begin_inset Flex URL
1883 status open
1884
1885 \begin_layout Plain Layout
1886
1887 http://www.tex.ac.uk/FAQ-overfull.html
1888 \end_layout
1889
1890 \end_inset
1891
1892
1893 \end_layout
1894
1895 \end_inset
1896
1897
1898 \end_layout
1899
1900 \begin_layout Standard
1901 In any case,
1902  you should check the respective lines,
1903  at least for the final version of your document.
1904  Your eyes will tell you if there's a problem with something that's too wide.
1905 \begin_inset Foot
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 You can also enable the `draft' option in 
1910 \family sans
1911 Document\SpecialChar menuseparator
1912 Settings
1913 \family default
1914 ,
1915  and then \SpecialChar LaTeX
1916  will draw a black box in the margin of lines that are overfull.
1917 \end_layout
1918
1919 \end_inset
1920
1921  
1922 \end_layout
1923
1924 \end_deeper
1925 \begin_layout Itemize
1926 \begin_inset Flex Code
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 Underfull 
1931 \backslash
1932 hbox
1933 \end_layout
1934
1935 \end_inset
1936
1937
1938 \begin_inset Newline newline
1939 \end_inset
1940
1941 Not quite as common as its cousin.
1942  This happens again if \SpecialChar LaTeX
1943  does not find a reasonable break point and consequently generates too loose lines.
1944  As with the overfull lines,
1945  you should check if this is a visible problem.
1946 \end_layout
1947
1948 \begin_layout Itemize
1949 \begin_inset Flex Code
1950 status collapsed
1951
1952 \begin_layout Plain Layout
1953 Overfull 
1954 \backslash
1955 vbox
1956 \end_layout
1957
1958 \end_inset
1959
1960  and 
1961 \begin_inset Flex Code
1962 status collapsed
1963
1964 \begin_layout Plain Layout
1965 Underfull 
1966 \backslash
1967 vbox
1968 \end_layout
1969
1970 \end_inset
1971
1972
1973 \begin_inset Newline newline
1974 \end_inset
1975
1976 Warnings about troubles breaking the page.
1977  Once again,
1978  just look at the output.
1979  Your eyes will tell you where something has gone wrong.
1980 \end_layout
1981
1982 \begin_layout Itemize
1983 \begin_inset Flex Code
1984 status collapsed
1985
1986 \begin_layout Plain Layout
1987 LaTeX Error:
1988  File 
1989 \begin_inset Quotes els
1990 \end_inset
1991
1992 Xxxx
1993 \begin_inset Quotes ers
1994 \end_inset
1995
1996  not found
1997 \end_layout
1998
1999 \end_inset
2000
2001
2002 \begin_inset Newline newline
2003 \end_inset
2004
2005 The file 
2006 \begin_inset Quotes eld
2007 \end_inset
2008
2009 Xxxx
2010 \begin_inset Quotes erd
2011 \end_inset
2012
2013  isn't installed on this system.
2014  This usually appears because some package your document needs isn't installed.
2015  If you didn't touch the preamble or didn't use the 
2016 \begin_inset Flex Code
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020
2021 \backslash
2022 usepackage{}
2023 \end_layout
2024
2025 \end_inset
2026
2027  command,
2028  then one of the packages \SpecialChar LyX
2029  tried to load is missing.
2030  Use 
2031 \family sans
2032 Help\SpecialChar menuseparator
2033 LaTeX Configuration
2034 \family default
2035  to get a list of packages that \SpecialChar LyX
2036  knows about.
2037  This file is updated whenever you reconfigure \SpecialChar LyX
2038  (using 
2039 \family sans
2040 Tools\SpecialChar menuseparator
2041 Reconfigure
2042 \family default
2043 ) and tells you which packages have been detected and what they do.
2044 \begin_inset Newline newline
2045 \end_inset
2046
2047 If you did use the 
2048 \begin_inset Flex Code
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052
2053 \backslash
2054 usepackage{}
2055 \end_layout
2056
2057 \end_inset
2058
2059  command and the package in question isn't installed,
2060  then you'll need to install it yourself.
2061 \end_layout
2062
2063 \begin_layout Itemize
2064 \begin_inset Flex Code
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 LaTeX Error:
2069  Unknown option
2070 \end_layout
2071
2072 \end_inset
2073
2074
2075 \begin_inset Newline newline
2076 \end_inset
2077
2078 Error messages beginning with this are trying to tell you that you specified a bad or undefined option to a package.
2079  Check the package's documentation.
2080 \end_layout
2081
2082 \begin_layout Itemize
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 Undefined control sequence
2088 \end_layout
2089
2090 \end_inset
2091
2092
2093 \begin_inset Newline newline
2094 \end_inset
2095
2096 If you've inserted \SpecialChar LaTeX
2097  code into your document,
2098  but made a typo,
2099  you'll get one of these.
2100  You may have forgotten to load a package.
2101  In any case,
2102  this error message usually means that you used an undefined command.
2103  
2104 \end_layout
2105
2106 \begin_layout Standard
2107 There are other error and warning messages.
2108  Some are self-explanatory.
2109  These are usually \SpecialChar LaTeX
2110  messages.
2111  Others are downright cryptic.
2112  These are usually \SpecialChar TeX
2113  error messages,
2114  and we really have 
2115 \emph on
2116 no clue
2117 \emph default
2118  what they mean or how to decipher them.
2119  No-one does.
2120 \end_layout
2121
2122 \begin_layout Standard
2123 There's a general sequence you should follow if you get error messages:
2124 \end_layout
2125
2126 \begin_layout Enumerate
2127 Look at the \SpecialChar LaTeX
2128  code you inserted for typos.
2129 \end_layout
2130
2131 \begin_layout Enumerate
2132 If there are no typos,
2133  check that you used the command(s) correctly.
2134 \end_layout
2135
2136 \begin_layout Enumerate
2137 If you get a bunch of error boxes piled up at the very top of the document—
2138 and especially if you see a 
2139 \begin_inset Quotes eld
2140 \end_inset
2141
2142
2143 \begin_inset Flex Code
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 Missing 
2148 \backslash
2149 begin{document}
2150 \end_layout
2151
2152 \end_inset
2153
2154
2155 \begin_inset Quotes erd
2156 \end_inset
2157
2158  error—
2159 it means that there are errors in the preamble.
2160  Start debugging your preamble.
2161 \end_layout
2162
2163 \begin_layout Enumerate
2164 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2165  code to the document,
2166  the first suspect is your \SpecialChar LaTeX
2167  distribution itself.
2168  Check for missing packages and install them.
2169 \end_layout
2170
2171 \begin_layout Enumerate
2172 Okay,
2173  so there are no missing packages.
2174  Did you use any of the fine-tuning options in \SpecialChar LyX
2175 ?
2176  Specifically,
2177  did you 
2178 \emph on
2179 misuse
2180 \emph default
2181  any of them,
2182  like trying to manually insert lots of 
2183 \begin_inset Flex Code
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187 Non-Breaking
2188 \begin_inset space ~
2189 \end_inset
2190
2191 Spaces
2192 \end_layout
2193
2194 \end_inset
2195
2196 ,
2197  
2198 \begin_inset Flex Code
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 Linebreaks
2203 \end_layout
2204
2205 \end_inset
2206
2207 ,
2208  or 
2209 \begin_inset Flex Code
2210 status collapsed
2211
2212 \begin_layout Plain Layout
2213 Pagebreaks
2214 \end_layout
2215
2216 \end_inset
2217
2218 ?
2219  Did you try to kludge something together with these instead of using the appropriate paragraph environment?
2220 \end_layout
2221
2222 \begin_layout Enumerate
2223 All right,
2224  you didn't use any of the fine-tuning options,
2225  you played by the rules.
2226  Did you try to pull a fancy maneuver?
2227  Did you do something funky inside a table or an equation,
2228  like inserting a graphic into a table cell?
2229 \end_layout
2230
2231 \begin_layout Enumerate
2232 Do you have long sections of text where \SpecialChar LaTeX
2233  cannot find a place to break a line?
2234  By default,
2235  \SpecialChar LaTeX
2236  is rather strict about how much extra inter-word spacing it will add in order to break a line.
2237  Preferably,
2238  you should rework the paragraph to avoid the problem.
2239 \end_layout
2240
2241 \begin_layout Enumerate
2242 Did you go overboard with the nesting?
2243  \SpecialChar LyX
2244  (currently) doesn't check to make sure you're in the limits for nesting environments.
2245  If you nested a bunch of environments to the 
2246 \begin_inset Formula $17^{\mathrm{th}}$
2247 \end_inset
2248
2249  level,
2250  that's the problem.
2251  (The limit in \SpecialChar LaTeX
2252  is five.)
2253 \end_layout
2254
2255 \begin_layout Enumerate
2256 Okay,
2257  you didn't get any error messages,
2258  but your output looks awful.
2259  If you have a table or figure that's too wide or long for the page,
2260  you need to:
2261 \end_layout
2262
2263 \begin_deeper
2264 \begin_layout Enumerate
2265 rescale the figure so it fits.
2266 \end_layout
2267
2268 \begin_layout Enumerate
2269 trim down the table so it fits.
2270 \end_layout
2271
2272 \end_deeper
2273 \begin_layout Enumerate
2274 If something else is wrong with the output,
2275  and you didn't try to pull anything fancy or kludge the fine-tuning options,
2276  we're not sure what's wrong.
2277 \end_layout
2278
2279 \begin_layout Standard
2280 If all this doesn't help—
2281 well,
2282  then 
2283 \emph on
2284 perhaps
2285 \emph default
2286  you might have found a bug in \SpecialChar LyX
2287 \SpecialChar ldots
2288 .
2289 \end_layout
2290
2291 \begin_layout Chapter
2292 Document classes
2293 \end_layout
2294
2295 \begin_layout Standard
2296 As explained in the 
2297 \emph on
2298 User's Guide
2299 \emph default
2300 ,
2301  \SpecialChar LaTeX
2302  originally offered four standard document classes,
2303  article,
2304  report,
2305  book and letter,
2306  but individuals and organizations,
2307  most notably the American Mathematical Society in the early days,
2308  have made many contributions to extending the range of document classes.
2309  In this chapter we summarize the main externally maintained classes,
2310  some of which are marked “Unavailable:” in the pull-down 
2311 \family sans
2312 Document
2313 \begin_inset space ~
2314 \end_inset
2315
2316
2317 \bar under
2318 c
2319 \bar default
2320 lass
2321 \family default
2322  list in the 
2323 \family sans
2324 \bar under
2325 D
2326 \bar default
2327 ocument\SpecialChar menuseparator
2328
2329 \bar under
2330 S
2331 \bar default
2332 ettings\SpecialChar menuseparator
2333 Document
2334 \begin_inset space ~
2335 \end_inset
2336
2337 class
2338 \family default
2339  dialog and which you will need to install as described in the 
2340 \emph on
2341 Installing New Document Classes
2342 \emph default
2343  chapter of the 
2344 \emph on
2345 Customization
2346 \emph default
2347  manual if you want to use them.
2348 \end_layout
2349
2350 \begin_layout Section
2351 \begin_inset CommandInset label
2352 LatexCommand label
2353 name "sec:Collections"
2354
2355 \end_inset
2356
2357 Collections
2358 \end_layout
2359
2360 \begin_layout Subsection
2361 \begin_inset CommandInset label
2362 LatexCommand label
2363 name "subsec:AMS-LaTeX-(American-Mathematical"
2364
2365 \end_inset
2366
2367 AMS-\SpecialChar LaTeX
2368  (American Mathematical Society)
2369 \end_layout
2370
2371 \begin_layout Standard
2372 The \SpecialChar LyX
2373  supported document classes 
2374 \family sans
2375 American Mathematical Society (AMS) 
2376 \family default
2377 in category 
2378 \family sans
2379 Articles
2380 \family default
2381  and 
2382 \family sans
2383 American Mathematical Society (AMS)
2384 \family default
2385  in category 
2386 \family sans
2387 Books
2388 \family default
2389  are maintained by the Society;
2390  use of their features is described in the Math manual and on their website 
2391 \begin_inset Flex URL
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395
2396 http://www.ams.org/publications/authors/tex/amslatex
2397 \end_layout
2398
2399 \end_inset
2400
2401 .
2402  The following summary was originally provided by 
2403 \noun on
2404 David Johnson
2405 \noun default
2406  and updated by 
2407 \noun on
2408 Richard Kimberly Heck
2409 \noun default
2410  and the \SpecialChar LyX
2411  Team
2412 \noun on
2413 .
2414 \end_layout
2415
2416 \begin_layout Standard
2417 \begin_inset VSpace bigskip
2418 \end_inset
2419
2420
2421 \end_layout
2422
2423 \begin_layout Standard
2424 \noindent
2425 The AMS \SpecialChar LaTeX
2426  layouts are set up to conform to suggested styles for mathematical papers to be submitted to American Mathematical Society publications.
2427  The layouts are not tailored to a specific journal,
2428  but easily can be.
2429  You should refer to the AMS documentation for specific instructions for each journal (usually it will entail only changing a single line in the \SpecialChar TeX
2430  output).
2431  That documentation is available on the Web at 
2432 \begin_inset Flex URL
2433 status open
2434
2435 \begin_layout Plain Layout
2436
2437 http://www.ams.org
2438 \end_layout
2439
2440 \end_inset
2441
2442  or by ftp at 
2443 \begin_inset Flex URL
2444 status open
2445
2446 \begin_layout Plain Layout
2447
2448 ftp://ftp.ams.org/pub/tex/amslatex/
2449 \end_layout
2450
2451 \end_inset
2452
2453 .
2454  These layouts are appropriate,
2455  and useful,
2456  for any mathematical writing.
2457  
2458 \end_layout
2459
2460 \begin_layout Standard
2461 There are three basic AMS \SpecialChar LaTeX
2462  layouts:
2463  
2464 \end_layout
2465
2466 \begin_layout Itemize
2467 amsart:
2468  The standard AMS article format;
2469  see 
2470 \family sans
2471 File\SpecialChar menuseparator
2472 Open Example\SpecialChar menuseparator
2473 Articles\SpecialChar menuseparator
2474 American Mathematical Society (AMS)
2475 \family default
2476 .
2477 \end_layout
2478
2479 \begin_layout Itemize
2480 amsbook:
2481  the standard AMS book (really,
2482  monograph) format;
2483  see 
2484 \family sans
2485 File\SpecialChar menuseparator
2486 Open Example\SpecialChar menuseparator
2487 Books\SpecialChar menuseparator
2488 American Mathematical Society (AMS)
2489 \family default
2490 .
2491 \end_layout
2492
2493 \begin_layout Itemize
2494 amsproc:
2495  the standard AMS proceedings format.
2496 \end_layout
2497
2498 \begin_layout Standard
2499 \SpecialChar LyX
2500  only supports the first two natively;
2501  see the 
2502 \emph on
2503 Installing New Document Classes
2504 \emph default
2505  chapter of the 
2506 \emph on
2507 Customization
2508 \emph default
2509  manual if you want to use 
2510 \family sans
2511 amsproc
2512 \family default
2513 .
2514 \end_layout
2515
2516 \begin_layout Standard
2517 The layouts themselves contain only the minimum necessary to use the AMS classes.
2518  They do not,
2519  in particular,
2520  contain any of the `theorem' environments used for setting theorems,
2521  lemmas,
2522  and the like.
2523  These are contained,
2524  instead,
2525  in the 
2526 \family sans
2527 AMS Theorems
2528 \family default
2529  module,
2530  which is loaded by default when you select one of the AMS classes.
2531  (It can also be used with other classes and can be removed,
2532  if you would rather use something else.) Less commonly used environments are in the 
2533 \family sans
2534 AMS Theorems (Extended)
2535 \family default
2536  module,
2537  which must be loaded manually.
2538 \end_layout
2539
2540 \begin_layout Standard
2541 By default,
2542  theorems and the like are numbered consecutively throughout the document,
2543  but this may be modified by loading the module 
2544 \family sans
2545 Standard Theorems (Numbered by Section)
2546 \family default
2547  or,
2548  if you are using 
2549 \begin_inset Flex Code
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 book (AMS)
2554 \end_layout
2555
2556 \end_inset
2557
2558 ,
2559  the module 
2560 \family sans
2561 Standard Theorems (Numbered by Chapter)
2562 \family default
2563 .
2564  These will number the results as 
2565 \begin_inset Formula $n.m$
2566 \end_inset
2567
2568 ,
2569  where the first number refers to the section (or chapter) and the second refers to the total number of results so far in that section (or chapter).
2570  Many environments are also available unnumbered.
2571  These are indicated by an asterisk at the end.
2572  If you happen to want 
2573 \emph on
2574 only
2575 \emph default
2576  unnumbered results,
2577  the module 
2578 \family sans
2579 Standard Theorems (Unnumbered)
2580 \family default
2581  provides that option.
2582 \end_layout
2583
2584 \begin_layout Standard
2585 Note that these modules do not 
2586 \emph on
2587 have
2588 \emph default
2589  to be used with the AMS classes.
2590  It is perfectly possible to use the 
2591 \family sans
2592 AMS Theorems
2593 \family default
2594  module,
2595  and the others mentioned,
2596  with other classes,
2597  such as 
2598 \begin_inset Flex Code
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 Article (Standard Class)
2603 \end_layout
2604
2605 \end_inset
2606
2607 ,
2608  
2609 \begin_inset Flex Code
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 Report (Standard Class)
2614 \end_layout
2615
2616 \end_inset
2617
2618 ,
2619  
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 KOMA-Script Book
2625 \end_layout
2626
2627 \end_inset
2628
2629 ,
2630  and so forth.
2631 \end_layout
2632
2633 \begin_layout Subsubsection
2634 What these layouts provide
2635 \end_layout
2636
2637 \begin_layout Standard
2638 There is a long list of included environments provided by these layouts.
2639  In AMS-\SpecialChar LaTeX
2640 ,
2641  there is,
2642  in fact,
2643  an opportunity to define an unlimited variety of `theorem' environments.
2644  However,
2645  the AMS recommends the environments that are available in \SpecialChar LyX
2646 .
2647  
2648 \end_layout
2649
2650 \begin_layout Standard
2651 The following environments—
2652 as well as the standard environments,
2653  such as 
2654 \begin_inset Flex Noun
2655 status collapsed
2656
2657 \begin_layout Plain Layout
2658 section
2659 \end_layout
2660
2661 \end_inset
2662
2663 ,
2664  
2665 \begin_inset Flex Noun
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 bibliography
2670 \end_layout
2671
2672 \end_inset
2673
2674 ,
2675  
2676 \begin_inset Flex Noun
2677 status collapsed
2678
2679 \begin_layout Plain Layout
2680 title
2681 \end_layout
2682
2683 \end_inset
2684
2685 ,
2686  
2687 \begin_inset Flex Noun
2688 status collapsed
2689
2690 \begin_layout Plain Layout
2691 author
2692 \end_layout
2693
2694 \end_inset
2695
2696 ,
2697  and 
2698 \begin_inset Flex Noun
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702 date
2703 \end_layout
2704
2705 \end_inset
2706
2707
2708 are provided by 
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 article (AMS)
2714 \end_layout
2715
2716 \end_inset
2717
2718  and 
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 book (AMS)
2724 \end_layout
2725
2726 \end_inset
2727
2728 :
2729 \end_layout
2730
2731 \begin_layout Description
2732 Address This should be the author's permanent address.
2733 \end_layout
2734
2735 \begin_layout Description
2736 Current
2737 \begin_inset space ~
2738 \end_inset
2739
2740 Address This should be the author's temporary address at the time of submission,
2741  if different from the Address.
2742 \end_layout
2743
2744 \begin_layout Description
2745 Email Author's e-mail address
2746 \end_layout
2747
2748 \begin_layout Description
2749 URL Author's Web address,
2750  if desired.
2751 \end_layout
2752
2753 \begin_layout Description
2754 Keywords Key words or phrases used to identify specific topics discussed in the paper.
2755 \end_layout
2756
2757 \begin_layout Description
2758 Subjectclass These refer to the AMS Subject Classifications,
2759  published and described in 
2760 \emph on
2761 Mathematical Reviews
2762 \emph default
2763 .
2764  These are also available online at the AMS cites listed above.
2765 \end_layout
2766
2767 \begin_layout Description
2768 Thanks
2769 \end_layout
2770
2771 \begin_layout Description
2772 Dedicatory
2773 \end_layout
2774
2775 \begin_layout Description
2776 Translator
2777 \end_layout
2778
2779 \begin_layout Standard
2780 The following environments are provided by both the 
2781 \family sans
2782 Standard Theorems
2783 \family default
2784  and 
2785 \family sans
2786 AMS Theorems
2787 \family default
2788  modules,
2789  in the latter case in both unnumbered and numbered versions.
2790  These same environments are provided only in the starred versions by the 
2791 \family sans
2792 Standard Theorems (Unnumbered)
2793 \family default
2794  module:
2795 \end_layout
2796
2797 \begin_layout Theorem
2798 This is typically used for the statements of major results.
2799  
2800 \end_layout
2801
2802 \begin_layout Corollary*
2803 This is used for statements which follow fairly directly from previous statements.
2804  Again,
2805  these can be major results.
2806  
2807 \end_layout
2808
2809 \begin_layout Lemma
2810 These are smaller results needed to prove other statements.
2811 \end_layout
2812
2813 \begin_layout Proposition
2814 These are less major results which (hopefully) add to the general theory being discussed.
2815 \end_layout
2816
2817 \begin_layout Conjecture
2818 These are statements provided without justification,
2819  which the author does not know how to prove,
2820  but which seem to be true (to the author,
2821  at least).
2822 \end_layout
2823
2824 \begin_layout Definition*
2825 Guess what this is for.
2826  The font is different for this environment than for the previous ones.
2827  
2828 \end_layout
2829
2830 \begin_layout Example*
2831 Used for examples illustrating proven results.
2832 \end_layout
2833
2834 \begin_layout Problem
2835 It's not really known what this is for.
2836  You should figure it out.
2837 \end_layout
2838
2839 \begin_layout Exercise*
2840 Write a description for this one.
2841 \end_layout
2842
2843 \begin_layout Remark
2844 This environment is also a type of theorem,
2845  usually a lesser sort of observation.
2846 \end_layout
2847
2848 \begin_layout Claim*
2849 Often used in the course of giving a proof of a larger result.
2850 \end_layout
2851
2852 \begin_layout Case
2853 Generally,
2854  these are used to break up long arguments,
2855  using specific instances of some condition.
2856  
2857 \end_layout
2858
2859 \begin_layout Case
2860 The numbering scheme for cases is on its own,
2861  not together with other numbered statements.
2862  
2863 \end_layout
2864
2865 \begin_layout Proof
2866 At the end of this environment,
2867  a QED symbol (usually a square,
2868  but it can vary with different styles) is placed.
2869  If you want to have other environments within this one—
2870 for example,
2871  Case environments—
2872 and have the QED symbol appear only after them,
2873  then the other environments need to be nested within the proof environment.
2874  See the section 
2875 \emph on
2876 Nesting Environments
2877 \emph default
2878  of the 
2879 \emph on
2880 User's Guide
2881 \emph default
2882  for information on nesting.
2883 \end_layout
2884
2885 \begin_layout Fact
2886 Used in a way similar to Proposition,
2887  though perhaps lower on the scale.
2888 \end_layout
2889
2890 \begin_layout Standard
2891 And these environments are provided by 
2892 \family sans
2893 AMS Theorems (Extended
2894 \family default
2895 ):
2896 \end_layout
2897
2898 \begin_layout Criterion*
2899 A required condition.
2900 \end_layout
2901
2902 \begin_layout Algorithm*
2903 A general procedure to be used.
2904 \end_layout
2905
2906 \begin_layout Axiom*
2907 This is a property or statement taken as true within the system being discussed.
2908 \end_layout
2909
2910 \begin_layout Condition*
2911 Sometimes used to state a condition assumed within the present context of discussion.
2912 \end_layout
2913
2914 \begin_layout Note*
2915 Similar to a Remark.
2916 \end_layout
2917
2918 \begin_layout Notation*
2919 Used for the explanation of,
2920  yes,
2921  notation.
2922 \end_layout
2923
2924 \begin_layout Summary
2925 Do we really need to tell you?
2926  
2927 \end_layout
2928
2929 \begin_layout Conclusion*
2930 Sometimes used at the end of a long train of argument.
2931 \end_layout
2932
2933 \begin_layout Assumption*
2934 Assumption
2935 \end_layout
2936
2937 \begin_layout Question*
2938 Question
2939 \end_layout
2940
2941 \begin_layout Standard
2942 There are ten more Maths modules available including several offering options ordered on 
2943 \family sans
2944 (Numbered by Type \SpecialChar ldots
2945 )
2946 \family default
2947 .
2948 \end_layout
2949
2950 \begin_layout Standard
2951 In addition,
2952  the AMS classes automatically provide the AMS \SpecialChar LaTeX
2953  and AMS fonts packages.
2954  They need to be available on your system in order to use these environments.
2955 \end_layout
2956
2957 \begin_layout Subsection
2958 \begin_inset CommandInset label
2959 LatexCommand label
2960 name "subsec:Extra-font-sizes"
2961
2962 \end_inset
2963
2964 Extra font sizes
2965 \end_layout
2966
2967 \begin_layout Standard
2968 The “Extra font sizes” collection provides the document classes 
2969 \family sans
2970 article
2971 \begin_inset space \thinspace{}
2972 \end_inset
2973
2974 (with extra font sizes)
2975 \family default
2976 ,
2977  
2978 \family sans
2979 book
2980 \begin_inset space \thinspace{}
2981 \end_inset
2982
2983 (with extra font sizes)
2984 \family default
2985 ,
2986  
2987 \family sans
2988 letter
2989 \begin_inset space \thinspace{}
2990 \end_inset
2991
2992 (with extra font sizes)
2993 \family default
2994  and 
2995 \family sans
2996 report
2997 \begin_inset space \thinspace{}
2998 \end_inset
2999
3000 (with extra font sizes)
3001 \family default
3002  which use the 
3003 \family typewriter
3004 article.cls
3005 \family default
3006 ,
3007  
3008 \family typewriter
3009 book.cls
3010 \family default
3011 ,
3012  
3013 \family typewriter
3014 letter.cls
3015 \family default
3016  and 
3017 \family typewriter
3018 report.cls
3019 \family default
3020  document classes respectively but offer the additional 
3021 \family sans
3022 \bar under
3023 B
3024 \bar default
3025 ase
3026 \begin_inset space ~
3027 \end_inset
3028
3029 Size
3030 \family default
3031  options 8,
3032  9,
3033  14,
3034  17 and 20 in the 
3035 \family sans
3036 \bar under
3037 D
3038 \bar default
3039 ocument\SpecialChar menuseparator
3040
3041 \bar under
3042 S
3043 \bar default
3044 ettings\SpecialChar menuseparator
3045 Fonts
3046 \family default
3047  dialog.
3048 \end_layout
3049
3050 \begin_layout Subsection
3051 Hebrew
3052 \begin_inset CommandInset label
3053 LatexCommand label
3054 name "subsec:Hebrew"
3055
3056 \end_inset
3057
3058
3059 \end_layout
3060
3061 \begin_layout Standard
3062 The document classes 
3063 \family sans
3064 Hebrew Article
3065 \family default
3066  and 
3067 \family sans
3068 Hebrew Letter
3069 \family default
3070  use the 
3071 \family typewriter
3072 article.cl
3073 \family sans
3074 s
3075 \family default
3076  and 
3077 \family typewriter
3078 letter.cls
3079 \family default
3080  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3081 .
3082 \end_layout
3083
3084 \begin_layout Subsection
3085 \begin_inset CommandInset label
3086 LatexCommand label
3087 name "subsec:Japanese"
3088
3089 \end_inset
3090
3091 Japanese (Standard Classes)
3092 \end_layout
3093
3094 \begin_layout Standard
3095 \SpecialChar LyX
3096  included a collection of several bundles that aim to facilitate typesetting Japanese documents.
3097  The bundles have been developed at different times,
3098  they thus support different typesetting engines and features.
3099  This collection is the oldest one.
3100  It adjusts the \SpecialChar LaTeX
3101  standard classes to requirements of Japanese typesetting,
3102  for horizontal and vertical writing.
3103  The collection includes 
3104 \family sans
3105 Japanese Article
3106 \begin_inset space \thinspace{}
3107 \end_inset
3108
3109 (Standard Class)
3110 \family default
3111 ,
3112  
3113 \family sans
3114 Japanese Article
3115 \begin_inset space \thinspace{}
3116 \end_inset
3117
3118 (Standard Class,
3119  vertical Writing)
3120 \family default
3121 ,
3122  
3123 \family sans
3124 Japanese Book
3125 \begin_inset space \thinspace{}
3126 \end_inset
3127
3128 (Standard Class)
3129 \family default
3130 ,
3131  
3132 \family sans
3133 Japanese Book
3134 \begin_inset space \thinspace{}
3135 \end_inset
3136
3137 (Standard Class,
3138  vertical Writing)
3139 \family default
3140 ,
3141  
3142 \family sans
3143 Japanese Report
3144 \begin_inset space \thinspace{}
3145 \end_inset
3146
3147 (Japanese Standard Class)
3148 \family default
3149 ,
3150  and
3151 \family sans
3152  Japanese Report
3153 \begin_inset space \thinspace{}
3154 \end_inset
3155
3156 (Standard Class,
3157  vertical Writing)
3158 \family default
3159 ,
3160  which all work with 
3161 \begin_inset Quotes eld
3162 \end_inset
3163
3164 classic
3165 \begin_inset Quotes erd
3166 \end_inset
3167
3168  engines tailored for Japanese,
3169  p\SpecialChar LaTeX
3170  and up\SpecialChar LaTeX
3171 .
3172 \end_layout
3173
3174 \begin_layout Standard
3175 For the use with the more modern Lua\SpecialChar LaTeX
3176  typesetting engine,
3177  the collection also includes dedicated classes 
3178 \family sans
3179 Japanese Article
3180 \begin_inset space \thinspace{}
3181 \end_inset
3182
3183 (Standard Class for LuaTeX),
3184  Japanese Article
3185 \begin_inset space \thinspace{}
3186 \end_inset
3187
3188 (Standard Class for LuaTeX,
3189  vertical Writing),
3190  Japanese Book
3191 \begin_inset space \thinspace{}
3192 \end_inset
3193
3194 (Standard Class for LuaTeX)
3195 \family default
3196 ,
3197  
3198 \family sans
3199 Japanese Book
3200 \begin_inset space \thinspace{}
3201 \end_inset
3202
3203 (Standard Class for LuaTeX,
3204  vertical Writing)
3205 \family default
3206 ,
3207  
3208 \family sans
3209 Japanese Report
3210 \begin_inset space \thinspace{}
3211 \end_inset
3212
3213 (Japanese Standard Class for LuaTeX)
3214 \family default
3215 ,
3216  and 
3217 \family sans
3218 Japanese Report
3219 \begin_inset space \thinspace{}
3220 \end_inset
3221
3222 (Japanese Standard Class for LuaTeX,
3223  vertical Writing)
3224 \family default
3225 ,
3226  provided by the 
3227 \family sans
3228 luatexja
3229 \family default
3230  \SpecialChar LaTeX
3231  package.
3232 \end_layout
3233
3234 \begin_layout Standard
3235 Templates for the Lua\SpecialChar LaTeX
3236  classes can be found in 
3237 \family sans
3238 File\SpecialChar menuseparator
3239 New From Template
3240 \family default
3241  in the respective category (
3242 \family sans
3243 Articles
3244 \family default
3245 ,
3246  
3247 \family sans
3248 Books
3249 \family default
3250 ,
3251  or 
3252 \family sans
3253 Reports
3254 \family default
3255 ).
3256 \end_layout
3257
3258 \begin_layout Subsection
3259 \begin_inset CommandInset label
3260 LatexCommand label
3261 name "subsec:Japanese-JS"
3262
3263 \end_inset
3264
3265 Japanese (JS Bundle)
3266 \end_layout
3267
3268 \begin_layout Standard
3269 This collection includes improved versions of the classes included in 
3270 \family sans
3271 Japanese (Standard Classes)
3272 \family default
3273  (see
3274 \begin_inset space ~
3275 \end_inset
3276
3277
3278 \begin_inset CommandInset ref
3279 LatexCommand ref
3280 reference "subsec:Japanese"
3281
3282 \end_inset
3283
3284 ).
3285  It includes 
3286 \family sans
3287 Japanese Article
3288 \begin_inset space \thinspace{}
3289 \end_inset
3290
3291 (JS Bundle) 
3292 \family default
3293 and 
3294 \family sans
3295 Japanese Book
3296 \begin_inset space \thinspace{}
3297 \end_inset
3298
3299 (JS Bundle)
3300 \family default
3301 .
3302  A report class can be obtained by using 
3303 \family sans
3304 Japanese Book
3305 \begin_inset space \thinspace{}
3306 \end_inset
3307
3308 (JS Bundle)
3309 \family default
3310  with option 
3311 \family sans
3312 report
3313 \family default
3314  in 
3315 \family sans
3316 Document\SpecialChar menuseparator
3317 Settings\SpecialChar menuseparator
3318 Document Class\SpecialChar menuseparator
3319 Class Options\SpecialChar menuseparator
3320 Custom
3321 \family default
3322 .
3323  All these classes work with 
3324 \begin_inset Quotes eld
3325 \end_inset
3326
3327 classic
3328 \begin_inset Quotes erd
3329 \end_inset
3330
3331  engines tailored for Japanese,
3332  p\SpecialChar LaTeX
3333  and up\SpecialChar LaTeX
3334 .
3335 \end_layout
3336
3337 \begin_layout Standard
3338 For the use with the more modern Lua\SpecialChar LaTeX
3339  typesetting engine,
3340  the collection also includes dedicated classes 
3341 \family sans
3342 Japanese Article (JS Bundle for LuaTeX),
3343  Japanese Book
3344 \begin_inset space \thinspace{}
3345 \end_inset
3346
3347 (JS Bundle for LuaTeX)
3348 \family default
3349 ,
3350  and 
3351 \family sans
3352 Japanese Report
3353 \begin_inset space \thinspace{}
3354 \end_inset
3355
3356 (JS Bundle)
3357 \family default
3358 ,
3359  provided by the 
3360 \family sans
3361 luatexja
3362 \family default
3363  \SpecialChar LaTeX
3364  package.
3365 \end_layout
3366
3367 \begin_layout Standard
3368 Templates for the Lua\SpecialChar LaTeX
3369  classes can be found in 
3370 \family sans
3371 File\SpecialChar menuseparator
3372 New From Template
3373 \family default
3374  in the respective category (
3375 \family sans
3376 Articles
3377 \family default
3378 ,
3379  
3380 \family sans
3381 Books
3382 \family default
3383 ,
3384  or 
3385 \family sans
3386 Reports
3387 \family default
3388 ).
3389 \end_layout
3390
3391 \begin_layout Subsection
3392 \begin_inset CommandInset label
3393 LatexCommand label
3394 name "subsec:Japanese-BX"
3395
3396 \end_inset
3397
3398 Japanese (BX Bundle)
3399 \end_layout
3400
3401 \begin_layout Standard
3402 This bundle contains the document classes 
3403 \family sans
3404 Japanese Article
3405 \begin_inset space \thinspace{}
3406 \end_inset
3407
3408 (BX Bundle)
3409 \family default
3410 ,
3411
3412 \family sans
3413  Japanese Book
3414 \begin_inset space \thinspace{}
3415 \end_inset
3416
3417 (BX Bundle)
3418 \family default
3419 ,
3420  and 
3421 \family sans
3422 Japanese Report
3423 \begin_inset space \thinspace{}
3424 \end_inset
3425
3426 (BX Bundle)
3427 \family default
3428  which provide alternative document classes for Japanese documents.
3429  Furthermore,
3430  a class 
3431 \family sans
3432 Japanese Slides (BX Bundle)
3433 \family default
3434  for presentation slides,
3435  is included.
3436  As opposed to the classes of the 
3437 \family sans
3438 Standard Classes
3439 \family default
3440  and 
3441 \family sans
3442 JS 
3443 \family default
3444 bundles (sec.
3445  
3446 \begin_inset CommandInset ref
3447 LatexCommand ref
3448 reference "subsec:Japanese"
3449
3450 \end_inset
3451
3452  and 
3453 \begin_inset CommandInset ref
3454 LatexCommand ref
3455 reference "subsec:Japanese-JS"
3456
3457 \end_inset
3458
3459 ),
3460  which support only p\SpecialChar LaTeX
3461  and up\SpecialChar LaTeX
3462  out of the box (and Lua\SpecialChar LaTeX
3463  only through the extra classes added by the 
3464 \family sans
3465 luatexja
3466 \family default
3467  \SpecialChar LaTeX
3468  package),
3469  the classes of this bundle also support pdf\SpecialChar LaTeX
3470 ,
3471  Xe\SpecialChar LaTeX
3472  and Lua\SpecialChar LaTeX
3473  directly,
3474  with the aid of suitable packages that provide capability of Japanese typesetting.
3475 \end_layout
3476
3477 \begin_layout Subsection
3478 \begin_inset CommandInset label
3479 LatexCommand label
3480 name "subsec:Japanese-JLReq"
3481
3482 \end_inset
3483
3484 Japanese (JLReq Class)
3485 \end_layout
3486
3487 \begin_layout Standard
3488 This bundle draws on the 
3489 \family sans
3490 jlreq
3491 \family default
3492  class which faithfully traces the standard of 
3493 \emph on
3494 Requirements for Japanese Text Layout
3495 \emph default
3496  set by the World Wide Web Consortium (W3C,
3497  see 
3498 \begin_inset Flex URL
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502
3503 https://www.w3.org/TR/jlreq/?lang=en
3504 \end_layout
3505
3506 \end_inset
3507
3508 ).
3509  It can be used with Lua\SpecialChar LaTeX
3510  as well as p\SpecialChar LaTeX
3511  and up\SpecialChar LaTeX
3512 .
3513 \end_layout
3514
3515 \begin_layout Standard
3516 LyX provides layouts for 
3517 \family sans
3518 Japanese Article
3519 \begin_inset space \thinspace{}
3520 \end_inset
3521
3522 (JLReq Class)
3523 \family default
3524 ,
3525
3526 \family sans
3527  Japanese Book
3528 \begin_inset space \thinspace{}
3529 \end_inset
3530
3531 (JLReq Class)
3532 \family default
3533 ,
3534  and 
3535 \family sans
3536 Japanese Report
3537 \begin_inset space \thinspace{}
3538 \end_inset
3539
3540 (JLReq Class)
3541 \family default
3542  which are all derived from the 
3543 \family sans
3544 jlreq
3545 \family default
3546  \SpecialChar LaTeX
3547  class via specific class options.
3548 \end_layout
3549
3550 \begin_layout Standard
3551 An example article document is available at 
3552 \family sans
3553 File\SpecialChar menuseparator
3554 Open Example\SpecialChar menuseparator
3555 Articles\SpecialChar menuseparator
3556 Japanese Article (JLReq Class)
3557 \family default
3558 .
3559  English documentation is available at 
3560 \begin_inset Flex URL
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564
3565 http://mirrors.ctan.org/macros/jptex/latex/jlreq/jlreq.pdf
3566 \end_layout
3567
3568 \end_inset
3569
3570 .
3571 \end_layout
3572
3573 \begin_layout Subsection
3574 \begin_inset CommandInset label
3575 LatexCommand label
3576 name "subsec:KOMA-Script"
3577
3578 \end_inset
3579
3580 KOMA-Script
3581 \end_layout
3582
3583 \begin_layout Standard
3584 Original by 
3585 \noun on
3586 Bernd Rellermeyer
3587 \noun default
3588 ;
3589  updated by 
3590 \noun on
3591 Jürgen Spitzmüller
3592 \noun default
3593  and the \SpecialChar LyX
3594  Team
3595 \end_layout
3596
3597 \begin_layout Subsubsection
3598 Overview
3599 \end_layout
3600
3601 \begin_layout Standard
3602 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
3603  it was formally launched with the addition of a letter class in 1994.
3604  Since then,
3605  a second letter class has been added.
3606  Frank Neukam's classes were inspired by the principles of typography and this has been fully integrated into the design of the KOMA-Script classes.
3607 \end_layout
3608
3609 \begin_layout Standard
3610 The \SpecialChar LyX
3611  document classes 
3612 \emph on
3613 KOMA-Script Article
3614 \emph default
3615 ,
3616  
3617 \emph on
3618 KOMA-Script Report
3619 \emph default
3620 ,
3621  
3622 \emph on
3623 KOMA-Script Book
3624 \emph default
3625 ,
3626  and 
3627 \emph on
3628 KOMA-Script Letter
3629 \emph default
3630  correspond to the \SpecialChar LaTeX
3631  document classes 
3632 \family typewriter
3633 scrartcl.cls
3634 \family default
3635 ,
3636  
3637 \family typewriter
3638 scrreprt.cls
3639 \family default
3640 ,
3641  
3642 \family typewriter
3643 scrbook.cls
3644 \family default
3645 ,
3646  and 
3647 \family typewriter
3648 scrlettr.cls
3649 \family default
3650 ,
3651  resp.
3652 \begin_inset space ~
3653 \end_inset
3654
3655 of the Koma-Script family.
3656  They are replacements for the standard document classes 
3657 \family typewriter
3658 article.cls
3659 \family default
3660 ,
3661  
3662 \family typewriter
3663 report.cls
3664 \family default
3665 ,
3666  
3667 \family typewriter
3668 book.cls
3669 \family default
3670  and 
3671 \family typewriter
3672 letter.cls
3673 \family default
3674 ,
3675  resp.,
3676  and fit better to European typography conventions in a number of points.
3677 \end_layout
3678
3679 \begin_layout Itemize
3680 The base character sizes when you select a KOMA-Script class are 11pt in 
3681 \emph on
3682 KOMA-Script Article
3683 \emph default
3684 ,
3685  
3686 \emph on
3687 KOMA-Script Report
3688 \emph default
3689 ,
3690  and 
3691 \emph on
3692 KOMA-Script Book
3693 \emph default
3694  and 12pt in 
3695 \emph on
3696 KOMA-Script Letter
3697 \emph default
3698 .
3699 \end_layout
3700
3701 \begin_layout Itemize
3702 Headings,
3703  labels of the description environment,
3704  and a number of elements of the 
3705 \emph on
3706 KOMA-Script Letter
3707 \emph default
3708  document class are set in a bold sans serif font.
3709 \begin_inset Foot
3710 status collapsed
3711
3712 \begin_layout Plain Layout
3713 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
3714  especially in the appearance of headings.
3715  In comparison,
3716  the ec bold sans serif fonts look a bit thin.
3717  Here the \SpecialChar LaTeX
3718  package 
3719 \family typewriter
3720 cmsd.sty by
3721 \family default
3722  
3723 \shape smallcaps
3724 Walter Schmidt
3725 \shape default
3726  helps to produce the 
3727 \begin_inset Quotes eld
3728 \end_inset
3729
3730 usual
3731 \begin_inset Quotes erd
3732 \end_inset
3733
3734  appearance when using the ec fonts.
3735 \end_layout
3736
3737 \end_inset
3738
3739  The numbering of chapter headings is made in the same way as the numbering of section headings,
3740  that is without the extra line 
3741 \begin_inset Quotes eld
3742 \end_inset
3743
3744 Chapter\SpecialChar ldots
3745
3746 \begin_inset Quotes erd
3747 \end_inset
3748
3749 .
3750  In addition,
3751  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
3752  to be entered in the field 
3753 \family sans
3754 Extra
3755 \begin_inset space ~
3756 \end_inset
3757
3758 Options
3759 \family default
3760  of the dialog 
3761 \family sans
3762 Layout\SpecialChar menuseparator
3763 Document
3764 \family default
3765 ).
3766  
3767 \end_layout
3768
3769 \begin_layout Itemize
3770 The layout of a KOMA-Script page follows one of two traditional typesetting conventions based on dividing the page into strips or drawing a circle.
3771  The default is to imagine that a page is divided horizontally and vertically into strips and allocate strips to the margins leaving the unused strips for the text area.
3772  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
3773  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
3774 \end_layout
3775
3776 \begin_deeper
3777 \begin_layout Standard
3778 Whatever the factor,
3779  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
3780  leaving a text area occupying around half the page.
3781  Since most two-sided documents have a binding,
3782  this can make the inner margins appear too narrow;
3783  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
3784 \end_layout
3785
3786 \begin_layout Standard
3787 The main means in the Koma-Script document classes to design the type area are the options 
3788 \family sans
3789 BCOR
3790 \family default
3791  and 
3792 \family sans
3793 DIV
3794 \family default
3795  entered in 
3796 \family sans
3797 Document\SpecialChar menuseparator
3798 Settings\SpecialChar menuseparator
3799 Document Class\SpecialChar menuseparator
3800 Class Options\SpecialChar menuseparator
3801 Custom
3802 \family default
3803 .
3804 \end_layout
3805
3806 \begin_layout Standard
3807 In this document,
3808  the binding correction is 7.5mm which is added in the form 
3809 \family typewriter
3810 BCOR7.5mm
3811 \family default
3812  to 
3813 \family sans
3814 Class
3815 \begin_inset space ~
3816 \end_inset
3817
3818 options\SpecialChar menuseparator
3819 Cus
3820 \bar under
3821 t
3822 \bar default
3823 om
3824 \family default
3825  dialog.
3826  To change the factor to 11,
3827  for example,
3828  add the entry 
3829 \family typewriter
3830 DIV=11
3831 \family default
3832  to the comma separated list of entries in the 
3833 \family sans
3834 Cus
3835 \bar under
3836 t
3837 \bar default
3838 om
3839 \family default
3840  
3841 \family sans
3842 Class
3843 \begin_inset space ~
3844 \end_inset
3845
3846 options
3847 \family default
3848 .
3849  If you want the default value of this factor for a page size other than A4,
3850  add the entry 
3851 \family typewriter
3852 DIV=calc
3853 \family default
3854 .
3855 \end_layout
3856
3857 \begin_layout Standard
3858 To use the circle method of calculating the page layout,
3859  use 
3860 \family typewriter
3861 DIV=classic
3862 \family default
3863  instead.
3864 \end_layout
3865
3866 \end_deeper
3867 \begin_layout Itemize
3868 The \SpecialChar LaTeX
3869  document classes of the Koma-Script family define a number of additional commands.
3870  Those part of it which makes sense in \SpecialChar LyX
3871  is implemented in corresponding paragraph types.
3872 \end_layout
3873
3874 \begin_layout Standard
3875 Detailed descriptions of the \SpecialChar LaTeX
3876  document classes of the Koma-Script family can be found in the Koma-Script documentation 
3877 \emph on
3878 scrguide
3879 \emph default
3880  (German) and 
3881 \emph on
3882 scrguien
3883 \emph default
3884  (English).
3885 \end_layout
3886
3887 \begin_layout Subsubsection
3888
3889 \series bold
3890 \begin_inset CommandInset label
3891 LatexCommand label
3892 name "subsec:article-(KOMA-Script),-report"
3893
3894 \end_inset
3895
3896
3897 \series default
3898 \emph on
3899 KOMA-Script Article
3900 \emph default
3901 ,
3902  
3903 \emph on
3904 KOMA-Script Report
3905 \emph default
3906 ,
3907  and 
3908 \emph on
3909 KOMA-Script Book
3910 \end_layout
3911
3912 \begin_layout Standard
3913 The document classes 
3914 \emph on
3915 KOMA-Script Article
3916 \emph default
3917 ,
3918  
3919 \emph on
3920 KOMA-Script Report
3921 \emph default
3922 ,
3923  and 
3924 \emph on
3925 KOMA-Script Book
3926 \emph default
3927  are implemented in the layout files 
3928 \family typewriter
3929 scrartcl.layout
3930 \family default
3931 ,
3932  
3933 \family typewriter
3934 scrreprt.layout
3935 \family default
3936 ,
3937  and 
3938 \family typewriter
3939 scrbook.layout
3940 \family default
3941 ,
3942  resp.
3943  They contain all the paragraph types of the corresponding standard document classes 
3944 \emph on
3945 article
3946 \emph default
3947 ,
3948  
3949 \emph on
3950 report
3951 \emph default
3952 ,
3953  and 
3954 \emph on
3955 book
3956 \emph default
3957 ,
3958  resp.,
3959  partly modified,
3960  with the exception of the \SpecialChar LyX
3961  specific 
3962 \family sans
3963 List
3964 \family default
3965 -type,
3966  which is replaced by the new 
3967 \family sans
3968 Labeling
3969 \family default
3970 -type having the same functionality.
3971  Beside the 
3972 \family sans
3973 Labeling
3974 \family default
3975 -Type there is a number of new paragraph types added.
3976  They are 
3977 \emph on
3978 not
3979 \emph default
3980  part of 
3981 \emph on
3982 letter (koma-script)
3983 \emph default
3984 .
3985 \end_layout
3986
3987 \begin_layout Itemize
3988
3989 \family sans
3990 Addpart,
3991  Addchap
3992 \family default
3993 ,
3994  
3995 \family sans
3996 Addsec
3997 \family default
3998 :
3999  are equivalents to 
4000 \family sans
4001 Part*,
4002  Chapter*
4003 \family default
4004  and 
4005 \family sans
4006 Section*
4007 \family default
4008 ,
4009  resp.,
4010  additionally inserting an entry in the table of contents.
4011  
4012 \family sans
4013 Addpart
4014 \family default
4015  and 
4016 \family sans
4017 Addchap
4018 \family default
4019  are not contained in 
4020 \emph on
4021 article (koma-script)
4022 \emph default
4023 .
4024 \end_layout
4025
4026 \begin_layout Itemize
4027
4028 \family sans
4029 Addchap*
4030 \family default
4031 ,
4032  
4033 \family sans
4034 Addsec*
4035 \family default
4036 :
4037  behave exactly as 
4038 \family sans
4039 Addchap
4040 \family default
4041  and 
4042 \family sans
4043 Addsec
4044 \family default
4045 ,
4046  resp.,
4047  additionally clearing running heads.
4048  
4049 \family sans
4050 Addchap*
4051 \family default
4052  is not contained in 
4053 \emph on
4054 article (koma-script)
4055 \emph default
4056 .
4057 \begin_inset Foot
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 There is also an 
4062 \family typewriter
4063
4064 \backslash
4065 addpart*
4066 \family default
4067  command in 
4068 \emph on
4069 book (koma-script)
4070 \emph default
4071  and in 
4072 \emph on
4073 report (koma-script)
4074 \emph default
4075 ,
4076  but since this is identical to 
4077 \family sans
4078 Part*
4079 \family default
4080 ,
4081  is has not been implemented in \SpecialChar LyX
4082 .
4083 \end_layout
4084
4085 \end_inset
4086
4087
4088 \end_layout
4089
4090 \begin_layout Itemize
4091
4092 \family sans
4093 Minisec
4094 \family default
4095 :
4096  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
4097 \end_layout
4098
4099 \begin_layout Itemize
4100
4101 \family sans
4102 Captionabove
4103 \family default
4104  and 
4105 \family sans
4106 Captionbelow
4107 \family default
4108  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
4109  you might want to place table captions always above the table).
4110  You can also use the class option 
4111 \family typewriter
4112 tablecaptionsabove
4113 \family default
4114 ,
4115  which will switch 
4116 \family sans
4117 caption
4118 \family default
4119  to 
4120 \family sans
4121 captionabove
4122 \family default
4123  for tables and 
4124 \family sans
4125 captionbelow
4126 \family default
4127  for figures.
4128  You need at least Koma-Script version 2.8q to use this.
4129 \end_layout
4130
4131 \begin_layout Itemize
4132
4133 \family sans
4134 Dictum
4135 \family default
4136 :
4137  can be used to set a bonmot,
4138  e.
4139 \begin_inset space \thinspace{}
4140 \end_inset
4141
4142 g.
4143 \begin_inset space \space{}
4144 \end_inset
4145
4146 at the beginning of a chapter.
4147  If you use the optional argument (
4148 \family sans
4149 Insert\SpecialChar menuseparator
4150 Dictum
4151 \begin_inset space ~
4152 \end_inset
4153
4154 Author
4155 \family default
4156 ),
4157  you can insert the dictum's author there.
4158  Dictum and author are separated by a line.
4159  You need at least Koma-Script version 2.8q to use this.
4160  
4161 \family sans
4162 Dictum
4163 \family default
4164  is not contained in 
4165 \emph on
4166 article (koma-script)
4167 \emph default
4168 .
4169 \end_layout
4170
4171 \begin_layout Standard
4172 The following types,
4173  together with the standard types 
4174 \family sans
4175 Title
4176 \family default
4177 ,
4178  
4179 \family sans
4180 Author
4181 \family default
4182 ,
4183  and 
4184 \family sans
4185 Date
4186 \family default
4187 ,
4188  form the title area of the document.
4189  They must be entered ahead of the first 
4190 \begin_inset Quotes eld
4191 \end_inset
4192
4193 ordinary
4194 \begin_inset Quotes erd
4195 \end_inset
4196
4197  paragraph.
4198 \begin_inset Foot
4199 status collapsed
4200
4201 \begin_layout Plain Layout
4202 The corresponding \SpecialChar LaTeX
4203  commands must appear before the 
4204 \family typewriter
4205
4206 \backslash
4207 maketitle
4208 \family default
4209  command.
4210 \end_layout
4211
4212 \end_inset
4213
4214  When such a type is used more than once,
4215  the latter usage overwrites the former one,
4216  that means,
4217  for every type only the latest usage is valid.
4218  The order of the different types however has,
4219  like 
4220 \family sans
4221 Title
4222 \family default
4223 ,
4224  
4225 \family sans
4226 Author
4227 \family default
4228 ,
4229  and 
4230 \family sans
4231 Date
4232 \family default
4233 ,
4234  no effect on the appearance of the produced document.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Subject
4241 \family default
4242 :
4243  produces a centered paragraph above the ordinary title (
4244 \family sans
4245 Title
4246 \family default
4247 ,
4248  
4249 \family sans
4250 Author
4251 \family default
4252 ,
4253  
4254 \family sans
4255 Date
4256 \family default
4257 ) for the subject of the document.
4258 \end_layout
4259
4260 \begin_layout Itemize
4261
4262 \family sans
4263 Publishers
4264 \family default
4265 :
4266  produces a centered paragraph below the ordinary title (
4267 \family sans
4268 Title
4269 \family default
4270 ,
4271  
4272 \family sans
4273 Author
4274 \family default
4275 ,
4276  
4277 \family sans
4278 Date
4279 \family default
4280 ) for the publishers' name.
4281 \end_layout
4282
4283 \begin_layout Itemize
4284
4285 \family sans
4286 Dedication
4287 \family default
4288 :
4289  in 
4290 \emph on
4291 report (koma-script)
4292 \emph default
4293  and 
4294 \emph on
4295 book (koma-script)
4296 \emph default
4297  produces a centered paragraph on its own page behind the title page,
4298  or in 
4299 \emph on
4300 article (koma-script)
4301 \emph default
4302  produces a centered paragraph below the ordinary title (
4303 \family sans
4304 Title
4305 \family default
4306 ,
4307  
4308 \family sans
4309 Author
4310 \family default
4311 ,
4312  
4313 \family sans
4314 Date
4315 \family default
4316 ,
4317  
4318 \family sans
4319 Publishers
4320 \family default
4321 ) for a dedication.
4322 \end_layout
4323
4324 \begin_layout Itemize
4325
4326 \family sans
4327 Titlehead
4328 \family default
4329 :
4330  produces a left aligned paragraph above the ordinary title (
4331 \family sans
4332 Title
4333 \family default
4334 ,
4335  
4336 \family sans
4337 Author
4338 \family default
4339 ,
4340  
4341 \family sans
4342 Date
4343 \family default
4344 ,
4345  
4346 \family sans
4347 Subject
4348 \family default
4349 ) for a document`s head.
4350 \end_layout
4351
4352 \begin_layout Itemize
4353
4354 \family sans
4355 Uppertitleback
4356 \family default
4357 :
4358  produces in a double-sided print in 
4359 \emph on
4360 report (koma-script)
4361 \emph default
4362  and 
4363 \emph on
4364 book (koma-script)
4365 \emph default
4366  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
4367 \emph on
4368 article (koma-script)
4369 \emph default
4370 .
4371 \end_layout
4372
4373 \begin_layout Itemize
4374
4375 \family sans
4376 Lowertitleback
4377 \family default
4378 :
4379  produces in a double-sided print in 
4380 \emph on
4381 report (koma-script)
4382 \emph default
4383  and 
4384 \emph on
4385 book (koma-script)
4386 \emph default
4387  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
4388 \emph on
4389 article (koma-script)
4390 \emph default
4391 .
4392 \end_layout
4393
4394 \begin_layout Itemize
4395
4396 \family sans
4397 Extratitle
4398 \family default
4399 :
4400  produces a special 
4401 \begin_inset Quotes eld
4402 \end_inset
4403
4404 dirty
4405 \begin_inset Quotes erd
4406 \end_inset
4407
4408  page ahead of the actual document containing a paragraph without special formatting.
4409 \end_layout
4410
4411 \begin_layout Standard
4412 KOMA-Script offers a wide range of 
4413 \family sans
4414 Cus
4415 \bar under
4416 t
4417 \bar default
4418 om Class
4419 \begin_inset space ~
4420 \end_inset
4421
4422 options
4423 \family default
4424  for the 
4425 \family sans
4426 \bar under
4427 D
4428 \bar default
4429 ocument\SpecialChar menuseparator
4430
4431 \bar under
4432 S
4433 \bar default
4434 ettings\SpecialChar menuseparator
4435 Document
4436 \begin_inset space ~
4437 \end_inset
4438
4439 class
4440 \family default
4441  dialog which you can apply to the whole document,
4442  among them
4443 \end_layout
4444
4445 \begin_layout Description
4446
4447 \family typewriter
4448 \series medium
4449 draft=true
4450 \family default
4451 \series default
4452  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
4453  the default setting is 
4454 \family typewriter
4455 false
4456 \end_layout
4457
4458 \begin_layout Description
4459
4460 \family typewriter
4461 \series medium
4462 headings=
4463 \family default
4464 \series default
4465  which may take the values 
4466 \family typewriter
4467 big
4468 \family default
4469 ,
4470  
4471 \family typewriter
4472 normal
4473 \family default
4474  or 
4475 \family typewriter
4476 small
4477 \family default
4478 ;
4479  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
4480 \end_layout
4481
4482 \begin_layout Description
4483
4484 \family typewriter
4485 \series medium
4486 numbers=
4487 \family default
4488 \series default
4489  which may take the values 
4490 \family typewriter
4491 auto
4492 \family default
4493  (the default),
4494  
4495 \family typewriter
4496 enddot
4497 \family default
4498  or 
4499 \family typewriter
4500 noenddot
4501 \family default
4502 ;
4503  the first leaves it up to KOMA-Script to add periods after chapter,
4504  section numbers,
4505  etc.;
4506  the second forces the addition of periods and third suppresses them
4507 \end_layout
4508
4509 \begin_layout Standard
4510 and the math options:
4511 \end_layout
4512
4513 \begin_layout Description
4514
4515 \family typewriter
4516 \series medium
4517 leqno
4518 \family default
4519 \series default
4520  which causes equations to be numbered on the left rather than on the right,
4521  and
4522 \end_layout
4523
4524 \begin_layout Description
4525
4526 \family typewriter
4527 \series medium
4528 fleqn
4529 \family default
4530 \series default
4531  which causes equations to be left justified rather than centered.
4532 \end_layout
4533
4534 \begin_layout Standard
4535 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
4536  commands and packages;
4537  for example,
4538  if you want your captions in bold add
4539 \end_layout
4540
4541 \begin_layout Standard
4542
4543 \family typewriter
4544
4545 \backslash
4546 setkomafont{captionlabel}{
4547 \backslash
4548 bfseries}
4549 \end_layout
4550
4551 \begin_layout Standard
4552 to 
4553 \family sans
4554 \bar under
4555 D
4556 \bar default
4557 ocument\SpecialChar menuseparator
4558
4559 \bar under
4560 S
4561 \bar default
4562 ettings
4563 \family default
4564 \SpecialChar menuseparator
4565
4566 \family sans
4567 \SpecialChar LaTeX
4568
4569 \begin_inset space ~
4570 \end_inset
4571
4572 Preamble
4573 \family default
4574 ) and the problem is solved.
4575 \end_layout
4576
4577 \begin_layout Standard
4578 If you are writing a book,
4579  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
4580  If you use the Chapter* environment,
4581  your Foreword and Preface will not appear in the Table of Contents;
4582  to make them to appear in the Table of contents,
4583  you need to use Chapter environments and add the \SpecialChar TeX
4584  code
4585 \end_layout
4586
4587 \begin_layout Standard
4588
4589 \family typewriter
4590
4591 \backslash
4592 frontmatter
4593 \end_layout
4594
4595 \begin_layout Standard
4596 at the very start of the book (not in the \SpecialChar LaTeX
4597  Preamble) and
4598 \end_layout
4599
4600 \begin_layout Standard
4601
4602 \family typewriter
4603
4604 \backslash
4605 mainmatter
4606 \end_layout
4607
4608 \begin_layout Standard
4609 before the first chapter of the body of the text.
4610  Alternatively,
4611  you might also use 
4612 \family sans
4613 Chapter* (TOC)
4614 \family default
4615 .
4616 \end_layout
4617
4618 \begin_layout Standard
4619 You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
4620  if any.
4621 \begin_inset Foot
4622 status open
4623
4624 \begin_layout Plain Layout
4625 Appendices are normally “numbered” with letters.
4626 \end_layout
4627
4628 \end_inset
4629
4630  If you use the Chapter* environment,
4631  they will not appear in the Table of Contents;
4632  so add the \SpecialChar TeX
4633  code
4634 \end_layout
4635
4636 \begin_layout Standard
4637
4638 \family typewriter
4639
4640 \backslash
4641 backmatter
4642 \end_layout
4643
4644 \begin_layout Standard
4645 before the first of these headings and use the Chapter environment.
4646  These commands will have no effect on the numbering in \SpecialChar LyX
4647 ,
4648  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
4649 \end_layout
4650
4651 \begin_layout Standard
4652 The layout files for the document classes 
4653 \emph on
4654 article (koma-script)
4655 \emph default
4656 ,
4657  
4658 \emph on
4659 report (koma-script)
4660 \emph default
4661 ,
4662  and 
4663 \emph on
4664 book (koma-script)
4665 \emph default
4666  do include the file 
4667 \family typewriter
4668 scrmacros.inc
4669 \family default
4670 .
4671  This is thought of as a place to define your own types.
4672  Copy scrmacros
4673 \family typewriter
4674 .inc
4675 \family default
4676  in your personal layout directory and edit the file!
4677 \end_layout
4678
4679 \begin_layout Subsubsection
4680 \begin_inset CommandInset label
4681 LatexCommand label
4682 name "subsec:The-new-letter"
4683
4684 \end_inset
4685
4686 The new letter class:
4687  KOMA-Script Letter (V.
4688  2)
4689 \end_layout
4690
4691 \begin_layout Standard
4692 by 
4693 \noun on
4694 Jürgen Spitzmüller
4695 \end_layout
4696
4697 \begin_layout Standard
4698 \begin_inset VSpace medskip
4699 \end_inset
4700
4701
4702 \end_layout
4703
4704 \begin_layout Standard
4705 \noindent
4706 Koma-Script version 2.8 has introduced a new letter class 
4707 \family typewriter
4708 scrlttr2
4709 \family default
4710  which supersedes the now unsupported 
4711 \family typewriter
4712 scrlettr
4713 \family default
4714 .
4715  It has —
4716  on the \SpecialChar LaTeX
4717  side —
4718  a completely new interface and is not compatible with the old class.
4719  Therefore,
4720  \SpecialChar LyX
4721  supports both,
4722  though it is recommended you use the new class.
4723 \end_layout
4724
4725 \begin_layout Standard
4726 This class covers the same functionality as 
4727 \emph on
4728 letter (koma-script),
4729
4730 \emph default
4731  and a few more.
4732  The basic items are 
4733 \family sans
4734 Address
4735 \family default
4736  (receiver's address,
4737  same as 
4738 \family sans
4739 Letter
4740 \family default
4741  in the old layout),
4742  
4743 \family sans
4744 Opening
4745 \family default
4746 ,
4747  and 
4748 \family sans
4749 Closing
4750 \family default
4751 .
4752  
4753 \family sans
4754 NextAddress
4755 \family default
4756  will start a new letter (i.
4757 \begin_inset space \thinspace{}
4758 \end_inset
4759
4760 e.
4761 \begin_inset space \space{}
4762 \end_inset
4763
4764 you can write several letters per document).
4765  New elements are sender's 
4766 \family sans
4767 E-Mail
4768 \family default
4769 ,
4770  
4771 \family sans
4772 URL
4773 \family default
4774 ,
4775  
4776 \family sans
4777 Fax
4778 \family default
4779 ,
4780  
4781 \family sans
4782 Bank
4783 \family default
4784  and the possibility to use a 
4785 \family sans
4786 Logo
4787 \family default
4788  (via 
4789 \family sans
4790 Insert\SpecialChar menuseparator
4791 Graphics
4792 \family default
4793 ) in the header.
4794 \end_layout
4795
4796 \begin_layout Standard
4797 The biggest improvement is,
4798  though,
4799  that the letter's layout is configurable to meet almost any needs.
4800  This can be done via the preamble or with a special style file (Letter Class Option,
4801  extension 
4802 \family typewriter
4803 *.lco
4804 \family default
4805 ),
4806  that will be read in as a class option.
4807 \begin_inset Foot
4808 status collapsed
4809
4810 \begin_layout Plain Layout
4811 The KOMA package comes with some default 
4812 \family typewriter
4813 *.lco
4814 \family default
4815  files.
4816  There is,
4817  for instance,
4818  a 
4819 \family typewriter
4820 DIN.lco
4821 \family default
4822  file that follows german typesetting rules,
4823  or a 
4824 \family typewriter
4825 KOMAold.lco
4826 \family default
4827  that provides the default layout of the old 
4828 \family typewriter
4829 scrlettr
4830 \family default
4831  class.
4832  The latter can be loaded with the class option 
4833 \family typewriter
4834 KOMAold
4835 \family default
4836 ,
4837  inserted via the 
4838 \family sans
4839 Layout\SpecialChar menuseparator
4840 Document\SpecialChar menuseparator
4841 Extra Options
4842 \family default
4843  field.
4844 \end_layout
4845
4846 \end_inset
4847
4848  Have a look at the template in 
4849 \family sans
4850 \bar under
4851 F
4852 \bar default
4853 ile\SpecialChar menuseparator
4854 New
4855 \begin_inset space ~
4856 \end_inset
4857
4858 fro
4859 \bar under
4860 m
4861 \bar default
4862
4863 \begin_inset space ~
4864 \end_inset
4865
4866 Template\SpecialChar menuseparator
4867 Letters\SpecialChar menuseparator
4868 KOMA-Script Letter (V.2)
4869 \family default
4870 .
4871  A detailed description is to be found in the Koma-Script documentation (
4872 \emph on
4873 scrguide
4874 \emph default
4875 ).
4876 \end_layout
4877
4878 \begin_layout Subsubsection
4879 Problems
4880 \end_layout
4881
4882 \begin_layout Standard
4883 Visualizing the Koma-Script document classes in \SpecialChar LyX
4884 ,
4885  the \SpecialChar LyX
4886  internals cause some problems.
4887 \end_layout
4888
4889 \begin_layout Itemize
4890 The chapter number of a 
4891 \family sans
4892 Chapter
4893 \family default
4894  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
4895  The cause for that is the \SpecialChar LyX
4896  internal behavior for the labeltype 
4897 \family sans
4898 Counter_Chapter
4899 \family default
4900  in the layout file.
4901 \end_layout
4902
4903 \begin_layout Itemize
4904 The headings of the types 
4905 \family sans
4906 Addchap
4907 \family default
4908  and 
4909 \family sans
4910 Addsec
4911 \family default
4912  are only put in the 
4913 \begin_inset Quotes eld
4914 \end_inset
4915
4916 true
4917 \begin_inset Quotes erd
4918 \end_inset
4919
4920  \SpecialChar LaTeX
4921  table of contents,
4922  but not in the \SpecialChar LyX
4923  table of contents (
4924 \family sans
4925 Document\SpecialChar menuseparator
4926 Table
4927 \begin_inset space ~
4928 \end_inset
4929
4930 of
4931 \begin_inset space ~
4932 \end_inset
4933
4934 Contents
4935 \family default
4936 ).
4937 \end_layout
4938
4939 \begin_layout Itemize
4940 The paragraphs in a 
4941 \emph on
4942 letter
4943 \emph default
4944  document class appear in a skip separation mode,
4945  not indented.
4946  This is the standard behavior,
4947  no special \SpecialChar LaTeX
4948  commands are needed for that.
4949  But in the 
4950 \family sans
4951 Document\SpecialChar menuseparator
4952 Settings
4953 \family default
4954  dialog the corresponding radio button indicates 
4955 \family sans
4956 Indent
4957 \family default
4958 .
4959  A 
4960 \family sans
4961 Skip
4962 \family default
4963  value always has the effect that extra \SpecialChar LaTeX
4964  commands are inserted in the document to produce the gap,
4965  which is not what is wanted in this case.
4966 \end_layout
4967
4968 \begin_layout Subsection
4969 \begin_inset CommandInset label
4970 LatexCommand label
4971 name "subsec:Polish-M.W.collection"
4972
4973 \end_inset
4974
4975 Polish M.
4976 \begin_inset space \thinspace{}
4977 \end_inset
4978
4979 W.
4980 \begin_inset space \space{}
4981 \end_inset
4982
4983 collection
4984 \end_layout
4985
4986 \begin_layout Standard
4987 by 
4988 \noun on
4989 Tomasz Luczak
4990 \end_layout
4991
4992 \begin_layout Standard
4993 The \SpecialChar LyX
4994  document classes 
4995 \emph on
4996 Polish Article (MW Bundle)
4997 \emph default
4998 ,
4999  
5000 \emph on
5001 Polish Report (MW Bundle)
5002 \emph default
5003  and 
5004 \emph on
5005 Polish Book (MW Bundle)
5006 \emph default
5007  correspond to the \SpecialChar LaTeX
5008  document classes 
5009 \family typewriter
5010 mwart.cls
5011 \family default
5012 ,
5013  
5014 \family typewriter
5015 mwrep.cls
5016 \family default
5017  and 
5018 \family typewriter
5019 mwbk.cls
5020 \family default
5021 ,
5022  resp.
5023  They are replacements for the standard document classes 
5024 \family typewriter
5025 article.cls
5026 \family default
5027 ,
5028  
5029 \family typewriter
5030 report.cls
5031 \family default
5032  and 
5033 \family typewriter
5034 book.cls
5035 \family default
5036 ,
5037  resp.,
5038  and fit better to Polish typography conventions in a number of points.
5039  
5040 \end_layout
5041
5042 \begin_layout Standard
5043 Basic differences:
5044 \end_layout
5045
5046 \begin_layout Itemize
5047 Unnumbered titles (with star,
5048  e.
5049 \begin_inset space \thinspace{}
5050 \end_inset
5051
5052 g.
5053 \begin_inset space \space{}
5054 \end_inset
5055
5056
5057 \family sans
5058 Section*
5059 \family default
5060 ) are added into table of contents,
5061 \end_layout
5062
5063 \begin_layout Itemize
5064 Additional page styles:
5065 \end_layout
5066
5067 \begin_deeper
5068 \begin_layout Description
5069 uheadings header with separated lines,
5070 \end_layout
5071
5072 \begin_layout Description
5073 myheadings custom header,
5074  contents headers via commands:
5075  
5076 \family typewriter
5077
5078 \backslash
5079 markright
5080 \family default
5081  and 
5082 \family typewriter
5083
5084 \backslash
5085 markboth
5086 \family default
5087 ,
5088 \end_layout
5089
5090 \begin_layout Description
5091 myuheadings custom header with separated lines,
5092 \end_layout
5093
5094 \begin_layout Description
5095 outer page number is placed on outer side of page
5096 \end_layout
5097
5098 \end_deeper
5099 \begin_layout Itemize
5100 Options 
5101 \end_layout
5102
5103 \begin_deeper
5104 \begin_layout Description
5105 rmheadings serif titles —
5106  default,
5107 \end_layout
5108
5109 \begin_layout Description
5110 sfheadings sansserif titles,
5111 \end_layout
5112
5113 \begin_layout Description
5114 authortitle on title page first placed is author next title —
5115  default,
5116 \end_layout
5117
5118 \begin_layout Description
5119 titleauthor on title page first placed is title next author,
5120 \end_layout
5121
5122 \begin_layout Description
5123 withmarginpar reserve place on page for margins.
5124 \end_layout
5125
5126 \end_deeper
5127 \begin_layout Subsection
5128 Tufte Collection
5129 \end_layout
5130
5131 \begin_layout Standard
5132 The document classes 
5133 \family sans
5134 Tufte Book
5135 \family default
5136  and 
5137 \family sans
5138 Tufte Handout
5139 \family default
5140  use the 
5141 \family typewriter
5142 tufte-book.cls
5143 \family default
5144  and 
5145 \family typewriter
5146 tufte-handout.cls
5147 \family default
5148  document classes.
5149  Detailed information about these document classes can be found in 
5150 \family sans
5151 File\SpecialChar menuseparator
5152 Open Example\SpecialChar menuseparator
5153 Books\SpecialChar menuseparator
5154 Tufte Book
5155 \family default
5156  and 
5157 \family sans
5158 File\SpecialChar menuseparator
5159 Open Example\SpecialChar menuseparator
5160 Handouts\SpecialChar menuseparator
5161 Tufte Handout
5162 \family default
5163 .
5164 \end_layout
5165
5166 \begin_layout Section
5167 Articles
5168 \end_layout
5169
5170 \begin_layout Standard
5171 See also the document classes in the Collections (section
5172 \begin_inset space ~
5173 \end_inset
5174
5175
5176 \begin_inset CommandInset ref
5177 LatexCommand ref
5178 reference "sec:Collections"
5179 nolink "false"
5180
5181 \end_inset
5182
5183 ).
5184 \end_layout
5185
5186 \begin_layout Subsection
5187 Astronomy & Astrophysics
5188 \end_layout
5189
5190 \begin_layout Standard
5191 Original by 
5192 \noun on
5193 Peter Sütterlin
5194 \noun default
5195 ;
5196  updated by the \SpecialChar LyX
5197  Team
5198 \end_layout
5199
5200 \begin_layout Subsubsection
5201 Introduction
5202 \end_layout
5203
5204 \begin_layout Standard
5205 This section describes how \SpecialChar LyX
5206  can be used to write articles for submission to the scientific journal 
5207 \emph on
5208 Astronomy & Astrophysics
5209 \emph default
5210  (
5211 \begin_inset CommandInset href
5212 LatexCommand href
5213 name "aa-package"
5214 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5215 literal "false"
5216
5217 \end_inset
5218
5219 ) using Version 9.1 of the document class 
5220 \family typewriter
5221 aa.cls
5222 \family default
5223 ;
5224  information about it is available at 
5225 \begin_inset Flex URL
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229
5230 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5231 \end_layout
5232
5233 \end_inset
5234
5235 .
5236 \end_layout
5237
5238 \begin_layout Standard
5239 A manual comes together with the package and should be consulted before installing this document class as described in the 
5240 \emph on
5241 Installing New Document Classe
5242 \emph default
5243 s section of the 
5244 \emph on
5245 Customization
5246 \emph default
5247  manual.
5248 \end_layout
5249
5250 \begin_layout Standard
5251 \begin_inset Note Greyedout
5252 status open
5253
5254 \begin_layout Plain Layout
5255 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
5256  2001.
5257  That change also involved some slight changes to the style files,
5258  namely the removal of the thesaurus command.
5259  If you have an older version installed,
5260  please upgrade.
5261  For information about compatibility with the old (version 4) layout,
5262  please refer to the comments in 
5263 \family typewriter
5264 \SpecialChar LyX
5265 Dir/layouts/aapaper.layout
5266 \family default
5267 .
5268 \end_layout
5269
5270 \end_inset
5271
5272
5273 \end_layout
5274
5275 \begin_layout Subsubsection
5276 Getting started
5277 \end_layout
5278
5279 \begin_layout Standard
5280 It is recommended you start from the template in the menu 
5281 \family sans
5282 \bar under
5283 F
5284 \bar default
5285 ile\SpecialChar menuseparator
5286 New
5287 \begin_inset space ~
5288 \end_inset
5289
5290 fro
5291 \bar under
5292 m
5293 \bar default
5294
5295 \begin_inset space ~
5296 \end_inset
5297
5298 Template\SpecialChar menuseparator
5299 Articles\SpecialChar menuseparator
5300 Astronomy & Astrophysics
5301 \family default
5302 .
5303  If you are not using the template,
5304  note the following settings:
5305 \end_layout
5306
5307 \begin_layout Itemize
5308 Select 
5309 \family sans
5310 Astronomy & Astrophysics
5311 \family default
5312  in the 
5313 \family sans
5314 \bar under
5315 D
5316 \bar default
5317 ocument\SpecialChar menuseparator
5318
5319 \bar under
5320 S
5321 \bar default
5322 ettings\SpecialChar menuseparator
5323 Document
5324 \begin_inset space ~
5325 \end_inset
5326
5327 Class
5328 \family default
5329  dialog (OK,
5330  that one was obvious).
5331 \end_layout
5332
5333 \begin_layout Itemize
5334 Don't change the 
5335 \family sans
5336 Headings
5337 \begin_inset space ~
5338 \end_inset
5339
5340
5341 \bar under
5342 s
5343 \bar default
5344 tyle
5345 \family default
5346  in the 
5347 \family sans
5348 Page
5349 \begin_inset space ~
5350 \end_inset
5351
5352 Layout
5353 \family default
5354  dialog:
5355  leave it set to 
5356 \family sans
5357 Default
5358 \family default
5359 .
5360  The whole layout is done by the macros,
5361  you shouldn't change anything.
5362 \end_layout
5363
5364 \begin_layout Subsubsection
5365 The header block
5366 \end_layout
5367
5368 \begin_layout Standard
5369 First thing to enter is the header information.
5370  It consists of seven entries,
5371  of which one is optional.
5372  They are
5373 \end_layout
5374
5375 \begin_layout Itemize
5376
5377 \family sans
5378 Title
5379 \family default
5380 :
5381  [required]
5382 \end_layout
5383
5384 \begin_layout Itemize
5385
5386 \family sans
5387 Subtitle
5388 \family default
5389 :
5390  [optional]
5391 \end_layout
5392
5393 \begin_layout Itemize
5394
5395 \family sans
5396 Author
5397 \family default
5398 :
5399  [required]
5400 \end_layout
5401
5402 \begin_layout Itemize
5403
5404 \family sans
5405 Address
5406 \family default
5407 :
5408  [required]
5409 \end_layout
5410
5411 \begin_layout Itemize
5412
5413 \family sans
5414 Offprints
5415 \family default
5416  [optional].
5417  Determines to whom correspondence and reprints are to be sent.
5418 \end_layout
5419
5420 \begin_layout Itemize
5421
5422 \family sans
5423 Mail
5424 \family default
5425  [optional] Snail mail address for contacts.
5426 \end_layout
5427
5428 \begin_layout Itemize
5429
5430 \family sans
5431 Date
5432 \family default
5433 :
5434  [required].
5435  Suggested format is 
5436 \family typewriter
5437 Received:
5438  <date>;
5439  Accepted <date>
5440 \end_layout
5441
5442 \begin_layout Standard
5443 There is no need to issue the 
5444 \family typewriter
5445
5446 \backslash
5447 maketitle
5448 \family default
5449  command,
5450  this is done automatically by \SpecialChar LyX
5451  when the header is finished.
5452  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
5453  just to get the best optics and meets the layout of the real document.
5454 \end_layout
5455
5456 \begin_layout Standard
5457 If you want to place footnotes in the header block,
5458  e.
5459 \begin_inset space \thinspace{}
5460 \end_inset
5461
5462 g.
5463 \begin_inset space \space{}
5464 \end_inset
5465
5466 to state your present address,
5467  just use the standard footnote via the menu 
5468 \family sans
5469 \bar under
5470 I
5471 \bar default
5472 nsert\SpecialChar menuseparator
5473
5474 \bar under
5475 F
5476 \bar default
5477 ootnote.
5478
5479 \family default
5480  \SpecialChar LyX
5481  will automagically use the term 
5482 \family typewriter
5483
5484 \backslash
5485 thanks{}
5486 \family default
5487  in that case.
5488 \end_layout
5489
5490 \begin_layout Standard
5491 Under 
5492 \family sans
5493 Edit\SpecialChar menuseparator
5494 Text Style
5495 \family default
5496 ,
5497  you'll find two insets which are relevant for the titling:
5498 \end_layout
5499
5500 \begin_layout Itemize
5501
5502 \family sans
5503 Institute
5504 \family typewriter
5505  
5506 \family default
5507 to mark corresponding author\SpecialChar breakableslash
5508 institute pairs.
5509  The institutes are numbered sequentially as they appear in the 
5510 \family sans
5511 Address
5512 \family default
5513  field,
5514  so you have to put a marker to each author.
5515 \end_layout
5516
5517 \begin_layout Itemize
5518
5519 \family sans
5520 Email
5521 \family default
5522  to supply an email address for fast contact.
5523 \end_layout
5524
5525 \begin_layout Standard
5526 In addition to these topics,
5527  the macros use one additional \SpecialChar LaTeX
5528  commands that has no counterpart in \SpecialChar LyX
5529 :
5530 \end_layout
5531
5532 \begin_layout Itemize
5533
5534 \family typewriter
5535
5536 \backslash
5537 and
5538 \family default
5539  to separate different names for more than one author and institute,
5540  respectively.
5541 \end_layout
5542
5543 \begin_layout Standard
5544 The appropriate command has to be entered as \SpecialChar TeX
5545  code in \SpecialChar LyX
5546 .
5547  See the examples in the template and in 
5548 \family sans
5549 File\SpecialChar menuseparator
5550 Open Example\SpecialChar menuseparator
5551 Articles\SpecialChar menuseparator
5552 Astronomy & Astrophysics
5553 \family default
5554 .
5555 \end_layout
5556
5557 \begin_layout Subsubsection
5558 The abstract
5559 \end_layout
5560
5561 \begin_layout Standard
5562 The abstract should immediately follow the header block.
5563  With version 5 the abstract environment was changed to a command,
5564  and there is now a restriction to only one paragraph.
5565  In addition,
5566  it should contain an entry with the keywords.
5567  This is done via the paragraph style 
5568 \family sans
5569 Keywords
5570 \family default
5571 .
5572  Refer to the example paper.
5573 \end_layout
5574
5575 \begin_layout Subsubsection
5576 Supported environments
5577 \end_layout
5578
5579 \begin_layout Standard
5580 The A&A paper layout supports the following environments for structuring your text:
5581 \end_layout
5582
5583 \begin_layout Standard
5584
5585 \family sans
5586 \begin_inset Flex Multiple Columns
5587 status open
5588
5589 \begin_layout Itemize
5590
5591 \family sans
5592 Standard
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \family sans
5598 Section
5599 \end_layout
5600
5601 \begin_layout Itemize
5602
5603 \family sans
5604 Subsection
5605 \end_layout
5606
5607 \begin_layout Itemize
5608
5609 \family sans
5610 Subsubsection
5611 \end_layout
5612
5613 \begin_layout Itemize
5614
5615 \family sans
5616 Itemize
5617 \end_layout
5618
5619 \begin_layout Itemize
5620
5621 \family sans
5622 Enumerate
5623 \end_layout
5624
5625 \begin_layout Itemize
5626
5627 \family sans
5628 Description
5629 \end_layout
5630
5631 \begin_layout Itemize
5632
5633 \family sans
5634 Caption
5635 \end_layout
5636
5637 \begin_layout Itemize
5638
5639 \family sans
5640 Abstract
5641 \end_layout
5642
5643 \begin_layout Itemize
5644
5645 \family sans
5646 Acknowledgment
5647 \end_layout
5648
5649 \begin_layout Itemize
5650
5651 \family sans
5652 Bibliography
5653 \end_layout
5654
5655 \begin_layout Itemize
5656 LaTeX
5657 \end_layout
5658
5659 \end_inset
5660
5661
5662 \end_layout
5663
5664 \begin_layout Subsubsection
5665 Commands not supported by \SpecialChar LyX
5666
5667 \end_layout
5668
5669 \begin_layout Standard
5670 Some commands are not yet supported by the 
5671 \family sans
5672 Astronomy & Astrophysics
5673 \family default
5674  layout for \SpecialChar LyX
5675 .
5676  Some have already been mentioned.
5677  For the sake of completeness,
5678  they are listed all together here:
5679 \end_layout
5680
5681 \begin_layout Itemize
5682
5683 \family typewriter
5684
5685 \backslash
5686 and
5687 \end_layout
5688
5689 \begin_layout Itemize
5690
5691 \family typewriter
5692
5693 \backslash
5694 authorrunning
5695 \end_layout
5696
5697 \begin_layout Itemize
5698
5699 \family typewriter
5700
5701 \backslash
5702 object{}
5703 \end_layout
5704
5705 \begin_layout Itemize
5706
5707 \family typewriter
5708
5709 \backslash
5710 titlerunning{}
5711 \end_layout
5712
5713 \begin_layout Standard
5714 If you want to use any of these commands,
5715  you have to enter them yourself.
5716  Do not forget to use
5717 \family sans
5718  
5719 \bar under
5720 I
5721 \bar default
5722 nsert\SpecialChar menuseparator
5723 \SpecialChar TeX
5724
5725 \begin_inset space ~
5726 \end_inset
5727
5728 Code
5729 \family default
5730 !
5731 \end_layout
5732
5733 \begin_layout Subsubsection
5734 Figure and Table Floats
5735 \end_layout
5736
5737 \begin_layout Standard
5738 \SpecialChar LyX
5739  provides support for the necessary float environments 
5740 \family sans
5741 figure,
5742  figure*,
5743  table
5744 \family default
5745  and 
5746 \family sans
5747 table*
5748 \family default
5749 ,
5750  therefore we won't tell much about it here.
5751  Refer to the 
5752 \emph on
5753 User's
5754 \begin_inset space ~
5755 \end_inset
5756
5757 Guide
5758 \emph default
5759 .
5760  Just remember that tables should be left-aligned.
5761  For that,
5762  select the table and change the alignment in 
5763 \family sans
5764 \bar under
5765 E
5766 \bar default
5767 dit\SpecialChar menuseparator
5768
5769 \bar under
5770 P
5771 \bar default
5772 aragraph
5773 \begin_inset space ~
5774 \end_inset
5775
5776 Settings
5777 \family default
5778  (
5779 \begin_inset Info
5780 type  "icon"
5781 arg   "layout-paragraph"
5782 \end_inset
5783
5784 )
5785 \family sans
5786 .
5787 \end_layout
5788
5789 \begin_layout Standard
5790 There is only one special thing:
5791  the figures with a caption beside the figure.
5792  To create such a figure,
5793  you have to do the following:
5794 \end_layout
5795
5796 \begin_layout Enumerate
5797 Create a wide figure float:
5798  
5799 \family sans
5800 \bar under
5801 I
5802 \bar default
5803 nsert\SpecialChar menuseparator
5804 Flo
5805 \bar under
5806 a
5807 \bar default
5808 t\SpecialChar menuseparator
5809 Figure
5810 \family default
5811 ,
5812  then,
5813  from within the float,
5814  use the menu 
5815 \family sans
5816 \bar under
5817 E
5818 \bar default
5819 dit\SpecialChar menuseparator
5820 Flo
5821 \bar under
5822 a
5823 \bar default
5824 t
5825 \begin_inset space ~
5826 \end_inset
5827
5828 Settings
5829 \family default
5830  and check 
5831 \family sans
5832 \bar under
5833 S
5834 \bar default
5835 pan
5836 \begin_inset space ~
5837 \end_inset
5838
5839 columns
5840 \family default
5841  in the 
5842 \family sans
5843 float
5844 \family default
5845  dialog.
5846 \end_layout
5847
5848 \begin_layout Enumerate
5849 Enter your caption text.
5850 \end_layout
5851
5852 \begin_layout Enumerate
5853 Press 
5854 \family sans
5855 Return
5856 \family default
5857  to move the cursor above the caption.
5858 \end_layout
5859
5860 \begin_layout Enumerate
5861 Insert your figure
5862 \end_layout
5863
5864 \begin_layout Enumerate
5865 Position the cursor after the figure and insert a horizontal fill by using the menu:
5866  
5867 \family sans
5868 \bar under
5869 I
5870 \bar default
5871 nsert\SpecialChar menuseparator
5872 F
5873 \bar under
5874 o
5875 \bar default
5876 rmatting\SpecialChar menuseparator
5877 H
5878 \bar under
5879 o
5880 \bar default
5881 rizontal
5882 \begin_inset space ~
5883 \end_inset
5884
5885 Space
5886 \family default
5887  to open the 
5888 \family sans
5889 space
5890 \family default
5891  dialog and select the 
5892 \family sans
5893 Horizontal fill
5894 \family default
5895  option from the 
5896 \family sans
5897 \bar under
5898 S
5899 \bar default
5900 pacing
5901 \family default
5902  context menu.
5903 \end_layout
5904
5905 \begin_layout Enumerate
5906 Switch to \SpecialChar LaTeX
5907  mode:
5908  
5909 \family sans
5910 M-c
5911 \begin_inset space ~
5912 \end_inset
5913
5914 t
5915 \family default
5916 .
5917 \end_layout
5918
5919 \begin_layout Enumerate
5920 Enter 
5921 \family typewriter
5922
5923 \backslash
5924 parbox[b]{55mm}{
5925 \family default
5926  
5927 \emph on
5928 Do not close the brace!
5929 \end_layout
5930
5931 \begin_layout Enumerate
5932 Position the cursor behind the caption text,
5933  switch to \SpecialChar LaTeX
5934  mode and insert the closing brace:
5935  
5936 \family sans
5937 M-c
5938 \begin_inset space ~
5939 \end_inset
5940
5941 t
5942 \family default
5943  
5944 \family typewriter
5945 }
5946 \family default
5947 .
5948 \end_layout
5949
5950 \begin_layout Standard
5951 Also,
5952  refer to the figures in the file in 
5953 \family sans
5954 File\SpecialChar menuseparator
5955 Open Example\SpecialChar menuseparator
5956 Articles\SpecialChar menuseparator
5957 Astronomy & Astrophysics
5958 \family default
5959 .
5960 \end_layout
5961
5962 \begin_layout Subsubsection
5963 Referee layout
5964 \end_layout
5965
5966 \begin_layout Standard
5967 For submission,
5968  the paper has to be formatted in a special double-spacing layout.
5969  For this purpose,
5970  you have to add the option 
5971 \family typewriter
5972 referee
5973 \family default
5974  to the 
5975 \family sans
5976 Cus
5977 \bar under
5978 t
5979 \bar default
5980 om Class
5981 \begin_inset space ~
5982 \end_inset
5983
5984 options
5985 \family default
5986  in the 
5987 \family sans
5988 \bar under
5989 D
5990 \bar default
5991 ocument\SpecialChar menuseparator
5992
5993 \bar under
5994 S
5995 \bar default
5996 ettings\SpecialChar menuseparator
5997 Document
5998 \begin_inset space ~
5999 \end_inset
6000
6001 Class
6002 \family default
6003  dialog.
6004 \end_layout
6005
6006 \begin_layout Subsubsection
6007 The example paper
6008 \end_layout
6009
6010 \begin_layout Standard
6011 The example in 
6012 \family sans
6013 File\SpecialChar menuseparator
6014 Open Example\SpecialChar menuseparator
6015 Articles\SpecialChar menuseparator
6016 Astronomy & Astrophysics
6017 \family default
6018  was written with \SpecialChar LyX
6019 .
6020  It is the example paper from the original macro package,
6021  
6022 \family typewriter
6023 aa.dem
6024 \family default
6025  in the 
6026 \begin_inset CommandInset href
6027 LatexCommand href
6028 name "aa-package"
6029 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6030 literal "false"
6031
6032 \end_inset
6033
6034 ,
6035  but translated to \SpecialChar LyX
6036  using the older unstructured abstract type.
6037  Use it for inspiration,
6038  and compare the \SpecialChar LaTeX
6039  code in 
6040 \family typewriter
6041 aa.dem
6042 \family default
6043  with the \SpecialChar LyX
6044  way of writing.
6045 \end_layout
6046
6047 \begin_layout Subsection
6048 AAS\SpecialChar TeX
6049
6050 \end_layout
6051
6052 \begin_layout Standard
6053 by 
6054 \noun on
6055 Mike Ressler
6056 \end_layout
6057
6058 \begin_layout Subsubsection
6059 Introduction
6060 \end_layout
6061
6062 \begin_layout Standard
6063 AAS\SpecialChar TeX
6064  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
6065  the Astrophysical Journal (including the Letters and Supplement),
6066  the Astronomical Journal,
6067  and the Publications of the Astronomical Society of the Pacific.
6068  \SpecialChar LyX
6069  has proven to be an excellent tool for generating these documents,
6070  especially given its equation,
6071  citation,
6072  and figure handling capabilities.
6073  \SpecialChar LyX
6074  requires version 5.0 (or higher) of these macros;
6075  preferably 6.0,
6076  which is the version described here,
6077  or higher.
6078  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6079 2.09 and are fundamentally incompatible with \SpecialChar LyX
6080 .
6081  The AAS\SpecialChar TeX
6082  package may be downloaded from the AAS\SpecialChar TeX
6083  Web site
6084 \end_layout
6085
6086 \begin_layout Standard
6087 \begin_inset VSpace medskip
6088 \end_inset
6089
6090
6091 \end_layout
6092
6093 \begin_layout Standard
6094 \align center
6095 \begin_inset Flex URL
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099
6100 https://aas.org/aastex/aastex-downloads
6101 \end_layout
6102
6103 \end_inset
6104
6105
6106 \end_layout
6107
6108 \begin_layout Standard
6109 \begin_inset VSpace medskip
6110 \end_inset
6111
6112
6113 \end_layout
6114
6115 \begin_layout Standard
6116 A complete user guide is contained in that package and you should familiarize yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6117 .
6118  \SpecialChar LyX
6119  will not reduce the need to figure out all the AAS\SpecialChar TeX
6120  commands,
6121  it will only reduce the drudgery of typing everything in.
6122  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6123  document conforms completely to the requirements of the journal to which you are submitting your paper.
6124 \end_layout
6125
6126 \begin_layout Subsubsection
6127 Starting a New Paper
6128 \end_layout
6129
6130 \begin_layout Standard
6131 I strongly suggest that you start with the AAS\SpecialChar TeX
6132  template file.
6133  Click on 
6134 \family sans
6135 File\SpecialChar menuseparator
6136 New from
6137 \family default
6138  
6139 \family sans
6140 Template\SpecialChar menuseparator
6141 Articles\SpecialChar menuseparator
6142 American Astronomical Society
6143 \family default
6144 .
6145  This will show the most common fields found in a manuscript.
6146  Simply overwrite the existing text (including the brackets,
6147  
6148 \family typewriter
6149 <>
6150 \family default
6151 ) with the correct information.
6152  Many of the AAS\SpecialChar TeX
6153  commands and environments can be implemented directly in \SpecialChar LyX
6154 ,
6155  but some cannot.
6156  For commands such as these,
6157  the \SpecialChar LaTeX
6158  code must be entered directly and marked as such.
6159  Such commands are referred to as \SpecialChar TeX
6160  code,
6161  or Evil Red Text.
6162  I tried to minimize the amount of \SpecialChar TeX
6163  code needed in an AAS\SpecialChar TeX
6164  document.
6165 \end_layout
6166
6167 \begin_layout Subsubsection
6168 Finishing Your Paper
6169 \end_layout
6170
6171 \begin_layout Standard
6172 When the paper is finished to your satisfaction and previews/prints correctly,
6173  there are a few 
6174 \begin_inset Quotes eld
6175 \end_inset
6176
6177 postprocessing
6178 \begin_inset Quotes erd
6179 \end_inset
6180
6181  actions which need to be done before you submit it to the journals.
6182  
6183 \end_layout
6184
6185 \begin_layout Enumerate
6186 Export your paper as a \SpecialChar LaTeX
6187  file (
6188 \family sans
6189 File\SpecialChar menuseparator
6190 Export\SpecialChar menuseparator
6191 \SpecialChar LaTeX
6192
6193 \family default
6194 ).
6195  
6196 \end_layout
6197
6198 \begin_layout Enumerate
6199 Edit the resulting 
6200 \family typewriter
6201 .tex
6202 \family default
6203  file with your favorite text editor
6204 \end_layout
6205
6206 \begin_deeper
6207 \begin_layout Enumerate
6208 remove the comment lines before the 
6209 \family typewriter
6210
6211 \backslash
6212 documentclass
6213 \family default
6214  command
6215 \end_layout
6216
6217 \begin_layout Enumerate
6218 remove the 
6219 \family typewriter
6220
6221 \backslash
6222 usepackage...{fontenc}
6223 \family default
6224  line if it appears (usually just after 
6225 \family typewriter
6226
6227 \backslash
6228 documentclass
6229 \family default
6230 };
6231  also remove the 
6232 \family typewriter
6233
6234 \backslash
6235 secnumdepth
6236 \family default
6237  line if it appears.
6238 \end_layout
6239
6240 \begin_layout Enumerate
6241 remove everything between (and including) the 
6242 \family typewriter
6243
6244 \backslash
6245 makeatletter
6246 \family default
6247  and 
6248 \family typewriter
6249
6250 \backslash
6251 makeatother
6252 \family default
6253  commands,
6254  except for any commands you specifically put into the \SpecialChar LaTeX
6255  preamble (which should appear immediately after the 
6256 \begin_inset Quotes eld
6257 \end_inset
6258
6259 User specified \SpecialChar LaTeX
6260  commands
6261 \begin_inset Quotes erd
6262 \end_inset
6263
6264  comment in the 
6265 \family typewriter
6266 .tex
6267 \family default
6268  file).
6269 \end_layout
6270
6271 \end_deeper
6272 \begin_layout Enumerate
6273 Run the resulting file through \SpecialChar LaTeX
6274  to make sure it still processes correctly.
6275 \end_layout
6276
6277 \begin_layout Enumerate
6278 Reread the journal requirements to make sure your filenames and formats are correct.
6279 \end_layout
6280
6281 \begin_layout Enumerate
6282 Submit it.
6283 \end_layout
6284
6285 \begin_layout Subsubsection
6286 Comments On Specific Commands
6287 \end_layout
6288
6289 \begin_layout Standard
6290 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6291  commands:
6292  the AAS\SpecialChar TeX
6293  User Guide (
6294 \family typewriter
6295 aasguide.tex
6296 \family default
6297 ) gives a good description of each.
6298  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
6299  So let's begin \SpecialChar ldots
6300
6301 \end_layout
6302
6303 \begin_layout Paragraph
6304 Things that work as expected
6305 \end_layout
6306
6307 \begin_layout Standard
6308 Because they work as you might expect,
6309  I simply list them and the section they are found in:
6310  
6311 \family typewriter
6312
6313 \backslash
6314 documentclass
6315 \family default
6316  (2.1.1),
6317  
6318 \family typewriter
6319
6320 \backslash
6321 begin{document}
6322 \family default
6323  (2.2),
6324  
6325 \family typewriter
6326
6327 \backslash
6328 title
6329 \family default
6330  (2.3),
6331  
6332 \family typewriter
6333
6334 \backslash
6335 author
6336 \family default
6337  (2.3),
6338  
6339 \family typewriter
6340
6341 \backslash
6342 affil
6343 \family default
6344  (2.3),
6345  
6346 \family typewriter
6347
6348 \backslash
6349 abstract
6350 \family default
6351  (2.4),
6352  
6353 \family typewriter
6354
6355 \backslash
6356 keywords
6357 \family default
6358  (2.5),
6359  
6360 \family typewriter
6361
6362 \backslash
6363 section
6364 \family default
6365  (2.7),
6366  
6367 \family typewriter
6368
6369 \backslash
6370 subsection
6371 \family default
6372  (2.7),
6373  
6374 \family typewriter
6375
6376 \backslash
6377 subsubsection
6378 \family default
6379  (2.7),
6380  
6381 \family typewriter
6382
6383 \backslash
6384 paragraph
6385 \family default
6386  (2.7),
6387  
6388 \family typewriter
6389
6390 \backslash
6391 facility
6392 \family default
6393  (2.10),
6394  
6395 \family typewriter
6396
6397 \backslash
6398 begin{displaymath}
6399 \family default
6400  (2.12),
6401  
6402 \family typewriter
6403
6404 \backslash
6405 begin{equation}
6406 \family default
6407  (2.12),
6408  
6409 \family typewriter
6410
6411 \backslash
6412 begin{eqnarray}
6413 \family default
6414  (2.12),
6415  
6416 \family typewriter
6417
6418 \backslash
6419 begin{mathletters}
6420 \family default
6421  (2.12),
6422  
6423 \family typewriter
6424
6425 \backslash
6426 begin{thebibliography}
6427 \family default
6428  (2.13.1),
6429  
6430 \family typewriter
6431
6432 \backslash
6433 bibitem
6434 \family default
6435  (2.13.2),
6436  all the cite commands and their variations (2.13.2),
6437  the generic graphicx figure commands (2.14.1),
6438  
6439 \family typewriter
6440
6441 \backslash
6442 begin{table}
6443 \family default
6444  (2.15.4),
6445  
6446 \family typewriter
6447
6448 \backslash
6449 begin{tabular}
6450 \family default
6451  (2.15.4),
6452  
6453 \family typewriter
6454
6455 \backslash
6456 caption
6457 \family default
6458  (2.15.4),
6459  
6460 \family typewriter
6461
6462 \backslash
6463 label
6464 \family default
6465  (2.15.4,
6466  amongst other places),
6467  
6468 \family typewriter
6469
6470 \backslash
6471 tablerefs
6472 \family default
6473  (2.15.5),
6474  
6475 \family typewriter
6476
6477 \backslash
6478 tablecomments
6479 \family default
6480  (2.15.5),
6481  
6482 \family typewriter
6483
6484 \backslash
6485 url
6486 \family default
6487  (2.17.4),
6488  
6489 \family typewriter
6490
6491 \backslash
6492 end{document}
6493 \family default
6494  (2.18).
6495 \end_layout
6496
6497 \begin_layout Standard
6498 The following style options also work correctly:
6499  
6500 \family typewriter
6501 longabstract
6502 \family default
6503  (2.4),
6504  
6505 \family typewriter
6506 preprint
6507 \family default
6508  (3.2.1),
6509  
6510 \family typewriter
6511 preprint2
6512 \family default
6513  (3.2.2),
6514  
6515 \family typewriter
6516 eqsecnum
6517 \family default
6518  (3.3),
6519  
6520 \family typewriter
6521 flushrt
6522 \family default
6523  (3.4).
6524  Simply put them in the 
6525 \family sans
6526 Options
6527 \family default
6528  box in 
6529 \family sans
6530 Layout\SpecialChar menuseparator
6531 Document
6532 \family default
6533 .
6534 \end_layout
6535
6536 \begin_layout Paragraph
6537 Things that work,
6538  but require more comment
6539 \end_layout
6540
6541 \begin_layout Standard
6542 The following items work,
6543  but require a little more discussion:
6544 \end_layout
6545
6546 \begin_layout Itemize
6547 These items are reserved for use by the journal editors,
6548  but you can put them into the \SpecialChar LaTeX
6549  preamble if you feel compelled to do so:
6550  
6551 \family typewriter
6552
6553 \backslash
6554 received
6555 \family default
6556 ,
6557  
6558 \family typewriter
6559
6560 \backslash
6561 revised
6562 \family default
6563 ,
6564  
6565 \family typewriter
6566
6567 \backslash
6568 accepted
6569 \family default
6570 ,
6571  
6572 \family typewriter
6573
6574 \backslash
6575 ccc
6576 \family default
6577 ,
6578  
6579 \family typewriter
6580
6581 \backslash
6582 cpright
6583 \family default
6584  (all from 2.1.3)
6585 \end_layout
6586
6587 \begin_layout Itemize
6588 These items may be placed in the \SpecialChar LaTeX
6589  preamble,
6590  and are included as blanks in the template file:
6591  
6592 \family typewriter
6593
6594 \backslash
6595 slugcomment
6596 \family default
6597  (2.1.4),
6598  
6599 \family typewriter
6600
6601 \backslash
6602 shorttitle
6603 \family default
6604  (2.1.5),
6605  
6606 \family typewriter
6607
6608 \backslash
6609 shortauthors
6610 \family default
6611  (2.1.5)
6612 \end_layout
6613
6614 \begin_layout Itemize
6615
6616 \family typewriter
6617
6618 \backslash
6619 email
6620 \family default
6621  (2.3) – can only be used 
6622 \begin_inset Quotes eld
6623 \end_inset
6624
6625 standalone
6626 \begin_inset Quotes erd
6627 \end_inset
6628
6629 ,
6630  not in the middle of a paragraph.
6631  Use \SpecialChar TeX
6632  code if you need to embed it.
6633 \end_layout
6634
6635 \begin_layout Itemize
6636
6637 \family typewriter
6638
6639 \backslash
6640 and
6641 \family default
6642  (2.3) – will have extra {} after it.
6643  This should not cause an error.
6644 \end_layout
6645
6646 \begin_layout Itemize
6647
6648 \family typewriter
6649
6650 \backslash
6651 notetoeditor
6652 \family default
6653  (2.6) – can only be used 
6654 \begin_inset Quotes eld
6655 \end_inset
6656
6657 standalone
6658 \begin_inset Quotes erd
6659 \end_inset
6660
6661 ,
6662  not in the middle of a paragraph.
6663  Use \SpecialChar TeX
6664  code if you need to embed it.
6665 \end_layout
6666
6667 \begin_layout Itemize
6668
6669 \family typewriter
6670
6671 \backslash
6672 placetable
6673 \family default
6674  (2.8) – can't insert a cross-reference tag,
6675  you must type the tag name by hand
6676 \end_layout
6677
6678 \begin_layout Itemize
6679
6680 \family typewriter
6681
6682 \backslash
6683 placefigure
6684 \family default
6685  (2.8) – same as for 
6686 \family typewriter
6687
6688 \backslash
6689 placetable
6690 \end_layout
6691
6692 \begin_layout Itemize
6693
6694 \family typewriter
6695
6696 \backslash
6697 acknowledgements
6698 \family default
6699  (2.9) – will have extra {} after it.
6700  This should not cause an error.
6701 \end_layout
6702
6703 \begin_layout Itemize
6704
6705 \family typewriter
6706
6707 \backslash
6708 appendix
6709 \family default
6710  (2.11) – will have extra {} after it.
6711  This should not cause an error.
6712 \end_layout
6713
6714 \begin_layout Itemize
6715
6716 \family typewriter
6717
6718 \backslash
6719 figcaption
6720 \family default
6721  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
6722 \family sans
6723 Insert\SpecialChar menuseparator
6724 Short Title
6725 \family default
6726 .
6727  
6728 \begin_inset Quotes eld
6729 \end_inset
6730
6731 Short Title
6732 \begin_inset Quotes erd
6733 \end_inset
6734
6735  inserts an optional argument of the type needed by 
6736 \family typewriter
6737
6738 \backslash
6739 figcaption
6740 \family default
6741 .
6742  Hopefully it will be renamed someday.
6743 \end_layout
6744
6745 \begin_layout Itemize
6746
6747 \family typewriter
6748
6749 \backslash
6750 objectname
6751 \family default
6752  (2.17.1) – same as 
6753 \family typewriter
6754
6755 \backslash
6756 figcaption
6757 \family default
6758  for the catalog ID optional parameter
6759 \end_layout
6760
6761 \begin_layout Itemize
6762
6763 \family typewriter
6764
6765 \backslash
6766 dataset
6767 \family default
6768  (2.17.1) – same as 
6769 \family typewriter
6770
6771 \backslash
6772 figcaption
6773 \family default
6774  for the catalog ID optional parameter
6775 \end_layout
6776
6777 \begin_layout Paragraph
6778 Things not implemented,
6779  use \SpecialChar TeX
6780  code
6781 \end_layout
6782
6783 \begin_layout Standard
6784
6785 \family typewriter
6786
6787 \backslash
6788 eqnum
6789 \family default
6790  (2.12),
6791  
6792 \family typewriter
6793
6794 \backslash
6795 setcounter{equation}
6796 \family default
6797  (2.12),
6798  Journal name abbreviations (2.13.4),
6799  
6800 \family typewriter
6801
6802 \backslash
6803 figurenum
6804 \family default
6805  (2.14.1),
6806  
6807 \family typewriter
6808
6809 \backslash
6810 epsscale
6811 \family default
6812  (2.14.1),
6813  
6814 \family typewriter
6815
6816 \backslash
6817 plotone
6818 \family default
6819  (2.14.1),
6820  
6821 \family typewriter
6822
6823 \backslash
6824 plottwo
6825 \family default
6826  (2.14.1),
6827  
6828 \family typewriter
6829
6830 \backslash
6831 tablenum
6832 \family default
6833  (2.15.4),
6834  
6835 \family typewriter
6836
6837 \backslash
6838 tableline
6839 \family default
6840  (2.15.4,
6841  insert it as the first element in the lefthand cell after where you want it.
6842  Don't use any of \SpecialChar LyX
6843 's rules in the table),
6844  
6845 \family typewriter
6846
6847 \backslash
6848 tablenotemark
6849 \family default
6850  (2.15.5),
6851  
6852 \family typewriter
6853
6854 \backslash
6855 tablenotetext
6856 \family default
6857  (2.15.5),
6858  much of Misc (2.17,
6859  except 
6860 \family typewriter
6861
6862 \backslash
6863 objectname
6864 \family default
6865 ,
6866  
6867 \family typewriter
6868
6869 \backslash
6870 dataset
6871 \family default
6872 ,
6873  
6874 \family typewriter
6875
6876 \backslash
6877 url
6878 \family default
6879 ,
6880  and 
6881 \family typewriter
6882
6883 \backslash
6884 email
6885 \family default
6886 ;
6887  see above),
6888  
6889 \family typewriter
6890
6891 \backslash
6892 singlespace
6893 \family default
6894  (3.1),
6895  
6896 \family typewriter
6897
6898 \backslash
6899 doublespace
6900 \family default
6901  (3.1),
6902  
6903 \family typewriter
6904
6905 \backslash
6906 onecolumn
6907 \family default
6908  (3.2),
6909  
6910 \family typewriter
6911
6912 \backslash
6913 twocolumn
6914 \family default
6915  (3.2)
6916 \end_layout
6917
6918 \begin_layout Paragraph
6919 Things that cannot be implemented
6920 \end_layout
6921
6922 \begin_layout Standard
6923 \SpecialChar ldots
6924  at least in any meaningful sort of way,
6925  so I suggest ignoring them.
6926  They are the references environment (2.13.3),
6927  and the deluxetable environment (2.15).
6928  If you really,
6929  really need to use deluxetable,
6930  I suggest editing it in a separate file with a text editor,
6931  then using 
6932 \family sans
6933 Insert\SpecialChar menuseparator
6934 Child
6935 \begin_inset space ~
6936 \end_inset
6937
6938 Document
6939 \family default
6940  to include it in your \SpecialChar LyX
6941  document.
6942  See 
6943 \family sans
6944 File\SpecialChar menuseparator
6945 Open Example\SpecialChar menuseparator
6946 Articles\SpecialChar menuseparator
6947 American Astronomical Society
6948 \family default
6949  for an example of this.
6950 \end_layout
6951
6952 \begin_layout Subsubsection
6953 FAQs,
6954  Tips,
6955  Tricks,
6956  and Other Ruminations
6957 \end_layout
6958
6959 \begin_layout Paragraph
6960 Getting \SpecialChar LyX
6961  and AAS\SpecialChar TeX
6962  to cooperate
6963 \end_layout
6964
6965 \begin_layout Standard
6966 It can be a bit tricky to get \SpecialChar LyX
6967  to recognize a new layout and document class.
6968  When all else fails,
6969  do this:
6970 \end_layout
6971
6972 \begin_layout Enumerate
6973 Make certain that \SpecialChar LaTeX
6974  can find AAS\SpecialChar TeX
6975 .
6976  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6977  distribution into a directory completely unrelated to \SpecialChar LaTeX
6978  or AAS\SpecialChar TeX
6979  and run \SpecialChar LaTeX
6980  on 
6981 \family typewriter
6982 sample.tex
6983 \family default
6984 .
6985 \end_layout
6986
6987 \begin_layout Enumerate
6988 Make certain that 
6989 \family typewriter
6990 aastex63.layout
6991 \family default
6992  appears in \SpecialChar LyX
6993 's 
6994 \family typewriter
6995 layouts
6996 \family default
6997  folder
6998 \end_layout
6999
7000 \begin_layout Enumerate
7001 Rerun 
7002 \family sans
7003 Tools\SpecialChar menuseparator
7004 Reconfigure
7005 \family default
7006  in \SpecialChar LyX
7007 ,
7008  then restart \SpecialChar LyX
7009 .
7010 \end_layout
7011
7012 \begin_layout Enumerate
7013 Open a regular new file,
7014  not from a template.
7015  Does 
7016 \family sans
7017 American Astronomical Society (AASTeX V.
7018 \begin_inset space \thinspace{}
7019 \end_inset
7020
7021 6.3.1)
7022 \family default
7023  appear in the class list in 
7024 \family sans
7025 Document\SpecialChar menuseparator
7026 Settings
7027 \family default
7028 ?
7029 \end_layout
7030
7031 \begin_layout Standard
7032 If you get a warning from an existing AAS\SpecialChar TeX
7033  document about not being able to find the AAS\SpecialChar TeX
7034  layout or a message about 
7035 \begin_inset Quotes eld
7036 \end_inset
7037
7038 You should not mix title layouts with normal ones
7039 \begin_inset Quotes erd
7040 \end_inset
7041
7042 ,
7043  things haven't been installed correctly.
7044 \end_layout
7045
7046 \begin_layout Paragraph
7047 \SpecialChar LaTeX
7048  error processing a table 
7049 \end_layout
7050
7051 \begin_layout Standard
7052 \SpecialChar LyX
7053 ,
7054  by default,
7055  attempts to center the table caption/title.
7056  This seems to produce a bad interaction in AAS\SpecialChar TeX
7057  so you should click somewhere in the caption/title,
7058  then select 
7059 \family sans
7060 Edit\SpecialChar menuseparator
7061 Paragraph
7062 \begin_inset space ~
7063 \end_inset
7064
7065 Settings
7066 \family default
7067 ,
7068  then set the 
7069 \family sans
7070 Alignment
7071 \family default
7072  to 
7073 \family sans
7074 Block
7075 \family default
7076 .
7077  This took care of it for me.
7078 \end_layout
7079
7080 \begin_layout Paragraph
7081 References
7082 \end_layout
7083
7084 \begin_layout Standard
7085 A couple of things:
7086  
7087 \end_layout
7088
7089 \begin_layout Enumerate
7090 I have noticed some funny spacing in the reference entries in the text.
7091  When you enter the bibliography item data,
7092  make sure their is 
7093 \emph on
7094 no
7095 \emph default
7096  space between the last author and the parenthesis setting off the year;
7097  
7098 \emph on
7099 e.
7100 \begin_inset space \thinspace{}
7101 \end_inset
7102
7103 g.
7104 \begin_inset space \space{}
7105 \end_inset
7106
7107
7108 \emph default
7109 type 
7110 \family typewriter
7111 Ressler(1992)
7112 \family default
7113 ,
7114  not 
7115 \family typewriter
7116 Ressler (1992)
7117 \family default
7118 .
7119  
7120 \end_layout
7121
7122 \begin_layout Enumerate
7123 Entering the references at all is not obvious.
7124  The easiest thing is to start typing your first reference at the end of the document,
7125  then mark it as type 
7126 \family sans
7127 References
7128 \family default
7129 .
7130  That will put a small gray box in front of what you just typed.
7131  Click on the box to fill in the rest of the information.
7132  For new references,
7133  go to the end of an existing reference and press return.
7134  That will create a new line with its own box,
7135  etc.
7136 \end_layout
7137
7138 \begin_layout Paragraph
7139 Including EPS files
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Even though AAS\SpecialChar TeX
7144  provides its own figure commands (
7145 \family typewriter
7146
7147 \backslash
7148 plotone
7149 \family default
7150 ,
7151  for example),
7152  I much prefer \SpecialChar LaTeX
7153 's standard figure commands (with the default graphicx).
7154  You can insert the 
7155 \family typewriter
7156
7157 \backslash
7158 plotone
7159 \family default
7160 ,
7161  etc.
7162 \begin_inset space ~
7163 \end_inset
7164
7165 commands as \SpecialChar TeX
7166  code into a Figure Float box if you desire,
7167  but I never have much luck getting the layout right.
7168  With the standard graphics,
7169  \SpecialChar LyX
7170  will insert a 
7171 \family typewriter
7172
7173 \backslash
7174 usepackage{graphicx}
7175 \family default
7176  command into the \SpecialChar LaTeX
7177  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7178  way,
7179  interspersing the figures in the text.
7180  I believe ApJ accepts figures exactly this way now;
7181  AJ might still use the 
7182 \begin_inset Quotes eld
7183 \end_inset
7184
7185 stack everything at the end
7186 \begin_inset Quotes erd
7187 \end_inset
7188
7189  technique.
7190 \end_layout
7191
7192 \begin_layout Paragraph
7193 Things I could have done,
7194  but didn't
7195 \end_layout
7196
7197 \begin_layout Standard
7198 There are a few 
7199 \begin_inset Quotes eld
7200 \end_inset
7201
7202 pretty
7203 \begin_inset Quotes erd
7204 \end_inset
7205
7206  things I could have implemented,
7207  but chose not to.
7208  For instance,
7209  I saw no point in double-spacing the text in the \SpecialChar LyX
7210  window,
7211  even though it is double-spaced in the paper manuscript.
7212  Also,
7213  I chose not to make separate layouts for the preprint and preprint2 styles.
7214  Since I assume you will spend most of your time in the plain manuscript mode anyway,
7215  I decided not to chew up more disk space with this.
7216  
7217 \end_layout
7218
7219 \begin_layout Subsubsection
7220 Final Caveat
7221 \end_layout
7222
7223 \begin_layout Standard
7224 Your mileage may vary.
7225  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
7226 ;
7227  the last 2% was the \SpecialChar LaTeX
7228  post-processing and a few cleanups.
7229  I have had no trouble with the submission process,
7230  and I'm sure the journals were never aware that there might be a difference.
7231  So,
7232  go forth and publish!
7233 \end_layout
7234
7235 \begin_layout Subsection
7236 Chess
7237 \end_layout
7238
7239 \begin_layout Standard
7240 The document class 
7241 \family sans
7242 Chess
7243 \family default
7244  uses the standard article document class together with the package 
7245 \family sans
7246 lyxskak
7247 \family default
7248  to facilitate the description of chess games.
7249  See 
7250 \family sans
7251 File\SpecialChar menuseparator
7252 Open Example\SpecialChar menuseparator
7253 Articles\SpecialChar menuseparator
7254 Chess
7255 \family default
7256  where you will find 
7257 \family sans
7258 Game 1
7259 \family default
7260  and 
7261 \family sans
7262 Game 2
7263 \family default
7264 .
7265 \end_layout
7266
7267 \begin_layout Subsection
7268 Elsevier
7269 \end_layout
7270
7271 \begin_layout Standard
7272 The document class 
7273 \family sans
7274 Elsevier
7275 \family default
7276  provides support for the 
7277 \family typewriter
7278 elsarticle
7279 \family default
7280  \SpecialChar LaTeX
7281  class for journals in the Elsevier publishing house.
7282  This provides the following additional environments:
7283  
7284 \family sans
7285 Title
7286 \begin_inset space ~
7287 \end_inset
7288
7289 footnote
7290 \family default
7291 ,
7292  
7293 \family sans
7294 Author
7295 \begin_inset space ~
7296 \end_inset
7297
7298 footnote
7299 \family default
7300 ,
7301  
7302 \family sans
7303 Corresponding
7304 \begin_inset space ~
7305 \end_inset
7306
7307 author
7308 \family default
7309 ,
7310  
7311 \family sans
7312 Address
7313 \family default
7314 ,
7315  
7316 \family sans
7317 Email
7318 \family default
7319  and 
7320 \family sans
7321 Keywords
7322 \family default
7323 .
7324 \end_layout
7325
7326 \begin_layout Standard
7327 A template is available in the menu 
7328 \family sans
7329 \bar under
7330 F
7331 \bar default
7332 ile\SpecialChar menuseparator
7333 New
7334 \begin_inset space ~
7335 \end_inset
7336
7337 fro
7338 \bar under
7339 m
7340 \bar default
7341
7342 \begin_inset space ~
7343 \end_inset
7344
7345 Template\SpecialChar menuseparator
7346 Articles\SpecialChar menuseparator
7347 Elsevier
7348 \family default
7349 .
7350  It has been customized with further environments and contains all the information you may need.
7351  However,
7352  the documentation is also available from 
7353 \begin_inset CommandInset href
7354 LatexCommand href
7355 name "CTAN"
7356 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7357 literal "false"
7358
7359 \end_inset
7360
7361 .
7362 \end_layout
7363
7364 \begin_layout Subsection
7365 Paper
7366 \end_layout
7367
7368 \begin_layout Standard
7369 The document class 
7370 \family sans
7371 Paper (Standard Class)
7372 \family default
7373  provides an alternative to the 
7374 \family sans
7375 Article (Standard Class)
7376 \family default
7377  document class.
7378  It provides similar functionality,
7379  but you might prefer this layout with sans serif sections,
7380  headings,
7381  and more.
7382 \end_layout
7383
7384 \begin_layout Subsection
7385 Rev\SpecialChar TeX
7386 4
7387 \end_layout
7388
7389 \begin_layout Standard
7390 by 
7391 \noun on
7392 Amir Karger
7393 \end_layout
7394
7395 \begin_layout Standard
7396 \begin_inset VSpace bigskip
7397 \end_inset
7398
7399
7400 \end_layout
7401
7402 \begin_layout Standard
7403 \noindent
7404 The 
7405 \family sans
7406 RevTeX (V.
7407 \begin_inset space \thinspace{}
7408 \end_inset
7409
7410 4)
7411 \family default
7412  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7413  4.0 (the 
7414 \begin_inset Formula $\beta$
7415 \end_inset
7416
7417  release of May,
7418  1999) class.
7419 \end_layout
7420
7421 \begin_layout Standard
7422 \SpecialChar LyX
7423  has a 
7424 \family sans
7425 REVTeX (obsolete)
7426 \family default
7427  textclass,
7428  which works with Rev\SpecialChar TeX
7429  3.1.
7430  However,
7431  v3.1 is basically obsolete,
7432  as it works with \SpecialChar LaTeX
7433  2.09.
7434  That means that it doesn't interact very well with \SpecialChar LyX
7435 ,
7436  which requires \SpecialChar LaTeX2e
7437 ,
7438  although it has been kludged to work.
7439  Since Rev\SpecialChar TeX
7440  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7441 ,
7442  \SpecialChar LyX
7443  with the 
7444 \family sans
7445 Revtex
7446 \begin_inset space ~
7447 \end_inset
7448
7449 4TeX (V.
7450 \begin_inset space \thinspace{}
7451 \end_inset
7452
7453 4)
7454 \family default
7455  textclass should also be pretty easy to use.
7456 \end_layout
7457
7458 \begin_layout Standard
7459 These documents are supposed to be used in 
7460 \emph on
7461 addition
7462 \emph default
7463  to the Rev\SpecialChar TeX
7464  4.0 documents,
7465  so we don't describe any of the special Rev\SpecialChar TeX
7466  macros,
7467  and assume you'll know what to put in the preamble if necessary.
7468 \end_layout
7469
7470 \begin_layout Subsubsection
7471 Installation
7472 \end_layout
7473
7474 \begin_layout Standard
7475 All you need to do is install Rev\SpecialChar TeX
7476  4,
7477  as described in the package's README file.
7478  The package can be found at The Rev\SpecialChar TeX
7479  4 Web Site 
7480 \begin_inset Flex URL
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484
7485 http://publish.aps.org/revtex4/
7486 \end_layout
7487
7488 \end_inset
7489
7490 .
7491  Install it somewhere that \SpecialChar LaTeX
7492  can see it.
7493  Test it by trying to \SpecialChar LaTeX
7494  a short Rev\SpecialChar TeX
7495  4 document in some random directory (i.
7496 \begin_inset space \thinspace{}
7497 \end_inset
7498
7499 e.
7500 \begin_inset space \space{}
7501 \end_inset
7502
7503 not the directory where you installed the class file.) Then,
7504  if you reconfigure \SpecialChar LyX
7505 ,
7506  it will find the class file and let you use the Rev\SpecialChar TeX
7507 4 textclass.
7508 \end_layout
7509
7510 \begin_layout Standard
7511 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7512  4 document using 
7513 \family typewriter
7514 tex2lyx
7515 \family default
7516 ,
7517  or to use the 
7518 \family sans
7519 Revtex
7520 \begin_inset space ~
7521 \end_inset
7522
7523 4
7524 \family default
7525  template,
7526  found in 
7527 \family sans
7528 File\SpecialChar menuseparator
7529 New From Templates\SpecialChar menuseparator
7530 Articles
7531 \family default
7532 .
7533 \end_layout
7534
7535 \begin_layout Subsubsection
7536 Preamble Matter
7537 \end_layout
7538
7539 \begin_layout Standard
7540 Optional arguments to 
7541 \family typewriter
7542
7543 \backslash
7544 documentclass
7545 \family default
7546 ,
7547  like 
7548 \begin_inset Quotes eld
7549 \end_inset
7550
7551 preprint
7552 \begin_inset Quotes erd
7553 \end_inset
7554
7555  and 
7556 \begin_inset Quotes eld
7557 \end_inset
7558
7559 aps
7560 \begin_inset Quotes erd
7561 \end_inset
7562
7563 ,
7564  go in the 
7565 \family sans
7566 Extra
7567 \begin_inset space ~
7568 \end_inset
7569
7570 Options
7571 \family default
7572  field in the 
7573 \family sans
7574 Document
7575 \begin_inset space ~
7576 \end_inset
7577
7578 Layout
7579 \family default
7580  dialog,
7581  as usual.
7582  Remember that in Rev\SpecialChar TeX
7583 ,
7584  at least one optional argument is required!
7585  
7586 \end_layout
7587
7588 \begin_layout Standard
7589 Other preamble matter,
7590  like 
7591 \family typewriter
7592
7593 \backslash
7594 draft
7595 \family default
7596  etc.
7597 \begin_inset space ~
7598 \end_inset
7599
7600 goes in the 
7601 \family sans
7602 \SpecialChar LaTeX
7603
7604 \begin_inset space ~
7605 \end_inset
7606
7607 Preamble
7608 \family default
7609  dialog,
7610  also as usual.
7611 \end_layout
7612
7613 \begin_layout Subsubsection
7614 Layouts
7615 \end_layout
7616
7617 \begin_layout Standard
7618 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7619 4.0.
7620  For example,
7621  the Email layout corresponds to 
7622 \family typewriter
7623
7624 \backslash
7625 email{}
7626 \family default
7627 .
7628  Note that (at least as of Rev\SpecialChar TeX
7629  4.0 Beta),
7630  the 
7631 \family sans
7632 Address
7633 \family default
7634  and 
7635 \family sans
7636 Affiliation
7637 \family default
7638  layouts are exactly equivalent,
7639  so you shouldn't need to use both.
7640 \begin_inset Foot
7641 status collapsed
7642
7643 \begin_layout Plain Layout
7644 In case you're curious,
7645  both were included so that 
7646 \family typewriter
7647 tex2lyx
7648 \family default
7649  would be able to translate both 
7650 \family typewriter
7651
7652 \backslash
7653 address
7654 \family default
7655  and 
7656 \family typewriter
7657
7658 \backslash
7659 affiliation
7660 \family default
7661 .
7662 \end_layout
7663
7664 \end_inset
7665
7666
7667 \end_layout
7668
7669 \begin_layout Subsubsection
7670 Important Notes
7671 \end_layout
7672
7673 \begin_layout Standard
7674 There are a couple of important unique aspects of Rev\SpecialChar TeX
7675  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
7676 .
7677 \end_layout
7678
7679 \begin_layout Standard
7680 In Rev\SpecialChar TeX
7681 ,
7682  the 
7683 \family typewriter
7684
7685 \backslash
7686 thanks
7687 \family default
7688  command goes 
7689 \emph on
7690 outside
7691 \emph default
7692  the 
7693 \family typewriter
7694
7695 \backslash
7696 author
7697 \family default
7698  command.
7699  The \SpecialChar LyX
7700  equivalent is that there is a separate Thanks layout.
7701  Do 
7702 \emph on
7703 not
7704 \emph default
7705  write footnotes in the 
7706 \family sans
7707 Author
7708 \family default
7709  layout,
7710  or weird things may happen.
7711  See the Rev\SpecialChar TeX
7712  4 documentation for more details.
7713 \end_layout
7714
7715 \begin_layout Standard
7716 Also,
7717  the 
7718 \family sans
7719 Author
7720 \begin_inset space ~
7721 \end_inset
7722
7723 Email
7724 \family default
7725 ,
7726  
7727 \family sans
7728 Author
7729 \begin_inset space ~
7730 \end_inset
7731
7732 URL
7733 \family default
7734 ,
7735  and 
7736 \family sans
7737 Thanks
7738 \family default
7739  layouts must be placed 
7740 \emph on
7741 in between
7742 \emph default
7743  the 
7744 \family sans
7745 Author
7746 \family default
7747  layout and the corresponding 
7748 \family sans
7749 Address
7750 \family default
7751  (or equivalent 
7752 \family sans
7753 Affiliation
7754 \family default
7755 ) layout.
7756  If you put the 
7757 \family sans
7758 Thanks
7759 \family default
7760  after the 
7761 \family sans
7762 Address
7763 \family default
7764 ,
7765  the \SpecialChar LaTeX
7766  won't compile.
7767 \end_layout
7768
7769 \begin_layout Subsection
7770 Springer Journals
7771 \end_layout
7772
7773 \begin_layout Standard
7774 All the 
7775 \family sans
7776 svj*
7777 \family default
7778  classes were replaced with a completely new class,
7779  
7780 \family sans
7781 sn-jnl.cls
7782 \family default
7783 .
7784  Please find information at 
7785 \begin_inset Flex URL
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789
7790 https://www.springernature.com/gp/authors/campaigns/latex-author-support
7791 \end_layout
7792
7793 \end_inset
7794
7795 .
7796  Native \SpecialChar LyX
7797  support is not available yet.
7798 \end_layout
7799
7800 \begin_layout Section
7801 Books
7802 \end_layout
7803
7804 \begin_layout Standard
7805 See also the document classes in the Collections (section
7806 \begin_inset space ~
7807 \end_inset
7808
7809
7810 \begin_inset CommandInset ref
7811 LatexCommand ref
7812 reference "sec:Collections"
7813 nolink "false"
7814
7815 \end_inset
7816
7817 ).
7818 \end_layout
7819
7820 \begin_layout Subsection
7821 Memoir
7822 \end_layout
7823
7824 \begin_layout Standard
7825 By 
7826 \noun on
7827 Jürgen Spitzmüller
7828 \end_layout
7829
7830 \begin_layout Subsubsection
7831 Overview
7832 \end_layout
7833
7834 \begin_layout Standard
7835 Memoir is a very powerful and constantly evolving class.
7836  It has been designed with regard to fictional and non-fictional literature.
7837  Its aim is to let the user have maximum control over the typesetting of his document.
7838  Memoir is based on the standard book class,
7839  but it can also emulate the article class (see below).
7840 \end_layout
7841
7842 \begin_layout Standard
7843 Peter Wilson,
7844  the developer of Memoir,
7845  is known as the author of lots of useful packages in the \SpecialChar LaTeX
7846  world.
7847  Most of them have been merged with Memoir.
7848  Therefore,
7849  it is much easier to layout the table of contents,
7850  appendices,
7851  chapter designs and such.
7852  \SpecialChar LyX
7853 ,
7854  though,
7855  does not support all of these goodies natively.
7856  Some of them might be added to forthcoming releases
7857 \begin_inset Foot
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861 You are invited to send suggestions to 
7862 \begin_inset Flex URL
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866
7867 lyx-devel@lists.lyx.org
7868 \end_layout
7869
7870 \end_inset
7871
7872 .
7873 \end_layout
7874
7875 \end_inset
7876
7877 ,
7878  lots will probably never be supported,
7879  due to the limitations of \SpecialChar LyX
7880 's framework.
7881  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7882  commands (\SpecialChar TeX
7883  code
7884 \begin_inset Foot
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 Cf.
7889 \begin_inset ERT
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893
7894
7895 \backslash
7896  
7897 \end_layout
7898
7899 \end_inset
7900
7901 section
7902 \begin_inset space ~
7903 \end_inset
7904
7905
7906 \begin_inset CommandInset ref
7907 LatexCommand ref
7908 reference "sec:Inserting-TeX-Code"
7909 nolink "false"
7910
7911 \end_inset
7912
7913  for details.
7914 \end_layout
7915
7916 \end_inset
7917
7918 ).
7919  In this section,
7920  we can only list those features that are natively supported by \SpecialChar LyX
7921 .
7922  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
7923 \begin_inset Foot
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 Cf.
7928 \begin_inset ERT
7929 status collapsed
7930
7931 \begin_layout Plain Layout
7932
7933
7934 \backslash
7935  
7936 \end_layout
7937
7938 \end_inset
7939
7940
7941 \begin_inset Flex URL
7942 status collapsed
7943
7944 \begin_layout Plain Layout
7945
7946 CTAN:/macros/latex/memoir/memman.pdf
7947 \end_layout
7948
7949 \end_inset
7950
7951 .
7952 \end_layout
7953
7954 \end_inset
7955
7956 ,
7957  which is not only a user guide for the class,
7958  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
7959 \end_layout
7960
7961 \begin_layout Subsubsection
7962 Basic features and restrictions
7963 \end_layout
7964
7965 \begin_layout Standard
7966 Memoir supports basically all features of the standard book classes.
7967  There are,
7968  however,
7969  some differences,
7970  as follows:
7971 \end_layout
7972
7973 \begin_layout Description
7974 Font
7975 \begin_inset space ~
7976 \end_inset
7977
7978 sizes:
7979  Memoir has a broader range of font sizes:
7980  9,
7981  10,
7982  11,
7983  12,
7984  14,
7985  17
7986 \end_layout
7987
7988 \begin_layout Description
7989 Page
7990 \begin_inset space ~
7991 \end_inset
7992
7993 style:
7994  The fancy page style is not supported,
7995  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
7996  which confuses \SpecialChar LaTeX
7997 ).
7998  Instead,
7999  Memoir comes with a number of its own page styles (see 
8000 \family sans
8001 Document\SpecialChar menuseparator
8002 Settings\SpecialChar menuseparator
8003 Page
8004 \begin_inset space ~
8005 \end_inset
8006
8007 Style
8008 \family default
8009 ).
8010  If you want to use these for the chapter pages,
8011  you have to use the command 
8012 \family typewriter
8013
8014 \backslash
8015 chapterstyle
8016 \family default
8017  in the main text or in preamble (e.
8018 \begin_inset space \thinspace{}
8019 \end_inset
8020
8021 g.
8022 \begin_inset space \space{}
8023 \end_inset
8024
8025
8026 \family typewriter
8027
8028 \backslash
8029 chapterstyle{companion}
8030 \family default
8031 ).
8032 \end_layout
8033
8034 \begin_layout Description
8035 Sectioning:
8036  Sectionings (chapter,
8037  section,
8038  subsection etc.) come with an optional argument in the standard classes.
8039  With this,
8040  you can specify an alternative version of the title for the table of contents and the headers (for instance,
8041  if the title is too long).
8042  In \SpecialChar LyX
8043 ,
8044  you can do this via 
8045 \family sans
8046 Insert\SpecialChar menuseparator
8047 Short
8048 \begin_inset space ~
8049 \end_inset
8050
8051 Title
8052 \family default
8053  at the beginning of a chapter/section.
8054  Memoir features a second optional argument and thus separates the table of contents from the header.
8055  You can define three variants of a title with this:
8056  one for the main text,
8057  one for the table of contents,
8058  and one for the headers.
8059  \SpecialChar LyX
8060  makes these available in form of specific 
8061 \family sans
8062 Short Title
8063 \family default
8064  variants in the 
8065 \family sans
8066 Insert
8067 \family default
8068  menu.
8069 \end_layout
8070
8071 \begin_layout Description
8072 TOC/LOT/LOF:
8073  In the standard classes (and in many other classes),
8074  the table of contents,
8075  the list of figures and the list of table start a new page automatically.
8076  Memoir does not follow this route.
8077  You have to insert a page break yourself,
8078  if you want to have one.
8079 \end_layout
8080
8081 \begin_layout Description
8082 Titlepage:
8083  For some unknown reason,
8084  Memoir uses pagination on the title page (in the standard classes,
8085  title pages are 
8086 \begin_inset Quotes eld
8087 \end_inset
8088
8089 empty
8090 \begin_inset Quotes erd
8091 \end_inset
8092
8093 ).
8094  If you want an empty title page,
8095  type 
8096 \family typewriter
8097
8098 \backslash
8099 aliaspagestyle{title}{empty}
8100 \family default
8101  in the preamble.
8102 \end_layout
8103
8104 \begin_layout Description
8105 Article:
8106  With the class option 
8107 \emph on
8108 article
8109 \emph default
8110  (to be inserted in 
8111 \family sans
8112 Document\SpecialChar menuseparator
8113 Settings\SpecialChar menuseparator
8114 Class Settings\SpecialChar menuseparator
8115 Custom
8116 \begin_inset space ~
8117 \end_inset
8118
8119 Options
8120 \family default
8121 ),
8122  you can emulate article style.
8123  That is,
8124  counters (footnotes,
8125  figures,
8126  tables etc.) will not be reset on new chapters,
8127  chapters don't start a new page (but are—
8128 in contrary to 
8129 \begin_inset Quotes eld
8130 \end_inset
8131
8132 real
8133 \begin_inset Quotes erd
8134 \end_inset
8135
8136  article classes—
8137 still allowed),
8138  parts,
8139  though,
8140  use their own page,
8141  as in book.
8142 \end_layout
8143
8144 \begin_layout Description
8145 Oldfontcommands:
8146  By default,
8147  Memoir does not allow the use of the deprecated font commands,
8148  which have been used in the old \SpecialChar LaTeX
8149  version 2.09 (e.
8150 \begin_inset space \thinspace{}
8151 \end_inset
8152
8153 g.
8154 \begin_inset space \space{}
8155 \end_inset
8156
8157
8158 \family typewriter
8159
8160 \backslash
8161 rm
8162 \family default
8163 ,
8164  
8165 \family typewriter
8166
8167 \backslash
8168 it
8169 \family default
8170 ).
8171  It produces an error and stops \SpecialChar LaTeX
8172  whenever such a command appears.
8173  The class option 
8174 \emph on
8175 oldfontcommands
8176 \emph default
8177  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
8178 ).
8179  Since a lot of packages and particularly Bib\SpecialChar TeX
8180  style files are still using those commands,
8181  we have decided to use this option by default.
8182 \end_layout
8183
8184 \begin_layout Subsubsection
8185 Extra features
8186 \end_layout
8187
8188 \begin_layout Standard
8189 We will only describe the features supported by \SpecialChar LyX
8190  (which is not much currently).
8191  Please consult the Memoir manual
8192 \begin_inset Foot
8193 status collapsed
8194
8195 \begin_layout Plain Layout
8196 Cf.
8197 \begin_inset ERT
8198 status collapsed
8199
8200 \begin_layout Plain Layout
8201
8202
8203 \backslash
8204  
8205 \end_layout
8206
8207 \end_inset
8208
8209
8210 \begin_inset Flex URL
8211 status collapsed
8212
8213 \begin_layout Plain Layout
8214
8215 CTAN:/macros/latex/memoir/memman.pdf
8216 \end_layout
8217
8218 \end_inset
8219
8220 .
8221 \end_layout
8222
8223 \end_inset
8224
8225  for details.
8226 \end_layout
8227
8228 \begin_layout Description
8229 Abstract:
8230  You may wonder why an abstract is an extra feature.
8231  Well,
8232  it is in book class.
8233  Usually books don't have abstracts.
8234  Memoir,
8235  however,
8236  has.
8237  You can use it wherever and how often you like.
8238 \end_layout
8239
8240 \begin_layout Description
8241 Chapterprecis:
8242  You may know this older typesetting style:
8243  The contents of a chapter are summarized below the title and also in the table of contents (e.
8244 \begin_inset space \thinspace{}
8245 \end_inset
8246
8247 g.
8248 \begin_inset space \space{}
8249 \end_inset
8250
8251
8252 \emph on
8253 Our hero arrives in Troia;
8254  he loses some friends;
8255  he finds others
8256 \emph default
8257 ).
8258  Chapterprecis does exactly this.
8259  It is therefore only sensible below a chapter.
8260 \end_layout
8261
8262 \begin_layout Description
8263 Epigraph:
8264  An epigraph is a smart slogan or motto at the beginning of a chapter.
8265  The epigraph environment provides an elegant way of typesetting such a motto.
8266  The motto itself (text) and its (optional) author (source) are divided by a short line.
8267  The author (source) can be inserted via 
8268 \family sans
8269 Insert\SpecialChar menuseparator
8270 Epigraph Source
8271 \family default
8272 \emph on
8273 .
8274 \end_layout
8275
8276 \begin_layout Description
8277 Poemtitle:
8278  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
8279  \SpecialChar LyX
8280  can only support a few of them.
8281  One is poemtitle,
8282  which is a centered title for poems,
8283  which will also be added to the table of contents (verse is the standard environment for poems.
8284  Memoir has some enhanced versions of verse,
8285  but you need to use \SpecialChar TeX
8286  code,
8287  because they have to be nested inside regular verse environments,
8288  which is not possible with \SpecialChar LyX
8289 ).
8290 \end_layout
8291
8292 \begin_layout Description
8293 Poemtitle*:
8294  Same as poemtitle,
8295  but it adds no entry to the table of contents.
8296 \end_layout
8297
8298 \begin_layout Subsection
8299 Recipe Book
8300 \end_layout
8301
8302 \begin_layout Standard
8303 The document class 
8304 \family sans
8305 Recipe Book
8306 \family default
8307  uses the 
8308 \family sans
8309 KOMA-Script Book
8310 \family default
8311  document class but adds two environments:
8312 \end_layout
8313
8314 \begin_layout Description
8315 Recipe a numbered section environment at the 
8316 \family typewriter
8317 Subsubsection
8318 \family default
8319  level which generates a bold centered heading above a double horizontal rule
8320 \end_layout
8321
8322 \begin_layout Description
8323 Ingredients a 
8324 \family typewriter
8325 Description
8326 \family default
8327  environment where 
8328 \series bold
8329 \emph on
8330 Ingredients
8331 \series default
8332 \emph default
8333  are what are being described and the environment ends with a horizontal rule.
8334 \end_layout
8335
8336 \begin_layout Standard
8337
8338 \family sans
8339 File\SpecialChar menuseparator
8340 Open Example\SpecialChar menuseparator
8341 Books\SpecialChar menuseparator
8342 Recipe Book
8343 \family default
8344  illustrates its use.
8345 \end_layout
8346
8347 \begin_layout Standard
8348 The class is designed for typesetting one or two recipes per page.
8349  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient.
8350  
8351 \end_layout
8352
8353 \begin_layout Section
8354 Curricula vitae
8355 \end_layout
8356
8357 \begin_layout Subsection
8358 Europass (2013)
8359 \end_layout
8360
8361 \begin_layout Standard
8362 The document class 
8363 \family sans
8364 Europass (2013)
8365 \family default
8366  provides the 
8367 \family typewriter
8368 europasscv.cls
8369 \family default
8370  document class,
8371  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
8372  
8373 \family sans
8374 File\SpecialChar menuseparator
8375 Open Example\SpecialChar menuseparator
8376 Curricula Vitae\SpecialChar menuseparator
8377 Europass (2013)
8378 \family default
8379  offers guidance on its use.
8380  Its documentation is available from 
8381 \begin_inset CommandInset href
8382 LatexCommand href
8383 name "CTAN"
8384 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8385 literal "false"
8386
8387 \end_inset
8388
8389 .
8390 \end_layout
8391
8392 \begin_layout Subsection
8393 Europe CV
8394 \end_layout
8395
8396 \begin_layout Standard
8397 The document class 
8398 \family sans
8399 Europe CV
8400 \family default
8401  provides the 
8402 \family typewriter
8403 europecv.cls
8404 \family default
8405  document class,
8406  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
8407  
8408 \family sans
8409 File\SpecialChar menuseparator
8410 Open Example\SpecialChar menuseparator
8411 Curricula Vitae\SpecialChar menuseparator
8412 Europe CV
8413 \family default
8414  offers guidance on its use.
8415  Its documentation is available from 
8416 \begin_inset CommandInset href
8417 LatexCommand href
8418 name "CTAN"
8419 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8420 literal "false"
8421
8422 \end_inset
8423
8424 .
8425 \end_layout
8426
8427 \begin_layout Subsection
8428 Modern CV
8429 \end_layout
8430
8431 \begin_layout Standard
8432 The document class 
8433 \family sans
8434 Modern CV
8435 \family default
8436  provides the 
8437 \family typewriter
8438 moderncv.cls
8439 \family default
8440  document class.
8441  This allows the creation of customizable CVs.
8442  
8443 \family sans
8444 File\SpecialChar menuseparator
8445 Open Example\SpecialChar menuseparator
8446 Curricula Vitae\SpecialChar menuseparator
8447 Modern CV
8448 \family default
8449  offers guidance on its use.
8450  Its documentation is available from 
8451 \begin_inset CommandInset href
8452 LatexCommand href
8453 name "CTAN"
8454 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8455 literal "false"
8456
8457 \end_inset
8458
8459 .
8460 \end_layout
8461
8462 \begin_layout Subsection
8463 Simple CV
8464 \end_layout
8465
8466 \begin_layout Standard
8467 The document class 
8468 \family sans
8469 Simple CV
8470 \family default
8471  provides the 
8472 \family typewriter
8473 simplecv.cls
8474 \family default
8475  document class,
8476  originally developed for use with \SpecialChar LyX
8477 .
8478  
8479 \family sans
8480 File\SpecialChar menuseparator
8481 Open Example\SpecialChar menuseparator
8482 Curricula Vitae\SpecialChar menuseparator
8483 Simple CV
8484 \family default
8485  offers guidance on its use.
8486  Its documentation is available from 
8487 \begin_inset CommandInset href
8488 LatexCommand href
8489 name "CTAN"
8490 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8491 literal "false"
8492
8493 \end_inset
8494
8495
8496 \end_layout
8497
8498 \begin_layout Section
8499 Letters
8500 \end_layout
8501
8502 \begin_layout Standard
8503 See also the 
8504 \family sans
8505 KOMA-Script Letter (V.
8506  2)
8507 \family default
8508  (section
8509 \begin_inset space ~
8510 \end_inset
8511
8512
8513 \begin_inset CommandInset ref
8514 LatexCommand ref
8515 reference "subsec:The-new-letter"
8516 nolink "false"
8517
8518 \end_inset
8519
8520 ),
8521  the 
8522 \family sans
8523 Letter (Standard Class with Extra Font Sizes)
8524 \family default
8525  (section
8526 \begin_inset space ~
8527 \end_inset
8528
8529
8530 \begin_inset CommandInset ref
8531 LatexCommand ref
8532 reference "subsec:Extra-font-sizes"
8533 nolink "false"
8534
8535 \end_inset
8536
8537 ) and the 
8538 \family sans
8539 Hebrew Letter
8540 \family default
8541  (section
8542 \begin_inset space ~
8543 \end_inset
8544
8545
8546 \begin_inset CommandInset ref
8547 LatexCommand ref
8548 reference "subsec:Hebrew"
8549 plural "false"
8550 caps "false"
8551 noprefix "false"
8552 nolink "false"
8553
8554 \end_inset
8555
8556 ) document classes .
8557 \end_layout
8558
8559 \begin_layout Subsection
8560 DIN-Brief
8561 \end_layout
8562
8563 \begin_layout Standard
8564 The document class 
8565 \family sans
8566 DIN-Brief
8567 \family default
8568  provides support for the 
8569 \family typewriter
8570 dinbrief.cls
8571 \family default
8572  \SpecialChar LaTeX
8573  class for writing letters according to the standards of the German Standards Institute (
8574 \emph on
8575 Deutsches Institut für Normung,
8576  DIN)
8577 \emph default
8578 .
8579  The file in the menu 
8580 \family sans
8581 \bar under
8582 F
8583 \bar default
8584 ile\SpecialChar menuseparator
8585 New
8586 \begin_inset space ~
8587 \end_inset
8588
8589 fro
8590 \bar under
8591 m
8592 \bar default
8593
8594 \begin_inset space ~
8595 \end_inset
8596
8597 Template\SpecialChar menuseparator
8598 Letters\SpecialChar menuseparator
8599 DIN-Brief
8600 \family default
8601  offers guidance on its use.
8602  The documentation is available from 
8603 \begin_inset CommandInset href
8604 LatexCommand href
8605 name "CTAN"
8606 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8607 literal "false"
8608
8609 \end_inset
8610
8611 .
8612 \end_layout
8613
8614 \begin_layout Subsection
8615 French letter
8616 \begin_inset space \space{}
8617 \end_inset
8618
8619 (frletter)
8620 \end_layout
8621
8622 \begin_layout Standard
8623 The document class 
8624 \family sans
8625 French letter
8626 \begin_inset space \space{}
8627 \end_inset
8628
8629 (frletter)
8630 \family default
8631  provides support for the 
8632 \family typewriter
8633 frletter.cls
8634 \family default
8635  \SpecialChar LaTeX
8636  class for writing letters according to French conventions.
8637  The file in the menu 
8638 \family sans
8639 \bar under
8640 F
8641 \bar default
8642 ile\SpecialChar menuseparator
8643 New
8644 \begin_inset space ~
8645 \end_inset
8646
8647 fro
8648 \bar under
8649 m
8650 \bar default
8651
8652 \begin_inset space ~
8653 \end_inset
8654
8655 Template\SpecialChar menuseparator
8656 Letters\SpecialChar menuseparator
8657 French letter
8658 \begin_inset space \space{}
8659 \end_inset
8660
8661 (frletter)
8662 \family default
8663  offers guidance on its use.
8664 \end_layout
8665
8666 \begin_layout Subsection
8667 French letter
8668 \begin_inset space \space{}
8669 \end_inset
8670
8671 (lettre)
8672 \end_layout
8673
8674 \begin_layout Standard
8675 The document class 
8676 \family sans
8677 French letter
8678 \begin_inset space \space{}
8679 \end_inset
8680
8681 (lettre)
8682 \family default
8683  provides support for 
8684 \family typewriter
8685 lettre.cls
8686 \family default
8687 ,
8688  another \SpecialChar LaTeX
8689  class for writing letters,
8690  but also faxes and envelopes,
8691  in French.
8692  The file in the menu 
8693 \family sans
8694 \bar under
8695 F
8696 \bar default
8697 ile\SpecialChar menuseparator
8698 New
8699 \begin_inset space ~
8700 \end_inset
8701
8702 fro
8703 \bar under
8704 m
8705 \bar default
8706
8707 \begin_inset space ~
8708 \end_inset
8709
8710 Template\SpecialChar menuseparator
8711 Letters\SpecialChar menuseparator
8712 French letter
8713 \begin_inset space \space{}
8714 \end_inset
8715
8716 (lettre)
8717 \family default
8718  offers guidance on its use.
8719  The documentation is available from 
8720 \begin_inset CommandInset href
8721 LatexCommand href
8722 name "CTAN"
8723 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
8724 literal "false"
8725
8726 \end_inset
8727
8728 .
8729 \end_layout
8730
8731 \begin_layout Subsection
8732 G-Brief (V.
8733 \begin_inset space \thinspace{}
8734 \end_inset
8735
8736 2)
8737 \end_layout
8738
8739 \begin_layout Standard
8740 The document class 
8741 \family sans
8742 G-Brief (V.
8743 \begin_inset space \thinspace{}
8744 \end_inset
8745
8746 2)
8747 \family default
8748  provides support for the 
8749 \family typewriter
8750 g-brief2.cls
8751 \family default
8752  \SpecialChar LaTeX
8753  class for writing letters in German.
8754  The file in the menu 
8755 \family sans
8756 \bar under
8757 F
8758 \bar default
8759 ile\SpecialChar menuseparator
8760 New
8761 \begin_inset space ~
8762 \end_inset
8763
8764 fro
8765 \bar under
8766 m
8767 \bar default
8768
8769 \begin_inset space ~
8770 \end_inset
8771
8772 Template\SpecialChar menuseparator
8773 Letters\SpecialChar menuseparator
8774 G-Brief (V.
8775 \begin_inset space \thinspace{}
8776 \end_inset
8777
8778 2)
8779 \family default
8780  offers guidance on its use.
8781  The documentation is available from 
8782 \begin_inset CommandInset href
8783 LatexCommand href
8784 name "CTAN"
8785 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
8786 literal "false"
8787
8788 \end_inset
8789
8790 .
8791 \end_layout
8792
8793 \begin_layout Section
8794 Presentations
8795 \end_layout
8796
8797 \begin_layout Subsection
8798 Beamer
8799 \end_layout
8800
8801 \begin_layout Standard
8802 The document class 
8803 \family sans
8804 Beamer
8805 \family default
8806  uses the 
8807 \family typewriter
8808 beamer.cls
8809 \family default
8810  \SpecialChar LaTeX
8811  class for creating presentations.
8812  The file in the menu 
8813 \family sans
8814 \bar under
8815 F
8816 \bar default
8817 ile\SpecialChar menuseparator
8818 New
8819 \begin_inset space ~
8820 \end_inset
8821
8822 fro
8823 \bar under
8824 m
8825 \bar default
8826
8827 \begin_inset space ~
8828 \end_inset
8829
8830 Template\SpecialChar menuseparator
8831 Presentations\SpecialChar menuseparator
8832 Beamer
8833 \family default
8834  or 
8835 \family sans
8836 Help\SpecialChar menuseparator
8837 Specific Manuals\SpecialChar menuseparator
8838 Beamer Presentations
8839 \family default
8840  offers guidance on its use.
8841  The documentation is available from 
8842 \begin_inset CommandInset href
8843 LatexCommand href
8844 name "CTAN"
8845 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8846 literal "false"
8847
8848 \end_inset
8849
8850 .
8851 \end_layout
8852
8853 \begin_layout Subsection
8854
8855 \family sans
8856 Foil\SpecialChar TeX
8857
8858 \family default
8859
8860 \begin_inset CommandInset label
8861 LatexCommand label
8862 name "sec:foiltex"
8863
8864 \end_inset
8865
8866
8867 \end_layout
8868
8869 \begin_layout Standard
8870 Original by 
8871 \noun on
8872 Allan Rae
8873 \noun default
8874 ;
8875  updated by the \SpecialChar LyX
8876  Team
8877 \end_layout
8878
8879 \begin_layout Subsubsection
8880 Introduction
8881 \end_layout
8882
8883 \begin_layout Standard
8884 The document class 
8885 \family sans
8886 Foil\SpecialChar TeX
8887
8888 \family default
8889  uses the 
8890 \family typewriter
8891 foils.cls
8892 \family default
8893  document class to make slides for overhead projectors.
8894  There are two document classes that can do this:
8895  the 
8896 \family sans
8897 Slides
8898 \family default
8899  document class (section
8900 \begin_inset space ~
8901 \end_inset
8902
8903
8904 \begin_inset CommandInset ref
8905 LatexCommand ref
8906 reference "sec:slitex"
8907 plural "false"
8908 caps "false"
8909 noprefix "false"
8910 nolink "false"
8911
8912 \end_inset
8913
8914 ) and the 
8915 \family sans
8916 Foil\SpecialChar TeX
8917
8918 \family default
8919  slides class.
8920  As of 2023 the former has continued to be maintained whereas 
8921 \family sans
8922 Foil\SpecialChar TeX
8923
8924 \family default
8925  has not been maintained since 2008.
8926  This section documents the latter.
8927  If your machine doesn’t have the 
8928 \family sans
8929 Foil\SpecialChar TeX
8930
8931 \family default
8932  document class installed,
8933  you’ll probably have to use the 
8934 \family sans
8935 Slides
8936 \family default
8937  document class.
8938  If you want to install the 
8939 \family typewriter
8940 foils.cls
8941 \family default
8942  document class,
8943  it is available from 
8944 \begin_inset CommandInset href
8945 LatexCommand href
8946 name "CTAN"
8947 target "https://www.ctan.org/pkg/foiltex"
8948 literal "false"
8949
8950 \end_inset
8951
8952 .
8953  You should also read the 
8954 \emph on
8955 Installing New Document Classes
8956 \emph default
8957  chapter of the 
8958 \emph on
8959 Customization
8960 \emph default
8961  manual.
8962 \end_layout
8963
8964 \begin_layout Subsubsection
8965 Getting Started
8966 \end_layout
8967
8968 \begin_layout Standard
8969 Obviously,
8970  to use this document class,
8971  you need to select 
8972 \family sans
8973 FoilTeX
8974 \family default
8975  from the 
8976 \family sans
8977 Class
8978 \family default
8979  entry in the 
8980 \family sans
8981 Document
8982 \begin_inset space ~
8983 \end_inset
8984
8985 Layout
8986 \family default
8987  dialog.
8988  There are some settings in the 
8989 \family sans
8990 Document
8991 \begin_inset space ~
8992 \end_inset
8993
8994 Layout
8995 \family default
8996  dialog that you should know about that are specific to this class:
8997 \end_layout
8998
8999 \begin_layout Itemize
9000 Don't change the options 
9001 \family sans
9002 Sides
9003 \family default
9004  and 
9005 \family sans
9006 Columns
9007 \family default
9008  on the 
9009 \family sans
9010 Document
9011 \begin_inset space ~
9012 \end_inset
9013
9014 Layout
9015 \family default
9016  dialog.
9017  They're ignored by the 
9018 \family sans
9019 foils
9020 \family default
9021  class.
9022 \end_layout
9023
9024 \begin_layout Itemize
9025 The default font size is 20
9026 \begin_inset space \thinspace{}
9027 \end_inset
9028
9029 pt with the other options being 17
9030 \begin_inset space \thinspace{}
9031 \end_inset
9032
9033 pt,
9034  25
9035 \begin_inset space \thinspace{}
9036 \end_inset
9037
9038 pt and 30
9039 \begin_inset space \thinspace{}
9040 \end_inset
9041
9042 pt.
9043 \end_layout
9044
9045 \begin_layout Itemize
9046 The default font is 
9047 \family sans
9048 sans
9049 \family default
9050  
9051 \family sans
9052 serif
9053 \family default
9054  but all math equations are still typeset in the usual roman font.
9055 \end_layout
9056
9057 \begin_layout Itemize
9058
9059 \family sans
9060 Foil\SpecialChar TeX
9061
9062 \family default
9063  supports A4 and Letter paper sizes as well as a special size for working with 35
9064 \begin_inset space \thinspace{}
9065 \end_inset
9066
9067 mm slides.
9068  It doesn't support A5,
9069  B5,
9070  legal or executive paper sizes.
9071 \end_layout
9072
9073 \begin_layout Itemize
9074 Don't bother changing the 
9075 \family sans
9076 Float Placement
9077 \family default
9078  settings because they are ignored anyway.
9079  All floats appear where they are defined in the text.
9080 \end_layout
9081
9082 \begin_layout Itemize
9083 The 
9084 \family sans
9085 Pagestyle
9086 \family default
9087  setting behaves a bit differently for this class.
9088  
9089 \family sans
9090 Foil\SpecialChar TeX
9091
9092 \family default
9093  provides extensive footer and header capabilities including a user-defined logo.
9094  See section
9095 \begin_inset space ~
9096 \end_inset
9097
9098
9099 \begin_inset CommandInset ref
9100 LatexCommand ref
9101 reference "sec:foilfoot"
9102 nolink "false"
9103
9104 \end_inset
9105
9106  for more details.
9107  The title page is treated differently to all other pages in the document and is 
9108 \emph on
9109 always
9110 \emph default
9111  unnumbered and 
9112 \emph on
9113 always
9114 \emph default
9115  has the logo centered at the bottom of the page (if one is defined).
9116  The possible page style choices and what they do are as follows:
9117 \end_layout
9118
9119 \begin_deeper
9120 \begin_layout Labeling
9121 \labelwidthstring MMMMMMM
9122
9123 \family sans
9124 \series bold
9125 empty
9126 \family default
9127 \series default
9128  The final output contains no page numbers,
9129  or other headers or footers (except footnotes of course).
9130  
9131 \end_layout
9132
9133 \begin_layout Labeling
9134 \labelwidthstring MMMMMMM
9135
9136 \family sans
9137 \series bold
9138 plain
9139 \family default
9140 \series default
9141  The final output contains page numbers centered at the bottom of the page.
9142  No other headings or footers (other than footnotes).
9143 \end_layout
9144
9145 \begin_layout Labeling
9146 \labelwidthstring MMMMMMM
9147
9148 \series bold
9149 foilheadings
9150 \series default
9151  Page numbers in lower right corner.
9152  Additional headers and footers are also shown.
9153  This is also the default.
9154 \end_layout
9155
9156 \begin_layout Labeling
9157 \labelwidthstring MMMMMMM
9158
9159 \series bold
9160 fancy
9161 \series default
9162  Gives you access to the 
9163 \family sans
9164 fancyheadings
9165 \family default
9166  package although its use with 
9167 \family sans
9168 Foil\SpecialChar TeX
9169
9170 \family default
9171  is discouraged by the writer of the 
9172 \family sans
9173 Foil\SpecialChar TeX
9174
9175 \family default
9176  package because of some potential page layout clashes.
9177 \end_layout
9178
9179 \end_deeper
9180 \begin_layout Paragraph
9181 Extra Options
9182 \end_layout
9183
9184 \begin_layout Standard
9185 The following options may be used in the extra class options in the 
9186 \family sans
9187 Document\SpecialChar menuseparator
9188 Settings
9189 \family default
9190  dialog.
9191 \end_layout
9192
9193 \begin_layout Labeling
9194 \labelwidthstring MMMMMMx
9195
9196 \series bold
9197 35mmSlide
9198 \series default
9199  This sets up the page layout for 7.33
9200 \begin_inset space \thinspace{}
9201 \end_inset
9202
9203 in by 11
9204 \begin_inset space \thinspace{}
9205 \end_inset
9206
9207 in paper,
9208  which is about the same aspect ratio as a 35
9209 \begin_inset space \thinspace{}
9210 \end_inset
9211
9212 mm slide,
9213  making it a bit easier to work with this medium.
9214 \end_layout
9215
9216 \begin_layout Labeling
9217 \labelwidthstring MMMMMMx
9218
9219 \series bold
9220 headrule
9221 \series default
9222  Places a rule across the page below the header on every page except the title page.
9223 \end_layout
9224
9225 \begin_layout Labeling
9226 \labelwidthstring MMMMMMx
9227
9228 \series bold
9229 footrule
9230 \series default
9231  Places a rule across the page above the footer on every page except the title page.
9232 \end_layout
9233
9234 \begin_layout Labeling
9235 \labelwidthstring MMMMMMx
9236
9237 \series bold
9238 dvips
9239 \series default
9240  This is automatically set each time you create a new 
9241 \family sans
9242 foils
9243 \family default
9244  document.
9245  This option tells 
9246 \family sans
9247 Foil\SpecialChar TeX
9248
9249 \family default
9250  to use the dvips driver to rotate those pages that are set as landscape foils.
9251 \end_layout
9252
9253 \begin_layout Labeling
9254 \labelwidthstring MMMMMMx
9255
9256 \series bold
9257 landscape
9258 \series default
9259  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
9260  Thus if you use this option you need to use an external program to rotate each page or feed your paper through your printer as landscape.
9261  Note that this option effectively reverses the roles of the 
9262 \family sans
9263 Foilhead
9264 \family default
9265  and 
9266 \family sans
9267 Rotatefoilhead
9268 \family default
9269  environments (don't worry these are described in the next section).
9270 \end_layout
9271
9272 \begin_layout Labeling
9273 \labelwidthstring MMMMMMx
9274
9275 \series bold
9276 leqno
9277 \series default
9278  Equation numbers on the left.
9279 \end_layout
9280
9281 \begin_layout Labeling
9282 \labelwidthstring MMMMMMx
9283
9284 \series bold
9285 fleqn
9286 \series default
9287  Flush-left equations.
9288 \end_layout
9289
9290 \begin_layout Subsubsection
9291 Supported Environments
9292 \end_layout
9293
9294 \begin_layout Standard
9295 Most of the environments commonly supported in other classes are also supported by the 
9296 \family sans
9297 Foil\SpecialChar TeX
9298
9299 \family default
9300  class.
9301  There are several additional environments provided by 
9302 \family sans
9303 Foil\SpecialChar TeX
9304
9305 \family default
9306  as well as a couple added by \SpecialChar LyX
9307 .
9308  The following environments are shared with other classes:
9309 \end_layout
9310
9311 \begin_layout Standard
9312 \begin_inset Flex Multiple Columns
9313 status open
9314
9315 \begin_layout Itemize
9316
9317 \family sans
9318 Standard
9319 \end_layout
9320
9321 \begin_layout Itemize
9322
9323 \family sans
9324 Itemize
9325 \end_layout
9326
9327 \begin_layout Itemize
9328
9329 \family sans
9330 Enumerate
9331 \end_layout
9332
9333 \begin_layout Itemize
9334
9335 \family sans
9336 Description
9337 \end_layout
9338
9339 \begin_layout Itemize
9340
9341 \family sans
9342 List
9343 \end_layout
9344
9345 \begin_layout Itemize
9346
9347 \family sans
9348 \SpecialChar LyX
9349 -Code
9350 \end_layout
9351
9352 \begin_layout Itemize
9353
9354 \family sans
9355 Verse
9356 \end_layout
9357
9358 \begin_layout Itemize
9359
9360 \family sans
9361 Quote
9362 \end_layout
9363
9364 \begin_layout Itemize
9365
9366 \family sans
9367 Quotation
9368 \end_layout
9369
9370 \begin_layout Itemize
9371
9372 \family sans
9373 Title
9374 \end_layout
9375
9376 \begin_layout Itemize
9377
9378 \family sans
9379 Author
9380 \end_layout
9381
9382 \begin_layout Itemize
9383
9384 \family sans
9385 Date
9386 \end_layout
9387
9388 \begin_layout Itemize
9389
9390 \family sans
9391 Abstract
9392 \end_layout
9393
9394 \begin_layout Itemize
9395
9396 \family sans
9397 Bibliography
9398 \end_layout
9399
9400 \begin_layout Itemize
9401
9402 \family sans
9403 Address
9404 \end_layout
9405
9406 \begin_layout Itemize
9407
9408 \family sans
9409 RightAddress
9410 \end_layout
9411
9412 \end_inset
9413
9414
9415 \end_layout
9416
9417 \begin_layout Standard
9418 That is,
9419  all the major environments apart from the sectioning environments.
9420  Since foils are essentially self-contained sections,
9421  with a title and body,
9422  
9423 \family sans
9424 Foil\SpecialChar TeX
9425
9426 \family default
9427  provides specific commands for starting new foils and these are:
9428 \end_layout
9429
9430 \begin_layout Itemize
9431
9432 \family sans
9433 Foilhead
9434 \end_layout
9435
9436 \begin_layout Itemize
9437
9438 \family sans
9439 Rotatefoilhead
9440 \end_layout
9441
9442 \begin_layout Standard
9443 \SpecialChar LyX
9444  also provides slightly modified versions of these two environments called:
9445 \end_layout
9446
9447 \begin_layout Itemize
9448
9449 \family sans
9450 ShortFoilhead
9451 \end_layout
9452
9453 \begin_layout Itemize
9454
9455 \family sans
9456 ShortRotatefoilhead
9457 \end_layout
9458
9459 \begin_layout Standard
9460 and the differences will be explained in the next section.
9461 \end_layout
9462
9463 \begin_layout Standard
9464 Since foils are often used in presenting ideas or new theorems and such 
9465 \family sans
9466 Foil\SpecialChar TeX
9467
9468 \family default
9469  also provides a comprehensive box of goodies for presenting them:
9470 \end_layout
9471
9472 \begin_layout Standard
9473 \begin_inset Flex Multiple Columns
9474 status open
9475
9476 \begin_layout Itemize
9477
9478 \family sans
9479 Theorem
9480 \end_layout
9481
9482 \begin_layout Itemize
9483
9484 \family sans
9485 Lemma
9486 \end_layout
9487
9488 \begin_layout Itemize
9489
9490 \family sans
9491 Corollary
9492 \end_layout
9493
9494 \begin_layout Itemize
9495
9496 \family sans
9497 Proposition
9498 \end_layout
9499
9500 \begin_layout Itemize
9501
9502 \family sans
9503 Definition
9504 \end_layout
9505
9506 \begin_layout Itemize
9507
9508 \family sans
9509 Proof
9510 \end_layout
9511
9512 \begin_layout Itemize
9513
9514 \family sans
9515 Theorem*
9516 \end_layout
9517
9518 \begin_layout Itemize
9519
9520 \family sans
9521 Lemma*
9522 \end_layout
9523
9524 \begin_layout Itemize
9525
9526 \family sans
9527 Corollary*
9528 \end_layout
9529
9530 \begin_layout Itemize
9531
9532 \family sans
9533 Proposition*
9534 \end_layout
9535
9536 \begin_layout Itemize
9537
9538 \family sans
9539 Definition*
9540 \end_layout
9541
9542 \end_inset
9543
9544
9545 \end_layout
9546
9547 \begin_layout Standard
9548 The starred versions are unnumbered while the unstarred versions are numbered.
9549  There are also two list environments added by \SpecialChar LyX
9550  and these are:
9551 \end_layout
9552
9553 \begin_layout Itemize
9554
9555 \family sans
9556 TickList
9557 \end_layout
9558
9559 \begin_layout Itemize
9560
9561 \family sans
9562 CrossList
9563 \end_layout
9564
9565 \begin_layout Standard
9566
9567 \family sans
9568 Foil\SpecialChar TeX
9569
9570 \family default
9571  provides some powerful header and footer capabilities that are best set in the preamble although they may be set at any point in a document.
9572  If you want to change these settings in your document the best place to do so is at the very top of a foil,
9573  i.
9574 \begin_inset space \thinspace{}
9575 \end_inset
9576
9577 e.
9578 \emph on
9579
9580 \begin_inset space \space{}
9581 \end_inset
9582
9583
9584 \emph default
9585 straight after the foilhead.
9586 \end_layout
9587
9588 \begin_layout Standard
9589 For this purpose,
9590  the following command styles are provided [
9591 \shape smallcaps
9592 Martin Vermeer
9593 \shape default
9594 ]:
9595 \end_layout
9596
9597 \begin_layout Standard
9598 \begin_inset Flex Multiple Columns
9599 status open
9600
9601 \begin_layout Itemize
9602
9603 \family sans
9604 My
9605 \begin_inset space ~
9606 \end_inset
9607
9608 Logo
9609 \end_layout
9610
9611 \begin_layout Itemize
9612
9613 \family sans
9614 Restriction
9615 \end_layout
9616
9617 \begin_layout Itemize
9618
9619 \family sans
9620 Right
9621 \begin_inset space ~
9622 \end_inset
9623
9624 Footer
9625 \end_layout
9626
9627 \begin_layout Itemize
9628
9629 \family sans
9630 Right
9631 \begin_inset space ~
9632 \end_inset
9633
9634 Header
9635 \end_layout
9636
9637 \begin_layout Itemize
9638
9639 \family sans
9640 Left
9641 \begin_inset space ~
9642 \end_inset
9643
9644 Header
9645 \end_layout
9646
9647 \begin_deeper
9648 \begin_layout Plain Layout
9649 \begin_inset space ~
9650 \end_inset
9651
9652
9653 \end_layout
9654
9655 \end_deeper
9656 \end_inset
9657
9658
9659 \end_layout
9660
9661 \begin_layout Standard
9662 There are also a few commands provided by 
9663 \family sans
9664 Foil\SpecialChar TeX
9665
9666 \family default
9667  that aren't directly supported by \SpecialChar LyX
9668  but I'll tell you what they do and how to use them in section
9669 \begin_inset space ~
9670 \end_inset
9671
9672
9673 \begin_inset CommandInset ref
9674 LatexCommand ref
9675 reference "sec:unsuppfoils"
9676 nolink "false"
9677
9678 \end_inset
9679
9680 .
9681 \end_layout
9682
9683 \begin_layout Subsubsection
9684 Building a Set of Foils
9685 \end_layout
9686
9687 \begin_layout Standard
9688 This section will give a simple introduction to using the different environments to build a set of foils.
9689  If you want to see an example set of foils,
9690  take a look at 
9691 \family sans
9692 File\SpecialChar menuseparator
9693 Open Example\SpecialChar menuseparator
9694 Presentations\SpecialChar menuseparator
9695 Foils
9696 \family default
9697 .
9698 \end_layout
9699
9700 \begin_layout Paragraph
9701 Give It a Title Page
9702 \end_layout
9703
9704 \begin_layout Standard
9705 Unlike other classes that provide 
9706 \family sans
9707 Title
9708 \family default
9709 ,
9710  
9711 \family sans
9712 Author
9713 \family default
9714 ,
9715  
9716 \family sans
9717 Date
9718 \family default
9719  and 
9720 \family sans
9721 Abstract
9722 \family default
9723  environments,
9724  
9725 \family sans
9726 \lang ngerman
9727 FoilTeX
9728 \family default
9729 \lang english
9730  creates the title on a page of its own.
9731  If you leave out the 
9732 \family sans
9733 Date
9734 \family default
9735  environment \SpecialChar LaTeX
9736  will substitute the current date (every time you regenerate the output).
9737 \end_layout
9738
9739 \begin_layout Paragraph
9740 Start a New Foil
9741 \end_layout
9742
9743 \begin_layout Standard
9744 As I mentioned earlier,
9745  there are four ways of starting a new foil.
9746  For portrait foils you should use 
9747 \family sans
9748 Foilhead
9749 \family default
9750  or 
9751 \family sans
9752 ShortFoilhead.
9753
9754 \family default
9755  The difference between these two environments is the amount of space between the title of the foil (the foilhead) and the body of the foil.
9756 \end_layout
9757
9758 \begin_layout Standard
9759 Landscape foils are generated using the 
9760 \family sans
9761 Rotatefoilhead
9762 \family default
9763  and 
9764 \family sans
9765 ShortRotatefoilhead
9766 \family default
9767  environments.
9768  Again the only difference is the spacing between foilhead and body.
9769  Both of the short versions have 0.5
9770 \begin_inset space ~
9771 \end_inset
9772
9773 inches less separation between the foilhead and the body.
9774  
9775 \end_layout
9776
9777 \begin_layout Standard
9778 One problem with the support for landscape foils is the requirement that you have to use the 
9779 \family typewriter
9780 dvips
9781 \family default
9782  driver to generate the PostScript output otherwise the foils won't be rotated.
9783  It is possible to get landscape foils even if you haven't got the 
9784 \family typewriter
9785 dvips
9786 \family default
9787  driver provided you can feed your foils sideways through your printer ;-)
9788 \end_layout
9789
9790 \begin_layout Paragraph
9791 Theorems,
9792  Lemmas,
9793  Proofs and more
9794 \end_layout
9795
9796 \begin_layout Standard
9797 You can't have two of the same type of these environments directly following each other.
9798  If you use a normal paragraph break,
9799  ,
9800  you will just be extending the previous environment as if you had merged the two environments together.
9801  Rather than that,
9802  you need to insert a so-called separator.
9803  Please refer to the section entitled 
9804 \emph on
9805 Separate Nestings
9806 \emph default
9807  in the 
9808 \emph on
9809 User's Guide
9810 \emph default
9811 .
9812 \end_layout
9813
9814 \begin_layout Paragraph
9815 Lists
9816 \end_layout
9817
9818 \begin_layout Standard
9819 You get all the commonly supported list styles found in other classes as well as two new ones.
9820  I'll only describe the new ones here.
9821  If you want to find out more about the other list environments check out the 
9822 \emph on
9823 User's Guide.
9824
9825 \emph default
9826  If you intend to use itemized lists you might also want to read about the 
9827 \family sans
9828 Itemize
9829 \begin_inset space ~
9830 \end_inset
9831
9832 Bullet
9833 \begin_inset space ~
9834 \end_inset
9835
9836 Selection
9837 \family default
9838  dialog described above in section
9839 \begin_inset space ~
9840 \end_inset
9841
9842
9843 \begin_inset CommandInset ref
9844 LatexCommand ref
9845 reference "chap:bullets"
9846 nolink "false"
9847
9848 \end_inset
9849
9850 .
9851 \end_layout
9852
9853 \begin_layout Standard
9854 The two new list styles,
9855  
9856 \family sans
9857 TickList
9858 \family default
9859  and 
9860 \family sans
9861 CrossList
9862 \family default
9863 ,
9864  are designed to make it easier for you to create lists of do's and don'ts or right and wrong by providing dedicated environments that use a tick or a cross as the label of the list.
9865  These lists are in fact dedicated variants of the 
9866 \family sans
9867 Itemize
9868 \family default
9869  environment.
9870  They do however require that you have the 
9871 \family typewriter
9872 psnfss
9873 \family default
9874  packages installed.
9875 \end_layout
9876
9877 \begin_layout Paragraph
9878 Figures and Tables
9879 \end_layout
9880
9881 \begin_layout Standard
9882
9883 \family sans
9884 Foil\SpecialChar TeX
9885
9886 \family default
9887  redefines the floating tables and figures so that they appear exactly where they are in the text rather than pushing them to the top of the page or to some user specified location.
9888  In fact if you change the float placement settings they are simply ignored.
9889 \end_layout
9890
9891 \begin_layout Paragraph
9892 Page Headers and Footers
9893 \begin_inset CommandInset label
9894 LatexCommand label
9895 name "sec:foilfoot"
9896
9897 \end_inset
9898
9899
9900 \end_layout
9901
9902 \begin_layout Standard
9903
9904 \family sans
9905 My
9906 \begin_inset space ~
9907 \end_inset
9908
9909 Logo
9910 \family default
9911  and 
9912 \family sans
9913 Restriction
9914 \family default
9915  are two commands used to control the left-footer text string.
9916  The first is meant to allow you to include a graphic logo on your foils and defaults to 
9917 \begin_inset Quotes eld
9918 \end_inset
9919
9920 -Typeset by 
9921 \family sans
9922 Foil\SpecialChar TeX
9923
9924 \family default
9925 -
9926 \begin_inset Quotes erd
9927 \end_inset
9928
9929 .
9930  While the second is meant to provide a classification for the audience,
9931  
9932 \emph on
9933 e.
9934 \begin_inset space \thinspace{}
9935 \end_inset
9936
9937 g.
9938 \emph default
9939
9940 \begin_inset space \space{}
9941 \end_inset
9942
9943 Confidential.
9944  It is empty by default.
9945 \end_layout
9946
9947 \begin_layout Standard
9948 The remaining page corners can be filled by 
9949 \family sans
9950 Right
9951 \begin_inset space ~
9952 \end_inset
9953
9954 Footer
9955 \family default
9956  (which defaults to page numbers),
9957  
9958 \family sans
9959 Right
9960 \begin_inset space ~
9961 \end_inset
9962
9963 Header
9964 \family default
9965  (top right) and 
9966 \family sans
9967 Left
9968 \begin_inset space ~
9969 \end_inset
9970
9971 Header
9972 \family default
9973  (top left).
9974 \end_layout
9975
9976 \begin_layout Subsubsection
9977 Unsupported 
9978 \family sans
9979 Foil\SpecialChar TeX
9980
9981 \family default
9982  Goodies
9983 \begin_inset CommandInset label
9984 LatexCommand label
9985 name "sec:unsuppfoils"
9986
9987 \end_inset
9988
9989
9990 \end_layout
9991
9992 \begin_layout Standard
9993 All the commands mentioned below need to be set in a 
9994 \family sans
9995 \SpecialChar LaTeX
9996
9997 \family default
9998  environment or as 
9999 \family sans
10000 \SpecialChar TeX
10001
10002 \family default
10003  within another environment.
10004 \end_layout
10005
10006 \begin_layout Paragraph
10007 Lengths
10008 \end_layout
10009
10010 \begin_layout Standard
10011 All lengths are adjusted using the 
10012 \family typewriter
10013
10014 \backslash
10015 setlength{
10016 \family default
10017 \emph on
10018 lengthname
10019 \family typewriter
10020 \emph default
10021 }{
10022 \family default
10023 \emph on
10024 newlength
10025 \family typewriter
10026 \emph default
10027 }
10028 \family default
10029  command.
10030  Where 
10031 \emph on
10032 lengthname
10033 \emph default
10034  should be replaced by the name given to the length you want to change and 
10035 \emph on
10036 newlength
10037 \emph default
10038  is the length value.
10039  All lengths should be specified in units of length such as inches (
10040 \family typewriter
10041 in
10042 \family default
10043 ),
10044  millimeters (
10045 \family typewriter
10046 mm
10047 \family default
10048 ) or points (
10049 \family typewriter
10050 pt
10051 \family default
10052 ) or relative to some document or font-based length such as 
10053 \family typewriter
10054
10055 \backslash
10056 textwidth
10057 \family default
10058 .
10059  
10060 \end_layout
10061
10062 \begin_layout Standard
10063 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
10064 \family typewriter
10065
10066 \backslash
10067 foilheadskip
10068 \family default
10069 .
10070  For example,
10071  to make 
10072 \emph on
10073 all
10074 \emph default
10075  foilheads 0.5
10076 \begin_inset space \space{}
10077 \end_inset
10078
10079 in closer to their bodies put the following in the preamble:
10080  
10081 \family typewriter
10082
10083 \backslash
10084 setlength{
10085 \backslash
10086 foilheadskip}{-0.5in}
10087 \end_layout
10088
10089 \begin_layout Standard
10090 The spacings around floats can be adjusted by setting these lengths:
10091 \end_layout
10092
10093 \begin_layout Labeling
10094 \labelwidthstring MMMMMMMMMMM
10095
10096 \family typewriter
10097
10098 \backslash
10099 abovefloatskip
10100 \family default
10101  Separation between the text and the top of the float
10102 \end_layout
10103
10104 \begin_layout Labeling
10105 \labelwidthstring MMMMMMMMMMM
10106
10107 \family typewriter
10108
10109 \backslash
10110 abovecaptionskip
10111 \family default
10112  Separation between the float and the caption
10113 \end_layout
10114
10115 \begin_layout Labeling
10116 \labelwidthstring MMMMMMMMMMM
10117
10118 \family typewriter
10119
10120 \backslash
10121 belowcaptionskip
10122 \family default
10123  Separation between the caption and the following text
10124 \end_layout
10125
10126 \begin_layout Labeling
10127 \labelwidthstring MMMMMMMMMMM
10128
10129 \family typewriter
10130
10131 \backslash
10132 captionwidth
10133 \family default
10134  You can make the captions narrower than the surrounding text by adjusting this length.
10135  Best done relative to 
10136 \family typewriter
10137
10138 \backslash
10139 textwidth
10140 \family default
10141 .
10142 \end_layout
10143
10144 \begin_layout Standard
10145 There are also several title page related lengths that you may find useful if you have a long title or several authors:
10146 \end_layout
10147
10148 \begin_layout Labeling
10149 \labelwidthstring MMMMMMMMMMM
10150
10151 \family typewriter
10152
10153 \backslash
10154 abovetitleskip
10155 \family default
10156  Separation from headers to 
10157 \family sans
10158 Title
10159 \end_layout
10160
10161 \begin_layout Labeling
10162 \labelwidthstring MMMMMMMMMMM
10163
10164 \family typewriter
10165
10166 \backslash
10167 titleauthorskip
10168 \family default
10169  between 
10170 \family sans
10171 Title
10172 \family default
10173  and 
10174 \family sans
10175 Author
10176 \family default
10177  environments
10178 \end_layout
10179
10180 \begin_layout Labeling
10181 \labelwidthstring MMMMMMMMMMM
10182
10183 \family typewriter
10184
10185 \backslash
10186 authorauthorskip
10187 \family default
10188  between multiple 
10189 \family sans
10190 Author
10191 \family default
10192  lines
10193 \end_layout
10194
10195 \begin_layout Labeling
10196 \labelwidthstring MMMMMMMMMMM
10197
10198 \family typewriter
10199
10200 \backslash
10201 authordateskip
10202 \family default
10203  between the 
10204 \family sans
10205 Author
10206 \family default
10207  and the 
10208 \family sans
10209 Date
10210 \end_layout
10211
10212 \begin_layout Labeling
10213 \labelwidthstring MMMMMMMMMMM
10214
10215 \family typewriter
10216
10217 \backslash
10218 dateabstractskip
10219 \family default
10220  between the 
10221 \family sans
10222 Date
10223 \family default
10224  and the 
10225 \family sans
10226 Abstract
10227 \end_layout
10228
10229 \begin_layout Standard
10230 The last length related command affects all the list environments.
10231  If you place 
10232 \family typewriter
10233
10234 \backslash
10235 zerolistvertdimens
10236 \family default
10237  
10238 \emph on
10239 inside
10240 \emph default
10241  a list environment then all the vertical spacing between the list items is removed.
10242  Note that this is a command not a length so it doesn't require 
10243 \family typewriter
10244
10245 \backslash
10246 setlength
10247 \family default
10248  like the stuff mentioned above.
10249 \end_layout
10250
10251 \begin_layout Paragraph
10252 Headers and Footers
10253 \end_layout
10254
10255 \begin_layout Standard
10256 The 
10257 \family typewriter
10258
10259 \backslash
10260 LogoOn
10261 \family default
10262  and 
10263 \family typewriter
10264
10265 \backslash
10266 LogoOff
10267 \family default
10268  commands control whether the logo in the 
10269 \family sans
10270 MyLogo
10271 \family default
10272  definition appear on a given page.
10273  If you put 
10274 \family typewriter
10275
10276 \backslash
10277 LogoOff
10278 \family default
10279  in the preamble then none of the foils will have the logo on them.
10280  If you don't want the logo on a particular page place the 
10281 \family typewriter
10282
10283 \backslash
10284 LogoOff
10285 \family default
10286  directly after the foilhead of that page and the 
10287 \family typewriter
10288
10289 \backslash
10290 LogoOn
10291 \family default
10292  directly after the next foilhead.
10293 \end_layout
10294
10295 \begin_layout Standard
10296 If you decide to use the 
10297 \family sans
10298 fancy
10299 \family default
10300  page style setting in the 
10301 \family sans
10302 Document
10303 \begin_inset space ~
10304 \end_inset
10305
10306 Layout
10307 \family default
10308  dialog you should probably add 
10309 \family typewriter
10310
10311 \backslash
10312 let
10313 \backslash
10314 headwidth
10315 \backslash
10316 textwidth
10317 \family default
10318  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
10319  This is due to some clashes between the page layouts provided by the 
10320 \family sans
10321 fancyheadings
10322 \family default
10323  package and the 
10324 \family sans
10325 \lang ngerman
10326 FoilTeX
10327 \family default
10328 \lang english
10329  class.
10330 \end_layout
10331
10332 \begin_layout Subsection
10333 Powerdot
10334 \end_layout
10335
10336 \begin_layout Standard
10337 The document class 
10338 \family sans
10339 Powerdot
10340 \family default
10341  uses the 
10342 \family typewriter
10343 powerdot.cls
10344 \family default
10345  \SpecialChar LaTeX
10346  class for creating presentations.
10347  
10348 \family sans
10349 File\SpecialChar menuseparator
10350 Open Example\SpecialChar menuseparator
10351 Presentations\SpecialChar menuseparator
10352 Powerdot
10353 \family default
10354  offers guidance on its use.
10355  The documentation is available from 
10356 \begin_inset CommandInset href
10357 LatexCommand href
10358 name "CTAN"
10359 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10360 literal "false"
10361
10362 \end_inset
10363
10364 .
10365 \end_layout
10366
10367 \begin_layout Subsection
10368 \begin_inset CommandInset label
10369 LatexCommand label
10370 name "subsec:Seminar"
10371
10372 \end_inset
10373
10374
10375 \family sans
10376 Seminar
10377 \end_layout
10378
10379 \begin_layout Standard
10380 The document class 
10381 \family sans
10382 Seminar
10383 \family default
10384  uses the 
10385 \family typewriter
10386 seminar.cls
10387 \family default
10388  document class for creating presentations.
10389  
10390 \family sans
10391 File\SpecialChar menuseparator
10392 Open Example\SpecialChar menuseparator
10393 Presentations\SpecialChar menuseparator
10394 Seminar
10395 \family default
10396  offers guidance on its use.
10397  The documentation is available from 
10398 \begin_inset CommandInset href
10399 LatexCommand href
10400 name "CTAN"
10401 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10402 literal "false"
10403
10404 \end_inset
10405
10406 .
10407 \end_layout
10408
10409 \begin_layout Subsection
10410 Slides [aka 
10411 \noun on
10412 Sli\SpecialChar TeX
10413
10414 \noun default
10415 ]
10416 \begin_inset CommandInset label
10417 LatexCommand label
10418 name "sec:slitex"
10419
10420 \end_inset
10421
10422
10423 \end_layout
10424
10425 \begin_layout Standard
10426 Original by 
10427 \noun on
10428 John Weiss
10429 \noun default
10430 ;
10431  updated by the \SpecialChar LyX
10432  Team
10433 \end_layout
10434
10435 \begin_layout Subsubsection
10436 Introduction
10437 \end_layout
10438
10439 \begin_layout Standard
10440 This section describes how to use \SpecialChar LyX
10441  to make slides for overhead projectors.
10442  There are two document classes that can do this:
10443  the 
10444 \family sans
10445 Slides
10446 \family default
10447  document class and the 
10448 \family sans
10449 Foil\SpecialChar TeX
10450
10451 \family default
10452  document class.
10453  This section documents the former.
10454  If you’re looking for the documentation for 
10455 \family sans
10456 Foil\SpecialChar TeX
10457
10458 \family default
10459 ,
10460  check out section
10461 \begin_inset space ~
10462 \end_inset
10463
10464
10465 \begin_inset CommandInset ref
10466 LatexCommand ref
10467 reference "sec:foiltex"
10468 plural "false"
10469 caps "false"
10470 noprefix "false"
10471 nolink "false"
10472
10473 \end_inset
10474
10475 .
10476  As of 2023 
10477 \family sans
10478 Slides
10479 \family default
10480  has continued to be maintained whereas 
10481 \family sans
10482 Foil\SpecialChar TeX
10483
10484 \family default
10485  has not been maintained since 2008.
10486  
10487 \end_layout
10488
10489 \begin_layout Subsubsection
10490 Getting Started
10491 \begin_inset CommandInset label
10492 LatexCommand label
10493 name "sec:slidesetup"
10494
10495 \end_inset
10496
10497
10498 \end_layout
10499
10500 \begin_layout Standard
10501 Obviously,
10502  to use this document class,
10503  you need to select 
10504 \begin_inset Quotes eld
10505 \end_inset
10506
10507
10508 \family sans
10509 Slides
10510 \family default
10511
10512 \begin_inset Quotes erd
10513 \end_inset
10514
10515  from the class list in the 
10516 \family sans
10517 Document\SpecialChar menuseparator
10518 Settings
10519 \family default
10520  dialog.
10521  There are some other special things you should know about this class:
10522 \end_layout
10523
10524 \begin_layout Itemize
10525 Don't bother changing the options 
10526 \family sans
10527 Sides and Columns
10528 \family default
10529 .
10530  They're not supported by the 
10531 \family sans
10532 Slides
10533 \family default
10534  class,
10535  anyways.
10536 \end_layout
10537
10538 \begin_layout Itemize
10539 The option 
10540 \family sans
10541 Page
10542 \begin_inset space ~
10543 \end_inset
10544
10545 style
10546 \family default
10547  behaves a bit differently for this class.
10548  The possible choices and what they do are as follows:
10549 \end_layout
10550
10551 \begin_deeper
10552 \begin_layout Description
10553
10554 \family sans
10555 plain
10556 \family default
10557  The final output contains page numbers in the lower right corner.
10558 \end_layout
10559
10560 \begin_layout Description
10561
10562 \family sans
10563 headings
10564 \family default
10565  Like 
10566 \family sans
10567 plain
10568 \family default
10569 ,
10570  but also prints out any time markers you've put in.
10571  This is the default.
10572 \end_layout
10573
10574 \begin_layout Description
10575
10576 \family sans
10577 empty
10578 \family default
10579  The final output contains no page numbers,
10580  time markers,
10581  or alignment markers.
10582 \end_layout
10583
10584 \end_deeper
10585 \begin_layout Itemize
10586 The 
10587 \family sans
10588 Slides
10589 \family default
10590  class has an extra option:
10591  
10592 \family typewriter
10593 clock
10594 \family default
10595 .
10596  To use it,
10597  put 
10598 \begin_inset Quotes eld
10599 \end_inset
10600
10601
10602 \family typewriter
10603 clock
10604 \family default
10605
10606 \begin_inset Quotes erd
10607 \end_inset
10608
10609  in the extra class options.
10610 \end_layout
10611
10612 \begin_deeper
10613 \begin_layout Standard
10614 Using this options allows you to add time markers to 
10615 \family sans
10616 Note
10617 \family default
10618 s.
10619  See section
10620 \begin_inset space ~
10621 \end_inset
10622
10623
10624 \begin_inset CommandInset ref
10625 LatexCommand ref
10626 reference "sec:slideNote"
10627 nolink "false"
10628
10629 \end_inset
10630
10631  for more details.
10632 \end_layout
10633
10634 \end_deeper
10635 \begin_layout Standard
10636 You can also use the template file to automatically set up a document to use the 
10637 \family sans
10638 slides
10639 \family default
10640  class using 
10641 \family sans
10642 File\SpecialChar menuseparator
10643 New
10644 \begin_inset space ~
10645 \end_inset
10646
10647 from
10648 \begin_inset space ~
10649 \end_inset
10650
10651 Template\SpecialChar menuseparator
10652 Presentations\SpecialChar menuseparator
10653 Slides
10654 \family default
10655  to open your new document.
10656  The template file also contains some examples of the special paragraph environments used by this class.
10657  I'll describe those next.
10658 \end_layout
10659
10660 \begin_layout Subsubsection
10661 Paragraph Environments
10662 \end_layout
10663
10664 \begin_layout Paragraph
10665 Supported Environments
10666 \end_layout
10667
10668 \begin_layout Standard
10669 The first thing you'll notice when you start up a new 
10670 \family sans
10671 Slides
10672 \family default
10673  document is the font size and type:
10674  it's the equivalent of the size 
10675 \begin_inset Quotes eld
10676 \end_inset
10677
10678
10679 \family sans
10680 Largest
10681 \family default
10682
10683 \begin_inset Quotes erd
10684 \end_inset
10685
10686  in the 
10687 \family sans
10688 Sans
10689 \begin_inset space ~
10690 \end_inset
10691
10692 Serif
10693 \family default
10694  font.
10695  This is also what's used in the output.
10696  Think of this as a 
10697 \begin_inset Quotes eld
10698 \end_inset
10699
10700 visual cue
10701 \begin_inset Quotes erd
10702 \end_inset
10703
10704  to remind you that this is a slide.
10705  Your final slides will use a larger font;
10706  ergo,
10707  you'll have less space.
10708  Of course,
10709  the larger default screen font isn't WYSIWYG,
10710  only a reminder.
10711 \end_layout
10712
10713 \begin_layout Standard
10714 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
10715  Most of the paragraph environments you're used to seeing are missing.
10716  There are also five new ones.
10717  That's because the 
10718 \family sans
10719 Slides
10720 \family default
10721  class itself only supports certain paragraph environments:
10722 \end_layout
10723
10724 \begin_layout Standard
10725
10726 \family sans
10727 \begin_inset Flex Multiple Columns
10728 status open
10729
10730 \begin_layout Itemize
10731
10732 \family sans
10733 Standard
10734 \end_layout
10735
10736 \begin_layout Itemize
10737
10738 \family sans
10739 Itemize
10740 \end_layout
10741
10742 \begin_layout Itemize
10743
10744 \family sans
10745 Enumerate
10746 \end_layout
10747
10748 \begin_layout Itemize
10749
10750 \family sans
10751 Description
10752 \end_layout
10753
10754 \begin_layout Itemize
10755
10756 \family sans
10757 List
10758 \end_layout
10759
10760 \begin_layout Itemize
10761
10762 \family sans
10763 Quotation
10764 \end_layout
10765
10766 \begin_layout Itemize
10767
10768 \family sans
10769 Quote
10770 \end_layout
10771
10772 \begin_layout Itemize
10773
10774 \family sans
10775 Verse
10776 \end_layout
10777
10778 \begin_layout Itemize
10779
10780 \family sans
10781 Caption
10782 \end_layout
10783
10784 \begin_layout Itemize
10785
10786 \family sans
10787 \SpecialChar LyX
10788 -Code
10789 \end_layout
10790
10791 \end_inset
10792
10793
10794 \end_layout
10795
10796 \begin_layout Standard
10797 All of the other standard environments,
10798  including the section-heading environments,
10799  aren't used in the 
10800 \family sans
10801 Slides
10802 \family default
10803  class.
10804 \end_layout
10805
10806 \begin_layout Standard
10807 On the other hand,
10808  you'll notice the following new environments:
10809 \end_layout
10810
10811 \begin_layout Standard
10812
10813 \family sans
10814 \begin_inset Flex Multiple Columns
10815 status open
10816
10817 \begin_layout Itemize
10818
10819 \family sans
10820 Slide
10821 \end_layout
10822
10823 \begin_layout Itemize
10824
10825 \family sans
10826 Overlay
10827 \end_layout
10828
10829 \begin_layout Itemize
10830
10831 \family sans
10832 Note
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family sans
10838 InvisibleText
10839 \end_layout
10840
10841 \begin_layout Itemize
10842
10843 \family sans
10844 VisibleText
10845 \end_layout
10846
10847 \begin_deeper
10848 \begin_layout Plain Layout
10849 \begin_inset space ~
10850 \end_inset
10851
10852
10853 \end_layout
10854
10855 \end_deeper
10856 \end_inset
10857
10858
10859 \end_layout
10860
10861 \begin_layout Standard
10862 These five are kind of quirky,
10863  due to a 
10864 \begin_inset Quotes eld
10865 \end_inset
10866
10867 feature
10868 \begin_inset Quotes erd
10869 \end_inset
10870
10871  in \SpecialChar LyX
10872 .
10873  You see,
10874  \SpecialChar LyX
10875  doesn't permit you to nest any other paragraph environment into an empty environment.
10876  Now,
10877  that's fine and dandy,
10878  but it means that you wouldn't be able to start a slide with anything except plain text.
10879  To deal with this,
10880  I've performed a little 
10881 \begin_inset Quotes eld
10882 \end_inset
10883
10884 \SpecialChar LaTeX
10885  magic.
10886 \begin_inset Quotes erd
10887 \end_inset
10888
10889  
10890 \end_layout
10891
10892 \begin_layout Paragraph
10893 Quirks of the New Environments
10894 \begin_inset CommandInset label
10895 LatexCommand label
10896 name "sec:slideQuirk"
10897
10898 \end_inset
10899
10900
10901 \end_layout
10902
10903 \begin_layout Standard
10904 All five of the new paragraph environments are somewhat quirky due to inherent limitations in the current version of \SpecialChar LyX
10905 .
10906  As I just mentioned,
10907  \SpecialChar LyX
10908  forbids environments that begin with another environment.
10909  To get around this,
10910  the 
10911 \family sans
10912 Slide
10913 \family default
10914  environment isn't a paragraph environment as described in the 
10915 \emph on
10916 User's Guide
10917 \emph default
10918 .
10919  
10920 \end_layout
10921
10922 \begin_layout Standard
10923 You should consider 
10924 \family sans
10925 Slide
10926 \family default
10927 ,
10928  
10929 \family sans
10930 Overlay
10931 \family default
10932 ,
10933  and 
10934 \family sans
10935 Note
10936 \family default
10937  to be 
10938 \begin_inset Quotes eld
10939 \end_inset
10940
10941 pseudo-environments.
10942 \begin_inset Quotes erd
10943 \end_inset
10944
10945  They look like a section heading or a 
10946 \begin_inset Quotes eld
10947 \end_inset
10948
10949
10950 \family sans
10951 Caption
10952 \family default
10953 ,
10954 \begin_inset Quotes erd
10955 \end_inset
10956
10957  but really begin a [and,
10958  if necessary,
10959  end the previous] paragraph environment.
10960  Likewise,
10961  treat 
10962 \family sans
10963 InvisibleText
10964 \family default
10965  and 
10966 \family sans
10967 VisibleText
10968 \family default
10969  as 
10970 \begin_inset Quotes eld
10971 \end_inset
10972
10973 pseudo-commands.
10974 \begin_inset Quotes erd
10975 \end_inset
10976
10977  These two perform some action.
10978 \end_layout
10979
10980 \begin_layout Standard
10981 A common feature of all five environments,
10982  
10983 \family sans
10984 Slide
10985 \family default
10986 ,
10987  
10988 \family sans
10989 Overlay
10990 \family default
10991 ,
10992  
10993 \family sans
10994 Note
10995 \family default
10996 ,
10997  
10998 \family sans
10999 InvisibleText
11000 \family default
11001  and 
11002 \family sans
11003 VisibleText
11004 \family default
11005 ,
11006  is a rather long-ish label.
11007  The text following this label —
11008  ordinarily the contents of the paragraph environment —
11009  is utterly irrelevant for 
11010 \family sans
11011 Slide
11012 \family default
11013 ,
11014  
11015 \family sans
11016 Overlay
11017 \family default
11018 ,
11019  
11020 \family sans
11021 Note
11022 \family default
11023 ,
11024  
11025 \family sans
11026 InvisibleText
11027 \family default
11028  and 
11029 \family sans
11030 VisibleText
11031 \family default
11032 .
11033  \SpecialChar LyX
11034  completely ignores it.
11035  In fact,
11036  you can leave these five environments completely empty.
11037  
11038 \end_layout
11039
11040 \begin_layout Standard
11041 While you don't 
11042 \emph on
11043 have
11044 \emph default
11045  to put any text after the rather long-ish label,
11046  you might want to.
11047  This could be a short description of the contents of the 
11048 \family sans
11049 Slide
11050 \family default
11051 ,
11052  for example.
11053  In that case,
11054  enter your descriptive comment and hit 
11055 \family sans
11056 Return
11057 \family default
11058  as you normally would.
11059 \end_layout
11060
11061 \begin_layout Subsubsection
11062 Making a Presentation with 
11063 \family sans
11064 Slide
11065 \family default
11066 ,
11067  
11068 \family sans
11069 Overlay
11070 \family default
11071  and 
11072 \family sans
11073 Note
11074 \end_layout
11075
11076 \begin_layout Paragraph
11077 Using the 
11078 \family sans
11079 Slide
11080 \family default
11081  Environment
11082 \end_layout
11083
11084 \begin_layout Standard
11085 If you're expecting this section to teach you how to actually make a presentation,
11086  you'll be sorely disappointed.
11087  Naturally,
11088  I'll describe all of the ways the 
11089 \family sans
11090 Slides
11091 \family default
11092  class can assist you in preparing the materials for a presentation.
11093  Filling in the contents,
11094  however,
11095  is up to you.
11096  [Then again,
11097  that 
11098 \emph on
11099 is
11100 \emph default
11101  the \SpecialChar LyX
11102  philosophy.]
11103 \end_layout
11104
11105 \begin_layout Standard
11106 Choosing the 
11107 \family sans
11108 Slide
11109 \family default
11110  environment [in the manner described in section
11111 \begin_inset space ~
11112 \end_inset
11113
11114
11115 \begin_inset CommandInset ref
11116 LatexCommand ref
11117 reference "sec:slideQuirk"
11118 nolink "false"
11119
11120 \end_inset
11121
11122 ] tells \SpecialChar LyX
11123  to begin a new slide [duh].
11124  The label for this environment/
11125 \begin_inset Quotes eld
11126 \end_inset
11127
11128 pseudo-command
11129 \begin_inset Quotes erd
11130 \end_inset
11131
11132  is an 
11133 \begin_inset Quotes eld
11134 \end_inset
11135
11136 ASCII line,
11137 \begin_inset Quotes erd
11138 \end_inset
11139
11140  in cool blue,
11141  followed by the label,
11142  
11143 \begin_inset Quotes eld
11144 \end_inset
11145
11146 NewSlide:
11147 \begin_inset Quotes erd
11148 \end_inset
11149
11150 .
11151  Any text or paragraph environments that follow this one go on the new slide.
11152  It's that simple.
11153 \end_layout
11154
11155 \begin_layout Standard
11156 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11157  (this can be specified in the 
11158 \family sans
11159 Paragraph Layout
11160 \family default
11161  dialog).
11162  In fact,
11163  you'll want to,
11164  once you finish entering the contents of one slide.
11165  If you've entered more text than can physically fit on a slide,
11166  the extra overflows onto a new slide.
11167  I don't recommend doing this,
11168  however,
11169  since the overflow slide won't have any page number on it.
11170  Furthermore,
11171  it may interfere with any 
11172 \family sans
11173 Overlay
11174 \family default
11175  you've made to accompany the oversized 
11176 \family sans
11177 Slide
11178 \family default
11179 .
11180 \end_layout
11181
11182 \begin_layout Standard
11183 The 
11184 \family sans
11185 Overlay
11186 \family default
11187  and 
11188 \family sans
11189 Note
11190 \family default
11191  environments work the same way as the 
11192 \family sans
11193 Slide
11194 \family default
11195  environment.
11196  They both create an 
11197 \begin_inset Quotes eld
11198 \end_inset
11199
11200 ASCII line
11201 \begin_inset Quotes erd
11202 \end_inset
11203
11204  followed by a label [
11205 \begin_inset Quotes eld
11206 \end_inset
11207
11208 NewOverlay:
11209 \begin_inset Quotes erd
11210 \end_inset
11211
11212  and 
11213 \begin_inset Quotes eld
11214 \end_inset
11215
11216 NewNote:
11217 \begin_inset Quotes erd
11218 \end_inset
11219
11220 ,
11221  respectively].
11222  The color is a stunning magenta instead of blue,
11223  and the 
11224 \begin_inset Quotes eld
11225 \end_inset
11226
11227 ASCII line
11228 \begin_inset Quotes erd
11229 \end_inset
11230
11231  will look different,
11232  in style and in length.
11233  The label fonts of all three also differ from one another.
11234 \end_layout
11235
11236 \begin_layout Standard
11237 As with a 
11238 \family sans
11239 Slide
11240 \family default
11241 ,
11242  if the contents of a 
11243 \family sans
11244 Note
11245 \family default
11246  or 
11247 \family sans
11248 Overlay
11249 \family default
11250  exceed the physical size of a slide or sheet of paper,
11251  the extra will overflow onto a new sheet.
11252  Again,
11253  you should avoid this.
11254  It defeats the whole purpose of 
11255 \family sans
11256 Note
11257 \family default
11258 s and 
11259 \family sans
11260 Overlay
11261 \family default
11262 s.
11263 \end_layout
11264
11265 \begin_layout Paragraph
11266 Using 
11267 \family sans
11268 Overlay
11269 \family default
11270  with 
11271 \family sans
11272 Slide
11273 \end_layout
11274
11275 \begin_layout Standard
11276 The idea behind an 
11277 \family sans
11278 Overlay
11279 \family default
11280  is a slide that sits atop another slide.
11281  Perhaps you wish to discuss a figure on the main 
11282 \family sans
11283 Slide
11284 \family default
11285  before displaying the text associated with it.
11286  One way to accomplish this is tape a flap of dark paper over the part of the 
11287 \family sans
11288 Slide
11289 \family default
11290  you want to display later.
11291  This method fails,
11292  however,
11293  if you wish to overlap one graph with another,
11294  for example.
11295  You would then have to fumble while speaking to align the two separate,
11296  overlapping 
11297 \family sans
11298 Slide
11299 \family default
11300 s to align the two graphs.
11301  The use of an 
11302 \family sans
11303 Overlay
11304 \family default
11305  environment in both cases makes life much easier.
11306 \end_layout
11307
11308 \begin_layout Standard
11309 Each 
11310 \family sans
11311 Overlay
11312 \family default
11313  receives the page number of its 
11314 \begin_inset Quotes eld
11315 \end_inset
11316
11317 parent
11318 \begin_inset Quotes erd
11319 \end_inset
11320
11321  
11322 \family sans
11323 Slide
11324 \family default
11325 ,
11326  appended by 
11327 \begin_inset Quotes eld
11328 \end_inset
11329
11330
11331 \family typewriter
11332 -a
11333 \family default
11334
11335 \begin_inset Quotes erd
11336 \end_inset
11337
11338 .
11339 \begin_inset Foot
11340 status collapsed
11341
11342 \begin_layout Plain Layout
11343 Presumably,
11344  mutliple 
11345 \family sans
11346 Overlay
11347 \family default
11348 s would have 
11349 \begin_inset Quotes eld
11350 \end_inset
11351
11352
11353 \family typewriter
11354 -a
11355 \family default
11356
11357 \begin_inset Quotes erd
11358 \end_inset
11359
11360 ,
11361  
11362 \begin_inset Quotes eld
11363 \end_inset
11364
11365
11366 \family typewriter
11367 -b
11368 \family default
11369
11370 \begin_inset Quotes erd
11371 \end_inset
11372
11373 ,
11374  
11375 \begin_inset Quotes eld
11376 \end_inset
11377
11378
11379 \family typewriter
11380 -c
11381 \family default
11382
11383 \begin_inset Quotes erd
11384 \end_inset
11385
11386 ,
11387  etc.
11388 \begin_inset space ~
11389 \end_inset
11390
11391 appended to the page number of the parent 
11392 \family sans
11393 Slide
11394 \family default
11395 .
11396  
11397 \end_layout
11398
11399 \end_inset
11400
11401  Clearly,
11402  you want the contents of both the 
11403 \family sans
11404 Slide
11405 \family default
11406  and the 
11407 \family sans
11408 Overlay
11409 \family default
11410  to each fit on a single physical slide!
11411  You should probably consider an 
11412 \family sans
11413 Overlay
11414 \family default
11415  as 
11416 \begin_inset Quotes eld
11417 \end_inset
11418
11419 part of
11420 \begin_inset Quotes erd
11421 \end_inset
11422
11423  a 
11424 \family sans
11425 Slide
11426 \family default
11427 .
11428  Indeed,
11429  the \SpecialChar LyX
11430  
11431 \family sans
11432 slides
11433 \family default
11434  class provides a visual cue for this:
11435  the label at the start of an 
11436 \family sans
11437 Overlay
11438 \family default
11439  is shorter than that at the start of a 
11440 \family sans
11441 Slide
11442 \family default
11443 .
11444  Lastly,
11445  when you generate printable output,
11446  you'll find alignment markers in all four corners of both the 
11447 \family sans
11448 Overlay
11449 \family default
11450  page and its parent 
11451 \family sans
11452 Slide
11453 \family default
11454 .
11455  These will assist you in lining up the two physical slides.
11456 \end_layout
11457
11458 \begin_layout Standard
11459 The major problem in overlaying two slides is aligning the contents of the two transparencies.
11460  How much space should you leave for that graph on the second slide?
11461  Worse still,
11462  what if you want a graph and a sentence on second slide,
11463  but there is text on the main transparency that goes in between them?
11464  You could try and insert vertical space of the right size.
11465  The better way is to use 
11466 \family sans
11467 InvisibleText
11468 \family default
11469  and 
11470 \family sans
11471 VisibleText
11472 \family default
11473 .
11474 \end_layout
11475
11476 \begin_layout Standard
11477 As their names imply,
11478  
11479 \family sans
11480 InvisibleText
11481 \family default
11482  and 
11483 \family sans
11484 VisibleText
11485 \family default
11486  are two command-like paragraph environments that make all subsequent text invisible and visible,
11487  respectively.
11488  Note from section
11489 \begin_inset space ~
11490 \end_inset
11491
11492
11493 \begin_inset CommandInset ref
11494 LatexCommand ref
11495 reference "sec:slideQuirk"
11496 nolink "false"
11497
11498 \end_inset
11499
11500  that you don't place anything 
11501 \emph on
11502 into
11503 \emph default
11504  these two environments,
11505  however.
11506  When you create an 
11507 \family sans
11508 InvisibleText
11509 \family default
11510 ,
11511  it inserts a centered,
11512  sky-blue label into the page reading 
11513 \begin_inset Quotes eld
11514 \end_inset
11515
11516 <Invisible Text Follows>
11517 \begin_inset Quotes erd
11518 \end_inset
11519
11520 .
11521  For paragraphs following this label,
11522  the parts of the 
11523 \family sans
11524 Slide
11525 \family default
11526  [or 
11527 \family sans
11528 Overlay
11529 \family default
11530 ;
11531  it doesn't matter which] where they would be contain instead blank space.
11532  
11533 \end_layout
11534
11535 \begin_layout Standard
11536 For 
11537 \family sans
11538 VisibleText
11539 \family default
11540 ,
11541  the corresponding centered label is 
11542 \begin_inset Quotes eld
11543 \end_inset
11544
11545 <Visible Text Follows>
11546 \begin_inset Quotes erd
11547 \end_inset
11548
11549  in blazing green.
11550  Paragraphs following this label behave normally.
11551  Note that the beginning of a new 
11552 \family sans
11553 Slide
11554 \family default
11555 ,
11556  
11557 \family sans
11558 Overlay
11559 \family default
11560 ,
11561  or 
11562 \family sans
11563 Note
11564 \family default
11565  automatically shuts off an 
11566 \family sans
11567 InvisibleText
11568 \family default
11569 .
11570  It's therefore not necessary to use 
11571 \family sans
11572 VisibleText
11573 \family default
11574  at the end of a 
11575 \family sans
11576 Slide
11577 \family default
11578 .
11579 \end_layout
11580
11581 \begin_layout Standard
11582 By now,
11583  it should be obvious how to create overlay transparencies using the proper combination of 
11584 \family sans
11585 InvisibleText
11586 \family default
11587  and 
11588 \family sans
11589 VisibleText
11590 \family default
11591  on a 
11592 \family sans
11593 Slide
11594 \family default
11595  and 
11596 \family sans
11597 Overlay
11598 \family default
11599 :
11600 \end_layout
11601
11602 \begin_layout Enumerate
11603 Create a 
11604 \family sans
11605 Slide
11606 \family default
11607 ,
11608  including everything that will appear on it,
11609  whether on the main slide or on the 
11610 \family sans
11611 Overlay
11612 \family default
11613 .
11614 \end_layout
11615
11616 \begin_layout Enumerate
11617 Before each figure or paragraph that will appear only on the 
11618 \family sans
11619 Overlay
11620 \family default
11621 ,
11622  insert an 
11623 \family sans
11624 InvisibleText
11625 \family default
11626  environment.
11627  If necessary,
11628  insert a 
11629 \family sans
11630 VisibleText
11631 \family default
11632  environment after the 
11633 \family sans
11634 Overlay
11635 \family default
11636 -only text.
11637 \end_layout
11638
11639 \begin_layout Enumerate
11640 Start an 
11641 \family sans
11642 Overlay
11643 \family default
11644  immediately following the 
11645 \family sans
11646 Slide
11647 \family default
11648 .
11649 \end_layout
11650
11651 \begin_layout Enumerate
11652 Copy the contents of this 
11653 \family sans
11654 Slide
11655 \family default
11656  into the 
11657 \family sans
11658 Overlay
11659 \family default
11660 .
11661 \end_layout
11662
11663 \begin_layout Enumerate
11664 Within the 
11665 \family sans
11666 Overlay
11667 \family default
11668 ,
11669  change all of the 
11670 \family sans
11671 InvisibleText
11672 \family default
11673  lines to 
11674 \family sans
11675 VisibleText
11676 \family default
11677  and vice-versa.
11678 \end_layout
11679
11680 \begin_layout Standard
11681 That's it.
11682  You've just made an 
11683 \family sans
11684 Overlay
11685 \family default
11686 .
11687 \end_layout
11688
11689 \begin_layout Standard
11690 There's one problem with the way I've designed the \SpecialChar LyX
11691  
11692 \family sans
11693 slides
11694 \family default
11695  class:
11696  you can't make text in the middle of a paragraph invisible,
11697  nor make text in the middle of an invisible paragraph visible again.
11698  To accomplish this feat,
11699  you'll need to use some inlined \SpecialChar LaTeX
11700  codes.
11701 \begin_inset Foot
11702 status open
11703
11704 \begin_layout Plain Layout
11705 The commands of interest are:
11706  
11707 \end_layout
11708
11709 \begin_layout Itemize
11710
11711 \family typewriter
11712 {
11713 \backslash
11714 invisible \SpecialChar ldots
11715  }
11716 \end_layout
11717
11718 \begin_layout Itemize
11719
11720 \family typewriter
11721 {
11722 \backslash
11723 visible \SpecialChar ldots
11724  }
11725 \end_layout
11726
11727 \begin_layout Plain Layout
11728 \SpecialChar ldots
11729 and need to be marked as \SpecialChar TeX
11730 .
11731  The text whose 
11732 \begin_inset Quotes eld
11733 \end_inset
11734
11735 visibility
11736 \begin_inset Quotes erd
11737 \end_inset
11738
11739  you wish to change goes in between the brackets [and after the 
11740 \family typewriter
11741
11742 \backslash
11743 invisible
11744 \family default
11745  or 
11746 \family typewriter
11747
11748 \backslash
11749 visible
11750 \family default
11751  command].
11752  If you don't know how to mark text as \SpecialChar TeX
11753 ,
11754  see the appropriate section of the 
11755 \emph on
11756 User's Guide
11757 \emph default
11758 .
11759 \end_layout
11760
11761 \end_inset
11762
11763
11764 \end_layout
11765
11766 \begin_layout Paragraph
11767 Using 
11768 \family sans
11769 Note
11770 \family default
11771  with 
11772 \family sans
11773 Slide
11774 \family default
11775
11776 \begin_inset CommandInset label
11777 LatexCommand label
11778 name "sec:slideNote"
11779
11780 \end_inset
11781
11782
11783 \end_layout
11784
11785 \begin_layout Standard
11786 Like an 
11787 \family sans
11788 Overlay
11789 \family default
11790 ,
11791  a 
11792 \family sans
11793 Note
11794 \family default
11795  is associated with a 
11796 \begin_inset Quotes eld
11797 \end_inset
11798
11799 parent
11800 \begin_inset Quotes erd
11801 \end_inset
11802
11803  
11804 \family sans
11805 Slide
11806 \family default
11807 .
11808  Here,
11809  too,
11810  the \SpecialChar LyX
11811  
11812 \family sans
11813 slides
11814 \family default
11815  class provides visual cues.
11816  The label for a 
11817 \family sans
11818 Note
11819 \family default
11820  is shorter than that of a 
11821 \family sans
11822 Slide
11823 \family default
11824  [yet longer than that of an 
11825 \family sans
11826 Overlay
11827 \family default
11828 ] and,
11829  like the label of an 
11830 \family sans
11831 Overlay
11832 \family default
11833  is shockingly magenta.
11834  Additionally,
11835  the printed 
11836 \family sans
11837 Note
11838 \family default
11839  has the page number of its 
11840 \begin_inset Quotes eld
11841 \end_inset
11842
11843 parent
11844 \begin_inset Quotes erd
11845 \end_inset
11846
11847  
11848 \family sans
11849 Slide
11850 \family default
11851 ,
11852  appended by 
11853 \begin_inset Quotes eld
11854 \end_inset
11855
11856
11857 \family typewriter
11858 -
11859 \family default
11860 1
11861 \begin_inset Quotes erd
11862 \end_inset
11863
11864 ,
11865  
11866 \begin_inset Quotes eld
11867 \end_inset
11868
11869
11870 \family typewriter
11871 -
11872 \family default
11873 2
11874 \begin_inset Quotes erd
11875 \end_inset
11876
11877 ,
11878  
11879 \begin_inset Quotes eld
11880 \end_inset
11881
11882
11883 \family typewriter
11884 -
11885 \family default
11886 3
11887 \begin_inset Quotes erd
11888 \end_inset
11889
11890 ,
11891  etc.
11892  You can have multiple 
11893 \family sans
11894 Note
11895 \family default
11896 s associated with a single 
11897 \family sans
11898 Slide
11899 \family default
11900 ,
11901  and,
11902  as with 
11903 \family sans
11904 Slide
11905 \family default
11906  and 
11907 \family sans
11908 Overlay
11909 \family default
11910 ,
11911  you'll probably want to break up long 
11912 \family sans
11913 Note
11914 \family default
11915 s so that they fit on a single sheet of paper.
11916 \end_layout
11917
11918 \begin_layout Standard
11919 The purpose of a 
11920 \family sans
11921 Note
11922 \family default
11923  is obvious:
11924  it contains anything additional you might want to say about a 
11925 \family sans
11926 Slide
11927 \family default
11928 .
11929  It could also be used as a sheet of reminders for a particular 
11930 \family sans
11931 Slide
11932 \family default
11933 .
11934  In the case of the latter,
11935  you might want to make use of time markers.
11936  Currently,
11937  the \SpecialChar LyX
11938  
11939 \family sans
11940 slides
11941 \family default
11942  class has no 
11943 \begin_inset Quotes eld
11944 \end_inset
11945
11946 native
11947 \begin_inset Quotes erd
11948 \end_inset
11949
11950  support for time markers,
11951  a 
11952 \noun on
11953 Sli\SpecialChar TeX
11954
11955 \noun default
11956  feature.
11957  So,
11958  you'll have to resort to using the \SpecialChar LaTeX
11959  codes.
11960 \end_layout
11961
11962 \begin_layout Standard
11963 To use time markers,
11964  you'll need to specify the extra class option 
11965 \begin_inset Quotes eld
11966 \end_inset
11967
11968
11969 \family typewriter
11970 clock
11971 \family default
11972
11973 \begin_inset Quotes erd
11974 \end_inset
11975
11976  [see section
11977 \begin_inset space ~
11978 \end_inset
11979
11980
11981 \begin_inset CommandInset ref
11982 LatexCommand ref
11983 reference "sec:slidesetup"
11984 nolink "false"
11985
11986 \end_inset
11987
11988 ].
11989  This option turns on timing marks,
11990  which will appear in the lower-left-hand corner of every 
11991 \family sans
11992 Note
11993 \family default
11994  you generate.
11995  To set what appears in the time marker,
11996  you use the \SpecialChar LaTeX
11997  commands 
11998 \begin_inset Quotes eld
11999 \end_inset
12000
12001
12002 \family typewriter
12003
12004 \backslash
12005 settime{}
12006 \family default
12007
12008 \begin_inset Quotes erd
12009 \end_inset
12010
12011  and 
12012 \begin_inset Quotes eld
12013 \end_inset
12014
12015
12016 \family typewriter
12017
12018 \backslash
12019 addtime{}
12020 \family default
12021
12022 \begin_inset Quotes erd
12023 \end_inset
12024
12025 .
12026  The arguments of both commands are time measured in seconds.
12027  
12028 \begin_inset Quotes eld
12029 \end_inset
12030
12031
12032 \family typewriter
12033
12034 \backslash
12035 settime{}
12036 \family default
12037
12038 \begin_inset Quotes erd
12039 \end_inset
12040
12041  sets the time marker to a given time.
12042  
12043 \begin_inset Quotes eld
12044 \end_inset
12045
12046
12047 \family typewriter
12048
12049 \backslash
12050 addtime{}
12051 \family default
12052
12053 \begin_inset Quotes erd
12054 \end_inset
12055
12056  increments the time marker by the specified amount.
12057  Using time markers and 
12058 \family sans
12059 Note
12060 \family default
12061 s in this fashion,
12062  you can remind yourself how much time to spend on a particular 
12063 \family sans
12064 Slide
12065 \family default
12066 .
12067 \end_layout
12068
12069 \begin_layout Standard
12070 There's one last feature to describe.
12071  Clearly,
12072  you'd like to print out all of your 
12073 \family sans
12074 Slide
12075 \family default
12076 s and 
12077 \family sans
12078 Overlay
12079 \family default
12080 s on transparencies while printing all of your 
12081 \family sans
12082 Note
12083 \family default
12084 s on plain paper.
12085  However,
12086  a 
12087 \family sans
12088 Note
12089 \family default
12090  
12091 \emph on
12092 must
12093 \emph default
12094  follow the 
12095 \family sans
12096 Slide
12097 \family default
12098  with which it is associated.
12099  What's a person to do?
12100 \end_layout
12101
12102 \begin_layout Standard
12103 Luckily,
12104  there are two \SpecialChar LaTeX
12105  commands that allow you to select what to print out.
12106  Both must be placed into the preamble of your document.
12107  The command 
12108 \begin_inset Quotes eld
12109 \end_inset
12110
12111
12112 \family typewriter
12113
12114 \backslash
12115 onlyslides{
12116 \backslash
12117 slides}
12118 \family default
12119
12120 \begin_inset Quotes erd
12121 \end_inset
12122
12123  will cause the output to contain only the 
12124 \family sans
12125 Slide
12126 \family default
12127 s and 
12128 \family sans
12129 Overlay
12130 \family default
12131 s.
12132  Correspondingly,
12133  the command 
12134 \begin_inset Quotes eld
12135 \end_inset
12136
12137
12138 \family typewriter
12139
12140 \backslash
12141 onlynotes{
12142 \backslash
12143 notes}
12144 \family default
12145
12146 \begin_inset Quotes erd
12147 \end_inset
12148
12149  prevents the output of anything but 
12150 \family sans
12151 Note
12152 \family default
12153 s.
12154  I'd advise placing both commands in the preamble and initially comment both out.
12155  You can then preview your entire presentation as you write.
12156  When you're done writing,
12157  you can then uncomment one of the two to select what you want to print.
12158  I like to uncomment 
12159 \begin_inset Quotes eld
12160 \end_inset
12161
12162
12163 \family typewriter
12164
12165 \backslash
12166 onlyslides{
12167 \backslash
12168 slides}
12169 \family default
12170
12171 \begin_inset Quotes erd
12172 \end_inset
12173
12174  ,
12175  print to a file with 
12176 \begin_inset Quotes eld
12177 \end_inset
12178
12179
12180 \family typewriter
12181 -slides
12182 \family default
12183
12184 \begin_inset Quotes erd
12185 \end_inset
12186
12187  in its name,
12188  comment it back out,
12189  then uncomment 
12190 \begin_inset Quotes eld
12191 \end_inset
12192
12193
12194 \family typewriter
12195
12196 \backslash
12197 onlynotes{
12198 \backslash
12199 notes}
12200 \family default
12201
12202 \begin_inset Quotes erd
12203 \end_inset
12204
12205  and print to a 
12206 \begin_inset Quotes eld
12207 \end_inset
12208
12209
12210 \family typewriter
12211 *-notes.ps
12212 \family default
12213
12214 \begin_inset Quotes erd
12215 \end_inset
12216
12217  file.
12218  I can then send either file to a printer,
12219  loading transparencies or plain paper as appropriate.
12220 \end_layout
12221
12222 \begin_layout Standard
12223 You can also provide other arguments to the 
12224 \begin_inset Quotes eld
12225 \end_inset
12226
12227
12228 \family typewriter
12229
12230 \backslash
12231 onlyslides{}
12232 \family default
12233
12234 \begin_inset Quotes erd
12235 \end_inset
12236
12237  and 
12238 \begin_inset Quotes eld
12239 \end_inset
12240
12241
12242 \family typewriter
12243
12244 \backslash
12245 onlynotes{}
12246 \family default
12247
12248 \begin_inset Quotes erd
12249 \end_inset
12250
12251  commands.
12252  See a good \SpecialChar LaTeX
12253  book for details.
12254 \end_layout
12255
12256 \begin_layout Subsubsection
12257 The 
12258 \family sans
12259 slides
12260 \family default
12261  Class Template File
12262 \end_layout
12263
12264 \begin_layout Standard
12265 I have also provided a template file with the 
12266 \family sans
12267 slides
12268 \family default
12269  class.
12270  To use it,
12271  begin your new presentation with 
12272 \family sans
12273 File\SpecialChar menuseparator
12274 New
12275 \begin_inset space ~
12276 \end_inset
12277
12278 from
12279 \begin_inset space ~
12280 \end_inset
12281
12282 Template\SpecialChar menuseparator
12283 Presentations\SpecialChar menuseparator
12284 Slides
12285 \family default
12286 .
12287  Your new \SpecialChar LyX
12288  presentation file will contain an example 
12289 \family sans
12290 Slide
12291 \family default
12292  – 
12293 \family sans
12294 Overlay
12295 \family default
12296  – 
12297 \family sans
12298 Note
12299 \family default
12300  triplet.
12301  The 
12302 \family sans
12303 Slide
12304 \family default
12305  and 
12306 \family sans
12307 Overlay
12308 \family default
12309  additionally contain an example of the use of 
12310 \family sans
12311 InvisibleText
12312 \family default
12313  and 
12314 \family sans
12315 VisibleText
12316 \family default
12317 .
12318  Lastly,
12319  the preamble will contain:
12320 \end_layout
12321
12322 \begin_layout LyX-Code
12323 % Uncomment to print out only slides and overlays
12324 \end_layout
12325
12326 \begin_layout LyX-Code
12327 %
12328 \end_layout
12329
12330 \begin_layout LyX-Code
12331 %
12332 \backslash
12333 onlyslides{
12334 \backslash
12335 slides}
12336 \begin_inset Newline newline
12337 \end_inset
12338
12339  
12340 \end_layout
12341
12342 \begin_layout LyX-Code
12343 % Uncomment to print out only notes
12344 \end_layout
12345
12346 \begin_layout LyX-Code
12347 %
12348 \end_layout
12349
12350 \begin_layout LyX-Code
12351 %
12352 \backslash
12353 onlynotes{
12354 \backslash
12355 notes}
12356 \end_layout
12357
12358 \begin_layout Standard
12359 One final thing:
12360  I created this class to support the \SpecialChar LaTeX2e
12361  
12362 \begin_inset Quotes eld
12363 \end_inset
12364
12365
12366 \noun on
12367 Sli\SpecialChar TeX
12368
12369 \noun default
12370  emulation
12371 \begin_inset Quotes erd
12372 \end_inset
12373
12374  class,
12375  one of the built-in \SpecialChar LaTeX2e
12376  classes.
12377  Neither I nor the rest of the \SpecialChar LyX
12378  Team endorse or oppose the use of this built-in slide class.
12379  It's here if you want it or need it.
12380  There exist other \SpecialChar LaTeX2e
12381  classes for creating presentations,
12382  such 
12383 \family sans
12384 Foils
12385 \family default
12386  (see section
12387 \begin_inset space ~
12388 \end_inset
12389
12390
12391 \begin_inset CommandInset ref
12392 LatexCommand ref
12393 reference "sec:foiltex"
12394 nolink "false"
12395
12396 \end_inset
12397
12398 ) or 
12399 \family sans
12400 Seminar
12401 \family default
12402  (see section
12403 \begin_inset space ~
12404 \end_inset
12405
12406
12407 \begin_inset CommandInset ref
12408 LatexCommand ref
12409 reference "subsec:Seminar"
12410 plural "false"
12411 caps "false"
12412 noprefix "false"
12413 nolink "false"
12414
12415 \end_inset
12416
12417 ).
12418  Try them out to see what sort of alternative they provide.
12419 \end_layout
12420
12421 \begin_layout Section
12422 Reports
12423 \end_layout
12424
12425 \begin_layout Subsection
12426 report
12427 \end_layout
12428
12429 \begin_layout Standard
12430 Report classes are sort of a hybrid between book and article classes:
12431  like book classes,
12432  they provide parts,
12433  chapters and sections but does not provide frontmatter,
12434  mainmatter,
12435  and backmatter;
12436  like article classes,
12437  they provide abstract paragraph styles and are one-sided by default.
12438  Also,
12439  they do not start a new chapter on the right hand page (even in two-side mode).
12440 \end_layout
12441
12442 \begin_layout Standard
12443 All externally maintained 
12444 \family sans
12445 report
12446 \family default
12447  document classes that are officially supported by \SpecialChar LyX
12448  are described in the Collections (section
12449 \begin_inset space ~
12450 \end_inset
12451
12452
12453 \begin_inset CommandInset ref
12454 LatexCommand ref
12455 reference "sec:Collections"
12456 nolink "false"
12457
12458 \end_inset
12459
12460 ):
12461 \end_layout
12462
12463 \begin_layout Itemize
12464 For 
12465 \family sans
12466 Japanese Report (Standard Class,
12467  vertical Writing)
12468 \family default
12469  and 
12470 \family sans
12471 Japanese Report (Standard Class)
12472 \family default
12473 ,
12474  see section
12475 \begin_inset space ~
12476 \end_inset
12477
12478
12479 \begin_inset CommandInset ref
12480 LatexCommand ref
12481 reference "subsec:Japanese"
12482 nolink "false"
12483
12484 \end_inset
12485
12486 .
12487 \end_layout
12488
12489 \begin_layout Itemize
12490 For 
12491 \family sans
12492 KOMA-Script Report
12493 \family default
12494 ,
12495  see section
12496 \begin_inset space ~
12497 \end_inset
12498
12499
12500 \begin_inset CommandInset ref
12501 LatexCommand ref
12502 reference "subsec:KOMA-Script"
12503 nolink "false"
12504
12505 \end_inset
12506
12507 .
12508 \end_layout
12509
12510 \begin_layout Itemize
12511 For 
12512 \family sans
12513 Report (Standard Class with Extra Font Sizes)
12514 \family default
12515 ,
12516  see section
12517 \begin_inset space ~
12518 \end_inset
12519
12520
12521 \begin_inset CommandInset ref
12522 LatexCommand ref
12523 reference "subsec:Extra-font-sizes"
12524 nolink "false"
12525
12526 \end_inset
12527
12528 .
12529 \end_layout
12530
12531 \begin_layout Itemize
12532 For 
12533 \family sans
12534 Polish Report (MW Bundle)
12535 \family default
12536 ,
12537  see section
12538 \begin_inset space ~
12539 \end_inset
12540
12541
12542 \begin_inset CommandInset ref
12543 LatexCommand ref
12544 reference "subsec:Polish-M.W.collection"
12545 plural "false"
12546 caps "false"
12547 noprefix "false"
12548 nolink "false"
12549
12550 \end_inset
12551
12552 .
12553 \end_layout
12554
12555 \begin_layout Section
12556 Scripts
12557 \end_layout
12558
12559 \begin_layout Standard
12560 In the 
12561 \family sans
12562 Scripts
12563 \family default
12564  category,
12565  we assemble document classes that help to write drama or movie scripts.
12566  The category is also open for other scripts,
12567  such as lecture scripts,
12568  for which no classes are officially supported yet by \SpecialChar LyX
12569  though.
12570 \end_layout
12571
12572 \begin_layout Subsection
12573 Broadway
12574 \end_layout
12575
12576 \begin_layout Standard
12577 by 
12578 \shape smallcaps
12579 Garst Reese
12580 \end_layout
12581
12582 \begin_layout Subsubsection
12583 Introduction
12584 \end_layout
12585
12586 \begin_layout Standard
12587
12588 \family sans
12589 Broadway
12590 \family default
12591  is for writing plays.
12592  The format is more decorative than 
12593 \family sans
12594 Hollywood
12595 \family default
12596  (see sec.
12597 \begin_inset space ~
12598 \end_inset
12599
12600
12601 \begin_inset CommandInset ref
12602 LatexCommand ref
12603 reference "subsec:Hollywood"
12604
12605 \end_inset
12606
12607 ),
12608  and much less standardized.
12609  This format should be suitable for workshops.
12610 \end_layout
12611
12612 \begin_layout Subsubsection
12613 Special problems
12614 \end_layout
12615
12616 \begin_layout Standard
12617 The same as in 
12618 \family sans
12619 Hollywood
12620 \family default
12621  (see section
12622 \begin_inset space ~
12623 \end_inset
12624
12625
12626 \begin_inset CommandInset ref
12627 LatexCommand ref
12628 reference "subsec:Special-problems-Hollywood"
12629
12630 \end_inset
12631
12632 ).
12633 \end_layout
12634
12635 \begin_layout Subsubsection
12636 Special features
12637 \end_layout
12638
12639 \begin_layout Standard
12640 Insert the 
12641 \family sans
12642 Speaker
12643 \family default
12644  names as labels then cross-reference the label to insert the name.
12645  The cross-reference dialog will show the current cast of characters.
12646 \end_layout
12647
12648 \begin_layout Subsubsection
12649 Paper size and Margins
12650 \end_layout
12651
12652 \begin_layout Standard
12653 USLetter,
12654  left 1.6in,
12655  right 0.75in,
12656  top 0.5in,
12657  bottom 0.75in
12658 \end_layout
12659
12660 \begin_layout Subsubsection
12661 Environments
12662 \end_layout
12663
12664 \begin_layout Standard
12665 The following environments are available.
12666  You can use 
12667 \family typewriter
12668 broadway.bind
12669 \family default
12670  to get the bind keys shown at the right.
12671 \end_layout
12672
12673 \begin_layout Itemize
12674
12675 \family sans
12676 Standard
12677 \begin_inset Newline newline
12678 \end_inset
12679
12680
12681 \family default
12682 You should not have to use this,
12683  but it is here for anything that does not fit otherwise.
12684 \end_layout
12685
12686 \begin_layout Itemize
12687
12688 \family sans
12689 Narrative
12690 \begin_inset space \hfill{}
12691 \end_inset
12692
12693 M-z n
12694 \begin_inset Newline newline
12695 \end_inset
12696
12697
12698 \family default
12699 Used to describe stage setting and the action.
12700  First use of speaker names in all CAPs.
12701 \end_layout
12702
12703 \begin_layout Itemize
12704
12705 \family sans
12706 ACT
12707 \begin_inset space \hfill{}
12708 \end_inset
12709
12710 M-z a
12711 \begin_inset Newline newline
12712 \end_inset
12713
12714
12715 \family default
12716 Automatically numbered.
12717  On screen it will be arabic,
12718  but will print as Roman.
12719 \end_layout
12720
12721 \begin_layout Itemize
12722
12723 \family sans
12724 ACT*
12725 \begin_inset space \hfill{}
12726 \end_inset
12727
12728 M-z S at
12729 \begin_inset Newline newline
12730 \end_inset
12731
12732
12733 \family default
12734 Subtitle for 
12735 \family sans
12736 ACT.
12737
12738 \family default
12739  It is just centered text.
12740 \end_layout
12741
12742 \begin_layout Itemize
12743
12744 \family sans
12745 SCENE
12746 \begin_inset space \hfill{}
12747 \end_inset
12748
12749 M-z S-S
12750 \begin_inset Newline newline
12751 \end_inset
12752
12753
12754 \family default
12755 Not automatically numbered.
12756  You supply the number.
12757  This is because I couldn't figure out how.
12758 \end_layout
12759
12760 \begin_layout Itemize
12761
12762 \family sans
12763 AT_RISE:
12764 \begin_inset space \hfill{}
12765 \end_inset
12766
12767 M-z S-R
12768 \begin_inset Newline newline
12769 \end_inset
12770
12771
12772 \family default
12773 A special case of Narrative to describe the setting and action as the curtain rises.
12774 \end_layout
12775
12776 \begin_layout Itemize
12777
12778 \family sans
12779 Speaker
12780 \begin_inset space \hfill{}
12781 \end_inset
12782
12783 M-z s
12784 \begin_inset Newline newline
12785 \end_inset
12786
12787
12788 \family default
12789 The speaker's (actor's) title,
12790  centered in all CAPS.
12791 \end_layout
12792
12793 \begin_layout Itemize
12794
12795 \family sans
12796 Parenthetical
12797 \begin_inset space \hfill{}
12798 \end_inset
12799
12800 M-z p
12801 \begin_inset Newline newline
12802 \end_inset
12803
12804
12805 \family default
12806 Instructions to the speaker.
12807  The parentheses are automatically inserted.
12808  The ( will appear on screen,
12809  but both will be in the printed play.
12810  This environment is only used within 
12811 \family sans
12812 Dialogue
12813 \family default
12814 .
12815 \end_layout
12816
12817 \begin_layout Itemize
12818
12819 \family sans
12820 Dialogue
12821 \begin_inset space \hfill{}
12822 \end_inset
12823
12824 M-z d
12825 \begin_inset Newline newline
12826 \end_inset
12827
12828
12829 \family default
12830 What the Speaker says.
12831 \end_layout
12832
12833 \begin_layout Itemize
12834
12835 \family sans
12836 CURTAIN
12837 \begin_inset space \hfill{}
12838 \end_inset
12839
12840 M-z S-C
12841 \begin_inset Newline newline
12842 \end_inset
12843
12844
12845 \family default
12846 The curtain comes down.
12847 \end_layout
12848
12849 \begin_layout Itemize
12850
12851 \family sans
12852 Title
12853 \begin_inset space \hfill{}
12854 \end_inset
12855
12856 M-z S-T
12857 \end_layout
12858
12859 \begin_layout Itemize
12860
12861 \family sans
12862 Author
12863 \begin_inset space \hfill{}
12864 \end_inset
12865
12866 M-z S-A
12867 \end_layout
12868
12869 \begin_layout Itemize
12870
12871 \family sans
12872 Right_Address
12873 \begin_inset space \hfill{}
12874 \end_inset
12875
12876 M-z r
12877 \end_layout
12878
12879 \begin_layout Standard
12880 Hello there.
12881 \end_layout
12882
12883 \begin_layout Subsection
12884 \begin_inset CommandInset label
12885 LatexCommand label
12886 name "subsec:Hollywood"
12887
12888 \end_inset
12889
12890 Hollywood (Hollywood spec scripts)
12891 \end_layout
12892
12893 \begin_layout Standard
12894 by 
12895 \shape smallcaps
12896 Garst Reese
12897 \end_layout
12898
12899 \begin_layout Subsubsection
12900 Introduction
12901 \end_layout
12902
12903 \begin_layout Standard
12904 Getting the format of a Hollywood script right is a 
12905 \begin_inset Quotes eld
12906 \end_inset
12907
12908 rite of passage.
12909 \begin_inset Quotes erd
12910 \end_inset
12911
12912  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
12913  Each page of a script should be one minute of film.
12914  Nothing goes in a script that you cannot see or hear on screen.
12915  The courier 12 pt font should be used throughout.
12916  No italics.
12917 \end_layout
12918
12919 \begin_layout Subsubsection
12920 \begin_inset CommandInset label
12921 LatexCommand label
12922 name "subsec:Special-problems-Hollywood"
12923
12924 \end_inset
12925
12926 Special problems
12927 \end_layout
12928
12929 \begin_layout Standard
12930 Speakers' lines should 
12931 \emph on
12932 never
12933 \emph default
12934  break in mid-sentence.
12935  If a speaker's lines continue over a page break,
12936  repeat the 
12937 \family sans
12938 Speaker
12939 \family default
12940  title followed by (Cont'd).
12941 \end_layout
12942
12943 \begin_layout Subsubsection
12944 Special features
12945 \end_layout
12946
12947 \begin_layout Standard
12948 Insert the 
12949 \family sans
12950 Speaker
12951 \family default
12952  names as labels then cross-reference the label to insert the name.
12953  The cross-reference dialog will show the current cast of characters.
12954  You can use this to insert the speaker name in narratives also.
12955 \end_layout
12956
12957 \begin_layout Subsubsection
12958 Paper size and Margins
12959 \end_layout
12960
12961 \begin_layout Standard
12962 USLetter,
12963  left 1.6in,
12964  right 0.75in,
12965  top 0.5in,
12966  bottom 0.75in
12967 \end_layout
12968
12969 \begin_layout Subsubsection
12970 Environments
12971 \end_layout
12972
12973 \begin_layout Standard
12974 The following environments are available.
12975  You can use 
12976 \family typewriter
12977 hollywood.bind
12978 \family default
12979  to get the bind keys shown at the right.
12980 \end_layout
12981
12982 \begin_layout Itemize
12983
12984 \family sans
12985 Standard
12986 \begin_inset Newline newline
12987 \end_inset
12988
12989
12990 \family default
12991 Used where nothing else works.
12992  Try to avoid it.
12993 \end_layout
12994
12995 \begin_layout Itemize
12996
12997 \family sans
12998 FADE_IN
12999 \family default
13000 :
13001 \begin_inset space \hfill{}
13002 \end_inset
13003
13004
13005 \family sans
13006 M-z S-I
13007 \family default
13008
13009 \begin_inset Newline newline
13010 \end_inset
13011
13012 Usually followed by something like 
13013 \begin_inset Quotes eld
13014 \end_inset
13015
13016 on Sally waking up.
13017 \begin_inset Quotes erd
13018 \end_inset
13019
13020
13021 \end_layout
13022
13023 \begin_layout Itemize
13024
13025 \family sans
13026 INT:
13027 \begin_inset space \hfill{}
13028 \end_inset
13029
13030 M-z i
13031 \begin_inset Newline newline
13032 \end_inset
13033
13034
13035 \family default
13036 Introduces a new INTERIOR camera set-up.
13037  Always followed by DAY or NIGHT,
13038  or something similar to define the lighting required.
13039  Everthing on this line in CAPS.
13040 \end_layout
13041
13042 \begin_layout Itemize
13043
13044 \family sans
13045 EXT:
13046 \begin_inset space \hfill{}
13047 \end_inset
13048
13049 M-z e
13050 \begin_inset Newline newline
13051 \end_inset
13052
13053
13054 \family default
13055 Introduces a new EXTERIOR camera set-up.
13056  Everthing on this line in CAPS.
13057 \end_layout
13058
13059 \begin_layout Itemize
13060
13061 \family sans
13062 Speaker
13063 \begin_inset space \hfill{}
13064 \end_inset
13065
13066 M-z s
13067 \begin_inset Newline newline
13068 \end_inset
13069
13070
13071 \family default
13072 The character speaking.
13073 \end_layout
13074
13075 \begin_layout Itemize
13076
13077 \family sans
13078 Parenthetical
13079 \begin_inset space \hfill{}
13080 \end_inset
13081
13082 M-z p
13083 \begin_inset Newline newline
13084 \end_inset
13085
13086
13087 \family default
13088 Instructions to the speaker.
13089  The () are automatically inserted.
13090 \end_layout
13091
13092 \begin_layout Itemize
13093
13094 \family sans
13095 Dialogue
13096 \begin_inset space \hfill{}
13097 \end_inset
13098
13099 M-z d
13100 \begin_inset Newline newline
13101 \end_inset
13102
13103
13104 \family default
13105 What the 
13106 \family sans
13107 Speaker
13108 \family default
13109  says.
13110 \end_layout
13111
13112 \begin_layout Itemize
13113
13114 \family sans
13115 Transition
13116 \begin_inset space \hfill{}
13117 \end_inset
13118
13119 M-z t
13120 \begin_inset Newline newline
13121 \end_inset
13122
13123
13124 \family default
13125 Camera movement instruction.
13126  e.
13127 \begin_inset space \thinspace{}
13128 \end_inset
13129
13130 g.
13131 \begin_inset space \space{}
13132 \end_inset
13133
13134 CUT TO:
13135 \end_layout
13136
13137 \begin_layout Itemize
13138
13139 \family sans
13140 FADE OUT:
13141 \begin_inset space \hfill{}
13142 \end_inset
13143
13144 M-z S-I
13145 \end_layout
13146
13147 \begin_layout Itemize
13148
13149 \family sans
13150 Author
13151 \begin_inset space \hfill{}
13152 \end_inset
13153
13154 M-z S-A
13155 \end_layout
13156
13157 \begin_layout Itemize
13158
13159 \family sans
13160 Title
13161 \begin_inset space \hfill{}
13162 \end_inset
13163
13164 M-z S-T
13165 \end_layout
13166
13167 \begin_layout Itemize
13168
13169 \family sans
13170 Right_Address
13171 \begin_inset space \hfill{}
13172 \end_inset
13173
13174 M-z r
13175 \end_layout
13176
13177 \begin_layout Subsubsection
13178 Script jargon
13179 \end_layout
13180
13181 \begin_layout Itemize
13182 (O.S) —
13183  off screen
13184 \end_layout
13185
13186 \begin_layout Itemize
13187 (V.0) —
13188  voice over
13189 \end_layout
13190
13191 \begin_layout Itemize
13192 b.
13193 \begin_inset space \thinspace{}
13194 \end_inset
13195
13196 g.
13197  —
13198  background
13199 \end_layout
13200
13201 \begin_layout Itemize
13202 C.U.
13203  —
13204  close-up
13205 \end_layout
13206
13207 \begin_layout Itemize
13208 PAN —
13209  camera movement
13210 \end_layout
13211
13212 \begin_layout Itemize
13213 INSERT —
13214  cut to close-up of
13215 \end_layout
13216
13217 \begin_layout Chapter
13218 Modules
13219 \end_layout
13220
13221 \begin_layout Section
13222 Academic Field Specifics
13223 \end_layout
13224
13225 \begin_layout Subsection
13226 Chemistry:
13227  Hazard and Precautionary Statements
13228 \end_layout
13229
13230 \begin_layout Standard
13231 This module provides two insets and a paragraph style to typeset numbers and phrases of chemical hazard and precautionary statements.
13232  For a description see 
13233 \family sans
13234 File\SpecialChar menuseparator
13235 Open Example\SpecialChar menuseparator
13236 Modules\SpecialChar menuseparator
13237 Hazard and Precautionary Statements
13238 \family default
13239  and 
13240 \family sans
13241 Help\SpecialChar menuseparator
13242 Specific Manuals\SpecialChar menuseparator
13243 Hazard and Precautionary Statements
13244 \family default
13245 .
13246 \end_layout
13247
13248 \begin_layout Subsection
13249
13250 \series bold
13251 Chemistry:
13252  Risk and Safety Statements
13253 \end_layout
13254
13255 \begin_layout Standard
13256 This module provides two insets,
13257  
13258 \family sans
13259 R-S number
13260 \family default
13261  and 
13262 \family sans
13263 R-S phrase
13264 \family default
13265 ,
13266  accessible via the menu 
13267 \family sans
13268 \bar under
13269 I
13270 \bar default
13271 nsert\SpecialChar menuseparator
13272 Custom
13273 \begin_inset space ~
13274 \end_inset
13275
13276 Insets
13277 \family default
13278  and an environment to typeset numbers and phrases of chemical risk and safety statements.
13279 \end_layout
13280
13281 \begin_layout Subsection
13282 Linguistics
13283 \end_layout
13284
13285 \begin_layout Standard
13286 This module provides specific environments useful for linguistics (numbered examples,
13287  glosses,
13288  semantic markup,
13289  OT tableau floats,
13290  Discourse Representation Structures,
13291  phonetic symbols).
13292  You can obtain information about this module in 
13293 \family sans
13294 \bar under
13295 H
13296 \bar default
13297 elp\SpecialChar menuseparator
13298 S
13299 \bar under
13300 p
13301 \bar default
13302 ecific
13303 \begin_inset space ~
13304 \end_inset
13305
13306 Manuals\SpecialChar menuseparator
13307
13308 \bar under
13309 L
13310 \bar default
13311 inguistics
13312 \family default
13313  and 
13314 \family sans
13315 File\SpecialChar menuseparator
13316 Open Example\SpecialChar menuseparator
13317 Modules\SpecialChar menuseparator
13318 Linguistics
13319 \family default
13320 .
13321 \end_layout
13322
13323 \begin_layout Section
13324 Accessibility
13325 \end_layout
13326
13327 \begin_layout Subsection
13328 Braille
13329 \end_layout
13330
13331 \begin_layout Standard
13332 This module supports the Braille script.
13333  It requires the \SpecialChar LaTeX
13334  package 
13335 \family typewriter
13336 braille.sty
13337 \family default
13338 .
13339  This and its documentation can be obtained from 
13340 \begin_inset CommandInset href
13341 LatexCommand href
13342 name "CTAN"
13343 target "https://www.ctan.org/pkg/braille"
13344 literal "false"
13345
13346 \end_inset
13347
13348 .
13349  See 
13350 \family sans
13351 \bar under
13352 H
13353 \bar default
13354 elp\SpecialChar menuseparator
13355 S
13356 \bar under
13357 p
13358 \bar default
13359 ecific
13360 \begin_inset space ~
13361 \end_inset
13362
13363 Manuals\SpecialChar menuseparator
13364
13365 \bar under
13366 B
13367 \bar default
13368 raille
13369 \family default
13370  and 
13371 \family sans
13372 File\SpecialChar menuseparator
13373 Open Example\SpecialChar menuseparator
13374 Modules\SpecialChar menuseparator
13375 Braille
13376 \family default
13377 .
13378 \end_layout
13379
13380 \begin_layout Section
13381 Annotation & Revision
13382 \end_layout
13383
13384 \begin_layout Subsection
13385 FiXme Notes
13386 \end_layout
13387
13388 \begin_layout Standard
13389 This module provides “FiXme” (marginal) annotations for document revision purposes.
13390  A list of annotations can be produced by using the “List of FIXMEs” in the outline panel.
13391  The annotations are customizable via the LaTeX preamble.
13392  See the 
13393 \family typewriter
13394 fixme
13395 \family default
13396  documentation which can be obtained from 
13397 \begin_inset CommandInset href
13398 LatexCommand href
13399 name "CTAN"
13400 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13401 literal "false"
13402
13403 \end_inset
13404
13405 .
13406 \end_layout
13407
13408 \begin_layout Standard
13409
13410 \series bold
13411 Note
13412 \series default
13413 :
13414  by default,
13415  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
13416 \family sans
13417 Document\SpecialChar menuseparator
13418 Settings\SpecialChar menuseparator
13419 Document Class\SpecialChar menuseparator
13420 Class
13421 \begin_inset space ~
13422 \end_inset
13423
13424 Options\SpecialChar menuseparator
13425 Custom
13426 \family default
13427 ).
13428  To display them always,
13429  insert 
13430 \family typewriter
13431
13432 \backslash
13433 fxsetup{draft}
13434 \family default
13435  in 
13436 \family sans
13437 Document\SpecialChar menuseparator
13438 Settings\SpecialChar menuseparator
13439 \SpecialChar LaTeX
13440
13441 \begin_inset space ~
13442 \end_inset
13443
13444 Preamble
13445 \family default
13446 .
13447 \end_layout
13448
13449 \begin_layout Subsection
13450 PDF Comments
13451 \end_layout
13452
13453 \begin_layout Standard
13454 This module provides various kinds of annotations for PDF output.
13455  See 
13456 \family sans
13457 Help\SpecialChar menuseparator
13458 Specific
13459 \begin_inset space ~
13460 \end_inset
13461
13462 Manuals\SpecialChar menuseparator
13463 PDF
13464 \begin_inset space ~
13465 \end_inset
13466
13467 comments 
13468 \family default
13469 and
13470 \family sans
13471  File\SpecialChar menuseparator
13472 Open
13473 \begin_inset space ~
13474 \end_inset
13475
13476 Example\SpecialChar menuseparator
13477 Modules\SpecialChar menuseparator
13478 PDF
13479 \begin_inset space ~
13480 \end_inset
13481
13482 Comments
13483 \family default
13484 .
13485 \end_layout
13486
13487 \begin_layout Subsection
13488
13489 \series bold
13490 PDF Form
13491 \end_layout
13492
13493 \begin_layout Standard
13494 This module provides fields and buttons for PDF forms.
13495  See the 
13496 \begin_inset CommandInset href
13497 LatexCommand href
13498 name "hyperref documentation"
13499 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13500 literal "false"
13501
13502 \end_inset
13503
13504 ,
13505  
13506 \family sans
13507 Help\SpecialChar menuseparator
13508 Specific
13509 \begin_inset space ~
13510 \end_inset
13511
13512 Manuals\SpecialChar menuseparator
13513 PDF
13514 \begin_inset space ~
13515 \end_inset
13516
13517 forms 
13518 \family default
13519 and
13520 \family sans
13521  File\SpecialChar menuseparator
13522 Open
13523 \begin_inset space ~
13524 \end_inset
13525
13526 Example\SpecialChar menuseparator
13527 Modules\SpecialChar menuseparator
13528 PDF
13529 \begin_inset space ~
13530 \end_inset
13531
13532 Form
13533 \family default
13534 .
13535 \end_layout
13536
13537 \begin_layout Subsection
13538
13539 \series bold
13540 Ruby (Furigana)
13541 \end_layout
13542
13543 \begin_layout Standard
13544 This module defines an inset to typeset reading aids (ruby,
13545  furigana) to Chinese characters.
13546  It uses the 
13547 \family typewriter
13548 okumakro
13549 \family default
13550 ,
13551  
13552 \family typewriter
13553 luatexja-ruby
13554 \family default
13555  or 
13556 \family typewriter
13557 ruby
13558 \family default
13559  package (depending on the TeX engine) or a fallback definition.
13560 \end_layout
13561
13562 \begin_layout Subsection
13563
13564 \series bold
13565 TODO notes
13566 \end_layout
13567
13568 \begin_layout Standard
13569 This module provides custom insets to insert TODO items in your document.
13570  In order to generate a “List of TODOs,” the module provides a paragraph style.
13571  Inserting 
13572 \family typewriter
13573 final
13574 \family default
13575  in 
13576 \family sans
13577 Document\SpecialChar menuseparator
13578 Settings\SpecialChar menuseparator
13579 Document Class\SpecialChar menuseparator
13580 Class
13581 \begin_inset space ~
13582 \end_inset
13583
13584 Options\SpecialChar menuseparator
13585 Custom
13586 \family default
13587 ) suppresses the output of TODO notes.
13588  See the 
13589 \begin_inset CommandInset href
13590 LatexCommand href
13591 name "todonotes documentation"
13592 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13593 literal "false"
13594
13595 \end_inset
13596
13597 .
13598 \end_layout
13599
13600 \begin_layout Section
13601 Bibliography
13602 \end_layout
13603
13604 \begin_layout Subsection
13605 APA Style with Natbib
13606 \end_layout
13607
13608 \begin_layout Standard
13609 This module adds support for using natbib together with apacite (the bibliography style need not be 
13610 \family typewriter
13611 apacite
13612 \family default
13613  —
13614  it could be 
13615 \family typewriter
13616 apacite
13617 \family default
13618 ,
13619  
13620 \family typewriter
13621 apacitex
13622 \family default
13623 ,
13624  or any bibliography that works with both the natbib and apacite packages.)
13625 \end_layout
13626
13627 \begin_layout Section
13628 Boxes
13629 \end_layout
13630
13631 \begin_layout Subsection
13632 Fancy Colored Boxes
13633 \end_layout
13634
13635 \begin_layout Standard
13636 This module adds ten custom insets that support colored boxes via the 
13637 \family typewriter
13638 tcolorbox
13639 \family default
13640  package.
13641  See 
13642 \family sans
13643 Help\SpecialChar menuseparator
13644 Specific
13645 \begin_inset space ~
13646 \end_inset
13647
13648 Manuals\SpecialChar menuseparator
13649 Colored boxes
13650 \family default
13651 ,
13652  
13653 \family sans
13654 File\SpecialChar menuseparator
13655 Open
13656 \begin_inset space ~
13657 \end_inset
13658
13659 Example\SpecialChar menuseparator
13660 Modules\SpecialChar menuseparator
13661 Fancy
13662 \begin_inset space ~
13663 \end_inset
13664
13665 Color
13666 \begin_inset space ~
13667 \end_inset
13668
13669 Boxes
13670 \family default
13671  and the 
13672 \begin_inset CommandInset href
13673 LatexCommand href
13674 name "tcolorbox documentation"
13675 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13676 literal "false"
13677
13678 \end_inset
13679
13680  for details.
13681 \end_layout
13682
13683 \begin_layout Subsection
13684 Graphic boxes
13685 \end_layout
13686
13687 \begin_layout Standard
13688 This provides the custom insets 
13689 \family sans
13690 Reflectbox
13691 \family default
13692 ,
13693  
13694 \family sans
13695 Resizebox
13696 \family default
13697 ,
13698  
13699 \family sans
13700 Rotatebox
13701 \family default
13702  and 
13703 \family sans
13704 Scalebox
13705 \family default
13706  to scale and rotate its content.
13707 \end_layout
13708
13709 \begin_layout Standard
13710
13711 \family sans
13712 Reflectbox
13713 \family default
13714  is a simple way of reversing text without any other enhancement:
13715 \end_layout
13716
13717 \begin_layout Standard
13718 \begin_inset Flex Reflectbox
13719 status open
13720
13721 \begin_layout Plain Layout
13722 Great Western Railway
13723 \end_layout
13724
13725 \end_inset
13726
13727
13728 \end_layout
13729
13730 \begin_layout Standard
13731 (You will need to use Ctrl-R to see any of these examples.)
13732 \end_layout
13733
13734 \begin_layout Standard
13735
13736 \family sans
13737 Resizebox
13738 \family default
13739  allows you to specify the dimensions of the text or image;
13740  permissible units are em,
13741  ex,
13742  in,
13743  pt,
13744  pc,
13745  cm,
13746  mm,
13747  dd,
13748  cc,
13749  nd,
13750  nc,
13751  bp,
13752  or sp;
13753  if you enter 
13754 \family typewriter
13755 !
13756
13757 \family default
13758  for 
13759 \family typewriter
13760 Height
13761 \family default
13762  it scales by the width factor:
13763 \end_layout
13764
13765 \begin_layout Standard
13766 \begin_inset Flex Resizebox
13767 status open
13768
13769 \begin_layout Plain Layout
13770 \begin_inset Argument 1
13771 status open
13772
13773 \begin_layout Plain Layout
13774 48mm
13775 \end_layout
13776
13777 \end_inset
13778
13779
13780 \begin_inset Argument 2
13781 status open
13782
13783 \begin_layout Plain Layout
13784 !
13785 \end_layout
13786
13787 \end_inset
13788
13789 Great Western Railway
13790 \end_layout
13791
13792 \end_inset
13793
13794
13795 \end_layout
13796
13797 \begin_layout Standard
13798
13799 \family sans
13800 Rotatebox
13801 \family default
13802  allows you to rotate its contents around the reference point of the box.
13803  If you wish to rotate the box around a different origin,
13804  place the cursor inside the box and select Insert\SpecialChar menuseparator
13805 Origin;
13806  o
13807 \family typewriter
13808 rigin
13809 \family default
13810  is specified as 
13811 \family typewriter
13812 c
13813 \family default
13814 ,
13815
13816 \family typewriter
13817  l
13818 \family default
13819 ,
13820
13821 \family typewriter
13822  r
13823 \family default
13824 ,
13825
13826 \family typewriter
13827  b
13828 \family default
13829 ,
13830
13831 \family typewriter
13832  t
13833 \family default
13834  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
13835  For example:
13836 \end_layout
13837
13838 \begin_layout Standard
13839 \begin_inset Flex Rotatebox
13840 status open
13841
13842 \begin_layout Plain Layout
13843 \begin_inset Argument 1
13844 status open
13845
13846 \begin_layout Plain Layout
13847 origin=c
13848 \end_layout
13849
13850 \end_inset
13851
13852
13853 \begin_inset Argument 2
13854 status open
13855
13856 \begin_layout Plain Layout
13857 30
13858 \end_layout
13859
13860 \end_inset
13861
13862 Great Western Railway
13863 \end_layout
13864
13865 \end_inset
13866
13867
13868 \end_layout
13869
13870 \begin_layout Standard
13871 You can combine boxes as in:
13872 \end_layout
13873
13874 \begin_layout Standard
13875 \begin_inset Flex Rotatebox
13876 status open
13877
13878 \begin_layout Plain Layout
13879 \begin_inset Argument 1
13880 status open
13881
13882 \begin_layout Plain Layout
13883 origin=c
13884 \end_layout
13885
13886 \end_inset
13887
13888
13889 \begin_inset Argument 2
13890 status open
13891
13892 \begin_layout Plain Layout
13893 -15
13894 \end_layout
13895
13896 \end_inset
13897
13898
13899 \begin_inset Flex Resizebox
13900 status open
13901
13902 \begin_layout Plain Layout
13903 \begin_inset Argument 1
13904 status open
13905
13906 \begin_layout Plain Layout
13907 48mm
13908 \end_layout
13909
13910 \end_inset
13911
13912
13913 \begin_inset Argument 2
13914 status open
13915
13916 \begin_layout Plain Layout
13917 !
13918 \end_layout
13919
13920 \end_inset
13921
13922
13923 \begin_inset Flex Reflectbox
13924 status open
13925
13926 \begin_layout Plain Layout
13927 Great Western Railway
13928 \end_layout
13929
13930 \end_inset
13931
13932
13933 \end_layout
13934
13935 \end_inset
13936
13937
13938 \end_layout
13939
13940 \end_inset
13941
13942
13943 \end_layout
13944
13945 \begin_layout Standard
13946
13947 \family sans
13948 Scalebox
13949 \family default
13950  scales its contents;
13951  select Insert\SpecialChar menuseparator
13952 V-Factor to add a vertical factor.
13953  If the vertical factor is omitted,
13954  the horizontal is used.
13955  Adding different horizontal and vertical values creates distortion as in
13956 \end_layout
13957
13958 \begin_layout Standard
13959
13960 \family typewriter
13961 \begin_inset Flex Scalebox
13962 status open
13963
13964 \begin_layout Plain Layout
13965 \begin_inset Argument 1
13966 status open
13967
13968 \begin_layout Plain Layout
13969 2
13970 \end_layout
13971
13972 \end_inset
13973
13974
13975 \begin_inset Argument 2
13976 status open
13977
13978 \begin_layout Plain Layout
13979 1.5
13980 \end_layout
13981
13982 \end_inset
13983
13984
13985 \family roman
13986 Great Western Railway
13987 \end_layout
13988
13989 \end_inset
13990
13991 .
13992 \end_layout
13993
13994 \begin_layout Standard
13995 A negative horizontal value reverses the text on the horizontal axis,
13996  a negative vertical value on the vertical axis,
13997  so that you get
13998 \end_layout
13999
14000 \begin_layout Standard
14001 \begin_inset Flex Scalebox
14002 status open
14003
14004 \begin_layout Plain Layout
14005 \begin_inset Argument 1
14006 status open
14007
14008 \begin_layout Plain Layout
14009 -1
14010 \end_layout
14011
14012 \end_inset
14013
14014
14015 \begin_inset Argument 2
14016 status open
14017
14018 \begin_layout Plain Layout
14019 1
14020 \end_layout
14021
14022 \end_inset
14023
14024 Great Western Railway
14025 \end_layout
14026
14027 \end_inset
14028
14029  and 
14030 \begin_inset Flex Scalebox
14031 status open
14032
14033 \begin_layout Plain Layout
14034 \begin_inset Argument 1
14035 status open
14036
14037 \begin_layout Plain Layout
14038 1
14039 \end_layout
14040
14041 \end_inset
14042
14043
14044 \begin_inset Argument 2
14045 status open
14046
14047 \begin_layout Plain Layout
14048 -1
14049 \end_layout
14050
14051 \end_inset
14052
14053 Great Western Railway
14054 \end_layout
14055
14056 \end_inset
14057
14058 .
14059 \end_layout
14060
14061 \begin_layout Subsection
14062 Section Boxes
14063 \end_layout
14064
14065 \begin_layout Standard
14066 This module defines Boxes with section header.
14067  It is mainly intended for the SciPoster Document class.
14068 \end_layout
14069
14070 \begin_layout Subsection
14071 Variable-width Minipages
14072 \end_layout
14073
14074 \begin_layout Standard
14075 This module adds a 
14076 \family sans
14077 Minipage (Var.
14078 \begin_inset space \thinspace{}
14079 \end_inset
14080
14081 Width)
14082 \family default
14083  inset to 
14084 \family sans
14085 Insert\SpecialChar menuseparator
14086 Custom
14087 \begin_inset space ~
14088 \end_inset
14089
14090 Inset
14091 \family default
14092  using the 
14093 \family typewriter
14094 varwidth
14095 \family default
14096  LaTeX package.
14097  The 
14098 \family typewriter
14099 varwidth
14100 \family default
14101  package provides a variable-width minipage,
14102  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
14103  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
14104 \family sans
14105 Insert\SpecialChar menuseparator
14106 Vert.
14107 \begin_inset space \thinspace{}
14108 \end_inset
14109
14110 Adjustment
14111 \family default
14112  (
14113 \family typewriter
14114 c|t|b
14115 \family default
14116 ) or 
14117 \family sans
14118 Insert\SpecialChar menuseparator
14119 Max.
14120 \begin_inset space \thinspace{}
14121 \end_inset
14122
14123 Width
14124 \family default
14125  (defaults to 
14126 \family typewriter
14127
14128 \backslash
14129 linewidth
14130 \family default
14131 ).
14132  See 
14133 \family sans
14134 File\SpecialChar menuseparator
14135 Open Example\SpecialChar menuseparator
14136 Variable-width Minipages
14137 \family default
14138 .
14139 \end_layout
14140
14141 \begin_layout Section
14142 Fixes & Hacks
14143 \end_layout
14144
14145 \begin_layout Subsection
14146 Fix Computer Modern Fonts
14147 \end_layout
14148
14149 \begin_layout Standard
14150 This module uses the 
14151 \family sans
14152 fix-cm
14153 \family default
14154  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
14155  See the 
14156 \begin_inset CommandInset href
14157 LatexCommand href
14158 name "fix-cm documentation"
14159 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14160 literal "false"
14161
14162 \end_inset
14163
14164 .
14165 \end_layout
14166
14167 \begin_layout Subsection
14168 \SpecialChar LaTeX
14169  Kernel Fixes (Obsolete)
14170 \end_layout
14171
14172 \begin_layout Standard
14173 This module loads the \SpecialChar LaTeX
14174  package 
14175 \family sans
14176 fixltx2e
14177 \family default
14178  which contains some bug fixes for \SpecialChar LaTeX
14179 .
14180  If you use this module your typeset document may look different when you process it,
14181  depending on the respective version of 
14182 \family sans
14183 fixltx2e
14184 \family default
14185 .
14186 \end_layout
14187
14188 \begin_layout Standard
14189
14190 \series bold
14191 Note
14192 \series default
14193 :
14194  recent \SpecialChar LaTeX
14195  kernels (as of 2015/01/01) include the functionality of 
14196 \family sans
14197 fixltx2e
14198 \family default
14199 ,
14200  so the 
14201 \family sans
14202 fixltx2e
14203 \family default
14204  module is obsolete with newer \SpecialChar LaTeX
14205  distributions.
14206 \end_layout
14207
14208 \begin_layout Subsection
14209 Minimalistic Insets
14210 \end_layout
14211
14212 \begin_layout Standard
14213 This module redefines several insets (Index,
14214  Branch,
14215  URL) as being Minimalistic.
14216 \end_layout
14217
14218 \begin_layout Subsection
14219 Title and Preamble Hacks
14220 \end_layout
14221
14222 \begin_layout Standard
14223 This module provides two new paragraph styles:
14224 \end_layout
14225
14226 \begin_layout Enumerate
14227
14228 \family sans
14229 In Preamble
14230 \family default
14231  which puts whatever is entered into it into the preamble.
14232  This can be used,
14233  if one wishes,
14234  to include preamble code in the body of a LyX document.
14235 \end_layout
14236
14237 \begin_layout Enumerate
14238
14239 \family sans
14240 In Title
14241 \family default
14242  which that will put its contents into the body of the LaTeX document,
14243  but before 
14244 \family typewriter
14245
14246 \backslash
14247 maketitle
14248 \family default
14249  is issued.
14250  This is useful for making branches and notes in title-related material.
14251  (However,
14252  if you put these in a 
14253 \family sans
14254 Standard
14255 \family default
14256  layout,
14257  this signals to LyX to output 
14258 \family typewriter
14259
14260 \backslash
14261 maketitle
14262 \family default
14263 ,
14264  which may then come too early.)
14265 \end_layout
14266
14267 \begin_layout Section
14268 Floats & captions
14269 \end_layout
14270
14271 \begin_layout Subsection
14272 Algorithm2e Float
14273 \end_layout
14274
14275 \begin_layout Standard
14276 This module uses the 
14277 \family sans
14278 algorithm2e
14279 \family default
14280  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14281  Use the Algorithm paragraph style to enter and indent the algorithm.
14282  See the 
14283 \begin_inset CommandInset href
14284 LatexCommand href
14285 name "algorithm2e documentation"
14286 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14287 literal "false"
14288
14289 \end_inset
14290
14291 .
14292 \end_layout
14293
14294 \begin_layout Subsection
14295 Bilingual Captions AKA Multilingual Captions
14296 \end_layout
14297
14298 \begin_layout Standard
14299 This module provides the paragraph style 
14300 \family sans
14301 Caption
14302 \begin_inset space ~
14303 \end_inset
14304
14305 setup
14306 \family default
14307  with which to typeset bilingual captions.
14308  Within this paragraph style 
14309 \family sans
14310 Insert\SpecialChar menuseparator
14311 Language
14312 \family default
14313  allows you to enter the desired second language using one of the babel names.
14314  See 
14315 \family sans
14316 File\SpecialChar menuseparator
14317 Open
14318 \begin_inset space ~
14319 \end_inset
14320
14321 Example\SpecialChar menuseparator
14322 Modules\SpecialChar menuseparator
14323 Multilingual
14324 \begin_inset space ~
14325 \end_inset
14326
14327 Captions
14328 \family default
14329  and 
14330 \family sans
14331 Help\SpecialChar menuseparator
14332 Specific
14333 \begin_inset space ~
14334 \end_inset
14335
14336 Manuals\SpecialChar menuseparator
14337 Multilingual
14338 \begin_inset space ~
14339 \end_inset
14340
14341 Captions
14342 \family default
14343  further information on its use.
14344 \end_layout
14345
14346 \begin_layout Subsection
14347 Number Figures by Section
14348 \end_layout
14349
14350 \begin_layout Standard
14351 This module resets the figure number at section start and prepends the section number to the figure number,
14352  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14353 \end_layout
14354
14355 \begin_layout Subsection
14356 Number Tables by Section
14357 \end_layout
14358
14359 \begin_layout Standard
14360 This module resets the table number at section start and prepends the section number to the table number,
14361  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.)
14362 \end_layout
14363
14364 \begin_layout Section
14365 Foot- and Endnotes
14366 \end_layout
14367
14368 \begin_layout Subsection
14369 Endnotes (Basic)
14370 \end_layout
14371
14372 \begin_layout Standard
14373 This module adds an endnote inset,
14374  in addition to footnotes.
14375  This uses the 
14376 \family sans
14377 endnotes
14378 \family default
14379  package,
14380  which has some limitations but works with older \SpecialChar LaTeX
14381  distributions as well.
14382  Use 
14383 \family sans
14384 Insert\SpecialChar menuseparator
14385 Custom Inset\SpecialChar menuseparator
14386 Endnote
14387 \family default
14388  to insert an endnote and 
14389 \family sans
14390 Insert\SpecialChar menuseparator
14391 List/Contents/References\SpecialChar menuseparator
14392 Endnotes
14393 \family default
14394  to insert the endnotes list where you want the endnotes to appear.
14395  See also 
14396 \family sans
14397 Help\SpecialChar menuseparator
14398 Embedded Objects
14399 \family default
14400 ,
14401  section 
14402 \emph on
14403 4.2 Footnotes
14404 \emph default
14405 .
14406 \end_layout
14407
14408 \begin_layout Subsection
14409 Endnotes (Extended)
14410 \end_layout
14411
14412 \begin_layout Standard
14413 This module adds an endnote inset,
14414  in addition to footnotes.
14415  This uses the 
14416 \family sans
14417 enotez
14418 \family default
14419  package which is more powerful and customizable than the 
14420 \family sans
14421 endnotes
14422 \family default
14423  package,
14424  but requires a fairly modern \SpecialChar LaTeX
14425  distribution (with \SpecialChar LaTeX
14426 3).
14427  Use 
14428 \family sans
14429 Insert\SpecialChar menuseparator
14430 Custom
14431 \begin_inset space ~
14432 \end_inset
14433
14434 Inset\SpecialChar menuseparator
14435 Endnote
14436 \family default
14437  to insert an endnote and 
14438 \family sans
14439 Insert\SpecialChar menuseparator
14440 List/Contents/References\SpecialChar menuseparator
14441 Endnotes
14442 \family default
14443  to insert the endnotes list where you want the endnotes to appear.
14444  See also 
14445 \family sans
14446 Help\SpecialChar menuseparator
14447 Embedded
14448 \begin_inset space ~
14449 \end_inset
14450
14451 Objects
14452 \family default
14453 ,
14454  section 
14455 \emph on
14456 4.2 Footnotes
14457 \emph default
14458 ..
14459 \end_layout
14460
14461 \begin_layout Subsection
14462 Footnotes as Endnotes (Basic)
14463 \end_layout
14464
14465 \begin_layout Standard
14466 This module sets all footnotes as endnotes.
14467  This uses the 
14468 \family sans
14469 endnotes
14470 \family default
14471  package,
14472  which has some limitations but works with older \SpecialChar LaTeX
14473  distributions as well.
14474  Use 
14475 \family sans
14476 Insert\SpecialChar menuseparator
14477 List/Contents/References\SpecialChar menuseparator
14478 Endnotes
14479 \family default
14480  to insert the endnotes list where you want the endnotes to appear.
14481  See also 
14482 \family sans
14483 Help\SpecialChar menuseparator
14484 Embedded
14485 \begin_inset space ~
14486 \end_inset
14487
14488 Objects
14489 \family default
14490 ,
14491  section 
14492 \emph on
14493 4.2 Footnotes
14494 \emph default
14495 .
14496 \end_layout
14497
14498 \begin_layout Subsection
14499 Footnotes as Endnotes (Extended)
14500 \end_layout
14501
14502 \begin_layout Standard
14503 This module sets all footnotes as endnotes.
14504  This uses the 
14505 \family sans
14506 enotez
14507 \family default
14508  package which is more powerful and customizable than then 
14509 \family sans
14510 endnotes
14511 \family default
14512  package,
14513  but requires a fairly modern \SpecialChar LaTeX
14514  distribution (with \SpecialChar LaTeX
14515 3).
14516  Use 
14517 \family sans
14518 Insert\SpecialChar menuseparator
14519 List/Contents/References\SpecialChar menuseparator
14520 Endnotes
14521 \family default
14522  to insert the endnotes list where you want the endnotes to appear.
14523  See also 
14524 \family sans
14525 Help\SpecialChar menuseparator
14526 Embedded
14527 \begin_inset space ~
14528 \end_inset
14529
14530 Objects
14531 \family default
14532 ,
14533  section 
14534 \emph on
14535 4.2 Footnotes
14536 \emph default
14537 .
14538 \end_layout
14539
14540 \begin_layout Section
14541 Leisure,
14542  Sports and Music
14543 \end_layout
14544
14545 \begin_layout Subsection
14546 Chess Board
14547 \end_layout
14548
14549 \begin_layout Standard
14550 This module provides support for the 
14551 \family sans
14552 chessboard
14553 \family default
14554  package to print chess games.
14555  See 
14556 \family sans
14557 File\SpecialChar menuseparator
14558 Open Example\SpecialChar menuseparator
14559 Articles\SpecialChar menuseparator
14560 Chess
14561 \family default
14562  where you will find 
14563 \family sans
14564 Game
14565 \begin_inset space ~
14566 \end_inset
14567
14568 1
14569 \family default
14570  and 
14571 \family sans
14572 Game
14573 \begin_inset space ~
14574 \end_inset
14575
14576 2
14577 \family default
14578  and the 
14579 \begin_inset CommandInset href
14580 LatexCommand href
14581 name "chessboard documentation"
14582 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14583 literal "false"
14584
14585 \end_inset
14586
14587 .
14588 \end_layout
14589
14590 \begin_layout Subsection
14591 Lilypond Music Notation
14592 \end_layout
14593
14594 \begin_layout Standard
14595 This module provides an inset via 
14596 \family sans
14597 \bar under
14598 I
14599 \bar default
14600 nsert\SpecialChar menuseparator
14601 Custom Inset\SpecialChar menuseparator
14602 Lilypond
14603 \family default
14604  in which to enter code for the LilyPond music editor.
14605  It will then be processed in the output.
14606  See 
14607 \family sans
14608 Help\SpecialChar menuseparator
14609 Specific Manuals\SpecialChar menuseparator
14610 Lilypond
14611 \family default
14612  and 
14613 \family sans
14614 File\SpecialChar menuseparator
14615 Open Example\SpecialChar menuseparator
14616 Modules\SpecialChar menuseparator
14617 Lilypond
14618 \begin_inset space ~
14619 \end_inset
14620
14621 Book
14622 \family default
14623 .
14624  It cannot be used if the modules 
14625 \family sans
14626 Rnw
14627 \begin_inset space \thinspace{}
14628 \end_inset
14629
14630 (knitr) 
14631 \family default
14632 or
14633 \family sans
14634  Sweave
14635 \family default
14636  have been loaded.
14637 \end_layout
14638
14639 \begin_layout Section
14640 List enhancements
14641 \end_layout
14642
14643 \begin_layout Subsection
14644 Customizable Lists
14645 \begin_inset CommandInset label
14646 LatexCommand label
14647 name "subsec:Customizable-Lists"
14648
14649 \end_inset
14650
14651
14652 \end_layout
14653
14654 \begin_layout Standard
14655 This module uses the
14656 \family sans
14657  enumitem
14658 \family default
14659  package to enable the customization of various list environments.
14660 \end_layout
14661
14662 \begin_layout Subsubsection
14663 Custom Enumerate Lists
14664 \end_layout
14665
14666 \begin_layout Standard
14667 \noindent
14668 The default numbering of numbered lists can be changed by adding an optional argument (menu 
14669 \family sans
14670 \bar under
14671 I
14672 \bar default
14673 nsert\SpecialChar menuseparator
14674 Enumerate
14675 \begin_inset space ~
14676 \end_inset
14677
14678 Options
14679 \family default
14680 ) to the first item of each level in the list.
14681  There you add the command
14682 \end_layout
14683
14684 \begin_layout Standard
14685
14686 \family sans
14687 label=
14688 \backslash
14689 roman{enumi}
14690 \end_layout
14691
14692 \begin_layout Standard
14693 in \SpecialChar TeX
14694  Code (shortcut 
14695 \begin_inset Info
14696 type  "shortcut"
14697 arg   "ert-insert"
14698 \end_inset
14699
14700 ).
14701 \end_layout
14702
14703 \begin_layout Standard
14704
14705 \family sans
14706 enumi
14707 \family default
14708  is the first level counter of the enumeration.
14709  To change the numbering for the list sublevels,
14710  replace the “
14711 \family sans
14712 i
14713 \family default
14714 ” in the command by the small Roman numeral of the level (
14715 \family sans
14716 enumi
14717 \family default
14718 ,
14719  
14720 \family sans
14721 enumii
14722 \family default
14723 ,
14724  
14725 \family sans
14726 enumiii
14727 \family default
14728 ,
14729  
14730 \family sans
14731 enumiv
14732 \family default
14733 ).
14734 \end_layout
14735
14736 \begin_layout Standard
14737 The command 
14738 \family sans
14739
14740 \backslash
14741 roman
14742 \family default
14743  outputs the counter as a small Roman numeral.
14744  For capital Roman numerals replace 
14745 \family sans
14746
14747 \backslash
14748 roman
14749 \family default
14750  with 
14751 \family sans
14752
14753 \backslash
14754 Roman
14755 \family default
14756  in the command above.
14757  For Arabic numerals use 
14758 \family sans
14759
14760 \backslash
14761 arabic
14762 \family default
14763 .
14764  To 
14765 \begin_inset Quotes eld
14766 \end_inset
14767
14768 number
14769 \begin_inset Quotes erd
14770 \end_inset
14771
14772  items with capital or small Latin letters use 
14773 \family sans
14774
14775 \backslash
14776 Alph
14777 \family default
14778  or 
14779 \family sans
14780
14781 \backslash
14782 alph
14783 \family default
14784 ,
14785  respectively.
14786 \end_layout
14787
14788 \begin_layout Standard
14789 \noindent
14790 \begin_inset Note Greyedout
14791 status open
14792
14793 \begin_layout Plain Layout
14794
14795 \series bold
14796 Note:
14797
14798 \series default
14799  You can only number 26
14800 \begin_inset space ~
14801 \end_inset
14802
14803 items with Latin letters,
14804  because this numbering is limited to single letters.
14805 \end_layout
14806
14807 \end_inset
14808
14809
14810 \end_layout
14811
14812 \begin_layout Standard
14813 Here is a list with custom numbering:
14814 \end_layout
14815
14816 \begin_layout Enumerate
14817 \begin_inset Argument 1
14818 status collapsed
14819
14820 \begin_layout Plain Layout
14821 \begin_inset ERT
14822 status collapsed
14823
14824 \begin_layout Plain Layout
14825
14826 label=
14827 \backslash
14828 #
14829 \backslash
14830 Alph{enumi}
14831 \backslash
14832 #
14833 \end_layout
14834
14835 \end_inset
14836
14837
14838 \end_layout
14839
14840 \end_inset
14841
14842 Level 1
14843 \begin_inset Separator latexpar
14844 \end_inset
14845
14846
14847 \end_layout
14848
14849 \begin_deeper
14850 \begin_layout Enumerate
14851 \begin_inset Argument 1
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855 \begin_inset ERT
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859
14860 label=
14861 \backslash
14862 Alph{enumi}.
14863 \backslash
14864 arabic{enumii}
14865 \end_layout
14866
14867 \end_inset
14868
14869
14870 \end_layout
14871
14872 \end_inset
14873
14874 Level 2
14875 \end_layout
14876
14877 \begin_layout Enumerate
14878 Level 2
14879 \begin_inset Separator latexpar
14880 \end_inset
14881
14882
14883 \end_layout
14884
14885 \begin_deeper
14886 \begin_layout Enumerate
14887 \begin_inset Argument 1
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 \begin_inset ERT
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895
14896 label=
14897 \backslash
14898 bfseries{
14899 \backslash
14900 arabic{enumiii}}
14901 \end_layout
14902
14903 \end_inset
14904
14905
14906 \end_layout
14907
14908 \end_inset
14909
14910 Level 3
14911 \begin_inset Separator latexpar
14912 \end_inset
14913
14914
14915 \end_layout
14916
14917 \begin_deeper
14918 \begin_layout Enumerate
14919 \begin_inset Argument 1
14920 status collapsed
14921
14922 \begin_layout Plain Layout
14923 \begin_inset ERT
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927
14928 label=
14929 \backslash
14930 emph{
14931 \backslash
14932 roman{enumiv})}
14933 \end_layout
14934
14935 \end_inset
14936
14937
14938 \end_layout
14939
14940 \end_inset
14941
14942 Level 4
14943 \end_layout
14944
14945 \end_deeper
14946 \end_deeper
14947 \end_deeper
14948 \begin_layout Standard
14949 For this list these commands were used:
14950 \end_layout
14951
14952 \begin_layout Standard
14953 \noindent
14954
14955 \family sans
14956 label=
14957 \backslash
14958 #
14959 \backslash
14960 Alph{enumi}
14961 \backslash
14962 #
14963 \begin_inset Newline newline
14964 \end_inset
14965
14966 label=
14967 \backslash
14968 Alph{enumi}.
14969 \backslash
14970 arabic{enumii}
14971 \begin_inset Newline newline
14972 \end_inset
14973
14974 label=
14975 \backslash
14976 bfseries{
14977 \backslash
14978 arabic{enumiii}}
14979 \begin_inset Newline newline
14980 \end_inset
14981
14982 label=
14983 \backslash
14984 emph{
14985 \backslash
14986 roman{enumiv})}
14987 \end_layout
14988
14989 \begin_layout Standard
14990 where the command 
14991 \family sans
14992
14993 \backslash
14994 emph{}
14995 \family default
14996  makes the label emphasized and 
14997 \family sans
14998
14999 \backslash
15000 bfseries{}
15001 \family default
15002  makes it bold.
15003 \end_layout
15004
15005 \begin_layout Standard
15006 \begin_inset Note Greyedout
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010
15011 \series bold
15012 Note:
15013
15014 \series default
15015  When you change the label of a list level,
15016  it will be used for all following lists until you change the definition.
15017 \end_layout
15018
15019 \end_inset
15020
15021
15022 \end_layout
15023
15024 \begin_layout Standard
15025 \begin_inset ERT
15026 status open
15027
15028 \begin_layout Plain Layout
15029
15030
15031 \backslash
15032 renewcommand{
15033 \backslash
15034 labelenumi}{
15035 \backslash
15036 thesection.
15037 \backslash
15038 arabic{enumi}}
15039 \end_layout
15040
15041 \end_inset
15042
15043
15044 \end_layout
15045
15046 \begin_layout Subsubsection
15047 Numbered Paragraphs in Reports
15048 \end_layout
15049
15050 \begin_layout Enumerate
15051 Official reports often include numbered paragraphs;
15052  you can achieve this with a variation on the approach outlined in section
15053 \begin_inset space ~
15054 \end_inset
15055
15056
15057 \begin_inset CommandInset ref
15058 LatexCommand ref
15059 reference "sec:How-to-use"
15060
15061 \end_inset
15062
15063 .
15064  Replace 
15065 \family sans
15066 item
15067 \family default
15068  in each command with 
15069 \family sans
15070 enum
15071 \family default
15072 .
15073 \end_layout
15074
15075 \begin_layout Enumerate
15076 These numbered paragraphs were generated by inserting the \SpecialChar TeX
15077  Code
15078 \begin_inset Separator latexpar
15079 \end_inset
15080
15081
15082 \end_layout
15083
15084 \begin_deeper
15085 \begin_layout Standard
15086
15087 \family sans
15088
15089 \backslash
15090 renewcommand{
15091 \backslash
15092 labelenumi}{
15093 \backslash
15094 thesection.
15095 \backslash
15096 arabic{enumi}}
15097 \end_layout
15098
15099 \begin_layout Standard
15100 before the start of the section;
15101  
15102 \family sans
15103
15104 \backslash
15105 thesection
15106 \family default
15107  uses the \SpecialChar LaTeX
15108  section counter to generate the first part of the number.
15109 \end_layout
15110
15111 \end_deeper
15112 \begin_layout Enumerate
15113 I have ignored the subsection heading in this example because,
15114  with paragraphs numbered in this way,
15115  subsections are less likely to be used.
15116 \end_layout
15117
15118 \begin_layout Subsubsection
15119 Resumed Enumeration
15120 \end_layout
15121
15122 \begin_layout Standard
15123 \begin_inset ERT
15124 status open
15125
15126 \begin_layout Plain Layout
15127
15128
15129 \backslash
15130 renewcommand{
15131 \backslash
15132 labelenumi}{
15133 \backslash
15134 arabic{enumi}}
15135 \end_layout
15136
15137 \end_inset
15138
15139
15140 \end_layout
15141
15142 \begin_layout Standard
15143 Enumerations can be resumed after intermediate paragraphs:
15144 \end_layout
15145
15146 \begin_layout Enumerate
15147 \begin_inset Argument 1
15148 status collapsed
15149
15150 \begin_layout Plain Layout
15151 \begin_inset ERT
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155
15156 label=
15157 \backslash
15158 arabic{enumi}.
15159 \end_layout
15160
15161 \end_inset
15162
15163
15164 \end_layout
15165
15166 \end_inset
15167
15168 first
15169 \begin_inset Note Note
15170 status collapsed
15171
15172 \begin_layout Plain Layout
15173 goes back to default numbering
15174 \end_layout
15175
15176 \end_inset
15177
15178
15179 \end_layout
15180
15181 \begin_layout Enumerate
15182 second
15183 \end_layout
15184
15185 \begin_layout Standard
15186 regular text
15187 \end_layout
15188
15189 \begin_layout Enumerate-Resume
15190 resumed
15191 \end_layout
15192
15193 \begin_layout Standard
15194 To resume an enumeration,
15195  use the style 
15196 \family sans
15197 Enumerate-Resume
15198 \family default
15199 .
15200 \end_layout
15201
15202 \begin_layout Standard
15203 \begin_inset Note Greyedout
15204 status open
15205
15206 \begin_layout Plain Layout
15207
15208 \series bold
15209 Note:
15210
15211 \series default
15212  If there is no previous enumeration to resume,
15213  you will get a \SpecialChar LaTeX
15214  error.
15215 \end_layout
15216
15217 \end_inset
15218
15219
15220 \end_layout
15221
15222 \begin_layout Standard
15223 Perhaps you might want to resume the list with a different number from the next one.
15224  Or you want to start a new enumeration with a defined number.
15225  This is possible by adding an optional argument to the first list item of a normal enumeration.
15226  There,
15227  insert the command
15228 \end_layout
15229
15230 \begin_layout Standard
15231
15232 \family sans
15233 start=number
15234 \end_layout
15235
15236 \begin_layout Standard
15237 where 
15238 \family sans
15239 number
15240 \family default
15241  is the number with which you want to resume the list.
15242  An example:
15243 \end_layout
15244
15245 \begin_layout Enumerate
15246 first item
15247 \end_layout
15248
15249 \begin_layout Enumerate
15250 second item
15251 \end_layout
15252
15253 \begin_layout Standard
15254 Enumeration starting at a given value:
15255 \end_layout
15256
15257 \begin_layout Enumerate
15258 \begin_inset Argument 1
15259 status open
15260
15261 \begin_layout Plain Layout
15262 \begin_inset ERT
15263 status collapsed
15264
15265 \begin_layout Plain Layout
15266
15267 start=4
15268 \end_layout
15269
15270 \end_inset
15271
15272
15273 \end_layout
15274
15275 \end_inset
15276
15277 This enumeration starts at 4
15278 \end_layout
15279
15280 \begin_layout Subsubsection
15281 List Spacing
15282 \begin_inset Index idx
15283 range none
15284 pageformat default
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 Lists !
15289  Spacing
15290 \end_layout
15291
15292 \end_inset
15293
15294
15295 \end_layout
15296
15297 \begin_layout Standard
15298 In some cases you might want less or more vertical space between the items of a list.
15299  For example if the default space is too much in your opinion in this case:
15300 \end_layout
15301
15302 \begin_layout Itemize
15303 A bullet list
15304 \end_layout
15305
15306 \begin_layout Itemize
15307 with standard spacing
15308 \end_layout
15309
15310 \begin_layout Standard
15311 You can decrease the space by adding an optional argument to the first item of the list.
15312  Add there the command 
15313 \family sans
15314 nolistsep
15315 \family default
15316  to get no additional list space like in this example:
15317 \end_layout
15318
15319 \begin_layout Itemize
15320 \begin_inset Argument 1
15321 status open
15322
15323 \begin_layout Plain Layout
15324 \begin_inset ERT
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328
15329 nolistsep
15330 \end_layout
15331
15332 \end_inset
15333
15334
15335 \end_layout
15336
15337 \end_inset
15338
15339 A bullet list
15340 \end_layout
15341
15342 \begin_layout Itemize
15343 without additional
15344 \end_layout
15345
15346 \begin_layout Itemize
15347 vertical space
15348 \end_layout
15349
15350 \begin_layout Standard
15351 To add space you can use several other commands provided by the 
15352 \family sans
15353 enumitem
15354 \family default
15355
15356 \begin_inset Index idx
15357 range none
15358 pageformat default
15359 status collapsed
15360
15361 \begin_layout Plain Layout
15362 \SpecialChar LaTeX
15363 -packages !
15364  enumitem
15365 \end_layout
15366
15367 \end_inset
15368
15369  package.
15370  For more information see the 
15371 \begin_inset CommandInset href
15372 LatexCommand href
15373 name "enumitem documentation"
15374 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15375 literal "false"
15376
15377 \end_inset
15378
15379 .
15380 \end_layout
15381
15382 \begin_layout Standard
15383 There are also many commands available to change the horizontal spacing and indentation.
15384  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
15385 \begin_inset space \thinspace{}
15386 \end_inset
15387
15388 cm so that the number is in the page margin:
15389 \end_layout
15390
15391 \begin_layout Enumerate
15392 \begin_inset Argument 1
15393 status open
15394
15395 \begin_layout Plain Layout
15396 \begin_inset ERT
15397 status collapsed
15398
15399 \begin_layout Plain Layout
15400
15401 labelindent=
15402 \backslash
15403 parindent,
15404  labelsep=2cm
15405 \end_layout
15406
15407 \end_inset
15408
15409
15410 \end_layout
15411
15412 \end_inset
15413
15414 An enumeration
15415 \end_layout
15416
15417 \begin_layout Enumerate
15418 with negative indentation
15419 \end_layout
15420
15421 \begin_layout Subsubsection
15422 Further Customization
15423 \begin_inset Index idx
15424 range none
15425 pageformat default
15426 status collapsed
15427
15428 \begin_layout Plain Layout
15429 Lists !
15430  Customization
15431 \end_layout
15432
15433 \end_inset
15434
15435
15436 \end_layout
15437
15438 \begin_layout Standard
15439 You can also change the style of description lists.
15440  The command
15441 \end_layout
15442
15443 \begin_layout Standard
15444
15445 \family sans
15446 font=definition
15447 \end_layout
15448
15449 \begin_layout Standard
15450 changes the description label font,
15451  the command
15452 \end_layout
15453
15454 \begin_layout Standard
15455
15456 \family sans
15457 style=definitio
15458 \family default
15459 n
15460 \end_layout
15461
15462 \begin_layout Standard
15463 sets the list style.
15464 \end_layout
15465
15466 \begin_layout Standard
15467 An example where the command
15468 \end_layout
15469
15470 \begin_layout Standard
15471
15472 \family sans
15473 font=
15474 \backslash
15475 itshape,
15476  style=nextline
15477 \end_layout
15478
15479 \begin_layout Standard
15480 is used:
15481 \end_layout
15482
15483 \begin_layout Description
15484 Ionizing
15485 \begin_inset space ~
15486 \end_inset
15487
15488 radiation:
15489  
15490 \begin_inset Argument 1
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 \begin_inset ERT
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498
15499 labelindent=0pt,
15500  labelsep=1cm,
15501  font=
15502 \backslash
15503 itshape,
15504  style=nextline
15505 \end_layout
15506
15507 \end_inset
15508
15509
15510 \end_layout
15511
15512 \end_inset
15513
15514 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
15515  therefore ionizing them.
15516 \end_layout
15517
15518 \begin_layout Description
15519 Reference
15520 \begin_inset space ~
15521 \end_inset
15522
15523 counting:
15524  In computer science,
15525  reference counting is a technique of storing the number of references,
15526  pointers,
15527  or handles to a resource such as an object,
15528  block of memory,
15529  disk space or other resource.
15530 \end_layout
15531
15532 \begin_layout Standard
15533 There are many more commands and features provided by the 
15534 \family sans
15535 enumitem
15536 \family default
15537
15538 \begin_inset Index idx
15539 range none
15540 pageformat default
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544 \SpecialChar LaTeX
15545 -packages !
15546  enumitem
15547 \end_layout
15548
15549 \end_inset
15550
15551  package.
15552  For more information see the 
15553 \begin_inset CommandInset href
15554 LatexCommand href
15555 name "enumitem documentation"
15556 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15557 literal "false"
15558
15559 \end_inset
15560
15561 .
15562 \end_layout
15563
15564 \begin_layout Subsection
15565
15566 \series bold
15567 Paragraph Lists
15568 \end_layout
15569
15570 \begin_layout Standard
15571 This module uses the package 
15572 \family sans
15573 paralist
15574 \family default
15575  to provide nine new list environments.
15576  Itemized and enumerated lists can be typeset within paragraphs,
15577  as paragraphs and in a compact version.
15578  Most environments have optional arguments to format the labels.
15579  Additionally,
15580  the \SpecialChar LaTeX
15581  list environments itemize and enumerate are extended to use a similar optional argument.
15582  For further details see 
15583 \family sans
15584 File\SpecialChar menuseparator
15585 Open Example\SpecialChar menuseparator
15586 Modules\SpecialChar menuseparator
15587 Paragraph
15588 \begin_inset space ~
15589 \end_inset
15590
15591 List
15592 \begin_inset space ~
15593 \end_inset
15594
15595  (paralist)
15596 \family default
15597 ,
15598  
15599 \family sans
15600 Help\SpecialChar menuseparator
15601 Specific
15602 \begin_inset space ~
15603 \end_inset
15604
15605 Manuals\SpecialChar menuseparator
15606 Paralist
15607 \family default
15608  and the 
15609 \begin_inset CommandInset href
15610 LatexCommand href
15611 name "paralist documentation"
15612 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
15613 literal "false"
15614
15615 \end_inset
15616
15617 .
15618 \end_layout
15619
15620 \begin_layout Section
15621 Literate Programming
15622 \end_layout
15623
15624 \begin_layout Subsection
15625 Noweb
15626 \end_layout
15627
15628 \begin_layout Standard
15629 This module allows the use of Noweb as a literate programming tool.
15630  The files and the documentation for Noweb can be obtained from 
15631 \begin_inset CommandInset href
15632 LatexCommand href
15633 name "CTAN"
15634 target "https://www.ctan.org/pkg/noweb"
15635 literal "false"
15636
15637 \end_inset
15638
15639 .
15640  Literate programming is described in section
15641 \begin_inset space ~
15642 \end_inset
15643
15644
15645 \begin_inset CommandInset ref
15646 LatexCommand ref
15647 reference "sec:Literate-Programming"
15648 nolink "false"
15649
15650 \end_inset
15651
15652  and there are three example files:
15653  
15654 \family sans
15655 File\SpecialChar menuseparator
15656 Open
15657 \begin_inset space ~
15658 \end_inset
15659
15660 Example\SpecialChar menuseparator
15661 Modules\SpecialChar menuseparator
15662 Noweb
15663 \family default
15664 ,
15665  
15666 \family sans
15667 File\SpecialChar menuseparator
15668 Open
15669 \begin_inset space ~
15670 \end_inset
15671
15672 Example\SpecialChar menuseparator
15673 Modules\SpecialChar menuseparator
15674 Noweb
15675 \begin_inset space ~
15676 \end_inset
15677
15678 Listerrors
15679 \family default
15680  and 
15681 \family sans
15682 File\SpecialChar menuseparator
15683 Open
15684 \begin_inset space ~
15685 \end_inset
15686
15687 Example\SpecialChar menuseparator
15688 Modules\SpecialChar menuseparator
15689 Noweb2\SpecialChar LyX
15690
15691 \family default
15692 .
15693 \end_layout
15694
15695 \begin_layout Subsection
15696 Rnw (knitr)
15697 \end_layout
15698
15699 \begin_layout Standard
15700 This module uses the 
15701 \family typewriter
15702 knitr
15703 \family default
15704  and 
15705 \family sans
15706 includernw
15707 \family default
15708  packages.
15709  The
15710 \begin_inset Flex Code
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714 knitr
15715 \end_layout
15716
15717 \end_inset
15718
15719  package in R for dynamic report generation has to be installed for this module to work:
15720  
15721 \begin_inset Flex Code
15722 status collapsed
15723
15724 \begin_layout Plain Layout
15725 install.packages(“knitr”)
15726 \end_layout
15727
15728 \end_inset
15729
15730 .
15731 \end_layout
15732
15733 \begin_layout Standard
15734
15735 \series bold
15736 Note:
15737 \end_layout
15738
15739 \begin_layout Itemize
15740 it depends on R >= 2.14.1.
15741  For more info see 
15742 \begin_inset Flex URL
15743 status collapsed
15744
15745 \begin_layout Plain Layout
15746
15747 http://yihui.name/knitr
15748 \end_layout
15749
15750 \end_inset
15751
15752 .
15753 \end_layout
15754
15755 \begin_layout Itemize
15756 The package 
15757 \family sans
15758 includernw
15759 \family default
15760  also has to be installed.
15761 \end_layout
15762
15763 \begin_layout Itemize
15764 It cannot be used if the modules 
15765 \family sans
15766 LilyPond
15767 \begin_inset space ~
15768 \end_inset
15769
15770 Book
15771 \family default
15772  or 
15773 \family sans
15774 Sweave
15775 \family default
15776  are loaded.
15777 \end_layout
15778
15779 \begin_layout Standard
15780 See 
15781 \family sans
15782 Help\SpecialChar menuseparator
15783 Specific
15784 \begin_inset space ~
15785 \end_inset
15786
15787 Manuals\SpecialChar menuseparator
15788 Knitr
15789 \family default
15790 ,
15791  
15792 \family sans
15793 File\SpecialChar menuseparator
15794 Open
15795 \begin_inset space ~
15796 \end_inset
15797
15798 Example\SpecialChar menuseparator
15799 Modules\SpecialChar menuseparator
15800 Rnw
15801 \begin_inset space ~
15802 \end_inset
15803
15804 (knitr)
15805 \family default
15806  and section
15807 \begin_inset space ~
15808 \end_inset
15809
15810
15811 \begin_inset CommandInset ref
15812 LatexCommand ref
15813 reference "sec:Literate-Programming"
15814 nolink "false"
15815
15816 \end_inset
15817
15818  for information about literate programming.
15819 \end_layout
15820
15821 \begin_layout Subsection
15822 Sweave
15823 \end_layout
15824
15825 \begin_layout Standard
15826 This module allows the use of the statistical language S/R as a literate programming tool.
15827  It requires the 
15828 \family sans
15829 includernw
15830 \family default
15831  and 
15832 \family sans
15833 fancyvrb
15834 \family default
15835  packages.
15836  Both 
15837 \begin_inset CommandInset href
15838 LatexCommand href
15839 name "includernw"
15840 target "https://www.ctan.org/pkg/includernw"
15841 literal "false"
15842
15843 \end_inset
15844
15845  and 
15846 \begin_inset CommandInset href
15847 LatexCommand href
15848 name "fancyvrb"
15849 target "https://www.ctan.org/pkg/fancyvrb"
15850 literal "false"
15851
15852 \end_inset
15853
15854  are available from CTAN.
15855  It cannot be used if the module 
15856 \family sans
15857 LilyPond
15858 \begin_inset space ~
15859 \end_inset
15860
15861 Book
15862 \family default
15863  has been loaded.
15864  See 
15865 \family sans
15866 Help\SpecialChar menuseparator
15867 Specific Manuals\SpecialChar menuseparator
15868 Sweave,
15869
15870 \family default
15871  
15872 \family sans
15873 File\SpecialChar menuseparator
15874 Open
15875 \begin_inset space ~
15876 \end_inset
15877
15878 Example\SpecialChar menuseparator
15879 Modules\SpecialChar menuseparator
15880 Sweave
15881 \family default
15882  and section
15883 \begin_inset space ~
15884 \end_inset
15885
15886
15887 \begin_inset CommandInset ref
15888 LatexCommand ref
15889 reference "sec:Literate-Programming"
15890 nolink "false"
15891
15892 \end_inset
15893
15894  for information about literate programming.
15895 \end_layout
15896
15897 \begin_layout Section
15898 Maths
15899 \end_layout
15900
15901 \begin_layout Subsection
15902 AMS Theorems
15903 \end_layout
15904
15905 \begin_layout Standard
15906 This modules defines theorem environments and the proof environment using the extended AMS machinery.
15907  Both numbered and unnumbered types are provided.
15908  By default,
15909  the theorems are numbered consecutively throughout the document.
15910  This can be changed by loading one of the 
15911 \family sans
15912 AMS Theorems (Numbered by \SpecialChar ldots
15913 )
15914 \family default
15915  modules.
15916  It cannot be used if the modules 
15917 \family sans
15918 Standard Theorems
15919 \family default
15920  or 
15921 \family sans
15922 Standard Theorems (Unnumbered)
15923 \family default
15924  have been loaded.
15925 \end_layout
15926
15927 \begin_layout Subsection
15928 AMS Theorems (Extended)
15929 \end_layout
15930
15931 \begin_layout Standard
15932 This module defines some additional theorem environments for use with the 
15933 \family sans
15934 AMS Theorems
15935 \family default
15936  package (which must be loaded).
15937  It includes 
15938 \family sans
15939 Criterion
15940 \family default
15941 ,
15942  
15943 \family sans
15944 Algorithm
15945 \family default
15946 ,
15947  
15948 \family sans
15949 Axiom
15950 \family default
15951 ,
15952  
15953 \family sans
15954 Condition
15955 \family default
15956 ,
15957  
15958 \family sans
15959 Note
15960 \family default
15961 ,
15962  
15963 \family sans
15964 Notation
15965 \family default
15966 ,
15967  
15968 \family sans
15969 Summary
15970 \family default
15971 ,
15972  
15973 \family sans
15974 Conclusion
15975 \family default
15976 ,
15977  
15978 \family sans
15979 Fact
15980 \family default
15981 ,
15982  
15983 \family sans
15984 Assumption
15985 \family default
15986 ,
15987  
15988 \family sans
15989 Case
15990 \family default
15991  and 
15992 \family sans
15993 Question
15994 \family default
15995  in both numbered and unnumbered forms.
15996 \end_layout
15997
15998 \begin_layout Subsection
15999 AMS Theorems (Extended,
16000  Numbered by Type within Chapters)
16001 \end_layout
16002
16003 \begin_layout Standard
16004 This module defines some additional theorem environments for use with the 
16005 \family sans
16006 AMS Theorems (Numbered by Type within Chapters)
16007 \family default
16008  module (which must be loaded).
16009  It includes 
16010 \family sans
16011 Criterion
16012 \family default
16013 ,
16014  
16015 \family sans
16016 Algorithm
16017 \family default
16018 ,
16019  
16020 \family sans
16021 Axiom
16022 \family default
16023 ,
16024  
16025 \family sans
16026 Condition
16027 \family default
16028 ,
16029  
16030 \family sans
16031 Note
16032 \family default
16033 ,
16034  
16035 \family sans
16036 Notation
16037 \family default
16038 ,
16039  
16040 \family sans
16041 Summary
16042 \family default
16043 ,
16044  
16045 \family sans
16046 Conclusion
16047 \family default
16048 ,
16049  
16050 \family sans
16051 Assumption
16052 \family default
16053  and 
16054 \family sans
16055 Case
16056 \family default
16057  in both numbered and unnumbered forms.
16058 \end_layout
16059
16060 \begin_layout Standard
16061 Unlike the 
16062 \family sans
16063 AMS Theorems (Extended)
16064 \family default
16065  module,
16066  the different theorem types provided here each have a separate counter,
16067  restarted with each new chapter (e.g.,
16068  
16069 \emph on
16070 Criterion 1.1
16071 \emph default
16072 ,
16073  
16074 \emph on
16075 Criterion 1.2
16076 \emph default
16077 ,
16078  
16079 \emph on
16080 Axiom 1.1
16081 \emph default
16082 ,
16083  
16084 \emph on
16085 Assumption 1.1
16086 \emph default
16087 ,
16088  
16089 \emph on
16090 Criterion 2.1
16091 \emph default
16092 ,
16093  
16094 \emph on
16095 Criterion 2.2
16096 \emph default
16097 ,
16098
16099 \emph on
16100  Axiom 2.1
16101 \emph default
16102 ,
16103  \SpecialChar ldots
16104 ,
16105  as opposed to 
16106 \emph on
16107 Criterion 1
16108 \emph default
16109 ,
16110  
16111 \emph on
16112 Criterion 2
16113 \emph default
16114 ,
16115  
16116 \emph on
16117 Axiom 3
16118 \emph default
16119 ,
16120  
16121 \emph on
16122 Assumption 4
16123 \emph default
16124 ,
16125  \SpecialChar ldots
16126 ).
16127 \end_layout
16128
16129 \begin_layout Subsection
16130 AMS Theorems (Extended,
16131  Numbered by Type)
16132 \end_layout
16133
16134 \begin_layout Standard
16135 This module defines some additional theorem environments for use with the 
16136 \family sans
16137 AMS Theorems (Numbered by Type)
16138 \family default
16139  package (which must be loaded).
16140  It includes 
16141 \family sans
16142 Criterion
16143 \family default
16144 ,
16145  
16146 \family sans
16147 Algorithm
16148 \family default
16149 ,
16150  
16151 \family sans
16152 Axiom
16153 \family default
16154 ,
16155  
16156 \family sans
16157 Condition
16158 \family default
16159 ,
16160  
16161 \family sans
16162 Note
16163 \family default
16164 ,
16165  
16166 \family sans
16167 Notation
16168 \family default
16169 ,
16170  
16171 \family sans
16172 Summary
16173 \family default
16174 ,
16175  
16176 \family sans
16177 Conclusion
16178 \family default
16179 ,
16180  
16181 \family sans
16182 Assumption
16183 \family default
16184  and 
16185 \family sans
16186 Case
16187 \family default
16188  in both numbered and unnumbered forms.
16189 \end_layout
16190
16191 \begin_layout Standard
16192 Unlike the 
16193 \family sans
16194 AMS Theorems (Extended)
16195 \family default
16196  module,
16197  the different theorem types provided here each have a separate counter (e.g.,
16198  
16199 \emph on
16200 Criterion 1
16201 \emph default
16202 ,
16203  
16204 \emph on
16205 Criterion 2
16206 \emph default
16207 ,
16208  
16209 \emph on
16210 Axiom 1
16211 \emph default
16212 ,
16213  
16214 \emph on
16215 Assumption 1
16216 \emph default
16217 ,
16218  
16219 \emph on
16220 Criterion 3
16221 \emph default
16222 ,
16223  \SpecialChar ldots
16224 ,
16225  as opposed to 
16226 \emph on
16227 Criterion 1
16228 \emph default
16229 ,
16230  
16231 \emph on
16232 Criterion 2
16233 \emph default
16234 ,
16235  
16236 \emph on
16237 Axiom 3
16238 \emph default
16239 ,
16240  
16241 \emph on
16242 Assumption 4
16243 \emph default
16244 ,
16245  \SpecialChar ldots
16246 ).
16247 \end_layout
16248
16249 \begin_layout Subsection
16250 AMS Theorems (Numbered by Type within Chapters)
16251 \end_layout
16252
16253 \begin_layout Standard
16254 This module defines theorem environments and the proof environment using the extended AMS machinery.
16255  Both numbered and unnumbered types are provided.
16256 \end_layout
16257
16258 \begin_layout Standard
16259 Unlike the 
16260 \family sans
16261 AMS Theorems
16262 \family default
16263  module,
16264  the different theorem types provided here each have a separate counter (e.g.,
16265  
16266 \emph on
16267 Theorem 1.1
16268 \emph default
16269 ,
16270  
16271 \emph on
16272 Theorem 1.2
16273 \emph default
16274 ,
16275  
16276 \emph on
16277 Lemma 1.1
16278 \emph default
16279 ,
16280  
16281 \emph on
16282 Proposition 1.1
16283 \emph default
16284 ,
16285  
16286 \emph on
16287 Theorem 1.3
16288 \emph default
16289 ,
16290  
16291 \emph on
16292 Lemma 1.2
16293 \emph default
16294 ,
16295  \SpecialChar ldots
16296 ,
16297  as opposed to 
16298 \emph on
16299 Theorem 1
16300 \emph default
16301 ,
16302  
16303 \emph on
16304 Theorem 2
16305 \emph default
16306 ,
16307  
16308 \emph on
16309 Lemma 3
16310 \emph default
16311 ,
16312  
16313 \emph on
16314 Proposition 4
16315 \emph default
16316 ,
16317  \SpecialChar ldots
16318 ).
16319  The numbering restarts for each chapter:
16320  
16321 \emph on
16322 Theorem 1.1
16323 \emph default
16324 ,
16325  
16326 \emph on
16327 Theorem 2.1
16328 \emph default
16329 ,
16330  \SpecialChar ldots
16331
16332 \end_layout
16333
16334 \begin_layout Standard
16335 It cannot be used if the modules 
16336 \family sans
16337 AMS Theorems
16338 \family default
16339 ,
16340  
16341 \family sans
16342 Standard Theorems
16343 \family default
16344 ,
16345
16346 \family sans
16347  Standard Theorems (Numbered by Type)
16348 \family default
16349  or
16350 \family sans
16351  Standard Theorems (Unnumbered)
16352 \family default
16353  have been loaded.
16354 \end_layout
16355
16356 \begin_layout Subsection
16357 AMS Theorems (Numbered by Type)
16358 \end_layout
16359
16360 \begin_layout Standard
16361 This module defines theorem environments and the proof environment using the extended AMS machinery.
16362  Both numbered and unnumbered types are provided.
16363  Unlike the 
16364 \family sans
16365 AMS Theorems
16366 \family default
16367  module,
16368  the different theorem types provided here each have a separate counter (e.g.,
16369  
16370 \emph on
16371 Theorem 1
16372 \emph default
16373 ,
16374  
16375 \emph on
16376 Theorem 2
16377 \emph default
16378 ,
16379  
16380 \emph on
16381 Lemma 1
16382 \emph default
16383 ,
16384  
16385 \emph on
16386 Proposition 1
16387 \emph default
16388 ,
16389  
16390 \emph on
16391 Theorem 3
16392 \emph default
16393 ,
16394  
16395 \emph on
16396 Lemma 2
16397 \emph default
16398 ,
16399  \SpecialChar ldots
16400 ,
16401  as opposed to 
16402 \emph on
16403 Theorem 1
16404 \emph default
16405 ,
16406  
16407 \emph on
16408 Theorem 2
16409 \emph default
16410 ,
16411  
16412 \emph on
16413 Lemma 3
16414 \emph default
16415 ,
16416  
16417 \emph on
16418 Proposition 4
16419 \emph default
16420 ,
16421  \SpecialChar ldots
16422 ).
16423  The numbering’s scope is the whole document.
16424  For chapter- and section-wide numbering,
16425  use one of the ‘within Sections’/‘within Chapters’ modules,
16426  respectively.
16427 \end_layout
16428
16429 \begin_layout Standard
16430 It cannot be used if the modules 
16431 \family sans
16432 AMS Theorems
16433 \family default
16434 ,
16435  
16436 \family sans
16437 Standard Theorems
16438 \family default
16439 ,
16440
16441 \family sans
16442  Standard Theorems (Numbered by Type)
16443 \family default
16444  or
16445 \family sans
16446  Standard Theorems (Unnumbered)
16447 \family default
16448  have been loaded.
16449 \end_layout
16450
16451 \begin_layout Subsection
16452 Number Equations by Section
16453 \end_layout
16454
16455 \begin_layout Standard
16456 This module resets the equation number at section start and prepends the section number to the equation number,
16457  as in 
16458 \emph on
16459 (2.1)
16460 \emph default
16461 .
16462 \end_layout
16463
16464 \begin_layout Subsection
16465 Standard Theorems
16466 \end_layout
16467
16468 \begin_layout Standard
16469 This module defines some theorem environments for use with non-AMS classes.
16470  By default,
16471  the theorems are numbered consecutively throughout the document.
16472  This can be changed by loading one of the 
16473 \family sans
16474 Standard Theorems (Numbered by \SpecialChar ldots
16475 )
16476 \family default
16477  modules.
16478 \end_layout
16479
16480 \begin_layout Standard
16481 It cannot be used if the modules 
16482 \family sans
16483 AMS Theorems
16484 \family default
16485  or
16486 \family sans
16487  Standard Theorems (Unnumbered)
16488 \family default
16489  have been loaded.
16490 \end_layout
16491
16492 \begin_layout Subsection
16493 Standard Theorems (Nameable)
16494 \end_layout
16495
16496 \begin_layout Standard
16497 This module facilitates the use of named theorems.
16498  The name of the theorem can be inserted via 
16499 \family sans
16500 Insert\SpecialChar menuseparator
16501 Additional Theorem Text
16502 \family default
16503 .
16504 \end_layout
16505
16506 \begin_layout Subsection
16507 Standard Theorems (Numbered by Chapter)
16508 \end_layout
16509
16510 \begin_layout Standard
16511 This module numbers theorems and the like by chapter (i.e.,
16512  the counter is reset at each chapter start).
16513  Use this module only with document classes that provide a chapter environment.
16514 \end_layout
16515
16516 \begin_layout Standard
16517 One of the modules 
16518 \family sans
16519 AMS Theorems
16520 \family default
16521  or 
16522 \family sans
16523 Standard Theorems
16524 \family default
16525  must be loaded.
16526 \end_layout
16527
16528 \begin_layout Standard
16529 It cannot be used if the module
16530 \family sans
16531  Standard Theorems (Numbered by Section)
16532 \family default
16533  has been loaded.
16534 \end_layout
16535
16536 \begin_layout Subsection
16537 Standard Theorems (Numbered by Section)
16538 \end_layout
16539
16540 \begin_layout Standard
16541 This module numbers theorems and the like by section (i.e.,
16542  the counter is reset at each section start).
16543  One of the modules 
16544 \family sans
16545 AMS Theorems
16546 \family default
16547  or 
16548 \family sans
16549 Standard Theorems
16550 \family default
16551  must be loaded.
16552  It cannot be used if the module
16553 \family sans
16554  Standard Theorems (Numbered by Chapter)
16555 \family default
16556  has been loaded.
16557 \end_layout
16558
16559 \begin_layout Subsection
16560 Standard Theorems (Numbered by Type within Chapters)
16561 \end_layout
16562
16563 \begin_layout Standard
16564 This module defines some theorem environments for use with non-AMS classes.
16565  Unlike the
16566 \family sans
16567  AMS Theorems
16568 \family default
16569  and 
16570 \family sans
16571 Standard Theorems
16572 \family default
16573  modules,
16574  the different theorem types provided here each have a separate counter (e.g.,
16575  
16576 \emph on
16577 Theorem 1
16578 \emph default
16579 ,
16580  
16581 \emph on
16582 Theorem 2
16583 \emph default
16584 ,
16585  
16586 \emph on
16587 Lemma 1
16588 \emph default
16589 ,
16590  
16591 \emph on
16592 Proposition 1
16593 \emph default
16594 ,
16595  
16596 \emph on
16597 Theorem 3
16598 \emph default
16599 ,
16600  
16601 \emph on
16602 Lemma 2
16603 \emph default
16604 ,
16605  \SpecialChar ldots
16606 ,
16607  as opposed to 
16608 \emph on
16609 Theorem 1
16610 \emph default
16611 ,
16612  
16613 \emph on
16614 Theorem 2
16615 \emph default
16616 ,
16617  
16618 \emph on
16619 Lemma 3
16620 \emph default
16621 ,
16622  
16623 \emph on
16624 Proposition 4
16625 \emph default
16626 ,
16627  \SpecialChar ldots
16628 ).
16629  The numbering is reset at each chapter start.
16630 \end_layout
16631
16632 \begin_layout Standard
16633 One of the modules 
16634 \family sans
16635 AMS Theorems (Numbered by Type)
16636 \family default
16637  or 
16638 \family sans
16639 Standard Theorems (Numbered by Type)
16640 \family default
16641  must be loaded.
16642 \end_layout
16643
16644 \begin_layout Standard
16645 It cannot be used if any of the modules
16646 \family sans
16647  AMS Theorems
16648 \family default
16649 ,
16650  
16651 \family sans
16652 Standard Theorems
16653 \family default
16654 ,
16655  
16656 \family sans
16657 Standard Theorems (Unnumbered)
16658 \family default
16659 ,
16660
16661 \family sans
16662  Standard Theorems (Numbered by Sections)
16663 \family default
16664  or 
16665 \family sans
16666 Standard Theorems (Numbered by Type within Sections)
16667 \family default
16668  have been loaded.
16669 \end_layout
16670
16671 \begin_layout Subsection
16672 Standard Theorems (Numbered by Type within Sections)
16673 \end_layout
16674
16675 \begin_layout Standard
16676 This module defines some theorem environments for use with non-AMS classes.
16677  Unlike the
16678 \family sans
16679  AMS Theorems
16680 \family default
16681  and 
16682 \family sans
16683 Standard Theorems
16684 \family default
16685  modules,
16686  the different theorem types provided here each have a separate counter (e.g.,
16687  
16688 \emph on
16689 Theorem 1
16690 \emph default
16691 ,
16692  
16693 \emph on
16694 Theorem 2
16695 \emph default
16696 ,
16697  
16698 \emph on
16699 Lemma 1
16700 \emph default
16701 ,
16702  
16703 \emph on
16704 Proposition 1
16705 \emph default
16706 ,
16707  
16708 \emph on
16709 Theorem 3
16710 \emph default
16711 ,
16712  
16713 \emph on
16714 Lemma 2
16715 \emph default
16716 ,
16717  \SpecialChar ldots
16718 ,
16719  as opposed to 
16720 \emph on
16721 Theorem 1
16722 \emph default
16723 ,
16724  
16725 \emph on
16726 Theorem 2
16727 \emph default
16728 ,
16729  
16730 \emph on
16731 Lemma 3
16732 \emph default
16733 ,
16734  
16735 \emph on
16736 Proposition 4
16737 \emph default
16738 ,
16739  \SpecialChar ldots
16740 ).
16741  The numbering is reset at each section start.
16742 \end_layout
16743
16744 \begin_layout Standard
16745 One of the modules 
16746 \family sans
16747 AMS Theorems (Numbered by Type)
16748 \family default
16749  or 
16750 \family sans
16751 Standard Theorems (Numbered by Type)
16752 \family default
16753  must be loaded.
16754 \end_layout
16755
16756 \begin_layout Standard
16757 It cannot be used if any of the modules
16758 \family sans
16759  AMS Theorems
16760 \family default
16761 ,
16762  
16763 \family sans
16764 Standard Theorems
16765 \family default
16766 ,
16767  
16768 \family sans
16769 Standard Theorems (Unnumbered)
16770 \family default
16771 ,
16772
16773 \family sans
16774  Standard Theorems (Numbered by Chapters)
16775 \family default
16776  or 
16777 \family sans
16778 Standard Theorems (Numbered by Type within Chapters)
16779 \family default
16780  have been loaded.
16781 \end_layout
16782
16783 \begin_layout Subsection
16784 Standard Theorems (Numbered by Type)
16785 \end_layout
16786
16787 \begin_layout Standard
16788 This module defines some theorem environments for use with non-AMS classes.
16789  Unlike the 
16790 \family sans
16791 AMS Theorems
16792 \family default
16793  and 
16794 \family sans
16795 Standard Theorems
16796 \family default
16797  modules,
16798  the different theorem types provided here each have a separate counter (e.g.,
16799  
16800 \emph on
16801 Theorem 1
16802 \emph default
16803 ,
16804  
16805 \emph on
16806 Theorem 2
16807 \emph default
16808 ,
16809  
16810 \emph on
16811 Lemma 1
16812 \emph default
16813 ,
16814  
16815 \emph on
16816 Proposition 1
16817 \emph default
16818 ,
16819  
16820 \emph on
16821 Theorem 3
16822 \emph default
16823 ,
16824  
16825 \emph on
16826 Lemma 2
16827 \emph default
16828 ,
16829  \SpecialChar ldots
16830 ,
16831  as opposed to 
16832 \emph on
16833 Theorem 1
16834 \emph default
16835 ,
16836  
16837 \emph on
16838 Theorem 2
16839 \emph default
16840 ,
16841  
16842 \emph on
16843 Lemma 3
16844 \emph default
16845 ,
16846  
16847 \emph on
16848 Proposition 4
16849 \emph default
16850 ,
16851  \SpecialChar ldots
16852 ).
16853  The numbering’s scope is the whole document.
16854  For chapter- and section-wide numbering,
16855  use one of the “within Chapters”/“within Sections” modules,
16856  respectively.
16857 \end_layout
16858
16859 \begin_layout Standard
16860 It cannot be used if any of the modules
16861 \family sans
16862  AMS Theorems
16863 \family default
16864 ,
16865  
16866 \family sans
16867 Standard Theorems
16868 \family default
16869 ,
16870  
16871 \family sans
16872 Standard Theorems (Unnumbered)
16873 \family default
16874  or
16875 \family sans
16876  AMS Theorems (Numbered by Type)
16877 \family default
16878  have been loaded.
16879 \end_layout
16880
16881 \begin_layout Subsection
16882 Standard Theorems (Unnumbered)
16883 \end_layout
16884
16885 \begin_layout Standard
16886 This module defines only unnumbered theorem environments and the proof environment,
16887  using the extended AMS machinery.
16888  It cannot be used if either of the modules
16889 \family sans
16890  AMS Theorems
16891 \family default
16892  or
16893 \family sans
16894  Standard Theorems
16895 \family default
16896  have been loaded.
16897 \end_layout
16898
16899 \begin_layout Subsection
16900 Subequations
16901 \end_layout
16902
16903 \begin_layout Standard
16904 This module provides a straightforward way to segregate subequations in LyX.
16905  See 
16906 \family sans
16907 Help\SpecialChar menuseparator
16908 Math\SpecialChar menuseparator
16909 Subnumbering
16910 \family default
16911 .
16912 \end_layout
16913
16914 \begin_layout Section
16915 Page Layout
16916 \end_layout
16917
16918 \begin_layout Subsection
16919 Custom Header/Footer Text
16920 \end_layout
16921
16922 \begin_layout Standard
16923 This module requires the 
16924 \family sans
16925 Page
16926 \begin_inset space ~
16927 \end_inset
16928
16929
16930 \bar under
16931 s
16932 \bar default
16933 tyle
16934 \family default
16935  option in the 
16936 \family sans
16937 \bar under
16938 D
16939 \bar default
16940 ocument\SpecialChar menuseparator
16941
16942 \bar under
16943 S
16944 \bar default
16945 ettings\SpecialChar menuseparator
16946 Page
16947 \begin_inset space ~
16948 \end_inset
16949
16950 Layout
16951 \family default
16952  dialog to be set to 
16953 \family typewriter
16954 fancy
16955 \family default
16956 .
16957  It adds six environments to document classes which support the 
16958 \family typewriter
16959 fancyhdr
16960 \family default
16961  package:
16962 \end_layout
16963
16964 \begin_layout Itemize
16965
16966 \family sans
16967 Left Header
16968 \end_layout
16969
16970 \begin_layout Itemize
16971
16972 \family sans
16973 Center Header
16974 \end_layout
16975
16976 \begin_layout Itemize
16977
16978 \family sans
16979 Right Header
16980 \end_layout
16981
16982 \begin_layout Itemize
16983
16984 \family sans
16985 Left Footer
16986 \end_layout
16987
16988 \begin_layout Itemize
16989
16990 \family sans
16991 Center Footer
16992 \end_layout
16993
16994 \begin_layout Itemize
16995
16996 \family sans
16997 Right Footer
16998 \end_layout
16999
17000 \begin_layout Subsubsection
17001 Fancy Headers and Footers
17002 \end_layout
17003
17004 \begin_layout Standard
17005 The default page layout is rather plain;
17006  for an 
17007 \family sans
17008 Article (Standard Class)
17009 \family default
17010  document class,
17011  all you get is a centered page number at the bottom of the page.
17012  This document uses the 
17013 \family sans
17014 KOMA-Script Book
17015 \family default
17016  class;
17017  so it appears to be a bit fancier.
17018 \end_layout
17019
17020 \begin_layout Standard
17021 Once the 
17022 \family sans
17023 Page
17024 \begin_inset space ~
17025 \end_inset
17026
17027
17028 \bar under
17029 s
17030 \bar default
17031 tyle
17032 \family default
17033  in 
17034 \family sans
17035 \bar under
17036 D
17037 \bar default
17038 ocument\SpecialChar menuseparator
17039
17040 \bar under
17041 S
17042 \bar default
17043 ettings\SpecialChar menuseparator
17044 Page Layout
17045 \family default
17046  is set to 
17047 \begin_inset Quotes eld
17048 \end_inset
17049
17050 fancy
17051 \begin_inset Quotes erd
17052 \end_inset
17053
17054 ,
17055  you will find that the page header is divided into three fields,
17056  not surprisingly labeled 
17057 \begin_inset Quotes eld
17058 \end_inset
17059
17060 left
17061 \begin_inset Quotes erd
17062 \end_inset
17063
17064 ,
17065  
17066 \begin_inset Quotes eld
17067 \end_inset
17068
17069 center
17070 \begin_inset Quotes erd
17071 \end_inset
17072
17073 ,
17074  and 
17075 \begin_inset Quotes eld
17076 \end_inset
17077
17078 right
17079 \begin_inset Quotes erd
17080 \end_inset
17081
17082 .
17083  The footer is also divided into these three fields.
17084  The \SpecialChar LaTeX
17085  commands to set these fields in the simplest manner are 
17086 \family typewriter
17087
17088 \backslash
17089 lhead
17090 \family default
17091 ,
17092  
17093 \family typewriter
17094
17095 \backslash
17096 chead
17097 \family default
17098 ,
17099  
17100 \family typewriter
17101
17102 \backslash
17103 rhead
17104 \family default
17105 ,
17106  
17107 \family typewriter
17108
17109 \backslash
17110 lfoot
17111 \family default
17112 ,
17113  etc.
17114  Suppose you wish to put your name in the upper left hand corner of each page.
17115  Simply insert the following command in the preamble:
17116 \end_layout
17117
17118 \begin_layout LyX-Code
17119
17120 \backslash
17121 lhead{John Q.
17122  DocWriter}
17123 \end_layout
17124
17125 \begin_layout Standard
17126 You will now see your name in the upper left.
17127  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,
17128  e.
17129 \begin_inset space \thinspace{}
17130 \end_inset
17131
17132 g.:
17133 \end_layout
17134
17135 \begin_layout LyX-Code
17136
17137 \backslash
17138 cfoot{}
17139 \end_layout
17140
17141 \begin_layout Standard
17142 There is,
17143  however,
17144  an easier way to make simple changes.
17145  If you load the 
17146 \family sans
17147 \bar under
17148 D
17149 \bar default
17150 ocument\SpecialChar menuseparator
17151
17152 \bar under
17153 S
17154 \bar default
17155 ettings\SpecialChar menuseparator
17156 Modules\SpecialChar menuseparator
17157 Page Layout\SpecialChar menuseparator
17158 Custom Header/Footer Text
17159 \family default
17160  module,
17161  you will find you have six new environments corresponding to the six fields described above.
17162 \end_layout
17163
17164 \begin_layout Standard
17165 Let's get really fancy:
17166  lets put the section number with the word 
17167 \begin_inset Quotes eld
17168 \end_inset
17169
17170 Section
17171 \begin_inset Quotes erd
17172 \end_inset
17173
17174  (e.
17175 \begin_inset space \thinspace{}
17176 \end_inset
17177
17178 g.
17179 \begin_inset space \space{}
17180 \end_inset
17181
17182 Section 3) in the upper left,
17183  the page number (e.
17184 \begin_inset space \thinspace{}
17185 \end_inset
17186
17187 g.
17188 \begin_inset space \space{}
17189 \end_inset
17190
17191 Page 4) in the upper right,
17192  your name in the lower left,
17193  and the date in the lower right.
17194  Use your newly enabled environments to add these entries:
17195 \end_layout
17196
17197 \begin_layout LyX-Code
17198
17199 \family sans
17200 Left
17201 \begin_inset space ~
17202 \end_inset
17203
17204 header:
17205
17206 \family default
17207 \series bold
17208  
17209 \family roman
17210 \series default
17211 Section
17212 \family typewriter
17213  
17214 \family default
17215
17216 \backslash
17217 thesection
17218 \end_layout
17219
17220 \begin_layout LyX-Code
17221
17222 \family sans
17223 Center header:
17224 \end_layout
17225
17226 \begin_layout LyX-Code
17227
17228 \family sans
17229 Right header:
17230
17231 \family default
17232  
17233 \family roman
17234 Page
17235 \family typewriter
17236  
17237 \family default
17238
17239 \backslash
17240 thepage
17241 \end_layout
17242
17243 \begin_layout LyX-Code
17244
17245 \family sans
17246 Left footer:
17247
17248 \family default
17249  
17250 \family roman
17251 John Q.
17252  DocWriter
17253 \end_layout
17254
17255 \begin_layout LyX-Code
17256
17257 \family sans
17258 Center footer:
17259 \end_layout
17260
17261 \begin_layout LyX-Code
17262
17263 \family sans
17264 Right footer:
17265
17266 \family default
17267 \series bold
17268  
17269 \series default
17270
17271 \backslash
17272 today
17273 \end_layout
17274
17275 \begin_layout Standard
17276 Make sure you enter the commands 
17277 \family typewriter
17278
17279 \backslash
17280 thesection
17281 \family default
17282 ,
17283  
17284 \family typewriter
17285
17286 \backslash
17287 thepage
17288 \family default
17289  and 
17290 \family typewriter
17291
17292 \backslash
17293 today
17294 \family default
17295  as \SpecialChar TeX
17296  Code commands
17297 \series bold
17298 .
17299
17300 \series default
17301  The commands 
17302 \family typewriter
17303
17304 \backslash
17305 thesection
17306 \family default
17307  and
17308 \family typewriter
17309  
17310 \backslash
17311 thepage
17312 \family default
17313  access \SpecialChar LaTeX
17314 ’s section and page counters,
17315  and so print out the current section and page numbers.
17316  
17317 \family typewriter
17318
17319 \backslash
17320 today
17321 \family default
17322  simply prints out today’s date.
17323 \end_layout
17324
17325 \begin_layout Standard
17326 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
17327  If you don't want one of the rules,
17328  set its thickness to 0.
17329  The header rule has a default thickness of 0.4pt,
17330  the footer rule is 0pt.
17331  For this you will need to use \SpecialChar TeX
17332  Code commands like
17333 \end_layout
17334
17335 \begin_layout Standard
17336
17337 \family typewriter
17338
17339 \backslash
17340 renewcommand{
17341 \backslash
17342 headrulewidth}{0.4pt}
17343 \family default
17344  and
17345 \end_layout
17346
17347 \begin_layout Standard
17348
17349 \family typewriter
17350
17351 \backslash
17352 renewcommand{
17353 \backslash
17354 footrulewidth}{0.4pt}
17355 \family default
17356  to set the thicknesses.
17357 \end_layout
17358
17359 \begin_layout Standard
17360 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
17361  Code commands like 
17362 \family typewriter
17363
17364 \backslash
17365 thispagestyle{empty}
17366 \family default
17367 ,
17368  
17369 \family typewriter
17370
17371 \backslash
17372 thispagestyle{plain}
17373 \family default
17374 ,
17375  and 
17376 \family typewriter
17377
17378 \backslash
17379 thispagestyle{fancy}
17380 \family default
17381 .
17382  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
17383  code.
17384  In fact,
17385  title pages are marked as plain by default,
17386  while following pages are marked fancy when using the global fancy setting.
17387 \end_layout
17388
17389 \begin_layout Standard
17390 If you want a header or footer to be on the outer side of a two sided document,
17391  you need to use something like:
17392 \end_layout
17393
17394 \begin_layout LyX-Code
17395
17396 \backslash
17397 fancyfoot{}
17398 \end_layout
17399
17400 \begin_layout LyX-Code
17401
17402 \backslash
17403 fancyfoot[LE,RO]{
17404 \backslash
17405 thepage}
17406 \end_layout
17407
17408 \begin_layout Standard
17409 The first command clears all existing footers avoiding any conflicts with your new command.
17410 \end_layout
17411
17412 \begin_layout Standard
17413 You can enter any of these commands,
17414  the simpler ones in any of your new environments,
17415  the more complex ones as \SpecialChar TeX
17416  Code commands,
17417  at any point in your document and they will take effect on the next page.
17418 \end_layout
17419
17420 \begin_layout Standard
17421 As a final example,
17422  it is possible to include an image in the header or footer.
17423  Suppose you want to put a company logo in the upper left hand corner.
17424  You might try something like this in 
17425 \family sans
17426 Document\SpecialChar menuseparator
17427 Settings\SpecialChar menuseparator
17428 LaTeX Preamble
17429 \family default
17430 :
17431 \end_layout
17432
17433 \begin_layout LyX-Code
17434
17435 \backslash
17436 lhead{
17437 \backslash
17438 resizebox{1in}{!}{
17439 \backslash
17440 includegraphics{logo.png}}}
17441 \end_layout
17442
17443 \begin_layout Standard
17444 \noindent
17445 You may need to preface this with 
17446 \family typewriter
17447
17448 \backslash
17449 usepackage{graphics}
17450 \family default
17451  if you don't include graphics elsewhere in your document.
17452 \end_layout
17453
17454 \begin_layout Standard
17455 For more information on fancy headers,
17456  you can get the 
17457 \begin_inset Flex Code
17458 status collapsed
17459
17460 \begin_layout Plain Layout
17461 fancyhdr
17462 \end_layout
17463
17464 \end_inset
17465
17466  documentation from 
17467 \begin_inset CommandInset href
17468 LatexCommand href
17469 name "CTAN"
17470 target "http://www.ctan.org/pkg/fancyhdr"
17471 literal "false"
17472
17473 \end_inset
17474
17475 .
17476 \end_layout
17477
17478 \begin_layout Subsection
17479 Landscape Document Parts
17480 \end_layout
17481
17482 \begin_layout Standard
17483 This module outputs parts of the document in landscape mode using 
17484 \family sans
17485 Insert\SpecialChar menuseparator
17486 Custom Insets\SpecialChar menuseparator
17487 Landscape
17488 \family default
17489  or 
17490 \family sans
17491 Insert\SpecialChar menuseparator
17492 Custom Insets\SpecialChar menuseparator
17493 Landscape (Floating)
17494 \family default
17495 .
17496 \end_layout
17497
17498 \begin_layout Subsection
17499 \begin_inset CommandInset label
17500 LatexCommand label
17501 name "sec:Multiple-Columns"
17502
17503 \end_inset
17504
17505 Multiple Columns
17506 \end_layout
17507
17508 \begin_layout Standard
17509 This module uses the 
17510 \family sans
17511 multicol
17512 \family default
17513
17514 \begin_inset Index idx
17515 range none
17516 pageformat default
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520 \SpecialChar LaTeX
17521 -packages !
17522  multicol
17523 \end_layout
17524
17525 \end_inset
17526
17527  package and is independent of the option 
17528 \family sans
17529 Two-
17530 \bar under
17531 c
17532 \bar default
17533 olumn document
17534 \family default
17535  in the 
17536 \family sans
17537 \bar under
17538 D
17539 \bar default
17540 ocument\SpecialChar menuseparator
17541
17542 \bar under
17543 S
17544 \bar default
17545 ettings\SpecialChar menuseparator
17546 Text
17547 \begin_inset space ~
17548 \end_inset
17549
17550 Layout
17551 \family default
17552  dialog.
17553  If you want to have two columns for the whole document,
17554  you are recommended to use the 
17555 \family sans
17556 Two-
17557 \bar under
17558 c
17559 \bar default
17560 olumn document
17561 \family default
17562  option.
17563  For all other cases use this module.
17564 \end_layout
17565
17566 \begin_layout Standard
17567 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
17568  Within the different columns you can use everything,
17569  with the limitation that for floats you need to check the option 
17570 \family sans
17571 \bar under
17572 S
17573 \bar default
17574 pan
17575 \begin_inset space ~
17576 \end_inset
17577
17578 columns
17579 \family default
17580  in 
17581 \family sans
17582 \bar under
17583 E
17584 \bar default
17585 dit\SpecialChar menuseparator
17586 Flo
17587 \bar under
17588 a
17589 \bar default
17590 t
17591 \begin_inset space ~
17592 \end_inset
17593
17594 Settings
17595 \family default
17596 .
17597 \end_layout
17598
17599 \begin_layout Subsubsection
17600 Basics
17601 \end_layout
17602
17603 \begin_layout Standard
17604 If you want to have two columns in your text,
17605  insert a multicolumn inset via the menu 
17606 \family sans
17607 Insert\SpecialChar menuseparator
17608 Custom
17609 \begin_inset space ~
17610 \end_inset
17611
17612 Insets\SpecialChar menuseparator
17613 Multiple
17614 \begin_inset space ~
17615 \end_inset
17616
17617 Columns
17618 \family default
17619  where the columns should start.
17620  Write all text that should be printed in 2
17621 \begin_inset space ~
17622 \end_inset
17623
17624 columns into this inset.
17625 \end_layout
17626
17627 \begin_layout Standard
17628 Here is an example:
17629 \end_layout
17630
17631 \begin_layout Standard
17632 \noindent
17633 \begin_inset Flex Multiple Columns
17634 status open
17635
17636 \begin_layout Plain Layout
17637 \noindent
17638
17639 \series bold
17640 \size small
17641 The Adventure of the Empty House
17642 \series default
17643
17644 \begin_inset Newline newline
17645 \end_inset
17646
17647 by 
17648 \noun on
17649 Sir Arthur Conan Doyle
17650 \end_layout
17651
17652 \begin_layout Plain Layout
17653
17654 \size small
17655 It was in the spring of the year 1894 that all London was interested,
17656  and the fashionable world dismayed,
17657  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
17658  The public has already learned those particulars of the crime which came out in the police investigation,
17659  but a good deal was suppressed upon that occasion,
17660  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
17661  Only now,
17662  at the end of nearly ten years,
17663  am I allowed to supply those missing links which make up the whole of that remarkable chain.
17664  The crime was of interest in itself,
17665  but that interest was as nothing to me compared to the inconceivable sequel,
17666  which afforded me the greatest shock and surprise of any event in my adventurous life.
17667  Even now,
17668  after this long interval,
17669  I find myself thrilling as I think of it,
17670  and feeling once more that sudden flood of joy,
17671  amazement,
17672  and incredulity which utterly submerged my mind.
17673  Let me say to that public,
17674  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
17675  that they are not to blame me if I have not shared my knowledge with them,
17676  for I should have considered it my first duty to do so,
17677  had I not been barred by a positive prohibition from his own lips,
17678  which was only withdrawn upon the third of last month.
17679 \end_layout
17680
17681 \end_inset
17682
17683
17684 \end_layout
17685
17686 \begin_layout Standard
17687 To get 3 or more columns,
17688  set the cursor into the multicolumn inset and use the menu 
17689 \family sans
17690 Insert\SpecialChar menuseparator
17691 Number
17692 \begin_inset space ~
17693 \end_inset
17694
17695 of
17696 \begin_inset space ~
17697 \end_inset
17698
17699 Columns
17700 \family default
17701 .
17702  The number of the desired columns is written into that inset (for 3
17703 \begin_inset space ~
17704 \end_inset
17705
17706 columns write 
17707 \begin_inset Quotes eld
17708 \end_inset
17709
17710 3
17711 \begin_inset Quotes erd
17712 \end_inset
17713
17714 ).
17715 \begin_inset Newline newline
17716 \end_inset
17717
17718 Here is an example with 3
17719 \begin_inset space ~
17720 \end_inset
17721
17722 columns:
17723 \end_layout
17724
17725 \begin_layout Standard
17726 \begin_inset Flex Multiple Columns
17727 status open
17728
17729 \begin_layout Plain Layout
17730
17731 \size footnotesize
17732 \begin_inset Argument 1
17733 status open
17734
17735 \begin_layout Plain Layout
17736
17737 3
17738 \end_layout
17739
17740 \end_inset
17741
17742 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
17743  and that after his disappearance I never failed to read with care the various problems which came before the public.
17744  And I even attempted,
17745  more than once,
17746  for my own private satisfaction,
17747  to employ his methods in their solution,
17748  though with indifferent success.
17749  There was none,
17750  however,
17751  which appealed to me like this tragedy of Ronald Adair.
17752  As I read the evidence at the inquest,
17753  which led up to a verdict of willful murder against some person or persons unknown,
17754  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
17755  There were points about this strange business which would,
17756  I was sure,
17757  have specially appealed to him,
17758  and the efforts of the police would have been supplemented,
17759  or more probably anticipated,
17760  by the trained observation and the alert mind of the first criminal agent in Europe.
17761  All day,
17762  as I drove upon my round,
17763  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
17764  At the risk of telling a twice-told tale,
17765  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
17766 \end_layout
17767
17768 \end_inset
17769
17770
17771 \end_layout
17772
17773 \begin_layout Standard
17774 You can have up to 10
17775 \begin_inset space ~
17776 \end_inset
17777
17778 columns if you want to,
17779  but that might not be very pleasant for the readers of your document.
17780 \end_layout
17781
17782 \begin_layout Subsubsection
17783 Columns inside Columns
17784 \end_layout
17785
17786 \begin_layout Standard
17787 You can also have columns inside columns:
17788 \end_layout
17789
17790 \begin_layout Standard
17791 \begin_inset Flex Multiple Columns
17792 status open
17793
17794 \begin_layout Plain Layout
17795
17796 \size footnotesize
17797 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
17798  at that time governor of one of the Australian colonies.
17799  Adair's mother had returned from Australia to undergo the operation for cataract,
17800  and she,
17801  her son Ronald,
17802  and her daughter Hilda were living together at 427 Park Lane.
17803 \end_layout
17804
17805 \begin_layout Plain Layout
17806 \begin_inset Flex Multiple Columns
17807 status open
17808
17809 \begin_layout Plain Layout
17810
17811 \size footnotesize
17812 The youth moved in the best society
17813 \begin_inset space ~
17814 \end_inset
17815
17816 – had,
17817  so far as was known,
17818  no enemies and no particular vices.
17819  He had been engaged to Miss Edith Woodley,
17820  of Carstairs,
17821  but the engagement had been broken off by mutual consent some months before,
17822  and there was no sign that it had left any very profound feeling behind it.
17823  For the rest {sic} the man's life moved in a narrow and conventional circle,
17824  for his habits were quiet and his nature unemotional.
17825  Yet it was upon this easy-going young aristocrat that death came,
17826  in most strange and unexpected form,
17827  between the hours of ten and eleven-twenty on the night of March 30,
17828  1894.
17829 \end_layout
17830
17831 \end_inset
17832
17833
17834 \end_layout
17835
17836 \begin_layout Plain Layout
17837
17838 \size footnotesize
17839 Ronald Adair was fond of cards
17840 \begin_inset space ~
17841 \end_inset
17842
17843 – playing continually,
17844  but never for such stakes as would hurt him.
17845  He was a member of the Baldwin,
17846  the Cavendish,
17847  and the Bagatelle card clubs.
17848  It was shown that,
17849  after dinner on the day of his death,
17850  he had played a rubber of whist at the latter club.
17851  He had also played there in the afternoon.
17852
17853 \size default
17854  
17855 \size footnotesize
17856 The evidence of those who had played with him
17857 \begin_inset space ~
17858 \end_inset
17859
17860 – Mr.
17861  Murray,
17862  Sir John Hardy,
17863  and Colonel Moran
17864 \begin_inset space ~
17865 \end_inset
17866
17867 – showed that the game was whist,
17868  and that there was a fairly equal fall of the cards.
17869  Adair might have lost five pounds,
17870  but not more.
17871  His fortune was a considerable one,
17872  and such a loss could not in any way affect him.
17873  He had played nearly every day at one club or other,
17874  but he was a cautious player,
17875  and usually rose a winner.
17876  It came out in evidence that,
17877  in partnership with Colonel Moran,
17878  he had actually won as much as four hundred and twenty pounds in a sitting,
17879  some weeks before,
17880  from Godfrey Milner and Lord Balmoral.
17881  So much for his recent history as it came out at the inquest.
17882 \end_layout
17883
17884 \end_inset
17885
17886
17887 \end_layout
17888
17889 \begin_layout Subsubsection
17890 Advanced Examples
17891 \end_layout
17892
17893 \begin_layout Standard
17894 The examples in this section show some more special features of multiple columns.
17895 \end_layout
17896
17897 \begin_layout Standard
17898 For more features of multiple columns,
17899  have a look at the 
17900 \begin_inset CommandInset href
17901 LatexCommand href
17902 name "documentation"
17903 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
17904 literal "false"
17905
17906 \end_inset
17907
17908  of the \SpecialChar LaTeX
17909 -package 
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 multicol
17915 \end_layout
17916
17917 \end_inset
17918
17919 .
17920 \end_layout
17921
17922 \begin_layout Paragraph
17923 Preface
17924 \end_layout
17925
17926 \begin_layout Standard
17927 To add a preface text for multiple columns,
17928  set the cursor into the multicolumn inset and use the menu 
17929 \family sans
17930 Insert\SpecialChar menuseparator
17931 Preface
17932 \family default
17933 .
17934  Write your preface text into that inset.
17935 \begin_inset Newline newline
17936 \end_inset
17937
17938 This is an example with some preface text:
17939 \end_layout
17940
17941 \begin_layout Standard
17942 \begin_inset VSpace bigskip
17943 \end_inset
17944
17945
17946 \end_layout
17947
17948 \begin_layout Standard
17949 \begin_inset Flex Multiple Columns
17950 status open
17951
17952 \begin_layout Plain Layout
17953 \begin_inset Argument 2
17954 status open
17955
17956 \begin_layout Plain Layout
17957 And the story continues and continues and continues and continues\SpecialChar ldots
17958
17959 \end_layout
17960
17961 \end_inset
17962
17963
17964 \size small
17965 On the evening of the crime,
17966  he returned from the club exactly at ten.
17967  His mother and sister were out spending the evening with a relation.
17968  The servant deposed that she heard him enter the front room on the second floor,
17969  generally used as his sitting-room.
17970  She had lit a fire there,
17971  and as it smoked she had opened the window.
17972  No sound was heard from the room until eleven-twenty,
17973  the hour of the return of Lady Maynooth and her daughter.
17974  Desiring to say good-night,
17975  she attempted to enter her son's room.
17976  The door was locked on the inside,
17977  and no answer could be got to their cries and knocking.
17978  Help was obtained,
17979  and the door forced.
17980  The unfortunate young man was found lying near the table.
17981  His head had been horribly mutilated by an expanding revolver bullet,
17982  but no weapon of any sort was to be found in the room.
17983 \end_layout
17984
17985 \end_inset
17986
17987
17988 \end_layout
17989
17990 \begin_layout Standard
17991 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
17992  Code.
17993  For example the command
17994 \end_layout
17995
17996 \begin_layout LyX-Code
17997
17998 \backslash
17999 subsection{subsection title}
18000 \end_layout
18001
18002 \begin_layout Standard
18003 creates a subsection.
18004  In this example the preface is a subsubsection:
18005 \end_layout
18006
18007 \begin_layout Standard
18008 \begin_inset Flex Multiple Columns
18009 status open
18010
18011 \begin_layout Plain Layout
18012 \begin_inset Argument 2
18013 status open
18014
18015 \begin_layout Plain Layout
18016 \begin_inset ERT
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020
18021
18022 \backslash
18023 subsubsection{
18024 \end_layout
18025
18026 \end_inset
18027
18028 This is a subsubsection heading as a preface
18029 \begin_inset ERT
18030 status collapsed
18031
18032 \begin_layout Plain Layout
18033
18034 }
18035 \end_layout
18036
18037 \end_inset
18038
18039
18040 \end_layout
18041
18042 \end_inset
18043
18044
18045 \size small
18046 A minute examination of the circumstances served only to make the case more complex.
18047  In the first place,
18048  no reason could be given why the young man should have fastened the door upon the inside.
18049  There was the possibility that the murderer had done this,
18050  and had afterwards escaped by the window.
18051  The drop was at least twenty feet,
18052  however,
18053  and a bed of crocuses in full bloom lay beneath.
18054  Neither the flowers nor the earth showed any sign of having been disturbed,
18055  nor were there any marks upon the narrow strip of grass which separated the house from the road.
18056  Apparently,
18057  therefore,
18058  it was the young man himself who had fastened the door.
18059  But how did he come by his death?
18060  No one could have climbed up to the window without leaving traces.
18061  Suppose a man had fired through the window,
18062  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
18063  Again,
18064  Park Lane is a frequented thoroughfare;
18065  there is a cab stand within a hundred yards of the house.
18066  No one had heard a shot.
18067 \end_layout
18068
18069 \end_inset
18070
18071
18072 \end_layout
18073
18074 \begin_layout Standard
18075 If there is less vertical space than six text lines is left on the page at the beginning of the multiple columns,
18076  a page break will be inserted before the multiple columns.
18077  Depending on the number of lines of the preface text,
18078  you might want to change this space.
18079  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
18080 \family sans
18081 Insert\SpecialChar menuseparator
18082 Space
18083 \begin_inset space ~
18084 \end_inset
18085
18086 Before
18087 \begin_inset space ~
18088 \end_inset
18089
18090 Page
18091 \begin_inset space ~
18092 \end_inset
18093
18094 Break
18095 \family default
18096 .
18097  Insert into that inset the amount of space like e.
18098 \begin_inset space \thinspace{}
18099 \end_inset
18100
18101 g.
18102 \begin_inset space \space{}
18103 \end_inset
18104
18105
18106 \begin_inset Quotes eld
18107 \end_inset
18108
18109 5cm
18110 \begin_inset Quotes erd
18111 \end_inset
18112
18113 .
18114 \begin_inset Newline newline
18115 \end_inset
18116
18117 In this example the space is set to 7
18118 \begin_inset space ~
18119 \end_inset
18120
18121 text lines by using 
18122 \begin_inset Flex Code
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 7
18127 \backslash
18128 baselineskip
18129 \end_layout
18130
18131 \end_inset
18132
18133  (where the command 
18134 \begin_inset Flex Code
18135 status collapsed
18136
18137 \begin_layout Plain Layout
18138
18139 \backslash
18140 baselineskip
18141 \end_layout
18142
18143 \end_inset
18144
18145  needs to be inserted as \SpecialChar TeX
18146  code):
18147 \end_layout
18148
18149 \begin_layout Standard
18150 \begin_inset Flex Multiple Columns
18151 status open
18152
18153 \begin_layout Plain Layout
18154 \begin_inset Argument 3
18155 status open
18156
18157 \begin_layout Plain Layout
18158 7
18159 \begin_inset ERT
18160 status collapsed
18161
18162 \begin_layout Plain Layout
18163
18164
18165 \backslash
18166 baselineskip
18167 \end_layout
18168
18169 \end_inset
18170
18171
18172 \end_layout
18173
18174 \end_inset
18175
18176
18177 \size small
18178 On the evening of the crime,
18179  he returned from the club exactly at ten.
18180  His mother and sister were out spending the evening with a relation.
18181  The servant deposed that she heard him enter the front room on the second floor,
18182  generally used as his sitting-room.
18183  She had lit a fire there,
18184  and as it smoked she had opened the window.
18185  No sound was heard from the room until eleven-twenty,
18186  the hour of the return of Lady Maynooth and her daughter.
18187  Desiring to say good-night,
18188  she attempted to enter her son's room.
18189  The door was locked on the inside,
18190  and no answer could be got to their cries and knocking.
18191  Help was obtained,
18192  and the door forced.
18193  The unfortunate young man was found lying near the table.
18194  His head had been horribly mutilated by an expanding revolver bullet,
18195  but no weapon of any sort was to be found in the room.
18196 \end_layout
18197
18198 \end_inset
18199
18200
18201 \end_layout
18202
18203 \begin_layout Paragraph
18204 Surrounding Space
18205 \end_layout
18206
18207 \begin_layout Standard
18208 The amount of space before and after multiple columns can be changed by changing the length 
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213
18214 \backslash
18215 multicolsep
18216 \end_layout
18217
18218 \end_inset
18219
18220 .
18221  For example the command
18222 \end_layout
18223
18224 \begin_layout LyX-Code
18225
18226 \backslash
18227 setlength{
18228 \backslash
18229 multicolsep}{3cm}
18230 \end_layout
18231
18232 \begin_layout Standard
18233 in \SpecialChar TeX
18234  Code changes its value to 3
18235 \begin_inset space \thinspace{}
18236 \end_inset
18237
18238 cm.
18239  The change must be made before the multiple columns' start.
18240  The predefined value is 13
18241 \begin_inset space \thinspace{}
18242 \end_inset
18243
18244 pt.
18245 \end_layout
18246
18247 \begin_layout Standard
18248 For this example 
18249 \begin_inset Flex Code
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253
18254 \backslash
18255 multicolsep
18256 \end_layout
18257
18258 \end_inset
18259
18260  was set to 2.5
18261 \begin_inset space \thinspace{}
18262 \end_inset
18263
18264 cm:
18265 \end_layout
18266
18267 \begin_layout Standard
18268 \begin_inset ERT
18269 status open
18270
18271 \begin_layout Plain Layout
18272
18273
18274 \backslash
18275 setlength{
18276 \backslash
18277 multicolsep}{2.5cm}
18278 \end_layout
18279
18280 \end_inset
18281
18282
18283 \end_layout
18284
18285 \begin_layout Standard
18286 \begin_inset Flex Multiple Columns
18287 status open
18288
18289 \begin_layout Plain Layout
18290
18291 \size small
18292 All day I turned these facts over in my mind,
18293  endeavouring to hit upon some theory which could reconcile them all,
18294  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
18295  I confess that I made little progress.
18296  In the evening I strolled across the Park,
18297  and found myself about six o'clock at the Oxford Street end of Park Lane.
18298  A group of loafers upon the pavements,
18299  all staring up at a particular window,
18300  directed me to the house which I had come to see.
18301  A tall,
18302  thin man with coloured glasses,
18303  whom I strongly suspected of being a plain-clothes detective,
18304  was pointing out some theory of his own,
18305  while the others crowded round to listen to what he said.
18306  I got as near him as I could,
18307  but his observations seemed to me to be absurd,
18308  so I withdrew again in some disgust.
18309  As I did so I struck against an elderly,
18310  deformed man,
18311  who had been behind me,
18312  and I knocked down several books which he was carrying.
18313 \end_layout
18314
18315 \end_inset
18316
18317
18318 \end_layout
18319
18320 \begin_layout Standard
18321 \begin_inset Note Greyedout
18322 status open
18323
18324 \begin_layout Plain Layout
18325
18326 \series bold
18327 Note:
18328
18329 \series default
18330  The values you set with 
18331 \begin_inset Flex Code
18332 status collapsed
18333
18334 \begin_layout Plain Layout
18335
18336 \backslash
18337 setlength
18338 \end_layout
18339
18340 \end_inset
18341
18342  will be used for all following multiple columns until you change them again.
18343 \end_layout
18344
18345 \end_inset
18346
18347
18348 \end_layout
18349
18350 \begin_layout Standard
18351 \begin_inset ERT
18352 status collapsed
18353
18354 \begin_layout Plain Layout
18355
18356
18357 \backslash
18358 setlength{
18359 \backslash
18360 multicolsep}{13pt}
18361 \end_layout
18362
18363 \end_inset
18364
18365
18366 \begin_inset Note Note
18367 status collapsed
18368
18369 \begin_layout Plain Layout
18370 go back to the default
18371 \end_layout
18372
18373 \end_inset
18374
18375
18376 \end_layout
18377
18378 \begin_layout Paragraph
18379 Column Breaks
18380 \end_layout
18381
18382 \begin_layout Standard
18383 A column break can be forced by inserting the command 
18384 \begin_inset Flex Code
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388
18389 \backslash
18390 columnbreak{}
18391 \end_layout
18392
18393 \end_inset
18394
18395  as \SpecialChar TeX
18396  Code to that position in the text where the column should be broken.
18397  Note that this leads in most cases to whitespace in the text.
18398 \begin_inset Newline newline
18399 \end_inset
18400
18401 Here is an example:
18402 \end_layout
18403
18404 \begin_layout Standard
18405 \begin_inset Flex Multiple Columns
18406 status open
18407
18408 \begin_layout Plain Layout
18409
18410 \size small
18411 \begin_inset Quotes eld
18412 \end_inset
18413
18414 You're surprised to see me,
18415  sir,
18416 \begin_inset Quotes erd
18417 \end_inset
18418
18419  said he,
18420  in a strange,
18421  croaking voice.
18422 \end_layout
18423
18424 \begin_layout Plain Layout
18425
18426 \size small
18427 I acknowledged that I was.
18428 \end_layout
18429
18430 \begin_layout Plain Layout
18431
18432 \size small
18433 \begin_inset Quotes eld
18434 \end_inset
18435
18436 Well,
18437  I've a conscience,
18438  sir,
18439  and when I chanced to see you go into this house,
18440  as I came hobbling after you,
18441  I thought to myself,
18442  I'll just step in and see that kind gentleman,
18443  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18444  and that I am much obliged to him for picking up my books.
18445 \begin_inset Quotes erd
18446 \end_inset
18447
18448
18449 \end_layout
18450
18451 \begin_layout Plain Layout
18452
18453 \size small
18454 \begin_inset Quotes eld
18455 \end_inset
18456
18457 You make too much of a trifle,
18458 \begin_inset Quotes erd
18459 \end_inset
18460
18461  said I.
18462  
18463 \begin_inset Quotes eld
18464 \end_inset
18465
18466 May I ask how you knew who I was?
18467 \begin_inset Quotes erd
18468 \end_inset
18469
18470  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
18471 \begin_inset ERT
18472 status collapsed
18473
18474 \begin_layout Plain Layout
18475
18476
18477 \backslash
18478 columnbreak{}
18479 \end_layout
18480
18481 \end_inset
18482
18483
18484 \end_layout
18485
18486 \begin_layout Plain Layout
18487
18488 \size small
18489 \begin_inset Quotes eld
18490 \end_inset
18491
18492 Well,
18493  sir,
18494  if it isn't too great a liberty,
18495  I am a neighbour of yours,
18496  for you'll find my little bookshop at the corner of Church Street,
18497  and very happy to see you,
18498  I am sure.
18499  Maybe you collect yourself,
18500  sir.
18501  Here's 
18502 \noun on
18503 British
18504 \begin_inset space ~
18505 \end_inset
18506
18507 Birds
18508 \noun default
18509 ,
18510  and 
18511 \noun on
18512 Catullus
18513 \noun default
18514 ,
18515  and 
18516 \noun on
18517 The Holy War
18518 \noun default
18519
18520 \begin_inset space ~
18521 \end_inset
18522
18523 – a bargain,
18524  every one of them.
18525  With five volumes you could just fill that gap on that second shelf.
18526  It looks untidy,
18527  does it not,
18528  sir?
18529 \begin_inset Quotes erd
18530 \end_inset
18531
18532
18533 \end_layout
18534
18535 \end_inset
18536
18537
18538 \end_layout
18539
18540 \begin_layout Paragraph
18541 Column Separation
18542 \end_layout
18543
18544 \begin_layout Standard
18545 The width of the columns is automatically calculated,
18546  but you can modify the space between the columns.
18547  This is done by changing the length 
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552
18553 \backslash
18554 columnsep
18555 \end_layout
18556
18557 \end_inset
18558
18559 .
18560  Its predefined value is 10
18561 \begin_inset space \thinspace{}
18562 \end_inset
18563
18564 pt.
18565  Here is an example where 
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570
18571 \backslash
18572 columnsep
18573 \end_layout
18574
18575 \end_inset
18576
18577  is set to 3
18578 \begin_inset space \thinspace{}
18579 \end_inset
18580
18581 cm:
18582 \end_layout
18583
18584 \begin_layout Standard
18585 \begin_inset ERT
18586 status open
18587
18588 \begin_layout Plain Layout
18589
18590
18591 \backslash
18592 setlength{
18593 \backslash
18594 columnsep}{3cm}
18595 \end_layout
18596
18597 \end_inset
18598
18599
18600 \end_layout
18601
18602 \begin_layout Standard
18603 \begin_inset Flex Multiple Columns
18604 status open
18605
18606 \begin_layout Plain Layout
18607
18608 \size small
18609 My observations of No.
18610 \begin_inset space \space{}
18611 \end_inset
18612
18613 427 Park Lane did little to clear up the problem in which I was interested.
18614  The house was separated from the street by a low wall and railing,
18615  the whole not more than five feet high.
18616  It was perfectly easy,
18617  therefore,
18618  for anyone to get into the garden,
18619  but the window was entirely inaccessible,
18620  since there was no water pipe or anything which could help the most active man to climb it.
18621  More puzzled than ever,
18622  I retraced my steps to Kensington.
18623  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
18624  To my astonishment it was none other than my strange old book collector,
18625  his sharp,
18626  wizened face peering out from a frame of white hair,
18627  and his precious volumes,
18628  a dozen of them at least,
18629  wedged under his right arm.
18630 \end_layout
18631
18632 \end_inset
18633
18634
18635 \end_layout
18636
18637 \begin_layout Standard
18638 \begin_inset ERT
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642
18643
18644 \backslash
18645 setlength{
18646 \backslash
18647 columnsep}{10pt}
18648 \end_layout
18649
18650 \end_inset
18651
18652
18653 \begin_inset Note Note
18654 status collapsed
18655
18656 \begin_layout Plain Layout
18657 go back to the default
18658 \end_layout
18659
18660 \end_inset
18661
18662
18663 \end_layout
18664
18665 \begin_layout Paragraph
18666 Vertical Lines
18667 \end_layout
18668
18669 \begin_layout Standard
18670 Between the columns a rule with a width of the length 
18671 \begin_inset Flex Code
18672 status collapsed
18673
18674 \begin_layout Plain Layout
18675
18676 \backslash
18677 columnseprule
18678 \end_layout
18679
18680 \end_inset
18681
18682  is placed.
18683  If this rule width is set to 0
18684 \begin_inset space \thinspace{}
18685 \end_inset
18686
18687 pt (this is the default),
18688  the rule is suppressed.
18689  In the following example the rule is 2
18690 \begin_inset space \thinspace{}
18691 \end_inset
18692
18693 pt wide:
18694 \end_layout
18695
18696 \begin_layout Standard
18697 \begin_inset ERT
18698 status open
18699
18700 \begin_layout Plain Layout
18701
18702
18703 \backslash
18704 setlength{
18705 \backslash
18706 columnseprule}{2pt}
18707 \end_layout
18708
18709 \end_inset
18710
18711
18712 \end_layout
18713
18714 \begin_layout Standard
18715 \begin_inset Flex Multiple Columns
18716 status open
18717
18718 \begin_layout Plain Layout
18719
18720 \size small
18721 \begin_inset Quotes eld
18722 \end_inset
18723
18724 You're surprised to see me,
18725  sir,
18726 \begin_inset Quotes erd
18727 \end_inset
18728
18729  said he,
18730  in a strange,
18731  croaking voice.
18732 \end_layout
18733
18734 \begin_layout Plain Layout
18735
18736 \size small
18737 I acknowledged that I was.
18738 \end_layout
18739
18740 \begin_layout Plain Layout
18741
18742 \size small
18743 \begin_inset Quotes eld
18744 \end_inset
18745
18746 Well,
18747  I've a conscience,
18748  sir,
18749  and when I chanced to see you go into this house,
18750  as I came hobbling after you,
18751  I thought to myself,
18752  I'll just step in and see that kind gentleman,
18753  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18754  and that I am much obliged to him for picking up my books.
18755 \begin_inset Quotes erd
18756 \end_inset
18757
18758
18759 \end_layout
18760
18761 \begin_layout Plain Layout
18762
18763 \size small
18764 \begin_inset Quotes eld
18765 \end_inset
18766
18767 You make too much of a trifle,
18768 \begin_inset Quotes erd
18769 \end_inset
18770
18771  said I.
18772  
18773 \begin_inset Quotes eld
18774 \end_inset
18775
18776 May I ask how you knew who I was?
18777 \begin_inset Quotes erd
18778 \end_inset
18779
18780
18781 \end_layout
18782
18783 \begin_layout Plain Layout
18784
18785 \size small
18786 \begin_inset Quotes eld
18787 \end_inset
18788
18789 Well,
18790  sir,
18791  if it isn't too great a liberty,
18792  I am a neighbour of yours,
18793  for you'll find my little bookshop at the corner of Church Street,
18794  and very happy to see you,
18795  I am sure.
18796  Maybe you collect yourself,
18797  sir.
18798  Here's 
18799 \noun on
18800 British
18801 \begin_inset space ~
18802 \end_inset
18803
18804 Birds
18805 \noun default
18806 ,
18807  and 
18808 \noun on
18809 Catullus
18810 \noun default
18811 ,
18812  and 
18813 \noun on
18814 The Holy War
18815 \noun default
18816
18817 \begin_inset space ~
18818 \end_inset
18819
18820 – a bargain,
18821  every one of them.
18822  With five volumes you could just fill that gap on that second shelf.
18823  It looks untidy,
18824  does it not,
18825  sir?
18826 \begin_inset Quotes erd
18827 \end_inset
18828
18829
18830 \end_layout
18831
18832 \end_inset
18833
18834
18835 \end_layout
18836
18837 \begin_layout Standard
18838 \begin_inset VSpace defskip
18839 \end_inset
18840
18841
18842 \end_layout
18843
18844 \begin_layout Standard
18845 The rule can be colored by redefining the command 
18846 \begin_inset Flex Code
18847 status collapsed
18848
18849 \begin_layout Plain Layout
18850
18851 \backslash
18852 columnseprulecolor
18853 \end_layout
18854
18855 \end_inset
18856
18857 .
18858  This is done by inserting the command
18859 \end_layout
18860
18861 \begin_layout LyX-Code
18862
18863 \backslash
18864 renewcommand{
18865 \backslash
18866 columnseprulecolor}{
18867 \backslash
18868 color{red}}
18869 \end_layout
18870
18871 \begin_layout Standard
18872 as \SpecialChar TeX
18873  Code before the multicolumn inset.
18874  Replace 
18875 \begin_inset Flex Code
18876 status collapsed
18877
18878 \begin_layout Plain Layout
18879 red
18880 \end_layout
18881
18882 \end_inset
18883
18884  in this command by a color of your choice.
18885  You can use all pre- and self-defined colors.
18886  See the 
18887 \emph on
18888 EmbeddedObjects
18889 \emph default
18890  manual,
18891  section 
18892 \emph on
18893 Colored
18894 \begin_inset space ~
18895 \end_inset
18896
18897 Tables
18898 \emph default
18899  for more information about pre- and self-defined colors.
18900  To go back to the default color insert the command
18901 \end_layout
18902
18903 \begin_layout LyX-Code
18904
18905 \backslash
18906 renewcommand{
18907 \backslash
18908 columnseprulecolor}{
18909 \backslash
18910 normalcolor}
18911 \end_layout
18912
18913 \begin_layout Standard
18914 Here is the example with a cyan rule and 1
18915 \begin_inset space \thinspace{}
18916 \end_inset
18917
18918 cm column separation:
18919 \end_layout
18920
18921 \begin_layout Standard
18922 \begin_inset ERT
18923 status open
18924
18925 \begin_layout Plain Layout
18926
18927
18928 \backslash
18929 setlength{
18930 \backslash
18931 columnsep}{1cm}
18932 \end_layout
18933
18934 \begin_layout Plain Layout
18935
18936
18937 \backslash
18938 renewcommand{
18939 \backslash
18940 columnseprulecolor}{
18941 \backslash
18942 color{cyan}}
18943 \end_layout
18944
18945 \end_inset
18946
18947
18948 \end_layout
18949
18950 \begin_layout Standard
18951 \begin_inset Flex Multiple Columns
18952 status open
18953
18954 \begin_layout Plain Layout
18955
18956 \size small
18957 \begin_inset Quotes eld
18958 \end_inset
18959
18960 You're surprised to see me,
18961  sir,
18962 \begin_inset Quotes erd
18963 \end_inset
18964
18965  said he,
18966  in a strange,
18967  croaking voice.
18968 \end_layout
18969
18970 \begin_layout Plain Layout
18971
18972 \size small
18973 I acknowledged that I was.
18974 \end_layout
18975
18976 \begin_layout Plain Layout
18977
18978 \size small
18979 \begin_inset Quotes eld
18980 \end_inset
18981
18982 Well,
18983  I've a conscience,
18984  sir,
18985  and when I chanced to see you go into this house,
18986  as I came hobbling after you,
18987  I thought to myself,
18988  I'll just step in and see that kind gentleman,
18989  and tell him that if I was a bit gruff in my manner there was not any harm meant,
18990  and that I am much obliged to him for picking up my books.
18991 \begin_inset Quotes erd
18992 \end_inset
18993
18994
18995 \end_layout
18996
18997 \begin_layout Plain Layout
18998
18999 \size small
19000 \begin_inset Quotes eld
19001 \end_inset
19002
19003 You make too much of a trifle,
19004 \begin_inset Quotes erd
19005 \end_inset
19006
19007  said I.
19008  
19009 \begin_inset Quotes eld
19010 \end_inset
19011
19012 May I ask how you knew who I was?
19013 \begin_inset Quotes erd
19014 \end_inset
19015
19016
19017 \end_layout
19018
19019 \begin_layout Plain Layout
19020
19021 \size small
19022 \begin_inset Quotes eld
19023 \end_inset
19024
19025 Well,
19026  sir,
19027  if it isn't too great a liberty,
19028  I am a neighbour of yours,
19029  for you'll find my little bookshop at the corner of Church Street,
19030  and very happy to see you,
19031  I am sure.
19032  Maybe you collect yourself,
19033  sir.
19034  Here's 
19035 \noun on
19036 British
19037 \begin_inset space ~
19038 \end_inset
19039
19040 Birds
19041 \noun default
19042 ,
19043  and 
19044 \noun on
19045 Catullus
19046 \noun default
19047 ,
19048  and 
19049 \noun on
19050 The Holy War
19051 \noun default
19052
19053 \begin_inset space ~
19054 \end_inset
19055
19056 – a bargain,
19057  every one of them.
19058  With five volumes you could just fill that gap on that second shelf.
19059  It looks untidy,
19060  does it not,
19061  sir?
19062 \begin_inset Quotes erd
19063 \end_inset
19064
19065
19066 \end_layout
19067
19068 \end_inset
19069
19070
19071 \end_layout
19072
19073 \begin_layout Standard
19074 \begin_inset ERT
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078
19079
19080 \backslash
19081 setlength{
19082 \backslash
19083 columnseprule}{0pt}
19084 \end_layout
19085
19086 \begin_layout Plain Layout
19087
19088
19089 \backslash
19090 renewcommand{
19091 \backslash
19092 columnseprulecolor}{
19093 \backslash
19094 normalcolor}
19095 \end_layout
19096
19097 \end_inset
19098
19099
19100 \begin_inset Note Note
19101 status collapsed
19102
19103 \begin_layout Plain Layout
19104 go back to the default
19105 \end_layout
19106
19107 \end_inset
19108
19109
19110 \end_layout
19111
19112 \begin_layout Section
19113 Paragraph Styles
19114 \end_layout
19115
19116 \begin_layout Subsection
19117 Custom Paragraph Shapes
19118 \end_layout
19119
19120 \begin_layout Standard
19121 \noindent
19122 \SpecialChar LaTeX
19123  as well as any other text processor uses by default rectangular paragraphs.
19124  For special cases like for example posters,
19125  invitation cards or poems you can modify the paragraph shape to one of your choice.
19126  This module uses the 
19127 \family sans
19128 shapepar
19129 \family default
19130  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
19131 \end_layout
19132
19133 \begin_layout Subsubsection
19134 Predefined shapes
19135 \end_layout
19136
19137 \begin_layout Standard
19138
19139 \family sans
19140 The shapepar
19141 \family default
19142  package provides the following shapes:
19143 \end_layout
19144
19145 \begin_layout Standard
19146 \begin_inset Tabular
19147 <lyxtabular version="3" rows="13" columns="3">
19148 <features booktabs="true" islongtable="true" longtabularalignment="center">
19149 <column alignment="left" valignment="middle" width="16col%">
19150 <column alignment="left" valignment="middle" width="40col%">
19151 <column alignment="left" valignment="middle" width="35col%">
19152 <row endhead="true">
19153 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19154 \begin_inset Text
19155
19156 \begin_layout Plain Layout
19157
19158 \series bold
19159 \size small
19160 Name
19161 \end_layout
19162
19163 \end_inset
19164 </cell>
19165 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19166 \begin_inset Text
19167
19168 \begin_layout Plain Layout
19169
19170 \series bold
19171 \size small
19172 Description
19173 \end_layout
19174
19175 \end_inset
19176 </cell>
19177 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19178 \begin_inset Text
19179
19180 \begin_layout Plain Layout
19181
19182 \series bold
19183 \size small
19184 Annotation
19185 \end_layout
19186
19187 \end_inset
19188 </cell>
19189 </row>
19190 <row interlinespace="default">
19191 <cell alignment="left" valignment="top" usebox="none">
19192 \begin_inset Text
19193
19194 \begin_layout Plain Layout
19195
19196 \size small
19197 CDlabel
19198 \end_layout
19199
19200 \end_inset
19201 </cell>
19202 <cell alignment="left" valignment="top" usebox="none">
19203 \begin_inset Text
19204
19205 \begin_layout Plain Layout
19206
19207 \size small
19208 Circle with circular hole (in the size of a CD/DVD)
19209 \end_layout
19210
19211 \end_inset
19212 </cell>
19213 <cell alignment="left" valignment="top" usebox="none">
19214 \begin_inset Text
19215
19216 \begin_layout Plain Layout
19217
19218 \size small
19219 Cannot be scaled,
19220  take care there is not too much text
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 Circle
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 Circle
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 Fragile,
19256  calculation might fail
19257 \end_layout
19258
19259 \end_inset
19260 </cell>
19261 </row>
19262 <row interlinespace="default">
19263 <cell alignment="left" valignment="top" usebox="none">
19264 \begin_inset Text
19265
19266 \begin_layout Plain Layout
19267
19268 \size small
19269 Diamond
19270 \end_layout
19271
19272 \end_inset
19273 </cell>
19274 <cell alignment="left" valignment="top" usebox="none">
19275 \begin_inset Text
19276
19277 \begin_layout Plain Layout
19278
19279 \size small
19280 Rhomboid (symbolizing a 
19281 \begin_inset Quotes eld
19282 \end_inset
19283
19284 diamond
19285 \begin_inset Quotes erd
19286 \end_inset
19287
19288 )
19289 \end_layout
19290
19291 \end_inset
19292 </cell>
19293 <cell alignment="left" valignment="top" usebox="none">
19294 \begin_inset Text
19295
19296 \begin_layout Plain Layout
19297
19298 \size small
19299 -
19300 \end_layout
19301
19302 \end_inset
19303 </cell>
19304 </row>
19305 <row interlinespace="default">
19306 <cell alignment="left" valignment="top" usebox="none">
19307 \begin_inset Text
19308
19309 \begin_layout Plain Layout
19310
19311 \size small
19312 Heart
19313 \end_layout
19314
19315 \end_inset
19316 </cell>
19317 <cell alignment="left" valignment="top" usebox="none">
19318 \begin_inset Text
19319
19320 \begin_layout Plain Layout
19321
19322 \size small
19323 Heart-like shape
19324 \end_layout
19325
19326 \end_inset
19327 </cell>
19328 <cell alignment="left" valignment="top" usebox="none">
19329 \begin_inset Text
19330
19331 \begin_layout Plain Layout
19332
19333 \size small
19334 -
19335 \end_layout
19336
19337 \end_inset
19338 </cell>
19339 </row>
19340 <row interlinespace="default">
19341 <cell alignment="left" valignment="top" usebox="none">
19342 \begin_inset Text
19343
19344 \begin_layout Plain Layout
19345
19346 \size small
19347 Hexagon
19348 \end_layout
19349
19350 \end_inset
19351 </cell>
19352 <cell alignment="left" valignment="top" usebox="none">
19353 \begin_inset Text
19354
19355 \begin_layout Plain Layout
19356
19357 \size small
19358 Hexagon
19359 \end_layout
19360
19361 \end_inset
19362 </cell>
19363 <cell alignment="left" valignment="top" usebox="none">
19364 \begin_inset Text
19365
19366 \begin_layout Plain Layout
19367
19368 \size small
19369 -
19370 \end_layout
19371
19372 \end_inset
19373 </cell>
19374 </row>
19375 <row interlinespace="default">
19376 <cell alignment="left" valignment="top" usebox="none">
19377 \begin_inset Text
19378
19379 \begin_layout Plain Layout
19380
19381 \size small
19382 Nut
19383 \end_layout
19384
19385 \end_inset
19386 </cell>
19387 <cell alignment="left" valignment="top" usebox="none">
19388 \begin_inset Text
19389
19390 \begin_layout Plain Layout
19391
19392 \size small
19393 Nut for bolt (hexagon with circular hole)
19394 \end_layout
19395
19396 \end_inset
19397 </cell>
19398 <cell alignment="left" valignment="top" usebox="none">
19399 \begin_inset Text
19400
19401 \begin_layout Plain Layout
19402
19403 \size small
19404 -
19405 \end_layout
19406
19407 \end_inset
19408 </cell>
19409 </row>
19410 <row interlinespace="default">
19411 <cell alignment="left" valignment="top" usebox="none">
19412 \begin_inset Text
19413
19414 \begin_layout Plain Layout
19415
19416 \size small
19417 Square
19418 \end_layout
19419
19420 \end_inset
19421 </cell>
19422 <cell alignment="left" valignment="top" usebox="none">
19423 \begin_inset Text
19424
19425 \begin_layout Plain Layout
19426
19427 \size small
19428 Square
19429 \end_layout
19430
19431 \end_inset
19432 </cell>
19433 <cell alignment="left" valignment="top" usebox="none">
19434 \begin_inset Text
19435
19436 \begin_layout Plain Layout
19437
19438 \size small
19439 -
19440 \end_layout
19441
19442 \end_inset
19443 </cell>
19444 </row>
19445 <row interlinespace="default">
19446 <cell alignment="left" valignment="top" usebox="none">
19447 \begin_inset Text
19448
19449 \begin_layout Plain Layout
19450
19451 \size small
19452 Star
19453 \end_layout
19454
19455 \end_inset
19456 </cell>
19457 <cell alignment="left" valignment="top" usebox="none">
19458 \begin_inset Text
19459
19460 \begin_layout Plain Layout
19461
19462 \size small
19463 Five-point star
19464 \end_layout
19465
19466 \end_inset
19467 </cell>
19468 <cell alignment="left" valignment="top" usebox="none">
19469 \begin_inset Text
19470
19471 \begin_layout Plain Layout
19472
19473 \size small
19474 -
19475 \end_layout
19476
19477 \end_inset
19478 </cell>
19479 </row>
19480 <row interlinespace="default">
19481 <cell alignment="left" valignment="top" usebox="none">
19482 \begin_inset Text
19483
19484 \begin_layout Plain Layout
19485
19486 \size small
19487 Candle
19488 \end_layout
19489
19490 \end_inset
19491 </cell>
19492 <cell alignment="left" valignment="top" usebox="none">
19493 \begin_inset Text
19494
19495 \begin_layout Plain Layout
19496
19497 \size small
19498 Burning candle
19499 \end_layout
19500
19501 \end_inset
19502 </cell>
19503 <cell alignment="left" valignment="top" usebox="none">
19504 \begin_inset Text
19505
19506 \begin_layout Plain Layout
19507
19508 \size small
19509 -
19510 \end_layout
19511
19512 \end_inset
19513 </cell>
19514 </row>
19515 <row interlinespace="default">
19516 <cell alignment="left" valignment="top" usebox="none">
19517 \begin_inset Text
19518
19519 \begin_layout Plain Layout
19520
19521 \size small
19522 Drop down/up
19523 \end_layout
19524
19525 \end_inset
19526 </cell>
19527 <cell alignment="left" valignment="top" usebox="none">
19528 \begin_inset Text
19529
19530 \begin_layout Plain Layout
19531
19532 \size small
19533 Normal/reversed rain drop
19534 \end_layout
19535
19536 \end_inset
19537 </cell>
19538 <cell alignment="left" valignment="top" usebox="none">
19539 \begin_inset Text
19540
19541 \begin_layout Plain Layout
19542
19543 \size small
19544 Fragile,
19545  calculation might fail
19546 \end_layout
19547
19548 \end_inset
19549 </cell>
19550 </row>
19551 <row interlinespace="default">
19552 <cell alignment="left" valignment="top" usebox="none">
19553 \begin_inset Text
19554
19555 \begin_layout Plain Layout
19556
19557 \size small
19558 \SpecialChar TeX
19559
19560 \end_layout
19561
19562 \end_inset
19563 </cell>
19564 <cell alignment="left" valignment="top" usebox="none">
19565 \begin_inset Text
19566
19567 \begin_layout Plain Layout
19568
19569 \size small
19570 The \SpecialChar TeX
19571  logo
19572 \end_layout
19573
19574 \end_inset
19575 </cell>
19576 <cell alignment="left" valignment="top" usebox="none">
19577 \begin_inset Text
19578
19579 \begin_layout Plain Layout
19580
19581 \size small
19582 -
19583 \end_layout
19584
19585 \end_inset
19586 </cell>
19587 </row>
19588 <row interlinespace="default">
19589 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19590 \begin_inset Text
19591
19592 \begin_layout Plain Layout
19593
19594 \size small
19595 Triangle up/down/
19596 \begin_inset Newline newline
19597 \end_inset
19598
19599 left/right
19600 \end_layout
19601
19602 \end_inset
19603 </cell>
19604 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19605 \begin_inset Text
19606
19607 \begin_layout Plain Layout
19608
19609 \size small
19610 Triangles in different orientations
19611 \end_layout
19612
19613 \end_inset
19614 </cell>
19615 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19616 \begin_inset Text
19617
19618 \begin_layout Plain Layout
19619
19620 \size small
19621 -
19622 \end_layout
19623
19624 \end_inset
19625 </cell>
19626 </row>
19627 </lyxtabular>
19628
19629 \end_inset
19630
19631
19632 \end_layout
19633
19634 \begin_layout Standard
19635 To use a shape for your paragraph,
19636  simply select it in \SpecialChar LyX
19637 's pull-down box for environments in the toolbar.
19638 \end_layout
19639
19640 \begin_layout Standard
19641 \begin_inset Newpage newpage
19642 \end_inset
19643
19644
19645 \end_layout
19646
19647 \begin_layout Standard
19648 Here is an example paragraph in the shape of a nut:
19649 \end_layout
19650
19651 \begin_layout Standard
19652 \begin_inset VSpace bigskip
19653 \end_inset
19654
19655
19656 \end_layout
19657
19658 \begin_layout Nut
19659
19660 \lang latin
19661 Lorem ipsum dolor sit amet,
19662  consetetur sadipscing elitr,
19663  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19664  sed diam voluptua.
19665  At vero eos et accusam et justo duo dolores et ea rebum.
19666  Stet clita kasd gubergren,
19667  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19668  Lorem ipsum dolor sit amet,
19669  consetetur sadipscing elitr,
19670  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19671  sed diam voluptua.
19672 \end_layout
19673
19674 \begin_layout Standard
19675 \begin_inset VSpace bigskip
19676 \end_inset
19677
19678
19679 \end_layout
19680
19681 \begin_layout Standard
19682 \begin_inset Note Greyedout
19683 status open
19684
19685 \begin_layout Plain Layout
19686
19687 \series bold
19688 Note
19689 \series default
19690 :
19691  
19692 \family sans
19693 shapepar
19694 \family default
19695  paragraphs cannot run over a page break.
19696 \end_layout
19697
19698 \end_inset
19699
19700
19701 \end_layout
19702
19703 \begin_layout Standard
19704 \begin_inset VSpace bigskip
19705 \end_inset
19706
19707
19708 \end_layout
19709
19710 \begin_layout Standard
19711 The package 
19712 \begin_inset Flex Code
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 shapepar
19717 \end_layout
19718
19719 \end_inset
19720
19721  takes care that the shape will always be preserved,
19722  no matter how much text is in the paragraph.
19723  Therefore the paragraph size changes with the amount of contained text.
19724  This can lead to paragraph sizes exceeding the page margins.
19725  To demonstrate the size scaling,
19726  here is the same example paragraph but with twice as much text:
19727 \end_layout
19728
19729 \begin_layout Standard
19730 \begin_inset Newpage newpage
19731 \end_inset
19732
19733
19734 \end_layout
19735
19736 \begin_layout Nut
19737
19738 \lang latin
19739 Lorem ipsum dolor sit amet,
19740  consetetur sadipscing elitr,
19741  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19742  sed diam voluptua.
19743  At vero eos et accusam et justo duo dolores et ea rebum.
19744  Stet clita kasd gubergren,
19745  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19746  Lorem ipsum dolor sit amet,
19747  consetetur sadipscing elitr,
19748  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19749  sed diam voluptua.
19750  Lorem ipsum dolor sit amet,
19751  consetetur sadipscing elitr,
19752  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19753  sed diam voluptua.
19754  At vero eos et accusam et justo duo dolores et ea rebum.
19755  Stet clita kasd gubergren,
19756  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19757  Lorem ipsum dolor sit amet,
19758  consetetur sadipscing elitr,
19759  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19760  sed diam voluptua.
19761 \end_layout
19762
19763 \begin_layout Standard
19764 \begin_inset VSpace bigskip
19765 \end_inset
19766
19767
19768 \end_layout
19769
19770 \begin_layout Standard
19771 An exception is the shape 
19772 \family sans
19773 CDlabel
19774 \family default
19775 .
19776  It cannot be scaled because it must fit the size of a CD/DVD.
19777  Therefore the amount of text that fits into the shape is limited.
19778 \end_layout
19779
19780 \begin_layout Standard
19781 The 
19782 \family sans
19783 drop
19784 \family default
19785  shapes and the 
19786 \family sans
19787 circle
19788 \family default
19789  shape are fragile,
19790  meaning that the calculation of their size can fail,
19791  depending on the amount of text.
19792  You will then get the \SpecialChar LaTeX
19793  error 
19794 \begin_inset Quotes eld
19795 \end_inset
19796
19797 Arithmetic overflow
19798 \begin_inset Quotes erd
19799 \end_inset
19800
19801 .
19802  In this case one can try to remove or add some text;
19803  if nothing works one has to use another shape.
19804 \end_layout
19805
19806 \begin_layout Standard
19807 For shapes with tips you will maybe see that \SpecialChar LaTeX
19808 's hyphenation routine fails for text in the tips.
19809  Therefore it is often necessary to add hyphenation points 
19810 \family sans
19811 (
19812 \begin_inset Info
19813 type  "shortcut"
19814 arg   "specialchar-insert hyphenation"
19815 \end_inset
19816
19817
19818 \family default
19819 ) to the corresponding text parts.
19820 \end_layout
19821
19822 \begin_layout Standard
19823 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
19824  You can therefore not use the paragraph dialog to align such paragraphs.
19825  A solution is to put the paragraph into a minipage or parbox and align the box.
19826  The problem is hereby to find the right width for the box.
19827  Because if it is too wide and you center the box,
19828  the paragraph is not centered too because it sticks at the left side of the box.
19829  So you might have to play a bit with the width until it fits.
19830  Here are two heart-shaped paragraphs,
19831  the first one is not aligned,
19832  the second one is right-aligned:
19833 \end_layout
19834
19835 \begin_layout Standard
19836 \begin_inset Newpage newpage
19837 \end_inset
19838
19839
19840 \end_layout
19841
19842 \begin_layout Heart
19843 \noindent
19844
19845 \lang latin
19846 Lo\SpecialChar softhyphen
19847 rem ipsum dolor sit amet,
19848  consetetur sadipscing elitr,
19849  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19850  sed diam voluptua.
19851  At vero eos et accusam et justo duo dolores et ea rebum.
19852  Stet clita kasd gubergren,
19853  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19854 \end_layout
19855
19856 \begin_layout Standard
19857 \begin_inset VSpace bigskip
19858 \end_inset
19859
19860
19861 \end_layout
19862
19863 \begin_layout Standard
19864 \noindent
19865 \align right
19866 \begin_inset Box Frameless
19867 position "t"
19868 hor_pos "c"
19869 has_inner_box 1
19870 inner_pos "t"
19871 use_parbox 1
19872 use_makebox 0
19873 width "42col%"
19874 special "none"
19875 height "1in"
19876 height_special "totalheight"
19877 thickness "0.4pt"
19878 separation "3pt"
19879 shadowsize "4pt"
19880 framecolor "black"
19881 backgroundcolor "none"
19882 status open
19883
19884 \begin_layout Heart
19885 \noindent
19886
19887 \lang latin
19888 Lo\SpecialChar softhyphen
19889 rem ipsum dolor sit amet,
19890  consetetur sadipscing elitr,
19891  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
19892  sed diam voluptua.
19893  At vero eos et accusam et justo duo dolores et ea rebum.
19894  Stet clita kasd gubergren,
19895  no sea takimata sanctus est Lorem ipsum dolor sit amet.
19896 \end_layout
19897
19898 \end_inset
19899
19900
19901 \end_layout
19902
19903 \begin_layout Subsubsection
19904 Custom shapes
19905 \end_layout
19906
19907 \begin_layout Standard
19908 You can define any shape you want.
19909  Doing this manually is a lot of work because every coordinate must be specified.
19910  But there is a way to let the computer calculate the coordinates:
19911 \end_layout
19912
19913 \begin_layout Enumerate
19914 Install the program 
19915 \begin_inset CommandInset href
19916 LatexCommand href
19917 name "Jpgfdraw"
19918 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
19919 literal "false"
19920
19921 \end_inset
19922
19923 .
19924 \end_layout
19925
19926 \begin_layout Enumerate
19927 In 
19928 \family sans
19929 Jpgfdraw
19930 \family default
19931  go to the menu 
19932 \family sans
19933 TeX/LaTeX\SpecialChar menuseparator
19934 Settings\SpecialChar menuseparator
19935 Set Normal Size
19936 \family default
19937  and select the font size you are using in your document.
19938  For example this document uses the size 12
19939 \begin_inset space \thinspace{}
19940 \end_inset
19941
19942 pt.
19943 \end_layout
19944
19945 \begin_layout Enumerate
19946 Draw a shape.
19947 \end_layout
19948
19949 \begin_layout Enumerate
19950 Use the menu 
19951 \family sans
19952 TeX/LaTeX\SpecialChar menuseparator
19953 Shapepar
19954 \family default
19955  to export the shape to coordinates.
19956  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
19957 \begin_inset Foot
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 For more information see 
19962 \begin_inset CommandInset href
19963 LatexCommand href
19964 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
19965 literal "false"
19966
19967 \end_inset
19968
19969
19970 \end_layout
19971
19972 \end_inset
19973
19974
19975 \end_layout
19976
19977 \begin_layout Standard
19978 The coordinates are written into a \SpecialChar TeX
19979  file.
19980  To use it for your \SpecialChar LyX
19981  document
19982 \end_layout
19983
19984 \begin_layout Enumerate
19985 Place the cursor before the first character of your paragraph (or into a new empty one).
19986 \end_layout
19987
19988 \begin_layout Enumerate
19989 Open in \SpecialChar LyX
19990  the menu 
19991 \family sans
19992 Insert\SpecialChar menuseparator
19993 File\SpecialChar menuseparator
19994 Child
19995 \begin_inset space ~
19996 \end_inset
19997
19998 Document
19999 \family default
20000 ,
20001  select the file and use 
20002 \family sans
20003 Input
20004 \family default
20005  as 
20006 \family sans
20007 Include Type.
20008 \end_layout
20009
20010 \begin_layout Standard
20011 \begin_inset VSpace defskip
20012 \end_inset
20013
20014
20015 \end_layout
20016
20017 \begin_layout Standard
20018 \begin_inset Note Greyedout
20019 status open
20020
20021 \begin_layout Plain Layout
20022
20023 \series bold
20024 Note
20025 \series default
20026 :
20027  The changed shape only applies to the current paragraph;
20028  everything is reset to normal for the next paragraph.
20029  Therefore the shape definition file must be input into every paragraph with the desired shape.
20030 \end_layout
20031
20032 \end_inset
20033
20034
20035 \end_layout
20036
20037 \begin_layout Standard
20038 \begin_inset VSpace bigskip
20039 \end_inset
20040
20041
20042 \end_layout
20043
20044 \begin_layout Standard
20045 Here is an example:
20046 \end_layout
20047
20048 \begin_layout Standard
20049 \begin_inset VSpace bigskip
20050 \end_inset
20051
20052
20053 \end_layout
20054
20055 \begin_layout Standard
20056 \begin_inset CommandInset include
20057 LatexCommand input
20058 filename "SpecialParagraphShape.tex"
20059 literal "true"
20060
20061 \end_inset
20062
20063
20064 \lang latin
20065 Lorem ipsum dolor sit amet,
20066  consetetur sadipscing elitr,
20067  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20068  sed diam voluptua.
20069  At vero eos et accusam et justo duo dolores et ea rebum.
20070  Stet clita kasd gubergren,
20071  no sea takimata sanctus est Lorem ipsum dolor sit amet.
20072  Lorem ipsum dolor sit amet,
20073  consetetur sadipscing elitr,
20074  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
20075  sed diam voluptua.
20076 \end_layout
20077
20078 \begin_layout Standard
20079 \begin_inset VSpace bigskip
20080 \end_inset
20081
20082
20083 \end_layout
20084
20085 \begin_layout Standard
20086
20087 \series bold
20088 A tip:
20089
20090 \series default
20091  to draw complexer shapes in 
20092 \family sans
20093 Jpgfdraw
20094 \family default
20095  you can draw the shape in a program of your choice and import the resulting image to 
20096 \family sans
20097 Jpgfdraw
20098 \family default
20099 .
20100  Then you only need to draw a line or spline along the outline of the image.
20101 \end_layout
20102
20103 \begin_layout Standard
20104 The module 
20105 \family sans
20106 Custom paragraph shapes
20107 \family default
20108  also provides the two commands 
20109 \family sans
20110 shapepar
20111 \family default
20112  and 
20113 \family sans
20114 Shapepar
20115 \family default
20116  which can be used to define custom shapes coordinate by coordinate.
20117 \begin_inset Foot
20118 status collapsed
20119
20120 \begin_layout Plain Layout
20121 These commands are internally used for all shapes described here.
20122 \end_layout
20123
20124 \end_inset
20125
20126  For information how these styles are used and about further customization possibilities,
20127  have a look at the 
20128 \begin_inset CommandInset href
20129 LatexCommand href
20130 name "documentation"
20131 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
20132 literal "false"
20133
20134 \end_inset
20135
20136  of the package 
20137 \begin_inset Flex Code
20138 status collapsed
20139
20140 \begin_layout Plain Layout
20141 shapepar
20142 \end_layout
20143
20144 \end_inset
20145
20146 .
20147 \end_layout
20148
20149 \begin_layout Subsection
20150 Hanging Paragraphs
20151 \end_layout
20152
20153 \begin_layout Hanging
20154 This module adds the 
20155 \family sans
20156 Hanging
20157 \family default
20158  paragraph style,
20159  that is,
20160  one where all but the first line of the paragraph is indented.
20161  This may not appear in your \SpecialChar LyX
20162  document but will appear in the final output.
20163 \end_layout
20164
20165 \begin_layout Subsection
20166 \begin_inset CommandInset label
20167 LatexCommand label
20168 name "subsec:Initials"
20169
20170 \end_inset
20171
20172 Initials (Drop Caps)
20173 \end_layout
20174
20175 \begin_layout Initial
20176 \begin_inset Argument 2
20177 status open
20178
20179 \begin_layout Plain Layout
20180 T
20181 \end_layout
20182
20183 \end_inset
20184
20185
20186 \begin_inset Argument 3
20187 status open
20188
20189 \begin_layout Plain Layout
20190 his
20191 \end_layout
20192
20193 \end_inset
20194
20195  module adds a drop capitals paragraph style 
20196 \family sans
20197 Initials
20198 \family default
20199  for paragraph environments which you can use wherever you want to have drop capitals.
20200  You then have three more items in the 
20201 \family sans
20202 Insert
20203 \family default
20204  menu:
20205 \end_layout
20206
20207 \begin_layout Itemize
20208
20209 \family sans
20210 Initial
20211 \family default
20212  which creates an inset for the drop capital
20213 \end_layout
20214
20215 \begin_layout Itemize
20216
20217 \family sans
20218 Rest of initial
20219 \family default
20220  which creates an inset for the rest of the word
20221 \end_layout
20222
20223 \begin_layout Itemize
20224
20225 \family sans
20226 Options
20227 \family default
20228  which allow you configure the formatting of the drop capital.
20229 \end_layout
20230
20231 \begin_layout Standard
20232 To customize the appearance of the style,
20233  see 
20234 \family sans
20235 Help\SpecialChar menuseparator
20236 Embedded Objects\SpecialChar menuseparator
20237 Objects Surrounded by Text\SpecialChar menuseparator
20238 Initials
20239 \family default
20240 .
20241 \end_layout
20242
20243 \begin_layout Section
20244 Text Markup
20245 \end_layout
20246
20247 \begin_layout Subsection
20248 Hyphenatable Text Markup (Soul)
20249 \end_layout
20250
20251 \begin_layout Standard
20252 This module defines text styles to highlight,
20253  space-out,
20254  strike-through,
20255  underline and capitalize/small-cap text by means of the 
20256 \family sans
20257 soul
20258 \family default
20259  package.
20260 \end_layout
20261
20262 \begin_layout Standard
20263 As opposed to the markup provided by the Text Properties dialog,
20264  words marked-up with 
20265 \family sans
20266 soul
20267 \family default
20268  are hyphenated.
20269  See the 
20270 \begin_inset CommandInset href
20271 LatexCommand href
20272 name "soul documentation"
20273 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
20274 literal "false"
20275
20276 \end_inset
20277
20278 .
20279 \end_layout
20280
20281 \begin_layout Subsection
20282 Logical Markup
20283 \end_layout
20284
20285 \begin_layout Standard
20286 This module defines some character styles for logical markup:
20287  
20288 \noun on
20289
20290 \begin_inset Flex Noun
20291 status collapsed
20292
20293 \begin_layout Plain Layout
20294
20295 \noun on
20296 noun
20297 \end_layout
20298
20299 \end_inset
20300
20301
20302 \noun default
20303 ,
20304  
20305 \emph on
20306
20307 \begin_inset Flex Emph
20308 status collapsed
20309
20310 \begin_layout Plain Layout
20311
20312 \emph on
20313 emph
20314 \end_layout
20315
20316 \end_inset
20317
20318
20319 \emph default
20320 ,
20321  
20322 \begin_inset Flex Strong
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 strong
20327 \end_layout
20328
20329 \end_inset
20330
20331 ,
20332  and 
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 code
20338 \end_layout
20339
20340 \end_inset
20341
20342  which are accessed via the 
20343 \family sans
20344 \bar under
20345 E
20346 \bar default
20347 dit\SpecialChar menuseparator
20348 Custom
20349 \begin_inset space ~
20350 \end_inset
20351
20352 Text
20353 \begin_inset space ~
20354 \end_inset
20355
20356
20357 \bar under
20358 S
20359 \bar default
20360 tyles
20361 \family default
20362  menu.
20363 \end_layout
20364
20365 \begin_layout Chapter
20366 Bibliography
20367 \end_layout
20368
20369 \begin_layout Standard
20370 The most basic information about how to use Bib\SpecialChar TeX
20371  or 
20372 \family sans
20373 Biblatex
20374 \family default
20375  with \SpecialChar LyX
20376  is contained in the section 
20377 \emph on
20378 Bibliography databases
20379 \emph default
20380  of the 
20381 \emph on
20382 User's Guide
20383 \emph default
20384 .
20385  The following subsections explain special bibliography features supported by \SpecialChar LyX
20386 .
20387 \end_layout
20388
20389 \begin_layout Section
20390 Alternative Citation Styles
20391 \end_layout
20392
20393 \begin_layout Standard
20394 Standard Bib\SpecialChar TeX
20395  uses numbers (e.
20396 \begin_inset space \thinspace{}
20397 \end_inset
20398
20399 g.
20400 \begin_inset space \space{}
20401 \end_inset
20402
20403
20404 \begin_inset Quotes eld
20405 \end_inset
20406
20407 [12]
20408 \begin_inset Quotes erd
20409 \end_inset
20410
20411 ) to refer to a cited work.
20412  However,
20413  in many scientific disciplines,
20414  other citation styles are in use.
20415  The most common one is the author-year style (e.
20416 \begin_inset space \thinspace{}
20417 \end_inset
20418
20419 g.
20420 \begin_inset space \space{}
20421 \end_inset
20422
20423
20424 \begin_inset Quotes eld
20425 \end_inset
20426
20427 Knuth 1984a
20428 \begin_inset Quotes erd
20429 \end_inset
20430
20431 ).
20432  \SpecialChar LyX
20433  supports three packages that provide this style,
20434  
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 biblatex
20440 \end_layout
20441
20442 \end_inset
20443
20444 ,
20445  
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  and 
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 jurabib
20462 \end_layout
20463
20464 \end_inset
20465
20466 .
20467  Each of these packages has their pros and cons,
20468  which cannot be listed in detail.
20469  If you only want to have simple author-year (or author-numerical) style,
20470  or if you want to use one of the countless style files for 
20471 \begin_inset Flex Code
20472 status collapsed
20473
20474 \begin_layout Plain Layout
20475 natbib
20476 \end_layout
20477
20478 \end_inset
20479
20480 ,
20481  then the established 
20482 \begin_inset Flex Code
20483 status collapsed
20484
20485 \begin_layout Plain Layout
20486 natbib
20487 \end_layout
20488
20489 \end_inset
20490
20491  package is probably your choice.
20492  If you look for specific citation styles common in law studies,
20493  you might consider the 
20494 \begin_inset Flex Code
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498 jurabib
20499 \end_layout
20500
20501 \end_inset
20502
20503  package.
20504  If you want to have full control over the formatting or look for advanced features such as ibidem,
20505  footnote citations,
20506  full title citations,
20507  advanced date formats (such as 400 BC) or full localization to other languages than English,
20508  you should definitely consider 
20509 \begin_inset Flex Code
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513 biblatex
20514 \end_layout
20515
20516 \end_inset
20517
20518 ,
20519  which exceeds all other packages in terms of features,
20520  but is also quite heavy and more resource-hungry.
20521 \end_layout
20522
20523 \begin_layout Standard
20524 The handling of these packages in \SpecialChar LyX
20525  is basically the same.
20526  Go to 
20527 \family sans
20528 Document\SpecialChar menuseparator
20529 Settings
20530 \family default
20531  and select under 
20532 \family sans
20533 Bibliography
20534 \family default
20535  the 
20536 \family sans
20537 Style Format
20538 \family default
20539  
20540 \family sans
20541 Basic (BibTeX)
20542 \family default
20543 ,
20544  
20545 \family sans
20546 Biblatex
20547 \family default
20548 ,
20549  
20550 \family sans
20551 Biblatex (Natbib mode)
20552 \family default
20553 ,
20554  
20555 \family sans
20556 Natbib (BibTeX)
20557 \family default
20558  or 
20559 \family sans
20560 Jurabib (BibTeX)
20561 \family default
20562  (see sec.
20563 \begin_inset space ~
20564 \end_inset
20565
20566 6.5.3 in the User's Guide for more information on these choices).
20567  With all these packages,
20568  you will get some extra features in the citation dialog and you can select the style of the reference (
20569 \begin_inset Quotes eld
20570 \end_inset
20571
20572 Knuth 1984
20573 \begin_inset Quotes erd
20574 \end_inset
20575
20576 ,
20577  
20578 \begin_inset Quotes eld
20579 \end_inset
20580
20581 Knuth (1984)
20582 \begin_inset Quotes erd
20583 \end_inset
20584
20585 ,
20586  
20587 \begin_inset Quotes eld
20588 \end_inset
20589
20590 Knuth,
20591  1984
20592 \begin_inset Quotes erd
20593 \end_inset
20594
20595 ,
20596  
20597 \begin_inset Quotes eld
20598 \end_inset
20599
20600 1984
20601 \begin_inset Quotes erd
20602 \end_inset
20603
20604  etc.).
20605  Note that either package needs specifically designed style files.
20606  They all ship their own,
20607  but there are lots of additional style files,
20608  and there is even an interactive style file builder
20609 \begin_inset Foot
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 See 
20614 \begin_inset Flex URL
20615 status open
20616
20617 \begin_layout Plain Layout
20618
20619 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
20620 \end_layout
20621
20622 \end_inset
20623
20624
20625 \end_layout
20626
20627 \end_inset
20628
20629  for 
20630 \begin_inset Flex Code
20631 status collapsed
20632
20633 \begin_layout Plain Layout
20634 natbib
20635 \end_layout
20636
20637 \end_inset
20638
20639 .
20640 \end_layout
20641
20642 \begin_layout Section
20643 Subdivided Bibliographies
20644 \end_layout
20645
20646 \begin_layout Standard
20647 Sometimes you might need to divide your bibliography into several sections.
20648  If you are for instance a historian,
20649  the possibility to separate sources and scientific works is most likely a 
20650 \begin_inset Quotes eld
20651 \end_inset
20652
20653 must have
20654 \begin_inset Quotes erd
20655 \end_inset
20656
20657 .
20658  Unfortunately,
20659  Bib\SpecialChar TeX
20660  itself does not allow you to do this.
20661  But with the help of some \SpecialChar LaTeX
20662  packages,
20663  Bib\SpecialChar TeX
20664  can be extended to fit your needs.
20665 \end_layout
20666
20667 \begin_layout Standard
20668 \SpecialChar LyX
20669  provides native support for one of these packages,
20670  
20671 \family typewriter
20672 bibtopic
20673 \family default
20674 .
20675 \begin_inset Foot
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 Available from 
20680 \begin_inset Flex URL
20681 status open
20682
20683 \begin_layout Plain Layout
20684
20685 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
20686 \end_layout
20687
20688 \end_inset
20689
20690
20691 \end_layout
20692
20693 \end_inset
20694
20695  The advantage of this package (compared to other packages such as 
20696 \family typewriter
20697 multibib
20698 \family default
20699 ) is that you don't need to define new citation commands.
20700  Instead,
20701  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
20702  For example:
20703  If you want to divide your bibliography into the sections 
20704 \begin_inset Quotes eld
20705 \end_inset
20706
20707 Sources
20708 \begin_inset Quotes erd
20709 \end_inset
20710
20711  and 
20712 \begin_inset Quotes eld
20713 \end_inset
20714
20715 Scientific works
20716 \begin_inset Quotes erd
20717 \end_inset
20718
20719 ,
20720  you first need to create two bibliographic databases,
20721  e.
20722 \begin_inset space \thinspace{}
20723 \end_inset
20724
20725 g.
20726 \begin_inset space \space{}
20727 \end_inset
20728
20729
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 sources.bib
20735 \end_layout
20736
20737 \end_inset
20738
20739  and 
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 scientific.bib
20745 \end_layout
20746
20747 \end_inset
20748
20749 .
20750  
20751 \end_layout
20752
20753 \begin_layout Standard
20754 Go to 
20755 \family sans
20756 Document\SpecialChar menuseparator
20757 Settings
20758 \family default
20759  and check under 
20760 \family sans
20761 Bibliography
20762 \family default
20763  the option 
20764 \family sans
20765 Subdivided bibliography
20766 \family default
20767 .
20768  Now you can insert multiple Bib\SpecialChar TeX
20769  bibliographies,
20770  one for each section of your bibliography.
20771  Returning to our example:
20772  Insert the Bib\SpecialChar TeX
20773  bibliography 
20774 \begin_inset Flex Code
20775 status collapsed
20776
20777 \begin_layout Plain Layout
20778 sources.bib
20779 \end_layout
20780
20781 \end_inset
20782
20783  and a second one for the database 
20784 \begin_inset Flex Code
20785 status collapsed
20786
20787 \begin_layout Plain Layout
20788 scientific.bib
20789 \end_layout
20790
20791 \end_inset
20792
20793 .
20794  You are free to use the same or different styles for each section.
20795  Additionally,
20796  you can choose if the bibliography section should contain 
20797 \begin_inset Quotes eld
20798 \end_inset
20799
20800 all cited references
20801 \begin_inset Quotes erd
20802 \end_inset
20803
20804  of the specified database(s) (which is the default),
20805  
20806 \begin_inset Quotes eld
20807 \end_inset
20808
20809 all uncited references
20810 \begin_inset Quotes erd
20811 \end_inset
20812
20813  or even 
20814 \begin_inset Quotes eld
20815 \end_inset
20816
20817 all references
20818 \begin_inset Quotes erd
20819 \end_inset
20820
20821 .
20822  This might be useful if you would like to separate your bibliography into three sections:
20823  
20824 \begin_inset Quotes eld
20825 \end_inset
20826
20827 Cited sources
20828 \begin_inset Quotes erd
20829 \end_inset
20830
20831 ,
20832  
20833 \begin_inset Quotes eld
20834 \end_inset
20835
20836 Uncited sources
20837 \begin_inset Quotes erd
20838 \end_inset
20839
20840 ,
20841  and 
20842 \begin_inset Quotes eld
20843 \end_inset
20844
20845 Scientific works
20846 \begin_inset Quotes erd
20847 \end_inset
20848
20849 .
20850  The titles for the sections can be added as ordinary sections or subsections.
20851  Since 
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 bibtopic
20857 \end_layout
20858
20859 \end_inset
20860
20861  removes the bibliography title,
20862  you have to manually re-add that,
20863  too (as a chapter* or section*,
20864  for instance).
20865 \end_layout
20866
20867 \begin_layout Standard
20868 With 
20869 \family sans
20870 Biblatex
20871 \family default
20872 ,
20873  the procedure is a bit different.
20874  Since 
20875 \family typewriter
20876 bibtopic
20877 \family default
20878  does not work with 
20879 \family sans
20880 Biblatex
20881 \family default
20882 ,
20883  the aforementioned 
20884 \begin_inset Flex Noun
20885 status collapsed
20886
20887 \begin_layout Plain Layout
20888 Subdivided bibliography
20889 \end_layout
20890
20891 \end_inset
20892
20893  option is disabled if you use 
20894 \family sans
20895 Biblatex
20896 \family default
20897 .
20898  However,
20899  
20900 \family sans
20901 Biblatex
20902 \family default
20903  provides its own means to generate subdivided bibliographies.
20904  You can either add keywords to bibliography entries via the 
20905 \begin_inset Flex Code
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909 keywords
20910 \end_layout
20911
20912 \end_inset
20913
20914  entry option and then filter bibliography sections by keyword (by adding 
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 keyword=mykeyword
20920 \end_layout
20921
20922 \end_inset
20923
20924  to the 
20925 \begin_inset Flex Noun
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 Options
20930 \end_layout
20931
20932 \end_inset
20933
20934  field of the dialog that opens if you left-click on the 
20935 \begin_inset Flex Noun
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 Biblatex Generated Bibliography
20940 \end_layout
20941
20942 \end_inset
20943
20944  button),
20945  or you can filter by entry types (such as 
20946 \emph on
20947 book
20948 \emph default
20949  or 
20950 \emph on
20951 article
20952 \emph default
20953 ) by entering e.
20954 \begin_inset space \thinspace{}
20955 \end_inset
20956
20957 g.
20958  
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 type=book
20964 \end_layout
20965
20966 \end_inset
20967
20968  or 
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 nottype=collection
20974 \end_layout
20975
20976 \end_inset
20977
20978  to the mentioned 
20979 \begin_inset Flex Noun
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983 Options
20984 \end_layout
20985
20986 \end_inset
20987
20988  field,
20989  or you can create so-called 
20990 \begin_inset Quotes eld
20991 \end_inset
20992
20993 Bibliography Categories
20994 \begin_inset Quotes erd
20995 \end_inset
20996
20997  to which you can assign individual entries.
20998  Please refer to the Biblatex manual,
20999  section 
21000 \emph on
21001 Subdivided Bibliographies
21002 \emph default
21003 ,
21004  for details.
21005 \end_layout
21006
21007 \begin_layout Section
21008 Multiple Bibliographies
21009 \begin_inset CommandInset label
21010 LatexCommand label
21011 name "subsec:Multiple-Bibliographies"
21012
21013 \end_inset
21014
21015
21016 \end_layout
21017
21018 \begin_layout Standard
21019 Multiple bibliographies,
21020  e.
21021 \begin_inset space \thinspace{}
21022 \end_inset
21023
21024 g.
21025 \begin_inset space \space{}
21026 \end_inset
21027
21028 a bibliography for each part,
21029  chapter,
21030  section,
21031  subsection or child (sub-document) of the document,
21032  are also supported by \SpecialChar LyX
21033 .
21034  In order to enable it,
21035  go to 
21036 \family sans
21037 Document\SpecialChar menuseparator
21038 Settings\SpecialChar menuseparator
21039 Bibliography
21040 \family default
21041  and select the relevant unit (e.
21042 \begin_inset space \thinspace{}
21043 \end_inset
21044
21045 g.,
21046  
21047 \begin_inset Quotes eld
21048 \end_inset
21049
21050 per section
21051 \begin_inset Quotes erd
21052 \end_inset
21053
21054 ) in the 
21055 \begin_inset Flex Noun
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 Multiple Bibliographies
21060 \end_layout
21061
21062 \end_inset
21063
21064  combo box.
21065  Then add a Bib(la)\SpecialChar TeX
21066  bibliography to each unit (e.
21067 \begin_inset space \thinspace{}
21068 \end_inset
21069
21070 g.,
21071  section) of your document.
21072  In the output,
21073  a separate bibliography,
21074  containing only the references done in the current unit is generated.
21075 \end_layout
21076
21077 \begin_layout Standard
21078 If you use Bib\SpecialChar TeX
21079 ,
21080  either the 
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 chapterbib
21086 \end_layout
21087
21088 \end_inset
21089
21090  or the 
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 bibtopic
21096 \end_layout
21097
21098 \end_inset
21099
21100  package is used to create multiple bibliographies.
21101  The former package is used if you select 
21102 \begin_inset Quotes eld
21103 \end_inset
21104
21105 per child document
21106 \begin_inset Quotes erd
21107 \end_inset
21108
21109  and do 
21110 \emph on
21111 not
21112 \emph default
21113  check 
21114 \begin_inset Flex Noun
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 Sectioned Bibliography
21119 \end_layout
21120
21121 \end_inset
21122
21123 .
21124  In all other cases,
21125  
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 bibtopic
21131 \end_layout
21132
21133 \end_inset
21134
21135  is used.
21136 \begin_inset Foot
21137 status collapsed
21138
21139 \begin_layout Plain Layout
21140 An alternative approach,
21141  if you are willing to use some 
21142 \begin_inset Flex Noun
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 \SpecialChar TeX
21147  Code
21148 \end_layout
21149
21150 \end_inset
21151
21152  (see section
21153 \begin_inset space ~
21154 \end_inset
21155
21156
21157 \begin_inset CommandInset ref
21158 LatexCommand ref
21159 reference "sec:Inserting-TeX-Code"
21160 nolink "false"
21161
21162 \end_inset
21163
21164 ),
21165  is to use the 
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 bibunits
21171 \end_layout
21172
21173 \end_inset
21174
21175  package.
21176 \end_layout
21177
21178 \end_inset
21179
21180  If 
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 bibtopic
21186 \end_layout
21187
21188 \end_inset
21189
21190  is used,
21191  \SpecialChar LyX
21192  encloses the specified units in 
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 bibtopic
21198 \end_layout
21199
21200 \end_inset
21201
21202 's 
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207
21208 \backslash
21209 begin{btUnit}
21210 \end_layout
21211
21212 \end_inset
21213
21214  and 
21215 \begin_inset Flex Code
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219
21220 \backslash
21221 end{btUnit}
21222 \end_layout
21223
21224 \end_inset
21225
21226  in order to create the units.
21227  Note that this approach has some limitations.
21228  First,
21229  every citation reference has to be inside some 
21230 \begin_inset Flex Code
21231 status collapsed
21232
21233 \begin_layout Plain Layout
21234 btUnit
21235 \end_layout
21236
21237 \end_inset
21238
21239 .
21240  So citations outside a defined unit (e.
21241 \begin_inset space \thinspace{}
21242 \end_inset
21243
21244 g.,
21245  before the first section if you use 
21246 \begin_inset Quotes eld
21247 \end_inset
21248
21249 by section
21250 \begin_inset Quotes erd
21251 \end_inset
21252
21253 ) will appear as 
21254 \begin_inset Quotes eld
21255 \end_inset
21256
21257 ???
21258 \begin_inset Quotes erd
21259 \end_inset
21260
21261 .
21262  You can also create your own units by entering 
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267
21268 \backslash
21269 begin{btUnit}
21270 \end_layout
21271
21272 \end_inset
21273
21274  and 
21275 \begin_inset Flex Code
21276 status collapsed
21277
21278 \begin_layout Plain Layout
21279
21280 \backslash
21281 end{btUnit}
21282 \end_layout
21283
21284 \end_inset
21285
21286  as \SpecialChar TeX
21287  code (for instance to work around the mentioned limitation).
21288  Note,
21289  though,
21290  that 
21291 \begin_inset Flex Code
21292 status collapsed
21293
21294 \begin_layout Plain Layout
21295 btUnit
21296 \end_layout
21297
21298 \end_inset
21299
21300 s cannot be nested.
21301  A second limitation is that 
21302 \begin_inset Flex Code
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306 bibtopic
21307 \end_layout
21308
21309 \end_inset
21310
21311  always processes all references of a bibliography database,
21312  even if they are not cited.
21313  This can result in odd labels (e.
21314 \begin_inset space \thinspace{}
21315 \end_inset
21316
21317 g.
21318  
21319 \begin_inset Quotes eld
21320 \end_inset
21321
21322 Miller 2014b
21323 \begin_inset Quotes erd
21324 \end_inset
21325
21326  if two works of this author from 2014 are in the database,
21327  even if only one is cited).
21328 \end_layout
21329
21330 \begin_layout Standard
21331 If you use 
21332 \family sans
21333 Biblatex
21334 \family default
21335 ,
21336  the 
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341 refsection
21342 \end_layout
21343
21344 \end_inset
21345
21346  option is used instead.
21347  If you need specific units,
21348  you can start them with the \SpecialChar TeX
21349  code 
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354
21355 \backslash
21356 newrefsection
21357 \end_layout
21358
21359 \end_inset
21360
21361  or 
21362 \begin_inset Flex Code
21363 status collapsed
21364
21365 \begin_layout Plain Layout
21366
21367 \backslash
21368 newrefsegment
21369 \end_layout
21370
21371 \end_inset
21372
21373 ,
21374  respectively.
21375  If you also want to control the end of the unit,
21376  use the environment 
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381
21382 \backslash
21383 begin{refsection}
21384 \end_layout
21385
21386 \end_inset
21387
21388  \SpecialChar ldots
21389  
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394
21395 \backslash
21396 end{refsection}
21397 \end_layout
21398
21399 \end_inset
21400
21401  instead.
21402  Note,
21403  though,
21404  that 
21405 \begin_inset Flex Code
21406 status collapsed
21407
21408 \begin_layout Plain Layout
21409 refsection
21410 \end_layout
21411
21412 \end_inset
21413
21414 s cannot be nested.
21415  In addition to the individual bibliography of the current unit,
21416  
21417 \family sans
21418 Biblatex
21419 \family default
21420  also provides an easy way to output all bibliographies,
21421  subsequently,
21422  at one place (e.
21423 \begin_inset space \thinspace{}
21424 \end_inset
21425
21426 g.,
21427  at the end of the document).
21428  Select 
21429 \begin_inset Quotes eld
21430 \end_inset
21431
21432 all reference units
21433 \begin_inset Quotes erd
21434 \end_inset
21435
21436  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
21437  Please refer to the 
21438 \family sans
21439 Biblatex
21440 \family default
21441  manual for more information on this topic.
21442 \end_layout
21443
21444 \begin_layout Chapter
21445 Bullets
21446 \begin_inset CommandInset label
21447 LatexCommand label
21448 name "chap:bullets"
21449
21450 \end_inset
21451
21452
21453 \end_layout
21454
21455 \begin_layout Standard
21456 by
21457 \noun on
21458  Allan Rae
21459 \end_layout
21460
21461 \begin_layout Section
21462 Introduction
21463 \end_layout
21464
21465 \begin_layout Standard
21466 \SpecialChar LyX
21467  provides 216 bullet shapes that can be accessed from a simple dialog.
21468  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
21469  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
21470 \begin_inset Foot
21471 status collapsed
21472
21473 \begin_layout Plain Layout
21474 Well,
21475  actually you can but you'll have to do it by hand.
21476 \end_layout
21477
21478 \end_inset
21479
21480
21481 \end_layout
21482
21483 \begin_layout Section
21484 How it looks
21485 \end_layout
21486
21487 \begin_layout Standard
21488 Open the dialog by selecting the 
21489 \family sans
21490 Document\SpecialChar menuseparator
21491 Settings
21492 \family default
21493  menu item and then select the 
21494 \begin_inset Flex Noun
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498 Bullets
21499 \end_layout
21500
21501 \end_inset
21502
21503  tab.
21504 \end_layout
21505
21506 \begin_layout Standard
21507 The dialog provides you with a table of bullet shapes.
21508  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
21509  The row of buttons across the top is used to select which bullet depth you are changing.
21510 \end_layout
21511
21512 \begin_layout Standard
21513 If you select 
21514 \family sans
21515 Custom bullet
21516 \family default
21517 ,
21518  a text entry under the table will be activated in which you can enter a bullet shape's \SpecialChar LaTeX
21519  equivalent.
21520  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
21521  preamble.
21522 \end_layout
21523
21524 \begin_layout Standard
21525 The six panels are divided up by the packages they require.
21526  The following table shows the mappings from button name to \SpecialChar LaTeX
21527  package.
21528 \end_layout
21529
21530 \begin_layout Standard
21531 \align center
21532 \begin_inset Tabular
21533 <lyxtabular version="3" rows="7" columns="2">
21534 <features tabularvalignment="middle">
21535 <column alignment="center" valignment="top" width="0pt">
21536 <column alignment="center" valignment="top" width="0pt">
21537 <row>
21538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21539 \begin_inset Text
21540
21541 \begin_layout Plain Layout
21542
21543 \family roman
21544 \series medium
21545 \shape up
21546 \size normal
21547 \emph off
21548 \bar no
21549 \noun off
21550 \color none
21551 Button
21552 \end_layout
21553
21554 \end_inset
21555 </cell>
21556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21557 \begin_inset Text
21558
21559 \begin_layout Plain Layout
21560
21561 \family roman
21562 \series medium
21563 \shape up
21564 \size normal
21565 \emph off
21566 \bar no
21567 \noun off
21568 \color none
21569 Packages Required
21570 \end_layout
21571
21572 \end_inset
21573 </cell>
21574 </row>
21575 <row>
21576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21577 \begin_inset Text
21578
21579 \begin_layout Plain Layout
21580
21581 \family sans
21582 \series medium
21583 \shape up
21584 \size normal
21585 \emph off
21586 \bar no
21587 \noun off
21588 \color none
21589 Standard
21590 \end_layout
21591
21592 \end_inset
21593 </cell>
21594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21595 \begin_inset Text
21596
21597 \begin_layout Plain Layout
21598
21599 \series medium
21600 \shape up
21601 \size normal
21602 \emph off
21603 \bar no
21604 \noun off
21605 \color none
21606 base \SpecialChar LaTeX
21607
21608 \end_layout
21609
21610 \end_inset
21611 </cell>
21612 </row>
21613 <row>
21614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21615 \begin_inset Text
21616
21617 \begin_layout Plain Layout
21618
21619 \family sans
21620 \series medium
21621 \shape up
21622 \size normal
21623 \emph off
21624 \bar no
21625 \noun off
21626 \color none
21627 Maths
21628 \end_layout
21629
21630 \end_inset
21631 </cell>
21632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21633 \begin_inset Text
21634
21635 \begin_layout Plain Layout
21636
21637 \family typewriter
21638 \series medium
21639 \shape up
21640 \size normal
21641 \emph off
21642 \bar no
21643 \noun off
21644 \color none
21645 amssymb.sty
21646 \end_layout
21647
21648 \end_inset
21649 </cell>
21650 </row>
21651 <row>
21652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21653 \begin_inset Text
21654
21655 \begin_layout Plain Layout
21656
21657 \family sans
21658 \series medium
21659 \shape up
21660 \size normal
21661 \emph off
21662 \bar no
21663 \noun off
21664 \color none
21665 Ding1
21666 \end_layout
21667
21668 \end_inset
21669 </cell>
21670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21671 \begin_inset Text
21672
21673 \begin_layout Plain Layout
21674
21675 \family typewriter
21676 \series medium
21677 \shape up
21678 \size normal
21679 \emph off
21680 \bar no
21681 \noun off
21682 \color none
21683 pifont.sty
21684 \end_layout
21685
21686 \end_inset
21687 </cell>
21688 </row>
21689 <row>
21690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21691 \begin_inset Text
21692
21693 \begin_layout Plain Layout
21694
21695 \family sans
21696 \series medium
21697 \shape up
21698 \size normal
21699 \emph off
21700 \bar no
21701 \noun off
21702 \color none
21703 Ding2
21704 \end_layout
21705
21706 \end_inset
21707 </cell>
21708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21709 \begin_inset Text
21710
21711 \begin_layout Plain Layout
21712
21713 \family typewriter
21714 \series medium
21715 \shape up
21716 \size normal
21717 \emph off
21718 \bar no
21719 \noun off
21720 \color none
21721 pifont.sty
21722 \end_layout
21723
21724 \end_inset
21725 </cell>
21726 </row>
21727 <row>
21728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21729 \begin_inset Text
21730
21731 \begin_layout Plain Layout
21732
21733 \family sans
21734 \series medium
21735 \shape up
21736 \size normal
21737 \emph off
21738 \bar no
21739 \noun off
21740 \color none
21741 Ding3
21742 \end_layout
21743
21744 \end_inset
21745 </cell>
21746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21747 \begin_inset Text
21748
21749 \begin_layout Plain Layout
21750
21751 \family typewriter
21752 \series medium
21753 \shape up
21754 \size normal
21755 \emph off
21756 \bar no
21757 \noun off
21758 \color none
21759 pifont.sty
21760 \end_layout
21761
21762 \end_inset
21763 </cell>
21764 </row>
21765 <row>
21766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21767 \begin_inset Text
21768
21769 \begin_layout Plain Layout
21770
21771 \family sans
21772 \series medium
21773 \shape up
21774 \size normal
21775 \emph off
21776 \bar no
21777 \noun off
21778 \color none
21779 Ding4
21780 \end_layout
21781
21782 \end_inset
21783 </cell>
21784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21785 \begin_inset Text
21786
21787 \begin_layout Plain Layout
21788
21789 \family typewriter
21790 \series medium
21791 \shape up
21792 \size normal
21793 \emph off
21794 \bar no
21795 \noun off
21796 \color none
21797 pifont.sty
21798 \end_layout
21799
21800 \end_inset
21801 </cell>
21802 </row>
21803 </lyxtabular>
21804
21805 \end_inset
21806
21807
21808 \end_layout
21809
21810 \begin_layout Standard
21811 \SpecialChar LyX
21812  doesn't stop you using bullets from packages you don't have.
21813  If you get errors from \SpecialChar LaTeX
21814  when you try to view or print the file,
21815  then it is likely you are missing a package.
21816 \begin_inset Foot
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 \SpecialChar LyX
21821  doesn't restrict your use since you may be editing locally and exporting elsewhere.
21822 \end_layout
21823
21824 \end_inset
21825
21826
21827 \end_layout
21828
21829 \begin_layout Section
21830 \begin_inset CommandInset label
21831 LatexCommand label
21832 name "sec:How-to-use"
21833
21834 \end_inset
21835
21836 How to use it
21837 \end_layout
21838
21839 \begin_layout Standard
21840 Select which bullet depth you want to change then select the bullet shape and size.
21841  Any changes will not be visible in \SpecialChar LyX
21842 ,
21843  but are visible when viewing the document.
21844 \end_layout
21845
21846 \begin_layout Standard
21847 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
21848 \begin_inset CommandInset label
21849 LatexCommand label
21850 name "fn:If-you-really"
21851
21852 \end_inset
21853
21854
21855 \end_layout
21856
21857 \begin_layout Standard
21858 If you 
21859 \emph on
21860 really
21861 \emph default
21862  want to have multiple sets of paragraphs with different sets of bullets in each,
21863  then you're going to have to get your hands dirty with \SpecialChar TeX
21864  code.
21865  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
21866  code for a wide range of bullet shapes.
21867  To make your own custom paragraphs you have the following options:
21868 \end_layout
21869
21870 \begin_layout Standard
21871 \begin_inset ERT
21872 status open
21873
21874 \begin_layout Plain Layout
21875
21876
21877 \backslash
21878 let
21879 \backslash
21880 savelabelitemi=
21881 \backslash
21882 labelitemi
21883 \end_layout
21884
21885 \end_inset
21886
21887
21888 \end_layout
21889
21890 \begin_layout Standard
21891 \begin_inset ERT
21892 status open
21893
21894 \begin_layout Plain Layout
21895
21896
21897 \backslash
21898 renewcommand
21899 \backslash
21900 labelitemi[0]{
21901 \backslash
21902 small
21903 \backslash
21904 (
21905 \backslash
21906 sharp
21907 \backslash
21908 )}
21909 \end_layout
21910
21911 \end_inset
21912
21913
21914 \end_layout
21915
21916 \begin_layout Itemize
21917 Use the \SpecialChar LaTeX
21918  command 
21919 \begin_inset Flex Code
21920 status collapsed
21921
21922 \begin_layout Plain Layout
21923
21924 \backslash
21925 renewcommand
21926 \end_layout
21927
21928 \end_inset
21929
21930  to specify a new bullet shape for a given depth.
21931  You'll also need to save the current bullet shape so you can restore it again afterwards.
21932  In this itemized list the following \SpecialChar LaTeX
21933  code was used to change the bullet used for the first depth.
21934 \end_layout
21935
21936 \begin_deeper
21937 \begin_layout LyX-Code
21938
21939 \backslash
21940 let
21941 \backslash
21942 savelabelitemi=
21943 \backslash
21944 labelitemi 
21945 \end_layout
21946
21947 \begin_layout LyX-Code
21948
21949 \backslash
21950 renewcommand
21951 \backslash
21952 labelitemi[0]{
21953 \backslash
21954 small
21955 \backslash
21956 (
21957 \backslash
21958 sharp
21959 \backslash
21960 )}
21961 \end_layout
21962
21963 \end_deeper
21964 \begin_layout Itemize
21965 Note that the itemize depth is specified in Roman numerals as part of the 
21966 \family typewriter
21967
21968 \backslash
21969 labelitem
21970 \family default
21971  command.
21972 \end_layout
21973
21974 \begin_layout Itemize
21975 \begin_inset Argument item:1
21976 status open
21977
21978 \begin_layout Plain Layout
21979 \begin_inset ERT
21980 status open
21981
21982 \begin_layout Plain Layout
21983
21984
21985 \backslash
21986 (
21987 \backslash
21988 star
21989 \backslash
21990 )
21991 \end_layout
21992
21993 \end_inset
21994
21995
21996 \end_layout
21997
21998 \end_inset
21999
22000  Specify each individual entry by starting each item with the bullet shape enclosed in a 
22001 \begin_inset Quotes eld
22002 \end_inset
22003
22004 Custom Item
22005 \begin_inset Quotes erd
22006 \end_inset
22007
22008  inset (available at 
22009 \family sans
22010 Insert\SpecialChar menuseparator
22011 Custom Item
22012 \family default
22013 ) and set as 
22014 \begin_inset Flex Noun
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018 \SpecialChar TeX
22019  Code
22020 \end_layout
22021
22022 \end_inset
22023
22024 .
22025  For example,
22026  this item was started with 
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031
22032 \backslash
22033 (
22034 \backslash
22035 star
22036 \backslash
22037 )
22038 \end_layout
22039
22040 \end_inset
22041
22042 .
22043 \end_layout
22044
22045 \begin_layout Standard
22046 \begin_inset ERT
22047 status open
22048
22049 \begin_layout Plain Layout
22050
22051
22052 \backslash
22053 renewcommand
22054 \backslash
22055 labelitemi[0]{
22056 \backslash
22057 savelabelitemi}
22058 \end_layout
22059
22060 \end_inset
22061
22062
22063 \end_layout
22064
22065 \begin_layout Standard
22066 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
22067  The way used here was:
22068 \end_layout
22069
22070 \begin_layout LyX-Code
22071
22072 \backslash
22073 renewcommand
22074 \backslash
22075 labelitemi[0]{
22076 \backslash
22077 savelabelitemi}
22078 \end_layout
22079
22080 \begin_layout Chapter
22081 Supplemental Tools
22082 \end_layout
22083
22084 \begin_layout Section
22085 Multipart Documents
22086 \end_layout
22087
22088 \begin_layout Subsection
22089 General Operation
22090 \end_layout
22091
22092 \begin_layout Standard
22093 When you are working on a large file with many sections,
22094  it is often convenient to break up the document into several files,
22095  or perhaps you have something where a table may change from time to time,
22096  but the preceding text does not.
22097  In these cases,
22098  you should seriously consider using multipart documents.
22099  For example,
22100  scientific papers often have five major sections:
22101  the introduction,
22102  observations,
22103  results,
22104  discussion,
22105  and conclusion.
22106  Each of these could be its own separate \SpecialChar LyX
22107  file,
22108  with one 
22109 \begin_inset Quotes eld
22110 \end_inset
22111
22112 master
22113 \begin_inset Quotes erd
22114 \end_inset
22115
22116  file which contains the title,
22117  authors,
22118  abstract,
22119  references,
22120  etc.,
22121  plus the five included files.
22122  It is important to note that each of these files is a full \SpecialChar LyX
22123  file which can be formatted and printed on its own,
22124  as well as included in a master file.
22125  Each of these files must have the same document class,
22126  however—
22127 don't attempt to mix book classes with article classes.
22128  You may also include \SpecialChar LaTeX
22129  files;
22130  however,
22131  these files must not have their own preamble (i.
22132 \begin_inset space \thinspace{}
22133 \end_inset
22134
22135 e.
22136 \begin_inset space \space{}
22137 \end_inset
22138
22139 everything up to and including the 
22140 \begin_inset Flex Code
22141 status collapsed
22142
22143 \begin_layout Plain Layout
22144
22145 \backslash
22146 begin{document}
22147 \end_layout
22148
22149 \end_inset
22150
22151  line as well as the 
22152 \begin_inset Flex Code
22153 status collapsed
22154
22155 \begin_layout Plain Layout
22156
22157 \backslash
22158 end{document}
22159 \end_layout
22160
22161 \end_inset
22162
22163  line must be deleted) or else errors will be generated when you try to make a DVI file.
22164 \end_layout
22165
22166 \begin_layout Standard
22167 \SpecialChar LyX
22168  allows you to include files quite easily with 
22169 \family sans
22170 Insert\SpecialChar menuseparator
22171 Child
22172 \begin_inset space ~
22173 \end_inset
22174
22175 Document
22176 \family default
22177 .
22178  When you click on this selection a small box is inserted into the file at the current cursor location.
22179  Clicking on the box raises a dialog which allows you to select the file to be included,
22180  and the method of its inclusion.
22181  
22182 \end_layout
22183
22184 \begin_layout Standard
22185 The file selection box should by now be obvious.
22186  The three inclusion methods are 
22187 \begin_inset Quotes eld
22188 \end_inset
22189
22190 include
22191 \begin_inset Quotes erd
22192 \end_inset
22193
22194 ,
22195  
22196 \begin_inset Quotes eld
22197 \end_inset
22198
22199 input
22200 \begin_inset Quotes erd
22201 \end_inset
22202
22203 ,
22204  and 
22205 \begin_inset Quotes eld
22206 \end_inset
22207
22208 verbatim
22209 \begin_inset Quotes erd
22210 \end_inset
22211
22212 .
22213  The methods 
22214 \begin_inset Quotes eld
22215 \end_inset
22216
22217 include
22218 \begin_inset Quotes erd
22219 \end_inset
22220
22221  and 
22222 \begin_inset Quotes eld
22223 \end_inset
22224
22225 input
22226 \begin_inset Quotes erd
22227 \end_inset
22228
22229  are similar in many ways,
22230  but there are also some notable differences:
22231 \end_layout
22232
22233 \begin_layout Enumerate
22234 Files that are 
22235 \begin_inset Quotes eld
22236 \end_inset
22237
22238 included
22239 \begin_inset Quotes erd
22240 \end_inset
22241
22242  are typeset beginning on a new page,
22243  while files that are 
22244 \begin_inset Quotes eld
22245 \end_inset
22246
22247 inputted
22248 \begin_inset Quotes erd
22249 \end_inset
22250
22251  are typeset starting on the current page.
22252 \end_layout
22253
22254 \begin_layout Enumerate
22255 \begin_inset Quotes eld
22256 \end_inset
22257
22258 Included
22259 \begin_inset Quotes erd
22260 \end_inset
22261
22262  files cannot themselves 
22263 \begin_inset Quotes eld
22264 \end_inset
22265
22266 include
22267 \begin_inset Quotes erd
22268 \end_inset
22269
22270  further files (
22271 \begin_inset Quotes eld
22272 \end_inset
22273
22274 grandchilds
22275 \begin_inset Quotes erd
22276 \end_inset
22277
22278 ).
22279  With 
22280 \begin_inset Quotes eld
22281 \end_inset
22282
22283 input
22284 \begin_inset Quotes erd
22285 \end_inset
22286
22287 ,
22288  on the other hand,
22289  infinite sub-inputting is possible.
22290 \end_layout
22291
22292 \begin_layout Enumerate
22293 \begin_inset Quotes eld
22294 \end_inset
22295
22296 Include
22297 \begin_inset Quotes erd
22298 \end_inset
22299
22300  allow for the output of only selected 
22301 \begin_inset Quotes eld
22302 \end_inset
22303
22304 included
22305 \begin_inset Quotes erd
22306 \end_inset
22307
22308  files,
22309  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
22310 \emph on
22311 Child
22312 \begin_inset space ~
22313 \end_inset
22314
22315 Documents
22316 \emph default
22317  of the 
22318 \emph on
22319 Embedded
22320 \begin_inset space ~
22321 \end_inset
22322
22323 Objects
22324 \emph default
22325  manual for details).
22326 \end_layout
22327
22328 \begin_layout Standard
22329 Hence,
22330  
22331 \begin_inset Quotes eld
22332 \end_inset
22333
22334 include
22335 \begin_inset Quotes erd
22336 \end_inset
22337
22338  is the preferred method for chapters that are outsourced to child documents,
22339  while 
22340 \begin_inset Quotes eld
22341 \end_inset
22342
22343 input
22344 \begin_inset Quotes erd
22345 \end_inset
22346
22347  is more suitable for arbitrary file inheritance.
22348 \end_layout
22349
22350 \begin_layout Standard
22351
22352 \begin_inset Quotes eld
22353 \end_inset
22354
22355 verbatim
22356 \begin_inset Quotes erd
22357 \end_inset
22358
22359  included file allows you to include a file typeset exactly as it appears in the file,
22360  i.
22361 \begin_inset space \thinspace{}
22362 \end_inset
22363
22364 e.
22365 \begin_inset space \space{}
22366 \end_inset
22367
22368 in 
22369 \begin_inset Flex Code
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 verbatim
22374 \end_layout
22375
22376 \end_inset
22377
22378  mode,
22379  with the characters set in a fixed-width typewriter font.
22380  Normally,
22381  spaces in this file are invisible,
22382  though two consecutive spaces are conserved,
22383  unlike \SpecialChar LyX
22384 's normal treatment of spaces.
22385  However,
22386  setting the 
22387 \begin_inset Flex Noun
22388 status collapsed
22389
22390 \begin_layout Plain Layout
22391 Mark
22392 \begin_inset space ~
22393 \end_inset
22394
22395 spaces
22396 \begin_inset space ~
22397 \end_inset
22398
22399 in
22400 \begin_inset space ~
22401 \end_inset
22402
22403 output
22404 \end_layout
22405
22406 \end_inset
22407
22408  checkbox typesets a mark to unambiguously define the presence of a space.
22409  
22410 \end_layout
22411
22412 \begin_layout Standard
22413 Generally,
22414  the master file is converted into a full \SpecialChar LaTeX
22415  file before typesetting,
22416  while the included files are converted to \SpecialChar LaTeX
22417  files that do not have all the preamble information.
22418 \end_layout
22419
22420 \begin_layout Subsection
22421 Cross-References Between Files
22422 \end_layout
22423
22424 \begin_layout Standard
22425 \begin_inset Box Shadowbox
22426 position "t"
22427 hor_pos "c"
22428 has_inner_box 1
22429 inner_pos "t"
22430 use_parbox 0
22431 use_makebox 0
22432 width "100col%"
22433 special "none"
22434 height "1in"
22435 height_special "totalheight"
22436 thickness "0.4pt"
22437 separation "3pt"
22438 shadowsize "4pt"
22439 framecolor "black"
22440 backgroundcolor "none"
22441 status open
22442
22443 \begin_layout Plain Layout
22444 This section is somewhat out of date.
22445  Need to describe default master documents and how children are opened when the master is.
22446  [[FIXME]]
22447 \end_layout
22448
22449 \end_inset
22450
22451
22452 \end_layout
22453
22454 \begin_layout Standard
22455 It is possible to set up cross-references between the different files.
22456  First,
22457  open all the files in question:
22458  let's call them A and B in a two file example,
22459  where B is included in A.
22460  Let's say you insert a label in A,
22461  then want to reference it in B.
22462  Open the cross-reference dialog whilst in document B,
22463  and you can select the 
22464 \begin_inset Quotes eld
22465 \end_inset
22466
22467 buffer
22468 \begin_inset Quotes erd
22469 \end_inset
22470
22471  to use.
22472 \end_layout
22473
22474 \begin_layout Subsection
22475 Bibliography Lists in all Subdocuments
22476 \end_layout
22477
22478 \begin_layout Standard
22479 If you work with child documents,
22480  you might want to have only one main bibliography at the end,
22481  but still be able to have a selected bibliography for the child if you output it on its own.
22482  Here is how to achieve this.
22483 \end_layout
22484
22485 \begin_layout Standard
22486 For the main document,
22487  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
22488  If the bibliography inset is in the master file,
22489  the references will be inherited by all children,
22490  so they are available in the citation dialog within each child.
22491 \end_layout
22492
22493 \begin_layout Standard
22494 For child-specific bibliographies,
22495  insert bibliography insets within the child documents,
22496  at the place where the bibliography should appear when the child is compiled separately.
22497  However,
22498  the trick is to insert them into a branch (
22499 \family sans
22500 Insert\SpecialChar menuseparator
22501 Branch\SpecialChar menuseparator
22502 Insert New Branch...
22503 \family default
22504 ),
22505  e.
22506 \begin_inset space \thinspace{}
22507 \end_inset
22508
22509 g.
22510  called 
22511 \begin_inset Quotes eld
22512 \end_inset
22513
22514 Childonly
22515 \begin_inset Quotes erd
22516 \end_inset
22517
22518 .
22519  Within the children,
22520  activate the branch (
22521 \family sans
22522 Document\SpecialChar menuseparator
22523 Settings...\SpecialChar menuseparator
22524 Branches
22525 \family default
22526 ).
22527  Within the master,
22528  deactivate the branch (
22529 \family sans
22530 Document\SpecialChar menuseparator
22531 Settings...\SpecialChar menuseparator
22532 Branches
22533 \family default
22534 ).
22535  Now the child's bibliography will be ignored by the master,
22536  but considered by the child.
22537 \end_layout
22538
22539 \begin_layout Standard
22540 If you need multiple bibliographies (e.
22541 \begin_inset space \thinspace{}
22542 \end_inset
22543
22544 g.,
22545  one per child in the 
22546 \emph on
22547 main document
22548 \emph default
22549 ),
22550  please refer to sec.
22551 \begin_inset space ~
22552 \end_inset
22553
22554
22555 \begin_inset CommandInset ref
22556 LatexCommand ref
22557 reference "subsec:Multiple-Bibliographies"
22558 nolink "false"
22559
22560 \end_inset
22561
22562 .
22563 \end_layout
22564
22565 \begin_layout Section
22566 \SpecialChar LyX
22567  Archives
22568 \end_layout
22569
22570 \begin_layout Standard
22571 Users sometimes need to be able to 
22572 \begin_inset Quotes eld
22573 \end_inset
22574
22575 bundle
22576 \begin_inset Quotes erd
22577 \end_inset
22578
22579  a \SpecialChar LyX
22580  file together with all the images (and other files) on which it depends,
22581  either for sending to a publisher or for sharing with a co-author.
22582  \SpecialChar LyX
22583  includes a Python script (
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588 lyxpak.py
22589 \end_layout
22590
22591 \end_inset
22592
22593 ) that automates this process.
22594  To use it,
22595  you must have either the 
22596 \begin_inset Flex Code
22597 status collapsed
22598
22599 \begin_layout Plain Layout
22600 zipfile
22601 \end_layout
22602
22603 \end_inset
22604
22605  or 
22606 \begin_inset Flex Code
22607 status collapsed
22608
22609 \begin_layout Plain Layout
22610 tarfile
22611 \end_layout
22612
22613 \end_inset
22614
22615  python modules installed on your system.
22616  By default,
22617  the script prefers the 
22618 \begin_inset Flex Code
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622 gzip
22623 \end_layout
22624
22625 \end_inset
22626
22627 -compressed 
22628 \begin_inset Flex Code
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632 tar
22633 \end_layout
22634
22635 \end_inset
22636
22637  format on Unix-like systems and the 
22638 \begin_inset Flex Code
22639 status collapsed
22640
22641 \begin_layout Plain Layout
22642 zip
22643 \end_layout
22644
22645 \end_inset
22646
22647  format on Windows.
22648 \end_layout
22649
22650 \begin_layout Standard
22651 \SpecialChar LyX
22652 's configuration process will set the script up to export a `\SpecialChar LyX
22653  Archive',
22654  and this format will then be available under 
22655 \family sans
22656 File\SpecialChar menuseparator
22657 Export
22658 \family default
22659 .
22660 \end_layout
22661
22662 \begin_layout Standard
22663 Independently of the platform,
22664  the generation of a particular archive format can be forced by adding either the 
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 -t
22670 \end_layout
22671
22672 \end_inset
22673
22674  (for the 
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679 tar
22680 \end_layout
22681
22682 \end_inset
22683
22684  format) or 
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 -z
22690 \end_layout
22691
22692 \end_inset
22693
22694  (for the 
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699 zip
22700 \end_layout
22701
22702 \end_inset
22703
22704  format) switch to the 
22705 \begin_inset Flex Code
22706 status collapsed
22707
22708 \begin_layout Plain Layout
22709 \SpecialChar LyX
22710 ->\SpecialChar LyX
22711  Archive
22712 \end_layout
22713
22714 \end_inset
22715
22716  converter in 
22717 \family sans
22718 Tools\SpecialChar menuseparator
22719 Preferences\SpecialChar menuseparator
22720 File Handling\SpecialChar menuseparator
22721 Converters
22722 \family default
22723 .
22724  (Make sure you add the switch after the script name,
22725  not before it.)
22726 \end_layout
22727
22728 \begin_layout Chapter
22729 \SpecialChar LyX
22730  and the World Wide Web
22731 \end_layout
22732
22733 \begin_layout Standard
22734 \SpecialChar LyX
22735  has long supported the export of documents to various web-friendly formats,
22736  such as HTML.
22737  Before version 2.0,
22738  however,
22739  HTML export was always accomplished by the use of external converters.
22740 \begin_inset Foot
22741 status collapsed
22742
22743 \begin_layout Plain Layout
22744 For details on the use of external converters with \SpecialChar LyX
22745 ,
22746  see the 
22747 \emph on
22748 Converters
22749 \emph default
22750  section of the Customization manual.
22751 \end_layout
22752
22753 \end_inset
22754
22755  These fall into two large groups:
22756  there are converters that use \SpecialChar LaTeX
22757  as an intermediate format,
22758  such as 
22759 \begin_inset Flex Code
22760 status collapsed
22761
22762 \begin_layout Plain Layout
22763 htlatex
22764 \end_layout
22765
22766 \end_inset
22767
22768 ,
22769  
22770 \begin_inset Flex Code
22771 status collapsed
22772
22773 \begin_layout Plain Layout
22774 html2latex
22775 \end_layout
22776
22777 \end_inset
22778
22779 ,
22780  and 
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785 plastex
22786 \end_layout
22787
22788 \end_inset
22789
22790 ,
22791  relying upon \SpecialChar LyX
22792  to produce the \SpecialChar LaTeX
22793 ;
22794  and there is a converter that works directly on \SpecialChar LyX
22795  files,
22796  
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 e\SpecialChar LyX
22802 er
22803 \end_layout
22804
22805 \end_inset
22806
22807 .
22808  All of these have different advantages and disadvantages.
22809  
22810 \end_layout
22811
22812 \begin_layout Standard
22813 The \SpecialChar LaTeX
22814 -based converters have the advantage that,
22815  in principle,
22816  they know everything about the exported document that \SpecialChar LaTeX
22817  does.
22818  Such converters do not care,
22819  for example,
22820  if a certain block of code was produced by \SpecialChar LyX
22821  or was Evil Red Text.
22822  These converters know about 
22823 \begin_inset Flex Code
22824 status collapsed
22825
22826 \begin_layout Plain Layout
22827 aux
22828 \end_layout
22829
22830 \end_inset
22831
22832  files,
22833  counters,
22834  and references,
22835  and can often make use of the 
22836 \begin_inset Flex Code
22837 status collapsed
22838
22839 \begin_layout Plain Layout
22840 bbl
22841 \end_layout
22842
22843 \end_inset
22844
22845  files generated by Bib\SpecialChar TeX
22846 .
22847  On the other hand,
22848  \SpecialChar LaTeX
22849  is a very hard language to parse—
22850 it is sometimes said that only \SpecialChar TeX
22851  itself understands \SpecialChar TeX
22852
22853 and \SpecialChar LaTeX
22854 -based converters will often choke on what seem to be quite simple constructs;
22855  complex ones can throw them completely,
22856  and as of this writing,
22857  for example,
22858  the 
22859 \emph on
22860 Embedded Objects
22861 \emph default
22862  manual will not export with 
22863 \begin_inset Flex Code
22864 status collapsed
22865
22866 \begin_layout Plain Layout
22867 htlatex
22868 \end_layout
22869
22870 \end_inset
22871
22872 ,
22873  though the others will.
22874  The other issue concerns how math is handled.
22875  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
22876  Since these are actually generated by \SpecialChar LaTeX
22877 ,
22878  they are accurate.
22879  But they do not scale well,
22880  and just getting them to look as if they are actually meant to be in your document—
22881 so that the font sizes seem to be roughly the same—
22882 can be a challenge.
22883 \end_layout
22884
22885 \begin_layout Standard
22886 Alex Fernandez's 
22887 \begin_inset Flex Code
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891 e\SpecialChar LyX
22892 er
22893 \end_layout
22894
22895 \end_inset
22896
22897  (
22898 \begin_inset CommandInset href
22899 LatexCommand href
22900 name "http://pinchito.es/elyxer/"
22901 target "http://pinchito.es/elyxer/"
22902 literal "false"
22903
22904 \end_inset
22905
22906 ) solves some of these problems.
22907  In particular,
22908  the formulae it produces scale perfectly,
22909  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
22910  But even moderately complex formula are rendered less well than with 
22911 \begin_inset Flex Code
22912 status collapsed
22913
22914 \begin_layout Plain Layout
22915 htlatex
22916 \end_layout
22917
22918 \end_inset
22919
22920 ;
22921  this reflects the limitations of HTML.
22922 \begin_inset Foot
22923 status collapsed
22924
22925 \begin_layout Plain Layout
22926 That said,
22927  
22928 \begin_inset Flex Code
22929 status collapsed
22930
22931 \begin_layout Plain Layout
22932 e\SpecialChar LyX
22933 er
22934 \end_layout
22935
22936 \end_inset
22937
22938  can also use jsMath and MathJax for equations,
22939  but this setting is only available globally and requires one to have access to a server that runs the backend.
22940 \end_layout
22941
22942 \end_inset
22943
22944  More importantly (as of version 1.1.1,
22945  at least),
22946  
22947 \begin_inset Flex Code
22948 status collapsed
22949
22950 \begin_layout Plain Layout
22951 e\SpecialChar LyX
22952 er
22953 \end_layout
22954
22955 \end_inset
22956
22957  has limited support for math macros and no support for user-defined paragraph or character styles.
22958  These limitations make 
22959 \begin_inset Flex Code
22960 status collapsed
22961
22962 \begin_layout Plain Layout
22963 e\SpecialChar LyX
22964 er
22965 \end_layout
22966
22967 \end_inset
22968
22969  unsuitable for many of the documents \SpecialChar LyX
22970  users produce.
22971  In principle,
22972  of course,
22973  these problems could be solved,
22974  but the \SpecialChar LyX
22975  developers have decided to follow a different path and have made \SpecialChar LyX
22976  itself capable of writing XHTML,
22977  just as it is capable of writing \SpecialChar LaTeX
22978 ,
22979  DocBook,
22980  and plaintext.
22981 \end_layout
22982
22983 \begin_layout Standard
22984 As of this writing,
22985  XHTML output remains under development and should probably be regarded as 
22986 \begin_inset Quotes eld
22987 \end_inset
22988
22989 experimental
22990 \begin_inset Quotes erd
22991 \end_inset
22992
22993 .
22994 \begin_inset Foot
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998 The file 
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003 development/HTML/HTML.notes
23004 \end_layout
23005
23006 \end_inset
23007
23008 ,
23009  which can be found in the \SpecialChar LyX
23010  source tree or 
23011 \begin_inset CommandInset href
23012 LatexCommand href
23013 name "accessed online"
23014 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
23015 literal "false"
23016
23017 \end_inset
23018
23019 ,
23020  usually contains up-to-date information about the state of XHTML output.
23021  See also the list of XHTML bugs on 
23022 \begin_inset CommandInset href
23023 LatexCommand href
23024 name "the bug tracker"
23025 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"
23026 literal "false"
23027
23028 \end_inset
23029
23030 .
23031 \end_layout
23032
23033 \end_inset
23034
23035  Still,
23036  the developers have chosen this approach because it has several potential advantages over the other two.
23037 \end_layout
23038
23039 \begin_layout Standard
23040 These advantages are primarily due to the fact that the XHTML output routines,
23041  since they are part of \SpecialChar LyX
23042 ,
23043  know everything \SpecialChar LyX
23044  knows about the document being exported.
23045 \begin_inset Foot
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049 Another advantage is that,
23050  since these routines are internal to \SpecialChar LyX
23051 ,
23052  they are immune to changes in \SpecialChar LyX
23053 's file format,
23054  or to changes in the semantics of existing insets.
23055 \end_layout
23056
23057 \end_inset
23058
23059  So they know about the table of contents (as displayed in the outline),
23060  about the counters associated with different paragraph styles,
23061  and about user-defined styles.
23062  The XHTML output routines know what \SpecialChar LyX
23063  knows about internationalization,
23064  too,
23065  so they will output 
23066 \begin_inset Quotes eld
23067 \end_inset
23068
23069 Chapter 1
23070 \begin_inset Quotes erd
23071 \end_inset
23072
23073  or 
23074 \begin_inset Quotes eld
23075 \end_inset
23076
23077
23078 \lang ngerman
23079 Kapitel
23080 \lang english
23081  1
23082 \begin_inset Quotes erd
23083 \end_inset
23084
23085 ,
23086  depending upon the language in effect at the time.
23087  
23088 \end_layout
23089
23090 \begin_layout Standard
23091 Quite generally,
23092  the output routines know what \SpecialChar LyX
23093  knows about document layout,
23094  that is,
23095  about how the document is to be rendered on screen.
23096  We use this information when we output the document as XHTML.
23097  In particular,
23098  \SpecialChar LyX
23099  
23100 \emph on
23101 automatically
23102 \emph default
23103  generates CSS style information corresponding to the layout information it uses to render the document on screen:
23104  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
23105 ,
23106  then (by default) they will be sans-serif and bold when viewed in a web browser,
23107  too.
23108  And this is true not just for pre-defined styles,
23109  like Section,
23110  but for any style,
23111  including user-defined styles.
23112  Indeed,
23113  the XHTML output routines make no distinction between user-defined paragraph and text styles and \SpecialChar LyX
23114 's own pre-defined styles:
23115  in each case,
23116  everything \SpecialChar LyX
23117  knows about the styles is contained in the layout files.
23118  And much the same is true as regards pre-defined textual insets,
23119  such as footnotes,
23120  and various custom insets.
23121 \end_layout
23122
23123 \begin_layout Standard
23124 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
23125  output can be customized and extended:
23126  through layout files and modules.
23127  See chapter five of the 
23128 \emph on
23129 Customization 
23130 \emph default
23131 manual for the details.
23132 \end_layout
23133
23134 \begin_layout Standard
23135 The remainder of this chapter contains more detailed information on XHTML output,
23136  its limitations,
23137  and ways to work around those limitations.
23138 \end_layout
23139
23140 \begin_layout Section
23141 Math Output in XHTML
23142 \end_layout
23143
23144 \begin_layout Standard
23145 \SpecialChar LyX
23146  offers four choices for how math is rendered.
23147  These have various advantages and disadvantages:
23148 \end_layout
23149
23150 \begin_layout Itemize
23151 MathML
23152 \begin_inset Newline newline
23153 \end_inset
23154
23155 MathML is a dialect of XML designed specifically for mathematics on the web,
23156  and it typically renders very well in browsers that support it.
23157  The disadvantage is that not all browsers support MathML,
23158  and support is not complete even in the Gecko-based browsers,
23159  such as Firefox.
23160 \begin_inset Newline newline
23161 \end_inset
23162
23163 If \SpecialChar LyX
23164  is unable to render a formula as MathML—
23165 for example,
23166  if the formula uses the 
23167 \begin_inset Flex Code
23168 status collapsed
23169
23170 \begin_layout Plain Layout
23171 xymatrix
23172 \end_layout
23173
23174 \end_inset
23175
23176  package or ERT—
23177 then it will instead output the formula as an image.
23178  
23179 \end_layout
23180
23181 \begin_layout Itemize
23182 HTML
23183 \begin_inset Newline newline
23184 \end_inset
23185
23186 As mentioned above,
23187  
23188 \begin_inset Flex Code
23189 status collapsed
23190
23191 \begin_layout Plain Layout
23192 elyxer
23193 \end_layout
23194
23195 \end_inset
23196
23197  outputs math as HTML,
23198  styled by CSS.
23199 \begin_inset Foot
23200 status collapsed
23201
23202 \begin_layout Plain Layout
23203 \SpecialChar LyX
23204  has borrowed some of the CSS for its HTML output from 
23205 \begin_inset Flex Code
23206 status collapsed
23207
23208 \begin_layout Plain Layout
23209 elyxer
23210 \end_layout
23211
23212 \end_inset
23213
23214 .
23215 \end_layout
23216
23217 \end_inset
23218
23219  For simple formulae,
23220  this can work quite well,
23221  though with more complicated formulae it tends to break down.
23222  Still,
23223  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
23224  fairly simple math.
23225 \begin_inset Newline newline
23226 \end_inset
23227
23228 If Lyx is unable to render a formula as HTML—
23229 for example,
23230  if the formula uses the 
23231 \begin_inset Flex Code
23232 status collapsed
23233
23234 \begin_layout Plain Layout
23235 xymatrix
23236 \end_layout
23237
23238 \end_inset
23239
23240  package or ERT—
23241 then it will instead output the formula as an image.
23242  
23243 \end_layout
23244
23245 \begin_layout Itemize
23246 Images
23247 \begin_inset Newline newline
23248 \end_inset
23249
23250 Like 
23251 \begin_inset Flex Code
23252 status collapsed
23253
23254 \begin_layout Plain Layout
23255 htlatex
23256 \end_layout
23257
23258 \end_inset
23259
23260 ,
23261  \SpecialChar LyX
23262  will output formulae as images,
23263  the very same images,
23264  in fact,
23265  that are used for instant preview.
23266 \begin_inset Foot
23267 status collapsed
23268
23269 \begin_layout Plain Layout
23270 Instant preview does 
23271 \emph on
23272 not 
23273 \emph default
23274 have to be on for images to be output,
23275  however.
23276 \end_layout
23277
23278 \end_inset
23279
23280  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
23281 ,
23282  so they are very accurate.
23283  The disadvantage,
23284  as mentioned earlier,
23285  is that these are bitmapped images,
23286  so they do not scale terribly well,
23287  and one cannot copy them,
23288  etc.
23289 \begin_inset Newline newline
23290 \end_inset
23291
23292 The size of the images can be controlled by setting the 
23293 \begin_inset Quotes eld
23294 \end_inset
23295
23296 Math Images Scaling
23297 \begin_inset Quotes erd
23298 \end_inset
23299
23300  parameter under 
23301 \family sans
23302 Document\SpecialChar menuseparator
23303 Settings\SpecialChar menuseparator
23304
23305 \family default
23306 Output
23307 \family sans
23308 \SpecialChar menuseparator
23309
23310 \family default
23311 HTML.
23312 \begin_inset Foot
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316 For those who want to know,
23317  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
23318 \end_layout
23319
23320 \end_inset
23321
23322
23323 \begin_inset Newline newline
23324 \end_inset
23325
23326 If \SpecialChar LyX
23327  for some reason fails to create an image for a formula (e.g.,
23328  if a required \SpecialChar LaTeX
23329  package is not installed),
23330  then it will fall back to outputing the raw \SpecialChar LaTeX
23331 .
23332 \end_layout
23333
23334 \begin_layout Itemize
23335 \SpecialChar LaTeX
23336
23337 \begin_inset Newline newline
23338 \end_inset
23339
23340 Finally,
23341  \SpecialChar LyX
23342  will happily output math as \SpecialChar LaTeX
23343 .
23344  As well as being the output of last resort,
23345  this method can be used with such tools as 
23346 \begin_inset CommandInset href
23347 LatexCommand href
23348 name "jsMath"
23349 target "http://www.math.union.edu/~dpvc/jsMath/"
23350 literal "false"
23351
23352 \end_inset
23353
23354 ,
23355  which uses JavaScript to render \SpecialChar LaTeX
23356  embedded in HTML documents.
23357  \SpecialChar LyX
23358  wraps the \SpecialChar LaTeX
23359  in either a 
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364 span
23365 \end_layout
23366
23367 \end_inset
23368
23369  (for inline formulas) or 
23370 \begin_inset Flex Code
23371 status collapsed
23372
23373 \begin_layout Plain Layout
23374 div
23375 \end_layout
23376
23377 \end_inset
23378
23379  (for displayed formulas) with 
23380 \begin_inset Flex Code
23381 status collapsed
23382
23383 \begin_layout Plain Layout
23384 class='math'
23385 \end_layout
23386
23387 \end_inset
23388
23389 ,
23390  as is required for jsMath.
23391 \end_layout
23392
23393 \begin_layout Standard
23394 One of these output methods must be selected under 
23395 \family sans
23396 Document\SpecialChar menuseparator
23397 Settings\SpecialChar menuseparator
23398 Formats
23399 \family default
23400 .
23401  By default,
23402  \SpecialChar LyX
23403  outputs MathML.
23404  This is a document-wide setting,
23405  therefore.
23406 \end_layout
23407
23408 \begin_layout Standard
23409 Eventually,
23410  \SpecialChar LyX
23411  will offer the user the option to select an alternate output method for a particular inset,
23412  say,
23413  one that isn't being rendered very well by MathML.
23414 \begin_inset Foot
23415 status collapsed
23416
23417 \begin_layout Plain Layout
23418 That said,
23419  since \SpecialChar LyX
23420  falls back to images if the inset contains ERT,
23421  then one can force output as an image by putting some harmless ERT into the math,
23422  for example:
23423  
23424 \begin_inset Formula $a=b\relax$
23425 \end_inset
23426
23427 .
23428 \end_layout
23429
23430 \end_inset
23431
23432
23433 \end_layout
23434
23435 \begin_layout Section
23436 Bibliography and Citations
23437 \end_layout
23438
23439 \begin_layout Standard
23440 XHTML output fully supports bibliographies and citations.
23441  
23442 \end_layout
23443
23444 \begin_layout Standard
23445 Citation labels are generated by the same machinery that generates \SpecialChar LyX
23446 's on-screen labels,
23447  so the labels will look in the output much as they do in \SpecialChar LyX
23448 ,
23449  though better.
23450  If you are using numerical citations,
23451  then \SpecialChar LyX
23452  will output numerical labels,
23453  such as [1] or [17],
23454  rather than simply showing the citation key in square brackets,
23455  as it does on-screen.
23456  If you are using author-year citations,
23457  then \SpecialChar LyX
23458  will add lowercase letters to the years,
23459  just as Bib\SpecialChar TeX
23460  does,
23461  if it finds more than one citation for a given author-year combination.
23462  The labels will be printed with the bibliography entries.
23463  Note that there is,
23464  at present,
23465  no way to customize the appearance of the labels,
23466  for example,
23467  to choose between square brackets and parentheses.
23468 \end_layout
23469
23470 \begin_layout Standard
23471 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
23472  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.
23473  The formatting can be customized in your layout file or,
23474  preferably,
23475  in a module.
23476  See the 
23477 \emph on
23478 Customization
23479 \emph default
23480  manual for the details.
23481 \end_layout
23482
23483 \begin_layout Standard
23484 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
23485  So you can see things like this:
23486 \end_layout
23487
23488 \begin_layout Quote
23489 Jason Stanley,
23490  
23491 \begin_inset Quotes eld
23492 \end_inset
23493
23494 Context and Logical Form
23495 \begin_inset Quotes erd
23496 \end_inset
23497
23498 ,
23499  in 
23500 \emph on
23501 Language in Context:
23502  Selected Essays
23503 \emph default
23504  (Oxford:
23505  Oxford University Press,
23506  2007),
23507  pp.
23508  30–68.
23509 \end_layout
23510
23511 \begin_layout Quote
23512 Jason Stanley,
23513  
23514 \begin_inset Quotes eld
23515 \end_inset
23516
23517 Semantics in Context
23518 \begin_inset Quotes erd
23519 \end_inset
23520
23521 ,
23522  in 
23523 \emph on
23524 Language in Context:
23525  Selected Essays
23526 \emph default
23527  (Oxford:
23528  Oxford University Press,
23529  2007),
23530  pp.
23531  201–30.
23532 \end_layout
23533
23534 \begin_layout Standard
23535 This should be fixed before long.
23536 \end_layout
23537
23538 \begin_layout Standard
23539 There is no support at present for sectioned bibliographies.
23540  If you have multiple bibliographies,
23541  then \SpecialChar LyX
23542  will print the same bibliography over and over.
23543 \end_layout
23544
23545 \begin_layout Section
23546 Indexes
23547 \end_layout
23548
23549 \begin_layout Standard
23550 \SpecialChar LyX
23551  will happily export indexes as XHTML,
23552  but with certain limitations at the moment.
23553 \end_layout
23554
23555 \begin_layout Standard
23556 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 
23557 \emph on
23558 User's Guide
23559 \emph default
23560 .
23561 \begin_inset Foot
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 The main issue here is that \SpecialChar LyX
23566  itself does not really handle these.
23567  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
23568 .
23569 \end_layout
23570
23571 \end_inset
23572
23573  We'll describe how they are handled using the subsection headings from that section.
23574 \end_layout
23575
23576 \begin_layout Itemize
23577 Grouping Index Entries (aka,
23578  sub-entries):
23579  \SpecialChar LyX
23580  makes an effort to support these,
23581  but the entries must be separated by 
23582 \begin_inset Quotes eld
23583 \end_inset
23584
23585  !
23586  
23587 \begin_inset Quotes erd
23588 \end_inset
23589
23590 ,
23591  that is,
23592  there must be spaces around the exclamation point.
23593  This is because it is otherwise too difficult to check for escaped exclamation points,
23594  ones in math,
23595  and so forth.
23596 \end_layout
23597
23598 \begin_layout Itemize
23599 Page Ranges:
23600  There is no support at all for page ranges,
23601  since these make no sense with XHMTL.
23602  Instead,
23603  you will just get two index entries,
23604  one at either end.
23605 \end_layout
23606
23607 \begin_layout Itemize
23608 Cross-referencing:
23609  There is no support for cross-referencing.
23610  If \SpecialChar LyX
23611  finds an entry containing the 
23612 \begin_inset Quotes eld
23613 \end_inset
23614
23615 |see\SpecialChar ldots
23616
23617 \begin_inset Quotes erd
23618 \end_inset
23619
23620  construct,
23621  it is just dropped,
23622  and the rest is treated as an ordinary index entry.
23623 \end_layout
23624
23625 \begin_layout Itemize
23626 Index Entry Order:
23627  \SpecialChar LyX
23628  does support attempts to fix the sorting order.
23629  It will take what is before the first `@' it finds and use that for sorting,
23630  taking what follows the first `@' to be the actual entry.
23631  At present,
23632  \SpecialChar LyX
23633  does not check for escaped `@',
23634  so do not try to index email addresses.
23635 \end_layout
23636
23637 \begin_layout Itemize
23638 Index Entry Layout:
23639  You can format entries by using the text style dialog,
23640  or by using any other method available within \SpecialChar LyX
23641  itself.
23642  There is no support for constructs like:
23643  
23644 \begin_inset Quotes eld
23645 \end_inset
23646
23647 entry|textbf
23648 \begin_inset Quotes erd
23649 \end_inset
23650
23651 .
23652  Indeed,
23653  if \SpecialChar LyX
23654  finds a pipe symbol,
23655  `|',
23656  in an entry,
23657  it will delete it and everything that follows it.
23658 \end_layout
23659
23660 \begin_layout Itemize
23661 Multiple Indexes:
23662  There is no support for multiple indexes.
23663  Rather,
23664  all index entries will be printed as one large index.
23665  To avoid our printing several versions of the index,
23666  we print only the main index,
23667  so make sure you have one.
23668 \end_layout
23669
23670 \begin_layout Section
23671 Nomenclature and Glossary
23672 \end_layout
23673
23674 \begin_layout Standard
23675 There is at present no support for glossaries.
23676  Adding it would be fairly trivial,
23677  and welcome.
23678 \end_layout
23679
23680 \begin_layout Chapter
23681 DocBook Output
23682 \end_layout
23683
23684 \begin_layout Standard
23685 Apart from HTML,
23686  \SpecialChar LyX
23687  can generate documents in the DocBook XML vocabulary.
23688  With versions 2.3 and before,
23689  only select templates could be used to generate DocBook documents (only version 4).
23690  Starting with \SpecialChar LyX
23691  2.4,
23692  most \SpecialChar LyX
23693  layouts can generate valid DocBook documents (only version 5).
23694  This feature is built into \SpecialChar LyX
23695  and does not require the use of external tools.
23696 \end_layout
23697
23698 \begin_layout Standard
23699 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
23700  output can be customized and extended:
23701  through layout files and modules.
23702  See chapter five of the 
23703 \emph on
23704 Customization 
23705 \emph default
23706 manual for the details.
23707 \end_layout
23708
23709 \begin_layout Standard
23710 Most \SpecialChar LyX
23711  features are supported with DocBook,
23712  like math output.
23713 \end_layout
23714
23715 \begin_layout Itemize
23716 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
23717 ,
23718  i.e.
23719  ERTs).
23720  All formulae are also available in raw \SpecialChar TeX
23721  in the DocBook output for further processing.
23722 \end_layout
23723
23724 \begin_layout Itemize
23725 Bibliographies and citations are implemented,
23726  including with an external BibTeX file.
23727  Bibliography entries are not prerendered when the detailed information are available,
23728  but rather output with the standard DocBook constructs.
23729  The external DocBook processor is expected to handle the rendering of entries.
23730 \end_layout
23731
23732 \begin_layout Itemize
23733 Indexes are supported,
23734  including multiple indices.
23735  Grouping (with 
23736 \family typewriter
23737 !
23738 \family default
23739 ),
23740  page ranges,
23741  and cross-references (
23742 \family typewriter
23743 |see
23744 \family default
23745 ) are supported,
23746  with the exception of the same symbols escaped.
23747  Entry order (
23748 \family typewriter
23749 @
23750 \family default
23751 ) and layout (
23752 \family typewriter
23753 |mathbf
23754 \family default
23755 ) are not supported.
23756  There is no support for escaping of index entries.
23757 \end_layout
23758
23759 \begin_layout Itemize
23760 Glossaries are implemented.
23761 \end_layout
23762
23763 \begin_layout Standard
23764 Two major parameters can be set at the document level.
23765 \end_layout
23766
23767 \begin_layout Itemize
23768 Format for tables:
23769  \SpecialChar LyX
23770  can generate tables either as HTML (default value) or CALS,
23771  depending on the user's requirements.
23772  Most DocBook processors accept both formats.
23773 \end_layout
23774
23775 \begin_layout Itemize
23776 MathML prefix:
23777  in DocBook,
23778  MathML is included within its own name space,
23779  unlike HTML.
23780  The implication is that there must be an indication of the tags belonging to the MathML standard.
23781  Three choices are offered:
23782 \end_layout
23783
23784 \begin_deeper
23785 \begin_layout Itemize
23786 Inline:
23787  the MathML name space is defined for each formula (using the 
23788 \family typewriter
23789 xmlns
23790 \family default
23791  attribute on each formula)
23792 \end_layout
23793
23794 \begin_layout Itemize
23795 With the 
23796 \family typewriter
23797 m
23798 \family default
23799  prefix (default):
23800  the MathML name space is defined at the document level (using the 
23801 \family typewriter
23802 xmlns:m
23803 \family default
23804  attribute on the root element).
23805  Each MathML is prefixed with 
23806 \family typewriter
23807 m
23808 \family default
23809 :
23810  for instance,
23811  
23812 \family typewriter
23813 m:math
23814 \end_layout
23815
23816 \begin_layout Itemize
23817 With the 
23818 \family typewriter
23819 mml
23820 \family default
23821  prefix:
23822  similar to the 
23823 \family typewriter
23824 m
23825 \family default
23826  option,
23827  but with 
23828 \family typewriter
23829 mml
23830 \end_layout
23831
23832 \begin_layout Standard
23833 This option is especially useful if you want \SpecialChar LyX
23834  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
23835 \end_layout
23836
23837 \end_deeper
23838 \begin_layout Chapter
23839 The \SpecialChar LyX
23840  Server
23841 \end_layout
23842
23843 \begin_layout Section
23844 Introduction
23845 \end_layout
23846
23847 \begin_layout Standard
23848 The `\SpecialChar LyX
23849  server' allows other programs to talk to \SpecialChar LyX
23850 ,
23851  invoke \SpecialChar LyX
23852  commands,
23853  and retrieve information about the \SpecialChar LyX
23854  internal state.
23855  This is only intended for advanced users,
23856  but they should find it useful.
23857  It is by writing to the \SpecialChar LyX
23858  server,
23859  for example,
23860  that bibliography managers,
23861  such as JabRef,
23862  are able to 
23863 \begin_inset Quotes eld
23864 \end_inset
23865
23866 push
23867 \begin_inset Quotes erd
23868 \end_inset
23869
23870  citations to \SpecialChar LyX
23871 .
23872 \end_layout
23873
23874 \begin_layout Section
23875 Starting the \SpecialChar LyX
23876  Server
23877 \begin_inset CommandInset label
23878 LatexCommand label
23879 name "sec:Starting-the-Server"
23880
23881 \end_inset
23882
23883
23884 \end_layout
23885
23886 \begin_layout Standard
23887 The \SpecialChar LyX
23888  server works through the use of a pair of named pipes.
23889  These are usually located in 
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 UserDir
23895 \end_layout
23896
23897 \end_inset
23898
23899 ,
23900  (except on Windows,
23901  where 
23902 \emph on
23903 local
23904 \emph default
23905  named pipes are special objects located in 
23906 \begin_inset Flex Code
23907 status collapsed
23908
23909 \begin_layout Plain Layout
23910
23911 \backslash
23912
23913 \backslash
23914 .
23915 \backslash
23916 pipe
23917 \end_layout
23918
23919 \end_inset
23920
23921 ) and have the names 
23922 \begin_inset Quotes eld
23923 \end_inset
23924
23925
23926 \begin_inset Flex Code
23927 status collapsed
23928
23929 \begin_layout Plain Layout
23930 lyxpipe.in
23931 \end_layout
23932
23933 \end_inset
23934
23935
23936 \begin_inset Quotes erd
23937 \end_inset
23938
23939  and 
23940 \begin_inset Quotes eld
23941 \end_inset
23942
23943
23944 \begin_inset Flex Code
23945 status collapsed
23946
23947 \begin_layout Plain Layout
23948 lyxpipe.out
23949 \end_layout
23950
23951 \end_inset
23952
23953
23954 \begin_inset Quotes erd
23955 \end_inset
23956
23957 .
23958  External programs write into 
23959 \begin_inset Flex Code
23960 status collapsed
23961
23962 \begin_layout Plain Layout
23963 lyxpipe.in
23964 \end_layout
23965
23966 \end_inset
23967
23968  and read back data from 
23969 \begin_inset Flex Code
23970 status collapsed
23971
23972 \begin_layout Plain Layout
23973 lyxpipe.out
23974 \end_layout
23975
23976 \end_inset
23977
23978 .
23979  The stem of the pipe names can be defined in the 
23980 \family sans
23981 Tools\SpecialChar menuseparator
23982 Preferences\SpecialChar menuseparator
23983 Paths
23984 \family default
23985  dialog,
23986  for example 
23987 \begin_inset Flex Code
23988 status collapsed
23989
23990 \begin_layout Plain Layout
23991 "/home/myhome/lyxpipe"
23992 \end_layout
23993
23994 \end_inset
23995
23996 ,
23997  or 
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002 "
24003 \backslash
24004
24005 \backslash
24006 .
24007 \backslash
24008 pipe
24009 \backslash
24010 lyxpipe"
24011 \end_layout
24012
24013 \end_inset
24014
24015  on Windows (where any working path instead of lyxpipe can be used,
24016  for example 
24017 \begin_inset Flex Code
24018 status collapsed
24019
24020 \begin_layout Plain Layout
24021 "
24022 \backslash
24023
24024 \backslash
24025 .
24026 \backslash
24027 pipe
24028 \backslash
24029 my
24030 \backslash
24031 lyx
24032 \backslash
24033 pipe"
24034 \end_layout
24035
24036 \end_inset
24037
24038  would also work).
24039  You 
24040 \emph on
24041 must
24042 \emph default
24043  configure this manually in order for the server to start.
24044 \end_layout
24045
24046 \begin_layout Standard
24047 \SpecialChar LyX
24048  will add the '
24049 \begin_inset Flex Code
24050 status collapsed
24051
24052 \begin_layout Plain Layout
24053 .in
24054 \end_layout
24055
24056 \end_inset
24057
24058 ' and '
24059 \begin_inset Flex Code
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 .out
24064 \end_layout
24065
24066 \end_inset
24067
24068 ' to create the pipes.
24069  If one of the pipes already exists,
24070  \SpecialChar LyX
24071  will assume that another \SpecialChar LyX
24072  process is already running and will not start the server.
24073  On POSIX (Unix like) systems,
24074  if for some other reason,
24075  an unused 
24076 \begin_inset Quotes eld
24077 \end_inset
24078
24079 stale
24080 \begin_inset Quotes erd
24081 \end_inset
24082
24083  pipe is left in existence when \SpecialChar LyX
24084  closes,
24085  then \SpecialChar LyX
24086  will try to delete it.
24087  If this fails for some reason,
24088  you will need to delete the pipes manually and then restart \SpecialChar LyX
24089 .
24090  On Windows,
24091  pipes are deleted by the OS on program termination or crash,
24092  so 
24093 \begin_inset Quotes eld
24094 \end_inset
24095
24096 stale
24097 \begin_inset Quotes erd
24098 \end_inset
24099
24100  pipes should not be possible.
24101 \end_layout
24102
24103 \begin_layout Standard
24104 To have several \SpecialChar LyX
24105  processes with servers at the same time,
24106  you have to use different configurations,
24107  perhaps by using separate user directories,
24108  each with its own 
24109 \begin_inset Flex Code
24110 status collapsed
24111
24112 \begin_layout Plain Layout
24113 preferences
24114 \end_layout
24115
24116 \end_inset
24117
24118  file,
24119  for each process.
24120 \end_layout
24121
24122 \begin_layout Standard
24123 If you are developing a client program,
24124  you might find it useful to enable debugging information from the \SpecialChar LyX
24125  server.
24126  Do this by starting \SpecialChar LyX
24127  as 
24128 \begin_inset Flex Code
24129 status collapsed
24130
24131 \begin_layout Plain Layout
24132 lyx -dbg lyxserver
24133 \end_layout
24134
24135 \end_inset
24136
24137 .
24138 \end_layout
24139
24140 \begin_layout Standard
24141 You can find a complete example client written in C++ in the source distribution as 
24142 \begin_inset Flex Code
24143 status collapsed
24144
24145 \begin_layout Plain Layout
24146 development/lyxserver/server_monitor.cpp
24147 \end_layout
24148
24149 \end_inset
24150
24151 .
24152 \end_layout
24153
24154 \begin_layout Standard
24155 Another useful tool is the command-line based client found in 
24156 \begin_inset Flex Code
24157 status collapsed
24158
24159 \begin_layout Plain Layout
24160 src/client/lyxclient
24161 \end_layout
24162
24163 \end_inset
24164
24165 .
24166 \end_layout
24167
24168 \begin_layout Section
24169 Normal communication
24170 \end_layout
24171
24172 \begin_layout Standard
24173 To issue a \SpecialChar LyX
24174  call,
24175  the client writes a line of ASCII text into the input pipe.
24176  This line has the following format:
24177 \end_layout
24178
24179 \begin_layout Quote
24180 LYXCMD:
24181 \emph on
24182 clientname
24183 \emph default
24184 :
24185 \emph on
24186 function
24187 \emph default
24188 :
24189 \emph on
24190 argument
24191 \end_layout
24192
24193 \begin_layout Description
24194 clientname is a name that the client can choose arbitrarily.
24195  Its only use is that \SpecialChar LyX
24196  will echo it if it sends an answer—
24197 so a client can dispatch results from different requesters.
24198 \end_layout
24199
24200 \begin_layout Description
24201 function is the function you want \SpecialChar LyX
24202  to perform.
24203  It is the same as the commands you'd use in the minibuffer.
24204 \end_layout
24205
24206 \begin_layout Description
24207 argument is an optional argument which is meaningful only to some functions (for instance,
24208  the 
24209 \begin_inset Quotes eld
24210 \end_inset
24211
24212 self-insert
24213 \begin_inset Quotes erd
24214 \end_inset
24215
24216  LFUN will insert the argument as text at the cursor position).
24217 \end_layout
24218
24219 \begin_layout Standard
24220 The answer from \SpecialChar LyX
24221  will arrive in the output pipe and be of the form
24222 \end_layout
24223
24224 \begin_layout Quote
24225 INFO:
24226 \emph on
24227 clientname
24228 \emph default
24229 :
24230 \emph on
24231 function
24232 \emph default
24233 :
24234 \emph on
24235 data
24236 \end_layout
24237
24238 \begin_layout Standard
24239 where 
24240 \emph on
24241 clientname
24242 \emph default
24243  and 
24244 \emph on
24245 function
24246 \emph default
24247  are just echoed from the command request,
24248  while 
24249 \emph on
24250 data
24251 \emph default
24252  is more or less useful information filled according to how the command execution worked out.
24253  Some commands,
24254  such as 
24255 \begin_inset Quotes eld
24256 \end_inset
24257
24258 font-state
24259 \begin_inset Quotes erd
24260 \end_inset
24261
24262 ,
24263  will return information about the internal state of \SpecialChar LyX
24264 ,
24265  while other will return an empty data-response.
24266  This means that the command execution went fine.
24267 \end_layout
24268
24269 \begin_layout Standard
24270 In case of errors,
24271  the response from \SpecialChar LyX
24272  will have this form
24273 \end_layout
24274
24275 \begin_layout Quote
24276 ERROR:
24277 \emph on
24278 clientname
24279 \emph default
24280 :
24281 \emph on
24282 function
24283 \emph default
24284 :
24285 \emph on
24286 error message
24287 \end_layout
24288
24289 \begin_layout Standard
24290 where the 
24291 \emph on
24292 error message
24293 \emph default
24294  should contain an explanation of why the command failed.
24295 \end_layout
24296
24297 \begin_layout Standard
24298 Examples:
24299 \end_layout
24300
24301 \begin_layout LyX-Code
24302 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24303 \begin_inset Newline newline
24304 \end_inset
24305
24306 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24307 \begin_inset Newline newline
24308 \end_inset
24309
24310 read a <~/.lyxpipe.out
24311 \begin_inset Newline newline
24312 \end_inset
24313
24314 echo $a
24315 \end_layout
24316
24317 \begin_layout Subsection
24318 AppleScript (Mac OS X)
24319 \end_layout
24320
24321 \begin_layout Standard
24322 Since \SpecialChar LyX
24323  2.1,
24324  \SpecialChar LyX
24325  supports basic interactions with AppleScript for normal communication through the command run.
24326  This command takes a direct argument (the 
24327 \series bold
24328 function
24329 \series default
24330  to perform) and an optional argument.
24331  It either returns the output of the function or triggers an error with the error message and code.
24332 \end_layout
24333
24334 \begin_layout Standard
24335 Example:
24336 \end_layout
24337
24338 \begin_layout LyX-Code
24339 tell application "\SpecialChar LyX
24340 "
24341 \end_layout
24342
24343 \begin_layout LyX-Code
24344   try
24345 \end_layout
24346
24347 \begin_layout LyX-Code
24348     -- Stores the current file name into f
24349 \end_layout
24350
24351 \begin_layout LyX-Code
24352     set f to (run "server-get-filename" with argument "")
24353 \end_layout
24354
24355 \begin_layout LyX-Code
24356     on error the error_message number the error_number
24357 \end_layout
24358
24359 \begin_layout LyX-Code
24360       display dialog "Error:
24361  " & the error_number & ".
24362  " ¬
24363 \end_layout
24364
24365 \begin_layout LyX-Code
24366               & the error_message buttons {"OK"} default button 1
24367 \end_layout
24368
24369 \begin_layout LyX-Code
24370   end try
24371 \end_layout
24372
24373 \begin_layout LyX-Code
24374 end tell
24375 \end_layout
24376
24377 \begin_layout Section
24378 Notification
24379 \end_layout
24380
24381 \begin_layout Standard
24382 \SpecialChar LyX
24383  can notify clients of events going on asynchronously.
24384  Currently it will only do this if the user binds a key sequence with the function 
24385 \begin_inset Quotes eld
24386 \end_inset
24387
24388 notify
24389 \begin_inset Quotes erd
24390 \end_inset
24391
24392 .
24393  The format of the string \SpecialChar LyX
24394  sends is as follows:
24395 \end_layout
24396
24397 \begin_layout Quote
24398 \begin_inset Flex Code
24399 status collapsed
24400
24401 \begin_layout Plain Layout
24402 NOTIFY:
24403 \end_layout
24404
24405 \end_inset
24406
24407
24408 \emph on
24409 key-sequence
24410 \end_layout
24411
24412 \begin_layout Standard
24413 where 
24414 \emph on
24415 key-sequence
24416 \emph default
24417  is the printed representation of the key sequence that was actually typed by the user.
24418 \end_layout
24419
24420 \begin_layout Standard
24421 This mechanism can be used to extend \SpecialChar LyX
24422 's command set and implement macros.
24423  Bind some key sequence to 
24424 \begin_inset Quotes eld
24425 \end_inset
24426
24427 notify
24428 \begin_inset Quotes erd
24429 \end_inset
24430
24431 .
24432  Then start a client that listens on the output pipe,
24433  dispatches the command according to the sequence,
24434  and starts a function that may use \SpecialChar LyX
24435  calls and \SpecialChar LyX
24436  requests to issue a command or a series of commands to \SpecialChar LyX
24437 .
24438 \end_layout
24439
24440 \begin_layout Section
24441 The simple \SpecialChar LyX
24442  Server Protocol
24443 \end_layout
24444
24445 \begin_layout Standard
24446 \SpecialChar LyX
24447  implements a simple protocol that can be used for session management.
24448  All messages are of the form
24449 \end_layout
24450
24451 \begin_layout Quote
24452 LYXSRV:
24453 \emph on
24454 clientname
24455 \emph default
24456 :
24457 \emph on
24458 protocol message
24459 \end_layout
24460
24461 \begin_layout Standard
24462 where 
24463 \emph on
24464 protocol message
24465 \emph default
24466  can be 
24467 \begin_inset Quotes eld
24468 \end_inset
24469
24470 hello
24471 \begin_inset Quotes erd
24472 \end_inset
24473
24474  or 
24475 \begin_inset Quotes eld
24476 \end_inset
24477
24478 bye
24479 \begin_inset Quotes erd
24480 \end_inset
24481
24482 .
24483  If 
24484 \begin_inset Quotes eld
24485 \end_inset
24486
24487 hello
24488 \begin_inset Quotes erd
24489 \end_inset
24490
24491  is received from a client,
24492  \SpecialChar LyX
24493  will report back to inform the client that it's listening to it's messages,
24494  while 
24495 \begin_inset Quotes eld
24496 \end_inset
24497
24498 bye
24499 \begin_inset Quotes erd
24500 \end_inset
24501
24502  sent from \SpecialChar LyX
24503  will inform clients that \SpecialChar LyX
24504  is closing.
24505 \end_layout
24506
24507 \begin_layout Section
24508 Reverse DVI/PDF search
24509 \end_layout
24510
24511 \begin_layout Standard
24512 Some DVI/PDF viewers
24513 \begin_inset Foot
24514 status collapsed
24515
24516 \begin_layout Plain Layout
24517 The following viewers offer the reverse PDF search feature:
24518  Okular on KDE/Linux,
24519  Qpdfview on Unix,
24520  Skim on Mac OSX and SumatraPDF on Windows.
24521 \end_layout
24522
24523 \end_inset
24524
24525  provide 
24526 \emph on
24527 reverse search
24528 \emph default
24529  facility (also called 
24530 \emph on
24531 inverse search
24532 \emph default
24533 ).
24534  This means that you can tell \SpecialChar LyX
24535  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
24536  To achieve this,
24537  the viewer must be able to communicate with \SpecialChar LyX
24538 .
24539  This is done via the \SpecialChar LyX
24540  server either by using the named pipe (
24541 \emph on
24542 lyxpipe
24543 \emph default
24544 ),
24545  or the UNIX domain socket (
24546 \emph on
24547 lyxsocket
24548 \emph default
24549 ) that \SpecialChar LyX
24550  creates in its temporary directory (this is the way the 
24551 \begin_inset Flex Code
24552 status collapsed
24553
24554 \begin_layout Plain Layout
24555 lyxclient
24556 \end_layout
24557
24558 \end_inset
24559
24560  program communicates with \SpecialChar LyX
24561 ).
24562  In some cases,
24563  you need a helper script that mediates between the viewer and \SpecialChar LyX
24564 ,
24565  in others,
24566  the viewer can communicate with \SpecialChar LyX
24567  directly.
24568  This depends on the selected viewer and on your operating system.
24569  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
24570  In what follows,
24571  we will thus describe how to setup reverse search for specific viewers.
24572  Before we turn to this,
24573  though,
24574  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
24575 \end_layout
24576
24577 \begin_layout Subsection
24578 Automatic setup
24579 \begin_inset CommandInset label
24580 LatexCommand label
24581 name "subsec:rev-search"
24582
24583 \end_inset
24584
24585
24586 \end_layout
24587
24588 \begin_layout Standard
24589 In most cases \SpecialChar LyX
24590  will do the work for you by pressing the following button in the toolbar:
24591  
24592 \begin_inset Info
24593 type  "icon"
24594 arg   "buffer-toggle-output-sync"
24595 \end_inset
24596
24597 .
24598  Alternatively,
24599  you can also enable the feature by checking 
24600 \family sans
24601 Synchronize with Output
24602 \family default
24603  in 
24604 \family sans
24605 Document\SpecialChar menuseparator
24606 Settings\SpecialChar menuseparator
24607 Output\SpecialChar menuseparator
24608 LaTeX
24609 \family default
24610 .
24611  In such a case \SpecialChar LyX
24612  will automatically insert the necessary Sync\SpecialChar TeX
24613  macro (for PDF) or load the srcltx package (for DVI) respectively.
24614  This option can be easily reached also on 
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 View/Update
24620 \end_layout
24621
24622 \end_inset
24623
24624  Toolbar.
24625 \end_layout
24626
24627 \begin_layout Standard
24628 If you need a different setting,
24629  you can select or input a custom macro from the drop down box just below 
24630 \family sans
24631 Document\SpecialChar menuseparator
24632 Settings\SpecialChar menuseparator
24633 Output\SpecialChar menuseparator
24634 Synchronize with Output
24635 \family default
24636 .
24637 \end_layout
24638
24639 \begin_layout Standard
24640 Note that the method 
24641 \begin_inset Flex Code
24642 status collapsed
24643
24644 \begin_layout Plain Layout
24645
24646 \backslash
24647 synctex=1
24648 \end_layout
24649
24650 \end_inset
24651
24652  enables gzip compression.
24653  If your viewer does not support it,
24654  you should instead use 
24655 \begin_inset Flex Code
24656 status collapsed
24657
24658 \begin_layout Plain Layout
24659
24660 \backslash
24661 synctex=-1
24662 \end_layout
24663
24664 \end_inset
24665
24666 .
24667 \end_layout
24668
24669 \begin_layout Standard
24670 Please also note that including the 
24671 \begin_inset Flex Code
24672 status collapsed
24673
24674 \begin_layout Plain Layout
24675 srcltx
24676 \end_layout
24677
24678 \end_inset
24679
24680  package or 
24681 \begin_inset Flex Code
24682 status collapsed
24683
24684 \begin_layout Plain Layout
24685 src-specials
24686 \end_layout
24687
24688 \end_inset
24689
24690  sometimes has an undesired impact on the typesetting.
24691  Thus,
24692  you should switch output synchronization off for the final typesetting if you use the 
24693 \begin_inset Flex Code
24694 status collapsed
24695
24696 \begin_layout Plain Layout
24697 srcltx
24698 \end_layout
24699
24700 \end_inset
24701
24702  package or 
24703 \begin_inset Flex Code
24704 status collapsed
24705
24706 \begin_layout Plain Layout
24707 src-specials
24708 \end_layout
24709
24710 \end_inset
24711
24712 .
24713  
24714 \end_layout
24715
24716 \begin_layout Standard
24717 In case you need some more special settings that are not covered by the automatic settings,
24718  read the next section about how to set up output synchronization manually.
24719  If the automatic setup suits your needs,
24720  you can readily jump to section
24721 \begin_inset space ~
24722 \end_inset
24723
24724
24725 \begin_inset CommandInset ref
24726 LatexCommand ref
24727 reference "subsec:configuring-viewers"
24728 nolink "false"
24729
24730 \end_inset
24731
24732 ,
24733  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
24734 \end_layout
24735
24736 \begin_layout Subsection
24737 Manual setup
24738 \end_layout
24739
24740 \begin_layout Standard
24741 \SpecialChar LaTeX
24742  provides several different methods for reverse search.
24743  Some are built-in in the 
24744 \begin_inset Flex Code
24745 status collapsed
24746
24747 \begin_layout Plain Layout
24748 latex/pdflatex
24749 \end_layout
24750
24751 \end_inset
24752
24753  program,
24754  some are provided by external packages.
24755  Your choice depends on whether your \SpecialChar LaTeX
24756  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
24757  The available methods are described in the following.
24758 \end_layout
24759
24760 \begin_layout Subsubsection*
24761 Built-in DVI-search via src-specials (DVI only) 
24762 \end_layout
24763
24764 \begin_layout Standard
24765 This method provides the DVI file with the necessary information for reverse search.
24766  It is available in \SpecialChar LaTeX
24767  since quite some time (any somewhat recent \SpecialChar LaTeX
24768  distribution should include it),
24769  and it works reliably.
24770  To enable it,
24771  change the 
24772 \begin_inset Flex Noun
24773 status collapsed
24774
24775 \begin_layout Plain Layout
24776 La
24777 \family sans
24778 TeX
24779 \family default
24780  (plain)->DVI
24781 \end_layout
24782
24783 \end_inset
24784
24785  or 
24786 \begin_inset Flex Noun
24787 status collapsed
24788
24789 \begin_layout Plain Layout
24790 La
24791 \family sans
24792 TeX
24793 \family default
24794  (plain)->DraftDVI
24795 \end_layout
24796
24797 \end_inset
24798
24799  converter in 
24800 \family sans
24801 Preferences\SpecialChar menuseparator
24802 File Handling\SpecialChar menuseparator
24803 Converters
24804 \family default
24805  to 
24806 \begin_inset Flex Code
24807 status collapsed
24808
24809 \begin_layout Plain Layout
24810 latex -src-specials $$i
24811 \end_layout
24812
24813 \end_inset
24814
24815 .
24816  If this doesn't work,
24817  check if your \SpecialChar TeX
24818  engine needs different options (the syntax might differ in some distributions).
24819 \end_layout
24820
24821 \begin_layout Subsubsection*
24822 External Packages (PDFSync and scrltx) 
24823 \end_layout
24824
24825 \begin_layout Standard
24826 The packages 
24827 \emph on
24828 pdfsync
24829 \emph default
24830  and 
24831 \emph on
24832 scrltx
24833 \emph default
24834  provide reverse search facility for PDF output (via pdflatex) and DVI output,
24835  respectively.
24836  In order to enable it,
24837  load the packages in the \SpecialChar LyX
24838  preamble:
24839  
24840 \end_layout
24841
24842 \begin_layout Itemize
24843 \begin_inset Flex Code
24844 status collapsed
24845
24846 \begin_layout Plain Layout
24847
24848 \backslash
24849 usepackage{pdfsync}
24850 \end_layout
24851
24852 \end_inset
24853
24854  for reverse PDF search,
24855 \end_layout
24856
24857 \begin_layout Itemize
24858 \begin_inset Flex Code
24859 status collapsed
24860
24861 \begin_layout Plain Layout
24862
24863 \backslash
24864 usepackage[active]{srcltx}
24865 \end_layout
24866
24867 \end_inset
24868
24869  for reverse DVI search.
24870 \end_layout
24871
24872 \begin_layout Standard
24873 If you want to be able to perform both DVI and PDF reverse searches,
24874  you can also insert in the preamble the following lines
24875 \end_layout
24876
24877 \begin_layout LyX-Code
24878
24879 \backslash
24880 usepackage{ifpdf}
24881 \begin_inset Newline newline
24882 \end_inset
24883
24884
24885 \backslash
24886 ifpdf
24887 \begin_inset Newline newline
24888 \end_inset
24889
24890   
24891 \backslash
24892 usepackage{pdfsync}
24893 \begin_inset Newline newline
24894 \end_inset
24895
24896
24897 \backslash
24898 else
24899 \begin_inset Newline newline
24900 \end_inset
24901
24902   
24903 \backslash
24904 usepackage[active]{srcltx}
24905 \begin_inset Newline newline
24906 \end_inset
24907
24908
24909 \backslash
24910 fi
24911 \end_layout
24912
24913 \begin_layout Standard
24914 This way,
24915  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
24916 \end_layout
24917
24918 \begin_layout Standard
24919 Note that PDFSync might affect the output layout of your document.
24920  It is therefore advised to disable PDFsync for final documents.
24921 \end_layout
24922
24923 \begin_layout Subsubsection*
24924 Built-in reverse search via Sync\SpecialChar TeX
24925  (DVI and PDF) 
24926 \end_layout
24927
24928 \begin_layout Standard
24929 Recent versions of 
24930 \begin_inset Flex Code
24931 status collapsed
24932
24933 \begin_layout Plain Layout
24934 (pdf)latex
24935 \end_layout
24936
24937 \end_inset
24938
24939  have built-in support for both PDF and DVI reverse search.
24940  This so-called 
24941 \emph on
24942 Sync\SpecialChar TeX
24943
24944 \emph default
24945  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
24946 \emph on
24947 scr-specials
24948 \emph default
24949  approach.
24950  You need at least \SpecialChar TeX
24951 Live 2008 or a recent Mik\SpecialChar TeX
24952  distribution in order to use it.
24953 \begin_inset Foot
24954 status collapsed
24955
24956 \begin_layout Plain Layout
24957 For some reason,
24958  Mik\SpecialChar TeX
24959  does not understand/obey the command \SpecialChar LyX
24960  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
24961 \end_layout
24962
24963 \begin_layout Plain Layout
24964 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
24965  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
24966  by adding the -synctex=1 switch).
24967 \end_layout
24968
24969 \end_inset
24970
24971  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
24972  Skim on the Mac,
24973  SumatraPDF on Windows;
24974  see the next section for details) already provide Sync\SpecialChar TeX
24975  support.
24976 \end_layout
24977
24978 \begin_layout Standard
24979 To enable Sync\SpecialChar TeX
24980  for DVI output,
24981  change the 
24982 \begin_inset Flex Noun
24983 status collapsed
24984
24985 \begin_layout Plain Layout
24986 La
24987 \family sans
24988 TeX
24989 \family default
24990  (plain) -> DVI
24991 \end_layout
24992
24993 \end_inset
24994
24995  or 
24996 \begin_inset Flex Noun
24997 status collapsed
24998
24999 \begin_layout Plain Layout
25000 La
25001 \family sans
25002 TeX
25003 \family default
25004  (plain) -> DraftDVI
25005 \end_layout
25006
25007 \end_inset
25008
25009  converter in 
25010 \family sans
25011 Preferences\SpecialChar menuseparator
25012 File Handling\SpecialChar menuseparator
25013 Converters 
25014 \family default
25015 to 
25016 \begin_inset Flex Code
25017 status collapsed
25018
25019 \begin_layout Plain Layout
25020 latex -synctex=1 $$i
25021 \end_layout
25022
25023 \end_inset
25024
25025 ,
25026  and for PDF output,
25027  change the 
25028 \begin_inset Flex Noun
25029 status collapsed
25030
25031 \begin_layout Plain Layout
25032 La
25033 \family sans
25034 TeX
25035 \family default
25036  (pdflatex) -> PDF (pdflatex)
25037 \end_layout
25038
25039 \end_inset
25040
25041  converter to 
25042 \begin_inset Flex Code
25043 status collapsed
25044
25045 \begin_layout Plain Layout
25046 pdflatex -synctex=1 $$i
25047 \end_layout
25048
25049 \end_inset
25050
25051 .
25052  Should your viewer not be considered in the following description,
25053  or in case of missing success,
25054  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
25055 .
25056 \begin_inset Foot
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 Note that the option 
25061 \begin_inset Flex Code
25062 status collapsed
25063
25064 \begin_layout Plain Layout
25065 -synctex=1
25066 \end_layout
25067
25068 \end_inset
25069
25070  option enables gzip compression.
25071  If your viewer does not support it,
25072  you should instead use 
25073 \begin_inset Flex Code
25074 status collapsed
25075
25076 \begin_layout Plain Layout
25077 -synctex=-1
25078 \end_layout
25079
25080 \end_inset
25081
25082 .
25083 \end_layout
25084
25085 \end_inset
25086
25087
25088 \end_layout
25089
25090 \begin_layout Subsection
25091 Configuring and using specific viewers
25092 \begin_inset CommandInset label
25093 LatexCommand label
25094 name "subsec:configuring-viewers"
25095
25096 \end_inset
25097
25098
25099 \end_layout
25100
25101 \begin_layout Subsubsection*
25102 Xdvi (all platforms)
25103 \end_layout
25104
25105 \begin_layout Standard
25106 If you use 
25107 \begin_inset Flex Code
25108 status collapsed
25109
25110 \begin_layout Plain Layout
25111 xdvi
25112 \end_layout
25113
25114 \end_inset
25115
25116 ,
25117  you don't need to do anything else for performing a reverse DVI search,
25118  as \SpecialChar LyX
25119  already provides the necessary hooks for automatically using the 
25120 \begin_inset Flex Code
25121 status collapsed
25122
25123 \begin_layout Plain Layout
25124 lyxclient
25125 \end_layout
25126
25127 \end_inset
25128
25129  program.
25130  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
25131  respectively).
25132 \end_layout
25133
25134 \begin_layout Standard
25135 However,
25136  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
25137 ,
25138  simply change the DVI viewer in 
25139 \family sans
25140 Preferences\SpecialChar menuseparator
25141 File Handling\SpecialChar menuseparator
25142 File formats
25143 \family default
25144  to
25145 \begin_inset Foot
25146 status collapsed
25147
25148 \begin_layout Plain Layout
25149 On Mac OSX you have to use 
25150 \begin_inset Flex Code
25151 status collapsed
25152
25153 \begin_layout Plain Layout
25154 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
25155 \end_layout
25156
25157 \end_inset
25158
25159
25160 \end_layout
25161
25162 \end_inset
25163
25164  
25165 \begin_inset Flex Code
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169 xdvi -editor "lyxeditor.sh %f %l"
25170 \end_layout
25171
25172 \end_inset
25173
25174 ,
25175  where 
25176 \begin_inset Flex Code
25177 status collapsed
25178
25179 \begin_layout Plain Layout
25180 lyxeditor.sh
25181 \end_layout
25182
25183 \end_inset
25184
25185  is a suitable script.
25186  For example,
25187  a minimal shell script is the following one:
25188 \end_layout
25189
25190 \begin_layout LyX-Code
25191 #!/bin/sh
25192 \begin_inset Newline newline
25193 \end_inset
25194
25195 LYXPIPE="/path/to/lyxpipe"
25196 \begin_inset Newline newline
25197 \end_inset
25198
25199 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25200 \begin_inset Newline newline
25201 \end_inset
25202
25203 echo "$COMMAND" > "${LYXPIPE}".in || exit
25204 \begin_inset Newline newline
25205 \end_inset
25206
25207 read TMP < "${LYXPIPE}".out || exit
25208 \end_layout
25209
25210 \begin_layout Standard
25211 where 
25212 \begin_inset Flex Code
25213 status collapsed
25214
25215 \begin_layout Plain Layout
25216 /path/to/lyxpipe
25217 \end_layout
25218
25219 \end_inset
25220
25221  is the LyXServer pipe path specified in 
25222 \family sans
25223 Preferences\SpecialChar menuseparator
25224 Paths
25225 \family default
25226 .
25227 \begin_inset Foot
25228 status collapsed
25229
25230 \begin_layout Plain Layout
25231 In the 
25232 \begin_inset Flex Code
25233 status collapsed
25234
25235 \begin_layout Plain Layout
25236 development/tools
25237 \end_layout
25238
25239 \end_inset
25240
25241  folder of a source distribution you can find a 
25242 \begin_inset Flex Code
25243 status collapsed
25244
25245 \begin_layout Plain Layout
25246 lyxeditor
25247 \end_layout
25248
25249 \end_inset
25250
25251  script which is able to locate the 
25252 \emph on
25253 lyxpipe
25254 \emph default
25255  based on your preferences.
25256 \end_layout
25257
25258 \end_inset
25259
25260
25261 \end_layout
25262
25263 \begin_layout Subsubsection*
25264 MacDviX (Mac OSX)
25265 \end_layout
25266
25267 \begin_layout Standard
25268 At the end of 
25269 \begin_inset Flex Code
25270 status collapsed
25271
25272 \begin_layout Plain Layout
25273 /Applications/MacDviX_Folder/calleditor.script
25274 \end_layout
25275
25276 \end_inset
25277
25278 ,
25279  add the following lines:
25280 \end_layout
25281
25282 \begin_layout LyX-Code
25283 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
25284 \begin_inset Newline newline
25285 \end_inset
25286
25287 exit 1
25288 \end_layout
25289
25290 \begin_layout Standard
25291 Modify the lines accordingly if you install \SpecialChar LyX
25292  somewhere else than in the Applications folder.
25293 \end_layout
25294
25295 \begin_layout Standard
25296 Reverse search is triggered by Alt-click (OPTION-click).
25297 \end_layout
25298
25299 \begin_layout Subsubsection*
25300 Skim (Mac OSX)
25301 \end_layout
25302
25303 \begin_layout Standard
25304 Enter 
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 open -a Skim.app $$i
25310 \end_layout
25311
25312 \end_inset
25313
25314  to the viewer setting in 
25315 \family sans
25316 Preferences\SpecialChar menuseparator
25317 File Handling\SpecialChar menuseparator
25318 File formats\SpecialChar menuseparator
25319 PDF (pdflatex)
25320 \family default
25321 ,
25322  and then in 
25323 \family sans
25324 Skim\SpecialChar menuseparator
25325 Preferences\SpecialChar menuseparator
25326 Sync
25327 \family default
25328  choose 
25329 \family sans
25330 custom
25331 \family default
25332  preset and enter command 
25333 \begin_inset Flex Noun
25334 status collapsed
25335
25336 \begin_layout Plain Layout
25337 /Applications/\SpecialChar LyX
25338 .app/Contents/MacOS/lyxeditor
25339 \end_layout
25340
25341 \end_inset
25342
25343 .
25344 \end_layout
25345
25346 \begin_layout Standard
25347 Reverse search is triggered by COMMAND-SHIFT-click
25348 \end_layout
25349
25350 \begin_layout Subsubsection*
25351 Evince (GNOME)
25352 \end_layout
25353
25354 \begin_layout Standard
25355 Reverse search with evince does not work out of the box,
25356  but it can be achieved by means of some third party helper scripts.
25357  Please refer to 
25358 \begin_inset CommandInset href
25359 LatexCommand href
25360 target "https://wiki.lyx.org/LyX/SyncTeX"
25361 literal "false"
25362
25363 \end_inset
25364
25365  for details.
25366 \end_layout
25367
25368 \begin_layout Subsubsection*
25369 Okular (KDE)
25370 \end_layout
25371
25372 \begin_layout Standard
25373 Go to 
25374 \family sans
25375 Settings\SpecialChar menuseparator
25376 Configure Okular\SpecialChar menuseparator
25377 Editor
25378 \family default
25379  and select LyX
25380 \begin_inset Quotes erd
25381 \end_inset
25382
25383  as editor.
25384  This inserts the appropriate command (
25385 \begin_inset Flex Code
25386 status collapsed
25387
25388 \begin_layout Plain Layout
25389 lyxclient -g %f %l
25390 \end_layout
25391
25392 \end_inset
25393
25394 ).
25395 \end_layout
25396
25397 \begin_layout Standard
25398 Reverse search is triggered by SHIFT-click.
25399  Note that this only works if Okular is in 
25400 \begin_inset Quotes eld
25401 \end_inset
25402
25403 Browse
25404 \begin_inset Quotes erd
25405 \end_inset
25406
25407  mode (i.
25408 \begin_inset space \thinspace{}
25409 \end_inset
25410
25411 e.,
25412  the hand symbol is clicked).
25413 \end_layout
25414
25415 \begin_layout Subsubsection*
25416 Qpdfview (Unix)
25417 \end_layout
25418
25419 \begin_layout Standard
25420 Qpdfview supports Sync\SpecialChar TeX
25421  since version 0.3.5.
25422  Go to 
25423 \family sans
25424 Edit\SpecialChar menuseparator
25425 Settings\SpecialChar menuseparator
25426 Behavior
25427 \family default
25428 ,
25429  click on the input field of the 
25430 \begin_inset Quotes eld
25431 \end_inset
25432
25433 Source editor
25434 \begin_inset Quotes erd
25435 \end_inset
25436
25437  item and add the command 
25438 \begin_inset Flex Code
25439 status collapsed
25440
25441 \begin_layout Plain Layout
25442 lyxclient -g %1 %2
25443 \end_layout
25444
25445 \end_inset
25446
25447 .
25448 \end_layout
25449
25450 \begin_layout Standard
25451 Reverse search is triggered by double-click or,
25452  in more recent versions,
25453  by context menu.
25454 \end_layout
25455
25456 \begin_layout Subsubsection*
25457 YAP (Windows)
25458 \end_layout
25459
25460 \begin_layout Standard
25461 Launch yap,
25462  choose its 
25463 \family sans
25464 View\SpecialChar menuseparator
25465 Options
25466 \family default
25467  menu and select the 
25468 \begin_inset Quotes eld
25469 \end_inset
25470
25471 Inverse DVI Search
25472 \begin_inset Quotes erd
25473 \end_inset
25474
25475  tab.
25476  Click on the 
25477 \begin_inset Quotes eld
25478 \end_inset
25479
25480 New\SpecialChar ldots
25481
25482 \begin_inset Quotes erd
25483 \end_inset
25484
25485  button and,
25486  in the window that opens,
25487  enter 
25488 \begin_inset Quotes eld
25489 \end_inset
25490
25491 \SpecialChar LyX
25492  Editor
25493 \begin_inset Quotes erd
25494 \end_inset
25495
25496  (or any other name you like) in the 
25497 \begin_inset Quotes eld
25498 \end_inset
25499
25500 Name:
25501 \begin_inset Quotes erd
25502 \end_inset
25503
25504  field.
25505  Now click on the button labeled 
25506 \begin_inset Quotes eld
25507 \end_inset
25508
25509 \SpecialChar ldots
25510
25511 \begin_inset Quotes erd
25512 \end_inset
25513
25514  to open a file dialog and navigate to the directory containing the batch file 
25515 \begin_inset Flex Code
25516 status collapsed
25517
25518 \begin_layout Plain Layout
25519 lyxeditor.bat
25520 \end_layout
25521
25522 \end_inset
25523
25524  (see below).
25525  Select 
25526 \begin_inset Flex Code
25527 status collapsed
25528
25529 \begin_layout Plain Layout
25530 lyxeditor.bat
25531 \end_layout
25532
25533 \end_inset
25534
25535  and then specify the program arguments as 
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 %f %l
25541 \end_layout
25542
25543 \end_inset
25544
25545 .
25546  The 
25547 \begin_inset Flex Code
25548 status collapsed
25549
25550 \begin_layout Plain Layout
25551 lyxeditor.bat
25552 \end_layout
25553
25554 \end_inset
25555
25556  wrapper is used for communicating with \SpecialChar LyX
25557  through the 
25558 \emph on
25559 lyxpipe
25560 \emph default
25561  and is as follows:
25562 \end_layout
25563
25564 \begin_layout LyX-Code
25565 @echo off
25566 \begin_inset Newline newline
25567 \end_inset
25568
25569 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
25570 \backslash
25571
25572 \backslash
25573 .
25574 \backslash
25575 pipe
25576 \backslash
25577 lyxpipe.in
25578 \begin_inset Newline newline
25579 \end_inset
25580
25581 type 
25582 \backslash
25583
25584 \backslash
25585 .
25586 \backslash
25587 pipe
25588 \backslash
25589 lyxpipe.out
25590 \end_layout
25591
25592 \begin_layout Standard
25593 Make sure that the \SpecialChar LyX
25594 Server pipe path you specified in \SpecialChar LyX
25595  is 
25596 \begin_inset Flex Code
25597 status collapsed
25598
25599 \begin_layout Plain Layout
25600
25601 \backslash
25602
25603 \backslash
25604 .
25605 \backslash
25606 pipe
25607 \backslash
25608 lyxpipe
25609 \end_layout
25610
25611 \end_inset
25612
25613 ,
25614  otherwise change the 
25615 \begin_inset Flex Code
25616 status collapsed
25617
25618 \begin_layout Plain Layout
25619 lyxeditor.bat
25620 \end_layout
25621
25622 \end_inset
25623
25624  wrapper accordingly.
25625 \end_layout
25626
25627 \begin_layout Standard
25628 In yap,
25629  reverse search is triggered by double-click.
25630 \end_layout
25631
25632 \begin_layout Subsubsection*
25633 SumatraPDF (Windows)
25634 \end_layout
25635
25636 \begin_layout Standard
25637 In order to use SumatraPDF for inverse search,
25638  enter 
25639 \begin_inset Flex Code
25640 status collapsed
25641
25642 \begin_layout Plain Layout
25643 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
25644 \end_layout
25645
25646 \end_inset
25647
25648  in the viewer setting in 
25649 \family sans
25650 Preferences\SpecialChar menuseparator
25651 File Handling\SpecialChar menuseparator
25652 File formats\SpecialChar menuseparator
25653 PDF (pdflatex)
25654 \family default
25655 ,
25656  where 
25657 \begin_inset Flex Code
25658 status collapsed
25659
25660 \begin_layout Plain Layout
25661 lyxeditor.bat
25662 \end_layout
25663
25664 \end_inset
25665
25666  is the previous wrapper.
25667  If SumatraPDF.exe is not in your command PATH,
25668  use its full file name.
25669 \end_layout
25670
25671 \begin_layout Standard
25672 Reverse search is triggered by double-click.
25673 \end_layout
25674
25675 \begin_layout Subsubsection*
25676 YAP (Cygwin)
25677 \end_layout
25678
25679 \begin_layout Standard
25680 First of all,
25681  make sure that yap is your default DVI viewer in the Windows environment,
25682  then launch it,
25683  choose its 
25684 \family sans
25685 View\SpecialChar menuseparator
25686 Options
25687 \family default
25688  menu and select the 
25689 \begin_inset Quotes eld
25690 \end_inset
25691
25692 Inverse DVI Search
25693 \begin_inset Quotes erd
25694 \end_inset
25695
25696  tab.
25697  Click on the 
25698 \begin_inset Quotes eld
25699 \end_inset
25700
25701 New\SpecialChar ldots
25702
25703 \begin_inset Quotes erd
25704 \end_inset
25705
25706  button and,
25707  in the window that opens,
25708  enter 
25709 \begin_inset Quotes eld
25710 \end_inset
25711
25712 \SpecialChar LyX
25713  Editor
25714 \begin_inset Quotes erd
25715 \end_inset
25716
25717  (or any other name you like) in the 
25718 \begin_inset Quotes eld
25719 \end_inset
25720
25721 Name:
25722 \begin_inset Quotes erd
25723 \end_inset
25724
25725  field.
25726  Now click on the button labeled 
25727 \begin_inset Quotes eld
25728 \end_inset
25729
25730 \SpecialChar ldots
25731
25732 \begin_inset Quotes erd
25733 \end_inset
25734
25735  to open a file dialog and navigate to the directory containing the 
25736 \begin_inset Flex Code
25737 status collapsed
25738
25739 \begin_layout Plain Layout
25740 lyxeditor.exe
25741 \end_layout
25742
25743 \end_inset
25744
25745  program (which is installed by default on Cygwin along with the \SpecialChar LyX
25746  executable).
25747  Select 
25748 \begin_inset Flex Code
25749 status collapsed
25750
25751 \begin_layout Plain Layout
25752 lyxeditor.exe
25753 \end_layout
25754
25755 \end_inset
25756
25757  and then specify the program arguments as 
25758 \begin_inset Flex Code
25759 status collapsed
25760
25761 \begin_layout Plain Layout
25762 -g %f %l
25763 \end_layout
25764
25765 \end_inset
25766
25767 .
25768  In this way,
25769  you will be using the 
25770 \emph on
25771 lyxsocket
25772 \emph default
25773  for communicating with \SpecialChar LyX
25774 .
25775  If,
25776  for whatever reason,
25777  you want to use the 
25778 \emph on
25779 lyxpipe
25780 \emph default
25781 ,
25782  omit the 
25783 \begin_inset Flex Code
25784 status collapsed
25785
25786 \begin_layout Plain Layout
25787 -g
25788 \end_layout
25789
25790 \end_inset
25791
25792  option and be sure to specify the \SpecialChar LyX
25793 Server pipe path in the \SpecialChar LyX
25794  preferences.
25795 \end_layout
25796
25797 \begin_layout Standard
25798 In yap,
25799  reverse search is triggered by double-click.
25800 \end_layout
25801
25802 \begin_layout Subsubsection*
25803 SumatraPDF (Cygwin)
25804 \end_layout
25805
25806 \begin_layout Standard
25807 In order to use SumatraPDF for inverse search,
25808  enter 
25809 \begin_inset Flex Code
25810 status collapsed
25811
25812 \begin_layout Plain Layout
25813 SumatraPDF -inverse-search "lyxeditor -g %f %l"
25814 \end_layout
25815
25816 \end_inset
25817
25818  in the viewer setting in 
25819 \family sans
25820 Preferences\SpecialChar menuseparator
25821 File Handling\SpecialChar menuseparator
25822 File formats\SpecialChar menuseparator
25823 PDF (pdflatex)
25824 \family default
25825 .
25826  If SumatraPDF.exe is not in your command PATH,
25827  use its full posix path.
25828  The 
25829 \begin_inset Flex Code
25830 status collapsed
25831
25832 \begin_layout Plain Layout
25833 -g
25834 \end_layout
25835
25836 \end_inset
25837
25838  enables communication via the 
25839 \emph on
25840 lyxsocket
25841 \emph default
25842 .
25843  Again,
25844  omit the 
25845 \begin_inset Flex Code
25846 status collapsed
25847
25848 \begin_layout Plain Layout
25849 -g
25850 \end_layout
25851
25852 \end_inset
25853
25854  option if you want to use the 
25855 \emph on
25856 lyxpipe
25857 \emph default
25858 ,
25859  and be sure to specify the \SpecialChar LyX
25860 Server pipe path in the \SpecialChar LyX
25861  preferences.
25862 \end_layout
25863
25864 \begin_layout Standard
25865 Reverse search is triggered by double-click.
25866 \end_layout
25867
25868 \begin_layout Section
25869 Forward search
25870 \end_layout
25871
25872 \begin_layout Standard
25873 Forward search is,
25874  as the name implies,
25875  in a sense the 
25876 \begin_inset Quotes eld
25877 \end_inset
25878
25879 opposite
25880 \begin_inset Quotes erd
25881 \end_inset
25882
25883  of reverse search.
25884  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
25885 .
25886  If forward search is set up (as described in what follows),
25887  you can put the cursor anywhere in your \SpecialChar LyX
25888  document,
25889  and hit 
25890 \family sans
25891 Navigate\SpecialChar menuseparator
25892 Forward search
25893 \family default
25894  (or select 
25895 \family sans
25896 Forward search
25897 \family default
25898  in the context menu via right mouse click),
25899  and then the viewer will jump to that position as well.
25900  This implies,
25901  of course,
25902  that your viewer supports this function.
25903 \end_layout
25904
25905 \begin_layout Standard
25906 To make forward search possible,
25907  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
25908  sources.
25909  This can be done via the methods described in the section 
25910 \begin_inset CommandInset ref
25911 LatexCommand ref
25912 reference "subsec:rev-search"
25913 nolink "false"
25914
25915 \end_inset
25916
25917 .
25918 \end_layout
25919
25920 \begin_layout Standard
25921 Additionally,
25922  you need to configure \SpecialChar LyX
25923  for using your viewers in 
25924 \family sans
25925 Tools\SpecialChar menuseparator
25926 Preferences\SpecialChar menuseparator
25927 Output\SpecialChar menuseparator
25928 General
25929 \family default
25930 .
25931  We provide a range of tested configurations for some viewers,
25932  which you can select from the drop down list.
25933  If none of these configurations suits you,
25934  you have to find out and enter a suitable configuration yourself.
25935  The definition syntax uses the following placeholders:
25936 \end_layout
25937
25938 \begin_layout Itemize
25939 \noindent
25940 \begin_inset Flex Code
25941 status collapsed
25942
25943 \begin_layout Plain Layout
25944 $$n
25945 \end_layout
25946
25947 \end_inset
25948
25949 :
25950  row number
25951 \end_layout
25952
25953 \begin_layout Itemize
25954 \noindent
25955 \begin_inset Flex Code
25956 status collapsed
25957
25958 \begin_layout Plain Layout
25959 $$t
25960 \end_layout
25961
25962 \end_inset
25963
25964 :
25965  name of the (temporary) exported .tex file (without path)
25966 \end_layout
25967
25968 \begin_layout Itemize
25969 \noindent
25970 \begin_inset Flex Code
25971 status collapsed
25972
25973 \begin_layout Plain Layout
25974 $$f
25975 \end_layout
25976
25977 \end_inset
25978
25979 :
25980  name of the (temporary) exported .tex file (including path)
25981 \end_layout
25982
25983 \begin_layout Itemize
25984 \noindent
25985 \begin_inset Flex Code
25986 status collapsed
25987
25988 \begin_layout Plain Layout
25989 $$o
25990 \end_layout
25991
25992 \end_inset
25993
25994 :
25995  name of the exported output file (either dvi or pdf,
25996  depending on which one exists in the temporary directory)
25997 \end_layout
25998
25999 \begin_layout Standard
26000 Note that only some of the viewers provide full and usable forward search functionality out of the box,
26001  among them yap,
26002  xdvi,
26003  okular
26004 \begin_inset Foot
26005 status collapsed
26006
26007 \begin_layout Plain Layout
26008 You might want to set 
26009 \begin_inset Flex Code
26010 status collapsed
26011
26012 \begin_layout Plain Layout
26013 okular --unique
26014 \end_layout
26015
26016 \end_inset
26017
26018  in 
26019 \family sans
26020 Tools\SpecialChar menuseparator
26021 Preferences\SpecialChar menuseparator
26022 File Handling\SpecialChar menuseparator
26023 File
26024 \begin_inset space ~
26025 \end_inset
26026
26027 Formats
26028 \end_layout
26029
26030 \end_inset
26031
26032 ,
26033  qpdfview,
26034  and SumatraPDF
26035 \begin_inset Foot
26036 status collapsed
26037
26038 \begin_layout Plain Layout
26039 SumatraPDF can also use DDE commands through the external program CMCDDE —
26040  downloadable from 
26041 \begin_inset CommandInset href
26042 LatexCommand href
26043 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
26044 literal "false"
26045
26046 \end_inset
26047
26048
26049 \end_layout
26050
26051 \end_inset
26052
26053 .
26054  Others,
26055  such as evince
26056 \begin_inset Foot
26057 status collapsed
26058
26059 \begin_layout Plain Layout
26060 Forward search with evince can be achieved by means of third party helper scripts.
26061  Please refer to 
26062 \begin_inset CommandInset href
26063 LatexCommand href
26064 target "https://wiki.lyx.org/LyX/SyncTeX"
26065 literal "false"
26066
26067 \end_inset
26068
26069  for details.
26070 \end_layout
26071
26072 \end_inset
26073
26074 ,
26075  require some extra tools in order to use forward search.
26076  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
26077  some other viewers – e.
26078 \begin_inset space \thinspace{}
26079 \end_inset
26080
26081 g.
26082  xpdf – allow at least to reload the document and jump to a specific page of the file,
26083  so you can at least navigate 
26084 \begin_inset Quotes eld
26085 \end_inset
26086
26087 near
26088 \begin_inset Quotes erd
26089 \end_inset
26090
26091 .
26092  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
26093  
26094 \end_layout
26095
26096 \begin_layout Standard
26097 Forward search works both with DVI and PDF output.
26098  \SpecialChar LyX
26099  simply checks which preview format you have used before (i.
26100 \begin_inset space \thinspace{}
26101 \end_inset
26102
26103 e.,
26104  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.
26105 \end_layout
26106
26107 \begin_layout Chapter
26108 \SpecialChar LyX
26109  Features needing Extra Software
26110 \end_layout
26111
26112 \begin_layout Section
26113 Checking \SpecialChar TeX
26114
26115 \end_layout
26116
26117 \begin_layout Standard
26118 by 
26119 \noun on
26120 Asger Alstrup
26121 \end_layout
26122
26123 \begin_layout Subsection
26124 Introduction
26125 \end_layout
26126
26127 \begin_layout Standard
26128 If you have the 
26129 \family typewriter
26130 chktex
26131 \family default
26132  program installed
26133 \begin_inset Foot
26134 status collapsed
26135
26136 \begin_layout Plain Layout
26137
26138 \family typewriter
26139 chktex
26140 \family default
26141  is not yet available when you are using the \SpecialChar LaTeX
26142  distribution MiK\SpecialChar TeX
26143 .
26144 \end_layout
26145
26146 \end_inset
26147
26148 ,
26149  you'll find in the 
26150 \family sans
26151 Tools
26152 \family default
26153  menu the entry:
26154  
26155 \family sans
26156 Check
26157 \begin_inset space ~
26158 \end_inset
26159
26160 TeX
26161 \family default
26162 .
26163  You can get 
26164 \family typewriter
26165 chktex
26166 \family default
26167  from CTAN,
26168 \begin_inset Newline newline
26169 \end_inset
26170
26171
26172 \begin_inset CommandInset href
26173 LatexCommand href
26174 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
26175 literal "false"
26176
26177 \end_inset
26178
26179 .
26180 \end_layout
26181
26182 \begin_layout Standard
26183 The 
26184 \family sans
26185 Chk\SpecialChar TeX
26186
26187 \family default
26188  package is a program that was written by 
26189 \begin_inset Flex Noun
26190 status collapsed
26191
26192 \begin_layout Plain Layout
26193 Jens T.
26194 \begin_inset space ~
26195 \end_inset
26196
26197 Berger Thielemann
26198 \end_layout
26199
26200 \end_inset
26201
26202  in frustration because some constructs in \SpecialChar LaTeX
26203  are sometimes non-intuitive,
26204  and easy to forget.
26205  The program runs over your \SpecialChar LaTeX
26206  file,
26207  checks the integrity of the file,
26208  and flags some common errors.
26209  In other technical words,
26210  it is 
26211 \family typewriter
26212 lint
26213 \family default
26214  for \SpecialChar LaTeX
26215 .
26216 \end_layout
26217
26218 \begin_layout Standard
26219 Well,
26220  what is a syntax checker doing in \SpecialChar LyX
26221  which is supposed to produce correct \SpecialChar LaTeX
26222  anyways?
26223  The answer is simple:
26224  Just as 
26225 \family typewriter
26226 Lint
26227 \family default
26228  not only checks the 
26229 \emph on
26230 syntax
26231 \emph default
26232  of C programs,
26233  but also does 
26234 \emph on
26235 semantic
26236 \emph default
26237  checks for type-errors,
26238  
26239 \family sans
26240 Chk\SpecialChar TeX
26241
26242 \family default
26243  catches some common 
26244 \emph on
26245 typographic
26246 \emph default
26247  errors,
26248  in addition to the syntactical ones.
26249  Specifically,
26250  
26251 \family sans
26252 Chk\SpecialChar TeX
26253
26254 \family default
26255  is capable of detecting several common errors,
26256  such as
26257 \end_layout
26258
26259 \begin_layout Itemize
26260 Ellipsis detection:
26261 \begin_inset Newline newline
26262 \end_inset
26263
26264 Use \SpecialChar ldots
26265  instead of ...
26266 \end_layout
26267
26268 \begin_layout Itemize
26269 No space in front of/after parenthesis:
26270 \begin_inset Newline newline
26271 \end_inset
26272
26273 ( wrong spacing )
26274 \end_layout
26275
26276 \begin_layout Itemize
26277 Enforcement of normal space after common abbreviations:
26278 \begin_inset Newline newline
26279 \end_inset
26280
26281 e.
26282 \begin_inset space \thinspace{}
26283 \end_inset
26284
26285 g.
26286 \begin_inset space \space{}
26287 \end_inset
26288
26289 is too wide spacing.
26290 \end_layout
26291
26292 \begin_layout Itemize
26293 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
26294 \begin_inset Newline newline
26295 \end_inset
26296
26297 This is a TEST.
26298  And this is wrong spacing.
26299 \end_layout
26300
26301 \begin_layout Itemize
26302 Space in front of labels and similar commands:
26303 \begin_inset Newline newline
26304 \end_inset
26305
26306 The label should stick right up to the text to avoid falling to a wrong page.
26307  
26308 \begin_inset CommandInset label
26309 LatexCommand label
26310 name "sec:chktex"
26311
26312 \end_inset
26313
26314  
26315 \begin_inset Foot
26316 status collapsed
26317
26318 \begin_layout Plain Layout
26319 This footnote is in danger of falling off to a wrong page
26320 \end_layout
26321
26322 \end_inset
26323
26324  The label is separated too much.
26325 \end_layout
26326
26327 \begin_layout Itemize
26328 Space in front of references,
26329  instead of hard spaces:
26330 \begin_inset Newline newline
26331 \end_inset
26332
26333 If you have bad luck,
26334  the text will break right between the referenced text and reference number,
26335  and that's a pity.
26336  See section 
26337 \begin_inset CommandInset ref
26338 LatexCommand ref
26339 reference "sec:chktex"
26340 nolink "false"
26341
26342 \end_inset
26343
26344 .
26345 \end_layout
26346
26347 \begin_layout Itemize
26348 Use of 
26349 \begin_inset Quotes eld
26350 \end_inset
26351
26352 x
26353 \begin_inset Quotes erd
26354 \end_inset
26355
26356  instead of 
26357 \begin_inset Formula $\times$
26358 \end_inset
26359
26360  between numbers:
26361 \begin_inset Newline newline
26362 \end_inset
26363
26364 2x2 looks cheap compared to 
26365 \begin_inset Formula $2\times2$
26366 \end_inset
26367
26368 .
26369 \end_layout
26370
26371 \begin_layout Standard
26372 and more \SpecialChar ldots
26373  It is an invaluable tool when you are 
26374 \begin_inset Quotes eld
26375 \end_inset
26376
26377 finishing up
26378 \begin_inset Quotes erd
26379 \end_inset
26380
26381  your document before printing,
26382  and you should run it right after the obligatory spelling check,
26383  and before you go fine tuning the typesetting.
26384 \end_layout
26385
26386 \begin_layout Subsection
26387 How to use it
26388 \end_layout
26389
26390 \begin_layout Standard
26391 If you have the program installed,
26392  usage is as simple as choosing 
26393 \family sans
26394 Tools\SpecialChar menuseparator
26395 Check
26396 \begin_inset space ~
26397 \end_inset
26398
26399 TeX
26400 \family default
26401 .
26402  This will make \SpecialChar LyX
26403  generate a \SpecialChar LaTeX
26404  file of your document,
26405  start 
26406 \family sans
26407 Chk\SpecialChar TeX
26408
26409 \family default
26410  to check it,
26411  and then make \SpecialChar LyX
26412  insert 
26413 \begin_inset Quotes eld
26414 \end_inset
26415
26416 error boxes
26417 \begin_inset Quotes erd
26418 \end_inset
26419
26420  with the warnings from 
26421 \family sans
26422 Chk\SpecialChar TeX
26423
26424 \family default
26425 ,
26426  if there were any.
26427  The warnings will be placed close to the point of the mistake,
26428  and you can quickly find them by using the 
26429 \family sans
26430 Navigate\SpecialChar menuseparator
26431 Error
26432 \family default
26433  menu item,
26434  or the shortcut key 
26435 \family sans
26436 C-g
26437 \family default
26438  from the default 
26439 \family typewriter
26440 cua
26441 \family default
26442  bind file.
26443  Open the error boxes by clicking on them with the mouse,
26444  or use the shortcut key 
26445 \family sans
26446 C-i
26447 \family default
26448  from 
26449 \family typewriter
26450 cua
26451 \family default
26452  bindings,
26453  or the corresponding 
26454 \family sans
26455 C-o
26456 \family default
26457  for the alternate 
26458 \family typewriter
26459 emacs
26460 \family default
26461  bind file.
26462  Read the warning and correct the mistake,
26463  if it is a mistake.
26464  If you have trouble understanding what the warning is about,
26465  you can safely ignore it.
26466  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
26467 \family sans
26468 Chk\SpecialChar TeX
26469
26470 \family default
26471 ,
26472  and this gap can make some warnings seem arcane or just plain silly.
26473 \end_layout
26474
26475 \begin_layout Standard
26476 This document is an excellent testing bed for the feature,
26477  and it should provide quite a few warnings for you to fiddle with.
26478  Since computers are only so smart,
26479  expect most of the warnings to be false alarms,
26480  though.
26481 \end_layout
26482
26483 \begin_layout Subsection
26484 How to fine tune it
26485 \end_layout
26486
26487 \begin_layout Standard
26488 Sometimes,
26489  you'll find that 
26490 \family sans
26491 Chk\SpecialChar TeX
26492
26493 \family default
26494  makes more noise than suits your mood.
26495  Then you can choose not to use it,
26496  wait until your mood changes,
26497  or try to customize 
26498 \family sans
26499 Chk\SpecialChar TeX
26500
26501 \family default
26502  to get better along with you.
26503 \end_layout
26504
26505 \begin_layout Standard
26506 Although 
26507 \family sans
26508 Chk\SpecialChar TeX
26509
26510 \family default
26511  
26512 \emph on
26513 is
26514 \emph default
26515  very configurable and extensible,
26516  you should not expect to solve all problems with 
26517 \family sans
26518 Chk\SpecialChar TeX
26519
26520 \family default
26521  in \SpecialChar LyX
26522  this way.
26523  Since \SpecialChar LyX
26524  has to generate a somewhat special \SpecialChar LaTeX
26525  file to be able to match the line numbers from the 
26526 \family sans
26527 Chk\SpecialChar TeX
26528
26529 \family default
26530  output
26531 \begin_inset Foot
26532 status collapsed
26533
26534 \begin_layout Plain Layout
26535 You can inspect the specific output from 
26536 \family sans
26537 chktex
26538 \family default
26539  by using 
26540 \family sans
26541 Document\SpecialChar menuseparator
26542 \SpecialChar LaTeX
26543
26544 \begin_inset space ~
26545 \end_inset
26546
26547 Log
26548 \family default
26549  right after a 
26550 \family sans
26551 chktex
26552 \family default
26553  run.
26554 \end_layout
26555
26556 \end_inset
26557
26558  to the internal document structure,
26559  some of the warnings will not appear correctly.
26560  There are two things you can do about this:
26561 \end_layout
26562
26563 \begin_layout Itemize
26564 Fine tune the 
26565 \family sans
26566 Chk\SpecialChar TeX
26567
26568 \family default
26569  invocation command line in 
26570 \family sans
26571 Tools\SpecialChar menuseparator
26572 Preferences\SpecialChar menuseparator
26573 Output\SpecialChar menuseparator
26574 LaTeX\SpecialChar menuseparator
26575 CheckTeX command
26576 \family default
26577 ,
26578  or the global 
26579 \family sans
26580 Chk\SpecialChar TeX
26581
26582 \family default
26583  installation configuration file (usually with the file 
26584 \family typewriter
26585 chktexrc
26586 \family default
26587 ).
26588  See below to learn what warnings can be enabled and disabled on the command line.
26589 \end_layout
26590
26591 \begin_layout Itemize
26592 Export your document as a raw \SpecialChar LaTeX
26593  file using 
26594 \family sans
26595 File\SpecialChar menuseparator
26596 Export\SpecialChar menuseparator
26597 \SpecialChar LaTeX
26598
26599 \family default
26600  and run 
26601 \family typewriter
26602 chktex
26603 \family default
26604  manually on that.
26605  Invoked in this way,
26606  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
26607 ,
26608  but with a little patience,
26609  you should be able to do it.
26610 \end_layout
26611
26612 \begin_layout Standard
26613 Here follows the warning messages that can be enabled and disabled in 
26614 \family sans
26615 Preferences
26616 \family default
26617 .
26618  Use 
26619 \family typewriter
26620 -n#
26621 \family default
26622  to disable a warning,
26623  and 
26624 \family typewriter
26625 -w#
26626 \family default
26627  to enable a warning.
26628  The emphasized entries are disabled by default,
26629  because the default is "
26630 \family typewriter
26631 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
26632 \family default
26633 ".
26634 \end_layout
26635
26636 \begin_layout Standard
26637 Notice that you should only use the options that enable and disable warnings,
26638  because \SpecialChar LyX
26639  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
26640 \family typewriter
26641 chktex
26642 \family default
26643 .
26644 \end_layout
26645
26646 \begin_layout Enumerate
26647
26648 \size small
26649 \emph on
26650 Command terminated with space.
26651 \end_layout
26652
26653 \begin_layout Enumerate
26654
26655 \size small
26656 Non-breaking space (
26657 \begin_inset Quotes eld
26658 \end_inset
26659
26660
26661 \family typewriter
26662 ~
26663 \family default
26664
26665 \begin_inset Quotes erd
26666 \end_inset
26667
26668 ) should have been used.
26669 \end_layout
26670
26671 \begin_layout Enumerate
26672
26673 \size small
26674 \emph on
26675 You should enclose the previous parenthesis with 
26676 \begin_inset Quotes eld
26677 \end_inset
26678
26679
26680 \family typewriter
26681 {}
26682 \family default
26683
26684 \begin_inset Quotes erd
26685 \end_inset
26686
26687 .
26688 \end_layout
26689
26690 \begin_layout Enumerate
26691
26692 \size small
26693 Italic correction (
26694 \begin_inset Quotes eld
26695 \end_inset
26696
26697
26698 \family typewriter
26699
26700 \backslash
26701 /
26702 \family default
26703
26704 \begin_inset Quotes erd
26705 \end_inset
26706
26707 ) found in non-italic buffer.
26708 \end_layout
26709
26710 \begin_layout Enumerate
26711
26712 \size small
26713 Italic correction (
26714 \begin_inset Quotes eld
26715 \end_inset
26716
26717
26718 \family typewriter
26719
26720 \backslash
26721 /
26722 \family default
26723
26724 \begin_inset Quotes erd
26725 \end_inset
26726
26727 ) found more than once.
26728 \end_layout
26729
26730 \begin_layout Enumerate
26731
26732 \size small
26733 \emph on
26734 No italic correction (
26735 \begin_inset Quotes eld
26736 \end_inset
26737
26738
26739 \family typewriter
26740
26741 \backslash
26742 /
26743 \family default
26744
26745 \begin_inset Quotes erd
26746 \end_inset
26747
26748 ) found.
26749 \end_layout
26750
26751 \begin_layout Enumerate
26752
26753 \size small
26754 Accent command 
26755 \begin_inset Quotes eld
26756 \end_inset
26757
26758
26759 \family typewriter
26760 cmd
26761 \family default
26762
26763 \begin_inset Quotes erd
26764 \end_inset
26765
26766  needs use of 
26767 \begin_inset Quotes eld
26768 \end_inset
26769
26770
26771 \family typewriter
26772 cmd
26773 \family default
26774
26775 \begin_inset Quotes erd
26776 \end_inset
26777
26778 .
26779 \end_layout
26780
26781 \begin_layout Enumerate
26782
26783 \size small
26784 Wrong length of dash may have been used.
26785 \end_layout
26786
26787 \begin_layout Enumerate
26788
26789 \size small
26790 \emph on
26791 \begin_inset Quotes eld
26792 \end_inset
26793
26794
26795 \family typewriter
26796 %s
26797 \family default
26798
26799 \begin_inset Quotes erd
26800 \end_inset
26801
26802  expected,
26803  found 
26804 \begin_inset Quotes eld
26805 \end_inset
26806
26807
26808 \family typewriter
26809 %s
26810 \family default
26811
26812 \begin_inset Quotes erd
26813 \end_inset
26814
26815 .
26816 \end_layout
26817
26818 \begin_layout Enumerate
26819
26820 \size small
26821 Solo 
26822 \begin_inset Quotes eld
26823 \end_inset
26824
26825
26826 \family typewriter
26827 %s
26828 \family default
26829
26830 \begin_inset Quotes erd
26831 \end_inset
26832
26833  found.
26834 \end_layout
26835
26836 \begin_layout Enumerate
26837
26838 \size small
26839 You should use 
26840 \begin_inset Quotes eld
26841 \end_inset
26842
26843
26844 \family typewriter
26845 %s
26846 \family default
26847
26848 \begin_inset Quotes erd
26849 \end_inset
26850
26851  to achieve an ellipsis.
26852 \end_layout
26853
26854 \begin_layout Enumerate
26855
26856 \size small
26857 Inter-word spacing (
26858 \begin_inset Quotes eld
26859 \end_inset
26860
26861
26862 \family typewriter
26863
26864 \backslash
26865
26866 \family default
26867  
26868 \begin_inset Quotes eld
26869 \end_inset
26870
26871 ) should perhaps be used.
26872 \end_layout
26873
26874 \begin_layout Enumerate
26875
26876 \size small
26877 Inter-sentence spacing (
26878 \begin_inset Quotes eld
26879 \end_inset
26880
26881
26882 \family typewriter
26883
26884 \backslash
26885 @
26886 \family default
26887
26888 \begin_inset Quotes erd
26889 \end_inset
26890
26891 ) should perhaps be used.
26892 \end_layout
26893
26894 \begin_layout Enumerate
26895
26896 \size small
26897 Could not find argument for command.
26898 \end_layout
26899
26900 \begin_layout Enumerate
26901
26902 \size small
26903 No match found for 
26904 \begin_inset Quotes eld
26905 \end_inset
26906
26907
26908 \family typewriter
26909 %s
26910 \family default
26911
26912 \begin_inset Quotes erd
26913 \end_inset
26914
26915 .
26916 \end_layout
26917
26918 \begin_layout Enumerate
26919
26920 \size small
26921 Math mode still on at end of \SpecialChar LaTeX
26922  file.
26923 \end_layout
26924
26925 \begin_layout Enumerate
26926
26927 \size small
26928 Number of 
26929 \begin_inset Quotes eld
26930 \end_inset
26931
26932
26933 \family typewriter
26934 char
26935 \family default
26936
26937 \begin_inset Quotes erd
26938 \end_inset
26939
26940  doesn't match the number of 
26941 \begin_inset Quotes eld
26942 \end_inset
26943
26944
26945 \family typewriter
26946 char
26947 \family default
26948
26949 \begin_inset Quotes erd
26950 \end_inset
26951
26952 .
26953 \end_layout
26954
26955 \begin_layout Enumerate
26956
26957 \size small
26958 You should use either 
26959 \family typewriter
26960
26961 \begin_inset Quotes eld
26962 \end_inset
26963
26964
26965 \family default
26966  or 
26967 \family typewriter
26968
26969 \begin_inset Quotes erd
26970 \end_inset
26971
26972
26973 \family default
26974  as an alternative to 
26975 \begin_inset Quotes eld
26976 \end_inset
26977
26978
26979 \family typewriter
26980 "
26981 \family default
26982
26983 \begin_inset Quotes erd
26984 \end_inset
26985
26986 .
26987 \end_layout
26988
26989 \begin_layout Enumerate
26990
26991 \size small
26992 You should use "
26993 \family typewriter
26994 '
26995 \family default
26996 " (ASCII 39) instead of "
26997 \family typewriter
26998 ´
26999 \family default
27000 " (ASCII 180).
27001 \end_layout
27002
27003 \begin_layout Enumerate
27004
27005 \size small
27006 User-specified pattern found.
27007 \end_layout
27008
27009 \begin_layout Enumerate
27010
27011 \size small
27012 This command might not be intended.
27013 \end_layout
27014
27015 \begin_layout Enumerate
27016
27017 \size small
27018 \emph on
27019 Comment displayed.
27020 \end_layout
27021
27022 \begin_layout Enumerate
27023
27024 \size small
27025 Either 
27026 \family typewriter
27027 ''
27028 \backslash
27029 ,'
27030 \family default
27031  or 
27032 \family typewriter
27033 '
27034 \backslash
27035 ,''
27036 \family default
27037  will look better.
27038 \end_layout
27039
27040 \begin_layout Enumerate
27041
27042 \size small
27043 Delete this space to maintain correct page references.
27044 \end_layout
27045
27046 \begin_layout Enumerate
27047
27048 \size small
27049 \emph on
27050 You might wish to put this between a pair of 
27051 \begin_inset Quotes eld
27052 \end_inset
27053
27054
27055 \family typewriter
27056 {}
27057 \family default
27058
27059 \begin_inset Quotes erd
27060 \end_inset
27061
27062 .
27063 \end_layout
27064
27065 \begin_layout Enumerate
27066
27067 \size small
27068 You ought to remove spaces in front of punctuation.
27069 \end_layout
27070
27071 \begin_layout Enumerate
27072
27073 \size small
27074 Could not execute \SpecialChar LaTeX
27075  command.
27076 \end_layout
27077
27078 \begin_layout Enumerate
27079
27080 \size small
27081 Don't use 
27082 \family typewriter
27083
27084 \backslash
27085 /
27086 \family default
27087  in front of small punctuation.
27088 \end_layout
27089
27090 \begin_layout Enumerate
27091
27092 \family typewriter
27093 \size small
27094 $
27095 \backslash
27096 times$
27097 \family default
27098  may look prettier here.
27099 \end_layout
27100
27101 \begin_layout Enumerate
27102
27103 \size small
27104 \emph on
27105 Multiple spaces detected in output.
27106 \end_layout
27107
27108 \begin_layout Enumerate
27109
27110 \size small
27111 This text may be ignored.
27112 \end_layout
27113
27114 \begin_layout Enumerate
27115
27116 \size small
27117 Use 
27118 \family typewriter
27119
27120 \begin_inset Quotes eld
27121 \end_inset
27122
27123
27124 \family default
27125  to begin quotation,
27126  not 
27127 \family typewriter
27128 '
27129 \family default
27130 .
27131 \end_layout
27132
27133 \begin_layout Enumerate
27134
27135 \size small
27136 Use 
27137 \family typewriter
27138 '
27139 \family default
27140  to end quotation,
27141  not 
27142 \family typewriter
27143
27144 \begin_inset Quotes eld
27145 \end_inset
27146
27147
27148 \family default
27149 .
27150 \end_layout
27151
27152 \begin_layout Enumerate
27153
27154 \size small
27155 Don't mix quotes.
27156 \end_layout
27157
27158 \begin_layout Enumerate
27159
27160 \size small
27161 You should perhaps use 
27162 \begin_inset Quotes eld
27163 \end_inset
27164
27165
27166 \family typewriter
27167 cmd
27168 \family default
27169
27170 \begin_inset Quotes erd
27171 \end_inset
27172
27173  instead.
27174 \end_layout
27175
27176 \begin_layout Enumerate
27177
27178 \size small
27179 You should put a space in front of/after parenthesis.
27180 \end_layout
27181
27182 \begin_layout Enumerate
27183
27184 \size small
27185 You should avoid spaces in front of/after parenthesis.
27186 \end_layout
27187
27188 \begin_layout Enumerate
27189
27190 \size small
27191 \emph on
27192 You should not use punctuation in front of/after quotes.
27193 \end_layout
27194
27195 \begin_layout Enumerate
27196
27197 \size small
27198 Double space found.
27199 \end_layout
27200
27201 \begin_layout Enumerate
27202
27203 \size small
27204 You should put punctuation outside inner/inside display math mode.
27205 \end_layout
27206
27207 \begin_layout Enumerate
27208
27209 \size small
27210 You ought to not use primitive \SpecialChar TeX
27211  in \SpecialChar LaTeX
27212  code.
27213 \end_layout
27214
27215 \begin_layout Enumerate
27216
27217 \size small
27218 You should remove spaces in front of 
27219 \begin_inset Quotes eld
27220 \end_inset
27221
27222
27223 \family typewriter
27224 %s
27225 \family default
27226
27227 \begin_inset Quotes erd
27228 \end_inset
27229
27230
27231 \end_layout
27232
27233 \begin_layout Enumerate
27234
27235 \size small
27236 \begin_inset Quotes eld
27237 \end_inset
27238
27239
27240 \family typewriter
27241 %s
27242 \family default
27243
27244 \begin_inset Quotes erd
27245 \end_inset
27246
27247  is normally not followed by 
27248 \begin_inset Quotes eld
27249 \end_inset
27250
27251
27252 \family typewriter
27253 %c
27254 \family default
27255
27256 \begin_inset Quotes erd
27257 \end_inset
27258
27259 .
27260 \end_layout
27261
27262 \begin_layout Standard
27263 In later versions of \SpecialChar LyX
27264 ,
27265  we hope to provide a more complete interface to this tool (and it's smaller cousin 
27266 \family typewriter
27267 lacheck
27268 \family default
27269 ) to exploit the full power of it.
27270  But it's not exactly useless as it is now:
27271  go try it on one of your existing documents of a certain length and be surprised.
27272 \end_layout
27273
27274 \begin_layout Section
27275 Version Control in \SpecialChar LyX
27276
27277 \end_layout
27278
27279 \begin_layout Standard
27280 by
27281 \noun on
27282  Lars Gullik Bjønnes 
27283 \noun default
27284 and 
27285 \noun on
27286 Pavel Sanda
27287 \end_layout
27288
27289 \begin_layout Subsection
27290 Introduction
27291 \end_layout
27292
27293 \begin_layout Standard
27294 \SpecialChar LyX
27295  supports some of the most basic RCS/CVS/SVN/GIT commands.
27296  If you need something a bit more sophisticated you will have to do that manually in a terminal or your favourite client.
27297 \end_layout
27298
27299 \begin_layout Standard
27300 Also note that CVS support is not as good as subversion support,
27301  so we advise using SVN instead.
27302  A good place to start learning Subversion is the SVN Book
27303 \begin_inset Foot
27304 status collapsed
27305
27306 \begin_layout Plain Layout
27307 \begin_inset CommandInset href
27308 LatexCommand href
27309 target "http://svnbook.red-bean.com/"
27310 literal "false"
27311
27312 \end_inset
27313
27314
27315 \end_layout
27316
27317 \end_inset
27318
27319 .
27320  In the case of RCS you should read 
27321 \begin_inset Quotes eld
27322 \end_inset
27323
27324 rcsintro
27325 \begin_inset Quotes erd
27326 \end_inset
27327
27328  (a man file,
27329  read it with 
27330 \family typewriter
27331 man rcsintro
27332 \family default
27333 ).
27334  This file describes all the basic features of RCS.
27335  You should especially notice the comment about a RCS directory,
27336  and the notion of a master RCS file (the file ending in 
27337 \family typewriter
27338 ,v
27339 \family default
27340 ).
27341 \end_layout
27342
27343 \begin_layout Standard
27344 Before you begin to use the version control features in \SpecialChar LyX
27345 ,
27346  you should be familiar with RCS/CVS/SVN/GIT usage.
27347  The implementation in \SpecialChar LyX
27348  assumes a recent version of the GNU RCS or CVS/SVN package —
27349  no guarantees are made for older versions.
27350  Most of the log messages are not currently displayed after operations —
27351  you can check them in the Messages pane if you are unsure.
27352  Regular users of version control will appreciate the VC toolbar,
27353  which can be enabled via 
27354 \family sans
27355 View\SpecialChar menuseparator
27356 Toolbars\SpecialChar menuseparator
27357 Version
27358 \begin_inset space ~
27359 \end_inset
27360
27361 Control
27362 \family default
27363 .
27364 \end_layout
27365
27366 \begin_layout Standard
27367 For introducing your own external commands consult 
27368 \begin_inset Flex Code
27369 status collapsed
27370
27371 \begin_layout Plain Layout
27372 vc-command
27373 \end_layout
27374
27375 \end_inset
27376
27377  in the manual 
27378 \emph on
27379 \SpecialChar LyX
27380  Functions
27381 \emph default
27382 .
27383 \end_layout
27384
27385 \begin_layout Standard
27386 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
27387 \family sans
27388 Document\SpecialChar menuseparator
27389 Compressed
27390 \family default
27391  if it is checked):
27392  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
27393  Compressed LyX documents are binary files,
27394  which cannot be merged by version control systems.
27395  Also to avoid unnecessary merge conflicts we advise to disable 
27396 \family sans
27397 Document\SpecialChar menuseparator
27398 Settings\SpecialChar menuseparator
27399 Output\SpecialChar menuseparator
27400 Save transient properties
27401 \family default
27402  when more users work on the same document.
27403 \end_layout
27404
27405 \begin_layout Subsection
27406 RCS commands in \SpecialChar LyX
27407
27408 \end_layout
27409
27410 \begin_layout Standard
27411 The following sections describe the RCS commands supported by \SpecialChar LyX
27412 .
27413  You can find them in the 
27414 \family sans
27415 File\SpecialChar menuseparator
27416 Version
27417 \begin_inset space ~
27418 \end_inset
27419
27420 Control
27421 \family default
27422  submenu.
27423  \SpecialChar LyX
27424  was tested against RCS 5.7/5.8/5.10.
27425 \end_layout
27426
27427 \begin_layout Subsubsection
27428
27429 \family sans
27430 Register
27431 \end_layout
27432
27433 \begin_layout Standard
27434 If your document is not under revision control,
27435  this is the only item shown in the menu.
27436  And if it is under revision control,
27437  the 
27438 \family sans
27439 Register
27440 \family default
27441  item is not visible.
27442  
27443 \end_layout
27444
27445 \begin_layout Standard
27446 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
27447  You are asked interactively to supply an initial description of the document.
27448  The document is now set in Read-Only mode and you have to 
27449 \family sans
27450 Check
27451 \begin_inset space ~
27452 \end_inset
27453
27454 Out
27455 \begin_inset space ~
27456 \end_inset
27457
27458 For
27459 \begin_inset space ~
27460 \end_inset
27461
27462 Edit
27463 \family default
27464 ,
27465  before making any changes to it.
27466  A document under revision control has a 
27467 \begin_inset Quotes eld
27468 \end_inset
27469
27470 [RCS:<version> <locker>]
27471 \begin_inset Quotes erd
27472 \end_inset
27473
27474  item tagged to the filename in the minibuffer.
27475 \end_layout
27476
27477 \begin_layout Standard
27478 RCS command that is run:
27479 \end_layout
27480
27481 \begin_layout LyX-Code
27482
27483 \family typewriter
27484 ci -q -u -i -t-"<initial description>" <file-name>
27485 \end_layout
27486
27487 \begin_layout Standard
27488 Read 
27489 \family typewriter
27490 man ci
27491 \family default
27492  to understand the switches.
27493  
27494 \end_layout
27495
27496 \begin_layout Subsubsection
27497
27498 \family sans
27499 Check In Changes
27500 \end_layout
27501
27502 \begin_layout Standard
27503 When you are finished editing a file,
27504  you check in your changes.
27505  When you do this,
27506  you are asked for a description of the changes.
27507  This is stored in the history log.
27508  The version number is bumped,
27509  your changes are applied to the master RCS file,
27510  the document is unlocked and set to Read-Only mode.
27511 \end_layout
27512
27513 \begin_layout Itemize
27514 RCS command:
27515  
27516 \family typewriter
27517 ci -q -u -m"<description>" <file-name>
27518 \end_layout
27519
27520 \begin_layout Subsubsection
27521
27522 \family sans
27523 Check Out For Edit
27524 \end_layout
27525
27526 \begin_layout Standard
27527 By doing this you lock the document so that only you can edit it.
27528  This will also make the document Read-Write only for you.
27529  You will usually continue editing for a while and when you are finished you check in your changes.
27530  The status line is changed to reflect that you have locked the file.
27531 \end_layout
27532
27533 \begin_layout Itemize
27534 RCS command:
27535  
27536 \family typewriter
27537 co -q -l <file-name>
27538 \end_layout
27539
27540 \begin_layout Subsubsection
27541
27542 \family sans
27543 Revert To Repository Version
27544 \end_layout
27545
27546 \begin_layout Standard
27547 This will discard all changes made to the document since the last check in.
27548  You get a warning before changes are discarded.
27549 \end_layout
27550
27551 \begin_layout Itemize
27552 RCS command:
27553  
27554 \family typewriter
27555 co -f -u<version> <file-name>
27556 \end_layout
27557
27558 \begin_layout Subsubsection
27559
27560 \family sans
27561 Copy
27562 \end_layout
27563
27564 \begin_layout Standard
27565 This will create a copy of the current document.
27566  Since RCS does not support copy operations natively,
27567  the version history is not preserved,
27568  and the copy is added as a new file.
27569  It requires a clean document without any changes since the last checkin.
27570  You are asked for a file name and a description of the copy operation.
27571  After that the copy is created,
27572  both locally and in the repository.
27573  If the parent directories of the copied and original document differ,
27574  all relative paths of included files of the copy are adjusted (like in 
27575 \family sans
27576 File\SpecialChar menuseparator
27577 Save As
27578 \family default
27579 \SpecialChar ldots
27580 ).
27581  Finally,
27582  the copy is loaded instead of the original document.
27583 \end_layout
27584
27585 \begin_layout Labeling
27586 \labelwidthstring 00.00.0000
27587 RCS
27588 \begin_inset space ~
27589 \end_inset
27590
27591 commands:
27592  
27593 \begin_inset space ~
27594 \end_inset
27595
27596
27597 \begin_inset Newline newline
27598 \end_inset
27599
27600 Copy 
27601 \begin_inset Flex Code
27602 status collapsed
27603
27604 \begin_layout Plain Layout
27605
27606 \family typewriter
27607 \begin_inset Quotes qld
27608 \end_inset
27609
27610 <file-name>
27611 \begin_inset Quotes qld
27612 \end_inset
27613
27614
27615 \end_layout
27616
27617 \end_inset
27618
27619  to 
27620 \begin_inset Flex Code
27621 status collapsed
27622
27623 \begin_layout Plain Layout
27624
27625 \family typewriter
27626 \begin_inset Quotes qld
27627 \end_inset
27628
27629 <new-file-name>
27630 \begin_inset Quotes qld
27631 \end_inset
27632
27633
27634 \end_layout
27635
27636 \end_inset
27637
27638
27639 \begin_inset Newline newline
27640 \end_inset
27641
27642
27643 \begin_inset Flex Code
27644 status collapsed
27645
27646 \begin_layout Plain Layout
27647 ci -q -u 
27648 \family typewriter
27649 -i 
27650 \begin_inset Quotes qld
27651 \end_inset
27652
27653 <new-file-name>
27654 \begin_inset Quotes qld
27655 \end_inset
27656
27657
27658 \end_layout
27659
27660 \end_inset
27661
27662
27663 \end_layout
27664
27665 \begin_layout Subsubsection
27666
27667 \family sans
27668 Undo Last Checkin
27669 \end_layout
27670
27671 \begin_layout Standard
27672 This makes as if the last check in never happened.
27673  No changes are made to the document loaded into \SpecialChar LyX
27674 ,
27675  but the last version is removed from the master RCS file.
27676 \end_layout
27677
27678 \begin_layout Itemize
27679 RCS command:
27680  
27681 \family typewriter
27682 rcs -o<version> <file-name>
27683 \end_layout
27684
27685 \begin_layout Subsubsection
27686
27687 \family sans
27688 Show History
27689 \end_layout
27690
27691 \begin_layout Standard
27692 This shows the complete history of the RCS document.
27693  The output of 
27694 \family typewriter
27695 rlog <file-name>
27696 \family default
27697  is shown in a browser.
27698  See 
27699 \family typewriter
27700 man rlog
27701 \family default
27702  for more info.
27703 \end_layout
27704
27705 \begin_layout Subsubsection
27706 Revision info
27707 \end_layout
27708
27709 \begin_layout Standard
27710 \SpecialChar LyX
27711  supports RCS version number,
27712  author name,
27713  date and time of last commit.
27714  All those are extracted from 
27715 \family typewriter
27716 rlog -r <file-name>
27717 \family default
27718 .
27719  See 
27720 \begin_inset CommandInset ref
27721 LatexCommand ref
27722 reference "subsec:VCS-Revision-Information"
27723 nolink "false"
27724
27725 \end_inset
27726
27727  for details.
27728 \end_layout
27729
27730 \begin_layout Subsection
27731 CVS commands in \SpecialChar LyX
27732
27733 \end_layout
27734
27735 \begin_layout Standard
27736 A subset of CVS operations is supported by \SpecialChar LyX
27737 .
27738  You can find the commands in the 
27739 \family sans
27740 File\SpecialChar menuseparator
27741 Version
27742 \begin_inset space ~
27743 \end_inset
27744
27745 Control
27746 \family default
27747  submenu.
27748  The version control system SVN is more powerful,
27749  so please use it instead of CVS if possible.
27750 \end_layout
27751
27752 \begin_layout Subsubsection
27753
27754 \family sans
27755 General CVS usage
27756 \end_layout
27757
27758 \begin_layout Standard
27759 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
27760  If you're using a client-server setup you may need to login before doing the first repository checkout.
27761 \end_layout
27762
27763 \begin_layout Standard
27764 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.
27765  Standard CVS repositories don't operate with a file locking mechanism.
27766  This may be surprising,
27767  but conflicts only occur if people disagree on the proper content of the same part of a document.
27768  So,
27769  if co-workers are used to communicate regularly,
27770  these conflicts occur rarely.
27771  If they don't communicate they have a fundamental problem anyway.
27772  Nevertheless some people like to work with so called 
27773 \begin_inset Quotes eld
27774 \end_inset
27775
27776 reserved checkouts
27777 \begin_inset Quotes erd
27778 \end_inset
27779
27780 .
27781  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.
27782  When the changes are checked in the working copy returns to readonly state.
27783  With \SpecialChar LyX
27784  one has to edit the 
27785 \begin_inset Flex Code
27786 status collapsed
27787
27788 \begin_layout Plain Layout
27789 .cvsrc
27790 \end_layout
27791
27792 \end_inset
27793
27794  file and add the line 
27795 \begin_inset Flex Code
27796 status collapsed
27797
27798 \begin_layout Plain Layout
27799 cvs -r
27800 \end_layout
27801
27802 \end_inset
27803
27804  to work with reserved checkouts.
27805  The benefit is the possibility to see who is using a writable copy of some document.
27806  It's not guaranteed only one user makes a copy writable.
27807 \end_layout
27808
27809 \begin_layout Standard
27810 \SpecialChar LyX
27811  tries to guess if you're using reserved or non-reserved checkouts.
27812  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.
27813  When a reserved checkout is detected you have to use 
27814 \begin_inset Flex Noun
27815 status collapsed
27816
27817 \begin_layout Plain Layout
27818 Check Out
27819 \end_layout
27820
27821 \end_inset
27822
27823  to make your working copy writable if it's readonly.
27824  After doing so the 
27825 \begin_inset Flex Noun
27826 status collapsed
27827
27828 \begin_layout Plain Layout
27829 Check In
27830 \end_layout
27831
27832 \end_inset
27833
27834  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
27835 \end_layout
27836
27837 \begin_layout Standard
27838 More information about CVS can be found here 
27839 \begin_inset Flex URL
27840 status collapsed
27841
27842 \begin_layout Plain Layout
27843
27844 http://www.nongnu.org/cvs
27845 \end_layout
27846
27847 \end_inset
27848
27849  and here 
27850 \begin_inset Flex URL
27851 status collapsed
27852
27853 \begin_layout Plain Layout
27854
27855 http://ximbiot.com/cvs
27856 \end_layout
27857
27858 \end_inset
27859
27860 .
27861 \end_layout
27862
27863 \begin_layout Standard
27864 Read 
27865 \family typewriter
27866 man cvs
27867 \family default
27868  to understand the sub-commands and the switches mentioned below.
27869 \end_layout
27870
27871 \begin_layout Subsubsection
27872
27873 \family sans
27874 Register
27875 \end_layout
27876
27877 \begin_layout Standard
27878 If your document is not under revision control,
27879  this is the only item shown in the menu.
27880  And if it is under revision control,
27881  the 
27882 \family sans
27883 Register
27884 \family default
27885  item is not visible.
27886  
27887 \end_layout
27888
27889 \begin_layout Standard
27890 This command registers in CVS your document 
27891 \begin_inset Flex Strong
27892 status collapsed
27893
27894 \begin_layout Plain Layout
27895
27896 \emph on
27897 only
27898 \end_layout
27899
27900 \end_inset
27901
27902  in the case you have already the documents directory under CVS control (in particular 
27903 \family typewriter
27904 CVS/Entries
27905 \family default
27906  file exists).
27907  This means you have to create or checkout the archive by yourself using external tools.
27908  (In case you forget that step \SpecialChar LyX
27909  registers the document with RCS.)
27910 \end_layout
27911
27912 \begin_layout Standard
27913 Then you are asked interactively to supply an initial description of the document.
27914  Don't forget that registered file is not yet checked in.
27915 \end_layout
27916
27917 \begin_layout Standard
27918 CVS command that is run:
27919  
27920 \family typewriter
27921 cvs -q add -m"<entered message>" "<file-name>"
27922 \end_layout
27923
27924 \begin_layout Standard
27925 The term 
27926 \family typewriter
27927 "<file-name>"
27928 \family default
27929  above and for all other CVS commands is an abbreviation for 
27930 \begin_inset Quotes eld
27931 \end_inset
27932
27933 change the current working directory to file location and use the file name without path component as argument
27934 \begin_inset Quotes erd
27935 \end_inset
27936
27937 .
27938 \end_layout
27939
27940 \begin_layout Subsubsection
27941
27942 \family sans
27943 Check In Changes
27944 \end_layout
27945
27946 \begin_layout Standard
27947 When you are finished editing a file,
27948  you commit your changes.
27949  When you do this and you had changed the document,
27950  you are asked for a description of the changes.
27951  After that changes are written to the repository.
27952  In case you didn't change the document and a reserved checkout is detected the reservation made on 
27953 \begin_inset Flex Noun
27954 status collapsed
27955
27956 \begin_layout Plain Layout
27957 Check Out
27958 \end_layout
27959
27960 \end_inset
27961
27962  is undone.
27963 \end_layout
27964
27965 \begin_layout Labeling
27966 \labelwidthstring 00.00.0000
27967 CVS
27968 \begin_inset space ~
27969 \end_inset
27970
27971 command:
27972  
27973 \begin_inset space ~
27974 \end_inset
27975
27976
27977 \begin_inset Newline newline
27978 \end_inset
27979
27980
27981 \begin_inset Flex Code
27982 status collapsed
27983
27984 \begin_layout Plain Layout
27985 cvs 
27986 \family typewriter
27987 -q commit -m"<description>" "<file-name>"
27988 \end_layout
27989
27990 \end_inset
27991
27992  or
27993 \begin_inset Newline newline
27994 \end_inset
27995
27996
27997 \begin_inset Flex Code
27998 status collapsed
27999
28000 \begin_layout Plain Layout
28001 cvs -q unedit 
28002 \family typewriter
28003 "<file-name>"
28004 \end_layout
28005
28006 \end_inset
28007
28008
28009 \end_layout
28010
28011 \begin_layout Subsubsection
28012
28013 \family sans
28014 Check Out Changes
28015 \end_layout
28016
28017 \begin_layout Standard
28018 When you are sharing a repository with others,
28019  you may have to incorporate their changes into your working copy.
28020 \end_layout
28021
28022 \begin_layout Standard
28023 CVS command:
28024  
28025 \family typewriter
28026 cvs -q update "<file-name>"
28027 \end_layout
28028
28029 \begin_layout Standard
28030 If a readonly checkout is detected the working copy is made writable and reserved.
28031 \end_layout
28032
28033 \begin_layout Standard
28034 CVS command:
28035  
28036 \family typewriter
28037 cvs -q edit "<file-name>"
28038 \end_layout
28039
28040 \begin_layout Subsubsection
28041
28042 \family sans
28043 Revert To Repository Version
28044 \end_layout
28045
28046 \begin_layout Standard
28047 This will discard all changes made to the document since the last check in.
28048  You get a warning before changes are discarded.
28049  Firstly the file is deleted,
28050  secondly CVS update command is run.
28051 \end_layout
28052
28053 \begin_layout Standard
28054 CVS command:
28055  
28056 \family typewriter
28057 cvs -q update "<file-name>"
28058 \end_layout
28059
28060 \begin_layout Standard
28061 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
28062 \end_layout
28063
28064 \begin_layout Standard
28065 CVS command:
28066  
28067 \family typewriter
28068 cvs -q unedit "<file-name>"
28069 \end_layout
28070
28071 \begin_layout Subsubsection
28072
28073 \family sans
28074 Copy
28075 \end_layout
28076
28077 \begin_layout Standard
28078 This will create a copy of the current document.
28079  Since CVS does not support copy operations natively,
28080  the version history is not preserved,
28081  and the copy is added as a new file.
28082  It requires a clean document without any changes since the last checkin.
28083  You are asked for a file name and a description of the copy operation.
28084  After that the copy is created,
28085  both locally and in the repository.
28086  If the parent directories of the copied and original document differ,
28087  all relative paths of included files of the copy are adjusted (like in 
28088 \family sans
28089 File\SpecialChar menuseparator
28090 Save As
28091 \family default
28092 \SpecialChar ldots
28093 ).
28094  Finally,
28095  the copy is loaded instead of the original document.
28096 \end_layout
28097
28098 \begin_layout Labeling
28099 \labelwidthstring 00.00.0000
28100 CVS
28101 \begin_inset space ~
28102 \end_inset
28103
28104 commands:
28105  
28106 \begin_inset space ~
28107 \end_inset
28108
28109
28110 \begin_inset Newline newline
28111 \end_inset
28112
28113 Copy 
28114 \begin_inset Flex Code
28115 status collapsed
28116
28117 \begin_layout Plain Layout
28118 "<file-name>"
28119 \end_layout
28120
28121 \end_inset
28122
28123  to 
28124 \begin_inset Flex Code
28125 status collapsed
28126
28127 \begin_layout Plain Layout
28128 "<new-file-name>"
28129 \end_layout
28130
28131 \end_inset
28132
28133
28134 \begin_inset Newline newline
28135 \end_inset
28136
28137
28138 \begin_inset Flex Code
28139 status collapsed
28140
28141 \begin_layout Plain Layout
28142 cvs -q add "<new-file-name>"
28143 \end_layout
28144
28145 \end_inset
28146
28147
28148 \end_layout
28149
28150 \begin_layout Subsubsection
28151
28152 \family sans
28153 Rename
28154 \end_layout
28155
28156 \begin_layout Standard
28157 This will rename the current document.
28158  Since CVS does not support rename operations natively,
28159  the version history is not preserved,
28160  the renamed document is added as a new file,
28161  and the original document is deleted.
28162  It requires a clean document without any changes since the last checkin.
28163  You are asked for a file name and a description of the rename operation.
28164  After that the document is renamed,
28165  both locally and in the repository.
28166  If the parent directories of the new and old file names differ,
28167  all relative paths of included files are adjusted (like in 
28168 \family sans
28169 File\SpecialChar menuseparator
28170 Save As
28171 \family default
28172 \SpecialChar ldots
28173 ).
28174  Finally,
28175  the document is reloaded using the new name.
28176 \end_layout
28177
28178 \begin_layout Labeling
28179 \labelwidthstring 00.00.0000
28180 CVS
28181 \begin_inset space ~
28182 \end_inset
28183
28184 commands:
28185  
28186 \begin_inset space ~
28187 \end_inset
28188
28189
28190 \begin_inset Newline newline
28191 \end_inset
28192
28193 Rename 
28194 \begin_inset Flex Code
28195 status collapsed
28196
28197 \begin_layout Plain Layout
28198 "<file-name>"
28199 \end_layout
28200
28201 \end_inset
28202
28203  to 
28204 \begin_inset Flex Code
28205 status collapsed
28206
28207 \begin_layout Plain Layout
28208 "<new-file-name>"
28209 \end_layout
28210
28211 \end_inset
28212
28213
28214 \begin_inset Newline newline
28215 \end_inset
28216
28217
28218 \begin_inset Flex Code
28219 status collapsed
28220
28221 \begin_layout Plain Layout
28222 cvs -q add "<new-file-name>"
28223 \end_layout
28224
28225 \end_inset
28226
28227
28228 \begin_inset Newline newline
28229 \end_inset
28230
28231
28232 \begin_inset Flex Code
28233 status collapsed
28234
28235 \begin_layout Plain Layout
28236 cvs -q remove "<file-name>"
28237 \end_layout
28238
28239 \end_inset
28240
28241
28242 \end_layout
28243
28244 \begin_layout Subsubsection
28245 Update of the local directory checkout from repository
28246 \end_layout
28247
28248 \begin_layout Standard
28249 Once your documents gets more complex,
28250  containing sub-documents and pictures,
28251  including external 
28252 \begin_inset Flex Code
28253 status collapsed
28254
28255 \begin_layout Plain Layout
28256 .tex
28257 \end_layout
28258
28259 \end_inset
28260
28261  files and so on using version control becomes more complicated.
28262  \SpecialChar LyX
28263  supports updating the whole tree in which resides the document.
28264  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.
28265  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28266  It's good practice anyway to store multipart documents in an extra directory.
28267 \end_layout
28268
28269 \begin_layout Standard
28270 The 
28271 \begin_inset Flex Code
28272 status collapsed
28273
28274 \begin_layout Plain Layout
28275 Update local directory from repository
28276 \end_layout
28277
28278 \end_inset
28279
28280  command updates the whole directory.
28281  If local changes are detected user is warned before update starts.
28282  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
28283  You have to review and correct the result of the merge.
28284  You'll find the conflicts enclosed in pairs of 
28285 \begin_inset Flex Code
28286 status collapsed
28287
28288 \begin_layout Plain Layout
28289 <<<<<<<
28290 \end_layout
28291
28292 \end_inset
28293
28294  and 
28295 \begin_inset Flex Code
28296 status collapsed
28297
28298 \begin_layout Plain Layout
28299 >>>>>>>
28300 \end_layout
28301
28302 \end_inset
28303
28304  separated by 
28305 \begin_inset Flex Code
28306 status collapsed
28307
28308 \begin_layout Plain Layout
28309 =======
28310 \end_layout
28311
28312 \end_inset
28313
28314 .
28315  The first part is your version as before the update operation with the document name prepended.
28316  The second one is the repository version with the version number after the sequence of 
28317 \begin_inset Flex Code
28318 status collapsed
28319
28320 \begin_layout Plain Layout
28321 >
28322 \end_layout
28323
28324 \end_inset
28325
28326  signs.
28327 \end_layout
28328
28329 \begin_layout Labeling
28330 \labelwidthstring 00.00.0000
28331 CVS
28332 \begin_inset space ~
28333 \end_inset
28334
28335 commands:
28336  
28337 \begin_inset space ~
28338 \end_inset
28339
28340
28341 \begin_inset Newline newline
28342 \end_inset
28343
28344
28345 \begin_inset Flex Code
28346 status collapsed
28347
28348 \begin_layout Plain Layout
28349 cd $path;
28350  cvs diff 
28351 \family typewriter
28352 "."
28353 \end_layout
28354
28355 \end_inset
28356
28357  (Ask if changes are detected.)
28358 \begin_inset Newline newline
28359 \end_inset
28360
28361
28362 \begin_inset Flex Code
28363 status collapsed
28364
28365 \begin_layout Plain Layout
28366 cd $path;
28367  cvs -q update 
28368 \family typewriter
28369 "."
28370 \end_layout
28371
28372 \end_inset
28373
28374
28375 \end_layout
28376
28377 \begin_layout Standard
28378 where 
28379 \begin_inset Flex Code
28380 status collapsed
28381
28382 \begin_layout Plain Layout
28383 $path
28384 \end_layout
28385
28386 \end_inset
28387
28388  stands for the path to the document.
28389 \end_layout
28390
28391 \begin_layout Subsubsection
28392
28393 \family sans
28394 Show History
28395 \end_layout
28396
28397 \begin_layout Standard
28398 This shows the complete history of the CVS document.
28399  The output of 
28400 \family typewriter
28401 cvs log "<file-name>"
28402 \family default
28403  is shown in a browser.
28404 \end_layout
28405
28406 \begin_layout Subsubsection
28407 Revision info
28408 \end_layout
28409
28410 \begin_layout Standard
28411 \SpecialChar LyX
28412  supports CVS version number,
28413  author name,
28414  date and time of last commit.
28415  All those are extracted from 
28416 \family typewriter
28417 cvs log -r <file-name>
28418 \family default
28419 .
28420  See 
28421 \begin_inset CommandInset ref
28422 LatexCommand ref
28423 reference "subsec:VCS-Revision-Information"
28424 nolink "false"
28425
28426 \end_inset
28427
28428  for details.
28429 \end_layout
28430
28431 \begin_layout Subsection
28432 SVN commands in \SpecialChar LyX
28433
28434 \end_layout
28435
28436 \begin_layout Standard
28437 SVN is now partially supported by \SpecialChar LyX
28438 .
28439  You can find the commands in the 
28440 \family sans
28441 File\SpecialChar menuseparator
28442 Version
28443 \begin_inset space ~
28444 \end_inset
28445
28446 Control
28447 \family default
28448  submenu.
28449  Please note that if you use password protected access to repository via ssh,
28450  you will be asked in terminal window.
28451  \SpecialChar LyX
28452  was tested against SVN 1.5,
28453  1.6,
28454  1.7 and 1.8
28455 \begin_inset Foot
28456 status collapsed
28457
28458 \begin_layout Plain Layout
28459 Most of the commands will work with 1.4 too,
28460  see 
28461 \begin_inset CommandInset ref
28462 LatexCommand ref
28463 reference "subsec:SVN-Repo-Update"
28464 nolink "false"
28465
28466 \end_inset
28467
28468 .
28469  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
28470 \end_layout
28471
28472 \end_inset
28473
28474
28475 \end_layout
28476
28477 \begin_layout Subsubsection
28478
28479 \family sans
28480 Register
28481 \end_layout
28482
28483 \begin_layout Standard
28484 If your document is not under revision control,
28485  this is the only item shown in the menu.
28486  And if it is under revision control,
28487  the 
28488 \family sans
28489 Register
28490 \family default
28491  item is not visible.
28492 \end_layout
28493
28494 \begin_layout Standard
28495 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
28496 \family typewriter
28497 .svn/entries
28498 \family default
28499  file exists).
28500  This means you have to checkout the archive by yourself.
28501 \end_layout
28502
28503 \begin_layout Standard
28504 Then you are asked interactively to supply an initial description of the document.
28505  Don't forget that registered file is not yet commited.
28506 \end_layout
28507
28508 \begin_layout Standard
28509 SVN command that is run:
28510  
28511 \family typewriter
28512 svn add -q 
28513 \begin_inset Quotes qld
28514 \end_inset
28515
28516 <file-name>
28517 \begin_inset Quotes qld
28518 \end_inset
28519
28520
28521 \end_layout
28522
28523 \begin_layout Standard
28524 Read 
28525 \family typewriter
28526 man svn
28527 \family default
28528  to understand the switches.
28529 \end_layout
28530
28531 \begin_layout Subsubsection
28532
28533 \family sans
28534 Check In Changes
28535 \end_layout
28536
28537 \begin_layout Standard
28538 When you are finished editing a file,
28539  you commit your changes.
28540  When you do this,
28541  you are asked for a description of the changes.
28542  After that changes are commited.
28543 \end_layout
28544
28545 \begin_layout Standard
28546 SVN command:
28547 \begin_inset Foot
28548 status collapsed
28549
28550 \begin_layout Plain Layout
28551 In case locking is not enabled.
28552  See Section 
28553 \begin_inset CommandInset ref
28554 LatexCommand ref
28555 reference "subsec:SVN-File-Locking"
28556 nolink "false"
28557
28558 \end_inset
28559
28560 .
28561 \end_layout
28562
28563 \end_inset
28564
28565  
28566 \family typewriter
28567 svn commit -q -m"<description>" <file-name>
28568 \end_layout
28569
28570 \begin_layout Subsubsection
28571
28572 \family sans
28573 Check Out For Edit
28574 \end_layout
28575
28576 \begin_layout Standard
28577 Updates the changes of this file from the repository.
28578  Be sure you understand SVN merging and conflicts resolving before using this function,
28579  because all conflicts has to be resolved manually by you!
28580 \end_layout
28581
28582 \begin_layout Standard
28583 SVN command:
28584 \begin_inset Foot
28585 status collapsed
28586
28587 \begin_layout Plain Layout
28588 Ditto.
28589 \end_layout
28590
28591 \end_inset
28592
28593  
28594 \family typewriter
28595 svn update --non-interactive 
28596 \begin_inset Quotes qld
28597 \end_inset
28598
28599 <file-name>
28600 \begin_inset Quotes qld
28601 \end_inset
28602
28603
28604 \end_layout
28605
28606 \begin_layout Subsubsection
28607
28608 \family sans
28609 Revert To Repository Version
28610 \end_layout
28611
28612 \begin_layout Standard
28613 This will discard all changes made to the document since the last check in.
28614  You get a warning before changes are discarded.
28615 \end_layout
28616
28617 \begin_layout Standard
28618 SVN command:
28619  
28620 \family typewriter
28621 svn revert -q 
28622 \begin_inset Quotes qld
28623 \end_inset
28624
28625 <file-name>
28626 \begin_inset Quotes qld
28627 \end_inset
28628
28629
28630 \end_layout
28631
28632 \begin_layout Subsubsection
28633
28634 \family sans
28635 Copy
28636 \end_layout
28637
28638 \begin_layout Standard
28639 This will create a copy of the current document including the version history.
28640  It requires a clean document without any changes since the last checkin.
28641  You are asked for a file name and a description of the copy operation.
28642  After that the copy is created,
28643  both locally and in the repository.
28644  If the parent directories of the copied and original document differ,
28645  all relative paths of included files of the copy are adjusted (like in 
28646 \family sans
28647 File\SpecialChar menuseparator
28648 Save As
28649 \family default
28650 \SpecialChar ldots
28651 ).
28652  Finally,
28653  the copy is loaded instead of the original document.
28654 \end_layout
28655
28656 \begin_layout Labeling
28657 \labelwidthstring 00.00.0000
28658 SVN
28659 \begin_inset space ~
28660 \end_inset
28661
28662 commands:
28663  
28664 \begin_inset space ~
28665 \end_inset
28666
28667
28668 \begin_inset Newline newline
28669 \end_inset
28670
28671
28672 \begin_inset Flex Code
28673 status collapsed
28674
28675 \begin_layout Plain Layout
28676 svn copy -q 
28677 \family typewriter
28678
28679 \begin_inset Quotes qld
28680 \end_inset
28681
28682 <file-name>
28683 \begin_inset Quotes qld
28684 \end_inset
28685
28686  
28687 \begin_inset Quotes qld
28688 \end_inset
28689
28690 <new-file-name>
28691 \begin_inset Quotes qld
28692 \end_inset
28693
28694
28695 \end_layout
28696
28697 \end_inset
28698
28699
28700 \begin_inset Newline newline
28701 \end_inset
28702
28703
28704 \begin_inset Flex Code
28705 status collapsed
28706
28707 \begin_layout Plain Layout
28708 svn commit
28709 \end_layout
28710
28711 \end_inset
28712
28713
28714 \end_layout
28715
28716 \begin_layout Subsubsection
28717
28718 \family sans
28719 Rename
28720 \end_layout
28721
28722 \begin_layout Standard
28723 This will rename the current document including the version history.
28724  It requires a clean document without any changes since the last checkin.
28725  You are asked for a file name and a description of the rename operation.
28726  After that the document is renamed,
28727  both locally and in the repository.
28728  If the parent directories of the new and old file names differ,
28729  all relative paths of included files are adjusted (like in 
28730 \family sans
28731 File\SpecialChar menuseparator
28732 Save As
28733 \family default
28734 \SpecialChar ldots
28735 ).
28736  Finally,
28737  the document is reloaded using the new name.
28738 \end_layout
28739
28740 \begin_layout Labeling
28741 \labelwidthstring 00.00.0000
28742 SVN
28743 \begin_inset space ~
28744 \end_inset
28745
28746 commands:
28747  
28748 \begin_inset space ~
28749 \end_inset
28750
28751
28752 \begin_inset Newline newline
28753 \end_inset
28754
28755
28756 \begin_inset Flex Code
28757 status collapsed
28758
28759 \begin_layout Plain Layout
28760 svn move -q 
28761 \family typewriter
28762
28763 \begin_inset Quotes qld
28764 \end_inset
28765
28766 <file-name>
28767 \begin_inset Quotes qld
28768 \end_inset
28769
28770  
28771 \begin_inset Quotes qld
28772 \end_inset
28773
28774 <new-file-name>
28775 \begin_inset Quotes qld
28776 \end_inset
28777
28778
28779 \end_layout
28780
28781 \end_inset
28782
28783
28784 \begin_inset Newline newline
28785 \end_inset
28786
28787
28788 \begin_inset Flex Code
28789 status collapsed
28790
28791 \begin_layout Plain Layout
28792 svn commit
28793 \end_layout
28794
28795 \end_inset
28796
28797
28798 \end_layout
28799
28800 \begin_layout Subsubsection
28801 \begin_inset CommandInset label
28802 LatexCommand label
28803 name "subsec:SVN-Repo-Update"
28804
28805 \end_inset
28806
28807 Update of the local directory checkout from repository
28808 \begin_inset Foot
28809 status collapsed
28810
28811 \begin_layout Plain Layout
28812 Note that this command will work only with subversion 
28813 \begin_inset Formula $\geqq1.5$
28814 \end_inset
28815
28816
28817 \end_layout
28818
28819 \end_inset
28820
28821
28822 \end_layout
28823
28824 \begin_layout Standard
28825 All the commands above have one shortcoming – they deal with the current document only.
28826  Once your document contains pictures,
28827  includes external 
28828 \begin_inset Flex Code
28829 status collapsed
28830
28831 \begin_layout Plain Layout
28832 .tex
28833 \end_layout
28834
28835 \end_inset
28836
28837  files and so on administration becomes more complicated.
28838  \SpecialChar LyX
28839  now supports updating the whole tree in which resides the document
28840 \begin_inset Foot
28841 status collapsed
28842
28843 \begin_layout Plain Layout
28844 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
28845  
28846 \end_layout
28847
28848 \end_inset
28849
28850 .
28851  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.
28852  
28853 \end_layout
28854
28855 \begin_layout Standard
28856 \begin_inset Flex Code
28857 status collapsed
28858
28859 \begin_layout Plain Layout
28860 Update local directory from repository
28861 \end_layout
28862
28863 \end_inset
28864
28865  command updates the whole directory and in case of merge conflicts local version of the files are left,
28866  so no unintended data loss occurs.
28867  If local changes are detected user is warned before update starts.
28868 \end_layout
28869
28870 \begin_layout Labeling
28871 \labelwidthstring 00.00.0000
28872 SVN
28873 \begin_inset space ~
28874 \end_inset
28875
28876 commands:
28877  
28878 \begin_inset space ~
28879 \end_inset
28880
28881
28882 \begin_inset Newline newline
28883 \end_inset
28884
28885
28886 \begin_inset Flex Code
28887 status collapsed
28888
28889 \begin_layout Plain Layout
28890 svn diff $path
28891 \end_layout
28892
28893 \end_inset
28894
28895  (Ask if changes are detected.)
28896 \begin_inset Newline newline
28897 \end_inset
28898
28899
28900 \begin_inset Flex Code
28901 status collapsed
28902
28903 \begin_layout Plain Layout
28904 svn update --accept mine-full $path
28905 \end_layout
28906
28907 \end_inset
28908
28909
28910 \end_layout
28911
28912 \begin_layout Standard
28913 where 
28914 \begin_inset Flex Code
28915 status collapsed
28916
28917 \begin_layout Plain Layout
28918 $path
28919 \end_layout
28920
28921 \end_inset
28922
28923  stands for the path to the document.
28924 \end_layout
28925
28926 \begin_layout Subsubsection
28927
28928 \family sans
28929 Show History
28930 \end_layout
28931
28932 \begin_layout Standard
28933 This shows the complete history of the SVN document.
28934  The output of 
28935 \family typewriter
28936 svn log 
28937 \begin_inset Quotes qld
28938 \end_inset
28939
28940 <file-name>
28941 \begin_inset Quotes qld
28942 \end_inset
28943
28944
28945 \family default
28946  is shown in a browser.
28947 \end_layout
28948
28949 \begin_layout Subsubsection
28950 File Locking
28951 \begin_inset CommandInset label
28952 LatexCommand label
28953 name "subsec:SVN-File-Locking"
28954
28955 \end_inset
28956
28957
28958 \end_layout
28959
28960 \begin_layout Standard
28961 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.
28962  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
28963  which guarantees that only one user is allowed to edit file at the given time.
28964 \end_layout
28965
28966 \begin_layout Standard
28967 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
28968  
28969 \begin_inset CommandInset ref
28970 LatexCommand ref
28971 reference "subsec:Automatical-Locking-Property"
28972 nolink "false"
28973
28974 \end_inset
28975
28976 ) based on 
28977 \begin_inset Flex Code
28978 status collapsed
28979
28980 \begin_layout Plain Layout
28981 svn:needs-lock
28982 \end_layout
28983
28984 \end_inset
28985
28986  file svn property
28987 \begin_inset Foot
28988 status collapsed
28989
28990 \begin_layout Plain Layout
28991 \begin_inset Flex URL
28992 status open
28993
28994 \begin_layout Plain Layout
28995
28996 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
28997 \end_layout
28998
28999 \end_inset
29000
29001
29002 \end_layout
29003
29004 \end_inset
29005
29006 .
29007  If this property is detected for a given document \SpecialChar LyX
29008  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
29009  This in particular means there are two different modes of file use in \SpecialChar LyX
29010 :
29011 \end_layout
29012
29013 \begin_layout Itemize
29014 Unlocked state.
29015  The loaded file is in the read-only mode.
29016  For editing on needs to check-out.
29017  
29018 \emph on
29019 Check-out
29020 \emph default
29021  consists of updating from the repository and gaining write lock.
29022  If the lock is not possible to obtain,
29023  we remain in unlocked state.
29024 \end_layout
29025
29026 \begin_layout Itemize
29027 Locked state.
29028  The loaded file is in the 
29029 \begin_inset Quotes els
29030 \end_inset
29031
29032 normal
29033 \begin_inset Quotes ers
29034 \end_inset
29035
29036  edit mode.
29037  No other user is allowed to edit the file.
29038  
29039 \emph on
29040 Check-in
29041 \emph default
29042  consists of commiting changes and releasing write-lock.
29043  If no changes have been made to the document,
29044  no commit will be produced
29045 \begin_inset Foot
29046 status collapsed
29047
29048 \begin_layout Plain Layout
29049 Don't be puzzled by the fact that you will be asked for commit message anyway.
29050 \end_layout
29051
29052 \end_inset
29053
29054  and only the write-lock will be released.
29055 \end_layout
29056
29057 \begin_layout Standard
29058 SVN commands:
29059 \end_layout
29060
29061 \begin_layout Labeling
29062 \labelwidthstring 00.00.0000
29063 Check-in:
29064
29065 \family typewriter
29066  svn commit -q -m"<description>" "<file-name>"
29067 \begin_inset Newline newline
29068 \end_inset
29069
29070 svn unlock "<file-name>"
29071 \end_layout
29072
29073 \begin_layout Labeling
29074 \labelwidthstring 00.00.0000
29075 Check-out:
29076  
29077 \family typewriter
29078 svn update "<file-name>"
29079 \begin_inset Newline newline
29080 \end_inset
29081
29082 svn lock "<file-name>"
29083 \end_layout
29084
29085 \begin_layout Subsubsection
29086
29087 \family typewriter
29088 \begin_inset CommandInset label
29089 LatexCommand label
29090 name "subsec:Automatical-Locking-Property"
29091
29092 \end_inset
29093
29094
29095 \family default
29096 Automatic Locking Property
29097 \end_layout
29098
29099 \begin_layout Standard
29100 The above mentioned automatic setting of write permissions of the .lyx file can be set through
29101 \family sans
29102  File\SpecialChar menuseparator
29103 Version
29104 \begin_inset space ~
29105 \end_inset
29106
29107 Control\SpecialChar menuseparator
29108 Use Locking Property
29109 \family default
29110 .
29111  This command is active only when the file is not locked on the svn server (i.e.
29112  you need to check-out before proceeding).
29113 \end_layout
29114
29115 \begin_layout Labeling
29116 \labelwidthstring 00.00.0000
29117 SVN
29118 \begin_inset space ~
29119 \end_inset
29120
29121 commands:
29122 \end_layout
29123
29124 \begin_layout Labeling
29125 \labelwidthstring 00.00.0000
29126 Set:
29127
29128 \family typewriter
29129  svn propset svn:needs-lock ON "<file-name>"
29130 \end_layout
29131
29132 \begin_layout Labeling
29133 \labelwidthstring 00.00.0000
29134 Unset:
29135  
29136 \family typewriter
29137 svn propdel svn:needs-lock "<file-name>"
29138 \end_layout
29139
29140 \begin_layout Subsubsection
29141 \begin_inset CommandInset label
29142 LatexCommand label
29143 name "subsec:VCS-Revision-Information"
29144
29145 \end_inset
29146
29147 Revision Information in Documents
29148 \end_layout
29149
29150 \begin_layout Standard
29151 There are more possibilities how to activate revision information in our document.
29152 \end_layout
29153
29154 \begin_layout Itemize
29155 \SpecialChar LyX
29156  supports directly:
29157 \end_layout
29158
29159 \begin_deeper
29160 \begin_layout Itemize
29161 tree revision information (
29162 \begin_inset Flex Code
29163 status collapsed
29164
29165 \begin_layout Plain Layout
29166 vcs-tree-revision
29167 \end_layout
29168
29169 \end_inset
29170
29171 ).
29172  The result is the output of the 
29173 \begin_inset Flex Code
29174 status collapsed
29175
29176 \begin_layout Plain Layout
29177 svnversion
29178 \end_layout
29179
29180 \end_inset
29181
29182  command,
29183  the following table gives you an idea,
29184  how to read the results.
29185 \end_layout
29186
29187 \begin_layout Standard
29188 \align center
29189 \begin_inset Tabular
29190 <lyxtabular version="3" rows="6" columns="2">
29191 <features tabularvalignment="middle">
29192 <column alignment="left" valignment="top">
29193 <column alignment="left" valignment="top">
29194 <row>
29195 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29196 \begin_inset Text
29197
29198 \begin_layout Plain Layout
29199
29200 \series bold
29201 Output
29202 \end_layout
29203
29204 \end_inset
29205 </cell>
29206 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29207 \begin_inset Text
29208
29209 \begin_layout Plain Layout
29210
29211 \series bold
29212 Meaning
29213 \end_layout
29214
29215 \end_inset
29216 </cell>
29217 </row>
29218 <row>
29219 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29220 \begin_inset Text
29221
29222 \begin_layout Plain Layout
29223 4123:4168
29224 \end_layout
29225
29226 \end_inset
29227 </cell>
29228 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29229 \begin_inset Text
29230
29231 \begin_layout Plain Layout
29232 mixed revision working copy
29233 \end_layout
29234
29235 \end_inset
29236 </cell>
29237 </row>
29238 <row>
29239 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29240 \begin_inset Text
29241
29242 \begin_layout Plain Layout
29243 4168M
29244 \end_layout
29245
29246 \end_inset
29247 </cell>
29248 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29249 \begin_inset Text
29250
29251 \begin_layout Plain Layout
29252 modified working copy
29253 \end_layout
29254
29255 \end_inset
29256 </cell>
29257 </row>
29258 <row>
29259 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29260 \begin_inset Text
29261
29262 \begin_layout Plain Layout
29263 4123S
29264 \end_layout
29265
29266 \end_inset
29267 </cell>
29268 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29269 \begin_inset Text
29270
29271 \begin_layout Plain Layout
29272 switched working copy
29273 \end_layout
29274
29275 \end_inset
29276 </cell>
29277 </row>
29278 <row>
29279 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29280 \begin_inset Text
29281
29282 \begin_layout Plain Layout
29283 4123P
29284 \end_layout
29285
29286 \end_inset
29287 </cell>
29288 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29289 \begin_inset Text
29290
29291 \begin_layout Plain Layout
29292 partial working copy,
29293  from a sparse checkout
29294 \end_layout
29295
29296 \end_inset
29297 </cell>
29298 </row>
29299 <row>
29300 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29301 \begin_inset Text
29302
29303 \begin_layout Plain Layout
29304 4123:4168MS
29305 \end_layout
29306
29307 \end_inset
29308 </cell>
29309 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29310 \begin_inset Text
29311
29312 \begin_layout Plain Layout
29313 mixed revision,
29314  modified,
29315  switched working copy
29316 \end_layout
29317
29318 \end_inset
29319 </cell>
29320 </row>
29321 </lyxtabular>
29322
29323 \end_inset
29324
29325
29326 \end_layout
29327
29328 \begin_layout Itemize
29329 file revision information.
29330  The result comes from parsing the output of 
29331 \begin_inset Flex Code
29332 status collapsed
29333
29334 \begin_layout Plain Layout
29335 svn
29336 \begin_inset space ~
29337 \end_inset
29338
29339 info
29340 \begin_inset space ~
29341 \end_inset
29342
29343 --xml
29344 \begin_inset space ~
29345 \end_inset
29346
29347 file.lyx
29348 \end_layout
29349
29350 \end_inset
29351
29352 .
29353  Supported flags are:
29354 \end_layout
29355
29356 \begin_deeper
29357 \begin_layout Itemize
29358 version number of the last commit (
29359 \begin_inset Flex Code
29360 status collapsed
29361
29362 \begin_layout Plain Layout
29363 vcs-revision
29364 \end_layout
29365
29366 \end_inset
29367
29368 )
29369 \end_layout
29370
29371 \begin_layout Itemize
29372 author of the last commit (
29373 \begin_inset Flex Code
29374 status collapsed
29375
29376 \begin_layout Plain Layout
29377 vcs-author
29378 \end_layout
29379
29380 \end_inset
29381
29382 )
29383 \end_layout
29384
29385 \begin_layout Itemize
29386 date of the last commit (
29387 \begin_inset Flex Code
29388 status collapsed
29389
29390 \begin_layout Plain Layout
29391 vcs-date
29392 \end_layout
29393
29394 \end_inset
29395
29396 )
29397 \end_layout
29398
29399 \begin_layout Itemize
29400 time of the last commit (
29401 \begin_inset Flex Code
29402 status collapsed
29403
29404 \begin_layout Plain Layout
29405 vcs-time
29406 \end_layout
29407
29408 \end_inset
29409
29410 )
29411 \end_layout
29412
29413 \end_deeper
29414 \begin_layout Standard
29415 You can obtain this info via InsetInfo (
29416 \family sans
29417 Insert\SpecialChar menuseparator
29418 Field\SpecialChar menuseparator
29419 Version Control Revision
29420 \family default
29421 ).
29422  The information will be available only when you have the file stored under svn managment (i.e.
29423  the 
29424 \begin_inset Flex Code
29425 status collapsed
29426
29427 \begin_layout Plain Layout
29428 .svn
29429 \end_layout
29430
29431 \end_inset
29432
29433  directory is available with your document).
29434 \end_layout
29435
29436 \end_deeper
29437 \begin_layout Itemize
29438 Another—
29439 a hacking one—
29440 possibility is to use svn keywords
29441 \begin_inset Foot
29442 status collapsed
29443
29444 \begin_layout Plain Layout
29445 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
29446 \end_layout
29447
29448 \end_inset
29449
29450 .
29451  In short – you set file keywords property (e.g.
29452  
29453 \family sans
29454 svn propset svn:keywords 'Rev' file.lyx
29455 \family default
29456 ) and then paste keyword \SpecialChar TeX
29457  code
29458 \begin_inset Foot
29459 status collapsed
29460
29461 \begin_layout Plain Layout
29462 This is an easy way how to ensure that \SpecialChar LyX
29463  won't break the line in the middle of keyword tag.
29464 \end_layout
29465
29466 \end_inset
29467
29468  tag in your document (e.g.
29469  
29470 \begin_inset Flex Code
29471 status collapsed
29472
29473 \begin_layout Plain Layout
29474 $Rev$
29475 \end_layout
29476
29477 \end_inset
29478
29479 ).
29480  This way svn client will automatically substitute revision number (e.g.
29481  
29482 \begin_inset Flex Code
29483 status collapsed
29484
29485 \begin_layout Plain Layout
29486 $Rev:
29487  59 $
29488 \end_layout
29489
29490 \end_inset
29491
29492 ) after each update and commit.
29493  There are more problems with this approach.
29494  Firstly,
29495  the '$' character is used in \SpecialChar TeX
29496  world for math equations,
29497  so any occurence of math formula 
29498 \begin_inset Formula $Rev$
29499 \end_inset
29500
29501  become 
29502 \begin_inset Formula $Rev:59$
29503 \end_inset
29504
29505  in your \SpecialChar LyX
29506  document.
29507  Similarly for other keywords like Id,
29508  Date,
29509  Author,
29510  etc.
29511  Secondly svn output is dependent on your locales,
29512  so its very easy that svn would produce some problematic strings once Date is used.
29513  Thirdly you get the whole 'Rev:
29514  59' string in your document instead of the plain number.
29515  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
29516  to support it directly.
29517 \end_layout
29518
29519 \begin_layout Subsection
29520 SVN and Windows Environment
29521 \end_layout
29522
29523 \begin_layout Quote
29524 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
29525  they would be well advised to use TortoiseSVN.
29526  —
29527 P.
29528  A.
29529  Rubin
29530 \end_layout
29531
29532 \begin_layout Subsubsection
29533 Preparation
29534 \end_layout
29535
29536 \begin_layout Standard
29537 In addition to installing \SpecialChar LyX
29538 ,
29539  and having access to a Subversion repository,
29540  the user will need to install the Subversion client program.
29541  A Windows installer for the client program is available from 
29542 \begin_inset CommandInset href
29543 LatexCommand href
29544 name "CollabNet"
29545 target "http://www.collab.net/nonav/downloads/subversion/"
29546 literal "false"
29547
29548 \end_inset
29549
29550 .
29551  The user may also want to install 
29552 \begin_inset CommandInset href
29553 LatexCommand href
29554 name "TortoiseSVN"
29555 target "http://tortoisesvn.tigris.org/"
29556 literal "false"
29557
29558 \end_inset
29559
29560 ,
29561  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
29562  Operations done outside \SpecialChar LyX
29563  will typically be more convenient using the Explorer context menu.
29564  Note that TortoiseSVN is not a replacement for the client program,
29565  which is what \SpecialChar LyX
29566  itself will use.
29567 \end_layout
29568
29569 \begin_layout Subsubsection
29570 Bringing a document under Subversion control
29571 \end_layout
29572
29573 \begin_layout Standard
29574 Before a \SpecialChar LyX
29575  document can be brought under version control in Subversion,
29576  its parent directory needs to be under version control.
29577  If the document is being added to a project already in the repository,
29578  this is accomplished by checking the project out to the directory where the new document will be placed.
29579  If the project itself is not yet under version control (for instance,
29580  if this document starts a new project),
29581  the directory must be imported into the repository.
29582  This is done outside \SpecialChar LyX
29583 .
29584  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
29585  or alternatively can be done using the command line client at a DOS prompt.
29586  The procedure for importing the project using TortoiseSVN is described below,
29587  assuming an existing repository and a new project being started in 
29588 \family typewriter
29589 C:
29590 \backslash
29591 new project
29592 \family default
29593 .
29594  For information on using the Subversion client program,
29595  run 
29596 \family typewriter
29597 svn --help 
29598 \family default
29599 in a DOS shell.
29600 \end_layout
29601
29602 \begin_layout Enumerate
29603 Locate 
29604 \family typewriter
29605 C:
29606 \backslash
29607 new project 
29608 \family default
29609 in Windows Explorer,
29610  right click it,
29611  and select 
29612 \family sans
29613 TortoiseSVN\SpecialChar menuseparator
29614 Repo-browser
29615 \family default
29616 .
29617  If necessary,
29618  adjust the URL for the repository,
29619  then click OK.
29620 \end_layout
29621
29622 \begin_layout Enumerate
29623 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
29624 \family sans
29625 Create folder
29626 \family default
29627  Supply a name for the project folder and click OK.
29628  Add a message for the log file if desired,
29629  then click OK again.
29630  The new project folder should appear in the repository.
29631  Finally,
29632  click OK again to exit the repository browser.
29633 \end_layout
29634
29635 \begin_layout Enumerate
29636 Once again right click 
29637 \family typewriter
29638 C:
29639 \backslash
29640 new project
29641 \family default
29642 ,
29643  this time selecting SVN Checkout\SpecialChar ldots
29644  Select the URL of the project folder you just created in the repository,
29645  and set the checkout directory to 
29646 \family typewriter
29647 C:
29648 \backslash
29649 new project.
29650
29651 \family default
29652  Click OK.
29653  You will be warned about a non-empty folder;
29654  click OK to proceed.
29655  You should now have a 
29656 \family typewriter
29657 .svn
29658 \family default
29659  directory under 
29660 \family typewriter
29661 C:
29662 \backslash
29663 new project.
29664 \end_layout
29665
29666 \begin_layout Enumerate
29667 Create or open your document in \SpecialChar LyX
29668  and click 
29669 \family sans
29670 File\SpecialChar menuseparator
29671 Version
29672 \begin_inset space ~
29673 \end_inset
29674
29675 Control\SpecialChar menuseparator
29676 Register.
29677  
29678 \family default
29679 Add a log message and click OK to commit the document to version control.
29680 \end_layout
29681
29682 \begin_layout Standard
29683 From this point onward,
29684  you should have full functionality in the 
29685 \family sans
29686 File\SpecialChar menuseparator
29687 Version
29688 \begin_inset space ~
29689 \end_inset
29690
29691 Control
29692 \family default
29693  menu.
29694  You also have the option of checking the document in and out,
29695  viewing its history,
29696  etc.
29697  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
29698 \end_layout
29699
29700 \begin_layout Subsubsection
29701 SSH tunnel used with SVN under Windows
29702 \end_layout
29703
29704 \begin_layout Standard
29705 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
29706  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,
29707  also be prepared for a great deal of frustration\SpecialChar ldots
29708
29709 \end_layout
29710
29711 \begin_layout Enumerate
29712 Get an svn client for windows,
29713  as described in the previous sections.
29714  When it is a fresh install run some svn command (e.g.
29715  
29716 \begin_inset Flex Code
29717 status collapsed
29718
29719 \begin_layout Plain Layout
29720 svn --version
29721 \end_layout
29722
29723 \end_inset
29724
29725 ) to create config files,
29726  which you will need to change later on.
29727 \end_layout
29728
29729 \begin_layout Enumerate
29730 Choose an ssh client for Windows.
29731  There are several possibilities,
29732  we will use the one from Putty tools
29733 \begin_inset Foot
29734 status collapsed
29735
29736 \begin_layout Plain Layout
29737 \begin_inset Flex URL
29738 status collapsed
29739
29740 \begin_layout Plain Layout
29741
29742 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
29743 \end_layout
29744
29745 \end_inset
29746
29747
29748 \end_layout
29749
29750 \end_inset
29751
29752 .
29753  You will need to set the connection up so that the client doesn't ask for any password from you.
29754  To keep things easy we will use only keys without any additional password protection etc.
29755 \end_layout
29756
29757 \begin_deeper
29758 \begin_layout Enumerate
29759 Generate keys by 
29760 \begin_inset Flex Code
29761 status collapsed
29762
29763 \begin_layout Plain Layout
29764 puttygen
29765 \end_layout
29766
29767 \end_inset
29768
29769 .
29770  Save your private .ppk key file and put the public one on the server side.
29771  If the SVN server runs on Linux,
29772  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 
29773 \begin_inset Quotes eld
29774 \end_inset
29775
29776
29777 \emph on
29778 Public key for pasting into OpenSSH authorized_keys file
29779 \emph default
29780 :
29781 \begin_inset Quotes erd
29782 \end_inset
29783
29784  edit field into the server's 
29785 \begin_inset Flex Code
29786 status collapsed
29787
29788 \begin_layout Plain Layout
29789 ~/.ssh/authorized_keys
29790 \end_layout
29791
29792 \end_inset
29793
29794  / 
29795 \begin_inset Flex Code
29796 status collapsed
29797
29798 \begin_layout Plain Layout
29799 authorized_keys2
29800 \end_layout
29801
29802 \end_inset
29803
29804  file.
29805 \end_layout
29806
29807 \begin_layout Enumerate
29808 Get the Putty's 
29809 \begin_inset Flex Code
29810 status collapsed
29811
29812 \begin_layout Plain Layout
29813 plink
29814 \end_layout
29815
29816 \end_inset
29817
29818 .
29819  In the SVN config file
29820 \begin_inset Foot
29821 status collapsed
29822
29823 \begin_layout Plain Layout
29824 Exact path depends on Windows version,
29825  usually somewhere around 
29826 \begin_inset Flex Code
29827 status collapsed
29828
29829 \begin_layout Plain Layout
29830 c:
29831 \backslash
29832 Documents and Settings
29833 \backslash
29834 user
29835 \backslash
29836 Application Data
29837 \backslash
29838 Subversion
29839 \backslash
29840 config
29841 \end_layout
29842
29843 \end_inset
29844
29845  / 
29846 \begin_inset Flex Code
29847 status collapsed
29848
29849 \begin_layout Plain Layout
29850 AppData
29851 \backslash
29852 Roaming
29853 \backslash
29854 Subversion
29855 \end_layout
29856
29857 \end_inset
29858
29859 .
29860 \end_layout
29861
29862 \end_inset
29863
29864 ,
29865  section [tunnels],
29866  setup ssh command,
29867  e.g.
29868  
29869 \begin_inset Flex Code
29870 status collapsed
29871
29872 \begin_layout Plain Layout
29873 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
29874 \end_layout
29875
29876 \end_inset
29877
29878 .
29879 \begin_inset Foot
29880 status collapsed
29881
29882 \begin_layout Plain Layout
29883 It will usually take a lot of time to get exact command right and it depends on many things.
29884  For example do not have some remote server saved as a default session in Putty etc.
29885  If things fail,
29886  try to connect via plink without SVN first.
29887 \end_layout
29888
29889 \end_inset
29890
29891
29892 \end_layout
29893
29894 \end_deeper
29895 \begin_layout Enumerate
29896 Checkout the SVN archive,
29897  e.
29898 \begin_inset space \thinspace{}
29899 \end_inset
29900
29901 g.
29902 \begin_inset Newline newline
29903 \end_inset
29904
29905
29906 \begin_inset Flex Code
29907 status collapsed
29908
29909 \begin_layout Plain Layout
29910 svn co svn+ssh://user@server/repository_path
29911 \end_layout
29912
29913 \end_inset
29914
29915 .
29916 \end_layout
29917
29918 \begin_layout Subsubsection
29919 End-of-Line Conversions
29920 \end_layout
29921
29922 \begin_layout Standard
29923 When the collaborators are mixing Linux and Windows environments,
29924  \SpecialChar LyX
29925  will use different line endings inside the .lyx files.
29926  This is not a problem as far as \SpecialChar LyX
29927  functionality is concerned,
29928  but the commit diffs will be huge and merge-conflicts prone.
29929  Fortunately SVN itself knows
29930 \begin_inset Foot
29931 status collapsed
29932
29933 \begin_layout Plain Layout
29934 \begin_inset Flex URL
29935 status collapsed
29936
29937 \begin_layout Plain Layout
29938
29939 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
29940 \end_layout
29941
29942 \end_inset
29943
29944
29945 \end_layout
29946
29947 \end_inset
29948
29949  how to deal with CR/LF problems when switching .lyx files to the 
29950 \begin_inset Flex Code
29951 status collapsed
29952
29953 \begin_layout Plain Layout
29954 native
29955 \end_layout
29956
29957 \end_inset
29958
29959  mode.
29960 \begin_inset Foot
29961 status collapsed
29962
29963 \begin_layout Plain Layout
29964 For the lazy guys:
29965  
29966 \begin_inset Flex Code
29967 status collapsed
29968
29969 \begin_layout Plain Layout
29970 svn propset svn:eol-style native FILE_NAME
29971 \end_layout
29972
29973 \end_inset
29974
29975
29976 \end_layout
29977
29978 \end_inset
29979
29980
29981 \end_layout
29982
29983 \begin_layout Subsection
29984 GIT commands in \SpecialChar LyX
29985
29986 \end_layout
29987
29988 \begin_layout Standard
29989 A minimal subset of GIT commands is now supported by \SpecialChar LyX
29990 .
29991  You can find the commands in the 
29992 \family sans
29993 File\SpecialChar menuseparator
29994 Version
29995 \begin_inset space ~
29996 \end_inset
29997
29998 Control
29999 \family default
30000  submenu.
30001  Please note that if you use password protected access to repository via ssh,
30002  you will be asked in terminal window.
30003  \SpecialChar LyX
30004  was tested against GIT 1.7/2.30.
30005 \begin_inset Foot
30006 status collapsed
30007
30008 \begin_layout Plain Layout
30009 Windows users please note that you need to ensure that git is on the path.
30010  This can be set from within \SpecialChar LyX
30011  at 
30012 \family sans
30013 Tools\SpecialChar menuseparator
30014 Preferences\SpecialChar menuseparator
30015 Paths\SpecialChar menuseparator
30016 PATH prefix
30017 \family default
30018 .
30019 \end_layout
30020
30021 \end_inset
30022
30023
30024 \end_layout
30025
30026 \begin_layout Standard
30027 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
30028  With traditional version control systems there is one central server which hosts the repository.
30029  Users commit their changes to the server,
30030  and get updates made by other users from it.
30031  With GIT,
30032  users commit to a local repository.
30033  The local repository can be synchronized with one or more remote repositories using the 
30034 \begin_inset Flex Code
30035 status collapsed
30036
30037 \begin_layout Plain Layout
30038 pull
30039 \end_layout
30040
30041 \end_inset
30042
30043  and 
30044 \begin_inset Flex Code
30045 status collapsed
30046
30047 \begin_layout Plain Layout
30048 push
30049 \end_layout
30050
30051 \end_inset
30052
30053  GIT commands.
30054  \SpecialChar LyX
30055  does not interact in any way with remote GIT repositories.
30056  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
30057  If you use remote GIT repositories you need to do the 
30058 \begin_inset Flex Code
30059 status collapsed
30060
30061 \begin_layout Plain Layout
30062 pull
30063 \end_layout
30064
30065 \end_inset
30066
30067  and 
30068 \begin_inset Flex Code
30069 status collapsed
30070
30071 \begin_layout Plain Layout
30072 push
30073 \end_layout
30074
30075 \end_inset
30076
30077  operations with your favourite GIT client.
30078 \end_layout
30079
30080 \begin_layout Subsubsection
30081
30082 \family sans
30083 Register
30084 \end_layout
30085
30086 \begin_layout Standard
30087 If your document is not under revision control,
30088  this is the only item shown in the menu.
30089  And if it is under revision control,
30090  the 
30091 \family sans
30092 Register
30093 \family default
30094  item is not visible.
30095 \end_layout
30096
30097 \begin_layout Standard
30098 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
30099 \family typewriter
30100 .git/index
30101 \family default
30102  file exists
30103 \begin_inset Foot
30104 status open
30105
30106 \begin_layout Plain Layout
30107 For that both 
30108 \family typewriter
30109 git init
30110 \family default
30111  *and* initial repository commit (or at least 
30112 \family typewriter
30113 git add
30114 \family default
30115 ) needs to be manually done.
30116 \end_layout
30117
30118 \end_inset
30119
30120 ).
30121  This means you have to checkout the archive by yourself.
30122 \end_layout
30123
30124 \begin_layout Standard
30125 Then you are asked interactively to supply an initial description of the document.
30126  Don't forget that registered file is not yet committed.
30127 \end_layout
30128
30129 \begin_layout Standard
30130 GIT command that is run:
30131  
30132 \family typewriter
30133 git add 
30134 \begin_inset Quotes qld
30135 \end_inset
30136
30137 <file-name>
30138 \begin_inset Quotes qld
30139 \end_inset
30140
30141
30142 \end_layout
30143
30144 \begin_layout Standard
30145 Read 
30146 \family typewriter
30147 man git
30148 \family default
30149  to understand the switches.
30150 \end_layout
30151
30152 \begin_layout Subsubsection
30153
30154 \family sans
30155 Check In Changes
30156 \end_layout
30157
30158 \begin_layout Standard
30159 When you are finished editing a file,
30160  you commit your changes.
30161  When you do this,
30162  you are asked for a description of the changes.
30163  After that changes are committed.
30164 \end_layout
30165
30166 \begin_layout Standard
30167 GIT command:
30168  
30169 \family typewriter
30170 git commit -q -m"<description>" <file-name>
30171 \end_layout
30172
30173 \begin_layout Subsubsection
30174
30175 \family sans
30176 Revert To Repository Version
30177 \end_layout
30178
30179 \begin_layout Standard
30180 This will discard all changes made to the document since the last check in.
30181  You get a warning before changes are discarded.
30182 \end_layout
30183
30184 \begin_layout Standard
30185 GIT command:
30186  
30187 \family typewriter
30188 git checkout -q 
30189 \begin_inset Quotes qld
30190 \end_inset
30191
30192 <file-name>
30193 \begin_inset Quotes qld
30194 \end_inset
30195
30196
30197 \end_layout
30198
30199 \begin_layout Subsubsection
30200
30201 \family sans
30202 Rename
30203 \end_layout
30204
30205 \begin_layout Standard
30206 This will rename the current document including the version history.
30207  It requires a clean document without any changes since the last checkin.
30208  You are asked for a file name and a description of the rename operation.
30209  After that the document is renamed,
30210  both locally and in the repository.
30211  If the parent directories of the new and old file names differ,
30212  all relative paths of included files are adjusted (like in 
30213 \family sans
30214 File\SpecialChar menuseparator
30215 Save As
30216 \family default
30217 \SpecialChar ldots
30218 ).
30219  Finally,
30220  the document is reloaded using the new name.
30221 \end_layout
30222
30223 \begin_layout Labeling
30224 \labelwidthstring 00.00.0000
30225 GIT
30226 \begin_inset space ~
30227 \end_inset
30228
30229 commands:
30230  
30231 \begin_inset space ~
30232 \end_inset
30233
30234
30235 \begin_inset Newline newline
30236 \end_inset
30237
30238
30239 \begin_inset Flex Code
30240 status collapsed
30241
30242 \begin_layout Plain Layout
30243 git mv 
30244 \family typewriter
30245
30246 \begin_inset Quotes qld
30247 \end_inset
30248
30249 <file-name>
30250 \begin_inset Quotes qld
30251 \end_inset
30252
30253  
30254 \begin_inset Quotes qld
30255 \end_inset
30256
30257 <new-file-name>
30258 \begin_inset Quotes qld
30259 \end_inset
30260
30261
30262 \end_layout
30263
30264 \end_inset
30265
30266
30267 \begin_inset Newline newline
30268 \end_inset
30269
30270
30271 \begin_inset Flex Code
30272 status collapsed
30273
30274 \begin_layout Plain Layout
30275 git commit
30276 \end_layout
30277
30278 \end_inset
30279
30280
30281 \end_layout
30282
30283 \begin_layout Subsubsection
30284
30285 \family sans
30286 Show History
30287 \end_layout
30288
30289 \begin_layout Standard
30290 This shows the complete history of the GIT document.
30291  The output of 
30292 \family typewriter
30293 git log 
30294 \begin_inset Quotes qld
30295 \end_inset
30296
30297 <file-name>
30298 \begin_inset Quotes qld
30299 \end_inset
30300
30301
30302 \family default
30303  is shown in a browser.
30304 \end_layout
30305
30306 \begin_layout Subsubsection
30307 Version Info
30308 \end_layout
30309
30310 \begin_layout Standard
30311 \SpecialChar LyX
30312  supports GIT hash number of the last commit to the file,
30313  its abbreviated form,
30314  author name,
30315  date and time of last commit.
30316  All those are extracted from 
30317 \family typewriter
30318 git log -n 1 --pretty=format:%H%n%h%n%an%n%ai
30319 \family default
30320 .
30321  Tree version information is obtained via 
30322 \family typewriter
30323 git describe --abbrev --dirty --long
30324 \family default
30325 .
30326  See 
30327 \begin_inset CommandInset ref
30328 LatexCommand ref
30329 reference "subsec:VCS-Revision-Information"
30330 nolink "false"
30331
30332 \end_inset
30333
30334  for other details.
30335 \end_layout
30336
30337 \begin_layout Subsection
30338 Further tuning
30339 \end_layout
30340
30341 \begin_layout Standard
30342 With the recent addition of the 
30343 \begin_inset Flex Code
30344 status collapsed
30345
30346 \begin_layout Plain Layout
30347 vc-command
30348 \end_layout
30349
30350 \end_inset
30351
30352  function \SpecialChar LyX
30353  power users are allowed to create their own commands for revision control.
30354 \end_layout
30355
30356 \begin_layout Standard
30357 As an example you can see how two TortoiseSVN commands could be integrated directly:
30358 \end_layout
30359
30360 \begin_layout Description
30361 Commit:
30362  
30363 \begin_inset Flex Code
30364 status collapsed
30365
30366 \begin_layout Plain Layout
30367 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
30368 \end_layout
30369
30370 \end_inset
30371
30372
30373 \end_layout
30374
30375 \begin_layout Description
30376 Revert:
30377  
30378 \begin_inset Flex Code
30379 status collapsed
30380
30381 \begin_layout Plain Layout
30382 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
30383 \end_layout
30384
30385 \end_inset
30386
30387
30388 \end_layout
30389
30390 \begin_layout Subsection
30391 Version control and Document comparison
30392 \end_layout
30393
30394 \begin_layout Standard
30395 One of the typical uses of version control is to inspect the changes between revisions,
30396  usually by creating 
30397 \begin_inset Flex Code
30398 status collapsed
30399
30400 \begin_layout Plain Layout
30401 diff
30402 \end_layout
30403
30404 \end_inset
30405
30406  dumps.
30407  While this is useful for plain text files,
30408  it is much less useful in the case of \SpecialChar LyX
30409  files,
30410  which have more a complicated structure.
30411  Hence we provide binding to the Document comparison feature.
30412  There are two ways of calling this feature – either by direct call of 
30413 \begin_inset Flex Code
30414 status collapsed
30415
30416 \begin_layout Plain Layout
30417 vc-compare
30418 \end_layout
30419
30420 \end_inset
30421
30422  \SpecialChar LyX
30423  function (for details see \SpecialChar LyX
30424  functions manual) or by the toolbar icon 
30425 \begin_inset Info
30426 type  "icon"
30427 arg   "vc-compare"
30428 \end_inset
30429
30430  or the menu item 
30431 \begin_inset Info
30432 type  "menu"
30433 arg   "vc-compare"
30434 \end_inset
30435
30436 ,
30437  respectively.
30438  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 '
30439 \begin_inset Flex Noun
30440 status collapsed
30441
30442 \begin_layout Plain Layout
30443 0
30444 \end_layout
30445
30446 \end_inset
30447
30448 ' revisions back means comparison of the edited file with last commited revision).
30449  
30450 \end_layout
30451
30452 \begin_layout Standard
30453 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,
30454  numbers always point to the last number in RCS revision number,
30455  i.e.
30456  '35' in '1.2.35'.
30457  We don't currently support GIT addressing of revisions,
30458  one can just compare edited document with its revision X steps backs,
30459  where X is addressed as 
30460 \begin_inset Flex Code
30461 status collapsed
30462
30463 \begin_layout Plain Layout
30464 HEAD~X
30465 \end_layout
30466
30467 \end_inset
30468
30469 .
30470 \end_layout
30471
30472 \begin_layout Section
30473 \begin_inset CommandInset label
30474 LatexCommand label
30475 name "sec:Literate-Programming"
30476
30477 \end_inset
30478
30479 Literate Programming
30480 \end_layout
30481
30482 \begin_layout Standard
30483 Updated by 
30484 \noun on
30485 Kayvan Sylvan 
30486 \noun default
30487 (kayvan@sylvan.com)
30488 \noun on
30489 ,
30490  
30491 \noun default
30492 original documentation written by 
30493 \noun on
30494 Edmar Wienskoski Jr.
30495
30496 \noun default
30497  (edmar-w-jr@technologist.com)
30498 \end_layout
30499
30500 \begin_layout Subsection
30501 Introduction
30502 \end_layout
30503
30504 \begin_layout Standard
30505 The main purpose of this documentation is to show you how to use \SpecialChar LyX
30506  for literate programming,
30507  where it is assumed that you are familiar with this programming technique,
30508  and know what 
30509 \begin_inset Quotes eld
30510 \end_inset
30511
30512 tangling
30513 \begin_inset Quotes erd
30514 \end_inset
30515
30516  and 
30517 \begin_inset Quotes eld
30518 \end_inset
30519
30520 weaving
30521 \begin_inset Quotes erd
30522 \end_inset
30523
30524  means.
30525  If that is not the case,
30526  please follow the web links provided in the following sections.
30527  There is a lot of good documentation out there covering old development history to the latest tools tips.
30528 \end_layout
30529
30530 \begin_layout Standard
30531 It is also assumed that you are familiar with \SpecialChar LyX
30532  itself to a point that you are comfortable changing your \SpecialChar LyX
30533  preferences,
30534  and X resources file.
30535  If that is not the case please refer to other \SpecialChar LyX
30536  documentation to cover your specific needs.
30537 \end_layout
30538
30539 \begin_layout Subsection
30540 Literate Programming
30541 \end_layout
30542
30543 \begin_layout Standard
30544 From the Literate Programming FAQ:
30545  
30546 \end_layout
30547
30548 \begin_layout Quotation
30549 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
30550  In fact,
30551  literate programs should be enjoyable reading,
30552  even inviting!
30553  (Sorry Bob,
30554  I couldn't resist!) In general,
30555  literate programs combine source and documentation in a single file.
30556  Literate programming tools then parse the file to produce either readable documentation or compilable source.
30557  The WEB style of literate programming was created by D.
30558 \begin_inset space \thinspace{}
30559 \end_inset
30560
30561 E.
30562  Knuth during the development of his \SpecialChar TeX
30563  typesetting software.
30564  
30565 \end_layout
30566
30567 \begin_layout Standard
30568 Another excerpt says:
30569 \end_layout
30570
30571 \begin_layout Quotation
30572
30573 \emph on
30574 How is literate programming different from verbose commenting?
30575 \end_layout
30576
30577 \begin_layout Quotation
30578 There are three distinguishing characteristics.
30579  In order of importance,
30580  they are:
30581  
30582 \end_layout
30583
30584 \begin_deeper
30585 \begin_layout Itemize
30586 flexible order of elaboration 
30587 \end_layout
30588
30589 \begin_layout Itemize
30590 automatic support for browsing 
30591 \end_layout
30592
30593 \begin_layout Itemize
30594 typeset documentation,
30595  especially diagrams and mathematics 
30596 \end_layout
30597
30598 \end_deeper
30599 \begin_layout Standard
30600 Now that I sparked your curiosity,
30601  take a look in the references.
30602 \end_layout
30603
30604 \begin_layout Subsubsection
30605 References
30606 \end_layout
30607
30608 \begin_layout Standard
30609 The complete Literate Programming FAQ can be found at:
30610 \end_layout
30611
30612 \begin_layout Quote
30613 Literate Programming FAQ 
30614 \begin_inset Flex URL
30615 status open
30616
30617 \begin_layout Plain Layout
30618
30619 http://www.literateprogramming.com/lpfaq.pdf
30620 \end_layout
30621
30622 \end_inset
30623
30624
30625 \end_layout
30626
30627 \begin_layout Standard
30628 The FAQ lists 23 (twenty three!) different literate programming tools.
30629  Where some are specialized or 
30630 \begin_inset Quotes eld
30631 \end_inset
30632
30633 tailored
30634 \begin_inset Quotes erd
30635 \end_inset
30636
30637  for particular programming languages,
30638  while other have general scope.
30639  I selected 
30640 \noun on
30641 Noweb
30642 \noun default
30643  for my own use for several reasons:
30644 \end_layout
30645
30646 \begin_layout Itemize
30647 It can generate the documentation either in \SpecialChar LaTeX
30648  or HTML.
30649 \end_layout
30650
30651 \begin_layout Itemize
30652 It has a open architecture,
30653  i.
30654 \begin_inset space \thinspace{}
30655 \end_inset
30656
30657 e.
30658 \begin_inset space \space{}
30659 \end_inset
30660
30661 it is easy to plug in new filters
30662 \begin_inset Foot
30663 status collapsed
30664
30665 \begin_layout Plain Layout
30666
30667 \emph on
30668 Filters 
30669 \emph default
30670 are programs that read a given data stream and output a manipulated data stream.
30671  That way,
30672  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
30673  code.
30674 \end_layout
30675
30676 \end_inset
30677
30678  and to perform special processing that you may need.
30679  
30680 \end_layout
30681
30682 \begin_layout Itemize
30683 There is a good selection of filters available already (the HTML is one of them).
30684 \end_layout
30685
30686 \begin_layout Itemize
30687 It is free.
30688 \end_layout
30689
30690 \begin_layout Standard
30691 The Noweb web page can be found at:
30692  
30693 \end_layout
30694
30695 \begin_layout Quote
30696 Noweb home page 
30697 \begin_inset Flex URL
30698 status collapsed
30699
30700 \begin_layout Plain Layout
30701
30702 https://www.cs.tufts.edu/~nr/noweb/
30703 \end_layout
30704
30705 \end_inset
30706
30707
30708 \end_layout
30709
30710 \begin_layout Standard
30711 Starting from there you can reach many other interesting links and even some literate program examples.
30712 \end_layout
30713
30714 \begin_layout Subsection
30715 \SpecialChar LyX
30716  and Literate Programming with Noweb
30717 \end_layout
30718
30719 \begin_layout Standard
30720 The \SpecialChar LyX
30721  support for Literate Programming is provided by using the generic \SpecialChar LyX
30722  converters mechanism.
30723  This support is provided in a 
30724 \begin_inset Quotes eld
30725 \end_inset
30726
30727 Noweb independent
30728 \begin_inset Quotes erd
30729 \end_inset
30730
30731  way,
30732  i.
30733 \begin_inset space \thinspace{}
30734 \end_inset
30735
30736 e.
30737 \begin_inset space \space{}
30738 \end_inset
30739
30740 you will be able to use this new \SpecialChar LyX
30741  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
30742  preferences.
30743 \end_layout
30744
30745 \begin_layout Subsubsection
30746 Generating documents and code (weaving and tangling)
30747 \end_layout
30748
30749 \begin_layout Paragraph
30750 Using the noweb module
30751 \end_layout
30752
30753 \begin_layout Standard
30754 If you have installed Noweb and \SpecialChar LyX
30755  successfully,
30756  whenever you open a new document,
30757  after you have chosen its document class,
30758  use the 
30759 \family sans
30760 Document\SpecialChar menuseparator
30761 Settings
30762 \family default
30763  menu to add the 
30764 \begin_inset Quotes eld
30765 \end_inset
30766
30767 noweb
30768 \begin_inset Quotes erd
30769 \end_inset
30770
30771  module.
30772  If Noweb is correctly installed,
30773  when you click on the 
30774 \begin_inset Quotes eld
30775 \end_inset
30776
30777 Modules
30778 \begin_inset Quotes erd
30779 \end_inset
30780
30781  link,
30782  you will see the 
30783 \begin_inset Quotes eld
30784 \end_inset
30785
30786 noweb
30787 \begin_inset Quotes erd
30788 \end_inset
30789
30790  module in the available list and you can add it to your document.
30791 \end_layout
30792
30793 \begin_layout Paragraph
30794 Typing code in
30795 \end_layout
30796
30797 \begin_layout Standard
30798 \SpecialChar LyX
30799  enables you to write code with a custom inset named 
30800 \begin_inset Flex Noun
30801 status collapsed
30802
30803 \begin_layout Plain Layout
30804 Chunk
30805 \end_layout
30806
30807 \end_inset
30808
30809 .
30810  Noweb delimits chunks like this:
30811 \end_layout
30812
30813 \begin_layout LyX-Code
30814 <<My code>>=
30815 \end_layout
30816
30817 \begin_layout LyX-Code
30818   code
30819 \end_layout
30820
30821 \begin_layout LyX-Code
30822   more code
30823 \end_layout
30824
30825 \begin_layout LyX-Code
30826   even more code
30827 \end_layout
30828
30829 \begin_layout LyX-Code
30830   @
30831 \end_layout
30832
30833 \begin_layout Standard
30834 The problem is that whatever is written in between the << and the 
30835 \family typewriter
30836 @
30837 \family default
30838  must be taken literally,
30839  i.
30840 \begin_inset space \thinspace{}
30841 \end_inset
30842
30843 e.
30844 \begin_inset space \space{}
30845 \end_inset
30846
30847 \SpecialChar LyX
30848  should be prevented from making any special interpretation of what has been written.
30849  This is also handled by 
30850 \begin_inset Flex Noun
30851 status collapsed
30852
30853 \begin_layout Plain Layout
30854 Chunk
30855 \end_layout
30856
30857 \end_inset
30858
30859 ,
30860  that works like a normal text inset but has a free spacing capability.
30861 \end_layout
30862
30863 \begin_layout Standard
30864 As a special note,
30865  you can also use the 
30866 \begin_inset Quotes eld
30867 \end_inset
30868
30869 %def
30870 \begin_inset Quotes erd
30871 \end_inset
30872
30873  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
30874 \end_layout
30875
30876 \begin_layout LyX-Code
30877 <<My chunk>>=
30878 \end_layout
30879
30880 \begin_layout LyX-Code
30881 def some_function(args):
30882 \end_layout
30883
30884 \begin_layout LyX-Code
30885    "This is the doc string for this function."
30886 \end_layout
30887
30888 \begin_layout LyX-Code
30889    print "My args:
30890  ",
30891  args
30892 \end_layout
30893
30894 \begin_layout LyX-Code
30895 @ %def some_function
30896 \end_layout
30897
30898 \begin_layout Standard
30899 For an example of this usage and the resulting cross-reference output,
30900  look at the Literate python program in 
30901 \emph on
30902 LIBDIR/examples/listerrors.lyx
30903 \emph default
30904  which should make this all clear.
30905 \end_layout
30906
30907 \begin_layout Paragraph
30908 Generating the documentation
30909 \end_layout
30910
30911 \begin_layout Standard
30912 At this point you already have a new document file with a proper document class,
30913  and with some code and text on it.
30914  How do I print it?
30915  The answer is simple,
30916  you select 
30917 \family sans
30918 View\SpecialChar menuseparator
30919 DVI,
30920
30921 \family default
30922  etc.
30923  Just like you would do for a plain document.
30924  No special procedure is required.
30925 \end_layout
30926
30927 \begin_layout Standard
30928 To help orientate you,
30929  I will now explain what happens inside \SpecialChar LyX
30930 :
30931 \end_layout
30932
30933 \begin_layout Enumerate
30934 When the 
30935 \family sans
30936 Update\SpecialChar menuseparator
30937 DVI
30938 \family default
30939  menu option is chosen,
30940  a \SpecialChar LaTeX
30941  file is generated.
30942  
30943 \end_layout
30944
30945 \begin_deeper
30946 \begin_layout Standard
30947 If the document is of any literate class the generated file will be named with an extension name defined by the 
30948 \begin_inset Quotes eld
30949 \end_inset
30950
30951 literate
30952 \begin_inset Quotes erd
30953 \end_inset
30954
30955  format (defined in the Preferences panel),
30956  otherwise the file will have the usual 
30957 \family typewriter
30958 .tex
30959 \family default
30960  extension.
30961 \end_layout
30962
30963 \end_deeper
30964 \begin_layout Enumerate
30965 Note that the only difference so far is in the name of the file,
30966  no special processing is required by \SpecialChar LyX
30967 .
30968  Given that you formatted the code using the 
30969 \begin_inset Flex Noun
30970 status collapsed
30971
30972 \begin_layout Plain Layout
30973 Chunk
30974 \end_layout
30975
30976 \end_inset
30977
30978  inset that,
30979  by itself,
30980  takes care of the business.
30981 \end_layout
30982
30983 \begin_layout Enumerate
30984 If the document is of any literate class \SpecialChar LyX
30985  will then use the internal \SpecialChar LyX
30986  to Noweb converter,
30987  followed by the Noweb to \SpecialChar LaTeX
30988  converter
30989 \begin_inset Foot
30990 status collapsed
30991
30992 \begin_layout Plain Layout
30993 The converters are defined in the 
30994 \family sans
30995 Tools\SpecialChar menuseparator
30996 Preferences
30997 \family default
30998  panel,
30999  under the 
31000 \begin_inset Quotes eld
31001 \end_inset
31002
31003 Conversion
31004 \begin_inset Quotes erd
31005 \end_inset
31006
31007  tab.
31008  See section 
31009 \emph on
31010 Converters
31011 \emph default
31012  of the 
31013 \emph on
31014 Customization
31015 \emph default
31016  manual for general information about converters.
31017 \end_layout
31018
31019 \end_inset
31020
31021  to generate the \SpecialChar LaTeX
31022  file.
31023 \end_layout
31024
31025 \begin_deeper
31026 \begin_layout Standard
31027 Otherwise it will just skip this step.
31028 \end_layout
31029
31030 \end_deeper
31031 \begin_layout Enumerate
31032 Finally,
31033  \SpecialChar LaTeX
31034  is invoked and the regular post processing continues as in a plain document.
31035 \end_layout
31036
31037 \begin_layout Standard
31038 Independence from a particular 
31039 \begin_inset Quotes eld
31040 \end_inset
31041
31042 literate tool
31043 \begin_inset Quotes erd
31044 \end_inset
31045
31046  is easily achieved by changing the commands that are run by the various converters.
31047 \end_layout
31048
31049 \begin_layout Paragraph
31050 Generating the code
31051 \end_layout
31052
31053 \begin_layout Standard
31054 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
31055  a \SpecialChar LaTeX
31056  file is generated just like step 1 above.
31057  Next,
31058  \SpecialChar LyX
31059  invokes the 
31060 \family typewriter
31061 Noweb->Program
31062 \family default
31063  converter.
31064  This converter needs to be defined by the user and is not installed by default,
31065  though the Program format is.
31066  This converter (like any other converter) will have two parts:
31067 \end_layout
31068
31069 \begin_layout Enumerate
31070 The converter program itself.
31071  This program performs the conversion from the one format to the other (in this case,
31072  from the Noweb format to the Program pseudo-format).
31073 \end_layout
31074
31075 \begin_layout Enumerate
31076 The error log parser.
31077  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
31078  understands.
31079  This makes it possible for \SpecialChar LyX
31080  to place error boxes in the right places in the file buffer.
31081 \end_layout
31082
31083 \begin_layout Standard
31084 The first part,
31085  the 
31086 \begin_inset Quotes eld
31087 \end_inset
31088
31089 Converter
31090 \begin_inset Quotes erd
31091 \end_inset
31092
31093  setting,
31094  should be set to
31095 \end_layout
31096
31097 \begin_layout LyX-Code
31098
31099 \family typewriter
31100 build-script $$i
31101 \family default
31102  $$r
31103 \end_layout
31104
31105 \begin_layout Standard
31106 This basically means that \SpecialChar LyX
31107  will call 
31108 \begin_inset Quotes eld
31109 \end_inset
31110
31111 build-script
31112 \begin_inset Quotes erd
31113 \end_inset
31114
31115  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
31116  temp directory) and the directory path of the original \SpecialChar LyX
31117  file.
31118  
31119 \end_layout
31120
31121 \begin_layout Standard
31122 This is an implementation of 
31123 \begin_inset Quotes eld
31124 \end_inset
31125
31126 build-script
31127 \begin_inset Quotes erd
31128 \end_inset
31129
31130  that you can place in a directory on your path:
31131 \end_layout
31132
31133 \begin_layout LyX-Code
31134
31135 \family sans
31136 #!/bin/sh
31137 \end_layout
31138
31139 \begin_layout LyX-Code
31140
31141 \family sans
31142 #
31143 \end_layout
31144
31145 \begin_layout LyX-Code
31146
31147 \family sans
31148 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
31149 \end_layout
31150
31151 \begin_layout Standard
31152 The next part of the converter setting is the 
31153 \begin_inset Quotes eld
31154 \end_inset
31155
31156 Flags
31157 \begin_inset Quotes erd
31158 \end_inset
31159
31160  which is to be set to
31161 \end_layout
31162
31163 \begin_layout LyX-Code
31164
31165 \family typewriter
31166 parselog=$$s/scripts/listerrors
31167 \end_layout
31168
31169 \begin_layout Standard
31170 This will run any errors that are generated by the 
31171 \begin_inset Quotes eld
31172 \end_inset
31173
31174 build-script
31175 \begin_inset Quotes erd
31176 \end_inset
31177
31178  process through the 
31179 \begin_inset Quotes eld
31180 \end_inset
31181
31182 listerrors
31183 \begin_inset Quotes erd
31184 \end_inset
31185
31186  program.
31187 \end_layout
31188
31189 \begin_layout Standard
31190 The build will normally take place in \SpecialChar LyX
31191 's temporary directory,
31192  so the files produced by the conversion will be in that directory.
31193  \SpecialChar LyX
31194  will copy out what it regards as the `main' file,
31195  but the 
31196 \family typewriter
31197 Noweb->Program
31198 \family default
31199  conversion may produce several files,
31200  and so most of these would then be deleted when \SpecialChar LyX
31201  was closed.
31202  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.
31203 \end_layout
31204
31205 \begin_layout Paragraph
31206 Build instructions in the document
31207 \end_layout
31208
31209 \begin_layout Standard
31210 The last piece of the integration between \SpecialChar LyX
31211  and noweb is the 
31212 \begin_inset Quotes eld
31213 \end_inset
31214
31215 build-script
31216 \begin_inset Quotes erd
31217 \end_inset
31218
31219  chunk.
31220  Generally,
31221  the instructions for building your program should be embedded in a chunk of its own.
31222  The noweb-specific 
31223 \begin_inset Quotes eld
31224 \end_inset
31225
31226 build-script
31227 \begin_inset Quotes erd
31228 \end_inset
31229
31230  above uses the notangle command to look for this chunk (called 
31231 \begin_inset Quotes eld
31232 \end_inset
31233
31234 build-script
31235 \begin_inset Quotes erd
31236 \end_inset
31237
31238 ) and runs its contents through 
31239 \begin_inset Quotes eld
31240 \end_inset
31241
31242 sh
31243 \begin_inset Quotes erd
31244 \end_inset
31245
31246 .
31247 \end_layout
31248
31249 \begin_layout Standard
31250 Typically,
31251  such a chunk would look something like this:
31252 \end_layout
31253
31254 \begin_layout LyX-Code
31255 <<build-script>>=
31256 \end_layout
31257
31258 \begin_layout LyX-Code
31259 #!/bin/sh
31260 \begin_inset Newline newline
31261 \end_inset
31262
31263 if [ -z "${NOWEB_SOURCE}" ]
31264 \begin_inset Newline newline
31265 \end_inset
31266
31267 then
31268 \end_layout
31269
31270 \begin_layout LyX-Code
31271 NOWEB_SOURCE=myfile.nw
31272 \begin_inset Newline newline
31273 \end_inset
31274
31275 fi
31276 \begin_inset Newline newline
31277 \end_inset
31278
31279 [...
31280  code to extract files ...
31281  use NOWEB_OUTPUT_DIR here ...]
31282 \begin_inset Newline newline
31283 \end_inset
31284
31285 [...
31286  code to compile files ...]
31287 \begin_inset Newline newline
31288 \end_inset
31289
31290 @
31291 \end_layout
31292
31293 \begin_layout Standard
31294 Look in 
31295 \family sans
31296 File\SpecialChar menuseparator
31297 Open Example\SpecialChar menuseparator
31298 Modules\SpecialChar menuseparator
31299 Noweb Listerrors
31300 \family default
31301  or in 
31302 \family sans
31303 File\SpecialChar menuseparator
31304 Open Example\SpecialChar menuseparator
31305 Modules\SpecialChar menuseparator
31306 Noweb2LyX
31307 \family default
31308  which implement versions of the 
31309 \begin_inset Quotes eld
31310 \end_inset
31311
31312 listerrors
31313 \begin_inset Quotes erd
31314 \end_inset
31315
31316  program for some illustrations of how all of these pieces go together 
31317 \emph on
31318 .
31319
31320 \emph default
31321  Interestingly,
31322  these files show off the language independency of the \SpecialChar LyX
31323  literate programming support since they are written in Python and Perl respectively.
31324 \end_layout
31325
31326 \begin_layout Subsubsection
31327 Configuring \SpecialChar LyX
31328
31329 \end_layout
31330
31331 \begin_layout Standard
31332 All the Literate Programming support is configured by the 
31333 \family sans
31334 Tools\SpecialChar menuseparator
31335 Preferences
31336 \family default
31337  panel in the 
31338 \begin_inset Quotes eld
31339 \end_inset
31340
31341 File Handling
31342 \begin_inset Quotes erd
31343 \end_inset
31344
31345  tab.
31346  The important parts are:
31347 \end_layout
31348
31349 \begin_layout Description
31350 the
31351 \begin_inset space ~
31352 \end_inset
31353
31354
31355 \begin_inset Quotes eld
31356 \end_inset
31357
31358 NoWeb
31359 \begin_inset Quotes erd
31360 \end_inset
31361
31362
31363 \begin_inset space ~
31364 \end_inset
31365
31366 format Set up via the File Formats tab,
31367  this is where the Noweb-specific pieces are set up.
31368  The 
31369 \family sans
31370 GUI Name
31371 \family default
31372  is set to 
31373 \family typewriter
31374 NoWeb
31375 \family default
31376 ,
31377  the file extension is set to 
31378 \family typewriter
31379 .nw
31380 \family default
31381 .
31382  This tells \SpecialChar LyX
31383  to create a file with a 
31384 \family typewriter
31385 .nw
31386 \family default
31387  extension in the first step of the conversion process.
31388 \end_layout
31389
31390 \begin_layout Description
31391 the
31392 \begin_inset space ~
31393 \end_inset
31394
31395
31396 \family sans
31397 Program
31398 \family default
31399
31400 \begin_inset space ~
31401 \end_inset
31402
31403 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).
31404 \end_layout
31405
31406 \begin_layout Description
31407
31408 \family sans
31409 NoWeb
31410 \family default
31411 ->
31412 \family sans
31413 \SpecialChar LaTeX
31414
31415 \family default
31416  This converter performs the 
31417 \begin_inset Quotes eld
31418 \end_inset
31419
31420 weaving
31421 \begin_inset Quotes erd
31422 \end_inset
31423
31424  of the literate document.
31425  For Noweb,
31426  it is set to 
31427 \begin_inset Quotes eld
31428 \end_inset
31429
31430
31431 \family typewriter
31432 noweave -delay -index $$i > $$o
31433 \family default
31434
31435 \begin_inset Quotes erd
31436 \end_inset
31437
31438
31439 \end_layout
31440
31441 \begin_layout Description
31442
31443 \family sans
31444 NoWeb
31445 \family default
31446 ->
31447 \family sans
31448 Program
31449 \family default
31450  This performs the 
31451 \begin_inset Quotes eld
31452 \end_inset
31453
31454 tangling step
31455 \begin_inset Quotes erd
31456 \end_inset
31457
31458 .
31459  As stated above,
31460  the Converter is set to 
31461 \begin_inset Quotes eld
31462 \end_inset
31463
31464
31465 \family typewriter
31466 build-script $$i
31467 \family default
31468  $$r
31469 \begin_inset Quotes erd
31470 \end_inset
31471
31472 ,
31473  with Flags set to
31474 \begin_inset Newline newline
31475 \end_inset
31476
31477
31478 \begin_inset Quotes eld
31479 \end_inset
31480
31481
31482 \family typewriter
31483 parselog=$$s/scripts/listerrors
31484 \family default
31485
31486 \begin_inset Quotes erd
31487 \end_inset
31488
31489 .
31490 \end_layout
31491
31492 \begin_layout Subsubsection
31493 Debug extensions
31494 \end_layout
31495
31496 \begin_layout Standard
31497 There is also a new function implemented in the \SpecialChar LyX
31498  server,
31499  the 
31500 \begin_inset Quotes eld
31501 \end_inset
31502
31503 server-goto-file-row" function,
31504  to be used with ddd/gdb or other debugger.
31505  
31506 \end_layout
31507
31508 \begin_layout Standard
31509 When debugging code with ddd/gdb,
31510  it is possible to invoke a text editor at the current execution position with a single key stroke.
31511  The default ddd configuration for that is shift-ctrl-V.
31512  It happens that you can define the editor command line invocation in ddd by accessing the 
31513 \family sans
31514 Edit\SpecialChar menuseparator
31515 Preferences\SpecialChar menuseparator
31516 Helpers
31517 \family default
31518  dialog and changing the "Edit Sources" entry.
31519 \end_layout
31520
31521 \begin_layout Standard
31522 I take advantage of the newly created \SpecialChar LyX
31523  server function and this ddd feature,
31524  and set 
31525 \begin_inset Quotes eld
31526 \end_inset
31527
31528 Edit Sources
31529 \begin_inset Quotes erd
31530 \end_inset
31531
31532  to:
31533 \end_layout
31534
31535 \begin_layout LyX-Code
31536 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
31537 \end_layout
31538
31539 \begin_layout Standard
31540 With this,
31541  whenever you are using ddd and find a point in the program that you want to edit,
31542  you just press shift-ctrl-V (in the ddd window),
31543  and ddd will forward this information to \SpecialChar LyX
31544  through the \SpecialChar LyX
31545  server and then the \SpecialChar LyX
31546  window will show the same file with the cursor at the same position ddd was pointing to.
31547  No more guessing or long scrolling to locate a point in the program back from debugging !
31548 \end_layout
31549
31550 \begin_layout Standard
31551 Note however that you must enable the \SpecialChar LyX
31552  server to get this feature working (it is disabled by default).
31553  Sec.
31554 \begin_inset space ~
31555 \end_inset
31556
31557
31558 \begin_inset CommandInset ref
31559 LatexCommand ref
31560 reference "sec:Starting-the-Server"
31561 nolink "false"
31562
31563 \end_inset
31564
31565  explains how to do that.
31566 \end_layout
31567
31568 \begin_layout Subsubsection
31569 Toolbar extensions
31570 \end_layout
31571
31572 \begin_layout Standard
31573 There are six new buttons that can be added to your \SpecialChar LyX
31574  toolbar.
31575  Four of these buttons are short cuts to layout styles:
31576  
31577 \family sans
31578 Standard
31579 \family default
31580 ,
31581  
31582 \family sans
31583 Section
31584 \family default
31585 ,
31586  
31587 \family sans
31588 \SpecialChar LaTeX
31589
31590 \family default
31591 ,
31592  and 
31593 \family sans
31594 \SpecialChar LyX
31595 -Code
31596 \family default
31597 ,
31598  one for the custom inset 
31599 \family sans
31600 Chunk
31601 \family default
31602 .
31603  The last one is a short cut to the 
31604 \begin_inset Quotes eld
31605 \end_inset
31606
31607 Build Program
31608 \begin_inset Quotes erd
31609 \end_inset
31610
31611  File menu entry.
31612  
31613 \end_layout
31614
31615 \begin_layout Standard
31616 \SpecialChar LyX
31617  has a range of buttons that are available for tool bar customization.
31618  In my toolbar I like to combine the six short cuts above with two more:
31619  One for 
31620 \family sans
31621 Document
31622 \family default
31623 \SpecialChar menuseparator
31624
31625 \family sans
31626 Update
31627 \family default
31628 \SpecialChar menuseparator
31629
31630 \family sans
31631 DVI
31632 \family default
31633  and the other for 
31634 \family sans
31635 Document\SpecialChar menuseparator
31636 View\SpecialChar menuseparator
31637 DVI
31638 \family default
31639  File menu entries.
31640  Here is how it looks like:
31641 \end_layout
31642
31643 \begin_layout LyX-Code
31644 Toolbar
31645 \end_layout
31646
31647 \begin_layout LyX-Code
31648   Layouts
31649 \end_layout
31650
31651 \begin_layout LyX-Code
31652   Icon "layout Standard"
31653 \end_layout
31654
31655 \begin_layout LyX-Code
31656   Icon "layout Section"
31657 \end_layout
31658
31659 \begin_layout LyX-Code
31660   Icon "layout \SpecialChar LaTeX
31661 "
31662 \end_layout
31663
31664 \begin_layout LyX-Code
31665   Icon "layout \SpecialChar LyX
31666 -Code"
31667 \end_layout
31668
31669 \begin_layout LyX-Code
31670   Icon "flex.insert Chunk"
31671 \end_layout
31672
31673 \begin_layout LyX-Code
31674   Separator
31675 \end_layout
31676
31677 \begin_layout LyX-Code
31678   Icon "buffer-view"
31679 \end_layout
31680
31681 \begin_layout LyX-Code
31682   Icon "buffer-typeset"
31683 \end_layout
31684
31685 \begin_layout LyX-Code
31686   Icon "build-program"
31687 \end_layout
31688
31689 \begin_layout LyX-Code
31690   Separator
31691 \end_layout
31692
31693 \begin_layout LyX-Code
31694 .
31695 \end_layout
31696
31697 \begin_layout LyX-Code
31698 .
31699 \end_layout
31700
31701 \begin_layout LyX-Code
31702 .
31703 \end_layout
31704
31705 \begin_layout LyX-Code
31706 End
31707 \end_layout
31708
31709 \begin_layout Subsubsection
31710 Colors customization
31711 \end_layout
31712
31713 \begin_layout Standard
31714 There are a number of colors in \SpecialChar LyX
31715  that can be customized in 
31716 \family sans
31717 Preferences
31718 \family default
31719 .
31720  One of the things that bothers people is the \SpecialChar LaTeX
31721  font color.
31722  The default color is red,
31723  since the chunks uses \SpecialChar LaTeX
31724  font,
31725  and there is a lot of chunks in literate documents,
31726  you may get tired of seeing everything in red.
31727  You can change it by going to the tabs 
31728 \family sans
31729 Look&Feel
31730 \family default
31731 ,
31732  
31733 \family sans
31734 Colors.
31735 \end_layout
31736
31737 \begin_layout Standard
31738 The next thing is the visible presence of the newline character in the screen.
31739  You can choose the color of this particular character and make it blend in the background.
31740  I recommend you choosing a color that is close to the background but not equal,
31741  that way you still can see it is there,
31742  but it is not bothering you anymore.
31743 \end_layout
31744
31745 \begin_layout Subsection
31746 \SpecialChar LyX
31747  and knitr/Sweave
31748 \end_layout
31749
31750 \begin_layout Standard
31751 Support for 
31752 \family sans
31753 knitr
31754 \family default
31755  and 
31756 \family sans
31757 Sweave
31758 \family default
31759  is documented in 
31760 \family sans
31761 Help\SpecialChar menuseparator
31762 Specific Manuals\SpecialChar menuseparator
31763 Knitr
31764 \family default
31765  and 
31766 \family sans
31767 File\SpecialChar menuseparator
31768 Open Example\SpecialChar menuseparator
31769 Modules\SpecialChar menuseparator
31770 Rnw (knitr)
31771 \family default
31772  and in 
31773 \family sans
31774 Help\SpecialChar menuseparator
31775 Specific Manuals\SpecialChar menuseparator
31776 Sweave
31777 \family default
31778  and 
31779 \family sans
31780 File\SpecialChar menuseparator
31781 Open Example\SpecialChar menuseparator
31782 Modules\SpecialChar menuseparator
31783 Sweave
31784 \family default
31785 .
31786 \end_layout
31787
31788 \begin_layout Standard
31789 \begin_inset CommandInset index_print
31790 LatexCommand printindex
31791 type "idx"
31792 name "Index"
31793
31794 \end_inset
31795
31796
31797 \end_layout
31798
31799 \end_body
31800 \end_document